Build Information
Successful build of Sliders, reference main (cc4ab4
), with Swift 6.1 for macOS (SPM) on 30 Apr 2025 02:39:47 UTC.
Swift 6 data race errors: 15
Build Command
env DEVELOPER_DIR=/Applications/Xcode-16.3.0.app xcrun swift build --arch arm64 -Xswiftc -Xfrontend -Xswiftc -stats-output-dir -Xswiftc -Xfrontend -Xswiftc .stats -Xswiftc -strict-concurrency=complete -Xswiftc -enable-upcoming-feature -Xswiftc StrictConcurrency -Xswiftc -enable-upcoming-feature -Xswiftc DisableOutwardActorInference -Xswiftc -enable-upcoming-feature -Xswiftc GlobalActorIsolatedTypesUsability -Xswiftc -enable-upcoming-feature -Xswiftc InferSendableFromCaptures
Build Log
| `- note: consider making struct 'ValueSliderOptions' conform to the 'Sendable' protocol
4 | public let rawValue: Int
5 |
6 | public static let interactiveTrack = ValueSliderOptions(rawValue: 1 << 0)
7 | public static let defaultOptions: ValueSliderOptions = []
| |- warning: static property 'defaultOptions' is not concurrency-safe because non-'Sendable' type 'ValueSliderOptions' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'defaultOptions' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
8 |
9 | public init(rawValue: Int) {
/Users/admin/builder/spi-builder-workspace/Sources/Sliders/ValueSlider/Styles/Vertical/VerticalValueSliderStyle.swift:25:30: warning: call to main actor-isolated instance method 'onChanged' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
23 | track.gesture(
24 | DragGesture(minimumDistance: 0)
25 | .onChanged { gestureValue in
| `- warning: call to main actor-isolated instance method 'onChanged' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
26 | configuration.onEditingChanged(true)
27 | let computedValue = configuration.bounds.upperBound - valueFrom(
SwiftUICore.Gesture.onChanged:2:40: note: calls to instance method 'onChanged' from outside of its actor context are implicitly asynchronous
1 | protocol Gesture {
2 | @MainActor @preconcurrency public func onChanged(_ action: @escaping (Self.Value) -> Void) -> _ChangedGesture<Self>}
| `- note: calls to instance method 'onChanged' from outside of its actor context are implicitly asynchronous
3 |
/Users/admin/builder/spi-builder-workspace/Sources/Sliders/ValueSlider/Styles/Vertical/VerticalValueSliderStyle.swift:24:25: warning: call to main actor-isolated initializer 'init(minimumDistance:coordinateSpace:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
22 | if self.options.contains(.interactiveTrack) {
23 | track.gesture(
24 | DragGesture(minimumDistance: 0)
| `- warning: call to main actor-isolated initializer 'init(minimumDistance:coordinateSpace:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
25 | .onChanged { gestureValue in
26 | configuration.onEditingChanged(true)
SwiftUI.DragGesture.init:7:37: note: calls to initializer 'init(minimumDistance:coordinateSpace:)' from outside of its actor context are implicitly asynchronous
5 | @available(visionOS, introduced: 1.0, deprecated: 100000.0, message: "use overload that accepts a CoordinateSpaceProtocol instead")
6 | @available(tvOS, unavailable)
7 | @MainActor @preconcurrency public init(minimumDistance: CGFloat = 10, coordinateSpace: CoordinateSpace = .local)}
| `- note: calls to initializer 'init(minimumDistance:coordinateSpace:)' from outside of its actor context are implicitly asynchronous
8 |
/Users/admin/builder/spi-builder-workspace/Sources/Sliders/ValueSlider/Styles/Vertical/VerticalValueSliderStyle.swift:62:26: warning: call to main actor-isolated instance method 'onChanged' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
60 | .gesture(
61 | DragGesture(minimumDistance: 0)
62 | .onChanged { gestureValue in
| `- warning: call to main actor-isolated instance method 'onChanged' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
63 | configuration.onEditingChanged(true)
64 |
SwiftUICore.Gesture.onChanged:2:40: note: calls to instance method 'onChanged' from outside of its actor context are implicitly asynchronous
1 | protocol Gesture {
2 | @MainActor @preconcurrency public func onChanged(_ action: @escaping (Self.Value) -> Void) -> _ChangedGesture<Self>}
| `- note: calls to instance method 'onChanged' from outside of its actor context are implicitly asynchronous
3 |
/Users/admin/builder/spi-builder-workspace/Sources/Sliders/ValueSlider/Styles/Vertical/VerticalValueSliderStyle.swift:61:21: warning: call to main actor-isolated initializer 'init(minimumDistance:coordinateSpace:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
59 | )
60 | .gesture(
61 | DragGesture(minimumDistance: 0)
| `- warning: call to main actor-isolated initializer 'init(minimumDistance:coordinateSpace:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
62 | .onChanged { gestureValue in
63 | configuration.onEditingChanged(true)
SwiftUI.DragGesture.init:7:37: note: calls to initializer 'init(minimumDistance:coordinateSpace:)' from outside of its actor context are implicitly asynchronous
5 | @available(visionOS, introduced: 1.0, deprecated: 100000.0, message: "use overload that accepts a CoordinateSpaceProtocol instead")
6 | @available(tvOS, unavailable)
7 | @MainActor @preconcurrency public init(minimumDistance: CGFloat = 10, coordinateSpace: CoordinateSpace = .local)}
| `- note: calls to initializer 'init(minimumDistance:coordinateSpace:)' from outside of its actor context are implicitly asynchronous
8 |
/Users/admin/builder/spi-builder-workspace/Sources/Sliders/ValueSlider/Styles/Vertical/VerticalValueSliderStyle.swift:119:22: warning: call to main actor-isolated initializer 'init()' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
117 | public init(track: Track, thumbSize: CGSize = CGSize(width: 27, height: 27), thumbInteractiveSize: CGSize = CGSize(width: 44, height: 44), options: ValueSliderOptions = .defaultOptions) {
118 | self.track = track
119 | self.thumb = DefaultThumb()
| `- warning: call to main actor-isolated initializer 'init()' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
120 | self.thumbSize = thumbSize
121 | self.thumbInteractiveSize = thumbInteractiveSize
/Users/admin/builder/spi-builder-workspace/Sources/Sliders/Base/DefaultThumb.swift:4:12: note: calls to initializer 'init()' from outside of its actor context are implicitly asynchronous
2 |
3 | public struct DefaultThumb: View {
4 | public init() {}
| |- note: calls to initializer 'init()' from outside of its actor context are implicitly asynchronous
| `- note: main actor isolation inferred from conformance to protocol 'View'
5 | public var body: some View {
6 | Capsule()
/Users/admin/builder/spi-builder-workspace/Sources/Sliders/ValueSlider/Styles/Vertical/VerticalValueSliderStyle.swift:129:22: warning: call to main actor-isolated initializer 'init()' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
127 | public init(thumbSize: CGSize = CGSize(width: 27, height: 27), thumbInteractiveSize: CGSize = CGSize(width: 44, height: 44), options: ValueSliderOptions = .defaultOptions) {
128 | self.track = DefaultVerticalValueTrack()
129 | self.thumb = DefaultThumb()
| `- warning: call to main actor-isolated initializer 'init()' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
130 | self.thumbSize = thumbSize
131 | self.thumbInteractiveSize = thumbInteractiveSize
/Users/admin/builder/spi-builder-workspace/Sources/Sliders/Base/DefaultThumb.swift:4:12: note: calls to initializer 'init()' from outside of its actor context are implicitly asynchronous
2 |
3 | public struct DefaultThumb: View {
4 | public init() {}
| |- note: calls to initializer 'init()' from outside of its actor context are implicitly asynchronous
| `- note: main actor isolation inferred from conformance to protocol 'View'
5 | public var body: some View {
6 | Capsule()
/Users/admin/builder/spi-builder-workspace/Sources/Sliders/ValueTrack/EnviromnentValues+ValueTrackConfiguration.swift:15:16: warning: static property 'defaultValue' is not concurrency-safe because non-'Sendable' type 'ValueTrackConfiguration' may have shared mutable state; this is an error in the Swift 6 language mode
13 |
14 | struct ValueTrackConfigurationKey: EnvironmentKey {
15 | static let defaultValue: ValueTrackConfiguration = .defaultConfiguration
| |- warning: static property 'defaultValue' is not concurrency-safe because non-'Sendable' type 'ValueTrackConfiguration' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'defaultValue' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
16 | }
17 |
/Users/admin/builder/spi-builder-workspace/Sources/Sliders/ValueTrack/ValueTrackConfiguration.swift:3:15: note: consider making struct 'ValueTrackConfiguration' conform to the 'Sendable' protocol
1 | import SwiftUI
2 |
3 | public struct ValueTrackConfiguration {
| `- note: consider making struct 'ValueTrackConfiguration' conform to the 'Sendable' protocol
4 | public static let defaultConfiguration = ValueTrackConfiguration()
5 |
/Users/admin/builder/spi-builder-workspace/Sources/Sliders/ValueSlider/Styles/Vertical/VerticalValueSliderStyle.swift:62:26: warning: sending value of non-Sendable type '(DragGesture.Value) -> Void' risks causing data races; this is an error in the Swift 6 language mode
60 | .gesture(
61 | DragGesture(minimumDistance: 0)
62 | .onChanged { gestureValue in
| |- warning: sending value of non-Sendable type '(DragGesture.Value) -> Void' risks causing data races; this is an error in the Swift 6 language mode
| `- note: sending value of non-Sendable type '(DragGesture.Value) -> Void' to main actor-isolated callee risks causing data races between main actor-isolated and local nonisolated uses
63 | configuration.onEditingChanged(true)
64 |
:
84 | configuration.value.wrappedValue = computedValue
85 | }
86 | .onEnded { _ in
| `- note: access can happen concurrently
87 | configuration.dragOffset.wrappedValue = nil
88 | configuration.onEditingChanged(false)
/Users/admin/builder/spi-builder-workspace/Sources/Sliders/ValueSlider/Styles/Vertical/VerticalValueSliderStyle.swift:25:30: warning: sending value of non-Sendable type '(DragGesture.Value) -> Void' risks causing data races; this is an error in the Swift 6 language mode
23 | track.gesture(
24 | DragGesture(minimumDistance: 0)
25 | .onChanged { gestureValue in
| |- warning: sending value of non-Sendable type '(DragGesture.Value) -> Void' risks causing data races; this is an error in the Swift 6 language mode
| `- note: sending task-isolated value of non-Sendable type '(DragGesture.Value) -> Void' to main actor-isolated callee risks causing races in between task-isolated and main actor-isolated uses
26 | configuration.onEditingChanged(true)
27 | let computedValue = configuration.bounds.upperBound - valueFrom(
[20/44] Compiling Sliders EnvironmentValues+RangeSliderStyle.swift
/Users/admin/builder/spi-builder-workspace/Sources/Sliders/RangeSlider/Style/EnvironmentValues+RangeSliderStyle.swift:15:16: warning: static property 'defaultValue' is not concurrency-safe because non-'Sendable' type 'AnyRangeSliderStyle' may have shared mutable state; this is an error in the Swift 6 language mode
13 |
14 | struct RangeSliderStyleKey: EnvironmentKey {
15 | static let defaultValue: AnyRangeSliderStyle = AnyRangeSliderStyle(
| |- warning: static property 'defaultValue' is not concurrency-safe because non-'Sendable' type 'AnyRangeSliderStyle' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'defaultValue' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
16 | HorizontalRangeSliderStyle()
17 | )
/Users/admin/builder/spi-builder-workspace/Sources/Sliders/RangeSlider/Style/AnyRangeSliderStyle.swift:3:15: note: consider making struct 'AnyRangeSliderStyle' conform to the 'Sendable' protocol
1 | import SwiftUI
2 |
3 | public struct AnyRangeSliderStyle: RangeSliderStyle {
| `- note: consider making struct 'AnyRangeSliderStyle' conform to the 'Sendable' protocol
4 | private let styleMakeBody: (RangeSliderStyle.Configuration) -> AnyView
5 |
/Users/admin/builder/spi-builder-workspace/Sources/Sliders/RangeSlider/Styles/Horizontal/HorizontalRangeSliderStyle.swift:53:26: warning: call to main actor-isolated instance method 'onChanged' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
51 | .gesture(
52 | DragGesture()
53 | .onChanged { gestureValue in
| `- warning: call to main actor-isolated instance method 'onChanged' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
54 | configuration.onEditingChanged(true)
55 |
SwiftUICore.Gesture.onChanged:2:40: note: calls to instance method 'onChanged' from outside of its actor context are implicitly asynchronous
1 | protocol Gesture {
2 | @MainActor @preconcurrency public func onChanged(_ action: @escaping (Self.Value) -> Void) -> _ChangedGesture<Self>}
| `- note: calls to instance method 'onChanged' from outside of its actor context are implicitly asynchronous
3 |
/Users/admin/builder/spi-builder-workspace/Sources/Sliders/RangeSlider/Styles/Horizontal/HorizontalRangeSliderStyle.swift:52:21: warning: call to main actor-isolated initializer 'init(minimumDistance:coordinateSpace:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
50 | }
51 | .gesture(
52 | DragGesture()
| `- warning: call to main actor-isolated initializer 'init(minimumDistance:coordinateSpace:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
53 | .onChanged { gestureValue in
54 | configuration.onEditingChanged(true)
SwiftUI.DragGesture.init:7:37: note: calls to initializer 'init(minimumDistance:coordinateSpace:)' from outside of its actor context are implicitly asynchronous
5 | @available(visionOS, introduced: 1.0, deprecated: 100000.0, message: "use overload that accepts a CoordinateSpaceProtocol instead")
6 | @available(tvOS, unavailable)
7 | @MainActor @preconcurrency public init(minimumDistance: CGFloat = 10, coordinateSpace: CoordinateSpace = .local)}
| `- note: calls to initializer 'init(minimumDistance:coordinateSpace:)' from outside of its actor context are implicitly asynchronous
8 |
/Users/admin/builder/spi-builder-workspace/Sources/Sliders/RangeSlider/Styles/Horizontal/HorizontalRangeSliderStyle.swift:111:26: warning: call to main actor-isolated instance method 'onChanged' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
109 | .gesture(
110 | DragGesture()
111 | .onChanged { gestureValue in
| `- warning: call to main actor-isolated instance method 'onChanged' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
112 | configuration.onEditingChanged(true)
113 |
SwiftUICore.Gesture.onChanged:2:40: note: calls to instance method 'onChanged' from outside of its actor context are implicitly asynchronous
1 | protocol Gesture {
2 | @MainActor @preconcurrency public func onChanged(_ action: @escaping (Self.Value) -> Void) -> _ChangedGesture<Self>}
| `- note: calls to instance method 'onChanged' from outside of its actor context are implicitly asynchronous
3 |
/Users/admin/builder/spi-builder-workspace/Sources/Sliders/RangeSlider/Styles/Horizontal/HorizontalRangeSliderStyle.swift:110:21: warning: call to main actor-isolated initializer 'init(minimumDistance:coordinateSpace:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
108 | }
109 | .gesture(
110 | DragGesture()
| `- warning: call to main actor-isolated initializer 'init(minimumDistance:coordinateSpace:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
111 | .onChanged { gestureValue in
112 | configuration.onEditingChanged(true)
SwiftUI.DragGesture.init:7:37: note: calls to initializer 'init(minimumDistance:coordinateSpace:)' from outside of its actor context are implicitly asynchronous
5 | @available(visionOS, introduced: 1.0, deprecated: 100000.0, message: "use overload that accepts a CoordinateSpaceProtocol instead")
6 | @available(tvOS, unavailable)
7 | @MainActor @preconcurrency public init(minimumDistance: CGFloat = 10, coordinateSpace: CoordinateSpace = .local)}
| `- note: calls to initializer 'init(minimumDistance:coordinateSpace:)' from outside of its actor context are implicitly asynchronous
8 |
/Users/admin/builder/spi-builder-workspace/Sources/Sliders/RangeSlider/Styles/Horizontal/HorizontalRangeSliderStyle.swift:194:27: warning: call to main actor-isolated initializer 'init()' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
192 | onSelectUpper: @escaping () -> Void = {}) {
193 | self.track = track
194 | self.lowerThumb = DefaultThumb()
| `- warning: call to main actor-isolated initializer 'init()' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
195 | self.upperThumb = DefaultThumb()
196 | self.lowerThumbSize = lowerThumbSize
/Users/admin/builder/spi-builder-workspace/Sources/Sliders/Base/DefaultThumb.swift:4:12: note: calls to initializer 'init()' from outside of its actor context are implicitly asynchronous
2 |
3 | public struct DefaultThumb: View {
4 | public init() {}
| |- note: calls to initializer 'init()' from outside of its actor context are implicitly asynchronous
| `- note: main actor isolation inferred from conformance to protocol 'View'
5 | public var body: some View {
6 | Capsule()
/Users/admin/builder/spi-builder-workspace/Sources/Sliders/RangeSlider/Styles/Horizontal/HorizontalRangeSliderStyle.swift:195:27: warning: call to main actor-isolated initializer 'init()' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
193 | self.track = track
194 | self.lowerThumb = DefaultThumb()
195 | self.upperThumb = DefaultThumb()
| `- warning: call to main actor-isolated initializer 'init()' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
196 | self.lowerThumbSize = lowerThumbSize
197 | self.upperThumbSize = upperThumbSize
/Users/admin/builder/spi-builder-workspace/Sources/Sliders/Base/DefaultThumb.swift:4:12: note: calls to initializer 'init()' from outside of its actor context are implicitly asynchronous
2 |
3 | public struct DefaultThumb: View {
4 | public init() {}
| |- note: calls to initializer 'init()' from outside of its actor context are implicitly asynchronous
| `- note: main actor isolation inferred from conformance to protocol 'View'
5 | public var body: some View {
6 | Capsule()
/Users/admin/builder/spi-builder-workspace/Sources/Sliders/RangeSlider/Styles/Horizontal/HorizontalRangeSliderStyle.swift:212:27: warning: call to main actor-isolated initializer 'init()' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
210 | onSelectUpper: @escaping () -> Void = {}) {
211 | self.track = DefaultHorizontalRangeTrack()
212 | self.lowerThumb = DefaultThumb()
| `- warning: call to main actor-isolated initializer 'init()' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
213 | self.upperThumb = DefaultThumb()
214 | self.lowerThumbSize = lowerThumbSize
/Users/admin/builder/spi-builder-workspace/Sources/Sliders/Base/DefaultThumb.swift:4:12: note: calls to initializer 'init()' from outside of its actor context are implicitly asynchronous
2 |
3 | public struct DefaultThumb: View {
4 | public init() {}
| |- note: calls to initializer 'init()' from outside of its actor context are implicitly asynchronous
| `- note: main actor isolation inferred from conformance to protocol 'View'
5 | public var body: some View {
6 | Capsule()
/Users/admin/builder/spi-builder-workspace/Sources/Sliders/RangeSlider/Styles/Horizontal/HorizontalRangeSliderStyle.swift:213:27: warning: call to main actor-isolated initializer 'init()' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
211 | self.track = DefaultHorizontalRangeTrack()
212 | self.lowerThumb = DefaultThumb()
213 | self.upperThumb = DefaultThumb()
| `- warning: call to main actor-isolated initializer 'init()' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
214 | self.lowerThumbSize = lowerThumbSize
215 | self.upperThumbSize = upperThumbSize
/Users/admin/builder/spi-builder-workspace/Sources/Sliders/Base/DefaultThumb.swift:4:12: note: calls to initializer 'init()' from outside of its actor context are implicitly asynchronous
2 |
3 | public struct DefaultThumb: View {
4 | public init() {}
| |- note: calls to initializer 'init()' from outside of its actor context are implicitly asynchronous
| `- note: main actor isolation inferred from conformance to protocol 'View'
5 | public var body: some View {
6 | Capsule()
/Users/admin/builder/spi-builder-workspace/Sources/Sliders/RangeSlider/Styles/Horizontal/HorizontalRangeSliderStyle.swift:111:26: warning: sending value of non-Sendable type '(DragGesture.Value) -> Void' risks causing data races; this is an error in the Swift 6 language mode
109 | .gesture(
110 | DragGesture()
111 | .onChanged { gestureValue in
| |- warning: sending value of non-Sendable type '(DragGesture.Value) -> Void' risks causing data races; this is an error in the Swift 6 language mode
| `- note: sending value of non-Sendable type '(DragGesture.Value) -> Void' to main actor-isolated callee risks causing data races between main actor-isolated and local nonisolated uses
112 | configuration.onEditingChanged(true)
113 |
:
141 | )
142 | }
143 | .onEnded { _ in
| `- note: access can happen concurrently
144 | configuration.dragOffset.wrappedValue = nil
145 | configuration.onEditingChanged(false)
/Users/admin/builder/spi-builder-workspace/Sources/Sliders/RangeSlider/Styles/Horizontal/HorizontalRangeSliderStyle.swift:53:26: warning: sending value of non-Sendable type '(DragGesture.Value) -> Void' risks causing data races; this is an error in the Swift 6 language mode
51 | .gesture(
52 | DragGesture()
53 | .onChanged { gestureValue in
| |- warning: sending value of non-Sendable type '(DragGesture.Value) -> Void' risks causing data races; this is an error in the Swift 6 language mode
| `- note: sending task-isolated value of non-Sendable type '(DragGesture.Value) -> Void' to main actor-isolated callee risks causing races in between task-isolated and main actor-isolated uses
54 | configuration.onEditingChanged(true)
55 |
[21/44] Compiling Sliders RangeSliderStyle.swift
/Users/admin/builder/spi-builder-workspace/Sources/Sliders/RangeSlider/Style/EnvironmentValues+RangeSliderStyle.swift:15:16: warning: static property 'defaultValue' is not concurrency-safe because non-'Sendable' type 'AnyRangeSliderStyle' may have shared mutable state; this is an error in the Swift 6 language mode
13 |
14 | struct RangeSliderStyleKey: EnvironmentKey {
15 | static let defaultValue: AnyRangeSliderStyle = AnyRangeSliderStyle(
| |- warning: static property 'defaultValue' is not concurrency-safe because non-'Sendable' type 'AnyRangeSliderStyle' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'defaultValue' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
16 | HorizontalRangeSliderStyle()
17 | )
/Users/admin/builder/spi-builder-workspace/Sources/Sliders/RangeSlider/Style/AnyRangeSliderStyle.swift:3:15: note: consider making struct 'AnyRangeSliderStyle' conform to the 'Sendable' protocol
1 | import SwiftUI
2 |
3 | public struct AnyRangeSliderStyle: RangeSliderStyle {
| `- note: consider making struct 'AnyRangeSliderStyle' conform to the 'Sendable' protocol
4 | private let styleMakeBody: (RangeSliderStyle.Configuration) -> AnyView
5 |
/Users/admin/builder/spi-builder-workspace/Sources/Sliders/RangeSlider/Styles/Horizontal/HorizontalRangeSliderStyle.swift:53:26: warning: call to main actor-isolated instance method 'onChanged' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
51 | .gesture(
52 | DragGesture()
53 | .onChanged { gestureValue in
| `- warning: call to main actor-isolated instance method 'onChanged' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
54 | configuration.onEditingChanged(true)
55 |
SwiftUICore.Gesture.onChanged:2:40: note: calls to instance method 'onChanged' from outside of its actor context are implicitly asynchronous
1 | protocol Gesture {
2 | @MainActor @preconcurrency public func onChanged(_ action: @escaping (Self.Value) -> Void) -> _ChangedGesture<Self>}
| `- note: calls to instance method 'onChanged' from outside of its actor context are implicitly asynchronous
3 |
/Users/admin/builder/spi-builder-workspace/Sources/Sliders/RangeSlider/Styles/Horizontal/HorizontalRangeSliderStyle.swift:52:21: warning: call to main actor-isolated initializer 'init(minimumDistance:coordinateSpace:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
50 | }
51 | .gesture(
52 | DragGesture()
| `- warning: call to main actor-isolated initializer 'init(minimumDistance:coordinateSpace:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
53 | .onChanged { gestureValue in
54 | configuration.onEditingChanged(true)
SwiftUI.DragGesture.init:7:37: note: calls to initializer 'init(minimumDistance:coordinateSpace:)' from outside of its actor context are implicitly asynchronous
5 | @available(visionOS, introduced: 1.0, deprecated: 100000.0, message: "use overload that accepts a CoordinateSpaceProtocol instead")
6 | @available(tvOS, unavailable)
7 | @MainActor @preconcurrency public init(minimumDistance: CGFloat = 10, coordinateSpace: CoordinateSpace = .local)}
| `- note: calls to initializer 'init(minimumDistance:coordinateSpace:)' from outside of its actor context are implicitly asynchronous
8 |
/Users/admin/builder/spi-builder-workspace/Sources/Sliders/RangeSlider/Styles/Horizontal/HorizontalRangeSliderStyle.swift:111:26: warning: call to main actor-isolated instance method 'onChanged' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
109 | .gesture(
110 | DragGesture()
111 | .onChanged { gestureValue in
| `- warning: call to main actor-isolated instance method 'onChanged' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
112 | configuration.onEditingChanged(true)
113 |
SwiftUICore.Gesture.onChanged:2:40: note: calls to instance method 'onChanged' from outside of its actor context are implicitly asynchronous
1 | protocol Gesture {
2 | @MainActor @preconcurrency public func onChanged(_ action: @escaping (Self.Value) -> Void) -> _ChangedGesture<Self>}
| `- note: calls to instance method 'onChanged' from outside of its actor context are implicitly asynchronous
3 |
/Users/admin/builder/spi-builder-workspace/Sources/Sliders/RangeSlider/Styles/Horizontal/HorizontalRangeSliderStyle.swift:110:21: warning: call to main actor-isolated initializer 'init(minimumDistance:coordinateSpace:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
108 | }
109 | .gesture(
110 | DragGesture()
| `- warning: call to main actor-isolated initializer 'init(minimumDistance:coordinateSpace:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
111 | .onChanged { gestureValue in
112 | configuration.onEditingChanged(true)
SwiftUI.DragGesture.init:7:37: note: calls to initializer 'init(minimumDistance:coordinateSpace:)' from outside of its actor context are implicitly asynchronous
5 | @available(visionOS, introduced: 1.0, deprecated: 100000.0, message: "use overload that accepts a CoordinateSpaceProtocol instead")
6 | @available(tvOS, unavailable)
7 | @MainActor @preconcurrency public init(minimumDistance: CGFloat = 10, coordinateSpace: CoordinateSpace = .local)}
| `- note: calls to initializer 'init(minimumDistance:coordinateSpace:)' from outside of its actor context are implicitly asynchronous
8 |
/Users/admin/builder/spi-builder-workspace/Sources/Sliders/RangeSlider/Styles/Horizontal/HorizontalRangeSliderStyle.swift:194:27: warning: call to main actor-isolated initializer 'init()' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
192 | onSelectUpper: @escaping () -> Void = {}) {
193 | self.track = track
194 | self.lowerThumb = DefaultThumb()
| `- warning: call to main actor-isolated initializer 'init()' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
195 | self.upperThumb = DefaultThumb()
196 | self.lowerThumbSize = lowerThumbSize
/Users/admin/builder/spi-builder-workspace/Sources/Sliders/Base/DefaultThumb.swift:4:12: note: calls to initializer 'init()' from outside of its actor context are implicitly asynchronous
2 |
3 | public struct DefaultThumb: View {
4 | public init() {}
| |- note: calls to initializer 'init()' from outside of its actor context are implicitly asynchronous
| `- note: main actor isolation inferred from conformance to protocol 'View'
5 | public var body: some View {
6 | Capsule()
/Users/admin/builder/spi-builder-workspace/Sources/Sliders/RangeSlider/Styles/Horizontal/HorizontalRangeSliderStyle.swift:195:27: warning: call to main actor-isolated initializer 'init()' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
193 | self.track = track
194 | self.lowerThumb = DefaultThumb()
195 | self.upperThumb = DefaultThumb()
| `- warning: call to main actor-isolated initializer 'init()' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
196 | self.lowerThumbSize = lowerThumbSize
197 | self.upperThumbSize = upperThumbSize
/Users/admin/builder/spi-builder-workspace/Sources/Sliders/Base/DefaultThumb.swift:4:12: note: calls to initializer 'init()' from outside of its actor context are implicitly asynchronous
2 |
3 | public struct DefaultThumb: View {
4 | public init() {}
| |- note: calls to initializer 'init()' from outside of its actor context are implicitly asynchronous
| `- note: main actor isolation inferred from conformance to protocol 'View'
5 | public var body: some View {
6 | Capsule()
/Users/admin/builder/spi-builder-workspace/Sources/Sliders/RangeSlider/Styles/Horizontal/HorizontalRangeSliderStyle.swift:212:27: warning: call to main actor-isolated initializer 'init()' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
210 | onSelectUpper: @escaping () -> Void = {}) {
211 | self.track = DefaultHorizontalRangeTrack()
212 | self.lowerThumb = DefaultThumb()
| `- warning: call to main actor-isolated initializer 'init()' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
213 | self.upperThumb = DefaultThumb()
214 | self.lowerThumbSize = lowerThumbSize
/Users/admin/builder/spi-builder-workspace/Sources/Sliders/Base/DefaultThumb.swift:4:12: note: calls to initializer 'init()' from outside of its actor context are implicitly asynchronous
2 |
3 | public struct DefaultThumb: View {
4 | public init() {}
| |- note: calls to initializer 'init()' from outside of its actor context are implicitly asynchronous
| `- note: main actor isolation inferred from conformance to protocol 'View'
5 | public var body: some View {
6 | Capsule()
/Users/admin/builder/spi-builder-workspace/Sources/Sliders/RangeSlider/Styles/Horizontal/HorizontalRangeSliderStyle.swift:213:27: warning: call to main actor-isolated initializer 'init()' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
211 | self.track = DefaultHorizontalRangeTrack()
212 | self.lowerThumb = DefaultThumb()
213 | self.upperThumb = DefaultThumb()
| `- warning: call to main actor-isolated initializer 'init()' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
214 | self.lowerThumbSize = lowerThumbSize
215 | self.upperThumbSize = upperThumbSize
/Users/admin/builder/spi-builder-workspace/Sources/Sliders/Base/DefaultThumb.swift:4:12: note: calls to initializer 'init()' from outside of its actor context are implicitly asynchronous
2 |
3 | public struct DefaultThumb: View {
4 | public init() {}
| |- note: calls to initializer 'init()' from outside of its actor context are implicitly asynchronous
| `- note: main actor isolation inferred from conformance to protocol 'View'
5 | public var body: some View {
6 | Capsule()
/Users/admin/builder/spi-builder-workspace/Sources/Sliders/RangeSlider/Styles/Horizontal/HorizontalRangeSliderStyle.swift:111:26: warning: sending value of non-Sendable type '(DragGesture.Value) -> Void' risks causing data races; this is an error in the Swift 6 language mode
109 | .gesture(
110 | DragGesture()
111 | .onChanged { gestureValue in
| |- warning: sending value of non-Sendable type '(DragGesture.Value) -> Void' risks causing data races; this is an error in the Swift 6 language mode
| `- note: sending value of non-Sendable type '(DragGesture.Value) -> Void' to main actor-isolated callee risks causing data races between main actor-isolated and local nonisolated uses
112 | configuration.onEditingChanged(true)
113 |
:
141 | )
142 | }
143 | .onEnded { _ in
| `- note: access can happen concurrently
144 | configuration.dragOffset.wrappedValue = nil
145 | configuration.onEditingChanged(false)
/Users/admin/builder/spi-builder-workspace/Sources/Sliders/RangeSlider/Styles/Horizontal/HorizontalRangeSliderStyle.swift:53:26: warning: sending value of non-Sendable type '(DragGesture.Value) -> Void' risks causing data races; this is an error in the Swift 6 language mode
51 | .gesture(
52 | DragGesture()
53 | .onChanged { gestureValue in
| |- warning: sending value of non-Sendable type '(DragGesture.Value) -> Void' risks causing data races; this is an error in the Swift 6 language mode
| `- note: sending task-isolated value of non-Sendable type '(DragGesture.Value) -> Void' to main actor-isolated callee risks causing races in between task-isolated and main actor-isolated uses
54 | configuration.onEditingChanged(true)
55 |
[22/44] Compiling Sliders RangeSliderStyleConfiguration.swift
/Users/admin/builder/spi-builder-workspace/Sources/Sliders/RangeSlider/Style/EnvironmentValues+RangeSliderStyle.swift:15:16: warning: static property 'defaultValue' is not concurrency-safe because non-'Sendable' type 'AnyRangeSliderStyle' may have shared mutable state; this is an error in the Swift 6 language mode
13 |
14 | struct RangeSliderStyleKey: EnvironmentKey {
15 | static let defaultValue: AnyRangeSliderStyle = AnyRangeSliderStyle(
| |- warning: static property 'defaultValue' is not concurrency-safe because non-'Sendable' type 'AnyRangeSliderStyle' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'defaultValue' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
16 | HorizontalRangeSliderStyle()
17 | )
/Users/admin/builder/spi-builder-workspace/Sources/Sliders/RangeSlider/Style/AnyRangeSliderStyle.swift:3:15: note: consider making struct 'AnyRangeSliderStyle' conform to the 'Sendable' protocol
1 | import SwiftUI
2 |
3 | public struct AnyRangeSliderStyle: RangeSliderStyle {
| `- note: consider making struct 'AnyRangeSliderStyle' conform to the 'Sendable' protocol
4 | private let styleMakeBody: (RangeSliderStyle.Configuration) -> AnyView
5 |
/Users/admin/builder/spi-builder-workspace/Sources/Sliders/RangeSlider/Styles/Horizontal/HorizontalRangeSliderStyle.swift:53:26: warning: call to main actor-isolated instance method 'onChanged' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
51 | .gesture(
52 | DragGesture()
53 | .onChanged { gestureValue in
| `- warning: call to main actor-isolated instance method 'onChanged' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
54 | configuration.onEditingChanged(true)
55 |
SwiftUICore.Gesture.onChanged:2:40: note: calls to instance method 'onChanged' from outside of its actor context are implicitly asynchronous
1 | protocol Gesture {
2 | @MainActor @preconcurrency public func onChanged(_ action: @escaping (Self.Value) -> Void) -> _ChangedGesture<Self>}
| `- note: calls to instance method 'onChanged' from outside of its actor context are implicitly asynchronous
3 |
/Users/admin/builder/spi-builder-workspace/Sources/Sliders/RangeSlider/Styles/Horizontal/HorizontalRangeSliderStyle.swift:52:21: warning: call to main actor-isolated initializer 'init(minimumDistance:coordinateSpace:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
50 | }
51 | .gesture(
52 | DragGesture()
| `- warning: call to main actor-isolated initializer 'init(minimumDistance:coordinateSpace:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
53 | .onChanged { gestureValue in
54 | configuration.onEditingChanged(true)
SwiftUI.DragGesture.init:7:37: note: calls to initializer 'init(minimumDistance:coordinateSpace:)' from outside of its actor context are implicitly asynchronous
5 | @available(visionOS, introduced: 1.0, deprecated: 100000.0, message: "use overload that accepts a CoordinateSpaceProtocol instead")
6 | @available(tvOS, unavailable)
7 | @MainActor @preconcurrency public init(minimumDistance: CGFloat = 10, coordinateSpace: CoordinateSpace = .local)}
| `- note: calls to initializer 'init(minimumDistance:coordinateSpace:)' from outside of its actor context are implicitly asynchronous
8 |
/Users/admin/builder/spi-builder-workspace/Sources/Sliders/RangeSlider/Styles/Horizontal/HorizontalRangeSliderStyle.swift:111:26: warning: call to main actor-isolated instance method 'onChanged' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
109 | .gesture(
110 | DragGesture()
111 | .onChanged { gestureValue in
| `- warning: call to main actor-isolated instance method 'onChanged' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
112 | configuration.onEditingChanged(true)
113 |
SwiftUICore.Gesture.onChanged:2:40: note: calls to instance method 'onChanged' from outside of its actor context are implicitly asynchronous
1 | protocol Gesture {
2 | @MainActor @preconcurrency public func onChanged(_ action: @escaping (Self.Value) -> Void) -> _ChangedGesture<Self>}
| `- note: calls to instance method 'onChanged' from outside of its actor context are implicitly asynchronous
3 |
/Users/admin/builder/spi-builder-workspace/Sources/Sliders/RangeSlider/Styles/Horizontal/HorizontalRangeSliderStyle.swift:110:21: warning: call to main actor-isolated initializer 'init(minimumDistance:coordinateSpace:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
108 | }
109 | .gesture(
110 | DragGesture()
| `- warning: call to main actor-isolated initializer 'init(minimumDistance:coordinateSpace:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
111 | .onChanged { gestureValue in
112 | configuration.onEditingChanged(true)
SwiftUI.DragGesture.init:7:37: note: calls to initializer 'init(minimumDistance:coordinateSpace:)' from outside of its actor context are implicitly asynchronous
5 | @available(visionOS, introduced: 1.0, deprecated: 100000.0, message: "use overload that accepts a CoordinateSpaceProtocol instead")
6 | @available(tvOS, unavailable)
7 | @MainActor @preconcurrency public init(minimumDistance: CGFloat = 10, coordinateSpace: CoordinateSpace = .local)}
| `- note: calls to initializer 'init(minimumDistance:coordinateSpace:)' from outside of its actor context are implicitly asynchronous
8 |
/Users/admin/builder/spi-builder-workspace/Sources/Sliders/RangeSlider/Styles/Horizontal/HorizontalRangeSliderStyle.swift:194:27: warning: call to main actor-isolated initializer 'init()' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
192 | onSelectUpper: @escaping () -> Void = {}) {
193 | self.track = track
194 | self.lowerThumb = DefaultThumb()
| `- warning: call to main actor-isolated initializer 'init()' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
195 | self.upperThumb = DefaultThumb()
196 | self.lowerThumbSize = lowerThumbSize
/Users/admin/builder/spi-builder-workspace/Sources/Sliders/Base/DefaultThumb.swift:4:12: note: calls to initializer 'init()' from outside of its actor context are implicitly asynchronous
2 |
3 | public struct DefaultThumb: View {
4 | public init() {}
| |- note: calls to initializer 'init()' from outside of its actor context are implicitly asynchronous
| `- note: main actor isolation inferred from conformance to protocol 'View'
5 | public var body: some View {
6 | Capsule()
/Users/admin/builder/spi-builder-workspace/Sources/Sliders/RangeSlider/Styles/Horizontal/HorizontalRangeSliderStyle.swift:195:27: warning: call to main actor-isolated initializer 'init()' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
193 | self.track = track
194 | self.lowerThumb = DefaultThumb()
195 | self.upperThumb = DefaultThumb()
| `- warning: call to main actor-isolated initializer 'init()' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
196 | self.lowerThumbSize = lowerThumbSize
197 | self.upperThumbSize = upperThumbSize
/Users/admin/builder/spi-builder-workspace/Sources/Sliders/Base/DefaultThumb.swift:4:12: note: calls to initializer 'init()' from outside of its actor context are implicitly asynchronous
2 |
3 | public struct DefaultThumb: View {
4 | public init() {}
| |- note: calls to initializer 'init()' from outside of its actor context are implicitly asynchronous
| `- note: main actor isolation inferred from conformance to protocol 'View'
5 | public var body: some View {
6 | Capsule()
/Users/admin/builder/spi-builder-workspace/Sources/Sliders/RangeSlider/Styles/Horizontal/HorizontalRangeSliderStyle.swift:212:27: warning: call to main actor-isolated initializer 'init()' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
210 | onSelectUpper: @escaping () -> Void = {}) {
211 | self.track = DefaultHorizontalRangeTrack()
212 | self.lowerThumb = DefaultThumb()
| `- warning: call to main actor-isolated initializer 'init()' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
213 | self.upperThumb = DefaultThumb()
214 | self.lowerThumbSize = lowerThumbSize
/Users/admin/builder/spi-builder-workspace/Sources/Sliders/Base/DefaultThumb.swift:4:12: note: calls to initializer 'init()' from outside of its actor context are implicitly asynchronous
2 |
3 | public struct DefaultThumb: View {
4 | public init() {}
| |- note: calls to initializer 'init()' from outside of its actor context are implicitly asynchronous
| `- note: main actor isolation inferred from conformance to protocol 'View'
5 | public var body: some View {
6 | Capsule()
/Users/admin/builder/spi-builder-workspace/Sources/Sliders/RangeSlider/Styles/Horizontal/HorizontalRangeSliderStyle.swift:213:27: warning: call to main actor-isolated initializer 'init()' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
211 | self.track = DefaultHorizontalRangeTrack()
212 | self.lowerThumb = DefaultThumb()
213 | self.upperThumb = DefaultThumb()
| `- warning: call to main actor-isolated initializer 'init()' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
214 | self.lowerThumbSize = lowerThumbSize
215 | self.upperThumbSize = upperThumbSize
/Users/admin/builder/spi-builder-workspace/Sources/Sliders/Base/DefaultThumb.swift:4:12: note: calls to initializer 'init()' from outside of its actor context are implicitly asynchronous
2 |
3 | public struct DefaultThumb: View {
4 | public init() {}
| |- note: calls to initializer 'init()' from outside of its actor context are implicitly asynchronous
| `- note: main actor isolation inferred from conformance to protocol 'View'
5 | public var body: some View {
6 | Capsule()
/Users/admin/builder/spi-builder-workspace/Sources/Sliders/RangeSlider/Styles/Horizontal/HorizontalRangeSliderStyle.swift:111:26: warning: sending value of non-Sendable type '(DragGesture.Value) -> Void' risks causing data races; this is an error in the Swift 6 language mode
109 | .gesture(
110 | DragGesture()
111 | .onChanged { gestureValue in
| |- warning: sending value of non-Sendable type '(DragGesture.Value) -> Void' risks causing data races; this is an error in the Swift 6 language mode
| `- note: sending value of non-Sendable type '(DragGesture.Value) -> Void' to main actor-isolated callee risks causing data races between main actor-isolated and local nonisolated uses
112 | configuration.onEditingChanged(true)
113 |
:
141 | )
142 | }
143 | .onEnded { _ in
| `- note: access can happen concurrently
144 | configuration.dragOffset.wrappedValue = nil
145 | configuration.onEditingChanged(false)
/Users/admin/builder/spi-builder-workspace/Sources/Sliders/RangeSlider/Styles/Horizontal/HorizontalRangeSliderStyle.swift:53:26: warning: sending value of non-Sendable type '(DragGesture.Value) -> Void' risks causing data races; this is an error in the Swift 6 language mode
51 | .gesture(
52 | DragGesture()
53 | .onChanged { gestureValue in
| |- warning: sending value of non-Sendable type '(DragGesture.Value) -> Void' risks causing data races; this is an error in the Swift 6 language mode
| `- note: sending task-isolated value of non-Sendable type '(DragGesture.Value) -> Void' to main actor-isolated callee risks causing races in between task-isolated and main actor-isolated uses
54 | configuration.onEditingChanged(true)
55 |
[23/44] Compiling Sliders HorizontalRangeSliderStyle.swift
/Users/admin/builder/spi-builder-workspace/Sources/Sliders/RangeSlider/Style/EnvironmentValues+RangeSliderStyle.swift:15:16: warning: static property 'defaultValue' is not concurrency-safe because non-'Sendable' type 'AnyRangeSliderStyle' may have shared mutable state; this is an error in the Swift 6 language mode
13 |
14 | struct RangeSliderStyleKey: EnvironmentKey {
15 | static let defaultValue: AnyRangeSliderStyle = AnyRangeSliderStyle(
| |- warning: static property 'defaultValue' is not concurrency-safe because non-'Sendable' type 'AnyRangeSliderStyle' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'defaultValue' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
16 | HorizontalRangeSliderStyle()
17 | )
/Users/admin/builder/spi-builder-workspace/Sources/Sliders/RangeSlider/Style/AnyRangeSliderStyle.swift:3:15: note: consider making struct 'AnyRangeSliderStyle' conform to the 'Sendable' protocol
1 | import SwiftUI
2 |
3 | public struct AnyRangeSliderStyle: RangeSliderStyle {
| `- note: consider making struct 'AnyRangeSliderStyle' conform to the 'Sendable' protocol
4 | private let styleMakeBody: (RangeSliderStyle.Configuration) -> AnyView
5 |
/Users/admin/builder/spi-builder-workspace/Sources/Sliders/RangeSlider/Styles/Horizontal/HorizontalRangeSliderStyle.swift:53:26: warning: call to main actor-isolated instance method 'onChanged' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
51 | .gesture(
52 | DragGesture()
53 | .onChanged { gestureValue in
| `- warning: call to main actor-isolated instance method 'onChanged' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
54 | configuration.onEditingChanged(true)
55 |
SwiftUICore.Gesture.onChanged:2:40: note: calls to instance method 'onChanged' from outside of its actor context are implicitly asynchronous
1 | protocol Gesture {
2 | @MainActor @preconcurrency public func onChanged(_ action: @escaping (Self.Value) -> Void) -> _ChangedGesture<Self>}
| `- note: calls to instance method 'onChanged' from outside of its actor context are implicitly asynchronous
3 |
/Users/admin/builder/spi-builder-workspace/Sources/Sliders/RangeSlider/Styles/Horizontal/HorizontalRangeSliderStyle.swift:52:21: warning: call to main actor-isolated initializer 'init(minimumDistance:coordinateSpace:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
50 | }
51 | .gesture(
52 | DragGesture()
| `- warning: call to main actor-isolated initializer 'init(minimumDistance:coordinateSpace:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
53 | .onChanged { gestureValue in
54 | configuration.onEditingChanged(true)
SwiftUI.DragGesture.init:7:37: note: calls to initializer 'init(minimumDistance:coordinateSpace:)' from outside of its actor context are implicitly asynchronous
5 | @available(visionOS, introduced: 1.0, deprecated: 100000.0, message: "use overload that accepts a CoordinateSpaceProtocol instead")
6 | @available(tvOS, unavailable)
7 | @MainActor @preconcurrency public init(minimumDistance: CGFloat = 10, coordinateSpace: CoordinateSpace = .local)}
| `- note: calls to initializer 'init(minimumDistance:coordinateSpace:)' from outside of its actor context are implicitly asynchronous
8 |
/Users/admin/builder/spi-builder-workspace/Sources/Sliders/RangeSlider/Styles/Horizontal/HorizontalRangeSliderStyle.swift:111:26: warning: call to main actor-isolated instance method 'onChanged' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
109 | .gesture(
110 | DragGesture()
111 | .onChanged { gestureValue in
| `- warning: call to main actor-isolated instance method 'onChanged' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
112 | configuration.onEditingChanged(true)
113 |
SwiftUICore.Gesture.onChanged:2:40: note: calls to instance method 'onChanged' from outside of its actor context are implicitly asynchronous
1 | protocol Gesture {
2 | @MainActor @preconcurrency public func onChanged(_ action: @escaping (Self.Value) -> Void) -> _ChangedGesture<Self>}
| `- note: calls to instance method 'onChanged' from outside of its actor context are implicitly asynchronous
3 |
/Users/admin/builder/spi-builder-workspace/Sources/Sliders/RangeSlider/Styles/Horizontal/HorizontalRangeSliderStyle.swift:110:21: warning: call to main actor-isolated initializer 'init(minimumDistance:coordinateSpace:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
108 | }
109 | .gesture(
110 | DragGesture()
| `- warning: call to main actor-isolated initializer 'init(minimumDistance:coordinateSpace:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
111 | .onChanged { gestureValue in
112 | configuration.onEditingChanged(true)
SwiftUI.DragGesture.init:7:37: note: calls to initializer 'init(minimumDistance:coordinateSpace:)' from outside of its actor context are implicitly asynchronous
5 | @available(visionOS, introduced: 1.0, deprecated: 100000.0, message: "use overload that accepts a CoordinateSpaceProtocol instead")
6 | @available(tvOS, unavailable)
7 | @MainActor @preconcurrency public init(minimumDistance: CGFloat = 10, coordinateSpace: CoordinateSpace = .local)}
| `- note: calls to initializer 'init(minimumDistance:coordinateSpace:)' from outside of its actor context are implicitly asynchronous
8 |
/Users/admin/builder/spi-builder-workspace/Sources/Sliders/RangeSlider/Styles/Horizontal/HorizontalRangeSliderStyle.swift:194:27: warning: call to main actor-isolated initializer 'init()' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
192 | onSelectUpper: @escaping () -> Void = {}) {
193 | self.track = track
194 | self.lowerThumb = DefaultThumb()
| `- warning: call to main actor-isolated initializer 'init()' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
195 | self.upperThumb = DefaultThumb()
196 | self.lowerThumbSize = lowerThumbSize
/Users/admin/builder/spi-builder-workspace/Sources/Sliders/Base/DefaultThumb.swift:4:12: note: calls to initializer 'init()' from outside of its actor context are implicitly asynchronous
2 |
3 | public struct DefaultThumb: View {
4 | public init() {}
| |- note: calls to initializer 'init()' from outside of its actor context are implicitly asynchronous
| `- note: main actor isolation inferred from conformance to protocol 'View'
5 | public var body: some View {
6 | Capsule()
/Users/admin/builder/spi-builder-workspace/Sources/Sliders/RangeSlider/Styles/Horizontal/HorizontalRangeSliderStyle.swift:195:27: warning: call to main actor-isolated initializer 'init()' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
193 | self.track = track
194 | self.lowerThumb = DefaultThumb()
195 | self.upperThumb = DefaultThumb()
| `- warning: call to main actor-isolated initializer 'init()' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
196 | self.lowerThumbSize = lowerThumbSize
197 | self.upperThumbSize = upperThumbSize
/Users/admin/builder/spi-builder-workspace/Sources/Sliders/Base/DefaultThumb.swift:4:12: note: calls to initializer 'init()' from outside of its actor context are implicitly asynchronous
2 |
3 | public struct DefaultThumb: View {
4 | public init() {}
| |- note: calls to initializer 'init()' from outside of its actor context are implicitly asynchronous
| `- note: main actor isolation inferred from conformance to protocol 'View'
5 | public var body: some View {
6 | Capsule()
/Users/admin/builder/spi-builder-workspace/Sources/Sliders/RangeSlider/Styles/Horizontal/HorizontalRangeSliderStyle.swift:212:27: warning: call to main actor-isolated initializer 'init()' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
210 | onSelectUpper: @escaping () -> Void = {}) {
211 | self.track = DefaultHorizontalRangeTrack()
212 | self.lowerThumb = DefaultThumb()
| `- warning: call to main actor-isolated initializer 'init()' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
213 | self.upperThumb = DefaultThumb()
214 | self.lowerThumbSize = lowerThumbSize
/Users/admin/builder/spi-builder-workspace/Sources/Sliders/Base/DefaultThumb.swift:4:12: note: calls to initializer 'init()' from outside of its actor context are implicitly asynchronous
2 |
3 | public struct DefaultThumb: View {
4 | public init() {}
| |- note: calls to initializer 'init()' from outside of its actor context are implicitly asynchronous
| `- note: main actor isolation inferred from conformance to protocol 'View'
5 | public var body: some View {
6 | Capsule()
/Users/admin/builder/spi-builder-workspace/Sources/Sliders/RangeSlider/Styles/Horizontal/HorizontalRangeSliderStyle.swift:213:27: warning: call to main actor-isolated initializer 'init()' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
211 | self.track = DefaultHorizontalRangeTrack()
212 | self.lowerThumb = DefaultThumb()
213 | self.upperThumb = DefaultThumb()
| `- warning: call to main actor-isolated initializer 'init()' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
214 | self.lowerThumbSize = lowerThumbSize
215 | self.upperThumbSize = upperThumbSize
/Users/admin/builder/spi-builder-workspace/Sources/Sliders/Base/DefaultThumb.swift:4:12: note: calls to initializer 'init()' from outside of its actor context are implicitly asynchronous
2 |
3 | public struct DefaultThumb: View {
4 | public init() {}
| |- note: calls to initializer 'init()' from outside of its actor context are implicitly asynchronous
| `- note: main actor isolation inferred from conformance to protocol 'View'
5 | public var body: some View {
6 | Capsule()
/Users/admin/builder/spi-builder-workspace/Sources/Sliders/RangeSlider/Styles/Horizontal/HorizontalRangeSliderStyle.swift:111:26: warning: sending value of non-Sendable type '(DragGesture.Value) -> Void' risks causing data races; this is an error in the Swift 6 language mode
109 | .gesture(
110 | DragGesture()
111 | .onChanged { gestureValue in
| |- warning: sending value of non-Sendable type '(DragGesture.Value) -> Void' risks causing data races; this is an error in the Swift 6 language mode
| `- note: sending value of non-Sendable type '(DragGesture.Value) -> Void' to main actor-isolated callee risks causing data races between main actor-isolated and local nonisolated uses
112 | configuration.onEditingChanged(true)
113 |
:
141 | )
142 | }
143 | .onEnded { _ in
| `- note: access can happen concurrently
144 | configuration.dragOffset.wrappedValue = nil
145 | configuration.onEditingChanged(false)
/Users/admin/builder/spi-builder-workspace/Sources/Sliders/RangeSlider/Styles/Horizontal/HorizontalRangeSliderStyle.swift:53:26: warning: sending value of non-Sendable type '(DragGesture.Value) -> Void' risks causing data races; this is an error in the Swift 6 language mode
51 | .gesture(
52 | DragGesture()
53 | .onChanged { gestureValue in
| |- warning: sending value of non-Sendable type '(DragGesture.Value) -> Void' risks causing data races; this is an error in the Swift 6 language mode
| `- note: sending task-isolated value of non-Sendable type '(DragGesture.Value) -> Void' to main actor-isolated callee risks causing races in between task-isolated and main actor-isolated uses
54 | configuration.onEditingChanged(true)
55 |
[24/44] Compiling Sliders DefaultHorizontalValueView.swift
[25/44] Compiling Sliders DefaultThumb.swift
[26/44] Compiling Sliders DefaultVerticalValueView.swift
[27/44] Compiling Sliders LinearRangeMath.swift
[28/44] Compiling Sliders LinearValueMath.swift
[29/44] Compiling Sliders PointSliderStyleConfiguration.swift
/Users/admin/builder/spi-builder-workspace/Sources/Sliders/PointSlider/Styles/PointSliderOptions.swift:6:23: warning: static property 'interactiveTrack' is not concurrency-safe because non-'Sendable' type 'PointSliderOptions' may have shared mutable state; this is an error in the Swift 6 language mode
1 | import SwiftUI
2 |
3 | public struct PointSliderOptions: OptionSet {
| `- note: consider making struct 'PointSliderOptions' conform to the 'Sendable' protocol
4 | public let rawValue: Int
5 |
6 | public static let interactiveTrack = PointSliderOptions(rawValue: 1 << 0)
| |- warning: static property 'interactiveTrack' is not concurrency-safe because non-'Sendable' type 'PointSliderOptions' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'interactiveTrack' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
7 | public static let defaultOptions: PointSliderOptions = []
8 |
/Users/admin/builder/spi-builder-workspace/Sources/Sliders/PointSlider/Styles/PointSliderOptions.swift:7:23: warning: static property 'defaultOptions' is not concurrency-safe because non-'Sendable' type 'PointSliderOptions' may have shared mutable state; this is an error in the Swift 6 language mode
1 | import SwiftUI
2 |
3 | public struct PointSliderOptions: OptionSet {
| `- note: consider making struct 'PointSliderOptions' conform to the 'Sendable' protocol
4 | public let rawValue: Int
5 |
6 | public static let interactiveTrack = PointSliderOptions(rawValue: 1 << 0)
7 | public static let defaultOptions: PointSliderOptions = []
| |- warning: static property 'defaultOptions' is not concurrency-safe because non-'Sendable' type 'PointSliderOptions' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'defaultOptions' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
8 |
9 | public init(rawValue: Int) {
/Users/admin/builder/spi-builder-workspace/Sources/Sliders/PointSlider/Styles/Rectangular/RectangularPointSliderStyle.swift:27:30: warning: call to main actor-isolated instance method 'onChanged' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
25 | track.gesture(
26 | DragGesture(minimumDistance: 0)
27 | .onChanged { gestureValue in
| `- warning: call to main actor-isolated instance method 'onChanged' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
28 | configuration.onEditingChanged(true)
29 |
SwiftUICore.Gesture.onChanged:2:40: note: calls to instance method 'onChanged' from outside of its actor context are implicitly asynchronous
1 | protocol Gesture {
2 | @MainActor @preconcurrency public func onChanged(_ action: @escaping (Self.Value) -> Void) -> _ChangedGesture<Self>}
| `- note: calls to instance method 'onChanged' from outside of its actor context are implicitly asynchronous
3 |
/Users/admin/builder/spi-builder-workspace/Sources/Sliders/PointSlider/Styles/Rectangular/RectangularPointSliderStyle.swift:26:25: warning: call to main actor-isolated initializer 'init(minimumDistance:coordinateSpace:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
24 | if self.options.contains(.interactiveTrack) {
25 | track.gesture(
26 | DragGesture(minimumDistance: 0)
| `- warning: call to main actor-isolated initializer 'init(minimumDistance:coordinateSpace:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
27 | .onChanged { gestureValue in
28 | configuration.onEditingChanged(true)
SwiftUI.DragGesture.init:7:37: note: calls to initializer 'init(minimumDistance:coordinateSpace:)' from outside of its actor context are implicitly asynchronous
5 | @available(visionOS, introduced: 1.0, deprecated: 100000.0, message: "use overload that accepts a CoordinateSpaceProtocol instead")
6 | @available(tvOS, unavailable)
7 | @MainActor @preconcurrency public init(minimumDistance: CGFloat = 10, coordinateSpace: CoordinateSpace = .local)}
| `- note: calls to initializer 'init(minimumDistance:coordinateSpace:)' from outside of its actor context are implicitly asynchronous
8 |
/Users/admin/builder/spi-builder-workspace/Sources/Sliders/PointSlider/Styles/Rectangular/RectangularPointSliderStyle.swift:83:26: warning: call to main actor-isolated instance method 'onChanged' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
81 | .gesture(
82 | DragGesture()
83 | .onChanged { gestureValue in
| `- warning: call to main actor-isolated instance method 'onChanged' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
84 | configuration.onEditingChanged(true)
85 |
SwiftUICore.Gesture.onChanged:2:40: note: calls to instance method 'onChanged' from outside of its actor context are implicitly asynchronous
1 | protocol Gesture {
2 | @MainActor @preconcurrency public func onChanged(_ action: @escaping (Self.Value) -> Void) -> _ChangedGesture<Self>}
| `- note: calls to instance method 'onChanged' from outside of its actor context are implicitly asynchronous
3 |
/Users/admin/builder/spi-builder-workspace/Sources/Sliders/PointSlider/Styles/Rectangular/RectangularPointSliderStyle.swift:82:21: warning: call to main actor-isolated initializer 'init(minimumDistance:coordinateSpace:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
80 | )
81 | .gesture(
82 | DragGesture()
| `- warning: call to main actor-isolated initializer 'init(minimumDistance:coordinateSpace:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
83 | .onChanged { gestureValue in
84 | configuration.onEditingChanged(true)
SwiftUI.DragGesture.init:7:37: note: calls to initializer 'init(minimumDistance:coordinateSpace:)' from outside of its actor context are implicitly asynchronous
5 | @available(visionOS, introduced: 1.0, deprecated: 100000.0, message: "use overload that accepts a CoordinateSpaceProtocol instead")
6 | @available(tvOS, unavailable)
7 | @MainActor @preconcurrency public init(minimumDistance: CGFloat = 10, coordinateSpace: CoordinateSpace = .local)}
| `- note: calls to initializer 'init(minimumDistance:coordinateSpace:)' from outside of its actor context are implicitly asynchronous
8 |
/Users/admin/builder/spi-builder-workspace/Sources/Sliders/PointSlider/Styles/Rectangular/RectangularPointSliderStyle.swift:161:22: warning: call to main actor-isolated initializer 'init()' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
159 | public init(track: Track, thumbSize: CGSize = CGSize(width: 27, height: 27), thumbInteractiveSize: CGSize = CGSize(width: 44, height: 44), options: PointSliderOptions = .defaultOptions) {
160 | self.track = track
161 | self.thumb = DefaultThumb()
| `- warning: call to main actor-isolated initializer 'init()' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
162 | self.thumbSize = thumbSize
163 | self.thumbInteractiveSize = thumbInteractiveSize
/Users/admin/builder/spi-builder-workspace/Sources/Sliders/Base/DefaultThumb.swift:4:12: note: calls to initializer 'init()' from outside of its actor context are implicitly asynchronous
2 |
3 | public struct DefaultThumb: View {
4 | public init() {}
| |- note: calls to initializer 'init()' from outside of its actor context are implicitly asynchronous
| `- note: main actor isolation inferred from conformance to protocol 'View'
5 | public var body: some View {
6 | Capsule()
/Users/admin/builder/spi-builder-workspace/Sources/Sliders/PointSlider/Styles/Rectangular/RectangularPointSliderStyle.swift:171:22: warning: call to main actor-isolated initializer 'init()' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
169 | public init(thumbSize: CGSize = CGSize(width: 27, height: 27), thumbInteractiveSize: CGSize = CGSize(width: 44, height: 44), options: PointSliderOptions = .defaultOptions) {
170 | self.track = DefaultRectangularPointTrack()
171 | self.thumb = DefaultThumb()
| `- warning: call to main actor-isolated initializer 'init()' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
172 | self.thumbSize = thumbSize
173 | self.thumbInteractiveSize = thumbInteractiveSize
/Users/admin/builder/spi-builder-workspace/Sources/Sliders/Base/DefaultThumb.swift:4:12: note: calls to initializer 'init()' from outside of its actor context are implicitly asynchronous
2 |
3 | public struct DefaultThumb: View {
4 | public init() {}
| |- note: calls to initializer 'init()' from outside of its actor context are implicitly asynchronous
| `- note: main actor isolation inferred from conformance to protocol 'View'
5 | public var body: some View {
6 | Capsule()
/Users/admin/builder/spi-builder-workspace/Sources/Sliders/PointTrack/EnvironmentValues+PointTrackConfiguration.swift:15:16: warning: static property 'defaultValue' is not concurrency-safe because non-'Sendable' type 'PointTrackConfiguration' may have shared mutable state; this is an error in the Swift 6 language mode
13 |
14 | struct PointTrackConfigurationKey: EnvironmentKey {
15 | static let defaultValue: PointTrackConfiguration = .defaultConfiguration
| |- warning: static property 'defaultValue' is not concurrency-safe because non-'Sendable' type 'PointTrackConfiguration' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'defaultValue' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
16 | }
17 |
/Users/admin/builder/spi-builder-workspace/Sources/Sliders/PointTrack/PointTrackConfiguration.swift:3:15: note: consider making struct 'PointTrackConfiguration' conform to the 'Sendable' protocol
1 | import SwiftUI
2 |
3 | public struct PointTrackConfiguration {
| `- note: consider making struct 'PointTrackConfiguration' conform to the 'Sendable' protocol
4 | public static let defaultConfiguration = PointTrackConfiguration()
5 |
/Users/admin/builder/spi-builder-workspace/Sources/Sliders/PointSlider/Styles/Rectangular/RectangularPointSliderStyle.swift:83:26: warning: sending value of non-Sendable type '(DragGesture.Value) -> Void' risks causing data races; this is an error in the Swift 6 language mode
81 | .gesture(
82 | DragGesture()
83 | .onChanged { gestureValue in
| |- warning: sending value of non-Sendable type '(DragGesture.Value) -> Void' risks causing data races; this is an error in the Swift 6 language mode
| `- note: sending value of non-Sendable type '(DragGesture.Value) -> Void' to main actor-isolated callee risks causing data races between main actor-isolated and local nonisolated uses
84 | configuration.onEditingChanged(true)
85 |
:
125 | configuration.y.wrappedValue = computedValueY
126 | }
127 | .onEnded { _ in
| `- note: access can happen concurrently
128 | configuration.dragOffset.wrappedValue = nil
129 | configuration.onEditingChanged(false)
/Users/admin/builder/spi-builder-workspace/Sources/Sliders/PointSlider/Styles/Rectangular/RectangularPointSliderStyle.swift:27:30: warning: sending value of non-Sendable type '(DragGesture.Value) -> Void' risks causing data races; this is an error in the Swift 6 language mode
25 | track.gesture(
26 | DragGesture(minimumDistance: 0)
27 | .onChanged { gestureValue in
| |- warning: sending value of non-Sendable type '(DragGesture.Value) -> Void' risks causing data races; this is an error in the Swift 6 language mode
| `- note: sending task-isolated value of non-Sendable type '(DragGesture.Value) -> Void' to main actor-isolated callee risks causing races in between task-isolated and main actor-isolated uses
28 | configuration.onEditingChanged(true)
29 |
[30/44] Compiling Sliders PointSliderOptions.swift
/Users/admin/builder/spi-builder-workspace/Sources/Sliders/PointSlider/Styles/PointSliderOptions.swift:6:23: warning: static property 'interactiveTrack' is not concurrency-safe because non-'Sendable' type 'PointSliderOptions' may have shared mutable state; this is an error in the Swift 6 language mode
1 | import SwiftUI
2 |
3 | public struct PointSliderOptions: OptionSet {
| `- note: consider making struct 'PointSliderOptions' conform to the 'Sendable' protocol
4 | public let rawValue: Int
5 |
6 | public static let interactiveTrack = PointSliderOptions(rawValue: 1 << 0)
| |- warning: static property 'interactiveTrack' is not concurrency-safe because non-'Sendable' type 'PointSliderOptions' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'interactiveTrack' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
7 | public static let defaultOptions: PointSliderOptions = []
8 |
/Users/admin/builder/spi-builder-workspace/Sources/Sliders/PointSlider/Styles/PointSliderOptions.swift:7:23: warning: static property 'defaultOptions' is not concurrency-safe because non-'Sendable' type 'PointSliderOptions' may have shared mutable state; this is an error in the Swift 6 language mode
1 | import SwiftUI
2 |
3 | public struct PointSliderOptions: OptionSet {
| `- note: consider making struct 'PointSliderOptions' conform to the 'Sendable' protocol
4 | public let rawValue: Int
5 |
6 | public static let interactiveTrack = PointSliderOptions(rawValue: 1 << 0)
7 | public static let defaultOptions: PointSliderOptions = []
| |- warning: static property 'defaultOptions' is not concurrency-safe because non-'Sendable' type 'PointSliderOptions' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'defaultOptions' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
8 |
9 | public init(rawValue: Int) {
/Users/admin/builder/spi-builder-workspace/Sources/Sliders/PointSlider/Styles/Rectangular/RectangularPointSliderStyle.swift:27:30: warning: call to main actor-isolated instance method 'onChanged' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
25 | track.gesture(
26 | DragGesture(minimumDistance: 0)
27 | .onChanged { gestureValue in
| `- warning: call to main actor-isolated instance method 'onChanged' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
28 | configuration.onEditingChanged(true)
29 |
SwiftUICore.Gesture.onChanged:2:40: note: calls to instance method 'onChanged' from outside of its actor context are implicitly asynchronous
1 | protocol Gesture {
2 | @MainActor @preconcurrency public func onChanged(_ action: @escaping (Self.Value) -> Void) -> _ChangedGesture<Self>}
| `- note: calls to instance method 'onChanged' from outside of its actor context are implicitly asynchronous
3 |
/Users/admin/builder/spi-builder-workspace/Sources/Sliders/PointSlider/Styles/Rectangular/RectangularPointSliderStyle.swift:26:25: warning: call to main actor-isolated initializer 'init(minimumDistance:coordinateSpace:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
24 | if self.options.contains(.interactiveTrack) {
25 | track.gesture(
26 | DragGesture(minimumDistance: 0)
| `- warning: call to main actor-isolated initializer 'init(minimumDistance:coordinateSpace:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
27 | .onChanged { gestureValue in
28 | configuration.onEditingChanged(true)
SwiftUI.DragGesture.init:7:37: note: calls to initializer 'init(minimumDistance:coordinateSpace:)' from outside of its actor context are implicitly asynchronous
5 | @available(visionOS, introduced: 1.0, deprecated: 100000.0, message: "use overload that accepts a CoordinateSpaceProtocol instead")
6 | @available(tvOS, unavailable)
7 | @MainActor @preconcurrency public init(minimumDistance: CGFloat = 10, coordinateSpace: CoordinateSpace = .local)}
| `- note: calls to initializer 'init(minimumDistance:coordinateSpace:)' from outside of its actor context are implicitly asynchronous
8 |
/Users/admin/builder/spi-builder-workspace/Sources/Sliders/PointSlider/Styles/Rectangular/RectangularPointSliderStyle.swift:83:26: warning: call to main actor-isolated instance method 'onChanged' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
81 | .gesture(
82 | DragGesture()
83 | .onChanged { gestureValue in
| `- warning: call to main actor-isolated instance method 'onChanged' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
84 | configuration.onEditingChanged(true)
85 |
SwiftUICore.Gesture.onChanged:2:40: note: calls to instance method 'onChanged' from outside of its actor context are implicitly asynchronous
1 | protocol Gesture {
2 | @MainActor @preconcurrency public func onChanged(_ action: @escaping (Self.Value) -> Void) -> _ChangedGesture<Self>}
| `- note: calls to instance method 'onChanged' from outside of its actor context are implicitly asynchronous
3 |
/Users/admin/builder/spi-builder-workspace/Sources/Sliders/PointSlider/Styles/Rectangular/RectangularPointSliderStyle.swift:82:21: warning: call to main actor-isolated initializer 'init(minimumDistance:coordinateSpace:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
80 | )
81 | .gesture(
82 | DragGesture()
| `- warning: call to main actor-isolated initializer 'init(minimumDistance:coordinateSpace:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
83 | .onChanged { gestureValue in
84 | configuration.onEditingChanged(true)
SwiftUI.DragGesture.init:7:37: note: calls to initializer 'init(minimumDistance:coordinateSpace:)' from outside of its actor context are implicitly asynchronous
5 | @available(visionOS, introduced: 1.0, deprecated: 100000.0, message: "use overload that accepts a CoordinateSpaceProtocol instead")
6 | @available(tvOS, unavailable)
7 | @MainActor @preconcurrency public init(minimumDistance: CGFloat = 10, coordinateSpace: CoordinateSpace = .local)}
| `- note: calls to initializer 'init(minimumDistance:coordinateSpace:)' from outside of its actor context are implicitly asynchronous
8 |
/Users/admin/builder/spi-builder-workspace/Sources/Sliders/PointSlider/Styles/Rectangular/RectangularPointSliderStyle.swift:161:22: warning: call to main actor-isolated initializer 'init()' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
159 | public init(track: Track, thumbSize: CGSize = CGSize(width: 27, height: 27), thumbInteractiveSize: CGSize = CGSize(width: 44, height: 44), options: PointSliderOptions = .defaultOptions) {
160 | self.track = track
161 | self.thumb = DefaultThumb()
| `- warning: call to main actor-isolated initializer 'init()' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
162 | self.thumbSize = thumbSize
163 | self.thumbInteractiveSize = thumbInteractiveSize
/Users/admin/builder/spi-builder-workspace/Sources/Sliders/Base/DefaultThumb.swift:4:12: note: calls to initializer 'init()' from outside of its actor context are implicitly asynchronous
2 |
3 | public struct DefaultThumb: View {
4 | public init() {}
| |- note: calls to initializer 'init()' from outside of its actor context are implicitly asynchronous
| `- note: main actor isolation inferred from conformance to protocol 'View'
5 | public var body: some View {
6 | Capsule()
/Users/admin/builder/spi-builder-workspace/Sources/Sliders/PointSlider/Styles/Rectangular/RectangularPointSliderStyle.swift:171:22: warning: call to main actor-isolated initializer 'init()' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
169 | public init(thumbSize: CGSize = CGSize(width: 27, height: 27), thumbInteractiveSize: CGSize = CGSize(width: 44, height: 44), options: PointSliderOptions = .defaultOptions) {
170 | self.track = DefaultRectangularPointTrack()
171 | self.thumb = DefaultThumb()
| `- warning: call to main actor-isolated initializer 'init()' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
172 | self.thumbSize = thumbSize
173 | self.thumbInteractiveSize = thumbInteractiveSize
/Users/admin/builder/spi-builder-workspace/Sources/Sliders/Base/DefaultThumb.swift:4:12: note: calls to initializer 'init()' from outside of its actor context are implicitly asynchronous
2 |
3 | public struct DefaultThumb: View {
4 | public init() {}
| |- note: calls to initializer 'init()' from outside of its actor context are implicitly asynchronous
| `- note: main actor isolation inferred from conformance to protocol 'View'
5 | public var body: some View {
6 | Capsule()
/Users/admin/builder/spi-builder-workspace/Sources/Sliders/PointTrack/EnvironmentValues+PointTrackConfiguration.swift:15:16: warning: static property 'defaultValue' is not concurrency-safe because non-'Sendable' type 'PointTrackConfiguration' may have shared mutable state; this is an error in the Swift 6 language mode
13 |
14 | struct PointTrackConfigurationKey: EnvironmentKey {
15 | static let defaultValue: PointTrackConfiguration = .defaultConfiguration
| |- warning: static property 'defaultValue' is not concurrency-safe because non-'Sendable' type 'PointTrackConfiguration' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'defaultValue' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
16 | }
17 |
/Users/admin/builder/spi-builder-workspace/Sources/Sliders/PointTrack/PointTrackConfiguration.swift:3:15: note: consider making struct 'PointTrackConfiguration' conform to the 'Sendable' protocol
1 | import SwiftUI
2 |
3 | public struct PointTrackConfiguration {
| `- note: consider making struct 'PointTrackConfiguration' conform to the 'Sendable' protocol
4 | public static let defaultConfiguration = PointTrackConfiguration()
5 |
/Users/admin/builder/spi-builder-workspace/Sources/Sliders/PointSlider/Styles/Rectangular/RectangularPointSliderStyle.swift:83:26: warning: sending value of non-Sendable type '(DragGesture.Value) -> Void' risks causing data races; this is an error in the Swift 6 language mode
81 | .gesture(
82 | DragGesture()
83 | .onChanged { gestureValue in
| |- warning: sending value of non-Sendable type '(DragGesture.Value) -> Void' risks causing data races; this is an error in the Swift 6 language mode
| `- note: sending value of non-Sendable type '(DragGesture.Value) -> Void' to main actor-isolated callee risks causing data races between main actor-isolated and local nonisolated uses
84 | configuration.onEditingChanged(true)
85 |
:
125 | configuration.y.wrappedValue = computedValueY
126 | }
127 | .onEnded { _ in
| `- note: access can happen concurrently
128 | configuration.dragOffset.wrappedValue = nil
129 | configuration.onEditingChanged(false)
/Users/admin/builder/spi-builder-workspace/Sources/Sliders/PointSlider/Styles/Rectangular/RectangularPointSliderStyle.swift:27:30: warning: sending value of non-Sendable type '(DragGesture.Value) -> Void' risks causing data races; this is an error in the Swift 6 language mode
25 | track.gesture(
26 | DragGesture(minimumDistance: 0)
27 | .onChanged { gestureValue in
| |- warning: sending value of non-Sendable type '(DragGesture.Value) -> Void' risks causing data races; this is an error in the Swift 6 language mode
| `- note: sending task-isolated value of non-Sendable type '(DragGesture.Value) -> Void' to main actor-isolated callee risks causing races in between task-isolated and main actor-isolated uses
28 | configuration.onEditingChanged(true)
29 |
[31/44] Compiling Sliders RectangularPointSliderStyle.swift
/Users/admin/builder/spi-builder-workspace/Sources/Sliders/PointSlider/Styles/PointSliderOptions.swift:6:23: warning: static property 'interactiveTrack' is not concurrency-safe because non-'Sendable' type 'PointSliderOptions' may have shared mutable state; this is an error in the Swift 6 language mode
1 | import SwiftUI
2 |
3 | public struct PointSliderOptions: OptionSet {
| `- note: consider making struct 'PointSliderOptions' conform to the 'Sendable' protocol
4 | public let rawValue: Int
5 |
6 | public static let interactiveTrack = PointSliderOptions(rawValue: 1 << 0)
| |- warning: static property 'interactiveTrack' is not concurrency-safe because non-'Sendable' type 'PointSliderOptions' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'interactiveTrack' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
7 | public static let defaultOptions: PointSliderOptions = []
8 |
/Users/admin/builder/spi-builder-workspace/Sources/Sliders/PointSlider/Styles/PointSliderOptions.swift:7:23: warning: static property 'defaultOptions' is not concurrency-safe because non-'Sendable' type 'PointSliderOptions' may have shared mutable state; this is an error in the Swift 6 language mode
1 | import SwiftUI
2 |
3 | public struct PointSliderOptions: OptionSet {
| `- note: consider making struct 'PointSliderOptions' conform to the 'Sendable' protocol
4 | public let rawValue: Int
5 |
6 | public static let interactiveTrack = PointSliderOptions(rawValue: 1 << 0)
7 | public static let defaultOptions: PointSliderOptions = []
| |- warning: static property 'defaultOptions' is not concurrency-safe because non-'Sendable' type 'PointSliderOptions' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'defaultOptions' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
8 |
9 | public init(rawValue: Int) {
/Users/admin/builder/spi-builder-workspace/Sources/Sliders/PointSlider/Styles/Rectangular/RectangularPointSliderStyle.swift:27:30: warning: call to main actor-isolated instance method 'onChanged' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
25 | track.gesture(
26 | DragGesture(minimumDistance: 0)
27 | .onChanged { gestureValue in
| `- warning: call to main actor-isolated instance method 'onChanged' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
28 | configuration.onEditingChanged(true)
29 |
SwiftUICore.Gesture.onChanged:2:40: note: calls to instance method 'onChanged' from outside of its actor context are implicitly asynchronous
1 | protocol Gesture {
2 | @MainActor @preconcurrency public func onChanged(_ action: @escaping (Self.Value) -> Void) -> _ChangedGesture<Self>}
| `- note: calls to instance method 'onChanged' from outside of its actor context are implicitly asynchronous
3 |
/Users/admin/builder/spi-builder-workspace/Sources/Sliders/PointSlider/Styles/Rectangular/RectangularPointSliderStyle.swift:26:25: warning: call to main actor-isolated initializer 'init(minimumDistance:coordinateSpace:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
24 | if self.options.contains(.interactiveTrack) {
25 | track.gesture(
26 | DragGesture(minimumDistance: 0)
| `- warning: call to main actor-isolated initializer 'init(minimumDistance:coordinateSpace:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
27 | .onChanged { gestureValue in
28 | configuration.onEditingChanged(true)
SwiftUI.DragGesture.init:7:37: note: calls to initializer 'init(minimumDistance:coordinateSpace:)' from outside of its actor context are implicitly asynchronous
5 | @available(visionOS, introduced: 1.0, deprecated: 100000.0, message: "use overload that accepts a CoordinateSpaceProtocol instead")
6 | @available(tvOS, unavailable)
7 | @MainActor @preconcurrency public init(minimumDistance: CGFloat = 10, coordinateSpace: CoordinateSpace = .local)}
| `- note: calls to initializer 'init(minimumDistance:coordinateSpace:)' from outside of its actor context are implicitly asynchronous
8 |
/Users/admin/builder/spi-builder-workspace/Sources/Sliders/PointSlider/Styles/Rectangular/RectangularPointSliderStyle.swift:83:26: warning: call to main actor-isolated instance method 'onChanged' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
81 | .gesture(
82 | DragGesture()
83 | .onChanged { gestureValue in
| `- warning: call to main actor-isolated instance method 'onChanged' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
84 | configuration.onEditingChanged(true)
85 |
SwiftUICore.Gesture.onChanged:2:40: note: calls to instance method 'onChanged' from outside of its actor context are implicitly asynchronous
1 | protocol Gesture {
2 | @MainActor @preconcurrency public func onChanged(_ action: @escaping (Self.Value) -> Void) -> _ChangedGesture<Self>}
| `- note: calls to instance method 'onChanged' from outside of its actor context are implicitly asynchronous
3 |
/Users/admin/builder/spi-builder-workspace/Sources/Sliders/PointSlider/Styles/Rectangular/RectangularPointSliderStyle.swift:82:21: warning: call to main actor-isolated initializer 'init(minimumDistance:coordinateSpace:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
80 | )
81 | .gesture(
82 | DragGesture()
| `- warning: call to main actor-isolated initializer 'init(minimumDistance:coordinateSpace:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
83 | .onChanged { gestureValue in
84 | configuration.onEditingChanged(true)
SwiftUI.DragGesture.init:7:37: note: calls to initializer 'init(minimumDistance:coordinateSpace:)' from outside of its actor context are implicitly asynchronous
5 | @available(visionOS, introduced: 1.0, deprecated: 100000.0, message: "use overload that accepts a CoordinateSpaceProtocol instead")
6 | @available(tvOS, unavailable)
7 | @MainActor @preconcurrency public init(minimumDistance: CGFloat = 10, coordinateSpace: CoordinateSpace = .local)}
| `- note: calls to initializer 'init(minimumDistance:coordinateSpace:)' from outside of its actor context are implicitly asynchronous
8 |
/Users/admin/builder/spi-builder-workspace/Sources/Sliders/PointSlider/Styles/Rectangular/RectangularPointSliderStyle.swift:161:22: warning: call to main actor-isolated initializer 'init()' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
159 | public init(track: Track, thumbSize: CGSize = CGSize(width: 27, height: 27), thumbInteractiveSize: CGSize = CGSize(width: 44, height: 44), options: PointSliderOptions = .defaultOptions) {
160 | self.track = track
161 | self.thumb = DefaultThumb()
| `- warning: call to main actor-isolated initializer 'init()' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
162 | self.thumbSize = thumbSize
163 | self.thumbInteractiveSize = thumbInteractiveSize
/Users/admin/builder/spi-builder-workspace/Sources/Sliders/Base/DefaultThumb.swift:4:12: note: calls to initializer 'init()' from outside of its actor context are implicitly asynchronous
2 |
3 | public struct DefaultThumb: View {
4 | public init() {}
| |- note: calls to initializer 'init()' from outside of its actor context are implicitly asynchronous
| `- note: main actor isolation inferred from conformance to protocol 'View'
5 | public var body: some View {
6 | Capsule()
/Users/admin/builder/spi-builder-workspace/Sources/Sliders/PointSlider/Styles/Rectangular/RectangularPointSliderStyle.swift:171:22: warning: call to main actor-isolated initializer 'init()' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
169 | public init(thumbSize: CGSize = CGSize(width: 27, height: 27), thumbInteractiveSize: CGSize = CGSize(width: 44, height: 44), options: PointSliderOptions = .defaultOptions) {
170 | self.track = DefaultRectangularPointTrack()
171 | self.thumb = DefaultThumb()
| `- warning: call to main actor-isolated initializer 'init()' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
172 | self.thumbSize = thumbSize
173 | self.thumbInteractiveSize = thumbInteractiveSize
/Users/admin/builder/spi-builder-workspace/Sources/Sliders/Base/DefaultThumb.swift:4:12: note: calls to initializer 'init()' from outside of its actor context are implicitly asynchronous
2 |
3 | public struct DefaultThumb: View {
4 | public init() {}
| |- note: calls to initializer 'init()' from outside of its actor context are implicitly asynchronous
| `- note: main actor isolation inferred from conformance to protocol 'View'
5 | public var body: some View {
6 | Capsule()
/Users/admin/builder/spi-builder-workspace/Sources/Sliders/PointTrack/EnvironmentValues+PointTrackConfiguration.swift:15:16: warning: static property 'defaultValue' is not concurrency-safe because non-'Sendable' type 'PointTrackConfiguration' may have shared mutable state; this is an error in the Swift 6 language mode
13 |
14 | struct PointTrackConfigurationKey: EnvironmentKey {
15 | static let defaultValue: PointTrackConfiguration = .defaultConfiguration
| |- warning: static property 'defaultValue' is not concurrency-safe because non-'Sendable' type 'PointTrackConfiguration' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'defaultValue' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
16 | }
17 |
/Users/admin/builder/spi-builder-workspace/Sources/Sliders/PointTrack/PointTrackConfiguration.swift:3:15: note: consider making struct 'PointTrackConfiguration' conform to the 'Sendable' protocol
1 | import SwiftUI
2 |
3 | public struct PointTrackConfiguration {
| `- note: consider making struct 'PointTrackConfiguration' conform to the 'Sendable' protocol
4 | public static let defaultConfiguration = PointTrackConfiguration()
5 |
/Users/admin/builder/spi-builder-workspace/Sources/Sliders/PointSlider/Styles/Rectangular/RectangularPointSliderStyle.swift:83:26: warning: sending value of non-Sendable type '(DragGesture.Value) -> Void' risks causing data races; this is an error in the Swift 6 language mode
81 | .gesture(
82 | DragGesture()
83 | .onChanged { gestureValue in
| |- warning: sending value of non-Sendable type '(DragGesture.Value) -> Void' risks causing data races; this is an error in the Swift 6 language mode
| `- note: sending value of non-Sendable type '(DragGesture.Value) -> Void' to main actor-isolated callee risks causing data races between main actor-isolated and local nonisolated uses
84 | configuration.onEditingChanged(true)
85 |
:
125 | configuration.y.wrappedValue = computedValueY
126 | }
127 | .onEnded { _ in
| `- note: access can happen concurrently
128 | configuration.dragOffset.wrappedValue = nil
129 | configuration.onEditingChanged(false)
/Users/admin/builder/spi-builder-workspace/Sources/Sliders/PointSlider/Styles/Rectangular/RectangularPointSliderStyle.swift:27:30: warning: sending value of non-Sendable type '(DragGesture.Value) -> Void' risks causing data races; this is an error in the Swift 6 language mode
25 | track.gesture(
26 | DragGesture(minimumDistance: 0)
27 | .onChanged { gestureValue in
| |- warning: sending value of non-Sendable type '(DragGesture.Value) -> Void' risks causing data races; this is an error in the Swift 6 language mode
| `- note: sending task-isolated value of non-Sendable type '(DragGesture.Value) -> Void' to main actor-isolated callee risks causing races in between task-isolated and main actor-isolated uses
28 | configuration.onEditingChanged(true)
29 |
[32/44] Compiling Sliders EnvironmentValues+PointTrackConfiguration.swift
/Users/admin/builder/spi-builder-workspace/Sources/Sliders/PointSlider/Styles/PointSliderOptions.swift:6:23: warning: static property 'interactiveTrack' is not concurrency-safe because non-'Sendable' type 'PointSliderOptions' may have shared mutable state; this is an error in the Swift 6 language mode
1 | import SwiftUI
2 |
3 | public struct PointSliderOptions: OptionSet {
| `- note: consider making struct 'PointSliderOptions' conform to the 'Sendable' protocol
4 | public let rawValue: Int
5 |
6 | public static let interactiveTrack = PointSliderOptions(rawValue: 1 << 0)
| |- warning: static property 'interactiveTrack' is not concurrency-safe because non-'Sendable' type 'PointSliderOptions' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'interactiveTrack' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
7 | public static let defaultOptions: PointSliderOptions = []
8 |
/Users/admin/builder/spi-builder-workspace/Sources/Sliders/PointSlider/Styles/PointSliderOptions.swift:7:23: warning: static property 'defaultOptions' is not concurrency-safe because non-'Sendable' type 'PointSliderOptions' may have shared mutable state; this is an error in the Swift 6 language mode
1 | import SwiftUI
2 |
3 | public struct PointSliderOptions: OptionSet {
| `- note: consider making struct 'PointSliderOptions' conform to the 'Sendable' protocol
4 | public let rawValue: Int
5 |
6 | public static let interactiveTrack = PointSliderOptions(rawValue: 1 << 0)
7 | public static let defaultOptions: PointSliderOptions = []
| |- warning: static property 'defaultOptions' is not concurrency-safe because non-'Sendable' type 'PointSliderOptions' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'defaultOptions' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
8 |
9 | public init(rawValue: Int) {
/Users/admin/builder/spi-builder-workspace/Sources/Sliders/PointSlider/Styles/Rectangular/RectangularPointSliderStyle.swift:27:30: warning: call to main actor-isolated instance method 'onChanged' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
25 | track.gesture(
26 | DragGesture(minimumDistance: 0)
27 | .onChanged { gestureValue in
| `- warning: call to main actor-isolated instance method 'onChanged' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
28 | configuration.onEditingChanged(true)
29 |
SwiftUICore.Gesture.onChanged:2:40: note: calls to instance method 'onChanged' from outside of its actor context are implicitly asynchronous
1 | protocol Gesture {
2 | @MainActor @preconcurrency public func onChanged(_ action: @escaping (Self.Value) -> Void) -> _ChangedGesture<Self>}
| `- note: calls to instance method 'onChanged' from outside of its actor context are implicitly asynchronous
3 |
/Users/admin/builder/spi-builder-workspace/Sources/Sliders/PointSlider/Styles/Rectangular/RectangularPointSliderStyle.swift:26:25: warning: call to main actor-isolated initializer 'init(minimumDistance:coordinateSpace:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
24 | if self.options.contains(.interactiveTrack) {
25 | track.gesture(
26 | DragGesture(minimumDistance: 0)
| `- warning: call to main actor-isolated initializer 'init(minimumDistance:coordinateSpace:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
27 | .onChanged { gestureValue in
28 | configuration.onEditingChanged(true)
SwiftUI.DragGesture.init:7:37: note: calls to initializer 'init(minimumDistance:coordinateSpace:)' from outside of its actor context are implicitly asynchronous
5 | @available(visionOS, introduced: 1.0, deprecated: 100000.0, message: "use overload that accepts a CoordinateSpaceProtocol instead")
6 | @available(tvOS, unavailable)
7 | @MainActor @preconcurrency public init(minimumDistance: CGFloat = 10, coordinateSpace: CoordinateSpace = .local)}
| `- note: calls to initializer 'init(minimumDistance:coordinateSpace:)' from outside of its actor context are implicitly asynchronous
8 |
/Users/admin/builder/spi-builder-workspace/Sources/Sliders/PointSlider/Styles/Rectangular/RectangularPointSliderStyle.swift:83:26: warning: call to main actor-isolated instance method 'onChanged' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
81 | .gesture(
82 | DragGesture()
83 | .onChanged { gestureValue in
| `- warning: call to main actor-isolated instance method 'onChanged' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
84 | configuration.onEditingChanged(true)
85 |
SwiftUICore.Gesture.onChanged:2:40: note: calls to instance method 'onChanged' from outside of its actor context are implicitly asynchronous
1 | protocol Gesture {
2 | @MainActor @preconcurrency public func onChanged(_ action: @escaping (Self.Value) -> Void) -> _ChangedGesture<Self>}
| `- note: calls to instance method 'onChanged' from outside of its actor context are implicitly asynchronous
3 |
/Users/admin/builder/spi-builder-workspace/Sources/Sliders/PointSlider/Styles/Rectangular/RectangularPointSliderStyle.swift:82:21: warning: call to main actor-isolated initializer 'init(minimumDistance:coordinateSpace:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
80 | )
81 | .gesture(
82 | DragGesture()
| `- warning: call to main actor-isolated initializer 'init(minimumDistance:coordinateSpace:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
83 | .onChanged { gestureValue in
84 | configuration.onEditingChanged(true)
SwiftUI.DragGesture.init:7:37: note: calls to initializer 'init(minimumDistance:coordinateSpace:)' from outside of its actor context are implicitly asynchronous
5 | @available(visionOS, introduced: 1.0, deprecated: 100000.0, message: "use overload that accepts a CoordinateSpaceProtocol instead")
6 | @available(tvOS, unavailable)
7 | @MainActor @preconcurrency public init(minimumDistance: CGFloat = 10, coordinateSpace: CoordinateSpace = .local)}
| `- note: calls to initializer 'init(minimumDistance:coordinateSpace:)' from outside of its actor context are implicitly asynchronous
8 |
/Users/admin/builder/spi-builder-workspace/Sources/Sliders/PointSlider/Styles/Rectangular/RectangularPointSliderStyle.swift:161:22: warning: call to main actor-isolated initializer 'init()' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
159 | public init(track: Track, thumbSize: CGSize = CGSize(width: 27, height: 27), thumbInteractiveSize: CGSize = CGSize(width: 44, height: 44), options: PointSliderOptions = .defaultOptions) {
160 | self.track = track
161 | self.thumb = DefaultThumb()
| `- warning: call to main actor-isolated initializer 'init()' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
162 | self.thumbSize = thumbSize
163 | self.thumbInteractiveSize = thumbInteractiveSize
/Users/admin/builder/spi-builder-workspace/Sources/Sliders/Base/DefaultThumb.swift:4:12: note: calls to initializer 'init()' from outside of its actor context are implicitly asynchronous
2 |
3 | public struct DefaultThumb: View {
4 | public init() {}
| |- note: calls to initializer 'init()' from outside of its actor context are implicitly asynchronous
| `- note: main actor isolation inferred from conformance to protocol 'View'
5 | public var body: some View {
6 | Capsule()
/Users/admin/builder/spi-builder-workspace/Sources/Sliders/PointSlider/Styles/Rectangular/RectangularPointSliderStyle.swift:171:22: warning: call to main actor-isolated initializer 'init()' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
169 | public init(thumbSize: CGSize = CGSize(width: 27, height: 27), thumbInteractiveSize: CGSize = CGSize(width: 44, height: 44), options: PointSliderOptions = .defaultOptions) {
170 | self.track = DefaultRectangularPointTrack()
171 | self.thumb = DefaultThumb()
| `- warning: call to main actor-isolated initializer 'init()' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
172 | self.thumbSize = thumbSize
173 | self.thumbInteractiveSize = thumbInteractiveSize
/Users/admin/builder/spi-builder-workspace/Sources/Sliders/Base/DefaultThumb.swift:4:12: note: calls to initializer 'init()' from outside of its actor context are implicitly asynchronous
2 |
3 | public struct DefaultThumb: View {
4 | public init() {}
| |- note: calls to initializer 'init()' from outside of its actor context are implicitly asynchronous
| `- note: main actor isolation inferred from conformance to protocol 'View'
5 | public var body: some View {
6 | Capsule()
/Users/admin/builder/spi-builder-workspace/Sources/Sliders/PointTrack/EnvironmentValues+PointTrackConfiguration.swift:15:16: warning: static property 'defaultValue' is not concurrency-safe because non-'Sendable' type 'PointTrackConfiguration' may have shared mutable state; this is an error in the Swift 6 language mode
13 |
14 | struct PointTrackConfigurationKey: EnvironmentKey {
15 | static let defaultValue: PointTrackConfiguration = .defaultConfiguration
| |- warning: static property 'defaultValue' is not concurrency-safe because non-'Sendable' type 'PointTrackConfiguration' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'defaultValue' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
16 | }
17 |
/Users/admin/builder/spi-builder-workspace/Sources/Sliders/PointTrack/PointTrackConfiguration.swift:3:15: note: consider making struct 'PointTrackConfiguration' conform to the 'Sendable' protocol
1 | import SwiftUI
2 |
3 | public struct PointTrackConfiguration {
| `- note: consider making struct 'PointTrackConfiguration' conform to the 'Sendable' protocol
4 | public static let defaultConfiguration = PointTrackConfiguration()
5 |
/Users/admin/builder/spi-builder-workspace/Sources/Sliders/PointSlider/Styles/Rectangular/RectangularPointSliderStyle.swift:83:26: warning: sending value of non-Sendable type '(DragGesture.Value) -> Void' risks causing data races; this is an error in the Swift 6 language mode
81 | .gesture(
82 | DragGesture()
83 | .onChanged { gestureValue in
| |- warning: sending value of non-Sendable type '(DragGesture.Value) -> Void' risks causing data races; this is an error in the Swift 6 language mode
| `- note: sending value of non-Sendable type '(DragGesture.Value) -> Void' to main actor-isolated callee risks causing data races between main actor-isolated and local nonisolated uses
84 | configuration.onEditingChanged(true)
85 |
:
125 | configuration.y.wrappedValue = computedValueY
126 | }
127 | .onEnded { _ in
| `- note: access can happen concurrently
128 | configuration.dragOffset.wrappedValue = nil
129 | configuration.onEditingChanged(false)
/Users/admin/builder/spi-builder-workspace/Sources/Sliders/PointSlider/Styles/Rectangular/RectangularPointSliderStyle.swift:27:30: warning: sending value of non-Sendable type '(DragGesture.Value) -> Void' risks causing data races; this is an error in the Swift 6 language mode
25 | track.gesture(
26 | DragGesture(minimumDistance: 0)
27 | .onChanged { gestureValue in
| |- warning: sending value of non-Sendable type '(DragGesture.Value) -> Void' risks causing data races; this is an error in the Swift 6 language mode
| `- note: sending task-isolated value of non-Sendable type '(DragGesture.Value) -> Void' to main actor-isolated callee risks causing races in between task-isolated and main actor-isolated uses
28 | configuration.onEditingChanged(true)
29 |
[33/44] Compiling Sliders RangeSliderOptions.swift
/Users/admin/builder/spi-builder-workspace/Sources/Sliders/RangeSlider/Styles/RangeSliderOptions.swift:6:23: warning: static property 'forceAdjacentValue' is not concurrency-safe because non-'Sendable' type 'RangeSliderOptions' may have shared mutable state; this is an error in the Swift 6 language mode
1 | import SwiftUI
2 |
3 | public struct RangeSliderOptions: OptionSet {
| `- note: consider making struct 'RangeSliderOptions' conform to the 'Sendable' protocol
4 | public let rawValue: Int
5 |
6 | public static let forceAdjacentValue = RangeSliderOptions(rawValue: 1 << 0)
| |- warning: static property 'forceAdjacentValue' is not concurrency-safe because non-'Sendable' type 'RangeSliderOptions' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'forceAdjacentValue' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
7 | public static let defaultOptions: RangeSliderOptions = .forceAdjacentValue
8 |
/Users/admin/builder/spi-builder-workspace/Sources/Sliders/RangeSlider/Styles/RangeSliderOptions.swift:7:23: warning: static property 'defaultOptions' is not concurrency-safe because non-'Sendable' type 'RangeSliderOptions' may have shared mutable state; this is an error in the Swift 6 language mode
1 | import SwiftUI
2 |
3 | public struct RangeSliderOptions: OptionSet {
| `- note: consider making struct 'RangeSliderOptions' conform to the 'Sendable' protocol
4 | public let rawValue: Int
5 |
6 | public static let forceAdjacentValue = RangeSliderOptions(rawValue: 1 << 0)
7 | public static let defaultOptions: RangeSliderOptions = .forceAdjacentValue
| |- warning: static property 'defaultOptions' is not concurrency-safe because non-'Sendable' type 'RangeSliderOptions' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'defaultOptions' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
8 |
9 | public init(rawValue: Int) {
/Users/admin/builder/spi-builder-workspace/Sources/Sliders/RangeSlider/Styles/Vertical/VerticalRangeSliderStyle.swift:47:26: warning: call to main actor-isolated instance method 'onChanged' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
45 | .gesture(
46 | DragGesture()
47 | .onChanged { gestureValue in
| `- warning: call to main actor-isolated instance method 'onChanged' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
48 | configuration.onEditingChanged(true)
49 |
SwiftUICore.Gesture.onChanged:2:40: note: calls to instance method 'onChanged' from outside of its actor context are implicitly asynchronous
1 | protocol Gesture {
2 | @MainActor @preconcurrency public func onChanged(_ action: @escaping (Self.Value) -> Void) -> _ChangedGesture<Self>}
| `- note: calls to instance method 'onChanged' from outside of its actor context are implicitly asynchronous
3 |
/Users/admin/builder/spi-builder-workspace/Sources/Sliders/RangeSlider/Styles/Vertical/VerticalRangeSliderStyle.swift:46:21: warning: call to main actor-isolated initializer 'init(minimumDistance:coordinateSpace:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
44 | )
45 | .gesture(
46 | DragGesture()
| `- warning: call to main actor-isolated initializer 'init(minimumDistance:coordinateSpace:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
47 | .onChanged { gestureValue in
48 | configuration.onEditingChanged(true)
SwiftUI.DragGesture.init:7:37: note: calls to initializer 'init(minimumDistance:coordinateSpace:)' from outside of its actor context are implicitly asynchronous
5 | @available(visionOS, introduced: 1.0, deprecated: 100000.0, message: "use overload that accepts a CoordinateSpaceProtocol instead")
6 | @available(tvOS, unavailable)
7 | @MainActor @preconcurrency public init(minimumDistance: CGFloat = 10, coordinateSpace: CoordinateSpace = .local)}
| `- note: calls to initializer 'init(minimumDistance:coordinateSpace:)' from outside of its actor context are implicitly asynchronous
8 |
/Users/admin/builder/spi-builder-workspace/Sources/Sliders/RangeSlider/Styles/Vertical/VerticalRangeSliderStyle.swift:100:26: warning: call to main actor-isolated instance method 'onChanged' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
98 | .gesture(
99 | DragGesture()
100 | .onChanged { gestureValue in
| `- warning: call to main actor-isolated instance method 'onChanged' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
101 | configuration.onEditingChanged(true)
102 |
SwiftUICore.Gesture.onChanged:2:40: note: calls to instance method 'onChanged' from outside of its actor context are implicitly asynchronous
1 | protocol Gesture {
2 | @MainActor @preconcurrency public func onChanged(_ action: @escaping (Self.Value) -> Void) -> _ChangedGesture<Self>}
| `- note: calls to instance method 'onChanged' from outside of its actor context are implicitly asynchronous
3 |
/Users/admin/builder/spi-builder-workspace/Sources/Sliders/RangeSlider/Styles/Vertical/VerticalRangeSliderStyle.swift:99:21: warning: call to main actor-isolated initializer 'init(minimumDistance:coordinateSpace:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
97 | )
98 | .gesture(
99 | DragGesture()
| `- warning: call to main actor-isolated initializer 'init(minimumDistance:coordinateSpace:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
100 | .onChanged { gestureValue in
101 | configuration.onEditingChanged(true)
SwiftUI.DragGesture.init:7:37: note: calls to initializer 'init(minimumDistance:coordinateSpace:)' from outside of its actor context are implicitly asynchronous
5 | @available(visionOS, introduced: 1.0, deprecated: 100000.0, message: "use overload that accepts a CoordinateSpaceProtocol instead")
6 | @available(tvOS, unavailable)
7 | @MainActor @preconcurrency public init(minimumDistance: CGFloat = 10, coordinateSpace: CoordinateSpace = .local)}
| `- note: calls to initializer 'init(minimumDistance:coordinateSpace:)' from outside of its actor context are implicitly asynchronous
8 |
/Users/admin/builder/spi-builder-workspace/Sources/Sliders/RangeSlider/Styles/Vertical/VerticalRangeSliderStyle.swift:170:27: warning: call to main actor-isolated initializer 'init()' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
168 | public init(track: Track, lowerThumbSize: CGSize = CGSize(width: 27, height: 27), upperThumbSize: CGSize = CGSize(width: 27, height: 27), lowerThumbInteractiveSize: CGSize = CGSize(width: 44, height: 44), upperThumbInteractiveSize: CGSize = CGSize(width: 44, height: 44), options: RangeSliderOptions = .defaultOptions) {
169 | self.track = track
170 | self.lowerThumb = DefaultThumb()
| `- warning: call to main actor-isolated initializer 'init()' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
171 | self.upperThumb = DefaultThumb()
172 | self.lowerThumbSize = lowerThumbSize
/Users/admin/builder/spi-builder-workspace/Sources/Sliders/Base/DefaultThumb.swift:4:12: note: calls to initializer 'init()' from outside of its actor context are implicitly asynchronous
2 |
3 | public struct DefaultThumb: View {
4 | public init() {}
| |- note: calls to initializer 'init()' from outside of its actor context are implicitly asynchronous
| `- note: main actor isolation inferred from conformance to protocol 'View'
5 | public var body: some View {
6 | Capsule()
/Users/admin/builder/spi-builder-workspace/Sources/Sliders/RangeSlider/Styles/Vertical/VerticalRangeSliderStyle.swift:171:27: warning: call to main actor-isolated initializer 'init()' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
169 | self.track = track
170 | self.lowerThumb = DefaultThumb()
171 | self.upperThumb = DefaultThumb()
| `- warning: call to main actor-isolated initializer 'init()' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
172 | self.lowerThumbSize = lowerThumbSize
173 | self.upperThumbSize = upperThumbSize
/Users/admin/builder/spi-builder-workspace/Sources/Sliders/Base/DefaultThumb.swift:4:12: note: calls to initializer 'init()' from outside of its actor context are implicitly asynchronous
2 |
3 | public struct DefaultThumb: View {
4 | public init() {}
| |- note: calls to initializer 'init()' from outside of its actor context are implicitly asynchronous
| `- note: main actor isolation inferred from conformance to protocol 'View'
5 | public var body: some View {
6 | Capsule()
/Users/admin/builder/spi-builder-workspace/Sources/Sliders/RangeSlider/Styles/Vertical/VerticalRangeSliderStyle.swift:183:27: warning: call to main actor-isolated initializer 'init()' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
181 | public init(lowerThumbSize: CGSize = CGSize(width: 27, height: 27), upperThumbSize: CGSize = CGSize(width: 27, height: 27), lowerThumbInteractiveSize: CGSize = CGSize(width: 44, height: 44), upperThumbInteractiveSize: CGSize = CGSize(width: 44, height: 44), options: RangeSliderOptions = .defaultOptions) {
182 | self.track = DefaultVerticalRangeTrack()
183 | self.lowerThumb = DefaultThumb()
| `- warning: call to main actor-isolated initializer 'init()' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
184 | self.upperThumb = DefaultThumb()
185 | self.lowerThumbSize = lowerThumbSize
/Users/admin/builder/spi-builder-workspace/Sources/Sliders/Base/DefaultThumb.swift:4:12: note: calls to initializer 'init()' from outside of its actor context are implicitly asynchronous
2 |
3 | public struct DefaultThumb: View {
4 | public init() {}
| |- note: calls to initializer 'init()' from outside of its actor context are implicitly asynchronous
| `- note: main actor isolation inferred from conformance to protocol 'View'
5 | public var body: some View {
6 | Capsule()
/Users/admin/builder/spi-builder-workspace/Sources/Sliders/RangeSlider/Styles/Vertical/VerticalRangeSliderStyle.swift:184:27: warning: call to main actor-isolated initializer 'init()' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
182 | self.track = DefaultVerticalRangeTrack()
183 | self.lowerThumb = DefaultThumb()
184 | self.upperThumb = DefaultThumb()
| `- warning: call to main actor-isolated initializer 'init()' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
185 | self.lowerThumbSize = lowerThumbSize
186 | self.upperThumbSize = upperThumbSize
/Users/admin/builder/spi-builder-workspace/Sources/Sliders/Base/DefaultThumb.swift:4:12: note: calls to initializer 'init()' from outside of its actor context are implicitly asynchronous
2 |
3 | public struct DefaultThumb: View {
4 | public init() {}
| |- note: calls to initializer 'init()' from outside of its actor context are implicitly asynchronous
| `- note: main actor isolation inferred from conformance to protocol 'View'
5 | public var body: some View {
6 | Capsule()
/Users/admin/builder/spi-builder-workspace/Sources/Sliders/RangeTrack/EnvironmentValues+RangeTrackConfiguration.swift:15:16: warning: static property 'defaultValue' is not concurrency-safe because non-'Sendable' type 'RangeTrackConfiguration' may have shared mutable state; this is an error in the Swift 6 language mode
13 |
14 | struct RangeTrackConfigurationKey: EnvironmentKey {
15 | static let defaultValue: RangeTrackConfiguration = .defaultConfiguration
| |- warning: static property 'defaultValue' is not concurrency-safe because non-'Sendable' type 'RangeTrackConfiguration' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'defaultValue' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
16 | }
17 |
/Users/admin/builder/spi-builder-workspace/Sources/Sliders/RangeTrack/RangeTrackConfiguration.swift:3:15: note: consider making struct 'RangeTrackConfiguration' conform to the 'Sendable' protocol
1 | import SwiftUI
2 |
3 | public struct RangeTrackConfiguration {
| `- note: consider making struct 'RangeTrackConfiguration' conform to the 'Sendable' protocol
4 | public static let defaultConfiguration = RangeTrackConfiguration()
5 |
/Users/admin/builder/spi-builder-workspace/Sources/Sliders/RangeSlider/Styles/Vertical/VerticalRangeSliderStyle.swift:100:26: warning: sending value of non-Sendable type '(DragGesture.Value) -> Void' risks causing data races; this is an error in the Swift 6 language mode
98 | .gesture(
99 | DragGesture()
100 | .onChanged { gestureValue in
| |- warning: sending value of non-Sendable type '(DragGesture.Value) -> Void' risks causing data races; this is an error in the Swift 6 language mode
| `- note: sending value of non-Sendable type '(DragGesture.Value) -> Void' to main actor-isolated callee risks causing data races between main actor-isolated and local nonisolated uses
101 | configuration.onEditingChanged(true)
102 |
:
128 | )
129 | }
130 | .onEnded { _ in
| `- note: access can happen concurrently
131 | configuration.dragOffset.wrappedValue = nil
132 | configuration.onEditingChanged(false)
/Users/admin/builder/spi-builder-workspace/Sources/Sliders/RangeSlider/Styles/Vertical/VerticalRangeSliderStyle.swift:47:26: warning: sending value of non-Sendable type '(DragGesture.Value) -> Void' risks causing data races; this is an error in the Swift 6 language mode
45 | .gesture(
46 | DragGesture()
47 | .onChanged { gestureValue in
| |- warning: sending value of non-Sendable type '(DragGesture.Value) -> Void' risks causing data races; this is an error in the Swift 6 language mode
| `- note: sending task-isolated value of non-Sendable type '(DragGesture.Value) -> Void' to main actor-isolated callee risks causing races in between task-isolated and main actor-isolated uses
48 | configuration.onEditingChanged(true)
49 |
[34/44] Compiling Sliders VerticalRangeSliderStyle.swift
/Users/admin/builder/spi-builder-workspace/Sources/Sliders/RangeSlider/Styles/RangeSliderOptions.swift:6:23: warning: static property 'forceAdjacentValue' is not concurrency-safe because non-'Sendable' type 'RangeSliderOptions' may have shared mutable state; this is an error in the Swift 6 language mode
1 | import SwiftUI
2 |
3 | public struct RangeSliderOptions: OptionSet {
| `- note: consider making struct 'RangeSliderOptions' conform to the 'Sendable' protocol
4 | public let rawValue: Int
5 |
6 | public static let forceAdjacentValue = RangeSliderOptions(rawValue: 1 << 0)
| |- warning: static property 'forceAdjacentValue' is not concurrency-safe because non-'Sendable' type 'RangeSliderOptions' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'forceAdjacentValue' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
7 | public static let defaultOptions: RangeSliderOptions = .forceAdjacentValue
8 |
/Users/admin/builder/spi-builder-workspace/Sources/Sliders/RangeSlider/Styles/RangeSliderOptions.swift:7:23: warning: static property 'defaultOptions' is not concurrency-safe because non-'Sendable' type 'RangeSliderOptions' may have shared mutable state; this is an error in the Swift 6 language mode
1 | import SwiftUI
2 |
3 | public struct RangeSliderOptions: OptionSet {
| `- note: consider making struct 'RangeSliderOptions' conform to the 'Sendable' protocol
4 | public let rawValue: Int
5 |
6 | public static let forceAdjacentValue = RangeSliderOptions(rawValue: 1 << 0)
7 | public static let defaultOptions: RangeSliderOptions = .forceAdjacentValue
| |- warning: static property 'defaultOptions' is not concurrency-safe because non-'Sendable' type 'RangeSliderOptions' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'defaultOptions' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
8 |
9 | public init(rawValue: Int) {
/Users/admin/builder/spi-builder-workspace/Sources/Sliders/RangeSlider/Styles/Vertical/VerticalRangeSliderStyle.swift:47:26: warning: call to main actor-isolated instance method 'onChanged' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
45 | .gesture(
46 | DragGesture()
47 | .onChanged { gestureValue in
| `- warning: call to main actor-isolated instance method 'onChanged' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
48 | configuration.onEditingChanged(true)
49 |
SwiftUICore.Gesture.onChanged:2:40: note: calls to instance method 'onChanged' from outside of its actor context are implicitly asynchronous
1 | protocol Gesture {
2 | @MainActor @preconcurrency public func onChanged(_ action: @escaping (Self.Value) -> Void) -> _ChangedGesture<Self>}
| `- note: calls to instance method 'onChanged' from outside of its actor context are implicitly asynchronous
3 |
/Users/admin/builder/spi-builder-workspace/Sources/Sliders/RangeSlider/Styles/Vertical/VerticalRangeSliderStyle.swift:46:21: warning: call to main actor-isolated initializer 'init(minimumDistance:coordinateSpace:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
44 | )
45 | .gesture(
46 | DragGesture()
| `- warning: call to main actor-isolated initializer 'init(minimumDistance:coordinateSpace:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
47 | .onChanged { gestureValue in
48 | configuration.onEditingChanged(true)
SwiftUI.DragGesture.init:7:37: note: calls to initializer 'init(minimumDistance:coordinateSpace:)' from outside of its actor context are implicitly asynchronous
5 | @available(visionOS, introduced: 1.0, deprecated: 100000.0, message: "use overload that accepts a CoordinateSpaceProtocol instead")
6 | @available(tvOS, unavailable)
7 | @MainActor @preconcurrency public init(minimumDistance: CGFloat = 10, coordinateSpace: CoordinateSpace = .local)}
| `- note: calls to initializer 'init(minimumDistance:coordinateSpace:)' from outside of its actor context are implicitly asynchronous
8 |
/Users/admin/builder/spi-builder-workspace/Sources/Sliders/RangeSlider/Styles/Vertical/VerticalRangeSliderStyle.swift:100:26: warning: call to main actor-isolated instance method 'onChanged' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
98 | .gesture(
99 | DragGesture()
100 | .onChanged { gestureValue in
| `- warning: call to main actor-isolated instance method 'onChanged' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
101 | configuration.onEditingChanged(true)
102 |
SwiftUICore.Gesture.onChanged:2:40: note: calls to instance method 'onChanged' from outside of its actor context are implicitly asynchronous
1 | protocol Gesture {
2 | @MainActor @preconcurrency public func onChanged(_ action: @escaping (Self.Value) -> Void) -> _ChangedGesture<Self>}
| `- note: calls to instance method 'onChanged' from outside of its actor context are implicitly asynchronous
3 |
/Users/admin/builder/spi-builder-workspace/Sources/Sliders/RangeSlider/Styles/Vertical/VerticalRangeSliderStyle.swift:99:21: warning: call to main actor-isolated initializer 'init(minimumDistance:coordinateSpace:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
97 | )
98 | .gesture(
99 | DragGesture()
| `- warning: call to main actor-isolated initializer 'init(minimumDistance:coordinateSpace:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
100 | .onChanged { gestureValue in
101 | configuration.onEditingChanged(true)
SwiftUI.DragGesture.init:7:37: note: calls to initializer 'init(minimumDistance:coordinateSpace:)' from outside of its actor context are implicitly asynchronous
5 | @available(visionOS, introduced: 1.0, deprecated: 100000.0, message: "use overload that accepts a CoordinateSpaceProtocol instead")
6 | @available(tvOS, unavailable)
7 | @MainActor @preconcurrency public init(minimumDistance: CGFloat = 10, coordinateSpace: CoordinateSpace = .local)}
| `- note: calls to initializer 'init(minimumDistance:coordinateSpace:)' from outside of its actor context are implicitly asynchronous
8 |
/Users/admin/builder/spi-builder-workspace/Sources/Sliders/RangeSlider/Styles/Vertical/VerticalRangeSliderStyle.swift:170:27: warning: call to main actor-isolated initializer 'init()' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
168 | public init(track: Track, lowerThumbSize: CGSize = CGSize(width: 27, height: 27), upperThumbSize: CGSize = CGSize(width: 27, height: 27), lowerThumbInteractiveSize: CGSize = CGSize(width: 44, height: 44), upperThumbInteractiveSize: CGSize = CGSize(width: 44, height: 44), options: RangeSliderOptions = .defaultOptions) {
169 | self.track = track
170 | self.lowerThumb = DefaultThumb()
| `- warning: call to main actor-isolated initializer 'init()' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
171 | self.upperThumb = DefaultThumb()
172 | self.lowerThumbSize = lowerThumbSize
/Users/admin/builder/spi-builder-workspace/Sources/Sliders/Base/DefaultThumb.swift:4:12: note: calls to initializer 'init()' from outside of its actor context are implicitly asynchronous
2 |
3 | public struct DefaultThumb: View {
4 | public init() {}
| |- note: calls to initializer 'init()' from outside of its actor context are implicitly asynchronous
| `- note: main actor isolation inferred from conformance to protocol 'View'
5 | public var body: some View {
6 | Capsule()
/Users/admin/builder/spi-builder-workspace/Sources/Sliders/RangeSlider/Styles/Vertical/VerticalRangeSliderStyle.swift:171:27: warning: call to main actor-isolated initializer 'init()' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
169 | self.track = track
170 | self.lowerThumb = DefaultThumb()
171 | self.upperThumb = DefaultThumb()
| `- warning: call to main actor-isolated initializer 'init()' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
172 | self.lowerThumbSize = lowerThumbSize
173 | self.upperThumbSize = upperThumbSize
/Users/admin/builder/spi-builder-workspace/Sources/Sliders/Base/DefaultThumb.swift:4:12: note: calls to initializer 'init()' from outside of its actor context are implicitly asynchronous
2 |
3 | public struct DefaultThumb: View {
4 | public init() {}
| |- note: calls to initializer 'init()' from outside of its actor context are implicitly asynchronous
| `- note: main actor isolation inferred from conformance to protocol 'View'
5 | public var body: some View {
6 | Capsule()
/Users/admin/builder/spi-builder-workspace/Sources/Sliders/RangeSlider/Styles/Vertical/VerticalRangeSliderStyle.swift:183:27: warning: call to main actor-isolated initializer 'init()' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
181 | public init(lowerThumbSize: CGSize = CGSize(width: 27, height: 27), upperThumbSize: CGSize = CGSize(width: 27, height: 27), lowerThumbInteractiveSize: CGSize = CGSize(width: 44, height: 44), upperThumbInteractiveSize: CGSize = CGSize(width: 44, height: 44), options: RangeSliderOptions = .defaultOptions) {
182 | self.track = DefaultVerticalRangeTrack()
183 | self.lowerThumb = DefaultThumb()
| `- warning: call to main actor-isolated initializer 'init()' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
184 | self.upperThumb = DefaultThumb()
185 | self.lowerThumbSize = lowerThumbSize
/Users/admin/builder/spi-builder-workspace/Sources/Sliders/Base/DefaultThumb.swift:4:12: note: calls to initializer 'init()' from outside of its actor context are implicitly asynchronous
2 |
3 | public struct DefaultThumb: View {
4 | public init() {}
| |- note: calls to initializer 'init()' from outside of its actor context are implicitly asynchronous
| `- note: main actor isolation inferred from conformance to protocol 'View'
5 | public var body: some View {
6 | Capsule()
/Users/admin/builder/spi-builder-workspace/Sources/Sliders/RangeSlider/Styles/Vertical/VerticalRangeSliderStyle.swift:184:27: warning: call to main actor-isolated initializer 'init()' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
182 | self.track = DefaultVerticalRangeTrack()
183 | self.lowerThumb = DefaultThumb()
184 | self.upperThumb = DefaultThumb()
| `- warning: call to main actor-isolated initializer 'init()' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
185 | self.lowerThumbSize = lowerThumbSize
186 | self.upperThumbSize = upperThumbSize
/Users/admin/builder/spi-builder-workspace/Sources/Sliders/Base/DefaultThumb.swift:4:12: note: calls to initializer 'init()' from outside of its actor context are implicitly asynchronous
2 |
3 | public struct DefaultThumb: View {
4 | public init() {}
| |- note: calls to initializer 'init()' from outside of its actor context are implicitly asynchronous
| `- note: main actor isolation inferred from conformance to protocol 'View'
5 | public var body: some View {
6 | Capsule()
/Users/admin/builder/spi-builder-workspace/Sources/Sliders/RangeTrack/EnvironmentValues+RangeTrackConfiguration.swift:15:16: warning: static property 'defaultValue' is not concurrency-safe because non-'Sendable' type 'RangeTrackConfiguration' may have shared mutable state; this is an error in the Swift 6 language mode
13 |
14 | struct RangeTrackConfigurationKey: EnvironmentKey {
15 | static let defaultValue: RangeTrackConfiguration = .defaultConfiguration
| |- warning: static property 'defaultValue' is not concurrency-safe because non-'Sendable' type 'RangeTrackConfiguration' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'defaultValue' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
16 | }
17 |
/Users/admin/builder/spi-builder-workspace/Sources/Sliders/RangeTrack/RangeTrackConfiguration.swift:3:15: note: consider making struct 'RangeTrackConfiguration' conform to the 'Sendable' protocol
1 | import SwiftUI
2 |
3 | public struct RangeTrackConfiguration {
| `- note: consider making struct 'RangeTrackConfiguration' conform to the 'Sendable' protocol
4 | public static let defaultConfiguration = RangeTrackConfiguration()
5 |
/Users/admin/builder/spi-builder-workspace/Sources/Sliders/RangeSlider/Styles/Vertical/VerticalRangeSliderStyle.swift:100:26: warning: sending value of non-Sendable type '(DragGesture.Value) -> Void' risks causing data races; this is an error in the Swift 6 language mode
98 | .gesture(
99 | DragGesture()
100 | .onChanged { gestureValue in
| |- warning: sending value of non-Sendable type '(DragGesture.Value) -> Void' risks causing data races; this is an error in the Swift 6 language mode
| `- note: sending value of non-Sendable type '(DragGesture.Value) -> Void' to main actor-isolated callee risks causing data races between main actor-isolated and local nonisolated uses
101 | configuration.onEditingChanged(true)
102 |
:
128 | )
129 | }
130 | .onEnded { _ in
| `- note: access can happen concurrently
131 | configuration.dragOffset.wrappedValue = nil
132 | configuration.onEditingChanged(false)
/Users/admin/builder/spi-builder-workspace/Sources/Sliders/RangeSlider/Styles/Vertical/VerticalRangeSliderStyle.swift:47:26: warning: sending value of non-Sendable type '(DragGesture.Value) -> Void' risks causing data races; this is an error in the Swift 6 language mode
45 | .gesture(
46 | DragGesture()
47 | .onChanged { gestureValue in
| |- warning: sending value of non-Sendable type '(DragGesture.Value) -> Void' risks causing data races; this is an error in the Swift 6 language mode
| `- note: sending task-isolated value of non-Sendable type '(DragGesture.Value) -> Void' to main actor-isolated callee risks causing races in between task-isolated and main actor-isolated uses
48 | configuration.onEditingChanged(true)
49 |
[35/44] Compiling Sliders EnvironmentValues+RangeTrackConfiguration.swift
/Users/admin/builder/spi-builder-workspace/Sources/Sliders/RangeSlider/Styles/RangeSliderOptions.swift:6:23: warning: static property 'forceAdjacentValue' is not concurrency-safe because non-'Sendable' type 'RangeSliderOptions' may have shared mutable state; this is an error in the Swift 6 language mode
1 | import SwiftUI
2 |
3 | public struct RangeSliderOptions: OptionSet {
| `- note: consider making struct 'RangeSliderOptions' conform to the 'Sendable' protocol
4 | public let rawValue: Int
5 |
6 | public static let forceAdjacentValue = RangeSliderOptions(rawValue: 1 << 0)
| |- warning: static property 'forceAdjacentValue' is not concurrency-safe because non-'Sendable' type 'RangeSliderOptions' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'forceAdjacentValue' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
7 | public static let defaultOptions: RangeSliderOptions = .forceAdjacentValue
8 |
/Users/admin/builder/spi-builder-workspace/Sources/Sliders/RangeSlider/Styles/RangeSliderOptions.swift:7:23: warning: static property 'defaultOptions' is not concurrency-safe because non-'Sendable' type 'RangeSliderOptions' may have shared mutable state; this is an error in the Swift 6 language mode
1 | import SwiftUI
2 |
3 | public struct RangeSliderOptions: OptionSet {
| `- note: consider making struct 'RangeSliderOptions' conform to the 'Sendable' protocol
4 | public let rawValue: Int
5 |
6 | public static let forceAdjacentValue = RangeSliderOptions(rawValue: 1 << 0)
7 | public static let defaultOptions: RangeSliderOptions = .forceAdjacentValue
| |- warning: static property 'defaultOptions' is not concurrency-safe because non-'Sendable' type 'RangeSliderOptions' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'defaultOptions' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
8 |
9 | public init(rawValue: Int) {
/Users/admin/builder/spi-builder-workspace/Sources/Sliders/RangeSlider/Styles/Vertical/VerticalRangeSliderStyle.swift:47:26: warning: call to main actor-isolated instance method 'onChanged' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
45 | .gesture(
46 | DragGesture()
47 | .onChanged { gestureValue in
| `- warning: call to main actor-isolated instance method 'onChanged' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
48 | configuration.onEditingChanged(true)
49 |
SwiftUICore.Gesture.onChanged:2:40: note: calls to instance method 'onChanged' from outside of its actor context are implicitly asynchronous
1 | protocol Gesture {
2 | @MainActor @preconcurrency public func onChanged(_ action: @escaping (Self.Value) -> Void) -> _ChangedGesture<Self>}
| `- note: calls to instance method 'onChanged' from outside of its actor context are implicitly asynchronous
3 |
/Users/admin/builder/spi-builder-workspace/Sources/Sliders/RangeSlider/Styles/Vertical/VerticalRangeSliderStyle.swift:46:21: warning: call to main actor-isolated initializer 'init(minimumDistance:coordinateSpace:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
44 | )
45 | .gesture(
46 | DragGesture()
| `- warning: call to main actor-isolated initializer 'init(minimumDistance:coordinateSpace:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
47 | .onChanged { gestureValue in
48 | configuration.onEditingChanged(true)
SwiftUI.DragGesture.init:7:37: note: calls to initializer 'init(minimumDistance:coordinateSpace:)' from outside of its actor context are implicitly asynchronous
5 | @available(visionOS, introduced: 1.0, deprecated: 100000.0, message: "use overload that accepts a CoordinateSpaceProtocol instead")
6 | @available(tvOS, unavailable)
7 | @MainActor @preconcurrency public init(minimumDistance: CGFloat = 10, coordinateSpace: CoordinateSpace = .local)}
| `- note: calls to initializer 'init(minimumDistance:coordinateSpace:)' from outside of its actor context are implicitly asynchronous
8 |
/Users/admin/builder/spi-builder-workspace/Sources/Sliders/RangeSlider/Styles/Vertical/VerticalRangeSliderStyle.swift:100:26: warning: call to main actor-isolated instance method 'onChanged' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
98 | .gesture(
99 | DragGesture()
100 | .onChanged { gestureValue in
| `- warning: call to main actor-isolated instance method 'onChanged' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
101 | configuration.onEditingChanged(true)
102 |
SwiftUICore.Gesture.onChanged:2:40: note: calls to instance method 'onChanged' from outside of its actor context are implicitly asynchronous
1 | protocol Gesture {
2 | @MainActor @preconcurrency public func onChanged(_ action: @escaping (Self.Value) -> Void) -> _ChangedGesture<Self>}
| `- note: calls to instance method 'onChanged' from outside of its actor context are implicitly asynchronous
3 |
/Users/admin/builder/spi-builder-workspace/Sources/Sliders/RangeSlider/Styles/Vertical/VerticalRangeSliderStyle.swift:99:21: warning: call to main actor-isolated initializer 'init(minimumDistance:coordinateSpace:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
97 | )
98 | .gesture(
99 | DragGesture()
| `- warning: call to main actor-isolated initializer 'init(minimumDistance:coordinateSpace:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
100 | .onChanged { gestureValue in
101 | configuration.onEditingChanged(true)
SwiftUI.DragGesture.init:7:37: note: calls to initializer 'init(minimumDistance:coordinateSpace:)' from outside of its actor context are implicitly asynchronous
5 | @available(visionOS, introduced: 1.0, deprecated: 100000.0, message: "use overload that accepts a CoordinateSpaceProtocol instead")
6 | @available(tvOS, unavailable)
7 | @MainActor @preconcurrency public init(minimumDistance: CGFloat = 10, coordinateSpace: CoordinateSpace = .local)}
| `- note: calls to initializer 'init(minimumDistance:coordinateSpace:)' from outside of its actor context are implicitly asynchronous
8 |
/Users/admin/builder/spi-builder-workspace/Sources/Sliders/RangeSlider/Styles/Vertical/VerticalRangeSliderStyle.swift:170:27: warning: call to main actor-isolated initializer 'init()' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
168 | public init(track: Track, lowerThumbSize: CGSize = CGSize(width: 27, height: 27), upperThumbSize: CGSize = CGSize(width: 27, height: 27), lowerThumbInteractiveSize: CGSize = CGSize(width: 44, height: 44), upperThumbInteractiveSize: CGSize = CGSize(width: 44, height: 44), options: RangeSliderOptions = .defaultOptions) {
169 | self.track = track
170 | self.lowerThumb = DefaultThumb()
| `- warning: call to main actor-isolated initializer 'init()' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
171 | self.upperThumb = DefaultThumb()
172 | self.lowerThumbSize = lowerThumbSize
/Users/admin/builder/spi-builder-workspace/Sources/Sliders/Base/DefaultThumb.swift:4:12: note: calls to initializer 'init()' from outside of its actor context are implicitly asynchronous
2 |
3 | public struct DefaultThumb: View {
4 | public init() {}
| |- note: calls to initializer 'init()' from outside of its actor context are implicitly asynchronous
| `- note: main actor isolation inferred from conformance to protocol 'View'
5 | public var body: some View {
6 | Capsule()
/Users/admin/builder/spi-builder-workspace/Sources/Sliders/RangeSlider/Styles/Vertical/VerticalRangeSliderStyle.swift:171:27: warning: call to main actor-isolated initializer 'init()' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
169 | self.track = track
170 | self.lowerThumb = DefaultThumb()
171 | self.upperThumb = DefaultThumb()
| `- warning: call to main actor-isolated initializer 'init()' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
172 | self.lowerThumbSize = lowerThumbSize
173 | self.upperThumbSize = upperThumbSize
/Users/admin/builder/spi-builder-workspace/Sources/Sliders/Base/DefaultThumb.swift:4:12: note: calls to initializer 'init()' from outside of its actor context are implicitly asynchronous
2 |
3 | public struct DefaultThumb: View {
4 | public init() {}
| |- note: calls to initializer 'init()' from outside of its actor context are implicitly asynchronous
| `- note: main actor isolation inferred from conformance to protocol 'View'
5 | public var body: some View {
6 | Capsule()
/Users/admin/builder/spi-builder-workspace/Sources/Sliders/RangeSlider/Styles/Vertical/VerticalRangeSliderStyle.swift:183:27: warning: call to main actor-isolated initializer 'init()' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
181 | public init(lowerThumbSize: CGSize = CGSize(width: 27, height: 27), upperThumbSize: CGSize = CGSize(width: 27, height: 27), lowerThumbInteractiveSize: CGSize = CGSize(width: 44, height: 44), upperThumbInteractiveSize: CGSize = CGSize(width: 44, height: 44), options: RangeSliderOptions = .defaultOptions) {
182 | self.track = DefaultVerticalRangeTrack()
183 | self.lowerThumb = DefaultThumb()
| `- warning: call to main actor-isolated initializer 'init()' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
184 | self.upperThumb = DefaultThumb()
185 | self.lowerThumbSize = lowerThumbSize
/Users/admin/builder/spi-builder-workspace/Sources/Sliders/Base/DefaultThumb.swift:4:12: note: calls to initializer 'init()' from outside of its actor context are implicitly asynchronous
2 |
3 | public struct DefaultThumb: View {
4 | public init() {}
| |- note: calls to initializer 'init()' from outside of its actor context are implicitly asynchronous
| `- note: main actor isolation inferred from conformance to protocol 'View'
5 | public var body: some View {
6 | Capsule()
/Users/admin/builder/spi-builder-workspace/Sources/Sliders/RangeSlider/Styles/Vertical/VerticalRangeSliderStyle.swift:184:27: warning: call to main actor-isolated initializer 'init()' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
182 | self.track = DefaultVerticalRangeTrack()
183 | self.lowerThumb = DefaultThumb()
184 | self.upperThumb = DefaultThumb()
| `- warning: call to main actor-isolated initializer 'init()' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
185 | self.lowerThumbSize = lowerThumbSize
186 | self.upperThumbSize = upperThumbSize
/Users/admin/builder/spi-builder-workspace/Sources/Sliders/Base/DefaultThumb.swift:4:12: note: calls to initializer 'init()' from outside of its actor context are implicitly asynchronous
2 |
3 | public struct DefaultThumb: View {
4 | public init() {}
| |- note: calls to initializer 'init()' from outside of its actor context are implicitly asynchronous
| `- note: main actor isolation inferred from conformance to protocol 'View'
5 | public var body: some View {
6 | Capsule()
/Users/admin/builder/spi-builder-workspace/Sources/Sliders/RangeTrack/EnvironmentValues+RangeTrackConfiguration.swift:15:16: warning: static property 'defaultValue' is not concurrency-safe because non-'Sendable' type 'RangeTrackConfiguration' may have shared mutable state; this is an error in the Swift 6 language mode
13 |
14 | struct RangeTrackConfigurationKey: EnvironmentKey {
15 | static let defaultValue: RangeTrackConfiguration = .defaultConfiguration
| |- warning: static property 'defaultValue' is not concurrency-safe because non-'Sendable' type 'RangeTrackConfiguration' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'defaultValue' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
16 | }
17 |
/Users/admin/builder/spi-builder-workspace/Sources/Sliders/RangeTrack/RangeTrackConfiguration.swift:3:15: note: consider making struct 'RangeTrackConfiguration' conform to the 'Sendable' protocol
1 | import SwiftUI
2 |
3 | public struct RangeTrackConfiguration {
| `- note: consider making struct 'RangeTrackConfiguration' conform to the 'Sendable' protocol
4 | public static let defaultConfiguration = RangeTrackConfiguration()
5 |
/Users/admin/builder/spi-builder-workspace/Sources/Sliders/RangeSlider/Styles/Vertical/VerticalRangeSliderStyle.swift:100:26: warning: sending value of non-Sendable type '(DragGesture.Value) -> Void' risks causing data races; this is an error in the Swift 6 language mode
98 | .gesture(
99 | DragGesture()
100 | .onChanged { gestureValue in
| |- warning: sending value of non-Sendable type '(DragGesture.Value) -> Void' risks causing data races; this is an error in the Swift 6 language mode
| `- note: sending value of non-Sendable type '(DragGesture.Value) -> Void' to main actor-isolated callee risks causing data races between main actor-isolated and local nonisolated uses
101 | configuration.onEditingChanged(true)
102 |
:
128 | )
129 | }
130 | .onEnded { _ in
| `- note: access can happen concurrently
131 | configuration.dragOffset.wrappedValue = nil
132 | configuration.onEditingChanged(false)
/Users/admin/builder/spi-builder-workspace/Sources/Sliders/RangeSlider/Styles/Vertical/VerticalRangeSliderStyle.swift:47:26: warning: sending value of non-Sendable type '(DragGesture.Value) -> Void' risks causing data races; this is an error in the Swift 6 language mode
45 | .gesture(
46 | DragGesture()
47 | .onChanged { gestureValue in
| |- warning: sending value of non-Sendable type '(DragGesture.Value) -> Void' risks causing data races; this is an error in the Swift 6 language mode
| `- note: sending task-isolated value of non-Sendable type '(DragGesture.Value) -> Void' to main actor-isolated callee risks causing races in between task-isolated and main actor-isolated uses
48 | configuration.onEditingChanged(true)
49 |
[36/44] Compiling Sliders EnvironmentValues+TrackRange.swift
/Users/admin/builder/spi-builder-workspace/Sources/Sliders/RangeSlider/Styles/RangeSliderOptions.swift:6:23: warning: static property 'forceAdjacentValue' is not concurrency-safe because non-'Sendable' type 'RangeSliderOptions' may have shared mutable state; this is an error in the Swift 6 language mode
1 | import SwiftUI
2 |
3 | public struct RangeSliderOptions: OptionSet {
| `- note: consider making struct 'RangeSliderOptions' conform to the 'Sendable' protocol
4 | public let rawValue: Int
5 |
6 | public static let forceAdjacentValue = RangeSliderOptions(rawValue: 1 << 0)
| |- warning: static property 'forceAdjacentValue' is not concurrency-safe because non-'Sendable' type 'RangeSliderOptions' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'forceAdjacentValue' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
7 | public static let defaultOptions: RangeSliderOptions = .forceAdjacentValue
8 |
/Users/admin/builder/spi-builder-workspace/Sources/Sliders/RangeSlider/Styles/RangeSliderOptions.swift:7:23: warning: static property 'defaultOptions' is not concurrency-safe because non-'Sendable' type 'RangeSliderOptions' may have shared mutable state; this is an error in the Swift 6 language mode
1 | import SwiftUI
2 |
3 | public struct RangeSliderOptions: OptionSet {
| `- note: consider making struct 'RangeSliderOptions' conform to the 'Sendable' protocol
4 | public let rawValue: Int
5 |
6 | public static let forceAdjacentValue = RangeSliderOptions(rawValue: 1 << 0)
7 | public static let defaultOptions: RangeSliderOptions = .forceAdjacentValue
| |- warning: static property 'defaultOptions' is not concurrency-safe because non-'Sendable' type 'RangeSliderOptions' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'defaultOptions' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
8 |
9 | public init(rawValue: Int) {
/Users/admin/builder/spi-builder-workspace/Sources/Sliders/RangeSlider/Styles/Vertical/VerticalRangeSliderStyle.swift:47:26: warning: call to main actor-isolated instance method 'onChanged' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
45 | .gesture(
46 | DragGesture()
47 | .onChanged { gestureValue in
| `- warning: call to main actor-isolated instance method 'onChanged' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
48 | configuration.onEditingChanged(true)
49 |
SwiftUICore.Gesture.onChanged:2:40: note: calls to instance method 'onChanged' from outside of its actor context are implicitly asynchronous
1 | protocol Gesture {
2 | @MainActor @preconcurrency public func onChanged(_ action: @escaping (Self.Value) -> Void) -> _ChangedGesture<Self>}
| `- note: calls to instance method 'onChanged' from outside of its actor context are implicitly asynchronous
3 |
/Users/admin/builder/spi-builder-workspace/Sources/Sliders/RangeSlider/Styles/Vertical/VerticalRangeSliderStyle.swift:46:21: warning: call to main actor-isolated initializer 'init(minimumDistance:coordinateSpace:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
44 | )
45 | .gesture(
46 | DragGesture()
| `- warning: call to main actor-isolated initializer 'init(minimumDistance:coordinateSpace:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
47 | .onChanged { gestureValue in
48 | configuration.onEditingChanged(true)
SwiftUI.DragGesture.init:7:37: note: calls to initializer 'init(minimumDistance:coordinateSpace:)' from outside of its actor context are implicitly asynchronous
5 | @available(visionOS, introduced: 1.0, deprecated: 100000.0, message: "use overload that accepts a CoordinateSpaceProtocol instead")
6 | @available(tvOS, unavailable)
7 | @MainActor @preconcurrency public init(minimumDistance: CGFloat = 10, coordinateSpace: CoordinateSpace = .local)}
| `- note: calls to initializer 'init(minimumDistance:coordinateSpace:)' from outside of its actor context are implicitly asynchronous
8 |
/Users/admin/builder/spi-builder-workspace/Sources/Sliders/RangeSlider/Styles/Vertical/VerticalRangeSliderStyle.swift:100:26: warning: call to main actor-isolated instance method 'onChanged' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
98 | .gesture(
99 | DragGesture()
100 | .onChanged { gestureValue in
| `- warning: call to main actor-isolated instance method 'onChanged' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
101 | configuration.onEditingChanged(true)
102 |
SwiftUICore.Gesture.onChanged:2:40: note: calls to instance method 'onChanged' from outside of its actor context are implicitly asynchronous
1 | protocol Gesture {
2 | @MainActor @preconcurrency public func onChanged(_ action: @escaping (Self.Value) -> Void) -> _ChangedGesture<Self>}
| `- note: calls to instance method 'onChanged' from outside of its actor context are implicitly asynchronous
3 |
/Users/admin/builder/spi-builder-workspace/Sources/Sliders/RangeSlider/Styles/Vertical/VerticalRangeSliderStyle.swift:99:21: warning: call to main actor-isolated initializer 'init(minimumDistance:coordinateSpace:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
97 | )
98 | .gesture(
99 | DragGesture()
| `- warning: call to main actor-isolated initializer 'init(minimumDistance:coordinateSpace:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
100 | .onChanged { gestureValue in
101 | configuration.onEditingChanged(true)
SwiftUI.DragGesture.init:7:37: note: calls to initializer 'init(minimumDistance:coordinateSpace:)' from outside of its actor context are implicitly asynchronous
5 | @available(visionOS, introduced: 1.0, deprecated: 100000.0, message: "use overload that accepts a CoordinateSpaceProtocol instead")
6 | @available(tvOS, unavailable)
7 | @MainActor @preconcurrency public init(minimumDistance: CGFloat = 10, coordinateSpace: CoordinateSpace = .local)}
| `- note: calls to initializer 'init(minimumDistance:coordinateSpace:)' from outside of its actor context are implicitly asynchronous
8 |
/Users/admin/builder/spi-builder-workspace/Sources/Sliders/RangeSlider/Styles/Vertical/VerticalRangeSliderStyle.swift:170:27: warning: call to main actor-isolated initializer 'init()' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
168 | public init(track: Track, lowerThumbSize: CGSize = CGSize(width: 27, height: 27), upperThumbSize: CGSize = CGSize(width: 27, height: 27), lowerThumbInteractiveSize: CGSize = CGSize(width: 44, height: 44), upperThumbInteractiveSize: CGSize = CGSize(width: 44, height: 44), options: RangeSliderOptions = .defaultOptions) {
169 | self.track = track
170 | self.lowerThumb = DefaultThumb()
| `- warning: call to main actor-isolated initializer 'init()' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
171 | self.upperThumb = DefaultThumb()
172 | self.lowerThumbSize = lowerThumbSize
/Users/admin/builder/spi-builder-workspace/Sources/Sliders/Base/DefaultThumb.swift:4:12: note: calls to initializer 'init()' from outside of its actor context are implicitly asynchronous
2 |
3 | public struct DefaultThumb: View {
4 | public init() {}
| |- note: calls to initializer 'init()' from outside of its actor context are implicitly asynchronous
| `- note: main actor isolation inferred from conformance to protocol 'View'
5 | public var body: some View {
6 | Capsule()
/Users/admin/builder/spi-builder-workspace/Sources/Sliders/RangeSlider/Styles/Vertical/VerticalRangeSliderStyle.swift:171:27: warning: call to main actor-isolated initializer 'init()' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
169 | self.track = track
170 | self.lowerThumb = DefaultThumb()
171 | self.upperThumb = DefaultThumb()
| `- warning: call to main actor-isolated initializer 'init()' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
172 | self.lowerThumbSize = lowerThumbSize
173 | self.upperThumbSize = upperThumbSize
/Users/admin/builder/spi-builder-workspace/Sources/Sliders/Base/DefaultThumb.swift:4:12: note: calls to initializer 'init()' from outside of its actor context are implicitly asynchronous
2 |
3 | public struct DefaultThumb: View {
4 | public init() {}
| |- note: calls to initializer 'init()' from outside of its actor context are implicitly asynchronous
| `- note: main actor isolation inferred from conformance to protocol 'View'
5 | public var body: some View {
6 | Capsule()
/Users/admin/builder/spi-builder-workspace/Sources/Sliders/RangeSlider/Styles/Vertical/VerticalRangeSliderStyle.swift:183:27: warning: call to main actor-isolated initializer 'init()' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
181 | public init(lowerThumbSize: CGSize = CGSize(width: 27, height: 27), upperThumbSize: CGSize = CGSize(width: 27, height: 27), lowerThumbInteractiveSize: CGSize = CGSize(width: 44, height: 44), upperThumbInteractiveSize: CGSize = CGSize(width: 44, height: 44), options: RangeSliderOptions = .defaultOptions) {
182 | self.track = DefaultVerticalRangeTrack()
183 | self.lowerThumb = DefaultThumb()
| `- warning: call to main actor-isolated initializer 'init()' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
184 | self.upperThumb = DefaultThumb()
185 | self.lowerThumbSize = lowerThumbSize
/Users/admin/builder/spi-builder-workspace/Sources/Sliders/Base/DefaultThumb.swift:4:12: note: calls to initializer 'init()' from outside of its actor context are implicitly asynchronous
2 |
3 | public struct DefaultThumb: View {
4 | public init() {}
| |- note: calls to initializer 'init()' from outside of its actor context are implicitly asynchronous
| `- note: main actor isolation inferred from conformance to protocol 'View'
5 | public var body: some View {
6 | Capsule()
/Users/admin/builder/spi-builder-workspace/Sources/Sliders/RangeSlider/Styles/Vertical/VerticalRangeSliderStyle.swift:184:27: warning: call to main actor-isolated initializer 'init()' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
182 | self.track = DefaultVerticalRangeTrack()
183 | self.lowerThumb = DefaultThumb()
184 | self.upperThumb = DefaultThumb()
| `- warning: call to main actor-isolated initializer 'init()' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
185 | self.lowerThumbSize = lowerThumbSize
186 | self.upperThumbSize = upperThumbSize
/Users/admin/builder/spi-builder-workspace/Sources/Sliders/Base/DefaultThumb.swift:4:12: note: calls to initializer 'init()' from outside of its actor context are implicitly asynchronous
2 |
3 | public struct DefaultThumb: View {
4 | public init() {}
| |- note: calls to initializer 'init()' from outside of its actor context are implicitly asynchronous
| `- note: main actor isolation inferred from conformance to protocol 'View'
5 | public var body: some View {
6 | Capsule()
/Users/admin/builder/spi-builder-workspace/Sources/Sliders/RangeTrack/EnvironmentValues+RangeTrackConfiguration.swift:15:16: warning: static property 'defaultValue' is not concurrency-safe because non-'Sendable' type 'RangeTrackConfiguration' may have shared mutable state; this is an error in the Swift 6 language mode
13 |
14 | struct RangeTrackConfigurationKey: EnvironmentKey {
15 | static let defaultValue: RangeTrackConfiguration = .defaultConfiguration
| |- warning: static property 'defaultValue' is not concurrency-safe because non-'Sendable' type 'RangeTrackConfiguration' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'defaultValue' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
16 | }
17 |
/Users/admin/builder/spi-builder-workspace/Sources/Sliders/RangeTrack/RangeTrackConfiguration.swift:3:15: note: consider making struct 'RangeTrackConfiguration' conform to the 'Sendable' protocol
1 | import SwiftUI
2 |
3 | public struct RangeTrackConfiguration {
| `- note: consider making struct 'RangeTrackConfiguration' conform to the 'Sendable' protocol
4 | public static let defaultConfiguration = RangeTrackConfiguration()
5 |
/Users/admin/builder/spi-builder-workspace/Sources/Sliders/RangeSlider/Styles/Vertical/VerticalRangeSliderStyle.swift:100:26: warning: sending value of non-Sendable type '(DragGesture.Value) -> Void' risks causing data races; this is an error in the Swift 6 language mode
98 | .gesture(
99 | DragGesture()
100 | .onChanged { gestureValue in
| |- warning: sending value of non-Sendable type '(DragGesture.Value) -> Void' risks causing data races; this is an error in the Swift 6 language mode
| `- note: sending value of non-Sendable type '(DragGesture.Value) -> Void' to main actor-isolated callee risks causing data races between main actor-isolated and local nonisolated uses
101 | configuration.onEditingChanged(true)
102 |
:
128 | )
129 | }
130 | .onEnded { _ in
| `- note: access can happen concurrently
131 | configuration.dragOffset.wrappedValue = nil
132 | configuration.onEditingChanged(false)
/Users/admin/builder/spi-builder-workspace/Sources/Sliders/RangeSlider/Styles/Vertical/VerticalRangeSliderStyle.swift:47:26: warning: sending value of non-Sendable type '(DragGesture.Value) -> Void' risks causing data races; this is an error in the Swift 6 language mode
45 | .gesture(
46 | DragGesture()
47 | .onChanged { gestureValue in
| |- warning: sending value of non-Sendable type '(DragGesture.Value) -> Void' risks causing data races; this is an error in the Swift 6 language mode
| `- note: sending task-isolated value of non-Sendable type '(DragGesture.Value) -> Void' to main actor-isolated callee risks causing races in between task-isolated and main actor-isolated uses
48 | configuration.onEditingChanged(true)
49 |
[37/44] Compiling Sliders EnvironmentValues+TrackPoint.swift
/Users/admin/builder/spi-builder-workspace/Sources/Sliders/PointTrack/PointTrackConfiguration.swift:4:23: warning: static property 'defaultConfiguration' is not concurrency-safe because non-'Sendable' type 'PointTrackConfiguration' may have shared mutable state; this is an error in the Swift 6 language mode
1 | import SwiftUI
2 |
3 | public struct PointTrackConfiguration {
| `- note: consider making struct 'PointTrackConfiguration' conform to the 'Sendable' protocol
4 | public static let defaultConfiguration = PointTrackConfiguration()
| |- warning: static property 'defaultConfiguration' is not concurrency-safe because non-'Sendable' type 'PointTrackConfiguration' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'defaultConfiguration' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
5 |
6 | public let xBounds: ClosedRange<CGFloat>
[38/44] Compiling Sliders PointTrackConfiguration.swift
/Users/admin/builder/spi-builder-workspace/Sources/Sliders/PointTrack/PointTrackConfiguration.swift:4:23: warning: static property 'defaultConfiguration' is not concurrency-safe because non-'Sendable' type 'PointTrackConfiguration' may have shared mutable state; this is an error in the Swift 6 language mode
1 | import SwiftUI
2 |
3 | public struct PointTrackConfiguration {
| `- note: consider making struct 'PointTrackConfiguration' conform to the 'Sendable' protocol
4 | public static let defaultConfiguration = PointTrackConfiguration()
| |- warning: static property 'defaultConfiguration' is not concurrency-safe because non-'Sendable' type 'PointTrackConfiguration' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'defaultConfiguration' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
5 |
6 | public let xBounds: ClosedRange<CGFloat>
[39/44] Compiling Sliders RangeSlider.swift
/Users/admin/builder/spi-builder-workspace/Sources/Sliders/PointTrack/PointTrackConfiguration.swift:4:23: warning: static property 'defaultConfiguration' is not concurrency-safe because non-'Sendable' type 'PointTrackConfiguration' may have shared mutable state; this is an error in the Swift 6 language mode
1 | import SwiftUI
2 |
3 | public struct PointTrackConfiguration {
| `- note: consider making struct 'PointTrackConfiguration' conform to the 'Sendable' protocol
4 | public static let defaultConfiguration = PointTrackConfiguration()
| |- warning: static property 'defaultConfiguration' is not concurrency-safe because non-'Sendable' type 'PointTrackConfiguration' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'defaultConfiguration' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
5 |
6 | public let xBounds: ClosedRange<CGFloat>
[40/44] Compiling Sliders AnyRangeSliderStyle.swift
/Users/admin/builder/spi-builder-workspace/Sources/Sliders/PointTrack/PointTrackConfiguration.swift:4:23: warning: static property 'defaultConfiguration' is not concurrency-safe because non-'Sendable' type 'PointTrackConfiguration' may have shared mutable state; this is an error in the Swift 6 language mode
1 | import SwiftUI
2 |
3 | public struct PointTrackConfiguration {
| `- note: consider making struct 'PointTrackConfiguration' conform to the 'Sendable' protocol
4 | public static let defaultConfiguration = PointTrackConfiguration()
| |- warning: static property 'defaultConfiguration' is not concurrency-safe because non-'Sendable' type 'PointTrackConfiguration' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'defaultConfiguration' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
5 |
6 | public let xBounds: ClosedRange<CGFloat>
[41/44] Compiling Sliders HorizontalRangeTrack.swift
/Users/admin/builder/spi-builder-workspace/Sources/Sliders/RangeTrack/RangeTrackConfiguration.swift:4:23: warning: static property 'defaultConfiguration' is not concurrency-safe because non-'Sendable' type 'RangeTrackConfiguration' may have shared mutable state; this is an error in the Swift 6 language mode
1 | import SwiftUI
2 |
3 | public struct RangeTrackConfiguration {
| `- note: consider making struct 'RangeTrackConfiguration' conform to the 'Sendable' protocol
4 | public static let defaultConfiguration = RangeTrackConfiguration()
| |- warning: static property 'defaultConfiguration' is not concurrency-safe because non-'Sendable' type 'RangeTrackConfiguration' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'defaultConfiguration' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
5 |
6 | public let bounds: ClosedRange<CGFloat>
[42/44] Compiling Sliders RangeTrackConfiguration.swift
/Users/admin/builder/spi-builder-workspace/Sources/Sliders/RangeTrack/RangeTrackConfiguration.swift:4:23: warning: static property 'defaultConfiguration' is not concurrency-safe because non-'Sendable' type 'RangeTrackConfiguration' may have shared mutable state; this is an error in the Swift 6 language mode
1 | import SwiftUI
2 |
3 | public struct RangeTrackConfiguration {
| `- note: consider making struct 'RangeTrackConfiguration' conform to the 'Sendable' protocol
4 | public static let defaultConfiguration = RangeTrackConfiguration()
| |- warning: static property 'defaultConfiguration' is not concurrency-safe because non-'Sendable' type 'RangeTrackConfiguration' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'defaultConfiguration' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
5 |
6 | public let bounds: ClosedRange<CGFloat>
[43/44] Compiling Sliders VerticalRangeTrack.swift
/Users/admin/builder/spi-builder-workspace/Sources/Sliders/RangeTrack/RangeTrackConfiguration.swift:4:23: warning: static property 'defaultConfiguration' is not concurrency-safe because non-'Sendable' type 'RangeTrackConfiguration' may have shared mutable state; this is an error in the Swift 6 language mode
1 | import SwiftUI
2 |
3 | public struct RangeTrackConfiguration {
| `- note: consider making struct 'RangeTrackConfiguration' conform to the 'Sendable' protocol
4 | public static let defaultConfiguration = RangeTrackConfiguration()
| |- warning: static property 'defaultConfiguration' is not concurrency-safe because non-'Sendable' type 'RangeTrackConfiguration' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'defaultConfiguration' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
5 |
6 | public let bounds: ClosedRange<CGFloat>
[44/44] Compiling Sliders AnyValueSliderStyle.swift
/Users/admin/builder/spi-builder-workspace/Sources/Sliders/RangeTrack/RangeTrackConfiguration.swift:4:23: warning: static property 'defaultConfiguration' is not concurrency-safe because non-'Sendable' type 'RangeTrackConfiguration' may have shared mutable state; this is an error in the Swift 6 language mode
1 | import SwiftUI
2 |
3 | public struct RangeTrackConfiguration {
| `- note: consider making struct 'RangeTrackConfiguration' conform to the 'Sendable' protocol
4 | public static let defaultConfiguration = RangeTrackConfiguration()
| |- warning: static property 'defaultConfiguration' is not concurrency-safe because non-'Sendable' type 'RangeTrackConfiguration' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'defaultConfiguration' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
5 |
6 | public let bounds: ClosedRange<CGFloat>
Build complete! (10.98s)
Build complete.
{
"dependencies" : [
],
"manifest_display_name" : "Sliders",
"name" : "Sliders",
"path" : "/Users/admin/builder/spi-builder-workspace",
"platforms" : [
{
"name" : "ios",
"version" : "14.0"
},
{
"name" : "macos",
"version" : "11.0"
}
],
"products" : [
{
"name" : "Sliders",
"targets" : [
"Sliders"
],
"type" : {
"library" : [
"automatic"
]
}
}
],
"targets" : [
{
"c99name" : "SlidersTests",
"module_type" : "SwiftTarget",
"name" : "SlidersTests",
"path" : "Tests/SlidersTests",
"sources" : [
"DistanceFromValueTests.swift",
"RangeDistanceTests.swift",
"ValueFromDistanceTests.swift"
],
"target_dependencies" : [
"Sliders"
],
"type" : "test"
},
{
"c99name" : "Sliders",
"module_type" : "SwiftTarget",
"name" : "Sliders",
"path" : "Sources/Sliders",
"product_memberships" : [
"Sliders"
],
"sources" : [
"Base/DefaultHorizontalValueView.swift",
"Base/DefaultThumb.swift",
"Base/DefaultVerticalValueView.swift",
"Base/LinearRangeMath.swift",
"Base/LinearValueMath.swift",
"PointSlider/PointSlider.swift",
"PointSlider/Style/AnyPointSliderStyle.swift",
"PointSlider/Style/EnvironmentValues+PointSliderStyle.swift",
"PointSlider/Style/PointSliderStyle.swift",
"PointSlider/Style/PointSliderStyleConfiguration.swift",
"PointSlider/Styles/PointSliderOptions.swift",
"PointSlider/Styles/Rectangular/RectangularPointSliderStyle.swift",
"PointTrack/EnvironmentValues+PointTrackConfiguration.swift",
"PointTrack/EnvironmentValues+TrackPoint.swift",
"PointTrack/PointTrackConfiguration.swift",
"RangeSlider/RangeSlider.swift",
"RangeSlider/Style/AnyRangeSliderStyle.swift",
"RangeSlider/Style/EnvironmentValues+RangeSliderStyle.swift",
"RangeSlider/Style/RangeSliderStyle.swift",
"RangeSlider/Style/RangeSliderStyleConfiguration.swift",
"RangeSlider/Styles/Horizontal/HorizontalRangeSliderStyle.swift",
"RangeSlider/Styles/RangeSliderOptions.swift",
"RangeSlider/Styles/Vertical/VerticalRangeSliderStyle.swift",
"RangeTrack/EnvironmentValues+RangeTrackConfiguration.swift",
"RangeTrack/EnvironmentValues+TrackRange.swift",
"RangeTrack/Horizontal/HorizontalRangeTrack.swift",
"RangeTrack/RangeTrackConfiguration.swift",
"RangeTrack/Vertical/VerticalRangeTrack.swift",
"ValueSlider/Style/AnyValueSliderStyle.swift",
"ValueSlider/Style/EnvironmentValues+ValueSliderStyle.swift",
"ValueSlider/Style/ValueSliderStyle.swift",
"ValueSlider/Style/ValueSliderStyleConfiguration.swift",
"ValueSlider/Styles/Horizontal/HorizontalValueSliderStyle.swift",
"ValueSlider/Styles/ValueSliderOptions.swift",
"ValueSlider/Styles/Vertical/VerticalValueSliderStyle.swift",
"ValueSlider/ValueSlider.swift",
"ValueTrack/EnviromnentValues+ValueTrackConfiguration.swift",
"ValueTrack/EnvironmentValues+TrackValue.swift",
"ValueTrack/Horizontal/HorizontalValueTrack.swift",
"ValueTrack/ValueTrackConfiguration.swift",
"ValueTrack/Vertical/VerticalValueTrack.swift"
],
"type" : "library"
}
],
"tools_version" : "5.3"
}
Done.