Commit 8871d5f
fix(app): mark ImageCRCApp @mainactor for Swift 5.10 compatibility
CI on Swift 5.10 (Xcode 15.4) reported `call to main actor-isolated
initializer 'init(converter:fileChooser:)' in a synchronous nonisolated
context` at the @State default-value site for ConversionViewModel().
ConversionViewModel is @mainactor, so its initialiser is too.
Swift 6's SDK propagates @mainactor through SwiftUI's App protocol
implicitly; Swift 5.10's does not. Annotate explicitly so both
toolchains compile clean. Same pattern as the previous ContentView fix.
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>1 parent a0ff1cf commit 8871d5f
1 file changed
Lines changed: 1 addition & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
3 | 3 | | |
| 4 | + | |
4 | 5 | | |
5 | 6 | | |
6 | 7 | | |
| |||
0 commit comments