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 ScrollViewWithScrollOffset 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/Jnis/ScrollViewWithScrollOffset.git
Reference: main
Initialized empty Git repository in /Users/admin/builder/spi-builder-workspace/.git/
From https://github.com/Jnis/ScrollViewWithScrollOffset
 * branch            main       -> FETCH_HEAD
 * [new branch]      main       -> origin/main
HEAD is now at ccf074e Added files
Cloned https://github.com/Jnis/ScrollViewWithScrollOffset.git
Revision (git rev-parse @):
ccf074e65f26caeb1c2e67580d4ae45814f4116f
SUCCESS checkout https://github.com/Jnis/ScrollViewWithScrollOffset.git at main
========================================
Build
========================================
Selected platform:         macosSpm
Swift version:             6.0
Building package at path:  $workDir
https://github.com/Jnis/ScrollViewWithScrollOffset.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/4] Emitting module ScrollViewWithScrollOffset
/Users/admin/builder/spi-builder-workspace/Sources/ScrollViewWithScrollOffset.swift:39: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
37 | struct ScrollViewWithPullDownOffsetPreferenceKey: PreferenceKey {
38 |     typealias Value = CGFloat
39 |     static var defaultValue = CGFloat.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
40 |     static func reduce(value: inout Value, nextValue: () -> Value) {
41 |         value += nextValue()
[4/4] Compiling ScrollViewWithScrollOffset ScrollViewWithScrollOffset.swift
/Users/admin/builder/spi-builder-workspace/Sources/ScrollViewWithScrollOffset.swift:39: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
37 | struct ScrollViewWithPullDownOffsetPreferenceKey: PreferenceKey {
38 |     typealias Value = CGFloat
39 |     static var defaultValue = CGFloat.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
40 |     static func reduce(value: inout Value, nextValue: () -> Value) {
41 |         value += nextValue()
Build complete! (31.39s)
Build complete.
{
  "dependencies" : [
  ],
  "manifest_display_name" : "ScrollViewWithScrollOffset",
  "name" : "ScrollViewWithScrollOffset",
  "path" : "/Users/admin/builder/spi-builder-workspace",
  "platforms" : [
    {
      "name" : "ios",
      "version" : "14.0"
    },
    {
      "name" : "macos",
      "version" : "11.0"
    },
    {
      "name" : "tvos",
      "version" : "12.0"
    },
    {
      "name" : "watchos",
      "version" : "7.0"
    }
  ],
  "products" : [
    {
      "name" : "ScrollViewWithScrollOffset",
      "targets" : [
        "ScrollViewWithScrollOffset"
      ],
      "type" : {
        "library" : [
          "automatic"
        ]
      }
    }
  ],
  "targets" : [
    {
      "c99name" : "ScrollViewWithScrollOffsetTests",
      "module_type" : "SwiftTarget",
      "name" : "ScrollViewWithScrollOffsetTests",
      "path" : "Tests/ScrollViewWithScrollOffsetTests",
      "sources" : [
        "ScrollViewWithScrollOffsetTests.swift"
      ],
      "target_dependencies" : [
        "ScrollViewWithScrollOffset"
      ],
      "type" : "test"
    },
    {
      "c99name" : "ScrollViewWithScrollOffset",
      "module_type" : "SwiftTarget",
      "name" : "ScrollViewWithScrollOffset",
      "path" : "Sources",
      "product_memberships" : [
        "ScrollViewWithScrollOffset"
      ],
      "sources" : [
        "ScrollViewWithScrollOffset.swift"
      ],
      "type" : "library"
    }
  ],
  "tools_version" : "5.6"
}
Done.
This is a staging environment. For live and up-to-date package information, visit swiftpackageindex.com.