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 SwiftUIEKtensions with Swift 6.0 for macOS (SPM).

Swift 6 data race errors: 1

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/EnesKaraosman/SwiftUIEKtensions.git
Reference: master
Initialized empty Git repository in /Users/admin/builder/spi-builder-workspace/.git/
From https://github.com/EnesKaraosman/SwiftUIEKtensions
 * branch            master     -> FETCH_HEAD
 * [new branch]      master     -> origin/master
HEAD is now at bf96c0d feat: add readSize view modifiers
Cloned https://github.com/EnesKaraosman/SwiftUIEKtensions.git
Revision (git rev-parse @):
bf96c0d841d2bc81dac0d7e28aa9ab71cd7d6c2a
SUCCESS checkout https://github.com/EnesKaraosman/SwiftUIEKtensions.git at master
========================================
Build
========================================
Selected platform:         macosSpm
Swift version:             6.0
Building package at path:  $workDir
https://github.com/EnesKaraosman/SwiftUIEKtensions.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/21] Compiling SwiftUIEKtensions MailView.swift
[4/21] Compiling SwiftUIEKtensions StatefulMultipleSelectionList.swift
[5/22] Compiling SwiftUIEKtensions StatefulSingleSelectionList.swift
[6/22] Compiling SwiftUIEKtensions StatelessMultipleSelectionList.swift
[7/22] Compiling SwiftUIEKtensions LazyView.swift
[8/22] Compiling SwiftUIEKtensions ImagePickerView.swift
[9/22] Compiling SwiftUIEKtensions StatelessSingleSelectionList.swift
[10/22] Compiling SwiftUIEKtensions View+Extension.swift
/Users/admin/builder/spi-builder-workspace/Sources/SwiftUIEKtensions/Extensions/View+Extension.swift:140: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
138 |
139 | struct SizePreferenceKey: PreferenceKey {
140 |     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
141 |
142 |     static func reduce(value: inout CGSize, nextValue: () -> CGSize) {}
[11/22] Compiling SwiftUIEKtensions KeyValueStorage.swift
/Users/admin/builder/spi-builder-workspace/Sources/SwiftUIEKtensions/Extensions/View+Extension.swift:140: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
138 |
139 | struct SizePreferenceKey: PreferenceKey {
140 |     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
141 |
142 |     static func reduce(value: inout CGSize, nextValue: () -> CGSize) {}
[12/22] Compiling SwiftUIEKtensions View+Keyboard.swift
[13/22] Compiling SwiftUIEKtensions DeviceOrientationBasedView.swift
[14/22] Compiling SwiftUIEKtensions DeviceOrientation.swift
[15/22] Compiling SwiftUIEKtensions Binding+Extension.swift
[16/22] Compiling SwiftUIEKtensions EdgeInsets+Extension.swift
/Users/admin/builder/spi-builder-workspace/Sources/SwiftUIEKtensions/Extensions/ScrollViewProxy+Additions.swift:19:21: warning: capture of 'self' with non-sendable type 'ScrollViewProxy' in a `@Sendable` closure; this is an error in the Swift 6 language mode
17 |             if animate {
18 |                 withAnimation(.easeInOut(duration: 1)) {
19 |                     self.scrollTo(id, anchor: position)
   |                     `- warning: capture of 'self' with non-sendable type 'ScrollViewProxy' in a `@Sendable` closure; this is an error in the Swift 6 language mode
20 |                 }
21 |             } else {
SwiftUI.ScrollViewProxy:2:15: note: struct 'ScrollViewProxy' does not conform to the 'Sendable' protocol
1 | @available(iOS 14.0, macOS 11.0, tvOS 14.0, watchOS 7.0, *)
2 | public struct ScrollViewProxy {
  |               `- note: struct 'ScrollViewProxy' does not conform to the 'Sendable' protocol
3 |     public func scrollTo<ID>(_ id: ID, anchor: UnitPoint? = nil) where ID : Hashable
4 | }
/Users/admin/builder/spi-builder-workspace/Sources/SwiftUIEKtensions/Extensions/ScrollViewProxy+Additions.swift:19:21: warning: capture of 'self' with non-sendable type 'ScrollViewProxy' in an isolated closure; this is an error in the Swift 6 language mode
17 |             if animate {
18 |                 withAnimation(.easeInOut(duration: 1)) {
19 |                     self.scrollTo(id, anchor: position)
   |                     `- warning: capture of 'self' with non-sendable type 'ScrollViewProxy' in an isolated closure; this is an error in the Swift 6 language mode
20 |                 }
21 |             } else {
SwiftUI.ScrollViewProxy:2:15: note: struct 'ScrollViewProxy' does not conform to the 'Sendable' protocol
1 | @available(iOS 14.0, macOS 11.0, tvOS 14.0, watchOS 7.0, *)
2 | public struct ScrollViewProxy {
  |               `- note: struct 'ScrollViewProxy' does not conform to the 'Sendable' protocol
3 |     public func scrollTo<ID>(_ id: ID, anchor: UnitPoint? = nil) where ID : Hashable
4 | }
/Users/admin/builder/spi-builder-workspace/Sources/SwiftUIEKtensions/Extensions/ScrollViewProxy+Additions.swift:19:21: warning: sending 'self' risks causing data races; this is an error in the Swift 6 language mode
17 |             if animate {
18 |                 withAnimation(.easeInOut(duration: 1)) {
19 |                     self.scrollTo(id, anchor: position)
   |                     |- warning: sending 'self' risks causing data races; this is an error in the Swift 6 language mode
   |                     `- note: task-isolated 'self' is captured by a main actor-isolated closure. main actor-isolated uses in closure may race against later nonisolated uses
20 |                 }
21 |             } else {
[17/22] Compiling SwiftUIEKtensions ScrollViewProxy+Additions.swift
/Users/admin/builder/spi-builder-workspace/Sources/SwiftUIEKtensions/Extensions/ScrollViewProxy+Additions.swift:19:21: warning: capture of 'self' with non-sendable type 'ScrollViewProxy' in a `@Sendable` closure; this is an error in the Swift 6 language mode
17 |             if animate {
18 |                 withAnimation(.easeInOut(duration: 1)) {
19 |                     self.scrollTo(id, anchor: position)
   |                     `- warning: capture of 'self' with non-sendable type 'ScrollViewProxy' in a `@Sendable` closure; this is an error in the Swift 6 language mode
20 |                 }
21 |             } else {
SwiftUI.ScrollViewProxy:2:15: note: struct 'ScrollViewProxy' does not conform to the 'Sendable' protocol
1 | @available(iOS 14.0, macOS 11.0, tvOS 14.0, watchOS 7.0, *)
2 | public struct ScrollViewProxy {
  |               `- note: struct 'ScrollViewProxy' does not conform to the 'Sendable' protocol
3 |     public func scrollTo<ID>(_ id: ID, anchor: UnitPoint? = nil) where ID : Hashable
4 | }
/Users/admin/builder/spi-builder-workspace/Sources/SwiftUIEKtensions/Extensions/ScrollViewProxy+Additions.swift:19:21: warning: capture of 'self' with non-sendable type 'ScrollViewProxy' in an isolated closure; this is an error in the Swift 6 language mode
17 |             if animate {
18 |                 withAnimation(.easeInOut(duration: 1)) {
19 |                     self.scrollTo(id, anchor: position)
   |                     `- warning: capture of 'self' with non-sendable type 'ScrollViewProxy' in an isolated closure; this is an error in the Swift 6 language mode
20 |                 }
21 |             } else {
SwiftUI.ScrollViewProxy:2:15: note: struct 'ScrollViewProxy' does not conform to the 'Sendable' protocol
1 | @available(iOS 14.0, macOS 11.0, tvOS 14.0, watchOS 7.0, *)
2 | public struct ScrollViewProxy {
  |               `- note: struct 'ScrollViewProxy' does not conform to the 'Sendable' protocol
3 |     public func scrollTo<ID>(_ id: ID, anchor: UnitPoint? = nil) where ID : Hashable
4 | }
/Users/admin/builder/spi-builder-workspace/Sources/SwiftUIEKtensions/Extensions/ScrollViewProxy+Additions.swift:19:21: warning: sending 'self' risks causing data races; this is an error in the Swift 6 language mode
17 |             if animate {
18 |                 withAnimation(.easeInOut(duration: 1)) {
19 |                     self.scrollTo(id, anchor: position)
   |                     |- warning: sending 'self' risks causing data races; this is an error in the Swift 6 language mode
   |                     `- note: task-isolated 'self' is captured by a main actor-isolated closure. main actor-isolated uses in closure may race against later nonisolated uses
20 |                 }
21 |             } else {
[18/22] Compiling SwiftUIEKtensions SelectableItem.swift
[19/22] Compiling SwiftUIEKtensions CheckmarkModifier.swift
[20/22] Compiling SwiftUIEKtensions Bundle+Extension.swift
[21/22] Compiling SwiftUIEKtensions Color+Extension.swift
[22/22] Emitting module SwiftUIEKtensions
/Users/admin/builder/spi-builder-workspace/Sources/SwiftUIEKtensions/Extensions/View+Extension.swift:140: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
138 |
139 | struct SizePreferenceKey: PreferenceKey {
140 |     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
141 |
142 |     static func reduce(value: inout CGSize, nextValue: () -> CGSize) {}
Build complete! (37.20s)
Build complete.
{
  "dependencies" : [
  ],
  "manifest_display_name" : "SwiftUIEKtensions",
  "name" : "SwiftUIEKtensions",
  "path" : "/Users/admin/builder/spi-builder-workspace",
  "platforms" : [
    {
      "name" : "ios",
      "version" : "14.0"
    },
    {
      "name" : "macos",
      "version" : "12.0"
    }
  ],
  "products" : [
    {
      "name" : "SwiftUIEKtensions",
      "targets" : [
        "SwiftUIEKtensions"
      ],
      "type" : {
        "library" : [
          "automatic"
        ]
      }
    }
  ],
  "targets" : [
    {
      "c99name" : "SwiftUIEKtensionsTests",
      "module_type" : "SwiftTarget",
      "name" : "SwiftUIEKtensionsTests",
      "path" : "Tests/SwiftUIEKtensionsTests",
      "sources" : [
        "SwiftUIEKtensionsTests.swift",
        "XCTestManifests.swift"
      ],
      "target_dependencies" : [
        "SwiftUIEKtensions"
      ],
      "type" : "test"
    },
    {
      "c99name" : "SwiftUIEKtensions",
      "module_type" : "SwiftTarget",
      "name" : "SwiftUIEKtensions",
      "path" : "Sources/SwiftUIEKtensions",
      "product_memberships" : [
        "SwiftUIEKtensions"
      ],
      "sources" : [
        "DeviceOrientation.swift",
        "Extensions/Binding+Extension.swift",
        "Extensions/Bundle+Extension.swift",
        "Extensions/Color+Extension.swift",
        "Extensions/EdgeInsets+Extension.swift",
        "Extensions/ScrollViewProxy+Additions.swift",
        "Extensions/View+Extension.swift",
        "Other/KeyValueStorage.swift",
        "Protocols/SelectableItem.swift",
        "View Modifiers/CheckmarkModifier.swift",
        "View Modifiers/View+Keyboard.swift",
        "Views/DeviceOrientationBasedView.swift",
        "Views/LazyView.swift",
        "Views/Representables/ImagePickerView.swift",
        "Views/Representables/MailView.swift",
        "Views/StatefulMultipleSelectionList.swift",
        "Views/StatefulSingleSelectionList.swift",
        "Views/StatelessMultipleSelectionList.swift",
        "Views/StatelessSingleSelectionList.swift"
      ],
      "type" : "library"
    }
  ],
  "tools_version" : "5.8"
}
Done.
This is a staging environment. For live and up-to-date package information, visit swiftpackageindex.com.