Skip to content

Commit 3091def

Browse files
stephencelisgithub-actions[bot]
authored andcommitted
Run swift-format
1 parent 5c8f562 commit 3091def

File tree

2 files changed

+9
-7
lines changed

2 files changed

+9
-7
lines changed

Sources/SwiftNavigation/ButtonState.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -148,7 +148,7 @@ public struct ButtonStateAction<Action> {
148148
) -> ButtonStateAction<NewAction> {
149149
switch self.type {
150150
#if canImport(SwiftUI)
151-
case .animatedSend(let action, animation: let animation):
151+
case .animatedSend(let action, let animation):
152152
return .send(transform(action), animation: animation)
153153
#endif
154154
case .send(let action):

Sources/SwiftNavigation/Observe.swift

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -104,9 +104,10 @@ func _observe(
104104

105105
func _observe(
106106
_ apply: @escaping @Sendable (_ transaction: UITransaction) -> Void,
107-
task: @escaping @Sendable (
108-
_ transaction: UITransaction, _ operation: @escaping @Sendable () -> Void
109-
) -> Void
107+
task:
108+
@escaping @Sendable (
109+
_ transaction: UITransaction, _ operation: @escaping @Sendable () -> Void
110+
) -> Void
110111
) -> ObserveToken {
111112
let token = ObserveToken()
112113
onChange(
@@ -138,9 +139,10 @@ func _observe(
138139

139140
private func onChange(
140141
_ apply: @escaping @Sendable (_ transaction: UITransaction) -> Void,
141-
task: @escaping @Sendable (
142-
_ transaction: UITransaction, _ operation: @escaping @Sendable () -> Void
143-
) -> Void
142+
task:
143+
@escaping @Sendable (
144+
_ transaction: UITransaction, _ operation: @escaping @Sendable () -> Void
145+
) -> Void
144146
) {
145147
withPerceptionTracking {
146148
apply(.current)

0 commit comments

Comments
 (0)