Build Information
Successful build of OneFingerRotation, reference main (3ac60f
), with Swift 6.1 for macOS (SPM) on 8 May 2025 16:00:04 UTC.
Swift 6 data race errors: 1
Build Command
env DEVELOPER_DIR=/Applications/Xcode-16.3.0.app xcrun swift build --arch arm64 -Xswiftc -Xfrontend -Xswiftc -stats-output-dir -Xswiftc -Xfrontend -Xswiftc .stats -Xswiftc -strict-concurrency=complete -Xswiftc -enable-upcoming-feature -Xswiftc StrictConcurrency -Xswiftc -enable-upcoming-feature -Xswiftc DisableOutwardActorInference -Xswiftc -enable-upcoming-feature -Xswiftc GlobalActorIsolatedTypesUsability -Xswiftc -enable-upcoming-feature -Xswiftc InferSendableFromCaptures
Build Log
========================================
RunAll
========================================
Builder version: 4.61.3
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/mttfntn/OneFingerRotation.git
Reference: main
Initialized empty Git repository in /Users/admin/builder/spi-builder-workspace/.git/
From https://github.com/mttfntn/OneFingerRotation
* branch main -> FETCH_HEAD
* [new branch] main -> origin/main
HEAD is now at 3ac60f3 Updated Old Elements Names to OFKnob and OFRotation Element, Organization and Code Commenting, Relative Adjustments
Cloned https://github.com/mttfntn/OneFingerRotation.git
Revision (git rev-parse @):
3ac60f3dac88b7e1219b184e9b449a7e3c495ea9
SUCCESS checkout https://github.com/mttfntn/OneFingerRotation.git at main
========================================
ResolveProductDependencies
========================================
Resolving dependencies ...
{
"identity": ".resolve-product-dependencies",
"name": "resolve-dependencies",
"url": "/Users/admin/builder/spi-builder-workspace/.resolve-product-dependencies",
"version": "unspecified",
"path": "/Users/admin/builder/spi-builder-workspace/.resolve-product-dependencies",
"dependencies": [
{
"identity": "onefingerrotation",
"name": "OneFingerRotation",
"url": "https://github.com/mttfntn/OneFingerRotation.git",
"version": "unspecified",
"path": "/Users/admin/builder/spi-builder-workspace/.resolve-product-dependencies/.build/checkouts/OneFingerRotation",
"dependencies": [
]
}
]
}
Fetching https://github.com/mttfntn/OneFingerRotation.git
[1/1060] Fetching onefingerrotation
Fetched https://github.com/mttfntn/OneFingerRotation.git from cache (1.37s)
Creating working copy for https://github.com/mttfntn/OneFingerRotation.git
Working copy of https://github.com/mttfntn/OneFingerRotation.git resolved at main (3ac60f3)
warning: '.resolve-product-dependencies': dependency 'onefingerrotation' is not used by any target
Found 0 product dependencies
========================================
Build
========================================
Selected platform: macosSpm
Swift version: 6.1
Building package at path: $PWD
https://github.com/mttfntn/OneFingerRotation.git
https://github.com/mttfntn/OneFingerRotation.git
{
"dependencies" : [
],
"manifest_display_name" : "OneFingerRotation",
"name" : "OneFingerRotation",
"path" : "/Users/admin/builder/spi-builder-workspace",
"platforms" : [
{
"name" : "ios",
"version" : "14.0"
},
{
"name" : "macos",
"version" : "11.0"
},
{
"name" : "watchos",
"version" : "7.0"
}
],
"products" : [
{
"name" : "OneFingerRotation",
"targets" : [
"OneFingerRotation"
],
"type" : {
"library" : [
"automatic"
]
}
}
],
"targets" : [
{
"c99name" : "OneFingerRotationTests",
"module_type" : "SwiftTarget",
"name" : "OneFingerRotationTests",
"path" : "Tests/OneFingerRotationTests",
"sources" : [
"OneFingerRotationTests.swift"
],
"target_dependencies" : [
"OneFingerRotation"
],
"type" : "test"
},
{
"c99name" : "OneFingerRotation",
"module_type" : "SwiftTarget",
"name" : "OneFingerRotation",
"path" : "Sources/OneFingerRotation",
"product_memberships" : [
"OneFingerRotation"
],
"sources" : [
"OFKnob.swift",
"OneFingerRotation.swift"
],
"type" : "library"
}
],
"tools_version" : "5.6"
}
Running build ...
env DEVELOPER_DIR=/Applications/Xcode-16.3.0.app xcrun swift build --arch arm64 -Xswiftc -Xfrontend -Xswiftc -stats-output-dir -Xswiftc -Xfrontend -Xswiftc .stats -Xswiftc -strict-concurrency=complete -Xswiftc -enable-upcoming-feature -Xswiftc StrictConcurrency -Xswiftc -enable-upcoming-feature -Xswiftc DisableOutwardActorInference -Xswiftc -enable-upcoming-feature -Xswiftc GlobalActorIsolatedTypesUsability -Xswiftc -enable-upcoming-feature -Xswiftc InferSendableFromCaptures
Building for debugging...
[0/2] Write sources
[1/2] Write swift-version-2F0A5646E1D333AE.txt
[3/5] Emitting module OneFingerRotation
/Users/admin/builder/spi-builder-workspace/Sources/OneFingerRotation/OFKnob.swift:223:16: warning: static property 'defaultValue' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
221 | /// This PreferenceKey is necessary for the calculation of the frame width and height of the content.
222 | struct FrameSizeKeyKnobInertia: PreferenceKey {
223 | static var defaultValue: CGSize = .zero
| |- warning: static property 'defaultValue' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'defaultValue' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: add '@MainActor' to make static property 'defaultValue' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
224 |
225 | static func reduce(value: inout CGSize, nextValue: () -> CGSize) {
[4/5] Compiling OneFingerRotation OneFingerRotation.swift
[5/5] Compiling OneFingerRotation OFKnob.swift
/Users/admin/builder/spi-builder-workspace/Sources/OneFingerRotation/OFKnob.swift:223:16: warning: static property 'defaultValue' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
221 | /// This PreferenceKey is necessary for the calculation of the frame width and height of the content.
222 | struct FrameSizeKeyKnobInertia: PreferenceKey {
223 | static var defaultValue: CGSize = .zero
| |- warning: static property 'defaultValue' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'defaultValue' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: add '@MainActor' to make static property 'defaultValue' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
224 |
225 | static func reduce(value: inout CGSize, nextValue: () -> CGSize) {
/Users/admin/builder/spi-builder-workspace/Sources/OneFingerRotation/OFKnob.swift:161:71: warning: main actor-isolated property 'lastVelocity' can not be referenced from a Sendable closure; this is an error in the Swift 6 language mode
14 | @Binding var knobValue: Double
15 | @GestureState private var gestureRotation: Angle = .zero
16 | @State private var lastVelocity: CGFloat = 0
| `- note: property declared here
17 | @State private var isSpinning = false
18 | @State private var timer: Timer?
:
159 | timer?.invalidate()
160 | timer = Timer.scheduledTimer(withTimeInterval: 0.01, repeats: true) { timer in
161 | let angle = Angle(degrees: Double(lastVelocity) * rotationDirection)
| `- warning: main actor-isolated property 'lastVelocity' can not be referenced from a Sendable closure; this is an error in the Swift 6 language mode
162 | let newRotationAngle = rotationAngle + angle
163 | let clampedAngle = min(max(minAngle, newRotationAngle.degrees), maxAngle)
/Users/admin/builder/spi-builder-workspace/Sources/OneFingerRotation/OFKnob.swift:161:87: warning: main actor-isolated property 'rotationDirection' can not be referenced from a Sendable closure; this is an error in the Swift 6 language mode
27 | @State var totalAngle: Double
28 | @State private var previousAngle: Double = 0
29 | @State private var rotationDirection: Double = 1
| `- note: property declared here
30 | @State var minAngle: Double
31 | @State var maxAngle: Double
:
159 | timer?.invalidate()
160 | timer = Timer.scheduledTimer(withTimeInterval: 0.01, repeats: true) { timer in
161 | let angle = Angle(degrees: Double(lastVelocity) * rotationDirection)
| `- warning: main actor-isolated property 'rotationDirection' can not be referenced from a Sendable closure; this is an error in the Swift 6 language mode
162 | let newRotationAngle = rotationAngle + angle
163 | let clampedAngle = min(max(minAngle, newRotationAngle.degrees), maxAngle)
/Users/admin/builder/spi-builder-workspace/Sources/OneFingerRotation/OFKnob.swift:162:60: warning: main actor-isolated property 'rotationAngle' can not be referenced from a Sendable closure; this is an error in the Swift 6 language mode
11 |
12 |
13 | @State private var rotationAngle: Angle = .degrees(0)
| `- note: property declared here
14 | @Binding var knobValue: Double
15 | @GestureState private var gestureRotation: Angle = .zero
:
160 | timer = Timer.scheduledTimer(withTimeInterval: 0.01, repeats: true) { timer in
161 | let angle = Angle(degrees: Double(lastVelocity) * rotationDirection)
162 | let newRotationAngle = rotationAngle + angle
| `- warning: main actor-isolated property 'rotationAngle' can not be referenced from a Sendable closure; this is an error in the Swift 6 language mode
163 | let clampedAngle = min(max(minAngle, newRotationAngle.degrees), maxAngle)
164 | if abs(newRotationAngle.degrees - clampedAngle) > 0.1 {
/Users/admin/builder/spi-builder-workspace/Sources/OneFingerRotation/OFKnob.swift:163:64: warning: main actor-isolated property 'minAngle' can not be referenced from a Sendable closure; this is an error in the Swift 6 language mode
28 | @State private var previousAngle: Double = 0
29 | @State private var rotationDirection: Double = 1
30 | @State var minAngle: Double
| `- note: property declared here
31 | @State var maxAngle: Double
32 |
:
161 | let angle = Angle(degrees: Double(lastVelocity) * rotationDirection)
162 | let newRotationAngle = rotationAngle + angle
163 | let clampedAngle = min(max(minAngle, newRotationAngle.degrees), maxAngle)
| `- warning: main actor-isolated property 'minAngle' can not be referenced from a Sendable closure; this is an error in the Swift 6 language mode
164 | if abs(newRotationAngle.degrees - clampedAngle) > 0.1 {
165 | let deceleration = 0.2 * rotationDirection
/Users/admin/builder/spi-builder-workspace/Sources/OneFingerRotation/OFKnob.swift:163:101: warning: main actor-isolated property 'maxAngle' can not be referenced from a Sendable closure; this is an error in the Swift 6 language mode
29 | @State private var rotationDirection: Double = 1
30 | @State var minAngle: Double
31 | @State var maxAngle: Double
| `- note: property declared here
32 |
33 |
:
161 | let angle = Angle(degrees: Double(lastVelocity) * rotationDirection)
162 | let newRotationAngle = rotationAngle + angle
163 | let clampedAngle = min(max(minAngle, newRotationAngle.degrees), maxAngle)
| `- warning: main actor-isolated property 'maxAngle' can not be referenced from a Sendable closure; this is an error in the Swift 6 language mode
164 | if abs(newRotationAngle.degrees - clampedAngle) > 0.1 {
165 | let deceleration = 0.2 * rotationDirection
/Users/admin/builder/spi-builder-workspace/Sources/OneFingerRotation/OFKnob.swift:165:66: warning: main actor-isolated property 'rotationDirection' can not be referenced from a Sendable closure; this is an error in the Swift 6 language mode
27 | @State var totalAngle: Double
28 | @State private var previousAngle: Double = 0
29 | @State private var rotationDirection: Double = 1
| `- note: property declared here
30 | @State var minAngle: Double
31 | @State var maxAngle: Double
:
163 | let clampedAngle = min(max(minAngle, newRotationAngle.degrees), maxAngle)
164 | if abs(newRotationAngle.degrees - clampedAngle) > 0.1 {
165 | let deceleration = 0.2 * rotationDirection
| `- warning: main actor-isolated property 'rotationDirection' can not be referenced from a Sendable closure; this is an error in the Swift 6 language mode
166 | rotationAngle = Angle(degrees: clampedAngle + deceleration)
167 | knobValue = (rotationAngle.degrees - minAngle) / (maxAngle - minAngle) // Update knobValue here
/Users/admin/builder/spi-builder-workspace/Sources/OneFingerRotation/OFKnob.swift:166:41: warning: main actor-isolated property 'rotationAngle' can not be mutated from a Sendable closure; this is an error in the Swift 6 language mode
11 |
12 |
13 | @State private var rotationAngle: Angle = .degrees(0)
| `- note: mutation of this property is only permitted within the actor
14 | @Binding var knobValue: Double
15 | @GestureState private var gestureRotation: Angle = .zero
:
164 | if abs(newRotationAngle.degrees - clampedAngle) > 0.1 {
165 | let deceleration = 0.2 * rotationDirection
166 | rotationAngle = Angle(degrees: clampedAngle + deceleration)
| `- warning: main actor-isolated property 'rotationAngle' can not be mutated from a Sendable closure; this is an error in the Swift 6 language mode
167 | knobValue = (rotationAngle.degrees - minAngle) / (maxAngle - minAngle) // Update knobValue here
168 | onKnobValueChanged(knobValue)
/Users/admin/builder/spi-builder-workspace/Sources/OneFingerRotation/OFKnob.swift:167:41: warning: main actor-isolated property 'knobValue' can not be mutated from a Sendable closure; this is an error in the Swift 6 language mode
12 |
13 | @State private var rotationAngle: Angle = .degrees(0)
14 | @Binding var knobValue: Double
| `- note: mutation of this property is only permitted within the actor
15 | @GestureState private var gestureRotation: Angle = .zero
16 | @State private var lastVelocity: CGFloat = 0
:
165 | let deceleration = 0.2 * rotationDirection
166 | rotationAngle = Angle(degrees: clampedAngle + deceleration)
167 | knobValue = (rotationAngle.degrees - minAngle) / (maxAngle - minAngle) // Update knobValue here
| `- warning: main actor-isolated property 'knobValue' can not be mutated from a Sendable closure; this is an error in the Swift 6 language mode
168 | onKnobValueChanged(knobValue)
169 | lastVelocity *= (1 - friction)
/Users/admin/builder/spi-builder-workspace/Sources/OneFingerRotation/OFKnob.swift:167:54: warning: main actor-isolated property 'rotationAngle' can not be referenced from a Sendable closure; this is an error in the Swift 6 language mode
11 |
12 |
13 | @State private var rotationAngle: Angle = .degrees(0)
| `- note: property declared here
14 | @Binding var knobValue: Double
15 | @GestureState private var gestureRotation: Angle = .zero
:
165 | let deceleration = 0.2 * rotationDirection
166 | rotationAngle = Angle(degrees: clampedAngle + deceleration)
167 | knobValue = (rotationAngle.degrees - minAngle) / (maxAngle - minAngle) // Update knobValue here
| `- warning: main actor-isolated property 'rotationAngle' can not be referenced from a Sendable closure; this is an error in the Swift 6 language mode
168 | onKnobValueChanged(knobValue)
169 | lastVelocity *= (1 - friction)
/Users/admin/builder/spi-builder-workspace/Sources/OneFingerRotation/OFKnob.swift:167:78: warning: main actor-isolated property 'minAngle' can not be referenced from a Sendable closure; this is an error in the Swift 6 language mode
28 | @State private var previousAngle: Double = 0
29 | @State private var rotationDirection: Double = 1
30 | @State var minAngle: Double
| `- note: property declared here
31 | @State var maxAngle: Double
32 |
:
165 | let deceleration = 0.2 * rotationDirection
166 | rotationAngle = Angle(degrees: clampedAngle + deceleration)
167 | knobValue = (rotationAngle.degrees - minAngle) / (maxAngle - minAngle) // Update knobValue here
| `- warning: main actor-isolated property 'minAngle' can not be referenced from a Sendable closure; this is an error in the Swift 6 language mode
168 | onKnobValueChanged(knobValue)
169 | lastVelocity *= (1 - friction)
/Users/admin/builder/spi-builder-workspace/Sources/OneFingerRotation/OFKnob.swift:167:91: warning: main actor-isolated property 'maxAngle' can not be referenced from a Sendable closure; this is an error in the Swift 6 language mode
29 | @State private var rotationDirection: Double = 1
30 | @State var minAngle: Double
31 | @State var maxAngle: Double
| `- note: property declared here
32 |
33 |
:
165 | let deceleration = 0.2 * rotationDirection
166 | rotationAngle = Angle(degrees: clampedAngle + deceleration)
167 | knobValue = (rotationAngle.degrees - minAngle) / (maxAngle - minAngle) // Update knobValue here
| `- warning: main actor-isolated property 'maxAngle' can not be referenced from a Sendable closure; this is an error in the Swift 6 language mode
168 | onKnobValueChanged(knobValue)
169 | lastVelocity *= (1 - friction)
/Users/admin/builder/spi-builder-workspace/Sources/OneFingerRotation/OFKnob.swift:167:102: warning: main actor-isolated property 'minAngle' can not be referenced from a Sendable closure; this is an error in the Swift 6 language mode
28 | @State private var previousAngle: Double = 0
29 | @State private var rotationDirection: Double = 1
30 | @State var minAngle: Double
| `- note: property declared here
31 | @State var maxAngle: Double
32 |
:
165 | let deceleration = 0.2 * rotationDirection
166 | rotationAngle = Angle(degrees: clampedAngle + deceleration)
167 | knobValue = (rotationAngle.degrees - minAngle) / (maxAngle - minAngle) // Update knobValue here
| `- warning: main actor-isolated property 'minAngle' can not be referenced from a Sendable closure; this is an error in the Swift 6 language mode
168 | onKnobValueChanged(knobValue)
169 | lastVelocity *= (1 - friction)
/Users/admin/builder/spi-builder-workspace/Sources/OneFingerRotation/OFKnob.swift:168:41: warning: main actor-isolated property 'onKnobValueChanged' can not be referenced from a Sendable closure; this is an error in the Swift 6 language mode
24 | @State private var isDragged: Bool = false
25 | let rotationThreshold: CGFloat = 12.0
26 | var onKnobValueChanged: (Double) -> Void
| `- note: property declared here
27 | @State var totalAngle: Double
28 | @State private var previousAngle: Double = 0
:
166 | rotationAngle = Angle(degrees: clampedAngle + deceleration)
167 | knobValue = (rotationAngle.degrees - minAngle) / (maxAngle - minAngle) // Update knobValue here
168 | onKnobValueChanged(knobValue)
| `- warning: main actor-isolated property 'onKnobValueChanged' can not be referenced from a Sendable closure; this is an error in the Swift 6 language mode
169 | lastVelocity *= (1 - friction)
170 | if lastVelocity < 0.1 {
/Users/admin/builder/spi-builder-workspace/Sources/OneFingerRotation/OFKnob.swift:168:60: warning: main actor-isolated property 'knobValue' can not be referenced from a Sendable closure; this is an error in the Swift 6 language mode
12 |
13 | @State private var rotationAngle: Angle = .degrees(0)
14 | @Binding var knobValue: Double
| `- note: property declared here
15 | @GestureState private var gestureRotation: Angle = .zero
16 | @State private var lastVelocity: CGFloat = 0
:
166 | rotationAngle = Angle(degrees: clampedAngle + deceleration)
167 | knobValue = (rotationAngle.degrees - minAngle) / (maxAngle - minAngle) // Update knobValue here
168 | onKnobValueChanged(knobValue)
| `- warning: main actor-isolated property 'knobValue' can not be referenced from a Sendable closure; this is an error in the Swift 6 language mode
169 | lastVelocity *= (1 - friction)
170 | if lastVelocity < 0.1 {
/Users/admin/builder/spi-builder-workspace/Sources/OneFingerRotation/OFKnob.swift:169:41: warning: main actor-isolated property 'lastVelocity' can not be mutated from a Sendable closure; this is an error in the Swift 6 language mode
14 | @Binding var knobValue: Double
15 | @GestureState private var gestureRotation: Angle = .zero
16 | @State private var lastVelocity: CGFloat = 0
| `- note: mutation of this property is only permitted within the actor
17 | @State private var isSpinning = false
18 | @State private var timer: Timer?
:
167 | knobValue = (rotationAngle.degrees - minAngle) / (maxAngle - minAngle) // Update knobValue here
168 | onKnobValueChanged(knobValue)
169 | lastVelocity *= (1 - friction)
| `- warning: main actor-isolated property 'lastVelocity' can not be mutated from a Sendable closure; this is an error in the Swift 6 language mode
170 | if lastVelocity < 0.1 {
171 | timer.invalidate()
/Users/admin/builder/spi-builder-workspace/Sources/OneFingerRotation/OFKnob.swift:169:62: warning: main actor-isolated property 'friction' can not be referenced from a Sendable closure; this is an error in the Swift 6 language mode
17 | @State private var isSpinning = false
18 | @State private var timer: Timer?
19 | @Binding var friction: CGFloat
| `- note: property declared here
20 | @Binding var stoppingAnimation: Bool
21 | @Binding var velocityMultiplier: CGFloat
:
167 | knobValue = (rotationAngle.degrees - minAngle) / (maxAngle - minAngle) // Update knobValue here
168 | onKnobValueChanged(knobValue)
169 | lastVelocity *= (1 - friction)
| `- warning: main actor-isolated property 'friction' can not be referenced from a Sendable closure; this is an error in the Swift 6 language mode
170 | if lastVelocity < 0.1 {
171 | timer.invalidate()
/Users/admin/builder/spi-builder-workspace/Sources/OneFingerRotation/OFKnob.swift:170:44: warning: main actor-isolated property 'lastVelocity' can not be referenced from a Sendable closure; this is an error in the Swift 6 language mode
14 | @Binding var knobValue: Double
15 | @GestureState private var gestureRotation: Angle = .zero
16 | @State private var lastVelocity: CGFloat = 0
| `- note: property declared here
17 | @State private var isSpinning = false
18 | @State private var timer: Timer?
:
168 | onKnobValueChanged(knobValue)
169 | lastVelocity *= (1 - friction)
170 | if lastVelocity < 0.1 {
| `- warning: main actor-isolated property 'lastVelocity' can not be referenced from a Sendable closure; this is an error in the Swift 6 language mode
171 | timer.invalidate()
172 | isSpinning = false
/Users/admin/builder/spi-builder-workspace/Sources/OneFingerRotation/OFKnob.swift:172:45: warning: main actor-isolated property 'isSpinning' can not be mutated from a Sendable closure; this is an error in the Swift 6 language mode
15 | @GestureState private var gestureRotation: Angle = .zero
16 | @State private var lastVelocity: CGFloat = 0
17 | @State private var isSpinning = false
| `- note: mutation of this property is only permitted within the actor
18 | @State private var timer: Timer?
19 | @Binding var friction: CGFloat
:
170 | if lastVelocity < 0.1 {
171 | timer.invalidate()
172 | isSpinning = false
| `- warning: main actor-isolated property 'isSpinning' can not be mutated from a Sendable closure; this is an error in the Swift 6 language mode
173 | }
174 | } else {
/Users/admin/builder/spi-builder-workspace/Sources/OneFingerRotation/OFKnob.swift:175:41: warning: main actor-isolated property 'rotationAngle' can not be mutated from a Sendable closure; this is an error in the Swift 6 language mode
11 |
12 |
13 | @State private var rotationAngle: Angle = .degrees(0)
| `- note: mutation of this property is only permitted within the actor
14 | @Binding var knobValue: Double
15 | @GestureState private var gestureRotation: Angle = .zero
:
173 | }
174 | } else {
175 | rotationAngle = newRotationAngle
| `- warning: main actor-isolated property 'rotationAngle' can not be mutated from a Sendable closure; this is an error in the Swift 6 language mode
176 | knobValue = (rotationAngle.degrees - minAngle) / (maxAngle - minAngle) // Update knobValue here
177 | onKnobValueChanged(knobValue)
/Users/admin/builder/spi-builder-workspace/Sources/OneFingerRotation/OFKnob.swift:176:41: warning: main actor-isolated property 'knobValue' can not be mutated from a Sendable closure; this is an error in the Swift 6 language mode
12 |
13 | @State private var rotationAngle: Angle = .degrees(0)
14 | @Binding var knobValue: Double
| `- note: mutation of this property is only permitted within the actor
15 | @GestureState private var gestureRotation: Angle = .zero
16 | @State private var lastVelocity: CGFloat = 0
:
174 | } else {
175 | rotationAngle = newRotationAngle
176 | knobValue = (rotationAngle.degrees - minAngle) / (maxAngle - minAngle) // Update knobValue here
| `- warning: main actor-isolated property 'knobValue' can not be mutated from a Sendable closure; this is an error in the Swift 6 language mode
177 | onKnobValueChanged(knobValue)
178 | lastVelocity *= (1 - friction)
/Users/admin/builder/spi-builder-workspace/Sources/OneFingerRotation/OFKnob.swift:176:54: warning: main actor-isolated property 'rotationAngle' can not be referenced from a Sendable closure; this is an error in the Swift 6 language mode
11 |
12 |
13 | @State private var rotationAngle: Angle = .degrees(0)
| `- note: property declared here
14 | @Binding var knobValue: Double
15 | @GestureState private var gestureRotation: Angle = .zero
:
174 | } else {
175 | rotationAngle = newRotationAngle
176 | knobValue = (rotationAngle.degrees - minAngle) / (maxAngle - minAngle) // Update knobValue here
| `- warning: main actor-isolated property 'rotationAngle' can not be referenced from a Sendable closure; this is an error in the Swift 6 language mode
177 | onKnobValueChanged(knobValue)
178 | lastVelocity *= (1 - friction)
/Users/admin/builder/spi-builder-workspace/Sources/OneFingerRotation/OFKnob.swift:176:78: warning: main actor-isolated property 'minAngle' can not be referenced from a Sendable closure; this is an error in the Swift 6 language mode
28 | @State private var previousAngle: Double = 0
29 | @State private var rotationDirection: Double = 1
30 | @State var minAngle: Double
| `- note: property declared here
31 | @State var maxAngle: Double
32 |
:
174 | } else {
175 | rotationAngle = newRotationAngle
176 | knobValue = (rotationAngle.degrees - minAngle) / (maxAngle - minAngle) // Update knobValue here
| `- warning: main actor-isolated property 'minAngle' can not be referenced from a Sendable closure; this is an error in the Swift 6 language mode
177 | onKnobValueChanged(knobValue)
178 | lastVelocity *= (1 - friction)
/Users/admin/builder/spi-builder-workspace/Sources/OneFingerRotation/OFKnob.swift:176:91: warning: main actor-isolated property 'maxAngle' can not be referenced from a Sendable closure; this is an error in the Swift 6 language mode
29 | @State private var rotationDirection: Double = 1
30 | @State var minAngle: Double
31 | @State var maxAngle: Double
| `- note: property declared here
32 |
33 |
:
174 | } else {
175 | rotationAngle = newRotationAngle
176 | knobValue = (rotationAngle.degrees - minAngle) / (maxAngle - minAngle) // Update knobValue here
| `- warning: main actor-isolated property 'maxAngle' can not be referenced from a Sendable closure; this is an error in the Swift 6 language mode
177 | onKnobValueChanged(knobValue)
178 | lastVelocity *= (1 - friction)
/Users/admin/builder/spi-builder-workspace/Sources/OneFingerRotation/OFKnob.swift:176:102: warning: main actor-isolated property 'minAngle' can not be referenced from a Sendable closure; this is an error in the Swift 6 language mode
28 | @State private var previousAngle: Double = 0
29 | @State private var rotationDirection: Double = 1
30 | @State var minAngle: Double
| `- note: property declared here
31 | @State var maxAngle: Double
32 |
:
174 | } else {
175 | rotationAngle = newRotationAngle
176 | knobValue = (rotationAngle.degrees - minAngle) / (maxAngle - minAngle) // Update knobValue here
| `- warning: main actor-isolated property 'minAngle' can not be referenced from a Sendable closure; this is an error in the Swift 6 language mode
177 | onKnobValueChanged(knobValue)
178 | lastVelocity *= (1 - friction)
/Users/admin/builder/spi-builder-workspace/Sources/OneFingerRotation/OFKnob.swift:177:41: warning: main actor-isolated property 'onKnobValueChanged' can not be referenced from a Sendable closure; this is an error in the Swift 6 language mode
24 | @State private var isDragged: Bool = false
25 | let rotationThreshold: CGFloat = 12.0
26 | var onKnobValueChanged: (Double) -> Void
| `- note: property declared here
27 | @State var totalAngle: Double
28 | @State private var previousAngle: Double = 0
:
175 | rotationAngle = newRotationAngle
176 | knobValue = (rotationAngle.degrees - minAngle) / (maxAngle - minAngle) // Update knobValue here
177 | onKnobValueChanged(knobValue)
| `- warning: main actor-isolated property 'onKnobValueChanged' can not be referenced from a Sendable closure; this is an error in the Swift 6 language mode
178 | lastVelocity *= (1 - friction)
179 | if lastVelocity < 0.1 || (newRotationAngle.degrees < minAngle || newRotationAngle.degrees > maxAngle) {
/Users/admin/builder/spi-builder-workspace/Sources/OneFingerRotation/OFKnob.swift:177:60: warning: main actor-isolated property 'knobValue' can not be referenced from a Sendable closure; this is an error in the Swift 6 language mode
12 |
13 | @State private var rotationAngle: Angle = .degrees(0)
14 | @Binding var knobValue: Double
| `- note: property declared here
15 | @GestureState private var gestureRotation: Angle = .zero
16 | @State private var lastVelocity: CGFloat = 0
:
175 | rotationAngle = newRotationAngle
176 | knobValue = (rotationAngle.degrees - minAngle) / (maxAngle - minAngle) // Update knobValue here
177 | onKnobValueChanged(knobValue)
| `- warning: main actor-isolated property 'knobValue' can not be referenced from a Sendable closure; this is an error in the Swift 6 language mode
178 | lastVelocity *= (1 - friction)
179 | if lastVelocity < 0.1 || (newRotationAngle.degrees < minAngle || newRotationAngle.degrees > maxAngle) {
/Users/admin/builder/spi-builder-workspace/Sources/OneFingerRotation/OFKnob.swift:178:41: warning: main actor-isolated property 'lastVelocity' can not be mutated from a Sendable closure; this is an error in the Swift 6 language mode
14 | @Binding var knobValue: Double
15 | @GestureState private var gestureRotation: Angle = .zero
16 | @State private var lastVelocity: CGFloat = 0
| `- note: mutation of this property is only permitted within the actor
17 | @State private var isSpinning = false
18 | @State private var timer: Timer?
:
176 | knobValue = (rotationAngle.degrees - minAngle) / (maxAngle - minAngle) // Update knobValue here
177 | onKnobValueChanged(knobValue)
178 | lastVelocity *= (1 - friction)
| `- warning: main actor-isolated property 'lastVelocity' can not be mutated from a Sendable closure; this is an error in the Swift 6 language mode
179 | if lastVelocity < 0.1 || (newRotationAngle.degrees < minAngle || newRotationAngle.degrees > maxAngle) {
180 | timer.invalidate()
/Users/admin/builder/spi-builder-workspace/Sources/OneFingerRotation/OFKnob.swift:178:62: warning: main actor-isolated property 'friction' can not be referenced from a Sendable closure; this is an error in the Swift 6 language mode
17 | @State private var isSpinning = false
18 | @State private var timer: Timer?
19 | @Binding var friction: CGFloat
| `- note: property declared here
20 | @Binding var stoppingAnimation: Bool
21 | @Binding var velocityMultiplier: CGFloat
:
176 | knobValue = (rotationAngle.degrees - minAngle) / (maxAngle - minAngle) // Update knobValue here
177 | onKnobValueChanged(knobValue)
178 | lastVelocity *= (1 - friction)
| `- warning: main actor-isolated property 'friction' can not be referenced from a Sendable closure; this is an error in the Swift 6 language mode
179 | if lastVelocity < 0.1 || (newRotationAngle.degrees < minAngle || newRotationAngle.degrees > maxAngle) {
180 | timer.invalidate()
/Users/admin/builder/spi-builder-workspace/Sources/OneFingerRotation/OFKnob.swift:179:44: warning: main actor-isolated property 'lastVelocity' can not be referenced from a Sendable closure; this is an error in the Swift 6 language mode
14 | @Binding var knobValue: Double
15 | @GestureState private var gestureRotation: Angle = .zero
16 | @State private var lastVelocity: CGFloat = 0
| `- note: property declared here
17 | @State private var isSpinning = false
18 | @State private var timer: Timer?
:
177 | onKnobValueChanged(knobValue)
178 | lastVelocity *= (1 - friction)
179 | if lastVelocity < 0.1 || (newRotationAngle.degrees < minAngle || newRotationAngle.degrees > maxAngle) {
| `- warning: main actor-isolated property 'lastVelocity' can not be referenced from a Sendable closure; this is an error in the Swift 6 language mode
180 | timer.invalidate()
181 | isSpinning = false
/Users/admin/builder/spi-builder-workspace/Sources/OneFingerRotation/OFKnob.swift:179:94: warning: main actor-isolated property 'minAngle' can not be referenced from a nonisolated autoclosure; this is an error in the Swift 6 language mode
28 | @State private var previousAngle: Double = 0
29 | @State private var rotationDirection: Double = 1
30 | @State var minAngle: Double
| `- note: property declared here
31 | @State var maxAngle: Double
32 |
:
177 | onKnobValueChanged(knobValue)
178 | lastVelocity *= (1 - friction)
179 | if lastVelocity < 0.1 || (newRotationAngle.degrees < minAngle || newRotationAngle.degrees > maxAngle) {
| `- warning: main actor-isolated property 'minAngle' can not be referenced from a nonisolated autoclosure; this is an error in the Swift 6 language mode
180 | timer.invalidate()
181 | isSpinning = false
/Users/admin/builder/spi-builder-workspace/Sources/OneFingerRotation/OFKnob.swift:179:133: warning: main actor-isolated property 'maxAngle' can not be referenced from a nonisolated autoclosure; this is an error in the Swift 6 language mode
29 | @State private var rotationDirection: Double = 1
30 | @State var minAngle: Double
31 | @State var maxAngle: Double
| `- note: property declared here
32 |
33 |
:
177 | onKnobValueChanged(knobValue)
178 | lastVelocity *= (1 - friction)
179 | if lastVelocity < 0.1 || (newRotationAngle.degrees < minAngle || newRotationAngle.degrees > maxAngle) {
| `- warning: main actor-isolated property 'maxAngle' can not be referenced from a nonisolated autoclosure; this is an error in the Swift 6 language mode
180 | timer.invalidate()
181 | isSpinning = false
/Users/admin/builder/spi-builder-workspace/Sources/OneFingerRotation/OFKnob.swift:181:45: warning: main actor-isolated property 'isSpinning' can not be mutated from a Sendable closure; this is an error in the Swift 6 language mode
15 | @GestureState private var gestureRotation: Angle = .zero
16 | @State private var lastVelocity: CGFloat = 0
17 | @State private var isSpinning = false
| `- note: mutation of this property is only permitted within the actor
18 | @State private var timer: Timer?
19 | @Binding var friction: CGFloat
:
179 | if lastVelocity < 0.1 || (newRotationAngle.degrees < minAngle || newRotationAngle.degrees > maxAngle) {
180 | timer.invalidate()
181 | isSpinning = false
| `- warning: main actor-isolated property 'isSpinning' can not be mutated from a Sendable closure; this is an error in the Swift 6 language mode
182 | }
183 | }
Build complete! (8.33s)
Build complete.
{
"dependencies" : [
],
"manifest_display_name" : "OneFingerRotation",
"name" : "OneFingerRotation",
"path" : "/Users/admin/builder/spi-builder-workspace",
"platforms" : [
{
"name" : "ios",
"version" : "14.0"
},
{
"name" : "macos",
"version" : "11.0"
},
{
"name" : "watchos",
"version" : "7.0"
}
],
"products" : [
{
"name" : "OneFingerRotation",
"targets" : [
"OneFingerRotation"
],
"type" : {
"library" : [
"automatic"
]
}
}
],
"targets" : [
{
"c99name" : "OneFingerRotationTests",
"module_type" : "SwiftTarget",
"name" : "OneFingerRotationTests",
"path" : "Tests/OneFingerRotationTests",
"sources" : [
"OneFingerRotationTests.swift"
],
"target_dependencies" : [
"OneFingerRotation"
],
"type" : "test"
},
{
"c99name" : "OneFingerRotation",
"module_type" : "SwiftTarget",
"name" : "OneFingerRotation",
"path" : "Sources/OneFingerRotation",
"product_memberships" : [
"OneFingerRotation"
],
"sources" : [
"OFKnob.swift",
"OneFingerRotation.swift"
],
"type" : "library"
}
],
"tools_version" : "5.6"
}
Done.