JUST ENDED
|

iPhone Duo UIKit Q&A

Visit the Apple Developer Forums to discuss adapting your UIKit app to iPhone Duo. Learn about size classes and trait collections, asymmetric safe area insets and layout margins, reserved regions and arrangements, Split View and tab bar behavior, and responding to the hinge angle.

Post

Replies

Boosts

Views

Activity

Top margins
I have three buttons on top of main screen on one of our apps (just like the new Health app), currently top of the buttons is constrained to safeArea.top but on Duo that is zero and so are layout margins. So these buttons touch the bezels on top in folded and unfolded (landscape mode). What is the best approach to handle such cases.
Topic: UI Frameworks SubTopic: UIKit
0
0
35
12h
SplitViewController not displaying unfold animation
I'm using a 2 column SplitViewController, with preferredDisplayMode = .oneBesideSecondary Running it on the duo simulator in device hub, everything works, but i'm not seeing that cool animation when it unfolds, that the inner screen already has the content open. Opening it, the screen goes black, and then the fullsized splitview appears. Close it, screen goes black, and it reverts to showing the only the master. Is this a limitation of the simulator or an issue with the setup? Its hard to tell due to the limited apps installed on the new simulator
Topic: UI Frameworks SubTopic: UIKit
0
0
28
12h
UIBarButtonItem order
Hi I have 2 buttons on the right side of the navigation bar (on a "classic" iPhone), and I want the one that's most on the right to be at the top when the buttons are shown top to bottom on iPhone Duo. What navigationItem property should I set ?
Topic: UI Frameworks SubTopic: UIKit
0
0
25
12h
One UIWindowScene while folding, or does the scene disconnect and reconnect?
We create the window once in scene(_:willConnectTo:options:) with windowScene.coordinateSpace.bounds. After a fold, should that same scene’s screen.bounds and coordinateSpace.bounds animate to the new display, or does UIKit discard the session and deliver a new scene we must attach the window to?
Topic: UI Frameworks SubTopic: UIKit
Replies
0
Boosts
0
Views
27
Activity
11h
Fold, rotation, and Split View all change size class — how do we tell them apart?
We currently dismiss and rebuild a presented sheet whenever horizontalSizeClass changes. That also fires for rotation and for Split View or Stage Manager resizing. Is there a callback or geometry value that means “the device folded or unfolded,” separate from a normal size transition?
Topic: UI Frameworks SubTopic: UIKit
Replies
0
Boosts
0
Views
31
Activity
11h
Will Xcode 27.1 RC be usable to submit App Store builds for Duo
Is 27.1 (when final) intended to be what we use to submit our optimised Duo builds to the App Store ? Or will it be 27.2 or something else?
Topic: UI Frameworks SubTopic: UIKit
Replies
0
Boosts
0
Views
29
Activity
11h
Can we prevent rotation
For some input screens we need a minimum height for the user to be able to comfortably navigate and complete the form. Can we prevent rotation for such screens?
Topic: UI Frameworks SubTopic: UIKit
Replies
2
Boosts
4
Views
94
Activity
11h
Xcode 27 backward compatibility mode (black bars)
When building with Xcode 27, is there any way (e.g. key in info.plist file) to get the backward compatible UI mode (black bars around - like when you build with Xcode 26)?
Topic: UI Frameworks SubTopic: UIKit
Replies
1
Boosts
2
Views
68
Activity
11h
iPhone Duo compatibility with existing app
I have an app mixing UIKit and SwiftUI. Right now it’s not yet migrated to SceneDelegate. What will happen when the iPhone Duo is available ? Will the app run, or crash ?
Topic: UI Frameworks SubTopic: UIKit
Replies
2
Boosts
0
Views
113
Activity
11h
Top margins
I have three buttons on top of main screen on one of our apps (just like the new Health app), currently top of the buttons is constrained to safeArea.top but on Duo that is zero and so are layout margins. So these buttons touch the bezels on top in folded and unfolded (landscape mode). What is the best approach to handle such cases.
Topic: UI Frameworks SubTopic: UIKit
Replies
0
Boosts
0
Views
35
Activity
12h
SplitViewController not displaying unfold animation
I'm using a 2 column SplitViewController, with preferredDisplayMode = .oneBesideSecondary Running it on the duo simulator in device hub, everything works, but i'm not seeing that cool animation when it unfolds, that the inner screen already has the content open. Opening it, the screen goes black, and then the fullsized splitview appears. Close it, screen goes black, and it reverts to showing the only the master. Is this a limitation of the simulator or an issue with the setup? Its hard to tell due to the limited apps installed on the new simulator
Topic: UI Frameworks SubTopic: UIKit
Replies
0
Boosts
0
Views
28
Activity
12h
UIBarButtonItem order
Hi I have 2 buttons on the right side of the navigation bar (on a "classic" iPhone), and I want the one that's most on the right to be at the top when the buttons are shown top to bottom on iPhone Duo. What navigationItem property should I set ?
Topic: UI Frameworks SubTopic: UIKit
Replies
0
Boosts
0
Views
25
Activity
12h