r/iOSProgramming • u/Anywhere_MusicPlayer • Sep 18 '26
Discussion It’s not that bad on Duo if it’s SwiftUI
No code changes for now. This is the first cold start.
Some other views require changes/fixes, especially where geometry is used.
149
Upvotes


54
u/Bakk322 Sep 18 '26
That middle screen shot with the unbalanced sheet makes me uncomfortable
3
u/Anarude Sep 18 '26
Check what happens to your sheets when partially folded aka book mode
130
u/lap_felix Sep 18 '26
> if it’s SwiftUI
It's not the SwiftUI part that makes it easy to adapt to Duo, it's that you use Apple-provided components and navigation items and Apple has done the work already. Same applies for UIKit. If you stick with Apple's components, it's almost free.
1
u/jarjoura Sep 20 '26
Use Button(role: .close) and move it to the .toolbar {} and wrap the whole sheet in a NavigationStack {}. That will fix the layout so that looks even more standard.
5
u/StrangeMonk Sep 18 '26
We’ve been rebuilding our 15 year old app with over 100M sessions a year . We still have about 25% UIKit (as you could expect, the oldest and most coupled and also most important parts). We booted it on the Duo Sim this morning and it’s just a wreck lol
Looks like we have a busy couple of weeks
4
u/xSash_ UIKit Sep 18 '26
Its not just SwiftUI…
2
u/Dvass138 Sep 18 '26
If you build for iPad I assume it would work similar on duo
1
u/BogAndHooper Sep 19 '26
Does the front screen have a concept of portrait or landscape? What happens if your app locks a normal phone to landscape mode only?
1
u/mathiswrong Sep 19 '26
I agree. This was honestly one of the easier updates I’ve had to build because my binaries are all swift
1
u/juanda631 Sep 19 '26
my app got a new iphone duo support already!!!
1
u/Kelmantis Sep 19 '26
I'm more in the never really targeted iPad so everything looks a bit odd when fully unfolded
1
u/Appropriate-Green-12 Sep 18 '26
finna try it in a second
0
u/vossome-dad Sep 18 '26
Friends where are we finding the Duo — in Device Hub? I must be missing a step
2
u/[deleted] Sep 18 '26
[removed] — view removed comment
1
u/[deleted] Sep 18 '26
[removed] — view removed comment
1
u/[deleted] Sep 24 '26
[removed] — view removed comment