computer science student new to swift here. I'm probably struggling with something that is super rudimentary but I've been mulling over this for quite some time so I figured I need some help. I've been playing around with a really simple application that uses navigation controllers and a tab bar controller. For reference it looks like this.
It took a while but I discovered what an unwind segue is and I finally got all the navigation to work. All the buttons lead to the correct places, the navigation buttons work, etc. Just when I was moving on to the next part of my project, which is adding a background image to my root view, the navigation between my root view and tab bar controller became weird.
Normally, there's just a simple button that uses a simple show segue from the root view to the tab bar controller. But for some reason, it started to show vertically instead of the normal horizontal animation. It was working perfectly fine until I started adding a background image. I am completely lost as to what I did that led to this behaviour. I've looked at this thread here on stackoverflow that suggests the navigation controller might be nil but I'm not sure how to fix that.
I've tried deleting and making new outlets, etc but that hasn't worked. Thank you in advance for your help
there's just a simple button that uses a simple show segue from the root view to the tab bar controller. But for some reason, it started to show vertically instead of the normal horizontal animation
It all depends on whether you've got a navigation controller. As you say rightly, if you have no navigation controller, a Show segue magically turns into a Present Modally segue, and that's what you are seeing when the segue does a vertical animation up from the bottom.