Build Information
Successful build of Sliders, reference main (cc4ab4
), with Swift 6.0 for macOS (SPM) on 10 Dec 2024 09:10:17 UTC.
Swift 6 data race errors: 15
Build Command
env DEVELOPER_DIR=/Applications/Xcode-16.1.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
6 | public static let interactiveTrack = ValueSliderOptions(rawValue: 1 << 0)
| |- warning: static property 'interactiveTrack' 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: annotate 'interactiveTrack' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
7 | public static let defaultOptions: ValueSliderOptions = []
8 |
/Users/admin/builder/spi-builder-workspace/Sources/Sliders/ValueSlider/Styles/Horizontal/HorizontalValueSliderStyle.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 = valueFrom(
SwiftUICore.Gesture:3:44: note: calls to instance method 'onChanged' from outside of its actor context are implicitly asynchronous
1 | @available(iOS 13.0, macOS 10.15, tvOS 13.0, watchOS 6.0, *)
2 | extension Gesture where Self.Value : Equatable {
3 | @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
4 | }
/Users/admin/builder/spi-builder-workspace/Sources/Sliders/ValueSlider/Styles/Horizontal/HorizontalValueSliderStyle.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:21:39: note: calls to initializer 'init(minimumDistance:coordinateSpace:)' from outside of its actor context are implicitly asynchronous
19 | @available(visionOS, introduced: 1.0, deprecated: 100000.0, message: "use overload that accepts a CoordinateSpaceProtocol instead")
20 | @available(tvOS, unavailable)
21 | @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
22 | @available(iOS 17.0, macOS 14.0, watchOS 10.0, *)
23 | @available(tvOS, unavailable)
/Users/admin/builder/spi-builder-workspace/Sources/Sliders/ValueSlider/Styles/Horizontal/HorizontalValueSliderStyle.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:3:44: note: calls to instance method 'onChanged' from outside of its actor context are implicitly asynchronous
1 | @available(iOS 13.0, macOS 10.15, tvOS 13.0, watchOS 6.0, *)
2 | extension Gesture where Self.Value : Equatable {
3 | @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
4 | }
/Users/admin/builder/spi-builder-workspace/Sources/Sliders/ValueSlider/Styles/Horizontal/HorizontalValueSliderStyle.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:21:39: note: calls to initializer 'init(minimumDistance:coordinateSpace:)' from outside of its actor context are implicitly asynchronous
19 | @available(visionOS, introduced: 1.0, deprecated: 100000.0, message: "use overload that accepts a CoordinateSpaceProtocol instead")
20 | @available(tvOS, unavailable)
21 | @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
22 | @available(iOS 17.0, macOS 14.0, watchOS 10.0, *)
23 | @available(tvOS, unavailable)
/Users/admin/builder/spi-builder-workspace/Sources/Sliders/ValueSlider/Styles/Horizontal/HorizontalValueSliderStyle.swift:108:22: warning: call to main actor-isolated initializer 'init()' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
106 | extension HorizontalValueSliderStyle where Track == DefaultHorizontalValueTrack {
107 | public init(thumb: Thumb, thumbSize: CGSize = CGSize(width: 27, height: 27), thumbInteractiveSize: CGSize = CGSize(width: 44, height: 44), options: ValueSliderOptions = .defaultOptions) {
108 | self.track = DefaultHorizontalValueTrack()
| `- warning: call to main actor-isolated initializer 'init()' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
109 | self.thumb = thumb
110 | self.thumbSize = thumbSize
:
135 |
136 | public struct DefaultHorizontalValueTrack: View {
137 | public init() {}
| `- note: calls to initializer 'init()' from outside of its actor context are implicitly asynchronous
138 | public var body: some View {
139 | HorizontalTrack()
/Users/admin/builder/spi-builder-workspace/Sources/Sliders/ValueSlider/Styles/Horizontal/HorizontalValueSliderStyle.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
5 | public var body: some View {
6 | Capsule()
/Users/admin/builder/spi-builder-workspace/Sources/Sliders/ValueSlider/Styles/Horizontal/HorizontalValueSliderStyle.swift:128:22: warning: call to main actor-isolated initializer 'init()' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
126 | extension HorizontalValueSliderStyle where Thumb == DefaultThumb, Track == DefaultHorizontalValueTrack {
127 | public init(thumbSize: CGSize = CGSize(width: 27, height: 27), thumbInteractiveSize: CGSize = CGSize(width: 44, height: 44), options: ValueSliderOptions = .defaultOptions) {
128 | self.track = DefaultHorizontalValueTrack()
| `- warning: call to main actor-isolated initializer 'init()' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
129 | self.thumb = DefaultThumb()
130 | self.thumbSize = thumbSize
:
135 |
136 | public struct DefaultHorizontalValueTrack: View {
137 | public init() {}
| `- note: calls to initializer 'init()' from outside of its actor context are implicitly asynchronous
138 | public var body: some View {
139 | HorizontalTrack()
/Users/admin/builder/spi-builder-workspace/Sources/Sliders/ValueSlider/Styles/Horizontal/HorizontalValueSliderStyle.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 = DefaultHorizontalValueTrack()
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
5 | public var body: some View {
6 | Capsule()
/Users/admin/builder/spi-builder-workspace/Sources/Sliders/ValueSlider/Styles/Horizontal/HorizontalValueSliderStyle.swift:25:30: warning: sending task-isolated value of type '(DragGesture.Value) -> Void' with later accesses to main actor-isolated context 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 task-isolated value of type '(DragGesture.Value) -> Void' with later accesses to main actor-isolated context risks causing data races; this is an error in the Swift 6 language mode
26 | configuration.onEditingChanged(true)
27 | let computedValue = valueFrom(
/Users/admin/builder/spi-builder-workspace/Sources/Sliders/ValueSlider/Styles/Horizontal/HorizontalValueSliderStyle.swift:62:26: warning: sending value of non-Sendable type '(DragGesture.Value) -> Void' with later accesses from nonisolated context to main actor-isolated context risks causing data races; this is an error in the Swift 6 language mode
60 | .gesture(
61 | DragGesture(minimumDistance: 0)
62 | .onChanged { gestureValue in
| `- warning: sending value of non-Sendable type '(DragGesture.Value) -> Void' with later accesses from nonisolated context to main actor-isolated context risks causing data races; this is an error in the Swift 6 language mode
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)
[24/44] Compiling Sliders HorizontalValueSliderStyle.swift
/Users/admin/builder/spi-builder-workspace/Sources/Sliders/ValueSlider/Style/EnvironmentValues+ValueSliderStyle.swift:15:16: warning: static property 'defaultValue' is not concurrency-safe because non-'Sendable' type 'AnyValueSliderStyle' may have shared mutable state; this is an error in the Swift 6 language mode
13 |
14 | struct ValueSliderStyleKey: EnvironmentKey {
15 | static let defaultValue: AnyValueSliderStyle = AnyValueSliderStyle(
| |- warning: static property 'defaultValue' is not concurrency-safe because non-'Sendable' type 'AnyValueSliderStyle' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'defaultValue' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
16 | HorizontalValueSliderStyle()
17 | )
/Users/admin/builder/spi-builder-workspace/Sources/Sliders/ValueSlider/Style/AnyValueSliderStyle.swift:3:15: note: consider making struct 'AnyValueSliderStyle' conform to the 'Sendable' protocol
1 | import SwiftUI
2 |
3 | public struct AnyValueSliderStyle: ValueSliderStyle {
| `- note: consider making struct 'AnyValueSliderStyle' conform to the 'Sendable' protocol
4 | private let styleMakeBody: (ValueSliderStyle.Configuration) -> AnyView
5 |
/Users/admin/builder/spi-builder-workspace/Sources/Sliders/ValueSlider/Styles/ValueSliderOptions.swift:7:23: 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
1 | import SwiftUI
2 |
3 | public struct ValueSliderOptions: OptionSet {
| `- 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: annotate 'defaultOptions' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
8 |
9 | public init(rawValue: Int) {
/Users/admin/builder/spi-builder-workspace/Sources/Sliders/ValueSlider/Styles/ValueSliderOptions.swift:6:23: warning: static property 'interactiveTrack' is not concurrency-safe because non-'Sendable' type 'ValueSliderOptions' may have shared mutable state; this is an error in the Swift 6 language mode
1 | import SwiftUI
2 |
3 | public struct ValueSliderOptions: OptionSet {
| `- 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)
| |- warning: static property 'interactiveTrack' 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: annotate 'interactiveTrack' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
7 | public static let defaultOptions: ValueSliderOptions = []
8 |
/Users/admin/builder/spi-builder-workspace/Sources/Sliders/ValueSlider/Styles/Horizontal/HorizontalValueSliderStyle.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 = valueFrom(
SwiftUICore.Gesture:3:44: note: calls to instance method 'onChanged' from outside of its actor context are implicitly asynchronous
1 | @available(iOS 13.0, macOS 10.15, tvOS 13.0, watchOS 6.0, *)
2 | extension Gesture where Self.Value : Equatable {
3 | @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
4 | }
/Users/admin/builder/spi-builder-workspace/Sources/Sliders/ValueSlider/Styles/Horizontal/HorizontalValueSliderStyle.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:21:39: note: calls to initializer 'init(minimumDistance:coordinateSpace:)' from outside of its actor context are implicitly asynchronous
19 | @available(visionOS, introduced: 1.0, deprecated: 100000.0, message: "use overload that accepts a CoordinateSpaceProtocol instead")
20 | @available(tvOS, unavailable)
21 | @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
22 | @available(iOS 17.0, macOS 14.0, watchOS 10.0, *)
23 | @available(tvOS, unavailable)
/Users/admin/builder/spi-builder-workspace/Sources/Sliders/ValueSlider/Styles/Horizontal/HorizontalValueSliderStyle.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:3:44: note: calls to instance method 'onChanged' from outside of its actor context are implicitly asynchronous
1 | @available(iOS 13.0, macOS 10.15, tvOS 13.0, watchOS 6.0, *)
2 | extension Gesture where Self.Value : Equatable {
3 | @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
4 | }
/Users/admin/builder/spi-builder-workspace/Sources/Sliders/ValueSlider/Styles/Horizontal/HorizontalValueSliderStyle.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:21:39: note: calls to initializer 'init(minimumDistance:coordinateSpace:)' from outside of its actor context are implicitly asynchronous
19 | @available(visionOS, introduced: 1.0, deprecated: 100000.0, message: "use overload that accepts a CoordinateSpaceProtocol instead")
20 | @available(tvOS, unavailable)
21 | @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
22 | @available(iOS 17.0, macOS 14.0, watchOS 10.0, *)
23 | @available(tvOS, unavailable)
/Users/admin/builder/spi-builder-workspace/Sources/Sliders/ValueSlider/Styles/Horizontal/HorizontalValueSliderStyle.swift:108:22: warning: call to main actor-isolated initializer 'init()' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
106 | extension HorizontalValueSliderStyle where Track == DefaultHorizontalValueTrack {
107 | public init(thumb: Thumb, thumbSize: CGSize = CGSize(width: 27, height: 27), thumbInteractiveSize: CGSize = CGSize(width: 44, height: 44), options: ValueSliderOptions = .defaultOptions) {
108 | self.track = DefaultHorizontalValueTrack()
| `- warning: call to main actor-isolated initializer 'init()' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
109 | self.thumb = thumb
110 | self.thumbSize = thumbSize
:
135 |
136 | public struct DefaultHorizontalValueTrack: View {
137 | public init() {}
| `- note: calls to initializer 'init()' from outside of its actor context are implicitly asynchronous
138 | public var body: some View {
139 | HorizontalTrack()
/Users/admin/builder/spi-builder-workspace/Sources/Sliders/ValueSlider/Styles/Horizontal/HorizontalValueSliderStyle.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
5 | public var body: some View {
6 | Capsule()
/Users/admin/builder/spi-builder-workspace/Sources/Sliders/ValueSlider/Styles/Horizontal/HorizontalValueSliderStyle.swift:128:22: warning: call to main actor-isolated initializer 'init()' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
126 | extension HorizontalValueSliderStyle where Thumb == DefaultThumb, Track == DefaultHorizontalValueTrack {
127 | public init(thumbSize: CGSize = CGSize(width: 27, height: 27), thumbInteractiveSize: CGSize = CGSize(width: 44, height: 44), options: ValueSliderOptions = .defaultOptions) {
128 | self.track = DefaultHorizontalValueTrack()
| `- warning: call to main actor-isolated initializer 'init()' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
129 | self.thumb = DefaultThumb()
130 | self.thumbSize = thumbSize
:
135 |
136 | public struct DefaultHorizontalValueTrack: View {
137 | public init() {}
| `- note: calls to initializer 'init()' from outside of its actor context are implicitly asynchronous
138 | public var body: some View {
139 | HorizontalTrack()
/Users/admin/builder/spi-builder-workspace/Sources/Sliders/ValueSlider/Styles/Horizontal/HorizontalValueSliderStyle.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 = DefaultHorizontalValueTrack()
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
5 | public var body: some View {
6 | Capsule()
/Users/admin/builder/spi-builder-workspace/Sources/Sliders/ValueSlider/Styles/Horizontal/HorizontalValueSliderStyle.swift:25:30: warning: sending task-isolated value of type '(DragGesture.Value) -> Void' with later accesses to main actor-isolated context 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 task-isolated value of type '(DragGesture.Value) -> Void' with later accesses to main actor-isolated context risks causing data races; this is an error in the Swift 6 language mode
26 | configuration.onEditingChanged(true)
27 | let computedValue = valueFrom(
/Users/admin/builder/spi-builder-workspace/Sources/Sliders/ValueSlider/Styles/Horizontal/HorizontalValueSliderStyle.swift:62:26: warning: sending value of non-Sendable type '(DragGesture.Value) -> Void' with later accesses from nonisolated context to main actor-isolated context risks causing data races; this is an error in the Swift 6 language mode
60 | .gesture(
61 | DragGesture(minimumDistance: 0)
62 | .onChanged { gestureValue in
| `- warning: sending value of non-Sendable type '(DragGesture.Value) -> Void' with later accesses from nonisolated context to main actor-isolated context risks causing data races; this is an error in the Swift 6 language mode
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)
[25/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: annotate 'defaultConfiguration' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
5 |
6 | public let bounds: ClosedRange<CGFloat>
[26/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: annotate 'defaultConfiguration' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
5 |
6 | public let bounds: ClosedRange<CGFloat>
[27/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: annotate 'defaultConfiguration' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
5 |
6 | public let bounds: ClosedRange<CGFloat>
[28/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: annotate 'defaultConfiguration' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
5 |
6 | public let bounds: ClosedRange<CGFloat>
[29/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: annotate 'defaultValue' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
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/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: annotate 'defaultOptions' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
8 |
9 | public init(rawValue: Int) {
/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:3:44: note: calls to instance method 'onChanged' from outside of its actor context are implicitly asynchronous
1 | @available(iOS 13.0, macOS 10.15, tvOS 13.0, watchOS 6.0, *)
2 | extension Gesture where Self.Value : Equatable {
3 | @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
4 | }
/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:21:39: note: calls to initializer 'init(minimumDistance:coordinateSpace:)' from outside of its actor context are implicitly asynchronous
19 | @available(visionOS, introduced: 1.0, deprecated: 100000.0, message: "use overload that accepts a CoordinateSpaceProtocol instead")
20 | @available(tvOS, unavailable)
21 | @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
22 | @available(iOS 17.0, macOS 14.0, watchOS 10.0, *)
23 | @available(tvOS, unavailable)
/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: annotate 'forceAdjacentValue' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
7 | public static let defaultOptions: RangeSliderOptions = .forceAdjacentValue
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:3:44: note: calls to instance method 'onChanged' from outside of its actor context are implicitly asynchronous
1 | @available(iOS 13.0, macOS 10.15, tvOS 13.0, watchOS 6.0, *)
2 | extension Gesture where Self.Value : Equatable {
3 | @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
4 | }
/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:21:39: note: calls to initializer 'init(minimumDistance:coordinateSpace:)' from outside of its actor context are implicitly asynchronous
19 | @available(visionOS, introduced: 1.0, deprecated: 100000.0, message: "use overload that accepts a CoordinateSpaceProtocol instead")
20 | @available(tvOS, unavailable)
21 | @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
22 | @available(iOS 17.0, macOS 14.0, watchOS 10.0, *)
23 | @available(tvOS, unavailable)
/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
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
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
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
5 | public var body: some View {
6 | Capsule()
/Users/admin/builder/spi-builder-workspace/Sources/Sliders/RangeSlider/Styles/Horizontal/HorizontalRangeSliderStyle.swift:53:26: warning: sending task-isolated value of type '(DragGesture.Value) -> Void' with later accesses to main actor-isolated context risks causing data races; this is an error in the Swift 6 language mode
51 | .gesture(
52 | DragGesture()
53 | .onChanged { gestureValue in
| `- warning: sending task-isolated value of type '(DragGesture.Value) -> Void' with later accesses to main actor-isolated context risks causing data races; this is an error in the Swift 6 language mode
54 | configuration.onEditingChanged(true)
55 |
/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' with later accesses from nonisolated context to main actor-isolated context risks causing data races; this is an error in the Swift 6 language mode
109 | .gesture(
110 | DragGesture()
111 | .onChanged { gestureValue in
| `- warning: sending value of non-Sendable type '(DragGesture.Value) -> Void' with later accesses from nonisolated context to main actor-isolated context risks causing data races; this is an error in the Swift 6 language mode
112 | configuration.onEditingChanged(true)
113 |
:
141 | )
142 | }
143 | .onEnded { _ in
| `- note: access can happen concurrently
144 | configuration.dragOffset.wrappedValue = nil
145 | configuration.onEditingChanged(false)
[30/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: annotate 'defaultValue' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
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/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: annotate 'defaultOptions' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
8 |
9 | public init(rawValue: Int) {
/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:3:44: note: calls to instance method 'onChanged' from outside of its actor context are implicitly asynchronous
1 | @available(iOS 13.0, macOS 10.15, tvOS 13.0, watchOS 6.0, *)
2 | extension Gesture where Self.Value : Equatable {
3 | @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
4 | }
/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:21:39: note: calls to initializer 'init(minimumDistance:coordinateSpace:)' from outside of its actor context are implicitly asynchronous
19 | @available(visionOS, introduced: 1.0, deprecated: 100000.0, message: "use overload that accepts a CoordinateSpaceProtocol instead")
20 | @available(tvOS, unavailable)
21 | @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
22 | @available(iOS 17.0, macOS 14.0, watchOS 10.0, *)
23 | @available(tvOS, unavailable)
/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: annotate 'forceAdjacentValue' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
7 | public static let defaultOptions: RangeSliderOptions = .forceAdjacentValue
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:3:44: note: calls to instance method 'onChanged' from outside of its actor context are implicitly asynchronous
1 | @available(iOS 13.0, macOS 10.15, tvOS 13.0, watchOS 6.0, *)
2 | extension Gesture where Self.Value : Equatable {
3 | @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
4 | }
/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:21:39: note: calls to initializer 'init(minimumDistance:coordinateSpace:)' from outside of its actor context are implicitly asynchronous
19 | @available(visionOS, introduced: 1.0, deprecated: 100000.0, message: "use overload that accepts a CoordinateSpaceProtocol instead")
20 | @available(tvOS, unavailable)
21 | @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
22 | @available(iOS 17.0, macOS 14.0, watchOS 10.0, *)
23 | @available(tvOS, unavailable)
/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
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
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
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
5 | public var body: some View {
6 | Capsule()
/Users/admin/builder/spi-builder-workspace/Sources/Sliders/RangeSlider/Styles/Horizontal/HorizontalRangeSliderStyle.swift:53:26: warning: sending task-isolated value of type '(DragGesture.Value) -> Void' with later accesses to main actor-isolated context risks causing data races; this is an error in the Swift 6 language mode
51 | .gesture(
52 | DragGesture()
53 | .onChanged { gestureValue in
| `- warning: sending task-isolated value of type '(DragGesture.Value) -> Void' with later accesses to main actor-isolated context risks causing data races; this is an error in the Swift 6 language mode
54 | configuration.onEditingChanged(true)
55 |
/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' with later accesses from nonisolated context to main actor-isolated context risks causing data races; this is an error in the Swift 6 language mode
109 | .gesture(
110 | DragGesture()
111 | .onChanged { gestureValue in
| `- warning: sending value of non-Sendable type '(DragGesture.Value) -> Void' with later accesses from nonisolated context to main actor-isolated context risks causing data races; this is an error in the Swift 6 language mode
112 | configuration.onEditingChanged(true)
113 |
:
141 | )
142 | }
143 | .onEnded { _ in
| `- note: access can happen concurrently
144 | configuration.dragOffset.wrappedValue = nil
145 | configuration.onEditingChanged(false)
[31/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: annotate 'defaultValue' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
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/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: annotate 'defaultOptions' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
8 |
9 | public init(rawValue: Int) {
/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:3:44: note: calls to instance method 'onChanged' from outside of its actor context are implicitly asynchronous
1 | @available(iOS 13.0, macOS 10.15, tvOS 13.0, watchOS 6.0, *)
2 | extension Gesture where Self.Value : Equatable {
3 | @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
4 | }
/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:21:39: note: calls to initializer 'init(minimumDistance:coordinateSpace:)' from outside of its actor context are implicitly asynchronous
19 | @available(visionOS, introduced: 1.0, deprecated: 100000.0, message: "use overload that accepts a CoordinateSpaceProtocol instead")
20 | @available(tvOS, unavailable)
21 | @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
22 | @available(iOS 17.0, macOS 14.0, watchOS 10.0, *)
23 | @available(tvOS, unavailable)
/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: annotate 'forceAdjacentValue' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
7 | public static let defaultOptions: RangeSliderOptions = .forceAdjacentValue
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:3:44: note: calls to instance method 'onChanged' from outside of its actor context are implicitly asynchronous
1 | @available(iOS 13.0, macOS 10.15, tvOS 13.0, watchOS 6.0, *)
2 | extension Gesture where Self.Value : Equatable {
3 | @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
4 | }
/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:21:39: note: calls to initializer 'init(minimumDistance:coordinateSpace:)' from outside of its actor context are implicitly asynchronous
19 | @available(visionOS, introduced: 1.0, deprecated: 100000.0, message: "use overload that accepts a CoordinateSpaceProtocol instead")
20 | @available(tvOS, unavailable)
21 | @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
22 | @available(iOS 17.0, macOS 14.0, watchOS 10.0, *)
23 | @available(tvOS, unavailable)
/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
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
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
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
5 | public var body: some View {
6 | Capsule()
/Users/admin/builder/spi-builder-workspace/Sources/Sliders/RangeSlider/Styles/Horizontal/HorizontalRangeSliderStyle.swift:53:26: warning: sending task-isolated value of type '(DragGesture.Value) -> Void' with later accesses to main actor-isolated context risks causing data races; this is an error in the Swift 6 language mode
51 | .gesture(
52 | DragGesture()
53 | .onChanged { gestureValue in
| `- warning: sending task-isolated value of type '(DragGesture.Value) -> Void' with later accesses to main actor-isolated context risks causing data races; this is an error in the Swift 6 language mode
54 | configuration.onEditingChanged(true)
55 |
/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' with later accesses from nonisolated context to main actor-isolated context risks causing data races; this is an error in the Swift 6 language mode
109 | .gesture(
110 | DragGesture()
111 | .onChanged { gestureValue in
| `- warning: sending value of non-Sendable type '(DragGesture.Value) -> Void' with later accesses from nonisolated context to main actor-isolated context risks causing data races; this is an error in the Swift 6 language mode
112 | configuration.onEditingChanged(true)
113 |
:
141 | )
142 | }
143 | .onEnded { _ in
| `- note: access can happen concurrently
144 | configuration.dragOffset.wrappedValue = nil
145 | configuration.onEditingChanged(false)
[32/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: annotate 'defaultValue' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
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/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: annotate 'defaultOptions' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
8 |
9 | public init(rawValue: Int) {
/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:3:44: note: calls to instance method 'onChanged' from outside of its actor context are implicitly asynchronous
1 | @available(iOS 13.0, macOS 10.15, tvOS 13.0, watchOS 6.0, *)
2 | extension Gesture where Self.Value : Equatable {
3 | @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
4 | }
/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:21:39: note: calls to initializer 'init(minimumDistance:coordinateSpace:)' from outside of its actor context are implicitly asynchronous
19 | @available(visionOS, introduced: 1.0, deprecated: 100000.0, message: "use overload that accepts a CoordinateSpaceProtocol instead")
20 | @available(tvOS, unavailable)
21 | @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
22 | @available(iOS 17.0, macOS 14.0, watchOS 10.0, *)
23 | @available(tvOS, unavailable)
/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: annotate 'forceAdjacentValue' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
7 | public static let defaultOptions: RangeSliderOptions = .forceAdjacentValue
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:3:44: note: calls to instance method 'onChanged' from outside of its actor context are implicitly asynchronous
1 | @available(iOS 13.0, macOS 10.15, tvOS 13.0, watchOS 6.0, *)
2 | extension Gesture where Self.Value : Equatable {
3 | @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
4 | }
/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:21:39: note: calls to initializer 'init(minimumDistance:coordinateSpace:)' from outside of its actor context are implicitly asynchronous
19 | @available(visionOS, introduced: 1.0, deprecated: 100000.0, message: "use overload that accepts a CoordinateSpaceProtocol instead")
20 | @available(tvOS, unavailable)
21 | @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
22 | @available(iOS 17.0, macOS 14.0, watchOS 10.0, *)
23 | @available(tvOS, unavailable)
/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
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
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
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
5 | public var body: some View {
6 | Capsule()
/Users/admin/builder/spi-builder-workspace/Sources/Sliders/RangeSlider/Styles/Horizontal/HorizontalRangeSliderStyle.swift:53:26: warning: sending task-isolated value of type '(DragGesture.Value) -> Void' with later accesses to main actor-isolated context risks causing data races; this is an error in the Swift 6 language mode
51 | .gesture(
52 | DragGesture()
53 | .onChanged { gestureValue in
| `- warning: sending task-isolated value of type '(DragGesture.Value) -> Void' with later accesses to main actor-isolated context risks causing data races; this is an error in the Swift 6 language mode
54 | configuration.onEditingChanged(true)
55 |
/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' with later accesses from nonisolated context to main actor-isolated context risks causing data races; this is an error in the Swift 6 language mode
109 | .gesture(
110 | DragGesture()
111 | .onChanged { gestureValue in
| `- warning: sending value of non-Sendable type '(DragGesture.Value) -> Void' with later accesses from nonisolated context to main actor-isolated context risks causing data races; this is an error in the Swift 6 language mode
112 | configuration.onEditingChanged(true)
113 |
:
141 | )
142 | }
143 | .onEnded { _ in
| `- note: access can happen concurrently
144 | configuration.dragOffset.wrappedValue = nil
145 | configuration.onEditingChanged(false)
[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: annotate 'forceAdjacentValue' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
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: annotate 'defaultOptions' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
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:3:44: note: calls to instance method 'onChanged' from outside of its actor context are implicitly asynchronous
1 | @available(iOS 13.0, macOS 10.15, tvOS 13.0, watchOS 6.0, *)
2 | extension Gesture where Self.Value : Equatable {
3 | @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
4 | }
/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:21:39: note: calls to initializer 'init(minimumDistance:coordinateSpace:)' from outside of its actor context are implicitly asynchronous
19 | @available(visionOS, introduced: 1.0, deprecated: 100000.0, message: "use overload that accepts a CoordinateSpaceProtocol instead")
20 | @available(tvOS, unavailable)
21 | @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
22 | @available(iOS 17.0, macOS 14.0, watchOS 10.0, *)
23 | @available(tvOS, unavailable)
/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:3:44: note: calls to instance method 'onChanged' from outside of its actor context are implicitly asynchronous
1 | @available(iOS 13.0, macOS 10.15, tvOS 13.0, watchOS 6.0, *)
2 | extension Gesture where Self.Value : Equatable {
3 | @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
4 | }
/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:21:39: note: calls to initializer 'init(minimumDistance:coordinateSpace:)' from outside of its actor context are implicitly asynchronous
19 | @available(visionOS, introduced: 1.0, deprecated: 100000.0, message: "use overload that accepts a CoordinateSpaceProtocol instead")
20 | @available(tvOS, unavailable)
21 | @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
22 | @available(iOS 17.0, macOS 14.0, watchOS 10.0, *)
23 | @available(tvOS, unavailable)
/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
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
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
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
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: annotate 'defaultValue' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
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/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: annotate 'defaultConfiguration' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
5 |
6 | public let bounds: ClosedRange<CGFloat>
/Users/admin/builder/spi-builder-workspace/Sources/Sliders/RangeSlider/Styles/Vertical/VerticalRangeSliderStyle.swift:47:26: warning: sending task-isolated value of type '(DragGesture.Value) -> Void' with later accesses to main actor-isolated context risks causing data races; this is an error in the Swift 6 language mode
45 | .gesture(
46 | DragGesture()
47 | .onChanged { gestureValue in
| `- warning: sending task-isolated value of type '(DragGesture.Value) -> Void' with later accesses to main actor-isolated context risks causing data races; this is an error in the Swift 6 language mode
48 | configuration.onEditingChanged(true)
49 |
/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' with later accesses from nonisolated context to main actor-isolated context risks causing data races; this is an error in the Swift 6 language mode
98 | .gesture(
99 | DragGesture()
100 | .onChanged { gestureValue in
| `- warning: sending value of non-Sendable type '(DragGesture.Value) -> Void' with later accesses from nonisolated context to main actor-isolated context risks causing data races; this is an error in the Swift 6 language mode
101 | configuration.onEditingChanged(true)
102 |
:
128 | )
129 | }
130 | .onEnded { _ in
| `- note: access can happen concurrently
131 | configuration.dragOffset.wrappedValue = nil
132 | configuration.onEditingChanged(false)
[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: annotate 'forceAdjacentValue' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
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: annotate 'defaultOptions' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
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:3:44: note: calls to instance method 'onChanged' from outside of its actor context are implicitly asynchronous
1 | @available(iOS 13.0, macOS 10.15, tvOS 13.0, watchOS 6.0, *)
2 | extension Gesture where Self.Value : Equatable {
3 | @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
4 | }
/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:21:39: note: calls to initializer 'init(minimumDistance:coordinateSpace:)' from outside of its actor context are implicitly asynchronous
19 | @available(visionOS, introduced: 1.0, deprecated: 100000.0, message: "use overload that accepts a CoordinateSpaceProtocol instead")
20 | @available(tvOS, unavailable)
21 | @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
22 | @available(iOS 17.0, macOS 14.0, watchOS 10.0, *)
23 | @available(tvOS, unavailable)
/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:3:44: note: calls to instance method 'onChanged' from outside of its actor context are implicitly asynchronous
1 | @available(iOS 13.0, macOS 10.15, tvOS 13.0, watchOS 6.0, *)
2 | extension Gesture where Self.Value : Equatable {
3 | @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
4 | }
/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:21:39: note: calls to initializer 'init(minimumDistance:coordinateSpace:)' from outside of its actor context are implicitly asynchronous
19 | @available(visionOS, introduced: 1.0, deprecated: 100000.0, message: "use overload that accepts a CoordinateSpaceProtocol instead")
20 | @available(tvOS, unavailable)
21 | @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
22 | @available(iOS 17.0, macOS 14.0, watchOS 10.0, *)
23 | @available(tvOS, unavailable)
/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
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
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
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
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: annotate 'defaultValue' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
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/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: annotate 'defaultConfiguration' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
5 |
6 | public let bounds: ClosedRange<CGFloat>
/Users/admin/builder/spi-builder-workspace/Sources/Sliders/RangeSlider/Styles/Vertical/VerticalRangeSliderStyle.swift:47:26: warning: sending task-isolated value of type '(DragGesture.Value) -> Void' with later accesses to main actor-isolated context risks causing data races; this is an error in the Swift 6 language mode
45 | .gesture(
46 | DragGesture()
47 | .onChanged { gestureValue in
| `- warning: sending task-isolated value of type '(DragGesture.Value) -> Void' with later accesses to main actor-isolated context risks causing data races; this is an error in the Swift 6 language mode
48 | configuration.onEditingChanged(true)
49 |
/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' with later accesses from nonisolated context to main actor-isolated context risks causing data races; this is an error in the Swift 6 language mode
98 | .gesture(
99 | DragGesture()
100 | .onChanged { gestureValue in
| `- warning: sending value of non-Sendable type '(DragGesture.Value) -> Void' with later accesses from nonisolated context to main actor-isolated context risks causing data races; this is an error in the Swift 6 language mode
101 | configuration.onEditingChanged(true)
102 |
:
128 | )
129 | }
130 | .onEnded { _ in
| `- note: access can happen concurrently
131 | configuration.dragOffset.wrappedValue = nil
132 | configuration.onEditingChanged(false)
[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: annotate 'forceAdjacentValue' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
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: annotate 'defaultOptions' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
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:3:44: note: calls to instance method 'onChanged' from outside of its actor context are implicitly asynchronous
1 | @available(iOS 13.0, macOS 10.15, tvOS 13.0, watchOS 6.0, *)
2 | extension Gesture where Self.Value : Equatable {
3 | @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
4 | }
/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:21:39: note: calls to initializer 'init(minimumDistance:coordinateSpace:)' from outside of its actor context are implicitly asynchronous
19 | @available(visionOS, introduced: 1.0, deprecated: 100000.0, message: "use overload that accepts a CoordinateSpaceProtocol instead")
20 | @available(tvOS, unavailable)
21 | @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
22 | @available(iOS 17.0, macOS 14.0, watchOS 10.0, *)
23 | @available(tvOS, unavailable)
/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:3:44: note: calls to instance method 'onChanged' from outside of its actor context are implicitly asynchronous
1 | @available(iOS 13.0, macOS 10.15, tvOS 13.0, watchOS 6.0, *)
2 | extension Gesture where Self.Value : Equatable {
3 | @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
4 | }
/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:21:39: note: calls to initializer 'init(minimumDistance:coordinateSpace:)' from outside of its actor context are implicitly asynchronous
19 | @available(visionOS, introduced: 1.0, deprecated: 100000.0, message: "use overload that accepts a CoordinateSpaceProtocol instead")
20 | @available(tvOS, unavailable)
21 | @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
22 | @available(iOS 17.0, macOS 14.0, watchOS 10.0, *)
23 | @available(tvOS, unavailable)
/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
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
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
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
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: annotate 'defaultValue' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
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/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: annotate 'defaultConfiguration' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
5 |
6 | public let bounds: ClosedRange<CGFloat>
/Users/admin/builder/spi-builder-workspace/Sources/Sliders/RangeSlider/Styles/Vertical/VerticalRangeSliderStyle.swift:47:26: warning: sending task-isolated value of type '(DragGesture.Value) -> Void' with later accesses to main actor-isolated context risks causing data races; this is an error in the Swift 6 language mode
45 | .gesture(
46 | DragGesture()
47 | .onChanged { gestureValue in
| `- warning: sending task-isolated value of type '(DragGesture.Value) -> Void' with later accesses to main actor-isolated context risks causing data races; this is an error in the Swift 6 language mode
48 | configuration.onEditingChanged(true)
49 |
/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' with later accesses from nonisolated context to main actor-isolated context risks causing data races; this is an error in the Swift 6 language mode
98 | .gesture(
99 | DragGesture()
100 | .onChanged { gestureValue in
| `- warning: sending value of non-Sendable type '(DragGesture.Value) -> Void' with later accesses from nonisolated context to main actor-isolated context risks causing data races; this is an error in the Swift 6 language mode
101 | configuration.onEditingChanged(true)
102 |
:
128 | )
129 | }
130 | .onEnded { _ in
| `- note: access can happen concurrently
131 | configuration.dragOffset.wrappedValue = nil
132 | configuration.onEditingChanged(false)
[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: annotate 'forceAdjacentValue' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
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: annotate 'defaultOptions' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
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:3:44: note: calls to instance method 'onChanged' from outside of its actor context are implicitly asynchronous
1 | @available(iOS 13.0, macOS 10.15, tvOS 13.0, watchOS 6.0, *)
2 | extension Gesture where Self.Value : Equatable {
3 | @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
4 | }
/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:21:39: note: calls to initializer 'init(minimumDistance:coordinateSpace:)' from outside of its actor context are implicitly asynchronous
19 | @available(visionOS, introduced: 1.0, deprecated: 100000.0, message: "use overload that accepts a CoordinateSpaceProtocol instead")
20 | @available(tvOS, unavailable)
21 | @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
22 | @available(iOS 17.0, macOS 14.0, watchOS 10.0, *)
23 | @available(tvOS, unavailable)
/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:3:44: note: calls to instance method 'onChanged' from outside of its actor context are implicitly asynchronous
1 | @available(iOS 13.0, macOS 10.15, tvOS 13.0, watchOS 6.0, *)
2 | extension Gesture where Self.Value : Equatable {
3 | @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
4 | }
/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:21:39: note: calls to initializer 'init(minimumDistance:coordinateSpace:)' from outside of its actor context are implicitly asynchronous
19 | @available(visionOS, introduced: 1.0, deprecated: 100000.0, message: "use overload that accepts a CoordinateSpaceProtocol instead")
20 | @available(tvOS, unavailable)
21 | @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
22 | @available(iOS 17.0, macOS 14.0, watchOS 10.0, *)
23 | @available(tvOS, unavailable)
/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
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
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
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
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: annotate 'defaultValue' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
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/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: annotate 'defaultConfiguration' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
5 |
6 | public let bounds: ClosedRange<CGFloat>
/Users/admin/builder/spi-builder-workspace/Sources/Sliders/RangeSlider/Styles/Vertical/VerticalRangeSliderStyle.swift:47:26: warning: sending task-isolated value of type '(DragGesture.Value) -> Void' with later accesses to main actor-isolated context risks causing data races; this is an error in the Swift 6 language mode
45 | .gesture(
46 | DragGesture()
47 | .onChanged { gestureValue in
| `- warning: sending task-isolated value of type '(DragGesture.Value) -> Void' with later accesses to main actor-isolated context risks causing data races; this is an error in the Swift 6 language mode
48 | configuration.onEditingChanged(true)
49 |
/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' with later accesses from nonisolated context to main actor-isolated context risks causing data races; this is an error in the Swift 6 language mode
98 | .gesture(
99 | DragGesture()
100 | .onChanged { gestureValue in
| `- warning: sending value of non-Sendable type '(DragGesture.Value) -> Void' with later accesses from nonisolated context to main actor-isolated context risks causing data races; this is an error in the Swift 6 language mode
101 | configuration.onEditingChanged(true)
102 |
:
128 | )
129 | }
130 | .onEnded { _ in
| `- note: access can happen concurrently
131 | configuration.dragOffset.wrappedValue = nil
132 | configuration.onEditingChanged(false)
[37/44] Compiling Sliders PointSlider.swift
/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: annotate 'defaultOptions' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
8 |
9 | public init(rawValue: Int) {
/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: annotate 'interactiveTrack' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
7 | public static let defaultOptions: PointSliderOptions = []
8 |
/Users/admin/builder/spi-builder-workspace/Sources/Sliders/PointSlider/Style/EnvironmentValues+PointSliderStyle.swift:15:16: warning: static property 'defaultValue' is not concurrency-safe because non-'Sendable' type 'AnyPointSliderStyle' may have shared mutable state; this is an error in the Swift 6 language mode
13 |
14 | struct PointSliderStyleKey: EnvironmentKey {
15 | static let defaultValue: AnyPointSliderStyle = AnyPointSliderStyle(
| |- warning: static property 'defaultValue' is not concurrency-safe because non-'Sendable' type 'AnyPointSliderStyle' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'defaultValue' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
16 | RectangularPointSliderStyle()
17 | )
/Users/admin/builder/spi-builder-workspace/Sources/Sliders/PointSlider/Style/AnyPointSliderStyle.swift:3:15: note: consider making struct 'AnyPointSliderStyle' conform to the 'Sendable' protocol
1 | import SwiftUI
2 |
3 | public struct AnyPointSliderStyle: PointSliderStyle {
| `- note: consider making struct 'AnyPointSliderStyle' conform to the 'Sendable' protocol
4 | private let styleMakeBody: (PointSliderStyle.Configuration) -> AnyView
5 |
[38/44] Compiling Sliders AnyPointSliderStyle.swift
/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: annotate 'defaultOptions' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
8 |
9 | public init(rawValue: Int) {
/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: annotate 'interactiveTrack' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
7 | public static let defaultOptions: PointSliderOptions = []
8 |
/Users/admin/builder/spi-builder-workspace/Sources/Sliders/PointSlider/Style/EnvironmentValues+PointSliderStyle.swift:15:16: warning: static property 'defaultValue' is not concurrency-safe because non-'Sendable' type 'AnyPointSliderStyle' may have shared mutable state; this is an error in the Swift 6 language mode
13 |
14 | struct PointSliderStyleKey: EnvironmentKey {
15 | static let defaultValue: AnyPointSliderStyle = AnyPointSliderStyle(
| |- warning: static property 'defaultValue' is not concurrency-safe because non-'Sendable' type 'AnyPointSliderStyle' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'defaultValue' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
16 | RectangularPointSliderStyle()
17 | )
/Users/admin/builder/spi-builder-workspace/Sources/Sliders/PointSlider/Style/AnyPointSliderStyle.swift:3:15: note: consider making struct 'AnyPointSliderStyle' conform to the 'Sendable' protocol
1 | import SwiftUI
2 |
3 | public struct AnyPointSliderStyle: PointSliderStyle {
| `- note: consider making struct 'AnyPointSliderStyle' conform to the 'Sendable' protocol
4 | private let styleMakeBody: (PointSliderStyle.Configuration) -> AnyView
5 |
[39/44] Compiling Sliders EnvironmentValues+PointSliderStyle.swift
/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: annotate 'defaultOptions' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
8 |
9 | public init(rawValue: Int) {
/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: annotate 'interactiveTrack' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
7 | public static let defaultOptions: PointSliderOptions = []
8 |
/Users/admin/builder/spi-builder-workspace/Sources/Sliders/PointSlider/Style/EnvironmentValues+PointSliderStyle.swift:15:16: warning: static property 'defaultValue' is not concurrency-safe because non-'Sendable' type 'AnyPointSliderStyle' may have shared mutable state; this is an error in the Swift 6 language mode
13 |
14 | struct PointSliderStyleKey: EnvironmentKey {
15 | static let defaultValue: AnyPointSliderStyle = AnyPointSliderStyle(
| |- warning: static property 'defaultValue' is not concurrency-safe because non-'Sendable' type 'AnyPointSliderStyle' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'defaultValue' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
16 | RectangularPointSliderStyle()
17 | )
/Users/admin/builder/spi-builder-workspace/Sources/Sliders/PointSlider/Style/AnyPointSliderStyle.swift:3:15: note: consider making struct 'AnyPointSliderStyle' conform to the 'Sendable' protocol
1 | import SwiftUI
2 |
3 | public struct AnyPointSliderStyle: PointSliderStyle {
| `- note: consider making struct 'AnyPointSliderStyle' conform to the 'Sendable' protocol
4 | private let styleMakeBody: (PointSliderStyle.Configuration) -> AnyView
5 |
[40/44] Compiling Sliders PointSliderStyle.swift
/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: annotate 'defaultOptions' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
8 |
9 | public init(rawValue: Int) {
/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: annotate 'interactiveTrack' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
7 | public static let defaultOptions: PointSliderOptions = []
8 |
/Users/admin/builder/spi-builder-workspace/Sources/Sliders/PointSlider/Style/EnvironmentValues+PointSliderStyle.swift:15:16: warning: static property 'defaultValue' is not concurrency-safe because non-'Sendable' type 'AnyPointSliderStyle' may have shared mutable state; this is an error in the Swift 6 language mode
13 |
14 | struct PointSliderStyleKey: EnvironmentKey {
15 | static let defaultValue: AnyPointSliderStyle = AnyPointSliderStyle(
| |- warning: static property 'defaultValue' is not concurrency-safe because non-'Sendable' type 'AnyPointSliderStyle' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'defaultValue' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
16 | RectangularPointSliderStyle()
17 | )
/Users/admin/builder/spi-builder-workspace/Sources/Sliders/PointSlider/Style/AnyPointSliderStyle.swift:3:15: note: consider making struct 'AnyPointSliderStyle' conform to the 'Sendable' protocol
1 | import SwiftUI
2 |
3 | public struct AnyPointSliderStyle: PointSliderStyle {
| `- note: consider making struct 'AnyPointSliderStyle' conform to the 'Sendable' protocol
4 | private let styleMakeBody: (PointSliderStyle.Configuration) -> AnyView
5 |
[41/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: annotate 'defaultConfiguration' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
5 |
6 | public let xBounds: ClosedRange<CGFloat>
/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: annotate 'forceAdjacentValue' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
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: annotate 'defaultOptions' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
8 |
9 | public init(rawValue: Int) {
[42/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: annotate 'defaultConfiguration' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
5 |
6 | public let xBounds: ClosedRange<CGFloat>
/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: annotate 'forceAdjacentValue' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
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: annotate 'defaultOptions' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
8 |
9 | public init(rawValue: Int) {
[43/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: annotate 'defaultConfiguration' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
5 |
6 | public let xBounds: ClosedRange<CGFloat>
/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: annotate 'forceAdjacentValue' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
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: annotate 'defaultOptions' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
8 |
9 | public init(rawValue: Int) {
[44/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: annotate 'defaultConfiguration' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
5 |
6 | public let xBounds: ClosedRange<CGFloat>
/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: annotate 'forceAdjacentValue' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
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: annotate 'defaultOptions' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
8 |
9 | public init(rawValue: Int) {
Build complete! (32.89s)
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.