NEW: Subscribe to Hacking with Swift+ and accelerate your learning! >>

Using Master-Detail view for only *part* of application

Forums > Swift

I'm working on an application where I want to be able to quickly reference the data used to drive the application, and then I want to be able to perform tests using that data in a different view.

I've got a Master-Detail setup that's working pretty well. The problem is...getting out of it.

I can't seem to push any views over it. I tried adding a LandingPage view above it, setting that as the initial view controller, and pushing from there—nothing.

I can set up a segue from the LandingPage view controller to the MasterViewController, and it works-ish. The Master-Detail view gets presented modally, and is dismissable with a sweep downward. It's an improvement, but far from ideal, to say the least.

Is there something I'm missing here, or are you just bound hard and fast into Master-Detail view for everything when using that structure?

   

I'm not sure if this will help, but if you're looking to NOT use Master-Detail, you can change the Navigation style with .navigationViewStyle(StackNavigationViewStyle())

   

Hacking with Swift is sponsored by Paw

SPONSORED Use Paw to build, test and describe web APIs. Paw has a lightning fast native macOS interface to compose requests, collaborate in real-time on API specs, and generate client code for your applications. You can import and export API definitions.

Discover Paw for Mac

Sponsor Hacking with Swift and reach the world's largest Swift community!

Reply to this topic…

You need to create an account or log in to reply.

All interactions here are governed by our code of conduct.

 
Unknown user

Not logged in

Log in
 

Link copied to your pasteboard.