Post

Replies

Boosts

Views

Activity

Reply to UITests with SwiftUI Failing to Find Off-Screen Elements in Xcode 14+
I also see the behaviour that JShroyer describes: it's like a lazy loading mechanism. here it's just a list with 6 entries, so it is not only valid for long lists. The problem is: It's flaky! One time it works, one time not. Using print(XCUIApplication().debugDescription) helps: because there I can see, that the off-screen element is not listed. I now drilled it down: here it seems to be just the the iPhone 14 Simulator that doesn't work. And it's not just my local simulator, we have the same problem on the CI simulator. Using iPhone 13 (same size class and traits) works like a charm.
Topic: UI Frameworks SubTopic: SwiftUI Tags:
Jan ’23
Reply to Unable to compile SwiftUI Charts on Xcode 16.1 Beta 2
Same here in a project with multiple sub-projects. Try to fix it by setting to Swift 6, but still no avail.
Topic: UI Frameworks SubTopic: SwiftUI Tags:
Replies
Boosts
Views
Activity
Sep ’24
Reply to Xcode 16 supports on-device debugging in iOS 13 and later?
From Xcode 16.1 Beta Release Notes: Xcode 16.1 beta release supports on-device debugging in iOS 13 and later
Replies
Boosts
Views
Activity
Aug ’24
Reply to How to Change Picker Text Color In SwiftUI
As @obaytimur proposed, tint seems the way to go. Also, in some cases accentColor doesn't seem to work. I had a quite nested view with the picker inside, and the text color wouldn't change with accentColor. tint worked. Thanks
Topic: UI Frameworks SubTopic: SwiftUI Tags:
Replies
Boosts
Views
Activity
Feb ’24
Reply to Xcode 15 linking error
The question is: will adding the -ld64 flag be disturbing once the big is fixed?
Replies
Boosts
Views
Activity
Jul ’23
Reply to UITests with SwiftUI Failing to Find Off-Screen Elements in Xcode 14+
I also see the behaviour that JShroyer describes: it's like a lazy loading mechanism. here it's just a list with 6 entries, so it is not only valid for long lists. The problem is: It's flaky! One time it works, one time not. Using print(XCUIApplication().debugDescription) helps: because there I can see, that the off-screen element is not listed. I now drilled it down: here it seems to be just the the iPhone 14 Simulator that doesn't work. And it's not just my local simulator, we have the same problem on the CI simulator. Using iPhone 13 (same size class and traits) works like a charm.
Topic: UI Frameworks SubTopic: SwiftUI Tags:
Replies
Boosts
Views
Activity
Jan ’23
Reply to Xcode 12.5 stays in a loop "Resolving Swift Packages" until it slows down to a crawl
I had this also with the 'Default' setting of Derived Data. Solution was to do a pod install, since the installed pods have been changed by another team member.
Replies
Boosts
Views
Activity
Jan ’23
Reply to Xcode 12.5 stays in a loop "Resolving Swift Packages" until it slows down to a crawl
Here I had the same libs assigned in different targets/schemes which was not necessary. After removing the redundant ones, the loop disappeared.
Replies
Boosts
Views
Activity
Nov ’22
Reply to UI Testing execution stalls on "Wait for app to idle"
Excellent! See also [https://www.jessesquires.com/blog/2021/03/17/xcode-ui-testing-reliability-tips/)
Replies
Boosts
Views
Activity
Jul ’22