Explore the various UI frameworks available for building app interfaces. Discuss the use cases for different frameworks, share best practices, and get help with specific framework-related questions.

All subtopics
Posts under UI Frameworks topic

Post

Replies

Boosts

Views

Activity

Adapting content around the active camera reserved region
When the inner camera is in use and the reserved region becomes active, what is the recommended way for apps to adapt their UI? Should content move out of the reserved region where possible, or is it generally acceptable to leave content behind it? More specifically, how should apps handle content that can’t easily move aside, such as a long navigation title directly behind the reserved region? Should it be truncated, moved below the region, or handled another way?
Topic: UI Frameworks SubTopic: UIKit
0
0
50
6d
Must our iPad support resizing on an iPad if it supports Duo?
We have built our existing app with Xcode 27.1 and when running it on iPad it does not resize - it seems to run in iPhone mode as usual, in a fixed portrait mode. However the same build will resize to a wider aspect ratio in iPhone mirroring (and on Duo, obviously) But, the app when built with Xcode 27 does resize on an iPad. So is the 27.1 iPad behaviour expected or is this just something temporary in the 27.1 beta?
Topic: UI Frameworks SubTopic: UIKit
3
2
114
6d
Detecting the final partially folded state
When the user transitions from an open to a partially folded state, the system detects this is the final state after some delay and un-blurs the left side. The UI should now adapt to this state. For example, split view controller enlarges the sidebar to occupy the full width of the left side. What’s the best trigger to use for a custom view controller that wants to achieve a similar result? Is it the folding region becoming active?
Topic: UI Frameworks SubTopic: UIKit
0
0
47
6d
Are .presentationDetents(_:) fraction values computed from context.maximumDetentValue recalculated automatically on a live fold/unfold?
Several of our sheets use custom fractional detents (.custom(identifier:resolver:), with the resolver computing a fraction of context.maximumDetentValue) to size a sheet relative to available height. If a user opens a sheet while iPhone Duo is unfolded (larger inner-display canvas) and then folds the device mid-presentation, does the resolver re-run against the new (smaller, outer-display) maximumDetentValue, or is the computed height locked in at presentation time — requiring the sheet to be dismissed and re-presented to pick up the new geometry?
Topic: UI Frameworks SubTopic: SwiftUI
0
0
15
6d
inputAccessoryView and vertical toolbars
My app has a small inputAccessoryView that does not fill the width of the screen above the keyboard. On iPhone Duo with a vertical toolbar, tapping in my text view to bring up the keyboard will collapse all bar buttons that are obscured by the keyboard and any that intersect the vertical space of my inputAccessoryView, even though the inputAccessoryView does not visually overlap the vertical bar. Is there a way to keep more bar buttons on screen?
Topic: UI Frameworks SubTopic: UIKit
0
0
42
6d
Partially folded pose and UITabAccessory
When the inner screen on iPhone Duo is partially folded and horizontal, what is the best practice to make the UITabAccessory adapt ? How to make it shift to the left or to the right screen and how to size it properly in that case ?
Topic: UI Frameworks SubTopic: UIKit
1
0
53
6d
Split Arrangements
My main screen is a full screen map of a golf hole, which needs to be tall and narrow. On the inner display I want a panel beside it, but a split arrangement splits vertically when the view is taller than it is wide, which gives the map the wrong shape. What is the intended approach when one split axis works for the content and the other does not?
Topic: UI Frameworks SubTopic: SwiftUI
1
0
51
6d
Moving view (or button) off centre of the screen when iPhone Duo is half-folded.
We're supposed to keep away from the centre of the screen when Duo is half-folded (some sort of book / laptop-like pose). How do I do it in a right/intended by UIKit engineers way? Sub-Questions below: a) What's the proper way in UIKit, if I only have a frame of region? b) How to understand if division region is vertical or horizontal, and where shall i move my controls out of center? c) Do we get any layout guides for that?
Topic: UI Frameworks SubTopic: UIKit
1
1
91
6d
Custom TabBars fate
What is the best practice to migrate from custom TabBar (with action button in the middle , in example)? This decision were driven by Design team and had a lot of controversy. But yet it's implemented.
Topic: UI Frameworks SubTopic: SwiftUI
3
3
173
6d
Hinge dependant games
The HIG says never tie functionality to a pose, but games are called out differently. Will App Review accept a game whose core mechanic requires the hinge and simply can't be played elsewhere? Is a graceful "this needs iPhone Duo" screen acceptable?
Topic: UI Frameworks SubTopic: SwiftUI
1
0
47
6d
How should a blocking approval flow use both displays on iPhone Duo?
We have a guided, multi-step setup flow where the user must complete each step in order. One step is an approval gate: after submitting information, the user waits for an approval result before they can continue. They can't navigate back from this screen. On iPhone Duo, what would be the recommended approach when the device is unfolded? Should the approval status remain the primary content on one display while the submitted information or other contextual content is shown on the other, or is this a case where the flow should remain focused on a single display?
Topic: UI Frameworks SubTopic: SwiftUI
1
0
45
6d
Which display is used for launch, Live Activities, and widgets?
Cold launch from a shortcut, universal link, or push is handled in scene(_:willConnectTo:options:). Diiferent functionalities also start Live Activities and reload widgets. If the device is folded, does that scene connect for the outer display, and can the geometry still change before the first frame if the user unfolds? When folded, do Live Activities and widgets appear on the outer display, and is there a separate presentation the app must support?
Topic: UI Frameworks SubTopic: UIKit
0
0
46
6d
Do pushed screens get the fold transition, and how wide should their content be?
Only Home updates layout when the size class changes. Various screens are pushed and set their table and scroll heights once from the screen size. Does every controller in a navigation stack, including ones that are not visible, receive viewWillTransition(to:with:)? For forms and lists on the inner display, is readableContentGuide the width we should use, and does it update during the fold?
Topic: UI Frameworks SubTopic: UIKit
0
0
43
6d
Adapting content around the active camera reserved region
When the inner camera is in use and the reserved region becomes active, what is the recommended way for apps to adapt their UI? Should content move out of the reserved region where possible, or is it generally acceptable to leave content behind it? More specifically, how should apps handle content that can’t easily move aside, such as a long navigation title directly behind the reserved region? Should it be truncated, moved below the region, or handled another way?
Topic: UI Frameworks SubTopic: UIKit
Replies
0
Boosts
0
Views
50
Activity
6d
Must our iPad support resizing on an iPad if it supports Duo?
We have built our existing app with Xcode 27.1 and when running it on iPad it does not resize - it seems to run in iPhone mode as usual, in a fixed portrait mode. However the same build will resize to a wider aspect ratio in iPhone mirroring (and on Duo, obviously) But, the app when built with Xcode 27 does resize on an iPad. So is the 27.1 iPad behaviour expected or is this just something temporary in the 27.1 beta?
Topic: UI Frameworks SubTopic: UIKit
Replies
3
Boosts
2
Views
114
Activity
6d
Detecting the final partially folded state
When the user transitions from an open to a partially folded state, the system detects this is the final state after some delay and un-blurs the left side. The UI should now adapt to this state. For example, split view controller enlarges the sidebar to occupy the full width of the left side. What’s the best trigger to use for a custom view controller that wants to achieve a similar result? Is it the folding region becoming active?
Topic: UI Frameworks SubTopic: UIKit
Replies
0
Boosts
0
Views
47
Activity
6d
Are .presentationDetents(_:) fraction values computed from context.maximumDetentValue recalculated automatically on a live fold/unfold?
Several of our sheets use custom fractional detents (.custom(identifier:resolver:), with the resolver computing a fraction of context.maximumDetentValue) to size a sheet relative to available height. If a user opens a sheet while iPhone Duo is unfolded (larger inner-display canvas) and then folds the device mid-presentation, does the resolver re-run against the new (smaller, outer-display) maximumDetentValue, or is the computed height locked in at presentation time — requiring the sheet to be dismissed and re-presented to pick up the new geometry?
Topic: UI Frameworks SubTopic: SwiftUI
Replies
0
Boosts
0
Views
15
Activity
6d
Preparing for Submission - App Store Guidance
Let's say we're testing and building for iPhone Duo support can we sign the builds with Xcode 27 and submit to App Store, and then submit additional builds signed with 27.1 once Duo is released or does the IF AVAILABLE have to be removed from these builds?
Topic: UI Frameworks SubTopic: SwiftUI
Replies
0
Boosts
0
Views
19
Activity
6d
inputAccessoryView and vertical toolbars
My app has a small inputAccessoryView that does not fill the width of the screen above the keyboard. On iPhone Duo with a vertical toolbar, tapping in my text view to bring up the keyboard will collapse all bar buttons that are obscured by the keyboard and any that intersect the vertical space of my inputAccessoryView, even though the inputAccessoryView does not visually overlap the vertical bar. Is there a way to keep more bar buttons on screen?
Topic: UI Frameworks SubTopic: UIKit
Replies
0
Boosts
0
Views
42
Activity
6d
Ensuring the UITabBar is always adaptable in all poses ?
In the iPhone Duo horizontal pose full expanded inner screen, we use UITabBarController (set up using the viewControllers property), and the UITabBar is still horizontal when it should be vertical ? What are the best practices to make it always adaptable in all poses ?
Topic: UI Frameworks SubTopic: UIKit
Replies
1
Boosts
0
Views
66
Activity
6d
Partially folded pose and UITabAccessory
When the inner screen on iPhone Duo is partially folded and horizontal, what is the best practice to make the UITabAccessory adapt ? How to make it shift to the left or to the right screen and how to size it properly in that case ?
Topic: UI Frameworks SubTopic: UIKit
Replies
1
Boosts
0
Views
53
Activity
6d
Horizontal scroll below tab bar
We have some horizontal scrolls in our app. When the Duo is open in landscape mode, the scroll content is displayed below the tab bar. Is this expected? Or should we clip the content?
Topic: UI Frameworks SubTopic: SwiftUI
Replies
3
Boosts
3
Views
118
Activity
6d
Split Arrangements
My main screen is a full screen map of a golf hole, which needs to be tall and narrow. On the inner display I want a panel beside it, but a split arrangement splits vertically when the view is taller than it is wide, which gives the map the wrong shape. What is the intended approach when one split axis works for the content and the other does not?
Topic: UI Frameworks SubTopic: SwiftUI
Replies
1
Boosts
0
Views
51
Activity
6d
Is there any API to move items out of a reserved region's way?
We can currently get the reserved region's sizes. But as far as I can see, we still need to manually move items out of the way of those regions. Or is there any API besides ArrangementView (e.g. for List items) that does this automatically for us?
Topic: UI Frameworks SubTopic: SwiftUI
Replies
1
Boosts
1
Views
58
Activity
6d
Moving view (or button) off centre of the screen when iPhone Duo is half-folded.
We're supposed to keep away from the centre of the screen when Duo is half-folded (some sort of book / laptop-like pose). How do I do it in a right/intended by UIKit engineers way? Sub-Questions below: a) What's the proper way in UIKit, if I only have a frame of region? b) How to understand if division region is vertical or horizontal, and where shall i move my controls out of center? c) Do we get any layout guides for that?
Topic: UI Frameworks SubTopic: UIKit
Replies
1
Boosts
1
Views
91
Activity
6d
Custom TabBars fate
What is the best practice to migrate from custom TabBar (with action button in the middle , in example)? This decision were driven by Design team and had a lot of controversy. But yet it's implemented.
Topic: UI Frameworks SubTopic: SwiftUI
Replies
3
Boosts
3
Views
173
Activity
6d
iPhone Duo support without free-form iPad resizing
Can an iPhone-only app that fully supports iPhone Duo, but is not otherwise optimized for iPad (and is non-universal), opt out of free-form resizing on iPad?
Topic: UI Frameworks SubTopic: UIKit
Replies
1
Boosts
3
Views
94
Activity
6d
Hinge dependant games
The HIG says never tie functionality to a pose, but games are called out differently. Will App Review accept a game whose core mechanic requires the hinge and simply can't be played elsewhere? Is a graceful "this needs iPhone Duo" screen acceptable?
Topic: UI Frameworks SubTopic: SwiftUI
Replies
1
Boosts
0
Views
47
Activity
6d
Core Motion - axes
Does CMMotionManager report in the same way iPhone Duo orientation as with iPhone? What, when it is folded as a book/laptop?
Topic: UI Frameworks SubTopic: SwiftUI
Replies
1
Boosts
0
Views
31
Activity
6d
How should a blocking approval flow use both displays on iPhone Duo?
We have a guided, multi-step setup flow where the user must complete each step in order. One step is an approval gate: after submitting information, the user waits for an approval result before they can continue. They can't navigate back from this screen. On iPhone Duo, what would be the recommended approach when the device is unfolded? Should the approval status remain the primary content on one display while the submitted information or other contextual content is shown on the other, or is this a case where the flow should remain focused on a single display?
Topic: UI Frameworks SubTopic: SwiftUI
Replies
1
Boosts
0
Views
45
Activity
6d
Which display is used for launch, Live Activities, and widgets?
Cold launch from a shortcut, universal link, or push is handled in scene(_:willConnectTo:options:). Diiferent functionalities also start Live Activities and reload widgets. If the device is folded, does that scene connect for the outer display, and can the geometry still change before the first frame if the user unfolds? When folded, do Live Activities and widgets appear on the outer display, and is there a separate presentation the app must support?
Topic: UI Frameworks SubTopic: UIKit
Replies
0
Boosts
0
Views
46
Activity
6d
Do pushed screens get the fold transition, and how wide should their content be?
Only Home updates layout when the size class changes. Various screens are pushed and set their table and scroll heights once from the screen size. Does every controller in a navigation stack, including ones that are not visible, receive viewWillTransition(to:with:)? For forms and lists on the inner display, is readableContentGuide the width we should use, and does it update during the fold?
Topic: UI Frameworks SubTopic: UIKit
Replies
0
Boosts
0
Views
43
Activity
6d
Does the iPhone Duo inner display use a regular horizontal size class?
On the unfolded inner display our root view controller’s horizontalSizeClass becomes .regular, the same as iPad. Folded, it is .compact. Is that the supported way to tell the two displays apart, or is there a Duo-specific trait, screen idiom, or UIWindowScene property we should use instead of size class?
Topic: UI Frameworks SubTopic: UIKit
Replies
1
Boosts
0
Views
96
Activity
6d