r/iOSProgramming • • Jun 24 '20

Article 2 Navigation areas in the same app using new App protocol in SwiftUI.

219 Upvotes

18 comments sorted by

12

u/BitToKnow Jun 24 '20

How does this is look like on iPads? In portrait mode? Any split-view type improvisation we can do?

10

u/FitoMAD Jun 24 '20

Same behavior, no matter iPhone or iPad.

I post a screen record in this twitter thread https://twitter.com/FitoMAD/status/1275761062143561731

1

u/honnetatamae Jun 27 '20

Love that split-view type improvisation for showing panes side-by-side instead of on top of each other

11

u/nailernforce Jun 24 '20

The future is now!

26

u/kechboy63 Jun 24 '20 edited Jun 24 '20

Can be done in UIKit with container views :-) edit: why the downvote though..?

2

u/FitoMAD Jun 24 '20

Yes, but the SwiftUI way it's easier ;-)

10

u/mickenrorty Jun 24 '20

Easier for a basic example, the reality may be different

1

u/FitoMAD Jun 25 '20

Absolutely!

2

u/[deleted] Jun 24 '20

Cool as shit.

6

u/[deleted] Jun 24 '20

Is this what we call fragment in Android?

5

u/Coffee__2__Code Jun 24 '20

You want war right 😂

1

u/javaHoosier Jun 24 '20

I see you also use the highly descriptive naming convention of “Other”.

1

u/FitoMAD Jun 24 '20

Yes, you known, There's one view and the other view ;-)

2

u/javaHoosier Jun 24 '20

Once I get to OtherOtherOtherView it means it’s time to go to sleep.

3

u/gormster Jun 24 '20

I mean, you’ve been able to do this for ages. It doesn’t mean you should.

0

u/Unity19rtoall Jun 24 '20

The future of app development is here. I really can't wait to see people use this tool 👌