Build Information
Successful build of CompositionalLayoutBuilder, reference main (2bbfba
), with Swift 6.1 for macOS (SPM) on 28 Apr 2025 23:00:52 UTC.
Swift 6 data race errors: 0
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/edonv/CompositionalLayoutBuilder.git
Reference: main
Initialized empty Git repository in /Users/admin/builder/spi-builder-workspace/.git/
From https://github.com/edonv/CompositionalLayoutBuilder
* branch main -> FETCH_HEAD
* [new branch] main -> origin/main
HEAD is now at 2bbfba3 Update CompositionalLayout.swift
Cloned https://github.com/edonv/CompositionalLayoutBuilder.git
Revision (git rev-parse @):
2bbfba3b16c0ee06d2b06b3bea8ecbc03cc70be7
SPI manifest file found: $PWD/.spi.yml
SUCCESS checkout https://github.com/edonv/CompositionalLayoutBuilder.git at main
========================================
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": "compositionallayoutbuilder",
"name": "CompositionalLayoutBuilder",
"url": "https://github.com/edonv/CompositionalLayoutBuilder.git",
"version": "unspecified",
"path": "/Users/admin/builder/spi-builder-workspace/.resolve-product-dependencies/.build/checkouts/CompositionalLayoutBuilder",
"dependencies": [
]
}
]
}
Fetching https://github.com/edonv/CompositionalLayoutBuilder.git
[1/232] Fetching compositionallayoutbuilder
Fetched https://github.com/edonv/CompositionalLayoutBuilder.git from cache (0.64s)
Creating working copy for https://github.com/edonv/CompositionalLayoutBuilder.git
Working copy of https://github.com/edonv/CompositionalLayoutBuilder.git resolved at main (2bbfba3)
warning: '.resolve-product-dependencies': dependency 'compositionallayoutbuilder' 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/edonv/CompositionalLayoutBuilder.git
https://github.com/edonv/CompositionalLayoutBuilder.git
{
"dependencies" : [
],
"manifest_display_name" : "CompositionalLayoutBuilder",
"name" : "CompositionalLayoutBuilder",
"path" : "/Users/admin/builder/spi-builder-workspace",
"platforms" : [
{
"name" : "ios",
"version" : "13.0"
},
{
"name" : "maccatalyst",
"version" : "13.0"
},
{
"name" : "macos",
"version" : "10.15"
},
{
"name" : "tvos",
"version" : "13.0"
}
],
"products" : [
{
"name" : "CompositionalLayoutBuilder",
"targets" : [
"CompositionalLayoutBuilder"
],
"type" : {
"library" : [
"automatic"
]
}
}
],
"targets" : [
{
"c99name" : "CompositionalLayoutBuilderTests",
"module_type" : "SwiftTarget",
"name" : "CompositionalLayoutBuilderTests",
"path" : "Tests/CompositionalLayoutBuilderTests",
"sources" : [
"CompositionalLayoutBuilderTests.swift"
],
"target_dependencies" : [
"CompositionalLayoutBuilder"
],
"type" : "test"
},
{
"c99name" : "CompositionalLayoutBuilder",
"module_type" : "SwiftTarget",
"name" : "CompositionalLayoutBuilder",
"path" : "Sources/CompositionalLayoutBuilder",
"product_memberships" : [
"CompositionalLayoutBuilder"
],
"sources" : [
"Builders/CollectionLayoutGroupBuilder.swift",
"Builders/CompositionalLayoutBuilder.swift",
"Internal Helpers/NSDirectionalEdgeInsets+Backport.swift",
"Layout Building Blocks/CompositionalGroup.swift",
"Layout Building Blocks/CompositionalItem.swift",
"Layout Building Blocks/CompositionalLayout.swift",
"Layout Building Blocks/CompositionalSection.swift",
"Public Helpers/UICollectionView+Extensions.swift",
"Public Helpers/UICollectionViewController+Extensions.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/12] Emitting module CompositionalLayoutBuilder
[4/12] Compiling CompositionalLayoutBuilder CompositionalGroup.swift
/Users/admin/builder/spi-builder-workspace/Sources/CompositionalLayoutBuilder/Layout Building Blocks/CompositionalGroup.swift:22:27: warning: call to main actor-isolated class method 'horizontal(layoutSize:subitems:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
20 | switch axis {
21 | case .horizontal:
22 | self.group = .horizontal(layoutSize: .init(widthDimension: width, heightDimension: height),
| `- warning: call to main actor-isolated class method 'horizontal(layoutSize:subitems:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
23 | subitems: builder())
24 | case .vertical:
AppKit.NSCollectionLayoutGroup.horizontal:2:28: note: calls to class method 'horizontal(layoutSize:subitems:)' from outside of its actor context are implicitly asynchronous
1 | class NSCollectionLayoutGroup {
2 | @MainActor open class func horizontal(layoutSize: NSCollectionLayoutSize, subitems: [NSCollectionLayoutItem]) -> Self}
| |- note: calls to class method 'horizontal(layoutSize:subitems:)' from outside of its actor context are implicitly asynchronous
| `- note: main actor isolation inferred from inheritance from class 'NSCollectionLayoutItem'
3 |
/Users/admin/builder/spi-builder-workspace/Sources/CompositionalLayoutBuilder/Layout Building Blocks/CompositionalGroup.swift:22:51: warning: call to main actor-isolated initializer 'init(widthDimension:heightDimension:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
20 | switch axis {
21 | case .horizontal:
22 | self.group = .horizontal(layoutSize: .init(widthDimension: width, heightDimension: height),
| `- warning: call to main actor-isolated initializer 'init(widthDimension:heightDimension:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
23 | subitems: builder())
24 | case .vertical:
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.4.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSCollectionViewCompositionalLayout.h:323:1: note: calls to initializer 'init(widthDimension:heightDimension:)' from outside of its actor context are implicitly asynchronous
321 | API_AVAILABLE(macos(10.15)) NS_SWIFT_UI_ACTOR
322 | @interface NSCollectionLayoutSize : NSObject<NSCopying>
323 | + (instancetype)sizeWithWidthDimension:(NSCollectionLayoutDimension*)width heightDimension:(NSCollectionLayoutDimension*)height;
| `- note: calls to initializer 'init(widthDimension:heightDimension:)' from outside of its actor context are implicitly asynchronous
324 | - (instancetype)init NS_UNAVAILABLE;
325 | + (instancetype)new NS_UNAVAILABLE;
/Users/admin/builder/spi-builder-workspace/Sources/CompositionalLayoutBuilder/Layout Building Blocks/CompositionalGroup.swift:25:27: warning: call to main actor-isolated class method 'vertical(layoutSize:subitems:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
23 | subitems: builder())
24 | case .vertical:
25 | self.group = .vertical(layoutSize: .init(widthDimension: width, heightDimension: height),
| `- warning: call to main actor-isolated class method 'vertical(layoutSize:subitems:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
26 | subitems: builder())
27 | }
AppKit.NSCollectionLayoutGroup.vertical:2:28: note: calls to class method 'vertical(layoutSize:subitems:)' from outside of its actor context are implicitly asynchronous
1 | class NSCollectionLayoutGroup {
2 | @MainActor open class func vertical(layoutSize: NSCollectionLayoutSize, subitems: [NSCollectionLayoutItem]) -> Self}
| |- note: calls to class method 'vertical(layoutSize:subitems:)' from outside of its actor context are implicitly asynchronous
| `- note: main actor isolation inferred from inheritance from class 'NSCollectionLayoutItem'
3 |
/Users/admin/builder/spi-builder-workspace/Sources/CompositionalLayoutBuilder/Layout Building Blocks/CompositionalGroup.swift:25:49: warning: call to main actor-isolated initializer 'init(widthDimension:heightDimension:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
23 | subitems: builder())
24 | case .vertical:
25 | self.group = .vertical(layoutSize: .init(widthDimension: width, heightDimension: height),
| `- warning: call to main actor-isolated initializer 'init(widthDimension:heightDimension:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
26 | subitems: builder())
27 | }
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.4.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSCollectionViewCompositionalLayout.h:323:1: note: calls to initializer 'init(widthDimension:heightDimension:)' from outside of its actor context are implicitly asynchronous
321 | API_AVAILABLE(macos(10.15)) NS_SWIFT_UI_ACTOR
322 | @interface NSCollectionLayoutSize : NSObject<NSCopying>
323 | + (instancetype)sizeWithWidthDimension:(NSCollectionLayoutDimension*)width heightDimension:(NSCollectionLayoutDimension*)height;
| `- note: calls to initializer 'init(widthDimension:heightDimension:)' from outside of its actor context are implicitly asynchronous
324 | - (instancetype)init NS_UNAVAILABLE;
325 | + (instancetype)new NS_UNAVAILABLE;
/Users/admin/builder/spi-builder-workspace/Sources/CompositionalLayoutBuilder/Layout Building Blocks/CompositionalGroup.swift:35:23: warning: call to main actor-isolated class method 'custom(layoutSize:itemProvider:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
33 | customItemProvider itemProvider: @escaping NSCollectionLayoutGroupCustomItemProvider
34 | ) {
35 | self.group = .custom(layoutSize: .init(widthDimension: width, heightDimension: height),
| `- warning: call to main actor-isolated class method 'custom(layoutSize:itemProvider:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
36 | itemProvider: itemProvider)
37 | }
AppKit.NSCollectionLayoutGroup.custom:2:28: note: calls to class method 'custom(layoutSize:itemProvider:)' from outside of its actor context are implicitly asynchronous
1 | class NSCollectionLayoutGroup {
2 | @MainActor open class func custom(layoutSize: NSCollectionLayoutSize, itemProvider: @escaping NSCollectionLayoutGroupCustomItemProvider) -> Self}
| |- note: calls to class method 'custom(layoutSize:itemProvider:)' from outside of its actor context are implicitly asynchronous
| `- note: main actor isolation inferred from inheritance from class 'NSCollectionLayoutItem'
3 |
/Users/admin/builder/spi-builder-workspace/Sources/CompositionalLayoutBuilder/Layout Building Blocks/CompositionalGroup.swift:35:43: warning: call to main actor-isolated initializer 'init(widthDimension:heightDimension:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
33 | customItemProvider itemProvider: @escaping NSCollectionLayoutGroupCustomItemProvider
34 | ) {
35 | self.group = .custom(layoutSize: .init(widthDimension: width, heightDimension: height),
| `- warning: call to main actor-isolated initializer 'init(widthDimension:heightDimension:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
36 | itemProvider: itemProvider)
37 | }
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.4.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSCollectionViewCompositionalLayout.h:323:1: note: calls to initializer 'init(widthDimension:heightDimension:)' from outside of its actor context are implicitly asynchronous
321 | API_AVAILABLE(macos(10.15)) NS_SWIFT_UI_ACTOR
322 | @interface NSCollectionLayoutSize : NSObject<NSCopying>
323 | + (instancetype)sizeWithWidthDimension:(NSCollectionLayoutDimension*)width heightDimension:(NSCollectionLayoutDimension*)height;
| `- note: calls to initializer 'init(widthDimension:heightDimension:)' from outside of its actor context are implicitly asynchronous
324 | - (instancetype)init NS_UNAVAILABLE;
325 | + (instancetype)new NS_UNAVAILABLE;
/Users/admin/builder/spi-builder-workspace/Sources/CompositionalLayoutBuilder/Layout Building Blocks/CompositionalGroup.swift:44:19: warning: main actor-isolated property 'interItemSpacing' can not be mutated from a nonisolated context; this is an error in the Swift 6 language mode
40 |
41 | /// Sets the amount of space between the items in the group.
42 | public func interItemSpacing(_ spacing: NSCollectionLayoutSpacing) -> Self {
| `- note: add '@MainActor' to make instance method 'interItemSpacing' part of global actor 'MainActor'
43 | let new = self
44 | new.group.interItemSpacing = spacing
| `- warning: main actor-isolated property 'interItemSpacing' can not be mutated from a nonisolated context; this is an error in the Swift 6 language mode
45 | return new
46 | }
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.4.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSCollectionViewCompositionalLayout.h:288:53: note: mutation of this property is only permitted within the actor
286 |
287 | // Supplies additional spacing between items along the layout axis of the group
288 | @property(copy,nullable) NSCollectionLayoutSpacing *interItemSpacing;
| `- note: mutation of this property is only permitted within the actor
289 |
290 | @property(readonly) NSArray<NSCollectionLayoutItem*> *subitems;
/Users/admin/builder/spi-builder-workspace/Sources/CompositionalLayoutBuilder/Layout Building Blocks/CompositionalGroup.swift:52:21: warning: call to main actor-isolated instance method 'visualDescription()' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
49 |
50 | /// Returns the layout while printing an ASCII representation of the group.
51 | public func printVisualDescription() -> Self {
| `- note: add '@MainActor' to make instance method 'printVisualDescription()' part of global actor 'MainActor'
52 | print(group.visualDescription())
| `- warning: call to main actor-isolated instance method 'visualDescription()' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
53 | return self
54 | }
AppKit.NSCollectionLayoutGroup.visualDescription:2:22: note: calls to instance method 'visualDescription()' from outside of its actor context are implicitly asynchronous
1 | class NSCollectionLayoutGroup {
2 | @MainActor open func visualDescription() -> String}
| |- note: calls to instance method 'visualDescription()' from outside of its actor context are implicitly asynchronous
| `- note: main actor isolation inferred from inheritance from class 'NSCollectionLayoutItem'
3 |
/Users/admin/builder/spi-builder-workspace/Sources/CompositionalLayoutBuilder/Layout Building Blocks/CompositionalGroup.swift:58:15: warning: call to main actor-isolated instance method 'visualDescription()' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
55 |
56 | /// Returns a string with an ASCII representation of the group.
57 | public func visualDescription() -> String {
| `- note: add '@MainActor' to make instance method 'visualDescription()' part of global actor 'MainActor'
58 | group.visualDescription()
| `- warning: call to main actor-isolated instance method 'visualDescription()' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
59 | }
60 |
AppKit.NSCollectionLayoutGroup.visualDescription:2:22: note: calls to instance method 'visualDescription()' from outside of its actor context are implicitly asynchronous
1 | class NSCollectionLayoutGroup {
2 | @MainActor open func visualDescription() -> String}
| |- note: calls to instance method 'visualDescription()' from outside of its actor context are implicitly asynchronous
| `- note: main actor isolation inferred from inheritance from class 'NSCollectionLayoutItem'
3 |
/Users/admin/builder/spi-builder-workspace/Sources/CompositionalLayoutBuilder/Layout Building Blocks/CompositionalGroup.swift:68:19: warning: main actor-isolated property 'edgeSpacing' can not be mutated from a nonisolated context; this is an error in the Swift 6 language mode
64 | ///
65 | /// For more details, see: [edgeSpacing](https://developer.apple.com/documentation/uikit/nscollectionlayoutitem/3199085-edgespacing)
66 | public func edgeSpacing(_ spacing: NSCollectionLayoutEdgeSpacing) -> Self {
| `- note: add '@MainActor' to make instance method 'edgeSpacing' part of global actor 'MainActor'
67 | let new = self
68 | new.group.edgeSpacing = spacing
| `- warning: main actor-isolated property 'edgeSpacing' can not be mutated from a nonisolated context; this is an error in the Swift 6 language mode
69 | return new
70 | }
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.4.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSCollectionViewCompositionalLayout.h:208:57: note: mutation of this property is only permitted within the actor
206 | // evenly align items among available layout space.
207 |
208 | @property(copy,nullable) NSCollectionLayoutEdgeSpacing *edgeSpacing;
| `- note: mutation of this property is only permitted within the actor
209 |
210 | @property(readonly) NSCollectionLayoutSize *layoutSize;
/Users/admin/builder/spi-builder-workspace/Sources/CompositionalLayoutBuilder/Layout Building Blocks/CompositionalGroup.swift:77:19: warning: main actor-isolated property 'contentInsets' can not be mutated from a nonisolated context; this is an error in the Swift 6 language mode
73 | ///
74 | /// For more details, see: [contentInsets](https://developer.apple.com/documentation/uikit/nscollectionlayoutitem/3199084-contentinsets)
75 | public func contentInsets(_ insets: EdgeInsets) -> Self {
| `- note: add '@MainActor' to make instance method 'contentInsets' part of global actor 'MainActor'
76 | let new = self
77 | new.group.contentInsets = .init(backport: insets)
| `- warning: main actor-isolated property 'contentInsets' can not be mutated from a nonisolated context; this is an error in the Swift 6 language mode
78 | return new
79 | }
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.4.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSCollectionViewCompositionalLayout.h:182:35: note: mutation of this property is only permitted within the actor
180 | // Note: contentInsets are ignored for items with .estimated dimension(s)
181 |
182 | @property NSDirectionalEdgeInsets contentInsets;
| `- note: mutation of this property is only permitted within the actor
183 |
184 | // +--------+
/Users/admin/builder/spi-builder-workspace/Sources/CompositionalLayoutBuilder/Layout Building Blocks/CompositionalGroup.swift:35:23: warning: sending value of non-Sendable type 'NSCollectionLayoutGroupCustomItemProvider' (aka '(any NSCollectionLayoutEnvironment) -> Array<NSCollectionLayoutGroupCustomItem>') risks causing data races; this is an error in the Swift 6 language mode
33 | customItemProvider itemProvider: @escaping NSCollectionLayoutGroupCustomItemProvider
34 | ) {
35 | self.group = .custom(layoutSize: .init(widthDimension: width, heightDimension: height),
| |- warning: sending value of non-Sendable type 'NSCollectionLayoutGroupCustomItemProvider' (aka '(any NSCollectionLayoutEnvironment) -> Array<NSCollectionLayoutGroupCustomItem>') risks causing data races; this is an error in the Swift 6 language mode
| `- note: sending task-isolated value of non-Sendable type 'NSCollectionLayoutGroupCustomItemProvider' (aka '(any NSCollectionLayoutEnvironment) -> Array<NSCollectionLayoutGroupCustomItem>') to main actor-isolated class method 'custom(layoutSize:itemProvider:)' risks causing races in between task-isolated and main actor-isolated uses
36 | itemProvider: itemProvider)
37 | }
[5/12] Compiling CompositionalLayoutBuilder NSDirectionalEdgeInsets+Backport.swift
[6/12] Compiling CompositionalLayoutBuilder UICollectionView+Extensions.swift
[7/12] Compiling CompositionalLayoutBuilder UICollectionViewController+Extensions.swift
[8/12] Compiling CompositionalLayoutBuilder CompositionalLayout.swift
/Users/admin/builder/spi-builder-workspace/Sources/CompositionalLayoutBuilder/Layout Building Blocks/CompositionalLayout.swift:35:23: warning: call to main actor-isolated initializer 'init(sectionProvider:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
33 |
34 | internal init(sections: [NSCollectionLayoutSection]) {
35 | self.layout = Layout { section, _ in
| `- warning: call to main actor-isolated initializer 'init(sectionProvider:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
36 | sections[section % sections.count]
37 | }
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.4.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSCollectionViewCompositionalLayout.h:99:1: note: calls to initializer 'init(sectionProvider:)' from outside of its actor context are implicitly asynchronous
97 | - (instancetype)initWithSection:(NSCollectionLayoutSection*)section configuration:(NSCollectionViewCompositionalLayoutConfiguration*)configuration;
98 |
99 | - (instancetype)initWithSectionProvider:(NSCollectionViewCompositionalLayoutSectionProvider)sectionProvider;
| |- note: calls to initializer 'init(sectionProvider:)' from outside of its actor context are implicitly asynchronous
| `- note: main actor isolation inferred from inheritance from class 'NSCollectionViewLayout'
100 | - (instancetype)initWithSectionProvider:(NSCollectionViewCompositionalLayoutSectionProvider)sectionProvider configuration:(NSCollectionViewCompositionalLayoutConfiguration*)configuration;
101 |
/Users/admin/builder/spi-builder-workspace/Sources/CompositionalLayoutBuilder/Layout Building Blocks/CompositionalLayout.swift:51:34: warning: main actor-isolated property 'scrollDirection' can not be mutated from a nonisolated context; this is an error in the Swift 6 language mode
47 |
48 | /// The axis that the content in the collection view layout scrolls along.
49 | public func scrollDirection(_ scrollDirection: ScrollDirection) -> Self {
| `- note: add '@MainActor' to make instance method 'scrollDirection' part of global actor 'MainActor'
50 | let new = self
51 | new.layout.configuration.scrollDirection = scrollDirection
| `- warning: main actor-isolated property 'scrollDirection' can not be mutated from a nonisolated context; this is an error in the Swift 6 language mode
52 | return new
53 | }
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.4.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSCollectionViewCompositionalLayout.h:87:43: note: mutation of this property is only permitted within the actor
85 | API_AVAILABLE(macos(10.15)) NS_SWIFT_UI_ACTOR
86 | @interface NSCollectionViewCompositionalLayoutConfiguration : NSObject<NSCopying>
87 | @property NSCollectionViewScrollDirection scrollDirection;
| `- note: mutation of this property is only permitted within the actor
88 | @property CGFloat interSectionSpacing;
89 | @property(copy) NSArray<NSCollectionLayoutBoundarySupplementaryItem*> *boundarySupplementaryItems;
/Users/admin/builder/spi-builder-workspace/Sources/CompositionalLayoutBuilder/Layout Building Blocks/CompositionalLayout.swift:51:20: warning: main actor-isolated property 'configuration' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
47 |
48 | /// The axis that the content in the collection view layout scrolls along.
49 | public func scrollDirection(_ scrollDirection: ScrollDirection) -> Self {
| `- note: add '@MainActor' to make instance method 'scrollDirection' part of global actor 'MainActor'
50 | let new = self
51 | new.layout.configuration.scrollDirection = scrollDirection
| `- warning: main actor-isolated property 'configuration' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
52 | return new
53 | }
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.4.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSCollectionViewCompositionalLayout.h:107:67: note: property declared here
105 | // Setting this property will invalidate the layout immediately to affect any changes
106 | // Note: any changes made to properites directly will have no effect.
107 | @property(copy) NSCollectionViewCompositionalLayoutConfiguration *configuration;
| `- note: property declared here
108 | @end
109 |
/Users/admin/builder/spi-builder-workspace/Sources/CompositionalLayoutBuilder/Layout Building Blocks/CompositionalLayout.swift:60:34: warning: main actor-isolated property 'interSectionSpacing' can not be mutated from a nonisolated context; this is an error in the Swift 6 language mode
56 |
57 | /// The amount of space between the sections in the layout.
58 | public func interSectionSpacing(_ interSectionSpacing: CGFloat) -> Self {
| `- note: add '@MainActor' to make instance method 'interSectionSpacing' part of global actor 'MainActor'
59 | let new = self
60 | new.layout.configuration.interSectionSpacing = interSectionSpacing
| `- warning: main actor-isolated property 'interSectionSpacing' can not be mutated from a nonisolated context; this is an error in the Swift 6 language mode
61 | return new
62 | }
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.4.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSCollectionViewCompositionalLayout.h:88:19: note: mutation of this property is only permitted within the actor
86 | @interface NSCollectionViewCompositionalLayoutConfiguration : NSObject<NSCopying>
87 | @property NSCollectionViewScrollDirection scrollDirection;
88 | @property CGFloat interSectionSpacing;
| `- note: mutation of this property is only permitted within the actor
89 | @property(copy) NSArray<NSCollectionLayoutBoundarySupplementaryItem*> *boundarySupplementaryItems;
90 | @end
/Users/admin/builder/spi-builder-workspace/Sources/CompositionalLayoutBuilder/Layout Building Blocks/CompositionalLayout.swift:60:20: warning: main actor-isolated property 'configuration' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
56 |
57 | /// The amount of space between the sections in the layout.
58 | public func interSectionSpacing(_ interSectionSpacing: CGFloat) -> Self {
| `- note: add '@MainActor' to make instance method 'interSectionSpacing' part of global actor 'MainActor'
59 | let new = self
60 | new.layout.configuration.interSectionSpacing = interSectionSpacing
| `- warning: main actor-isolated property 'configuration' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
61 | return new
62 | }
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.4.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSCollectionViewCompositionalLayout.h:107:67: note: property declared here
105 | // Setting this property will invalidate the layout immediately to affect any changes
106 | // Note: any changes made to properites directly will have no effect.
107 | @property(copy) NSCollectionViewCompositionalLayoutConfiguration *configuration;
| `- note: property declared here
108 | @end
109 |
/Users/admin/builder/spi-builder-workspace/Sources/CompositionalLayoutBuilder/Layout Building Blocks/CompositionalLayout.swift:85:34: warning: main actor-isolated property 'boundarySupplementaryItems' can not be mutated from a nonisolated context; this is an error in the Swift 6 language mode
79 |
80 | /// An array of the supplementary items that are associated with the boundary edges of the entire layout, such as global headers and footers.
81 | public func boundarySupplementaryItems(
| `- note: add '@MainActor' to make instance method 'boundarySupplementaryItems' part of global actor 'MainActor'
82 | _ boundarySupplementaryItems: [NSCollectionLayoutBoundarySupplementaryItem]
83 | ) -> Self {
84 | let new = self
85 | new.layout.configuration.boundarySupplementaryItems = boundarySupplementaryItems
| `- warning: main actor-isolated property 'boundarySupplementaryItems' can not be mutated from a nonisolated context; this is an error in the Swift 6 language mode
86 | return new
87 | }
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.4.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSCollectionViewCompositionalLayout.h:89:72: note: mutation of this property is only permitted within the actor
87 | @property NSCollectionViewScrollDirection scrollDirection;
88 | @property CGFloat interSectionSpacing;
89 | @property(copy) NSArray<NSCollectionLayoutBoundarySupplementaryItem*> *boundarySupplementaryItems;
| `- note: mutation of this property is only permitted within the actor
90 | @end
91 |
/Users/admin/builder/spi-builder-workspace/Sources/CompositionalLayoutBuilder/Layout Building Blocks/CompositionalLayout.swift:85:20: warning: main actor-isolated property 'configuration' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
79 |
80 | /// An array of the supplementary items that are associated with the boundary edges of the entire layout, such as global headers and footers.
81 | public func boundarySupplementaryItems(
| `- note: add '@MainActor' to make instance method 'boundarySupplementaryItems' part of global actor 'MainActor'
82 | _ boundarySupplementaryItems: [NSCollectionLayoutBoundarySupplementaryItem]
83 | ) -> Self {
84 | let new = self
85 | new.layout.configuration.boundarySupplementaryItems = boundarySupplementaryItems
| `- warning: main actor-isolated property 'configuration' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
86 | return new
87 | }
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.4.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSCollectionViewCompositionalLayout.h:107:67: note: property declared here
105 | // Setting this property will invalidate the layout immediately to affect any changes
106 | // Note: any changes made to properites directly will have no effect.
107 | @property(copy) NSCollectionViewCompositionalLayoutConfiguration *configuration;
| `- note: property declared here
108 | @end
109 |
[9/12] Compiling CompositionalLayoutBuilder CompositionalLayoutBuilder.swift
[10/12] Compiling CompositionalLayoutBuilder CompositionalItem.swift
/Users/admin/builder/spi-builder-workspace/Sources/CompositionalLayoutBuilder/Layout Building Blocks/CompositionalItem.swift:20:22: warning: call to main actor-isolated initializer 'init(layoutSize:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
18 | height: NSCollectionLayoutDimension
19 | ) {
20 | self.item = .init(layoutSize: .init(widthDimension: width, heightDimension: height))
| `- warning: call to main actor-isolated initializer 'init(layoutSize:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
21 | }
22 |
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.4.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSCollectionViewCompositionalLayout.h:162:1: note: calls to initializer 'init(layoutSize:)' from outside of its actor context are implicitly asynchronous
160 | API_AVAILABLE(macos(10.15)) NS_SWIFT_UI_ACTOR
161 | @interface NSCollectionLayoutItem : NSObject<NSCopying>
162 | + (instancetype)itemWithLayoutSize:(NSCollectionLayoutSize*)layoutSize;
| `- note: calls to initializer 'init(layoutSize:)' from outside of its actor context are implicitly asynchronous
163 | + (instancetype)itemWithLayoutSize:(NSCollectionLayoutSize*)layoutSize supplementaryItems:(NSArray<NSCollectionLayoutSupplementaryItem*>*)supplementaryItems;
164 | - (instancetype)init NS_UNAVAILABLE;
/Users/admin/builder/spi-builder-workspace/Sources/CompositionalLayoutBuilder/Layout Building Blocks/CompositionalItem.swift:20:40: warning: call to main actor-isolated initializer 'init(widthDimension:heightDimension:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
18 | height: NSCollectionLayoutDimension
19 | ) {
20 | self.item = .init(layoutSize: .init(widthDimension: width, heightDimension: height))
| `- warning: call to main actor-isolated initializer 'init(widthDimension:heightDimension:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
21 | }
22 |
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.4.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSCollectionViewCompositionalLayout.h:323:1: note: calls to initializer 'init(widthDimension:heightDimension:)' from outside of its actor context are implicitly asynchronous
321 | API_AVAILABLE(macos(10.15)) NS_SWIFT_UI_ACTOR
322 | @interface NSCollectionLayoutSize : NSObject<NSCopying>
323 | + (instancetype)sizeWithWidthDimension:(NSCollectionLayoutDimension*)width heightDimension:(NSCollectionLayoutDimension*)height;
| `- note: calls to initializer 'init(widthDimension:heightDimension:)' from outside of its actor context are implicitly asynchronous
324 | - (instancetype)init NS_UNAVAILABLE;
325 | + (instancetype)new NS_UNAVAILABLE;
/Users/admin/builder/spi-builder-workspace/Sources/CompositionalLayoutBuilder/Layout Building Blocks/CompositionalItem.swift:38:18: warning: main actor-isolated property 'edgeSpacing' can not be mutated from a nonisolated context; this is an error in the Swift 6 language mode
34 | ///
35 | /// For more details, see: [edgeSpacing](https://developer.apple.com/documentation/uikit/nscollectionlayoutitem/3199085-edgespacing)
36 | public func edgeSpacing(_ spacing: NSCollectionLayoutEdgeSpacing) -> Self {
| `- note: add '@MainActor' to make instance method 'edgeSpacing' part of global actor 'MainActor'
37 | let new = self
38 | new.item.edgeSpacing = spacing
| `- warning: main actor-isolated property 'edgeSpacing' can not be mutated from a nonisolated context; this is an error in the Swift 6 language mode
39 | return new
40 | }
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.4.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSCollectionViewCompositionalLayout.h:208:57: note: mutation of this property is only permitted within the actor
206 | // evenly align items among available layout space.
207 |
208 | @property(copy,nullable) NSCollectionLayoutEdgeSpacing *edgeSpacing;
| `- note: mutation of this property is only permitted within the actor
209 |
210 | @property(readonly) NSCollectionLayoutSize *layoutSize;
/Users/admin/builder/spi-builder-workspace/Sources/CompositionalLayoutBuilder/Layout Building Blocks/CompositionalItem.swift:47:18: warning: main actor-isolated property 'contentInsets' can not be mutated from a nonisolated context; this is an error in the Swift 6 language mode
43 | ///
44 | /// For more details, see: [contentInsets](https://developer.apple.com/documentation/uikit/nscollectionlayoutitem/3199084-contentinsets)
45 | public func contentInsets(_ insets: EdgeInsets) -> Self {
| `- note: add '@MainActor' to make instance method 'contentInsets' part of global actor 'MainActor'
46 | let new = self
47 | new.item.contentInsets = .init(backport: insets)
| `- warning: main actor-isolated property 'contentInsets' can not be mutated from a nonisolated context; this is an error in the Swift 6 language mode
48 | return new
49 | }
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.4.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSCollectionViewCompositionalLayout.h:182:35: note: mutation of this property is only permitted within the actor
180 | // Note: contentInsets are ignored for items with .estimated dimension(s)
181 |
182 | @property NSDirectionalEdgeInsets contentInsets;
| `- note: mutation of this property is only permitted within the actor
183 |
184 | // +--------+
[11/12] Compiling CompositionalLayoutBuilder CompositionalSection.swift
/Users/admin/builder/spi-builder-workspace/Sources/CompositionalLayoutBuilder/Layout Building Blocks/CompositionalSection.swift:29:25: warning: call to main actor-isolated initializer 'init(group:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
27 |
28 | public init(group: @escaping () -> CompositionalGroup) {
29 | self.section = .init(group: group().group)
| `- warning: call to main actor-isolated initializer 'init(group:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
30 | }
31 |
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.4.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSCollectionViewCompositionalLayout.h:136:1: note: calls to initializer 'init(group:)' from outside of its actor context are implicitly asynchronous
134 | API_AVAILABLE(macos(10.15)) NS_SWIFT_UI_ACTOR
135 | @interface NSCollectionLayoutSection : NSObject<NSCopying>
136 | + (instancetype)sectionWithGroup:(NSCollectionLayoutGroup*)group;
| `- note: calls to initializer 'init(group:)' from outside of its actor context are implicitly asynchronous
137 | - (instancetype)init NS_UNAVAILABLE;
138 | + (instancetype)new NS_UNAVAILABLE;
/Users/admin/builder/spi-builder-workspace/Sources/CompositionalLayoutBuilder/Layout Building Blocks/CompositionalSection.swift:39:21: warning: main actor-isolated property 'orthogonalScrollingBehavior' can not be mutated from a nonisolated context; this is an error in the Swift 6 language mode
35 | ///
36 | /// For more details, see: [orthogonalScrollingBehavior](https://developer.apple.com/documentation/uikit/nscollectionlayoutsection/3199094-orthogonalscrollingbehavior)
37 | public func orthogonalScrollingBehavior(_ behavior: OrthogonalScrollingBehavior) -> Self {
| `- note: add '@MainActor' to make instance method 'orthogonalScrollingBehavior' part of global actor 'MainActor'
38 | let new = self
39 | new.section.orthogonalScrollingBehavior = behavior
| `- warning: main actor-isolated property 'orthogonalScrollingBehavior' can not be mutated from a nonisolated context; this is an error in the Swift 6 language mode
40 | return new
41 | }
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.4.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSCollectionViewCompositionalLayout.h:144:64: note: mutation of this property is only permitted within the actor
142 |
143 | // default is .none
144 | @property NSCollectionLayoutSectionOrthogonalScrollingBehavior orthogonalScrollingBehavior;
| `- note: mutation of this property is only permitted within the actor
145 |
146 | // Supplementaries associated with the boundary edges of the section
/Users/admin/builder/spi-builder-workspace/Sources/CompositionalLayoutBuilder/Layout Building Blocks/CompositionalSection.swift:62:21: warning: main actor-isolated property 'interGroupSpacing' can not be mutated from a nonisolated context; this is an error in the Swift 6 language mode
58 |
59 | /// The amount of space between the groups in the section.
60 | public func interItemSpacing(_ spacing: CGFloat) -> Self {
| `- note: add '@MainActor' to make instance method 'interItemSpacing' part of global actor 'MainActor'
61 | let new = self
62 | new.section.interGroupSpacing = spacing
| `- warning: main actor-isolated property 'interGroupSpacing' can not be mutated from a nonisolated context; this is an error in the Swift 6 language mode
63 | return new
64 | }
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.4.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSCollectionViewCompositionalLayout.h:141:19: note: mutation of this property is only permitted within the actor
139 |
140 | @property NSDirectionalEdgeInsets contentInsets;
141 | @property CGFloat interGroupSpacing;
| `- note: mutation of this property is only permitted within the actor
142 |
143 | // default is .none
/Users/admin/builder/spi-builder-workspace/Sources/CompositionalLayoutBuilder/Layout Building Blocks/CompositionalSection.swift:69:21: warning: main actor-isolated property 'contentInsets' can not be mutated from a nonisolated context; this is an error in the Swift 6 language mode
65 |
66 | /// The amount of space between the content of the section and its boundaries.
67 | public func contentInsets(_ insets: EdgeInsets) -> Self {
| `- note: add '@MainActor' to make instance method 'contentInsets' part of global actor 'MainActor'
68 | let new = self
69 | new.section.contentInsets = .init(backport: insets)
| `- warning: main actor-isolated property 'contentInsets' can not be mutated from a nonisolated context; this is an error in the Swift 6 language mode
70 | return new
71 | }
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.4.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSCollectionViewCompositionalLayout.h:140:35: note: mutation of this property is only permitted within the actor
138 | + (instancetype)new NS_UNAVAILABLE;
139 |
140 | @property NSDirectionalEdgeInsets contentInsets;
| `- note: mutation of this property is only permitted within the actor
141 | @property CGFloat interGroupSpacing;
142 |
/Users/admin/builder/spi-builder-workspace/Sources/CompositionalLayoutBuilder/Layout Building Blocks/CompositionalSection.swift:116:21: warning: main actor-isolated property 'visibleItemsInvalidationHandler' can not be mutated from a nonisolated context; this is an error in the Swift 6 language mode
110 | /// For more details, see: [contentInsetsReference](https://developer.apple.com/documentation/uikit/nscollectionlayoutitem/3199084-contentinsets)
111 | @available(iOS 14, macCatalyst 14, tvOS 14, visionOS 1, *)
112 | public func visibleItemsInvalidationHandler(
| `- note: add '@MainActor' to make instance method 'visibleItemsInvalidationHandler' part of global actor 'MainActor'
113 | _ handler: NSCollectionLayoutSectionVisibleItemsInvalidationHandler?
114 | ) -> Self {
115 | let new = self
116 | new.section.visibleItemsInvalidationHandler = handler
| `- warning: main actor-isolated property 'visibleItemsInvalidationHandler' can not be mutated from a nonisolated context; this is an error in the Swift 6 language mode
117 | return new
118 | }
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.4.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSCollectionViewCompositionalLayout.h:153:83: note: mutation of this property is only permitted within the actor
151 |
152 | // Called for each layout pass to allow modification of item properties right before they are displayed.
153 | @property(copy,nullable) NSCollectionLayoutSectionVisibleItemsInvalidationHandler visibleItemsInvalidationHandler;
| `- note: mutation of this property is only permitted within the actor
154 |
155 | // decoration views anchored to the section's geometry (e.g. background decoration view)
[12/12] Compiling CompositionalLayoutBuilder CollectionLayoutGroupBuilder.swift
Build complete! (10.47s)
Build complete.
{
"dependencies" : [
],
"manifest_display_name" : "CompositionalLayoutBuilder",
"name" : "CompositionalLayoutBuilder",
"path" : "/Users/admin/builder/spi-builder-workspace",
"platforms" : [
{
"name" : "ios",
"version" : "13.0"
},
{
"name" : "maccatalyst",
"version" : "13.0"
},
{
"name" : "macos",
"version" : "10.15"
},
{
"name" : "tvos",
"version" : "13.0"
}
],
"products" : [
{
"name" : "CompositionalLayoutBuilder",
"targets" : [
"CompositionalLayoutBuilder"
],
"type" : {
"library" : [
"automatic"
]
}
}
],
"targets" : [
{
"c99name" : "CompositionalLayoutBuilderTests",
"module_type" : "SwiftTarget",
"name" : "CompositionalLayoutBuilderTests",
"path" : "Tests/CompositionalLayoutBuilderTests",
"sources" : [
"CompositionalLayoutBuilderTests.swift"
],
"target_dependencies" : [
"CompositionalLayoutBuilder"
],
"type" : "test"
},
{
"c99name" : "CompositionalLayoutBuilder",
"module_type" : "SwiftTarget",
"name" : "CompositionalLayoutBuilder",
"path" : "Sources/CompositionalLayoutBuilder",
"product_memberships" : [
"CompositionalLayoutBuilder"
],
"sources" : [
"Builders/CollectionLayoutGroupBuilder.swift",
"Builders/CompositionalLayoutBuilder.swift",
"Internal Helpers/NSDirectionalEdgeInsets+Backport.swift",
"Layout Building Blocks/CompositionalGroup.swift",
"Layout Building Blocks/CompositionalItem.swift",
"Layout Building Blocks/CompositionalLayout.swift",
"Layout Building Blocks/CompositionalSection.swift",
"Public Helpers/UICollectionView+Extensions.swift",
"Public Helpers/UICollectionViewController+Extensions.swift"
],
"type" : "library"
}
],
"tools_version" : "5.7"
}
Done.