bolsinga / site

SwiftUI Package to display Shows
https://www.bolsinga.com
3 stars 1 forks source link

StrictConcurrency warning in RefreshCommand #666

Closed bolsinga closed 2 days ago

bolsinga commented 11 months ago

Here is the warning:

/Users/bolsinga/Documents/code/git/site/Sources/Site/Music/UI/RefreshCommand.swift:17:14: warning: main actor-isolated property 'body' cannot be used to satisfy nonisolated protocol requirement
  public var body: some Commands {
             ^
SwiftUI.Commands:6:26: note: 'body' declared here
    @CommandsBuilder var body: Self.Body { get }
                         ^

View has the body declared @MainActor but Commands body does not. I filed FB13212559 on this.