Post

Replies

Boosts

Views

Activity

Reply to Detecting External Heart Rate Monitor Availability
@DTS Engineer Sure! On iOS 26, open the Fitness app and go to the "Workout" tab. If you have an Apple Watch on, you'll see that reflected in the top right corner - as well as in which activities are available to start. Now take the watch off, observe that almost immediately, a number of workouts become unavailable and the lack of a heart rate sensor is reflected in the top right corner. Finally, put on some AirPod Pro 3, this is the really interesting one - that also, nearly immediately, gets reflected in the top right as having a 3rd-party heart rate sensor available and the workout list is updated accordingly. This is the behavior I'd like to replicate. It all registers surprisingly quickly - giving a nice responsive list to the type of workouts available.
Jun ’26
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:
Sep ’24
Reply to Detecting External Heart Rate Monitor Availability
@DTS Engineer Sure! On iOS 26, open the Fitness app and go to the "Workout" tab. If you have an Apple Watch on, you'll see that reflected in the top right corner - as well as in which activities are available to start. Now take the watch off, observe that almost immediately, a number of workouts become unavailable and the lack of a heart rate sensor is reflected in the top right corner. Finally, put on some AirPod Pro 3, this is the really interesting one - that also, nearly immediately, gets reflected in the top right as having a 3rd-party heart rate sensor available and the workout list is updated accordingly. This is the behavior I'd like to replicate. It all registers surprisingly quickly - giving a nice responsive list to the type of workouts available.
Replies
Boosts
Views
Activity
Jun ’26
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
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