Post

Replies

Boosts

Views

Activity

Reply to Liquid Glass toolbar/buttons effect like WWDC25 shows
You get the new glass look automatically. Just create normal UIBarButtonItem instances with appropriate images and set them to the view controller's toolbarItems. You automatically get the look in the second picture. You just might need to correctly use fixedSpace or flexibleSpace to get the proper spacing. See Build a UIKit app with the new design. Jump to the "Navigation and toolbars" section. If you still need help, post your relevant code to get better help.
Topic: Design SubTopic: General Tags:
Jun ’25
Reply to Liquid glass - how change color of back button in nav bar
Unfortunately iOS 26 no longer honors any tintColor set at the UIWindow, UINavigationBar, or UIToolbar level for any glass components. So this includes any UIBarButtomItems including standard back bar items. As you've seen, you can only tint individual bar button items. Everyone affected by this should file a bug report using Feedback Assistant so Apple knows that this needs to be fixed.
Topic: UI Frameworks SubTopic: UIKit Tags:
Jun ’25
Reply to Unable to find Slider/UISlider neutralValue
Lots of bugs with UISlider.TrackConfiguration. neutralValue only works if the slider's min value is 0.0 and the max value is 1.0 and the slider's value is between 0 and 1. And of course neutralValue is also in the range 0...1. allowsTickValuesOnly is not honored if ticks are set. Even when set to false it acts as if it is true. enabledRange only respects the upper range, not the lower range. Time to file a bug report. P.S. You can work around the neutralValue issue by converting the slider's value of 0...1 with let desiredValue = slider.value * 20 - 10. That will give you a result in the range -10...10.
Topic: UI Frameworks SubTopic: SwiftUI Tags:
Jun ’25
Reply to hidesBottomBarWhenPushed in iOS 26
Your screenshots are showing a tab bar. hidesBottomBarWhenPushed is for hiding a toolbar. From the documentation for hidesBottomBarWhenPushed: A view controller added as a child of a navigation controller can display an optional toolbar at the bottom of the screen. The value of this property on the topmost view controller determines whether the toolbar is visible. If the value of this property is true, the toolbar is hidden. If the value of this property is false, the bar is visible.
Topic: UI Frameworks SubTopic: UIKit
Jun ’25
Reply to macOS UIApplication not in scope
A quick search points me to the ProcessInfo class and its beginActivity(options:reason:) and endActivity(_:) methods. The options you can pass to beginActivity include preventing sleep. See the documentation for ProcessInfo for more details and examples. And yes, UIApplication is specific to iOS.
Topic: UI Frameworks SubTopic: General Tags:
Jun ’25