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

Swift 6 data race errors: 0

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/elegantchaos/VisibilityTrackingScrollView.git
Reference: main
Initialized empty Git repository in /Users/admin/builder/spi-builder-workspace/.git/
From https://github.com/elegantchaos/VisibilityTrackingScrollView
 * branch            main       -> FETCH_HEAD
 * [new branch]      main       -> origin/main
HEAD is now at 65948d4 added license
Cloned https://github.com/elegantchaos/VisibilityTrackingScrollView.git
Revision (git rev-parse @):
65948d428fdb6c82bb56754f7030eb28b21a795c
SUCCESS checkout https://github.com/elegantchaos/VisibilityTrackingScrollView.git at main
========================================
Build
========================================
Selected platform:         macosSpm
Swift version:             6.0
Building package at path:  $workDir
https://github.com/elegantchaos/VisibilityTrackingScrollView.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/6] Compiling VisibilityTrackingScrollView VisibilityTrackingModifier.swift
/Users/admin/builder/spi-builder-workspace/Sources/VisibilityTrackingScrollView/VisibilityTrackingModifier.swift:32:23: warning: call to main actor-isolated initializer 'init(visibilityTracker:id:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
 6 | import SwiftUI
 7 |
 8 | struct ContentVisibilityTrackingModifier<ID: Hashable>: ViewModifier {
   |        `- note: calls to initializer 'init(visibilityTracker:id:)' from outside of its actor context are implicitly asynchronous
 9 |     @EnvironmentObject var visibilityTracker: VisibilityTracker<ID>
10 |
   :
28 |
29 | public extension View {
30 |     func trackVisibility<ID: Hashable>(id: ID) -> some View {
   |          `- note: add '@MainActor' to make instance method 'trackVisibility(id:)' part of global actor 'MainActor'
31 |         self
32 |             .modifier(ContentVisibilityTrackingModifier(id: id))
   |                       `- warning: call to main actor-isolated initializer 'init(visibilityTracker:id:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
33 |     }
34 | }
/Users/admin/builder/spi-builder-workspace/Sources/VisibilityTrackingScrollView/VisibilityTrackingModifier.swift:32:23: warning: sending 'id' risks causing data races; this is an error in the Swift 6 language mode
30 |     func trackVisibility<ID: Hashable>(id: ID) -> some View {
31 |         self
32 |             .modifier(ContentVisibilityTrackingModifier(id: id))
   |                       |- warning: sending 'id' risks causing data races; this is an error in the Swift 6 language mode
   |                       `- note: sending task-isolated 'id' to main actor-isolated initializer 'init(visibilityTracker:id:)' risks causing data races between main actor-isolated and task-isolated uses
33 |     }
34 | }
[4/6] Compiling VisibilityTrackingScrollView VisibilityTracker.swift
[5/6] Compiling VisibilityTrackingScrollView VisibilityTrackingScrollView.swift
[6/6] Emitting module VisibilityTrackingScrollView
Build complete! (32.31s)
Build complete.
{
  "dependencies" : [
  ],
  "manifest_display_name" : "VisibilityTrackingScrollView",
  "name" : "VisibilityTrackingScrollView",
  "path" : "/Users/admin/builder/spi-builder-workspace",
  "platforms" : [
    {
      "name" : "macos",
      "version" : "10.15"
    },
    {
      "name" : "maccatalyst",
      "version" : "13.0"
    },
    {
      "name" : "ios",
      "version" : "13.0"
    }
  ],
  "products" : [
    {
      "name" : "VisibilityTrackingScrollView",
      "targets" : [
        "VisibilityTrackingScrollView"
      ],
      "type" : {
        "library" : [
          "automatic"
        ]
      }
    }
  ],
  "targets" : [
    {
      "c99name" : "VisibilityTrackingScrollViewTests",
      "module_type" : "SwiftTarget",
      "name" : "VisibilityTrackingScrollViewTests",
      "path" : "Tests/VisibilityTrackingScrollViewTests",
      "sources" : [
        "VisibilityTrackingScrollViewTests.swift"
      ],
      "target_dependencies" : [
        "VisibilityTrackingScrollView"
      ],
      "type" : "test"
    },
    {
      "c99name" : "VisibilityTrackingScrollView",
      "module_type" : "SwiftTarget",
      "name" : "VisibilityTrackingScrollView",
      "path" : "Sources/VisibilityTrackingScrollView",
      "product_memberships" : [
        "VisibilityTrackingScrollView"
      ],
      "sources" : [
        "VisibilityTracker.swift",
        "VisibilityTrackingModifier.swift",
        "VisibilityTrackingScrollView.swift"
      ],
      "type" : "library"
    }
  ],
  "tools_version" : "5.6"
}
Done.
This is a staging environment. For live and up-to-date package information, visit swiftpackageindex.com.