Skip to content

Commit

Permalink
MainActor annotation for Swift 5.10
Browse files Browse the repository at this point in the history
  • Loading branch information
Supereg committed Aug 11, 2024
1 parent e830297 commit f60e47f
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ struct MyModifier: ViewModifier {

@State private var state = ModifierState()

private var alertBinding: Binding<Bool> {
@MainActor private var alertBinding: Binding<Bool> {
Binding {
module == nil && state.appeared
} set: { _ in
Expand Down

0 comments on commit f60e47f

Please sign in to comment.