Skip to content

Commit 0c4c2c1

Browse files
Merge pull request #31 from ConfusedVorlon/fix-main-thread-publishing-error
2 parents e25db36 + 16a933f commit 0c4c2c1

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

Sources/FlowStacks/Binding+withDelaysIfUnsupported.swift

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -108,6 +108,7 @@ public enum RouteSteps {
108108
await withDelaysIfUnsupported(owner, keyPath, from: start, to: end)
109109
}
110110

111+
@MainActor
111112
fileprivate static func withDelaysIfUnsupported<Screen, Owner: AnyObject>(_ owner: Owner, _ keyPath: WritableKeyPath<Owner, [Route<Screen>]>, from start: [Route<Screen>], to end: [Route<Screen>]) async {
112113
let binding = Binding(
113114
get: { [weak owner] in owner?[keyPath: keyPath] ?? [] },

0 commit comments

Comments
 (0)