Post

Replies

Boosts

Views

Activity

Reply to SwiftUI Shape concurrency warnings
I have a workaround, but I'm not 100% sure I understand why the Shape properties are nonisolated so I'm not sure if this actually safe or not. struct SimpleShape: Shape { var width: Double nonisolated var animatableData: Double { get { MainActor.assumeIsolated { width } } set { MainActor.assumeIsolated { width = newValue } } } func path(in rect: CGRect) -> Path { return Path() } }
Topic: UI Frameworks SubTopic: SwiftUI Tags:
Jun ’24
Reply to SwiftUI Shape concurrency warnings
I have a workaround, but I'm not 100% sure I understand why the Shape properties are nonisolated so I'm not sure if this actually safe or not. struct SimpleShape: Shape { var width: Double nonisolated var animatableData: Double { get { MainActor.assumeIsolated { width } } set { MainActor.assumeIsolated { width = newValue } } } func path(in rect: CGRect) -> Path { return Path() } }
Topic: UI Frameworks SubTopic: SwiftUI Tags:
Replies
Boosts
Views
Activity
Jun ’24
Reply to Launching an executable from an extension process
While I have not confirmed it as a solution yet, this post appears to cover the issue: https://developer.apple.com/forums/thread/662688
Topic: App & System Services SubTopic: Core OS Tags:
Replies
Boosts
Views
Activity
Jul ’22