Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit b573993

Browse files
Update README.md
1 parent 01a03e5 commit b573993

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

‎README.md‎

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -167,12 +167,12 @@ To ensure .play is applied before .pause, you can use `Task` to schedule the sec
167167
**.play → .pause → .play**
168168

169169
```swift
170-
playbackCommand = .play
170+
playbackCommand = .play
171171

172-
Task {
173-
playbackCommand = .pause
174-
Task { playbackCommand = .play } // This runs AFTER `.pause`
175-
}
172+
Task {
173+
playbackCommand = .pause
174+
Task { playbackCommand = .play } // This runs AFTER `.pause`
175+
}
176176
```
177177
If playbackCommand is critical for playback logic, use an ObservableObject with @Published instead of @State. This avoids SwiftUI’s state batching
178178
```swift

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /