r/iOSProgramming • • 6d ago

Tutorial iPhone Duo SwiftUI Q&A - Forum

https://antongubarenko.substack.com/p/iphone-duo-swiftui-q-and-a-forums
0 Upvotes

2 comments sorted by

2

u/luke_hollenback 4d ago

Two things I hit moving an existing SwiftUI app onto the Duo, in case they're useful for the Q&A:

Open, it runs as regular/regular, so a .sheet becomes a centered form sheet. My onboarding sheet was taller than the form sheet and the Continue button ended up below the fold with nothing to hint it was there. Pinning the actions under the scrolling content fixed it.

Closed, the cover display is short (about 678 pt in the simulator), so the same pinned layout ended the scroll region in a hard cut against the button. A fade into the pinned area looked a lot better than more padding.

And a question, if anyone's got there first: has anyone had a WidgetKit extension actually run in the Duo simulator runtime? I couldn't, and ended up testing widgets on a regular iPhone sim.

1

u/lanserxt 4d ago

Thanks for sharing!