Skip to content

Commit

Permalink
Fixes mutation from sendable closure error coming up with XCode 16.2 (#…
Browse files Browse the repository at this point in the history
  • Loading branch information
LukasLiebl authored Dec 18, 2024
1 parent 0647165 commit d3f10ae
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,9 @@ public struct ConditionalSizeView<Content: View>: View {
}
)
.onPreferenceChange(SizeKey.self) { size in
self.availableSize = size
Task { @MainActor in
self.availableSize = size
}
}
}

Expand Down

0 comments on commit d3f10ae

Please sign in to comment.