Build Information
Failed to build Luminare, reference main (71de40
), with Swift 6.0 for macOS (SPM) on 16 Jun 2025 10:54:34 UTC.
Build Command
env DEVELOPER_DIR=/Applications/Xcode-16.2.0.app xcrun swift build --arch arm64
Build Log
| `- note: mutation of this property is only permitted within the actor
22 |
23 | public init(
:
79 | }
80 | } else {
81 | timer = nil
| `- error: main actor-isolated property 'timer' can not be mutated from a Sendable closure
82 | }
83 | }
/Users/admin/builder/spi-builder-workspace/Sources/Luminare/Components/Auxiliary/Modifiers/BooleanThrottleDebouncedModifier.swift:101:21: error: main actor-isolated property 'debouncedValue' can not be mutated from a Sendable closure
17 |
18 | @State private var updatedValue: Bool // IMPORTANT: refer to this instead of `value`
19 | @State private var debouncedValue: Bool
| `- note: mutation of this property is only permitted within the actor
20 |
21 | @State private var timer: Timer?
:
99 | // Schedules to flip off
100 | timer = .scheduledTimer(withTimeInterval: flipOffDelay, repeats: false) { _ in
101 | debouncedValue = false
| `- error: main actor-isolated property 'debouncedValue' can not be mutated from a Sendable closure
102 | timer?.invalidate()
103 |
/Users/admin/builder/spi-builder-workspace/Sources/Luminare/Components/Auxiliary/Modifiers/BooleanThrottleDebouncedModifier.swift:102:21: error: main actor-isolated property 'timer' can not be referenced from a Sendable closure
19 | @State private var debouncedValue: Bool
20 |
21 | @State private var timer: Timer?
| `- note: property declared here
22 |
23 | public init(
:
100 | timer = .scheduledTimer(withTimeInterval: flipOffDelay, repeats: false) { _ in
101 | debouncedValue = false
102 | timer?.invalidate()
| `- error: main actor-isolated property 'timer' can not be referenced from a Sendable closure
103 |
104 | if throttleDelay > .zero {
/Users/admin/builder/spi-builder-workspace/Sources/Luminare/Components/Auxiliary/Modifiers/BooleanThrottleDebouncedModifier.swift:106:25: error: main actor-isolated property 'timer' can not be mutated from a Sendable closure
19 | @State private var debouncedValue: Bool
20 |
21 | @State private var timer: Timer?
| `- note: mutation of this property is only permitted within the actor
22 |
23 | public init(
:
104 | if throttleDelay > .zero {
105 | // In case immediately receives a flip on signal
106 | timer = .scheduledTimer(withTimeInterval: throttleDelay, repeats: false) { _ in
| `- error: main actor-isolated property 'timer' can not be mutated from a Sendable closure
107 | debouncedValue = updatedValue
108 | timer?.invalidate()
/Users/admin/builder/spi-builder-workspace/Sources/Luminare/Components/Auxiliary/Modifiers/BooleanThrottleDebouncedModifier.swift:107:29: error: main actor-isolated property 'debouncedValue' can not be mutated from a Sendable closure
17 |
18 | @State private var updatedValue: Bool // IMPORTANT: refer to this instead of `value`
19 | @State private var debouncedValue: Bool
| `- note: mutation of this property is only permitted within the actor
20 |
21 | @State private var timer: Timer?
:
105 | // In case immediately receives a flip on signal
106 | timer = .scheduledTimer(withTimeInterval: throttleDelay, repeats: false) { _ in
107 | debouncedValue = updatedValue
| `- error: main actor-isolated property 'debouncedValue' can not be mutated from a Sendable closure
108 | timer?.invalidate()
109 | timer = nil
/Users/admin/builder/spi-builder-workspace/Sources/Luminare/Components/Auxiliary/Modifiers/BooleanThrottleDebouncedModifier.swift:107:46: error: main actor-isolated property 'updatedValue' can not be referenced from a Sendable closure
16 | private let action: (Bool) -> ()
17 |
18 | @State private var updatedValue: Bool // IMPORTANT: refer to this instead of `value`
| `- note: property declared here
19 | @State private var debouncedValue: Bool
20 |
:
105 | // In case immediately receives a flip on signal
106 | timer = .scheduledTimer(withTimeInterval: throttleDelay, repeats: false) { _ in
107 | debouncedValue = updatedValue
| `- error: main actor-isolated property 'updatedValue' can not be referenced from a Sendable closure
108 | timer?.invalidate()
109 | timer = nil
/Users/admin/builder/spi-builder-workspace/Sources/Luminare/Components/Auxiliary/Modifiers/BooleanThrottleDebouncedModifier.swift:108:29: error: main actor-isolated property 'timer' can not be referenced from a Sendable closure
19 | @State private var debouncedValue: Bool
20 |
21 | @State private var timer: Timer?
| `- note: property declared here
22 |
23 | public init(
:
106 | timer = .scheduledTimer(withTimeInterval: throttleDelay, repeats: false) { _ in
107 | debouncedValue = updatedValue
108 | timer?.invalidate()
| `- error: main actor-isolated property 'timer' can not be referenced from a Sendable closure
109 | timer = nil
110 | }
/Users/admin/builder/spi-builder-workspace/Sources/Luminare/Components/Auxiliary/Modifiers/BooleanThrottleDebouncedModifier.swift:109:29: error: main actor-isolated property 'timer' can not be mutated from a Sendable closure
19 | @State private var debouncedValue: Bool
20 |
21 | @State private var timer: Timer?
| `- note: mutation of this property is only permitted within the actor
22 |
23 | public init(
:
107 | debouncedValue = updatedValue
108 | timer?.invalidate()
109 | timer = nil
| `- error: main actor-isolated property 'timer' can not be mutated from a Sendable closure
110 | }
111 | } else {
/Users/admin/builder/spi-builder-workspace/Sources/Luminare/Components/Auxiliary/Modifiers/BooleanThrottleDebouncedModifier.swift:112:25: error: main actor-isolated property 'timer' can not be mutated from a Sendable closure
19 | @State private var debouncedValue: Bool
20 |
21 | @State private var timer: Timer?
| `- note: mutation of this property is only permitted within the actor
22 |
23 | public init(
:
110 | }
111 | } else {
112 | timer = nil
| `- error: main actor-isolated property 'timer' can not be mutated from a Sendable closure
113 | }
114 | }
/Users/admin/builder/spi-builder-workspace/Sources/Luminare/Components/Auxiliary/Modifiers/ForceTouchModifier.swift:211:13: warning: capture of 'event' with non-sendable type 'ForceTouchGesture.Event' in a `@Sendable` closure
17 |
18 | /// The event context of a ``ForceTouchGesture``.
19 | public struct Event: Equatable {
| `- note: consider making struct 'Event' conform to the 'Sendable' protocol
20 | public var state: NSPressGestureRecognizer.State
21 | public var stage: Int
:
209 | longPressTimer = .scheduledTimer(withTimeInterval: threshold + 0.1, repeats: false) { _ in
210 | timestamp = .now
211 | event.stage = 1
| `- warning: capture of 'event' with non-sendable type 'ForceTouchGesture.Event' in a `@Sendable` closure
212 |
213 | longPressTimer = .scheduledTimer(withTimeInterval: 0.1, repeats: true) { _ in
/Users/admin/builder/spi-builder-workspace/Sources/Luminare/Components/Auxiliary/Modifiers/ForceTouchModifier.swift:210:13: error: main actor-isolated property 'timestamp' can not be mutated from a Sendable closure
117 | @ViewBuilder private var content: () -> Content
118 |
119 | @State private var timestamp: Date?
| `- note: mutation of this property is only permitted within the actor
120 | @State private var state: NSPressGestureRecognizer.State = .ended
121 |
:
208 |
209 | longPressTimer = .scheduledTimer(withTimeInterval: threshold + 0.1, repeats: false) { _ in
210 | timestamp = .now
| `- error: main actor-isolated property 'timestamp' can not be mutated from a Sendable closure
211 | event.stage = 1
212 |
/Users/admin/builder/spi-builder-workspace/Sources/Luminare/Components/Auxiliary/Modifiers/ForceTouchModifier.swift:211:13: warning: mutation of captured var 'event' in concurrently-executing code
209 | longPressTimer = .scheduledTimer(withTimeInterval: threshold + 0.1, repeats: false) { _ in
210 | timestamp = .now
211 | event.stage = 1
| `- warning: mutation of captured var 'event' in concurrently-executing code
212 |
213 | longPressTimer = .scheduledTimer(withTimeInterval: 0.1, repeats: true) { _ in
/Users/admin/builder/spi-builder-workspace/Sources/Luminare/Components/Auxiliary/Modifiers/ForceTouchModifier.swift:213:13: error: main actor-isolated property 'longPressTimer' can not be mutated from a Sendable closure
120 | @State private var state: NSPressGestureRecognizer.State = .ended
121 |
122 | @State private var longPressTimer: Timer?
| `- note: mutation of this property is only permitted within the actor
123 |
124 | private let id = UUID()
:
211 | event.stage = 1
212 |
213 | longPressTimer = .scheduledTimer(withTimeInterval: 0.1, repeats: true) { _ in
| `- error: main actor-isolated property 'longPressTimer' can not be mutated from a Sendable closure
214 | let pressure = event.pressure + 0.1
215 | let isOverflowing = pressure > 1
/Users/admin/builder/spi-builder-workspace/Sources/Luminare/Components/Auxiliary/Modifiers/ForceTouchModifier.swift:214:32: warning: capture of 'event' with non-sendable type 'ForceTouchGesture.Event' in a `@Sendable` closure
17 |
18 | /// The event context of a ``ForceTouchGesture``.
19 | public struct Event: Equatable {
| `- note: consider making struct 'Event' conform to the 'Sendable' protocol
20 | public var state: NSPressGestureRecognizer.State
21 | public var stage: Int
:
212 |
213 | longPressTimer = .scheduledTimer(withTimeInterval: 0.1, repeats: true) { _ in
214 | let pressure = event.pressure + 0.1
| `- warning: capture of 'event' with non-sendable type 'ForceTouchGesture.Event' in a `@Sendable` closure
215 | let isOverflowing = pressure > 1
216 |
/Users/admin/builder/spi-builder-workspace/Sources/Luminare/Components/Auxiliary/Modifiers/ForceTouchModifier.swift:214:32: warning: reference to captured var 'event' in concurrently-executing code
212 |
213 | longPressTimer = .scheduledTimer(withTimeInterval: 0.1, repeats: true) { _ in
214 | let pressure = event.pressure + 0.1
| `- warning: reference to captured var 'event' in concurrently-executing code
215 | let isOverflowing = pressure > 1
216 |
/Users/admin/builder/spi-builder-workspace/Sources/Luminare/Components/Auxiliary/Modifiers/ForceTouchModifier.swift:217:17: warning: mutation of captured var 'event' in concurrently-executing code
215 | let isOverflowing = pressure > 1
216 |
217 | event.pressure = pressure.truncatingRemainder(dividingBy: 1)
| `- warning: mutation of captured var 'event' in concurrently-executing code
218 | if isOverflowing {
219 | event.stage += 1
/Users/admin/builder/spi-builder-workspace/Sources/Luminare/Components/Auxiliary/Modifiers/ForceTouchModifier.swift:219:21: warning: mutation of captured var 'event' in concurrently-executing code
217 | event.pressure = pressure.truncatingRemainder(dividingBy: 1)
218 | if isOverflowing {
219 | event.stage += 1
| `- warning: mutation of captured var 'event' in concurrently-executing code
220 | }
221 |
/Users/admin/builder/spi-builder-workspace/Sources/Luminare/Components/Auxiliary/Modifiers/ForceTouchModifier.swift:222:17: error: main actor-isolated property 'gesture' can not be mutated from a Sendable closure
113 | private let configuration: NSPressureConfiguration
114 | private let threshold: CGFloat
115 | @Binding private var gesture: ForceTouchGesture
| `- note: mutation of this property is only permitted within the actor
116 |
117 | @ViewBuilder private var content: () -> Content
:
220 | }
221 |
222 | gesture = .active(event)
| `- error: main actor-isolated property 'gesture' can not be mutated from a Sendable closure
223 | }
224 | }
/Users/admin/builder/spi-builder-workspace/Sources/Luminare/Components/Auxiliary/Modifiers/ForceTouchModifier.swift:222:35: warning: reference to captured var 'event' in concurrently-executing code
220 | }
221 |
222 | gesture = .active(event)
| `- warning: reference to captured var 'event' in concurrently-executing code
223 | }
224 | }
[123/145] Compiling Luminare LuminareAspectRatioModifier.swift
/Users/admin/builder/spi-builder-workspace/Sources/Luminare/Components/Auxiliary/DividedVStack.swift:139:16: error: static property 'defaultValue' is not concurrency-safe because it is nonisolated global shared mutable state
137 | struct DisableDividedStackInnerPaddingKey: PreferenceKey {
138 | typealias Value = Bool?
139 | static var defaultValue: Value = nil
| |- error: static property 'defaultValue' is not concurrency-safe because it is nonisolated global shared mutable state
| |- 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
140 |
141 | static func reduce(value: inout Value, nextValue: () -> Value) {
/Users/admin/builder/spi-builder-workspace/Sources/Luminare/Components/Auxiliary/InfiniteScrollView.swift:319:39: error: main actor-isolated property 'contentView' can not be referenced from a nonisolated context
316 | }
317 |
318 | func initializeScroll(_ scrollView: NSScrollView) {
| `- note: add '@MainActor' to make instance method 'initializeScroll' part of global actor 'MainActor'
319 | let clipView = scrollView.contentView
| `- error: main actor-isolated property 'contentView' can not be referenced from a nonisolated context
320 |
321 | // Reset if required
AppKit.NSScrollView:27:25: note: property declared here
25 | open var contentSize: NSSize { get }
26 | @MainActor open var documentView: NSView? { get set }
27 | @MainActor open var contentView: NSClipView { get set }
| `- note: property declared here
28 | open var documentCursor: NSCursor? { get set }
29 | open var borderType: NSBorderType { get set }
/Users/admin/builder/spi-builder-workspace/Sources/Luminare/Components/Auxiliary/InfiniteScrollView.swift:322:23: error: main actor-isolated property 'shouldReset' can not be referenced from a nonisolated context
113 | public let initialOffset: CGFloat
114 |
115 | @Binding public var shouldReset: Bool
| `- note: property declared here
116 | @Binding public var offset: CGFloat
117 | @Binding public var page: Int
:
316 | }
317 |
318 | func initializeScroll(_ scrollView: NSScrollView) {
| `- note: add '@MainActor' to make instance method 'initializeScroll' part of global actor 'MainActor'
319 | let clipView = scrollView.contentView
320 |
321 | // Reset if required
322 | if parent.shouldReset {
| `- error: main actor-isolated property 'shouldReset' can not be referenced from a nonisolated context
323 | resetScrollViewPosition(clipView, offset: parent.direction.point(from: parent.initialOffset))
324 | pageOrigin = parent.page
/Users/admin/builder/spi-builder-workspace/Sources/Luminare/Components/Auxiliary/InfiniteScrollView.swift:324:37: error: main actor-isolated property 'page' can not be referenced from a nonisolated context
115 | @Binding public var shouldReset: Bool
116 | @Binding public var offset: CGFloat
117 | @Binding public var page: Int
| `- note: property declared here
118 |
119 | /// Initializes a ``InfiniteScrollView``.
:
316 | }
317 |
318 | func initializeScroll(_ scrollView: NSScrollView) {
| `- note: add '@MainActor' to make instance method 'initializeScroll' part of global actor 'MainActor'
319 | let clipView = scrollView.contentView
320 |
:
322 | if parent.shouldReset {
323 | resetScrollViewPosition(clipView, offset: parent.direction.point(from: parent.initialOffset))
324 | pageOrigin = parent.page
| `- error: main actor-isolated property 'page' can not be referenced from a nonisolated context
325 | }
326 |
/Users/admin/builder/spi-builder-workspace/Sources/Luminare/Utilities/EventMonitorManager.swift:11:16: error: static property 'shared' is not concurrency-safe because non-'Sendable' type 'EventMonitorManager' may have shared mutable state
8 | import AppKit
9 |
10 | final class EventMonitorManager {
| `- note: class 'EventMonitorManager' does not conform to the 'Sendable' protocol
11 | static let shared = EventMonitorManager()
| |- error: static property 'shared' is not concurrency-safe because non-'Sendable' type 'EventMonitorManager' may have shared mutable state
| |- note: annotate 'shared' 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
12 | private var monitors: [AnyHashable: NSObject] = [:]
13 |
/Users/admin/builder/spi-builder-workspace/Sources/Luminare/Components/Auxiliary/InfiniteScrollView.swift:336:45: error: call to main actor-isolated instance method 'convert(_:from:)' in a synchronous nonisolated context
334 | ]
335 | ) { [weak self] event in
336 | let location = clipView.convert(event.locationInWindow, from: nil)
| `- error: call to main actor-isolated instance method 'convert(_:from:)' in a synchronous nonisolated context
337 | guard let self else { return event }
338 |
AppKit.NSView:89:26: note: calls to instance method 'convert(_:from:)' from outside of its actor context are implicitly asynchronous
87 | @available(swift, obsoleted: 3, renamed: "isOpaque")
88 | open var opaque: Bool { get }
89 | @MainActor open func convert(_ point: NSPoint, from view: NSView?) -> NSPoint
| `- note: calls to instance method 'convert(_:from:)' from outside of its actor context are implicitly asynchronous
90 | @available(swift, obsoleted: 3, renamed: "convert(_:from:)")
91 | open func convertPoint(_ point: NSPoint, fromView view: NSView?) -> NSPoint
/Users/admin/builder/spi-builder-workspace/Sources/Luminare/Components/Auxiliary/InfiniteScrollView.swift:341:55: error: main actor-isolated property 'bounds' can not be referenced from a nonisolated autoclosure
339 | // ensure the dragging *happens* inside the view and can *continue* anywhere else
340 | let canIgnoreBounds = draggingStage == .dragging
341 | guard canIgnoreBounds || clipView.bounds.contains(location) else { return event }
| `- error: main actor-isolated property 'bounds' can not be referenced from a nonisolated autoclosure
342 |
343 | switch event.type {
AppKit.NSView:76:14: note: property declared here
74 | @available(swift, obsoleted: 3, renamed: "rotate(byDegrees:)")
75 | open func rotateByAngle(_ angle: CGFloat)
76 | open var bounds: NSRect { get set }
| `- note: property declared here
77 | open var isFlipped: Bool { get }
78 | @available(swift, obsoleted: 3, renamed: "isFlipped")
/Users/admin/builder/spi-builder-workspace/Sources/Luminare/Components/Auxiliary/InfiniteScrollView.swift:365:34: error: call to main actor-isolated instance method 'setBoundsOrigin' in a synchronous nonisolated context
363 | case .leftMouseDragged:
364 | // Always update view bounds first
365 | clipView.setBoundsOrigin(clipView.bounds.origin.applying(
| `- error: call to main actor-isolated instance method 'setBoundsOrigin' in a synchronous nonisolated context
366 | .init(translationX: -event.deltaX, y: -event.deltaY)
367 | ))
AppKit.NSView:64:26: note: calls to instance method 'setBoundsOrigin' from outside of its actor context are implicitly asynchronous
62 | @available(macOS 10.5, *)
63 | open var frameCenterRotation: CGFloat { get set }
64 | @MainActor open func setBoundsOrigin(_ newOrigin: NSPoint)
| `- note: calls to instance method 'setBoundsOrigin' from outside of its actor context are implicitly asynchronous
65 | open func setBoundsSize(_ newSize: NSSize)
66 | open var boundsRotation: CGFloat { get set }
/Users/admin/builder/spi-builder-workspace/Sources/Luminare/Components/Auxiliary/InfiniteScrollView.swift:365:59: error: main actor-isolated property 'bounds' can not be referenced from a nonisolated context
363 | case .leftMouseDragged:
364 | // Always update view bounds first
365 | clipView.setBoundsOrigin(clipView.bounds.origin.applying(
| `- error: main actor-isolated property 'bounds' can not be referenced from a nonisolated context
366 | .init(translationX: -event.deltaX, y: -event.deltaY)
367 | ))
AppKit.NSView:76:14: note: property declared here
74 | @available(swift, obsoleted: 3, renamed: "rotate(byDegrees:)")
75 | open func rotateByAngle(_ angle: CGFloat)
76 | open var bounds: NSRect { get set }
| `- note: property declared here
77 | open var isFlipped: Bool { get }
78 | @available(swift, obsoleted: 3, renamed: "isFlipped")
/Users/admin/builder/spi-builder-workspace/Sources/Luminare/Components/Auxiliary/InfiniteScrollView.swift:435:68: error: type of expression is ambiguous without a type annotation
433 | // Arithmetic approach to achieve a undirectional paging effect
434 | let isIncremental = offset - lastOffset > 0
435 | let comparation: (Int, Int) -> Int = isIncremental ? max : min
| `- error: type of expression is ambiguous without a type annotation
436 | let pageOffset = comparation(
437 | lastPageOffset,
/Users/admin/builder/spi-builder-workspace/Sources/Luminare/Components/Auxiliary/InfiniteScrollView.swift:405:61: error: main actor-isolated property 'centerRect' can not be referenced from a nonisolated context
200 | }
201 |
202 | var centerRect: CGRect {
| `- note: property declared here
203 | .init(origin: direction.point(from: (scrollableLength - length) / 2), size: size)
204 | }
:
400 |
401 | // Should be called whenever a scroll happens.
402 | @objc func didLiveScroll(_ notification: Notification) {
| `- note: add '@MainActor' to make instance method 'didLiveScroll' part of global actor 'MainActor'
403 | guard let scrollView = notification.object as? NSScrollView else { return }
404 |
405 | let center = parent.direction.offset(of: parent.centerRect.origin)
| `- error: main actor-isolated property 'centerRect' can not be referenced from a nonisolated context
406 | let offset = parent.direction.offset(of: scrollView.contentView.bounds.origin)
407 | let relativeOffset = offset - center
/Users/admin/builder/spi-builder-workspace/Sources/Luminare/Components/Auxiliary/InfiniteScrollView.swift:406:77: error: main actor-isolated property 'bounds' can not be referenced from a nonisolated context
400 |
401 | // Should be called whenever a scroll happens.
402 | @objc func didLiveScroll(_ notification: Notification) {
| `- note: add '@MainActor' to make instance method 'didLiveScroll' part of global actor 'MainActor'
403 | guard let scrollView = notification.object as? NSScrollView else { return }
404 |
405 | let center = parent.direction.offset(of: parent.centerRect.origin)
406 | let offset = parent.direction.offset(of: scrollView.contentView.bounds.origin)
| `- error: main actor-isolated property 'bounds' can not be referenced from a nonisolated context
407 | let relativeOffset = offset - center
408 |
AppKit.NSView:76:14: note: property declared here
74 | @available(swift, obsoleted: 3, renamed: "rotate(byDegrees:)")
75 | open func rotateByAngle(_ angle: CGFloat)
76 | open var bounds: NSRect { get set }
| `- note: property declared here
77 | open var isFlipped: Bool { get }
78 | @available(swift, obsoleted: 3, renamed: "isFlipped")
/Users/admin/builder/spi-builder-workspace/Sources/Luminare/Components/Auxiliary/InfiniteScrollView.swift:406:65: error: main actor-isolated property 'contentView' can not be referenced from a nonisolated context
400 |
401 | // Should be called whenever a scroll happens.
402 | @objc func didLiveScroll(_ notification: Notification) {
| `- note: add '@MainActor' to make instance method 'didLiveScroll' part of global actor 'MainActor'
403 | guard let scrollView = notification.object as? NSScrollView else { return }
404 |
405 | let center = parent.direction.offset(of: parent.centerRect.origin)
406 | let offset = parent.direction.offset(of: scrollView.contentView.bounds.origin)
| `- error: main actor-isolated property 'contentView' can not be referenced from a nonisolated context
407 | let relativeOffset = offset - center
408 |
AppKit.NSScrollView:27:25: note: property declared here
25 | open var contentSize: NSSize { get }
26 | @MainActor open var documentView: NSView? { get set }
27 | @MainActor open var contentView: NSClipView { get set }
| `- note: property declared here
28 | open var documentCursor: NSCursor? { get set }
29 | open var borderType: NSBorderType { get set }
/Users/admin/builder/spi-builder-workspace/Sources/Luminare/Components/Auxiliary/InfiniteScrollView.swift:416:56: error: main actor-isolated property 'contentView' can not be referenced from a nonisolated context
400 |
401 | // Should be called whenever a scroll happens.
402 | @objc func didLiveScroll(_ notification: Notification) {
| `- note: add '@MainActor' to make instance method 'didLiveScroll' part of global actor 'MainActor'
403 | guard let scrollView = notification.object as? NSScrollView else { return }
404 |
:
414 | // Check if reaches next page
415 | if abs(relativeOffset) >= parent.spacing {
416 | resetScrollViewPosition(scrollView.contentView)
| `- error: main actor-isolated property 'contentView' can not be referenced from a nonisolated context
417 |
418 | let pageOffset: Int = if relativeOffset >= parent.spacing {
AppKit.NSScrollView:27:25: note: property declared here
25 | open var contentSize: NSSize { get }
26 | @MainActor open var documentView: NSView? { get set }
27 | @MainActor open var contentView: NSClipView { get set }
| `- note: property declared here
28 | open var documentCursor: NSCursor? { get set }
29 | open var borderType: NSBorderType { get set }
/Users/admin/builder/spi-builder-workspace/Sources/Luminare/Components/Auxiliary/InfiniteScrollView.swift:447:37: error: main actor-isolated property 'contentView' can not be referenced from a nonisolated context
400 |
401 | // Should be called whenever a scroll happens.
402 | @objc func didLiveScroll(_ notification: Notification) {
| `- note: add '@MainActor' to make instance method 'didLiveScroll' part of global actor 'MainActor'
403 | guard let scrollView = notification.object as? NSScrollView else { return }
404 |
:
445 | }
446 |
447 | updateBounds(scrollView.contentView)
| `- error: main actor-isolated property 'contentView' can not be referenced from a nonisolated context
448 | }
449 |
AppKit.NSScrollView:27:25: note: property declared here
25 | open var contentSize: NSSize { get }
26 | @MainActor open var documentView: NSView? { get set }
27 | @MainActor open var contentView: NSClipView { get set }
| `- note: property declared here
28 | open var documentCursor: NSCursor? { get set }
29 | open var borderType: NSBorderType { get set }
/Users/admin/builder/spi-builder-workspace/Sources/Luminare/Components/Auxiliary/InfiniteScrollView.swift:454:79: error: main actor-isolated property 'bounds' can not be referenced from a nonisolated context
449 |
450 | // Should be called whenever a scroll starts.
451 | @objc func willStartLiveScroll(_ notification: Notification) {
| `- note: add '@MainActor' to make instance method 'willStartLiveScroll' part of global actor 'MainActor'
452 | guard let scrollView = notification.object as? NSScrollView else { return }
453 |
454 | offsetOrigin = parent.direction.offset(of: scrollView.contentView.bounds.origin)
| `- error: main actor-isolated property 'bounds' can not be referenced from a nonisolated context
455 | pageOrigin = parent.page
456 |
AppKit.NSView:76:14: note: property declared here
74 | @available(swift, obsoleted: 3, renamed: "rotate(byDegrees:)")
75 | open func rotateByAngle(_ angle: CGFloat)
76 | open var bounds: NSRect { get set }
| `- note: property declared here
77 | open var isFlipped: Bool { get }
78 | @available(swift, obsoleted: 3, renamed: "isFlipped")
/Users/admin/builder/spi-builder-workspace/Sources/Luminare/Components/Auxiliary/InfiniteScrollView.swift:454:67: error: main actor-isolated property 'contentView' can not be referenced from a nonisolated context
449 |
450 | // Should be called whenever a scroll starts.
451 | @objc func willStartLiveScroll(_ notification: Notification) {
| `- note: add '@MainActor' to make instance method 'willStartLiveScroll' part of global actor 'MainActor'
452 | guard let scrollView = notification.object as? NSScrollView else { return }
453 |
454 | offsetOrigin = parent.direction.offset(of: scrollView.contentView.bounds.origin)
| `- error: main actor-isolated property 'contentView' can not be referenced from a nonisolated context
455 | pageOrigin = parent.page
456 |
AppKit.NSScrollView:27:25: note: property declared here
25 | open var contentSize: NSSize { get }
26 | @MainActor open var documentView: NSView? { get set }
27 | @MainActor open var contentView: NSClipView { get set }
| `- note: property declared here
28 | open var documentCursor: NSCursor? { get set }
29 | open var borderType: NSBorderType { get set }
/Users/admin/builder/spi-builder-workspace/Sources/Luminare/Components/Auxiliary/InfiniteScrollView.swift:455:33: error: main actor-isolated property 'page' can not be referenced from a nonisolated context
115 | @Binding public var shouldReset: Bool
116 | @Binding public var offset: CGFloat
117 | @Binding public var page: Int
| `- note: property declared here
118 |
119 | /// Initializes a ``InfiniteScrollView``.
:
449 |
450 | // Should be called whenever a scroll starts.
451 | @objc func willStartLiveScroll(_ notification: Notification) {
| `- note: add '@MainActor' to make instance method 'willStartLiveScroll' part of global actor 'MainActor'
452 | guard let scrollView = notification.object as? NSScrollView else { return }
453 |
454 | offsetOrigin = parent.direction.offset(of: scrollView.contentView.bounds.origin)
455 | pageOrigin = parent.page
| `- error: main actor-isolated property 'page' can not be referenced from a nonisolated context
456 |
457 | lastOffset = offsetOrigin
/Users/admin/builder/spi-builder-workspace/Sources/Luminare/Components/Auxiliary/InfiniteScrollView.swift:459:37: error: main actor-isolated property 'contentView' can not be referenced from a nonisolated context
449 |
450 | // Should be called whenever a scroll starts.
451 | @objc func willStartLiveScroll(_ notification: Notification) {
| `- note: add '@MainActor' to make instance method 'willStartLiveScroll' part of global actor 'MainActor'
452 | guard let scrollView = notification.object as? NSScrollView else { return }
453 |
:
457 | lastOffset = offsetOrigin
458 |
459 | updateBounds(scrollView.contentView)
| `- error: main actor-isolated property 'contentView' can not be referenced from a nonisolated context
460 | }
461 |
AppKit.NSScrollView:27:25: note: property declared here
25 | open var contentSize: NSSize { get }
26 | @MainActor open var documentView: NSView? { get set }
27 | @MainActor open var contentView: NSClipView { get set }
| `- note: property declared here
28 | open var documentCursor: NSCursor? { get set }
29 | open var borderType: NSBorderType { get set }
/Users/admin/builder/spi-builder-workspace/Sources/Luminare/Components/Auxiliary/InfiniteScrollView.swift:470:60: error: main actor-isolated property 'contentView' can not be referenced from a nonisolated context
468 | NSAnimationContext.runAnimationGroup { context in
469 | context.allowsImplicitAnimation = true
470 | self.snapScrollViewPosition(scrollView.contentView)
| `- error: main actor-isolated property 'contentView' can not be referenced from a nonisolated context
471 | }
472 | }
AppKit.NSScrollView:27:25: note: property declared here
25 | open var contentSize: NSSize { get }
26 | @MainActor open var documentView: NSView? { get set }
27 | @MainActor open var contentView: NSClipView { get set }
| `- note: property declared here
28 | open var documentCursor: NSCursor? { get set }
29 | open var borderType: NSBorderType { get set }
/Users/admin/builder/spi-builder-workspace/Sources/Luminare/Components/Auxiliary/InfiniteScrollView.swift:474:37: error: main actor-isolated property 'contentView' can not be referenced from a nonisolated context
461 |
462 | // Should be called whenever a scroll ends.
463 | @objc func didEndLiveScroll(_ notification: Notification) {
| `- note: add '@MainActor' to make instance method 'didEndLiveScroll' part of global actor 'MainActor'
464 | guard let scrollView = notification.object as? NSScrollView else { return }
465 |
:
472 | }
473 |
474 | updateBounds(scrollView.contentView)
| `- error: main actor-isolated property 'contentView' can not be referenced from a nonisolated context
475 | }
476 |
AppKit.NSScrollView:27:25: note: property declared here
25 | open var contentSize: NSSize { get }
26 | @MainActor open var documentView: NSView? { get set }
27 | @MainActor open var contentView: NSClipView { get set }
| `- note: property declared here
28 | open var documentCursor: NSCursor? { get set }
29 | open var borderType: NSBorderType { get set }
/Users/admin/builder/spi-builder-workspace/Sources/Luminare/Components/Auxiliary/InfiniteScrollView.swift:478:20: error: call to main actor-isolated instance method 'onBoundsChange(_:animate:)' in a synchronous nonisolated context
222 | }
223 |
224 | func onBoundsChange(_ bounds: CGRect, animate: Bool = false) {
| `- note: calls to instance method 'onBoundsChange(_:animate:)' from outside of its actor context are implicitly asynchronous
225 | let offset = direction.offset(of: bounds.origin) - direction.offset(of: centerRect.origin)
226 | if animate {
:
475 | }
476 |
477 | private func updateBounds(_ clipView: NSClipView, animate: Bool = false) {
| `- note: add '@MainActor' to make instance method 'updateBounds(_:animate:)' part of global actor 'MainActor'
478 | parent.onBoundsChange(clipView.bounds, animate: animate)
| `- error: call to main actor-isolated instance method 'onBoundsChange(_:animate:)' in a synchronous nonisolated context
479 | }
480 |
/Users/admin/builder/spi-builder-workspace/Sources/Luminare/Components/Auxiliary/InfiniteScrollView.swift:478:44: error: main actor-isolated property 'bounds' can not be referenced from a nonisolated context
475 | }
476 |
477 | private func updateBounds(_ clipView: NSClipView, animate: Bool = false) {
| `- note: add '@MainActor' to make instance method 'updateBounds(_:animate:)' part of global actor 'MainActor'
478 | parent.onBoundsChange(clipView.bounds, animate: animate)
| `- error: main actor-isolated property 'bounds' can not be referenced from a nonisolated context
479 | }
480 |
AppKit.NSView:76:14: note: property declared here
74 | @available(swift, obsoleted: 3, renamed: "rotate(byDegrees:)")
75 | open func rotateByAngle(_ angle: CGFloat)
76 | open var bounds: NSRect { get set }
| `- note: property declared here
77 | open var isFlipped: Bool { get }
78 | @available(swift, obsoleted: 3, renamed: "isFlipped")
/Users/admin/builder/spi-builder-workspace/Sources/Luminare/Components/Auxiliary/InfiniteScrollView.swift:483:20: error: main actor-isolated property 'page' can not be mutated from a nonisolated context
115 | @Binding public var shouldReset: Bool
116 | @Binding public var offset: CGFloat
117 | @Binding public var page: Int
| `- note: mutation of this property is only permitted within the actor
118 |
119 | /// Initializes a ``InfiniteScrollView``.
:
480 |
481 | // Accumulates the page for wrapping
482 | private func accumulatePage(_ offset: Int) {
| `- note: add '@MainActor' to make instance method 'accumulatePage' part of global actor 'MainActor'
483 | parent.page += offset
| `- error: main actor-isolated property 'page' can not be mutated from a nonisolated context
484 | pageOrigin = parent.page
485 | }
/Users/admin/builder/spi-builder-workspace/Sources/Luminare/Components/Auxiliary/InfiniteScrollView.swift:484:33: error: main actor-isolated property 'page' can not be referenced from a nonisolated context
115 | @Binding public var shouldReset: Bool
116 | @Binding public var offset: CGFloat
117 | @Binding public var page: Int
| `- note: property declared here
118 |
119 | /// Initializes a ``InfiniteScrollView``.
:
480 |
481 | // Accumulates the page for wrapping
482 | private func accumulatePage(_ offset: Int) {
| `- note: add '@MainActor' to make instance method 'accumulatePage' part of global actor 'MainActor'
483 | parent.page += offset
484 | pageOrigin = parent.page
| `- error: main actor-isolated property 'page' can not be referenced from a nonisolated context
485 | }
486 |
/Users/admin/builder/spi-builder-workspace/Sources/Luminare/Components/Auxiliary/InfiniteScrollView.swift:489:20: error: main actor-isolated property 'page' can not be mutated from a nonisolated context
115 | @Binding public var shouldReset: Bool
116 | @Binding public var offset: CGFloat
117 | @Binding public var page: Int
| `- note: mutation of this property is only permitted within the actor
118 |
119 | /// Initializes a ``InfiniteScrollView``.
:
486 |
487 | // Overrides the page, not for wrapping
488 | private func overridePage(_ offset: Int) {
| `- note: add '@MainActor' to make instance method 'overridePage' part of global actor 'MainActor'
489 | parent.page = pageOrigin + offset
| `- error: main actor-isolated property 'page' can not be mutated from a nonisolated context
490 | }
491 |
/Users/admin/builder/spi-builder-workspace/Sources/Luminare/Components/Auxiliary/InfiniteScrollView.swift:493:22: error: call to main actor-isolated instance method 'setBoundsOrigin' in a synchronous nonisolated context
490 | }
491 |
492 | private func resetScrollViewPosition(_ clipView: NSClipView, offset: CGPoint = .zero, animate: Bool = false) {
| `- note: add '@MainActor' to make instance method 'resetScrollViewPosition(_:offset:animate:)' part of global actor 'MainActor'
493 | clipView.setBoundsOrigin(parent.centerRect.origin.applying(.init(translationX: offset.x, y: offset.y)))
| `- error: call to main actor-isolated instance method 'setBoundsOrigin' in a synchronous nonisolated context
494 |
495 | parent.shouldReset = false
AppKit.NSView:64:26: note: calls to instance method 'setBoundsOrigin' from outside of its actor context are implicitly asynchronous
62 | @available(macOS 10.5, *)
63 | open var frameCenterRotation: CGFloat { get set }
64 | @MainActor open func setBoundsOrigin(_ newOrigin: NSPoint)
| `- note: calls to instance method 'setBoundsOrigin' from outside of its actor context are implicitly asynchronous
65 | open func setBoundsSize(_ newSize: NSSize)
66 | open var boundsRotation: CGFloat { get set }
/Users/admin/builder/spi-builder-workspace/Sources/Luminare/Components/Auxiliary/InfiniteScrollView.swift:493:45: error: main actor-isolated property 'centerRect' can not be referenced from a nonisolated context
200 | }
201 |
202 | var centerRect: CGRect {
| `- note: property declared here
203 | .init(origin: direction.point(from: (scrollableLength - length) / 2), size: size)
204 | }
:
490 | }
491 |
492 | private func resetScrollViewPosition(_ clipView: NSClipView, offset: CGPoint = .zero, animate: Bool = false) {
| `- note: add '@MainActor' to make instance method 'resetScrollViewPosition(_:offset:animate:)' part of global actor 'MainActor'
493 | clipView.setBoundsOrigin(parent.centerRect.origin.applying(.init(translationX: offset.x, y: offset.y)))
| `- error: main actor-isolated property 'centerRect' can not be referenced from a nonisolated context
494 |
495 | parent.shouldReset = false
/Users/admin/builder/spi-builder-workspace/Sources/Luminare/Components/Auxiliary/InfiniteScrollView.swift:495:20: error: main actor-isolated property 'shouldReset' can not be mutated from a nonisolated context
113 | public let initialOffset: CGFloat
114 |
115 | @Binding public var shouldReset: Bool
| `- note: mutation of this property is only permitted within the actor
116 | @Binding public var offset: CGFloat
117 | @Binding public var page: Int
:
490 | }
491 |
492 | private func resetScrollViewPosition(_ clipView: NSClipView, offset: CGPoint = .zero, animate: Bool = false) {
| `- note: add '@MainActor' to make instance method 'resetScrollViewPosition(_:offset:animate:)' part of global actor 'MainActor'
493 | clipView.setBoundsOrigin(parent.centerRect.origin.applying(.init(translationX: offset.x, y: offset.y)))
494 |
495 | parent.shouldReset = false
| `- error: main actor-isolated property 'shouldReset' can not be mutated from a nonisolated context
496 | offsetOrigin = parent.direction.offset(of: clipView.bounds.origin)
497 |
/Users/admin/builder/spi-builder-workspace/Sources/Luminare/Components/Auxiliary/InfiniteScrollView.swift:496:65: error: main actor-isolated property 'bounds' can not be referenced from a nonisolated context
490 | }
491 |
492 | private func resetScrollViewPosition(_ clipView: NSClipView, offset: CGPoint = .zero, animate: Bool = false) {
| `- note: add '@MainActor' to make instance method 'resetScrollViewPosition(_:offset:animate:)' part of global actor 'MainActor'
493 | clipView.setBoundsOrigin(parent.centerRect.origin.applying(.init(translationX: offset.x, y: offset.y)))
494 |
495 | parent.shouldReset = false
496 | offsetOrigin = parent.direction.offset(of: clipView.bounds.origin)
| `- error: main actor-isolated property 'bounds' can not be referenced from a nonisolated context
497 |
498 | updateBounds(clipView, animate: animate)
AppKit.NSView:76:14: note: property declared here
74 | @available(swift, obsoleted: 3, renamed: "rotate(byDegrees:)")
75 | open func rotateByAngle(_ angle: CGFloat)
76 | open var bounds: NSRect { get set }
| `- note: property declared here
77 | open var isFlipped: Bool { get }
78 | @available(swift, obsoleted: 3, renamed: "isFlipped")
/Users/admin/builder/spi-builder-workspace/Sources/Luminare/Components/Auxiliary/InfiniteScrollView.swift:503:61: error: main actor-isolated property 'centerRect' can not be referenced from a nonisolated context
200 | }
201 |
202 | var centerRect: CGRect {
| `- note: property declared here
203 | .init(origin: direction.point(from: (scrollableLength - length) / 2), size: size)
204 | }
:
500 |
501 | // Snaps to the nearest available page anchor
502 | private func snapScrollViewPosition(_ clipView: NSClipView) {
| `- note: add '@MainActor' to make instance method 'snapScrollViewPosition' part of global actor 'MainActor'
503 | let center = parent.direction.offset(of: parent.centerRect.origin)
| `- error: main actor-isolated property 'centerRect' can not be referenced from a nonisolated context
504 | let offset = parent.direction.offset(of: clipView.bounds.origin)
505 |
/Users/admin/builder/spi-builder-workspace/Sources/Luminare/Components/Auxiliary/InfiniteScrollView.swift:504:63: error: main actor-isolated property 'bounds' can not be referenced from a nonisolated context
500 |
501 | // Snaps to the nearest available page anchor
502 | private func snapScrollViewPosition(_ clipView: NSClipView) {
| `- note: add '@MainActor' to make instance method 'snapScrollViewPosition' part of global actor 'MainActor'
503 | let center = parent.direction.offset(of: parent.centerRect.origin)
504 | let offset = parent.direction.offset(of: clipView.bounds.origin)
| `- error: main actor-isolated property 'bounds' can not be referenced from a nonisolated context
505 |
506 | let relativeOffset = offset - center
AppKit.NSView:76:14: note: property declared here
74 | @available(swift, obsoleted: 3, renamed: "rotate(byDegrees:)")
75 | open func rotateByAngle(_ angle: CGFloat)
76 | open var bounds: NSRect { get set }
| `- note: property declared here
77 | open var isFlipped: Bool { get }
78 | @available(swift, obsoleted: 3, renamed: "isFlipped")
/Users/admin/builder/spi-builder-workspace/Sources/Luminare/Components/Auxiliary/Modifiers/BooleanThrottleDebouncedModifier.swift:70:21: error: main actor-isolated property 'debouncedValue' can not be mutated from a Sendable closure
17 |
18 | @State private var updatedValue: Bool // IMPORTANT: refer to this instead of `value`
19 | @State private var debouncedValue: Bool
| `- note: mutation of this property is only permitted within the actor
20 |
21 | @State private var timer: Timer?
:
68 | // Schedules to flip on
69 | timer = .scheduledTimer(withTimeInterval: flipOnDelay, repeats: false) { _ in
70 | debouncedValue = true
| `- error: main actor-isolated property 'debouncedValue' can not be mutated from a Sendable closure
71 | timer?.invalidate()
72 |
/Users/admin/builder/spi-builder-workspace/Sources/Luminare/Components/Auxiliary/Modifiers/BooleanThrottleDebouncedModifier.swift:71:21: error: main actor-isolated property 'timer' can not be referenced from a Sendable closure
19 | @State private var debouncedValue: Bool
20 |
21 | @State private var timer: Timer?
| `- note: property declared here
22 |
23 | public init(
:
69 | timer = .scheduledTimer(withTimeInterval: flipOnDelay, repeats: false) { _ in
70 | debouncedValue = true
71 | timer?.invalidate()
| `- error: main actor-isolated property 'timer' can not be referenced from a Sendable closure
72 |
73 | if throttleDelay > .zero {
/Users/admin/builder/spi-builder-workspace/Sources/Luminare/Components/Auxiliary/Modifiers/BooleanThrottleDebouncedModifier.swift:75:25: error: main actor-isolated property 'timer' can not be mutated from a Sendable closure
19 | @State private var debouncedValue: Bool
20 |
21 | @State private var timer: Timer?
| `- note: mutation of this property is only permitted within the actor
22 |
23 | public init(
:
73 | if throttleDelay > .zero {
74 | // In case immediately receives a flip off signal
75 | timer = .scheduledTimer(withTimeInterval: throttleDelay, repeats: false) { _ in
| `- error: main actor-isolated property 'timer' can not be mutated from a Sendable closure
76 | debouncedValue = updatedValue
77 | timer?.invalidate()
/Users/admin/builder/spi-builder-workspace/Sources/Luminare/Components/Auxiliary/Modifiers/BooleanThrottleDebouncedModifier.swift:76:29: error: main actor-isolated property 'debouncedValue' can not be mutated from a Sendable closure
17 |
18 | @State private var updatedValue: Bool // IMPORTANT: refer to this instead of `value`
19 | @State private var debouncedValue: Bool
| `- note: mutation of this property is only permitted within the actor
20 |
21 | @State private var timer: Timer?
:
74 | // In case immediately receives a flip off signal
75 | timer = .scheduledTimer(withTimeInterval: throttleDelay, repeats: false) { _ in
76 | debouncedValue = updatedValue
| `- error: main actor-isolated property 'debouncedValue' can not be mutated from a Sendable closure
77 | timer?.invalidate()
78 | timer = nil
/Users/admin/builder/spi-builder-workspace/Sources/Luminare/Components/Auxiliary/Modifiers/BooleanThrottleDebouncedModifier.swift:76:46: error: main actor-isolated property 'updatedValue' can not be referenced from a Sendable closure
16 | private let action: (Bool) -> ()
17 |
18 | @State private var updatedValue: Bool // IMPORTANT: refer to this instead of `value`
| `- note: property declared here
19 | @State private var debouncedValue: Bool
20 |
:
74 | // In case immediately receives a flip off signal
75 | timer = .scheduledTimer(withTimeInterval: throttleDelay, repeats: false) { _ in
76 | debouncedValue = updatedValue
| `- error: main actor-isolated property 'updatedValue' can not be referenced from a Sendable closure
77 | timer?.invalidate()
78 | timer = nil
/Users/admin/builder/spi-builder-workspace/Sources/Luminare/Components/Auxiliary/Modifiers/BooleanThrottleDebouncedModifier.swift:77:29: error: main actor-isolated property 'timer' can not be referenced from a Sendable closure
19 | @State private var debouncedValue: Bool
20 |
21 | @State private var timer: Timer?
| `- note: property declared here
22 |
23 | public init(
:
75 | timer = .scheduledTimer(withTimeInterval: throttleDelay, repeats: false) { _ in
76 | debouncedValue = updatedValue
77 | timer?.invalidate()
| `- error: main actor-isolated property 'timer' can not be referenced from a Sendable closure
78 | timer = nil
79 | }
/Users/admin/builder/spi-builder-workspace/Sources/Luminare/Components/Auxiliary/Modifiers/BooleanThrottleDebouncedModifier.swift:78:29: error: main actor-isolated property 'timer' can not be mutated from a Sendable closure
19 | @State private var debouncedValue: Bool
20 |
21 | @State private var timer: Timer?
| `- note: mutation of this property is only permitted within the actor
22 |
23 | public init(
:
76 | debouncedValue = updatedValue
77 | timer?.invalidate()
78 | timer = nil
| `- error: main actor-isolated property 'timer' can not be mutated from a Sendable closure
79 | }
80 | } else {
/Users/admin/builder/spi-builder-workspace/Sources/Luminare/Components/Auxiliary/Modifiers/BooleanThrottleDebouncedModifier.swift:81:25: error: main actor-isolated property 'timer' can not be mutated from a Sendable closure
19 | @State private var debouncedValue: Bool
20 |
21 | @State private var timer: Timer?
| `- note: mutation of this property is only permitted within the actor
22 |
23 | public init(
:
79 | }
80 | } else {
81 | timer = nil
| `- error: main actor-isolated property 'timer' can not be mutated from a Sendable closure
82 | }
83 | }
/Users/admin/builder/spi-builder-workspace/Sources/Luminare/Components/Auxiliary/Modifiers/BooleanThrottleDebouncedModifier.swift:101:21: error: main actor-isolated property 'debouncedValue' can not be mutated from a Sendable closure
17 |
18 | @State private var updatedValue: Bool // IMPORTANT: refer to this instead of `value`
19 | @State private var debouncedValue: Bool
| `- note: mutation of this property is only permitted within the actor
20 |
21 | @State private var timer: Timer?
:
99 | // Schedules to flip off
100 | timer = .scheduledTimer(withTimeInterval: flipOffDelay, repeats: false) { _ in
101 | debouncedValue = false
| `- error: main actor-isolated property 'debouncedValue' can not be mutated from a Sendable closure
102 | timer?.invalidate()
103 |
/Users/admin/builder/spi-builder-workspace/Sources/Luminare/Components/Auxiliary/Modifiers/BooleanThrottleDebouncedModifier.swift:102:21: error: main actor-isolated property 'timer' can not be referenced from a Sendable closure
19 | @State private var debouncedValue: Bool
20 |
21 | @State private var timer: Timer?
| `- note: property declared here
22 |
23 | public init(
:
100 | timer = .scheduledTimer(withTimeInterval: flipOffDelay, repeats: false) { _ in
101 | debouncedValue = false
102 | timer?.invalidate()
| `- error: main actor-isolated property 'timer' can not be referenced from a Sendable closure
103 |
104 | if throttleDelay > .zero {
/Users/admin/builder/spi-builder-workspace/Sources/Luminare/Components/Auxiliary/Modifiers/BooleanThrottleDebouncedModifier.swift:106:25: error: main actor-isolated property 'timer' can not be mutated from a Sendable closure
19 | @State private var debouncedValue: Bool
20 |
21 | @State private var timer: Timer?
| `- note: mutation of this property is only permitted within the actor
22 |
23 | public init(
:
104 | if throttleDelay > .zero {
105 | // In case immediately receives a flip on signal
106 | timer = .scheduledTimer(withTimeInterval: throttleDelay, repeats: false) { _ in
| `- error: main actor-isolated property 'timer' can not be mutated from a Sendable closure
107 | debouncedValue = updatedValue
108 | timer?.invalidate()
/Users/admin/builder/spi-builder-workspace/Sources/Luminare/Components/Auxiliary/Modifiers/BooleanThrottleDebouncedModifier.swift:107:29: error: main actor-isolated property 'debouncedValue' can not be mutated from a Sendable closure
17 |
18 | @State private var updatedValue: Bool // IMPORTANT: refer to this instead of `value`
19 | @State private var debouncedValue: Bool
| `- note: mutation of this property is only permitted within the actor
20 |
21 | @State private var timer: Timer?
:
105 | // In case immediately receives a flip on signal
106 | timer = .scheduledTimer(withTimeInterval: throttleDelay, repeats: false) { _ in
107 | debouncedValue = updatedValue
| `- error: main actor-isolated property 'debouncedValue' can not be mutated from a Sendable closure
108 | timer?.invalidate()
109 | timer = nil
/Users/admin/builder/spi-builder-workspace/Sources/Luminare/Components/Auxiliary/Modifiers/BooleanThrottleDebouncedModifier.swift:107:46: error: main actor-isolated property 'updatedValue' can not be referenced from a Sendable closure
16 | private let action: (Bool) -> ()
17 |
18 | @State private var updatedValue: Bool // IMPORTANT: refer to this instead of `value`
| `- note: property declared here
19 | @State private var debouncedValue: Bool
20 |
:
105 | // In case immediately receives a flip on signal
106 | timer = .scheduledTimer(withTimeInterval: throttleDelay, repeats: false) { _ in
107 | debouncedValue = updatedValue
| `- error: main actor-isolated property 'updatedValue' can not be referenced from a Sendable closure
108 | timer?.invalidate()
109 | timer = nil
/Users/admin/builder/spi-builder-workspace/Sources/Luminare/Components/Auxiliary/Modifiers/BooleanThrottleDebouncedModifier.swift:108:29: error: main actor-isolated property 'timer' can not be referenced from a Sendable closure
19 | @State private var debouncedValue: Bool
20 |
21 | @State private var timer: Timer?
| `- note: property declared here
22 |
23 | public init(
:
106 | timer = .scheduledTimer(withTimeInterval: throttleDelay, repeats: false) { _ in
107 | debouncedValue = updatedValue
108 | timer?.invalidate()
| `- error: main actor-isolated property 'timer' can not be referenced from a Sendable closure
109 | timer = nil
110 | }
/Users/admin/builder/spi-builder-workspace/Sources/Luminare/Components/Auxiliary/Modifiers/BooleanThrottleDebouncedModifier.swift:109:29: error: main actor-isolated property 'timer' can not be mutated from a Sendable closure
19 | @State private var debouncedValue: Bool
20 |
21 | @State private var timer: Timer?
| `- note: mutation of this property is only permitted within the actor
22 |
23 | public init(
:
107 | debouncedValue = updatedValue
108 | timer?.invalidate()
109 | timer = nil
| `- error: main actor-isolated property 'timer' can not be mutated from a Sendable closure
110 | }
111 | } else {
/Users/admin/builder/spi-builder-workspace/Sources/Luminare/Components/Auxiliary/Modifiers/BooleanThrottleDebouncedModifier.swift:112:25: error: main actor-isolated property 'timer' can not be mutated from a Sendable closure
19 | @State private var debouncedValue: Bool
20 |
21 | @State private var timer: Timer?
| `- note: mutation of this property is only permitted within the actor
22 |
23 | public init(
:
110 | }
111 | } else {
112 | timer = nil
| `- error: main actor-isolated property 'timer' can not be mutated from a Sendable closure
113 | }
114 | }
/Users/admin/builder/spi-builder-workspace/Sources/Luminare/Components/Auxiliary/Modifiers/ForceTouchModifier.swift:211:13: warning: capture of 'event' with non-sendable type 'ForceTouchGesture.Event' in a `@Sendable` closure
17 |
18 | /// The event context of a ``ForceTouchGesture``.
19 | public struct Event: Equatable {
| `- note: consider making struct 'Event' conform to the 'Sendable' protocol
20 | public var state: NSPressGestureRecognizer.State
21 | public var stage: Int
:
209 | longPressTimer = .scheduledTimer(withTimeInterval: threshold + 0.1, repeats: false) { _ in
210 | timestamp = .now
211 | event.stage = 1
| `- warning: capture of 'event' with non-sendable type 'ForceTouchGesture.Event' in a `@Sendable` closure
212 |
213 | longPressTimer = .scheduledTimer(withTimeInterval: 0.1, repeats: true) { _ in
/Users/admin/builder/spi-builder-workspace/Sources/Luminare/Components/Auxiliary/Modifiers/ForceTouchModifier.swift:210:13: error: main actor-isolated property 'timestamp' can not be mutated from a Sendable closure
117 | @ViewBuilder private var content: () -> Content
118 |
119 | @State private var timestamp: Date?
| `- note: mutation of this property is only permitted within the actor
120 | @State private var state: NSPressGestureRecognizer.State = .ended
121 |
:
208 |
209 | longPressTimer = .scheduledTimer(withTimeInterval: threshold + 0.1, repeats: false) { _ in
210 | timestamp = .now
| `- error: main actor-isolated property 'timestamp' can not be mutated from a Sendable closure
211 | event.stage = 1
212 |
/Users/admin/builder/spi-builder-workspace/Sources/Luminare/Components/Auxiliary/Modifiers/ForceTouchModifier.swift:211:13: warning: mutation of captured var 'event' in concurrently-executing code
209 | longPressTimer = .scheduledTimer(withTimeInterval: threshold + 0.1, repeats: false) { _ in
210 | timestamp = .now
211 | event.stage = 1
| `- warning: mutation of captured var 'event' in concurrently-executing code
212 |
213 | longPressTimer = .scheduledTimer(withTimeInterval: 0.1, repeats: true) { _ in
/Users/admin/builder/spi-builder-workspace/Sources/Luminare/Components/Auxiliary/Modifiers/ForceTouchModifier.swift:213:13: error: main actor-isolated property 'longPressTimer' can not be mutated from a Sendable closure
120 | @State private var state: NSPressGestureRecognizer.State = .ended
121 |
122 | @State private var longPressTimer: Timer?
| `- note: mutation of this property is only permitted within the actor
123 |
124 | private let id = UUID()
:
211 | event.stage = 1
212 |
213 | longPressTimer = .scheduledTimer(withTimeInterval: 0.1, repeats: true) { _ in
| `- error: main actor-isolated property 'longPressTimer' can not be mutated from a Sendable closure
214 | let pressure = event.pressure + 0.1
215 | let isOverflowing = pressure > 1
/Users/admin/builder/spi-builder-workspace/Sources/Luminare/Components/Auxiliary/Modifiers/ForceTouchModifier.swift:214:32: warning: capture of 'event' with non-sendable type 'ForceTouchGesture.Event' in a `@Sendable` closure
17 |
18 | /// The event context of a ``ForceTouchGesture``.
19 | public struct Event: Equatable {
| `- note: consider making struct 'Event' conform to the 'Sendable' protocol
20 | public var state: NSPressGestureRecognizer.State
21 | public var stage: Int
:
212 |
213 | longPressTimer = .scheduledTimer(withTimeInterval: 0.1, repeats: true) { _ in
214 | let pressure = event.pressure + 0.1
| `- warning: capture of 'event' with non-sendable type 'ForceTouchGesture.Event' in a `@Sendable` closure
215 | let isOverflowing = pressure > 1
216 |
/Users/admin/builder/spi-builder-workspace/Sources/Luminare/Components/Auxiliary/Modifiers/ForceTouchModifier.swift:214:32: warning: reference to captured var 'event' in concurrently-executing code
212 |
213 | longPressTimer = .scheduledTimer(withTimeInterval: 0.1, repeats: true) { _ in
214 | let pressure = event.pressure + 0.1
| `- warning: reference to captured var 'event' in concurrently-executing code
215 | let isOverflowing = pressure > 1
216 |
/Users/admin/builder/spi-builder-workspace/Sources/Luminare/Components/Auxiliary/Modifiers/ForceTouchModifier.swift:217:17: warning: mutation of captured var 'event' in concurrently-executing code
215 | let isOverflowing = pressure > 1
216 |
217 | event.pressure = pressure.truncatingRemainder(dividingBy: 1)
| `- warning: mutation of captured var 'event' in concurrently-executing code
218 | if isOverflowing {
219 | event.stage += 1
/Users/admin/builder/spi-builder-workspace/Sources/Luminare/Components/Auxiliary/Modifiers/ForceTouchModifier.swift:219:21: warning: mutation of captured var 'event' in concurrently-executing code
217 | event.pressure = pressure.truncatingRemainder(dividingBy: 1)
218 | if isOverflowing {
219 | event.stage += 1
| `- warning: mutation of captured var 'event' in concurrently-executing code
220 | }
221 |
/Users/admin/builder/spi-builder-workspace/Sources/Luminare/Components/Auxiliary/Modifiers/ForceTouchModifier.swift:222:17: error: main actor-isolated property 'gesture' can not be mutated from a Sendable closure
113 | private let configuration: NSPressureConfiguration
114 | private let threshold: CGFloat
115 | @Binding private var gesture: ForceTouchGesture
| `- note: mutation of this property is only permitted within the actor
116 |
117 | @ViewBuilder private var content: () -> Content
:
220 | }
221 |
222 | gesture = .active(event)
| `- error: main actor-isolated property 'gesture' can not be mutated from a Sendable closure
223 | }
224 | }
/Users/admin/builder/spi-builder-workspace/Sources/Luminare/Components/Auxiliary/Modifiers/ForceTouchModifier.swift:222:35: warning: reference to captured var 'event' in concurrently-executing code
220 | }
221 |
222 | gesture = .active(event)
| `- warning: reference to captured var 'event' in concurrently-executing code
223 | }
224 | }
[124/145] Compiling Luminare LuminareBackgroundEffectModifier.swift
/Users/admin/builder/spi-builder-workspace/Sources/Luminare/Components/Auxiliary/DividedVStack.swift:139:16: error: static property 'defaultValue' is not concurrency-safe because it is nonisolated global shared mutable state
137 | struct DisableDividedStackInnerPaddingKey: PreferenceKey {
138 | typealias Value = Bool?
139 | static var defaultValue: Value = nil
| |- error: static property 'defaultValue' is not concurrency-safe because it is nonisolated global shared mutable state
| |- 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
140 |
141 | static func reduce(value: inout Value, nextValue: () -> Value) {
/Users/admin/builder/spi-builder-workspace/Sources/Luminare/Components/Auxiliary/InfiniteScrollView.swift:319:39: error: main actor-isolated property 'contentView' can not be referenced from a nonisolated context
316 | }
317 |
318 | func initializeScroll(_ scrollView: NSScrollView) {
| `- note: add '@MainActor' to make instance method 'initializeScroll' part of global actor 'MainActor'
319 | let clipView = scrollView.contentView
| `- error: main actor-isolated property 'contentView' can not be referenced from a nonisolated context
320 |
321 | // Reset if required
AppKit.NSScrollView:27:25: note: property declared here
25 | open var contentSize: NSSize { get }
26 | @MainActor open var documentView: NSView? { get set }
27 | @MainActor open var contentView: NSClipView { get set }
| `- note: property declared here
28 | open var documentCursor: NSCursor? { get set }
29 | open var borderType: NSBorderType { get set }
/Users/admin/builder/spi-builder-workspace/Sources/Luminare/Components/Auxiliary/InfiniteScrollView.swift:322:23: error: main actor-isolated property 'shouldReset' can not be referenced from a nonisolated context
113 | public let initialOffset: CGFloat
114 |
115 | @Binding public var shouldReset: Bool
| `- note: property declared here
116 | @Binding public var offset: CGFloat
117 | @Binding public var page: Int
:
316 | }
317 |
318 | func initializeScroll(_ scrollView: NSScrollView) {
| `- note: add '@MainActor' to make instance method 'initializeScroll' part of global actor 'MainActor'
319 | let clipView = scrollView.contentView
320 |
321 | // Reset if required
322 | if parent.shouldReset {
| `- error: main actor-isolated property 'shouldReset' can not be referenced from a nonisolated context
323 | resetScrollViewPosition(clipView, offset: parent.direction.point(from: parent.initialOffset))
324 | pageOrigin = parent.page
/Users/admin/builder/spi-builder-workspace/Sources/Luminare/Components/Auxiliary/InfiniteScrollView.swift:324:37: error: main actor-isolated property 'page' can not be referenced from a nonisolated context
115 | @Binding public var shouldReset: Bool
116 | @Binding public var offset: CGFloat
117 | @Binding public var page: Int
| `- note: property declared here
118 |
119 | /// Initializes a ``InfiniteScrollView``.
:
316 | }
317 |
318 | func initializeScroll(_ scrollView: NSScrollView) {
| `- note: add '@MainActor' to make instance method 'initializeScroll' part of global actor 'MainActor'
319 | let clipView = scrollView.contentView
320 |
:
322 | if parent.shouldReset {
323 | resetScrollViewPosition(clipView, offset: parent.direction.point(from: parent.initialOffset))
324 | pageOrigin = parent.page
| `- error: main actor-isolated property 'page' can not be referenced from a nonisolated context
325 | }
326 |
/Users/admin/builder/spi-builder-workspace/Sources/Luminare/Utilities/EventMonitorManager.swift:11:16: error: static property 'shared' is not concurrency-safe because non-'Sendable' type 'EventMonitorManager' may have shared mutable state
8 | import AppKit
9 |
10 | final class EventMonitorManager {
| `- note: class 'EventMonitorManager' does not conform to the 'Sendable' protocol
11 | static let shared = EventMonitorManager()
| |- error: static property 'shared' is not concurrency-safe because non-'Sendable' type 'EventMonitorManager' may have shared mutable state
| |- note: annotate 'shared' 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
12 | private var monitors: [AnyHashable: NSObject] = [:]
13 |
/Users/admin/builder/spi-builder-workspace/Sources/Luminare/Components/Auxiliary/InfiniteScrollView.swift:336:45: error: call to main actor-isolated instance method 'convert(_:from:)' in a synchronous nonisolated context
334 | ]
335 | ) { [weak self] event in
336 | let location = clipView.convert(event.locationInWindow, from: nil)
| `- error: call to main actor-isolated instance method 'convert(_:from:)' in a synchronous nonisolated context
337 | guard let self else { return event }
338 |
AppKit.NSView:89:26: note: calls to instance method 'convert(_:from:)' from outside of its actor context are implicitly asynchronous
87 | @available(swift, obsoleted: 3, renamed: "isOpaque")
88 | open var opaque: Bool { get }
89 | @MainActor open func convert(_ point: NSPoint, from view: NSView?) -> NSPoint
| `- note: calls to instance method 'convert(_:from:)' from outside of its actor context are implicitly asynchronous
90 | @available(swift, obsoleted: 3, renamed: "convert(_:from:)")
91 | open func convertPoint(_ point: NSPoint, fromView view: NSView?) -> NSPoint
/Users/admin/builder/spi-builder-workspace/Sources/Luminare/Components/Auxiliary/InfiniteScrollView.swift:341:55: error: main actor-isolated property 'bounds' can not be referenced from a nonisolated autoclosure
339 | // ensure the dragging *happens* inside the view and can *continue* anywhere else
340 | let canIgnoreBounds = draggingStage == .dragging
341 | guard canIgnoreBounds || clipView.bounds.contains(location) else { return event }
| `- error: main actor-isolated property 'bounds' can not be referenced from a nonisolated autoclosure
342 |
343 | switch event.type {
AppKit.NSView:76:14: note: property declared here
74 | @available(swift, obsoleted: 3, renamed: "rotate(byDegrees:)")
75 | open func rotateByAngle(_ angle: CGFloat)
76 | open var bounds: NSRect { get set }
| `- note: property declared here
77 | open var isFlipped: Bool { get }
78 | @available(swift, obsoleted: 3, renamed: "isFlipped")
/Users/admin/builder/spi-builder-workspace/Sources/Luminare/Components/Auxiliary/InfiniteScrollView.swift:365:34: error: call to main actor-isolated instance method 'setBoundsOrigin' in a synchronous nonisolated context
363 | case .leftMouseDragged:
364 | // Always update view bounds first
365 | clipView.setBoundsOrigin(clipView.bounds.origin.applying(
| `- error: call to main actor-isolated instance method 'setBoundsOrigin' in a synchronous nonisolated context
366 | .init(translationX: -event.deltaX, y: -event.deltaY)
367 | ))
AppKit.NSView:64:26: note: calls to instance method 'setBoundsOrigin' from outside of its actor context are implicitly asynchronous
62 | @available(macOS 10.5, *)
63 | open var frameCenterRotation: CGFloat { get set }
64 | @MainActor open func setBoundsOrigin(_ newOrigin: NSPoint)
| `- note: calls to instance method 'setBoundsOrigin' from outside of its actor context are implicitly asynchronous
65 | open func setBoundsSize(_ newSize: NSSize)
66 | open var boundsRotation: CGFloat { get set }
/Users/admin/builder/spi-builder-workspace/Sources/Luminare/Components/Auxiliary/InfiniteScrollView.swift:365:59: error: main actor-isolated property 'bounds' can not be referenced from a nonisolated context
363 | case .leftMouseDragged:
364 | // Always update view bounds first
365 | clipView.setBoundsOrigin(clipView.bounds.origin.applying(
| `- error: main actor-isolated property 'bounds' can not be referenced from a nonisolated context
366 | .init(translationX: -event.deltaX, y: -event.deltaY)
367 | ))
AppKit.NSView:76:14: note: property declared here
74 | @available(swift, obsoleted: 3, renamed: "rotate(byDegrees:)")
75 | open func rotateByAngle(_ angle: CGFloat)
76 | open var bounds: NSRect { get set }
| `- note: property declared here
77 | open var isFlipped: Bool { get }
78 | @available(swift, obsoleted: 3, renamed: "isFlipped")
/Users/admin/builder/spi-builder-workspace/Sources/Luminare/Components/Auxiliary/InfiniteScrollView.swift:435:68: error: type of expression is ambiguous without a type annotation
433 | // Arithmetic approach to achieve a undirectional paging effect
434 | let isIncremental = offset - lastOffset > 0
435 | let comparation: (Int, Int) -> Int = isIncremental ? max : min
| `- error: type of expression is ambiguous without a type annotation
436 | let pageOffset = comparation(
437 | lastPageOffset,
/Users/admin/builder/spi-builder-workspace/Sources/Luminare/Components/Auxiliary/InfiniteScrollView.swift:405:61: error: main actor-isolated property 'centerRect' can not be referenced from a nonisolated context
200 | }
201 |
202 | var centerRect: CGRect {
| `- note: property declared here
203 | .init(origin: direction.point(from: (scrollableLength - length) / 2), size: size)
204 | }
:
400 |
401 | // Should be called whenever a scroll happens.
402 | @objc func didLiveScroll(_ notification: Notification) {
| `- note: add '@MainActor' to make instance method 'didLiveScroll' part of global actor 'MainActor'
403 | guard let scrollView = notification.object as? NSScrollView else { return }
404 |
405 | let center = parent.direction.offset(of: parent.centerRect.origin)
| `- error: main actor-isolated property 'centerRect' can not be referenced from a nonisolated context
406 | let offset = parent.direction.offset(of: scrollView.contentView.bounds.origin)
407 | let relativeOffset = offset - center
/Users/admin/builder/spi-builder-workspace/Sources/Luminare/Components/Auxiliary/InfiniteScrollView.swift:406:77: error: main actor-isolated property 'bounds' can not be referenced from a nonisolated context
400 |
401 | // Should be called whenever a scroll happens.
402 | @objc func didLiveScroll(_ notification: Notification) {
| `- note: add '@MainActor' to make instance method 'didLiveScroll' part of global actor 'MainActor'
403 | guard let scrollView = notification.object as? NSScrollView else { return }
404 |
405 | let center = parent.direction.offset(of: parent.centerRect.origin)
406 | let offset = parent.direction.offset(of: scrollView.contentView.bounds.origin)
| `- error: main actor-isolated property 'bounds' can not be referenced from a nonisolated context
407 | let relativeOffset = offset - center
408 |
AppKit.NSView:76:14: note: property declared here
74 | @available(swift, obsoleted: 3, renamed: "rotate(byDegrees:)")
75 | open func rotateByAngle(_ angle: CGFloat)
76 | open var bounds: NSRect { get set }
| `- note: property declared here
77 | open var isFlipped: Bool { get }
78 | @available(swift, obsoleted: 3, renamed: "isFlipped")
/Users/admin/builder/spi-builder-workspace/Sources/Luminare/Components/Auxiliary/InfiniteScrollView.swift:406:65: error: main actor-isolated property 'contentView' can not be referenced from a nonisolated context
400 |
401 | // Should be called whenever a scroll happens.
402 | @objc func didLiveScroll(_ notification: Notification) {
| `- note: add '@MainActor' to make instance method 'didLiveScroll' part of global actor 'MainActor'
403 | guard let scrollView = notification.object as? NSScrollView else { return }
404 |
405 | let center = parent.direction.offset(of: parent.centerRect.origin)
406 | let offset = parent.direction.offset(of: scrollView.contentView.bounds.origin)
| `- error: main actor-isolated property 'contentView' can not be referenced from a nonisolated context
407 | let relativeOffset = offset - center
408 |
AppKit.NSScrollView:27:25: note: property declared here
25 | open var contentSize: NSSize { get }
26 | @MainActor open var documentView: NSView? { get set }
27 | @MainActor open var contentView: NSClipView { get set }
| `- note: property declared here
28 | open var documentCursor: NSCursor? { get set }
29 | open var borderType: NSBorderType { get set }
/Users/admin/builder/spi-builder-workspace/Sources/Luminare/Components/Auxiliary/InfiniteScrollView.swift:416:56: error: main actor-isolated property 'contentView' can not be referenced from a nonisolated context
400 |
401 | // Should be called whenever a scroll happens.
402 | @objc func didLiveScroll(_ notification: Notification) {
| `- note: add '@MainActor' to make instance method 'didLiveScroll' part of global actor 'MainActor'
403 | guard let scrollView = notification.object as? NSScrollView else { return }
404 |
:
414 | // Check if reaches next page
415 | if abs(relativeOffset) >= parent.spacing {
416 | resetScrollViewPosition(scrollView.contentView)
| `- error: main actor-isolated property 'contentView' can not be referenced from a nonisolated context
417 |
418 | let pageOffset: Int = if relativeOffset >= parent.spacing {
AppKit.NSScrollView:27:25: note: property declared here
25 | open var contentSize: NSSize { get }
26 | @MainActor open var documentView: NSView? { get set }
27 | @MainActor open var contentView: NSClipView { get set }
| `- note: property declared here
28 | open var documentCursor: NSCursor? { get set }
29 | open var borderType: NSBorderType { get set }
/Users/admin/builder/spi-builder-workspace/Sources/Luminare/Components/Auxiliary/InfiniteScrollView.swift:447:37: error: main actor-isolated property 'contentView' can not be referenced from a nonisolated context
400 |
401 | // Should be called whenever a scroll happens.
402 | @objc func didLiveScroll(_ notification: Notification) {
| `- note: add '@MainActor' to make instance method 'didLiveScroll' part of global actor 'MainActor'
403 | guard let scrollView = notification.object as? NSScrollView else { return }
404 |
:
445 | }
446 |
447 | updateBounds(scrollView.contentView)
| `- error: main actor-isolated property 'contentView' can not be referenced from a nonisolated context
448 | }
449 |
AppKit.NSScrollView:27:25: note: property declared here
25 | open var contentSize: NSSize { get }
26 | @MainActor open var documentView: NSView? { get set }
27 | @MainActor open var contentView: NSClipView { get set }
| `- note: property declared here
28 | open var documentCursor: NSCursor? { get set }
29 | open var borderType: NSBorderType { get set }
/Users/admin/builder/spi-builder-workspace/Sources/Luminare/Components/Auxiliary/InfiniteScrollView.swift:454:79: error: main actor-isolated property 'bounds' can not be referenced from a nonisolated context
449 |
450 | // Should be called whenever a scroll starts.
451 | @objc func willStartLiveScroll(_ notification: Notification) {
| `- note: add '@MainActor' to make instance method 'willStartLiveScroll' part of global actor 'MainActor'
452 | guard let scrollView = notification.object as? NSScrollView else { return }
453 |
454 | offsetOrigin = parent.direction.offset(of: scrollView.contentView.bounds.origin)
| `- error: main actor-isolated property 'bounds' can not be referenced from a nonisolated context
455 | pageOrigin = parent.page
456 |
AppKit.NSView:76:14: note: property declared here
74 | @available(swift, obsoleted: 3, renamed: "rotate(byDegrees:)")
75 | open func rotateByAngle(_ angle: CGFloat)
76 | open var bounds: NSRect { get set }
| `- note: property declared here
77 | open var isFlipped: Bool { get }
78 | @available(swift, obsoleted: 3, renamed: "isFlipped")
/Users/admin/builder/spi-builder-workspace/Sources/Luminare/Components/Auxiliary/InfiniteScrollView.swift:454:67: error: main actor-isolated property 'contentView' can not be referenced from a nonisolated context
449 |
450 | // Should be called whenever a scroll starts.
451 | @objc func willStartLiveScroll(_ notification: Notification) {
| `- note: add '@MainActor' to make instance method 'willStartLiveScroll' part of global actor 'MainActor'
452 | guard let scrollView = notification.object as? NSScrollView else { return }
453 |
454 | offsetOrigin = parent.direction.offset(of: scrollView.contentView.bounds.origin)
| `- error: main actor-isolated property 'contentView' can not be referenced from a nonisolated context
455 | pageOrigin = parent.page
456 |
AppKit.NSScrollView:27:25: note: property declared here
25 | open var contentSize: NSSize { get }
26 | @MainActor open var documentView: NSView? { get set }
27 | @MainActor open var contentView: NSClipView { get set }
| `- note: property declared here
28 | open var documentCursor: NSCursor? { get set }
29 | open var borderType: NSBorderType { get set }
/Users/admin/builder/spi-builder-workspace/Sources/Luminare/Components/Auxiliary/InfiniteScrollView.swift:455:33: error: main actor-isolated property 'page' can not be referenced from a nonisolated context
115 | @Binding public var shouldReset: Bool
116 | @Binding public var offset: CGFloat
117 | @Binding public var page: Int
| `- note: property declared here
118 |
119 | /// Initializes a ``InfiniteScrollView``.
:
449 |
450 | // Should be called whenever a scroll starts.
451 | @objc func willStartLiveScroll(_ notification: Notification) {
| `- note: add '@MainActor' to make instance method 'willStartLiveScroll' part of global actor 'MainActor'
452 | guard let scrollView = notification.object as? NSScrollView else { return }
453 |
454 | offsetOrigin = parent.direction.offset(of: scrollView.contentView.bounds.origin)
455 | pageOrigin = parent.page
| `- error: main actor-isolated property 'page' can not be referenced from a nonisolated context
456 |
457 | lastOffset = offsetOrigin
/Users/admin/builder/spi-builder-workspace/Sources/Luminare/Components/Auxiliary/InfiniteScrollView.swift:459:37: error: main actor-isolated property 'contentView' can not be referenced from a nonisolated context
449 |
450 | // Should be called whenever a scroll starts.
451 | @objc func willStartLiveScroll(_ notification: Notification) {
| `- note: add '@MainActor' to make instance method 'willStartLiveScroll' part of global actor 'MainActor'
452 | guard let scrollView = notification.object as? NSScrollView else { return }
453 |
:
457 | lastOffset = offsetOrigin
458 |
459 | updateBounds(scrollView.contentView)
| `- error: main actor-isolated property 'contentView' can not be referenced from a nonisolated context
460 | }
461 |
AppKit.NSScrollView:27:25: note: property declared here
25 | open var contentSize: NSSize { get }
26 | @MainActor open var documentView: NSView? { get set }
27 | @MainActor open var contentView: NSClipView { get set }
| `- note: property declared here
28 | open var documentCursor: NSCursor? { get set }
29 | open var borderType: NSBorderType { get set }
/Users/admin/builder/spi-builder-workspace/Sources/Luminare/Components/Auxiliary/InfiniteScrollView.swift:470:60: error: main actor-isolated property 'contentView' can not be referenced from a nonisolated context
468 | NSAnimationContext.runAnimationGroup { context in
469 | context.allowsImplicitAnimation = true
470 | self.snapScrollViewPosition(scrollView.contentView)
| `- error: main actor-isolated property 'contentView' can not be referenced from a nonisolated context
471 | }
472 | }
AppKit.NSScrollView:27:25: note: property declared here
25 | open var contentSize: NSSize { get }
26 | @MainActor open var documentView: NSView? { get set }
27 | @MainActor open var contentView: NSClipView { get set }
| `- note: property declared here
28 | open var documentCursor: NSCursor? { get set }
29 | open var borderType: NSBorderType { get set }
/Users/admin/builder/spi-builder-workspace/Sources/Luminare/Components/Auxiliary/InfiniteScrollView.swift:474:37: error: main actor-isolated property 'contentView' can not be referenced from a nonisolated context
461 |
462 | // Should be called whenever a scroll ends.
463 | @objc func didEndLiveScroll(_ notification: Notification) {
| `- note: add '@MainActor' to make instance method 'didEndLiveScroll' part of global actor 'MainActor'
464 | guard let scrollView = notification.object as? NSScrollView else { return }
465 |
:
472 | }
473 |
474 | updateBounds(scrollView.contentView)
| `- error: main actor-isolated property 'contentView' can not be referenced from a nonisolated context
475 | }
476 |
AppKit.NSScrollView:27:25: note: property declared here
25 | open var contentSize: NSSize { get }
26 | @MainActor open var documentView: NSView? { get set }
27 | @MainActor open var contentView: NSClipView { get set }
| `- note: property declared here
28 | open var documentCursor: NSCursor? { get set }
29 | open var borderType: NSBorderType { get set }
/Users/admin/builder/spi-builder-workspace/Sources/Luminare/Components/Auxiliary/InfiniteScrollView.swift:478:20: error: call to main actor-isolated instance method 'onBoundsChange(_:animate:)' in a synchronous nonisolated context
222 | }
223 |
224 | func onBoundsChange(_ bounds: CGRect, animate: Bool = false) {
| `- note: calls to instance method 'onBoundsChange(_:animate:)' from outside of its actor context are implicitly asynchronous
225 | let offset = direction.offset(of: bounds.origin) - direction.offset(of: centerRect.origin)
226 | if animate {
:
475 | }
476 |
477 | private func updateBounds(_ clipView: NSClipView, animate: Bool = false) {
| `- note: add '@MainActor' to make instance method 'updateBounds(_:animate:)' part of global actor 'MainActor'
478 | parent.onBoundsChange(clipView.bounds, animate: animate)
| `- error: call to main actor-isolated instance method 'onBoundsChange(_:animate:)' in a synchronous nonisolated context
479 | }
480 |
/Users/admin/builder/spi-builder-workspace/Sources/Luminare/Components/Auxiliary/InfiniteScrollView.swift:478:44: error: main actor-isolated property 'bounds' can not be referenced from a nonisolated context
475 | }
476 |
477 | private func updateBounds(_ clipView: NSClipView, animate: Bool = false) {
| `- note: add '@MainActor' to make instance method 'updateBounds(_:animate:)' part of global actor 'MainActor'
478 | parent.onBoundsChange(clipView.bounds, animate: animate)
| `- error: main actor-isolated property 'bounds' can not be referenced from a nonisolated context
479 | }
480 |
AppKit.NSView:76:14: note: property declared here
74 | @available(swift, obsoleted: 3, renamed: "rotate(byDegrees:)")
75 | open func rotateByAngle(_ angle: CGFloat)
76 | open var bounds: NSRect { get set }
| `- note: property declared here
77 | open var isFlipped: Bool { get }
78 | @available(swift, obsoleted: 3, renamed: "isFlipped")
/Users/admin/builder/spi-builder-workspace/Sources/Luminare/Components/Auxiliary/InfiniteScrollView.swift:483:20: error: main actor-isolated property 'page' can not be mutated from a nonisolated context
115 | @Binding public var shouldReset: Bool
116 | @Binding public var offset: CGFloat
117 | @Binding public var page: Int
| `- note: mutation of this property is only permitted within the actor
118 |
119 | /// Initializes a ``InfiniteScrollView``.
:
480 |
481 | // Accumulates the page for wrapping
482 | private func accumulatePage(_ offset: Int) {
| `- note: add '@MainActor' to make instance method 'accumulatePage' part of global actor 'MainActor'
483 | parent.page += offset
| `- error: main actor-isolated property 'page' can not be mutated from a nonisolated context
484 | pageOrigin = parent.page
485 | }
/Users/admin/builder/spi-builder-workspace/Sources/Luminare/Components/Auxiliary/InfiniteScrollView.swift:484:33: error: main actor-isolated property 'page' can not be referenced from a nonisolated context
115 | @Binding public var shouldReset: Bool
116 | @Binding public var offset: CGFloat
117 | @Binding public var page: Int
| `- note: property declared here
118 |
119 | /// Initializes a ``InfiniteScrollView``.
:
480 |
481 | // Accumulates the page for wrapping
482 | private func accumulatePage(_ offset: Int) {
| `- note: add '@MainActor' to make instance method 'accumulatePage' part of global actor 'MainActor'
483 | parent.page += offset
484 | pageOrigin = parent.page
| `- error: main actor-isolated property 'page' can not be referenced from a nonisolated context
485 | }
486 |
/Users/admin/builder/spi-builder-workspace/Sources/Luminare/Components/Auxiliary/InfiniteScrollView.swift:489:20: error: main actor-isolated property 'page' can not be mutated from a nonisolated context
115 | @Binding public var shouldReset: Bool
116 | @Binding public var offset: CGFloat
117 | @Binding public var page: Int
| `- note: mutation of this property is only permitted within the actor
118 |
119 | /// Initializes a ``InfiniteScrollView``.
:
486 |
487 | // Overrides the page, not for wrapping
488 | private func overridePage(_ offset: Int) {
| `- note: add '@MainActor' to make instance method 'overridePage' part of global actor 'MainActor'
489 | parent.page = pageOrigin + offset
| `- error: main actor-isolated property 'page' can not be mutated from a nonisolated context
490 | }
491 |
/Users/admin/builder/spi-builder-workspace/Sources/Luminare/Components/Auxiliary/InfiniteScrollView.swift:493:22: error: call to main actor-isolated instance method 'setBoundsOrigin' in a synchronous nonisolated context
490 | }
491 |
492 | private func resetScrollViewPosition(_ clipView: NSClipView, offset: CGPoint = .zero, animate: Bool = false) {
| `- note: add '@MainActor' to make instance method 'resetScrollViewPosition(_:offset:animate:)' part of global actor 'MainActor'
493 | clipView.setBoundsOrigin(parent.centerRect.origin.applying(.init(translationX: offset.x, y: offset.y)))
| `- error: call to main actor-isolated instance method 'setBoundsOrigin' in a synchronous nonisolated context
494 |
495 | parent.shouldReset = false
AppKit.NSView:64:26: note: calls to instance method 'setBoundsOrigin' from outside of its actor context are implicitly asynchronous
62 | @available(macOS 10.5, *)
63 | open var frameCenterRotation: CGFloat { get set }
64 | @MainActor open func setBoundsOrigin(_ newOrigin: NSPoint)
| `- note: calls to instance method 'setBoundsOrigin' from outside of its actor context are implicitly asynchronous
65 | open func setBoundsSize(_ newSize: NSSize)
66 | open var boundsRotation: CGFloat { get set }
/Users/admin/builder/spi-builder-workspace/Sources/Luminare/Components/Auxiliary/InfiniteScrollView.swift:493:45: error: main actor-isolated property 'centerRect' can not be referenced from a nonisolated context
200 | }
201 |
202 | var centerRect: CGRect {
| `- note: property declared here
203 | .init(origin: direction.point(from: (scrollableLength - length) / 2), size: size)
204 | }
:
490 | }
491 |
492 | private func resetScrollViewPosition(_ clipView: NSClipView, offset: CGPoint = .zero, animate: Bool = false) {
| `- note: add '@MainActor' to make instance method 'resetScrollViewPosition(_:offset:animate:)' part of global actor 'MainActor'
493 | clipView.setBoundsOrigin(parent.centerRect.origin.applying(.init(translationX: offset.x, y: offset.y)))
| `- error: main actor-isolated property 'centerRect' can not be referenced from a nonisolated context
494 |
495 | parent.shouldReset = false
/Users/admin/builder/spi-builder-workspace/Sources/Luminare/Components/Auxiliary/InfiniteScrollView.swift:495:20: error: main actor-isolated property 'shouldReset' can not be mutated from a nonisolated context
113 | public let initialOffset: CGFloat
114 |
115 | @Binding public var shouldReset: Bool
| `- note: mutation of this property is only permitted within the actor
116 | @Binding public var offset: CGFloat
117 | @Binding public var page: Int
:
490 | }
491 |
492 | private func resetScrollViewPosition(_ clipView: NSClipView, offset: CGPoint = .zero, animate: Bool = false) {
| `- note: add '@MainActor' to make instance method 'resetScrollViewPosition(_:offset:animate:)' part of global actor 'MainActor'
493 | clipView.setBoundsOrigin(parent.centerRect.origin.applying(.init(translationX: offset.x, y: offset.y)))
494 |
495 | parent.shouldReset = false
| `- error: main actor-isolated property 'shouldReset' can not be mutated from a nonisolated context
496 | offsetOrigin = parent.direction.offset(of: clipView.bounds.origin)
497 |
/Users/admin/builder/spi-builder-workspace/Sources/Luminare/Components/Auxiliary/InfiniteScrollView.swift:496:65: error: main actor-isolated property 'bounds' can not be referenced from a nonisolated context
490 | }
491 |
492 | private func resetScrollViewPosition(_ clipView: NSClipView, offset: CGPoint = .zero, animate: Bool = false) {
| `- note: add '@MainActor' to make instance method 'resetScrollViewPosition(_:offset:animate:)' part of global actor 'MainActor'
493 | clipView.setBoundsOrigin(parent.centerRect.origin.applying(.init(translationX: offset.x, y: offset.y)))
494 |
495 | parent.shouldReset = false
496 | offsetOrigin = parent.direction.offset(of: clipView.bounds.origin)
| `- error: main actor-isolated property 'bounds' can not be referenced from a nonisolated context
497 |
498 | updateBounds(clipView, animate: animate)
AppKit.NSView:76:14: note: property declared here
74 | @available(swift, obsoleted: 3, renamed: "rotate(byDegrees:)")
75 | open func rotateByAngle(_ angle: CGFloat)
76 | open var bounds: NSRect { get set }
| `- note: property declared here
77 | open var isFlipped: Bool { get }
78 | @available(swift, obsoleted: 3, renamed: "isFlipped")
/Users/admin/builder/spi-builder-workspace/Sources/Luminare/Components/Auxiliary/InfiniteScrollView.swift:503:61: error: main actor-isolated property 'centerRect' can not be referenced from a nonisolated context
200 | }
201 |
202 | var centerRect: CGRect {
| `- note: property declared here
203 | .init(origin: direction.point(from: (scrollableLength - length) / 2), size: size)
204 | }
:
500 |
501 | // Snaps to the nearest available page anchor
502 | private func snapScrollViewPosition(_ clipView: NSClipView) {
| `- note: add '@MainActor' to make instance method 'snapScrollViewPosition' part of global actor 'MainActor'
503 | let center = parent.direction.offset(of: parent.centerRect.origin)
| `- error: main actor-isolated property 'centerRect' can not be referenced from a nonisolated context
504 | let offset = parent.direction.offset(of: clipView.bounds.origin)
505 |
/Users/admin/builder/spi-builder-workspace/Sources/Luminare/Components/Auxiliary/InfiniteScrollView.swift:504:63: error: main actor-isolated property 'bounds' can not be referenced from a nonisolated context
500 |
501 | // Snaps to the nearest available page anchor
502 | private func snapScrollViewPosition(_ clipView: NSClipView) {
| `- note: add '@MainActor' to make instance method 'snapScrollViewPosition' part of global actor 'MainActor'
503 | let center = parent.direction.offset(of: parent.centerRect.origin)
504 | let offset = parent.direction.offset(of: clipView.bounds.origin)
| `- error: main actor-isolated property 'bounds' can not be referenced from a nonisolated context
505 |
506 | let relativeOffset = offset - center
AppKit.NSView:76:14: note: property declared here
74 | @available(swift, obsoleted: 3, renamed: "rotate(byDegrees:)")
75 | open func rotateByAngle(_ angle: CGFloat)
76 | open var bounds: NSRect { get set }
| `- note: property declared here
77 | open var isFlipped: Bool { get }
78 | @available(swift, obsoleted: 3, renamed: "isFlipped")
/Users/admin/builder/spi-builder-workspace/Sources/Luminare/Components/Auxiliary/Modifiers/BooleanThrottleDebouncedModifier.swift:70:21: error: main actor-isolated property 'debouncedValue' can not be mutated from a Sendable closure
17 |
18 | @State private var updatedValue: Bool // IMPORTANT: refer to this instead of `value`
19 | @State private var debouncedValue: Bool
| `- note: mutation of this property is only permitted within the actor
20 |
21 | @State private var timer: Timer?
:
68 | // Schedules to flip on
69 | timer = .scheduledTimer(withTimeInterval: flipOnDelay, repeats: false) { _ in
70 | debouncedValue = true
| `- error: main actor-isolated property 'debouncedValue' can not be mutated from a Sendable closure
71 | timer?.invalidate()
72 |
/Users/admin/builder/spi-builder-workspace/Sources/Luminare/Components/Auxiliary/Modifiers/BooleanThrottleDebouncedModifier.swift:71:21: error: main actor-isolated property 'timer' can not be referenced from a Sendable closure
19 | @State private var debouncedValue: Bool
20 |
21 | @State private var timer: Timer?
| `- note: property declared here
22 |
23 | public init(
:
69 | timer = .scheduledTimer(withTimeInterval: flipOnDelay, repeats: false) { _ in
70 | debouncedValue = true
71 | timer?.invalidate()
| `- error: main actor-isolated property 'timer' can not be referenced from a Sendable closure
72 |
73 | if throttleDelay > .zero {
/Users/admin/builder/spi-builder-workspace/Sources/Luminare/Components/Auxiliary/Modifiers/BooleanThrottleDebouncedModifier.swift:75:25: error: main actor-isolated property 'timer' can not be mutated from a Sendable closure
19 | @State private var debouncedValue: Bool
20 |
21 | @State private var timer: Timer?
| `- note: mutation of this property is only permitted within the actor
22 |
23 | public init(
:
73 | if throttleDelay > .zero {
74 | // In case immediately receives a flip off signal
75 | timer = .scheduledTimer(withTimeInterval: throttleDelay, repeats: false) { _ in
| `- error: main actor-isolated property 'timer' can not be mutated from a Sendable closure
76 | debouncedValue = updatedValue
77 | timer?.invalidate()
/Users/admin/builder/spi-builder-workspace/Sources/Luminare/Components/Auxiliary/Modifiers/BooleanThrottleDebouncedModifier.swift:76:29: error: main actor-isolated property 'debouncedValue' can not be mutated from a Sendable closure
17 |
18 | @State private var updatedValue: Bool // IMPORTANT: refer to this instead of `value`
19 | @State private var debouncedValue: Bool
| `- note: mutation of this property is only permitted within the actor
20 |
21 | @State private var timer: Timer?
:
74 | // In case immediately receives a flip off signal
75 | timer = .scheduledTimer(withTimeInterval: throttleDelay, repeats: false) { _ in
76 | debouncedValue = updatedValue
| `- error: main actor-isolated property 'debouncedValue' can not be mutated from a Sendable closure
77 | timer?.invalidate()
78 | timer = nil
/Users/admin/builder/spi-builder-workspace/Sources/Luminare/Components/Auxiliary/Modifiers/BooleanThrottleDebouncedModifier.swift:76:46: error: main actor-isolated property 'updatedValue' can not be referenced from a Sendable closure
16 | private let action: (Bool) -> ()
17 |
18 | @State private var updatedValue: Bool // IMPORTANT: refer to this instead of `value`
| `- note: property declared here
19 | @State private var debouncedValue: Bool
20 |
:
74 | // In case immediately receives a flip off signal
75 | timer = .scheduledTimer(withTimeInterval: throttleDelay, repeats: false) { _ in
76 | debouncedValue = updatedValue
| `- error: main actor-isolated property 'updatedValue' can not be referenced from a Sendable closure
77 | timer?.invalidate()
78 | timer = nil
/Users/admin/builder/spi-builder-workspace/Sources/Luminare/Components/Auxiliary/Modifiers/BooleanThrottleDebouncedModifier.swift:77:29: error: main actor-isolated property 'timer' can not be referenced from a Sendable closure
19 | @State private var debouncedValue: Bool
20 |
21 | @State private var timer: Timer?
| `- note: property declared here
22 |
23 | public init(
:
75 | timer = .scheduledTimer(withTimeInterval: throttleDelay, repeats: false) { _ in
76 | debouncedValue = updatedValue
77 | timer?.invalidate()
| `- error: main actor-isolated property 'timer' can not be referenced from a Sendable closure
78 | timer = nil
79 | }
/Users/admin/builder/spi-builder-workspace/Sources/Luminare/Components/Auxiliary/Modifiers/BooleanThrottleDebouncedModifier.swift:78:29: error: main actor-isolated property 'timer' can not be mutated from a Sendable closure
19 | @State private var debouncedValue: Bool
20 |
21 | @State private var timer: Timer?
| `- note: mutation of this property is only permitted within the actor
22 |
23 | public init(
:
76 | debouncedValue = updatedValue
77 | timer?.invalidate()
78 | timer = nil
| `- error: main actor-isolated property 'timer' can not be mutated from a Sendable closure
79 | }
80 | } else {
/Users/admin/builder/spi-builder-workspace/Sources/Luminare/Components/Auxiliary/Modifiers/BooleanThrottleDebouncedModifier.swift:81:25: error: main actor-isolated property 'timer' can not be mutated from a Sendable closure
19 | @State private var debouncedValue: Bool
20 |
21 | @State private var timer: Timer?
| `- note: mutation of this property is only permitted within the actor
22 |
23 | public init(
:
79 | }
80 | } else {
81 | timer = nil
| `- error: main actor-isolated property 'timer' can not be mutated from a Sendable closure
82 | }
83 | }
/Users/admin/builder/spi-builder-workspace/Sources/Luminare/Components/Auxiliary/Modifiers/BooleanThrottleDebouncedModifier.swift:101:21: error: main actor-isolated property 'debouncedValue' can not be mutated from a Sendable closure
17 |
18 | @State private var updatedValue: Bool // IMPORTANT: refer to this instead of `value`
19 | @State private var debouncedValue: Bool
| `- note: mutation of this property is only permitted within the actor
20 |
21 | @State private var timer: Timer?
:
99 | // Schedules to flip off
100 | timer = .scheduledTimer(withTimeInterval: flipOffDelay, repeats: false) { _ in
101 | debouncedValue = false
| `- error: main actor-isolated property 'debouncedValue' can not be mutated from a Sendable closure
102 | timer?.invalidate()
103 |
/Users/admin/builder/spi-builder-workspace/Sources/Luminare/Components/Auxiliary/Modifiers/BooleanThrottleDebouncedModifier.swift:102:21: error: main actor-isolated property 'timer' can not be referenced from a Sendable closure
19 | @State private var debouncedValue: Bool
20 |
21 | @State private var timer: Timer?
| `- note: property declared here
22 |
23 | public init(
:
100 | timer = .scheduledTimer(withTimeInterval: flipOffDelay, repeats: false) { _ in
101 | debouncedValue = false
102 | timer?.invalidate()
| `- error: main actor-isolated property 'timer' can not be referenced from a Sendable closure
103 |
104 | if throttleDelay > .zero {
/Users/admin/builder/spi-builder-workspace/Sources/Luminare/Components/Auxiliary/Modifiers/BooleanThrottleDebouncedModifier.swift:106:25: error: main actor-isolated property 'timer' can not be mutated from a Sendable closure
19 | @State private var debouncedValue: Bool
20 |
21 | @State private var timer: Timer?
| `- note: mutation of this property is only permitted within the actor
22 |
23 | public init(
:
104 | if throttleDelay > .zero {
105 | // In case immediately receives a flip on signal
106 | timer = .scheduledTimer(withTimeInterval: throttleDelay, repeats: false) { _ in
| `- error: main actor-isolated property 'timer' can not be mutated from a Sendable closure
107 | debouncedValue = updatedValue
108 | timer?.invalidate()
/Users/admin/builder/spi-builder-workspace/Sources/Luminare/Components/Auxiliary/Modifiers/BooleanThrottleDebouncedModifier.swift:107:29: error: main actor-isolated property 'debouncedValue' can not be mutated from a Sendable closure
17 |
18 | @State private var updatedValue: Bool // IMPORTANT: refer to this instead of `value`
19 | @State private var debouncedValue: Bool
| `- note: mutation of this property is only permitted within the actor
20 |
21 | @State private var timer: Timer?
:
105 | // In case immediately receives a flip on signal
106 | timer = .scheduledTimer(withTimeInterval: throttleDelay, repeats: false) { _ in
107 | debouncedValue = updatedValue
| `- error: main actor-isolated property 'debouncedValue' can not be mutated from a Sendable closure
108 | timer?.invalidate()
109 | timer = nil
/Users/admin/builder/spi-builder-workspace/Sources/Luminare/Components/Auxiliary/Modifiers/BooleanThrottleDebouncedModifier.swift:107:46: error: main actor-isolated property 'updatedValue' can not be referenced from a Sendable closure
16 | private let action: (Bool) -> ()
17 |
18 | @State private var updatedValue: Bool // IMPORTANT: refer to this instead of `value`
| `- note: property declared here
19 | @State private var debouncedValue: Bool
20 |
:
105 | // In case immediately receives a flip on signal
106 | timer = .scheduledTimer(withTimeInterval: throttleDelay, repeats: false) { _ in
107 | debouncedValue = updatedValue
| `- error: main actor-isolated property 'updatedValue' can not be referenced from a Sendable closure
108 | timer?.invalidate()
109 | timer = nil
/Users/admin/builder/spi-builder-workspace/Sources/Luminare/Components/Auxiliary/Modifiers/BooleanThrottleDebouncedModifier.swift:108:29: error: main actor-isolated property 'timer' can not be referenced from a Sendable closure
19 | @State private var debouncedValue: Bool
20 |
21 | @State private var timer: Timer?
| `- note: property declared here
22 |
23 | public init(
:
106 | timer = .scheduledTimer(withTimeInterval: throttleDelay, repeats: false) { _ in
107 | debouncedValue = updatedValue
108 | timer?.invalidate()
| `- error: main actor-isolated property 'timer' can not be referenced from a Sendable closure
109 | timer = nil
110 | }
/Users/admin/builder/spi-builder-workspace/Sources/Luminare/Components/Auxiliary/Modifiers/BooleanThrottleDebouncedModifier.swift:109:29: error: main actor-isolated property 'timer' can not be mutated from a Sendable closure
19 | @State private var debouncedValue: Bool
20 |
21 | @State private var timer: Timer?
| `- note: mutation of this property is only permitted within the actor
22 |
23 | public init(
:
107 | debouncedValue = updatedValue
108 | timer?.invalidate()
109 | timer = nil
| `- error: main actor-isolated property 'timer' can not be mutated from a Sendable closure
110 | }
111 | } else {
/Users/admin/builder/spi-builder-workspace/Sources/Luminare/Components/Auxiliary/Modifiers/BooleanThrottleDebouncedModifier.swift:112:25: error: main actor-isolated property 'timer' can not be mutated from a Sendable closure
19 | @State private var debouncedValue: Bool
20 |
21 | @State private var timer: Timer?
| `- note: mutation of this property is only permitted within the actor
22 |
23 | public init(
:
110 | }
111 | } else {
112 | timer = nil
| `- error: main actor-isolated property 'timer' can not be mutated from a Sendable closure
113 | }
114 | }
/Users/admin/builder/spi-builder-workspace/Sources/Luminare/Components/Auxiliary/Modifiers/ForceTouchModifier.swift:211:13: warning: capture of 'event' with non-sendable type 'ForceTouchGesture.Event' in a `@Sendable` closure
17 |
18 | /// The event context of a ``ForceTouchGesture``.
19 | public struct Event: Equatable {
| `- note: consider making struct 'Event' conform to the 'Sendable' protocol
20 | public var state: NSPressGestureRecognizer.State
21 | public var stage: Int
:
209 | longPressTimer = .scheduledTimer(withTimeInterval: threshold + 0.1, repeats: false) { _ in
210 | timestamp = .now
211 | event.stage = 1
| `- warning: capture of 'event' with non-sendable type 'ForceTouchGesture.Event' in a `@Sendable` closure
212 |
213 | longPressTimer = .scheduledTimer(withTimeInterval: 0.1, repeats: true) { _ in
/Users/admin/builder/spi-builder-workspace/Sources/Luminare/Components/Auxiliary/Modifiers/ForceTouchModifier.swift:210:13: error: main actor-isolated property 'timestamp' can not be mutated from a Sendable closure
117 | @ViewBuilder private var content: () -> Content
118 |
119 | @State private var timestamp: Date?
| `- note: mutation of this property is only permitted within the actor
120 | @State private var state: NSPressGestureRecognizer.State = .ended
121 |
:
208 |
209 | longPressTimer = .scheduledTimer(withTimeInterval: threshold + 0.1, repeats: false) { _ in
210 | timestamp = .now
| `- error: main actor-isolated property 'timestamp' can not be mutated from a Sendable closure
211 | event.stage = 1
212 |
/Users/admin/builder/spi-builder-workspace/Sources/Luminare/Components/Auxiliary/Modifiers/ForceTouchModifier.swift:211:13: warning: mutation of captured var 'event' in concurrently-executing code
209 | longPressTimer = .scheduledTimer(withTimeInterval: threshold + 0.1, repeats: false) { _ in
210 | timestamp = .now
211 | event.stage = 1
| `- warning: mutation of captured var 'event' in concurrently-executing code
212 |
213 | longPressTimer = .scheduledTimer(withTimeInterval: 0.1, repeats: true) { _ in
/Users/admin/builder/spi-builder-workspace/Sources/Luminare/Components/Auxiliary/Modifiers/ForceTouchModifier.swift:213:13: error: main actor-isolated property 'longPressTimer' can not be mutated from a Sendable closure
120 | @State private var state: NSPressGestureRecognizer.State = .ended
121 |
122 | @State private var longPressTimer: Timer?
| `- note: mutation of this property is only permitted within the actor
123 |
124 | private let id = UUID()
:
211 | event.stage = 1
212 |
213 | longPressTimer = .scheduledTimer(withTimeInterval: 0.1, repeats: true) { _ in
| `- error: main actor-isolated property 'longPressTimer' can not be mutated from a Sendable closure
214 | let pressure = event.pressure + 0.1
215 | let isOverflowing = pressure > 1
/Users/admin/builder/spi-builder-workspace/Sources/Luminare/Components/Auxiliary/Modifiers/ForceTouchModifier.swift:214:32: warning: capture of 'event' with non-sendable type 'ForceTouchGesture.Event' in a `@Sendable` closure
17 |
18 | /// The event context of a ``ForceTouchGesture``.
19 | public struct Event: Equatable {
| `- note: consider making struct 'Event' conform to the 'Sendable' protocol
20 | public var state: NSPressGestureRecognizer.State
21 | public var stage: Int
:
212 |
213 | longPressTimer = .scheduledTimer(withTimeInterval: 0.1, repeats: true) { _ in
214 | let pressure = event.pressure + 0.1
| `- warning: capture of 'event' with non-sendable type 'ForceTouchGesture.Event' in a `@Sendable` closure
215 | let isOverflowing = pressure > 1
216 |
/Users/admin/builder/spi-builder-workspace/Sources/Luminare/Components/Auxiliary/Modifiers/ForceTouchModifier.swift:214:32: warning: reference to captured var 'event' in concurrently-executing code
212 |
213 | longPressTimer = .scheduledTimer(withTimeInterval: 0.1, repeats: true) { _ in
214 | let pressure = event.pressure + 0.1
| `- warning: reference to captured var 'event' in concurrently-executing code
215 | let isOverflowing = pressure > 1
216 |
/Users/admin/builder/spi-builder-workspace/Sources/Luminare/Components/Auxiliary/Modifiers/ForceTouchModifier.swift:217:17: warning: mutation of captured var 'event' in concurrently-executing code
215 | let isOverflowing = pressure > 1
216 |
217 | event.pressure = pressure.truncatingRemainder(dividingBy: 1)
| `- warning: mutation of captured var 'event' in concurrently-executing code
218 | if isOverflowing {
219 | event.stage += 1
/Users/admin/builder/spi-builder-workspace/Sources/Luminare/Components/Auxiliary/Modifiers/ForceTouchModifier.swift:219:21: warning: mutation of captured var 'event' in concurrently-executing code
217 | event.pressure = pressure.truncatingRemainder(dividingBy: 1)
218 | if isOverflowing {
219 | event.stage += 1
| `- warning: mutation of captured var 'event' in concurrently-executing code
220 | }
221 |
/Users/admin/builder/spi-builder-workspace/Sources/Luminare/Components/Auxiliary/Modifiers/ForceTouchModifier.swift:222:17: error: main actor-isolated property 'gesture' can not be mutated from a Sendable closure
113 | private let configuration: NSPressureConfiguration
114 | private let threshold: CGFloat
115 | @Binding private var gesture: ForceTouchGesture
| `- note: mutation of this property is only permitted within the actor
116 |
117 | @ViewBuilder private var content: () -> Content
:
220 | }
221 |
222 | gesture = .active(event)
| `- error: main actor-isolated property 'gesture' can not be mutated from a Sendable closure
223 | }
224 | }
/Users/admin/builder/spi-builder-workspace/Sources/Luminare/Components/Auxiliary/Modifiers/ForceTouchModifier.swift:222:35: warning: reference to captured var 'event' in concurrently-executing code
220 | }
221 |
222 | gesture = .active(event)
| `- warning: reference to captured var 'event' in concurrently-executing code
223 | }
224 | }
[125/145] Compiling Luminare Text+Extensions.swift
/Users/admin/builder/spi-builder-workspace/Sources/Luminare/Utilities/Extensions/View+Extensions.swift:49:13: warning: capture of 'binding' with non-sendable type 'Binding<K.Value>' in a `@Sendable` closure
47 | ) -> some View where K: PreferenceKey, K.Value: Equatable {
48 | onPreferenceChange(key) { value in
49 | binding.wrappedValue = value
| `- warning: capture of 'binding' with non-sendable type 'Binding<K.Value>' in a `@Sendable` closure
50 | }
51 | }
/Users/admin/builder/spi-builder-workspace/Sources/Luminare/Utilities/LuminareCoordinator.swift:23:19: error: main actor-isolated property 'isVisible' can not be referenced from a nonisolated context
21 | public extension LuminareCoordinator {
22 | var isVisible: Bool {
23 | luminare?.isVisible ?? false
| `- error: main actor-isolated property 'isVisible' can not be referenced from a nonisolated context
24 | }
25 |
AppKit.NSWindow:159:25: note: property declared here
157 | @available(swift, obsoleted: 3, renamed: "isDocumentEdited")
158 | open var documentEdited: Bool { get set }
159 | @MainActor open var isVisible: Bool { get }
| `- note: property declared here
160 | @available(swift, obsoleted: 3, renamed: "isVisible")
161 | open var visible: Bool { get }
/Users/admin/builder/spi-builder-workspace/Sources/Luminare/Utilities/LuminareCoordinator.swift:28:24: error: call to main actor-isolated initializer 'init(content:)' in a synchronous nonisolated context
24 | }
25 |
26 | func showWindow() {
| `- note: add '@MainActor' to make instance method 'showWindow()' part of global actor 'MainActor'
27 | if luminare == nil {
28 | luminare = LuminareWindow {
| `- error: call to main actor-isolated initializer 'init(content:)' in a synchronous nonisolated context
29 | self.body
30 | }
/Users/admin/builder/spi-builder-workspace/Sources/Luminare/Main Window/LuminareWindow.swift:18:12: note: calls to initializer 'init(content:)' from outside of its actor context are implicitly asynchronous
16 | /// - Parameters:
17 | /// - content: the content view of the window, wrapped in a ``LuminareView``.
18 | public init(content: @escaping () -> some View) {
| `- note: calls to initializer 'init(content:)' from outside of its actor context are implicitly asynchronous
19 | super.init(
20 | contentRect: .zero,
/Users/admin/builder/spi-builder-workspace/Sources/Luminare/Utilities/LuminareCoordinator.swift:33:19: error: call to main actor-isolated instance method 'layoutIfNeeded()' in a synchronous nonisolated context
24 | }
25 |
26 | func showWindow() {
| `- note: add '@MainActor' to make instance method 'showWindow()' part of global actor 'MainActor'
27 | if luminare == nil {
28 | luminare = LuminareWindow {
:
31 | }
32 |
33 | luminare?.layoutIfNeeded()
| `- error: call to main actor-isolated instance method 'layoutIfNeeded()' in a synchronous nonisolated context
34 | luminare?.center()
35 | luminare?.orderFrontRegardless()
AppKit.NSWindow:5:26: note: calls to instance method 'layoutIfNeeded()' from outside of its actor context are implicitly asynchronous
3 | open func updateConstraintsIfNeeded()
4 | @available(macOS 10.7, *)
5 | @MainActor open func layoutIfNeeded()
| `- note: calls to instance method 'layoutIfNeeded()' from outside of its actor context are implicitly asynchronous
6 | }
/Users/admin/builder/spi-builder-workspace/Sources/Luminare/Utilities/LuminareCoordinator.swift:34:19: error: call to main actor-isolated instance method 'center()' in a synchronous nonisolated context
24 | }
25 |
26 | func showWindow() {
| `- note: add '@MainActor' to make instance method 'showWindow()' part of global actor 'MainActor'
27 | if luminare == nil {
28 | luminare = LuminareWindow {
:
32 |
33 | luminare?.layoutIfNeeded()
34 | luminare?.center()
| `- error: call to main actor-isolated instance method 'center()' in a synchronous nonisolated context
35 | luminare?.orderFrontRegardless()
36 | }
AppKit.NSWindow:143:15: note: calls to instance method 'center()' from outside of its actor context are implicitly asynchronous
141 | open var hidesOnDeactivate: Bool { get set }
142 | open var canHide: Bool { get set }
143 | open func center()
| `- note: calls to instance method 'center()' from outside of its actor context are implicitly asynchronous
144 | open func makeKeyAndOrderFront(_ sender: Any?)
145 | open func orderFront(_ sender: Any?)
/Users/admin/builder/spi-builder-workspace/Sources/Luminare/Utilities/LuminareCoordinator.swift:35:19: error: call to main actor-isolated instance method 'orderFrontRegardless()' in a synchronous nonisolated context
24 | }
25 |
26 | func showWindow() {
| `- note: add '@MainActor' to make instance method 'showWindow()' part of global actor 'MainActor'
27 | if luminare == nil {
28 | luminare = LuminareWindow {
:
33 | luminare?.layoutIfNeeded()
34 | luminare?.center()
35 | luminare?.orderFrontRegardless()
| `- error: call to main actor-isolated instance method 'orderFrontRegardless()' in a synchronous nonisolated context
36 | }
37 |
AppKit.NSWindow:151:15: note: calls to instance method 'orderFrontRegardless()' from outside of its actor context are implicitly asynchronous
149 | @available(swift, obsoleted: 3, renamed: "order(_:relativeTo:)")
150 | open func orderWindow(_ place: NSWindow.OrderingMode, relativeTo otherWin: Int)
151 | open func orderFrontRegardless()
| `- note: calls to instance method 'orderFrontRegardless()' from outside of its actor context are implicitly asynchronous
152 | open var miniwindowImage: NSImage? { get set }
153 | open var miniwindowTitle: String! { get set }
/Users/admin/builder/spi-builder-workspace/Sources/Luminare/Utilities/LuminareCoordinator.swift:39:19: error: call to main actor-isolated instance method 'close()' in a synchronous nonisolated context
36 | }
37 |
38 | func closeWindow() {
| `- note: add '@MainActor' to make instance method 'closeWindow()' part of global actor 'MainActor'
39 | luminare?.close()
| `- error: call to main actor-isolated instance method 'close()' in a synchronous nonisolated context
40 | luminare = nil
41 | }
AppKit.NSWindow:95:15: note: calls to instance method 'close()' from outside of its actor context are implicitly asynchronous
93 | weak open var firstResponder: NSResponder? { get }
94 | open var resizeFlags: NSEvent.ModifierFlags { get }
95 | open func close()
| `- note: calls to instance method 'close()' from outside of its actor context are implicitly asynchronous
96 | open var isReleasedWhenClosed: Bool { get set }
97 | @available(swift, obsoleted: 3, renamed: "isReleasedWhenClosed")
[126/145] Compiling Luminare View+Extensions.swift
/Users/admin/builder/spi-builder-workspace/Sources/Luminare/Utilities/Extensions/View+Extensions.swift:49:13: warning: capture of 'binding' with non-sendable type 'Binding<K.Value>' in a `@Sendable` closure
47 | ) -> some View where K: PreferenceKey, K.Value: Equatable {
48 | onPreferenceChange(key) { value in
49 | binding.wrappedValue = value
| `- warning: capture of 'binding' with non-sendable type 'Binding<K.Value>' in a `@Sendable` closure
50 | }
51 | }
/Users/admin/builder/spi-builder-workspace/Sources/Luminare/Utilities/LuminareCoordinator.swift:23:19: error: main actor-isolated property 'isVisible' can not be referenced from a nonisolated context
21 | public extension LuminareCoordinator {
22 | var isVisible: Bool {
23 | luminare?.isVisible ?? false
| `- error: main actor-isolated property 'isVisible' can not be referenced from a nonisolated context
24 | }
25 |
AppKit.NSWindow:159:25: note: property declared here
157 | @available(swift, obsoleted: 3, renamed: "isDocumentEdited")
158 | open var documentEdited: Bool { get set }
159 | @MainActor open var isVisible: Bool { get }
| `- note: property declared here
160 | @available(swift, obsoleted: 3, renamed: "isVisible")
161 | open var visible: Bool { get }
/Users/admin/builder/spi-builder-workspace/Sources/Luminare/Utilities/LuminareCoordinator.swift:28:24: error: call to main actor-isolated initializer 'init(content:)' in a synchronous nonisolated context
24 | }
25 |
26 | func showWindow() {
| `- note: add '@MainActor' to make instance method 'showWindow()' part of global actor 'MainActor'
27 | if luminare == nil {
28 | luminare = LuminareWindow {
| `- error: call to main actor-isolated initializer 'init(content:)' in a synchronous nonisolated context
29 | self.body
30 | }
/Users/admin/builder/spi-builder-workspace/Sources/Luminare/Main Window/LuminareWindow.swift:18:12: note: calls to initializer 'init(content:)' from outside of its actor context are implicitly asynchronous
16 | /// - Parameters:
17 | /// - content: the content view of the window, wrapped in a ``LuminareView``.
18 | public init(content: @escaping () -> some View) {
| `- note: calls to initializer 'init(content:)' from outside of its actor context are implicitly asynchronous
19 | super.init(
20 | contentRect: .zero,
/Users/admin/builder/spi-builder-workspace/Sources/Luminare/Utilities/LuminareCoordinator.swift:33:19: error: call to main actor-isolated instance method 'layoutIfNeeded()' in a synchronous nonisolated context
24 | }
25 |
26 | func showWindow() {
| `- note: add '@MainActor' to make instance method 'showWindow()' part of global actor 'MainActor'
27 | if luminare == nil {
28 | luminare = LuminareWindow {
:
31 | }
32 |
33 | luminare?.layoutIfNeeded()
| `- error: call to main actor-isolated instance method 'layoutIfNeeded()' in a synchronous nonisolated context
34 | luminare?.center()
35 | luminare?.orderFrontRegardless()
AppKit.NSWindow:5:26: note: calls to instance method 'layoutIfNeeded()' from outside of its actor context are implicitly asynchronous
3 | open func updateConstraintsIfNeeded()
4 | @available(macOS 10.7, *)
5 | @MainActor open func layoutIfNeeded()
| `- note: calls to instance method 'layoutIfNeeded()' from outside of its actor context are implicitly asynchronous
6 | }
/Users/admin/builder/spi-builder-workspace/Sources/Luminare/Utilities/LuminareCoordinator.swift:34:19: error: call to main actor-isolated instance method 'center()' in a synchronous nonisolated context
24 | }
25 |
26 | func showWindow() {
| `- note: add '@MainActor' to make instance method 'showWindow()' part of global actor 'MainActor'
27 | if luminare == nil {
28 | luminare = LuminareWindow {
:
32 |
33 | luminare?.layoutIfNeeded()
34 | luminare?.center()
| `- error: call to main actor-isolated instance method 'center()' in a synchronous nonisolated context
35 | luminare?.orderFrontRegardless()
36 | }
AppKit.NSWindow:143:15: note: calls to instance method 'center()' from outside of its actor context are implicitly asynchronous
141 | open var hidesOnDeactivate: Bool { get set }
142 | open var canHide: Bool { get set }
143 | open func center()
| `- note: calls to instance method 'center()' from outside of its actor context are implicitly asynchronous
144 | open func makeKeyAndOrderFront(_ sender: Any?)
145 | open func orderFront(_ sender: Any?)
/Users/admin/builder/spi-builder-workspace/Sources/Luminare/Utilities/LuminareCoordinator.swift:35:19: error: call to main actor-isolated instance method 'orderFrontRegardless()' in a synchronous nonisolated context
24 | }
25 |
26 | func showWindow() {
| `- note: add '@MainActor' to make instance method 'showWindow()' part of global actor 'MainActor'
27 | if luminare == nil {
28 | luminare = LuminareWindow {
:
33 | luminare?.layoutIfNeeded()
34 | luminare?.center()
35 | luminare?.orderFrontRegardless()
| `- error: call to main actor-isolated instance method 'orderFrontRegardless()' in a synchronous nonisolated context
36 | }
37 |
AppKit.NSWindow:151:15: note: calls to instance method 'orderFrontRegardless()' from outside of its actor context are implicitly asynchronous
149 | @available(swift, obsoleted: 3, renamed: "order(_:relativeTo:)")
150 | open func orderWindow(_ place: NSWindow.OrderingMode, relativeTo otherWin: Int)
151 | open func orderFrontRegardless()
| `- note: calls to instance method 'orderFrontRegardless()' from outside of its actor context are implicitly asynchronous
152 | open var miniwindowImage: NSImage? { get set }
153 | open var miniwindowTitle: String! { get set }
/Users/admin/builder/spi-builder-workspace/Sources/Luminare/Utilities/LuminareCoordinator.swift:39:19: error: call to main actor-isolated instance method 'close()' in a synchronous nonisolated context
36 | }
37 |
38 | func closeWindow() {
| `- note: add '@MainActor' to make instance method 'closeWindow()' part of global actor 'MainActor'
39 | luminare?.close()
| `- error: call to main actor-isolated instance method 'close()' in a synchronous nonisolated context
40 | luminare = nil
41 | }
AppKit.NSWindow:95:15: note: calls to instance method 'close()' from outside of its actor context are implicitly asynchronous
93 | weak open var firstResponder: NSResponder? { get }
94 | open var resizeFlags: NSEvent.ModifierFlags { get }
95 | open func close()
| `- note: calls to instance method 'close()' from outside of its actor context are implicitly asynchronous
96 | open var isReleasedWhenClosed: Bool { get set }
97 | @available(swift, obsoleted: 3, renamed: "isReleasedWhenClosed")
[127/145] Compiling Luminare LuminareSection+Initializers.swift
/Users/admin/builder/spi-builder-workspace/Sources/Luminare/Utilities/Extensions/View+Extensions.swift:49:13: warning: capture of 'binding' with non-sendable type 'Binding<K.Value>' in a `@Sendable` closure
47 | ) -> some View where K: PreferenceKey, K.Value: Equatable {
48 | onPreferenceChange(key) { value in
49 | binding.wrappedValue = value
| `- warning: capture of 'binding' with non-sendable type 'Binding<K.Value>' in a `@Sendable` closure
50 | }
51 | }
/Users/admin/builder/spi-builder-workspace/Sources/Luminare/Utilities/LuminareCoordinator.swift:23:19: error: main actor-isolated property 'isVisible' can not be referenced from a nonisolated context
21 | public extension LuminareCoordinator {
22 | var isVisible: Bool {
23 | luminare?.isVisible ?? false
| `- error: main actor-isolated property 'isVisible' can not be referenced from a nonisolated context
24 | }
25 |
AppKit.NSWindow:159:25: note: property declared here
157 | @available(swift, obsoleted: 3, renamed: "isDocumentEdited")
158 | open var documentEdited: Bool { get set }
159 | @MainActor open var isVisible: Bool { get }
| `- note: property declared here
160 | @available(swift, obsoleted: 3, renamed: "isVisible")
161 | open var visible: Bool { get }
/Users/admin/builder/spi-builder-workspace/Sources/Luminare/Utilities/LuminareCoordinator.swift:28:24: error: call to main actor-isolated initializer 'init(content:)' in a synchronous nonisolated context
24 | }
25 |
26 | func showWindow() {
| `- note: add '@MainActor' to make instance method 'showWindow()' part of global actor 'MainActor'
27 | if luminare == nil {
28 | luminare = LuminareWindow {
| `- error: call to main actor-isolated initializer 'init(content:)' in a synchronous nonisolated context
29 | self.body
30 | }
/Users/admin/builder/spi-builder-workspace/Sources/Luminare/Main Window/LuminareWindow.swift:18:12: note: calls to initializer 'init(content:)' from outside of its actor context are implicitly asynchronous
16 | /// - Parameters:
17 | /// - content: the content view of the window, wrapped in a ``LuminareView``.
18 | public init(content: @escaping () -> some View) {
| `- note: calls to initializer 'init(content:)' from outside of its actor context are implicitly asynchronous
19 | super.init(
20 | contentRect: .zero,
/Users/admin/builder/spi-builder-workspace/Sources/Luminare/Utilities/LuminareCoordinator.swift:33:19: error: call to main actor-isolated instance method 'layoutIfNeeded()' in a synchronous nonisolated context
24 | }
25 |
26 | func showWindow() {
| `- note: add '@MainActor' to make instance method 'showWindow()' part of global actor 'MainActor'
27 | if luminare == nil {
28 | luminare = LuminareWindow {
:
31 | }
32 |
33 | luminare?.layoutIfNeeded()
| `- error: call to main actor-isolated instance method 'layoutIfNeeded()' in a synchronous nonisolated context
34 | luminare?.center()
35 | luminare?.orderFrontRegardless()
AppKit.NSWindow:5:26: note: calls to instance method 'layoutIfNeeded()' from outside of its actor context are implicitly asynchronous
3 | open func updateConstraintsIfNeeded()
4 | @available(macOS 10.7, *)
5 | @MainActor open func layoutIfNeeded()
| `- note: calls to instance method 'layoutIfNeeded()' from outside of its actor context are implicitly asynchronous
6 | }
/Users/admin/builder/spi-builder-workspace/Sources/Luminare/Utilities/LuminareCoordinator.swift:34:19: error: call to main actor-isolated instance method 'center()' in a synchronous nonisolated context
24 | }
25 |
26 | func showWindow() {
| `- note: add '@MainActor' to make instance method 'showWindow()' part of global actor 'MainActor'
27 | if luminare == nil {
28 | luminare = LuminareWindow {
:
32 |
33 | luminare?.layoutIfNeeded()
34 | luminare?.center()
| `- error: call to main actor-isolated instance method 'center()' in a synchronous nonisolated context
35 | luminare?.orderFrontRegardless()
36 | }
AppKit.NSWindow:143:15: note: calls to instance method 'center()' from outside of its actor context are implicitly asynchronous
141 | open var hidesOnDeactivate: Bool { get set }
142 | open var canHide: Bool { get set }
143 | open func center()
| `- note: calls to instance method 'center()' from outside of its actor context are implicitly asynchronous
144 | open func makeKeyAndOrderFront(_ sender: Any?)
145 | open func orderFront(_ sender: Any?)
/Users/admin/builder/spi-builder-workspace/Sources/Luminare/Utilities/LuminareCoordinator.swift:35:19: error: call to main actor-isolated instance method 'orderFrontRegardless()' in a synchronous nonisolated context
24 | }
25 |
26 | func showWindow() {
| `- note: add '@MainActor' to make instance method 'showWindow()' part of global actor 'MainActor'
27 | if luminare == nil {
28 | luminare = LuminareWindow {
:
33 | luminare?.layoutIfNeeded()
34 | luminare?.center()
35 | luminare?.orderFrontRegardless()
| `- error: call to main actor-isolated instance method 'orderFrontRegardless()' in a synchronous nonisolated context
36 | }
37 |
AppKit.NSWindow:151:15: note: calls to instance method 'orderFrontRegardless()' from outside of its actor context are implicitly asynchronous
149 | @available(swift, obsoleted: 3, renamed: "order(_:relativeTo:)")
150 | open func orderWindow(_ place: NSWindow.OrderingMode, relativeTo otherWin: Int)
151 | open func orderFrontRegardless()
| `- note: calls to instance method 'orderFrontRegardless()' from outside of its actor context are implicitly asynchronous
152 | open var miniwindowImage: NSImage? { get set }
153 | open var miniwindowTitle: String! { get set }
/Users/admin/builder/spi-builder-workspace/Sources/Luminare/Utilities/LuminareCoordinator.swift:39:19: error: call to main actor-isolated instance method 'close()' in a synchronous nonisolated context
36 | }
37 |
38 | func closeWindow() {
| `- note: add '@MainActor' to make instance method 'closeWindow()' part of global actor 'MainActor'
39 | luminare?.close()
| `- error: call to main actor-isolated instance method 'close()' in a synchronous nonisolated context
40 | luminare = nil
41 | }
AppKit.NSWindow:95:15: note: calls to instance method 'close()' from outside of its actor context are implicitly asynchronous
93 | weak open var firstResponder: NSResponder? { get }
94 | open var resizeFlags: NSEvent.ModifierFlags { get }
95 | open func close()
| `- note: calls to instance method 'close()' from outside of its actor context are implicitly asynchronous
96 | open var isReleasedWhenClosed: Bool { get set }
97 | @available(swift, obsoleted: 3, renamed: "isReleasedWhenClosed")
[128/145] Compiling Luminare LuminareCoordinator.swift
/Users/admin/builder/spi-builder-workspace/Sources/Luminare/Utilities/Extensions/View+Extensions.swift:49:13: warning: capture of 'binding' with non-sendable type 'Binding<K.Value>' in a `@Sendable` closure
47 | ) -> some View where K: PreferenceKey, K.Value: Equatable {
48 | onPreferenceChange(key) { value in
49 | binding.wrappedValue = value
| `- warning: capture of 'binding' with non-sendable type 'Binding<K.Value>' in a `@Sendable` closure
50 | }
51 | }
/Users/admin/builder/spi-builder-workspace/Sources/Luminare/Utilities/LuminareCoordinator.swift:23:19: error: main actor-isolated property 'isVisible' can not be referenced from a nonisolated context
21 | public extension LuminareCoordinator {
22 | var isVisible: Bool {
23 | luminare?.isVisible ?? false
| `- error: main actor-isolated property 'isVisible' can not be referenced from a nonisolated context
24 | }
25 |
AppKit.NSWindow:159:25: note: property declared here
157 | @available(swift, obsoleted: 3, renamed: "isDocumentEdited")
158 | open var documentEdited: Bool { get set }
159 | @MainActor open var isVisible: Bool { get }
| `- note: property declared here
160 | @available(swift, obsoleted: 3, renamed: "isVisible")
161 | open var visible: Bool { get }
/Users/admin/builder/spi-builder-workspace/Sources/Luminare/Utilities/LuminareCoordinator.swift:28:24: error: call to main actor-isolated initializer 'init(content:)' in a synchronous nonisolated context
24 | }
25 |
26 | func showWindow() {
| `- note: add '@MainActor' to make instance method 'showWindow()' part of global actor 'MainActor'
27 | if luminare == nil {
28 | luminare = LuminareWindow {
| `- error: call to main actor-isolated initializer 'init(content:)' in a synchronous nonisolated context
29 | self.body
30 | }
/Users/admin/builder/spi-builder-workspace/Sources/Luminare/Main Window/LuminareWindow.swift:18:12: note: calls to initializer 'init(content:)' from outside of its actor context are implicitly asynchronous
16 | /// - Parameters:
17 | /// - content: the content view of the window, wrapped in a ``LuminareView``.
18 | public init(content: @escaping () -> some View) {
| `- note: calls to initializer 'init(content:)' from outside of its actor context are implicitly asynchronous
19 | super.init(
20 | contentRect: .zero,
/Users/admin/builder/spi-builder-workspace/Sources/Luminare/Utilities/LuminareCoordinator.swift:33:19: error: call to main actor-isolated instance method 'layoutIfNeeded()' in a synchronous nonisolated context
24 | }
25 |
26 | func showWindow() {
| `- note: add '@MainActor' to make instance method 'showWindow()' part of global actor 'MainActor'
27 | if luminare == nil {
28 | luminare = LuminareWindow {
:
31 | }
32 |
33 | luminare?.layoutIfNeeded()
| `- error: call to main actor-isolated instance method 'layoutIfNeeded()' in a synchronous nonisolated context
34 | luminare?.center()
35 | luminare?.orderFrontRegardless()
AppKit.NSWindow:5:26: note: calls to instance method 'layoutIfNeeded()' from outside of its actor context are implicitly asynchronous
3 | open func updateConstraintsIfNeeded()
4 | @available(macOS 10.7, *)
5 | @MainActor open func layoutIfNeeded()
| `- note: calls to instance method 'layoutIfNeeded()' from outside of its actor context are implicitly asynchronous
6 | }
/Users/admin/builder/spi-builder-workspace/Sources/Luminare/Utilities/LuminareCoordinator.swift:34:19: error: call to main actor-isolated instance method 'center()' in a synchronous nonisolated context
24 | }
25 |
26 | func showWindow() {
| `- note: add '@MainActor' to make instance method 'showWindow()' part of global actor 'MainActor'
27 | if luminare == nil {
28 | luminare = LuminareWindow {
:
32 |
33 | luminare?.layoutIfNeeded()
34 | luminare?.center()
| `- error: call to main actor-isolated instance method 'center()' in a synchronous nonisolated context
35 | luminare?.orderFrontRegardless()
36 | }
AppKit.NSWindow:143:15: note: calls to instance method 'center()' from outside of its actor context are implicitly asynchronous
141 | open var hidesOnDeactivate: Bool { get set }
142 | open var canHide: Bool { get set }
143 | open func center()
| `- note: calls to instance method 'center()' from outside of its actor context are implicitly asynchronous
144 | open func makeKeyAndOrderFront(_ sender: Any?)
145 | open func orderFront(_ sender: Any?)
/Users/admin/builder/spi-builder-workspace/Sources/Luminare/Utilities/LuminareCoordinator.swift:35:19: error: call to main actor-isolated instance method 'orderFrontRegardless()' in a synchronous nonisolated context
24 | }
25 |
26 | func showWindow() {
| `- note: add '@MainActor' to make instance method 'showWindow()' part of global actor 'MainActor'
27 | if luminare == nil {
28 | luminare = LuminareWindow {
:
33 | luminare?.layoutIfNeeded()
34 | luminare?.center()
35 | luminare?.orderFrontRegardless()
| `- error: call to main actor-isolated instance method 'orderFrontRegardless()' in a synchronous nonisolated context
36 | }
37 |
AppKit.NSWindow:151:15: note: calls to instance method 'orderFrontRegardless()' from outside of its actor context are implicitly asynchronous
149 | @available(swift, obsoleted: 3, renamed: "order(_:relativeTo:)")
150 | open func orderWindow(_ place: NSWindow.OrderingMode, relativeTo otherWin: Int)
151 | open func orderFrontRegardless()
| `- note: calls to instance method 'orderFrontRegardless()' from outside of its actor context are implicitly asynchronous
152 | open var miniwindowImage: NSImage? { get set }
153 | open var miniwindowTitle: String! { get set }
/Users/admin/builder/spi-builder-workspace/Sources/Luminare/Utilities/LuminareCoordinator.swift:39:19: error: call to main actor-isolated instance method 'close()' in a synchronous nonisolated context
36 | }
37 |
38 | func closeWindow() {
| `- note: add '@MainActor' to make instance method 'closeWindow()' part of global actor 'MainActor'
39 | luminare?.close()
| `- error: call to main actor-isolated instance method 'close()' in a synchronous nonisolated context
40 | luminare = nil
41 | }
AppKit.NSWindow:95:15: note: calls to instance method 'close()' from outside of its actor context are implicitly asynchronous
93 | weak open var firstResponder: NSResponder? { get }
94 | open var resizeFlags: NSEvent.ModifierFlags { get }
95 | open func close()
| `- note: calls to instance method 'close()' from outside of its actor context are implicitly asynchronous
96 | open var isReleasedWhenClosed: Bool { get set }
97 | @available(swift, obsoleted: 3, renamed: "isReleasedWhenClosed")
[129/145] Compiling Luminare LuminareSelectionData.swift
/Users/admin/builder/spi-builder-workspace/Sources/Luminare/Utilities/Extensions/View+Extensions.swift:49:13: warning: capture of 'binding' with non-sendable type 'Binding<K.Value>' in a `@Sendable` closure
47 | ) -> some View where K: PreferenceKey, K.Value: Equatable {
48 | onPreferenceChange(key) { value in
49 | binding.wrappedValue = value
| `- warning: capture of 'binding' with non-sendable type 'Binding<K.Value>' in a `@Sendable` closure
50 | }
51 | }
/Users/admin/builder/spi-builder-workspace/Sources/Luminare/Utilities/LuminareCoordinator.swift:23:19: error: main actor-isolated property 'isVisible' can not be referenced from a nonisolated context
21 | public extension LuminareCoordinator {
22 | var isVisible: Bool {
23 | luminare?.isVisible ?? false
| `- error: main actor-isolated property 'isVisible' can not be referenced from a nonisolated context
24 | }
25 |
AppKit.NSWindow:159:25: note: property declared here
157 | @available(swift, obsoleted: 3, renamed: "isDocumentEdited")
158 | open var documentEdited: Bool { get set }
159 | @MainActor open var isVisible: Bool { get }
| `- note: property declared here
160 | @available(swift, obsoleted: 3, renamed: "isVisible")
161 | open var visible: Bool { get }
/Users/admin/builder/spi-builder-workspace/Sources/Luminare/Utilities/LuminareCoordinator.swift:28:24: error: call to main actor-isolated initializer 'init(content:)' in a synchronous nonisolated context
24 | }
25 |
26 | func showWindow() {
| `- note: add '@MainActor' to make instance method 'showWindow()' part of global actor 'MainActor'
27 | if luminare == nil {
28 | luminare = LuminareWindow {
| `- error: call to main actor-isolated initializer 'init(content:)' in a synchronous nonisolated context
29 | self.body
30 | }
/Users/admin/builder/spi-builder-workspace/Sources/Luminare/Main Window/LuminareWindow.swift:18:12: note: calls to initializer 'init(content:)' from outside of its actor context are implicitly asynchronous
16 | /// - Parameters:
17 | /// - content: the content view of the window, wrapped in a ``LuminareView``.
18 | public init(content: @escaping () -> some View) {
| `- note: calls to initializer 'init(content:)' from outside of its actor context are implicitly asynchronous
19 | super.init(
20 | contentRect: .zero,
/Users/admin/builder/spi-builder-workspace/Sources/Luminare/Utilities/LuminareCoordinator.swift:33:19: error: call to main actor-isolated instance method 'layoutIfNeeded()' in a synchronous nonisolated context
24 | }
25 |
26 | func showWindow() {
| `- note: add '@MainActor' to make instance method 'showWindow()' part of global actor 'MainActor'
27 | if luminare == nil {
28 | luminare = LuminareWindow {
:
31 | }
32 |
33 | luminare?.layoutIfNeeded()
| `- error: call to main actor-isolated instance method 'layoutIfNeeded()' in a synchronous nonisolated context
34 | luminare?.center()
35 | luminare?.orderFrontRegardless()
AppKit.NSWindow:5:26: note: calls to instance method 'layoutIfNeeded()' from outside of its actor context are implicitly asynchronous
3 | open func updateConstraintsIfNeeded()
4 | @available(macOS 10.7, *)
5 | @MainActor open func layoutIfNeeded()
| `- note: calls to instance method 'layoutIfNeeded()' from outside of its actor context are implicitly asynchronous
6 | }
/Users/admin/builder/spi-builder-workspace/Sources/Luminare/Utilities/LuminareCoordinator.swift:34:19: error: call to main actor-isolated instance method 'center()' in a synchronous nonisolated context
24 | }
25 |
26 | func showWindow() {
| `- note: add '@MainActor' to make instance method 'showWindow()' part of global actor 'MainActor'
27 | if luminare == nil {
28 | luminare = LuminareWindow {
:
32 |
33 | luminare?.layoutIfNeeded()
34 | luminare?.center()
| `- error: call to main actor-isolated instance method 'center()' in a synchronous nonisolated context
35 | luminare?.orderFrontRegardless()
36 | }
AppKit.NSWindow:143:15: note: calls to instance method 'center()' from outside of its actor context are implicitly asynchronous
141 | open var hidesOnDeactivate: Bool { get set }
142 | open var canHide: Bool { get set }
143 | open func center()
| `- note: calls to instance method 'center()' from outside of its actor context are implicitly asynchronous
144 | open func makeKeyAndOrderFront(_ sender: Any?)
145 | open func orderFront(_ sender: Any?)
/Users/admin/builder/spi-builder-workspace/Sources/Luminare/Utilities/LuminareCoordinator.swift:35:19: error: call to main actor-isolated instance method 'orderFrontRegardless()' in a synchronous nonisolated context
24 | }
25 |
26 | func showWindow() {
| `- note: add '@MainActor' to make instance method 'showWindow()' part of global actor 'MainActor'
27 | if luminare == nil {
28 | luminare = LuminareWindow {
:
33 | luminare?.layoutIfNeeded()
34 | luminare?.center()
35 | luminare?.orderFrontRegardless()
| `- error: call to main actor-isolated instance method 'orderFrontRegardless()' in a synchronous nonisolated context
36 | }
37 |
AppKit.NSWindow:151:15: note: calls to instance method 'orderFrontRegardless()' from outside of its actor context are implicitly asynchronous
149 | @available(swift, obsoleted: 3, renamed: "order(_:relativeTo:)")
150 | open func orderWindow(_ place: NSWindow.OrderingMode, relativeTo otherWin: Int)
151 | open func orderFrontRegardless()
| `- note: calls to instance method 'orderFrontRegardless()' from outside of its actor context are implicitly asynchronous
152 | open var miniwindowImage: NSImage? { get set }
153 | open var miniwindowTitle: String! { get set }
/Users/admin/builder/spi-builder-workspace/Sources/Luminare/Utilities/LuminareCoordinator.swift:39:19: error: call to main actor-isolated instance method 'close()' in a synchronous nonisolated context
36 | }
37 |
38 | func closeWindow() {
| `- note: add '@MainActor' to make instance method 'closeWindow()' part of global actor 'MainActor'
39 | luminare?.close()
| `- error: call to main actor-isolated instance method 'close()' in a synchronous nonisolated context
40 | luminare = nil
41 | }
AppKit.NSWindow:95:15: note: calls to instance method 'close()' from outside of its actor context are implicitly asynchronous
93 | weak open var firstResponder: NSResponder? { get }
94 | open var resizeFlags: NSEvent.ModifierFlags { get }
95 | open func close()
| `- note: calls to instance method 'close()' from outside of its actor context are implicitly asynchronous
96 | open var isReleasedWhenClosed: Bool { get set }
97 | @available(swift, obsoleted: 3, renamed: "isReleasedWhenClosed")
[130/145] Compiling Luminare LuminareButtonStyle+Previews.swift
/Users/admin/builder/spi-builder-workspace/Sources/Luminare/Utilities/Extensions/View+Extensions.swift:49:13: warning: capture of 'binding' with non-sendable type 'Binding<K.Value>' in a `@Sendable` closure
47 | ) -> some View where K: PreferenceKey, K.Value: Equatable {
48 | onPreferenceChange(key) { value in
49 | binding.wrappedValue = value
| `- warning: capture of 'binding' with non-sendable type 'Binding<K.Value>' in a `@Sendable` closure
50 | }
51 | }
/Users/admin/builder/spi-builder-workspace/Sources/Luminare/Utilities/LuminareCoordinator.swift:23:19: error: main actor-isolated property 'isVisible' can not be referenced from a nonisolated context
21 | public extension LuminareCoordinator {
22 | var isVisible: Bool {
23 | luminare?.isVisible ?? false
| `- error: main actor-isolated property 'isVisible' can not be referenced from a nonisolated context
24 | }
25 |
AppKit.NSWindow:159:25: note: property declared here
157 | @available(swift, obsoleted: 3, renamed: "isDocumentEdited")
158 | open var documentEdited: Bool { get set }
159 | @MainActor open var isVisible: Bool { get }
| `- note: property declared here
160 | @available(swift, obsoleted: 3, renamed: "isVisible")
161 | open var visible: Bool { get }
/Users/admin/builder/spi-builder-workspace/Sources/Luminare/Utilities/LuminareCoordinator.swift:28:24: error: call to main actor-isolated initializer 'init(content:)' in a synchronous nonisolated context
24 | }
25 |
26 | func showWindow() {
| `- note: add '@MainActor' to make instance method 'showWindow()' part of global actor 'MainActor'
27 | if luminare == nil {
28 | luminare = LuminareWindow {
| `- error: call to main actor-isolated initializer 'init(content:)' in a synchronous nonisolated context
29 | self.body
30 | }
/Users/admin/builder/spi-builder-workspace/Sources/Luminare/Main Window/LuminareWindow.swift:18:12: note: calls to initializer 'init(content:)' from outside of its actor context are implicitly asynchronous
16 | /// - Parameters:
17 | /// - content: the content view of the window, wrapped in a ``LuminareView``.
18 | public init(content: @escaping () -> some View) {
| `- note: calls to initializer 'init(content:)' from outside of its actor context are implicitly asynchronous
19 | super.init(
20 | contentRect: .zero,
/Users/admin/builder/spi-builder-workspace/Sources/Luminare/Utilities/LuminareCoordinator.swift:33:19: error: call to main actor-isolated instance method 'layoutIfNeeded()' in a synchronous nonisolated context
24 | }
25 |
26 | func showWindow() {
| `- note: add '@MainActor' to make instance method 'showWindow()' part of global actor 'MainActor'
27 | if luminare == nil {
28 | luminare = LuminareWindow {
:
31 | }
32 |
33 | luminare?.layoutIfNeeded()
| `- error: call to main actor-isolated instance method 'layoutIfNeeded()' in a synchronous nonisolated context
34 | luminare?.center()
35 | luminare?.orderFrontRegardless()
AppKit.NSWindow:5:26: note: calls to instance method 'layoutIfNeeded()' from outside of its actor context are implicitly asynchronous
3 | open func updateConstraintsIfNeeded()
4 | @available(macOS 10.7, *)
5 | @MainActor open func layoutIfNeeded()
| `- note: calls to instance method 'layoutIfNeeded()' from outside of its actor context are implicitly asynchronous
6 | }
/Users/admin/builder/spi-builder-workspace/Sources/Luminare/Utilities/LuminareCoordinator.swift:34:19: error: call to main actor-isolated instance method 'center()' in a synchronous nonisolated context
24 | }
25 |
26 | func showWindow() {
| `- note: add '@MainActor' to make instance method 'showWindow()' part of global actor 'MainActor'
27 | if luminare == nil {
28 | luminare = LuminareWindow {
:
32 |
33 | luminare?.layoutIfNeeded()
34 | luminare?.center()
| `- error: call to main actor-isolated instance method 'center()' in a synchronous nonisolated context
35 | luminare?.orderFrontRegardless()
36 | }
AppKit.NSWindow:143:15: note: calls to instance method 'center()' from outside of its actor context are implicitly asynchronous
141 | open var hidesOnDeactivate: Bool { get set }
142 | open var canHide: Bool { get set }
143 | open func center()
| `- note: calls to instance method 'center()' from outside of its actor context are implicitly asynchronous
144 | open func makeKeyAndOrderFront(_ sender: Any?)
145 | open func orderFront(_ sender: Any?)
/Users/admin/builder/spi-builder-workspace/Sources/Luminare/Utilities/LuminareCoordinator.swift:35:19: error: call to main actor-isolated instance method 'orderFrontRegardless()' in a synchronous nonisolated context
24 | }
25 |
26 | func showWindow() {
| `- note: add '@MainActor' to make instance method 'showWindow()' part of global actor 'MainActor'
27 | if luminare == nil {
28 | luminare = LuminareWindow {
:
33 | luminare?.layoutIfNeeded()
34 | luminare?.center()
35 | luminare?.orderFrontRegardless()
| `- error: call to main actor-isolated instance method 'orderFrontRegardless()' in a synchronous nonisolated context
36 | }
37 |
AppKit.NSWindow:151:15: note: calls to instance method 'orderFrontRegardless()' from outside of its actor context are implicitly asynchronous
149 | @available(swift, obsoleted: 3, renamed: "order(_:relativeTo:)")
150 | open func orderWindow(_ place: NSWindow.OrderingMode, relativeTo otherWin: Int)
151 | open func orderFrontRegardless()
| `- note: calls to instance method 'orderFrontRegardless()' from outside of its actor context are implicitly asynchronous
152 | open var miniwindowImage: NSImage? { get set }
153 | open var miniwindowTitle: String! { get set }
/Users/admin/builder/spi-builder-workspace/Sources/Luminare/Utilities/LuminareCoordinator.swift:39:19: error: call to main actor-isolated instance method 'close()' in a synchronous nonisolated context
36 | }
37 |
38 | func closeWindow() {
| `- note: add '@MainActor' to make instance method 'closeWindow()' part of global actor 'MainActor'
39 | luminare?.close()
| `- error: call to main actor-isolated instance method 'close()' in a synchronous nonisolated context
40 | luminare = nil
41 | }
AppKit.NSWindow:95:15: note: calls to instance method 'close()' from outside of its actor context are implicitly asynchronous
93 | weak open var firstResponder: NSResponder? { get }
94 | open var resizeFlags: NSEvent.ModifierFlags { get }
95 | open func close()
| `- note: calls to instance method 'close()' from outside of its actor context are implicitly asynchronous
96 | open var isReleasedWhenClosed: Bool { get set }
97 | @available(swift, obsoleted: 3, renamed: "isReleasedWhenClosed")
[131/145] Compiling Luminare StringFormatStyle.swift
/Users/admin/builder/spi-builder-workspace/Sources/Luminare/Utilities/Extensions/View+Extensions.swift:49:13: warning: capture of 'binding' with non-sendable type 'Binding<K.Value>' in a `@Sendable` closure
47 | ) -> some View where K: PreferenceKey, K.Value: Equatable {
48 | onPreferenceChange(key) { value in
49 | binding.wrappedValue = value
| `- warning: capture of 'binding' with non-sendable type 'Binding<K.Value>' in a `@Sendable` closure
50 | }
51 | }
/Users/admin/builder/spi-builder-workspace/Sources/Luminare/Utilities/LuminareCoordinator.swift:23:19: error: main actor-isolated property 'isVisible' can not be referenced from a nonisolated context
21 | public extension LuminareCoordinator {
22 | var isVisible: Bool {
23 | luminare?.isVisible ?? false
| `- error: main actor-isolated property 'isVisible' can not be referenced from a nonisolated context
24 | }
25 |
AppKit.NSWindow:159:25: note: property declared here
157 | @available(swift, obsoleted: 3, renamed: "isDocumentEdited")
158 | open var documentEdited: Bool { get set }
159 | @MainActor open var isVisible: Bool { get }
| `- note: property declared here
160 | @available(swift, obsoleted: 3, renamed: "isVisible")
161 | open var visible: Bool { get }
/Users/admin/builder/spi-builder-workspace/Sources/Luminare/Utilities/LuminareCoordinator.swift:28:24: error: call to main actor-isolated initializer 'init(content:)' in a synchronous nonisolated context
24 | }
25 |
26 | func showWindow() {
| `- note: add '@MainActor' to make instance method 'showWindow()' part of global actor 'MainActor'
27 | if luminare == nil {
28 | luminare = LuminareWindow {
| `- error: call to main actor-isolated initializer 'init(content:)' in a synchronous nonisolated context
29 | self.body
30 | }
/Users/admin/builder/spi-builder-workspace/Sources/Luminare/Main Window/LuminareWindow.swift:18:12: note: calls to initializer 'init(content:)' from outside of its actor context are implicitly asynchronous
16 | /// - Parameters:
17 | /// - content: the content view of the window, wrapped in a ``LuminareView``.
18 | public init(content: @escaping () -> some View) {
| `- note: calls to initializer 'init(content:)' from outside of its actor context are implicitly asynchronous
19 | super.init(
20 | contentRect: .zero,
/Users/admin/builder/spi-builder-workspace/Sources/Luminare/Utilities/LuminareCoordinator.swift:33:19: error: call to main actor-isolated instance method 'layoutIfNeeded()' in a synchronous nonisolated context
24 | }
25 |
26 | func showWindow() {
| `- note: add '@MainActor' to make instance method 'showWindow()' part of global actor 'MainActor'
27 | if luminare == nil {
28 | luminare = LuminareWindow {
:
31 | }
32 |
33 | luminare?.layoutIfNeeded()
| `- error: call to main actor-isolated instance method 'layoutIfNeeded()' in a synchronous nonisolated context
34 | luminare?.center()
35 | luminare?.orderFrontRegardless()
AppKit.NSWindow:5:26: note: calls to instance method 'layoutIfNeeded()' from outside of its actor context are implicitly asynchronous
3 | open func updateConstraintsIfNeeded()
4 | @available(macOS 10.7, *)
5 | @MainActor open func layoutIfNeeded()
| `- note: calls to instance method 'layoutIfNeeded()' from outside of its actor context are implicitly asynchronous
6 | }
/Users/admin/builder/spi-builder-workspace/Sources/Luminare/Utilities/LuminareCoordinator.swift:34:19: error: call to main actor-isolated instance method 'center()' in a synchronous nonisolated context
24 | }
25 |
26 | func showWindow() {
| `- note: add '@MainActor' to make instance method 'showWindow()' part of global actor 'MainActor'
27 | if luminare == nil {
28 | luminare = LuminareWindow {
:
32 |
33 | luminare?.layoutIfNeeded()
34 | luminare?.center()
| `- error: call to main actor-isolated instance method 'center()' in a synchronous nonisolated context
35 | luminare?.orderFrontRegardless()
36 | }
AppKit.NSWindow:143:15: note: calls to instance method 'center()' from outside of its actor context are implicitly asynchronous
141 | open var hidesOnDeactivate: Bool { get set }
142 | open var canHide: Bool { get set }
143 | open func center()
| `- note: calls to instance method 'center()' from outside of its actor context are implicitly asynchronous
144 | open func makeKeyAndOrderFront(_ sender: Any?)
145 | open func orderFront(_ sender: Any?)
/Users/admin/builder/spi-builder-workspace/Sources/Luminare/Utilities/LuminareCoordinator.swift:35:19: error: call to main actor-isolated instance method 'orderFrontRegardless()' in a synchronous nonisolated context
24 | }
25 |
26 | func showWindow() {
| `- note: add '@MainActor' to make instance method 'showWindow()' part of global actor 'MainActor'
27 | if luminare == nil {
28 | luminare = LuminareWindow {
:
33 | luminare?.layoutIfNeeded()
34 | luminare?.center()
35 | luminare?.orderFrontRegardless()
| `- error: call to main actor-isolated instance method 'orderFrontRegardless()' in a synchronous nonisolated context
36 | }
37 |
AppKit.NSWindow:151:15: note: calls to instance method 'orderFrontRegardless()' from outside of its actor context are implicitly asynchronous
149 | @available(swift, obsoleted: 3, renamed: "order(_:relativeTo:)")
150 | open func orderWindow(_ place: NSWindow.OrderingMode, relativeTo otherWin: Int)
151 | open func orderFrontRegardless()
| `- note: calls to instance method 'orderFrontRegardless()' from outside of its actor context are implicitly asynchronous
152 | open var miniwindowImage: NSImage? { get set }
153 | open var miniwindowTitle: String! { get set }
/Users/admin/builder/spi-builder-workspace/Sources/Luminare/Utilities/LuminareCoordinator.swift:39:19: error: call to main actor-isolated instance method 'close()' in a synchronous nonisolated context
36 | }
37 |
38 | func closeWindow() {
| `- note: add '@MainActor' to make instance method 'closeWindow()' part of global actor 'MainActor'
39 | luminare?.close()
| `- error: call to main actor-isolated instance method 'close()' in a synchronous nonisolated context
40 | luminare = nil
41 | }
AppKit.NSWindow:95:15: note: calls to instance method 'close()' from outside of its actor context are implicitly asynchronous
93 | weak open var firstResponder: NSResponder? { get }
94 | open var resizeFlags: NSEvent.ModifierFlags { get }
95 | open func close()
| `- note: calls to instance method 'close()' from outside of its actor context are implicitly asynchronous
96 | open var isReleasedWhenClosed: Bool { get set }
97 | @available(swift, obsoleted: 3, renamed: "isReleasedWhenClosed")
[132/145] Compiling Luminare LuminareStepper.swift
[133/145] Compiling Luminare LuminareStepperAlignment.swift
[134/145] Compiling Luminare LuminareStepperDirection.swift
[135/145] Compiling Luminare LuminareStepperSource.swift
[136/145] Compiling Luminare LuminareDividedStack.swift
[137/145] Compiling Luminare LuminarePane.swift
[138/145] Compiling Luminare LuminareView.swift
[139/145] Compiling Luminare ColorSaturationBrightnessView.swift
/Users/admin/builder/spi-builder-workspace/Sources/Luminare/Components/Composes/LuminareCompose.swift:189:16: error: static property 'defaultValue' is not concurrency-safe because it is nonisolated global shared mutable state
187 | struct LuminareComposeIgnoreSafeAreaEdgesKey: PreferenceKey {
188 | typealias Value = Edge.Set?
189 | static var defaultValue: Value = nil
| |- error: static property 'defaultValue' is not concurrency-safe because it is nonisolated global shared mutable state
| |- 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
190 |
191 | static func reduce(value: inout Value, nextValue: () -> Value) {
/Users/admin/builder/spi-builder-workspace/Sources/Luminare/Utilities/EventMonitorManager.swift:11:16: error: static property 'shared' is not concurrency-safe because non-'Sendable' type 'EventMonitorManager' may have shared mutable state
8 | import AppKit
9 |
10 | final class EventMonitorManager {
| `- note: class 'EventMonitorManager' does not conform to the 'Sendable' protocol
11 | static let shared = EventMonitorManager()
| |- error: static property 'shared' is not concurrency-safe because non-'Sendable' type 'EventMonitorManager' may have shared mutable state
| |- note: annotate 'shared' 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
12 | private var monitors: [AnyHashable: NSObject] = [:]
13 |
[140/145] Compiling Luminare LuminareColorPicker.swift
/Users/admin/builder/spi-builder-workspace/Sources/Luminare/Components/Composes/LuminareCompose.swift:189:16: error: static property 'defaultValue' is not concurrency-safe because it is nonisolated global shared mutable state
187 | struct LuminareComposeIgnoreSafeAreaEdgesKey: PreferenceKey {
188 | typealias Value = Edge.Set?
189 | static var defaultValue: Value = nil
| |- error: static property 'defaultValue' is not concurrency-safe because it is nonisolated global shared mutable state
| |- 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
190 |
191 | static func reduce(value: inout Value, nextValue: () -> Value) {
/Users/admin/builder/spi-builder-workspace/Sources/Luminare/Utilities/EventMonitorManager.swift:11:16: error: static property 'shared' is not concurrency-safe because non-'Sendable' type 'EventMonitorManager' may have shared mutable state
8 | import AppKit
9 |
10 | final class EventMonitorManager {
| `- note: class 'EventMonitorManager' does not conform to the 'Sendable' protocol
11 | static let shared = EventMonitorManager()
| |- error: static property 'shared' is not concurrency-safe because non-'Sendable' type 'EventMonitorManager' may have shared mutable state
| |- note: annotate 'shared' 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
12 | private var monitors: [AnyHashable: NSObject] = [:]
13 |
[141/145] Compiling Luminare RGBInputField.swift
/Users/admin/builder/spi-builder-workspace/Sources/Luminare/Components/Composes/LuminareCompose.swift:189:16: error: static property 'defaultValue' is not concurrency-safe because it is nonisolated global shared mutable state
187 | struct LuminareComposeIgnoreSafeAreaEdgesKey: PreferenceKey {
188 | typealias Value = Edge.Set?
189 | static var defaultValue: Value = nil
| |- error: static property 'defaultValue' is not concurrency-safe because it is nonisolated global shared mutable state
| |- 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
190 |
191 | static func reduce(value: inout Value, nextValue: () -> Value) {
/Users/admin/builder/spi-builder-workspace/Sources/Luminare/Utilities/EventMonitorManager.swift:11:16: error: static property 'shared' is not concurrency-safe because non-'Sendable' type 'EventMonitorManager' may have shared mutable state
8 | import AppKit
9 |
10 | final class EventMonitorManager {
| `- note: class 'EventMonitorManager' does not conform to the 'Sendable' protocol
11 | static let shared = EventMonitorManager()
| |- error: static property 'shared' is not concurrency-safe because non-'Sendable' type 'EventMonitorManager' may have shared mutable state
| |- note: annotate 'shared' 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
12 | private var monitors: [AnyHashable: NSObject] = [:]
13 |
[142/145] Compiling Luminare LuminareButton.swift
/Users/admin/builder/spi-builder-workspace/Sources/Luminare/Components/Composes/LuminareCompose.swift:189:16: error: static property 'defaultValue' is not concurrency-safe because it is nonisolated global shared mutable state
187 | struct LuminareComposeIgnoreSafeAreaEdgesKey: PreferenceKey {
188 | typealias Value = Edge.Set?
189 | static var defaultValue: Value = nil
| |- error: static property 'defaultValue' is not concurrency-safe because it is nonisolated global shared mutable state
| |- 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
190 |
191 | static func reduce(value: inout Value, nextValue: () -> Value) {
/Users/admin/builder/spi-builder-workspace/Sources/Luminare/Utilities/EventMonitorManager.swift:11:16: error: static property 'shared' is not concurrency-safe because non-'Sendable' type 'EventMonitorManager' may have shared mutable state
8 | import AppKit
9 |
10 | final class EventMonitorManager {
| `- note: class 'EventMonitorManager' does not conform to the 'Sendable' protocol
11 | static let shared = EventMonitorManager()
| |- error: static property 'shared' is not concurrency-safe because non-'Sendable' type 'EventMonitorManager' may have shared mutable state
| |- note: annotate 'shared' 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
12 | private var monitors: [AnyHashable: NSObject] = [:]
13 |
[143/145] Compiling Luminare LuminareCompose.swift
/Users/admin/builder/spi-builder-workspace/Sources/Luminare/Components/Composes/LuminareCompose.swift:189:16: error: static property 'defaultValue' is not concurrency-safe because it is nonisolated global shared mutable state
187 | struct LuminareComposeIgnoreSafeAreaEdgesKey: PreferenceKey {
188 | typealias Value = Edge.Set?
189 | static var defaultValue: Value = nil
| |- error: static property 'defaultValue' is not concurrency-safe because it is nonisolated global shared mutable state
| |- 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
190 |
191 | static func reduce(value: inout Value, nextValue: () -> Value) {
/Users/admin/builder/spi-builder-workspace/Sources/Luminare/Utilities/EventMonitorManager.swift:11:16: error: static property 'shared' is not concurrency-safe because non-'Sendable' type 'EventMonitorManager' may have shared mutable state
8 | import AppKit
9 |
10 | final class EventMonitorManager {
| `- note: class 'EventMonitorManager' does not conform to the 'Sendable' protocol
11 | static let shared = EventMonitorManager()
| |- error: static property 'shared' is not concurrency-safe because non-'Sendable' type 'EventMonitorManager' may have shared mutable state
| |- note: annotate 'shared' 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
12 | private var monitors: [AnyHashable: NSObject] = [:]
13 |
[144/145] Compiling Luminare LuminareSlider.swift
/Users/admin/builder/spi-builder-workspace/Sources/Luminare/Components/Composes/LuminareCompose.swift:189:16: error: static property 'defaultValue' is not concurrency-safe because it is nonisolated global shared mutable state
187 | struct LuminareComposeIgnoreSafeAreaEdgesKey: PreferenceKey {
188 | typealias Value = Edge.Set?
189 | static var defaultValue: Value = nil
| |- error: static property 'defaultValue' is not concurrency-safe because it is nonisolated global shared mutable state
| |- 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
190 |
191 | static func reduce(value: inout Value, nextValue: () -> Value) {
/Users/admin/builder/spi-builder-workspace/Sources/Luminare/Utilities/EventMonitorManager.swift:11:16: error: static property 'shared' is not concurrency-safe because non-'Sendable' type 'EventMonitorManager' may have shared mutable state
8 | import AppKit
9 |
10 | final class EventMonitorManager {
| `- note: class 'EventMonitorManager' does not conform to the 'Sendable' protocol
11 | static let shared = EventMonitorManager()
| |- error: static property 'shared' is not concurrency-safe because non-'Sendable' type 'EventMonitorManager' may have shared mutable state
| |- note: annotate 'shared' 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
12 | private var monitors: [AnyHashable: NSObject] = [:]
13 |
[145/145] Compiling Luminare LuminareSliderPicker.swift
/Users/admin/builder/spi-builder-workspace/Sources/Luminare/Components/Composes/LuminareCompose.swift:189:16: error: static property 'defaultValue' is not concurrency-safe because it is nonisolated global shared mutable state
187 | struct LuminareComposeIgnoreSafeAreaEdgesKey: PreferenceKey {
188 | typealias Value = Edge.Set?
189 | static var defaultValue: Value = nil
| |- error: static property 'defaultValue' is not concurrency-safe because it is nonisolated global shared mutable state
| |- 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
190 |
191 | static func reduce(value: inout Value, nextValue: () -> Value) {
/Users/admin/builder/spi-builder-workspace/Sources/Luminare/Utilities/EventMonitorManager.swift:11:16: error: static property 'shared' is not concurrency-safe because non-'Sendable' type 'EventMonitorManager' may have shared mutable state
8 | import AppKit
9 |
10 | final class EventMonitorManager {
| `- note: class 'EventMonitorManager' does not conform to the 'Sendable' protocol
11 | static let shared = EventMonitorManager()
| |- error: static property 'shared' is not concurrency-safe because non-'Sendable' type 'EventMonitorManager' may have shared mutable state
| |- note: annotate 'shared' 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
12 | private var monitors: [AnyHashable: NSObject] = [:]
13 |
Fetching https://github.com/apple/swift-docc-plugin
Fetching https://github.com/siteline/swiftui-introspect
Fetching https://github.com/lorenzofiamingo/swiftui-variadic-views
[3/35] Fetching swiftui-variadic-views
[36/2117] Fetching swiftui-variadic-views, swift-docc-plugin
[203/12085] Fetching swiftui-variadic-views, swift-docc-plugin, swiftui-introspect
Fetched https://github.com/apple/swift-docc-plugin from cache (1.29s)
Fetched https://github.com/siteline/swiftui-introspect from cache (1.29s)
Fetched https://github.com/lorenzofiamingo/swiftui-variadic-views from cache (1.29s)
Computing version for https://github.com/lorenzofiamingo/swiftui-variadic-views
Computed https://github.com/lorenzofiamingo/swiftui-variadic-views at 1.0.0 (0.46s)
Computing version for https://github.com/siteline/swiftui-introspect
warning: 'swiftui-introspect': /Package@swift-6.0.swift:5:15: warning: 'init(name:defaultLocalization:platforms:pkgConfig:providers:products:dependencies:targets:swiftLanguageVersions:cLanguageStandard:cxxLanguageStandard:)' is deprecated: replaced by 'init(name:defaultLocalization:platforms:pkgConfig:providers:products:dependencies:targets:swiftLanguageModes:cLanguageStandard:cxxLanguageStandard:)'
3 | import PackageDescription
4 |
5 | let package = Package(
| |- warning: 'init(name:defaultLocalization:platforms:pkgConfig:providers:products:dependencies:targets:swiftLanguageVersions:cLanguageStandard:cxxLanguageStandard:)' is deprecated: replaced by 'init(name:defaultLocalization:platforms:pkgConfig:providers:products:dependencies:targets:swiftLanguageModes:cLanguageStandard:cxxLanguageStandard:)'
| `- note: use 'init(name:defaultLocalization:platforms:pkgConfig:providers:products:dependencies:targets:swiftLanguageModes:cLanguageStandard:cxxLanguageStandard:)' instead
6 | name: "swiftui-introspect",
7 | platforms: [
Computed https://github.com/siteline/swiftui-introspect at 1.3.0 (0.45s)
Computing version for https://github.com/apple/swift-docc-plugin
Computed https://github.com/apple/swift-docc-plugin at 1.4.4 (2.82s)
Fetching https://github.com/swiftlang/swift-docc-symbolkit
[1/3411] Fetching swift-docc-symbolkit
Fetched https://github.com/swiftlang/swift-docc-symbolkit from cache (1.26s)
Computing version for https://github.com/swiftlang/swift-docc-symbolkit
Computed https://github.com/swiftlang/swift-docc-symbolkit at 1.0.0 (0.58s)
Creating working copy for https://github.com/siteline/swiftui-introspect
Working copy of https://github.com/siteline/swiftui-introspect resolved at 1.3.0
Creating working copy for https://github.com/lorenzofiamingo/swiftui-variadic-views
Working copy of https://github.com/lorenzofiamingo/swiftui-variadic-views resolved at 1.0.0
Creating working copy for https://github.com/swiftlang/swift-docc-symbolkit
Working copy of https://github.com/swiftlang/swift-docc-symbolkit resolved at 1.0.0
Creating working copy for https://github.com/apple/swift-docc-plugin
Working copy of https://github.com/apple/swift-docc-plugin resolved at 1.4.4
warning: 'swiftui-introspect': /Users/admin/builder/spi-builder-workspace/.build/checkouts/swiftui-introspect/Package@swift-6.0.swift:5:15: warning: 'init(name:defaultLocalization:platforms:pkgConfig:providers:products:dependencies:targets:swiftLanguageVersions:cLanguageStandard:cxxLanguageStandard:)' is deprecated: replaced by 'init(name:defaultLocalization:platforms:pkgConfig:providers:products:dependencies:targets:swiftLanguageModes:cLanguageStandard:cxxLanguageStandard:)'
3 | import PackageDescription
4 |
5 | let package = Package(
| |- warning: 'init(name:defaultLocalization:platforms:pkgConfig:providers:products:dependencies:targets:swiftLanguageVersions:cLanguageStandard:cxxLanguageStandard:)' is deprecated: replaced by 'init(name:defaultLocalization:platforms:pkgConfig:providers:products:dependencies:targets:swiftLanguageModes:cLanguageStandard:cxxLanguageStandard:)'
| `- note: use 'init(name:defaultLocalization:platforms:pkgConfig:providers:products:dependencies:targets:swiftLanguageModes:cLanguageStandard:cxxLanguageStandard:)' instead
6 | name: "swiftui-introspect",
7 | platforms: [
BUILD FAILURE 6.0 macosSpm