Build Information
Successful build of BigUIPaging, reference master (d546c8
), with Swift 6.1 for macOS (SPM) on 27 Apr 2025 22:47:10 UTC.
Swift 6 data race errors: 20
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/notsobigcompany/BigUIPaging.git
Reference: master
Initialized empty Git repository in /Users/admin/builder/spi-builder-workspace/.git/
From https://github.com/notsobigcompany/BigUIPaging
* branch master -> FETCH_HEAD
* [new branch] master -> origin/master
HEAD is now at d546c84 Fixes an issue where ScrollPageViewStyle may perform an unnecessary redraw on iOS. Fixes an issue in ExampleGridToPageView where the aspect ratio wouldn't be respected during transition.
Cloned https://github.com/notsobigcompany/BigUIPaging.git
Revision (git rev-parse @):
d546c84a2c124334463e779524890fb81b78f9d3
SUCCESS checkout https://github.com/notsobigcompany/BigUIPaging.git at master
========================================
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": "biguipaging",
"name": "BigUIPaging",
"url": "https://github.com/notsobigcompany/BigUIPaging.git",
"version": "unspecified",
"path": "/Users/admin/builder/spi-builder-workspace/.resolve-product-dependencies/.build/checkouts/BigUIPaging",
"dependencies": [
]
}
]
}
Fetching https://github.com/notsobigcompany/BigUIPaging.git
[1/215] Fetching biguipaging
Fetched https://github.com/notsobigcompany/BigUIPaging.git from cache (0.70s)
Creating working copy for https://github.com/notsobigcompany/BigUIPaging.git
Working copy of https://github.com/notsobigcompany/BigUIPaging.git resolved at master (d546c84)
warning: '.resolve-product-dependencies': dependency 'biguipaging' 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/notsobigcompany/BigUIPaging.git
https://github.com/notsobigcompany/BigUIPaging.git
{
"dependencies" : [
],
"manifest_display_name" : "BigUIPaging",
"name" : "BigUIPaging",
"path" : "/Users/admin/builder/spi-builder-workspace",
"platforms" : [
{
"name" : "macos",
"version" : "13.0"
},
{
"name" : "ios",
"version" : "16.0"
}
],
"products" : [
{
"name" : "BigUIPaging",
"targets" : [
"BigUIPaging"
],
"type" : {
"library" : [
"automatic"
]
}
}
],
"targets" : [
{
"c99name" : "BigUIPagingTests",
"module_type" : "SwiftTarget",
"name" : "BigUIPagingTests",
"path" : "Tests/BigUIPagingTests",
"sources" : [
"BigUIPagingTests.swift"
],
"target_dependencies" : [
"BigUIPaging"
],
"type" : "test"
},
{
"c99name" : "BigUIPaging",
"module_type" : "SwiftTarget",
"name" : "BigUIPaging",
"path" : "Sources/BigUIPaging",
"product_memberships" : [
"BigUIPaging"
],
"sources" : [
"Examples/CardDeckExample.swift",
"Examples/CustomPageViewExample.swift",
"Examples/ExampleGridToPageView.swift",
"Examples/PageIndicatorExample.swift",
"Examples/PageViewBasicExample.swift",
"Examples/PageViewForEachExample.swift",
"Examples/PageViewNavigationStackExample.swift",
"Implementations/PageIndicator/PageIndicator+Environment.swift",
"Implementations/PageIndicator/PageIndicator+iOS.swift",
"Implementations/PageIndicator/PageIndicator.swift",
"Implementations/PageView/Platform/PlatformPageView+iOS.swift",
"Implementations/PageView/Platform/PlatformPageView+macOS.swift",
"Implementations/PageView/Platform/PlatformPageView.swift",
"Implementations/PageView/Styles/BookPageViewStyle.swift",
"Implementations/PageView/Styles/BookStackPageViewStyle.swift",
"Implementations/PageView/Styles/CardDeckPageViewStyle.swift",
"Implementations/PageView/Styles/HistoryStackPageViewStyle.swift",
"Implementations/PageView/Styles/PlainPageViewStyle.swift",
"Implementations/PageView/Styles/PlatformPageViewStyle.swift",
"Implementations/PageView/Styles/ScrollPageViewStyle.swift",
"Implementations/PageView/Types/PageViewDirection.swift",
"Implementations/PageView/Types/PageViewNavigateAction.swift",
"Implementations/PageView/Types/PageViewStyle.swift",
"Implementations/PageView/Types/PageViewStyleConfiguration.swift",
"Implementations/PageView/View/PageView+Environment.swift",
"Implementations/PageView/View/PageView+Preferences.swift",
"Implementations/PageView/View/PageView.swift",
"Implementations/PageView/View/PageViewEnvironmentModifier.swift",
"Implementations/PageView/View/PageViewNavigationButton.swift",
"Implementations/Utils/View+Inspect.swift",
"Implementations/Utils/View+Measure.swift"
],
"type" : "library"
}
],
"tools_version" : "5.7"
}
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/31] Emitting module BigUIPaging
/Users/admin/builder/spi-builder-workspace/Sources/BigUIPaging/Implementations/PageIndicator/PageIndicator+Environment.swift:43:20: 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
41 |
42 | struct IndicatorColorKey: EnvironmentKey {
43 | static var defaultValue: Color? = nil
| |- 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
44 | }
45 |
/Users/admin/builder/spi-builder-workspace/Sources/BigUIPaging/Implementations/PageIndicator/PageIndicator+Environment.swift:52:20: 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
50 |
51 | struct IndicatorCurrentColorKey: EnvironmentKey {
52 | static var defaultValue: Color? = nil
| |- 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
53 | }
54 |
/Users/admin/builder/spi-builder-workspace/Sources/BigUIPaging/Implementations/PageIndicator/PageIndicator+Environment.swift:61:20: 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
59 |
60 | struct AllowsContinuousInteractionKey: EnvironmentKey {
61 | static var defaultValue: Bool = true
| |- 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
62 | }
63 |
/Users/admin/builder/spi-builder-workspace/Sources/BigUIPaging/Implementations/PageIndicator/PageIndicator+Environment.swift:70:20: 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
68 |
69 | struct BackgroundStyleKey: EnvironmentKey {
70 | static var defaultValue: PageIndicator.BackgroundStyle = .automatic
| |- 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
71 | }
72 |
/Users/admin/builder/spi-builder-workspace/Sources/BigUIPaging/Implementations/PageIndicator/PageIndicator+Environment.swift:79:20: 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
77 |
78 | struct SinglePageVisibilityKey: EnvironmentKey {
79 | static var defaultValue: Visibility = .visible
| |- 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
80 | }
81 |
/Users/admin/builder/spi-builder-workspace/Sources/BigUIPaging/Implementations/PageIndicator/PageIndicator+Environment.swift:88:20: 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
86 |
87 | struct PageDurationKey: EnvironmentKey {
88 | static var defaultValue: TimeInterval? = nil
| |- 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
89 | }
90 |
/Users/admin/builder/spi-builder-workspace/Sources/BigUIPaging/Implementations/PageView/Styles/CardDeckPageViewStyle.swift:172:20: 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
170 |
171 | struct CardCornerRadius: EnvironmentKey {
172 | static var defaultValue: Double? = nil
| |- 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
173 | }
174 |
/Users/admin/builder/spi-builder-workspace/Sources/BigUIPaging/Implementations/PageView/Styles/CardDeckPageViewStyle.swift:181:20: 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
179 |
180 | struct CardShadowDisabled: EnvironmentKey {
181 | static var defaultValue: Bool = false
| |- 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
182 | }
183 |
/Users/admin/builder/spi-builder-workspace/Sources/BigUIPaging/Implementations/PageView/Types/PageViewDirection.swift:13:23: warning: static property 'forwards' is not concurrency-safe because non-'Sendable' type 'PageViewDirection' may have shared mutable state; this is an error in the Swift 6 language mode
2 |
3 | /// Represents the direction of travel in a page view.
4 | public struct PageViewDirection: OptionSet {
| `- note: consider making struct 'PageViewDirection' conform to the 'Sendable' protocol
5 |
6 | public var rawValue: Int
:
11 |
12 | /// Represents navigating to the next item.
13 | public static let forwards = PageViewDirection(rawValue: 1 << 1)
| |- warning: static property 'forwards' is not concurrency-safe because non-'Sendable' type 'PageViewDirection' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'forwards' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
14 |
15 | /// Represents navigating to the previous item.
/Users/admin/builder/spi-builder-workspace/Sources/BigUIPaging/Implementations/PageView/Types/PageViewDirection.swift:16:23: warning: static property 'backwards' is not concurrency-safe because non-'Sendable' type 'PageViewDirection' may have shared mutable state; this is an error in the Swift 6 language mode
2 |
3 | /// Represents the direction of travel in a page view.
4 | public struct PageViewDirection: OptionSet {
| `- note: consider making struct 'PageViewDirection' conform to the 'Sendable' protocol
5 |
6 | public var rawValue: Int
:
14 |
15 | /// Represents navigating to the previous item.
16 | public static let backwards = PageViewDirection(rawValue: 1 << 2)
| |- warning: static property 'backwards' is not concurrency-safe because non-'Sendable' type 'PageViewDirection' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'backwards' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
17 |
18 | }
/Users/admin/builder/spi-builder-workspace/Sources/BigUIPaging/Implementations/PageView/Types/PageViewNavigateAction.swift:31:16: warning: static property 'default' is not concurrency-safe because non-'Sendable' type 'PageViewNavigateAction' may have shared mutable state; this is an error in the Swift 6 language mode
16 | /// }
17 | /// ```
18 | public struct PageViewNavigateAction {
| `- note: consider making struct 'PageViewNavigateAction' conform to the 'Sendable' protocol
19 |
20 | let id: UUID?
:
29 | extension PageViewNavigateAction: Equatable {
30 |
31 | static let `default` = PageViewNavigateAction(id: nil) { _ in }
| |- warning: static property 'default' is not concurrency-safe because non-'Sendable' type 'PageViewNavigateAction' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'default' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
32 |
33 | public static func == (lhs: PageViewNavigateAction, rhs: PageViewNavigateAction) -> Bool {
/Users/admin/builder/spi-builder-workspace/Sources/BigUIPaging/Implementations/PageView/View/PageView+Environment.swift:31:20: 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
29 |
30 | struct StyleKey: EnvironmentKey {
31 | static var defaultValue: any PageViewStyle = PlainPageViewStyle()
| |- 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
32 | }
33 |
/Users/admin/builder/spi-builder-workspace/Sources/BigUIPaging/Implementations/PageView/View/PageView+Environment.swift:40:20: 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
38 |
39 | struct OrientationKey: EnvironmentKey {
40 | static var defaultValue: Axis = .horizontal
| |- 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
41 | }
42 |
/Users/admin/builder/spi-builder-workspace/Sources/BigUIPaging/Implementations/PageView/View/PageView+Environment.swift:49:20: 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
47 |
48 | struct SpacingKey: EnvironmentKey {
49 | static var defaultValue: Double? = nil
| |- 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
50 | }
51 |
/Users/admin/builder/spi-builder-workspace/Sources/BigUIPaging/Implementations/PageView/View/PageView+Environment.swift:58:20: 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
56 |
57 | struct ContentBackgroundVisibilityKey: EnvironmentKey {
58 | static var defaultValue: Visibility = .automatic
| |- 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
59 | }
60 |
/Users/admin/builder/spi-builder-workspace/Sources/BigUIPaging/Implementations/PageView/View/PageView+Environment.swift:67:20: 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
65 |
66 | struct NavigateActionKey: EnvironmentKey {
67 | static var defaultValue: PageViewNavigateAction = .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
68 | }
69 |
/Users/admin/builder/spi-builder-workspace/Sources/BigUIPaging/Implementations/PageView/View/PageView+Environment.swift:77:20: 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
75 |
76 | struct CanNavigateKey: EnvironmentKey {
77 | static var defaultValue = PageViewDirection()
| |- 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
78 | }
79 |
/Users/admin/builder/spi-builder-workspace/Sources/BigUIPaging/Implementations/PageView/View/PageView+Preferences.swift:5: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
3 | struct PageViewCanNavigatePreference: PreferenceKey {
4 |
5 | static var defaultValue: PageViewDirection = []
| |- 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
6 |
7 | static func reduce(value: inout PageViewDirection, nextValue: () -> PageViewDirection) {
/Users/admin/builder/spi-builder-workspace/Sources/BigUIPaging/Implementations/PageView/View/PageView+Preferences.swift:14: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
12 | struct PageViewNavigateActionPreference: PreferenceKey {
13 |
14 | static var defaultValue: PageViewNavigateAction?
| |- 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
15 |
16 | static func reduce(value: inout PageViewNavigateAction?, nextValue: () -> PageViewNavigateAction?) {
/Users/admin/builder/spi-builder-workspace/Sources/BigUIPaging/Implementations/Utils/View+Measure.swift:27: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
25 | }
26 |
27 | static var defaultValue: CGSize? = nil
| |- 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
28 | }
29 |
[4/34] Compiling BigUIPaging CardDeckExample.swift
[5/34] Compiling BigUIPaging CustomPageViewExample.swift
[6/34] Compiling BigUIPaging ExampleGridToPageView.swift
[7/34] Compiling BigUIPaging PageIndicatorExample.swift
[8/34] Compiling BigUIPaging PageViewNavigationButton.swift
/Users/admin/builder/spi-builder-workspace/Sources/BigUIPaging/Implementations/Utils/View+Inspect.swift:97:30: warning: call to main actor-isolated instance method '_firstValue(labelled:children:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
66 | }
67 |
68 | func _firstValue(labelled label: String, children: Mirror.Children? = nil) -> Any? {
| `- note: calls to instance method '_firstValue(labelled:children:)' from outside of its actor context are implicitly asynchronous
69 | let children = children ?? Mirror(reflecting: self).children
70 | for child in children {
:
94 | extension Image {
95 |
96 | func _systemName() -> String? {
| `- note: add '@MainActor' to make instance method '_systemName()' part of global actor 'MainActor'
97 | guard let provider = _firstValue(labelled: "base") else {
| `- warning: call to main actor-isolated instance method '_firstValue(labelled:children:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
98 | return nil
99 | }
/Users/admin/builder/spi-builder-workspace/Sources/BigUIPaging/Implementations/Utils/View+Measure.swift:27: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
25 | }
26 |
27 | static var defaultValue: CGSize? = nil
| |- 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
28 | }
29 |
[9/34] Compiling BigUIPaging View+Inspect.swift
/Users/admin/builder/spi-builder-workspace/Sources/BigUIPaging/Implementations/Utils/View+Inspect.swift:97:30: warning: call to main actor-isolated instance method '_firstValue(labelled:children:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
66 | }
67 |
68 | func _firstValue(labelled label: String, children: Mirror.Children? = nil) -> Any? {
| `- note: calls to instance method '_firstValue(labelled:children:)' from outside of its actor context are implicitly asynchronous
69 | let children = children ?? Mirror(reflecting: self).children
70 | for child in children {
:
94 | extension Image {
95 |
96 | func _systemName() -> String? {
| `- note: add '@MainActor' to make instance method '_systemName()' part of global actor 'MainActor'
97 | guard let provider = _firstValue(labelled: "base") else {
| `- warning: call to main actor-isolated instance method '_firstValue(labelled:children:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
98 | return nil
99 | }
/Users/admin/builder/spi-builder-workspace/Sources/BigUIPaging/Implementations/Utils/View+Measure.swift:27: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
25 | }
26 |
27 | static var defaultValue: CGSize? = nil
| |- 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
28 | }
29 |
[10/34] Compiling BigUIPaging View+Measure.swift
/Users/admin/builder/spi-builder-workspace/Sources/BigUIPaging/Implementations/Utils/View+Inspect.swift:97:30: warning: call to main actor-isolated instance method '_firstValue(labelled:children:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
66 | }
67 |
68 | func _firstValue(labelled label: String, children: Mirror.Children? = nil) -> Any? {
| `- note: calls to instance method '_firstValue(labelled:children:)' from outside of its actor context are implicitly asynchronous
69 | let children = children ?? Mirror(reflecting: self).children
70 | for child in children {
:
94 | extension Image {
95 |
96 | func _systemName() -> String? {
| `- note: add '@MainActor' to make instance method '_systemName()' part of global actor 'MainActor'
97 | guard let provider = _firstValue(labelled: "base") else {
| `- warning: call to main actor-isolated instance method '_firstValue(labelled:children:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
98 | return nil
99 | }
/Users/admin/builder/spi-builder-workspace/Sources/BigUIPaging/Implementations/Utils/View+Measure.swift:27: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
25 | }
26 |
27 | static var defaultValue: CGSize? = nil
| |- 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
28 | }
29 |
[11/34] Compiling BigUIPaging PageView+Preferences.swift
/Users/admin/builder/spi-builder-workspace/Sources/BigUIPaging/Implementations/PageView/View/PageView+Preferences.swift:5: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
3 | struct PageViewCanNavigatePreference: PreferenceKey {
4 |
5 | static var defaultValue: PageViewDirection = []
| |- 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
6 |
7 | static func reduce(value: inout PageViewDirection, nextValue: () -> PageViewDirection) {
/Users/admin/builder/spi-builder-workspace/Sources/BigUIPaging/Implementations/PageView/View/PageView+Preferences.swift:14: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
12 | struct PageViewNavigateActionPreference: PreferenceKey {
13 |
14 | static var defaultValue: PageViewNavigateAction?
| |- 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
15 |
16 | static func reduce(value: inout PageViewNavigateAction?, nextValue: () -> PageViewNavigateAction?) {
/Users/admin/builder/spi-builder-workspace/Sources/BigUIPaging/Implementations/PageView/View/PageView.swift:266:9: warning: call to main actor-isolated initializer 'init(configuration:style:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
251 | }
252 |
253 | struct ConcretePageViewStyle<Style>: View where Style: PageViewStyle {
| |- note: calls to initializer 'init(configuration:style:)' from outside of its actor context are implicitly asynchronous
| `- note: main actor isolation inferred from conformance to protocol 'View'
254 |
255 | let configuration: PageViewStyleConfiguration
:
263 | extension PageViewStyle {
264 |
265 | func makeConcreteView(_ configuration: Configuration) -> some View {
| `- note: add '@MainActor' to make instance method 'makeConcreteView' part of global actor 'MainActor'
266 | ConcretePageViewStyle(configuration: configuration, style: self)
| `- warning: call to main actor-isolated initializer 'init(configuration:style:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
267 | }
268 | }
/Users/admin/builder/spi-builder-workspace/Sources/BigUIPaging/Implementations/PageView/View/PageView.swift:266:9: warning: sending 'configuration' risks causing data races; this is an error in the Swift 6 language mode
264 |
265 | func makeConcreteView(_ configuration: Configuration) -> some View {
266 | ConcretePageViewStyle(configuration: configuration, style: self)
| |- warning: sending 'configuration' risks causing data races; this is an error in the Swift 6 language mode
| `- note: sending task-isolated 'configuration' to main actor-isolated initializer 'init(configuration:style:)' risks causing data races between main actor-isolated and task-isolated uses
267 | }
268 | }
/Users/admin/builder/spi-builder-workspace/Sources/BigUIPaging/Implementations/PageView/View/PageView.swift:266:9: warning: sending 'self' risks causing data races; this is an error in the Swift 6 language mode
264 |
265 | func makeConcreteView(_ configuration: Configuration) -> some View {
266 | ConcretePageViewStyle(configuration: configuration, style: self)
| |- warning: sending 'self' risks causing data races; this is an error in the Swift 6 language mode
| `- note: sending task-isolated 'self' to main actor-isolated initializer 'init(configuration:style:)' risks causing data races between main actor-isolated and task-isolated uses
267 | }
268 | }
[12/34] Compiling BigUIPaging PageView.swift
/Users/admin/builder/spi-builder-workspace/Sources/BigUIPaging/Implementations/PageView/View/PageView+Preferences.swift:5: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
3 | struct PageViewCanNavigatePreference: PreferenceKey {
4 |
5 | static var defaultValue: PageViewDirection = []
| |- 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
6 |
7 | static func reduce(value: inout PageViewDirection, nextValue: () -> PageViewDirection) {
/Users/admin/builder/spi-builder-workspace/Sources/BigUIPaging/Implementations/PageView/View/PageView+Preferences.swift:14: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
12 | struct PageViewNavigateActionPreference: PreferenceKey {
13 |
14 | static var defaultValue: PageViewNavigateAction?
| |- 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
15 |
16 | static func reduce(value: inout PageViewNavigateAction?, nextValue: () -> PageViewNavigateAction?) {
/Users/admin/builder/spi-builder-workspace/Sources/BigUIPaging/Implementations/PageView/View/PageView.swift:266:9: warning: call to main actor-isolated initializer 'init(configuration:style:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
251 | }
252 |
253 | struct ConcretePageViewStyle<Style>: View where Style: PageViewStyle {
| |- note: calls to initializer 'init(configuration:style:)' from outside of its actor context are implicitly asynchronous
| `- note: main actor isolation inferred from conformance to protocol 'View'
254 |
255 | let configuration: PageViewStyleConfiguration
:
263 | extension PageViewStyle {
264 |
265 | func makeConcreteView(_ configuration: Configuration) -> some View {
| `- note: add '@MainActor' to make instance method 'makeConcreteView' part of global actor 'MainActor'
266 | ConcretePageViewStyle(configuration: configuration, style: self)
| `- warning: call to main actor-isolated initializer 'init(configuration:style:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
267 | }
268 | }
/Users/admin/builder/spi-builder-workspace/Sources/BigUIPaging/Implementations/PageView/View/PageView.swift:266:9: warning: sending 'configuration' risks causing data races; this is an error in the Swift 6 language mode
264 |
265 | func makeConcreteView(_ configuration: Configuration) -> some View {
266 | ConcretePageViewStyle(configuration: configuration, style: self)
| |- warning: sending 'configuration' risks causing data races; this is an error in the Swift 6 language mode
| `- note: sending task-isolated 'configuration' to main actor-isolated initializer 'init(configuration:style:)' risks causing data races between main actor-isolated and task-isolated uses
267 | }
268 | }
/Users/admin/builder/spi-builder-workspace/Sources/BigUIPaging/Implementations/PageView/View/PageView.swift:266:9: warning: sending 'self' risks causing data races; this is an error in the Swift 6 language mode
264 |
265 | func makeConcreteView(_ configuration: Configuration) -> some View {
266 | ConcretePageViewStyle(configuration: configuration, style: self)
| |- warning: sending 'self' risks causing data races; this is an error in the Swift 6 language mode
| `- note: sending task-isolated 'self' to main actor-isolated initializer 'init(configuration:style:)' risks causing data races between main actor-isolated and task-isolated uses
267 | }
268 | }
[13/34] Compiling BigUIPaging PageViewEnvironmentModifier.swift
/Users/admin/builder/spi-builder-workspace/Sources/BigUIPaging/Implementations/PageView/View/PageView+Preferences.swift:5: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
3 | struct PageViewCanNavigatePreference: PreferenceKey {
4 |
5 | static var defaultValue: PageViewDirection = []
| |- 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
6 |
7 | static func reduce(value: inout PageViewDirection, nextValue: () -> PageViewDirection) {
/Users/admin/builder/spi-builder-workspace/Sources/BigUIPaging/Implementations/PageView/View/PageView+Preferences.swift:14: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
12 | struct PageViewNavigateActionPreference: PreferenceKey {
13 |
14 | static var defaultValue: PageViewNavigateAction?
| |- 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
15 |
16 | static func reduce(value: inout PageViewNavigateAction?, nextValue: () -> PageViewNavigateAction?) {
/Users/admin/builder/spi-builder-workspace/Sources/BigUIPaging/Implementations/PageView/View/PageView.swift:266:9: warning: call to main actor-isolated initializer 'init(configuration:style:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
251 | }
252 |
253 | struct ConcretePageViewStyle<Style>: View where Style: PageViewStyle {
| |- note: calls to initializer 'init(configuration:style:)' from outside of its actor context are implicitly asynchronous
| `- note: main actor isolation inferred from conformance to protocol 'View'
254 |
255 | let configuration: PageViewStyleConfiguration
:
263 | extension PageViewStyle {
264 |
265 | func makeConcreteView(_ configuration: Configuration) -> some View {
| `- note: add '@MainActor' to make instance method 'makeConcreteView' part of global actor 'MainActor'
266 | ConcretePageViewStyle(configuration: configuration, style: self)
| `- warning: call to main actor-isolated initializer 'init(configuration:style:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
267 | }
268 | }
/Users/admin/builder/spi-builder-workspace/Sources/BigUIPaging/Implementations/PageView/View/PageView.swift:266:9: warning: sending 'configuration' risks causing data races; this is an error in the Swift 6 language mode
264 |
265 | func makeConcreteView(_ configuration: Configuration) -> some View {
266 | ConcretePageViewStyle(configuration: configuration, style: self)
| |- warning: sending 'configuration' risks causing data races; this is an error in the Swift 6 language mode
| `- note: sending task-isolated 'configuration' to main actor-isolated initializer 'init(configuration:style:)' risks causing data races between main actor-isolated and task-isolated uses
267 | }
268 | }
/Users/admin/builder/spi-builder-workspace/Sources/BigUIPaging/Implementations/PageView/View/PageView.swift:266:9: warning: sending 'self' risks causing data races; this is an error in the Swift 6 language mode
264 |
265 | func makeConcreteView(_ configuration: Configuration) -> some View {
266 | ConcretePageViewStyle(configuration: configuration, style: self)
| |- warning: sending 'self' risks causing data races; this is an error in the Swift 6 language mode
| `- note: sending task-isolated 'self' to main actor-isolated initializer 'init(configuration:style:)' risks causing data races between main actor-isolated and task-isolated uses
267 | }
268 | }
[14/34] Compiling BigUIPaging ScrollPageViewStyle.swift
/Users/admin/builder/spi-builder-workspace/Sources/BigUIPaging/Implementations/PageView/Types/PageViewDirection.swift:13:23: warning: static property 'forwards' is not concurrency-safe because non-'Sendable' type 'PageViewDirection' may have shared mutable state; this is an error in the Swift 6 language mode
2 |
3 | /// Represents the direction of travel in a page view.
4 | public struct PageViewDirection: OptionSet {
| `- note: consider making struct 'PageViewDirection' conform to the 'Sendable' protocol
5 |
6 | public var rawValue: Int
:
11 |
12 | /// Represents navigating to the next item.
13 | public static let forwards = PageViewDirection(rawValue: 1 << 1)
| |- warning: static property 'forwards' is not concurrency-safe because non-'Sendable' type 'PageViewDirection' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'forwards' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
14 |
15 | /// Represents navigating to the previous item.
/Users/admin/builder/spi-builder-workspace/Sources/BigUIPaging/Implementations/PageView/Types/PageViewDirection.swift:16:23: warning: static property 'backwards' is not concurrency-safe because non-'Sendable' type 'PageViewDirection' may have shared mutable state; this is an error in the Swift 6 language mode
2 |
3 | /// Represents the direction of travel in a page view.
4 | public struct PageViewDirection: OptionSet {
| `- note: consider making struct 'PageViewDirection' conform to the 'Sendable' protocol
5 |
6 | public var rawValue: Int
:
14 |
15 | /// Represents navigating to the previous item.
16 | public static let backwards = PageViewDirection(rawValue: 1 << 2)
| |- warning: static property 'backwards' is not concurrency-safe because non-'Sendable' type 'PageViewDirection' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'backwards' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
17 |
18 | }
/Users/admin/builder/spi-builder-workspace/Sources/BigUIPaging/Implementations/PageView/Types/PageViewNavigateAction.swift:31:16: warning: static property 'default' is not concurrency-safe because non-'Sendable' type 'PageViewNavigateAction' may have shared mutable state; this is an error in the Swift 6 language mode
16 | /// }
17 | /// ```
18 | public struct PageViewNavigateAction {
| `- note: consider making struct 'PageViewNavigateAction' conform to the 'Sendable' protocol
19 |
20 | let id: UUID?
:
29 | extension PageViewNavigateAction: Equatable {
30 |
31 | static let `default` = PageViewNavigateAction(id: nil) { _ in }
| |- warning: static property 'default' is not concurrency-safe because non-'Sendable' type 'PageViewNavigateAction' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'default' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
32 |
33 | public static func == (lhs: PageViewNavigateAction, rhs: PageViewNavigateAction) -> Bool {
[15/34] Compiling BigUIPaging PageViewDirection.swift
/Users/admin/builder/spi-builder-workspace/Sources/BigUIPaging/Implementations/PageView/Types/PageViewDirection.swift:13:23: warning: static property 'forwards' is not concurrency-safe because non-'Sendable' type 'PageViewDirection' may have shared mutable state; this is an error in the Swift 6 language mode
2 |
3 | /// Represents the direction of travel in a page view.
4 | public struct PageViewDirection: OptionSet {
| `- note: consider making struct 'PageViewDirection' conform to the 'Sendable' protocol
5 |
6 | public var rawValue: Int
:
11 |
12 | /// Represents navigating to the next item.
13 | public static let forwards = PageViewDirection(rawValue: 1 << 1)
| |- warning: static property 'forwards' is not concurrency-safe because non-'Sendable' type 'PageViewDirection' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'forwards' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
14 |
15 | /// Represents navigating to the previous item.
/Users/admin/builder/spi-builder-workspace/Sources/BigUIPaging/Implementations/PageView/Types/PageViewDirection.swift:16:23: warning: static property 'backwards' is not concurrency-safe because non-'Sendable' type 'PageViewDirection' may have shared mutable state; this is an error in the Swift 6 language mode
2 |
3 | /// Represents the direction of travel in a page view.
4 | public struct PageViewDirection: OptionSet {
| `- note: consider making struct 'PageViewDirection' conform to the 'Sendable' protocol
5 |
6 | public var rawValue: Int
:
14 |
15 | /// Represents navigating to the previous item.
16 | public static let backwards = PageViewDirection(rawValue: 1 << 2)
| |- warning: static property 'backwards' is not concurrency-safe because non-'Sendable' type 'PageViewDirection' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'backwards' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
17 |
18 | }
/Users/admin/builder/spi-builder-workspace/Sources/BigUIPaging/Implementations/PageView/Types/PageViewNavigateAction.swift:31:16: warning: static property 'default' is not concurrency-safe because non-'Sendable' type 'PageViewNavigateAction' may have shared mutable state; this is an error in the Swift 6 language mode
16 | /// }
17 | /// ```
18 | public struct PageViewNavigateAction {
| `- note: consider making struct 'PageViewNavigateAction' conform to the 'Sendable' protocol
19 |
20 | let id: UUID?
:
29 | extension PageViewNavigateAction: Equatable {
30 |
31 | static let `default` = PageViewNavigateAction(id: nil) { _ in }
| |- warning: static property 'default' is not concurrency-safe because non-'Sendable' type 'PageViewNavigateAction' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'default' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
32 |
33 | public static func == (lhs: PageViewNavigateAction, rhs: PageViewNavigateAction) -> Bool {
[16/34] Compiling BigUIPaging PageViewNavigateAction.swift
/Users/admin/builder/spi-builder-workspace/Sources/BigUIPaging/Implementations/PageView/Types/PageViewDirection.swift:13:23: warning: static property 'forwards' is not concurrency-safe because non-'Sendable' type 'PageViewDirection' may have shared mutable state; this is an error in the Swift 6 language mode
2 |
3 | /// Represents the direction of travel in a page view.
4 | public struct PageViewDirection: OptionSet {
| `- note: consider making struct 'PageViewDirection' conform to the 'Sendable' protocol
5 |
6 | public var rawValue: Int
:
11 |
12 | /// Represents navigating to the next item.
13 | public static let forwards = PageViewDirection(rawValue: 1 << 1)
| |- warning: static property 'forwards' is not concurrency-safe because non-'Sendable' type 'PageViewDirection' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'forwards' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
14 |
15 | /// Represents navigating to the previous item.
/Users/admin/builder/spi-builder-workspace/Sources/BigUIPaging/Implementations/PageView/Types/PageViewDirection.swift:16:23: warning: static property 'backwards' is not concurrency-safe because non-'Sendable' type 'PageViewDirection' may have shared mutable state; this is an error in the Swift 6 language mode
2 |
3 | /// Represents the direction of travel in a page view.
4 | public struct PageViewDirection: OptionSet {
| `- note: consider making struct 'PageViewDirection' conform to the 'Sendable' protocol
5 |
6 | public var rawValue: Int
:
14 |
15 | /// Represents navigating to the previous item.
16 | public static let backwards = PageViewDirection(rawValue: 1 << 2)
| |- warning: static property 'backwards' is not concurrency-safe because non-'Sendable' type 'PageViewDirection' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'backwards' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
17 |
18 | }
/Users/admin/builder/spi-builder-workspace/Sources/BigUIPaging/Implementations/PageView/Types/PageViewNavigateAction.swift:31:16: warning: static property 'default' is not concurrency-safe because non-'Sendable' type 'PageViewNavigateAction' may have shared mutable state; this is an error in the Swift 6 language mode
16 | /// }
17 | /// ```
18 | public struct PageViewNavigateAction {
| `- note: consider making struct 'PageViewNavigateAction' conform to the 'Sendable' protocol
19 |
20 | let id: UUID?
:
29 | extension PageViewNavigateAction: Equatable {
30 |
31 | static let `default` = PageViewNavigateAction(id: nil) { _ in }
| |- warning: static property 'default' is not concurrency-safe because non-'Sendable' type 'PageViewNavigateAction' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'default' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
32 |
33 | public static func == (lhs: PageViewNavigateAction, rhs: PageViewNavigateAction) -> Bool {
[17/34] Compiling BigUIPaging PageIndicator+Environment.swift
/Users/admin/builder/spi-builder-workspace/Sources/BigUIPaging/Implementations/PageIndicator/PageIndicator+Environment.swift:43:20: 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
41 |
42 | struct IndicatorColorKey: EnvironmentKey {
43 | static var defaultValue: Color? = nil
| |- 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
44 | }
45 |
/Users/admin/builder/spi-builder-workspace/Sources/BigUIPaging/Implementations/PageIndicator/PageIndicator+Environment.swift:52:20: 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
50 |
51 | struct IndicatorCurrentColorKey: EnvironmentKey {
52 | static var defaultValue: Color? = nil
| |- 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
53 | }
54 |
/Users/admin/builder/spi-builder-workspace/Sources/BigUIPaging/Implementations/PageIndicator/PageIndicator+Environment.swift:61:20: 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
59 |
60 | struct AllowsContinuousInteractionKey: EnvironmentKey {
61 | static var defaultValue: Bool = true
| |- 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
62 | }
63 |
/Users/admin/builder/spi-builder-workspace/Sources/BigUIPaging/Implementations/PageIndicator/PageIndicator+Environment.swift:70:20: 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
68 |
69 | struct BackgroundStyleKey: EnvironmentKey {
70 | static var defaultValue: PageIndicator.BackgroundStyle = .automatic
| |- 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
71 | }
72 |
/Users/admin/builder/spi-builder-workspace/Sources/BigUIPaging/Implementations/PageIndicator/PageIndicator+Environment.swift:79:20: 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
77 |
78 | struct SinglePageVisibilityKey: EnvironmentKey {
79 | static var defaultValue: Visibility = .visible
| |- 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
80 | }
81 |
/Users/admin/builder/spi-builder-workspace/Sources/BigUIPaging/Implementations/PageIndicator/PageIndicator+Environment.swift:88:20: 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
86 |
87 | struct PageDurationKey: EnvironmentKey {
88 | static var defaultValue: TimeInterval? = nil
| |- 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
89 | }
90 |
[18/34] Compiling BigUIPaging PageIndicator+iOS.swift
/Users/admin/builder/spi-builder-workspace/Sources/BigUIPaging/Implementations/PageIndicator/PageIndicator+Environment.swift:43:20: 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
41 |
42 | struct IndicatorColorKey: EnvironmentKey {
43 | static var defaultValue: Color? = nil
| |- 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
44 | }
45 |
/Users/admin/builder/spi-builder-workspace/Sources/BigUIPaging/Implementations/PageIndicator/PageIndicator+Environment.swift:52:20: 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
50 |
51 | struct IndicatorCurrentColorKey: EnvironmentKey {
52 | static var defaultValue: Color? = nil
| |- 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
53 | }
54 |
/Users/admin/builder/spi-builder-workspace/Sources/BigUIPaging/Implementations/PageIndicator/PageIndicator+Environment.swift:61:20: 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
59 |
60 | struct AllowsContinuousInteractionKey: EnvironmentKey {
61 | static var defaultValue: Bool = true
| |- 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
62 | }
63 |
/Users/admin/builder/spi-builder-workspace/Sources/BigUIPaging/Implementations/PageIndicator/PageIndicator+Environment.swift:70:20: 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
68 |
69 | struct BackgroundStyleKey: EnvironmentKey {
70 | static var defaultValue: PageIndicator.BackgroundStyle = .automatic
| |- 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
71 | }
72 |
/Users/admin/builder/spi-builder-workspace/Sources/BigUIPaging/Implementations/PageIndicator/PageIndicator+Environment.swift:79:20: 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
77 |
78 | struct SinglePageVisibilityKey: EnvironmentKey {
79 | static var defaultValue: Visibility = .visible
| |- 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
80 | }
81 |
/Users/admin/builder/spi-builder-workspace/Sources/BigUIPaging/Implementations/PageIndicator/PageIndicator+Environment.swift:88:20: 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
86 |
87 | struct PageDurationKey: EnvironmentKey {
88 | static var defaultValue: TimeInterval? = nil
| |- 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
89 | }
90 |
[19/34] Compiling BigUIPaging PageIndicator.swift
/Users/admin/builder/spi-builder-workspace/Sources/BigUIPaging/Implementations/PageIndicator/PageIndicator+Environment.swift:43:20: 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
41 |
42 | struct IndicatorColorKey: EnvironmentKey {
43 | static var defaultValue: Color? = nil
| |- 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
44 | }
45 |
/Users/admin/builder/spi-builder-workspace/Sources/BigUIPaging/Implementations/PageIndicator/PageIndicator+Environment.swift:52:20: 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
50 |
51 | struct IndicatorCurrentColorKey: EnvironmentKey {
52 | static var defaultValue: Color? = nil
| |- 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
53 | }
54 |
/Users/admin/builder/spi-builder-workspace/Sources/BigUIPaging/Implementations/PageIndicator/PageIndicator+Environment.swift:61:20: 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
59 |
60 | struct AllowsContinuousInteractionKey: EnvironmentKey {
61 | static var defaultValue: Bool = true
| |- 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
62 | }
63 |
/Users/admin/builder/spi-builder-workspace/Sources/BigUIPaging/Implementations/PageIndicator/PageIndicator+Environment.swift:70:20: 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
68 |
69 | struct BackgroundStyleKey: EnvironmentKey {
70 | static var defaultValue: PageIndicator.BackgroundStyle = .automatic
| |- 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
71 | }
72 |
/Users/admin/builder/spi-builder-workspace/Sources/BigUIPaging/Implementations/PageIndicator/PageIndicator+Environment.swift:79:20: 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
77 |
78 | struct SinglePageVisibilityKey: EnvironmentKey {
79 | static var defaultValue: Visibility = .visible
| |- 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
80 | }
81 |
/Users/admin/builder/spi-builder-workspace/Sources/BigUIPaging/Implementations/PageIndicator/PageIndicator+Environment.swift:88:20: 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
86 |
87 | struct PageDurationKey: EnvironmentKey {
88 | static var defaultValue: TimeInterval? = nil
| |- 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
89 | }
90 |
[20/34] Compiling BigUIPaging HistoryStackPageViewStyle.swift
[21/34] Compiling BigUIPaging PlainPageViewStyle.swift
[22/34] Compiling BigUIPaging PlatformPageViewStyle.swift
[23/34] Compiling BigUIPaging PageViewBasicExample.swift
[24/34] Compiling BigUIPaging PageViewForEachExample.swift
[25/34] Compiling BigUIPaging PageViewNavigationStackExample.swift
[26/34] Compiling BigUIPaging BookPageViewStyle.swift
/Users/admin/builder/spi-builder-workspace/Sources/BigUIPaging/Implementations/PageView/Styles/CardDeckPageViewStyle.swift:172:20: 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
170 |
171 | struct CardCornerRadius: EnvironmentKey {
172 | static var defaultValue: Double? = nil
| |- 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
173 | }
174 |
/Users/admin/builder/spi-builder-workspace/Sources/BigUIPaging/Implementations/PageView/Styles/CardDeckPageViewStyle.swift:181:20: 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
179 |
180 | struct CardShadowDisabled: EnvironmentKey {
181 | static var defaultValue: Bool = false
| |- 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
182 | }
183 |
/Users/admin/builder/spi-builder-workspace/Sources/BigUIPaging/Implementations/PageView/Styles/CardDeckPageViewStyle.swift:14:9: warning: call to main actor-isolated initializer 'init(_:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
11 | public init() { }
12 |
13 | public func makeBody(configuration: Configuration) -> some View {
| `- note: add '@MainActor' to make instance method 'makeBody(configuration:)' part of global actor 'MainActor'
14 | CardDeckPageView(configuration)
| `- warning: call to main actor-isolated initializer 'init(_:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
15 | }
16 | }
:
40 | @Environment(\.cardShadowDisabled) private var shadowDisabled
41 |
42 | init(_ configuration: Configuration) {
| |- note: calls to initializer 'init(_:)' from outside of its actor context are implicitly asynchronous
| `- note: main actor isolation inferred from conformance to protocol 'View'
43 | self.configuration = configuration
44 | }
/Users/admin/builder/spi-builder-workspace/Sources/BigUIPaging/Implementations/PageView/Styles/CardDeckPageViewStyle.swift:14:9: warning: sending 'configuration' risks causing data races; this is an error in the Swift 6 language mode
12 |
13 | public func makeBody(configuration: Configuration) -> some View {
14 | CardDeckPageView(configuration)
| |- warning: sending 'configuration' risks causing data races; this is an error in the Swift 6 language mode
| `- note: sending task-isolated 'configuration' to main actor-isolated initializer 'init(_:)' risks causing data races between main actor-isolated and task-isolated uses
15 | }
16 | }
[27/34] Compiling BigUIPaging BookStackPageViewStyle.swift
/Users/admin/builder/spi-builder-workspace/Sources/BigUIPaging/Implementations/PageView/Styles/CardDeckPageViewStyle.swift:172:20: 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
170 |
171 | struct CardCornerRadius: EnvironmentKey {
172 | static var defaultValue: Double? = nil
| |- 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
173 | }
174 |
/Users/admin/builder/spi-builder-workspace/Sources/BigUIPaging/Implementations/PageView/Styles/CardDeckPageViewStyle.swift:181:20: 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
179 |
180 | struct CardShadowDisabled: EnvironmentKey {
181 | static var defaultValue: Bool = false
| |- 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
182 | }
183 |
/Users/admin/builder/spi-builder-workspace/Sources/BigUIPaging/Implementations/PageView/Styles/CardDeckPageViewStyle.swift:14:9: warning: call to main actor-isolated initializer 'init(_:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
11 | public init() { }
12 |
13 | public func makeBody(configuration: Configuration) -> some View {
| `- note: add '@MainActor' to make instance method 'makeBody(configuration:)' part of global actor 'MainActor'
14 | CardDeckPageView(configuration)
| `- warning: call to main actor-isolated initializer 'init(_:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
15 | }
16 | }
:
40 | @Environment(\.cardShadowDisabled) private var shadowDisabled
41 |
42 | init(_ configuration: Configuration) {
| |- note: calls to initializer 'init(_:)' from outside of its actor context are implicitly asynchronous
| `- note: main actor isolation inferred from conformance to protocol 'View'
43 | self.configuration = configuration
44 | }
/Users/admin/builder/spi-builder-workspace/Sources/BigUIPaging/Implementations/PageView/Styles/CardDeckPageViewStyle.swift:14:9: warning: sending 'configuration' risks causing data races; this is an error in the Swift 6 language mode
12 |
13 | public func makeBody(configuration: Configuration) -> some View {
14 | CardDeckPageView(configuration)
| |- warning: sending 'configuration' risks causing data races; this is an error in the Swift 6 language mode
| `- note: sending task-isolated 'configuration' to main actor-isolated initializer 'init(_:)' risks causing data races between main actor-isolated and task-isolated uses
15 | }
16 | }
[28/34] Compiling BigUIPaging CardDeckPageViewStyle.swift
/Users/admin/builder/spi-builder-workspace/Sources/BigUIPaging/Implementations/PageView/Styles/CardDeckPageViewStyle.swift:172:20: 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
170 |
171 | struct CardCornerRadius: EnvironmentKey {
172 | static var defaultValue: Double? = nil
| |- 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
173 | }
174 |
/Users/admin/builder/spi-builder-workspace/Sources/BigUIPaging/Implementations/PageView/Styles/CardDeckPageViewStyle.swift:181:20: 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
179 |
180 | struct CardShadowDisabled: EnvironmentKey {
181 | static var defaultValue: Bool = false
| |- 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
182 | }
183 |
/Users/admin/builder/spi-builder-workspace/Sources/BigUIPaging/Implementations/PageView/Styles/CardDeckPageViewStyle.swift:14:9: warning: call to main actor-isolated initializer 'init(_:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
11 | public init() { }
12 |
13 | public func makeBody(configuration: Configuration) -> some View {
| `- note: add '@MainActor' to make instance method 'makeBody(configuration:)' part of global actor 'MainActor'
14 | CardDeckPageView(configuration)
| `- warning: call to main actor-isolated initializer 'init(_:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
15 | }
16 | }
:
40 | @Environment(\.cardShadowDisabled) private var shadowDisabled
41 |
42 | init(_ configuration: Configuration) {
| |- note: calls to initializer 'init(_:)' from outside of its actor context are implicitly asynchronous
| `- note: main actor isolation inferred from conformance to protocol 'View'
43 | self.configuration = configuration
44 | }
/Users/admin/builder/spi-builder-workspace/Sources/BigUIPaging/Implementations/PageView/Styles/CardDeckPageViewStyle.swift:14:9: warning: sending 'configuration' risks causing data races; this is an error in the Swift 6 language mode
12 |
13 | public func makeBody(configuration: Configuration) -> some View {
14 | CardDeckPageView(configuration)
| |- warning: sending 'configuration' risks causing data races; this is an error in the Swift 6 language mode
| `- note: sending task-isolated 'configuration' to main actor-isolated initializer 'init(_:)' risks causing data races between main actor-isolated and task-isolated uses
15 | }
16 | }
[29/34] Compiling BigUIPaging PageViewStyle.swift
/Users/admin/builder/spi-builder-workspace/Sources/BigUIPaging/Implementations/PageView/View/PageView+Environment.swift:31:20: 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
29 |
30 | struct StyleKey: EnvironmentKey {
31 | static var defaultValue: any PageViewStyle = PlainPageViewStyle()
| |- 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
32 | }
33 |
/Users/admin/builder/spi-builder-workspace/Sources/BigUIPaging/Implementations/PageView/View/PageView+Environment.swift:40:20: 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
38 |
39 | struct OrientationKey: EnvironmentKey {
40 | static var defaultValue: Axis = .horizontal
| |- 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
41 | }
42 |
/Users/admin/builder/spi-builder-workspace/Sources/BigUIPaging/Implementations/PageView/View/PageView+Environment.swift:49:20: 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
47 |
48 | struct SpacingKey: EnvironmentKey {
49 | static var defaultValue: Double? = nil
| |- 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
50 | }
51 |
/Users/admin/builder/spi-builder-workspace/Sources/BigUIPaging/Implementations/PageView/View/PageView+Environment.swift:58:20: 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
56 |
57 | struct ContentBackgroundVisibilityKey: EnvironmentKey {
58 | static var defaultValue: Visibility = .automatic
| |- 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
59 | }
60 |
/Users/admin/builder/spi-builder-workspace/Sources/BigUIPaging/Implementations/PageView/View/PageView+Environment.swift:67:20: 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
65 |
66 | struct NavigateActionKey: EnvironmentKey {
67 | static var defaultValue: PageViewNavigateAction = .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
68 | }
69 |
/Users/admin/builder/spi-builder-workspace/Sources/BigUIPaging/Implementations/PageView/View/PageView+Environment.swift:77:20: 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
75 |
76 | struct CanNavigateKey: EnvironmentKey {
77 | static var defaultValue = PageViewDirection()
| |- 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
78 | }
79 |
[30/34] Compiling BigUIPaging PageViewStyleConfiguration.swift
/Users/admin/builder/spi-builder-workspace/Sources/BigUIPaging/Implementations/PageView/View/PageView+Environment.swift:31:20: 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
29 |
30 | struct StyleKey: EnvironmentKey {
31 | static var defaultValue: any PageViewStyle = PlainPageViewStyle()
| |- 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
32 | }
33 |
/Users/admin/builder/spi-builder-workspace/Sources/BigUIPaging/Implementations/PageView/View/PageView+Environment.swift:40:20: 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
38 |
39 | struct OrientationKey: EnvironmentKey {
40 | static var defaultValue: Axis = .horizontal
| |- 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
41 | }
42 |
/Users/admin/builder/spi-builder-workspace/Sources/BigUIPaging/Implementations/PageView/View/PageView+Environment.swift:49:20: 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
47 |
48 | struct SpacingKey: EnvironmentKey {
49 | static var defaultValue: Double? = nil
| |- 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
50 | }
51 |
/Users/admin/builder/spi-builder-workspace/Sources/BigUIPaging/Implementations/PageView/View/PageView+Environment.swift:58:20: 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
56 |
57 | struct ContentBackgroundVisibilityKey: EnvironmentKey {
58 | static var defaultValue: Visibility = .automatic
| |- 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
59 | }
60 |
/Users/admin/builder/spi-builder-workspace/Sources/BigUIPaging/Implementations/PageView/View/PageView+Environment.swift:67:20: 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
65 |
66 | struct NavigateActionKey: EnvironmentKey {
67 | static var defaultValue: PageViewNavigateAction = .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
68 | }
69 |
/Users/admin/builder/spi-builder-workspace/Sources/BigUIPaging/Implementations/PageView/View/PageView+Environment.swift:77:20: 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
75 |
76 | struct CanNavigateKey: EnvironmentKey {
77 | static var defaultValue = PageViewDirection()
| |- 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
78 | }
79 |
[31/34] Compiling BigUIPaging PageView+Environment.swift
/Users/admin/builder/spi-builder-workspace/Sources/BigUIPaging/Implementations/PageView/View/PageView+Environment.swift:31:20: 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
29 |
30 | struct StyleKey: EnvironmentKey {
31 | static var defaultValue: any PageViewStyle = PlainPageViewStyle()
| |- 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
32 | }
33 |
/Users/admin/builder/spi-builder-workspace/Sources/BigUIPaging/Implementations/PageView/View/PageView+Environment.swift:40:20: 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
38 |
39 | struct OrientationKey: EnvironmentKey {
40 | static var defaultValue: Axis = .horizontal
| |- 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
41 | }
42 |
/Users/admin/builder/spi-builder-workspace/Sources/BigUIPaging/Implementations/PageView/View/PageView+Environment.swift:49:20: 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
47 |
48 | struct SpacingKey: EnvironmentKey {
49 | static var defaultValue: Double? = nil
| |- 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
50 | }
51 |
/Users/admin/builder/spi-builder-workspace/Sources/BigUIPaging/Implementations/PageView/View/PageView+Environment.swift:58:20: 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
56 |
57 | struct ContentBackgroundVisibilityKey: EnvironmentKey {
58 | static var defaultValue: Visibility = .automatic
| |- 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
59 | }
60 |
/Users/admin/builder/spi-builder-workspace/Sources/BigUIPaging/Implementations/PageView/View/PageView+Environment.swift:67:20: 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
65 |
66 | struct NavigateActionKey: EnvironmentKey {
67 | static var defaultValue: PageViewNavigateAction = .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
68 | }
69 |
/Users/admin/builder/spi-builder-workspace/Sources/BigUIPaging/Implementations/PageView/View/PageView+Environment.swift:77:20: 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
75 |
76 | struct CanNavigateKey: EnvironmentKey {
77 | static var defaultValue = PageViewDirection()
| |- 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
78 | }
79 |
[32/34] Compiling BigUIPaging PlatformPageView+iOS.swift
/Users/admin/builder/spi-builder-workspace/Sources/BigUIPaging/Implementations/PageView/Platform/PlatformPageView+macOS.swift:138:41: warning: call to main actor-isolated initializer 'init(rootView:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
132 | ///
133 | /// The view is cached until flushed, so repeated calls will return the same view instance.
134 | func makeView(for value: SelectionValue) -> NSView {
| `- note: add '@MainActor' to make instance method 'makeView(for:)' part of global actor 'MainActor'
135 | if let cached = viewCache[value] {
136 | return cached
137 | }
138 | let view = PlatformPageView.HostingView(rootView: parent.content(value))
| `- warning: call to main actor-isolated initializer 'init(rootView:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
139 | viewCache[value] = view
140 | return view
:
230 | }
231 |
232 | class HostingView: NSHostingView<Content> {
| |- note: calls to initializer 'init(rootView:)' from outside of its actor context are implicitly asynchronous
| `- note: main actor isolation inferred from inheritance from generic class 'NSHostingView'
233 |
234 | // Without this SwiftUI will swallow all scroll events, rendering
/Users/admin/builder/spi-builder-workspace/Sources/BigUIPaging/Implementations/PageView/Platform/PlatformPageView+macOS.swift:145:54: warning: main actor-isolated property 'arrangedObjects' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
142 |
143 | /// Removes cached views that are no longer part of the controller's arranged objects.
144 | func flushViewCache(in pageController: NSPageController) {
| `- note: add '@MainActor' to make instance method 'flushViewCache(in:)' part of global actor 'MainActor'
145 | guard let currentValues = pageController.arrangedObjects as? [SelectionValue] else {
| `- warning: main actor-isolated property 'arrangedObjects' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
146 | return
147 | }
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.4.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSPageController.h:43:27: note: property declared here
41 | /* Array of all displayed objects (after sorting and potentially filtering by you). The delegate will be asked for snapshots as they are needed. Alternatively, you may never directly set this array and use the -navigateForwardToRepresentedObject API to create a history as the user navigates. This property is KVO compliant.
42 | */
43 | @property (copy) NSArray *arrangedObjects;
| `- note: property declared here
44 |
45 | /* The index into the arrangedObjects that is being displayed. This property is KVO compliant. To animate a transition to a new index, use NSPageController's animator object. */
/Users/admin/builder/spi-builder-workspace/Sources/BigUIPaging/Implementations/PageView/Platform/PlatformPageView+macOS.swift:159:50: warning: main actor-isolated property 'selectedViewController' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
156 |
157 | /// Returns the currently selected value as represented by the currently selected view controller.
158 | func selectedValue(in pageController: NSPageController) -> SelectionValue? {
| `- note: add '@MainActor' to make instance method 'selectedValue(in:)' part of global actor 'MainActor'
159 | guard let container = pageController.selectedViewController as? PlatformPageView.ContainerViewController else {
| `- warning: main actor-isolated property 'selectedViewController' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
160 | return nil
161 | }
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.4.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSPageController.h:35:58: note: property declared here
33 | /* The viewController associated with the selected arrangedObject. May be nil if delegate is not supplying viewControllers.
34 | */
35 | @property (nullable, readonly, strong) NSViewController *selectedViewController;
| `- note: property declared here
36 |
37 |
/Users/admin/builder/spi-builder-workspace/Sources/BigUIPaging/Implementations/PageView/Platform/PlatformPageView+macOS.swift:162:30: warning: main actor-isolated property 'representedValue' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
156 |
157 | /// Returns the currently selected value as represented by the currently selected view controller.
158 | func selectedValue(in pageController: NSPageController) -> SelectionValue? {
| `- note: add '@MainActor' to make instance method 'selectedValue(in:)' part of global actor 'MainActor'
159 | guard let container = pageController.selectedViewController as? PlatformPageView.ContainerViewController else {
160 | return nil
161 | }
162 | return container.representedValue
| `- warning: main actor-isolated property 'representedValue' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
163 | }
164 |
:
205 | }
206 |
207 | var representedValue: SelectionValue? {
| `- note: property declared here
208 | representedObject as? SelectionValue
209 | }
/Users/admin/builder/spi-builder-workspace/Sources/BigUIPaging/Implementations/PageView/Platform/PlatformPageView+macOS.swift:172:28: warning: main actor-isolated property 'arrangedObjects' can not be mutated from a nonisolated context; this is an error in the Swift 6 language mode
164 |
165 | /// Navigates the page controller to the specified value.
166 | func go(
| `- note: add '@MainActor' to make instance method 'go(to:in:animated:)' part of global actor 'MainActor'
167 | to value: SelectionValue,
168 | in pageController: NSPageController,
:
170 | ) {
171 | let (arrangedObjects, selectedIndex) = parent.makeArrangedObjects(around: value)
172 | pageController.arrangedObjects = arrangedObjects
| `- warning: main actor-isolated property 'arrangedObjects' can not be mutated from a nonisolated context; this is an error in the Swift 6 language mode
173 | if animated {
174 | NSAnimationContext.runAnimationGroup { _ in
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.4.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSPageController.h:43:27: note: mutation of this property is only permitted within the actor
41 | /* Array of all displayed objects (after sorting and potentially filtering by you). The delegate will be asked for snapshots as they are needed. Alternatively, you may never directly set this array and use the -navigateForwardToRepresentedObject API to create a history as the user navigates. This property is KVO compliant.
42 | */
43 | @property (copy) NSArray *arrangedObjects;
| `- note: mutation of this property is only permitted within the actor
44 |
45 | /* The index into the arrangedObjects that is being displayed. This property is KVO compliant. To animate a transition to a new index, use NSPageController's animator object. */
/Users/admin/builder/spi-builder-workspace/Sources/BigUIPaging/Implementations/PageView/Platform/PlatformPageView+macOS.swift:175:47: warning: main actor-isolated property 'selectedIndex' can not be mutated from a nonisolated context; this is an error in the Swift 6 language mode
173 | if animated {
174 | NSAnimationContext.runAnimationGroup { _ in
175 | pageController.animator().selectedIndex = selectedIndex
| `- warning: main actor-isolated property 'selectedIndex' can not be mutated from a nonisolated context; this is an error in the Swift 6 language mode
176 | } completionHandler: {
177 | pageController.completeTransition()
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.4.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSPageController.h:46:21: note: mutation of this property is only permitted within the actor
44 |
45 | /* The index into the arrangedObjects that is being displayed. This property is KVO compliant. To animate a transition to a new index, use NSPageController's animator object. */
46 | @property NSInteger selectedIndex;
| `- note: mutation of this property is only permitted within the actor
47 |
48 |
/Users/admin/builder/spi-builder-workspace/Sources/BigUIPaging/Implementations/PageView/Platform/PlatformPageView+macOS.swift:175:36: warning: call to main actor-isolated instance method 'animator()' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
173 | if animated {
174 | NSAnimationContext.runAnimationGroup { _ in
175 | pageController.animator().selectedIndex = selectedIndex
| `- warning: call to main actor-isolated instance method 'animator()' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
176 | } completionHandler: {
177 | pageController.completeTransition()
AppKit.NSPageController.animator:3:24: note: calls to instance method 'animator()' from outside of its actor context are implicitly asynchronous
1 | class NSPageController {
2 | @available(macOS 10.5, *)
3 | @MainActor open func animator() -> Self}
| |- note: calls to instance method 'animator()' from outside of its actor context are implicitly asynchronous
| `- note: main actor isolation inferred from inheritance from class 'NSViewController'
4 |
/Users/admin/builder/spi-builder-workspace/Sources/BigUIPaging/Implementations/PageView/Platform/PlatformPageView+macOS.swift:177:36: warning: call to main actor-isolated instance method 'completeTransition()' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
175 | pageController.animator().selectedIndex = selectedIndex
176 | } completionHandler: {
177 | pageController.completeTransition()
| `- warning: call to main actor-isolated instance method 'completeTransition()' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
178 | }
179 | } else {
AppKit.NSPageController.completeTransition:2:22: note: calls to instance method 'completeTransition()' from outside of its actor context are implicitly asynchronous
1 | class NSPageController {
2 | @MainActor open func completeTransition()}
| |- note: calls to instance method 'completeTransition()' from outside of its actor context are implicitly asynchronous
| `- note: main actor isolation inferred from inheritance from class 'NSViewController'
3 |
/Users/admin/builder/spi-builder-workspace/Sources/BigUIPaging/Implementations/PageView/Platform/PlatformPageView+macOS.swift:180:32: warning: main actor-isolated property 'selectedIndex' can not be mutated from a nonisolated context; this is an error in the Swift 6 language mode
164 |
165 | /// Navigates the page controller to the specified value.
166 | func go(
| `- note: add '@MainActor' to make instance method 'go(to:in:animated:)' part of global actor 'MainActor'
167 | to value: SelectionValue,
168 | in pageController: NSPageController,
:
178 | }
179 | } else {
180 | pageController.selectedIndex = selectedIndex
| `- warning: main actor-isolated property 'selectedIndex' can not be mutated from a nonisolated context; this is an error in the Swift 6 language mode
181 | }
182 | }
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.4.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSPageController.h:46:21: note: mutation of this property is only permitted within the actor
44 |
45 | /* The index into the arrangedObjects that is being displayed. This property is KVO compliant. To animate a transition to a new index, use NSPageController's animator object. */
46 | @property NSInteger selectedIndex;
| `- note: mutation of this property is only permitted within the actor
47 |
48 |
/Users/admin/builder/spi-builder-workspace/Sources/BigUIPaging/Implementations/PageView/Platform/PlatformPageView+macOS.swift:138:41: warning: sending value of non-Sendable type 'Content' risks causing data races; this is an error in the Swift 6 language mode
136 | return cached
137 | }
138 | let view = PlatformPageView.HostingView(rootView: parent.content(value))
| |- warning: sending value of non-Sendable type 'Content' risks causing data races; this is an error in the Swift 6 language mode
| `- note: sending task-isolated value of non-Sendable type 'Content' to main actor-isolated initializer 'init(rootView:)' risks causing races in between task-isolated and main actor-isolated uses
139 | viewCache[value] = view
140 | return view
[33/34] Compiling BigUIPaging PlatformPageView+macOS.swift
/Users/admin/builder/spi-builder-workspace/Sources/BigUIPaging/Implementations/PageView/Platform/PlatformPageView+macOS.swift:138:41: warning: call to main actor-isolated initializer 'init(rootView:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
132 | ///
133 | /// The view is cached until flushed, so repeated calls will return the same view instance.
134 | func makeView(for value: SelectionValue) -> NSView {
| `- note: add '@MainActor' to make instance method 'makeView(for:)' part of global actor 'MainActor'
135 | if let cached = viewCache[value] {
136 | return cached
137 | }
138 | let view = PlatformPageView.HostingView(rootView: parent.content(value))
| `- warning: call to main actor-isolated initializer 'init(rootView:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
139 | viewCache[value] = view
140 | return view
:
230 | }
231 |
232 | class HostingView: NSHostingView<Content> {
| |- note: calls to initializer 'init(rootView:)' from outside of its actor context are implicitly asynchronous
| `- note: main actor isolation inferred from inheritance from generic class 'NSHostingView'
233 |
234 | // Without this SwiftUI will swallow all scroll events, rendering
/Users/admin/builder/spi-builder-workspace/Sources/BigUIPaging/Implementations/PageView/Platform/PlatformPageView+macOS.swift:145:54: warning: main actor-isolated property 'arrangedObjects' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
142 |
143 | /// Removes cached views that are no longer part of the controller's arranged objects.
144 | func flushViewCache(in pageController: NSPageController) {
| `- note: add '@MainActor' to make instance method 'flushViewCache(in:)' part of global actor 'MainActor'
145 | guard let currentValues = pageController.arrangedObjects as? [SelectionValue] else {
| `- warning: main actor-isolated property 'arrangedObjects' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
146 | return
147 | }
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.4.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSPageController.h:43:27: note: property declared here
41 | /* Array of all displayed objects (after sorting and potentially filtering by you). The delegate will be asked for snapshots as they are needed. Alternatively, you may never directly set this array and use the -navigateForwardToRepresentedObject API to create a history as the user navigates. This property is KVO compliant.
42 | */
43 | @property (copy) NSArray *arrangedObjects;
| `- note: property declared here
44 |
45 | /* The index into the arrangedObjects that is being displayed. This property is KVO compliant. To animate a transition to a new index, use NSPageController's animator object. */
/Users/admin/builder/spi-builder-workspace/Sources/BigUIPaging/Implementations/PageView/Platform/PlatformPageView+macOS.swift:159:50: warning: main actor-isolated property 'selectedViewController' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
156 |
157 | /// Returns the currently selected value as represented by the currently selected view controller.
158 | func selectedValue(in pageController: NSPageController) -> SelectionValue? {
| `- note: add '@MainActor' to make instance method 'selectedValue(in:)' part of global actor 'MainActor'
159 | guard let container = pageController.selectedViewController as? PlatformPageView.ContainerViewController else {
| `- warning: main actor-isolated property 'selectedViewController' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
160 | return nil
161 | }
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.4.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSPageController.h:35:58: note: property declared here
33 | /* The viewController associated with the selected arrangedObject. May be nil if delegate is not supplying viewControllers.
34 | */
35 | @property (nullable, readonly, strong) NSViewController *selectedViewController;
| `- note: property declared here
36 |
37 |
/Users/admin/builder/spi-builder-workspace/Sources/BigUIPaging/Implementations/PageView/Platform/PlatformPageView+macOS.swift:162:30: warning: main actor-isolated property 'representedValue' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
156 |
157 | /// Returns the currently selected value as represented by the currently selected view controller.
158 | func selectedValue(in pageController: NSPageController) -> SelectionValue? {
| `- note: add '@MainActor' to make instance method 'selectedValue(in:)' part of global actor 'MainActor'
159 | guard let container = pageController.selectedViewController as? PlatformPageView.ContainerViewController else {
160 | return nil
161 | }
162 | return container.representedValue
| `- warning: main actor-isolated property 'representedValue' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
163 | }
164 |
:
205 | }
206 |
207 | var representedValue: SelectionValue? {
| `- note: property declared here
208 | representedObject as? SelectionValue
209 | }
/Users/admin/builder/spi-builder-workspace/Sources/BigUIPaging/Implementations/PageView/Platform/PlatformPageView+macOS.swift:172:28: warning: main actor-isolated property 'arrangedObjects' can not be mutated from a nonisolated context; this is an error in the Swift 6 language mode
164 |
165 | /// Navigates the page controller to the specified value.
166 | func go(
| `- note: add '@MainActor' to make instance method 'go(to:in:animated:)' part of global actor 'MainActor'
167 | to value: SelectionValue,
168 | in pageController: NSPageController,
:
170 | ) {
171 | let (arrangedObjects, selectedIndex) = parent.makeArrangedObjects(around: value)
172 | pageController.arrangedObjects = arrangedObjects
| `- warning: main actor-isolated property 'arrangedObjects' can not be mutated from a nonisolated context; this is an error in the Swift 6 language mode
173 | if animated {
174 | NSAnimationContext.runAnimationGroup { _ in
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.4.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSPageController.h:43:27: note: mutation of this property is only permitted within the actor
41 | /* Array of all displayed objects (after sorting and potentially filtering by you). The delegate will be asked for snapshots as they are needed. Alternatively, you may never directly set this array and use the -navigateForwardToRepresentedObject API to create a history as the user navigates. This property is KVO compliant.
42 | */
43 | @property (copy) NSArray *arrangedObjects;
| `- note: mutation of this property is only permitted within the actor
44 |
45 | /* The index into the arrangedObjects that is being displayed. This property is KVO compliant. To animate a transition to a new index, use NSPageController's animator object. */
/Users/admin/builder/spi-builder-workspace/Sources/BigUIPaging/Implementations/PageView/Platform/PlatformPageView+macOS.swift:175:47: warning: main actor-isolated property 'selectedIndex' can not be mutated from a nonisolated context; this is an error in the Swift 6 language mode
173 | if animated {
174 | NSAnimationContext.runAnimationGroup { _ in
175 | pageController.animator().selectedIndex = selectedIndex
| `- warning: main actor-isolated property 'selectedIndex' can not be mutated from a nonisolated context; this is an error in the Swift 6 language mode
176 | } completionHandler: {
177 | pageController.completeTransition()
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.4.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSPageController.h:46:21: note: mutation of this property is only permitted within the actor
44 |
45 | /* The index into the arrangedObjects that is being displayed. This property is KVO compliant. To animate a transition to a new index, use NSPageController's animator object. */
46 | @property NSInteger selectedIndex;
| `- note: mutation of this property is only permitted within the actor
47 |
48 |
/Users/admin/builder/spi-builder-workspace/Sources/BigUIPaging/Implementations/PageView/Platform/PlatformPageView+macOS.swift:175:36: warning: call to main actor-isolated instance method 'animator()' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
173 | if animated {
174 | NSAnimationContext.runAnimationGroup { _ in
175 | pageController.animator().selectedIndex = selectedIndex
| `- warning: call to main actor-isolated instance method 'animator()' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
176 | } completionHandler: {
177 | pageController.completeTransition()
AppKit.NSPageController.animator:3:24: note: calls to instance method 'animator()' from outside of its actor context are implicitly asynchronous
1 | class NSPageController {
2 | @available(macOS 10.5, *)
3 | @MainActor open func animator() -> Self}
| |- note: calls to instance method 'animator()' from outside of its actor context are implicitly asynchronous
| `- note: main actor isolation inferred from inheritance from class 'NSViewController'
4 |
/Users/admin/builder/spi-builder-workspace/Sources/BigUIPaging/Implementations/PageView/Platform/PlatformPageView+macOS.swift:177:36: warning: call to main actor-isolated instance method 'completeTransition()' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
175 | pageController.animator().selectedIndex = selectedIndex
176 | } completionHandler: {
177 | pageController.completeTransition()
| `- warning: call to main actor-isolated instance method 'completeTransition()' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
178 | }
179 | } else {
AppKit.NSPageController.completeTransition:2:22: note: calls to instance method 'completeTransition()' from outside of its actor context are implicitly asynchronous
1 | class NSPageController {
2 | @MainActor open func completeTransition()}
| |- note: calls to instance method 'completeTransition()' from outside of its actor context are implicitly asynchronous
| `- note: main actor isolation inferred from inheritance from class 'NSViewController'
3 |
/Users/admin/builder/spi-builder-workspace/Sources/BigUIPaging/Implementations/PageView/Platform/PlatformPageView+macOS.swift:180:32: warning: main actor-isolated property 'selectedIndex' can not be mutated from a nonisolated context; this is an error in the Swift 6 language mode
164 |
165 | /// Navigates the page controller to the specified value.
166 | func go(
| `- note: add '@MainActor' to make instance method 'go(to:in:animated:)' part of global actor 'MainActor'
167 | to value: SelectionValue,
168 | in pageController: NSPageController,
:
178 | }
179 | } else {
180 | pageController.selectedIndex = selectedIndex
| `- warning: main actor-isolated property 'selectedIndex' can not be mutated from a nonisolated context; this is an error in the Swift 6 language mode
181 | }
182 | }
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.4.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSPageController.h:46:21: note: mutation of this property is only permitted within the actor
44 |
45 | /* The index into the arrangedObjects that is being displayed. This property is KVO compliant. To animate a transition to a new index, use NSPageController's animator object. */
46 | @property NSInteger selectedIndex;
| `- note: mutation of this property is only permitted within the actor
47 |
48 |
/Users/admin/builder/spi-builder-workspace/Sources/BigUIPaging/Implementations/PageView/Platform/PlatformPageView+macOS.swift:138:41: warning: sending value of non-Sendable type 'Content' risks causing data races; this is an error in the Swift 6 language mode
136 | return cached
137 | }
138 | let view = PlatformPageView.HostingView(rootView: parent.content(value))
| |- warning: sending value of non-Sendable type 'Content' risks causing data races; this is an error in the Swift 6 language mode
| `- note: sending task-isolated value of non-Sendable type 'Content' to main actor-isolated initializer 'init(rootView:)' risks causing races in between task-isolated and main actor-isolated uses
139 | viewCache[value] = view
140 | return view
[34/34] Compiling BigUIPaging PlatformPageView.swift
/Users/admin/builder/spi-builder-workspace/Sources/BigUIPaging/Implementations/PageView/Platform/PlatformPageView+macOS.swift:138:41: warning: call to main actor-isolated initializer 'init(rootView:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
132 | ///
133 | /// The view is cached until flushed, so repeated calls will return the same view instance.
134 | func makeView(for value: SelectionValue) -> NSView {
| `- note: add '@MainActor' to make instance method 'makeView(for:)' part of global actor 'MainActor'
135 | if let cached = viewCache[value] {
136 | return cached
137 | }
138 | let view = PlatformPageView.HostingView(rootView: parent.content(value))
| `- warning: call to main actor-isolated initializer 'init(rootView:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
139 | viewCache[value] = view
140 | return view
:
230 | }
231 |
232 | class HostingView: NSHostingView<Content> {
| |- note: calls to initializer 'init(rootView:)' from outside of its actor context are implicitly asynchronous
| `- note: main actor isolation inferred from inheritance from generic class 'NSHostingView'
233 |
234 | // Without this SwiftUI will swallow all scroll events, rendering
/Users/admin/builder/spi-builder-workspace/Sources/BigUIPaging/Implementations/PageView/Platform/PlatformPageView+macOS.swift:145:54: warning: main actor-isolated property 'arrangedObjects' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
142 |
143 | /// Removes cached views that are no longer part of the controller's arranged objects.
144 | func flushViewCache(in pageController: NSPageController) {
| `- note: add '@MainActor' to make instance method 'flushViewCache(in:)' part of global actor 'MainActor'
145 | guard let currentValues = pageController.arrangedObjects as? [SelectionValue] else {
| `- warning: main actor-isolated property 'arrangedObjects' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
146 | return
147 | }
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.4.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSPageController.h:43:27: note: property declared here
41 | /* Array of all displayed objects (after sorting and potentially filtering by you). The delegate will be asked for snapshots as they are needed. Alternatively, you may never directly set this array and use the -navigateForwardToRepresentedObject API to create a history as the user navigates. This property is KVO compliant.
42 | */
43 | @property (copy) NSArray *arrangedObjects;
| `- note: property declared here
44 |
45 | /* The index into the arrangedObjects that is being displayed. This property is KVO compliant. To animate a transition to a new index, use NSPageController's animator object. */
/Users/admin/builder/spi-builder-workspace/Sources/BigUIPaging/Implementations/PageView/Platform/PlatformPageView+macOS.swift:159:50: warning: main actor-isolated property 'selectedViewController' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
156 |
157 | /// Returns the currently selected value as represented by the currently selected view controller.
158 | func selectedValue(in pageController: NSPageController) -> SelectionValue? {
| `- note: add '@MainActor' to make instance method 'selectedValue(in:)' part of global actor 'MainActor'
159 | guard let container = pageController.selectedViewController as? PlatformPageView.ContainerViewController else {
| `- warning: main actor-isolated property 'selectedViewController' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
160 | return nil
161 | }
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.4.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSPageController.h:35:58: note: property declared here
33 | /* The viewController associated with the selected arrangedObject. May be nil if delegate is not supplying viewControllers.
34 | */
35 | @property (nullable, readonly, strong) NSViewController *selectedViewController;
| `- note: property declared here
36 |
37 |
/Users/admin/builder/spi-builder-workspace/Sources/BigUIPaging/Implementations/PageView/Platform/PlatformPageView+macOS.swift:162:30: warning: main actor-isolated property 'representedValue' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
156 |
157 | /// Returns the currently selected value as represented by the currently selected view controller.
158 | func selectedValue(in pageController: NSPageController) -> SelectionValue? {
| `- note: add '@MainActor' to make instance method 'selectedValue(in:)' part of global actor 'MainActor'
159 | guard let container = pageController.selectedViewController as? PlatformPageView.ContainerViewController else {
160 | return nil
161 | }
162 | return container.representedValue
| `- warning: main actor-isolated property 'representedValue' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
163 | }
164 |
:
205 | }
206 |
207 | var representedValue: SelectionValue? {
| `- note: property declared here
208 | representedObject as? SelectionValue
209 | }
/Users/admin/builder/spi-builder-workspace/Sources/BigUIPaging/Implementations/PageView/Platform/PlatformPageView+macOS.swift:172:28: warning: main actor-isolated property 'arrangedObjects' can not be mutated from a nonisolated context; this is an error in the Swift 6 language mode
164 |
165 | /// Navigates the page controller to the specified value.
166 | func go(
| `- note: add '@MainActor' to make instance method 'go(to:in:animated:)' part of global actor 'MainActor'
167 | to value: SelectionValue,
168 | in pageController: NSPageController,
:
170 | ) {
171 | let (arrangedObjects, selectedIndex) = parent.makeArrangedObjects(around: value)
172 | pageController.arrangedObjects = arrangedObjects
| `- warning: main actor-isolated property 'arrangedObjects' can not be mutated from a nonisolated context; this is an error in the Swift 6 language mode
173 | if animated {
174 | NSAnimationContext.runAnimationGroup { _ in
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.4.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSPageController.h:43:27: note: mutation of this property is only permitted within the actor
41 | /* Array of all displayed objects (after sorting and potentially filtering by you). The delegate will be asked for snapshots as they are needed. Alternatively, you may never directly set this array and use the -navigateForwardToRepresentedObject API to create a history as the user navigates. This property is KVO compliant.
42 | */
43 | @property (copy) NSArray *arrangedObjects;
| `- note: mutation of this property is only permitted within the actor
44 |
45 | /* The index into the arrangedObjects that is being displayed. This property is KVO compliant. To animate a transition to a new index, use NSPageController's animator object. */
/Users/admin/builder/spi-builder-workspace/Sources/BigUIPaging/Implementations/PageView/Platform/PlatformPageView+macOS.swift:175:47: warning: main actor-isolated property 'selectedIndex' can not be mutated from a nonisolated context; this is an error in the Swift 6 language mode
173 | if animated {
174 | NSAnimationContext.runAnimationGroup { _ in
175 | pageController.animator().selectedIndex = selectedIndex
| `- warning: main actor-isolated property 'selectedIndex' can not be mutated from a nonisolated context; this is an error in the Swift 6 language mode
176 | } completionHandler: {
177 | pageController.completeTransition()
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.4.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSPageController.h:46:21: note: mutation of this property is only permitted within the actor
44 |
45 | /* The index into the arrangedObjects that is being displayed. This property is KVO compliant. To animate a transition to a new index, use NSPageController's animator object. */
46 | @property NSInteger selectedIndex;
| `- note: mutation of this property is only permitted within the actor
47 |
48 |
/Users/admin/builder/spi-builder-workspace/Sources/BigUIPaging/Implementations/PageView/Platform/PlatformPageView+macOS.swift:175:36: warning: call to main actor-isolated instance method 'animator()' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
173 | if animated {
174 | NSAnimationContext.runAnimationGroup { _ in
175 | pageController.animator().selectedIndex = selectedIndex
| `- warning: call to main actor-isolated instance method 'animator()' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
176 | } completionHandler: {
177 | pageController.completeTransition()
AppKit.NSPageController.animator:3:24: note: calls to instance method 'animator()' from outside of its actor context are implicitly asynchronous
1 | class NSPageController {
2 | @available(macOS 10.5, *)
3 | @MainActor open func animator() -> Self}
| |- note: calls to instance method 'animator()' from outside of its actor context are implicitly asynchronous
| `- note: main actor isolation inferred from inheritance from class 'NSViewController'
4 |
/Users/admin/builder/spi-builder-workspace/Sources/BigUIPaging/Implementations/PageView/Platform/PlatformPageView+macOS.swift:177:36: warning: call to main actor-isolated instance method 'completeTransition()' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
175 | pageController.animator().selectedIndex = selectedIndex
176 | } completionHandler: {
177 | pageController.completeTransition()
| `- warning: call to main actor-isolated instance method 'completeTransition()' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
178 | }
179 | } else {
AppKit.NSPageController.completeTransition:2:22: note: calls to instance method 'completeTransition()' from outside of its actor context are implicitly asynchronous
1 | class NSPageController {
2 | @MainActor open func completeTransition()}
| |- note: calls to instance method 'completeTransition()' from outside of its actor context are implicitly asynchronous
| `- note: main actor isolation inferred from inheritance from class 'NSViewController'
3 |
/Users/admin/builder/spi-builder-workspace/Sources/BigUIPaging/Implementations/PageView/Platform/PlatformPageView+macOS.swift:180:32: warning: main actor-isolated property 'selectedIndex' can not be mutated from a nonisolated context; this is an error in the Swift 6 language mode
164 |
165 | /// Navigates the page controller to the specified value.
166 | func go(
| `- note: add '@MainActor' to make instance method 'go(to:in:animated:)' part of global actor 'MainActor'
167 | to value: SelectionValue,
168 | in pageController: NSPageController,
:
178 | }
179 | } else {
180 | pageController.selectedIndex = selectedIndex
| `- warning: main actor-isolated property 'selectedIndex' can not be mutated from a nonisolated context; this is an error in the Swift 6 language mode
181 | }
182 | }
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.4.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSPageController.h:46:21: note: mutation of this property is only permitted within the actor
44 |
45 | /* The index into the arrangedObjects that is being displayed. This property is KVO compliant. To animate a transition to a new index, use NSPageController's animator object. */
46 | @property NSInteger selectedIndex;
| `- note: mutation of this property is only permitted within the actor
47 |
48 |
/Users/admin/builder/spi-builder-workspace/Sources/BigUIPaging/Implementations/PageView/Platform/PlatformPageView+macOS.swift:138:41: warning: sending value of non-Sendable type 'Content' risks causing data races; this is an error in the Swift 6 language mode
136 | return cached
137 | }
138 | let view = PlatformPageView.HostingView(rootView: parent.content(value))
| |- warning: sending value of non-Sendable type 'Content' risks causing data races; this is an error in the Swift 6 language mode
| `- note: sending task-isolated value of non-Sendable type 'Content' to main actor-isolated initializer 'init(rootView:)' risks causing races in between task-isolated and main actor-isolated uses
139 | viewCache[value] = view
140 | return view
Build complete! (11.85s)
Build complete.
{
"dependencies" : [
],
"manifest_display_name" : "BigUIPaging",
"name" : "BigUIPaging",
"path" : "/Users/admin/builder/spi-builder-workspace",
"platforms" : [
{
"name" : "macos",
"version" : "13.0"
},
{
"name" : "ios",
"version" : "16.0"
}
],
"products" : [
{
"name" : "BigUIPaging",
"targets" : [
"BigUIPaging"
],
"type" : {
"library" : [
"automatic"
]
}
}
],
"targets" : [
{
"c99name" : "BigUIPagingTests",
"module_type" : "SwiftTarget",
"name" : "BigUIPagingTests",
"path" : "Tests/BigUIPagingTests",
"sources" : [
"BigUIPagingTests.swift"
],
"target_dependencies" : [
"BigUIPaging"
],
"type" : "test"
},
{
"c99name" : "BigUIPaging",
"module_type" : "SwiftTarget",
"name" : "BigUIPaging",
"path" : "Sources/BigUIPaging",
"product_memberships" : [
"BigUIPaging"
],
"sources" : [
"Examples/CardDeckExample.swift",
"Examples/CustomPageViewExample.swift",
"Examples/ExampleGridToPageView.swift",
"Examples/PageIndicatorExample.swift",
"Examples/PageViewBasicExample.swift",
"Examples/PageViewForEachExample.swift",
"Examples/PageViewNavigationStackExample.swift",
"Implementations/PageIndicator/PageIndicator+Environment.swift",
"Implementations/PageIndicator/PageIndicator+iOS.swift",
"Implementations/PageIndicator/PageIndicator.swift",
"Implementations/PageView/Platform/PlatformPageView+iOS.swift",
"Implementations/PageView/Platform/PlatformPageView+macOS.swift",
"Implementations/PageView/Platform/PlatformPageView.swift",
"Implementations/PageView/Styles/BookPageViewStyle.swift",
"Implementations/PageView/Styles/BookStackPageViewStyle.swift",
"Implementations/PageView/Styles/CardDeckPageViewStyle.swift",
"Implementations/PageView/Styles/HistoryStackPageViewStyle.swift",
"Implementations/PageView/Styles/PlainPageViewStyle.swift",
"Implementations/PageView/Styles/PlatformPageViewStyle.swift",
"Implementations/PageView/Styles/ScrollPageViewStyle.swift",
"Implementations/PageView/Types/PageViewDirection.swift",
"Implementations/PageView/Types/PageViewNavigateAction.swift",
"Implementations/PageView/Types/PageViewStyle.swift",
"Implementations/PageView/Types/PageViewStyleConfiguration.swift",
"Implementations/PageView/View/PageView+Environment.swift",
"Implementations/PageView/View/PageView+Preferences.swift",
"Implementations/PageView/View/PageView.swift",
"Implementations/PageView/View/PageViewEnvironmentModifier.swift",
"Implementations/PageView/View/PageViewNavigationButton.swift",
"Implementations/Utils/View+Inspect.swift",
"Implementations/Utils/View+Measure.swift"
],
"type" : "library"
}
],
"tools_version" : "5.7"
}
Done.