Post

Replies

Boosts

Views

Activity

Reply to Disable new tab bar look
I have a Catalyst-enabled app with a UITabBarController for view switching and a custom "tab bar" (actually a UICollectionView). In my case, I wanted to hide this new tab bar and side bar. Here is the workaround I needed to do to accomplish that, as setTabBarHidden didn't work for me. Posting here in case it helps anyone else. internal class MainTabBarController: UITabBarController { internal override func viewDidLoad() { #if targetEnvironment(macCatalyst) mode = .tabSidebar sidebar.isHidden = true #else setTabBarHidden(true, animated: false) #endif } }
Topic: UI Frameworks SubTopic: General Tags:
Sep ’24
Reply to Back gesture not disabled with navigationBarBackButtonHidden(true) when using .zoom transition
I'm curious what the intended behavior is here? Is swipe navigation meant to be suppressed if the back button is hidden? I have a scenario where I'm trying to use a custom-drawn navigation bar, but actually WANT the swipe action to still work. Is that possible (outside of using a .zoom transition - which may, or may not, be a bug). Edit: Found this work around for what I want - extension UINavigationController: @retroactive UIGestureRecognizerDelegate { override open func viewDidLoad() { super.viewDidLoad() interactivePopGestureRecognizer?.delegate = self } public func gestureRecognizerShouldBegin(_ gestureRecognizer: UIGestureRecognizer) -> Bool { // Override this to cause the navigation controller to do the back swipe even if the navigation bar is hidden return viewControllers.count > 1 } }
Topic: UI Frameworks SubTopic: SwiftUI Tags:
Mar ’26
Reply to Disable new tab bar look
I have a Catalyst-enabled app with a UITabBarController for view switching and a custom "tab bar" (actually a UICollectionView). In my case, I wanted to hide this new tab bar and side bar. Here is the workaround I needed to do to accomplish that, as setTabBarHidden didn't work for me. Posting here in case it helps anyone else. internal class MainTabBarController: UITabBarController { internal override func viewDidLoad() { #if targetEnvironment(macCatalyst) mode = .tabSidebar sidebar.isHidden = true #else setTabBarHidden(true, animated: false) #endif } }
Topic: UI Frameworks SubTopic: General Tags:
Replies
Boosts
Views
Activity
Sep ’24
Reply to UIScene.ConnectionOptions.shouldHandleActiveWorkoutRecovery Missing?
I actually figured it out - it appears that it isn't just included in UIKit, but is instead part of an extension in HealthKitUI. Fixed by adding import HealthKitUI
Topic: UI Frameworks SubTopic: UIKit Tags:
Replies
Boosts
Views
Activity
Aug ’25
Reply to Support for cycling power & cadence sensors in HKWorkoutSession on iOS?
I also need this functionality and have requested it in FB19932104
Topic: App & System Services SubTopic: Hardware Tags:
Replies
Boosts
Views
Activity
Aug ’25
Reply to Xcode Cloud, Xcode 26 RC
It's there now.
Replies
Boosts
Views
Activity
Sep ’25
Reply to Anchored Object Queries Slower to Update in 26.1?
I've submitted this as FB21030260. To give a little more detail here for others: my Anchored Object Query used to update step count every 10 seconds or so. Now it only appears to update every 4 to 5 minutes. I initially thought I had broken the query entirely, but it DOES eventually get a step count value - just at a glacial pace.
Replies
Boosts
Views
Activity
Nov ’25
Reply to Back gesture not disabled with navigationBarBackButtonHidden(true) when using .zoom transition
I'm curious what the intended behavior is here? Is swipe navigation meant to be suppressed if the back button is hidden? I have a scenario where I'm trying to use a custom-drawn navigation bar, but actually WANT the swipe action to still work. Is that possible (outside of using a .zoom transition - which may, or may not, be a bug). Edit: Found this work around for what I want - extension UINavigationController: @retroactive UIGestureRecognizerDelegate { override open func viewDidLoad() { super.viewDidLoad() interactivePopGestureRecognizer?.delegate = self } public func gestureRecognizerShouldBegin(_ gestureRecognizer: UIGestureRecognizer) -> Bool { // Override this to cause the navigation controller to do the back swipe even if the navigation bar is hidden return viewControllers.count > 1 } }
Topic: UI Frameworks SubTopic: SwiftUI Tags:
Replies
Boosts
Views
Activity
Mar ’26