Post

Replies

Boosts

Views

Activity

Reply to SwiftUI Slider onEditingChanged is unreliable on iOS 26
Same problem here. It happens about 50% of the time with a Slider setup like this: Slider( value: $playerVm.curTime, in: 0...playerVm.maxTime, onEditingChanged: { editing in playerVm.isDraggingTime = editing } ) Similar to the original report, when finished dragging the thumb, will get an instant editing value of false, and then a couple milliseconds later will get an editing value of true.
Topic: UI Frameworks SubTopic: SwiftUI Tags:
Sep ’25
Reply to TabBarItem BadgeColor
The following worked for me inside my UITabBarController: if #available(iOS 13.0, *) { let appearance = tabBar.standardAppearance.copy() setTabBarItemBadgeAppearance(appearance.stackedLayoutAppearance) setTabBarItemBadgeAppearance(appearance.inlineLayoutAppearance) setTabBarItemBadgeAppearance(appearance.compactInlineLayoutAppearance) tabBar.standardAppearance = appearance if #available(iOS 15.0, *) { tabBar.scrollEdgeAppearance = appearance } @available(iOS 13.0, *) private func setTabBarItemBadgeAppearance(_ itemAppearance: UITabBarItemAppearance) { itemAppearance.normal.badgeBackgroundColor = UIColor.green }
Topic: UI Frameworks SubTopic: UIKit Tags:
Oct ’21