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 OKLCHGradient, reference 1.0.8 (f30efe), with Swift 6.1 for macOS (SPM) on 30 Apr 2025 05:31:45 UTC.

Swift 6 data race errors: 4

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.1
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/fwrs/OKLCHGradient.git
Reference: 1.0.8
Initialized empty Git repository in /Users/admin/builder/spi-builder-workspace/.git/
From https://github.com/fwrs/OKLCHGradient
 * tag               1.0.8      -> FETCH_HEAD
HEAD is now at f30efe1 Allow passing a singular stop point
Cloned https://github.com/fwrs/OKLCHGradient.git
Revision (git rev-parse @):
f30efe18d88d4c79378631184512a492c2ccfb22
SUCCESS checkout https://github.com/fwrs/OKLCHGradient.git at 1.0.8
========================================
Build
========================================
Selected platform:         macosSpm
Swift version:             6.1
Building package at path:  $PWD
https://github.com/fwrs/OKLCHGradient.git
https://github.com/fwrs/OKLCHGradient.git
{
  "dependencies" : [
  ],
  "manifest_display_name" : "OKLCHGradient",
  "name" : "OKLCHGradient",
  "path" : "/Users/admin/builder/spi-builder-workspace",
  "platforms" : [
    {
      "name" : "ios",
      "version" : "17.0"
    },
    {
      "name" : "macos",
      "version" : "14.0"
    },
    {
      "name" : "tvos",
      "version" : "17.0"
    },
    {
      "name" : "visionos",
      "version" : "1.0"
    }
  ],
  "products" : [
    {
      "name" : "OKLCHGradient",
      "targets" : [
        "OKLCHGradient"
      ],
      "type" : {
        "library" : [
          "automatic"
        ]
      }
    }
  ],
  "targets" : [
    {
      "c99name" : "OKLCHGradient",
      "module_type" : "SwiftTarget",
      "name" : "OKLCHGradient",
      "path" : "Sources/OKLCHGradient",
      "product_memberships" : [
        "OKLCHGradient"
      ],
      "resources" : [
        {
          "path" : "/Users/admin/builder/spi-builder-workspace/Sources/OKLCHGradient/OKLCHGradient.metal",
          "rule" : {
            "process" : {
            }
          }
        }
      ],
      "sources" : [
        "OKLCHAngularGradient.swift",
        "OKLCHEllipticalGradient.swift",
        "OKLCHLinearGradient.swift",
        "OKLCHRadialGradient.swift",
        "Utils.swift"
      ],
      "type" : "library"
    }
  ],
  "tools_version" : "5.9"
}
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/3] Write sources
[1/3] Copying OKLCHGradient.metal
[2/3] Write swift-version-2F0A5646E1D333AE.txt
[4/10] Compiling OKLCHGradient OKLCHLinearGradient.swift
/Users/admin/builder/spi-builder-workspace/Sources/OKLCHGradient/OKLCHLinearGradient.swift:26:17: warning: main actor-isolated instance method 'resolve(in:)' cannot be used to satisfy nonisolated requirement from protocol 'ShapeStyle'; this is an error in the Swift 6 language mode
 1 | import SwiftUI
 2 |
 3 | public struct OKLCHLinearGradient: ShapeStyle, View, Sendable {
   |                                    `- note: add '@preconcurrency' to the 'ShapeStyle' conformance to defer isolation checking to run time
 4 |     let stops: [Gradient.Stop]
 5 |     let startPoint: UnitPoint
   :
24 |     }
25 |
26 |     public func resolve(in environment: EnvironmentValues) -> some ShapeStyle {
   |                 |- warning: main actor-isolated instance method 'resolve(in:)' cannot be used to satisfy nonisolated requirement from protocol 'ShapeStyle'; this is an error in the Swift 6 language mode
   |                 `- note: add 'nonisolated' to 'resolve(in:)' to make this instance method not isolated to the actor
27 |         ShaderLibrary.bundle(Bundle.module).oklchLinearGradient(
28 |             .boundingRect,
/Users/admin/builder/spi-builder-workspace/Sources/OKLCHGradient/OKLCHLinearGradient.swift:39:9: warning: call to main actor-isolated initializer 'init(gradient:startPoint:endPoint:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
18 |     }
19 |
20 |     public init(gradient: Gradient, startPoint: UnitPoint, endPoint: UnitPoint) {
   |            |- note: calls to initializer 'init(gradient:startPoint:endPoint:)' from outside of its actor context are implicitly asynchronous
   |            `- note: main actor isolation inferred from conformance to protocol 'View'
21 |         self.stops = gradient.stops
22 |         self.startPoint = startPoint
   :
36 |
37 | public extension ShapeStyle where Self == OKLCHLinearGradient {
38 |     static func oklchLinearGradient(_ gradient: Gradient, startPoint: UnitPoint, endPoint: UnitPoint) -> OKLCHLinearGradient {
   |                 `- note: add '@MainActor' to make static method 'oklchLinearGradient(_:startPoint:endPoint:)' part of global actor 'MainActor'
39 |         OKLCHLinearGradient(gradient: gradient, startPoint: startPoint, endPoint: endPoint)
   |         `- warning: call to main actor-isolated initializer 'init(gradient:startPoint:endPoint:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
40 |     }
41 |
/Users/admin/builder/spi-builder-workspace/Sources/OKLCHGradient/OKLCHLinearGradient.swift:43:9: warning: call to main actor-isolated initializer 'init(colors:startPoint:endPoint:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
 6 |     let endPoint: UnitPoint
 7 |
 8 |     public init(colors: [Color], startPoint: UnitPoint, endPoint: UnitPoint) {
   |            |- note: calls to initializer 'init(colors:startPoint:endPoint:)' from outside of its actor context are implicitly asynchronous
   |            `- note: main actor isolation inferred from conformance to protocol 'View'
 9 |         self.stops = colors.evenlyDistributedStops
10 |         self.startPoint = startPoint
   :
40 |     }
41 |
42 |     static func oklchLinearGradient(colors: [Color], startPoint: UnitPoint, endPoint: UnitPoint) -> OKLCHLinearGradient {
   |                 `- note: add '@MainActor' to make static method 'oklchLinearGradient(colors:startPoint:endPoint:)' part of global actor 'MainActor'
43 |         OKLCHLinearGradient(colors: colors, startPoint: startPoint, endPoint: endPoint)
   |         `- warning: call to main actor-isolated initializer 'init(colors:startPoint:endPoint:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
44 |     }
45 |
/Users/admin/builder/spi-builder-workspace/Sources/OKLCHGradient/OKLCHLinearGradient.swift:47:9: warning: call to main actor-isolated initializer 'init(stops:startPoint:endPoint:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
12 |     }
13 |
14 |     public init(stops: [Gradient.Stop], startPoint: UnitPoint, endPoint: UnitPoint) {
   |            |- note: calls to initializer 'init(stops:startPoint:endPoint:)' from outside of its actor context are implicitly asynchronous
   |            `- note: main actor isolation inferred from conformance to protocol 'View'
15 |         self.stops = stops
16 |         self.startPoint = startPoint
   :
44 |     }
45 |
46 |     static func oklchLinearGradient(stops: [Gradient.Stop], startPoint: UnitPoint, endPoint: UnitPoint) -> OKLCHLinearGradient {
   |                 `- note: add '@MainActor' to make static method 'oklchLinearGradient(stops:startPoint:endPoint:)' part of global actor 'MainActor'
47 |         OKLCHLinearGradient(stops: stops, startPoint: startPoint, endPoint: endPoint)
   |         `- warning: call to main actor-isolated initializer 'init(stops:startPoint:endPoint:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
48 |     }
49 | }
[5/10] Compiling OKLCHGradient Utils.swift
[6/10] Compiling OKLCHGradient resource_bundle_accessor.swift
[7/10] Compiling OKLCHGradient OKLCHRadialGradient.swift
/Users/admin/builder/spi-builder-workspace/Sources/OKLCHGradient/OKLCHRadialGradient.swift:30:17: warning: main actor-isolated instance method 'resolve(in:)' cannot be used to satisfy nonisolated requirement from protocol 'ShapeStyle'; this is an error in the Swift 6 language mode
 1 | import SwiftUI
 2 |
 3 | public struct OKLCHRadialGradient: ShapeStyle, View, Sendable {
   |                                    `- note: add '@preconcurrency' to the 'ShapeStyle' conformance to defer isolation checking to run time
 4 |     let stops: [Gradient.Stop]
 5 |     let center: UnitPoint
   :
28 |     }
29 |
30 |     public func resolve(in environment: EnvironmentValues) -> some ShapeStyle {
   |                 |- warning: main actor-isolated instance method 'resolve(in:)' cannot be used to satisfy nonisolated requirement from protocol 'ShapeStyle'; this is an error in the Swift 6 language mode
   |                 `- note: add 'nonisolated' to 'resolve(in:)' to make this instance method not isolated to the actor
31 |         ShaderLibrary.bundle(Bundle.module).oklchRadialGradient(
32 |             .boundingRect,
/Users/admin/builder/spi-builder-workspace/Sources/OKLCHGradient/OKLCHRadialGradient.swift:44:9: warning: call to main actor-isolated initializer 'init(gradient:center:startRadius:endRadius:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
21 |     }
22 |
23 |     public init(gradient: Gradient, center: UnitPoint, startRadius: CGFloat, endRadius: CGFloat) {
   |            |- note: calls to initializer 'init(gradient:center:startRadius:endRadius:)' from outside of its actor context are implicitly asynchronous
   |            `- note: main actor isolation inferred from conformance to protocol 'View'
24 |         self.stops = gradient.stops
25 |         self.center = center
   :
41 |
42 | public extension ShapeStyle where Self == OKLCHRadialGradient {
43 |     static func oklchRadialGradient(_ gradient: Gradient, center: UnitPoint, startRadius: CGFloat, endRadius: CGFloat) -> OKLCHRadialGradient {
   |                 `- note: add '@MainActor' to make static method 'oklchRadialGradient(_:center:startRadius:endRadius:)' part of global actor 'MainActor'
44 |         OKLCHRadialGradient(gradient: gradient, center: center, startRadius: startRadius, endRadius: endRadius)
   |         `- warning: call to main actor-isolated initializer 'init(gradient:center:startRadius:endRadius:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
45 |     }
46 |
/Users/admin/builder/spi-builder-workspace/Sources/OKLCHGradient/OKLCHRadialGradient.swift:48:9: warning: call to main actor-isolated initializer 'init(colors:center:startRadius:endRadius:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
 7 |     let endRadius: CGFloat
 8 |
 9 |     public init(colors: [Color], center: UnitPoint, startRadius: CGFloat, endRadius: CGFloat) {
   |            |- note: calls to initializer 'init(colors:center:startRadius:endRadius:)' from outside of its actor context are implicitly asynchronous
   |            `- note: main actor isolation inferred from conformance to protocol 'View'
10 |         self.stops = colors.evenlyDistributedStops
11 |         self.center = center
   :
45 |     }
46 |
47 |     static func oklchRadialGradient(colors: [Color], center: UnitPoint, startRadius: CGFloat, endRadius: CGFloat) -> OKLCHRadialGradient {
   |                 `- note: add '@MainActor' to make static method 'oklchRadialGradient(colors:center:startRadius:endRadius:)' part of global actor 'MainActor'
48 |         OKLCHRadialGradient(colors: colors, center: center, startRadius: startRadius, endRadius: endRadius)
   |         `- warning: call to main actor-isolated initializer 'init(colors:center:startRadius:endRadius:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
49 |     }
50 |
/Users/admin/builder/spi-builder-workspace/Sources/OKLCHGradient/OKLCHRadialGradient.swift:52:9: warning: call to main actor-isolated initializer 'init(stops:center:startRadius:endRadius:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
14 |     }
15 |
16 |     public init(stops: [Gradient.Stop], center: UnitPoint, startRadius: CGFloat, endRadius: CGFloat) {
   |            |- note: calls to initializer 'init(stops:center:startRadius:endRadius:)' from outside of its actor context are implicitly asynchronous
   |            `- note: main actor isolation inferred from conformance to protocol 'View'
17 |         self.stops = stops
18 |         self.center = center
   :
49 |     }
50 |
51 |     static func oklchRadialGradient(stops: [Gradient.Stop], center: UnitPoint, startRadius: CGFloat, endRadius: CGFloat) -> OKLCHRadialGradient {
   |                 `- note: add '@MainActor' to make static method 'oklchRadialGradient(stops:center:startRadius:endRadius:)' part of global actor 'MainActor'
52 |         OKLCHRadialGradient(stops: stops, center: center, startRadius: startRadius, endRadius: endRadius)
   |         `- warning: call to main actor-isolated initializer 'init(stops:center:startRadius:endRadius:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
53 |     }
54 | }
[8/10] Compiling OKLCHGradient OKLCHEllipticalGradient.swift
/Users/admin/builder/spi-builder-workspace/Sources/OKLCHGradient/OKLCHEllipticalGradient.swift:30:17: warning: main actor-isolated instance method 'resolve(in:)' cannot be used to satisfy nonisolated requirement from protocol 'ShapeStyle'; this is an error in the Swift 6 language mode
 1 | import SwiftUI
 2 |
 3 | public struct OKLCHEllipticalGradient: ShapeStyle, View, Sendable {
   |                                        `- note: add '@preconcurrency' to the 'ShapeStyle' conformance to defer isolation checking to run time
 4 |     let stops: [Gradient.Stop]
 5 |     let center: UnitPoint
   :
28 |     }
29 |
30 |     public func resolve(in environment: EnvironmentValues) -> some ShapeStyle {
   |                 |- warning: main actor-isolated instance method 'resolve(in:)' cannot be used to satisfy nonisolated requirement from protocol 'ShapeStyle'; this is an error in the Swift 6 language mode
   |                 `- note: add 'nonisolated' to 'resolve(in:)' to make this instance method not isolated to the actor
31 |         ShaderLibrary.bundle(Bundle.module).oklchEllipticalGradient(
32 |             .boundingRect,
/Users/admin/builder/spi-builder-workspace/Sources/OKLCHGradient/OKLCHEllipticalGradient.swift:44:9: warning: call to main actor-isolated initializer 'init(gradient:center:startRadiusFraction:endRadiusFraction:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
21 |     }
22 |
23 |     public init(gradient: Gradient, center: UnitPoint = .center, startRadiusFraction: CGFloat = 0, endRadiusFraction: CGFloat = 0.5) {
   |            |- note: calls to initializer 'init(gradient:center:startRadiusFraction:endRadiusFraction:)' from outside of its actor context are implicitly asynchronous
   |            `- note: main actor isolation inferred from conformance to protocol 'View'
24 |         self.stops = gradient.stops
25 |         self.center = center
   :
41 |
42 | public extension ShapeStyle where Self == OKLCHEllipticalGradient {
43 |     static func oklchEllipticalGradient(_ gradient: Gradient, center: UnitPoint = .center, startRadiusFraction: CGFloat = 0, endRadiusFraction: CGFloat = 0.5) -> OKLCHEllipticalGradient {
   |                 `- note: add '@MainActor' to make static method 'oklchEllipticalGradient(_:center:startRadiusFraction:endRadiusFraction:)' part of global actor 'MainActor'
44 |         OKLCHEllipticalGradient(gradient: gradient, center: center, startRadiusFraction: startRadiusFraction, endRadiusFraction: endRadiusFraction)
   |         `- warning: call to main actor-isolated initializer 'init(gradient:center:startRadiusFraction:endRadiusFraction:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
45 |     }
46 |
/Users/admin/builder/spi-builder-workspace/Sources/OKLCHGradient/OKLCHEllipticalGradient.swift:48:9: warning: call to main actor-isolated initializer 'init(colors:center:startRadiusFraction:endRadiusFraction:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
 7 |     let endRadiusFraction: CGFloat
 8 |
 9 |     public init(colors: [Color], center: UnitPoint = .center, startRadiusFraction: CGFloat = 0, endRadiusFraction: CGFloat = 0.5) {
   |            |- note: calls to initializer 'init(colors:center:startRadiusFraction:endRadiusFraction:)' from outside of its actor context are implicitly asynchronous
   |            `- note: main actor isolation inferred from conformance to protocol 'View'
10 |         self.stops = colors.evenlyDistributedStops
11 |         self.center = center
   :
45 |     }
46 |
47 |     static func oklchEllipticalGradient(colors: [Color], center: UnitPoint = .center, startRadiusFraction: CGFloat = 0, endRadiusFraction: CGFloat = 0.5) -> OKLCHEllipticalGradient {
   |                 `- note: add '@MainActor' to make static method 'oklchEllipticalGradient(colors:center:startRadiusFraction:endRadiusFraction:)' part of global actor 'MainActor'
48 |         OKLCHEllipticalGradient(colors: colors, center: center, startRadiusFraction: startRadiusFraction, endRadiusFraction: endRadiusFraction)
   |         `- warning: call to main actor-isolated initializer 'init(colors:center:startRadiusFraction:endRadiusFraction:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
49 |     }
50 |
/Users/admin/builder/spi-builder-workspace/Sources/OKLCHGradient/OKLCHEllipticalGradient.swift:52:9: warning: call to main actor-isolated initializer 'init(stops:center:startRadiusFraction:endRadiusFraction:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
14 |     }
15 |
16 |     public init(stops: [Gradient.Stop], center: UnitPoint = .center, startRadiusFraction: CGFloat = 0, endRadiusFraction: CGFloat = 0.5) {
   |            |- note: calls to initializer 'init(stops:center:startRadiusFraction:endRadiusFraction:)' from outside of its actor context are implicitly asynchronous
   |            `- note: main actor isolation inferred from conformance to protocol 'View'
17 |         self.stops = stops
18 |         self.center = center
   :
49 |     }
50 |
51 |     static func oklchEllipticalGradient(stops: [Gradient.Stop], center: UnitPoint = .center, startRadiusFraction: CGFloat = 0, endRadiusFraction: CGFloat = 0.5) -> OKLCHEllipticalGradient {
   |                 `- note: add '@MainActor' to make static method 'oklchEllipticalGradient(stops:center:startRadiusFraction:endRadiusFraction:)' part of global actor 'MainActor'
52 |         OKLCHEllipticalGradient(stops: stops, center: center, startRadiusFraction: startRadiusFraction, endRadiusFraction: endRadiusFraction)
   |         `- warning: call to main actor-isolated initializer 'init(stops:center:startRadiusFraction:endRadiusFraction:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
53 |     }
54 | }
[9/10] Emitting module OKLCHGradient
/Users/admin/builder/spi-builder-workspace/Sources/OKLCHGradient/OKLCHAngularGradient.swift:51:17: warning: main actor-isolated instance method 'resolve(in:)' cannot be used to satisfy nonisolated requirement from protocol 'ShapeStyle'; this is an error in the Swift 6 language mode
 1 | import SwiftUI
 2 |
 3 | public struct OKLCHAngularGradient: ShapeStyle, View, Sendable {
   |                                     `- note: add '@preconcurrency' to the 'ShapeStyle' conformance to defer isolation checking to run time
 4 |     let stops: [Gradient.Stop]
 5 |     let center: UnitPoint
   :
49 |     }
50 |
51 |     public func resolve(in environment: EnvironmentValues) -> some ShapeStyle {
   |                 |- warning: main actor-isolated instance method 'resolve(in:)' cannot be used to satisfy nonisolated requirement from protocol 'ShapeStyle'; this is an error in the Swift 6 language mode
   |                 `- note: add 'nonisolated' to 'resolve(in:)' to make this instance method not isolated to the actor
52 |         ShaderLibrary.bundle(Bundle.module).oklchAngularGradient(
53 |             .boundingRect,
/Users/admin/builder/spi-builder-workspace/Sources/OKLCHGradient/OKLCHEllipticalGradient.swift:30:17: warning: main actor-isolated instance method 'resolve(in:)' cannot be used to satisfy nonisolated requirement from protocol 'ShapeStyle'; this is an error in the Swift 6 language mode
 1 | import SwiftUI
 2 |
 3 | public struct OKLCHEllipticalGradient: ShapeStyle, View, Sendable {
   |                                        `- note: add '@preconcurrency' to the 'ShapeStyle' conformance to defer isolation checking to run time
 4 |     let stops: [Gradient.Stop]
 5 |     let center: UnitPoint
   :
28 |     }
29 |
30 |     public func resolve(in environment: EnvironmentValues) -> some ShapeStyle {
   |                 |- warning: main actor-isolated instance method 'resolve(in:)' cannot be used to satisfy nonisolated requirement from protocol 'ShapeStyle'; this is an error in the Swift 6 language mode
   |                 `- note: add 'nonisolated' to 'resolve(in:)' to make this instance method not isolated to the actor
31 |         ShaderLibrary.bundle(Bundle.module).oklchEllipticalGradient(
32 |             .boundingRect,
/Users/admin/builder/spi-builder-workspace/Sources/OKLCHGradient/OKLCHLinearGradient.swift:26:17: warning: main actor-isolated instance method 'resolve(in:)' cannot be used to satisfy nonisolated requirement from protocol 'ShapeStyle'; this is an error in the Swift 6 language mode
 1 | import SwiftUI
 2 |
 3 | public struct OKLCHLinearGradient: ShapeStyle, View, Sendable {
   |                                    `- note: add '@preconcurrency' to the 'ShapeStyle' conformance to defer isolation checking to run time
 4 |     let stops: [Gradient.Stop]
 5 |     let startPoint: UnitPoint
   :
24 |     }
25 |
26 |     public func resolve(in environment: EnvironmentValues) -> some ShapeStyle {
   |                 |- warning: main actor-isolated instance method 'resolve(in:)' cannot be used to satisfy nonisolated requirement from protocol 'ShapeStyle'; this is an error in the Swift 6 language mode
   |                 `- note: add 'nonisolated' to 'resolve(in:)' to make this instance method not isolated to the actor
27 |         ShaderLibrary.bundle(Bundle.module).oklchLinearGradient(
28 |             .boundingRect,
/Users/admin/builder/spi-builder-workspace/Sources/OKLCHGradient/OKLCHRadialGradient.swift:30:17: warning: main actor-isolated instance method 'resolve(in:)' cannot be used to satisfy nonisolated requirement from protocol 'ShapeStyle'; this is an error in the Swift 6 language mode
 1 | import SwiftUI
 2 |
 3 | public struct OKLCHRadialGradient: ShapeStyle, View, Sendable {
   |                                    `- note: add '@preconcurrency' to the 'ShapeStyle' conformance to defer isolation checking to run time
 4 |     let stops: [Gradient.Stop]
 5 |     let center: UnitPoint
   :
28 |     }
29 |
30 |     public func resolve(in environment: EnvironmentValues) -> some ShapeStyle {
   |                 |- warning: main actor-isolated instance method 'resolve(in:)' cannot be used to satisfy nonisolated requirement from protocol 'ShapeStyle'; this is an error in the Swift 6 language mode
   |                 `- note: add 'nonisolated' to 'resolve(in:)' to make this instance method not isolated to the actor
31 |         ShaderLibrary.bundle(Bundle.module).oklchRadialGradient(
32 |             .boundingRect,
[10/10] Compiling OKLCHGradient OKLCHAngularGradient.swift
/Users/admin/builder/spi-builder-workspace/Sources/OKLCHGradient/OKLCHAngularGradient.swift:51:17: warning: main actor-isolated instance method 'resolve(in:)' cannot be used to satisfy nonisolated requirement from protocol 'ShapeStyle'; this is an error in the Swift 6 language mode
 1 | import SwiftUI
 2 |
 3 | public struct OKLCHAngularGradient: ShapeStyle, View, Sendable {
   |                                     `- note: add '@preconcurrency' to the 'ShapeStyle' conformance to defer isolation checking to run time
 4 |     let stops: [Gradient.Stop]
 5 |     let center: UnitPoint
   :
49 |     }
50 |
51 |     public func resolve(in environment: EnvironmentValues) -> some ShapeStyle {
   |                 |- warning: main actor-isolated instance method 'resolve(in:)' cannot be used to satisfy nonisolated requirement from protocol 'ShapeStyle'; this is an error in the Swift 6 language mode
   |                 `- note: add 'nonisolated' to 'resolve(in:)' to make this instance method not isolated to the actor
52 |         ShaderLibrary.bundle(Bundle.module).oklchAngularGradient(
53 |             .boundingRect,
/Users/admin/builder/spi-builder-workspace/Sources/OKLCHGradient/OKLCHAngularGradient.swift:65:9: warning: call to main actor-isolated initializer 'init(gradient:center:startAngle:endAngle:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
21 |     }
22 |
23 |     public init(gradient: Gradient, center: UnitPoint, startAngle: Angle = .zero, endAngle: Angle = .zero) {
   |            |- note: calls to initializer 'init(gradient:center:startAngle:endAngle:)' from outside of its actor context are implicitly asynchronous
   |            `- note: main actor isolation inferred from conformance to protocol 'View'
24 |         self.stops = gradient.stops
25 |         self.center = center
   :
62 |
63 | public extension ShapeStyle where Self == OKLCHAngularGradient {
64 |     static func oklchAngularGradient(_ gradient: Gradient, center: UnitPoint, startAngle: Angle, endAngle: Angle) -> OKLCHAngularGradient {
   |                 `- note: add '@MainActor' to make static method 'oklchAngularGradient(_:center:startAngle:endAngle:)' part of global actor 'MainActor'
65 |         OKLCHAngularGradient(gradient: gradient, center: center, startAngle: startAngle, endAngle: endAngle)
   |         `- warning: call to main actor-isolated initializer 'init(gradient:center:startAngle:endAngle:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
66 |     }
67 |
/Users/admin/builder/spi-builder-workspace/Sources/OKLCHGradient/OKLCHAngularGradient.swift:69:9: warning: call to main actor-isolated initializer 'init(colors:center:startAngle:endAngle:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
 7 |     let endAngle: Angle
 8 |
 9 |     public init(colors: [Color], center: UnitPoint, startAngle: Angle, endAngle: Angle) {
   |            |- note: calls to initializer 'init(colors:center:startAngle:endAngle:)' from outside of its actor context are implicitly asynchronous
   |            `- note: main actor isolation inferred from conformance to protocol 'View'
10 |         self.stops = colors.evenlyDistributedStops
11 |         self.center = center
   :
66 |     }
67 |
68 |     static func oklchAngularGradient(colors: [Color], center: UnitPoint, startAngle: Angle, endAngle: Angle) -> OKLCHAngularGradient {
   |                 `- note: add '@MainActor' to make static method 'oklchAngularGradient(colors:center:startAngle:endAngle:)' part of global actor 'MainActor'
69 |         OKLCHAngularGradient(colors: colors, center: center, startAngle: startAngle, endAngle: endAngle)
   |         `- warning: call to main actor-isolated initializer 'init(colors:center:startAngle:endAngle:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
70 |     }
71 |
/Users/admin/builder/spi-builder-workspace/Sources/OKLCHGradient/OKLCHAngularGradient.swift:73:9: warning: call to main actor-isolated initializer 'init(stops:center:startAngle:endAngle:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
14 |     }
15 |
16 |     public init(stops: [Gradient.Stop], center: UnitPoint, startAngle: Angle, endAngle: Angle) {
   |            |- note: calls to initializer 'init(stops:center:startAngle:endAngle:)' from outside of its actor context are implicitly asynchronous
   |            `- note: main actor isolation inferred from conformance to protocol 'View'
17 |         self.stops = stops
18 |         self.center = center
   :
70 |     }
71 |
72 |     static func oklchAngularGradient(stops: [Gradient.Stop], center: UnitPoint, startAngle: Angle, endAngle: Angle) -> OKLCHAngularGradient {
   |                 `- note: add '@MainActor' to make static method 'oklchAngularGradient(stops:center:startAngle:endAngle:)' part of global actor 'MainActor'
73 |         OKLCHAngularGradient(stops: stops, center: center, startAngle: startAngle, endAngle: endAngle)
   |         `- warning: call to main actor-isolated initializer 'init(stops:center:startAngle:endAngle:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
74 |     }
75 | }
/Users/admin/builder/spi-builder-workspace/Sources/OKLCHGradient/OKLCHAngularGradient.swift:79:9: warning: call to main actor-isolated initializer 'init(gradient:center:angle:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
42 |     }
43 |
44 |     public init(gradient: Gradient, center: UnitPoint, angle: Angle = .zero) {
   |            |- note: calls to initializer 'init(gradient:center:angle:)' from outside of its actor context are implicitly asynchronous
   |            `- note: main actor isolation inferred from conformance to protocol 'View'
45 |         self.stops = gradient.stops
46 |         self.center = center
   :
76 |
77 | public extension ShapeStyle where Self == OKLCHAngularGradient {
78 |     static func oklchConicGradient(_ gradient: Gradient, center: UnitPoint, angle: Angle = .zero) -> OKLCHAngularGradient {
   |                 `- note: add '@MainActor' to make static method 'oklchConicGradient(_:center:angle:)' part of global actor 'MainActor'
79 |         OKLCHAngularGradient(gradient: gradient, center: center, angle: angle)
   |         `- warning: call to main actor-isolated initializer 'init(gradient:center:angle:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
80 |     }
81 |
/Users/admin/builder/spi-builder-workspace/Sources/OKLCHGradient/OKLCHAngularGradient.swift:83:9: warning: call to main actor-isolated initializer 'init(colors:center:angle:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
28 |     }
29 |
30 |     public init(colors: [Color], center: UnitPoint, angle: Angle = .zero) {
   |            |- note: calls to initializer 'init(colors:center:angle:)' from outside of its actor context are implicitly asynchronous
   |            `- note: main actor isolation inferred from conformance to protocol 'View'
31 |         self.stops = colors.evenlyDistributedStops
32 |         self.center = center
   :
80 |     }
81 |
82 |     static func oklchConicGradient(colors: [Color], center: UnitPoint, angle: Angle = .zero) -> OKLCHAngularGradient {
   |                 `- note: add '@MainActor' to make static method 'oklchConicGradient(colors:center:angle:)' part of global actor 'MainActor'
83 |         OKLCHAngularGradient(colors: colors, center: center, angle: angle)
   |         `- warning: call to main actor-isolated initializer 'init(colors:center:angle:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
84 |     }
85 |
/Users/admin/builder/spi-builder-workspace/Sources/OKLCHGradient/OKLCHAngularGradient.swift:87:9: warning: call to main actor-isolated initializer 'init(stops:center:angle:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
35 |     }
36 |
37 |     public init(stops: [Gradient.Stop], center: UnitPoint, angle: Angle = .zero) {
   |            |- note: calls to initializer 'init(stops:center:angle:)' from outside of its actor context are implicitly asynchronous
   |            `- note: main actor isolation inferred from conformance to protocol 'View'
38 |         self.stops = stops
39 |         self.center = center
   :
84 |     }
85 |
86 |     static func oklchConicGradient(stops: [Gradient.Stop], center: UnitPoint, angle: Angle = .zero) -> OKLCHAngularGradient {
   |                 `- note: add '@MainActor' to make static method 'oklchConicGradient(stops:center:angle:)' part of global actor 'MainActor'
87 |         OKLCHAngularGradient(stops: stops, center: center, angle: angle)
   |         `- warning: call to main actor-isolated initializer 'init(stops:center:angle:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
88 |     }
89 | }
Build complete! (8.23s)
Build complete.
{
  "dependencies" : [
  ],
  "manifest_display_name" : "OKLCHGradient",
  "name" : "OKLCHGradient",
  "path" : "/Users/admin/builder/spi-builder-workspace",
  "platforms" : [
    {
      "name" : "ios",
      "version" : "17.0"
    },
    {
      "name" : "macos",
      "version" : "14.0"
    },
    {
      "name" : "tvos",
      "version" : "17.0"
    },
    {
      "name" : "visionos",
      "version" : "1.0"
    }
  ],
  "products" : [
    {
      "name" : "OKLCHGradient",
      "targets" : [
        "OKLCHGradient"
      ],
      "type" : {
        "library" : [
          "automatic"
        ]
      }
    }
  ],
  "targets" : [
    {
      "c99name" : "OKLCHGradient",
      "module_type" : "SwiftTarget",
      "name" : "OKLCHGradient",
      "path" : "Sources/OKLCHGradient",
      "product_memberships" : [
        "OKLCHGradient"
      ],
      "resources" : [
        {
          "path" : "/Users/admin/builder/spi-builder-workspace/Sources/OKLCHGradient/OKLCHGradient.metal",
          "rule" : {
            "process" : {
            }
          }
        }
      ],
      "sources" : [
        "OKLCHAngularGradient.swift",
        "OKLCHEllipticalGradient.swift",
        "OKLCHLinearGradient.swift",
        "OKLCHRadialGradient.swift",
        "Utils.swift"
      ],
      "type" : "library"
    }
  ],
  "tools_version" : "5.9"
}
Done.