Post

Replies

Boosts

Views

Activity

Reply to UI test fails due to "speed up your typing" tutorial
Hey, this is happening in CI, which runs our builds in a VM, so we always have a clean environment (with a brand new simulator). I've actually watched the session on interruptions earlier and am now testing to see if I can make it work. The session mentions there are built-in interruption monitors for common system dialogs - shouldn't this be added there too? There is nothing for the test to do besides tapping the "Continue" button anyway...
Jun ’20
Reply to Live activity sample code for Swift 6?
Ok, specific problem then. I downloaded Emoji Rangers, switched language mode to Swift 6, udpated some static vars to static lets, commented out the contents of ImageURLProtocol.stopLoading and finally got to the issue in AdventureView.swift: This error is the one I can't seem to solve - Main actor-isolated value of type '() async -> Void' passed as a strongly transferred parameter; later accesses could race. As far as I understand it, here it basically means that something that is not Sendable is being sent between contexts. It is not possible to remove @MainActor here because activityViewState is isolated to it: And even if this was not a factor, the original error reappears once activityViewState is no longer in the picture: The only workaround I've found feels wrong: extension Activity: @unchecked @retroactive Sendable {}
Sep ’24