Post

Replies

Boosts

Views

Activity

Reply to Labels in toolbar menu get wrapped when upgrading from iOS 18 to 26
Hello @DTS Engineer, . . Thank you for your post ! . . I have looked at the new toolbar API and other updates of iOS 27, but I do not see how it could help to solve the issue. . . Let me clarify how the issue can be reproduced : Execute the provided sample code in the XCode preview canvas. Select iPhone 16 (with iOS 18) or iPhone 17 (with iOS 26). Tap the "ellipsis" button in the toolbar to open the menu. The label in the menu is displayed on 1 line with iOS 18, but 2 lines with iOS 26. . . How to slightly increase the width of the menu, to avoid this unnecessary label wrapping that disrupts the readability ?
Topic: UI Frameworks SubTopic: SwiftUI Tags:
Jun ’26
Reply to Action of full-width button in ToolbarItem is not triggered
Solution for some button styles The following solution works for any primitive button style except : .automatic, .borderedProminent, .glassProminent and .plain I did not find the reason why it does not work for these styles : Either I missed something or there is a limitation. .toolbar { ToolbarItem(placement: .bottomBar) { Button(action: self.action) { Text("Action") .frame(maxWidth: .infinity, maxHeight: .infinity) } .buttonStyle(.borderless) } } . . . Workaround for other button styles The following workaround works for these primitive button styles : .borderedProminent and .glassProminent But this workaround requires 1 height and 4 padding constants, which may depend on the device type and the iOS version. .safeAreaBar(edge: .bottom) { Button(action: self.action) { Text("Action") .frame(maxWidth: .infinity, maxHeight: 34) } .buttonStyle(.glassProminent) .padding(.init(top: 0, leading: 28, bottom: 28, trailing: 28)) } .ignoresSafeArea()
Topic: UI Frameworks SubTopic: SwiftUI Tags:
Jun ’26
Reply to Action of full-width button in ToolbarItem is not triggered
Using buttonSizing(.flexible) instead of .frame(maxWidth: .infinity) has no effect : The button does not get full-width. Applying .frame(maxWidth: .infinity) to the Text instead of the Button has no effect either : The button does not get full-width. The issue can be simply reproduced through the provided code example. Notice that the button is required to be prominent (see role: .confirm in the code example). Is there any workaround ?
Topic: UI Frameworks SubTopic: SwiftUI Tags:
Jun ’26
Reply to How to build a Help view with hierarchical table of contents ?
The Keynote/Numbers/Pages apps for iPhone have a Help modal view that is very neat. Firstly I would like to know the format in which the Help content is stored. The “Apple Help Book” format is used for the macOS apps, but which format is used for the iOS apps ? Secondly I would like to know which SwiftUI API is used to build such a Help modal view. Where to find a SwiftUI example that is based on the same storage format ?
Topic: UI Frameworks SubTopic: SwiftUI Tags:
Nov ’25
Reply to Cannot download voices in the iOS 26.5 Simulator
Hello @DTS Engineer, The issue has been reported as requested. Here is the feedback number: FB23549131 Thank you for your response.
Topic: UI Frameworks SubTopic: SwiftUI Tags:
Replies
Boosts
Views
Activity
Jul ’26
Reply to Labels in toolbar menu get wrapped when upgrading from iOS 18 to 26
Hello @DTS Engineer, . . Thank you for your post ! . . I have looked at the new toolbar API and other updates of iOS 27, but I do not see how it could help to solve the issue. . . Let me clarify how the issue can be reproduced : Execute the provided sample code in the XCode preview canvas. Select iPhone 16 (with iOS 18) or iPhone 17 (with iOS 26). Tap the "ellipsis" button in the toolbar to open the menu. The label in the menu is displayed on 1 line with iOS 18, but 2 lines with iOS 26. . . How to slightly increase the width of the menu, to avoid this unnecessary label wrapping that disrupts the readability ?
Topic: UI Frameworks SubTopic: SwiftUI Tags:
Replies
Boosts
Views
Activity
Jun ’26
Reply to Action of full-width button in ToolbarItem is not triggered
Solution for some button styles The following solution works for any primitive button style except : .automatic, .borderedProminent, .glassProminent and .plain I did not find the reason why it does not work for these styles : Either I missed something or there is a limitation. .toolbar { ToolbarItem(placement: .bottomBar) { Button(action: self.action) { Text("Action") .frame(maxWidth: .infinity, maxHeight: .infinity) } .buttonStyle(.borderless) } } . . . Workaround for other button styles The following workaround works for these primitive button styles : .borderedProminent and .glassProminent But this workaround requires 1 height and 4 padding constants, which may depend on the device type and the iOS version. .safeAreaBar(edge: .bottom) { Button(action: self.action) { Text("Action") .frame(maxWidth: .infinity, maxHeight: 34) } .buttonStyle(.glassProminent) .padding(.init(top: 0, leading: 28, bottom: 28, trailing: 28)) } .ignoresSafeArea()
Topic: UI Frameworks SubTopic: SwiftUI Tags:
Replies
Boosts
Views
Activity
Jun ’26
Reply to Action of full-width button in ToolbarItem is not triggered
Using buttonSizing(.flexible) instead of .frame(maxWidth: .infinity) has no effect : The button does not get full-width. Applying .frame(maxWidth: .infinity) to the Text instead of the Button has no effect either : The button does not get full-width. The issue can be simply reproduced through the provided code example. Notice that the button is required to be prominent (see role: .confirm in the code example). Is there any workaround ?
Topic: UI Frameworks SubTopic: SwiftUI Tags:
Replies
Boosts
Views
Activity
Jun ’26
Reply to How to build a Help view with hierarchical table of contents ?
The Keynote/Numbers/Pages apps for iPhone have a Help modal view that is very neat. Firstly I would like to know the format in which the Help content is stored. The “Apple Help Book” format is used for the macOS apps, but which format is used for the iOS apps ? Secondly I would like to know which SwiftUI API is used to build such a Help modal view. Where to find a SwiftUI example that is based on the same storage format ?
Topic: UI Frameworks SubTopic: SwiftUI Tags:
Replies
Boosts
Views
Activity
Nov ’25