Build Information
Successful build of CompositionalLayoutDSL, reference v0.2.0 (3b1c5a
), with Swift 6.1 for macOS (SPM) on 27 Apr 2025 21:59:56 UTC.
Swift 6 data race errors: 17
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
70 |
71 | extension CustomGroup: BuildableGroup {
72 | func makeGroup() -> NSCollectionLayoutGroup {
| `- note: add '@MainActor' to make instance method 'makeGroup()' part of global actor 'MainActor'
73 | let size = NSCollectionLayoutSize(
74 | widthDimension: widthDimension,
75 | heightDimension: heightDimension
76 | )
77 | let group = NSCollectionLayoutGroup.custom(layoutSize: size, itemProvider: itemProvider)
| `- 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
78 | return group
79 | }
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/CompositionalLayoutDSL/Public/Group/HGroup.swift:30:17: warning: main actor-isolated default value in a nonisolated context; this is an error in the Swift 6 language mode
28 |
29 | /// Creates a group of the specified size, containing an array of items arranged in a horizontal line.
30 | public init(width: NSCollectionLayoutDimension = .fractionalWidth(1),
| `- warning: main actor-isolated default value in a nonisolated context; this is an error in the Swift 6 language mode
31 | height: NSCollectionLayoutDimension = .fractionalHeight(1),
32 | @LayoutItemBuilder subItems: () -> [LayoutItem]) {
/Users/admin/builder/spi-builder-workspace/Sources/CompositionalLayoutDSL/Public/Group/HGroup.swift:31:17: warning: main actor-isolated default value in a nonisolated context; this is an error in the Swift 6 language mode
29 | /// Creates a group of the specified size, containing an array of items arranged in a horizontal line.
30 | public init(width: NSCollectionLayoutDimension = .fractionalWidth(1),
31 | height: NSCollectionLayoutDimension = .fractionalHeight(1),
| `- warning: main actor-isolated default value in a nonisolated context; this is an error in the Swift 6 language mode
32 | @LayoutItemBuilder subItems: () -> [LayoutItem]) {
33 | self.widthDimension = width
/Users/admin/builder/spi-builder-workspace/Sources/CompositionalLayoutDSL/Public/Group/HGroup.swift:48:17: warning: main actor-isolated default value in a nonisolated context; this is an error in the Swift 6 language mode
46 | /// Creates a group of the specified size, containing an array of equally sized items arranged
47 | /// in a horizontal line up to the number specified by count.
48 | public init(width: NSCollectionLayoutDimension = .fractionalWidth(1),
| `- warning: main actor-isolated default value in a nonisolated context; this is an error in the Swift 6 language mode
49 | height: NSCollectionLayoutDimension = .fractionalHeight(1),
50 | count: Int,
/Users/admin/builder/spi-builder-workspace/Sources/CompositionalLayoutDSL/Public/Group/HGroup.swift:49:17: warning: main actor-isolated default value in a nonisolated context; this is an error in the Swift 6 language mode
47 | /// in a horizontal line up to the number specified by count.
48 | public init(width: NSCollectionLayoutDimension = .fractionalWidth(1),
49 | height: NSCollectionLayoutDimension = .fractionalHeight(1),
| `- warning: main actor-isolated default value in a nonisolated context; this is an error in the Swift 6 language mode
50 | count: Int,
51 | subItem: () -> LayoutItem) {
/Users/admin/builder/spi-builder-workspace/Sources/CompositionalLayoutDSL/Public/Group/HGroup.swift:41:36: warning: main actor-isolated property 'widthDimension' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
39 | public init(size: NSCollectionLayoutSize,
40 | @LayoutItemBuilder subItems: () -> [LayoutItem]) {
41 | self.widthDimension = size.widthDimension
| `- warning: main actor-isolated property 'widthDimension' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
42 | self.heightDimension = size.heightDimension
43 | self.subItems = .list(subItems())
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.4.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSCollectionViewCompositionalLayout.h:327:50: note: property declared here
325 | + (instancetype)new NS_UNAVAILABLE;
326 |
327 | @property(readonly) NSCollectionLayoutDimension *widthDimension;
| `- note: property declared here
328 | @property(readonly) NSCollectionLayoutDimension *heightDimension;
329 | @end
/Users/admin/builder/spi-builder-workspace/Sources/CompositionalLayoutDSL/Public/Group/HGroup.swift:42:37: warning: main actor-isolated property 'heightDimension' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
40 | @LayoutItemBuilder subItems: () -> [LayoutItem]) {
41 | self.widthDimension = size.widthDimension
42 | self.heightDimension = size.heightDimension
| `- warning: main actor-isolated property 'heightDimension' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
43 | self.subItems = .list(subItems())
44 | }
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.4.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSCollectionViewCompositionalLayout.h:328:50: note: property declared here
326 |
327 | @property(readonly) NSCollectionLayoutDimension *widthDimension;
328 | @property(readonly) NSCollectionLayoutDimension *heightDimension;
| `- note: property declared here
329 | @end
330 |
/Users/admin/builder/spi-builder-workspace/Sources/CompositionalLayoutDSL/Public/Group/HGroup.swift:62:36: warning: main actor-isolated property 'widthDimension' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
60 | count: Int,
61 | subItem: () -> LayoutItem) {
62 | self.widthDimension = size.widthDimension
| `- warning: main actor-isolated property 'widthDimension' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
63 | self.heightDimension = size.heightDimension
64 | self.subItems = .repeated(subItem(), count: count)
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.4.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSCollectionViewCompositionalLayout.h:327:50: note: property declared here
325 | + (instancetype)new NS_UNAVAILABLE;
326 |
327 | @property(readonly) NSCollectionLayoutDimension *widthDimension;
| `- note: property declared here
328 | @property(readonly) NSCollectionLayoutDimension *heightDimension;
329 | @end
/Users/admin/builder/spi-builder-workspace/Sources/CompositionalLayoutDSL/Public/Group/HGroup.swift:63:37: warning: main actor-isolated property 'heightDimension' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
61 | subItem: () -> LayoutItem) {
62 | self.widthDimension = size.widthDimension
63 | self.heightDimension = size.heightDimension
| `- warning: main actor-isolated property 'heightDimension' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
64 | self.subItems = .repeated(subItem(), count: count)
65 | }
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.4.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSCollectionViewCompositionalLayout.h:328:50: note: property declared here
326 |
327 | @property(readonly) NSCollectionLayoutDimension *widthDimension;
328 | @property(readonly) NSCollectionLayoutDimension *heightDimension;
| `- note: property declared here
329 | @end
330 |
/Users/admin/builder/spi-builder-workspace/Sources/CompositionalLayoutDSL/Public/Group/HGroup.swift:69:27: warning: call to main actor-isolated class method 'fractionalWidth' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
67 | /// Creates a group containing an array of items arranged in a horizontal line.
68 | public init(@LayoutItemBuilder subItems: () -> [LayoutItem]) {
69 | self.init(width: .fractionalWidth(1), height: .fractionalHeight(1), subItems: subItems)
| `- warning: call to main actor-isolated class method 'fractionalWidth' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
70 | }
71 |
AppKit.NSCollectionLayoutDimension.fractionalWidth:2:28: note: calls to class method 'fractionalWidth' from outside of its actor context are implicitly asynchronous
1 | class NSCollectionLayoutDimension {
2 | @MainActor open class func fractionalWidth(_ fractionalWidth: CGFloat) -> Self}
| `- note: calls to class method 'fractionalWidth' from outside of its actor context are implicitly asynchronous
3 |
/Users/admin/builder/spi-builder-workspace/Sources/CompositionalLayoutDSL/Public/Group/HGroup.swift:69:56: warning: call to main actor-isolated class method 'fractionalHeight' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
67 | /// Creates a group containing an array of items arranged in a horizontal line.
68 | public init(@LayoutItemBuilder subItems: () -> [LayoutItem]) {
69 | self.init(width: .fractionalWidth(1), height: .fractionalHeight(1), subItems: subItems)
| `- warning: call to main actor-isolated class method 'fractionalHeight' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
70 | }
71 |
AppKit.NSCollectionLayoutDimension.fractionalHeight:2:28: note: calls to class method 'fractionalHeight' from outside of its actor context are implicitly asynchronous
1 | class NSCollectionLayoutDimension {
2 | @MainActor open class func fractionalHeight(_ fractionalHeight: CGFloat) -> Self}
| `- note: calls to class method 'fractionalHeight' from outside of its actor context are implicitly asynchronous
3 |
/Users/admin/builder/spi-builder-workspace/Sources/CompositionalLayoutDSL/Public/Group/HGroup.swift:97:20: 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
94 |
95 | extension HGroup: BuildableGroup {
96 | func makeGroup() -> NSCollectionLayoutGroup {
| `- note: add '@MainActor' to make instance method 'makeGroup()' part of global actor 'MainActor'
97 | let size = NSCollectionLayoutSize(
| `- 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
98 | widthDimension: widthDimension,
99 | heightDimension: heightDimension
/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/CompositionalLayoutDSL/Public/Group/HGroup.swift:104:45: 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
94 |
95 | extension HGroup: BuildableGroup {
96 | func makeGroup() -> NSCollectionLayoutGroup {
| `- note: add '@MainActor' to make instance method 'makeGroup()' part of global actor 'MainActor'
97 | let size = NSCollectionLayoutSize(
98 | widthDimension: widthDimension,
:
102 | switch subItems {
103 | case let .list(items):
104 | group = NSCollectionLayoutGroup.horizontal(
| `- 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
105 | layoutSize: size,
106 | subitems: items.map(ItemBuilder.make(from:))
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/CompositionalLayoutDSL/Public/Group/HGroup.swift:109:45: warning: call to main actor-isolated class method 'horizontal(layoutSize:subitem:count:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
94 |
95 | extension HGroup: BuildableGroup {
96 | func makeGroup() -> NSCollectionLayoutGroup {
| `- note: add '@MainActor' to make instance method 'makeGroup()' part of global actor 'MainActor'
97 | let size = NSCollectionLayoutSize(
98 | widthDimension: widthDimension,
:
107 | )
108 | case let .repeated(item, count):
109 | group = NSCollectionLayoutGroup.horizontal(
| `- warning: call to main actor-isolated class method 'horizontal(layoutSize:subitem:count:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
110 | layoutSize: size,
111 | subitem: ItemBuilder.make(from: item),
AppKit.NSCollectionLayoutGroup.horizontal:2:28: note: calls to class method 'horizontal(layoutSize:subitem:count:)' from outside of its actor context are implicitly asynchronous
1 | class NSCollectionLayoutGroup {
2 | @MainActor open class func horizontal(layoutSize: NSCollectionLayoutSize, subitem: NSCollectionLayoutItem, count: Int) -> Self}
| |- note: calls to class method 'horizontal(layoutSize:subitem:count:)' 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/CompositionalLayoutDSL/Public/Group/CustomGroup.swift:77:45: 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
75 | heightDimension: heightDimension
76 | )
77 | let group = NSCollectionLayoutGroup.custom(layoutSize: size, itemProvider: itemProvider)
| |- 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
78 | return group
79 | }
[23/42] Compiling CompositionalLayoutDSL ModifiedLayoutConfiguration.swift
[24/42] Compiling CompositionalLayoutDSL ModifiedLayoutDecorationItem.swift
[25/42] Compiling CompositionalLayoutDSL ModifiedLayoutGroup.swift
[26/42] Compiling CompositionalLayoutDSL ModifiedLayoutItem.swift
[27/42] Compiling CompositionalLayoutDSL CompositionalLayout.swift
/Users/admin/builder/spi-builder-workspace/Sources/CompositionalLayoutDSL/Public/CompositionalLayout.swift:121:16: warning: call to main actor-isolated initializer 'init(sectionProvider:configuration:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
118 | extension CompositionalLayout {
119 | #if os(macOS)
120 | func makeCollectionViewCompositionalLayout() -> NSCollectionViewCompositionalLayout {
| `- note: add '@MainActor' to make instance method 'makeCollectionViewCompositionalLayout()' part of global actor 'MainActor'
121 | return NSCollectionViewCompositionalLayout(
| `- warning: call to main actor-isolated initializer 'init(sectionProvider:configuration:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
122 | sectionProvider: { section, environment in
123 | return sectionBuilder(section, environment).map(SectionBuilder.make(from:))
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.4.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSCollectionViewCompositionalLayout.h:100:1: note: calls to initializer 'init(sectionProvider:configuration:)' from outside of its actor context are implicitly asynchronous
98 |
99 | - (instancetype)initWithSectionProvider:(NSCollectionViewCompositionalLayoutSectionProvider)sectionProvider;
100 | - (instancetype)initWithSectionProvider:(NSCollectionViewCompositionalLayoutSectionProvider)sectionProvider configuration:(NSCollectionViewCompositionalLayoutConfiguration*)configuration;
| |- note: calls to initializer 'init(sectionProvider:configuration:)' from outside of its actor context are implicitly asynchronous
| `- note: main actor isolation inferred from inheritance from class 'NSCollectionViewLayout'
101 |
102 | - (instancetype)init NS_UNAVAILABLE;
/Users/admin/builder/spi-builder-workspace/Sources/CompositionalLayoutDSL/Public/CompositionalLayoutDSL.swift:30:12: warning: call to main actor-isolated initializer 'init(section:configuration:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
24 | #if os(macOS)
25 | /// Converts a layout configuration and a layout section into an `NSCollectionViewCompositionalLayout`
26 | public func LayoutBuilder(
| `- note: add '@MainActor' to make global function 'LayoutBuilder(configuration:layoutSection:)' part of global actor 'MainActor'
27 | configuration: LayoutConfiguration = Configuration(),
28 | layoutSection: () -> LayoutSection
29 | ) -> NSCollectionViewCompositionalLayout {
30 | return NSCollectionViewCompositionalLayout(
| `- warning: call to main actor-isolated initializer 'init(section:configuration:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
31 | section: SectionBuilder.make(from: layoutSection()),
32 | configuration: ConfigurationBuilder.make(from: configuration)
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.4.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSCollectionViewCompositionalLayout.h:97:1: note: calls to initializer 'init(section:configuration:)' from outside of its actor context are implicitly asynchronous
95 | @interface NSCollectionViewCompositionalLayout : NSCollectionViewLayout
96 | - (instancetype)initWithSection:(NSCollectionLayoutSection*)section;
97 | - (instancetype)initWithSection:(NSCollectionLayoutSection*)section configuration:(NSCollectionViewCompositionalLayoutConfiguration*)configuration;
| |- note: calls to initializer 'init(section:configuration:)' from outside of its actor context are implicitly asynchronous
| `- note: main actor isolation inferred from inheritance from class 'NSCollectionViewLayout'
98 |
99 | - (instancetype)initWithSectionProvider:(NSCollectionViewCompositionalLayoutSectionProvider)sectionProvider;
/Users/admin/builder/spi-builder-workspace/Sources/CompositionalLayoutDSL/Public/Configuration/Configuration.swift:32:16: warning: call to main actor-isolated initializer 'init()' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
28 |
29 | extension Configuration: BuildableConfiguration {
30 | func makeConfiguration() -> ConfigurationBuilder.TransformedType {
| `- note: add '@MainActor' to make instance method 'makeConfiguration()' part of global actor 'MainActor'
31 | #if os(macOS)
32 | return NSCollectionViewCompositionalLayoutConfiguration()
| `- warning: call to main actor-isolated initializer 'init()' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
33 | #else
34 | return UICollectionViewCompositionalLayoutConfiguration()
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.4.sdk/usr/include/objc/NSObject.h:66:1: note: calls to initializer 'init()' from outside of its actor context are implicitly asynchronous
64 |
65 | + (void)initialize;
66 | - (instancetype)init
| `- note: calls to initializer 'init()' from outside of its actor context are implicitly asynchronous
67 | #if NS_ENFORCE_NSOBJECT_DESIGNATED_INITIALIZER
68 | NS_DESIGNATED_INITIALIZER
/Users/admin/builder/spi-builder-workspace/Sources/CompositionalLayoutDSL/Public/Configuration/LayoutConfiguration.swift:49:51: warning: cannot form key path to main actor-isolated property 'scrollDirection'; this is an error in the Swift 6 language mode
47 | _ scrollDirection: NSCollectionView.ScrollDirection
48 | ) -> LayoutConfiguration {
49 | valueModifier(scrollDirection, keyPath: \.scrollDirection)
| `- warning: cannot form key path to main actor-isolated property 'scrollDirection'; this is an error in the Swift 6 language mode
50 | }
51 | #else
/Users/admin/builder/spi-builder-workspace/Sources/CompositionalLayoutDSL/Public/Configuration/LayoutConfiguration.swift:68:55: warning: cannot form key path to main actor-isolated property 'interSectionSpacing'; this is an error in the Swift 6 language mode
66 | @warn_unqualified_access
67 | public func interSectionSpacing(_ interSectionSpacing: CGFloat) -> LayoutConfiguration {
68 | valueModifier(interSectionSpacing, keyPath: \.interSectionSpacing)
| `- warning: cannot form key path to main actor-isolated property 'interSectionSpacing'; this is an error in the Swift 6 language mode
69 | }
70 |
/Users/admin/builder/spi-builder-workspace/Sources/CompositionalLayoutDSL/Public/Configuration/LayoutConfiguration.swift:81:16: 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 | .map(BoundarySupplementaryItemBuilder.make(from:))
80 | return valueModifier {
81 | $0.boundarySupplementaryItems.append(contentsOf: 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
82 | }
83 | }
/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/CompositionalLayoutDSL/Public/CompositionalLayout.swift:121:16: warning: sending value of non-Sendable type '(Int, any NSCollectionLayoutEnvironment) -> NSCollectionLayoutSection?' risks causing data races; this is an error in the Swift 6 language mode
119 | #if os(macOS)
120 | func makeCollectionViewCompositionalLayout() -> NSCollectionViewCompositionalLayout {
121 | return NSCollectionViewCompositionalLayout(
| |- warning: sending value of non-Sendable type '(Int, any NSCollectionLayoutEnvironment) -> NSCollectionLayoutSection?' risks causing data races; this is an error in the Swift 6 language mode
| `- note: sending task-isolated value of non-Sendable type '(Int, any NSCollectionLayoutEnvironment) -> NSCollectionLayoutSection?' to main actor-isolated initializer 'init(sectionProvider:configuration:)' risks causing races in between task-isolated and main actor-isolated uses
122 | sectionProvider: { section, environment in
123 | return sectionBuilder(section, environment).map(SectionBuilder.make(from:))
[28/42] Compiling CompositionalLayoutDSL CompositionalLayoutDSL.swift
/Users/admin/builder/spi-builder-workspace/Sources/CompositionalLayoutDSL/Public/CompositionalLayout.swift:121:16: warning: call to main actor-isolated initializer 'init(sectionProvider:configuration:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
118 | extension CompositionalLayout {
119 | #if os(macOS)
120 | func makeCollectionViewCompositionalLayout() -> NSCollectionViewCompositionalLayout {
| `- note: add '@MainActor' to make instance method 'makeCollectionViewCompositionalLayout()' part of global actor 'MainActor'
121 | return NSCollectionViewCompositionalLayout(
| `- warning: call to main actor-isolated initializer 'init(sectionProvider:configuration:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
122 | sectionProvider: { section, environment in
123 | return sectionBuilder(section, environment).map(SectionBuilder.make(from:))
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.4.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSCollectionViewCompositionalLayout.h:100:1: note: calls to initializer 'init(sectionProvider:configuration:)' from outside of its actor context are implicitly asynchronous
98 |
99 | - (instancetype)initWithSectionProvider:(NSCollectionViewCompositionalLayoutSectionProvider)sectionProvider;
100 | - (instancetype)initWithSectionProvider:(NSCollectionViewCompositionalLayoutSectionProvider)sectionProvider configuration:(NSCollectionViewCompositionalLayoutConfiguration*)configuration;
| |- note: calls to initializer 'init(sectionProvider:configuration:)' from outside of its actor context are implicitly asynchronous
| `- note: main actor isolation inferred from inheritance from class 'NSCollectionViewLayout'
101 |
102 | - (instancetype)init NS_UNAVAILABLE;
/Users/admin/builder/spi-builder-workspace/Sources/CompositionalLayoutDSL/Public/CompositionalLayoutDSL.swift:30:12: warning: call to main actor-isolated initializer 'init(section:configuration:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
24 | #if os(macOS)
25 | /// Converts a layout configuration and a layout section into an `NSCollectionViewCompositionalLayout`
26 | public func LayoutBuilder(
| `- note: add '@MainActor' to make global function 'LayoutBuilder(configuration:layoutSection:)' part of global actor 'MainActor'
27 | configuration: LayoutConfiguration = Configuration(),
28 | layoutSection: () -> LayoutSection
29 | ) -> NSCollectionViewCompositionalLayout {
30 | return NSCollectionViewCompositionalLayout(
| `- warning: call to main actor-isolated initializer 'init(section:configuration:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
31 | section: SectionBuilder.make(from: layoutSection()),
32 | configuration: ConfigurationBuilder.make(from: configuration)
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.4.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSCollectionViewCompositionalLayout.h:97:1: note: calls to initializer 'init(section:configuration:)' from outside of its actor context are implicitly asynchronous
95 | @interface NSCollectionViewCompositionalLayout : NSCollectionViewLayout
96 | - (instancetype)initWithSection:(NSCollectionLayoutSection*)section;
97 | - (instancetype)initWithSection:(NSCollectionLayoutSection*)section configuration:(NSCollectionViewCompositionalLayoutConfiguration*)configuration;
| |- note: calls to initializer 'init(section:configuration:)' from outside of its actor context are implicitly asynchronous
| `- note: main actor isolation inferred from inheritance from class 'NSCollectionViewLayout'
98 |
99 | - (instancetype)initWithSectionProvider:(NSCollectionViewCompositionalLayoutSectionProvider)sectionProvider;
/Users/admin/builder/spi-builder-workspace/Sources/CompositionalLayoutDSL/Public/Configuration/Configuration.swift:32:16: warning: call to main actor-isolated initializer 'init()' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
28 |
29 | extension Configuration: BuildableConfiguration {
30 | func makeConfiguration() -> ConfigurationBuilder.TransformedType {
| `- note: add '@MainActor' to make instance method 'makeConfiguration()' part of global actor 'MainActor'
31 | #if os(macOS)
32 | return NSCollectionViewCompositionalLayoutConfiguration()
| `- warning: call to main actor-isolated initializer 'init()' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
33 | #else
34 | return UICollectionViewCompositionalLayoutConfiguration()
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.4.sdk/usr/include/objc/NSObject.h:66:1: note: calls to initializer 'init()' from outside of its actor context are implicitly asynchronous
64 |
65 | + (void)initialize;
66 | - (instancetype)init
| `- note: calls to initializer 'init()' from outside of its actor context are implicitly asynchronous
67 | #if NS_ENFORCE_NSOBJECT_DESIGNATED_INITIALIZER
68 | NS_DESIGNATED_INITIALIZER
/Users/admin/builder/spi-builder-workspace/Sources/CompositionalLayoutDSL/Public/Configuration/LayoutConfiguration.swift:49:51: warning: cannot form key path to main actor-isolated property 'scrollDirection'; this is an error in the Swift 6 language mode
47 | _ scrollDirection: NSCollectionView.ScrollDirection
48 | ) -> LayoutConfiguration {
49 | valueModifier(scrollDirection, keyPath: \.scrollDirection)
| `- warning: cannot form key path to main actor-isolated property 'scrollDirection'; this is an error in the Swift 6 language mode
50 | }
51 | #else
/Users/admin/builder/spi-builder-workspace/Sources/CompositionalLayoutDSL/Public/Configuration/LayoutConfiguration.swift:68:55: warning: cannot form key path to main actor-isolated property 'interSectionSpacing'; this is an error in the Swift 6 language mode
66 | @warn_unqualified_access
67 | public func interSectionSpacing(_ interSectionSpacing: CGFloat) -> LayoutConfiguration {
68 | valueModifier(interSectionSpacing, keyPath: \.interSectionSpacing)
| `- warning: cannot form key path to main actor-isolated property 'interSectionSpacing'; this is an error in the Swift 6 language mode
69 | }
70 |
/Users/admin/builder/spi-builder-workspace/Sources/CompositionalLayoutDSL/Public/Configuration/LayoutConfiguration.swift:81:16: 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 | .map(BoundarySupplementaryItemBuilder.make(from:))
80 | return valueModifier {
81 | $0.boundarySupplementaryItems.append(contentsOf: 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
82 | }
83 | }
/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/CompositionalLayoutDSL/Public/CompositionalLayout.swift:121:16: warning: sending value of non-Sendable type '(Int, any NSCollectionLayoutEnvironment) -> NSCollectionLayoutSection?' risks causing data races; this is an error in the Swift 6 language mode
119 | #if os(macOS)
120 | func makeCollectionViewCompositionalLayout() -> NSCollectionViewCompositionalLayout {
121 | return NSCollectionViewCompositionalLayout(
| |- warning: sending value of non-Sendable type '(Int, any NSCollectionLayoutEnvironment) -> NSCollectionLayoutSection?' risks causing data races; this is an error in the Swift 6 language mode
| `- note: sending task-isolated value of non-Sendable type '(Int, any NSCollectionLayoutEnvironment) -> NSCollectionLayoutSection?' to main actor-isolated initializer 'init(sectionProvider:configuration:)' risks causing races in between task-isolated and main actor-isolated uses
122 | sectionProvider: { section, environment in
123 | return sectionBuilder(section, environment).map(SectionBuilder.make(from:))
[29/42] Compiling CompositionalLayoutDSL Configuration.swift
/Users/admin/builder/spi-builder-workspace/Sources/CompositionalLayoutDSL/Public/CompositionalLayout.swift:121:16: warning: call to main actor-isolated initializer 'init(sectionProvider:configuration:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
118 | extension CompositionalLayout {
119 | #if os(macOS)
120 | func makeCollectionViewCompositionalLayout() -> NSCollectionViewCompositionalLayout {
| `- note: add '@MainActor' to make instance method 'makeCollectionViewCompositionalLayout()' part of global actor 'MainActor'
121 | return NSCollectionViewCompositionalLayout(
| `- warning: call to main actor-isolated initializer 'init(sectionProvider:configuration:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
122 | sectionProvider: { section, environment in
123 | return sectionBuilder(section, environment).map(SectionBuilder.make(from:))
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.4.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSCollectionViewCompositionalLayout.h:100:1: note: calls to initializer 'init(sectionProvider:configuration:)' from outside of its actor context are implicitly asynchronous
98 |
99 | - (instancetype)initWithSectionProvider:(NSCollectionViewCompositionalLayoutSectionProvider)sectionProvider;
100 | - (instancetype)initWithSectionProvider:(NSCollectionViewCompositionalLayoutSectionProvider)sectionProvider configuration:(NSCollectionViewCompositionalLayoutConfiguration*)configuration;
| |- note: calls to initializer 'init(sectionProvider:configuration:)' from outside of its actor context are implicitly asynchronous
| `- note: main actor isolation inferred from inheritance from class 'NSCollectionViewLayout'
101 |
102 | - (instancetype)init NS_UNAVAILABLE;
/Users/admin/builder/spi-builder-workspace/Sources/CompositionalLayoutDSL/Public/CompositionalLayoutDSL.swift:30:12: warning: call to main actor-isolated initializer 'init(section:configuration:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
24 | #if os(macOS)
25 | /// Converts a layout configuration and a layout section into an `NSCollectionViewCompositionalLayout`
26 | public func LayoutBuilder(
| `- note: add '@MainActor' to make global function 'LayoutBuilder(configuration:layoutSection:)' part of global actor 'MainActor'
27 | configuration: LayoutConfiguration = Configuration(),
28 | layoutSection: () -> LayoutSection
29 | ) -> NSCollectionViewCompositionalLayout {
30 | return NSCollectionViewCompositionalLayout(
| `- warning: call to main actor-isolated initializer 'init(section:configuration:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
31 | section: SectionBuilder.make(from: layoutSection()),
32 | configuration: ConfigurationBuilder.make(from: configuration)
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.4.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSCollectionViewCompositionalLayout.h:97:1: note: calls to initializer 'init(section:configuration:)' from outside of its actor context are implicitly asynchronous
95 | @interface NSCollectionViewCompositionalLayout : NSCollectionViewLayout
96 | - (instancetype)initWithSection:(NSCollectionLayoutSection*)section;
97 | - (instancetype)initWithSection:(NSCollectionLayoutSection*)section configuration:(NSCollectionViewCompositionalLayoutConfiguration*)configuration;
| |- note: calls to initializer 'init(section:configuration:)' from outside of its actor context are implicitly asynchronous
| `- note: main actor isolation inferred from inheritance from class 'NSCollectionViewLayout'
98 |
99 | - (instancetype)initWithSectionProvider:(NSCollectionViewCompositionalLayoutSectionProvider)sectionProvider;
/Users/admin/builder/spi-builder-workspace/Sources/CompositionalLayoutDSL/Public/Configuration/Configuration.swift:32:16: warning: call to main actor-isolated initializer 'init()' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
28 |
29 | extension Configuration: BuildableConfiguration {
30 | func makeConfiguration() -> ConfigurationBuilder.TransformedType {
| `- note: add '@MainActor' to make instance method 'makeConfiguration()' part of global actor 'MainActor'
31 | #if os(macOS)
32 | return NSCollectionViewCompositionalLayoutConfiguration()
| `- warning: call to main actor-isolated initializer 'init()' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
33 | #else
34 | return UICollectionViewCompositionalLayoutConfiguration()
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.4.sdk/usr/include/objc/NSObject.h:66:1: note: calls to initializer 'init()' from outside of its actor context are implicitly asynchronous
64 |
65 | + (void)initialize;
66 | - (instancetype)init
| `- note: calls to initializer 'init()' from outside of its actor context are implicitly asynchronous
67 | #if NS_ENFORCE_NSOBJECT_DESIGNATED_INITIALIZER
68 | NS_DESIGNATED_INITIALIZER
/Users/admin/builder/spi-builder-workspace/Sources/CompositionalLayoutDSL/Public/Configuration/LayoutConfiguration.swift:49:51: warning: cannot form key path to main actor-isolated property 'scrollDirection'; this is an error in the Swift 6 language mode
47 | _ scrollDirection: NSCollectionView.ScrollDirection
48 | ) -> LayoutConfiguration {
49 | valueModifier(scrollDirection, keyPath: \.scrollDirection)
| `- warning: cannot form key path to main actor-isolated property 'scrollDirection'; this is an error in the Swift 6 language mode
50 | }
51 | #else
/Users/admin/builder/spi-builder-workspace/Sources/CompositionalLayoutDSL/Public/Configuration/LayoutConfiguration.swift:68:55: warning: cannot form key path to main actor-isolated property 'interSectionSpacing'; this is an error in the Swift 6 language mode
66 | @warn_unqualified_access
67 | public func interSectionSpacing(_ interSectionSpacing: CGFloat) -> LayoutConfiguration {
68 | valueModifier(interSectionSpacing, keyPath: \.interSectionSpacing)
| `- warning: cannot form key path to main actor-isolated property 'interSectionSpacing'; this is an error in the Swift 6 language mode
69 | }
70 |
/Users/admin/builder/spi-builder-workspace/Sources/CompositionalLayoutDSL/Public/Configuration/LayoutConfiguration.swift:81:16: 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 | .map(BoundarySupplementaryItemBuilder.make(from:))
80 | return valueModifier {
81 | $0.boundarySupplementaryItems.append(contentsOf: 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
82 | }
83 | }
/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/CompositionalLayoutDSL/Public/CompositionalLayout.swift:121:16: warning: sending value of non-Sendable type '(Int, any NSCollectionLayoutEnvironment) -> NSCollectionLayoutSection?' risks causing data races; this is an error in the Swift 6 language mode
119 | #if os(macOS)
120 | func makeCollectionViewCompositionalLayout() -> NSCollectionViewCompositionalLayout {
121 | return NSCollectionViewCompositionalLayout(
| |- warning: sending value of non-Sendable type '(Int, any NSCollectionLayoutEnvironment) -> NSCollectionLayoutSection?' risks causing data races; this is an error in the Swift 6 language mode
| `- note: sending task-isolated value of non-Sendable type '(Int, any NSCollectionLayoutEnvironment) -> NSCollectionLayoutSection?' to main actor-isolated initializer 'init(sectionProvider:configuration:)' risks causing races in between task-isolated and main actor-isolated uses
122 | sectionProvider: { section, environment in
123 | return sectionBuilder(section, environment).map(SectionBuilder.make(from:))
[30/42] Compiling CompositionalLayoutDSL LayoutConfiguration.swift
/Users/admin/builder/spi-builder-workspace/Sources/CompositionalLayoutDSL/Public/CompositionalLayout.swift:121:16: warning: call to main actor-isolated initializer 'init(sectionProvider:configuration:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
118 | extension CompositionalLayout {
119 | #if os(macOS)
120 | func makeCollectionViewCompositionalLayout() -> NSCollectionViewCompositionalLayout {
| `- note: add '@MainActor' to make instance method 'makeCollectionViewCompositionalLayout()' part of global actor 'MainActor'
121 | return NSCollectionViewCompositionalLayout(
| `- warning: call to main actor-isolated initializer 'init(sectionProvider:configuration:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
122 | sectionProvider: { section, environment in
123 | return sectionBuilder(section, environment).map(SectionBuilder.make(from:))
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.4.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSCollectionViewCompositionalLayout.h:100:1: note: calls to initializer 'init(sectionProvider:configuration:)' from outside of its actor context are implicitly asynchronous
98 |
99 | - (instancetype)initWithSectionProvider:(NSCollectionViewCompositionalLayoutSectionProvider)sectionProvider;
100 | - (instancetype)initWithSectionProvider:(NSCollectionViewCompositionalLayoutSectionProvider)sectionProvider configuration:(NSCollectionViewCompositionalLayoutConfiguration*)configuration;
| |- note: calls to initializer 'init(sectionProvider:configuration:)' from outside of its actor context are implicitly asynchronous
| `- note: main actor isolation inferred from inheritance from class 'NSCollectionViewLayout'
101 |
102 | - (instancetype)init NS_UNAVAILABLE;
/Users/admin/builder/spi-builder-workspace/Sources/CompositionalLayoutDSL/Public/CompositionalLayoutDSL.swift:30:12: warning: call to main actor-isolated initializer 'init(section:configuration:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
24 | #if os(macOS)
25 | /// Converts a layout configuration and a layout section into an `NSCollectionViewCompositionalLayout`
26 | public func LayoutBuilder(
| `- note: add '@MainActor' to make global function 'LayoutBuilder(configuration:layoutSection:)' part of global actor 'MainActor'
27 | configuration: LayoutConfiguration = Configuration(),
28 | layoutSection: () -> LayoutSection
29 | ) -> NSCollectionViewCompositionalLayout {
30 | return NSCollectionViewCompositionalLayout(
| `- warning: call to main actor-isolated initializer 'init(section:configuration:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
31 | section: SectionBuilder.make(from: layoutSection()),
32 | configuration: ConfigurationBuilder.make(from: configuration)
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.4.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSCollectionViewCompositionalLayout.h:97:1: note: calls to initializer 'init(section:configuration:)' from outside of its actor context are implicitly asynchronous
95 | @interface NSCollectionViewCompositionalLayout : NSCollectionViewLayout
96 | - (instancetype)initWithSection:(NSCollectionLayoutSection*)section;
97 | - (instancetype)initWithSection:(NSCollectionLayoutSection*)section configuration:(NSCollectionViewCompositionalLayoutConfiguration*)configuration;
| |- note: calls to initializer 'init(section:configuration:)' from outside of its actor context are implicitly asynchronous
| `- note: main actor isolation inferred from inheritance from class 'NSCollectionViewLayout'
98 |
99 | - (instancetype)initWithSectionProvider:(NSCollectionViewCompositionalLayoutSectionProvider)sectionProvider;
/Users/admin/builder/spi-builder-workspace/Sources/CompositionalLayoutDSL/Public/Configuration/Configuration.swift:32:16: warning: call to main actor-isolated initializer 'init()' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
28 |
29 | extension Configuration: BuildableConfiguration {
30 | func makeConfiguration() -> ConfigurationBuilder.TransformedType {
| `- note: add '@MainActor' to make instance method 'makeConfiguration()' part of global actor 'MainActor'
31 | #if os(macOS)
32 | return NSCollectionViewCompositionalLayoutConfiguration()
| `- warning: call to main actor-isolated initializer 'init()' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
33 | #else
34 | return UICollectionViewCompositionalLayoutConfiguration()
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.4.sdk/usr/include/objc/NSObject.h:66:1: note: calls to initializer 'init()' from outside of its actor context are implicitly asynchronous
64 |
65 | + (void)initialize;
66 | - (instancetype)init
| `- note: calls to initializer 'init()' from outside of its actor context are implicitly asynchronous
67 | #if NS_ENFORCE_NSOBJECT_DESIGNATED_INITIALIZER
68 | NS_DESIGNATED_INITIALIZER
/Users/admin/builder/spi-builder-workspace/Sources/CompositionalLayoutDSL/Public/Configuration/LayoutConfiguration.swift:49:51: warning: cannot form key path to main actor-isolated property 'scrollDirection'; this is an error in the Swift 6 language mode
47 | _ scrollDirection: NSCollectionView.ScrollDirection
48 | ) -> LayoutConfiguration {
49 | valueModifier(scrollDirection, keyPath: \.scrollDirection)
| `- warning: cannot form key path to main actor-isolated property 'scrollDirection'; this is an error in the Swift 6 language mode
50 | }
51 | #else
/Users/admin/builder/spi-builder-workspace/Sources/CompositionalLayoutDSL/Public/Configuration/LayoutConfiguration.swift:68:55: warning: cannot form key path to main actor-isolated property 'interSectionSpacing'; this is an error in the Swift 6 language mode
66 | @warn_unqualified_access
67 | public func interSectionSpacing(_ interSectionSpacing: CGFloat) -> LayoutConfiguration {
68 | valueModifier(interSectionSpacing, keyPath: \.interSectionSpacing)
| `- warning: cannot form key path to main actor-isolated property 'interSectionSpacing'; this is an error in the Swift 6 language mode
69 | }
70 |
/Users/admin/builder/spi-builder-workspace/Sources/CompositionalLayoutDSL/Public/Configuration/LayoutConfiguration.swift:81:16: 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 | .map(BoundarySupplementaryItemBuilder.make(from:))
80 | return valueModifier {
81 | $0.boundarySupplementaryItems.append(contentsOf: 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
82 | }
83 | }
/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/CompositionalLayoutDSL/Public/CompositionalLayout.swift:121:16: warning: sending value of non-Sendable type '(Int, any NSCollectionLayoutEnvironment) -> NSCollectionLayoutSection?' risks causing data races; this is an error in the Swift 6 language mode
119 | #if os(macOS)
120 | func makeCollectionViewCompositionalLayout() -> NSCollectionViewCompositionalLayout {
121 | return NSCollectionViewCompositionalLayout(
| |- warning: sending value of non-Sendable type '(Int, any NSCollectionLayoutEnvironment) -> NSCollectionLayoutSection?' risks causing data races; this is an error in the Swift 6 language mode
| `- note: sending task-isolated value of non-Sendable type '(Int, any NSCollectionLayoutEnvironment) -> NSCollectionLayoutSection?' to main actor-isolated initializer 'init(sectionProvider:configuration:)' risks causing races in between task-isolated and main actor-isolated uses
122 | sectionProvider: { section, environment in
123 | return sectionBuilder(section, environment).map(SectionBuilder.make(from:))
[31/42] Compiling CompositionalLayoutDSL ItemBuilder.swift
[32/42] Compiling CompositionalLayoutDSL SectionBuilder.swift
[33/42] Compiling CompositionalLayoutDSL SupplementaryItemBuilder.swift
[34/42] Compiling CompositionalLayoutDSL ModifiedLayoutBoundarySupplementaryItem.swift
[35/42] Compiling CompositionalLayoutDSL LayoutGroup.swift
/Users/admin/builder/spi-builder-workspace/Sources/CompositionalLayoutDSL/Public/Group/LayoutGroup.swift:55:35: warning: main actor-isolated property 'supplementaryItems' can not be mutated from a nonisolated context; this is an error in the Swift 6 language mode
53 | ) -> LayoutGroup {
54 | let supplementaryItems = supplementaryItems().map(SupplementaryItemBuilder.make(from:))
55 | return valueModifier { $0.supplementaryItems.append(contentsOf: supplementaryItems) }
| `- warning: main actor-isolated property 'supplementaryItems' can not be mutated from a nonisolated context; this is an error in the Swift 6 language mode
56 | }
57 |
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.4.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSCollectionViewCompositionalLayout.h:285:64: note: mutation of this property is only permitted within the actor
283 |
284 | // Supplementary items are "anchored" to the group's geometry.
285 | @property(copy) NSArray<NSCollectionLayoutSupplementaryItem*> *supplementaryItems;
| `- 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
/Users/admin/builder/spi-builder-workspace/Sources/CompositionalLayoutDSL/Public/Group/LayoutGroup.swift:61:52: warning: cannot form key path to main actor-isolated property 'interItemSpacing'; this is an error in the Swift 6 language mode
59 | @warn_unqualified_access
60 | public func interItemSpacing(_ interItemSpacing: NSCollectionLayoutSpacing?) -> LayoutGroup {
61 | valueModifier(interItemSpacing, keyPath: \.interItemSpacing)
| `- warning: cannot form key path to main actor-isolated property 'interItemSpacing'; this is an error in the Swift 6 language mode
62 | }
63 | }
/Users/admin/builder/spi-builder-workspace/Sources/CompositionalLayoutDSL/Public/Group/LayoutGroup.swift:101:42: warning: cannot form key path to main actor-isolated property 'contentInsets'; this is an error in the Swift 6 language mode
99 | @warn_unqualified_access
100 | public func contentInsets(_ insets: NSDirectionalEdgeInsets) -> LayoutGroup {
101 | valueModifier(insets, keyPath: \.contentInsets)
| `- warning: cannot form key path to main actor-isolated property 'contentInsets'; this is an error in the Swift 6 language mode
102 | }
103 | }
/Users/admin/builder/spi-builder-workspace/Sources/CompositionalLayoutDSL/Public/Group/LayoutGroup.swift:136:13: warning: call to main actor-isolated initializer 'init(leading:top:trailing:bottom:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
127 | /// and this item's container.
128 | @warn_unqualified_access
129 | public func edgeSpacing(
| `- note: add '@MainActor' to make instance method 'edgeSpacing(top:leading:bottom:trailing:)' part of global actor 'MainActor'
130 | top: NSCollectionLayoutSpacing? = nil,
131 | leading: NSCollectionLayoutSpacing? = nil,
:
134 | ) -> LayoutGroup {
135 | return self.edgeSpacing(
136 | NSCollectionLayoutEdgeSpacing(leading: leading, top: top, trailing: trailing, bottom: bottom)
| `- warning: call to main actor-isolated initializer 'init(leading:top:trailing:bottom:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
137 | )
138 | }
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.4.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSCollectionViewCompositionalLayout.h:373:1: note: calls to initializer 'init(leading:top:trailing:bottom:)' from outside of its actor context are implicitly asynchronous
371 | // +-----------------------------------------------------------------------------------------+
372 |
373 | + (instancetype)spacingForLeading:(nullable NSCollectionLayoutSpacing *)leading
| `- note: calls to initializer 'init(leading:top:trailing:bottom:)' from outside of its actor context are implicitly asynchronous
374 | top:(nullable NSCollectionLayoutSpacing *)top
375 | trailing:(nullable NSCollectionLayoutSpacing *)trailing
/Users/admin/builder/spi-builder-workspace/Sources/CompositionalLayoutDSL/Public/Group/LayoutGroup.swift:144:47: warning: cannot form key path to main actor-isolated property 'edgeSpacing'; this is an error in the Swift 6 language mode
142 | @warn_unqualified_access
143 | public func edgeSpacing(_ edgeSpacing: NSCollectionLayoutEdgeSpacing) -> LayoutGroup {
144 | valueModifier(edgeSpacing, keyPath: \.edgeSpacing)
| `- warning: cannot form key path to main actor-isolated property 'edgeSpacing'; this is an error in the Swift 6 language mode
145 | }
146 | }
/Users/admin/builder/spi-builder-workspace/Sources/CompositionalLayoutDSL/Public/Group/VGroup.swift:30:17: warning: main actor-isolated default value in a nonisolated context; this is an error in the Swift 6 language mode
28 |
29 | /// Creates a group of the specified size, containing an array of items arranged in a vertical line.
30 | public init(width: NSCollectionLayoutDimension = .fractionalWidth(1),
| `- warning: main actor-isolated default value in a nonisolated context; this is an error in the Swift 6 language mode
31 | height: NSCollectionLayoutDimension = .fractionalHeight(1),
32 | @LayoutItemBuilder subItems: () -> [LayoutItem]) {
/Users/admin/builder/spi-builder-workspace/Sources/CompositionalLayoutDSL/Public/Group/VGroup.swift:31:17: warning: main actor-isolated default value in a nonisolated context; this is an error in the Swift 6 language mode
29 | /// Creates a group of the specified size, containing an array of items arranged in a vertical line.
30 | public init(width: NSCollectionLayoutDimension = .fractionalWidth(1),
31 | height: NSCollectionLayoutDimension = .fractionalHeight(1),
| `- warning: main actor-isolated default value in a nonisolated context; this is an error in the Swift 6 language mode
32 | @LayoutItemBuilder subItems: () -> [LayoutItem]) {
33 | self.widthDimension = width
/Users/admin/builder/spi-builder-workspace/Sources/CompositionalLayoutDSL/Public/Group/VGroup.swift:48:17: warning: main actor-isolated default value in a nonisolated context; this is an error in the Swift 6 language mode
46 | /// Creates a group of the specified size, containing an array of equally sized items arranged
47 | /// in a horizontal line up to the number specified by count.
48 | public init(width: NSCollectionLayoutDimension = .fractionalWidth(1),
| `- warning: main actor-isolated default value in a nonisolated context; this is an error in the Swift 6 language mode
49 | height: NSCollectionLayoutDimension = .fractionalHeight(1),
50 | count: Int,
/Users/admin/builder/spi-builder-workspace/Sources/CompositionalLayoutDSL/Public/Group/VGroup.swift:49:17: warning: main actor-isolated default value in a nonisolated context; this is an error in the Swift 6 language mode
47 | /// in a horizontal line up to the number specified by count.
48 | public init(width: NSCollectionLayoutDimension = .fractionalWidth(1),
49 | height: NSCollectionLayoutDimension = .fractionalHeight(1),
| `- warning: main actor-isolated default value in a nonisolated context; this is an error in the Swift 6 language mode
50 | count: Int,
51 | subItem: () -> LayoutItem) {
/Users/admin/builder/spi-builder-workspace/Sources/CompositionalLayoutDSL/Public/Group/VGroup.swift:41:36: warning: main actor-isolated property 'widthDimension' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
39 | public init(size: NSCollectionLayoutSize,
40 | @LayoutItemBuilder subItems: () -> [LayoutItem]) {
41 | self.widthDimension = size.widthDimension
| `- warning: main actor-isolated property 'widthDimension' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
42 | self.heightDimension = size.heightDimension
43 | self.subItems = .list(subItems())
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.4.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSCollectionViewCompositionalLayout.h:327:50: note: property declared here
325 | + (instancetype)new NS_UNAVAILABLE;
326 |
327 | @property(readonly) NSCollectionLayoutDimension *widthDimension;
| `- note: property declared here
328 | @property(readonly) NSCollectionLayoutDimension *heightDimension;
329 | @end
/Users/admin/builder/spi-builder-workspace/Sources/CompositionalLayoutDSL/Public/Group/VGroup.swift:42:37: warning: main actor-isolated property 'heightDimension' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
40 | @LayoutItemBuilder subItems: () -> [LayoutItem]) {
41 | self.widthDimension = size.widthDimension
42 | self.heightDimension = size.heightDimension
| `- warning: main actor-isolated property 'heightDimension' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
43 | self.subItems = .list(subItems())
44 | }
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.4.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSCollectionViewCompositionalLayout.h:328:50: note: property declared here
326 |
327 | @property(readonly) NSCollectionLayoutDimension *widthDimension;
328 | @property(readonly) NSCollectionLayoutDimension *heightDimension;
| `- note: property declared here
329 | @end
330 |
/Users/admin/builder/spi-builder-workspace/Sources/CompositionalLayoutDSL/Public/Group/VGroup.swift:62:36: warning: main actor-isolated property 'widthDimension' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
60 | count: Int,
61 | subItem: () -> LayoutItem) {
62 | self.widthDimension = size.widthDimension
| `- warning: main actor-isolated property 'widthDimension' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
63 | self.heightDimension = size.heightDimension
64 | self.subItems = .repeated(subItem(), count: count)
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.4.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSCollectionViewCompositionalLayout.h:327:50: note: property declared here
325 | + (instancetype)new NS_UNAVAILABLE;
326 |
327 | @property(readonly) NSCollectionLayoutDimension *widthDimension;
| `- note: property declared here
328 | @property(readonly) NSCollectionLayoutDimension *heightDimension;
329 | @end
/Users/admin/builder/spi-builder-workspace/Sources/CompositionalLayoutDSL/Public/Group/VGroup.swift:63:37: warning: main actor-isolated property 'heightDimension' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
61 | subItem: () -> LayoutItem) {
62 | self.widthDimension = size.widthDimension
63 | self.heightDimension = size.heightDimension
| `- warning: main actor-isolated property 'heightDimension' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
64 | self.subItems = .repeated(subItem(), count: count)
65 | }
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.4.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSCollectionViewCompositionalLayout.h:328:50: note: property declared here
326 |
327 | @property(readonly) NSCollectionLayoutDimension *widthDimension;
328 | @property(readonly) NSCollectionLayoutDimension *heightDimension;
| `- note: property declared here
329 | @end
330 |
/Users/admin/builder/spi-builder-workspace/Sources/CompositionalLayoutDSL/Public/Group/VGroup.swift:69:27: warning: call to main actor-isolated class method 'fractionalWidth' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
67 | /// Creates a group containing an array of items arranged in a vertical line.
68 | public init(@LayoutItemBuilder subItems: () -> [LayoutItem]) {
69 | self.init(width: .fractionalWidth(1), height: .fractionalHeight(1), subItems: subItems)
| `- warning: call to main actor-isolated class method 'fractionalWidth' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
70 | }
71 |
AppKit.NSCollectionLayoutDimension.fractionalWidth:2:28: note: calls to class method 'fractionalWidth' from outside of its actor context are implicitly asynchronous
1 | class NSCollectionLayoutDimension {
2 | @MainActor open class func fractionalWidth(_ fractionalWidth: CGFloat) -> Self}
| `- note: calls to class method 'fractionalWidth' from outside of its actor context are implicitly asynchronous
3 |
/Users/admin/builder/spi-builder-workspace/Sources/CompositionalLayoutDSL/Public/Group/VGroup.swift:69:56: warning: call to main actor-isolated class method 'fractionalHeight' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
67 | /// Creates a group containing an array of items arranged in a vertical line.
68 | public init(@LayoutItemBuilder subItems: () -> [LayoutItem]) {
69 | self.init(width: .fractionalWidth(1), height: .fractionalHeight(1), subItems: subItems)
| `- warning: call to main actor-isolated class method 'fractionalHeight' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
70 | }
71 |
AppKit.NSCollectionLayoutDimension.fractionalHeight:2:28: note: calls to class method 'fractionalHeight' from outside of its actor context are implicitly asynchronous
1 | class NSCollectionLayoutDimension {
2 | @MainActor open class func fractionalHeight(_ fractionalHeight: CGFloat) -> Self}
| `- note: calls to class method 'fractionalHeight' from outside of its actor context are implicitly asynchronous
3 |
/Users/admin/builder/spi-builder-workspace/Sources/CompositionalLayoutDSL/Public/Group/VGroup.swift:97:20: 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
94 |
95 | extension VGroup: BuildableGroup {
96 | func makeGroup() -> NSCollectionLayoutGroup {
| `- note: add '@MainActor' to make instance method 'makeGroup()' part of global actor 'MainActor'
97 | let size = NSCollectionLayoutSize(
| `- 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
98 | widthDimension: widthDimension,
99 | heightDimension: heightDimension
/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/CompositionalLayoutDSL/Public/Group/VGroup.swift:104:45: 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
94 |
95 | extension VGroup: BuildableGroup {
96 | func makeGroup() -> NSCollectionLayoutGroup {
| `- note: add '@MainActor' to make instance method 'makeGroup()' part of global actor 'MainActor'
97 | let size = NSCollectionLayoutSize(
98 | widthDimension: widthDimension,
:
102 | switch subItems {
103 | case let .list(items):
104 | group = NSCollectionLayoutGroup.vertical(
| `- 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
105 | layoutSize: size,
106 | subitems: items.map(ItemBuilder.make(from:))
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/CompositionalLayoutDSL/Public/Group/VGroup.swift:109:45: warning: call to main actor-isolated class method 'vertical(layoutSize:subitem:count:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
94 |
95 | extension VGroup: BuildableGroup {
96 | func makeGroup() -> NSCollectionLayoutGroup {
| `- note: add '@MainActor' to make instance method 'makeGroup()' part of global actor 'MainActor'
97 | let size = NSCollectionLayoutSize(
98 | widthDimension: widthDimension,
:
107 | )
108 | case let .repeated(item, count):
109 | group = NSCollectionLayoutGroup.vertical(
| `- warning: call to main actor-isolated class method 'vertical(layoutSize:subitem:count:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
110 | layoutSize: size,
111 | subitem: ItemBuilder.make(from: item),
AppKit.NSCollectionLayoutGroup.vertical:2:28: note: calls to class method 'vertical(layoutSize:subitem:count:)' from outside of its actor context are implicitly asynchronous
1 | class NSCollectionLayoutGroup {
2 | @MainActor open class func vertical(layoutSize: NSCollectionLayoutSize, subitem: NSCollectionLayoutItem, count: Int) -> Self}
| |- note: calls to class method 'vertical(layoutSize:subitem:count:)' 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/CompositionalLayoutDSL/Public/Item/Item.swift:34:17: warning: main actor-isolated default value in a nonisolated context; this is an error in the Swift 6 language mode
32 |
33 | /// Creates an item of the specified size
34 | public init(width: NSCollectionLayoutDimension = .fractionalWidth(1),
| `- warning: main actor-isolated default value in a nonisolated context; this is an error in the Swift 6 language mode
35 | height: NSCollectionLayoutDimension = .fractionalHeight(1)) {
36 | self.widthDimension = width
/Users/admin/builder/spi-builder-workspace/Sources/CompositionalLayoutDSL/Public/Item/Item.swift:35:17: warning: main actor-isolated default value in a nonisolated context; this is an error in the Swift 6 language mode
33 | /// Creates an item of the specified size
34 | public init(width: NSCollectionLayoutDimension = .fractionalWidth(1),
35 | height: NSCollectionLayoutDimension = .fractionalHeight(1)) {
| `- warning: main actor-isolated default value in a nonisolated context; this is an error in the Swift 6 language mode
36 | self.widthDimension = width
37 | self.heightDimension = height
/Users/admin/builder/spi-builder-workspace/Sources/CompositionalLayoutDSL/Public/Item/Item.swift:43:36: warning: main actor-isolated property 'widthDimension' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
41 | /// Creates an item of the specified size
42 | public init(size: NSCollectionLayoutSize) {
43 | self.widthDimension = size.widthDimension
| `- warning: main actor-isolated property 'widthDimension' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
44 | self.heightDimension = size.heightDimension
45 | self.supplementaryItems = []
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.4.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSCollectionViewCompositionalLayout.h:327:50: note: property declared here
325 | + (instancetype)new NS_UNAVAILABLE;
326 |
327 | @property(readonly) NSCollectionLayoutDimension *widthDimension;
| `- note: property declared here
328 | @property(readonly) NSCollectionLayoutDimension *heightDimension;
329 | @end
/Users/admin/builder/spi-builder-workspace/Sources/CompositionalLayoutDSL/Public/Item/Item.swift:44:37: warning: main actor-isolated property 'heightDimension' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
42 | public init(size: NSCollectionLayoutSize) {
43 | self.widthDimension = size.widthDimension
44 | self.heightDimension = size.heightDimension
| `- warning: main actor-isolated property 'heightDimension' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
45 | self.supplementaryItems = []
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:328:50: note: property declared here
326 |
327 | @property(readonly) NSCollectionLayoutDimension *widthDimension;
328 | @property(readonly) NSCollectionLayoutDimension *heightDimension;
| `- note: property declared here
329 | @end
330 |
/Users/admin/builder/spi-builder-workspace/Sources/CompositionalLayoutDSL/Public/Item/Item.swift:50:27: warning: call to main actor-isolated class method 'fractionalWidth' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
48 | /// Creates an item with an array of supplementary items to attach to the item.
49 | public init(@LayoutSupplementaryItemBuilder supplementaryItems: () -> [LayoutSupplementaryItem]) {
50 | self.init(width: .fractionalWidth(1), height: .fractionalHeight(1), supplementaryItems: supplementaryItems)
| `- warning: call to main actor-isolated class method 'fractionalWidth' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
51 | }
52 |
AppKit.NSCollectionLayoutDimension.fractionalWidth:2:28: note: calls to class method 'fractionalWidth' from outside of its actor context are implicitly asynchronous
1 | class NSCollectionLayoutDimension {
2 | @MainActor open class func fractionalWidth(_ fractionalWidth: CGFloat) -> Self}
| `- note: calls to class method 'fractionalWidth' from outside of its actor context are implicitly asynchronous
3 |
/Users/admin/builder/spi-builder-workspace/Sources/CompositionalLayoutDSL/Public/Item/Item.swift:50:56: warning: call to main actor-isolated class method 'fractionalHeight' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
48 | /// Creates an item with an array of supplementary items to attach to the item.
49 | public init(@LayoutSupplementaryItemBuilder supplementaryItems: () -> [LayoutSupplementaryItem]) {
50 | self.init(width: .fractionalWidth(1), height: .fractionalHeight(1), supplementaryItems: supplementaryItems)
| `- warning: call to main actor-isolated class method 'fractionalHeight' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
51 | }
52 |
AppKit.NSCollectionLayoutDimension.fractionalHeight:2:28: note: calls to class method 'fractionalHeight' from outside of its actor context are implicitly asynchronous
1 | class NSCollectionLayoutDimension {
2 | @MainActor open class func fractionalHeight(_ fractionalHeight: CGFloat) -> Self}
| `- note: calls to class method 'fractionalHeight' from outside of its actor context are implicitly asynchronous
3 |
/Users/admin/builder/spi-builder-workspace/Sources/CompositionalLayoutDSL/Public/Item/Item.swift:54:27: warning: call to main actor-isolated class method 'fractionalWidth' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
52 |
53 | public init() {
54 | self.init(width: .fractionalWidth(1), height: .fractionalHeight(1), supplementaryItems: { })
| `- warning: call to main actor-isolated class method 'fractionalWidth' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
55 | }
56 |
AppKit.NSCollectionLayoutDimension.fractionalWidth:2:28: note: calls to class method 'fractionalWidth' from outside of its actor context are implicitly asynchronous
1 | class NSCollectionLayoutDimension {
2 | @MainActor open class func fractionalWidth(_ fractionalWidth: CGFloat) -> Self}
| `- note: calls to class method 'fractionalWidth' from outside of its actor context are implicitly asynchronous
3 |
/Users/admin/builder/spi-builder-workspace/Sources/CompositionalLayoutDSL/Public/Item/Item.swift:54:56: warning: call to main actor-isolated class method 'fractionalHeight' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
52 |
53 | public init() {
54 | self.init(width: .fractionalWidth(1), height: .fractionalHeight(1), supplementaryItems: { })
| `- warning: call to main actor-isolated class method 'fractionalHeight' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
55 | }
56 |
AppKit.NSCollectionLayoutDimension.fractionalHeight:2:28: note: calls to class method 'fractionalHeight' from outside of its actor context are implicitly asynchronous
1 | class NSCollectionLayoutDimension {
2 | @MainActor open class func fractionalHeight(_ fractionalHeight: CGFloat) -> Self}
| `- note: calls to class method 'fractionalHeight' from outside of its actor context are implicitly asynchronous
3 |
/Users/admin/builder/spi-builder-workspace/Sources/CompositionalLayoutDSL/Public/Item/Item.swift:82:20: warning: call to main actor-isolated initializer 'init(layoutSize:supplementaryItems:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
79 |
80 | extension Item: BuildableItem {
81 | func makeItem() -> NSCollectionLayoutItem {
| `- note: add '@MainActor' to make instance method 'makeItem()' part of global actor 'MainActor'
82 | let item = NSCollectionLayoutItem(
| `- warning: call to main actor-isolated initializer 'init(layoutSize:supplementaryItems:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
83 | layoutSize: NSCollectionLayoutSize(widthDimension: widthDimension, heightDimension: heightDimension),
84 | supplementaryItems: supplementaryItems.map(SupplementaryItemBuilder.make(from:))
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.4.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSCollectionViewCompositionalLayout.h:163:1: note: calls to initializer 'init(layoutSize:supplementaryItems:)' from outside of its actor context are implicitly asynchronous
161 | @interface NSCollectionLayoutItem : NSObject<NSCopying>
162 | + (instancetype)itemWithLayoutSize:(NSCollectionLayoutSize*)layoutSize;
163 | + (instancetype)itemWithLayoutSize:(NSCollectionLayoutSize*)layoutSize supplementaryItems:(NSArray<NSCollectionLayoutSupplementaryItem*>*)supplementaryItems;
| `- note: calls to initializer 'init(layoutSize:supplementaryItems:)' from outside of its actor context are implicitly asynchronous
164 | - (instancetype)init NS_UNAVAILABLE;
165 | + (instancetype)new NS_UNAVAILABLE;
/Users/admin/builder/spi-builder-workspace/Sources/CompositionalLayoutDSL/Public/Item/Item.swift:83:25: 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
79 |
80 | extension Item: BuildableItem {
81 | func makeItem() -> NSCollectionLayoutItem {
| `- note: add '@MainActor' to make instance method 'makeItem()' part of global actor 'MainActor'
82 | let item = NSCollectionLayoutItem(
83 | layoutSize: NSCollectionLayoutSize(widthDimension: widthDimension, heightDimension: heightDimension),
| `- 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
84 | supplementaryItems: supplementaryItems.map(SupplementaryItemBuilder.make(from:))
85 | )
/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/CompositionalLayoutDSL/Public/Item/LayoutItem.swift:74:42: warning: cannot form key path to main actor-isolated property 'contentInsets'; this is an error in the Swift 6 language mode
72 | @warn_unqualified_access
73 | public func contentInsets(_ insets: NSDirectionalEdgeInsets) -> LayoutItem {
74 | valueModifier(insets, keyPath: \.contentInsets)
| `- warning: cannot form key path to main actor-isolated property 'contentInsets'; this is an error in the Swift 6 language mode
75 | }
76 | }
/Users/admin/builder/spi-builder-workspace/Sources/CompositionalLayoutDSL/Public/Item/LayoutItem.swift:109:13: warning: call to main actor-isolated initializer 'init(leading:top:trailing:bottom:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
100 | /// and this item's container.
101 | @warn_unqualified_access
102 | public func edgeSpacing(
| `- note: add '@MainActor' to make instance method 'edgeSpacing(top:leading:bottom:trailing:)' part of global actor 'MainActor'
103 | top: NSCollectionLayoutSpacing? = nil,
104 | leading: NSCollectionLayoutSpacing? = nil,
:
107 | ) -> LayoutItem {
108 | return self.edgeSpacing(
109 | NSCollectionLayoutEdgeSpacing(leading: leading, top: top, trailing: trailing, bottom: bottom)
| `- warning: call to main actor-isolated initializer 'init(leading:top:trailing:bottom:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
110 | )
111 | }
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.4.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSCollectionViewCompositionalLayout.h:373:1: note: calls to initializer 'init(leading:top:trailing:bottom:)' from outside of its actor context are implicitly asynchronous
371 | // +-----------------------------------------------------------------------------------------+
372 |
373 | + (instancetype)spacingForLeading:(nullable NSCollectionLayoutSpacing *)leading
| `- note: calls to initializer 'init(leading:top:trailing:bottom:)' from outside of its actor context are implicitly asynchronous
374 | top:(nullable NSCollectionLayoutSpacing *)top
375 | trailing:(nullable NSCollectionLayoutSpacing *)trailing
/Users/admin/builder/spi-builder-workspace/Sources/CompositionalLayoutDSL/Public/Item/LayoutItem.swift:117:47: warning: cannot form key path to main actor-isolated property 'edgeSpacing'; this is an error in the Swift 6 language mode
115 | @warn_unqualified_access
116 | public func edgeSpacing(_ edgeSpacing: NSCollectionLayoutEdgeSpacing) -> LayoutItem {
117 | valueModifier(edgeSpacing, keyPath: \.edgeSpacing)
| `- warning: cannot form key path to main actor-isolated property 'edgeSpacing'; this is an error in the Swift 6 language mode
118 | }
119 | }
[36/42] Compiling CompositionalLayoutDSL VGroup.swift
/Users/admin/builder/spi-builder-workspace/Sources/CompositionalLayoutDSL/Public/Group/LayoutGroup.swift:55:35: warning: main actor-isolated property 'supplementaryItems' can not be mutated from a nonisolated context; this is an error in the Swift 6 language mode
53 | ) -> LayoutGroup {
54 | let supplementaryItems = supplementaryItems().map(SupplementaryItemBuilder.make(from:))
55 | return valueModifier { $0.supplementaryItems.append(contentsOf: supplementaryItems) }
| `- warning: main actor-isolated property 'supplementaryItems' can not be mutated from a nonisolated context; this is an error in the Swift 6 language mode
56 | }
57 |
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.4.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSCollectionViewCompositionalLayout.h:285:64: note: mutation of this property is only permitted within the actor
283 |
284 | // Supplementary items are "anchored" to the group's geometry.
285 | @property(copy) NSArray<NSCollectionLayoutSupplementaryItem*> *supplementaryItems;
| `- 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
/Users/admin/builder/spi-builder-workspace/Sources/CompositionalLayoutDSL/Public/Group/LayoutGroup.swift:61:52: warning: cannot form key path to main actor-isolated property 'interItemSpacing'; this is an error in the Swift 6 language mode
59 | @warn_unqualified_access
60 | public func interItemSpacing(_ interItemSpacing: NSCollectionLayoutSpacing?) -> LayoutGroup {
61 | valueModifier(interItemSpacing, keyPath: \.interItemSpacing)
| `- warning: cannot form key path to main actor-isolated property 'interItemSpacing'; this is an error in the Swift 6 language mode
62 | }
63 | }
/Users/admin/builder/spi-builder-workspace/Sources/CompositionalLayoutDSL/Public/Group/LayoutGroup.swift:101:42: warning: cannot form key path to main actor-isolated property 'contentInsets'; this is an error in the Swift 6 language mode
99 | @warn_unqualified_access
100 | public func contentInsets(_ insets: NSDirectionalEdgeInsets) -> LayoutGroup {
101 | valueModifier(insets, keyPath: \.contentInsets)
| `- warning: cannot form key path to main actor-isolated property 'contentInsets'; this is an error in the Swift 6 language mode
102 | }
103 | }
/Users/admin/builder/spi-builder-workspace/Sources/CompositionalLayoutDSL/Public/Group/LayoutGroup.swift:136:13: warning: call to main actor-isolated initializer 'init(leading:top:trailing:bottom:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
127 | /// and this item's container.
128 | @warn_unqualified_access
129 | public func edgeSpacing(
| `- note: add '@MainActor' to make instance method 'edgeSpacing(top:leading:bottom:trailing:)' part of global actor 'MainActor'
130 | top: NSCollectionLayoutSpacing? = nil,
131 | leading: NSCollectionLayoutSpacing? = nil,
:
134 | ) -> LayoutGroup {
135 | return self.edgeSpacing(
136 | NSCollectionLayoutEdgeSpacing(leading: leading, top: top, trailing: trailing, bottom: bottom)
| `- warning: call to main actor-isolated initializer 'init(leading:top:trailing:bottom:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
137 | )
138 | }
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.4.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSCollectionViewCompositionalLayout.h:373:1: note: calls to initializer 'init(leading:top:trailing:bottom:)' from outside of its actor context are implicitly asynchronous
371 | // +-----------------------------------------------------------------------------------------+
372 |
373 | + (instancetype)spacingForLeading:(nullable NSCollectionLayoutSpacing *)leading
| `- note: calls to initializer 'init(leading:top:trailing:bottom:)' from outside of its actor context are implicitly asynchronous
374 | top:(nullable NSCollectionLayoutSpacing *)top
375 | trailing:(nullable NSCollectionLayoutSpacing *)trailing
/Users/admin/builder/spi-builder-workspace/Sources/CompositionalLayoutDSL/Public/Group/LayoutGroup.swift:144:47: warning: cannot form key path to main actor-isolated property 'edgeSpacing'; this is an error in the Swift 6 language mode
142 | @warn_unqualified_access
143 | public func edgeSpacing(_ edgeSpacing: NSCollectionLayoutEdgeSpacing) -> LayoutGroup {
144 | valueModifier(edgeSpacing, keyPath: \.edgeSpacing)
| `- warning: cannot form key path to main actor-isolated property 'edgeSpacing'; this is an error in the Swift 6 language mode
145 | }
146 | }
/Users/admin/builder/spi-builder-workspace/Sources/CompositionalLayoutDSL/Public/Group/VGroup.swift:30:17: warning: main actor-isolated default value in a nonisolated context; this is an error in the Swift 6 language mode
28 |
29 | /// Creates a group of the specified size, containing an array of items arranged in a vertical line.
30 | public init(width: NSCollectionLayoutDimension = .fractionalWidth(1),
| `- warning: main actor-isolated default value in a nonisolated context; this is an error in the Swift 6 language mode
31 | height: NSCollectionLayoutDimension = .fractionalHeight(1),
32 | @LayoutItemBuilder subItems: () -> [LayoutItem]) {
/Users/admin/builder/spi-builder-workspace/Sources/CompositionalLayoutDSL/Public/Group/VGroup.swift:31:17: warning: main actor-isolated default value in a nonisolated context; this is an error in the Swift 6 language mode
29 | /// Creates a group of the specified size, containing an array of items arranged in a vertical line.
30 | public init(width: NSCollectionLayoutDimension = .fractionalWidth(1),
31 | height: NSCollectionLayoutDimension = .fractionalHeight(1),
| `- warning: main actor-isolated default value in a nonisolated context; this is an error in the Swift 6 language mode
32 | @LayoutItemBuilder subItems: () -> [LayoutItem]) {
33 | self.widthDimension = width
/Users/admin/builder/spi-builder-workspace/Sources/CompositionalLayoutDSL/Public/Group/VGroup.swift:48:17: warning: main actor-isolated default value in a nonisolated context; this is an error in the Swift 6 language mode
46 | /// Creates a group of the specified size, containing an array of equally sized items arranged
47 | /// in a horizontal line up to the number specified by count.
48 | public init(width: NSCollectionLayoutDimension = .fractionalWidth(1),
| `- warning: main actor-isolated default value in a nonisolated context; this is an error in the Swift 6 language mode
49 | height: NSCollectionLayoutDimension = .fractionalHeight(1),
50 | count: Int,
/Users/admin/builder/spi-builder-workspace/Sources/CompositionalLayoutDSL/Public/Group/VGroup.swift:49:17: warning: main actor-isolated default value in a nonisolated context; this is an error in the Swift 6 language mode
47 | /// in a horizontal line up to the number specified by count.
48 | public init(width: NSCollectionLayoutDimension = .fractionalWidth(1),
49 | height: NSCollectionLayoutDimension = .fractionalHeight(1),
| `- warning: main actor-isolated default value in a nonisolated context; this is an error in the Swift 6 language mode
50 | count: Int,
51 | subItem: () -> LayoutItem) {
/Users/admin/builder/spi-builder-workspace/Sources/CompositionalLayoutDSL/Public/Group/VGroup.swift:41:36: warning: main actor-isolated property 'widthDimension' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
39 | public init(size: NSCollectionLayoutSize,
40 | @LayoutItemBuilder subItems: () -> [LayoutItem]) {
41 | self.widthDimension = size.widthDimension
| `- warning: main actor-isolated property 'widthDimension' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
42 | self.heightDimension = size.heightDimension
43 | self.subItems = .list(subItems())
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.4.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSCollectionViewCompositionalLayout.h:327:50: note: property declared here
325 | + (instancetype)new NS_UNAVAILABLE;
326 |
327 | @property(readonly) NSCollectionLayoutDimension *widthDimension;
| `- note: property declared here
328 | @property(readonly) NSCollectionLayoutDimension *heightDimension;
329 | @end
/Users/admin/builder/spi-builder-workspace/Sources/CompositionalLayoutDSL/Public/Group/VGroup.swift:42:37: warning: main actor-isolated property 'heightDimension' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
40 | @LayoutItemBuilder subItems: () -> [LayoutItem]) {
41 | self.widthDimension = size.widthDimension
42 | self.heightDimension = size.heightDimension
| `- warning: main actor-isolated property 'heightDimension' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
43 | self.subItems = .list(subItems())
44 | }
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.4.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSCollectionViewCompositionalLayout.h:328:50: note: property declared here
326 |
327 | @property(readonly) NSCollectionLayoutDimension *widthDimension;
328 | @property(readonly) NSCollectionLayoutDimension *heightDimension;
| `- note: property declared here
329 | @end
330 |
/Users/admin/builder/spi-builder-workspace/Sources/CompositionalLayoutDSL/Public/Group/VGroup.swift:62:36: warning: main actor-isolated property 'widthDimension' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
60 | count: Int,
61 | subItem: () -> LayoutItem) {
62 | self.widthDimension = size.widthDimension
| `- warning: main actor-isolated property 'widthDimension' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
63 | self.heightDimension = size.heightDimension
64 | self.subItems = .repeated(subItem(), count: count)
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.4.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSCollectionViewCompositionalLayout.h:327:50: note: property declared here
325 | + (instancetype)new NS_UNAVAILABLE;
326 |
327 | @property(readonly) NSCollectionLayoutDimension *widthDimension;
| `- note: property declared here
328 | @property(readonly) NSCollectionLayoutDimension *heightDimension;
329 | @end
/Users/admin/builder/spi-builder-workspace/Sources/CompositionalLayoutDSL/Public/Group/VGroup.swift:63:37: warning: main actor-isolated property 'heightDimension' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
61 | subItem: () -> LayoutItem) {
62 | self.widthDimension = size.widthDimension
63 | self.heightDimension = size.heightDimension
| `- warning: main actor-isolated property 'heightDimension' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
64 | self.subItems = .repeated(subItem(), count: count)
65 | }
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.4.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSCollectionViewCompositionalLayout.h:328:50: note: property declared here
326 |
327 | @property(readonly) NSCollectionLayoutDimension *widthDimension;
328 | @property(readonly) NSCollectionLayoutDimension *heightDimension;
| `- note: property declared here
329 | @end
330 |
/Users/admin/builder/spi-builder-workspace/Sources/CompositionalLayoutDSL/Public/Group/VGroup.swift:69:27: warning: call to main actor-isolated class method 'fractionalWidth' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
67 | /// Creates a group containing an array of items arranged in a vertical line.
68 | public init(@LayoutItemBuilder subItems: () -> [LayoutItem]) {
69 | self.init(width: .fractionalWidth(1), height: .fractionalHeight(1), subItems: subItems)
| `- warning: call to main actor-isolated class method 'fractionalWidth' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
70 | }
71 |
AppKit.NSCollectionLayoutDimension.fractionalWidth:2:28: note: calls to class method 'fractionalWidth' from outside of its actor context are implicitly asynchronous
1 | class NSCollectionLayoutDimension {
2 | @MainActor open class func fractionalWidth(_ fractionalWidth: CGFloat) -> Self}
| `- note: calls to class method 'fractionalWidth' from outside of its actor context are implicitly asynchronous
3 |
/Users/admin/builder/spi-builder-workspace/Sources/CompositionalLayoutDSL/Public/Group/VGroup.swift:69:56: warning: call to main actor-isolated class method 'fractionalHeight' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
67 | /// Creates a group containing an array of items arranged in a vertical line.
68 | public init(@LayoutItemBuilder subItems: () -> [LayoutItem]) {
69 | self.init(width: .fractionalWidth(1), height: .fractionalHeight(1), subItems: subItems)
| `- warning: call to main actor-isolated class method 'fractionalHeight' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
70 | }
71 |
AppKit.NSCollectionLayoutDimension.fractionalHeight:2:28: note: calls to class method 'fractionalHeight' from outside of its actor context are implicitly asynchronous
1 | class NSCollectionLayoutDimension {
2 | @MainActor open class func fractionalHeight(_ fractionalHeight: CGFloat) -> Self}
| `- note: calls to class method 'fractionalHeight' from outside of its actor context are implicitly asynchronous
3 |
/Users/admin/builder/spi-builder-workspace/Sources/CompositionalLayoutDSL/Public/Group/VGroup.swift:97:20: 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
94 |
95 | extension VGroup: BuildableGroup {
96 | func makeGroup() -> NSCollectionLayoutGroup {
| `- note: add '@MainActor' to make instance method 'makeGroup()' part of global actor 'MainActor'
97 | let size = NSCollectionLayoutSize(
| `- 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
98 | widthDimension: widthDimension,
99 | heightDimension: heightDimension
/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/CompositionalLayoutDSL/Public/Group/VGroup.swift:104:45: 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
94 |
95 | extension VGroup: BuildableGroup {
96 | func makeGroup() -> NSCollectionLayoutGroup {
| `- note: add '@MainActor' to make instance method 'makeGroup()' part of global actor 'MainActor'
97 | let size = NSCollectionLayoutSize(
98 | widthDimension: widthDimension,
:
102 | switch subItems {
103 | case let .list(items):
104 | group = NSCollectionLayoutGroup.vertical(
| `- 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
105 | layoutSize: size,
106 | subitems: items.map(ItemBuilder.make(from:))
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/CompositionalLayoutDSL/Public/Group/VGroup.swift:109:45: warning: call to main actor-isolated class method 'vertical(layoutSize:subitem:count:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
94 |
95 | extension VGroup: BuildableGroup {
96 | func makeGroup() -> NSCollectionLayoutGroup {
| `- note: add '@MainActor' to make instance method 'makeGroup()' part of global actor 'MainActor'
97 | let size = NSCollectionLayoutSize(
98 | widthDimension: widthDimension,
:
107 | )
108 | case let .repeated(item, count):
109 | group = NSCollectionLayoutGroup.vertical(
| `- warning: call to main actor-isolated class method 'vertical(layoutSize:subitem:count:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
110 | layoutSize: size,
111 | subitem: ItemBuilder.make(from: item),
AppKit.NSCollectionLayoutGroup.vertical:2:28: note: calls to class method 'vertical(layoutSize:subitem:count:)' from outside of its actor context are implicitly asynchronous
1 | class NSCollectionLayoutGroup {
2 | @MainActor open class func vertical(layoutSize: NSCollectionLayoutSize, subitem: NSCollectionLayoutItem, count: Int) -> Self}
| |- note: calls to class method 'vertical(layoutSize:subitem:count:)' 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/CompositionalLayoutDSL/Public/Item/Item.swift:34:17: warning: main actor-isolated default value in a nonisolated context; this is an error in the Swift 6 language mode
32 |
33 | /// Creates an item of the specified size
34 | public init(width: NSCollectionLayoutDimension = .fractionalWidth(1),
| `- warning: main actor-isolated default value in a nonisolated context; this is an error in the Swift 6 language mode
35 | height: NSCollectionLayoutDimension = .fractionalHeight(1)) {
36 | self.widthDimension = width
/Users/admin/builder/spi-builder-workspace/Sources/CompositionalLayoutDSL/Public/Item/Item.swift:35:17: warning: main actor-isolated default value in a nonisolated context; this is an error in the Swift 6 language mode
33 | /// Creates an item of the specified size
34 | public init(width: NSCollectionLayoutDimension = .fractionalWidth(1),
35 | height: NSCollectionLayoutDimension = .fractionalHeight(1)) {
| `- warning: main actor-isolated default value in a nonisolated context; this is an error in the Swift 6 language mode
36 | self.widthDimension = width
37 | self.heightDimension = height
/Users/admin/builder/spi-builder-workspace/Sources/CompositionalLayoutDSL/Public/Item/Item.swift:43:36: warning: main actor-isolated property 'widthDimension' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
41 | /// Creates an item of the specified size
42 | public init(size: NSCollectionLayoutSize) {
43 | self.widthDimension = size.widthDimension
| `- warning: main actor-isolated property 'widthDimension' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
44 | self.heightDimension = size.heightDimension
45 | self.supplementaryItems = []
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.4.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSCollectionViewCompositionalLayout.h:327:50: note: property declared here
325 | + (instancetype)new NS_UNAVAILABLE;
326 |
327 | @property(readonly) NSCollectionLayoutDimension *widthDimension;
| `- note: property declared here
328 | @property(readonly) NSCollectionLayoutDimension *heightDimension;
329 | @end
/Users/admin/builder/spi-builder-workspace/Sources/CompositionalLayoutDSL/Public/Item/Item.swift:44:37: warning: main actor-isolated property 'heightDimension' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
42 | public init(size: NSCollectionLayoutSize) {
43 | self.widthDimension = size.widthDimension
44 | self.heightDimension = size.heightDimension
| `- warning: main actor-isolated property 'heightDimension' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
45 | self.supplementaryItems = []
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:328:50: note: property declared here
326 |
327 | @property(readonly) NSCollectionLayoutDimension *widthDimension;
328 | @property(readonly) NSCollectionLayoutDimension *heightDimension;
| `- note: property declared here
329 | @end
330 |
/Users/admin/builder/spi-builder-workspace/Sources/CompositionalLayoutDSL/Public/Item/Item.swift:50:27: warning: call to main actor-isolated class method 'fractionalWidth' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
48 | /// Creates an item with an array of supplementary items to attach to the item.
49 | public init(@LayoutSupplementaryItemBuilder supplementaryItems: () -> [LayoutSupplementaryItem]) {
50 | self.init(width: .fractionalWidth(1), height: .fractionalHeight(1), supplementaryItems: supplementaryItems)
| `- warning: call to main actor-isolated class method 'fractionalWidth' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
51 | }
52 |
AppKit.NSCollectionLayoutDimension.fractionalWidth:2:28: note: calls to class method 'fractionalWidth' from outside of its actor context are implicitly asynchronous
1 | class NSCollectionLayoutDimension {
2 | @MainActor open class func fractionalWidth(_ fractionalWidth: CGFloat) -> Self}
| `- note: calls to class method 'fractionalWidth' from outside of its actor context are implicitly asynchronous
3 |
/Users/admin/builder/spi-builder-workspace/Sources/CompositionalLayoutDSL/Public/Item/Item.swift:50:56: warning: call to main actor-isolated class method 'fractionalHeight' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
48 | /// Creates an item with an array of supplementary items to attach to the item.
49 | public init(@LayoutSupplementaryItemBuilder supplementaryItems: () -> [LayoutSupplementaryItem]) {
50 | self.init(width: .fractionalWidth(1), height: .fractionalHeight(1), supplementaryItems: supplementaryItems)
| `- warning: call to main actor-isolated class method 'fractionalHeight' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
51 | }
52 |
AppKit.NSCollectionLayoutDimension.fractionalHeight:2:28: note: calls to class method 'fractionalHeight' from outside of its actor context are implicitly asynchronous
1 | class NSCollectionLayoutDimension {
2 | @MainActor open class func fractionalHeight(_ fractionalHeight: CGFloat) -> Self}
| `- note: calls to class method 'fractionalHeight' from outside of its actor context are implicitly asynchronous
3 |
/Users/admin/builder/spi-builder-workspace/Sources/CompositionalLayoutDSL/Public/Item/Item.swift:54:27: warning: call to main actor-isolated class method 'fractionalWidth' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
52 |
53 | public init() {
54 | self.init(width: .fractionalWidth(1), height: .fractionalHeight(1), supplementaryItems: { })
| `- warning: call to main actor-isolated class method 'fractionalWidth' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
55 | }
56 |
AppKit.NSCollectionLayoutDimension.fractionalWidth:2:28: note: calls to class method 'fractionalWidth' from outside of its actor context are implicitly asynchronous
1 | class NSCollectionLayoutDimension {
2 | @MainActor open class func fractionalWidth(_ fractionalWidth: CGFloat) -> Self}
| `- note: calls to class method 'fractionalWidth' from outside of its actor context are implicitly asynchronous
3 |
/Users/admin/builder/spi-builder-workspace/Sources/CompositionalLayoutDSL/Public/Item/Item.swift:54:56: warning: call to main actor-isolated class method 'fractionalHeight' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
52 |
53 | public init() {
54 | self.init(width: .fractionalWidth(1), height: .fractionalHeight(1), supplementaryItems: { })
| `- warning: call to main actor-isolated class method 'fractionalHeight' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
55 | }
56 |
AppKit.NSCollectionLayoutDimension.fractionalHeight:2:28: note: calls to class method 'fractionalHeight' from outside of its actor context are implicitly asynchronous
1 | class NSCollectionLayoutDimension {
2 | @MainActor open class func fractionalHeight(_ fractionalHeight: CGFloat) -> Self}
| `- note: calls to class method 'fractionalHeight' from outside of its actor context are implicitly asynchronous
3 |
/Users/admin/builder/spi-builder-workspace/Sources/CompositionalLayoutDSL/Public/Item/Item.swift:82:20: warning: call to main actor-isolated initializer 'init(layoutSize:supplementaryItems:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
79 |
80 | extension Item: BuildableItem {
81 | func makeItem() -> NSCollectionLayoutItem {
| `- note: add '@MainActor' to make instance method 'makeItem()' part of global actor 'MainActor'
82 | let item = NSCollectionLayoutItem(
| `- warning: call to main actor-isolated initializer 'init(layoutSize:supplementaryItems:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
83 | layoutSize: NSCollectionLayoutSize(widthDimension: widthDimension, heightDimension: heightDimension),
84 | supplementaryItems: supplementaryItems.map(SupplementaryItemBuilder.make(from:))
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.4.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSCollectionViewCompositionalLayout.h:163:1: note: calls to initializer 'init(layoutSize:supplementaryItems:)' from outside of its actor context are implicitly asynchronous
161 | @interface NSCollectionLayoutItem : NSObject<NSCopying>
162 | + (instancetype)itemWithLayoutSize:(NSCollectionLayoutSize*)layoutSize;
163 | + (instancetype)itemWithLayoutSize:(NSCollectionLayoutSize*)layoutSize supplementaryItems:(NSArray<NSCollectionLayoutSupplementaryItem*>*)supplementaryItems;
| `- note: calls to initializer 'init(layoutSize:supplementaryItems:)' from outside of its actor context are implicitly asynchronous
164 | - (instancetype)init NS_UNAVAILABLE;
165 | + (instancetype)new NS_UNAVAILABLE;
/Users/admin/builder/spi-builder-workspace/Sources/CompositionalLayoutDSL/Public/Item/Item.swift:83:25: 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
79 |
80 | extension Item: BuildableItem {
81 | func makeItem() -> NSCollectionLayoutItem {
| `- note: add '@MainActor' to make instance method 'makeItem()' part of global actor 'MainActor'
82 | let item = NSCollectionLayoutItem(
83 | layoutSize: NSCollectionLayoutSize(widthDimension: widthDimension, heightDimension: heightDimension),
| `- 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
84 | supplementaryItems: supplementaryItems.map(SupplementaryItemBuilder.make(from:))
85 | )
/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/CompositionalLayoutDSL/Public/Item/LayoutItem.swift:74:42: warning: cannot form key path to main actor-isolated property 'contentInsets'; this is an error in the Swift 6 language mode
72 | @warn_unqualified_access
73 | public func contentInsets(_ insets: NSDirectionalEdgeInsets) -> LayoutItem {
74 | valueModifier(insets, keyPath: \.contentInsets)
| `- warning: cannot form key path to main actor-isolated property 'contentInsets'; this is an error in the Swift 6 language mode
75 | }
76 | }
/Users/admin/builder/spi-builder-workspace/Sources/CompositionalLayoutDSL/Public/Item/LayoutItem.swift:109:13: warning: call to main actor-isolated initializer 'init(leading:top:trailing:bottom:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
100 | /// and this item's container.
101 | @warn_unqualified_access
102 | public func edgeSpacing(
| `- note: add '@MainActor' to make instance method 'edgeSpacing(top:leading:bottom:trailing:)' part of global actor 'MainActor'
103 | top: NSCollectionLayoutSpacing? = nil,
104 | leading: NSCollectionLayoutSpacing? = nil,
:
107 | ) -> LayoutItem {
108 | return self.edgeSpacing(
109 | NSCollectionLayoutEdgeSpacing(leading: leading, top: top, trailing: trailing, bottom: bottom)
| `- warning: call to main actor-isolated initializer 'init(leading:top:trailing:bottom:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
110 | )
111 | }
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.4.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSCollectionViewCompositionalLayout.h:373:1: note: calls to initializer 'init(leading:top:trailing:bottom:)' from outside of its actor context are implicitly asynchronous
371 | // +-----------------------------------------------------------------------------------------+
372 |
373 | + (instancetype)spacingForLeading:(nullable NSCollectionLayoutSpacing *)leading
| `- note: calls to initializer 'init(leading:top:trailing:bottom:)' from outside of its actor context are implicitly asynchronous
374 | top:(nullable NSCollectionLayoutSpacing *)top
375 | trailing:(nullable NSCollectionLayoutSpacing *)trailing
/Users/admin/builder/spi-builder-workspace/Sources/CompositionalLayoutDSL/Public/Item/LayoutItem.swift:117:47: warning: cannot form key path to main actor-isolated property 'edgeSpacing'; this is an error in the Swift 6 language mode
115 | @warn_unqualified_access
116 | public func edgeSpacing(_ edgeSpacing: NSCollectionLayoutEdgeSpacing) -> LayoutItem {
117 | valueModifier(edgeSpacing, keyPath: \.edgeSpacing)
| `- warning: cannot form key path to main actor-isolated property 'edgeSpacing'; this is an error in the Swift 6 language mode
118 | }
119 | }
[37/42] Compiling CompositionalLayoutDSL Item.swift
/Users/admin/builder/spi-builder-workspace/Sources/CompositionalLayoutDSL/Public/Group/LayoutGroup.swift:55:35: warning: main actor-isolated property 'supplementaryItems' can not be mutated from a nonisolated context; this is an error in the Swift 6 language mode
53 | ) -> LayoutGroup {
54 | let supplementaryItems = supplementaryItems().map(SupplementaryItemBuilder.make(from:))
55 | return valueModifier { $0.supplementaryItems.append(contentsOf: supplementaryItems) }
| `- warning: main actor-isolated property 'supplementaryItems' can not be mutated from a nonisolated context; this is an error in the Swift 6 language mode
56 | }
57 |
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.4.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSCollectionViewCompositionalLayout.h:285:64: note: mutation of this property is only permitted within the actor
283 |
284 | // Supplementary items are "anchored" to the group's geometry.
285 | @property(copy) NSArray<NSCollectionLayoutSupplementaryItem*> *supplementaryItems;
| `- 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
/Users/admin/builder/spi-builder-workspace/Sources/CompositionalLayoutDSL/Public/Group/LayoutGroup.swift:61:52: warning: cannot form key path to main actor-isolated property 'interItemSpacing'; this is an error in the Swift 6 language mode
59 | @warn_unqualified_access
60 | public func interItemSpacing(_ interItemSpacing: NSCollectionLayoutSpacing?) -> LayoutGroup {
61 | valueModifier(interItemSpacing, keyPath: \.interItemSpacing)
| `- warning: cannot form key path to main actor-isolated property 'interItemSpacing'; this is an error in the Swift 6 language mode
62 | }
63 | }
/Users/admin/builder/spi-builder-workspace/Sources/CompositionalLayoutDSL/Public/Group/LayoutGroup.swift:101:42: warning: cannot form key path to main actor-isolated property 'contentInsets'; this is an error in the Swift 6 language mode
99 | @warn_unqualified_access
100 | public func contentInsets(_ insets: NSDirectionalEdgeInsets) -> LayoutGroup {
101 | valueModifier(insets, keyPath: \.contentInsets)
| `- warning: cannot form key path to main actor-isolated property 'contentInsets'; this is an error in the Swift 6 language mode
102 | }
103 | }
/Users/admin/builder/spi-builder-workspace/Sources/CompositionalLayoutDSL/Public/Group/LayoutGroup.swift:136:13: warning: call to main actor-isolated initializer 'init(leading:top:trailing:bottom:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
127 | /// and this item's container.
128 | @warn_unqualified_access
129 | public func edgeSpacing(
| `- note: add '@MainActor' to make instance method 'edgeSpacing(top:leading:bottom:trailing:)' part of global actor 'MainActor'
130 | top: NSCollectionLayoutSpacing? = nil,
131 | leading: NSCollectionLayoutSpacing? = nil,
:
134 | ) -> LayoutGroup {
135 | return self.edgeSpacing(
136 | NSCollectionLayoutEdgeSpacing(leading: leading, top: top, trailing: trailing, bottom: bottom)
| `- warning: call to main actor-isolated initializer 'init(leading:top:trailing:bottom:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
137 | )
138 | }
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.4.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSCollectionViewCompositionalLayout.h:373:1: note: calls to initializer 'init(leading:top:trailing:bottom:)' from outside of its actor context are implicitly asynchronous
371 | // +-----------------------------------------------------------------------------------------+
372 |
373 | + (instancetype)spacingForLeading:(nullable NSCollectionLayoutSpacing *)leading
| `- note: calls to initializer 'init(leading:top:trailing:bottom:)' from outside of its actor context are implicitly asynchronous
374 | top:(nullable NSCollectionLayoutSpacing *)top
375 | trailing:(nullable NSCollectionLayoutSpacing *)trailing
/Users/admin/builder/spi-builder-workspace/Sources/CompositionalLayoutDSL/Public/Group/LayoutGroup.swift:144:47: warning: cannot form key path to main actor-isolated property 'edgeSpacing'; this is an error in the Swift 6 language mode
142 | @warn_unqualified_access
143 | public func edgeSpacing(_ edgeSpacing: NSCollectionLayoutEdgeSpacing) -> LayoutGroup {
144 | valueModifier(edgeSpacing, keyPath: \.edgeSpacing)
| `- warning: cannot form key path to main actor-isolated property 'edgeSpacing'; this is an error in the Swift 6 language mode
145 | }
146 | }
/Users/admin/builder/spi-builder-workspace/Sources/CompositionalLayoutDSL/Public/Group/VGroup.swift:30:17: warning: main actor-isolated default value in a nonisolated context; this is an error in the Swift 6 language mode
28 |
29 | /// Creates a group of the specified size, containing an array of items arranged in a vertical line.
30 | public init(width: NSCollectionLayoutDimension = .fractionalWidth(1),
| `- warning: main actor-isolated default value in a nonisolated context; this is an error in the Swift 6 language mode
31 | height: NSCollectionLayoutDimension = .fractionalHeight(1),
32 | @LayoutItemBuilder subItems: () -> [LayoutItem]) {
/Users/admin/builder/spi-builder-workspace/Sources/CompositionalLayoutDSL/Public/Group/VGroup.swift:31:17: warning: main actor-isolated default value in a nonisolated context; this is an error in the Swift 6 language mode
29 | /// Creates a group of the specified size, containing an array of items arranged in a vertical line.
30 | public init(width: NSCollectionLayoutDimension = .fractionalWidth(1),
31 | height: NSCollectionLayoutDimension = .fractionalHeight(1),
| `- warning: main actor-isolated default value in a nonisolated context; this is an error in the Swift 6 language mode
32 | @LayoutItemBuilder subItems: () -> [LayoutItem]) {
33 | self.widthDimension = width
/Users/admin/builder/spi-builder-workspace/Sources/CompositionalLayoutDSL/Public/Group/VGroup.swift:48:17: warning: main actor-isolated default value in a nonisolated context; this is an error in the Swift 6 language mode
46 | /// Creates a group of the specified size, containing an array of equally sized items arranged
47 | /// in a horizontal line up to the number specified by count.
48 | public init(width: NSCollectionLayoutDimension = .fractionalWidth(1),
| `- warning: main actor-isolated default value in a nonisolated context; this is an error in the Swift 6 language mode
49 | height: NSCollectionLayoutDimension = .fractionalHeight(1),
50 | count: Int,
/Users/admin/builder/spi-builder-workspace/Sources/CompositionalLayoutDSL/Public/Group/VGroup.swift:49:17: warning: main actor-isolated default value in a nonisolated context; this is an error in the Swift 6 language mode
47 | /// in a horizontal line up to the number specified by count.
48 | public init(width: NSCollectionLayoutDimension = .fractionalWidth(1),
49 | height: NSCollectionLayoutDimension = .fractionalHeight(1),
| `- warning: main actor-isolated default value in a nonisolated context; this is an error in the Swift 6 language mode
50 | count: Int,
51 | subItem: () -> LayoutItem) {
/Users/admin/builder/spi-builder-workspace/Sources/CompositionalLayoutDSL/Public/Group/VGroup.swift:41:36: warning: main actor-isolated property 'widthDimension' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
39 | public init(size: NSCollectionLayoutSize,
40 | @LayoutItemBuilder subItems: () -> [LayoutItem]) {
41 | self.widthDimension = size.widthDimension
| `- warning: main actor-isolated property 'widthDimension' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
42 | self.heightDimension = size.heightDimension
43 | self.subItems = .list(subItems())
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.4.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSCollectionViewCompositionalLayout.h:327:50: note: property declared here
325 | + (instancetype)new NS_UNAVAILABLE;
326 |
327 | @property(readonly) NSCollectionLayoutDimension *widthDimension;
| `- note: property declared here
328 | @property(readonly) NSCollectionLayoutDimension *heightDimension;
329 | @end
/Users/admin/builder/spi-builder-workspace/Sources/CompositionalLayoutDSL/Public/Group/VGroup.swift:42:37: warning: main actor-isolated property 'heightDimension' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
40 | @LayoutItemBuilder subItems: () -> [LayoutItem]) {
41 | self.widthDimension = size.widthDimension
42 | self.heightDimension = size.heightDimension
| `- warning: main actor-isolated property 'heightDimension' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
43 | self.subItems = .list(subItems())
44 | }
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.4.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSCollectionViewCompositionalLayout.h:328:50: note: property declared here
326 |
327 | @property(readonly) NSCollectionLayoutDimension *widthDimension;
328 | @property(readonly) NSCollectionLayoutDimension *heightDimension;
| `- note: property declared here
329 | @end
330 |
/Users/admin/builder/spi-builder-workspace/Sources/CompositionalLayoutDSL/Public/Group/VGroup.swift:62:36: warning: main actor-isolated property 'widthDimension' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
60 | count: Int,
61 | subItem: () -> LayoutItem) {
62 | self.widthDimension = size.widthDimension
| `- warning: main actor-isolated property 'widthDimension' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
63 | self.heightDimension = size.heightDimension
64 | self.subItems = .repeated(subItem(), count: count)
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.4.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSCollectionViewCompositionalLayout.h:327:50: note: property declared here
325 | + (instancetype)new NS_UNAVAILABLE;
326 |
327 | @property(readonly) NSCollectionLayoutDimension *widthDimension;
| `- note: property declared here
328 | @property(readonly) NSCollectionLayoutDimension *heightDimension;
329 | @end
/Users/admin/builder/spi-builder-workspace/Sources/CompositionalLayoutDSL/Public/Group/VGroup.swift:63:37: warning: main actor-isolated property 'heightDimension' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
61 | subItem: () -> LayoutItem) {
62 | self.widthDimension = size.widthDimension
63 | self.heightDimension = size.heightDimension
| `- warning: main actor-isolated property 'heightDimension' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
64 | self.subItems = .repeated(subItem(), count: count)
65 | }
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.4.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSCollectionViewCompositionalLayout.h:328:50: note: property declared here
326 |
327 | @property(readonly) NSCollectionLayoutDimension *widthDimension;
328 | @property(readonly) NSCollectionLayoutDimension *heightDimension;
| `- note: property declared here
329 | @end
330 |
/Users/admin/builder/spi-builder-workspace/Sources/CompositionalLayoutDSL/Public/Group/VGroup.swift:69:27: warning: call to main actor-isolated class method 'fractionalWidth' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
67 | /// Creates a group containing an array of items arranged in a vertical line.
68 | public init(@LayoutItemBuilder subItems: () -> [LayoutItem]) {
69 | self.init(width: .fractionalWidth(1), height: .fractionalHeight(1), subItems: subItems)
| `- warning: call to main actor-isolated class method 'fractionalWidth' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
70 | }
71 |
AppKit.NSCollectionLayoutDimension.fractionalWidth:2:28: note: calls to class method 'fractionalWidth' from outside of its actor context are implicitly asynchronous
1 | class NSCollectionLayoutDimension {
2 | @MainActor open class func fractionalWidth(_ fractionalWidth: CGFloat) -> Self}
| `- note: calls to class method 'fractionalWidth' from outside of its actor context are implicitly asynchronous
3 |
/Users/admin/builder/spi-builder-workspace/Sources/CompositionalLayoutDSL/Public/Group/VGroup.swift:69:56: warning: call to main actor-isolated class method 'fractionalHeight' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
67 | /// Creates a group containing an array of items arranged in a vertical line.
68 | public init(@LayoutItemBuilder subItems: () -> [LayoutItem]) {
69 | self.init(width: .fractionalWidth(1), height: .fractionalHeight(1), subItems: subItems)
| `- warning: call to main actor-isolated class method 'fractionalHeight' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
70 | }
71 |
AppKit.NSCollectionLayoutDimension.fractionalHeight:2:28: note: calls to class method 'fractionalHeight' from outside of its actor context are implicitly asynchronous
1 | class NSCollectionLayoutDimension {
2 | @MainActor open class func fractionalHeight(_ fractionalHeight: CGFloat) -> Self}
| `- note: calls to class method 'fractionalHeight' from outside of its actor context are implicitly asynchronous
3 |
/Users/admin/builder/spi-builder-workspace/Sources/CompositionalLayoutDSL/Public/Group/VGroup.swift:97:20: 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
94 |
95 | extension VGroup: BuildableGroup {
96 | func makeGroup() -> NSCollectionLayoutGroup {
| `- note: add '@MainActor' to make instance method 'makeGroup()' part of global actor 'MainActor'
97 | let size = NSCollectionLayoutSize(
| `- 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
98 | widthDimension: widthDimension,
99 | heightDimension: heightDimension
/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/CompositionalLayoutDSL/Public/Group/VGroup.swift:104:45: 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
94 |
95 | extension VGroup: BuildableGroup {
96 | func makeGroup() -> NSCollectionLayoutGroup {
| `- note: add '@MainActor' to make instance method 'makeGroup()' part of global actor 'MainActor'
97 | let size = NSCollectionLayoutSize(
98 | widthDimension: widthDimension,
:
102 | switch subItems {
103 | case let .list(items):
104 | group = NSCollectionLayoutGroup.vertical(
| `- 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
105 | layoutSize: size,
106 | subitems: items.map(ItemBuilder.make(from:))
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/CompositionalLayoutDSL/Public/Group/VGroup.swift:109:45: warning: call to main actor-isolated class method 'vertical(layoutSize:subitem:count:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
94 |
95 | extension VGroup: BuildableGroup {
96 | func makeGroup() -> NSCollectionLayoutGroup {
| `- note: add '@MainActor' to make instance method 'makeGroup()' part of global actor 'MainActor'
97 | let size = NSCollectionLayoutSize(
98 | widthDimension: widthDimension,
:
107 | )
108 | case let .repeated(item, count):
109 | group = NSCollectionLayoutGroup.vertical(
| `- warning: call to main actor-isolated class method 'vertical(layoutSize:subitem:count:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
110 | layoutSize: size,
111 | subitem: ItemBuilder.make(from: item),
AppKit.NSCollectionLayoutGroup.vertical:2:28: note: calls to class method 'vertical(layoutSize:subitem:count:)' from outside of its actor context are implicitly asynchronous
1 | class NSCollectionLayoutGroup {
2 | @MainActor open class func vertical(layoutSize: NSCollectionLayoutSize, subitem: NSCollectionLayoutItem, count: Int) -> Self}
| |- note: calls to class method 'vertical(layoutSize:subitem:count:)' 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/CompositionalLayoutDSL/Public/Item/Item.swift:34:17: warning: main actor-isolated default value in a nonisolated context; this is an error in the Swift 6 language mode
32 |
33 | /// Creates an item of the specified size
34 | public init(width: NSCollectionLayoutDimension = .fractionalWidth(1),
| `- warning: main actor-isolated default value in a nonisolated context; this is an error in the Swift 6 language mode
35 | height: NSCollectionLayoutDimension = .fractionalHeight(1)) {
36 | self.widthDimension = width
/Users/admin/builder/spi-builder-workspace/Sources/CompositionalLayoutDSL/Public/Item/Item.swift:35:17: warning: main actor-isolated default value in a nonisolated context; this is an error in the Swift 6 language mode
33 | /// Creates an item of the specified size
34 | public init(width: NSCollectionLayoutDimension = .fractionalWidth(1),
35 | height: NSCollectionLayoutDimension = .fractionalHeight(1)) {
| `- warning: main actor-isolated default value in a nonisolated context; this is an error in the Swift 6 language mode
36 | self.widthDimension = width
37 | self.heightDimension = height
/Users/admin/builder/spi-builder-workspace/Sources/CompositionalLayoutDSL/Public/Item/Item.swift:43:36: warning: main actor-isolated property 'widthDimension' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
41 | /// Creates an item of the specified size
42 | public init(size: NSCollectionLayoutSize) {
43 | self.widthDimension = size.widthDimension
| `- warning: main actor-isolated property 'widthDimension' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
44 | self.heightDimension = size.heightDimension
45 | self.supplementaryItems = []
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.4.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSCollectionViewCompositionalLayout.h:327:50: note: property declared here
325 | + (instancetype)new NS_UNAVAILABLE;
326 |
327 | @property(readonly) NSCollectionLayoutDimension *widthDimension;
| `- note: property declared here
328 | @property(readonly) NSCollectionLayoutDimension *heightDimension;
329 | @end
/Users/admin/builder/spi-builder-workspace/Sources/CompositionalLayoutDSL/Public/Item/Item.swift:44:37: warning: main actor-isolated property 'heightDimension' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
42 | public init(size: NSCollectionLayoutSize) {
43 | self.widthDimension = size.widthDimension
44 | self.heightDimension = size.heightDimension
| `- warning: main actor-isolated property 'heightDimension' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
45 | self.supplementaryItems = []
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:328:50: note: property declared here
326 |
327 | @property(readonly) NSCollectionLayoutDimension *widthDimension;
328 | @property(readonly) NSCollectionLayoutDimension *heightDimension;
| `- note: property declared here
329 | @end
330 |
/Users/admin/builder/spi-builder-workspace/Sources/CompositionalLayoutDSL/Public/Item/Item.swift:50:27: warning: call to main actor-isolated class method 'fractionalWidth' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
48 | /// Creates an item with an array of supplementary items to attach to the item.
49 | public init(@LayoutSupplementaryItemBuilder supplementaryItems: () -> [LayoutSupplementaryItem]) {
50 | self.init(width: .fractionalWidth(1), height: .fractionalHeight(1), supplementaryItems: supplementaryItems)
| `- warning: call to main actor-isolated class method 'fractionalWidth' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
51 | }
52 |
AppKit.NSCollectionLayoutDimension.fractionalWidth:2:28: note: calls to class method 'fractionalWidth' from outside of its actor context are implicitly asynchronous
1 | class NSCollectionLayoutDimension {
2 | @MainActor open class func fractionalWidth(_ fractionalWidth: CGFloat) -> Self}
| `- note: calls to class method 'fractionalWidth' from outside of its actor context are implicitly asynchronous
3 |
/Users/admin/builder/spi-builder-workspace/Sources/CompositionalLayoutDSL/Public/Item/Item.swift:50:56: warning: call to main actor-isolated class method 'fractionalHeight' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
48 | /// Creates an item with an array of supplementary items to attach to the item.
49 | public init(@LayoutSupplementaryItemBuilder supplementaryItems: () -> [LayoutSupplementaryItem]) {
50 | self.init(width: .fractionalWidth(1), height: .fractionalHeight(1), supplementaryItems: supplementaryItems)
| `- warning: call to main actor-isolated class method 'fractionalHeight' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
51 | }
52 |
AppKit.NSCollectionLayoutDimension.fractionalHeight:2:28: note: calls to class method 'fractionalHeight' from outside of its actor context are implicitly asynchronous
1 | class NSCollectionLayoutDimension {
2 | @MainActor open class func fractionalHeight(_ fractionalHeight: CGFloat) -> Self}
| `- note: calls to class method 'fractionalHeight' from outside of its actor context are implicitly asynchronous
3 |
/Users/admin/builder/spi-builder-workspace/Sources/CompositionalLayoutDSL/Public/Item/Item.swift:54:27: warning: call to main actor-isolated class method 'fractionalWidth' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
52 |
53 | public init() {
54 | self.init(width: .fractionalWidth(1), height: .fractionalHeight(1), supplementaryItems: { })
| `- warning: call to main actor-isolated class method 'fractionalWidth' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
55 | }
56 |
AppKit.NSCollectionLayoutDimension.fractionalWidth:2:28: note: calls to class method 'fractionalWidth' from outside of its actor context are implicitly asynchronous
1 | class NSCollectionLayoutDimension {
2 | @MainActor open class func fractionalWidth(_ fractionalWidth: CGFloat) -> Self}
| `- note: calls to class method 'fractionalWidth' from outside of its actor context are implicitly asynchronous
3 |
/Users/admin/builder/spi-builder-workspace/Sources/CompositionalLayoutDSL/Public/Item/Item.swift:54:56: warning: call to main actor-isolated class method 'fractionalHeight' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
52 |
53 | public init() {
54 | self.init(width: .fractionalWidth(1), height: .fractionalHeight(1), supplementaryItems: { })
| `- warning: call to main actor-isolated class method 'fractionalHeight' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
55 | }
56 |
AppKit.NSCollectionLayoutDimension.fractionalHeight:2:28: note: calls to class method 'fractionalHeight' from outside of its actor context are implicitly asynchronous
1 | class NSCollectionLayoutDimension {
2 | @MainActor open class func fractionalHeight(_ fractionalHeight: CGFloat) -> Self}
| `- note: calls to class method 'fractionalHeight' from outside of its actor context are implicitly asynchronous
3 |
/Users/admin/builder/spi-builder-workspace/Sources/CompositionalLayoutDSL/Public/Item/Item.swift:82:20: warning: call to main actor-isolated initializer 'init(layoutSize:supplementaryItems:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
79 |
80 | extension Item: BuildableItem {
81 | func makeItem() -> NSCollectionLayoutItem {
| `- note: add '@MainActor' to make instance method 'makeItem()' part of global actor 'MainActor'
82 | let item = NSCollectionLayoutItem(
| `- warning: call to main actor-isolated initializer 'init(layoutSize:supplementaryItems:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
83 | layoutSize: NSCollectionLayoutSize(widthDimension: widthDimension, heightDimension: heightDimension),
84 | supplementaryItems: supplementaryItems.map(SupplementaryItemBuilder.make(from:))
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.4.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSCollectionViewCompositionalLayout.h:163:1: note: calls to initializer 'init(layoutSize:supplementaryItems:)' from outside of its actor context are implicitly asynchronous
161 | @interface NSCollectionLayoutItem : NSObject<NSCopying>
162 | + (instancetype)itemWithLayoutSize:(NSCollectionLayoutSize*)layoutSize;
163 | + (instancetype)itemWithLayoutSize:(NSCollectionLayoutSize*)layoutSize supplementaryItems:(NSArray<NSCollectionLayoutSupplementaryItem*>*)supplementaryItems;
| `- note: calls to initializer 'init(layoutSize:supplementaryItems:)' from outside of its actor context are implicitly asynchronous
164 | - (instancetype)init NS_UNAVAILABLE;
165 | + (instancetype)new NS_UNAVAILABLE;
/Users/admin/builder/spi-builder-workspace/Sources/CompositionalLayoutDSL/Public/Item/Item.swift:83:25: 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
79 |
80 | extension Item: BuildableItem {
81 | func makeItem() -> NSCollectionLayoutItem {
| `- note: add '@MainActor' to make instance method 'makeItem()' part of global actor 'MainActor'
82 | let item = NSCollectionLayoutItem(
83 | layoutSize: NSCollectionLayoutSize(widthDimension: widthDimension, heightDimension: heightDimension),
| `- 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
84 | supplementaryItems: supplementaryItems.map(SupplementaryItemBuilder.make(from:))
85 | )
/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/CompositionalLayoutDSL/Public/Item/LayoutItem.swift:74:42: warning: cannot form key path to main actor-isolated property 'contentInsets'; this is an error in the Swift 6 language mode
72 | @warn_unqualified_access
73 | public func contentInsets(_ insets: NSDirectionalEdgeInsets) -> LayoutItem {
74 | valueModifier(insets, keyPath: \.contentInsets)
| `- warning: cannot form key path to main actor-isolated property 'contentInsets'; this is an error in the Swift 6 language mode
75 | }
76 | }
/Users/admin/builder/spi-builder-workspace/Sources/CompositionalLayoutDSL/Public/Item/LayoutItem.swift:109:13: warning: call to main actor-isolated initializer 'init(leading:top:trailing:bottom:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
100 | /// and this item's container.
101 | @warn_unqualified_access
102 | public func edgeSpacing(
| `- note: add '@MainActor' to make instance method 'edgeSpacing(top:leading:bottom:trailing:)' part of global actor 'MainActor'
103 | top: NSCollectionLayoutSpacing? = nil,
104 | leading: NSCollectionLayoutSpacing? = nil,
:
107 | ) -> LayoutItem {
108 | return self.edgeSpacing(
109 | NSCollectionLayoutEdgeSpacing(leading: leading, top: top, trailing: trailing, bottom: bottom)
| `- warning: call to main actor-isolated initializer 'init(leading:top:trailing:bottom:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
110 | )
111 | }
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.4.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSCollectionViewCompositionalLayout.h:373:1: note: calls to initializer 'init(leading:top:trailing:bottom:)' from outside of its actor context are implicitly asynchronous
371 | // +-----------------------------------------------------------------------------------------+
372 |
373 | + (instancetype)spacingForLeading:(nullable NSCollectionLayoutSpacing *)leading
| `- note: calls to initializer 'init(leading:top:trailing:bottom:)' from outside of its actor context are implicitly asynchronous
374 | top:(nullable NSCollectionLayoutSpacing *)top
375 | trailing:(nullable NSCollectionLayoutSpacing *)trailing
/Users/admin/builder/spi-builder-workspace/Sources/CompositionalLayoutDSL/Public/Item/LayoutItem.swift:117:47: warning: cannot form key path to main actor-isolated property 'edgeSpacing'; this is an error in the Swift 6 language mode
115 | @warn_unqualified_access
116 | public func edgeSpacing(_ edgeSpacing: NSCollectionLayoutEdgeSpacing) -> LayoutItem {
117 | valueModifier(edgeSpacing, keyPath: \.edgeSpacing)
| `- warning: cannot form key path to main actor-isolated property 'edgeSpacing'; this is an error in the Swift 6 language mode
118 | }
119 | }
[38/42] Compiling CompositionalLayoutDSL LayoutItem.swift
/Users/admin/builder/spi-builder-workspace/Sources/CompositionalLayoutDSL/Public/Group/LayoutGroup.swift:55:35: warning: main actor-isolated property 'supplementaryItems' can not be mutated from a nonisolated context; this is an error in the Swift 6 language mode
53 | ) -> LayoutGroup {
54 | let supplementaryItems = supplementaryItems().map(SupplementaryItemBuilder.make(from:))
55 | return valueModifier { $0.supplementaryItems.append(contentsOf: supplementaryItems) }
| `- warning: main actor-isolated property 'supplementaryItems' can not be mutated from a nonisolated context; this is an error in the Swift 6 language mode
56 | }
57 |
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.4.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSCollectionViewCompositionalLayout.h:285:64: note: mutation of this property is only permitted within the actor
283 |
284 | // Supplementary items are "anchored" to the group's geometry.
285 | @property(copy) NSArray<NSCollectionLayoutSupplementaryItem*> *supplementaryItems;
| `- 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
/Users/admin/builder/spi-builder-workspace/Sources/CompositionalLayoutDSL/Public/Group/LayoutGroup.swift:61:52: warning: cannot form key path to main actor-isolated property 'interItemSpacing'; this is an error in the Swift 6 language mode
59 | @warn_unqualified_access
60 | public func interItemSpacing(_ interItemSpacing: NSCollectionLayoutSpacing?) -> LayoutGroup {
61 | valueModifier(interItemSpacing, keyPath: \.interItemSpacing)
| `- warning: cannot form key path to main actor-isolated property 'interItemSpacing'; this is an error in the Swift 6 language mode
62 | }
63 | }
/Users/admin/builder/spi-builder-workspace/Sources/CompositionalLayoutDSL/Public/Group/LayoutGroup.swift:101:42: warning: cannot form key path to main actor-isolated property 'contentInsets'; this is an error in the Swift 6 language mode
99 | @warn_unqualified_access
100 | public func contentInsets(_ insets: NSDirectionalEdgeInsets) -> LayoutGroup {
101 | valueModifier(insets, keyPath: \.contentInsets)
| `- warning: cannot form key path to main actor-isolated property 'contentInsets'; this is an error in the Swift 6 language mode
102 | }
103 | }
/Users/admin/builder/spi-builder-workspace/Sources/CompositionalLayoutDSL/Public/Group/LayoutGroup.swift:136:13: warning: call to main actor-isolated initializer 'init(leading:top:trailing:bottom:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
127 | /// and this item's container.
128 | @warn_unqualified_access
129 | public func edgeSpacing(
| `- note: add '@MainActor' to make instance method 'edgeSpacing(top:leading:bottom:trailing:)' part of global actor 'MainActor'
130 | top: NSCollectionLayoutSpacing? = nil,
131 | leading: NSCollectionLayoutSpacing? = nil,
:
134 | ) -> LayoutGroup {
135 | return self.edgeSpacing(
136 | NSCollectionLayoutEdgeSpacing(leading: leading, top: top, trailing: trailing, bottom: bottom)
| `- warning: call to main actor-isolated initializer 'init(leading:top:trailing:bottom:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
137 | )
138 | }
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.4.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSCollectionViewCompositionalLayout.h:373:1: note: calls to initializer 'init(leading:top:trailing:bottom:)' from outside of its actor context are implicitly asynchronous
371 | // +-----------------------------------------------------------------------------------------+
372 |
373 | + (instancetype)spacingForLeading:(nullable NSCollectionLayoutSpacing *)leading
| `- note: calls to initializer 'init(leading:top:trailing:bottom:)' from outside of its actor context are implicitly asynchronous
374 | top:(nullable NSCollectionLayoutSpacing *)top
375 | trailing:(nullable NSCollectionLayoutSpacing *)trailing
/Users/admin/builder/spi-builder-workspace/Sources/CompositionalLayoutDSL/Public/Group/LayoutGroup.swift:144:47: warning: cannot form key path to main actor-isolated property 'edgeSpacing'; this is an error in the Swift 6 language mode
142 | @warn_unqualified_access
143 | public func edgeSpacing(_ edgeSpacing: NSCollectionLayoutEdgeSpacing) -> LayoutGroup {
144 | valueModifier(edgeSpacing, keyPath: \.edgeSpacing)
| `- warning: cannot form key path to main actor-isolated property 'edgeSpacing'; this is an error in the Swift 6 language mode
145 | }
146 | }
/Users/admin/builder/spi-builder-workspace/Sources/CompositionalLayoutDSL/Public/Group/VGroup.swift:30:17: warning: main actor-isolated default value in a nonisolated context; this is an error in the Swift 6 language mode
28 |
29 | /// Creates a group of the specified size, containing an array of items arranged in a vertical line.
30 | public init(width: NSCollectionLayoutDimension = .fractionalWidth(1),
| `- warning: main actor-isolated default value in a nonisolated context; this is an error in the Swift 6 language mode
31 | height: NSCollectionLayoutDimension = .fractionalHeight(1),
32 | @LayoutItemBuilder subItems: () -> [LayoutItem]) {
/Users/admin/builder/spi-builder-workspace/Sources/CompositionalLayoutDSL/Public/Group/VGroup.swift:31:17: warning: main actor-isolated default value in a nonisolated context; this is an error in the Swift 6 language mode
29 | /// Creates a group of the specified size, containing an array of items arranged in a vertical line.
30 | public init(width: NSCollectionLayoutDimension = .fractionalWidth(1),
31 | height: NSCollectionLayoutDimension = .fractionalHeight(1),
| `- warning: main actor-isolated default value in a nonisolated context; this is an error in the Swift 6 language mode
32 | @LayoutItemBuilder subItems: () -> [LayoutItem]) {
33 | self.widthDimension = width
/Users/admin/builder/spi-builder-workspace/Sources/CompositionalLayoutDSL/Public/Group/VGroup.swift:48:17: warning: main actor-isolated default value in a nonisolated context; this is an error in the Swift 6 language mode
46 | /// Creates a group of the specified size, containing an array of equally sized items arranged
47 | /// in a horizontal line up to the number specified by count.
48 | public init(width: NSCollectionLayoutDimension = .fractionalWidth(1),
| `- warning: main actor-isolated default value in a nonisolated context; this is an error in the Swift 6 language mode
49 | height: NSCollectionLayoutDimension = .fractionalHeight(1),
50 | count: Int,
/Users/admin/builder/spi-builder-workspace/Sources/CompositionalLayoutDSL/Public/Group/VGroup.swift:49:17: warning: main actor-isolated default value in a nonisolated context; this is an error in the Swift 6 language mode
47 | /// in a horizontal line up to the number specified by count.
48 | public init(width: NSCollectionLayoutDimension = .fractionalWidth(1),
49 | height: NSCollectionLayoutDimension = .fractionalHeight(1),
| `- warning: main actor-isolated default value in a nonisolated context; this is an error in the Swift 6 language mode
50 | count: Int,
51 | subItem: () -> LayoutItem) {
/Users/admin/builder/spi-builder-workspace/Sources/CompositionalLayoutDSL/Public/Group/VGroup.swift:41:36: warning: main actor-isolated property 'widthDimension' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
39 | public init(size: NSCollectionLayoutSize,
40 | @LayoutItemBuilder subItems: () -> [LayoutItem]) {
41 | self.widthDimension = size.widthDimension
| `- warning: main actor-isolated property 'widthDimension' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
42 | self.heightDimension = size.heightDimension
43 | self.subItems = .list(subItems())
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.4.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSCollectionViewCompositionalLayout.h:327:50: note: property declared here
325 | + (instancetype)new NS_UNAVAILABLE;
326 |
327 | @property(readonly) NSCollectionLayoutDimension *widthDimension;
| `- note: property declared here
328 | @property(readonly) NSCollectionLayoutDimension *heightDimension;
329 | @end
/Users/admin/builder/spi-builder-workspace/Sources/CompositionalLayoutDSL/Public/Group/VGroup.swift:42:37: warning: main actor-isolated property 'heightDimension' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
40 | @LayoutItemBuilder subItems: () -> [LayoutItem]) {
41 | self.widthDimension = size.widthDimension
42 | self.heightDimension = size.heightDimension
| `- warning: main actor-isolated property 'heightDimension' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
43 | self.subItems = .list(subItems())
44 | }
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.4.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSCollectionViewCompositionalLayout.h:328:50: note: property declared here
326 |
327 | @property(readonly) NSCollectionLayoutDimension *widthDimension;
328 | @property(readonly) NSCollectionLayoutDimension *heightDimension;
| `- note: property declared here
329 | @end
330 |
/Users/admin/builder/spi-builder-workspace/Sources/CompositionalLayoutDSL/Public/Group/VGroup.swift:62:36: warning: main actor-isolated property 'widthDimension' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
60 | count: Int,
61 | subItem: () -> LayoutItem) {
62 | self.widthDimension = size.widthDimension
| `- warning: main actor-isolated property 'widthDimension' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
63 | self.heightDimension = size.heightDimension
64 | self.subItems = .repeated(subItem(), count: count)
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.4.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSCollectionViewCompositionalLayout.h:327:50: note: property declared here
325 | + (instancetype)new NS_UNAVAILABLE;
326 |
327 | @property(readonly) NSCollectionLayoutDimension *widthDimension;
| `- note: property declared here
328 | @property(readonly) NSCollectionLayoutDimension *heightDimension;
329 | @end
/Users/admin/builder/spi-builder-workspace/Sources/CompositionalLayoutDSL/Public/Group/VGroup.swift:63:37: warning: main actor-isolated property 'heightDimension' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
61 | subItem: () -> LayoutItem) {
62 | self.widthDimension = size.widthDimension
63 | self.heightDimension = size.heightDimension
| `- warning: main actor-isolated property 'heightDimension' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
64 | self.subItems = .repeated(subItem(), count: count)
65 | }
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.4.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSCollectionViewCompositionalLayout.h:328:50: note: property declared here
326 |
327 | @property(readonly) NSCollectionLayoutDimension *widthDimension;
328 | @property(readonly) NSCollectionLayoutDimension *heightDimension;
| `- note: property declared here
329 | @end
330 |
/Users/admin/builder/spi-builder-workspace/Sources/CompositionalLayoutDSL/Public/Group/VGroup.swift:69:27: warning: call to main actor-isolated class method 'fractionalWidth' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
67 | /// Creates a group containing an array of items arranged in a vertical line.
68 | public init(@LayoutItemBuilder subItems: () -> [LayoutItem]) {
69 | self.init(width: .fractionalWidth(1), height: .fractionalHeight(1), subItems: subItems)
| `- warning: call to main actor-isolated class method 'fractionalWidth' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
70 | }
71 |
AppKit.NSCollectionLayoutDimension.fractionalWidth:2:28: note: calls to class method 'fractionalWidth' from outside of its actor context are implicitly asynchronous
1 | class NSCollectionLayoutDimension {
2 | @MainActor open class func fractionalWidth(_ fractionalWidth: CGFloat) -> Self}
| `- note: calls to class method 'fractionalWidth' from outside of its actor context are implicitly asynchronous
3 |
/Users/admin/builder/spi-builder-workspace/Sources/CompositionalLayoutDSL/Public/Group/VGroup.swift:69:56: warning: call to main actor-isolated class method 'fractionalHeight' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
67 | /// Creates a group containing an array of items arranged in a vertical line.
68 | public init(@LayoutItemBuilder subItems: () -> [LayoutItem]) {
69 | self.init(width: .fractionalWidth(1), height: .fractionalHeight(1), subItems: subItems)
| `- warning: call to main actor-isolated class method 'fractionalHeight' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
70 | }
71 |
AppKit.NSCollectionLayoutDimension.fractionalHeight:2:28: note: calls to class method 'fractionalHeight' from outside of its actor context are implicitly asynchronous
1 | class NSCollectionLayoutDimension {
2 | @MainActor open class func fractionalHeight(_ fractionalHeight: CGFloat) -> Self}
| `- note: calls to class method 'fractionalHeight' from outside of its actor context are implicitly asynchronous
3 |
/Users/admin/builder/spi-builder-workspace/Sources/CompositionalLayoutDSL/Public/Group/VGroup.swift:97:20: 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
94 |
95 | extension VGroup: BuildableGroup {
96 | func makeGroup() -> NSCollectionLayoutGroup {
| `- note: add '@MainActor' to make instance method 'makeGroup()' part of global actor 'MainActor'
97 | let size = NSCollectionLayoutSize(
| `- 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
98 | widthDimension: widthDimension,
99 | heightDimension: heightDimension
/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/CompositionalLayoutDSL/Public/Group/VGroup.swift:104:45: 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
94 |
95 | extension VGroup: BuildableGroup {
96 | func makeGroup() -> NSCollectionLayoutGroup {
| `- note: add '@MainActor' to make instance method 'makeGroup()' part of global actor 'MainActor'
97 | let size = NSCollectionLayoutSize(
98 | widthDimension: widthDimension,
:
102 | switch subItems {
103 | case let .list(items):
104 | group = NSCollectionLayoutGroup.vertical(
| `- 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
105 | layoutSize: size,
106 | subitems: items.map(ItemBuilder.make(from:))
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/CompositionalLayoutDSL/Public/Group/VGroup.swift:109:45: warning: call to main actor-isolated class method 'vertical(layoutSize:subitem:count:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
94 |
95 | extension VGroup: BuildableGroup {
96 | func makeGroup() -> NSCollectionLayoutGroup {
| `- note: add '@MainActor' to make instance method 'makeGroup()' part of global actor 'MainActor'
97 | let size = NSCollectionLayoutSize(
98 | widthDimension: widthDimension,
:
107 | )
108 | case let .repeated(item, count):
109 | group = NSCollectionLayoutGroup.vertical(
| `- warning: call to main actor-isolated class method 'vertical(layoutSize:subitem:count:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
110 | layoutSize: size,
111 | subitem: ItemBuilder.make(from: item),
AppKit.NSCollectionLayoutGroup.vertical:2:28: note: calls to class method 'vertical(layoutSize:subitem:count:)' from outside of its actor context are implicitly asynchronous
1 | class NSCollectionLayoutGroup {
2 | @MainActor open class func vertical(layoutSize: NSCollectionLayoutSize, subitem: NSCollectionLayoutItem, count: Int) -> Self}
| |- note: calls to class method 'vertical(layoutSize:subitem:count:)' 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/CompositionalLayoutDSL/Public/Item/Item.swift:34:17: warning: main actor-isolated default value in a nonisolated context; this is an error in the Swift 6 language mode
32 |
33 | /// Creates an item of the specified size
34 | public init(width: NSCollectionLayoutDimension = .fractionalWidth(1),
| `- warning: main actor-isolated default value in a nonisolated context; this is an error in the Swift 6 language mode
35 | height: NSCollectionLayoutDimension = .fractionalHeight(1)) {
36 | self.widthDimension = width
/Users/admin/builder/spi-builder-workspace/Sources/CompositionalLayoutDSL/Public/Item/Item.swift:35:17: warning: main actor-isolated default value in a nonisolated context; this is an error in the Swift 6 language mode
33 | /// Creates an item of the specified size
34 | public init(width: NSCollectionLayoutDimension = .fractionalWidth(1),
35 | height: NSCollectionLayoutDimension = .fractionalHeight(1)) {
| `- warning: main actor-isolated default value in a nonisolated context; this is an error in the Swift 6 language mode
36 | self.widthDimension = width
37 | self.heightDimension = height
/Users/admin/builder/spi-builder-workspace/Sources/CompositionalLayoutDSL/Public/Item/Item.swift:43:36: warning: main actor-isolated property 'widthDimension' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
41 | /// Creates an item of the specified size
42 | public init(size: NSCollectionLayoutSize) {
43 | self.widthDimension = size.widthDimension
| `- warning: main actor-isolated property 'widthDimension' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
44 | self.heightDimension = size.heightDimension
45 | self.supplementaryItems = []
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.4.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSCollectionViewCompositionalLayout.h:327:50: note: property declared here
325 | + (instancetype)new NS_UNAVAILABLE;
326 |
327 | @property(readonly) NSCollectionLayoutDimension *widthDimension;
| `- note: property declared here
328 | @property(readonly) NSCollectionLayoutDimension *heightDimension;
329 | @end
/Users/admin/builder/spi-builder-workspace/Sources/CompositionalLayoutDSL/Public/Item/Item.swift:44:37: warning: main actor-isolated property 'heightDimension' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
42 | public init(size: NSCollectionLayoutSize) {
43 | self.widthDimension = size.widthDimension
44 | self.heightDimension = size.heightDimension
| `- warning: main actor-isolated property 'heightDimension' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
45 | self.supplementaryItems = []
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:328:50: note: property declared here
326 |
327 | @property(readonly) NSCollectionLayoutDimension *widthDimension;
328 | @property(readonly) NSCollectionLayoutDimension *heightDimension;
| `- note: property declared here
329 | @end
330 |
/Users/admin/builder/spi-builder-workspace/Sources/CompositionalLayoutDSL/Public/Item/Item.swift:50:27: warning: call to main actor-isolated class method 'fractionalWidth' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
48 | /// Creates an item with an array of supplementary items to attach to the item.
49 | public init(@LayoutSupplementaryItemBuilder supplementaryItems: () -> [LayoutSupplementaryItem]) {
50 | self.init(width: .fractionalWidth(1), height: .fractionalHeight(1), supplementaryItems: supplementaryItems)
| `- warning: call to main actor-isolated class method 'fractionalWidth' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
51 | }
52 |
AppKit.NSCollectionLayoutDimension.fractionalWidth:2:28: note: calls to class method 'fractionalWidth' from outside of its actor context are implicitly asynchronous
1 | class NSCollectionLayoutDimension {
2 | @MainActor open class func fractionalWidth(_ fractionalWidth: CGFloat) -> Self}
| `- note: calls to class method 'fractionalWidth' from outside of its actor context are implicitly asynchronous
3 |
/Users/admin/builder/spi-builder-workspace/Sources/CompositionalLayoutDSL/Public/Item/Item.swift:50:56: warning: call to main actor-isolated class method 'fractionalHeight' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
48 | /// Creates an item with an array of supplementary items to attach to the item.
49 | public init(@LayoutSupplementaryItemBuilder supplementaryItems: () -> [LayoutSupplementaryItem]) {
50 | self.init(width: .fractionalWidth(1), height: .fractionalHeight(1), supplementaryItems: supplementaryItems)
| `- warning: call to main actor-isolated class method 'fractionalHeight' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
51 | }
52 |
AppKit.NSCollectionLayoutDimension.fractionalHeight:2:28: note: calls to class method 'fractionalHeight' from outside of its actor context are implicitly asynchronous
1 | class NSCollectionLayoutDimension {
2 | @MainActor open class func fractionalHeight(_ fractionalHeight: CGFloat) -> Self}
| `- note: calls to class method 'fractionalHeight' from outside of its actor context are implicitly asynchronous
3 |
/Users/admin/builder/spi-builder-workspace/Sources/CompositionalLayoutDSL/Public/Item/Item.swift:54:27: warning: call to main actor-isolated class method 'fractionalWidth' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
52 |
53 | public init() {
54 | self.init(width: .fractionalWidth(1), height: .fractionalHeight(1), supplementaryItems: { })
| `- warning: call to main actor-isolated class method 'fractionalWidth' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
55 | }
56 |
AppKit.NSCollectionLayoutDimension.fractionalWidth:2:28: note: calls to class method 'fractionalWidth' from outside of its actor context are implicitly asynchronous
1 | class NSCollectionLayoutDimension {
2 | @MainActor open class func fractionalWidth(_ fractionalWidth: CGFloat) -> Self}
| `- note: calls to class method 'fractionalWidth' from outside of its actor context are implicitly asynchronous
3 |
/Users/admin/builder/spi-builder-workspace/Sources/CompositionalLayoutDSL/Public/Item/Item.swift:54:56: warning: call to main actor-isolated class method 'fractionalHeight' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
52 |
53 | public init() {
54 | self.init(width: .fractionalWidth(1), height: .fractionalHeight(1), supplementaryItems: { })
| `- warning: call to main actor-isolated class method 'fractionalHeight' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
55 | }
56 |
AppKit.NSCollectionLayoutDimension.fractionalHeight:2:28: note: calls to class method 'fractionalHeight' from outside of its actor context are implicitly asynchronous
1 | class NSCollectionLayoutDimension {
2 | @MainActor open class func fractionalHeight(_ fractionalHeight: CGFloat) -> Self}
| `- note: calls to class method 'fractionalHeight' from outside of its actor context are implicitly asynchronous
3 |
/Users/admin/builder/spi-builder-workspace/Sources/CompositionalLayoutDSL/Public/Item/Item.swift:82:20: warning: call to main actor-isolated initializer 'init(layoutSize:supplementaryItems:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
79 |
80 | extension Item: BuildableItem {
81 | func makeItem() -> NSCollectionLayoutItem {
| `- note: add '@MainActor' to make instance method 'makeItem()' part of global actor 'MainActor'
82 | let item = NSCollectionLayoutItem(
| `- warning: call to main actor-isolated initializer 'init(layoutSize:supplementaryItems:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
83 | layoutSize: NSCollectionLayoutSize(widthDimension: widthDimension, heightDimension: heightDimension),
84 | supplementaryItems: supplementaryItems.map(SupplementaryItemBuilder.make(from:))
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.4.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSCollectionViewCompositionalLayout.h:163:1: note: calls to initializer 'init(layoutSize:supplementaryItems:)' from outside of its actor context are implicitly asynchronous
161 | @interface NSCollectionLayoutItem : NSObject<NSCopying>
162 | + (instancetype)itemWithLayoutSize:(NSCollectionLayoutSize*)layoutSize;
163 | + (instancetype)itemWithLayoutSize:(NSCollectionLayoutSize*)layoutSize supplementaryItems:(NSArray<NSCollectionLayoutSupplementaryItem*>*)supplementaryItems;
| `- note: calls to initializer 'init(layoutSize:supplementaryItems:)' from outside of its actor context are implicitly asynchronous
164 | - (instancetype)init NS_UNAVAILABLE;
165 | + (instancetype)new NS_UNAVAILABLE;
/Users/admin/builder/spi-builder-workspace/Sources/CompositionalLayoutDSL/Public/Item/Item.swift:83:25: 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
79 |
80 | extension Item: BuildableItem {
81 | func makeItem() -> NSCollectionLayoutItem {
| `- note: add '@MainActor' to make instance method 'makeItem()' part of global actor 'MainActor'
82 | let item = NSCollectionLayoutItem(
83 | layoutSize: NSCollectionLayoutSize(widthDimension: widthDimension, heightDimension: heightDimension),
| `- 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
84 | supplementaryItems: supplementaryItems.map(SupplementaryItemBuilder.make(from:))
85 | )
/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/CompositionalLayoutDSL/Public/Item/LayoutItem.swift:74:42: warning: cannot form key path to main actor-isolated property 'contentInsets'; this is an error in the Swift 6 language mode
72 | @warn_unqualified_access
73 | public func contentInsets(_ insets: NSDirectionalEdgeInsets) -> LayoutItem {
74 | valueModifier(insets, keyPath: \.contentInsets)
| `- warning: cannot form key path to main actor-isolated property 'contentInsets'; this is an error in the Swift 6 language mode
75 | }
76 | }
/Users/admin/builder/spi-builder-workspace/Sources/CompositionalLayoutDSL/Public/Item/LayoutItem.swift:109:13: warning: call to main actor-isolated initializer 'init(leading:top:trailing:bottom:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
100 | /// and this item's container.
101 | @warn_unqualified_access
102 | public func edgeSpacing(
| `- note: add '@MainActor' to make instance method 'edgeSpacing(top:leading:bottom:trailing:)' part of global actor 'MainActor'
103 | top: NSCollectionLayoutSpacing? = nil,
104 | leading: NSCollectionLayoutSpacing? = nil,
:
107 | ) -> LayoutItem {
108 | return self.edgeSpacing(
109 | NSCollectionLayoutEdgeSpacing(leading: leading, top: top, trailing: trailing, bottom: bottom)
| `- warning: call to main actor-isolated initializer 'init(leading:top:trailing:bottom:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
110 | )
111 | }
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.4.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSCollectionViewCompositionalLayout.h:373:1: note: calls to initializer 'init(leading:top:trailing:bottom:)' from outside of its actor context are implicitly asynchronous
371 | // +-----------------------------------------------------------------------------------------+
372 |
373 | + (instancetype)spacingForLeading:(nullable NSCollectionLayoutSpacing *)leading
| `- note: calls to initializer 'init(leading:top:trailing:bottom:)' from outside of its actor context are implicitly asynchronous
374 | top:(nullable NSCollectionLayoutSpacing *)top
375 | trailing:(nullable NSCollectionLayoutSpacing *)trailing
/Users/admin/builder/spi-builder-workspace/Sources/CompositionalLayoutDSL/Public/Item/LayoutItem.swift:117:47: warning: cannot form key path to main actor-isolated property 'edgeSpacing'; this is an error in the Swift 6 language mode
115 | @warn_unqualified_access
116 | public func edgeSpacing(_ edgeSpacing: NSCollectionLayoutEdgeSpacing) -> LayoutItem {
117 | valueModifier(edgeSpacing, keyPath: \.edgeSpacing)
| `- warning: cannot form key path to main actor-isolated property 'edgeSpacing'; this is an error in the Swift 6 language mode
118 | }
119 | }
[39/42] Compiling CompositionalLayoutDSL BoundarySupplementaryItemBuilder.swift
[40/42] Compiling CompositionalLayoutDSL ConfigurationBuilder.swift
[41/42] Compiling CompositionalLayoutDSL DecorationItemBuilder.swift
[42/42] Compiling CompositionalLayoutDSL GroupBuilder.swift
Build complete! (18.61s)
Build complete.
{
"dependencies" : [
{
"identity" : "swift-docc-plugin",
"requirement" : {
"range" : [
{
"lower_bound" : "1.3.0",
"upper_bound" : "2.0.0"
}
]
},
"type" : "sourceControl",
"url" : "https://github.com/apple/swift-docc-plugin"
}
],
"manifest_display_name" : "CompositionalLayoutDSL",
"name" : "CompositionalLayoutDSL",
"path" : "/Users/admin/builder/spi-builder-workspace",
"platforms" : [
{
"name" : "ios",
"version" : "13.0"
},
{
"name" : "tvos",
"version" : "13.0"
},
{
"name" : "macos",
"version" : "10.15"
}
],
"products" : [
{
"name" : "CompositionalLayoutDSL",
"targets" : [
"CompositionalLayoutDSL"
],
"type" : {
"library" : [
"automatic"
]
}
}
],
"targets" : [
{
"c99name" : "CompositionalLayoutDSL",
"module_type" : "SwiftTarget",
"name" : "CompositionalLayoutDSL",
"path" : "Sources/CompositionalLayoutDSL",
"product_memberships" : [
"CompositionalLayoutDSL"
],
"sources" : [
"Internal/Builders/BoundarySupplementaryItemBuilder.swift",
"Internal/Builders/ConfigurationBuilder.swift",
"Internal/Builders/DecorationItemBuilder.swift",
"Internal/Builders/GroupBuilder.swift",
"Internal/Builders/ItemBuilder.swift",
"Internal/Builders/SectionBuilder.swift",
"Internal/Builders/SupplementaryItemBuilder.swift",
"Internal/ModifiedLayout/ModifiedLayoutBoundarySupplementaryItem.swift",
"Internal/ModifiedLayout/ModifiedLayoutConfiguration.swift",
"Internal/ModifiedLayout/ModifiedLayoutDecorationItem.swift",
"Internal/ModifiedLayout/ModifiedLayoutGroup.swift",
"Internal/ModifiedLayout/ModifiedLayoutItem.swift",
"Internal/ModifiedLayout/ModifiedLayoutSection.swift",
"Internal/ModifiedLayout/ModifiedLayoutSupplementaryItem.swift",
"Public/BoundarySupplementaryItem/BoundarySupplementaryItem.swift",
"Public/BoundarySupplementaryItem/LayoutBoundarySupplementaryItem.swift",
"Public/CompositionalLayout.swift",
"Public/CompositionalLayoutDSL.swift",
"Public/Configuration/Configuration.swift",
"Public/Configuration/LayoutConfiguration.swift",
"Public/DecorationItem/DecorationItem.swift",
"Public/DecorationItem/LayoutDecorationItem.swift",
"Public/Group/CustomGroup.swift",
"Public/Group/HGroup.swift",
"Public/Group/LayoutGroup.swift",
"Public/Group/VGroup.swift",
"Public/Item/Item.swift",
"Public/Item/LayoutItem.swift",
"Public/ResizableItem.swift",
"Public/ResultBuilders.swift",
"Public/Section/LayoutSection.swift",
"Public/Section/ListSection.swift",
"Public/Section/RawSection.swift",
"Public/Section/Section.swift",
"Public/SupplementaryItem/LayoutSupplementaryItem.swift",
"Public/SupplementaryItem/SupplementaryItem.swift",
"Public/Utils.swift"
],
"type" : "library"
}
],
"tools_version" : "5.2"
}
Done.