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 PDFViewKit, reference main (e6a3c2), with Swift 6.1 for macOS (SPM) on 30 Apr 2025 09:43:14 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/sgade/PDFViewKit.git
Reference: main
Initialized empty Git repository in /Users/admin/builder/spi-builder-workspace/.git/
From https://github.com/sgade/PDFViewKit
 * branch            main       -> FETCH_HEAD
 * [new branch]      main       -> origin/main
HEAD is now at e6a3c24 Define abstract PageSize
Cloned https://github.com/sgade/PDFViewKit.git
Revision (git rev-parse @):
e6a3c245381d96f1f10bbaebf48c06f09989ac79
SUCCESS checkout https://github.com/sgade/PDFViewKit.git at main
========================================
Build
========================================
Selected platform:         macosSpm
Swift version:             6.1
Building package at path:  $PWD
https://github.com/sgade/PDFViewKit.git
https://github.com/sgade/PDFViewKit.git
{
  "dependencies" : [
  ],
  "manifest_display_name" : "PDFViewKit",
  "name" : "PDFViewKit",
  "path" : "/Users/admin/builder/spi-builder-workspace",
  "platforms" : [
    {
      "name" : "macos",
      "version" : "13.0"
    }
  ],
  "products" : [
    {
      "name" : "PDFViewKit",
      "targets" : [
        "PDFViewKit"
      ],
      "type" : {
        "library" : [
          "automatic"
        ]
      }
    }
  ],
  "targets" : [
    {
      "c99name" : "PDFViewKit",
      "module_type" : "SwiftTarget",
      "name" : "PDFViewKit",
      "path" : "Sources/PDFViewKit",
      "product_memberships" : [
        "PDFViewKit"
      ],
      "sources" : [
        "EnvironmentKeys/PDFPageSizeKey.swift",
        "EnvironmentKeys/PDFRenderingDPIKey.swift",
        "EnvironmentKeys/RenderingEnvironmentKey.swift",
        "Modifiers/ApplyPDFSizeFrameModifier.swift",
        "Modifiers/View+ApplyIf.swift",
        "PDFDocument.swift",
        "PDFPage.swift",
        "PDFRenderer.swift",
        "PageSizes/DIN.swift",
        "PageSizes/DPI.swift",
        "PageSizes/PageSize.swift",
        "Views/PDFLink.swift"
      ],
      "type" : "library"
    }
  ],
  "tools_version" : "5.10"
}
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/14] Compiling PDFViewKit DIN.swift
[4/15] Compiling PDFViewKit PDFLink.swift
[5/15] Compiling PDFViewKit PageSize.swift
[6/15] Compiling PDFViewKit DPI.swift
[7/15] Compiling PDFViewKit PDFRenderer.swift
/Users/admin/builder/spi-builder-workspace/Sources/PDFViewKit/PDFRenderer.swift:42:21: warning: sending 'context' risks causing data races; this is an error in the Swift 6 language mode
40 |
41 |                 renderer.render(rasterizationScale: scaleFactor) { _, renderer in
42 |                     context.beginPDFPage(nil)
   |                     |- warning: sending 'context' risks causing data races; this is an error in the Swift 6 language mode
   |                     `- note: 'context' is captured by a main actor-isolated closure. main actor-isolated uses in closure may race against later nonisolated uses
43 |
44 |                     context.scaleBy(
   :
54 |         }
55 |
56 |         context.closePDF()
   |                 `- note: access can happen concurrently
57 |     }
58 |
/Users/admin/builder/spi-builder-workspace/Sources/PDFViewKit/PDFRenderer.swift:33:25: warning: sending 'document' risks causing data races; this is an error in the Swift 6 language mode
31 |
32 |         MainActor.assumeIsolated {
33 |             for page in document.pages {
   |                         |- warning: sending 'document' risks causing data races; this is an error in the Swift 6 language mode
   |                         `- note: task-isolated 'document' is captured by a main actor-isolated closure. main actor-isolated uses in closure may race against later nonisolated uses
34 |                 let renderedView = page.body
35 |                     .environment(\.renderingEnvironment, .toPDF)
/Users/admin/builder/spi-builder-workspace/Sources/PDFViewKit/PDFRenderer.swift:36:53: warning: sending 'viewRenderingDPI' risks causing data races; this is an error in the Swift 6 language mode
34 |                 let renderedView = page.body
35 |                     .environment(\.renderingEnvironment, .toPDF)
36 |                     .environment(\.pdfRenderingDPI, viewRenderingDPI)
   |                                                     |- warning: sending 'viewRenderingDPI' risks causing data races; this is an error in the Swift 6 language mode
   |                                                     `- note: task-isolated 'viewRenderingDPI' is captured by a main actor-isolated closure. main actor-isolated uses in closure may race against later nonisolated uses
37 |
38 |                 let renderer = ImageRenderer(content: renderedView)
[8/15] Compiling PDFViewKit PDFPage.swift
[9/15] Compiling PDFViewKit View+ApplyIf.swift
[10/15] Compiling PDFViewKit PDFPageSizeKey.swift
/Users/admin/builder/spi-builder-workspace/Sources/PDFViewKit/EnvironmentKeys/PDFPageSizeKey.swift:13:16: warning: static property 'defaultValue' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
11 | struct PDFPageSizeKey: EnvironmentKey {
12 |
13 |     static var defaultValue: PageSize = DIN.a4
   |                |- warning: static property 'defaultValue' is not concurrency-safe because it is nonisolated 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: add '@MainActor' to make static property 'defaultValue' part of global actor 'MainActor'
   |                `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
14 |
15 | }
/Users/admin/builder/spi-builder-workspace/Sources/PDFViewKit/EnvironmentKeys/PDFRenderingDPIKey.swift:13:16: warning: static property 'defaultValue' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
11 | struct PDFRenderingDPIKey: EnvironmentKey {
12 |
13 |     static var defaultValue: DPI = .display
   |                |- warning: static property 'defaultValue' is not concurrency-safe because it is nonisolated 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: add '@MainActor' to make static property 'defaultValue' part of global actor 'MainActor'
   |                `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
14 |
15 | }
[11/15] Compiling PDFViewKit PDFRenderingDPIKey.swift
/Users/admin/builder/spi-builder-workspace/Sources/PDFViewKit/EnvironmentKeys/PDFPageSizeKey.swift:13:16: warning: static property 'defaultValue' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
11 | struct PDFPageSizeKey: EnvironmentKey {
12 |
13 |     static var defaultValue: PageSize = DIN.a4
   |                |- warning: static property 'defaultValue' is not concurrency-safe because it is nonisolated 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: add '@MainActor' to make static property 'defaultValue' part of global actor 'MainActor'
   |                `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
14 |
15 | }
/Users/admin/builder/spi-builder-workspace/Sources/PDFViewKit/EnvironmentKeys/PDFRenderingDPIKey.swift:13:16: warning: static property 'defaultValue' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
11 | struct PDFRenderingDPIKey: EnvironmentKey {
12 |
13 |     static var defaultValue: DPI = .display
   |                |- warning: static property 'defaultValue' is not concurrency-safe because it is nonisolated 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: add '@MainActor' to make static property 'defaultValue' part of global actor 'MainActor'
   |                `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
14 |
15 | }
[12/15] Compiling PDFViewKit RenderingEnvironmentKey.swift
/Users/admin/builder/spi-builder-workspace/Sources/PDFViewKit/EnvironmentKeys/RenderingEnvironmentKey.swift:13:23: warning: static property 'defaultValue' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
11 | public struct RenderingEnvironmentKey: EnvironmentKey {
12 |
13 |     public static var defaultValue: RenderingEnvironment = .default
   |                       |- warning: static property 'defaultValue' is not concurrency-safe because it is nonisolated 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: add '@MainActor' to make static property 'defaultValue' part of global actor 'MainActor'
   |                       `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
14 |
15 | }
[13/15] Compiling PDFViewKit ApplyPDFSizeFrameModifier.swift
/Users/admin/builder/spi-builder-workspace/Sources/PDFViewKit/EnvironmentKeys/RenderingEnvironmentKey.swift:13:23: warning: static property 'defaultValue' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
11 | public struct RenderingEnvironmentKey: EnvironmentKey {
12 |
13 |     public static var defaultValue: RenderingEnvironment = .default
   |                       |- warning: static property 'defaultValue' is not concurrency-safe because it is nonisolated 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: add '@MainActor' to make static property 'defaultValue' part of global actor 'MainActor'
   |                       `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
14 |
15 | }
[14/15] Emitting module PDFViewKit
/Users/admin/builder/spi-builder-workspace/Sources/PDFViewKit/EnvironmentKeys/PDFPageSizeKey.swift:13:16: warning: static property 'defaultValue' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
11 | struct PDFPageSizeKey: EnvironmentKey {
12 |
13 |     static var defaultValue: PageSize = DIN.a4
   |                |- warning: static property 'defaultValue' is not concurrency-safe because it is nonisolated 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: add '@MainActor' to make static property 'defaultValue' part of global actor 'MainActor'
   |                `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
14 |
15 | }
/Users/admin/builder/spi-builder-workspace/Sources/PDFViewKit/EnvironmentKeys/PDFRenderingDPIKey.swift:13:16: warning: static property 'defaultValue' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
11 | struct PDFRenderingDPIKey: EnvironmentKey {
12 |
13 |     static var defaultValue: DPI = .display
   |                |- warning: static property 'defaultValue' is not concurrency-safe because it is nonisolated 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: add '@MainActor' to make static property 'defaultValue' part of global actor 'MainActor'
   |                `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
14 |
15 | }
/Users/admin/builder/spi-builder-workspace/Sources/PDFViewKit/EnvironmentKeys/RenderingEnvironmentKey.swift:13:23: warning: static property 'defaultValue' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
11 | public struct RenderingEnvironmentKey: EnvironmentKey {
12 |
13 |     public static var defaultValue: RenderingEnvironment = .default
   |                       |- warning: static property 'defaultValue' is not concurrency-safe because it is nonisolated 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: add '@MainActor' to make static property 'defaultValue' part of global actor 'MainActor'
   |                       `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
14 |
15 | }
/Users/admin/builder/spi-builder-workspace/Sources/PDFViewKit/PDFDocument.swift:31:16: warning: static property 'defaultPageSize' is not concurrency-safe because non-'Sendable' type 'any PageSize' may have shared mutable state; this is an error in the Swift 6 language mode
 29 |
 30 |     /// The default size used for pages implicitly created from views.
 31 |     static let defaultPageSize: PageSize = DIN.a4
    |                |- warning: static property 'defaultPageSize' is not concurrency-safe because non-'Sendable' type 'any PageSize' may have shared mutable state; this is an error in the Swift 6 language mode
    |                |- note: add '@MainActor' to make static property 'defaultPageSize' part of global actor 'MainActor'
    |                `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
 32 |
 33 | }
/Users/admin/builder/spi-builder-workspace/Sources/PDFViewKit/PageSizes/PageSize.swift:12:17: note: protocol 'PageSize' does not conform to the 'Sendable' protocol
10 |
11 | /// A type that defines page sizes.
12 | public protocol PageSize {
   |                 `- note: protocol 'PageSize' does not conform to the 'Sendable' protocol
13 |
14 |     /// The page's physical width.
[15/15] Compiling PDFViewKit PDFDocument.swift
/Users/admin/builder/spi-builder-workspace/Sources/PDFViewKit/PDFDocument.swift:31:16: warning: static property 'defaultPageSize' is not concurrency-safe because non-'Sendable' type 'any PageSize' may have shared mutable state; this is an error in the Swift 6 language mode
 29 |
 30 |     /// The default size used for pages implicitly created from views.
 31 |     static let defaultPageSize: PageSize = DIN.a4
    |                |- warning: static property 'defaultPageSize' is not concurrency-safe because non-'Sendable' type 'any PageSize' may have shared mutable state; this is an error in the Swift 6 language mode
    |                |- note: add '@MainActor' to make static property 'defaultPageSize' part of global actor 'MainActor'
    |                `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
 32 |
 33 | }
/Users/admin/builder/spi-builder-workspace/Sources/PDFViewKit/PageSizes/PageSize.swift:12:17: note: protocol 'PageSize' does not conform to the 'Sendable' protocol
10 |
11 | /// A type that defines page sizes.
12 | public protocol PageSize {
   |                 `- note: protocol 'PageSize' does not conform to the 'Sendable' protocol
13 |
14 |     /// The page's physical width.
/Users/admin/builder/spi-builder-workspace/Sources/PDFViewKit/PDFDocument.swift:41:10: warning: call to main actor-isolated initializer 'init(erasing:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
 38 | public enum PDFPagesBuilder {
 39 |
 40 |     public static func buildPartialBlock(first: PDFPage<some View>) -> [PDFPage<AnyView>] {
    |                        `- note: add '@MainActor' to make static method 'buildPartialBlock(first:)' part of global actor 'MainActor'
 41 |         [PDFPage(erasing: first)]
    |          `- warning: call to main actor-isolated initializer 'init(erasing:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
 42 |     }
 43 |
/Users/admin/builder/spi-builder-workspace/Sources/PDFViewKit/PDFPage.swift:50:5: note: calls to initializer 'init(erasing:)' from outside of its actor context are implicitly asynchronous
48 | public extension PDFPage where Content == AnyView {
49 |
50 |     init(erasing otherPage: PDFPage<some View>) {
   |     |- note: calls to initializer 'init(erasing:)' from outside of its actor context are implicitly asynchronous
   |     `- note: main actor isolation inferred from conformance to protocol 'View'
51 |         self.init(size: otherPage.size) {
52 |             AnyView(erasing: otherPage.content)
/Users/admin/builder/spi-builder-workspace/Sources/PDFViewKit/PDFDocument.swift:49:22: warning: call to main actor-isolated initializer 'init(erasing:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
 42 |     }
 43 |
 44 |     public static func buildPartialBlock(
    |                        `- note: add '@MainActor' to make static method 'buildPartialBlock(accumulated:next:)' part of global actor 'MainActor'
 45 |         accumulated: [PDFPage<AnyView>],
 46 |         next: PDFPage<some View>
 47 |     ) -> [PDFPage<AnyView>] {
 48 |         var pages = accumulated
 49 |         pages.append(PDFPage(erasing: next))
    |                      `- warning: call to main actor-isolated initializer 'init(erasing:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
 50 |         return pages
 51 |     }
/Users/admin/builder/spi-builder-workspace/Sources/PDFViewKit/PDFPage.swift:50:5: note: calls to initializer 'init(erasing:)' from outside of its actor context are implicitly asynchronous
48 | public extension PDFPage where Content == AnyView {
49 |
50 |     init(erasing otherPage: PDFPage<some View>) {
   |     |- note: calls to initializer 'init(erasing:)' from outside of its actor context are implicitly asynchronous
   |     `- note: main actor isolation inferred from conformance to protocol 'View'
51 |         self.init(size: otherPage.size) {
52 |             AnyView(erasing: otherPage.content)
/Users/admin/builder/spi-builder-workspace/Sources/PDFViewKit/PDFDocument.swift:54:10: warning: call to main actor-isolated initializer 'init(size:erasing:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
 51 |     }
 52 |
 53 |     public static func buildPartialBlock(first: some View) -> [PDFPage<AnyView>] {
    |                        `- note: add '@MainActor' to make static method 'buildPartialBlock(first:)' part of global actor 'MainActor'
 54 |         [PDFPage(
    |          `- warning: call to main actor-isolated initializer 'init(size:erasing:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
 55 |             size: PDFDocument.defaultPageSize,
 56 |             erasing: first
/Users/admin/builder/spi-builder-workspace/Sources/PDFViewKit/PDFPage.swift:56:5: note: calls to initializer 'init(size:erasing:)' from outside of its actor context are implicitly asynchronous
54 |     }
55 |
56 |     init(
   |     |- note: calls to initializer 'init(size:erasing:)' from outside of its actor context are implicitly asynchronous
   |     `- note: main actor isolation inferred from conformance to protocol 'View'
57 |         size: PageSize,
58 |         erasing view: some View
/Users/admin/builder/spi-builder-workspace/Sources/PDFViewKit/PDFDocument.swift:65:22: warning: call to main actor-isolated initializer 'init(size:erasing:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
 58 |     }
 59 |
 60 |     public static func buildPartialBlock(
    |                        `- note: add '@MainActor' to make static method 'buildPartialBlock(accumulated:next:)' part of global actor 'MainActor'
 61 |         accumulated: [PDFPage<AnyView>],
 62 |         next: some View
 63 |     ) -> [PDFPage<AnyView>] {
 64 |         var pages = accumulated
 65 |         pages.append(PDFPage(
    |                      `- warning: call to main actor-isolated initializer 'init(size:erasing:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
 66 |             size: PDFDocument.defaultPageSize,
 67 |             erasing: next
/Users/admin/builder/spi-builder-workspace/Sources/PDFViewKit/PDFPage.swift:56:5: note: calls to initializer 'init(size:erasing:)' from outside of its actor context are implicitly asynchronous
54 |     }
55 |
56 |     init(
   |     |- note: calls to initializer 'init(size:erasing:)' from outside of its actor context are implicitly asynchronous
   |     `- note: main actor isolation inferred from conformance to protocol 'View'
57 |         size: PageSize,
58 |         erasing view: some View
/Users/admin/builder/spi-builder-workspace/Sources/PDFViewKit/PDFDocument.swift:85:22: warning: call to main actor-isolated initializer 'init(erasing:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
 81 |     }
 82 |
 83 |     public static func buildPartialBlock(accumulated: PDFDocument, next: PDFPage<some View>) -> PDFDocument {
    |                        `- note: add '@MainActor' to make static method 'buildPartialBlock(accumulated:next:)' part of global actor 'MainActor'
 84 |         var pages = accumulated.pages
 85 |         pages.append(PDFPage(erasing: next))
    |                      `- warning: call to main actor-isolated initializer 'init(erasing:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
 86 |         return PDFDocument(pages: pages)
 87 |     }
/Users/admin/builder/spi-builder-workspace/Sources/PDFViewKit/PDFPage.swift:50:5: note: calls to initializer 'init(erasing:)' from outside of its actor context are implicitly asynchronous
48 | public extension PDFPage where Content == AnyView {
49 |
50 |     init(erasing otherPage: PDFPage<some View>) {
   |     |- note: calls to initializer 'init(erasing:)' from outside of its actor context are implicitly asynchronous
   |     `- note: main actor isolation inferred from conformance to protocol 'View'
51 |         self.init(size: otherPage.size) {
52 |             AnyView(erasing: otherPage.content)
/Users/admin/builder/spi-builder-workspace/Sources/PDFViewKit/PDFDocument.swift:91:13: warning: call to main actor-isolated initializer 'init(size:_:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
 89 |     public static func buildPartialBlock(first: some View) -> PDFDocument {
 90 |         PDFDocument {
 91 |             PDFPage(size: PDFDocument.defaultPageSize) {
    |             `- warning: call to main actor-isolated initializer 'init(size:_:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
 92 |                 first
 93 |             }
/Users/admin/builder/spi-builder-workspace/Sources/PDFViewKit/PDFPage.swift:21:12: note: calls to initializer 'init(size:_:)' from outside of its actor context are implicitly asynchronous
19 |     public let content: Content
20 |
21 |     public init(
   |            |- note: calls to initializer 'init(size:_:)' from outside of its actor context are implicitly asynchronous
   |            `- note: main actor isolation inferred from conformance to protocol 'View'
22 |         size: PageSize,
23 |         @ViewBuilder _ content: () -> Content
/Users/admin/builder/spi-builder-workspace/Sources/PDFViewKit/PDFDocument.swift:99:22: warning: call to main actor-isolated initializer 'init(size:erasing:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
 95 |     }
 96 |
 97 |     public static func buildPartialBlock(accumulated: PDFDocument, next: some View) -> PDFDocument {
    |                        `- note: add '@MainActor' to make static method 'buildPartialBlock(accumulated:next:)' part of global actor 'MainActor'
 98 |         var pages = accumulated.pages
 99 |         pages.append(PDFPage(
    |                      `- warning: call to main actor-isolated initializer 'init(size:erasing:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
100 |             size: PDFDocument.defaultPageSize,
101 |             erasing: next
/Users/admin/builder/spi-builder-workspace/Sources/PDFViewKit/PDFPage.swift:56:5: note: calls to initializer 'init(size:erasing:)' from outside of its actor context are implicitly asynchronous
54 |     }
55 |
56 |     init(
   |     |- note: calls to initializer 'init(size:erasing:)' from outside of its actor context are implicitly asynchronous
   |     `- note: main actor isolation inferred from conformance to protocol 'View'
57 |         size: PageSize,
58 |         erasing view: some View
/Users/admin/builder/spi-builder-workspace/Sources/PDFViewKit/PDFDocument.swift:54:10: warning: sending 'first' risks causing data races; this is an error in the Swift 6 language mode
 52 |
 53 |     public static func buildPartialBlock(first: some View) -> [PDFPage<AnyView>] {
 54 |         [PDFPage(
    |          |- warning: sending 'first' risks causing data races; this is an error in the Swift 6 language mode
    |          `- note: sending task-isolated 'first' to main actor-isolated callee risks causing data races between main actor-isolated and task-isolated uses
 55 |             size: PDFDocument.defaultPageSize,
 56 |             erasing: first
/Users/admin/builder/spi-builder-workspace/Sources/PDFViewKit/PDFDocument.swift:65:22: warning: sending 'next' risks causing data races; this is an error in the Swift 6 language mode
 63 |     ) -> [PDFPage<AnyView>] {
 64 |         var pages = accumulated
 65 |         pages.append(PDFPage(
    |                      |- warning: sending 'next' risks causing data races; this is an error in the Swift 6 language mode
    |                      `- note: sending task-isolated 'next' to main actor-isolated callee risks causing data races between main actor-isolated and task-isolated uses
 66 |             size: PDFDocument.defaultPageSize,
 67 |             erasing: next
/Users/admin/builder/spi-builder-workspace/Sources/PDFViewKit/PDFDocument.swift:91:13: warning: sending value of non-Sendable type '() -> some View' risks causing data races; this is an error in the Swift 6 language mode
 89 |     public static func buildPartialBlock(first: some View) -> PDFDocument {
 90 |         PDFDocument {
 91 |             PDFPage(size: PDFDocument.defaultPageSize) {
    |             |- warning: sending value of non-Sendable type '() -> some View' risks causing data races; this is an error in the Swift 6 language mode
    |             `- note: sending task-isolated value of non-Sendable type '() -> some View' to main actor-isolated callee risks causing races in between task-isolated and main actor-isolated uses
 92 |                 first
 93 |             }
/Users/admin/builder/spi-builder-workspace/Sources/PDFViewKit/PDFDocument.swift:99:22: warning: sending 'next' risks causing data races; this is an error in the Swift 6 language mode
 97 |     public static func buildPartialBlock(accumulated: PDFDocument, next: some View) -> PDFDocument {
 98 |         var pages = accumulated.pages
 99 |         pages.append(PDFPage(
    |                      |- warning: sending 'next' risks causing data races; this is an error in the Swift 6 language mode
    |                      `- note: sending task-isolated 'next' to main actor-isolated callee risks causing data races between main actor-isolated and task-isolated uses
100 |             size: PDFDocument.defaultPageSize,
101 |             erasing: next
Build complete! (9.50s)
Build complete.
{
  "dependencies" : [
  ],
  "manifest_display_name" : "PDFViewKit",
  "name" : "PDFViewKit",
  "path" : "/Users/admin/builder/spi-builder-workspace",
  "platforms" : [
    {
      "name" : "macos",
      "version" : "13.0"
    }
  ],
  "products" : [
    {
      "name" : "PDFViewKit",
      "targets" : [
        "PDFViewKit"
      ],
      "type" : {
        "library" : [
          "automatic"
        ]
      }
    }
  ],
  "targets" : [
    {
      "c99name" : "PDFViewKit",
      "module_type" : "SwiftTarget",
      "name" : "PDFViewKit",
      "path" : "Sources/PDFViewKit",
      "product_memberships" : [
        "PDFViewKit"
      ],
      "sources" : [
        "EnvironmentKeys/PDFPageSizeKey.swift",
        "EnvironmentKeys/PDFRenderingDPIKey.swift",
        "EnvironmentKeys/RenderingEnvironmentKey.swift",
        "Modifiers/ApplyPDFSizeFrameModifier.swift",
        "Modifiers/View+ApplyIf.swift",
        "PDFDocument.swift",
        "PDFPage.swift",
        "PDFRenderer.swift",
        "PageSizes/DIN.swift",
        "PageSizes/DPI.swift",
        "PageSizes/PageSize.swift",
        "Views/PDFLink.swift"
      ],
      "type" : "library"
    }
  ],
  "tools_version" : "5.10"
}
Done.