Build Information
Successful build of swiftui-loop-videoplayer, reference 1.7.5 (127df5
), with Swift 6.0 (beta) for macOS (SPM) on 14 Sep 2024 13:41:08 UTC.
Swift 6 data race errors: 0
Build Command
env DEVELOPER_DIR=/Applications/Xcode-16.0.0-Release.Candidate.app xcrun swift build --arch arm64 -Xswiftc -Xfrontend -Xswiftc -stats-output-dir -Xswiftc -Xfrontend -Xswiftc .stats -Xswiftc -strict-concurrency=complete
Build Log
221 | volumeObserver = player.observe(\.volume, options: [.new, .old]) { [weak self] player, change in
222 | if let newVolume = change.newValue{
223 | self?.delegate?.volumeDidChange(to: newVolume)
| `- warning: call to main actor-isolated instance method 'volumeDidChange(to:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
224 | }
225 | }
/Users/admin/builder/spi-builder-workspace/Sources/swiftui-loop-videoplayer/protocol/helpers/PlayerDelegateProtocol.swift:73:10: note: calls to instance method 'volumeDidChange(to:)' from outside of its actor context are implicitly asynchronous
71 | /// - Parameter newVolume: The new volume level, expressed as a float between 0.0 (muted) and 1.0 (maximum volume).
72 | @MainActor
73 | func volumeDidChange(to newVolume: Float)
| `- note: calls to instance method 'volumeDidChange(to:)' from outside of its actor context are implicitly asynchronous
74 |
75 | }
/Users/admin/builder/spi-builder-workspace/Sources/swiftui-loop-videoplayer/protocol/player/LoopingPlayerProtocol.swift:213:33: warning: sending value of non-Sendable type 'any PlayerDelegateProtocol' with later accesses from nonisolated context to main actor-isolated context risks causing data races; this is an error in the Swift 6 language mode
211 | // Detecting when the current item is changed
212 | if let newItem = change.newValue as? AVPlayerItem {
213 | self?.delegate?.currentItemDidChange(to: newItem)
| `- warning: sending value of non-Sendable type 'any PlayerDelegateProtocol' with later accesses from nonisolated context to main actor-isolated context risks causing data races; this is an error in the Swift 6 language mode
214 | } else if change.newValue == nil {
215 | self?.delegate?.currentItemWasRemoved()
216 | }
217 |
218 | self?.clearStatusObserver()
| `- note: access can happen concurrently
219 | }
220 |
/Users/admin/builder/spi-builder-workspace/Sources/swiftui-loop-videoplayer/protocol/player/LoopingPlayerProtocol.swift:215:33: warning: sending value of non-Sendable type 'any PlayerDelegateProtocol' with later accesses from nonisolated context to main actor-isolated context risks causing data races; this is an error in the Swift 6 language mode
213 | self?.delegate?.currentItemDidChange(to: newItem)
214 | } else if change.newValue == nil {
215 | self?.delegate?.currentItemWasRemoved()
| `- warning: sending value of non-Sendable type 'any PlayerDelegateProtocol' with later accesses from nonisolated context to main actor-isolated context risks causing data races; this is an error in the Swift 6 language mode
216 | }
217 |
218 | self?.clearStatusObserver()
| `- note: access can happen concurrently
219 | }
220 |
[12/43] Compiling swiftui_loop_videoplayer VPErrors.swift
[13/43] Compiling swiftui_loop_videoplayer Array+.swift
[14/43] Compiling swiftui_loop_videoplayer CMTime+.swift
[15/43] Compiling swiftui_loop_videoplayer URL+.swift
[16/43] Compiling swiftui_loop_videoplayer View+.swift
/Users/admin/builder/spi-builder-workspace/Sources/swiftui-loop-videoplayer/fn/constraintsFn.swift:19:10: warning: main actor-isolated property 'translatesAutoresizingMaskIntoConstraints' can not be mutated from a nonisolated context; this is an error in the Swift 6 language mode
16 | /// - view: The view for which full-screen constraints will be applied.
17 | /// - containerView: The parent view in which `view` will be constrained to match the full size.
18 | func activateFullScreenConstraints(for view: NSView, in containerView: NSView) {
| `- note: add '@MainActor' to make global function 'activateFullScreenConstraints(for:in:)' part of global actor 'MainActor'
19 | view.translatesAutoresizingMaskIntoConstraints = false
| `- warning: main actor-isolated property 'translatesAutoresizingMaskIntoConstraints' can not be mutated from a nonisolated context; this is an error in the Swift 6 language mode
20 | NSLayoutConstraint.activate([
21 | view.leadingAnchor.constraint(equalTo: containerView.leadingAnchor),
AppKit.NSView:3:25: note: mutation of this property is only permitted within the actor
1 | extension NSView {
2 | @available(macOS 10.7, *)
3 | @MainActor open var translatesAutoresizingMaskIntoConstraints: Bool { get set }
| `- note: mutation of this property is only permitted within the actor
4 | @available(macOS 10.7, *)
5 | open class var requiresConstraintBasedLayout: Bool { get }
/Users/admin/builder/spi-builder-workspace/Sources/swiftui-loop-videoplayer/fn/constraintsFn.swift:21:14: warning: main actor-isolated property 'leadingAnchor' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
16 | /// - view: The view for which full-screen constraints will be applied.
17 | /// - containerView: The parent view in which `view` will be constrained to match the full size.
18 | func activateFullScreenConstraints(for view: NSView, in containerView: NSView) {
| `- note: add '@MainActor' to make global function 'activateFullScreenConstraints(for:in:)' part of global actor 'MainActor'
19 | view.translatesAutoresizingMaskIntoConstraints = false
20 | NSLayoutConstraint.activate([
21 | view.leadingAnchor.constraint(equalTo: containerView.leadingAnchor),
| `- warning: main actor-isolated property 'leadingAnchor' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
22 | view.trailingAnchor.constraint(equalTo: containerView.trailingAnchor),
23 | view.topAnchor.constraint(equalTo: containerView.topAnchor),
AppKit.NSView:3:25: note: property declared here
1 | extension NSView {
2 | @available(macOS 10.11, *)
3 | @MainActor open var leadingAnchor: NSLayoutXAxisAnchor { get }
| `- note: property declared here
4 | @available(macOS 10.11, *)
5 | open var trailingAnchor: NSLayoutXAxisAnchor { get }
/Users/admin/builder/spi-builder-workspace/Sources/swiftui-loop-videoplayer/fn/constraintsFn.swift:21:62: warning: main actor-isolated property 'leadingAnchor' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
16 | /// - view: The view for which full-screen constraints will be applied.
17 | /// - containerView: The parent view in which `view` will be constrained to match the full size.
18 | func activateFullScreenConstraints(for view: NSView, in containerView: NSView) {
| `- note: add '@MainActor' to make global function 'activateFullScreenConstraints(for:in:)' part of global actor 'MainActor'
19 | view.translatesAutoresizingMaskIntoConstraints = false
20 | NSLayoutConstraint.activate([
21 | view.leadingAnchor.constraint(equalTo: containerView.leadingAnchor),
| `- warning: main actor-isolated property 'leadingAnchor' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
22 | view.trailingAnchor.constraint(equalTo: containerView.trailingAnchor),
23 | view.topAnchor.constraint(equalTo: containerView.topAnchor),
AppKit.NSView:3:25: note: property declared here
1 | extension NSView {
2 | @available(macOS 10.11, *)
3 | @MainActor open var leadingAnchor: NSLayoutXAxisAnchor { get }
| `- note: property declared here
4 | @available(macOS 10.11, *)
5 | open var trailingAnchor: NSLayoutXAxisAnchor { get }
/Users/admin/builder/spi-builder-workspace/Sources/swiftui-loop-videoplayer/fn/constraintsFn.swift:22:14: warning: main actor-isolated property 'trailingAnchor' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
16 | /// - view: The view for which full-screen constraints will be applied.
17 | /// - containerView: The parent view in which `view` will be constrained to match the full size.
18 | func activateFullScreenConstraints(for view: NSView, in containerView: NSView) {
| `- note: add '@MainActor' to make global function 'activateFullScreenConstraints(for:in:)' part of global actor 'MainActor'
19 | view.translatesAutoresizingMaskIntoConstraints = false
20 | NSLayoutConstraint.activate([
21 | view.leadingAnchor.constraint(equalTo: containerView.leadingAnchor),
22 | view.trailingAnchor.constraint(equalTo: containerView.trailingAnchor),
| `- warning: main actor-isolated property 'trailingAnchor' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
23 | view.topAnchor.constraint(equalTo: containerView.topAnchor),
24 | view.bottomAnchor.constraint(equalTo: containerView.bottomAnchor)
AppKit.NSView:5:14: note: property declared here
3 | @MainActor open var leadingAnchor: NSLayoutXAxisAnchor { get }
4 | @available(macOS 10.11, *)
5 | open var trailingAnchor: NSLayoutXAxisAnchor { get }
| `- note: property declared here
6 | @available(macOS 10.11, *)
7 | open var leftAnchor: NSLayoutXAxisAnchor { get }
/Users/admin/builder/spi-builder-workspace/Sources/swiftui-loop-videoplayer/fn/constraintsFn.swift:22:63: warning: main actor-isolated property 'trailingAnchor' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
16 | /// - view: The view for which full-screen constraints will be applied.
17 | /// - containerView: The parent view in which `view` will be constrained to match the full size.
18 | func activateFullScreenConstraints(for view: NSView, in containerView: NSView) {
| `- note: add '@MainActor' to make global function 'activateFullScreenConstraints(for:in:)' part of global actor 'MainActor'
19 | view.translatesAutoresizingMaskIntoConstraints = false
20 | NSLayoutConstraint.activate([
21 | view.leadingAnchor.constraint(equalTo: containerView.leadingAnchor),
22 | view.trailingAnchor.constraint(equalTo: containerView.trailingAnchor),
| `- warning: main actor-isolated property 'trailingAnchor' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
23 | view.topAnchor.constraint(equalTo: containerView.topAnchor),
24 | view.bottomAnchor.constraint(equalTo: containerView.bottomAnchor)
AppKit.NSView:5:14: note: property declared here
3 | @MainActor open var leadingAnchor: NSLayoutXAxisAnchor { get }
4 | @available(macOS 10.11, *)
5 | open var trailingAnchor: NSLayoutXAxisAnchor { get }
| `- note: property declared here
6 | @available(macOS 10.11, *)
7 | open var leftAnchor: NSLayoutXAxisAnchor { get }
/Users/admin/builder/spi-builder-workspace/Sources/swiftui-loop-videoplayer/fn/constraintsFn.swift:23:14: warning: main actor-isolated property 'topAnchor' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
16 | /// - view: The view for which full-screen constraints will be applied.
17 | /// - containerView: The parent view in which `view` will be constrained to match the full size.
18 | func activateFullScreenConstraints(for view: NSView, in containerView: NSView) {
| `- note: add '@MainActor' to make global function 'activateFullScreenConstraints(for:in:)' part of global actor 'MainActor'
19 | view.translatesAutoresizingMaskIntoConstraints = false
20 | NSLayoutConstraint.activate([
21 | view.leadingAnchor.constraint(equalTo: containerView.leadingAnchor),
22 | view.trailingAnchor.constraint(equalTo: containerView.trailingAnchor),
23 | view.topAnchor.constraint(equalTo: containerView.topAnchor),
| `- warning: main actor-isolated property 'topAnchor' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
24 | view.bottomAnchor.constraint(equalTo: containerView.bottomAnchor)
25 | ])
AppKit.NSView:11:14: note: property declared here
9 | open var rightAnchor: NSLayoutXAxisAnchor { get }
10 | @available(macOS 10.11, *)
11 | open var topAnchor: NSLayoutYAxisAnchor { get }
| `- note: property declared here
12 | @available(macOS 10.11, *)
13 | open var bottomAnchor: NSLayoutYAxisAnchor { get }
/Users/admin/builder/spi-builder-workspace/Sources/swiftui-loop-videoplayer/fn/constraintsFn.swift:23:58: warning: main actor-isolated property 'topAnchor' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
16 | /// - view: The view for which full-screen constraints will be applied.
17 | /// - containerView: The parent view in which `view` will be constrained to match the full size.
18 | func activateFullScreenConstraints(for view: NSView, in containerView: NSView) {
| `- note: add '@MainActor' to make global function 'activateFullScreenConstraints(for:in:)' part of global actor 'MainActor'
19 | view.translatesAutoresizingMaskIntoConstraints = false
20 | NSLayoutConstraint.activate([
21 | view.leadingAnchor.constraint(equalTo: containerView.leadingAnchor),
22 | view.trailingAnchor.constraint(equalTo: containerView.trailingAnchor),
23 | view.topAnchor.constraint(equalTo: containerView.topAnchor),
| `- warning: main actor-isolated property 'topAnchor' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
24 | view.bottomAnchor.constraint(equalTo: containerView.bottomAnchor)
25 | ])
AppKit.NSView:11:14: note: property declared here
9 | open var rightAnchor: NSLayoutXAxisAnchor { get }
10 | @available(macOS 10.11, *)
11 | open var topAnchor: NSLayoutYAxisAnchor { get }
| `- note: property declared here
12 | @available(macOS 10.11, *)
13 | open var bottomAnchor: NSLayoutYAxisAnchor { get }
/Users/admin/builder/spi-builder-workspace/Sources/swiftui-loop-videoplayer/fn/constraintsFn.swift:24:14: warning: main actor-isolated property 'bottomAnchor' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
16 | /// - view: The view for which full-screen constraints will be applied.
17 | /// - containerView: The parent view in which `view` will be constrained to match the full size.
18 | func activateFullScreenConstraints(for view: NSView, in containerView: NSView) {
| `- note: add '@MainActor' to make global function 'activateFullScreenConstraints(for:in:)' part of global actor 'MainActor'
19 | view.translatesAutoresizingMaskIntoConstraints = false
20 | NSLayoutConstraint.activate([
:
22 | view.trailingAnchor.constraint(equalTo: containerView.trailingAnchor),
23 | view.topAnchor.constraint(equalTo: containerView.topAnchor),
24 | view.bottomAnchor.constraint(equalTo: containerView.bottomAnchor)
| `- warning: main actor-isolated property 'bottomAnchor' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
25 | ])
26 | }
AppKit.NSView:13:14: note: property declared here
11 | open var topAnchor: NSLayoutYAxisAnchor { get }
12 | @available(macOS 10.11, *)
13 | open var bottomAnchor: NSLayoutYAxisAnchor { get }
| `- note: property declared here
14 | @available(macOS 10.11, *)
15 | open var widthAnchor: NSLayoutDimension { get }
/Users/admin/builder/spi-builder-workspace/Sources/swiftui-loop-videoplayer/fn/constraintsFn.swift:24:61: warning: main actor-isolated property 'bottomAnchor' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
16 | /// - view: The view for which full-screen constraints will be applied.
17 | /// - containerView: The parent view in which `view` will be constrained to match the full size.
18 | func activateFullScreenConstraints(for view: NSView, in containerView: NSView) {
| `- note: add '@MainActor' to make global function 'activateFullScreenConstraints(for:in:)' part of global actor 'MainActor'
19 | view.translatesAutoresizingMaskIntoConstraints = false
20 | NSLayoutConstraint.activate([
:
22 | view.trailingAnchor.constraint(equalTo: containerView.trailingAnchor),
23 | view.topAnchor.constraint(equalTo: containerView.topAnchor),
24 | view.bottomAnchor.constraint(equalTo: containerView.bottomAnchor)
| `- warning: main actor-isolated property 'bottomAnchor' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
25 | ])
26 | }
AppKit.NSView:13:14: note: property declared here
11 | open var topAnchor: NSLayoutYAxisAnchor { get }
12 | @available(macOS 10.11, *)
13 | open var bottomAnchor: NSLayoutYAxisAnchor { get }
| `- note: property declared here
14 | @available(macOS 10.11, *)
15 | open var widthAnchor: NSLayoutDimension { get }
[17/43] Compiling swiftui_loop_videoplayer constraintsFn.swift
/Users/admin/builder/spi-builder-workspace/Sources/swiftui-loop-videoplayer/fn/constraintsFn.swift:19:10: warning: main actor-isolated property 'translatesAutoresizingMaskIntoConstraints' can not be mutated from a nonisolated context; this is an error in the Swift 6 language mode
16 | /// - view: The view for which full-screen constraints will be applied.
17 | /// - containerView: The parent view in which `view` will be constrained to match the full size.
18 | func activateFullScreenConstraints(for view: NSView, in containerView: NSView) {
| `- note: add '@MainActor' to make global function 'activateFullScreenConstraints(for:in:)' part of global actor 'MainActor'
19 | view.translatesAutoresizingMaskIntoConstraints = false
| `- warning: main actor-isolated property 'translatesAutoresizingMaskIntoConstraints' can not be mutated from a nonisolated context; this is an error in the Swift 6 language mode
20 | NSLayoutConstraint.activate([
21 | view.leadingAnchor.constraint(equalTo: containerView.leadingAnchor),
AppKit.NSView:3:25: note: mutation of this property is only permitted within the actor
1 | extension NSView {
2 | @available(macOS 10.7, *)
3 | @MainActor open var translatesAutoresizingMaskIntoConstraints: Bool { get set }
| `- note: mutation of this property is only permitted within the actor
4 | @available(macOS 10.7, *)
5 | open class var requiresConstraintBasedLayout: Bool { get }
/Users/admin/builder/spi-builder-workspace/Sources/swiftui-loop-videoplayer/fn/constraintsFn.swift:21:14: warning: main actor-isolated property 'leadingAnchor' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
16 | /// - view: The view for which full-screen constraints will be applied.
17 | /// - containerView: The parent view in which `view` will be constrained to match the full size.
18 | func activateFullScreenConstraints(for view: NSView, in containerView: NSView) {
| `- note: add '@MainActor' to make global function 'activateFullScreenConstraints(for:in:)' part of global actor 'MainActor'
19 | view.translatesAutoresizingMaskIntoConstraints = false
20 | NSLayoutConstraint.activate([
21 | view.leadingAnchor.constraint(equalTo: containerView.leadingAnchor),
| `- warning: main actor-isolated property 'leadingAnchor' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
22 | view.trailingAnchor.constraint(equalTo: containerView.trailingAnchor),
23 | view.topAnchor.constraint(equalTo: containerView.topAnchor),
AppKit.NSView:3:25: note: property declared here
1 | extension NSView {
2 | @available(macOS 10.11, *)
3 | @MainActor open var leadingAnchor: NSLayoutXAxisAnchor { get }
| `- note: property declared here
4 | @available(macOS 10.11, *)
5 | open var trailingAnchor: NSLayoutXAxisAnchor { get }
/Users/admin/builder/spi-builder-workspace/Sources/swiftui-loop-videoplayer/fn/constraintsFn.swift:21:62: warning: main actor-isolated property 'leadingAnchor' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
16 | /// - view: The view for which full-screen constraints will be applied.
17 | /// - containerView: The parent view in which `view` will be constrained to match the full size.
18 | func activateFullScreenConstraints(for view: NSView, in containerView: NSView) {
| `- note: add '@MainActor' to make global function 'activateFullScreenConstraints(for:in:)' part of global actor 'MainActor'
19 | view.translatesAutoresizingMaskIntoConstraints = false
20 | NSLayoutConstraint.activate([
21 | view.leadingAnchor.constraint(equalTo: containerView.leadingAnchor),
| `- warning: main actor-isolated property 'leadingAnchor' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
22 | view.trailingAnchor.constraint(equalTo: containerView.trailingAnchor),
23 | view.topAnchor.constraint(equalTo: containerView.topAnchor),
AppKit.NSView:3:25: note: property declared here
1 | extension NSView {
2 | @available(macOS 10.11, *)
3 | @MainActor open var leadingAnchor: NSLayoutXAxisAnchor { get }
| `- note: property declared here
4 | @available(macOS 10.11, *)
5 | open var trailingAnchor: NSLayoutXAxisAnchor { get }
/Users/admin/builder/spi-builder-workspace/Sources/swiftui-loop-videoplayer/fn/constraintsFn.swift:22:14: warning: main actor-isolated property 'trailingAnchor' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
16 | /// - view: The view for which full-screen constraints will be applied.
17 | /// - containerView: The parent view in which `view` will be constrained to match the full size.
18 | func activateFullScreenConstraints(for view: NSView, in containerView: NSView) {
| `- note: add '@MainActor' to make global function 'activateFullScreenConstraints(for:in:)' part of global actor 'MainActor'
19 | view.translatesAutoresizingMaskIntoConstraints = false
20 | NSLayoutConstraint.activate([
21 | view.leadingAnchor.constraint(equalTo: containerView.leadingAnchor),
22 | view.trailingAnchor.constraint(equalTo: containerView.trailingAnchor),
| `- warning: main actor-isolated property 'trailingAnchor' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
23 | view.topAnchor.constraint(equalTo: containerView.topAnchor),
24 | view.bottomAnchor.constraint(equalTo: containerView.bottomAnchor)
AppKit.NSView:5:14: note: property declared here
3 | @MainActor open var leadingAnchor: NSLayoutXAxisAnchor { get }
4 | @available(macOS 10.11, *)
5 | open var trailingAnchor: NSLayoutXAxisAnchor { get }
| `- note: property declared here
6 | @available(macOS 10.11, *)
7 | open var leftAnchor: NSLayoutXAxisAnchor { get }
/Users/admin/builder/spi-builder-workspace/Sources/swiftui-loop-videoplayer/fn/constraintsFn.swift:22:63: warning: main actor-isolated property 'trailingAnchor' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
16 | /// - view: The view for which full-screen constraints will be applied.
17 | /// - containerView: The parent view in which `view` will be constrained to match the full size.
18 | func activateFullScreenConstraints(for view: NSView, in containerView: NSView) {
| `- note: add '@MainActor' to make global function 'activateFullScreenConstraints(for:in:)' part of global actor 'MainActor'
19 | view.translatesAutoresizingMaskIntoConstraints = false
20 | NSLayoutConstraint.activate([
21 | view.leadingAnchor.constraint(equalTo: containerView.leadingAnchor),
22 | view.trailingAnchor.constraint(equalTo: containerView.trailingAnchor),
| `- warning: main actor-isolated property 'trailingAnchor' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
23 | view.topAnchor.constraint(equalTo: containerView.topAnchor),
24 | view.bottomAnchor.constraint(equalTo: containerView.bottomAnchor)
AppKit.NSView:5:14: note: property declared here
3 | @MainActor open var leadingAnchor: NSLayoutXAxisAnchor { get }
4 | @available(macOS 10.11, *)
5 | open var trailingAnchor: NSLayoutXAxisAnchor { get }
| `- note: property declared here
6 | @available(macOS 10.11, *)
7 | open var leftAnchor: NSLayoutXAxisAnchor { get }
/Users/admin/builder/spi-builder-workspace/Sources/swiftui-loop-videoplayer/fn/constraintsFn.swift:23:14: warning: main actor-isolated property 'topAnchor' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
16 | /// - view: The view for which full-screen constraints will be applied.
17 | /// - containerView: The parent view in which `view` will be constrained to match the full size.
18 | func activateFullScreenConstraints(for view: NSView, in containerView: NSView) {
| `- note: add '@MainActor' to make global function 'activateFullScreenConstraints(for:in:)' part of global actor 'MainActor'
19 | view.translatesAutoresizingMaskIntoConstraints = false
20 | NSLayoutConstraint.activate([
21 | view.leadingAnchor.constraint(equalTo: containerView.leadingAnchor),
22 | view.trailingAnchor.constraint(equalTo: containerView.trailingAnchor),
23 | view.topAnchor.constraint(equalTo: containerView.topAnchor),
| `- warning: main actor-isolated property 'topAnchor' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
24 | view.bottomAnchor.constraint(equalTo: containerView.bottomAnchor)
25 | ])
AppKit.NSView:11:14: note: property declared here
9 | open var rightAnchor: NSLayoutXAxisAnchor { get }
10 | @available(macOS 10.11, *)
11 | open var topAnchor: NSLayoutYAxisAnchor { get }
| `- note: property declared here
12 | @available(macOS 10.11, *)
13 | open var bottomAnchor: NSLayoutYAxisAnchor { get }
/Users/admin/builder/spi-builder-workspace/Sources/swiftui-loop-videoplayer/fn/constraintsFn.swift:23:58: warning: main actor-isolated property 'topAnchor' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
16 | /// - view: The view for which full-screen constraints will be applied.
17 | /// - containerView: The parent view in which `view` will be constrained to match the full size.
18 | func activateFullScreenConstraints(for view: NSView, in containerView: NSView) {
| `- note: add '@MainActor' to make global function 'activateFullScreenConstraints(for:in:)' part of global actor 'MainActor'
19 | view.translatesAutoresizingMaskIntoConstraints = false
20 | NSLayoutConstraint.activate([
21 | view.leadingAnchor.constraint(equalTo: containerView.leadingAnchor),
22 | view.trailingAnchor.constraint(equalTo: containerView.trailingAnchor),
23 | view.topAnchor.constraint(equalTo: containerView.topAnchor),
| `- warning: main actor-isolated property 'topAnchor' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
24 | view.bottomAnchor.constraint(equalTo: containerView.bottomAnchor)
25 | ])
AppKit.NSView:11:14: note: property declared here
9 | open var rightAnchor: NSLayoutXAxisAnchor { get }
10 | @available(macOS 10.11, *)
11 | open var topAnchor: NSLayoutYAxisAnchor { get }
| `- note: property declared here
12 | @available(macOS 10.11, *)
13 | open var bottomAnchor: NSLayoutYAxisAnchor { get }
/Users/admin/builder/spi-builder-workspace/Sources/swiftui-loop-videoplayer/fn/constraintsFn.swift:24:14: warning: main actor-isolated property 'bottomAnchor' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
16 | /// - view: The view for which full-screen constraints will be applied.
17 | /// - containerView: The parent view in which `view` will be constrained to match the full size.
18 | func activateFullScreenConstraints(for view: NSView, in containerView: NSView) {
| `- note: add '@MainActor' to make global function 'activateFullScreenConstraints(for:in:)' part of global actor 'MainActor'
19 | view.translatesAutoresizingMaskIntoConstraints = false
20 | NSLayoutConstraint.activate([
:
22 | view.trailingAnchor.constraint(equalTo: containerView.trailingAnchor),
23 | view.topAnchor.constraint(equalTo: containerView.topAnchor),
24 | view.bottomAnchor.constraint(equalTo: containerView.bottomAnchor)
| `- warning: main actor-isolated property 'bottomAnchor' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
25 | ])
26 | }
AppKit.NSView:13:14: note: property declared here
11 | open var topAnchor: NSLayoutYAxisAnchor { get }
12 | @available(macOS 10.11, *)
13 | open var bottomAnchor: NSLayoutYAxisAnchor { get }
| `- note: property declared here
14 | @available(macOS 10.11, *)
15 | open var widthAnchor: NSLayoutDimension { get }
/Users/admin/builder/spi-builder-workspace/Sources/swiftui-loop-videoplayer/fn/constraintsFn.swift:24:61: warning: main actor-isolated property 'bottomAnchor' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
16 | /// - view: The view for which full-screen constraints will be applied.
17 | /// - containerView: The parent view in which `view` will be constrained to match the full size.
18 | func activateFullScreenConstraints(for view: NSView, in containerView: NSView) {
| `- note: add '@MainActor' to make global function 'activateFullScreenConstraints(for:in:)' part of global actor 'MainActor'
19 | view.translatesAutoresizingMaskIntoConstraints = false
20 | NSLayoutConstraint.activate([
:
22 | view.trailingAnchor.constraint(equalTo: containerView.trailingAnchor),
23 | view.topAnchor.constraint(equalTo: containerView.topAnchor),
24 | view.bottomAnchor.constraint(equalTo: containerView.bottomAnchor)
| `- warning: main actor-isolated property 'bottomAnchor' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
25 | ])
26 | }
AppKit.NSView:13:14: note: property declared here
11 | open var topAnchor: NSLayoutYAxisAnchor { get }
12 | @available(macOS 10.11, *)
13 | open var bottomAnchor: NSLayoutYAxisAnchor { get }
| `- note: property declared here
14 | @available(macOS 10.11, *)
15 | open var widthAnchor: NSLayoutDimension { get }
[18/43] Compiling swiftui_loop_videoplayer fn+.swift
/Users/admin/builder/spi-builder-workspace/Sources/swiftui-loop-videoplayer/fn/constraintsFn.swift:19:10: warning: main actor-isolated property 'translatesAutoresizingMaskIntoConstraints' can not be mutated from a nonisolated context; this is an error in the Swift 6 language mode
16 | /// - view: The view for which full-screen constraints will be applied.
17 | /// - containerView: The parent view in which `view` will be constrained to match the full size.
18 | func activateFullScreenConstraints(for view: NSView, in containerView: NSView) {
| `- note: add '@MainActor' to make global function 'activateFullScreenConstraints(for:in:)' part of global actor 'MainActor'
19 | view.translatesAutoresizingMaskIntoConstraints = false
| `- warning: main actor-isolated property 'translatesAutoresizingMaskIntoConstraints' can not be mutated from a nonisolated context; this is an error in the Swift 6 language mode
20 | NSLayoutConstraint.activate([
21 | view.leadingAnchor.constraint(equalTo: containerView.leadingAnchor),
AppKit.NSView:3:25: note: mutation of this property is only permitted within the actor
1 | extension NSView {
2 | @available(macOS 10.7, *)
3 | @MainActor open var translatesAutoresizingMaskIntoConstraints: Bool { get set }
| `- note: mutation of this property is only permitted within the actor
4 | @available(macOS 10.7, *)
5 | open class var requiresConstraintBasedLayout: Bool { get }
/Users/admin/builder/spi-builder-workspace/Sources/swiftui-loop-videoplayer/fn/constraintsFn.swift:21:14: warning: main actor-isolated property 'leadingAnchor' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
16 | /// - view: The view for which full-screen constraints will be applied.
17 | /// - containerView: The parent view in which `view` will be constrained to match the full size.
18 | func activateFullScreenConstraints(for view: NSView, in containerView: NSView) {
| `- note: add '@MainActor' to make global function 'activateFullScreenConstraints(for:in:)' part of global actor 'MainActor'
19 | view.translatesAutoresizingMaskIntoConstraints = false
20 | NSLayoutConstraint.activate([
21 | view.leadingAnchor.constraint(equalTo: containerView.leadingAnchor),
| `- warning: main actor-isolated property 'leadingAnchor' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
22 | view.trailingAnchor.constraint(equalTo: containerView.trailingAnchor),
23 | view.topAnchor.constraint(equalTo: containerView.topAnchor),
AppKit.NSView:3:25: note: property declared here
1 | extension NSView {
2 | @available(macOS 10.11, *)
3 | @MainActor open var leadingAnchor: NSLayoutXAxisAnchor { get }
| `- note: property declared here
4 | @available(macOS 10.11, *)
5 | open var trailingAnchor: NSLayoutXAxisAnchor { get }
/Users/admin/builder/spi-builder-workspace/Sources/swiftui-loop-videoplayer/fn/constraintsFn.swift:21:62: warning: main actor-isolated property 'leadingAnchor' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
16 | /// - view: The view for which full-screen constraints will be applied.
17 | /// - containerView: The parent view in which `view` will be constrained to match the full size.
18 | func activateFullScreenConstraints(for view: NSView, in containerView: NSView) {
| `- note: add '@MainActor' to make global function 'activateFullScreenConstraints(for:in:)' part of global actor 'MainActor'
19 | view.translatesAutoresizingMaskIntoConstraints = false
20 | NSLayoutConstraint.activate([
21 | view.leadingAnchor.constraint(equalTo: containerView.leadingAnchor),
| `- warning: main actor-isolated property 'leadingAnchor' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
22 | view.trailingAnchor.constraint(equalTo: containerView.trailingAnchor),
23 | view.topAnchor.constraint(equalTo: containerView.topAnchor),
AppKit.NSView:3:25: note: property declared here
1 | extension NSView {
2 | @available(macOS 10.11, *)
3 | @MainActor open var leadingAnchor: NSLayoutXAxisAnchor { get }
| `- note: property declared here
4 | @available(macOS 10.11, *)
5 | open var trailingAnchor: NSLayoutXAxisAnchor { get }
/Users/admin/builder/spi-builder-workspace/Sources/swiftui-loop-videoplayer/fn/constraintsFn.swift:22:14: warning: main actor-isolated property 'trailingAnchor' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
16 | /// - view: The view for which full-screen constraints will be applied.
17 | /// - containerView: The parent view in which `view` will be constrained to match the full size.
18 | func activateFullScreenConstraints(for view: NSView, in containerView: NSView) {
| `- note: add '@MainActor' to make global function 'activateFullScreenConstraints(for:in:)' part of global actor 'MainActor'
19 | view.translatesAutoresizingMaskIntoConstraints = false
20 | NSLayoutConstraint.activate([
21 | view.leadingAnchor.constraint(equalTo: containerView.leadingAnchor),
22 | view.trailingAnchor.constraint(equalTo: containerView.trailingAnchor),
| `- warning: main actor-isolated property 'trailingAnchor' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
23 | view.topAnchor.constraint(equalTo: containerView.topAnchor),
24 | view.bottomAnchor.constraint(equalTo: containerView.bottomAnchor)
AppKit.NSView:5:14: note: property declared here
3 | @MainActor open var leadingAnchor: NSLayoutXAxisAnchor { get }
4 | @available(macOS 10.11, *)
5 | open var trailingAnchor: NSLayoutXAxisAnchor { get }
| `- note: property declared here
6 | @available(macOS 10.11, *)
7 | open var leftAnchor: NSLayoutXAxisAnchor { get }
/Users/admin/builder/spi-builder-workspace/Sources/swiftui-loop-videoplayer/fn/constraintsFn.swift:22:63: warning: main actor-isolated property 'trailingAnchor' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
16 | /// - view: The view for which full-screen constraints will be applied.
17 | /// - containerView: The parent view in which `view` will be constrained to match the full size.
18 | func activateFullScreenConstraints(for view: NSView, in containerView: NSView) {
| `- note: add '@MainActor' to make global function 'activateFullScreenConstraints(for:in:)' part of global actor 'MainActor'
19 | view.translatesAutoresizingMaskIntoConstraints = false
20 | NSLayoutConstraint.activate([
21 | view.leadingAnchor.constraint(equalTo: containerView.leadingAnchor),
22 | view.trailingAnchor.constraint(equalTo: containerView.trailingAnchor),
| `- warning: main actor-isolated property 'trailingAnchor' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
23 | view.topAnchor.constraint(equalTo: containerView.topAnchor),
24 | view.bottomAnchor.constraint(equalTo: containerView.bottomAnchor)
AppKit.NSView:5:14: note: property declared here
3 | @MainActor open var leadingAnchor: NSLayoutXAxisAnchor { get }
4 | @available(macOS 10.11, *)
5 | open var trailingAnchor: NSLayoutXAxisAnchor { get }
| `- note: property declared here
6 | @available(macOS 10.11, *)
7 | open var leftAnchor: NSLayoutXAxisAnchor { get }
/Users/admin/builder/spi-builder-workspace/Sources/swiftui-loop-videoplayer/fn/constraintsFn.swift:23:14: warning: main actor-isolated property 'topAnchor' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
16 | /// - view: The view for which full-screen constraints will be applied.
17 | /// - containerView: The parent view in which `view` will be constrained to match the full size.
18 | func activateFullScreenConstraints(for view: NSView, in containerView: NSView) {
| `- note: add '@MainActor' to make global function 'activateFullScreenConstraints(for:in:)' part of global actor 'MainActor'
19 | view.translatesAutoresizingMaskIntoConstraints = false
20 | NSLayoutConstraint.activate([
21 | view.leadingAnchor.constraint(equalTo: containerView.leadingAnchor),
22 | view.trailingAnchor.constraint(equalTo: containerView.trailingAnchor),
23 | view.topAnchor.constraint(equalTo: containerView.topAnchor),
| `- warning: main actor-isolated property 'topAnchor' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
24 | view.bottomAnchor.constraint(equalTo: containerView.bottomAnchor)
25 | ])
AppKit.NSView:11:14: note: property declared here
9 | open var rightAnchor: NSLayoutXAxisAnchor { get }
10 | @available(macOS 10.11, *)
11 | open var topAnchor: NSLayoutYAxisAnchor { get }
| `- note: property declared here
12 | @available(macOS 10.11, *)
13 | open var bottomAnchor: NSLayoutYAxisAnchor { get }
/Users/admin/builder/spi-builder-workspace/Sources/swiftui-loop-videoplayer/fn/constraintsFn.swift:23:58: warning: main actor-isolated property 'topAnchor' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
16 | /// - view: The view for which full-screen constraints will be applied.
17 | /// - containerView: The parent view in which `view` will be constrained to match the full size.
18 | func activateFullScreenConstraints(for view: NSView, in containerView: NSView) {
| `- note: add '@MainActor' to make global function 'activateFullScreenConstraints(for:in:)' part of global actor 'MainActor'
19 | view.translatesAutoresizingMaskIntoConstraints = false
20 | NSLayoutConstraint.activate([
21 | view.leadingAnchor.constraint(equalTo: containerView.leadingAnchor),
22 | view.trailingAnchor.constraint(equalTo: containerView.trailingAnchor),
23 | view.topAnchor.constraint(equalTo: containerView.topAnchor),
| `- warning: main actor-isolated property 'topAnchor' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
24 | view.bottomAnchor.constraint(equalTo: containerView.bottomAnchor)
25 | ])
AppKit.NSView:11:14: note: property declared here
9 | open var rightAnchor: NSLayoutXAxisAnchor { get }
10 | @available(macOS 10.11, *)
11 | open var topAnchor: NSLayoutYAxisAnchor { get }
| `- note: property declared here
12 | @available(macOS 10.11, *)
13 | open var bottomAnchor: NSLayoutYAxisAnchor { get }
/Users/admin/builder/spi-builder-workspace/Sources/swiftui-loop-videoplayer/fn/constraintsFn.swift:24:14: warning: main actor-isolated property 'bottomAnchor' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
16 | /// - view: The view for which full-screen constraints will be applied.
17 | /// - containerView: The parent view in which `view` will be constrained to match the full size.
18 | func activateFullScreenConstraints(for view: NSView, in containerView: NSView) {
| `- note: add '@MainActor' to make global function 'activateFullScreenConstraints(for:in:)' part of global actor 'MainActor'
19 | view.translatesAutoresizingMaskIntoConstraints = false
20 | NSLayoutConstraint.activate([
:
22 | view.trailingAnchor.constraint(equalTo: containerView.trailingAnchor),
23 | view.topAnchor.constraint(equalTo: containerView.topAnchor),
24 | view.bottomAnchor.constraint(equalTo: containerView.bottomAnchor)
| `- warning: main actor-isolated property 'bottomAnchor' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
25 | ])
26 | }
AppKit.NSView:13:14: note: property declared here
11 | open var topAnchor: NSLayoutYAxisAnchor { get }
12 | @available(macOS 10.11, *)
13 | open var bottomAnchor: NSLayoutYAxisAnchor { get }
| `- note: property declared here
14 | @available(macOS 10.11, *)
15 | open var widthAnchor: NSLayoutDimension { get }
/Users/admin/builder/spi-builder-workspace/Sources/swiftui-loop-videoplayer/fn/constraintsFn.swift:24:61: warning: main actor-isolated property 'bottomAnchor' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
16 | /// - view: The view for which full-screen constraints will be applied.
17 | /// - containerView: The parent view in which `view` will be constrained to match the full size.
18 | func activateFullScreenConstraints(for view: NSView, in containerView: NSView) {
| `- note: add '@MainActor' to make global function 'activateFullScreenConstraints(for:in:)' part of global actor 'MainActor'
19 | view.translatesAutoresizingMaskIntoConstraints = false
20 | NSLayoutConstraint.activate([
:
22 | view.trailingAnchor.constraint(equalTo: containerView.trailingAnchor),
23 | view.topAnchor.constraint(equalTo: containerView.topAnchor),
24 | view.bottomAnchor.constraint(equalTo: containerView.bottomAnchor)
| `- warning: main actor-isolated property 'bottomAnchor' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
25 | ])
26 | }
AppKit.NSView:13:14: note: property declared here
11 | open var topAnchor: NSLayoutYAxisAnchor { get }
12 | @available(macOS 10.11, *)
13 | open var bottomAnchor: NSLayoutYAxisAnchor { get }
| `- note: property declared here
14 | @available(macOS 10.11, *)
15 | open var widthAnchor: NSLayoutDimension { get }
[19/43] Compiling swiftui_loop_videoplayer CustomView.swift
/Users/admin/builder/spi-builder-workspace/Sources/swiftui-loop-videoplayer/fn/constraintsFn.swift:19:10: warning: main actor-isolated property 'translatesAutoresizingMaskIntoConstraints' can not be mutated from a nonisolated context; this is an error in the Swift 6 language mode
16 | /// - view: The view for which full-screen constraints will be applied.
17 | /// - containerView: The parent view in which `view` will be constrained to match the full size.
18 | func activateFullScreenConstraints(for view: NSView, in containerView: NSView) {
| `- note: add '@MainActor' to make global function 'activateFullScreenConstraints(for:in:)' part of global actor 'MainActor'
19 | view.translatesAutoresizingMaskIntoConstraints = false
| `- warning: main actor-isolated property 'translatesAutoresizingMaskIntoConstraints' can not be mutated from a nonisolated context; this is an error in the Swift 6 language mode
20 | NSLayoutConstraint.activate([
21 | view.leadingAnchor.constraint(equalTo: containerView.leadingAnchor),
AppKit.NSView:3:25: note: mutation of this property is only permitted within the actor
1 | extension NSView {
2 | @available(macOS 10.7, *)
3 | @MainActor open var translatesAutoresizingMaskIntoConstraints: Bool { get set }
| `- note: mutation of this property is only permitted within the actor
4 | @available(macOS 10.7, *)
5 | open class var requiresConstraintBasedLayout: Bool { get }
/Users/admin/builder/spi-builder-workspace/Sources/swiftui-loop-videoplayer/fn/constraintsFn.swift:21:14: warning: main actor-isolated property 'leadingAnchor' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
16 | /// - view: The view for which full-screen constraints will be applied.
17 | /// - containerView: The parent view in which `view` will be constrained to match the full size.
18 | func activateFullScreenConstraints(for view: NSView, in containerView: NSView) {
| `- note: add '@MainActor' to make global function 'activateFullScreenConstraints(for:in:)' part of global actor 'MainActor'
19 | view.translatesAutoresizingMaskIntoConstraints = false
20 | NSLayoutConstraint.activate([
21 | view.leadingAnchor.constraint(equalTo: containerView.leadingAnchor),
| `- warning: main actor-isolated property 'leadingAnchor' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
22 | view.trailingAnchor.constraint(equalTo: containerView.trailingAnchor),
23 | view.topAnchor.constraint(equalTo: containerView.topAnchor),
AppKit.NSView:3:25: note: property declared here
1 | extension NSView {
2 | @available(macOS 10.11, *)
3 | @MainActor open var leadingAnchor: NSLayoutXAxisAnchor { get }
| `- note: property declared here
4 | @available(macOS 10.11, *)
5 | open var trailingAnchor: NSLayoutXAxisAnchor { get }
/Users/admin/builder/spi-builder-workspace/Sources/swiftui-loop-videoplayer/fn/constraintsFn.swift:21:62: warning: main actor-isolated property 'leadingAnchor' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
16 | /// - view: The view for which full-screen constraints will be applied.
17 | /// - containerView: The parent view in which `view` will be constrained to match the full size.
18 | func activateFullScreenConstraints(for view: NSView, in containerView: NSView) {
| `- note: add '@MainActor' to make global function 'activateFullScreenConstraints(for:in:)' part of global actor 'MainActor'
19 | view.translatesAutoresizingMaskIntoConstraints = false
20 | NSLayoutConstraint.activate([
21 | view.leadingAnchor.constraint(equalTo: containerView.leadingAnchor),
| `- warning: main actor-isolated property 'leadingAnchor' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
22 | view.trailingAnchor.constraint(equalTo: containerView.trailingAnchor),
23 | view.topAnchor.constraint(equalTo: containerView.topAnchor),
AppKit.NSView:3:25: note: property declared here
1 | extension NSView {
2 | @available(macOS 10.11, *)
3 | @MainActor open var leadingAnchor: NSLayoutXAxisAnchor { get }
| `- note: property declared here
4 | @available(macOS 10.11, *)
5 | open var trailingAnchor: NSLayoutXAxisAnchor { get }
/Users/admin/builder/spi-builder-workspace/Sources/swiftui-loop-videoplayer/fn/constraintsFn.swift:22:14: warning: main actor-isolated property 'trailingAnchor' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
16 | /// - view: The view for which full-screen constraints will be applied.
17 | /// - containerView: The parent view in which `view` will be constrained to match the full size.
18 | func activateFullScreenConstraints(for view: NSView, in containerView: NSView) {
| `- note: add '@MainActor' to make global function 'activateFullScreenConstraints(for:in:)' part of global actor 'MainActor'
19 | view.translatesAutoresizingMaskIntoConstraints = false
20 | NSLayoutConstraint.activate([
21 | view.leadingAnchor.constraint(equalTo: containerView.leadingAnchor),
22 | view.trailingAnchor.constraint(equalTo: containerView.trailingAnchor),
| `- warning: main actor-isolated property 'trailingAnchor' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
23 | view.topAnchor.constraint(equalTo: containerView.topAnchor),
24 | view.bottomAnchor.constraint(equalTo: containerView.bottomAnchor)
AppKit.NSView:5:14: note: property declared here
3 | @MainActor open var leadingAnchor: NSLayoutXAxisAnchor { get }
4 | @available(macOS 10.11, *)
5 | open var trailingAnchor: NSLayoutXAxisAnchor { get }
| `- note: property declared here
6 | @available(macOS 10.11, *)
7 | open var leftAnchor: NSLayoutXAxisAnchor { get }
/Users/admin/builder/spi-builder-workspace/Sources/swiftui-loop-videoplayer/fn/constraintsFn.swift:22:63: warning: main actor-isolated property 'trailingAnchor' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
16 | /// - view: The view for which full-screen constraints will be applied.
17 | /// - containerView: The parent view in which `view` will be constrained to match the full size.
18 | func activateFullScreenConstraints(for view: NSView, in containerView: NSView) {
| `- note: add '@MainActor' to make global function 'activateFullScreenConstraints(for:in:)' part of global actor 'MainActor'
19 | view.translatesAutoresizingMaskIntoConstraints = false
20 | NSLayoutConstraint.activate([
21 | view.leadingAnchor.constraint(equalTo: containerView.leadingAnchor),
22 | view.trailingAnchor.constraint(equalTo: containerView.trailingAnchor),
| `- warning: main actor-isolated property 'trailingAnchor' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
23 | view.topAnchor.constraint(equalTo: containerView.topAnchor),
24 | view.bottomAnchor.constraint(equalTo: containerView.bottomAnchor)
AppKit.NSView:5:14: note: property declared here
3 | @MainActor open var leadingAnchor: NSLayoutXAxisAnchor { get }
4 | @available(macOS 10.11, *)
5 | open var trailingAnchor: NSLayoutXAxisAnchor { get }
| `- note: property declared here
6 | @available(macOS 10.11, *)
7 | open var leftAnchor: NSLayoutXAxisAnchor { get }
/Users/admin/builder/spi-builder-workspace/Sources/swiftui-loop-videoplayer/fn/constraintsFn.swift:23:14: warning: main actor-isolated property 'topAnchor' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
16 | /// - view: The view for which full-screen constraints will be applied.
17 | /// - containerView: The parent view in which `view` will be constrained to match the full size.
18 | func activateFullScreenConstraints(for view: NSView, in containerView: NSView) {
| `- note: add '@MainActor' to make global function 'activateFullScreenConstraints(for:in:)' part of global actor 'MainActor'
19 | view.translatesAutoresizingMaskIntoConstraints = false
20 | NSLayoutConstraint.activate([
21 | view.leadingAnchor.constraint(equalTo: containerView.leadingAnchor),
22 | view.trailingAnchor.constraint(equalTo: containerView.trailingAnchor),
23 | view.topAnchor.constraint(equalTo: containerView.topAnchor),
| `- warning: main actor-isolated property 'topAnchor' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
24 | view.bottomAnchor.constraint(equalTo: containerView.bottomAnchor)
25 | ])
AppKit.NSView:11:14: note: property declared here
9 | open var rightAnchor: NSLayoutXAxisAnchor { get }
10 | @available(macOS 10.11, *)
11 | open var topAnchor: NSLayoutYAxisAnchor { get }
| `- note: property declared here
12 | @available(macOS 10.11, *)
13 | open var bottomAnchor: NSLayoutYAxisAnchor { get }
/Users/admin/builder/spi-builder-workspace/Sources/swiftui-loop-videoplayer/fn/constraintsFn.swift:23:58: warning: main actor-isolated property 'topAnchor' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
16 | /// - view: The view for which full-screen constraints will be applied.
17 | /// - containerView: The parent view in which `view` will be constrained to match the full size.
18 | func activateFullScreenConstraints(for view: NSView, in containerView: NSView) {
| `- note: add '@MainActor' to make global function 'activateFullScreenConstraints(for:in:)' part of global actor 'MainActor'
19 | view.translatesAutoresizingMaskIntoConstraints = false
20 | NSLayoutConstraint.activate([
21 | view.leadingAnchor.constraint(equalTo: containerView.leadingAnchor),
22 | view.trailingAnchor.constraint(equalTo: containerView.trailingAnchor),
23 | view.topAnchor.constraint(equalTo: containerView.topAnchor),
| `- warning: main actor-isolated property 'topAnchor' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
24 | view.bottomAnchor.constraint(equalTo: containerView.bottomAnchor)
25 | ])
AppKit.NSView:11:14: note: property declared here
9 | open var rightAnchor: NSLayoutXAxisAnchor { get }
10 | @available(macOS 10.11, *)
11 | open var topAnchor: NSLayoutYAxisAnchor { get }
| `- note: property declared here
12 | @available(macOS 10.11, *)
13 | open var bottomAnchor: NSLayoutYAxisAnchor { get }
/Users/admin/builder/spi-builder-workspace/Sources/swiftui-loop-videoplayer/fn/constraintsFn.swift:24:14: warning: main actor-isolated property 'bottomAnchor' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
16 | /// - view: The view for which full-screen constraints will be applied.
17 | /// - containerView: The parent view in which `view` will be constrained to match the full size.
18 | func activateFullScreenConstraints(for view: NSView, in containerView: NSView) {
| `- note: add '@MainActor' to make global function 'activateFullScreenConstraints(for:in:)' part of global actor 'MainActor'
19 | view.translatesAutoresizingMaskIntoConstraints = false
20 | NSLayoutConstraint.activate([
:
22 | view.trailingAnchor.constraint(equalTo: containerView.trailingAnchor),
23 | view.topAnchor.constraint(equalTo: containerView.topAnchor),
24 | view.bottomAnchor.constraint(equalTo: containerView.bottomAnchor)
| `- warning: main actor-isolated property 'bottomAnchor' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
25 | ])
26 | }
AppKit.NSView:13:14: note: property declared here
11 | open var topAnchor: NSLayoutYAxisAnchor { get }
12 | @available(macOS 10.11, *)
13 | open var bottomAnchor: NSLayoutYAxisAnchor { get }
| `- note: property declared here
14 | @available(macOS 10.11, *)
15 | open var widthAnchor: NSLayoutDimension { get }
/Users/admin/builder/spi-builder-workspace/Sources/swiftui-loop-videoplayer/fn/constraintsFn.swift:24:61: warning: main actor-isolated property 'bottomAnchor' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
16 | /// - view: The view for which full-screen constraints will be applied.
17 | /// - containerView: The parent view in which `view` will be constrained to match the full size.
18 | func activateFullScreenConstraints(for view: NSView, in containerView: NSView) {
| `- note: add '@MainActor' to make global function 'activateFullScreenConstraints(for:in:)' part of global actor 'MainActor'
19 | view.translatesAutoresizingMaskIntoConstraints = false
20 | NSLayoutConstraint.activate([
:
22 | view.trailingAnchor.constraint(equalTo: containerView.trailingAnchor),
23 | view.topAnchor.constraint(equalTo: containerView.topAnchor),
24 | view.bottomAnchor.constraint(equalTo: containerView.bottomAnchor)
| `- warning: main actor-isolated property 'bottomAnchor' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
25 | ])
26 | }
AppKit.NSView:13:14: note: property declared here
11 | open var topAnchor: NSLayoutYAxisAnchor { get }
12 | @available(macOS 10.11, *)
13 | open var bottomAnchor: NSLayoutYAxisAnchor { get }
| `- note: property declared here
14 | @available(macOS 10.11, *)
15 | open var widthAnchor: NSLayoutDimension { get }
[20/43] Compiling swiftui_loop_videoplayer ExtVideoPlayer.swift
[21/43] Compiling swiftui_loop_videoplayer PlaybackCommand.swift
[22/43] Compiling swiftui_loop_videoplayer PlayerEvent.swift
[23/43] Compiling swiftui_loop_videoplayer Setting.swift
[24/43] Compiling swiftui_loop_videoplayer LoopingPlayerUIView.swift
/Users/admin/builder/spi-builder-workspace/Sources/swiftui-loop-videoplayer/view/player/mac/error/ErrorMsgViewMacOS.swift:60:20: warning: call to main actor-isolated initializer 'init()' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
57 | /// - fontSize: The font size to be used for the error text.
58 | /// - Returns: An `NSView` containing the error message text view centered with padding.
59 | internal func errorTpl(_ error: VPErrors, _ color: Color, _ fontSize: CGFloat) -> NSView {
| `- note: add '@MainActor' to make global function 'errorTpl' part of global actor 'MainActor'
60 | let textView = ErrorMsgViewMacOS()
| `- warning: call to main actor-isolated initializer 'init()' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
61 | textView.isEditable = false
62 | textView.isSelectable = false
AppKit.NSTextView:111:35: note: calls to initializer 'init()' from outside of its actor context are implicitly asynchronous
109 | @available(macOS 10.14, *)
110 | open var usesAdaptiveColorMappingForDarkAppearance: Bool { get set }
111 | @MainActor public convenience init()
| `- note: calls to initializer 'init()' from outside of its actor context are implicitly asynchronous
112 | @available(macOS 14.0, *)
113 | open var unionRectInVisibleSelectedRange: NSRect { get }
/Users/admin/builder/spi-builder-workspace/Sources/swiftui-loop-videoplayer/view/player/mac/error/ErrorMsgViewMacOS.swift:61:14: warning: main actor-isolated property 'isEditable' can not be mutated from a nonisolated context; this is an error in the Swift 6 language mode
57 | /// - fontSize: The font size to be used for the error text.
58 | /// - Returns: An `NSView` containing the error message text view centered with padding.
59 | internal func errorTpl(_ error: VPErrors, _ color: Color, _ fontSize: CGFloat) -> NSView {
| `- note: add '@MainActor' to make global function 'errorTpl' part of global actor 'MainActor'
60 | let textView = ErrorMsgViewMacOS()
61 | textView.isEditable = false
| `- warning: main actor-isolated property 'isEditable' can not be mutated from a nonisolated context; this is an error in the Swift 6 language mode
62 | textView.isSelectable = false
63 | textView.drawsBackground = false
AppKit.NSTextView:65:25: note: mutation of this property is only permitted within the actor
63 | open var usesRolloverButtonForSelection: Bool { get set }
64 | weak open var delegate: (any NSTextViewDelegate)? { get set }
65 | @MainActor open var isEditable: Bool { get set }
| `- note: mutation of this property is only permitted within the actor
66 | @available(swift, obsoleted: 3, renamed: "isEditable")
67 | open var editable: Bool { get set }
/Users/admin/builder/spi-builder-workspace/Sources/swiftui-loop-videoplayer/view/player/mac/error/ErrorMsgViewMacOS.swift:62:14: warning: main actor-isolated property 'isSelectable' can not be mutated from a nonisolated context; this is an error in the Swift 6 language mode
57 | /// - fontSize: The font size to be used for the error text.
58 | /// - Returns: An `NSView` containing the error message text view centered with padding.
59 | internal func errorTpl(_ error: VPErrors, _ color: Color, _ fontSize: CGFloat) -> NSView {
| `- note: add '@MainActor' to make global function 'errorTpl' part of global actor 'MainActor'
60 | let textView = ErrorMsgViewMacOS()
61 | textView.isEditable = false
62 | textView.isSelectable = false
| `- warning: main actor-isolated property 'isSelectable' can not be mutated from a nonisolated context; this is an error in the Swift 6 language mode
63 | textView.drawsBackground = false
64 | textView.string = error.description
AppKit.NSTextView:68:14: note: mutation of this property is only permitted within the actor
66 | @available(swift, obsoleted: 3, renamed: "isEditable")
67 | open var editable: Bool { get set }
68 | open var isSelectable: Bool { get set }
| `- note: mutation of this property is only permitted within the actor
69 | @available(swift, obsoleted: 3, renamed: "isSelectable")
70 | open var selectable: Bool { get set }
/Users/admin/builder/spi-builder-workspace/Sources/swiftui-loop-videoplayer/view/player/mac/error/ErrorMsgViewMacOS.swift:63:14: warning: main actor-isolated property 'drawsBackground' can not be mutated from a nonisolated context; this is an error in the Swift 6 language mode
57 | /// - fontSize: The font size to be used for the error text.
58 | /// - Returns: An `NSView` containing the error message text view centered with padding.
59 | internal func errorTpl(_ error: VPErrors, _ color: Color, _ fontSize: CGFloat) -> NSView {
| `- note: add '@MainActor' to make global function 'errorTpl' part of global actor 'MainActor'
60 | let textView = ErrorMsgViewMacOS()
61 | textView.isEditable = false
62 | textView.isSelectable = false
63 | textView.drawsBackground = false
| `- warning: main actor-isolated property 'drawsBackground' can not be mutated from a nonisolated context; this is an error in the Swift 6 language mode
64 | textView.string = error.description
65 | textView.alignment = .center
AppKit.NSTextView:75:14: note: mutation of this property is only permitted within the actor
73 | open var richText: Bool { get set }
74 | open var importsGraphics: Bool { get set }
75 | open var drawsBackground: Bool { get set }
| `- note: mutation of this property is only permitted within the actor
76 | @NSCopying open var backgroundColor: NSColor { get set }
77 | open var isFieldEditor: Bool { get set }
/Users/admin/builder/spi-builder-workspace/Sources/swiftui-loop-videoplayer/view/player/mac/error/ErrorMsgViewMacOS.swift:64:14: warning: main actor-isolated property 'string' can not be mutated from a nonisolated context; this is an error in the Swift 6 language mode
57 | /// - fontSize: The font size to be used for the error text.
58 | /// - Returns: An `NSView` containing the error message text view centered with padding.
59 | internal func errorTpl(_ error: VPErrors, _ color: Color, _ fontSize: CGFloat) -> NSView {
| `- note: add '@MainActor' to make global function 'errorTpl' part of global actor 'MainActor'
60 | let textView = ErrorMsgViewMacOS()
61 | textView.isEditable = false
62 | textView.isSelectable = false
63 | textView.drawsBackground = false
64 | textView.string = error.description
| `- warning: main actor-isolated property 'string' can not be mutated from a nonisolated context; this is an error in the Swift 6 language mode
65 | textView.alignment = .center
66 | textView.font = NSFont.systemFont(ofSize: fontSize)
AppKit.NSText:4:25: note: mutation of this property is only permitted within the actor
2 | @MainActor public init(frame frameRect: NSRect)
3 | @MainActor public init?(coder: NSCoder)
4 | @MainActor open var string: String { get set }
| `- note: mutation of this property is only permitted within the actor
5 | open func replaceCharacters(in range: NSRange, with string: String)
6 | @available(swift, obsoleted: 3, renamed: "replaceCharacters(in:with:)")
/Users/admin/builder/spi-builder-workspace/Sources/swiftui-loop-videoplayer/view/player/mac/error/ErrorMsgViewMacOS.swift:65:14: warning: main actor-isolated property 'alignment' can not be mutated from a nonisolated context; this is an error in the Swift 6 language mode
57 | /// - fontSize: The font size to be used for the error text.
58 | /// - Returns: An `NSView` containing the error message text view centered with padding.
59 | internal func errorTpl(_ error: VPErrors, _ color: Color, _ fontSize: CGFloat) -> NSView {
| `- note: add '@MainActor' to make global function 'errorTpl' part of global actor 'MainActor'
60 | let textView = ErrorMsgViewMacOS()
61 | textView.isEditable = false
:
63 | textView.drawsBackground = false
64 | textView.string = error.description
65 | textView.alignment = .center
| `- warning: main actor-isolated property 'alignment' can not be mutated from a nonisolated context; this is an error in the Swift 6 language mode
66 | textView.font = NSFont.systemFont(ofSize: fontSize)
67 | textView.textColor = NSColor(color)
AppKit.NSText:50:14: note: mutation of this property is only permitted within the actor
48 | open var font: NSFont? { get set }
49 | @NSCopying open var textColor: NSColor? { get set }
50 | open var alignment: NSTextAlignment { get set }
| `- note: mutation of this property is only permitted within the actor
51 | open var baseWritingDirection: NSWritingDirection { get set }
52 | open func setTextColor(_ color: NSColor?, range: NSRange)
/Users/admin/builder/spi-builder-workspace/Sources/swiftui-loop-videoplayer/view/player/mac/error/ErrorMsgViewMacOS.swift:66:14: warning: main actor-isolated property 'font' can not be mutated from a nonisolated context; this is an error in the Swift 6 language mode
57 | /// - fontSize: The font size to be used for the error text.
58 | /// - Returns: An `NSView` containing the error message text view centered with padding.
59 | internal func errorTpl(_ error: VPErrors, _ color: Color, _ fontSize: CGFloat) -> NSView {
| `- note: add '@MainActor' to make global function 'errorTpl' part of global actor 'MainActor'
60 | let textView = ErrorMsgViewMacOS()
61 | textView.isEditable = false
:
64 | textView.string = error.description
65 | textView.alignment = .center
66 | textView.font = NSFont.systemFont(ofSize: fontSize)
| `- warning: main actor-isolated property 'font' can not be mutated from a nonisolated context; this is an error in the Swift 6 language mode
67 | textView.textColor = NSColor(color)
68 |
AppKit.NSText:48:14: note: mutation of this property is only permitted within the actor
46 | open var selectedRange: NSRange { get set }
47 | open func scrollRangeToVisible(_ range: NSRange)
48 | open var font: NSFont? { get set }
| `- note: mutation of this property is only permitted within the actor
49 | @NSCopying open var textColor: NSColor? { get set }
50 | open var alignment: NSTextAlignment { get set }
/Users/admin/builder/spi-builder-workspace/Sources/swiftui-loop-videoplayer/view/player/mac/error/ErrorMsgViewMacOS.swift:67:14: warning: main actor-isolated property 'textColor' can not be mutated from a nonisolated context; this is an error in the Swift 6 language mode
57 | /// - fontSize: The font size to be used for the error text.
58 | /// - Returns: An `NSView` containing the error message text view centered with padding.
59 | internal func errorTpl(_ error: VPErrors, _ color: Color, _ fontSize: CGFloat) -> NSView {
| `- note: add '@MainActor' to make global function 'errorTpl' part of global actor 'MainActor'
60 | let textView = ErrorMsgViewMacOS()
61 | textView.isEditable = false
:
65 | textView.alignment = .center
66 | textView.font = NSFont.systemFont(ofSize: fontSize)
67 | textView.textColor = NSColor(color)
| `- warning: main actor-isolated property 'textColor' can not be mutated from a nonisolated context; this is an error in the Swift 6 language mode
68 |
69 | let containerView = NSView()
AppKit.NSText:49:25: note: mutation of this property is only permitted within the actor
47 | open func scrollRangeToVisible(_ range: NSRange)
48 | open var font: NSFont? { get set }
49 | @NSCopying open var textColor: NSColor? { get set }
| `- note: mutation of this property is only permitted within the actor
50 | open var alignment: NSTextAlignment { get set }
51 | open var baseWritingDirection: NSWritingDirection { get set }
/Users/admin/builder/spi-builder-workspace/Sources/swiftui-loop-videoplayer/view/player/mac/error/ErrorMsgViewMacOS.swift:69:25: warning: call to main actor-isolated initializer 'init()' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
57 | /// - fontSize: The font size to be used for the error text.
58 | /// - Returns: An `NSView` containing the error message text view centered with padding.
59 | internal func errorTpl(_ error: VPErrors, _ color: Color, _ fontSize: CGFloat) -> NSView {
| `- note: add '@MainActor' to make global function 'errorTpl' part of global actor 'MainActor'
60 | let textView = ErrorMsgViewMacOS()
61 | textView.isEditable = false
:
67 | textView.textColor = NSColor(color)
68 |
69 | let containerView = NSView()
| `- warning: call to main actor-isolated initializer 'init()' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
70 | containerView.addSubview(textView)
71 |
AppKit.NSView:354:35: note: calls to initializer 'init()' from outside of its actor context are implicitly asynchronous
352 | @available(macOS 10.14, *)
353 | open func viewDidChangeEffectiveAppearance()
354 | @MainActor public convenience init()
| `- note: calls to initializer 'init()' from outside of its actor context are implicitly asynchronous
355 | @available(macOS 10.5, *)
356 | open var animations: [NSAnimatablePropertyKey : Any] { get set }
/Users/admin/builder/spi-builder-workspace/Sources/swiftui-loop-videoplayer/view/player/mac/error/ErrorMsgViewMacOS.swift:70:19: warning: call to main actor-isolated instance method 'addSubview' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
57 | /// - fontSize: The font size to be used for the error text.
58 | /// - Returns: An `NSView` containing the error message text view centered with padding.
59 | internal func errorTpl(_ error: VPErrors, _ color: Color, _ fontSize: CGFloat) -> NSView {
| `- note: add '@MainActor' to make global function 'errorTpl' part of global actor 'MainActor'
60 | let textView = ErrorMsgViewMacOS()
61 | textView.isEditable = false
:
68 |
69 | let containerView = NSView()
70 | containerView.addSubview(textView)
| `- warning: call to main actor-isolated instance method 'addSubview' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
71 |
72 | textView.translatesAutoresizingMaskIntoConstraints = false
AppKit.NSView:29:26: note: calls to instance method 'addSubview' from outside of its actor context are implicitly asynchronous
27 | @available(macOS 10.5, *)
28 | open func viewDidUnhide()
29 | @MainActor open func addSubview(_ view: NSView)
| `- note: calls to instance method 'addSubview' from outside of its actor context are implicitly asynchronous
30 | open func addSubview(_ view: NSView, positioned place: NSWindow.OrderingMode, relativeTo otherView: NSView?)
31 | open func sortSubviews(_ compare: @convention(c) (NSView, NSView, UnsafeMutableRawPointer?) -> ComparisonResult, context: UnsafeMutableRawPointer?)
/Users/admin/builder/spi-builder-workspace/Sources/swiftui-loop-videoplayer/view/player/mac/error/ErrorMsgViewMacOS.swift:72:14: warning: main actor-isolated property 'translatesAutoresizingMaskIntoConstraints' can not be mutated from a nonisolated context; this is an error in the Swift 6 language mode
57 | /// - fontSize: The font size to be used for the error text.
58 | /// - Returns: An `NSView` containing the error message text view centered with padding.
59 | internal func errorTpl(_ error: VPErrors, _ color: Color, _ fontSize: CGFloat) -> NSView {
| `- note: add '@MainActor' to make global function 'errorTpl' part of global actor 'MainActor'
60 | let textView = ErrorMsgViewMacOS()
61 | textView.isEditable = false
:
70 | containerView.addSubview(textView)
71 |
72 | textView.translatesAutoresizingMaskIntoConstraints = false
| `- warning: main actor-isolated property 'translatesAutoresizingMaskIntoConstraints' can not be mutated from a nonisolated context; this is an error in the Swift 6 language mode
73 |
74 | // Center textView in containerView with padding
AppKit.NSView:3:25: note: mutation of this property is only permitted within the actor
1 | extension NSView {
2 | @available(macOS 10.7, *)
3 | @MainActor open var translatesAutoresizingMaskIntoConstraints: Bool { get set }
| `- note: mutation of this property is only permitted within the actor
4 | @available(macOS 10.7, *)
5 | open class var requiresConstraintBasedLayout: Bool { get }
/Users/admin/builder/spi-builder-workspace/Sources/swiftui-loop-videoplayer/view/player/mac/error/ErrorMsgViewMacOS.swift:76:18: warning: main actor-isolated property 'centerXAnchor' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
57 | /// - fontSize: The font size to be used for the error text.
58 | /// - Returns: An `NSView` containing the error message text view centered with padding.
59 | internal func errorTpl(_ error: VPErrors, _ color: Color, _ fontSize: CGFloat) -> NSView {
| `- note: add '@MainActor' to make global function 'errorTpl' part of global actor 'MainActor'
60 | let textView = ErrorMsgViewMacOS()
61 | textView.isEditable = false
:
74 | // Center textView in containerView with padding
75 | NSLayoutConstraint.activate([
76 | textView.centerXAnchor.constraint(equalTo: containerView.centerXAnchor),
| `- warning: main actor-isolated property 'centerXAnchor' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
77 | textView.centerYAnchor.constraint(equalTo: containerView.centerYAnchor),
78 | textView.leadingAnchor.constraint(greaterThanOrEqualTo: containerView.leadingAnchor, constant: 10),
AppKit.NSView:19:25: note: property declared here
17 | open var heightAnchor: NSLayoutDimension { get }
18 | @available(macOS 10.11, *)
19 | @MainActor open var centerXAnchor: NSLayoutXAxisAnchor { get }
| `- note: property declared here
20 | @available(macOS 10.11, *)
21 | open var centerYAnchor: NSLayoutYAxisAnchor { get }
/Users/admin/builder/spi-builder-workspace/Sources/swiftui-loop-videoplayer/view/player/mac/error/ErrorMsgViewMacOS.swift:76:66: warning: main actor-isolated property 'centerXAnchor' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
57 | /// - fontSize: The font size to be used for the error text.
58 | /// - Returns: An `NSView` containing the error message text view centered with padding.
59 | internal func errorTpl(_ error: VPErrors, _ color: Color, _ fontSize: CGFloat) -> NSView {
| `- note: add '@MainActor' to make global function 'errorTpl' part of global actor 'MainActor'
60 | let textView = ErrorMsgViewMacOS()
61 | textView.isEditable = false
:
74 | // Center textView in containerView with padding
75 | NSLayoutConstraint.activate([
76 | textView.centerXAnchor.constraint(equalTo: containerView.centerXAnchor),
| `- warning: main actor-isolated property 'centerXAnchor' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
77 | textView.centerYAnchor.constraint(equalTo: containerView.centerYAnchor),
78 | textView.leadingAnchor.constraint(greaterThanOrEqualTo: containerView.leadingAnchor, constant: 10),
AppKit.NSView:19:25: note: property declared here
17 | open var heightAnchor: NSLayoutDimension { get }
18 | @available(macOS 10.11, *)
19 | @MainActor open var centerXAnchor: NSLayoutXAxisAnchor { get }
| `- note: property declared here
20 | @available(macOS 10.11, *)
21 | open var centerYAnchor: NSLayoutYAxisAnchor { get }
/Users/admin/builder/spi-builder-workspace/Sources/swiftui-loop-videoplayer/view/player/mac/error/ErrorMsgViewMacOS.swift:77:18: warning: main actor-isolated property 'centerYAnchor' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
57 | /// - fontSize: The font size to be used for the error text.
58 | /// - Returns: An `NSView` containing the error message text view centered with padding.
59 | internal func errorTpl(_ error: VPErrors, _ color: Color, _ fontSize: CGFloat) -> NSView {
| `- note: add '@MainActor' to make global function 'errorTpl' part of global actor 'MainActor'
60 | let textView = ErrorMsgViewMacOS()
61 | textView.isEditable = false
:
75 | NSLayoutConstraint.activate([
76 | textView.centerXAnchor.constraint(equalTo: containerView.centerXAnchor),
77 | textView.centerYAnchor.constraint(equalTo: containerView.centerYAnchor),
| `- warning: main actor-isolated property 'centerYAnchor' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
78 | textView.leadingAnchor.constraint(greaterThanOrEqualTo: containerView.leadingAnchor, constant: 10),
79 | textView.trailingAnchor.constraint(lessThanOrEqualTo: containerView.trailingAnchor, constant: -10)
AppKit.NSView:21:14: note: property declared here
19 | @MainActor open var centerXAnchor: NSLayoutXAxisAnchor { get }
20 | @available(macOS 10.11, *)
21 | open var centerYAnchor: NSLayoutYAxisAnchor { get }
| `- note: property declared here
22 | @available(macOS 10.11, *)
23 | open var firstBaselineAnchor: NSLayoutYAxisAnchor { get }
/Users/admin/builder/spi-builder-workspace/Sources/swiftui-loop-videoplayer/view/player/mac/error/ErrorMsgViewMacOS.swift:77:66: warning: main actor-isolated property 'centerYAnchor' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
57 | /// - fontSize: The font size to be used for the error text.
58 | /// - Returns: An `NSView` containing the error message text view centered with padding.
59 | internal func errorTpl(_ error: VPErrors, _ color: Color, _ fontSize: CGFloat) -> NSView {
| `- note: add '@MainActor' to make global function 'errorTpl' part of global actor 'MainActor'
60 | let textView = ErrorMsgViewMacOS()
61 | textView.isEditable = false
:
75 | NSLayoutConstraint.activate([
76 | textView.centerXAnchor.constraint(equalTo: containerView.centerXAnchor),
77 | textView.centerYAnchor.constraint(equalTo: containerView.centerYAnchor),
| `- warning: main actor-isolated property 'centerYAnchor' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
78 | textView.leadingAnchor.constraint(greaterThanOrEqualTo: containerView.leadingAnchor, constant: 10),
79 | textView.trailingAnchor.constraint(lessThanOrEqualTo: containerView.trailingAnchor, constant: -10)
AppKit.NSView:21:14: note: property declared here
19 | @MainActor open var centerXAnchor: NSLayoutXAxisAnchor { get }
20 | @available(macOS 10.11, *)
21 | open var centerYAnchor: NSLayoutYAxisAnchor { get }
| `- note: property declared here
22 | @available(macOS 10.11, *)
23 | open var firstBaselineAnchor: NSLayoutYAxisAnchor { get }
/Users/admin/builder/spi-builder-workspace/Sources/swiftui-loop-videoplayer/view/player/mac/error/ErrorMsgViewMacOS.swift:78:18: warning: main actor-isolated property 'leadingAnchor' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
57 | /// - fontSize: The font size to be used for the error text.
58 | /// - Returns: An `NSView` containing the error message text view centered with padding.
59 | internal func errorTpl(_ error: VPErrors, _ color: Color, _ fontSize: CGFloat) -> NSView {
| `- note: add '@MainActor' to make global function 'errorTpl' part of global actor 'MainActor'
60 | let textView = ErrorMsgViewMacOS()
61 | textView.isEditable = false
:
76 | textView.centerXAnchor.constraint(equalTo: containerView.centerXAnchor),
77 | textView.centerYAnchor.constraint(equalTo: containerView.centerYAnchor),
78 | textView.leadingAnchor.constraint(greaterThanOrEqualTo: containerView.leadingAnchor, constant: 10),
| `- warning: main actor-isolated property 'leadingAnchor' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
79 | textView.trailingAnchor.constraint(lessThanOrEqualTo: containerView.trailingAnchor, constant: -10)
80 | ])
AppKit.NSView:3:25: note: property declared here
1 | extension NSView {
2 | @available(macOS 10.11, *)
3 | @MainActor open var leadingAnchor: NSLayoutXAxisAnchor { get }
| `- note: property declared here
4 | @available(macOS 10.11, *)
5 | @MainActor open var trailingAnchor: NSLayoutXAxisAnchor { get }
/Users/admin/builder/spi-builder-workspace/Sources/swiftui-loop-videoplayer/view/player/mac/error/ErrorMsgViewMacOS.swift:78:79: warning: main actor-isolated property 'leadingAnchor' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
57 | /// - fontSize: The font size to be used for the error text.
58 | /// - Returns: An `NSView` containing the error message text view centered with padding.
59 | internal func errorTpl(_ error: VPErrors, _ color: Color, _ fontSize: CGFloat) -> NSView {
| `- note: add '@MainActor' to make global function 'errorTpl' part of global actor 'MainActor'
60 | let textView = ErrorMsgViewMacOS()
61 | textView.isEditable = false
:
76 | textView.centerXAnchor.constraint(equalTo: containerView.centerXAnchor),
77 | textView.centerYAnchor.constraint(equalTo: containerView.centerYAnchor),
78 | textView.leadingAnchor.constraint(greaterThanOrEqualTo: containerView.leadingAnchor, constant: 10),
| `- warning: main actor-isolated property 'leadingAnchor' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
79 | textView.trailingAnchor.constraint(lessThanOrEqualTo: containerView.trailingAnchor, constant: -10)
80 | ])
AppKit.NSView:3:25: note: property declared here
1 | extension NSView {
2 | @available(macOS 10.11, *)
3 | @MainActor open var leadingAnchor: NSLayoutXAxisAnchor { get }
| `- note: property declared here
4 | @available(macOS 10.11, *)
5 | @MainActor open var trailingAnchor: NSLayoutXAxisAnchor { get }
/Users/admin/builder/spi-builder-workspace/Sources/swiftui-loop-videoplayer/view/player/mac/error/ErrorMsgViewMacOS.swift:79:18: warning: main actor-isolated property 'trailingAnchor' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
57 | /// - fontSize: The font size to be used for the error text.
58 | /// - Returns: An `NSView` containing the error message text view centered with padding.
59 | internal func errorTpl(_ error: VPErrors, _ color: Color, _ fontSize: CGFloat) -> NSView {
| `- note: add '@MainActor' to make global function 'errorTpl' part of global actor 'MainActor'
60 | let textView = ErrorMsgViewMacOS()
61 | textView.isEditable = false
:
77 | textView.centerYAnchor.constraint(equalTo: containerView.centerYAnchor),
78 | textView.leadingAnchor.constraint(greaterThanOrEqualTo: containerView.leadingAnchor, constant: 10),
79 | textView.trailingAnchor.constraint(lessThanOrEqualTo: containerView.trailingAnchor, constant: -10)
| `- warning: main actor-isolated property 'trailingAnchor' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
80 | ])
81 |
AppKit.NSView:5:25: note: property declared here
3 | @MainActor open var leadingAnchor: NSLayoutXAxisAnchor { get }
4 | @available(macOS 10.11, *)
5 | @MainActor open var trailingAnchor: NSLayoutXAxisAnchor { get }
| `- note: property declared here
6 | @available(macOS 10.11, *)
7 | open var leftAnchor: NSLayoutXAxisAnchor { get }
/Users/admin/builder/spi-builder-workspace/Sources/swiftui-loop-videoplayer/view/player/mac/error/ErrorMsgViewMacOS.swift:79:77: warning: main actor-isolated property 'trailingAnchor' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
57 | /// - fontSize: The font size to be used for the error text.
58 | /// - Returns: An `NSView` containing the error message text view centered with padding.
59 | internal func errorTpl(_ error: VPErrors, _ color: Color, _ fontSize: CGFloat) -> NSView {
| `- note: add '@MainActor' to make global function 'errorTpl' part of global actor 'MainActor'
60 | let textView = ErrorMsgViewMacOS()
61 | textView.isEditable = false
:
77 | textView.centerYAnchor.constraint(equalTo: containerView.centerYAnchor),
78 | textView.leadingAnchor.constraint(greaterThanOrEqualTo: containerView.leadingAnchor, constant: 10),
79 | textView.trailingAnchor.constraint(lessThanOrEqualTo: containerView.trailingAnchor, constant: -10)
| `- warning: main actor-isolated property 'trailingAnchor' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
80 | ])
81 |
AppKit.NSView:5:25: note: property declared here
3 | @MainActor open var leadingAnchor: NSLayoutXAxisAnchor { get }
4 | @available(macOS 10.11, *)
5 | @MainActor open var trailingAnchor: NSLayoutXAxisAnchor { get }
| `- note: property declared here
6 | @available(macOS 10.11, *)
7 | open var leftAnchor: NSLayoutXAxisAnchor { get }
/Users/admin/builder/spi-builder-workspace/Sources/swiftui-loop-videoplayer/view/player/mac/LoopingPlayerNSView.swift:107:27: warning: cannot access property 'timeObserver' with a non-sendable type 'Any?' from nonisolated deinit; this is an error in the Swift 6 language mode
105 | volumeObserver: &volumeObserver,
106 | statusObserver: &statusObserver,
107 | timeObserver: &timeObserver)
| `- warning: cannot access property 'timeObserver' with a non-sendable type 'Any?' from nonisolated deinit; this is an error in the Swift 6 language mode
108 | }
109 | }
[25/43] Compiling swiftui_loop_videoplayer ErrorMsgViewIOS.swift
/Users/admin/builder/spi-builder-workspace/Sources/swiftui-loop-videoplayer/view/player/mac/error/ErrorMsgViewMacOS.swift:60:20: warning: call to main actor-isolated initializer 'init()' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
57 | /// - fontSize: The font size to be used for the error text.
58 | /// - Returns: An `NSView` containing the error message text view centered with padding.
59 | internal func errorTpl(_ error: VPErrors, _ color: Color, _ fontSize: CGFloat) -> NSView {
| `- note: add '@MainActor' to make global function 'errorTpl' part of global actor 'MainActor'
60 | let textView = ErrorMsgViewMacOS()
| `- warning: call to main actor-isolated initializer 'init()' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
61 | textView.isEditable = false
62 | textView.isSelectable = false
AppKit.NSTextView:111:35: note: calls to initializer 'init()' from outside of its actor context are implicitly asynchronous
109 | @available(macOS 10.14, *)
110 | open var usesAdaptiveColorMappingForDarkAppearance: Bool { get set }
111 | @MainActor public convenience init()
| `- note: calls to initializer 'init()' from outside of its actor context are implicitly asynchronous
112 | @available(macOS 14.0, *)
113 | open var unionRectInVisibleSelectedRange: NSRect { get }
/Users/admin/builder/spi-builder-workspace/Sources/swiftui-loop-videoplayer/view/player/mac/error/ErrorMsgViewMacOS.swift:61:14: warning: main actor-isolated property 'isEditable' can not be mutated from a nonisolated context; this is an error in the Swift 6 language mode
57 | /// - fontSize: The font size to be used for the error text.
58 | /// - Returns: An `NSView` containing the error message text view centered with padding.
59 | internal func errorTpl(_ error: VPErrors, _ color: Color, _ fontSize: CGFloat) -> NSView {
| `- note: add '@MainActor' to make global function 'errorTpl' part of global actor 'MainActor'
60 | let textView = ErrorMsgViewMacOS()
61 | textView.isEditable = false
| `- warning: main actor-isolated property 'isEditable' can not be mutated from a nonisolated context; this is an error in the Swift 6 language mode
62 | textView.isSelectable = false
63 | textView.drawsBackground = false
AppKit.NSTextView:65:25: note: mutation of this property is only permitted within the actor
63 | open var usesRolloverButtonForSelection: Bool { get set }
64 | weak open var delegate: (any NSTextViewDelegate)? { get set }
65 | @MainActor open var isEditable: Bool { get set }
| `- note: mutation of this property is only permitted within the actor
66 | @available(swift, obsoleted: 3, renamed: "isEditable")
67 | open var editable: Bool { get set }
/Users/admin/builder/spi-builder-workspace/Sources/swiftui-loop-videoplayer/view/player/mac/error/ErrorMsgViewMacOS.swift:62:14: warning: main actor-isolated property 'isSelectable' can not be mutated from a nonisolated context; this is an error in the Swift 6 language mode
57 | /// - fontSize: The font size to be used for the error text.
58 | /// - Returns: An `NSView` containing the error message text view centered with padding.
59 | internal func errorTpl(_ error: VPErrors, _ color: Color, _ fontSize: CGFloat) -> NSView {
| `- note: add '@MainActor' to make global function 'errorTpl' part of global actor 'MainActor'
60 | let textView = ErrorMsgViewMacOS()
61 | textView.isEditable = false
62 | textView.isSelectable = false
| `- warning: main actor-isolated property 'isSelectable' can not be mutated from a nonisolated context; this is an error in the Swift 6 language mode
63 | textView.drawsBackground = false
64 | textView.string = error.description
AppKit.NSTextView:68:14: note: mutation of this property is only permitted within the actor
66 | @available(swift, obsoleted: 3, renamed: "isEditable")
67 | open var editable: Bool { get set }
68 | open var isSelectable: Bool { get set }
| `- note: mutation of this property is only permitted within the actor
69 | @available(swift, obsoleted: 3, renamed: "isSelectable")
70 | open var selectable: Bool { get set }
/Users/admin/builder/spi-builder-workspace/Sources/swiftui-loop-videoplayer/view/player/mac/error/ErrorMsgViewMacOS.swift:63:14: warning: main actor-isolated property 'drawsBackground' can not be mutated from a nonisolated context; this is an error in the Swift 6 language mode
57 | /// - fontSize: The font size to be used for the error text.
58 | /// - Returns: An `NSView` containing the error message text view centered with padding.
59 | internal func errorTpl(_ error: VPErrors, _ color: Color, _ fontSize: CGFloat) -> NSView {
| `- note: add '@MainActor' to make global function 'errorTpl' part of global actor 'MainActor'
60 | let textView = ErrorMsgViewMacOS()
61 | textView.isEditable = false
62 | textView.isSelectable = false
63 | textView.drawsBackground = false
| `- warning: main actor-isolated property 'drawsBackground' can not be mutated from a nonisolated context; this is an error in the Swift 6 language mode
64 | textView.string = error.description
65 | textView.alignment = .center
AppKit.NSTextView:75:14: note: mutation of this property is only permitted within the actor
73 | open var richText: Bool { get set }
74 | open var importsGraphics: Bool { get set }
75 | open var drawsBackground: Bool { get set }
| `- note: mutation of this property is only permitted within the actor
76 | @NSCopying open var backgroundColor: NSColor { get set }
77 | open var isFieldEditor: Bool { get set }
/Users/admin/builder/spi-builder-workspace/Sources/swiftui-loop-videoplayer/view/player/mac/error/ErrorMsgViewMacOS.swift:64:14: warning: main actor-isolated property 'string' can not be mutated from a nonisolated context; this is an error in the Swift 6 language mode
57 | /// - fontSize: The font size to be used for the error text.
58 | /// - Returns: An `NSView` containing the error message text view centered with padding.
59 | internal func errorTpl(_ error: VPErrors, _ color: Color, _ fontSize: CGFloat) -> NSView {
| `- note: add '@MainActor' to make global function 'errorTpl' part of global actor 'MainActor'
60 | let textView = ErrorMsgViewMacOS()
61 | textView.isEditable = false
62 | textView.isSelectable = false
63 | textView.drawsBackground = false
64 | textView.string = error.description
| `- warning: main actor-isolated property 'string' can not be mutated from a nonisolated context; this is an error in the Swift 6 language mode
65 | textView.alignment = .center
66 | textView.font = NSFont.systemFont(ofSize: fontSize)
AppKit.NSText:4:25: note: mutation of this property is only permitted within the actor
2 | @MainActor public init(frame frameRect: NSRect)
3 | @MainActor public init?(coder: NSCoder)
4 | @MainActor open var string: String { get set }
| `- note: mutation of this property is only permitted within the actor
5 | open func replaceCharacters(in range: NSRange, with string: String)
6 | @available(swift, obsoleted: 3, renamed: "replaceCharacters(in:with:)")
/Users/admin/builder/spi-builder-workspace/Sources/swiftui-loop-videoplayer/view/player/mac/error/ErrorMsgViewMacOS.swift:65:14: warning: main actor-isolated property 'alignment' can not be mutated from a nonisolated context; this is an error in the Swift 6 language mode
57 | /// - fontSize: The font size to be used for the error text.
58 | /// - Returns: An `NSView` containing the error message text view centered with padding.
59 | internal func errorTpl(_ error: VPErrors, _ color: Color, _ fontSize: CGFloat) -> NSView {
| `- note: add '@MainActor' to make global function 'errorTpl' part of global actor 'MainActor'
60 | let textView = ErrorMsgViewMacOS()
61 | textView.isEditable = false
:
63 | textView.drawsBackground = false
64 | textView.string = error.description
65 | textView.alignment = .center
| `- warning: main actor-isolated property 'alignment' can not be mutated from a nonisolated context; this is an error in the Swift 6 language mode
66 | textView.font = NSFont.systemFont(ofSize: fontSize)
67 | textView.textColor = NSColor(color)
AppKit.NSText:50:14: note: mutation of this property is only permitted within the actor
48 | open var font: NSFont? { get set }
49 | @NSCopying open var textColor: NSColor? { get set }
50 | open var alignment: NSTextAlignment { get set }
| `- note: mutation of this property is only permitted within the actor
51 | open var baseWritingDirection: NSWritingDirection { get set }
52 | open func setTextColor(_ color: NSColor?, range: NSRange)
/Users/admin/builder/spi-builder-workspace/Sources/swiftui-loop-videoplayer/view/player/mac/error/ErrorMsgViewMacOS.swift:66:14: warning: main actor-isolated property 'font' can not be mutated from a nonisolated context; this is an error in the Swift 6 language mode
57 | /// - fontSize: The font size to be used for the error text.
58 | /// - Returns: An `NSView` containing the error message text view centered with padding.
59 | internal func errorTpl(_ error: VPErrors, _ color: Color, _ fontSize: CGFloat) -> NSView {
| `- note: add '@MainActor' to make global function 'errorTpl' part of global actor 'MainActor'
60 | let textView = ErrorMsgViewMacOS()
61 | textView.isEditable = false
:
64 | textView.string = error.description
65 | textView.alignment = .center
66 | textView.font = NSFont.systemFont(ofSize: fontSize)
| `- warning: main actor-isolated property 'font' can not be mutated from a nonisolated context; this is an error in the Swift 6 language mode
67 | textView.textColor = NSColor(color)
68 |
AppKit.NSText:48:14: note: mutation of this property is only permitted within the actor
46 | open var selectedRange: NSRange { get set }
47 | open func scrollRangeToVisible(_ range: NSRange)
48 | open var font: NSFont? { get set }
| `- note: mutation of this property is only permitted within the actor
49 | @NSCopying open var textColor: NSColor? { get set }
50 | open var alignment: NSTextAlignment { get set }
/Users/admin/builder/spi-builder-workspace/Sources/swiftui-loop-videoplayer/view/player/mac/error/ErrorMsgViewMacOS.swift:67:14: warning: main actor-isolated property 'textColor' can not be mutated from a nonisolated context; this is an error in the Swift 6 language mode
57 | /// - fontSize: The font size to be used for the error text.
58 | /// - Returns: An `NSView` containing the error message text view centered with padding.
59 | internal func errorTpl(_ error: VPErrors, _ color: Color, _ fontSize: CGFloat) -> NSView {
| `- note: add '@MainActor' to make global function 'errorTpl' part of global actor 'MainActor'
60 | let textView = ErrorMsgViewMacOS()
61 | textView.isEditable = false
:
65 | textView.alignment = .center
66 | textView.font = NSFont.systemFont(ofSize: fontSize)
67 | textView.textColor = NSColor(color)
| `- warning: main actor-isolated property 'textColor' can not be mutated from a nonisolated context; this is an error in the Swift 6 language mode
68 |
69 | let containerView = NSView()
AppKit.NSText:49:25: note: mutation of this property is only permitted within the actor
47 | open func scrollRangeToVisible(_ range: NSRange)
48 | open var font: NSFont? { get set }
49 | @NSCopying open var textColor: NSColor? { get set }
| `- note: mutation of this property is only permitted within the actor
50 | open var alignment: NSTextAlignment { get set }
51 | open var baseWritingDirection: NSWritingDirection { get set }
/Users/admin/builder/spi-builder-workspace/Sources/swiftui-loop-videoplayer/view/player/mac/error/ErrorMsgViewMacOS.swift:69:25: warning: call to main actor-isolated initializer 'init()' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
57 | /// - fontSize: The font size to be used for the error text.
58 | /// - Returns: An `NSView` containing the error message text view centered with padding.
59 | internal func errorTpl(_ error: VPErrors, _ color: Color, _ fontSize: CGFloat) -> NSView {
| `- note: add '@MainActor' to make global function 'errorTpl' part of global actor 'MainActor'
60 | let textView = ErrorMsgViewMacOS()
61 | textView.isEditable = false
:
67 | textView.textColor = NSColor(color)
68 |
69 | let containerView = NSView()
| `- warning: call to main actor-isolated initializer 'init()' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
70 | containerView.addSubview(textView)
71 |
AppKit.NSView:354:35: note: calls to initializer 'init()' from outside of its actor context are implicitly asynchronous
352 | @available(macOS 10.14, *)
353 | open func viewDidChangeEffectiveAppearance()
354 | @MainActor public convenience init()
| `- note: calls to initializer 'init()' from outside of its actor context are implicitly asynchronous
355 | @available(macOS 10.5, *)
356 | open var animations: [NSAnimatablePropertyKey : Any] { get set }
/Users/admin/builder/spi-builder-workspace/Sources/swiftui-loop-videoplayer/view/player/mac/error/ErrorMsgViewMacOS.swift:70:19: warning: call to main actor-isolated instance method 'addSubview' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
57 | /// - fontSize: The font size to be used for the error text.
58 | /// - Returns: An `NSView` containing the error message text view centered with padding.
59 | internal func errorTpl(_ error: VPErrors, _ color: Color, _ fontSize: CGFloat) -> NSView {
| `- note: add '@MainActor' to make global function 'errorTpl' part of global actor 'MainActor'
60 | let textView = ErrorMsgViewMacOS()
61 | textView.isEditable = false
:
68 |
69 | let containerView = NSView()
70 | containerView.addSubview(textView)
| `- warning: call to main actor-isolated instance method 'addSubview' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
71 |
72 | textView.translatesAutoresizingMaskIntoConstraints = false
AppKit.NSView:29:26: note: calls to instance method 'addSubview' from outside of its actor context are implicitly asynchronous
27 | @available(macOS 10.5, *)
28 | open func viewDidUnhide()
29 | @MainActor open func addSubview(_ view: NSView)
| `- note: calls to instance method 'addSubview' from outside of its actor context are implicitly asynchronous
30 | open func addSubview(_ view: NSView, positioned place: NSWindow.OrderingMode, relativeTo otherView: NSView?)
31 | open func sortSubviews(_ compare: @convention(c) (NSView, NSView, UnsafeMutableRawPointer?) -> ComparisonResult, context: UnsafeMutableRawPointer?)
/Users/admin/builder/spi-builder-workspace/Sources/swiftui-loop-videoplayer/view/player/mac/error/ErrorMsgViewMacOS.swift:72:14: warning: main actor-isolated property 'translatesAutoresizingMaskIntoConstraints' can not be mutated from a nonisolated context; this is an error in the Swift 6 language mode
57 | /// - fontSize: The font size to be used for the error text.
58 | /// - Returns: An `NSView` containing the error message text view centered with padding.
59 | internal func errorTpl(_ error: VPErrors, _ color: Color, _ fontSize: CGFloat) -> NSView {
| `- note: add '@MainActor' to make global function 'errorTpl' part of global actor 'MainActor'
60 | let textView = ErrorMsgViewMacOS()
61 | textView.isEditable = false
:
70 | containerView.addSubview(textView)
71 |
72 | textView.translatesAutoresizingMaskIntoConstraints = false
| `- warning: main actor-isolated property 'translatesAutoresizingMaskIntoConstraints' can not be mutated from a nonisolated context; this is an error in the Swift 6 language mode
73 |
74 | // Center textView in containerView with padding
AppKit.NSView:3:25: note: mutation of this property is only permitted within the actor
1 | extension NSView {
2 | @available(macOS 10.7, *)
3 | @MainActor open var translatesAutoresizingMaskIntoConstraints: Bool { get set }
| `- note: mutation of this property is only permitted within the actor
4 | @available(macOS 10.7, *)
5 | open class var requiresConstraintBasedLayout: Bool { get }
/Users/admin/builder/spi-builder-workspace/Sources/swiftui-loop-videoplayer/view/player/mac/error/ErrorMsgViewMacOS.swift:76:18: warning: main actor-isolated property 'centerXAnchor' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
57 | /// - fontSize: The font size to be used for the error text.
58 | /// - Returns: An `NSView` containing the error message text view centered with padding.
59 | internal func errorTpl(_ error: VPErrors, _ color: Color, _ fontSize: CGFloat) -> NSView {
| `- note: add '@MainActor' to make global function 'errorTpl' part of global actor 'MainActor'
60 | let textView = ErrorMsgViewMacOS()
61 | textView.isEditable = false
:
74 | // Center textView in containerView with padding
75 | NSLayoutConstraint.activate([
76 | textView.centerXAnchor.constraint(equalTo: containerView.centerXAnchor),
| `- warning: main actor-isolated property 'centerXAnchor' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
77 | textView.centerYAnchor.constraint(equalTo: containerView.centerYAnchor),
78 | textView.leadingAnchor.constraint(greaterThanOrEqualTo: containerView.leadingAnchor, constant: 10),
AppKit.NSView:19:25: note: property declared here
17 | open var heightAnchor: NSLayoutDimension { get }
18 | @available(macOS 10.11, *)
19 | @MainActor open var centerXAnchor: NSLayoutXAxisAnchor { get }
| `- note: property declared here
20 | @available(macOS 10.11, *)
21 | open var centerYAnchor: NSLayoutYAxisAnchor { get }
/Users/admin/builder/spi-builder-workspace/Sources/swiftui-loop-videoplayer/view/player/mac/error/ErrorMsgViewMacOS.swift:76:66: warning: main actor-isolated property 'centerXAnchor' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
57 | /// - fontSize: The font size to be used for the error text.
58 | /// - Returns: An `NSView` containing the error message text view centered with padding.
59 | internal func errorTpl(_ error: VPErrors, _ color: Color, _ fontSize: CGFloat) -> NSView {
| `- note: add '@MainActor' to make global function 'errorTpl' part of global actor 'MainActor'
60 | let textView = ErrorMsgViewMacOS()
61 | textView.isEditable = false
:
74 | // Center textView in containerView with padding
75 | NSLayoutConstraint.activate([
76 | textView.centerXAnchor.constraint(equalTo: containerView.centerXAnchor),
| `- warning: main actor-isolated property 'centerXAnchor' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
77 | textView.centerYAnchor.constraint(equalTo: containerView.centerYAnchor),
78 | textView.leadingAnchor.constraint(greaterThanOrEqualTo: containerView.leadingAnchor, constant: 10),
AppKit.NSView:19:25: note: property declared here
17 | open var heightAnchor: NSLayoutDimension { get }
18 | @available(macOS 10.11, *)
19 | @MainActor open var centerXAnchor: NSLayoutXAxisAnchor { get }
| `- note: property declared here
20 | @available(macOS 10.11, *)
21 | open var centerYAnchor: NSLayoutYAxisAnchor { get }
/Users/admin/builder/spi-builder-workspace/Sources/swiftui-loop-videoplayer/view/player/mac/error/ErrorMsgViewMacOS.swift:77:18: warning: main actor-isolated property 'centerYAnchor' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
57 | /// - fontSize: The font size to be used for the error text.
58 | /// - Returns: An `NSView` containing the error message text view centered with padding.
59 | internal func errorTpl(_ error: VPErrors, _ color: Color, _ fontSize: CGFloat) -> NSView {
| `- note: add '@MainActor' to make global function 'errorTpl' part of global actor 'MainActor'
60 | let textView = ErrorMsgViewMacOS()
61 | textView.isEditable = false
:
75 | NSLayoutConstraint.activate([
76 | textView.centerXAnchor.constraint(equalTo: containerView.centerXAnchor),
77 | textView.centerYAnchor.constraint(equalTo: containerView.centerYAnchor),
| `- warning: main actor-isolated property 'centerYAnchor' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
78 | textView.leadingAnchor.constraint(greaterThanOrEqualTo: containerView.leadingAnchor, constant: 10),
79 | textView.trailingAnchor.constraint(lessThanOrEqualTo: containerView.trailingAnchor, constant: -10)
AppKit.NSView:21:14: note: property declared here
19 | @MainActor open var centerXAnchor: NSLayoutXAxisAnchor { get }
20 | @available(macOS 10.11, *)
21 | open var centerYAnchor: NSLayoutYAxisAnchor { get }
| `- note: property declared here
22 | @available(macOS 10.11, *)
23 | open var firstBaselineAnchor: NSLayoutYAxisAnchor { get }
/Users/admin/builder/spi-builder-workspace/Sources/swiftui-loop-videoplayer/view/player/mac/error/ErrorMsgViewMacOS.swift:77:66: warning: main actor-isolated property 'centerYAnchor' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
57 | /// - fontSize: The font size to be used for the error text.
58 | /// - Returns: An `NSView` containing the error message text view centered with padding.
59 | internal func errorTpl(_ error: VPErrors, _ color: Color, _ fontSize: CGFloat) -> NSView {
| `- note: add '@MainActor' to make global function 'errorTpl' part of global actor 'MainActor'
60 | let textView = ErrorMsgViewMacOS()
61 | textView.isEditable = false
:
75 | NSLayoutConstraint.activate([
76 | textView.centerXAnchor.constraint(equalTo: containerView.centerXAnchor),
77 | textView.centerYAnchor.constraint(equalTo: containerView.centerYAnchor),
| `- warning: main actor-isolated property 'centerYAnchor' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
78 | textView.leadingAnchor.constraint(greaterThanOrEqualTo: containerView.leadingAnchor, constant: 10),
79 | textView.trailingAnchor.constraint(lessThanOrEqualTo: containerView.trailingAnchor, constant: -10)
AppKit.NSView:21:14: note: property declared here
19 | @MainActor open var centerXAnchor: NSLayoutXAxisAnchor { get }
20 | @available(macOS 10.11, *)
21 | open var centerYAnchor: NSLayoutYAxisAnchor { get }
| `- note: property declared here
22 | @available(macOS 10.11, *)
23 | open var firstBaselineAnchor: NSLayoutYAxisAnchor { get }
/Users/admin/builder/spi-builder-workspace/Sources/swiftui-loop-videoplayer/view/player/mac/error/ErrorMsgViewMacOS.swift:78:18: warning: main actor-isolated property 'leadingAnchor' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
57 | /// - fontSize: The font size to be used for the error text.
58 | /// - Returns: An `NSView` containing the error message text view centered with padding.
59 | internal func errorTpl(_ error: VPErrors, _ color: Color, _ fontSize: CGFloat) -> NSView {
| `- note: add '@MainActor' to make global function 'errorTpl' part of global actor 'MainActor'
60 | let textView = ErrorMsgViewMacOS()
61 | textView.isEditable = false
:
76 | textView.centerXAnchor.constraint(equalTo: containerView.centerXAnchor),
77 | textView.centerYAnchor.constraint(equalTo: containerView.centerYAnchor),
78 | textView.leadingAnchor.constraint(greaterThanOrEqualTo: containerView.leadingAnchor, constant: 10),
| `- warning: main actor-isolated property 'leadingAnchor' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
79 | textView.trailingAnchor.constraint(lessThanOrEqualTo: containerView.trailingAnchor, constant: -10)
80 | ])
AppKit.NSView:3:25: note: property declared here
1 | extension NSView {
2 | @available(macOS 10.11, *)
3 | @MainActor open var leadingAnchor: NSLayoutXAxisAnchor { get }
| `- note: property declared here
4 | @available(macOS 10.11, *)
5 | @MainActor open var trailingAnchor: NSLayoutXAxisAnchor { get }
/Users/admin/builder/spi-builder-workspace/Sources/swiftui-loop-videoplayer/view/player/mac/error/ErrorMsgViewMacOS.swift:78:79: warning: main actor-isolated property 'leadingAnchor' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
57 | /// - fontSize: The font size to be used for the error text.
58 | /// - Returns: An `NSView` containing the error message text view centered with padding.
59 | internal func errorTpl(_ error: VPErrors, _ color: Color, _ fontSize: CGFloat) -> NSView {
| `- note: add '@MainActor' to make global function 'errorTpl' part of global actor 'MainActor'
60 | let textView = ErrorMsgViewMacOS()
61 | textView.isEditable = false
:
76 | textView.centerXAnchor.constraint(equalTo: containerView.centerXAnchor),
77 | textView.centerYAnchor.constraint(equalTo: containerView.centerYAnchor),
78 | textView.leadingAnchor.constraint(greaterThanOrEqualTo: containerView.leadingAnchor, constant: 10),
| `- warning: main actor-isolated property 'leadingAnchor' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
79 | textView.trailingAnchor.constraint(lessThanOrEqualTo: containerView.trailingAnchor, constant: -10)
80 | ])
AppKit.NSView:3:25: note: property declared here
1 | extension NSView {
2 | @available(macOS 10.11, *)
3 | @MainActor open var leadingAnchor: NSLayoutXAxisAnchor { get }
| `- note: property declared here
4 | @available(macOS 10.11, *)
5 | @MainActor open var trailingAnchor: NSLayoutXAxisAnchor { get }
/Users/admin/builder/spi-builder-workspace/Sources/swiftui-loop-videoplayer/view/player/mac/error/ErrorMsgViewMacOS.swift:79:18: warning: main actor-isolated property 'trailingAnchor' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
57 | /// - fontSize: The font size to be used for the error text.
58 | /// - Returns: An `NSView` containing the error message text view centered with padding.
59 | internal func errorTpl(_ error: VPErrors, _ color: Color, _ fontSize: CGFloat) -> NSView {
| `- note: add '@MainActor' to make global function 'errorTpl' part of global actor 'MainActor'
60 | let textView = ErrorMsgViewMacOS()
61 | textView.isEditable = false
:
77 | textView.centerYAnchor.constraint(equalTo: containerView.centerYAnchor),
78 | textView.leadingAnchor.constraint(greaterThanOrEqualTo: containerView.leadingAnchor, constant: 10),
79 | textView.trailingAnchor.constraint(lessThanOrEqualTo: containerView.trailingAnchor, constant: -10)
| `- warning: main actor-isolated property 'trailingAnchor' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
80 | ])
81 |
AppKit.NSView:5:25: note: property declared here
3 | @MainActor open var leadingAnchor: NSLayoutXAxisAnchor { get }
4 | @available(macOS 10.11, *)
5 | @MainActor open var trailingAnchor: NSLayoutXAxisAnchor { get }
| `- note: property declared here
6 | @available(macOS 10.11, *)
7 | open var leftAnchor: NSLayoutXAxisAnchor { get }
/Users/admin/builder/spi-builder-workspace/Sources/swiftui-loop-videoplayer/view/player/mac/error/ErrorMsgViewMacOS.swift:79:77: warning: main actor-isolated property 'trailingAnchor' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
57 | /// - fontSize: The font size to be used for the error text.
58 | /// - Returns: An `NSView` containing the error message text view centered with padding.
59 | internal func errorTpl(_ error: VPErrors, _ color: Color, _ fontSize: CGFloat) -> NSView {
| `- note: add '@MainActor' to make global function 'errorTpl' part of global actor 'MainActor'
60 | let textView = ErrorMsgViewMacOS()
61 | textView.isEditable = false
:
77 | textView.centerYAnchor.constraint(equalTo: containerView.centerYAnchor),
78 | textView.leadingAnchor.constraint(greaterThanOrEqualTo: containerView.leadingAnchor, constant: 10),
79 | textView.trailingAnchor.constraint(lessThanOrEqualTo: containerView.trailingAnchor, constant: -10)
| `- warning: main actor-isolated property 'trailingAnchor' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
80 | ])
81 |
AppKit.NSView:5:25: note: property declared here
3 | @MainActor open var leadingAnchor: NSLayoutXAxisAnchor { get }
4 | @available(macOS 10.11, *)
5 | @MainActor open var trailingAnchor: NSLayoutXAxisAnchor { get }
| `- note: property declared here
6 | @available(macOS 10.11, *)
7 | open var leftAnchor: NSLayoutXAxisAnchor { get }
/Users/admin/builder/spi-builder-workspace/Sources/swiftui-loop-videoplayer/view/player/mac/LoopingPlayerNSView.swift:107:27: warning: cannot access property 'timeObserver' with a non-sendable type 'Any?' from nonisolated deinit; this is an error in the Swift 6 language mode
105 | volumeObserver: &volumeObserver,
106 | statusObserver: &statusObserver,
107 | timeObserver: &timeObserver)
| `- warning: cannot access property 'timeObserver' with a non-sendable type 'Any?' from nonisolated deinit; this is an error in the Swift 6 language mode
108 | }
109 | }
[26/43] Compiling swiftui_loop_videoplayer LoopingPlayerNSView.swift
/Users/admin/builder/spi-builder-workspace/Sources/swiftui-loop-videoplayer/view/player/mac/error/ErrorMsgViewMacOS.swift:60:20: warning: call to main actor-isolated initializer 'init()' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
57 | /// - fontSize: The font size to be used for the error text.
58 | /// - Returns: An `NSView` containing the error message text view centered with padding.
59 | internal func errorTpl(_ error: VPErrors, _ color: Color, _ fontSize: CGFloat) -> NSView {
| `- note: add '@MainActor' to make global function 'errorTpl' part of global actor 'MainActor'
60 | let textView = ErrorMsgViewMacOS()
| `- warning: call to main actor-isolated initializer 'init()' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
61 | textView.isEditable = false
62 | textView.isSelectable = false
AppKit.NSTextView:111:35: note: calls to initializer 'init()' from outside of its actor context are implicitly asynchronous
109 | @available(macOS 10.14, *)
110 | open var usesAdaptiveColorMappingForDarkAppearance: Bool { get set }
111 | @MainActor public convenience init()
| `- note: calls to initializer 'init()' from outside of its actor context are implicitly asynchronous
112 | @available(macOS 14.0, *)
113 | open var unionRectInVisibleSelectedRange: NSRect { get }
/Users/admin/builder/spi-builder-workspace/Sources/swiftui-loop-videoplayer/view/player/mac/error/ErrorMsgViewMacOS.swift:61:14: warning: main actor-isolated property 'isEditable' can not be mutated from a nonisolated context; this is an error in the Swift 6 language mode
57 | /// - fontSize: The font size to be used for the error text.
58 | /// - Returns: An `NSView` containing the error message text view centered with padding.
59 | internal func errorTpl(_ error: VPErrors, _ color: Color, _ fontSize: CGFloat) -> NSView {
| `- note: add '@MainActor' to make global function 'errorTpl' part of global actor 'MainActor'
60 | let textView = ErrorMsgViewMacOS()
61 | textView.isEditable = false
| `- warning: main actor-isolated property 'isEditable' can not be mutated from a nonisolated context; this is an error in the Swift 6 language mode
62 | textView.isSelectable = false
63 | textView.drawsBackground = false
AppKit.NSTextView:65:25: note: mutation of this property is only permitted within the actor
63 | open var usesRolloverButtonForSelection: Bool { get set }
64 | weak open var delegate: (any NSTextViewDelegate)? { get set }
65 | @MainActor open var isEditable: Bool { get set }
| `- note: mutation of this property is only permitted within the actor
66 | @available(swift, obsoleted: 3, renamed: "isEditable")
67 | open var editable: Bool { get set }
/Users/admin/builder/spi-builder-workspace/Sources/swiftui-loop-videoplayer/view/player/mac/error/ErrorMsgViewMacOS.swift:62:14: warning: main actor-isolated property 'isSelectable' can not be mutated from a nonisolated context; this is an error in the Swift 6 language mode
57 | /// - fontSize: The font size to be used for the error text.
58 | /// - Returns: An `NSView` containing the error message text view centered with padding.
59 | internal func errorTpl(_ error: VPErrors, _ color: Color, _ fontSize: CGFloat) -> NSView {
| `- note: add '@MainActor' to make global function 'errorTpl' part of global actor 'MainActor'
60 | let textView = ErrorMsgViewMacOS()
61 | textView.isEditable = false
62 | textView.isSelectable = false
| `- warning: main actor-isolated property 'isSelectable' can not be mutated from a nonisolated context; this is an error in the Swift 6 language mode
63 | textView.drawsBackground = false
64 | textView.string = error.description
AppKit.NSTextView:68:14: note: mutation of this property is only permitted within the actor
66 | @available(swift, obsoleted: 3, renamed: "isEditable")
67 | open var editable: Bool { get set }
68 | open var isSelectable: Bool { get set }
| `- note: mutation of this property is only permitted within the actor
69 | @available(swift, obsoleted: 3, renamed: "isSelectable")
70 | open var selectable: Bool { get set }
/Users/admin/builder/spi-builder-workspace/Sources/swiftui-loop-videoplayer/view/player/mac/error/ErrorMsgViewMacOS.swift:63:14: warning: main actor-isolated property 'drawsBackground' can not be mutated from a nonisolated context; this is an error in the Swift 6 language mode
57 | /// - fontSize: The font size to be used for the error text.
58 | /// - Returns: An `NSView` containing the error message text view centered with padding.
59 | internal func errorTpl(_ error: VPErrors, _ color: Color, _ fontSize: CGFloat) -> NSView {
| `- note: add '@MainActor' to make global function 'errorTpl' part of global actor 'MainActor'
60 | let textView = ErrorMsgViewMacOS()
61 | textView.isEditable = false
62 | textView.isSelectable = false
63 | textView.drawsBackground = false
| `- warning: main actor-isolated property 'drawsBackground' can not be mutated from a nonisolated context; this is an error in the Swift 6 language mode
64 | textView.string = error.description
65 | textView.alignment = .center
AppKit.NSTextView:75:14: note: mutation of this property is only permitted within the actor
73 | open var richText: Bool { get set }
74 | open var importsGraphics: Bool { get set }
75 | open var drawsBackground: Bool { get set }
| `- note: mutation of this property is only permitted within the actor
76 | @NSCopying open var backgroundColor: NSColor { get set }
77 | open var isFieldEditor: Bool { get set }
/Users/admin/builder/spi-builder-workspace/Sources/swiftui-loop-videoplayer/view/player/mac/error/ErrorMsgViewMacOS.swift:64:14: warning: main actor-isolated property 'string' can not be mutated from a nonisolated context; this is an error in the Swift 6 language mode
57 | /// - fontSize: The font size to be used for the error text.
58 | /// - Returns: An `NSView` containing the error message text view centered with padding.
59 | internal func errorTpl(_ error: VPErrors, _ color: Color, _ fontSize: CGFloat) -> NSView {
| `- note: add '@MainActor' to make global function 'errorTpl' part of global actor 'MainActor'
60 | let textView = ErrorMsgViewMacOS()
61 | textView.isEditable = false
62 | textView.isSelectable = false
63 | textView.drawsBackground = false
64 | textView.string = error.description
| `- warning: main actor-isolated property 'string' can not be mutated from a nonisolated context; this is an error in the Swift 6 language mode
65 | textView.alignment = .center
66 | textView.font = NSFont.systemFont(ofSize: fontSize)
AppKit.NSText:4:25: note: mutation of this property is only permitted within the actor
2 | @MainActor public init(frame frameRect: NSRect)
3 | @MainActor public init?(coder: NSCoder)
4 | @MainActor open var string: String { get set }
| `- note: mutation of this property is only permitted within the actor
5 | open func replaceCharacters(in range: NSRange, with string: String)
6 | @available(swift, obsoleted: 3, renamed: "replaceCharacters(in:with:)")
/Users/admin/builder/spi-builder-workspace/Sources/swiftui-loop-videoplayer/view/player/mac/error/ErrorMsgViewMacOS.swift:65:14: warning: main actor-isolated property 'alignment' can not be mutated from a nonisolated context; this is an error in the Swift 6 language mode
57 | /// - fontSize: The font size to be used for the error text.
58 | /// - Returns: An `NSView` containing the error message text view centered with padding.
59 | internal func errorTpl(_ error: VPErrors, _ color: Color, _ fontSize: CGFloat) -> NSView {
| `- note: add '@MainActor' to make global function 'errorTpl' part of global actor 'MainActor'
60 | let textView = ErrorMsgViewMacOS()
61 | textView.isEditable = false
:
63 | textView.drawsBackground = false
64 | textView.string = error.description
65 | textView.alignment = .center
| `- warning: main actor-isolated property 'alignment' can not be mutated from a nonisolated context; this is an error in the Swift 6 language mode
66 | textView.font = NSFont.systemFont(ofSize: fontSize)
67 | textView.textColor = NSColor(color)
AppKit.NSText:50:14: note: mutation of this property is only permitted within the actor
48 | open var font: NSFont? { get set }
49 | @NSCopying open var textColor: NSColor? { get set }
50 | open var alignment: NSTextAlignment { get set }
| `- note: mutation of this property is only permitted within the actor
51 | open var baseWritingDirection: NSWritingDirection { get set }
52 | open func setTextColor(_ color: NSColor?, range: NSRange)
/Users/admin/builder/spi-builder-workspace/Sources/swiftui-loop-videoplayer/view/player/mac/error/ErrorMsgViewMacOS.swift:66:14: warning: main actor-isolated property 'font' can not be mutated from a nonisolated context; this is an error in the Swift 6 language mode
57 | /// - fontSize: The font size to be used for the error text.
58 | /// - Returns: An `NSView` containing the error message text view centered with padding.
59 | internal func errorTpl(_ error: VPErrors, _ color: Color, _ fontSize: CGFloat) -> NSView {
| `- note: add '@MainActor' to make global function 'errorTpl' part of global actor 'MainActor'
60 | let textView = ErrorMsgViewMacOS()
61 | textView.isEditable = false
:
64 | textView.string = error.description
65 | textView.alignment = .center
66 | textView.font = NSFont.systemFont(ofSize: fontSize)
| `- warning: main actor-isolated property 'font' can not be mutated from a nonisolated context; this is an error in the Swift 6 language mode
67 | textView.textColor = NSColor(color)
68 |
AppKit.NSText:48:14: note: mutation of this property is only permitted within the actor
46 | open var selectedRange: NSRange { get set }
47 | open func scrollRangeToVisible(_ range: NSRange)
48 | open var font: NSFont? { get set }
| `- note: mutation of this property is only permitted within the actor
49 | @NSCopying open var textColor: NSColor? { get set }
50 | open var alignment: NSTextAlignment { get set }
/Users/admin/builder/spi-builder-workspace/Sources/swiftui-loop-videoplayer/view/player/mac/error/ErrorMsgViewMacOS.swift:67:14: warning: main actor-isolated property 'textColor' can not be mutated from a nonisolated context; this is an error in the Swift 6 language mode
57 | /// - fontSize: The font size to be used for the error text.
58 | /// - Returns: An `NSView` containing the error message text view centered with padding.
59 | internal func errorTpl(_ error: VPErrors, _ color: Color, _ fontSize: CGFloat) -> NSView {
| `- note: add '@MainActor' to make global function 'errorTpl' part of global actor 'MainActor'
60 | let textView = ErrorMsgViewMacOS()
61 | textView.isEditable = false
:
65 | textView.alignment = .center
66 | textView.font = NSFont.systemFont(ofSize: fontSize)
67 | textView.textColor = NSColor(color)
| `- warning: main actor-isolated property 'textColor' can not be mutated from a nonisolated context; this is an error in the Swift 6 language mode
68 |
69 | let containerView = NSView()
AppKit.NSText:49:25: note: mutation of this property is only permitted within the actor
47 | open func scrollRangeToVisible(_ range: NSRange)
48 | open var font: NSFont? { get set }
49 | @NSCopying open var textColor: NSColor? { get set }
| `- note: mutation of this property is only permitted within the actor
50 | open var alignment: NSTextAlignment { get set }
51 | open var baseWritingDirection: NSWritingDirection { get set }
/Users/admin/builder/spi-builder-workspace/Sources/swiftui-loop-videoplayer/view/player/mac/error/ErrorMsgViewMacOS.swift:69:25: warning: call to main actor-isolated initializer 'init()' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
57 | /// - fontSize: The font size to be used for the error text.
58 | /// - Returns: An `NSView` containing the error message text view centered with padding.
59 | internal func errorTpl(_ error: VPErrors, _ color: Color, _ fontSize: CGFloat) -> NSView {
| `- note: add '@MainActor' to make global function 'errorTpl' part of global actor 'MainActor'
60 | let textView = ErrorMsgViewMacOS()
61 | textView.isEditable = false
:
67 | textView.textColor = NSColor(color)
68 |
69 | let containerView = NSView()
| `- warning: call to main actor-isolated initializer 'init()' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
70 | containerView.addSubview(textView)
71 |
AppKit.NSView:354:35: note: calls to initializer 'init()' from outside of its actor context are implicitly asynchronous
352 | @available(macOS 10.14, *)
353 | open func viewDidChangeEffectiveAppearance()
354 | @MainActor public convenience init()
| `- note: calls to initializer 'init()' from outside of its actor context are implicitly asynchronous
355 | @available(macOS 10.5, *)
356 | open var animations: [NSAnimatablePropertyKey : Any] { get set }
/Users/admin/builder/spi-builder-workspace/Sources/swiftui-loop-videoplayer/view/player/mac/error/ErrorMsgViewMacOS.swift:70:19: warning: call to main actor-isolated instance method 'addSubview' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
57 | /// - fontSize: The font size to be used for the error text.
58 | /// - Returns: An `NSView` containing the error message text view centered with padding.
59 | internal func errorTpl(_ error: VPErrors, _ color: Color, _ fontSize: CGFloat) -> NSView {
| `- note: add '@MainActor' to make global function 'errorTpl' part of global actor 'MainActor'
60 | let textView = ErrorMsgViewMacOS()
61 | textView.isEditable = false
:
68 |
69 | let containerView = NSView()
70 | containerView.addSubview(textView)
| `- warning: call to main actor-isolated instance method 'addSubview' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
71 |
72 | textView.translatesAutoresizingMaskIntoConstraints = false
AppKit.NSView:29:26: note: calls to instance method 'addSubview' from outside of its actor context are implicitly asynchronous
27 | @available(macOS 10.5, *)
28 | open func viewDidUnhide()
29 | @MainActor open func addSubview(_ view: NSView)
| `- note: calls to instance method 'addSubview' from outside of its actor context are implicitly asynchronous
30 | open func addSubview(_ view: NSView, positioned place: NSWindow.OrderingMode, relativeTo otherView: NSView?)
31 | open func sortSubviews(_ compare: @convention(c) (NSView, NSView, UnsafeMutableRawPointer?) -> ComparisonResult, context: UnsafeMutableRawPointer?)
/Users/admin/builder/spi-builder-workspace/Sources/swiftui-loop-videoplayer/view/player/mac/error/ErrorMsgViewMacOS.swift:72:14: warning: main actor-isolated property 'translatesAutoresizingMaskIntoConstraints' can not be mutated from a nonisolated context; this is an error in the Swift 6 language mode
57 | /// - fontSize: The font size to be used for the error text.
58 | /// - Returns: An `NSView` containing the error message text view centered with padding.
59 | internal func errorTpl(_ error: VPErrors, _ color: Color, _ fontSize: CGFloat) -> NSView {
| `- note: add '@MainActor' to make global function 'errorTpl' part of global actor 'MainActor'
60 | let textView = ErrorMsgViewMacOS()
61 | textView.isEditable = false
:
70 | containerView.addSubview(textView)
71 |
72 | textView.translatesAutoresizingMaskIntoConstraints = false
| `- warning: main actor-isolated property 'translatesAutoresizingMaskIntoConstraints' can not be mutated from a nonisolated context; this is an error in the Swift 6 language mode
73 |
74 | // Center textView in containerView with padding
AppKit.NSView:3:25: note: mutation of this property is only permitted within the actor
1 | extension NSView {
2 | @available(macOS 10.7, *)
3 | @MainActor open var translatesAutoresizingMaskIntoConstraints: Bool { get set }
| `- note: mutation of this property is only permitted within the actor
4 | @available(macOS 10.7, *)
5 | open class var requiresConstraintBasedLayout: Bool { get }
/Users/admin/builder/spi-builder-workspace/Sources/swiftui-loop-videoplayer/view/player/mac/error/ErrorMsgViewMacOS.swift:76:18: warning: main actor-isolated property 'centerXAnchor' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
57 | /// - fontSize: The font size to be used for the error text.
58 | /// - Returns: An `NSView` containing the error message text view centered with padding.
59 | internal func errorTpl(_ error: VPErrors, _ color: Color, _ fontSize: CGFloat) -> NSView {
| `- note: add '@MainActor' to make global function 'errorTpl' part of global actor 'MainActor'
60 | let textView = ErrorMsgViewMacOS()
61 | textView.isEditable = false
:
74 | // Center textView in containerView with padding
75 | NSLayoutConstraint.activate([
76 | textView.centerXAnchor.constraint(equalTo: containerView.centerXAnchor),
| `- warning: main actor-isolated property 'centerXAnchor' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
77 | textView.centerYAnchor.constraint(equalTo: containerView.centerYAnchor),
78 | textView.leadingAnchor.constraint(greaterThanOrEqualTo: containerView.leadingAnchor, constant: 10),
AppKit.NSView:19:25: note: property declared here
17 | open var heightAnchor: NSLayoutDimension { get }
18 | @available(macOS 10.11, *)
19 | @MainActor open var centerXAnchor: NSLayoutXAxisAnchor { get }
| `- note: property declared here
20 | @available(macOS 10.11, *)
21 | open var centerYAnchor: NSLayoutYAxisAnchor { get }
/Users/admin/builder/spi-builder-workspace/Sources/swiftui-loop-videoplayer/view/player/mac/error/ErrorMsgViewMacOS.swift:76:66: warning: main actor-isolated property 'centerXAnchor' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
57 | /// - fontSize: The font size to be used for the error text.
58 | /// - Returns: An `NSView` containing the error message text view centered with padding.
59 | internal func errorTpl(_ error: VPErrors, _ color: Color, _ fontSize: CGFloat) -> NSView {
| `- note: add '@MainActor' to make global function 'errorTpl' part of global actor 'MainActor'
60 | let textView = ErrorMsgViewMacOS()
61 | textView.isEditable = false
:
74 | // Center textView in containerView with padding
75 | NSLayoutConstraint.activate([
76 | textView.centerXAnchor.constraint(equalTo: containerView.centerXAnchor),
| `- warning: main actor-isolated property 'centerXAnchor' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
77 | textView.centerYAnchor.constraint(equalTo: containerView.centerYAnchor),
78 | textView.leadingAnchor.constraint(greaterThanOrEqualTo: containerView.leadingAnchor, constant: 10),
AppKit.NSView:19:25: note: property declared here
17 | open var heightAnchor: NSLayoutDimension { get }
18 | @available(macOS 10.11, *)
19 | @MainActor open var centerXAnchor: NSLayoutXAxisAnchor { get }
| `- note: property declared here
20 | @available(macOS 10.11, *)
21 | open var centerYAnchor: NSLayoutYAxisAnchor { get }
/Users/admin/builder/spi-builder-workspace/Sources/swiftui-loop-videoplayer/view/player/mac/error/ErrorMsgViewMacOS.swift:77:18: warning: main actor-isolated property 'centerYAnchor' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
57 | /// - fontSize: The font size to be used for the error text.
58 | /// - Returns: An `NSView` containing the error message text view centered with padding.
59 | internal func errorTpl(_ error: VPErrors, _ color: Color, _ fontSize: CGFloat) -> NSView {
| `- note: add '@MainActor' to make global function 'errorTpl' part of global actor 'MainActor'
60 | let textView = ErrorMsgViewMacOS()
61 | textView.isEditable = false
:
75 | NSLayoutConstraint.activate([
76 | textView.centerXAnchor.constraint(equalTo: containerView.centerXAnchor),
77 | textView.centerYAnchor.constraint(equalTo: containerView.centerYAnchor),
| `- warning: main actor-isolated property 'centerYAnchor' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
78 | textView.leadingAnchor.constraint(greaterThanOrEqualTo: containerView.leadingAnchor, constant: 10),
79 | textView.trailingAnchor.constraint(lessThanOrEqualTo: containerView.trailingAnchor, constant: -10)
AppKit.NSView:21:14: note: property declared here
19 | @MainActor open var centerXAnchor: NSLayoutXAxisAnchor { get }
20 | @available(macOS 10.11, *)
21 | open var centerYAnchor: NSLayoutYAxisAnchor { get }
| `- note: property declared here
22 | @available(macOS 10.11, *)
23 | open var firstBaselineAnchor: NSLayoutYAxisAnchor { get }
/Users/admin/builder/spi-builder-workspace/Sources/swiftui-loop-videoplayer/view/player/mac/error/ErrorMsgViewMacOS.swift:77:66: warning: main actor-isolated property 'centerYAnchor' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
57 | /// - fontSize: The font size to be used for the error text.
58 | /// - Returns: An `NSView` containing the error message text view centered with padding.
59 | internal func errorTpl(_ error: VPErrors, _ color: Color, _ fontSize: CGFloat) -> NSView {
| `- note: add '@MainActor' to make global function 'errorTpl' part of global actor 'MainActor'
60 | let textView = ErrorMsgViewMacOS()
61 | textView.isEditable = false
:
75 | NSLayoutConstraint.activate([
76 | textView.centerXAnchor.constraint(equalTo: containerView.centerXAnchor),
77 | textView.centerYAnchor.constraint(equalTo: containerView.centerYAnchor),
| `- warning: main actor-isolated property 'centerYAnchor' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
78 | textView.leadingAnchor.constraint(greaterThanOrEqualTo: containerView.leadingAnchor, constant: 10),
79 | textView.trailingAnchor.constraint(lessThanOrEqualTo: containerView.trailingAnchor, constant: -10)
AppKit.NSView:21:14: note: property declared here
19 | @MainActor open var centerXAnchor: NSLayoutXAxisAnchor { get }
20 | @available(macOS 10.11, *)
21 | open var centerYAnchor: NSLayoutYAxisAnchor { get }
| `- note: property declared here
22 | @available(macOS 10.11, *)
23 | open var firstBaselineAnchor: NSLayoutYAxisAnchor { get }
/Users/admin/builder/spi-builder-workspace/Sources/swiftui-loop-videoplayer/view/player/mac/error/ErrorMsgViewMacOS.swift:78:18: warning: main actor-isolated property 'leadingAnchor' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
57 | /// - fontSize: The font size to be used for the error text.
58 | /// - Returns: An `NSView` containing the error message text view centered with padding.
59 | internal func errorTpl(_ error: VPErrors, _ color: Color, _ fontSize: CGFloat) -> NSView {
| `- note: add '@MainActor' to make global function 'errorTpl' part of global actor 'MainActor'
60 | let textView = ErrorMsgViewMacOS()
61 | textView.isEditable = false
:
76 | textView.centerXAnchor.constraint(equalTo: containerView.centerXAnchor),
77 | textView.centerYAnchor.constraint(equalTo: containerView.centerYAnchor),
78 | textView.leadingAnchor.constraint(greaterThanOrEqualTo: containerView.leadingAnchor, constant: 10),
| `- warning: main actor-isolated property 'leadingAnchor' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
79 | textView.trailingAnchor.constraint(lessThanOrEqualTo: containerView.trailingAnchor, constant: -10)
80 | ])
AppKit.NSView:3:25: note: property declared here
1 | extension NSView {
2 | @available(macOS 10.11, *)
3 | @MainActor open var leadingAnchor: NSLayoutXAxisAnchor { get }
| `- note: property declared here
4 | @available(macOS 10.11, *)
5 | @MainActor open var trailingAnchor: NSLayoutXAxisAnchor { get }
/Users/admin/builder/spi-builder-workspace/Sources/swiftui-loop-videoplayer/view/player/mac/error/ErrorMsgViewMacOS.swift:78:79: warning: main actor-isolated property 'leadingAnchor' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
57 | /// - fontSize: The font size to be used for the error text.
58 | /// - Returns: An `NSView` containing the error message text view centered with padding.
59 | internal func errorTpl(_ error: VPErrors, _ color: Color, _ fontSize: CGFloat) -> NSView {
| `- note: add '@MainActor' to make global function 'errorTpl' part of global actor 'MainActor'
60 | let textView = ErrorMsgViewMacOS()
61 | textView.isEditable = false
:
76 | textView.centerXAnchor.constraint(equalTo: containerView.centerXAnchor),
77 | textView.centerYAnchor.constraint(equalTo: containerView.centerYAnchor),
78 | textView.leadingAnchor.constraint(greaterThanOrEqualTo: containerView.leadingAnchor, constant: 10),
| `- warning: main actor-isolated property 'leadingAnchor' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
79 | textView.trailingAnchor.constraint(lessThanOrEqualTo: containerView.trailingAnchor, constant: -10)
80 | ])
AppKit.NSView:3:25: note: property declared here
1 | extension NSView {
2 | @available(macOS 10.11, *)
3 | @MainActor open var leadingAnchor: NSLayoutXAxisAnchor { get }
| `- note: property declared here
4 | @available(macOS 10.11, *)
5 | @MainActor open var trailingAnchor: NSLayoutXAxisAnchor { get }
/Users/admin/builder/spi-builder-workspace/Sources/swiftui-loop-videoplayer/view/player/mac/error/ErrorMsgViewMacOS.swift:79:18: warning: main actor-isolated property 'trailingAnchor' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
57 | /// - fontSize: The font size to be used for the error text.
58 | /// - Returns: An `NSView` containing the error message text view centered with padding.
59 | internal func errorTpl(_ error: VPErrors, _ color: Color, _ fontSize: CGFloat) -> NSView {
| `- note: add '@MainActor' to make global function 'errorTpl' part of global actor 'MainActor'
60 | let textView = ErrorMsgViewMacOS()
61 | textView.isEditable = false
:
77 | textView.centerYAnchor.constraint(equalTo: containerView.centerYAnchor),
78 | textView.leadingAnchor.constraint(greaterThanOrEqualTo: containerView.leadingAnchor, constant: 10),
79 | textView.trailingAnchor.constraint(lessThanOrEqualTo: containerView.trailingAnchor, constant: -10)
| `- warning: main actor-isolated property 'trailingAnchor' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
80 | ])
81 |
AppKit.NSView:5:25: note: property declared here
3 | @MainActor open var leadingAnchor: NSLayoutXAxisAnchor { get }
4 | @available(macOS 10.11, *)
5 | @MainActor open var trailingAnchor: NSLayoutXAxisAnchor { get }
| `- note: property declared here
6 | @available(macOS 10.11, *)
7 | open var leftAnchor: NSLayoutXAxisAnchor { get }
/Users/admin/builder/spi-builder-workspace/Sources/swiftui-loop-videoplayer/view/player/mac/error/ErrorMsgViewMacOS.swift:79:77: warning: main actor-isolated property 'trailingAnchor' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
57 | /// - fontSize: The font size to be used for the error text.
58 | /// - Returns: An `NSView` containing the error message text view centered with padding.
59 | internal func errorTpl(_ error: VPErrors, _ color: Color, _ fontSize: CGFloat) -> NSView {
| `- note: add '@MainActor' to make global function 'errorTpl' part of global actor 'MainActor'
60 | let textView = ErrorMsgViewMacOS()
61 | textView.isEditable = false
:
77 | textView.centerYAnchor.constraint(equalTo: containerView.centerYAnchor),
78 | textView.leadingAnchor.constraint(greaterThanOrEqualTo: containerView.leadingAnchor, constant: 10),
79 | textView.trailingAnchor.constraint(lessThanOrEqualTo: containerView.trailingAnchor, constant: -10)
| `- warning: main actor-isolated property 'trailingAnchor' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
80 | ])
81 |
AppKit.NSView:5:25: note: property declared here
3 | @MainActor open var leadingAnchor: NSLayoutXAxisAnchor { get }
4 | @available(macOS 10.11, *)
5 | @MainActor open var trailingAnchor: NSLayoutXAxisAnchor { get }
| `- note: property declared here
6 | @available(macOS 10.11, *)
7 | open var leftAnchor: NSLayoutXAxisAnchor { get }
/Users/admin/builder/spi-builder-workspace/Sources/swiftui-loop-videoplayer/view/player/mac/LoopingPlayerNSView.swift:107:27: warning: cannot access property 'timeObserver' with a non-sendable type 'Any?' from nonisolated deinit; this is an error in the Swift 6 language mode
105 | volumeObserver: &volumeObserver,
106 | statusObserver: &statusObserver,
107 | timeObserver: &timeObserver)
| `- warning: cannot access property 'timeObserver' with a non-sendable type 'Any?' from nonisolated deinit; this is an error in the Swift 6 language mode
108 | }
109 | }
[27/43] Compiling swiftui_loop_videoplayer ErrorMsgViewMacOS.swift
/Users/admin/builder/spi-builder-workspace/Sources/swiftui-loop-videoplayer/view/player/mac/error/ErrorMsgViewMacOS.swift:60:20: warning: call to main actor-isolated initializer 'init()' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
57 | /// - fontSize: The font size to be used for the error text.
58 | /// - Returns: An `NSView` containing the error message text view centered with padding.
59 | internal func errorTpl(_ error: VPErrors, _ color: Color, _ fontSize: CGFloat) -> NSView {
| `- note: add '@MainActor' to make global function 'errorTpl' part of global actor 'MainActor'
60 | let textView = ErrorMsgViewMacOS()
| `- warning: call to main actor-isolated initializer 'init()' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
61 | textView.isEditable = false
62 | textView.isSelectable = false
AppKit.NSTextView:111:35: note: calls to initializer 'init()' from outside of its actor context are implicitly asynchronous
109 | @available(macOS 10.14, *)
110 | open var usesAdaptiveColorMappingForDarkAppearance: Bool { get set }
111 | @MainActor public convenience init()
| `- note: calls to initializer 'init()' from outside of its actor context are implicitly asynchronous
112 | @available(macOS 14.0, *)
113 | open var unionRectInVisibleSelectedRange: NSRect { get }
/Users/admin/builder/spi-builder-workspace/Sources/swiftui-loop-videoplayer/view/player/mac/error/ErrorMsgViewMacOS.swift:61:14: warning: main actor-isolated property 'isEditable' can not be mutated from a nonisolated context; this is an error in the Swift 6 language mode
57 | /// - fontSize: The font size to be used for the error text.
58 | /// - Returns: An `NSView` containing the error message text view centered with padding.
59 | internal func errorTpl(_ error: VPErrors, _ color: Color, _ fontSize: CGFloat) -> NSView {
| `- note: add '@MainActor' to make global function 'errorTpl' part of global actor 'MainActor'
60 | let textView = ErrorMsgViewMacOS()
61 | textView.isEditable = false
| `- warning: main actor-isolated property 'isEditable' can not be mutated from a nonisolated context; this is an error in the Swift 6 language mode
62 | textView.isSelectable = false
63 | textView.drawsBackground = false
AppKit.NSTextView:65:25: note: mutation of this property is only permitted within the actor
63 | open var usesRolloverButtonForSelection: Bool { get set }
64 | weak open var delegate: (any NSTextViewDelegate)? { get set }
65 | @MainActor open var isEditable: Bool { get set }
| `- note: mutation of this property is only permitted within the actor
66 | @available(swift, obsoleted: 3, renamed: "isEditable")
67 | open var editable: Bool { get set }
/Users/admin/builder/spi-builder-workspace/Sources/swiftui-loop-videoplayer/view/player/mac/error/ErrorMsgViewMacOS.swift:62:14: warning: main actor-isolated property 'isSelectable' can not be mutated from a nonisolated context; this is an error in the Swift 6 language mode
57 | /// - fontSize: The font size to be used for the error text.
58 | /// - Returns: An `NSView` containing the error message text view centered with padding.
59 | internal func errorTpl(_ error: VPErrors, _ color: Color, _ fontSize: CGFloat) -> NSView {
| `- note: add '@MainActor' to make global function 'errorTpl' part of global actor 'MainActor'
60 | let textView = ErrorMsgViewMacOS()
61 | textView.isEditable = false
62 | textView.isSelectable = false
| `- warning: main actor-isolated property 'isSelectable' can not be mutated from a nonisolated context; this is an error in the Swift 6 language mode
63 | textView.drawsBackground = false
64 | textView.string = error.description
AppKit.NSTextView:68:14: note: mutation of this property is only permitted within the actor
66 | @available(swift, obsoleted: 3, renamed: "isEditable")
67 | open var editable: Bool { get set }
68 | open var isSelectable: Bool { get set }
| `- note: mutation of this property is only permitted within the actor
69 | @available(swift, obsoleted: 3, renamed: "isSelectable")
70 | open var selectable: Bool { get set }
/Users/admin/builder/spi-builder-workspace/Sources/swiftui-loop-videoplayer/view/player/mac/error/ErrorMsgViewMacOS.swift:63:14: warning: main actor-isolated property 'drawsBackground' can not be mutated from a nonisolated context; this is an error in the Swift 6 language mode
57 | /// - fontSize: The font size to be used for the error text.
58 | /// - Returns: An `NSView` containing the error message text view centered with padding.
59 | internal func errorTpl(_ error: VPErrors, _ color: Color, _ fontSize: CGFloat) -> NSView {
| `- note: add '@MainActor' to make global function 'errorTpl' part of global actor 'MainActor'
60 | let textView = ErrorMsgViewMacOS()
61 | textView.isEditable = false
62 | textView.isSelectable = false
63 | textView.drawsBackground = false
| `- warning: main actor-isolated property 'drawsBackground' can not be mutated from a nonisolated context; this is an error in the Swift 6 language mode
64 | textView.string = error.description
65 | textView.alignment = .center
AppKit.NSTextView:75:14: note: mutation of this property is only permitted within the actor
73 | open var richText: Bool { get set }
74 | open var importsGraphics: Bool { get set }
75 | open var drawsBackground: Bool { get set }
| `- note: mutation of this property is only permitted within the actor
76 | @NSCopying open var backgroundColor: NSColor { get set }
77 | open var isFieldEditor: Bool { get set }
/Users/admin/builder/spi-builder-workspace/Sources/swiftui-loop-videoplayer/view/player/mac/error/ErrorMsgViewMacOS.swift:64:14: warning: main actor-isolated property 'string' can not be mutated from a nonisolated context; this is an error in the Swift 6 language mode
57 | /// - fontSize: The font size to be used for the error text.
58 | /// - Returns: An `NSView` containing the error message text view centered with padding.
59 | internal func errorTpl(_ error: VPErrors, _ color: Color, _ fontSize: CGFloat) -> NSView {
| `- note: add '@MainActor' to make global function 'errorTpl' part of global actor 'MainActor'
60 | let textView = ErrorMsgViewMacOS()
61 | textView.isEditable = false
62 | textView.isSelectable = false
63 | textView.drawsBackground = false
64 | textView.string = error.description
| `- warning: main actor-isolated property 'string' can not be mutated from a nonisolated context; this is an error in the Swift 6 language mode
65 | textView.alignment = .center
66 | textView.font = NSFont.systemFont(ofSize: fontSize)
AppKit.NSText:4:25: note: mutation of this property is only permitted within the actor
2 | @MainActor public init(frame frameRect: NSRect)
3 | @MainActor public init?(coder: NSCoder)
4 | @MainActor open var string: String { get set }
| `- note: mutation of this property is only permitted within the actor
5 | open func replaceCharacters(in range: NSRange, with string: String)
6 | @available(swift, obsoleted: 3, renamed: "replaceCharacters(in:with:)")
/Users/admin/builder/spi-builder-workspace/Sources/swiftui-loop-videoplayer/view/player/mac/error/ErrorMsgViewMacOS.swift:65:14: warning: main actor-isolated property 'alignment' can not be mutated from a nonisolated context; this is an error in the Swift 6 language mode
57 | /// - fontSize: The font size to be used for the error text.
58 | /// - Returns: An `NSView` containing the error message text view centered with padding.
59 | internal func errorTpl(_ error: VPErrors, _ color: Color, _ fontSize: CGFloat) -> NSView {
| `- note: add '@MainActor' to make global function 'errorTpl' part of global actor 'MainActor'
60 | let textView = ErrorMsgViewMacOS()
61 | textView.isEditable = false
:
63 | textView.drawsBackground = false
64 | textView.string = error.description
65 | textView.alignment = .center
| `- warning: main actor-isolated property 'alignment' can not be mutated from a nonisolated context; this is an error in the Swift 6 language mode
66 | textView.font = NSFont.systemFont(ofSize: fontSize)
67 | textView.textColor = NSColor(color)
AppKit.NSText:50:14: note: mutation of this property is only permitted within the actor
48 | open var font: NSFont? { get set }
49 | @NSCopying open var textColor: NSColor? { get set }
50 | open var alignment: NSTextAlignment { get set }
| `- note: mutation of this property is only permitted within the actor
51 | open var baseWritingDirection: NSWritingDirection { get set }
52 | open func setTextColor(_ color: NSColor?, range: NSRange)
/Users/admin/builder/spi-builder-workspace/Sources/swiftui-loop-videoplayer/view/player/mac/error/ErrorMsgViewMacOS.swift:66:14: warning: main actor-isolated property 'font' can not be mutated from a nonisolated context; this is an error in the Swift 6 language mode
57 | /// - fontSize: The font size to be used for the error text.
58 | /// - Returns: An `NSView` containing the error message text view centered with padding.
59 | internal func errorTpl(_ error: VPErrors, _ color: Color, _ fontSize: CGFloat) -> NSView {
| `- note: add '@MainActor' to make global function 'errorTpl' part of global actor 'MainActor'
60 | let textView = ErrorMsgViewMacOS()
61 | textView.isEditable = false
:
64 | textView.string = error.description
65 | textView.alignment = .center
66 | textView.font = NSFont.systemFont(ofSize: fontSize)
| `- warning: main actor-isolated property 'font' can not be mutated from a nonisolated context; this is an error in the Swift 6 language mode
67 | textView.textColor = NSColor(color)
68 |
AppKit.NSText:48:14: note: mutation of this property is only permitted within the actor
46 | open var selectedRange: NSRange { get set }
47 | open func scrollRangeToVisible(_ range: NSRange)
48 | open var font: NSFont? { get set }
| `- note: mutation of this property is only permitted within the actor
49 | @NSCopying open var textColor: NSColor? { get set }
50 | open var alignment: NSTextAlignment { get set }
/Users/admin/builder/spi-builder-workspace/Sources/swiftui-loop-videoplayer/view/player/mac/error/ErrorMsgViewMacOS.swift:67:14: warning: main actor-isolated property 'textColor' can not be mutated from a nonisolated context; this is an error in the Swift 6 language mode
57 | /// - fontSize: The font size to be used for the error text.
58 | /// - Returns: An `NSView` containing the error message text view centered with padding.
59 | internal func errorTpl(_ error: VPErrors, _ color: Color, _ fontSize: CGFloat) -> NSView {
| `- note: add '@MainActor' to make global function 'errorTpl' part of global actor 'MainActor'
60 | let textView = ErrorMsgViewMacOS()
61 | textView.isEditable = false
:
65 | textView.alignment = .center
66 | textView.font = NSFont.systemFont(ofSize: fontSize)
67 | textView.textColor = NSColor(color)
| `- warning: main actor-isolated property 'textColor' can not be mutated from a nonisolated context; this is an error in the Swift 6 language mode
68 |
69 | let containerView = NSView()
AppKit.NSText:49:25: note: mutation of this property is only permitted within the actor
47 | open func scrollRangeToVisible(_ range: NSRange)
48 | open var font: NSFont? { get set }
49 | @NSCopying open var textColor: NSColor? { get set }
| `- note: mutation of this property is only permitted within the actor
50 | open var alignment: NSTextAlignment { get set }
51 | open var baseWritingDirection: NSWritingDirection { get set }
/Users/admin/builder/spi-builder-workspace/Sources/swiftui-loop-videoplayer/view/player/mac/error/ErrorMsgViewMacOS.swift:69:25: warning: call to main actor-isolated initializer 'init()' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
57 | /// - fontSize: The font size to be used for the error text.
58 | /// - Returns: An `NSView` containing the error message text view centered with padding.
59 | internal func errorTpl(_ error: VPErrors, _ color: Color, _ fontSize: CGFloat) -> NSView {
| `- note: add '@MainActor' to make global function 'errorTpl' part of global actor 'MainActor'
60 | let textView = ErrorMsgViewMacOS()
61 | textView.isEditable = false
:
67 | textView.textColor = NSColor(color)
68 |
69 | let containerView = NSView()
| `- warning: call to main actor-isolated initializer 'init()' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
70 | containerView.addSubview(textView)
71 |
AppKit.NSView:354:35: note: calls to initializer 'init()' from outside of its actor context are implicitly asynchronous
352 | @available(macOS 10.14, *)
353 | open func viewDidChangeEffectiveAppearance()
354 | @MainActor public convenience init()
| `- note: calls to initializer 'init()' from outside of its actor context are implicitly asynchronous
355 | @available(macOS 10.5, *)
356 | open var animations: [NSAnimatablePropertyKey : Any] { get set }
/Users/admin/builder/spi-builder-workspace/Sources/swiftui-loop-videoplayer/view/player/mac/error/ErrorMsgViewMacOS.swift:70:19: warning: call to main actor-isolated instance method 'addSubview' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
57 | /// - fontSize: The font size to be used for the error text.
58 | /// - Returns: An `NSView` containing the error message text view centered with padding.
59 | internal func errorTpl(_ error: VPErrors, _ color: Color, _ fontSize: CGFloat) -> NSView {
| `- note: add '@MainActor' to make global function 'errorTpl' part of global actor 'MainActor'
60 | let textView = ErrorMsgViewMacOS()
61 | textView.isEditable = false
:
68 |
69 | let containerView = NSView()
70 | containerView.addSubview(textView)
| `- warning: call to main actor-isolated instance method 'addSubview' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
71 |
72 | textView.translatesAutoresizingMaskIntoConstraints = false
AppKit.NSView:29:26: note: calls to instance method 'addSubview' from outside of its actor context are implicitly asynchronous
27 | @available(macOS 10.5, *)
28 | open func viewDidUnhide()
29 | @MainActor open func addSubview(_ view: NSView)
| `- note: calls to instance method 'addSubview' from outside of its actor context are implicitly asynchronous
30 | open func addSubview(_ view: NSView, positioned place: NSWindow.OrderingMode, relativeTo otherView: NSView?)
31 | open func sortSubviews(_ compare: @convention(c) (NSView, NSView, UnsafeMutableRawPointer?) -> ComparisonResult, context: UnsafeMutableRawPointer?)
/Users/admin/builder/spi-builder-workspace/Sources/swiftui-loop-videoplayer/view/player/mac/error/ErrorMsgViewMacOS.swift:72:14: warning: main actor-isolated property 'translatesAutoresizingMaskIntoConstraints' can not be mutated from a nonisolated context; this is an error in the Swift 6 language mode
57 | /// - fontSize: The font size to be used for the error text.
58 | /// - Returns: An `NSView` containing the error message text view centered with padding.
59 | internal func errorTpl(_ error: VPErrors, _ color: Color, _ fontSize: CGFloat) -> NSView {
| `- note: add '@MainActor' to make global function 'errorTpl' part of global actor 'MainActor'
60 | let textView = ErrorMsgViewMacOS()
61 | textView.isEditable = false
:
70 | containerView.addSubview(textView)
71 |
72 | textView.translatesAutoresizingMaskIntoConstraints = false
| `- warning: main actor-isolated property 'translatesAutoresizingMaskIntoConstraints' can not be mutated from a nonisolated context; this is an error in the Swift 6 language mode
73 |
74 | // Center textView in containerView with padding
AppKit.NSView:3:25: note: mutation of this property is only permitted within the actor
1 | extension NSView {
2 | @available(macOS 10.7, *)
3 | @MainActor open var translatesAutoresizingMaskIntoConstraints: Bool { get set }
| `- note: mutation of this property is only permitted within the actor
4 | @available(macOS 10.7, *)
5 | open class var requiresConstraintBasedLayout: Bool { get }
/Users/admin/builder/spi-builder-workspace/Sources/swiftui-loop-videoplayer/view/player/mac/error/ErrorMsgViewMacOS.swift:76:18: warning: main actor-isolated property 'centerXAnchor' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
57 | /// - fontSize: The font size to be used for the error text.
58 | /// - Returns: An `NSView` containing the error message text view centered with padding.
59 | internal func errorTpl(_ error: VPErrors, _ color: Color, _ fontSize: CGFloat) -> NSView {
| `- note: add '@MainActor' to make global function 'errorTpl' part of global actor 'MainActor'
60 | let textView = ErrorMsgViewMacOS()
61 | textView.isEditable = false
:
74 | // Center textView in containerView with padding
75 | NSLayoutConstraint.activate([
76 | textView.centerXAnchor.constraint(equalTo: containerView.centerXAnchor),
| `- warning: main actor-isolated property 'centerXAnchor' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
77 | textView.centerYAnchor.constraint(equalTo: containerView.centerYAnchor),
78 | textView.leadingAnchor.constraint(greaterThanOrEqualTo: containerView.leadingAnchor, constant: 10),
AppKit.NSView:19:25: note: property declared here
17 | open var heightAnchor: NSLayoutDimension { get }
18 | @available(macOS 10.11, *)
19 | @MainActor open var centerXAnchor: NSLayoutXAxisAnchor { get }
| `- note: property declared here
20 | @available(macOS 10.11, *)
21 | open var centerYAnchor: NSLayoutYAxisAnchor { get }
/Users/admin/builder/spi-builder-workspace/Sources/swiftui-loop-videoplayer/view/player/mac/error/ErrorMsgViewMacOS.swift:76:66: warning: main actor-isolated property 'centerXAnchor' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
57 | /// - fontSize: The font size to be used for the error text.
58 | /// - Returns: An `NSView` containing the error message text view centered with padding.
59 | internal func errorTpl(_ error: VPErrors, _ color: Color, _ fontSize: CGFloat) -> NSView {
| `- note: add '@MainActor' to make global function 'errorTpl' part of global actor 'MainActor'
60 | let textView = ErrorMsgViewMacOS()
61 | textView.isEditable = false
:
74 | // Center textView in containerView with padding
75 | NSLayoutConstraint.activate([
76 | textView.centerXAnchor.constraint(equalTo: containerView.centerXAnchor),
| `- warning: main actor-isolated property 'centerXAnchor' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
77 | textView.centerYAnchor.constraint(equalTo: containerView.centerYAnchor),
78 | textView.leadingAnchor.constraint(greaterThanOrEqualTo: containerView.leadingAnchor, constant: 10),
AppKit.NSView:19:25: note: property declared here
17 | open var heightAnchor: NSLayoutDimension { get }
18 | @available(macOS 10.11, *)
19 | @MainActor open var centerXAnchor: NSLayoutXAxisAnchor { get }
| `- note: property declared here
20 | @available(macOS 10.11, *)
21 | open var centerYAnchor: NSLayoutYAxisAnchor { get }
/Users/admin/builder/spi-builder-workspace/Sources/swiftui-loop-videoplayer/view/player/mac/error/ErrorMsgViewMacOS.swift:77:18: warning: main actor-isolated property 'centerYAnchor' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
57 | /// - fontSize: The font size to be used for the error text.
58 | /// - Returns: An `NSView` containing the error message text view centered with padding.
59 | internal func errorTpl(_ error: VPErrors, _ color: Color, _ fontSize: CGFloat) -> NSView {
| `- note: add '@MainActor' to make global function 'errorTpl' part of global actor 'MainActor'
60 | let textView = ErrorMsgViewMacOS()
61 | textView.isEditable = false
:
75 | NSLayoutConstraint.activate([
76 | textView.centerXAnchor.constraint(equalTo: containerView.centerXAnchor),
77 | textView.centerYAnchor.constraint(equalTo: containerView.centerYAnchor),
| `- warning: main actor-isolated property 'centerYAnchor' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
78 | textView.leadingAnchor.constraint(greaterThanOrEqualTo: containerView.leadingAnchor, constant: 10),
79 | textView.trailingAnchor.constraint(lessThanOrEqualTo: containerView.trailingAnchor, constant: -10)
AppKit.NSView:21:14: note: property declared here
19 | @MainActor open var centerXAnchor: NSLayoutXAxisAnchor { get }
20 | @available(macOS 10.11, *)
21 | open var centerYAnchor: NSLayoutYAxisAnchor { get }
| `- note: property declared here
22 | @available(macOS 10.11, *)
23 | open var firstBaselineAnchor: NSLayoutYAxisAnchor { get }
/Users/admin/builder/spi-builder-workspace/Sources/swiftui-loop-videoplayer/view/player/mac/error/ErrorMsgViewMacOS.swift:77:66: warning: main actor-isolated property 'centerYAnchor' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
57 | /// - fontSize: The font size to be used for the error text.
58 | /// - Returns: An `NSView` containing the error message text view centered with padding.
59 | internal func errorTpl(_ error: VPErrors, _ color: Color, _ fontSize: CGFloat) -> NSView {
| `- note: add '@MainActor' to make global function 'errorTpl' part of global actor 'MainActor'
60 | let textView = ErrorMsgViewMacOS()
61 | textView.isEditable = false
:
75 | NSLayoutConstraint.activate([
76 | textView.centerXAnchor.constraint(equalTo: containerView.centerXAnchor),
77 | textView.centerYAnchor.constraint(equalTo: containerView.centerYAnchor),
| `- warning: main actor-isolated property 'centerYAnchor' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
78 | textView.leadingAnchor.constraint(greaterThanOrEqualTo: containerView.leadingAnchor, constant: 10),
79 | textView.trailingAnchor.constraint(lessThanOrEqualTo: containerView.trailingAnchor, constant: -10)
AppKit.NSView:21:14: note: property declared here
19 | @MainActor open var centerXAnchor: NSLayoutXAxisAnchor { get }
20 | @available(macOS 10.11, *)
21 | open var centerYAnchor: NSLayoutYAxisAnchor { get }
| `- note: property declared here
22 | @available(macOS 10.11, *)
23 | open var firstBaselineAnchor: NSLayoutYAxisAnchor { get }
/Users/admin/builder/spi-builder-workspace/Sources/swiftui-loop-videoplayer/view/player/mac/error/ErrorMsgViewMacOS.swift:78:18: warning: main actor-isolated property 'leadingAnchor' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
57 | /// - fontSize: The font size to be used for the error text.
58 | /// - Returns: An `NSView` containing the error message text view centered with padding.
59 | internal func errorTpl(_ error: VPErrors, _ color: Color, _ fontSize: CGFloat) -> NSView {
| `- note: add '@MainActor' to make global function 'errorTpl' part of global actor 'MainActor'
60 | let textView = ErrorMsgViewMacOS()
61 | textView.isEditable = false
:
76 | textView.centerXAnchor.constraint(equalTo: containerView.centerXAnchor),
77 | textView.centerYAnchor.constraint(equalTo: containerView.centerYAnchor),
78 | textView.leadingAnchor.constraint(greaterThanOrEqualTo: containerView.leadingAnchor, constant: 10),
| `- warning: main actor-isolated property 'leadingAnchor' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
79 | textView.trailingAnchor.constraint(lessThanOrEqualTo: containerView.trailingAnchor, constant: -10)
80 | ])
AppKit.NSView:3:25: note: property declared here
1 | extension NSView {
2 | @available(macOS 10.11, *)
3 | @MainActor open var leadingAnchor: NSLayoutXAxisAnchor { get }
| `- note: property declared here
4 | @available(macOS 10.11, *)
5 | @MainActor open var trailingAnchor: NSLayoutXAxisAnchor { get }
/Users/admin/builder/spi-builder-workspace/Sources/swiftui-loop-videoplayer/view/player/mac/error/ErrorMsgViewMacOS.swift:78:79: warning: main actor-isolated property 'leadingAnchor' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
57 | /// - fontSize: The font size to be used for the error text.
58 | /// - Returns: An `NSView` containing the error message text view centered with padding.
59 | internal func errorTpl(_ error: VPErrors, _ color: Color, _ fontSize: CGFloat) -> NSView {
| `- note: add '@MainActor' to make global function 'errorTpl' part of global actor 'MainActor'
60 | let textView = ErrorMsgViewMacOS()
61 | textView.isEditable = false
:
76 | textView.centerXAnchor.constraint(equalTo: containerView.centerXAnchor),
77 | textView.centerYAnchor.constraint(equalTo: containerView.centerYAnchor),
78 | textView.leadingAnchor.constraint(greaterThanOrEqualTo: containerView.leadingAnchor, constant: 10),
| `- warning: main actor-isolated property 'leadingAnchor' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
79 | textView.trailingAnchor.constraint(lessThanOrEqualTo: containerView.trailingAnchor, constant: -10)
80 | ])
AppKit.NSView:3:25: note: property declared here
1 | extension NSView {
2 | @available(macOS 10.11, *)
3 | @MainActor open var leadingAnchor: NSLayoutXAxisAnchor { get }
| `- note: property declared here
4 | @available(macOS 10.11, *)
5 | @MainActor open var trailingAnchor: NSLayoutXAxisAnchor { get }
/Users/admin/builder/spi-builder-workspace/Sources/swiftui-loop-videoplayer/view/player/mac/error/ErrorMsgViewMacOS.swift:79:18: warning: main actor-isolated property 'trailingAnchor' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
57 | /// - fontSize: The font size to be used for the error text.
58 | /// - Returns: An `NSView` containing the error message text view centered with padding.
59 | internal func errorTpl(_ error: VPErrors, _ color: Color, _ fontSize: CGFloat) -> NSView {
| `- note: add '@MainActor' to make global function 'errorTpl' part of global actor 'MainActor'
60 | let textView = ErrorMsgViewMacOS()
61 | textView.isEditable = false
:
77 | textView.centerYAnchor.constraint(equalTo: containerView.centerYAnchor),
78 | textView.leadingAnchor.constraint(greaterThanOrEqualTo: containerView.leadingAnchor, constant: 10),
79 | textView.trailingAnchor.constraint(lessThanOrEqualTo: containerView.trailingAnchor, constant: -10)
| `- warning: main actor-isolated property 'trailingAnchor' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
80 | ])
81 |
AppKit.NSView:5:25: note: property declared here
3 | @MainActor open var leadingAnchor: NSLayoutXAxisAnchor { get }
4 | @available(macOS 10.11, *)
5 | @MainActor open var trailingAnchor: NSLayoutXAxisAnchor { get }
| `- note: property declared here
6 | @available(macOS 10.11, *)
7 | open var leftAnchor: NSLayoutXAxisAnchor { get }
/Users/admin/builder/spi-builder-workspace/Sources/swiftui-loop-videoplayer/view/player/mac/error/ErrorMsgViewMacOS.swift:79:77: warning: main actor-isolated property 'trailingAnchor' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
57 | /// - fontSize: The font size to be used for the error text.
58 | /// - Returns: An `NSView` containing the error message text view centered with padding.
59 | internal func errorTpl(_ error: VPErrors, _ color: Color, _ fontSize: CGFloat) -> NSView {
| `- note: add '@MainActor' to make global function 'errorTpl' part of global actor 'MainActor'
60 | let textView = ErrorMsgViewMacOS()
61 | textView.isEditable = false
:
77 | textView.centerYAnchor.constraint(equalTo: containerView.centerYAnchor),
78 | textView.leadingAnchor.constraint(greaterThanOrEqualTo: containerView.leadingAnchor, constant: 10),
79 | textView.trailingAnchor.constraint(lessThanOrEqualTo: containerView.trailingAnchor, constant: -10)
| `- warning: main actor-isolated property 'trailingAnchor' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
80 | ])
81 |
AppKit.NSView:5:25: note: property declared here
3 | @MainActor open var leadingAnchor: NSLayoutXAxisAnchor { get }
4 | @available(macOS 10.11, *)
5 | @MainActor open var trailingAnchor: NSLayoutXAxisAnchor { get }
| `- note: property declared here
6 | @available(macOS 10.11, *)
7 | open var leftAnchor: NSLayoutXAxisAnchor { get }
/Users/admin/builder/spi-builder-workspace/Sources/swiftui-loop-videoplayer/view/player/mac/LoopingPlayerNSView.swift:107:27: warning: cannot access property 'timeObserver' with a non-sendable type 'Any?' from nonisolated deinit; this is an error in the Swift 6 language mode
105 | volumeObserver: &volumeObserver,
106 | statusObserver: &statusObserver,
107 | timeObserver: &timeObserver)
| `- warning: cannot access property 'timeObserver' with a non-sendable type 'Any?' from nonisolated deinit; this is an error in the Swift 6 language mode
108 | }
109 | }
[28/43] Compiling swiftui_loop_videoplayer ErrorGroup.swift
[29/43] Compiling swiftui_loop_videoplayer ErrorWidgetOff.swift
[30/43] Compiling swiftui_loop_videoplayer SettingsBuilder.swift
[31/43] Compiling swiftui_loop_videoplayer VideoSettings.swift
[32/43] Compiling swiftui_loop_videoplayer PlayerCoordinator.swift
/Users/admin/builder/spi-builder-workspace/Sources/swiftui-loop-videoplayer/view/modifier/OnPlayerEventChangeModifier.swift:13:23: warning: static property 'defaultValue' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
11 | internal struct PlayerEventPreferenceKey: PreferenceKey {
12 | /// The default value of player events, initialized as an empty array.
13 | public static var defaultValue: [PlayerEvent] = []
| |- warning: static property 'defaultValue' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'defaultValue' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'defaultValue' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
14 |
15 | /// Aggregates values from the view hierarchy when child views provide values.
/Users/admin/builder/spi-builder-workspace/Sources/swiftui-loop-videoplayer/view/modifier/OnTimeChangeModifier.swift:13:23: warning: static property 'defaultValue' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
11 | internal struct CurrentTimePreferenceKey: PreferenceKey {
12 | /// Sets the default playback time to 0.0 seconds.
13 | public static var defaultValue: Double = 0.0
| |- warning: static property 'defaultValue' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'defaultValue' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'defaultValue' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
14 |
15 | /// Aggregates the most recent playback time from child views.
[33/43] Compiling swiftui_loop_videoplayer LoopPlayerMultiPlatform.swift
/Users/admin/builder/spi-builder-workspace/Sources/swiftui-loop-videoplayer/view/modifier/OnPlayerEventChangeModifier.swift:13:23: warning: static property 'defaultValue' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
11 | internal struct PlayerEventPreferenceKey: PreferenceKey {
12 | /// The default value of player events, initialized as an empty array.
13 | public static var defaultValue: [PlayerEvent] = []
| |- warning: static property 'defaultValue' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'defaultValue' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'defaultValue' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
14 |
15 | /// Aggregates values from the view hierarchy when child views provide values.
/Users/admin/builder/spi-builder-workspace/Sources/swiftui-loop-videoplayer/view/modifier/OnTimeChangeModifier.swift:13:23: warning: static property 'defaultValue' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
11 | internal struct CurrentTimePreferenceKey: PreferenceKey {
12 | /// Sets the default playback time to 0.0 seconds.
13 | public static var defaultValue: Double = 0.0
| |- warning: static property 'defaultValue' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'defaultValue' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'defaultValue' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
14 |
15 | /// Aggregates the most recent playback time from child views.
[34/43] Compiling swiftui_loop_videoplayer OnPlayerEventChangeModifier.swift
/Users/admin/builder/spi-builder-workspace/Sources/swiftui-loop-videoplayer/view/modifier/OnPlayerEventChangeModifier.swift:13:23: warning: static property 'defaultValue' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
11 | internal struct PlayerEventPreferenceKey: PreferenceKey {
12 | /// The default value of player events, initialized as an empty array.
13 | public static var defaultValue: [PlayerEvent] = []
| |- warning: static property 'defaultValue' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'defaultValue' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'defaultValue' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
14 |
15 | /// Aggregates values from the view hierarchy when child views provide values.
/Users/admin/builder/spi-builder-workspace/Sources/swiftui-loop-videoplayer/view/modifier/OnTimeChangeModifier.swift:13:23: warning: static property 'defaultValue' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
11 | internal struct CurrentTimePreferenceKey: PreferenceKey {
12 | /// Sets the default playback time to 0.0 seconds.
13 | public static var defaultValue: Double = 0.0
| |- warning: static property 'defaultValue' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'defaultValue' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'defaultValue' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
14 |
15 | /// Aggregates the most recent playback time from child views.
[35/43] Compiling swiftui_loop_videoplayer OnTimeChangeModifier.swift
/Users/admin/builder/spi-builder-workspace/Sources/swiftui-loop-videoplayer/view/modifier/OnPlayerEventChangeModifier.swift:13:23: warning: static property 'defaultValue' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
11 | internal struct PlayerEventPreferenceKey: PreferenceKey {
12 | /// The default value of player events, initialized as an empty array.
13 | public static var defaultValue: [PlayerEvent] = []
| |- warning: static property 'defaultValue' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'defaultValue' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'defaultValue' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
14 |
15 | /// Aggregates values from the view hierarchy when child views provide values.
/Users/admin/builder/spi-builder-workspace/Sources/swiftui-loop-videoplayer/view/modifier/OnTimeChangeModifier.swift:13:23: warning: static property 'defaultValue' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
11 | internal struct CurrentTimePreferenceKey: PreferenceKey {
12 | /// Sets the default playback time to 0.0 seconds.
13 | public static var defaultValue: Double = 0.0
| |- warning: static property 'defaultValue' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'defaultValue' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'defaultValue' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
14 |
15 | /// Aggregates the most recent playback time from child views.
[36/43] Compiling swiftui_loop_videoplayer ShapeLayerBuilderProtocol.swift
[37/43] Compiling swiftui_loop_videoplayer VectorLayerProtocol.swift
[38/43] Compiling swiftui_loop_videoplayer LoopPlayerViewProtocol.swift
[39/43] Compiling swiftui_loop_videoplayer Ext.swift
[40/43] Compiling swiftui_loop_videoplayer SourceName.swift
[41/43] Compiling swiftui_loop_videoplayer TimePublishing.swift
[42/43] Compiling swiftui_loop_videoplayer EColor.swift
[43/43] Compiling swiftui_loop_videoplayer EFontSize.swift
Build complete! (20.75s)
Build complete.
{
"dependencies" : [
],
"manifest_display_name" : "swiftui-loop-videoplayer",
"name" : "swiftui-loop-videoplayer",
"path" : "/Users/admin/builder/spi-builder-workspace",
"platforms" : [
{
"name" : "ios",
"version" : "14.0"
},
{
"name" : "macos",
"version" : "11.0"
},
{
"name" : "tvos",
"version" : "14.0"
}
],
"products" : [
{
"name" : "swiftui-loop-videoplayer",
"targets" : [
"swiftui-loop-videoplayer"
],
"type" : {
"library" : [
"automatic"
]
}
}
],
"targets" : [
{
"c99name" : "swiftui_loop_videoplayerTests",
"module_type" : "SwiftTarget",
"name" : "swiftui-loop-videoplayerTests",
"path" : "Tests/swiftui-loop-videoplayerTests",
"resources" : [
{
"path" : "/Users/admin/builder/spi-builder-workspace/Tests/swiftui-loop-videoplayerTests/Resources/swipe.mp4",
"rule" : {
"process" : {
}
}
}
],
"sources" : [
"testPlaybackCommandChangesOverTime.swift",
"testPlayerInitialization.swift"
],
"target_dependencies" : [
"swiftui-loop-videoplayer"
],
"type" : "test"
},
{
"c99name" : "swiftui_loop_videoplayer",
"module_type" : "SwiftTarget",
"name" : "swiftui-loop-videoplayer",
"path" : "Sources/swiftui-loop-videoplayer",
"product_memberships" : [
"swiftui-loop-videoplayer"
],
"sources" : [
"ExtVideoPlayer.swift",
"enum/PlaybackCommand.swift",
"enum/PlayerEvent.swift",
"enum/Setting.swift",
"enum/VPErrors.swift",
"ext+/Array+.swift",
"ext+/CMTime+.swift",
"ext+/URL+.swift",
"ext+/View+.swift",
"fn/constraintsFn.swift",
"fn/fn+.swift",
"protocol/helpers/CustomView.swift",
"protocol/helpers/PlayerDelegateProtocol.swift",
"protocol/helpers/SettingsConvertible.swift",
"protocol/player/AbstractPlayer.swift",
"protocol/player/LoopingPlayerProtocol.swift",
"protocol/vector/ShapeLayerBuilderProtocol.swift",
"protocol/vector/VectorLayerProtocol.swift",
"protocol/view/LoopPlayerViewProtocol.swift",
"settings/Ext.swift",
"settings/Gravity.swift",
"settings/Loop.swift",
"settings/Mute.swift",
"settings/NotAutoPlay.swift",
"settings/SourceName.swift",
"settings/TimePublishing.swift",
"settings/errors/EColor.swift",
"settings/errors/EFontSize.swift",
"settings/errors/ErrorGroup.swift",
"settings/errors/ErrorWidgetOff.swift",
"utils/SettingsBuilder.swift",
"utils/VideoSettings.swift",
"view/helpers/PlayerCoordinator.swift",
"view/main/LoopPlayerMultiPlatform.swift",
"view/modifier/OnPlayerEventChangeModifier.swift",
"view/modifier/OnTimeChangeModifier.swift",
"view/player/ios/LoopingPlayerUIView.swift",
"view/player/ios/error/ErrorMsgViewIOS.swift",
"view/player/mac/LoopingPlayerNSView.swift",
"view/player/mac/error/ErrorMsgViewMacOS.swift"
],
"type" : "library"
}
],
"tools_version" : "5.6"
}
Done.