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

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
33
3d
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
49
3d
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
42
3d
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
83
3d
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
160
3d
Keyboard extensions and reserved regions
I have a keyboard extension in my app and I'm seeing some inconsistent behavior with the system-provided Globe and Dictation buttons. For the system keyboards, these buttons are displayed to the side of the keyboard, insetting the bottom row of keys on the folded screen and insetting the entire keyboard on the unfolded screen. What is the expected behavior for custom keyboards on the folded screen? My test results: When the Duo simulator is folded, sometimes the Globe and Dictation buttons appear next to my keyboard and the entire custom keyboard is squeezed to be really narrow. Other times my UI gets the full width and the Globe and Dictate keys are on TOP of my UI. The latter seems preferable, assuming I can then use the reserved regions API to avoid the overlap. Is that the intent? PS: The reserved regions API doesn't seem to work in keyboard extensions in this beta, neither in SwiftUI or UIKit. Hopefully that's fixed in the next beta.
Topic: UI Frameworks SubTopic: UIKit
0
1
46
3d
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
38
3d
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
30
3d
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
39
3d
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
37
3d
Does folding send the same scene callbacks as backgrounding the app?
We resume location and refresh Home from sceneDidBecomeActive, and we ignore that callback while Apple Pay is up because dismissing PKPaymentAuthorizationController also makes the scene active. Does a fold or unfold call sceneWillResignActive, sceneDidEnterBackground, or sceneDidBecomeActive? If the user folds during Apple Pay, does the payment sheet dismiss and complete, or stay up on the other display?
Topic: UI Frameworks SubTopic: UIKit
0
0
33
3d
Managing Empty Space When Positioning an App on the Side in Dual-Window Mode
Hi everyone, I’m developing an iOS application and I’m wondering whether it is possible to position the app on either the left or right side of the screen when running in a dual-window/multitasking configuration. If the app does not occupy the entire screen, can I customize the remaining empty space by assigning a background color or displaying an image? Additionally, if I place a visual element or background in the central/remaining area, could this cause any issues with touch interaction or hit-testing? In particular, I’d like to understand whether the system would still correctly route touch events to the active application, or whether the additional area could interfere with the app’s clickable elements.
Topic: UI Frameworks SubTopic: SwiftUI
1
0
44
3d
What happens to the camera if the device folds while it is open?
The QR scanner uses AVCaptureSession and an AVCaptureVideoPreviewLayer framed to the view bounds. Different screens present UIImagePickerController with source type .camera. If the user folds or unfolds while either is visible, which camera stays active, does the preview orientation and frame update, and is the picker dismissed or left at the old display size?
Topic: UI Frameworks SubTopic: UIKit
0
2
48
3d
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
11
Activity
3d
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
33
Activity
3d
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
59
Activity
3d
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
49
Activity
3d
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
103
Activity
3d
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
42
Activity
3d
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
48
Activity
3d
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
83
Activity
3d
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
160
Activity
3d
Keyboard extensions and reserved regions
I have a keyboard extension in my app and I'm seeing some inconsistent behavior with the system-provided Globe and Dictation buttons. For the system keyboards, these buttons are displayed to the side of the keyboard, insetting the bottom row of keys on the folded screen and insetting the entire keyboard on the unfolded screen. What is the expected behavior for custom keyboards on the folded screen? My test results: When the Duo simulator is folded, sometimes the Globe and Dictation buttons appear next to my keyboard and the entire custom keyboard is squeezed to be really narrow. Other times my UI gets the full width and the Globe and Dictate keys are on TOP of my UI. The latter seems preferable, assuming I can then use the reserved regions API to avoid the overlap. Is that the intent? PS: The reserved regions API doesn't seem to work in keyboard extensions in this beta, neither in SwiftUI or UIKit. Hopefully that's fixed in the next beta.
Topic: UI Frameworks SubTopic: UIKit
Replies
0
Boosts
1
Views
46
Activity
3d
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
82
Activity
3d
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
38
Activity
3d
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
19
Activity
3d
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
30
Activity
3d
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
39
Activity
3d
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
37
Activity
3d
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
80
Activity
3d
Does folding send the same scene callbacks as backgrounding the app?
We resume location and refresh Home from sceneDidBecomeActive, and we ignore that callback while Apple Pay is up because dismissing PKPaymentAuthorizationController also makes the scene active. Does a fold or unfold call sceneWillResignActive, sceneDidEnterBackground, or sceneDidBecomeActive? If the user folds during Apple Pay, does the payment sheet dismiss and complete, or stay up on the other display?
Topic: UI Frameworks SubTopic: UIKit
Replies
0
Boosts
0
Views
33
Activity
3d
Managing Empty Space When Positioning an App on the Side in Dual-Window Mode
Hi everyone, I’m developing an iOS application and I’m wondering whether it is possible to position the app on either the left or right side of the screen when running in a dual-window/multitasking configuration. If the app does not occupy the entire screen, can I customize the remaining empty space by assigning a background color or displaying an image? Additionally, if I place a visual element or background in the central/remaining area, could this cause any issues with touch interaction or hit-testing? In particular, I’d like to understand whether the system would still correctly route touch events to the active application, or whether the additional area could interfere with the app’s clickable elements.
Topic: UI Frameworks SubTopic: SwiftUI
Replies
1
Boosts
0
Views
44
Activity
3d
What happens to the camera if the device folds while it is open?
The QR scanner uses AVCaptureSession and an AVCaptureVideoPreviewLayer framed to the view bounds. Different screens present UIImagePickerController with source type .camera. If the user folds or unfolds while either is visible, which camera stays active, does the preview orientation and frame update, and is the picker dismissed or left at the old display size?
Topic: UI Frameworks SubTopic: UIKit
Replies
0
Boosts
2
Views
48
Activity
3d