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 IrregularGradient, reference main (080ff8), with Swift 6.1 for macOS (SPM) on 28 Apr 2025 09:16:18 UTC.

Swift 6 data race errors: 0

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.0
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/joogps/IrregularGradient.git
Reference: main
Initialized empty Git repository in /Users/admin/builder/spi-builder-workspace/.git/
From https://github.com/joogps/IrregularGradient
 * branch            main       -> FETCH_HEAD
 * [new branch]      main       -> origin/main
HEAD is now at 080ff88 Update Modifiers.swift
Cloned https://github.com/joogps/IrregularGradient.git
Revision (git rev-parse @):
080ff88258eb507fb5164010d0832601a7014591
SUCCESS checkout https://github.com/joogps/IrregularGradient.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": "irregulargradient",
      "name": "IrregularGradient",
      "url": "https://github.com/joogps/IrregularGradient.git",
      "version": "unspecified",
      "path": "/Users/admin/builder/spi-builder-workspace/.resolve-product-dependencies/.build/checkouts/IrregularGradient",
      "dependencies": [
      ]
    }
  ]
}
Fetching https://github.com/joogps/IrregularGradient.git
[5/206] Fetching irregulargradient
Fetched https://github.com/joogps/IrregularGradient.git from cache (2.01s)
Creating working copy for https://github.com/joogps/IrregularGradient.git
Working copy of https://github.com/joogps/IrregularGradient.git resolved at main (080ff88)
warning: '.resolve-product-dependencies': dependency 'irregulargradient' 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/joogps/IrregularGradient.git
https://github.com/joogps/IrregularGradient.git
{
  "dependencies" : [
  ],
  "manifest_display_name" : "IrregularGradient",
  "name" : "IrregularGradient",
  "path" : "/Users/admin/builder/spi-builder-workspace",
  "platforms" : [
    {
      "name" : "ios",
      "version" : "13.0"
    },
    {
      "name" : "macos",
      "version" : "10.15"
    },
    {
      "name" : "tvos",
      "version" : "13.0"
    },
    {
      "name" : "watchos",
      "version" : "6.0"
    },
    {
      "name" : "visionos",
      "version" : "1.0"
    }
  ],
  "products" : [
    {
      "name" : "IrregularGradient",
      "targets" : [
        "IrregularGradient"
      ],
      "type" : {
        "library" : [
          "automatic"
        ]
      }
    }
  ],
  "targets" : [
    {
      "c99name" : "IrregularGradient",
      "module_type" : "SwiftTarget",
      "name" : "IrregularGradient",
      "path" : "Sources/IrregularGradient",
      "product_memberships" : [
        "IrregularGradient"
      ],
      "sources" : [
        "Blob.swift",
        "IrregularGradient.swift",
        "IrregularGradientView.swift",
        "Modifiers.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/2] Write sources
[1/2] Write swift-version-2F0A5646E1D333AE.txt
[3/7] Compiling IrregularGradient IrregularGradientView.swift
[4/7] Compiling IrregularGradient Modifiers.swift
/Users/admin/builder/spi-builder-workspace/Sources/IrregularGradient/Modifiers.swift:56:22: warning: call to main actor-isolated initializer 'init(colors:background:speed:animate:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
49 |     ///   - speed: The speed at which the blobs move, if they're moving.
50 |     ///   - animate: Whether or not the blobs should move.
51 |     public func irregularGradient<Background: View>(colors: [Color],
   |                 `- note: add '@MainActor' to make instance method 'irregularGradient(colors:background:animate:speed:)' part of global actor 'MainActor'
52 |                                                     background: @autoclosure @escaping () -> Background,
53 |                                                     animate: Bool = true,
54 |                                                     speed: Double = 1) -> some View {
55 |         self
56 |             .overlay(IrregularGradient(colors: colors,
   |                      `- warning: call to main actor-isolated initializer 'init(colors:background:speed:animate:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
57 |                                        background: background(),
58 |                                        speed: speed,
/Users/admin/builder/spi-builder-workspace/Sources/IrregularGradient/IrregularGradient.swift:25:12: note: calls to initializer 'init(colors:background:speed:animate:)' from outside of its actor context are implicitly asynchronous
 23 |     ///   - speed: The speed at which the blobs move, if they're moving.
 24 |     ///   - animate: Whether or not the blobs should move.
 25 |     public init(colors: [Color],
    |            |- note: calls to initializer 'init(colors:background:speed:animate:)' from outside of its actor context are implicitly asynchronous
    |            `- note: main actor isolation inferred from conformance to protocol 'View'
 26 |                 background: @autoclosure @escaping () -> Background,
 27 |                 speed: Double = 1,
/Users/admin/builder/spi-builder-workspace/Sources/IrregularGradient/Modifiers.swift:56:22: warning: sending value of non-Sendable type '() -> Background' risks causing data races; this is an error in the Swift 6 language mode
54 |                                                     speed: Double = 1) -> some View {
55 |         self
56 |             .overlay(IrregularGradient(colors: colors,
   |                      |- warning: sending value of non-Sendable type '() -> Background' risks causing data races; this is an error in the Swift 6 language mode
   |                      `- note: sending task-isolated value of non-Sendable type '() -> Background' to main actor-isolated callee risks causing races in between task-isolated and main actor-isolated uses
57 |                                        background: background(),
58 |                                        speed: speed,
[5/7] Compiling IrregularGradient Blob.swift
[6/7] Compiling IrregularGradient IrregularGradient.swift
[7/7] Emitting module IrregularGradient
Build complete! (8.11s)
Build complete.
{
  "dependencies" : [
  ],
  "manifest_display_name" : "IrregularGradient",
  "name" : "IrregularGradient",
  "path" : "/Users/admin/builder/spi-builder-workspace",
  "platforms" : [
    {
      "name" : "ios",
      "version" : "13.0"
    },
    {
      "name" : "macos",
      "version" : "10.15"
    },
    {
      "name" : "tvos",
      "version" : "13.0"
    },
    {
      "name" : "watchos",
      "version" : "6.0"
    },
    {
      "name" : "visionos",
      "version" : "1.0"
    }
  ],
  "products" : [
    {
      "name" : "IrregularGradient",
      "targets" : [
        "IrregularGradient"
      ],
      "type" : {
        "library" : [
          "automatic"
        ]
      }
    }
  ],
  "targets" : [
    {
      "c99name" : "IrregularGradient",
      "module_type" : "SwiftTarget",
      "name" : "IrregularGradient",
      "path" : "Sources/IrregularGradient",
      "product_memberships" : [
        "IrregularGradient"
      ],
      "sources" : [
        "Blob.swift",
        "IrregularGradient.swift",
        "IrregularGradientView.swift",
        "Modifiers.swift"
      ],
      "type" : "library"
    }
  ],
  "tools_version" : "5.9"
}
Done.