This is a staging environment. For live and up-to-date package information, visit swiftpackageindex.com.

The Swift Package Index logo.Swift Package Index

Track the adoption of Swift 6 strict concurrency checks for data race safety. How many packages are Ready for Swift 6?

Build Information

Successful build of OneFingerRotation with Swift 6.0 for macOS (SPM).

Swift 6 data race errors: 9

Build Command

env DEVELOPER_DIR=/Applications/Xcode-15.3.0.app xcrun --toolchain org.swift.600202405261a swift build --arch arm64 -Xswiftc -Xfrontend -Xswiftc -stats-output-dir -Xswiftc -Xfrontend -Xswiftc .stats -Xswiftc -strict-concurrency=complete

Build Log

========================================
RunAll
========================================
Builder version: 4.40.0
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/matteofontana-app/OneFingerRotation.git
Reference: main
Initialized empty Git repository in /Users/admin/builder/spi-builder-workspace/.git/
From https://github.com/matteofontana-app/OneFingerRotation
 * branch            main       -> FETCH_HEAD
 * [new branch]      main       -> origin/main
HEAD is now at 2150ae9 Remote
Cloned https://github.com/matteofontana-app/OneFingerRotation.git
Revision (git rev-parse @):
2150ae9847ec936f3cafc2ca035bf8f15c7fca10
SUCCESS checkout https://github.com/matteofontana-app/OneFingerRotation.git at main
========================================
Build
========================================
Selected platform:         macosSpm
Swift version:             6.0
Building package at path:  $workDir
https://github.com/matteofontana-app/OneFingerRotation.git
Running build ...
env DEVELOPER_DIR=/Applications/Xcode-15.3.0.app xcrun --toolchain org.swift.600202405261a swift build --arch arm64 -Xswiftc -Xfrontend -Xswiftc -stats-output-dir -Xswiftc -Xfrontend -Xswiftc .stats -Xswiftc -strict-concurrency=complete
Building for debugging...
[0/2] Write sources
[1/2] Write swift-version-6F35C1178C84523A.txt
[3/12] Compiling OneFingerRotation ValueRotation.swift
/Users/admin/builder/spi-builder-workspace/Sources/OneFingerRotation/Version 1.0/ValueRotation.swift:90:16: warning: static property 'defaultValue' is not concurrency-safe because it is non-isolated global shared mutable state; this is an error in the Swift 6 language mode
 88 |
 89 | struct FrameSizeKeyValueRotation: PreferenceKey {
 90 |     static var defaultValue: CGSize = .zero
    |                |- warning: static property 'defaultValue' is not concurrency-safe because it is non-isolated global shared mutable state; this is an error in the Swift 6 language mode
    |                |- note: convert 'defaultValue' to a 'let' constant to make 'Sendable' shared state immutable
    |                |- note: annotate 'defaultValue' with '@MainActor' if property should only be accessed from the main actor
    |                `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
 91 |     static func reduce(value: inout CGSize, nextValue: () -> CGSize) {
 92 |         value = nextValue()
[4/12] Compiling OneFingerRotation ValueRotationInertia.swift
/Users/admin/builder/spi-builder-workspace/Sources/OneFingerRotation/Version 1.0/ValueRotationInertia.swift:189:16: warning: static property 'defaultValue' is not concurrency-safe because it is non-isolated global shared mutable state; this is an error in the Swift 6 language mode
187 | /// This PreferenceKey is necessary for the calculation of the frame width and height of the content.
188 | struct FrameSizeKeyValueRotationInertia: PreferenceKey {
189 |     static var defaultValue: CGSize = .zero
    |                |- warning: static property 'defaultValue' is not concurrency-safe because it is non-isolated global shared mutable state; this is an error in the Swift 6 language mode
    |                |- note: convert 'defaultValue' to a 'let' constant to make 'Sendable' shared state immutable
    |                |- note: annotate 'defaultValue' with '@MainActor' if property should only be accessed from the main actor
    |                `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
190 |
191 |     static func reduce(value: inout CGSize, nextValue: () -> CGSize) {
/Users/admin/builder/spi-builder-workspace/Sources/OneFingerRotation/Version 1.0/ValueRotationInertia.swift:141:71: warning: capture of 'self' with non-sendable type 'ValueRotationInertia' in a `@Sendable` closure; this is an error in the Swift 6 language mode
  8 | import SwiftUI
  9 |
 10 | public struct ValueRotationInertia: ViewModifier {
    |               `- note: consider making struct 'ValueRotationInertia' conform to the 'Sendable' protocol
 11 |     @State private var rotationAngle: Angle = .degrees(0)
 12 |     @GestureState private var gestureRotation: Angle = .zero
    :
139 |                                 timer?.invalidate()
140 |                                 timer = Timer.scheduledTimer(withTimeInterval: 0.01, repeats: true) { timer in
141 |                                     let angle = Angle(degrees: Double(lastVelocity) * rotationDirection)
    |                                                                       `- warning: capture of 'self' with non-sendable type 'ValueRotationInertia' in a `@Sendable` closure; this is an error in the Swift 6 language mode
142 |                                     rotationAngle += angle
143 |                                     onAngleChanged(rotationAngle.degrees)
[5/12] Compiling OneFingerRotation SimpleRotation.swift
/Users/admin/builder/spi-builder-workspace/Sources/OneFingerRotation/Version 2.0/SimpleRotation.swift:72:16: warning: static property 'defaultValue' is not concurrency-safe because it is non-isolated global shared mutable state; this is an error in the Swift 6 language mode
70 |
71 | struct FrameSizeKeySimpleRotation: PreferenceKey {
72 |     static var defaultValue: CGSize = .zero
   |                |- warning: static property 'defaultValue' is not concurrency-safe because it is non-isolated global shared mutable state; this is an error in the Swift 6 language mode
   |                |- note: convert 'defaultValue' to a 'let' constant to make 'Sendable' shared state immutable
   |                |- note: annotate 'defaultValue' with '@MainActor' if property should only be accessed from the main actor
   |                `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
73 |
74 |     static func reduce(value: inout CGSize, nextValue: () -> CGSize) {
[6/12] Compiling OneFingerRotation ValueAutoRotation.swift
/Users/admin/builder/spi-builder-workspace/Sources/OneFingerRotation/Version 1.0/ValueAutoRotation.swift:154:16: warning: static property 'defaultValue' is not concurrency-safe because it is non-isolated global shared mutable state; this is an error in the Swift 6 language mode
152 |
153 | struct FrameSizeKeyValueAutoRotation: PreferenceKey {
154 |     static var defaultValue: CGSize = .zero
    |                |- warning: static property 'defaultValue' is not concurrency-safe because it is non-isolated global shared mutable state; this is an error in the Swift 6 language mode
    |                |- note: convert 'defaultValue' to a 'let' constant to make 'Sendable' shared state immutable
    |                |- note: annotate 'defaultValue' with '@MainActor' if property should only be accessed from the main actor
    |                `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
155 |
156 |     static func reduce(value: inout CGSize, nextValue: () -> CGSize) {
/Users/admin/builder/spi-builder-workspace/Sources/OneFingerRotation/Version 1.0/ValueAutoRotation.swift:42:37: warning: capture of 'self' with non-sendable type 'ValueAutoRotation' in a `@Sendable` closure; this is an error in the Swift 6 language mode
  8 | import SwiftUI
  9 |
 10 | public struct ValueAutoRotation: ViewModifier {
    |               `- note: consider making struct 'ValueAutoRotation' conform to the 'Sendable' protocol
 11 |     @State private var rotationAngle: Angle = .degrees(0)
 12 |     @State private var previousAngle: Double = 0
    :
 40 |             guard autoRotationEnabled, autoRotationTimer == nil else { return }
 41 |             autoRotationTimer = Timer.scheduledTimer(withTimeInterval: 1.0 / 60.0, repeats: true) { _ in
 42 |                 let deltaRotation = autoRotationSpeed / 60.0
    |                                     `- warning: capture of 'self' with non-sendable type 'ValueAutoRotation' in a `@Sendable` closure; this is an error in the Swift 6 language mode
 43 |                 let newRotation = rotationAngle.degrees + deltaRotation
 44 |                 rotationAngle = Angle(degrees: newRotation)
[7/12] Compiling OneFingerRotation KnobInertia.swift
/Users/admin/builder/spi-builder-workspace/Sources/OneFingerRotation/Version 1.0/KnobInertia.swift:223:16: warning: static property 'defaultValue' is not concurrency-safe because it is non-isolated 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 non-isolated global shared mutable state; this is an error in the Swift 6 language mode
    |                |- note: convert 'defaultValue' to a 'let' constant to make 'Sendable' shared state immutable
    |                |- note: annotate 'defaultValue' with '@MainActor' if property should only be accessed from the main actor
    |                `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
224 |
225 |     static func reduce(value: inout CGSize, nextValue: () -> CGSize) {
/Users/admin/builder/spi-builder-workspace/Sources/OneFingerRotation/Version 1.0/KnobInertia.swift:161:71: warning: capture of 'self' with non-sendable type 'KnobInertia' in a `@Sendable` closure; this is an error in the Swift 6 language mode
  8 | import SwiftUI
  9 |
 10 | public struct KnobInertia: ViewModifier {
    |               `- note: consider making struct 'KnobInertia' conform to the 'Sendable' protocol
 11 |
 12 |
    :
159 |                                 timer?.invalidate()
160 |                                 timer = Timer.scheduledTimer(withTimeInterval: 0.01, repeats: true) { timer in
161 |                                     let angle = Angle(degrees: Double(lastVelocity) * rotationDirection)
    |                                                                       `- warning: capture of 'self' with non-sendable type 'KnobInertia' in 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/Version 1.0/KnobInertia.swift:179:94: warning: implicit capture of 'self' requires that 'KnobInertia' conforms to `Sendable`; this is an error in the Swift 6 language mode
  8 | import SwiftUI
  9 |
 10 | public struct KnobInertia: ViewModifier {
    |               `- note: consider making struct 'KnobInertia' conform to the 'Sendable' protocol
 11 |
 12 |
    :
177 |                                         onKnobValueChanged(knobValue)
178 |                                         lastVelocity *= (1 - friction)
179 |                                         if lastVelocity < 0.1 || (newRotationAngle.degrees < minAngle || newRotationAngle.degrees > maxAngle) {
    |                                                                                              `- warning: implicit capture of 'self' requires that 'KnobInertia' conforms to `Sendable`; this is an error in the Swift 6 language mode
180 |                                             timer.invalidate()
181 |                                             isSpinning = false
/Users/admin/builder/spi-builder-workspace/Sources/OneFingerRotation/Version 1.0/KnobInertia.swift:179:133: warning: implicit capture of 'self' requires that 'KnobInertia' conforms to `Sendable`; this is an error in the Swift 6 language mode
  8 | import SwiftUI
  9 |
 10 | public struct KnobInertia: ViewModifier {
    |               `- note: consider making struct 'KnobInertia' conform to the 'Sendable' protocol
 11 |
 12 |
    :
177 |                                         onKnobValueChanged(knobValue)
178 |                                         lastVelocity *= (1 - friction)
179 |                                         if lastVelocity < 0.1 || (newRotationAngle.degrees < minAngle || newRotationAngle.degrees > maxAngle) {
    |                                                                                                                                     `- warning: implicit capture of 'self' requires that 'KnobInertia' conforms to `Sendable`; this is an error in the Swift 6 language mode
180 |                                             timer.invalidate()
181 |                                             isSpinning = false
[8/12] Compiling OneFingerRotation KnobRotation.swift
/Users/admin/builder/spi-builder-workspace/Sources/OneFingerRotation/Version 1.0/KnobRotation.swift:107:16: warning: static property 'defaultValue' is not concurrency-safe because it is non-isolated global shared mutable state; this is an error in the Swift 6 language mode
105 |
106 | struct FrameSizeKeyKnobRotation: PreferenceKey {
107 |     static var defaultValue: CGSize = .zero
    |                |- warning: static property 'defaultValue' is not concurrency-safe because it is non-isolated global shared mutable state; this is an error in the Swift 6 language mode
    |                |- note: convert 'defaultValue' to a 'let' constant to make 'Sendable' shared state immutable
    |                |- note: annotate 'defaultValue' with '@MainActor' if property should only be accessed from the main actor
    |                `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
108 |
109 |     static func reduce(value: inout CGSize, nextValue: () -> CGSize) {
[9/12] Compiling OneFingerRotation OneFingerRotation.swift
[10/12] Compiling OneFingerRotation AutoRotation.swift
/Users/admin/builder/spi-builder-workspace/Sources/OneFingerRotation/Version 1.0/AutoRotation.swift:96:16: warning: static property 'defaultValue' is not concurrency-safe because it is non-isolated global shared mutable state; this is an error in the Swift 6 language mode
 94 |
 95 | struct FrameSizeKeyAutoRotation: PreferenceKey {
 96 |     static var defaultValue: CGSize = .zero
    |                |- warning: static property 'defaultValue' is not concurrency-safe because it is non-isolated global shared mutable state; this is an error in the Swift 6 language mode
    |                |- note: convert 'defaultValue' to a 'let' constant to make 'Sendable' shared state immutable
    |                |- note: annotate 'defaultValue' with '@MainActor' if property should only be accessed from the main actor
    |                `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
 97 |
 98 |     static func reduce(value: inout CGSize, nextValue: () -> CGSize) {
/Users/admin/builder/spi-builder-workspace/Sources/OneFingerRotation/Version 1.0/AutoRotation.swift:23:16: warning: capture of 'self' with non-sendable type 'AutoRotation' in a `@Sendable` closure; this is an error in the Swift 6 language mode
  9 |
 10 | ///Struct for Auto Rotation
 11 | public struct AutoRotation: ViewModifier {
    |               `- note: consider making struct 'AutoRotation' conform to the 'Sendable' protocol
 12 |     ///Variable for general rotationAngle, which calculates the initial angle of the content.
 13 |     @State private var rotationAngle: Angle = .zero
    :
 21 |     var timer: Timer {
 22 |         Timer.scheduledTimer(withTimeInterval: 1 / 60, repeats: true) { _ in
 23 |             if autoRotationActive && gestureRotation == .zero {
    |                `- warning: capture of 'self' with non-sendable type 'AutoRotation' in a `@Sendable` closure; this is an error in the Swift 6 language mode
 24 |                 rotationAngle = rotationAngle + Angle(degrees: autoRotationSpeed / 60)
 25 |             }
/Users/admin/builder/spi-builder-workspace/Sources/OneFingerRotation/Version 1.0/AutoRotation.swift:23:38: warning: implicit capture of 'self' requires that 'AutoRotation' conforms to `Sendable`; this is an error in the Swift 6 language mode
  9 |
 10 | ///Struct for Auto Rotation
 11 | public struct AutoRotation: ViewModifier {
    |               `- note: consider making struct 'AutoRotation' conform to the 'Sendable' protocol
 12 |     ///Variable for general rotationAngle, which calculates the initial angle of the content.
 13 |     @State private var rotationAngle: Angle = .zero
    :
 21 |     var timer: Timer {
 22 |         Timer.scheduledTimer(withTimeInterval: 1 / 60, repeats: true) { _ in
 23 |             if autoRotationActive && gestureRotation == .zero {
    |                                      `- warning: implicit capture of 'self' requires that 'AutoRotation' conforms to `Sendable`; this is an error in the Swift 6 language mode
 24 |                 rotationAngle = rotationAngle + Angle(degrees: autoRotationSpeed / 60)
 25 |             }
[11/12] Compiling OneFingerRotation ValueAutoRotationInertia.swift
/Users/admin/builder/spi-builder-workspace/Sources/OneFingerRotation/Version 1.0/ValueAutoRotationInertia.swift:227:16: warning: static property 'defaultValue' is not concurrency-safe because it is non-isolated global shared mutable state; this is an error in the Swift 6 language mode
225 | /// This PreferenceKey is necessary for the calculation of the frame width and height of the content.
226 | struct FrameSizeKeyValueAutoRotationInertia: PreferenceKey {
227 |     static var defaultValue: CGSize = .zero
    |                |- warning: static property 'defaultValue' is not concurrency-safe because it is non-isolated global shared mutable state; this is an error in the Swift 6 language mode
    |                |- note: convert 'defaultValue' to a 'let' constant to make 'Sendable' shared state immutable
    |                |- note: annotate 'defaultValue' with '@MainActor' if property should only be accessed from the main actor
    |                `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
228 |
229 |     static func reduce(value: inout CGSize, nextValue: () -> CGSize) {
/Users/admin/builder/spi-builder-workspace/Sources/OneFingerRotation/Version 1.0/ValueAutoRotationInertia.swift:56:37: warning: capture of 'self' with non-sendable type 'ValueAutoRotationInertia' in a `@Sendable` closure; this is an error in the Swift 6 language mode
  8 | import SwiftUI
  9 |
 10 | public struct ValueAutoRotationInertia: ViewModifier {
    |               `- note: consider making struct 'ValueAutoRotationInertia' conform to the 'Sendable' protocol
 11 |     @State private var rotationAngle: Angle = .degrees(0)
 12 |     @GestureState private var gestureRotation: Angle = .zero
    :
 54 |             guard autoRotationEnabled, autoRotationTimer == nil else { return }
 55 |             autoRotationTimer = Timer.scheduledTimer(withTimeInterval: 1.0 / 60.0, repeats: true) { _ in
 56 |                 let deltaRotation = autoRotationSpeed / 60.0
    |                                     `- warning: capture of 'self' with non-sendable type 'ValueAutoRotationInertia' in a `@Sendable` closure; this is an error in the Swift 6 language mode
 57 |                 let newRotation = rotationAngle.degrees + deltaRotation
 58 |                 rotationAngle = Angle(degrees: newRotation)
/Users/admin/builder/spi-builder-workspace/Sources/OneFingerRotation/Version 1.0/ValueAutoRotationInertia.swift:168:71: warning: capture of 'self' with non-sendable type 'ValueAutoRotationInertia' in a `@Sendable` closure; this is an error in the Swift 6 language mode
  8 | import SwiftUI
  9 |
 10 | public struct ValueAutoRotationInertia: ViewModifier {
    |               `- note: consider making struct 'ValueAutoRotationInertia' conform to the 'Sendable' protocol
 11 |     @State private var rotationAngle: Angle = .degrees(0)
 12 |     @GestureState private var gestureRotation: Angle = .zero
    :
166 |                                 timer?.invalidate()
167 |                                 timer = Timer.scheduledTimer(withTimeInterval: 0.01, repeats: true) { timer in
168 |                                     let angle = Angle(degrees: Double(lastVelocity) * rotationDirection)
    |                                                                       `- warning: capture of 'self' with non-sendable type 'ValueAutoRotationInertia' in a `@Sendable` closure; this is an error in the Swift 6 language mode
169 |                                     rotationAngle += angle
170 |                                     onAngleChanged(rotationAngle.degrees)
[12/12] Emitting module OneFingerRotation
/Users/admin/builder/spi-builder-workspace/Sources/OneFingerRotation/Version 1.0/AutoRotation.swift:96:16: warning: static property 'defaultValue' is not concurrency-safe because it is non-isolated global shared mutable state; this is an error in the Swift 6 language mode
 94 |
 95 | struct FrameSizeKeyAutoRotation: PreferenceKey {
 96 |     static var defaultValue: CGSize = .zero
    |                |- warning: static property 'defaultValue' is not concurrency-safe because it is non-isolated global shared mutable state; this is an error in the Swift 6 language mode
    |                |- note: convert 'defaultValue' to a 'let' constant to make 'Sendable' shared state immutable
    |                |- note: annotate 'defaultValue' with '@MainActor' if property should only be accessed from the main actor
    |                `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
 97 |
 98 |     static func reduce(value: inout CGSize, nextValue: () -> CGSize) {
/Users/admin/builder/spi-builder-workspace/Sources/OneFingerRotation/Version 1.0/KnobInertia.swift:223:16: warning: static property 'defaultValue' is not concurrency-safe because it is non-isolated 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 non-isolated global shared mutable state; this is an error in the Swift 6 language mode
    |                |- note: convert 'defaultValue' to a 'let' constant to make 'Sendable' shared state immutable
    |                |- note: annotate 'defaultValue' with '@MainActor' if property should only be accessed from the main actor
    |                `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
224 |
225 |     static func reduce(value: inout CGSize, nextValue: () -> CGSize) {
/Users/admin/builder/spi-builder-workspace/Sources/OneFingerRotation/Version 1.0/KnobRotation.swift:107:16: warning: static property 'defaultValue' is not concurrency-safe because it is non-isolated global shared mutable state; this is an error in the Swift 6 language mode
105 |
106 | struct FrameSizeKeyKnobRotation: PreferenceKey {
107 |     static var defaultValue: CGSize = .zero
    |                |- warning: static property 'defaultValue' is not concurrency-safe because it is non-isolated global shared mutable state; this is an error in the Swift 6 language mode
    |                |- note: convert 'defaultValue' to a 'let' constant to make 'Sendable' shared state immutable
    |                |- note: annotate 'defaultValue' with '@MainActor' if property should only be accessed from the main actor
    |                `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
108 |
109 |     static func reduce(value: inout CGSize, nextValue: () -> CGSize) {
/Users/admin/builder/spi-builder-workspace/Sources/OneFingerRotation/Version 1.0/ValueAutoRotation.swift:154:16: warning: static property 'defaultValue' is not concurrency-safe because it is non-isolated global shared mutable state; this is an error in the Swift 6 language mode
152 |
153 | struct FrameSizeKeyValueAutoRotation: PreferenceKey {
154 |     static var defaultValue: CGSize = .zero
    |                |- warning: static property 'defaultValue' is not concurrency-safe because it is non-isolated global shared mutable state; this is an error in the Swift 6 language mode
    |                |- note: convert 'defaultValue' to a 'let' constant to make 'Sendable' shared state immutable
    |                |- note: annotate 'defaultValue' with '@MainActor' if property should only be accessed from the main actor
    |                `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
155 |
156 |     static func reduce(value: inout CGSize, nextValue: () -> CGSize) {
/Users/admin/builder/spi-builder-workspace/Sources/OneFingerRotation/Version 1.0/ValueAutoRotationInertia.swift:227:16: warning: static property 'defaultValue' is not concurrency-safe because it is non-isolated global shared mutable state; this is an error in the Swift 6 language mode
225 | /// This PreferenceKey is necessary for the calculation of the frame width and height of the content.
226 | struct FrameSizeKeyValueAutoRotationInertia: PreferenceKey {
227 |     static var defaultValue: CGSize = .zero
    |                |- warning: static property 'defaultValue' is not concurrency-safe because it is non-isolated global shared mutable state; this is an error in the Swift 6 language mode
    |                |- note: convert 'defaultValue' to a 'let' constant to make 'Sendable' shared state immutable
    |                |- note: annotate 'defaultValue' with '@MainActor' if property should only be accessed from the main actor
    |                `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
228 |
229 |     static func reduce(value: inout CGSize, nextValue: () -> CGSize) {
/Users/admin/builder/spi-builder-workspace/Sources/OneFingerRotation/Version 1.0/ValueRotation.swift:90:16: warning: static property 'defaultValue' is not concurrency-safe because it is non-isolated global shared mutable state; this is an error in the Swift 6 language mode
 88 |
 89 | struct FrameSizeKeyValueRotation: PreferenceKey {
 90 |     static var defaultValue: CGSize = .zero
    |                |- warning: static property 'defaultValue' is not concurrency-safe because it is non-isolated global shared mutable state; this is an error in the Swift 6 language mode
    |                |- note: convert 'defaultValue' to a 'let' constant to make 'Sendable' shared state immutable
    |                |- note: annotate 'defaultValue' with '@MainActor' if property should only be accessed from the main actor
    |                `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
 91 |     static func reduce(value: inout CGSize, nextValue: () -> CGSize) {
 92 |         value = nextValue()
/Users/admin/builder/spi-builder-workspace/Sources/OneFingerRotation/Version 1.0/ValueRotationInertia.swift:189:16: warning: static property 'defaultValue' is not concurrency-safe because it is non-isolated global shared mutable state; this is an error in the Swift 6 language mode
187 | /// This PreferenceKey is necessary for the calculation of the frame width and height of the content.
188 | struct FrameSizeKeyValueRotationInertia: PreferenceKey {
189 |     static var defaultValue: CGSize = .zero
    |                |- warning: static property 'defaultValue' is not concurrency-safe because it is non-isolated global shared mutable state; this is an error in the Swift 6 language mode
    |                |- note: convert 'defaultValue' to a 'let' constant to make 'Sendable' shared state immutable
    |                |- note: annotate 'defaultValue' with '@MainActor' if property should only be accessed from the main actor
    |                `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
190 |
191 |     static func reduce(value: inout CGSize, nextValue: () -> CGSize) {
/Users/admin/builder/spi-builder-workspace/Sources/OneFingerRotation/Version 2.0/SimpleRotation.swift:72:16: warning: static property 'defaultValue' is not concurrency-safe because it is non-isolated global shared mutable state; this is an error in the Swift 6 language mode
70 |
71 | struct FrameSizeKeySimpleRotation: PreferenceKey {
72 |     static var defaultValue: CGSize = .zero
   |                |- warning: static property 'defaultValue' is not concurrency-safe because it is non-isolated global shared mutable state; this is an error in the Swift 6 language mode
   |                |- note: convert 'defaultValue' to a 'let' constant to make 'Sendable' shared state immutable
   |                |- note: annotate 'defaultValue' with '@MainActor' if property should only be accessed from the main actor
   |                `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
73 |
74 |     static func reduce(value: inout CGSize, nextValue: () -> CGSize) {
/Users/admin/builder/spi-builder-workspace/Sources/OneFingerRotation/Version 2.0/simpleRotationInertia.swift:197:16: warning: static property 'defaultValue' is not concurrency-safe because it is non-isolated global shared mutable state; this is an error in the Swift 6 language mode
195 | /// This PreferenceKey is necessary for the calculation of the frame width and height of the content.
196 | struct FrameSizeKeySimpleRotationInertia: PreferenceKey {
197 |     static var defaultValue: CGSize = .zero
    |                |- warning: static property 'defaultValue' is not concurrency-safe because it is non-isolated global shared mutable state; this is an error in the Swift 6 language mode
    |                |- note: convert 'defaultValue' to a 'let' constant to make 'Sendable' shared state immutable
    |                |- note: annotate 'defaultValue' with '@MainActor' if property should only be accessed from the main actor
    |                `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
198 |
199 |     static func reduce(value: inout CGSize, nextValue: () -> CGSize) {
[13/13] Compiling OneFingerRotation simpleRotationInertia.swift
/Users/admin/builder/spi-builder-workspace/Sources/OneFingerRotation/Version 2.0/simpleRotationInertia.swift:197:16: warning: static property 'defaultValue' is not concurrency-safe because it is non-isolated global shared mutable state; this is an error in the Swift 6 language mode
195 | /// This PreferenceKey is necessary for the calculation of the frame width and height of the content.
196 | struct FrameSizeKeySimpleRotationInertia: PreferenceKey {
197 |     static var defaultValue: CGSize = .zero
    |                |- warning: static property 'defaultValue' is not concurrency-safe because it is non-isolated global shared mutable state; this is an error in the Swift 6 language mode
    |                |- note: convert 'defaultValue' to a 'let' constant to make 'Sendable' shared state immutable
    |                |- note: annotate 'defaultValue' with '@MainActor' if property should only be accessed from the main actor
    |                `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
198 |
199 |     static func reduce(value: inout CGSize, nextValue: () -> CGSize) {
/Users/admin/builder/spi-builder-workspace/Sources/OneFingerRotation/Version 2.0/simpleRotationInertia.swift:107:71: warning: capture of 'self' with non-sendable type 'SimpleRotationInertia' in a `@Sendable` closure; this is an error in the Swift 6 language mode
  8 | import SwiftUI
  9 |
 10 | public struct SimpleRotationInertia: ViewModifier {
    |               `- note: consider making struct 'SimpleRotationInertia' conform to the 'Sendable' protocol
 11 |
 12 |     /// Variable for the angle of rotation of the Fidget Spinner.
    :
105 |                                 timer = Timer.scheduledTimer(withTimeInterval: 0.01, repeats: true) { timer in
106 |                                     let rotationDirection = angleDifference >= .zero ? 1.0 : -1.0
107 |                                     let angle = Angle(degrees: Double(lastVelocity) * rotationDirection)
    |                                                                       `- warning: capture of 'self' with non-sendable type 'SimpleRotationInertia' in a `@Sendable` closure; this is an error in the Swift 6 language mode
108 |                                     rotationAngle += angle
109 |                                     lastVelocity *= (1 - friction)
/Users/admin/builder/spi-builder-workspace/Sources/OneFingerRotation/Version 2.0/simpleRotationInertia.swift:113:77: warning: capture of 'self' with non-sendable type 'SimpleRotationInertia' in an isolated closure; this is an error in the Swift 6 language mode
  8 | import SwiftUI
  9 |
 10 | public struct SimpleRotationInertia: ViewModifier {
    |               `- note: consider making struct 'SimpleRotationInertia' conform to the 'Sendable' protocol
 11 |
 12 |     /// Variable for the angle of rotation of the Fidget Spinner.
    :
111 |                                     if let snap = angleSnap {
112 |                                         rotationAngle = snapToAngle(rotationAngle, snap: snap, velocity: lastVelocity, animation: { interpolationFactor in
113 |                                             return pow(interpolationFactor, angleSnapShowFactor*2)
    |                                                                             `- warning: capture of 'self' with non-sendable type 'SimpleRotationInertia' in an isolated closure; this is an error in the Swift 6 language mode
114 |                                         })
115 |
Build complete! (39.85s)
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" : [
        "OneFingerRotation.swift",
        "Version 1.0/AutoRotation.swift",
        "Version 1.0/KnobInertia.swift",
        "Version 1.0/KnobRotation.swift",
        "Version 1.0/ValueAutoRotation.swift",
        "Version 1.0/ValueAutoRotationInertia.swift",
        "Version 1.0/ValueRotation.swift",
        "Version 1.0/ValueRotationInertia.swift",
        "Version 2.0/SimpleRotation.swift",
        "Version 2.0/simpleRotationInertia.swift"
      ],
      "type" : "library"
    }
  ],
  "tools_version" : "5.6"
}
Done.
This is a staging environment. For live and up-to-date package information, visit swiftpackageindex.com.