Post

Replies

Boosts

Views

Activity

Reply to Failing UI Test for new floating Tabbar iOS 18+
The floating tab bar indeed doesn't respond to .tabBars. Checking is the code is being run on iPad with ipadOS 18, and using .buttons instead, worked for me, e.g.: var iOS18available = false if #available(iOS 18, *) { iOS18available = true } let isIPadIOS18 = iOS18available && UIDevice.current.model.lowercased().contains("ipad") let firstTab = isIPadIOS18 ? app.buttons["First tab button title"] : app.tabBars.buttons.element(boundBy: 0) firstTab.tap() Also see: https://developer.apple.com/forums/thread/759960
Topic: UI Frameworks SubTopic: UIKit Tags:
Mar ’25
Reply to Failing UI Test for new floating Tabbar iOS 18+
The floating tab bar indeed doesn't respond to .tabBars. Checking is the code is being run on iPad with ipadOS 18, and using .buttons instead, worked for me, e.g.: var iOS18available = false if #available(iOS 18, *) { iOS18available = true } let isIPadIOS18 = iOS18available && UIDevice.current.model.lowercased().contains("ipad") let firstTab = isIPadIOS18 ? app.buttons["First tab button title"] : app.tabBars.buttons.element(boundBy: 0) firstTab.tap() Also see: https://developer.apple.com/forums/thread/759960
Topic: UI Frameworks SubTopic: UIKit Tags:
Replies
Boosts
Views
Activity
Mar ’25
Reply to Disabling "blinking" effect on tap for NavigationLink
EDIT: inconsistent results
Topic: UI Frameworks SubTopic: SwiftUI Tags:
Replies
Boosts
Views
Activity
Nov ’23
Reply to SwiftData Fatal error: failed to find a currently active container
I had this issue after a change in the model. In my case, removing the app and re-installing did the trick.
Replies
Boosts
Views
Activity
Aug ’23
Reply to SwiftUI UITableView NSInternalInconsistencyException in M1 simulator
The 'async' in the accepted answer did it for me. I changed from context.performAndWait({ delete action }) to await context.perform({ delete action }). and this fixed it for me.
Topic: UI Frameworks SubTopic: SwiftUI Tags:
Replies
Boosts
Views
Activity
Apr ’23