Build Information
Failed to build CompositionalLayoutDSL, reference v0.2.0 (3b1c5a
), with Swift 6.0 for macOS (SPM) on 30 Nov 2024 02:08:52 UTC.
Build Command
env DEVELOPER_DIR=/Applications/Xcode-16.1.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
106 | subitems: items.map(ItemBuilder.make(from:))
AppKit.NSCollectionLayoutGroup:6:21: note: calls to class method 'horizontal(layoutSize:subitems:)' from outside of its actor context are implicitly asynchronous
4 | @available(swift, obsoleted: 3, renamed: "horizontal(layoutSize:subitem:count:)")
5 | open class func horizontalGroupWithLayoutSize(_ layoutSize: NSCollectionLayoutSize, subitem: NSCollectionLayoutItem, count: Int) -> Self
6 | 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
7 | @available(swift, obsoleted: 3, renamed: "horizontal(layoutSize:subitems:)")
8 | open class func horizontalGroupWithLayoutSize(_ layoutSize: NSCollectionLayoutSize, subitems: [NSCollectionLayoutItem]) -> Self
/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:3:21: note: calls to class method 'horizontal(layoutSize:subitem:count:)' from outside of its actor context are implicitly asynchronous
1 | @available(macOS 10.15, *)
2 | @MainActor open class NSCollectionLayoutGroup : NSCollectionLayoutItem, NSCopying {
3 | 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
4 | @available(swift, obsoleted: 3, renamed: "horizontal(layoutSize:subitem:count:)")
5 | open class func horizontalGroupWithLayoutSize(_ layoutSize: NSCollectionLayoutSize, subitem: NSCollectionLayoutItem, count: Int) -> Self
[35/42] Compiling CompositionalLayoutDSL ModifiedLayoutSection.swift
/Users/admin/builder/spi-builder-workspace/Sources/CompositionalLayoutDSL/Public/BoundarySupplementaryItem/BoundarySupplementaryItem.swift:29:17: error: main actor-isolated default value in a nonisolated context
27 | /// Creates a boundary supplementary item of the specified size, with a string to identify the
28 | /// element kind.
29 | public init(width: NSCollectionLayoutDimension = .fractionalWidth(1),
| `- error: main actor-isolated default value in a nonisolated context
30 | height: NSCollectionLayoutDimension = .fractionalHeight(1),
31 | elementKind: String) {
/Users/admin/builder/spi-builder-workspace/Sources/CompositionalLayoutDSL/Public/BoundarySupplementaryItem/BoundarySupplementaryItem.swift:30:17: error: main actor-isolated default value in a nonisolated context
28 | /// element kind.
29 | public init(width: NSCollectionLayoutDimension = .fractionalWidth(1),
30 | height: NSCollectionLayoutDimension = .fractionalHeight(1),
| `- error: main actor-isolated default value in a nonisolated context
31 | elementKind: String) {
32 | self.widthDimension = width
/Users/admin/builder/spi-builder-workspace/Sources/CompositionalLayoutDSL/Public/BoundarySupplementaryItem/BoundarySupplementaryItem.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 | elementKind: String) {
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.elementKind = elementKind
AppKit.NSCollectionLayoutSize:10:25: note: property declared here
8 | @available(*, unavailable)
9 | open class func new() -> Self
10 | @MainActor open var widthDimension: NSCollectionLayoutDimension { get }
| `- note: property declared here
11 | open var heightDimension: NSCollectionLayoutDimension { get }
12 | @available(macOS 10.15, *)
/Users/admin/builder/spi-builder-workspace/Sources/CompositionalLayoutDSL/Public/BoundarySupplementaryItem/BoundarySupplementaryItem.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 | elementKind: String) {
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.elementKind = elementKind
44 | }
AppKit.NSCollectionLayoutSize:11:14: note: property declared here
9 | open class func new() -> Self
10 | @MainActor open var widthDimension: NSCollectionLayoutDimension { get }
11 | open var heightDimension: NSCollectionLayoutDimension { get }
| `- note: property declared here
12 | @available(macOS 10.15, *)
13 | open func copy(with zone: NSZone? = nil) -> Any
/Users/admin/builder/spi-builder-workspace/Sources/CompositionalLayoutDSL/Public/BoundarySupplementaryItem/BoundarySupplementaryItem.swift:84:41: warning: call to main actor-isolated initializer 'init(layoutSize:elementKind:alignment:absoluteOffset:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
81 |
82 | extension BoundarySupplementaryItem: BuildableBoundarySupplementaryItem {
83 | func makeBoundarySupplementaryItem() -> NSCollectionLayoutBoundarySupplementaryItem {
| `- note: add '@MainActor' to make instance method 'makeBoundarySupplementaryItem()' part of global actor 'MainActor'
84 | let boundarySupplementaryItem = NSCollectionLayoutBoundarySupplementaryItem(
| `- warning: call to main actor-isolated initializer 'init(layoutSize:elementKind:alignment:absoluteOffset:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
85 | layoutSize: NSCollectionLayoutSize(
86 | widthDimension: widthDimension,
AppKit.NSCollectionLayoutBoundarySupplementaryItem:6:35: note: calls to initializer 'init(layoutSize:elementKind:alignment:absoluteOffset:)' from outside of its actor context are implicitly asynchronous
4 | @available(*, unavailable, renamed: "init(layoutSize:elementKind:alignment:)", message: "Not available in Swift")
5 | open class func boundarySupplementaryItemWithLayoutSize(_ layoutSize: NSCollectionLayoutSize, elementKind: String, alignment: NSRectAlignment) -> Self
6 | @MainActor public convenience init(layoutSize: NSCollectionLayoutSize, elementKind: String, alignment: NSRectAlignment, absoluteOffset: NSPoint)
| `- note: calls to initializer 'init(layoutSize:elementKind:alignment:absoluteOffset:)' from outside of its actor context are implicitly asynchronous
7 | @available(*, unavailable, renamed: "init(layoutSize:elementKind:alignment:absoluteOffset:)", message: "Not available in Swift")
8 | open class func boundarySupplementaryItemWithLayoutSize(_ layoutSize: NSCollectionLayoutSize, elementKind: String, alignment: NSRectAlignment, absoluteOffset: NSPoint) -> Self
/Users/admin/builder/spi-builder-workspace/Sources/CompositionalLayoutDSL/Public/BoundarySupplementaryItem/BoundarySupplementaryItem.swift:85: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
81 |
82 | extension BoundarySupplementaryItem: BuildableBoundarySupplementaryItem {
83 | func makeBoundarySupplementaryItem() -> NSCollectionLayoutBoundarySupplementaryItem {
| `- note: add '@MainActor' to make instance method 'makeBoundarySupplementaryItem()' part of global actor 'MainActor'
84 | let boundarySupplementaryItem = NSCollectionLayoutBoundarySupplementaryItem(
85 | layoutSize: 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
86 | widthDimension: widthDimension,
87 | heightDimension: heightDimension
AppKit.NSCollectionLayoutSize:3:24: note: calls to initializer 'init(widthDimension:heightDimension:)' from outside of its actor context are implicitly asynchronous
1 | @available(macOS 10.15, *)
2 | @MainActor open class NSCollectionLayoutSize : NSObject, NSCopying {
3 | public convenience init(widthDimension width: NSCollectionLayoutDimension, heightDimension height: NSCollectionLayoutDimension)
| `- note: calls to initializer 'init(widthDimension:heightDimension:)' from outside of its actor context are implicitly asynchronous
4 | @available(*, unavailable, renamed: "init(widthDimension:heightDimension:)", message: "Not available in Swift")
5 | open class func sizeWithWidthDimension(_ width: NSCollectionLayoutDimension, heightDimension height: NSCollectionLayoutDimension) -> Self
/Users/admin/builder/spi-builder-workspace/Sources/CompositionalLayoutDSL/Public/BoundarySupplementaryItem/LayoutBoundarySupplementaryItem.swift:54:51: warning: cannot form key path to main actor-isolated property 'extendsBoundary'; this is an error in the Swift 6 language mode
52 | @warn_unqualified_access
53 | public func extendsBoundary(_ extendsBoundary: Bool) -> LayoutBoundarySupplementaryItem {
54 | valueModifier(extendsBoundary, keyPath: \.extendsBoundary)
| `- warning: cannot form key path to main actor-isolated property 'extendsBoundary'; this is an error in the Swift 6 language mode
55 | }
56 |
/Users/admin/builder/spi-builder-workspace/Sources/CompositionalLayoutDSL/Public/BoundarySupplementaryItem/LayoutBoundarySupplementaryItem.swift:68:54: warning: cannot form key path to main actor-isolated property 'pinToVisibleBounds'; this is an error in the Swift 6 language mode
66 | @warn_unqualified_access
67 | public func pinToVisibleBounds(_ pinToVisibleBounds: Bool) -> LayoutBoundarySupplementaryItem {
68 | valueModifier(pinToVisibleBounds, keyPath: \.pinToVisibleBounds)
| `- warning: cannot form key path to main actor-isolated property 'pinToVisibleBounds'; this is an error in the Swift 6 language mode
69 | }
70 | }
/Users/admin/builder/spi-builder-workspace/Sources/CompositionalLayoutDSL/Public/BoundarySupplementaryItem/LayoutBoundarySupplementaryItem.swift:82:42: warning: cannot form key path to main actor-isolated property 'zIndex'; this is an error in the Swift 6 language mode
80 | @warn_unqualified_access
81 | public func zIndex(zIndex: Int) -> LayoutBoundarySupplementaryItem {
82 | valueModifier(zIndex, keyPath: \.zIndex)
| `- warning: cannot form key path to main actor-isolated property 'zIndex'; this is an error in the Swift 6 language mode
83 | }
84 | }
/Users/admin/builder/spi-builder-workspace/Sources/CompositionalLayoutDSL/Public/BoundarySupplementaryItem/LayoutBoundarySupplementaryItem.swift:122:42: warning: cannot form key path to main actor-isolated property 'contentInsets'; this is an error in the Swift 6 language mode
120 | @warn_unqualified_access
121 | public func contentInsets(_ insets: NSDirectionalEdgeInsets) -> LayoutBoundarySupplementaryItem {
122 | 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
123 | }
124 | }
/Users/admin/builder/spi-builder-workspace/Sources/CompositionalLayoutDSL/Public/BoundarySupplementaryItem/LayoutBoundarySupplementaryItem.swift:157: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
148 | /// and this item's container.
149 | @warn_unqualified_access
150 | public func edgeSpacing(
| `- note: add '@MainActor' to make instance method 'edgeSpacing(top:leading:bottom:trailing:)' part of global actor 'MainActor'
151 | top: NSCollectionLayoutSpacing? = nil,
152 | leading: NSCollectionLayoutSpacing? = nil,
:
155 | ) -> LayoutBoundarySupplementaryItem {
156 | return self.edgeSpacing(
157 | 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
158 | )
159 | }
AppKit.NSCollectionLayoutEdgeSpacing:3:35: note: calls to initializer 'init(leading:top:trailing:bottom:)' from outside of its actor context are implicitly asynchronous
1 | @available(macOS 10.15, *)
2 | @MainActor open class NSCollectionLayoutEdgeSpacing : NSObject, NSCopying {
3 | @MainActor public convenience init(leading: NSCollectionLayoutSpacing?, top: NSCollectionLayoutSpacing?, trailing: NSCollectionLayoutSpacing?, bottom: NSCollectionLayoutSpacing?)
| `- note: calls to initializer 'init(leading:top:trailing:bottom:)' from outside of its actor context are implicitly asynchronous
4 | @available(swift, obsoleted: 3, renamed: "init(leading:top:trailing:bottom:)")
5 | public convenience init(forLeading leading: NSCollectionLayoutSpacing?, top: NSCollectionLayoutSpacing?, trailing: NSCollectionLayoutSpacing?, bottom: NSCollectionLayoutSpacing?)
/Users/admin/builder/spi-builder-workspace/Sources/CompositionalLayoutDSL/Public/BoundarySupplementaryItem/LayoutBoundarySupplementaryItem.swift:165:47: warning: cannot form key path to main actor-isolated property 'edgeSpacing'; this is an error in the Swift 6 language mode
163 | @warn_unqualified_access
164 | public func edgeSpacing(_ edgeSpacing: NSCollectionLayoutEdgeSpacing) -> LayoutBoundarySupplementaryItem {
165 | 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
166 | }
167 | }
[36/42] Compiling CompositionalLayoutDSL ModifiedLayoutSupplementaryItem.swift
/Users/admin/builder/spi-builder-workspace/Sources/CompositionalLayoutDSL/Public/BoundarySupplementaryItem/BoundarySupplementaryItem.swift:29:17: error: main actor-isolated default value in a nonisolated context
27 | /// Creates a boundary supplementary item of the specified size, with a string to identify the
28 | /// element kind.
29 | public init(width: NSCollectionLayoutDimension = .fractionalWidth(1),
| `- error: main actor-isolated default value in a nonisolated context
30 | height: NSCollectionLayoutDimension = .fractionalHeight(1),
31 | elementKind: String) {
/Users/admin/builder/spi-builder-workspace/Sources/CompositionalLayoutDSL/Public/BoundarySupplementaryItem/BoundarySupplementaryItem.swift:30:17: error: main actor-isolated default value in a nonisolated context
28 | /// element kind.
29 | public init(width: NSCollectionLayoutDimension = .fractionalWidth(1),
30 | height: NSCollectionLayoutDimension = .fractionalHeight(1),
| `- error: main actor-isolated default value in a nonisolated context
31 | elementKind: String) {
32 | self.widthDimension = width
/Users/admin/builder/spi-builder-workspace/Sources/CompositionalLayoutDSL/Public/BoundarySupplementaryItem/BoundarySupplementaryItem.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 | elementKind: String) {
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.elementKind = elementKind
AppKit.NSCollectionLayoutSize:10:25: note: property declared here
8 | @available(*, unavailable)
9 | open class func new() -> Self
10 | @MainActor open var widthDimension: NSCollectionLayoutDimension { get }
| `- note: property declared here
11 | open var heightDimension: NSCollectionLayoutDimension { get }
12 | @available(macOS 10.15, *)
/Users/admin/builder/spi-builder-workspace/Sources/CompositionalLayoutDSL/Public/BoundarySupplementaryItem/BoundarySupplementaryItem.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 | elementKind: String) {
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.elementKind = elementKind
44 | }
AppKit.NSCollectionLayoutSize:11:14: note: property declared here
9 | open class func new() -> Self
10 | @MainActor open var widthDimension: NSCollectionLayoutDimension { get }
11 | open var heightDimension: NSCollectionLayoutDimension { get }
| `- note: property declared here
12 | @available(macOS 10.15, *)
13 | open func copy(with zone: NSZone? = nil) -> Any
/Users/admin/builder/spi-builder-workspace/Sources/CompositionalLayoutDSL/Public/BoundarySupplementaryItem/BoundarySupplementaryItem.swift:84:41: warning: call to main actor-isolated initializer 'init(layoutSize:elementKind:alignment:absoluteOffset:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
81 |
82 | extension BoundarySupplementaryItem: BuildableBoundarySupplementaryItem {
83 | func makeBoundarySupplementaryItem() -> NSCollectionLayoutBoundarySupplementaryItem {
| `- note: add '@MainActor' to make instance method 'makeBoundarySupplementaryItem()' part of global actor 'MainActor'
84 | let boundarySupplementaryItem = NSCollectionLayoutBoundarySupplementaryItem(
| `- warning: call to main actor-isolated initializer 'init(layoutSize:elementKind:alignment:absoluteOffset:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
85 | layoutSize: NSCollectionLayoutSize(
86 | widthDimension: widthDimension,
AppKit.NSCollectionLayoutBoundarySupplementaryItem:6:35: note: calls to initializer 'init(layoutSize:elementKind:alignment:absoluteOffset:)' from outside of its actor context are implicitly asynchronous
4 | @available(*, unavailable, renamed: "init(layoutSize:elementKind:alignment:)", message: "Not available in Swift")
5 | open class func boundarySupplementaryItemWithLayoutSize(_ layoutSize: NSCollectionLayoutSize, elementKind: String, alignment: NSRectAlignment) -> Self
6 | @MainActor public convenience init(layoutSize: NSCollectionLayoutSize, elementKind: String, alignment: NSRectAlignment, absoluteOffset: NSPoint)
| `- note: calls to initializer 'init(layoutSize:elementKind:alignment:absoluteOffset:)' from outside of its actor context are implicitly asynchronous
7 | @available(*, unavailable, renamed: "init(layoutSize:elementKind:alignment:absoluteOffset:)", message: "Not available in Swift")
8 | open class func boundarySupplementaryItemWithLayoutSize(_ layoutSize: NSCollectionLayoutSize, elementKind: String, alignment: NSRectAlignment, absoluteOffset: NSPoint) -> Self
/Users/admin/builder/spi-builder-workspace/Sources/CompositionalLayoutDSL/Public/BoundarySupplementaryItem/BoundarySupplementaryItem.swift:85: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
81 |
82 | extension BoundarySupplementaryItem: BuildableBoundarySupplementaryItem {
83 | func makeBoundarySupplementaryItem() -> NSCollectionLayoutBoundarySupplementaryItem {
| `- note: add '@MainActor' to make instance method 'makeBoundarySupplementaryItem()' part of global actor 'MainActor'
84 | let boundarySupplementaryItem = NSCollectionLayoutBoundarySupplementaryItem(
85 | layoutSize: 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
86 | widthDimension: widthDimension,
87 | heightDimension: heightDimension
AppKit.NSCollectionLayoutSize:3:24: note: calls to initializer 'init(widthDimension:heightDimension:)' from outside of its actor context are implicitly asynchronous
1 | @available(macOS 10.15, *)
2 | @MainActor open class NSCollectionLayoutSize : NSObject, NSCopying {
3 | public convenience init(widthDimension width: NSCollectionLayoutDimension, heightDimension height: NSCollectionLayoutDimension)
| `- note: calls to initializer 'init(widthDimension:heightDimension:)' from outside of its actor context are implicitly asynchronous
4 | @available(*, unavailable, renamed: "init(widthDimension:heightDimension:)", message: "Not available in Swift")
5 | open class func sizeWithWidthDimension(_ width: NSCollectionLayoutDimension, heightDimension height: NSCollectionLayoutDimension) -> Self
/Users/admin/builder/spi-builder-workspace/Sources/CompositionalLayoutDSL/Public/BoundarySupplementaryItem/LayoutBoundarySupplementaryItem.swift:54:51: warning: cannot form key path to main actor-isolated property 'extendsBoundary'; this is an error in the Swift 6 language mode
52 | @warn_unqualified_access
53 | public func extendsBoundary(_ extendsBoundary: Bool) -> LayoutBoundarySupplementaryItem {
54 | valueModifier(extendsBoundary, keyPath: \.extendsBoundary)
| `- warning: cannot form key path to main actor-isolated property 'extendsBoundary'; this is an error in the Swift 6 language mode
55 | }
56 |
/Users/admin/builder/spi-builder-workspace/Sources/CompositionalLayoutDSL/Public/BoundarySupplementaryItem/LayoutBoundarySupplementaryItem.swift:68:54: warning: cannot form key path to main actor-isolated property 'pinToVisibleBounds'; this is an error in the Swift 6 language mode
66 | @warn_unqualified_access
67 | public func pinToVisibleBounds(_ pinToVisibleBounds: Bool) -> LayoutBoundarySupplementaryItem {
68 | valueModifier(pinToVisibleBounds, keyPath: \.pinToVisibleBounds)
| `- warning: cannot form key path to main actor-isolated property 'pinToVisibleBounds'; this is an error in the Swift 6 language mode
69 | }
70 | }
/Users/admin/builder/spi-builder-workspace/Sources/CompositionalLayoutDSL/Public/BoundarySupplementaryItem/LayoutBoundarySupplementaryItem.swift:82:42: warning: cannot form key path to main actor-isolated property 'zIndex'; this is an error in the Swift 6 language mode
80 | @warn_unqualified_access
81 | public func zIndex(zIndex: Int) -> LayoutBoundarySupplementaryItem {
82 | valueModifier(zIndex, keyPath: \.zIndex)
| `- warning: cannot form key path to main actor-isolated property 'zIndex'; this is an error in the Swift 6 language mode
83 | }
84 | }
/Users/admin/builder/spi-builder-workspace/Sources/CompositionalLayoutDSL/Public/BoundarySupplementaryItem/LayoutBoundarySupplementaryItem.swift:122:42: warning: cannot form key path to main actor-isolated property 'contentInsets'; this is an error in the Swift 6 language mode
120 | @warn_unqualified_access
121 | public func contentInsets(_ insets: NSDirectionalEdgeInsets) -> LayoutBoundarySupplementaryItem {
122 | 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
123 | }
124 | }
/Users/admin/builder/spi-builder-workspace/Sources/CompositionalLayoutDSL/Public/BoundarySupplementaryItem/LayoutBoundarySupplementaryItem.swift:157: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
148 | /// and this item's container.
149 | @warn_unqualified_access
150 | public func edgeSpacing(
| `- note: add '@MainActor' to make instance method 'edgeSpacing(top:leading:bottom:trailing:)' part of global actor 'MainActor'
151 | top: NSCollectionLayoutSpacing? = nil,
152 | leading: NSCollectionLayoutSpacing? = nil,
:
155 | ) -> LayoutBoundarySupplementaryItem {
156 | return self.edgeSpacing(
157 | 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
158 | )
159 | }
AppKit.NSCollectionLayoutEdgeSpacing:3:35: note: calls to initializer 'init(leading:top:trailing:bottom:)' from outside of its actor context are implicitly asynchronous
1 | @available(macOS 10.15, *)
2 | @MainActor open class NSCollectionLayoutEdgeSpacing : NSObject, NSCopying {
3 | @MainActor public convenience init(leading: NSCollectionLayoutSpacing?, top: NSCollectionLayoutSpacing?, trailing: NSCollectionLayoutSpacing?, bottom: NSCollectionLayoutSpacing?)
| `- note: calls to initializer 'init(leading:top:trailing:bottom:)' from outside of its actor context are implicitly asynchronous
4 | @available(swift, obsoleted: 3, renamed: "init(leading:top:trailing:bottom:)")
5 | public convenience init(forLeading leading: NSCollectionLayoutSpacing?, top: NSCollectionLayoutSpacing?, trailing: NSCollectionLayoutSpacing?, bottom: NSCollectionLayoutSpacing?)
/Users/admin/builder/spi-builder-workspace/Sources/CompositionalLayoutDSL/Public/BoundarySupplementaryItem/LayoutBoundarySupplementaryItem.swift:165:47: warning: cannot form key path to main actor-isolated property 'edgeSpacing'; this is an error in the Swift 6 language mode
163 | @warn_unqualified_access
164 | public func edgeSpacing(_ edgeSpacing: NSCollectionLayoutEdgeSpacing) -> LayoutBoundarySupplementaryItem {
165 | 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
166 | }
167 | }
[37/42] Compiling CompositionalLayoutDSL BoundarySupplementaryItem.swift
/Users/admin/builder/spi-builder-workspace/Sources/CompositionalLayoutDSL/Public/BoundarySupplementaryItem/BoundarySupplementaryItem.swift:29:17: error: main actor-isolated default value in a nonisolated context
27 | /// Creates a boundary supplementary item of the specified size, with a string to identify the
28 | /// element kind.
29 | public init(width: NSCollectionLayoutDimension = .fractionalWidth(1),
| `- error: main actor-isolated default value in a nonisolated context
30 | height: NSCollectionLayoutDimension = .fractionalHeight(1),
31 | elementKind: String) {
/Users/admin/builder/spi-builder-workspace/Sources/CompositionalLayoutDSL/Public/BoundarySupplementaryItem/BoundarySupplementaryItem.swift:30:17: error: main actor-isolated default value in a nonisolated context
28 | /// element kind.
29 | public init(width: NSCollectionLayoutDimension = .fractionalWidth(1),
30 | height: NSCollectionLayoutDimension = .fractionalHeight(1),
| `- error: main actor-isolated default value in a nonisolated context
31 | elementKind: String) {
32 | self.widthDimension = width
/Users/admin/builder/spi-builder-workspace/Sources/CompositionalLayoutDSL/Public/BoundarySupplementaryItem/BoundarySupplementaryItem.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 | elementKind: String) {
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.elementKind = elementKind
AppKit.NSCollectionLayoutSize:10:25: note: property declared here
8 | @available(*, unavailable)
9 | open class func new() -> Self
10 | @MainActor open var widthDimension: NSCollectionLayoutDimension { get }
| `- note: property declared here
11 | open var heightDimension: NSCollectionLayoutDimension { get }
12 | @available(macOS 10.15, *)
/Users/admin/builder/spi-builder-workspace/Sources/CompositionalLayoutDSL/Public/BoundarySupplementaryItem/BoundarySupplementaryItem.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 | elementKind: String) {
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.elementKind = elementKind
44 | }
AppKit.NSCollectionLayoutSize:11:14: note: property declared here
9 | open class func new() -> Self
10 | @MainActor open var widthDimension: NSCollectionLayoutDimension { get }
11 | open var heightDimension: NSCollectionLayoutDimension { get }
| `- note: property declared here
12 | @available(macOS 10.15, *)
13 | open func copy(with zone: NSZone? = nil) -> Any
/Users/admin/builder/spi-builder-workspace/Sources/CompositionalLayoutDSL/Public/BoundarySupplementaryItem/BoundarySupplementaryItem.swift:84:41: warning: call to main actor-isolated initializer 'init(layoutSize:elementKind:alignment:absoluteOffset:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
81 |
82 | extension BoundarySupplementaryItem: BuildableBoundarySupplementaryItem {
83 | func makeBoundarySupplementaryItem() -> NSCollectionLayoutBoundarySupplementaryItem {
| `- note: add '@MainActor' to make instance method 'makeBoundarySupplementaryItem()' part of global actor 'MainActor'
84 | let boundarySupplementaryItem = NSCollectionLayoutBoundarySupplementaryItem(
| `- warning: call to main actor-isolated initializer 'init(layoutSize:elementKind:alignment:absoluteOffset:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
85 | layoutSize: NSCollectionLayoutSize(
86 | widthDimension: widthDimension,
AppKit.NSCollectionLayoutBoundarySupplementaryItem:6:35: note: calls to initializer 'init(layoutSize:elementKind:alignment:absoluteOffset:)' from outside of its actor context are implicitly asynchronous
4 | @available(*, unavailable, renamed: "init(layoutSize:elementKind:alignment:)", message: "Not available in Swift")
5 | open class func boundarySupplementaryItemWithLayoutSize(_ layoutSize: NSCollectionLayoutSize, elementKind: String, alignment: NSRectAlignment) -> Self
6 | @MainActor public convenience init(layoutSize: NSCollectionLayoutSize, elementKind: String, alignment: NSRectAlignment, absoluteOffset: NSPoint)
| `- note: calls to initializer 'init(layoutSize:elementKind:alignment:absoluteOffset:)' from outside of its actor context are implicitly asynchronous
7 | @available(*, unavailable, renamed: "init(layoutSize:elementKind:alignment:absoluteOffset:)", message: "Not available in Swift")
8 | open class func boundarySupplementaryItemWithLayoutSize(_ layoutSize: NSCollectionLayoutSize, elementKind: String, alignment: NSRectAlignment, absoluteOffset: NSPoint) -> Self
/Users/admin/builder/spi-builder-workspace/Sources/CompositionalLayoutDSL/Public/BoundarySupplementaryItem/BoundarySupplementaryItem.swift:85: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
81 |
82 | extension BoundarySupplementaryItem: BuildableBoundarySupplementaryItem {
83 | func makeBoundarySupplementaryItem() -> NSCollectionLayoutBoundarySupplementaryItem {
| `- note: add '@MainActor' to make instance method 'makeBoundarySupplementaryItem()' part of global actor 'MainActor'
84 | let boundarySupplementaryItem = NSCollectionLayoutBoundarySupplementaryItem(
85 | layoutSize: 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
86 | widthDimension: widthDimension,
87 | heightDimension: heightDimension
AppKit.NSCollectionLayoutSize:3:24: note: calls to initializer 'init(widthDimension:heightDimension:)' from outside of its actor context are implicitly asynchronous
1 | @available(macOS 10.15, *)
2 | @MainActor open class NSCollectionLayoutSize : NSObject, NSCopying {
3 | public convenience init(widthDimension width: NSCollectionLayoutDimension, heightDimension height: NSCollectionLayoutDimension)
| `- note: calls to initializer 'init(widthDimension:heightDimension:)' from outside of its actor context are implicitly asynchronous
4 | @available(*, unavailable, renamed: "init(widthDimension:heightDimension:)", message: "Not available in Swift")
5 | open class func sizeWithWidthDimension(_ width: NSCollectionLayoutDimension, heightDimension height: NSCollectionLayoutDimension) -> Self
/Users/admin/builder/spi-builder-workspace/Sources/CompositionalLayoutDSL/Public/BoundarySupplementaryItem/LayoutBoundarySupplementaryItem.swift:54:51: warning: cannot form key path to main actor-isolated property 'extendsBoundary'; this is an error in the Swift 6 language mode
52 | @warn_unqualified_access
53 | public func extendsBoundary(_ extendsBoundary: Bool) -> LayoutBoundarySupplementaryItem {
54 | valueModifier(extendsBoundary, keyPath: \.extendsBoundary)
| `- warning: cannot form key path to main actor-isolated property 'extendsBoundary'; this is an error in the Swift 6 language mode
55 | }
56 |
/Users/admin/builder/spi-builder-workspace/Sources/CompositionalLayoutDSL/Public/BoundarySupplementaryItem/LayoutBoundarySupplementaryItem.swift:68:54: warning: cannot form key path to main actor-isolated property 'pinToVisibleBounds'; this is an error in the Swift 6 language mode
66 | @warn_unqualified_access
67 | public func pinToVisibleBounds(_ pinToVisibleBounds: Bool) -> LayoutBoundarySupplementaryItem {
68 | valueModifier(pinToVisibleBounds, keyPath: \.pinToVisibleBounds)
| `- warning: cannot form key path to main actor-isolated property 'pinToVisibleBounds'; this is an error in the Swift 6 language mode
69 | }
70 | }
/Users/admin/builder/spi-builder-workspace/Sources/CompositionalLayoutDSL/Public/BoundarySupplementaryItem/LayoutBoundarySupplementaryItem.swift:82:42: warning: cannot form key path to main actor-isolated property 'zIndex'; this is an error in the Swift 6 language mode
80 | @warn_unqualified_access
81 | public func zIndex(zIndex: Int) -> LayoutBoundarySupplementaryItem {
82 | valueModifier(zIndex, keyPath: \.zIndex)
| `- warning: cannot form key path to main actor-isolated property 'zIndex'; this is an error in the Swift 6 language mode
83 | }
84 | }
/Users/admin/builder/spi-builder-workspace/Sources/CompositionalLayoutDSL/Public/BoundarySupplementaryItem/LayoutBoundarySupplementaryItem.swift:122:42: warning: cannot form key path to main actor-isolated property 'contentInsets'; this is an error in the Swift 6 language mode
120 | @warn_unqualified_access
121 | public func contentInsets(_ insets: NSDirectionalEdgeInsets) -> LayoutBoundarySupplementaryItem {
122 | 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
123 | }
124 | }
/Users/admin/builder/spi-builder-workspace/Sources/CompositionalLayoutDSL/Public/BoundarySupplementaryItem/LayoutBoundarySupplementaryItem.swift:157: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
148 | /// and this item's container.
149 | @warn_unqualified_access
150 | public func edgeSpacing(
| `- note: add '@MainActor' to make instance method 'edgeSpacing(top:leading:bottom:trailing:)' part of global actor 'MainActor'
151 | top: NSCollectionLayoutSpacing? = nil,
152 | leading: NSCollectionLayoutSpacing? = nil,
:
155 | ) -> LayoutBoundarySupplementaryItem {
156 | return self.edgeSpacing(
157 | 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
158 | )
159 | }
AppKit.NSCollectionLayoutEdgeSpacing:3:35: note: calls to initializer 'init(leading:top:trailing:bottom:)' from outside of its actor context are implicitly asynchronous
1 | @available(macOS 10.15, *)
2 | @MainActor open class NSCollectionLayoutEdgeSpacing : NSObject, NSCopying {
3 | @MainActor public convenience init(leading: NSCollectionLayoutSpacing?, top: NSCollectionLayoutSpacing?, trailing: NSCollectionLayoutSpacing?, bottom: NSCollectionLayoutSpacing?)
| `- note: calls to initializer 'init(leading:top:trailing:bottom:)' from outside of its actor context are implicitly asynchronous
4 | @available(swift, obsoleted: 3, renamed: "init(leading:top:trailing:bottom:)")
5 | public convenience init(forLeading leading: NSCollectionLayoutSpacing?, top: NSCollectionLayoutSpacing?, trailing: NSCollectionLayoutSpacing?, bottom: NSCollectionLayoutSpacing?)
/Users/admin/builder/spi-builder-workspace/Sources/CompositionalLayoutDSL/Public/BoundarySupplementaryItem/LayoutBoundarySupplementaryItem.swift:165:47: warning: cannot form key path to main actor-isolated property 'edgeSpacing'; this is an error in the Swift 6 language mode
163 | @warn_unqualified_access
164 | public func edgeSpacing(_ edgeSpacing: NSCollectionLayoutEdgeSpacing) -> LayoutBoundarySupplementaryItem {
165 | 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
166 | }
167 | }
[38/42] Compiling CompositionalLayoutDSL LayoutBoundarySupplementaryItem.swift
/Users/admin/builder/spi-builder-workspace/Sources/CompositionalLayoutDSL/Public/BoundarySupplementaryItem/BoundarySupplementaryItem.swift:29:17: error: main actor-isolated default value in a nonisolated context
27 | /// Creates a boundary supplementary item of the specified size, with a string to identify the
28 | /// element kind.
29 | public init(width: NSCollectionLayoutDimension = .fractionalWidth(1),
| `- error: main actor-isolated default value in a nonisolated context
30 | height: NSCollectionLayoutDimension = .fractionalHeight(1),
31 | elementKind: String) {
/Users/admin/builder/spi-builder-workspace/Sources/CompositionalLayoutDSL/Public/BoundarySupplementaryItem/BoundarySupplementaryItem.swift:30:17: error: main actor-isolated default value in a nonisolated context
28 | /// element kind.
29 | public init(width: NSCollectionLayoutDimension = .fractionalWidth(1),
30 | height: NSCollectionLayoutDimension = .fractionalHeight(1),
| `- error: main actor-isolated default value in a nonisolated context
31 | elementKind: String) {
32 | self.widthDimension = width
/Users/admin/builder/spi-builder-workspace/Sources/CompositionalLayoutDSL/Public/BoundarySupplementaryItem/BoundarySupplementaryItem.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 | elementKind: String) {
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.elementKind = elementKind
AppKit.NSCollectionLayoutSize:10:25: note: property declared here
8 | @available(*, unavailable)
9 | open class func new() -> Self
10 | @MainActor open var widthDimension: NSCollectionLayoutDimension { get }
| `- note: property declared here
11 | open var heightDimension: NSCollectionLayoutDimension { get }
12 | @available(macOS 10.15, *)
/Users/admin/builder/spi-builder-workspace/Sources/CompositionalLayoutDSL/Public/BoundarySupplementaryItem/BoundarySupplementaryItem.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 | elementKind: String) {
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.elementKind = elementKind
44 | }
AppKit.NSCollectionLayoutSize:11:14: note: property declared here
9 | open class func new() -> Self
10 | @MainActor open var widthDimension: NSCollectionLayoutDimension { get }
11 | open var heightDimension: NSCollectionLayoutDimension { get }
| `- note: property declared here
12 | @available(macOS 10.15, *)
13 | open func copy(with zone: NSZone? = nil) -> Any
/Users/admin/builder/spi-builder-workspace/Sources/CompositionalLayoutDSL/Public/BoundarySupplementaryItem/BoundarySupplementaryItem.swift:84:41: warning: call to main actor-isolated initializer 'init(layoutSize:elementKind:alignment:absoluteOffset:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
81 |
82 | extension BoundarySupplementaryItem: BuildableBoundarySupplementaryItem {
83 | func makeBoundarySupplementaryItem() -> NSCollectionLayoutBoundarySupplementaryItem {
| `- note: add '@MainActor' to make instance method 'makeBoundarySupplementaryItem()' part of global actor 'MainActor'
84 | let boundarySupplementaryItem = NSCollectionLayoutBoundarySupplementaryItem(
| `- warning: call to main actor-isolated initializer 'init(layoutSize:elementKind:alignment:absoluteOffset:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
85 | layoutSize: NSCollectionLayoutSize(
86 | widthDimension: widthDimension,
AppKit.NSCollectionLayoutBoundarySupplementaryItem:6:35: note: calls to initializer 'init(layoutSize:elementKind:alignment:absoluteOffset:)' from outside of its actor context are implicitly asynchronous
4 | @available(*, unavailable, renamed: "init(layoutSize:elementKind:alignment:)", message: "Not available in Swift")
5 | open class func boundarySupplementaryItemWithLayoutSize(_ layoutSize: NSCollectionLayoutSize, elementKind: String, alignment: NSRectAlignment) -> Self
6 | @MainActor public convenience init(layoutSize: NSCollectionLayoutSize, elementKind: String, alignment: NSRectAlignment, absoluteOffset: NSPoint)
| `- note: calls to initializer 'init(layoutSize:elementKind:alignment:absoluteOffset:)' from outside of its actor context are implicitly asynchronous
7 | @available(*, unavailable, renamed: "init(layoutSize:elementKind:alignment:absoluteOffset:)", message: "Not available in Swift")
8 | open class func boundarySupplementaryItemWithLayoutSize(_ layoutSize: NSCollectionLayoutSize, elementKind: String, alignment: NSRectAlignment, absoluteOffset: NSPoint) -> Self
/Users/admin/builder/spi-builder-workspace/Sources/CompositionalLayoutDSL/Public/BoundarySupplementaryItem/BoundarySupplementaryItem.swift:85: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
81 |
82 | extension BoundarySupplementaryItem: BuildableBoundarySupplementaryItem {
83 | func makeBoundarySupplementaryItem() -> NSCollectionLayoutBoundarySupplementaryItem {
| `- note: add '@MainActor' to make instance method 'makeBoundarySupplementaryItem()' part of global actor 'MainActor'
84 | let boundarySupplementaryItem = NSCollectionLayoutBoundarySupplementaryItem(
85 | layoutSize: 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
86 | widthDimension: widthDimension,
87 | heightDimension: heightDimension
AppKit.NSCollectionLayoutSize:3:24: note: calls to initializer 'init(widthDimension:heightDimension:)' from outside of its actor context are implicitly asynchronous
1 | @available(macOS 10.15, *)
2 | @MainActor open class NSCollectionLayoutSize : NSObject, NSCopying {
3 | public convenience init(widthDimension width: NSCollectionLayoutDimension, heightDimension height: NSCollectionLayoutDimension)
| `- note: calls to initializer 'init(widthDimension:heightDimension:)' from outside of its actor context are implicitly asynchronous
4 | @available(*, unavailable, renamed: "init(widthDimension:heightDimension:)", message: "Not available in Swift")
5 | open class func sizeWithWidthDimension(_ width: NSCollectionLayoutDimension, heightDimension height: NSCollectionLayoutDimension) -> Self
/Users/admin/builder/spi-builder-workspace/Sources/CompositionalLayoutDSL/Public/BoundarySupplementaryItem/LayoutBoundarySupplementaryItem.swift:54:51: warning: cannot form key path to main actor-isolated property 'extendsBoundary'; this is an error in the Swift 6 language mode
52 | @warn_unqualified_access
53 | public func extendsBoundary(_ extendsBoundary: Bool) -> LayoutBoundarySupplementaryItem {
54 | valueModifier(extendsBoundary, keyPath: \.extendsBoundary)
| `- warning: cannot form key path to main actor-isolated property 'extendsBoundary'; this is an error in the Swift 6 language mode
55 | }
56 |
/Users/admin/builder/spi-builder-workspace/Sources/CompositionalLayoutDSL/Public/BoundarySupplementaryItem/LayoutBoundarySupplementaryItem.swift:68:54: warning: cannot form key path to main actor-isolated property 'pinToVisibleBounds'; this is an error in the Swift 6 language mode
66 | @warn_unqualified_access
67 | public func pinToVisibleBounds(_ pinToVisibleBounds: Bool) -> LayoutBoundarySupplementaryItem {
68 | valueModifier(pinToVisibleBounds, keyPath: \.pinToVisibleBounds)
| `- warning: cannot form key path to main actor-isolated property 'pinToVisibleBounds'; this is an error in the Swift 6 language mode
69 | }
70 | }
/Users/admin/builder/spi-builder-workspace/Sources/CompositionalLayoutDSL/Public/BoundarySupplementaryItem/LayoutBoundarySupplementaryItem.swift:82:42: warning: cannot form key path to main actor-isolated property 'zIndex'; this is an error in the Swift 6 language mode
80 | @warn_unqualified_access
81 | public func zIndex(zIndex: Int) -> LayoutBoundarySupplementaryItem {
82 | valueModifier(zIndex, keyPath: \.zIndex)
| `- warning: cannot form key path to main actor-isolated property 'zIndex'; this is an error in the Swift 6 language mode
83 | }
84 | }
/Users/admin/builder/spi-builder-workspace/Sources/CompositionalLayoutDSL/Public/BoundarySupplementaryItem/LayoutBoundarySupplementaryItem.swift:122:42: warning: cannot form key path to main actor-isolated property 'contentInsets'; this is an error in the Swift 6 language mode
120 | @warn_unqualified_access
121 | public func contentInsets(_ insets: NSDirectionalEdgeInsets) -> LayoutBoundarySupplementaryItem {
122 | 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
123 | }
124 | }
/Users/admin/builder/spi-builder-workspace/Sources/CompositionalLayoutDSL/Public/BoundarySupplementaryItem/LayoutBoundarySupplementaryItem.swift:157: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
148 | /// and this item's container.
149 | @warn_unqualified_access
150 | public func edgeSpacing(
| `- note: add '@MainActor' to make instance method 'edgeSpacing(top:leading:bottom:trailing:)' part of global actor 'MainActor'
151 | top: NSCollectionLayoutSpacing? = nil,
152 | leading: NSCollectionLayoutSpacing? = nil,
:
155 | ) -> LayoutBoundarySupplementaryItem {
156 | return self.edgeSpacing(
157 | 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
158 | )
159 | }
AppKit.NSCollectionLayoutEdgeSpacing:3:35: note: calls to initializer 'init(leading:top:trailing:bottom:)' from outside of its actor context are implicitly asynchronous
1 | @available(macOS 10.15, *)
2 | @MainActor open class NSCollectionLayoutEdgeSpacing : NSObject, NSCopying {
3 | @MainActor public convenience init(leading: NSCollectionLayoutSpacing?, top: NSCollectionLayoutSpacing?, trailing: NSCollectionLayoutSpacing?, bottom: NSCollectionLayoutSpacing?)
| `- note: calls to initializer 'init(leading:top:trailing:bottom:)' from outside of its actor context are implicitly asynchronous
4 | @available(swift, obsoleted: 3, renamed: "init(leading:top:trailing:bottom:)")
5 | public convenience init(forLeading leading: NSCollectionLayoutSpacing?, top: NSCollectionLayoutSpacing?, trailing: NSCollectionLayoutSpacing?, bottom: NSCollectionLayoutSpacing?)
/Users/admin/builder/spi-builder-workspace/Sources/CompositionalLayoutDSL/Public/BoundarySupplementaryItem/LayoutBoundarySupplementaryItem.swift:165:47: warning: cannot form key path to main actor-isolated property 'edgeSpacing'; this is an error in the Swift 6 language mode
163 | @warn_unqualified_access
164 | public func edgeSpacing(_ edgeSpacing: NSCollectionLayoutEdgeSpacing) -> LayoutBoundarySupplementaryItem {
165 | 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
166 | }
167 | }
[39/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 |
AppKit.NSCollectionLayoutGroup:22:25: note: mutation of this property is only permitted within the actor
20 | @available(*, unavailable)
21 | open class func new() -> Self
22 | @MainActor open var supplementaryItems: [NSCollectionLayoutSupplementaryItem] { get set }
| `- note: mutation of this property is only permitted within the actor
23 | @NSCopying open var interItemSpacing: NSCollectionLayoutSpacing? { get set }
24 | open var subitems: [NSCollectionLayoutItem] { get }
/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 | }
AppKit.NSCollectionLayoutEdgeSpacing:3:35: note: calls to initializer 'init(leading:top:trailing:bottom:)' from outside of its actor context are implicitly asynchronous
1 | @available(macOS 10.15, *)
2 | @MainActor open class NSCollectionLayoutEdgeSpacing : NSObject, NSCopying {
3 | @MainActor public convenience init(leading: NSCollectionLayoutSpacing?, top: NSCollectionLayoutSpacing?, trailing: NSCollectionLayoutSpacing?, bottom: NSCollectionLayoutSpacing?)
| `- note: calls to initializer 'init(leading:top:trailing:bottom:)' from outside of its actor context are implicitly asynchronous
4 | @available(swift, obsoleted: 3, renamed: "init(leading:top:trailing:bottom:)")
5 | public convenience init(forLeading leading: NSCollectionLayoutSpacing?, top: NSCollectionLayoutSpacing?, trailing: NSCollectionLayoutSpacing?, bottom: NSCollectionLayoutSpacing?)
/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: error: main actor-isolated default value in a nonisolated context
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),
| `- error: main actor-isolated default value in a nonisolated context
31 | height: NSCollectionLayoutDimension = .fractionalHeight(1),
32 | @LayoutItemBuilder subItems: () -> [LayoutItem]) {
/Users/admin/builder/spi-builder-workspace/Sources/CompositionalLayoutDSL/Public/Group/VGroup.swift:31:17: error: main actor-isolated default value in a nonisolated context
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),
| `- error: main actor-isolated default value in a nonisolated context
32 | @LayoutItemBuilder subItems: () -> [LayoutItem]) {
33 | self.widthDimension = width
/Users/admin/builder/spi-builder-workspace/Sources/CompositionalLayoutDSL/Public/Group/VGroup.swift:48:17: error: main actor-isolated default value in a nonisolated context
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),
| `- error: main actor-isolated default value in a nonisolated context
49 | height: NSCollectionLayoutDimension = .fractionalHeight(1),
50 | count: Int,
/Users/admin/builder/spi-builder-workspace/Sources/CompositionalLayoutDSL/Public/Group/VGroup.swift:49:17: error: main actor-isolated default value in a nonisolated context
47 | /// in a horizontal line up to the number specified by count.
48 | public init(width: NSCollectionLayoutDimension = .fractionalWidth(1),
49 | height: NSCollectionLayoutDimension = .fractionalHeight(1),
| `- error: main actor-isolated default value in a nonisolated context
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())
AppKit.NSCollectionLayoutSize:10:25: note: property declared here
8 | @available(*, unavailable)
9 | open class func new() -> Self
10 | @MainActor open var widthDimension: NSCollectionLayoutDimension { get }
| `- note: property declared here
11 | open var heightDimension: NSCollectionLayoutDimension { get }
12 | @available(macOS 10.15, *)
/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 | }
AppKit.NSCollectionLayoutSize:11:14: note: property declared here
9 | open class func new() -> Self
10 | @MainActor open var widthDimension: NSCollectionLayoutDimension { get }
11 | open var heightDimension: NSCollectionLayoutDimension { get }
| `- note: property declared here
12 | @available(macOS 10.15, *)
13 | open func copy(with zone: NSZone? = nil) -> Any
/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)
AppKit.NSCollectionLayoutSize:10:25: note: property declared here
8 | @available(*, unavailable)
9 | open class func new() -> Self
10 | @MainActor open var widthDimension: NSCollectionLayoutDimension { get }
| `- note: property declared here
11 | open var heightDimension: NSCollectionLayoutDimension { get }
12 | @available(macOS 10.15, *)
/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 | }
AppKit.NSCollectionLayoutSize:11:14: note: property declared here
9 | open class func new() -> Self
10 | @MainActor open var widthDimension: NSCollectionLayoutDimension { get }
11 | open var heightDimension: NSCollectionLayoutDimension { get }
| `- note: property declared here
12 | @available(macOS 10.15, *)
13 | open func copy(with zone: NSZone? = nil) -> Any
/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:3:32: note: calls to class method 'fractionalWidth' from outside of its actor context are implicitly asynchronous
1 | @available(macOS 10.15, *)
2 | @MainActor open class NSCollectionLayoutDimension : NSObject, NSCopying {
3 | @MainActor open class func fractionalWidth(_ fractionalWidth: CGFloat) -> Self
| `- note: calls to class method 'fractionalWidth' from outside of its actor context are implicitly asynchronous
4 | @available(swift, obsoleted: 3, renamed: "fractionalWidth(_:)")
5 | open class func fractionalWidthDimension(_ fractionalWidth: CGFloat) -> Self
/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:6:32: note: calls to class method 'fractionalHeight' from outside of its actor context are implicitly asynchronous
4 | @available(swift, obsoleted: 3, renamed: "fractionalWidth(_:)")
5 | open class func fractionalWidthDimension(_ fractionalWidth: CGFloat) -> Self
6 | @MainActor open class func fractionalHeight(_ fractionalHeight: CGFloat) -> Self
| `- note: calls to class method 'fractionalHeight' from outside of its actor context are implicitly asynchronous
7 | @available(swift, obsoleted: 3, renamed: "fractionalHeight(_:)")
8 | open class func fractionalHeightDimension(_ fractionalHeight: CGFloat) -> Self
/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
AppKit.NSCollectionLayoutSize:3:24: note: calls to initializer 'init(widthDimension:heightDimension:)' from outside of its actor context are implicitly asynchronous
1 | @available(macOS 10.15, *)
2 | @MainActor open class NSCollectionLayoutSize : NSObject, NSCopying {
3 | public convenience init(widthDimension width: NSCollectionLayoutDimension, heightDimension height: NSCollectionLayoutDimension)
| `- note: calls to initializer 'init(widthDimension:heightDimension:)' from outside of its actor context are implicitly asynchronous
4 | @available(*, unavailable, renamed: "init(widthDimension:heightDimension:)", message: "Not available in Swift")
5 | open class func sizeWithWidthDimension(_ width: NSCollectionLayoutDimension, heightDimension height: NSCollectionLayoutDimension) -> Self
/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:12:21: note: calls to class method 'vertical(layoutSize:subitems:)' from outside of its actor context are implicitly asynchronous
10 | @available(swift, obsoleted: 3, renamed: "vertical(layoutSize:subitem:count:)")
11 | open class func verticalGroupWithLayoutSize(_ layoutSize: NSCollectionLayoutSize, subitem: NSCollectionLayoutItem, count: Int) -> Self
12 | 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
13 | @available(swift, obsoleted: 3, renamed: "vertical(layoutSize:subitems:)")
14 | open class func verticalGroupWithLayoutSize(_ layoutSize: NSCollectionLayoutSize, subitems: [NSCollectionLayoutItem]) -> Self
/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:9:21: note: calls to class method 'vertical(layoutSize:subitem:count:)' from outside of its actor context are implicitly asynchronous
7 | @available(swift, obsoleted: 3, renamed: "horizontal(layoutSize:subitems:)")
8 | open class func horizontalGroupWithLayoutSize(_ layoutSize: NSCollectionLayoutSize, subitems: [NSCollectionLayoutItem]) -> Self
9 | 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
10 | @available(swift, obsoleted: 3, renamed: "vertical(layoutSize:subitem:count:)")
11 | open class func verticalGroupWithLayoutSize(_ layoutSize: NSCollectionLayoutSize, subitem: NSCollectionLayoutItem, count: Int) -> Self
/Users/admin/builder/spi-builder-workspace/Sources/CompositionalLayoutDSL/Public/Item/Item.swift:34:17: error: main actor-isolated default value in a nonisolated context
32 |
33 | /// Creates an item of the specified size
34 | public init(width: NSCollectionLayoutDimension = .fractionalWidth(1),
| `- error: main actor-isolated default value in a nonisolated context
35 | height: NSCollectionLayoutDimension = .fractionalHeight(1)) {
36 | self.widthDimension = width
/Users/admin/builder/spi-builder-workspace/Sources/CompositionalLayoutDSL/Public/Item/Item.swift:35:17: error: main actor-isolated default value in a nonisolated context
33 | /// Creates an item of the specified size
34 | public init(width: NSCollectionLayoutDimension = .fractionalWidth(1),
35 | height: NSCollectionLayoutDimension = .fractionalHeight(1)) {
| `- error: main actor-isolated default value in a nonisolated context
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 = []
AppKit.NSCollectionLayoutSize:10:25: note: property declared here
8 | @available(*, unavailable)
9 | open class func new() -> Self
10 | @MainActor open var widthDimension: NSCollectionLayoutDimension { get }
| `- note: property declared here
11 | open var heightDimension: NSCollectionLayoutDimension { get }
12 | @available(macOS 10.15, *)
/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 | }
AppKit.NSCollectionLayoutSize:11:14: note: property declared here
9 | open class func new() -> Self
10 | @MainActor open var widthDimension: NSCollectionLayoutDimension { get }
11 | open var heightDimension: NSCollectionLayoutDimension { get }
| `- note: property declared here
12 | @available(macOS 10.15, *)
13 | open func copy(with zone: NSZone? = nil) -> Any
/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:3:32: note: calls to class method 'fractionalWidth' from outside of its actor context are implicitly asynchronous
1 | @available(macOS 10.15, *)
2 | @MainActor open class NSCollectionLayoutDimension : NSObject, NSCopying {
3 | @MainActor open class func fractionalWidth(_ fractionalWidth: CGFloat) -> Self
| `- note: calls to class method 'fractionalWidth' from outside of its actor context are implicitly asynchronous
4 | @available(swift, obsoleted: 3, renamed: "fractionalWidth(_:)")
5 | open class func fractionalWidthDimension(_ fractionalWidth: CGFloat) -> Self
/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:6:32: note: calls to class method 'fractionalHeight' from outside of its actor context are implicitly asynchronous
4 | @available(swift, obsoleted: 3, renamed: "fractionalWidth(_:)")
5 | open class func fractionalWidthDimension(_ fractionalWidth: CGFloat) -> Self
6 | @MainActor open class func fractionalHeight(_ fractionalHeight: CGFloat) -> Self
| `- note: calls to class method 'fractionalHeight' from outside of its actor context are implicitly asynchronous
7 | @available(swift, obsoleted: 3, renamed: "fractionalHeight(_:)")
8 | open class func fractionalHeightDimension(_ fractionalHeight: CGFloat) -> Self
/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:3:32: note: calls to class method 'fractionalWidth' from outside of its actor context are implicitly asynchronous
1 | @available(macOS 10.15, *)
2 | @MainActor open class NSCollectionLayoutDimension : NSObject, NSCopying {
3 | @MainActor open class func fractionalWidth(_ fractionalWidth: CGFloat) -> Self
| `- note: calls to class method 'fractionalWidth' from outside of its actor context are implicitly asynchronous
4 | @available(swift, obsoleted: 3, renamed: "fractionalWidth(_:)")
5 | open class func fractionalWidthDimension(_ fractionalWidth: CGFloat) -> Self
/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:6:32: note: calls to class method 'fractionalHeight' from outside of its actor context are implicitly asynchronous
4 | @available(swift, obsoleted: 3, renamed: "fractionalWidth(_:)")
5 | open class func fractionalWidthDimension(_ fractionalWidth: CGFloat) -> Self
6 | @MainActor open class func fractionalHeight(_ fractionalHeight: CGFloat) -> Self
| `- note: calls to class method 'fractionalHeight' from outside of its actor context are implicitly asynchronous
7 | @available(swift, obsoleted: 3, renamed: "fractionalHeight(_:)")
8 | open class func fractionalHeightDimension(_ fractionalHeight: CGFloat) -> Self
/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:))
AppKit.NSCollectionLayoutItem:6:35: note: calls to initializer 'init(layoutSize:supplementaryItems:)' from outside of its actor context are implicitly asynchronous
4 | @available(*, unavailable, renamed: "init(layoutSize:)", message: "Not available in Swift")
5 | open class func itemWithLayoutSize(_ layoutSize: NSCollectionLayoutSize) -> Self
6 | @MainActor public convenience init(layoutSize: NSCollectionLayoutSize, supplementaryItems: [NSCollectionLayoutSupplementaryItem])
| `- note: calls to initializer 'init(layoutSize:supplementaryItems:)' from outside of its actor context are implicitly asynchronous
7 | @available(*, unavailable, renamed: "init(layoutSize:supplementaryItems:)", message: "Not available in Swift")
8 | open class func itemWithLayoutSize(_ layoutSize: NSCollectionLayoutSize, supplementaryItems: [NSCollectionLayoutSupplementaryItem]) -> Self
/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 | )
AppKit.NSCollectionLayoutSize:3:24: note: calls to initializer 'init(widthDimension:heightDimension:)' from outside of its actor context are implicitly asynchronous
1 | @available(macOS 10.15, *)
2 | @MainActor open class NSCollectionLayoutSize : NSObject, NSCopying {
3 | public convenience init(widthDimension width: NSCollectionLayoutDimension, heightDimension height: NSCollectionLayoutDimension)
| `- note: calls to initializer 'init(widthDimension:heightDimension:)' from outside of its actor context are implicitly asynchronous
4 | @available(*, unavailable, renamed: "init(widthDimension:heightDimension:)", message: "Not available in Swift")
5 | open class func sizeWithWidthDimension(_ width: NSCollectionLayoutDimension, heightDimension height: NSCollectionLayoutDimension) -> Self
/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 | }
AppKit.NSCollectionLayoutEdgeSpacing:3:35: note: calls to initializer 'init(leading:top:trailing:bottom:)' from outside of its actor context are implicitly asynchronous
1 | @available(macOS 10.15, *)
2 | @MainActor open class NSCollectionLayoutEdgeSpacing : NSObject, NSCopying {
3 | @MainActor public convenience init(leading: NSCollectionLayoutSpacing?, top: NSCollectionLayoutSpacing?, trailing: NSCollectionLayoutSpacing?, bottom: NSCollectionLayoutSpacing?)
| `- note: calls to initializer 'init(leading:top:trailing:bottom:)' from outside of its actor context are implicitly asynchronous
4 | @available(swift, obsoleted: 3, renamed: "init(leading:top:trailing:bottom:)")
5 | public convenience init(forLeading leading: NSCollectionLayoutSpacing?, top: NSCollectionLayoutSpacing?, trailing: NSCollectionLayoutSpacing?, bottom: NSCollectionLayoutSpacing?)
/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 | }
[40/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 |
AppKit.NSCollectionLayoutGroup:22:25: note: mutation of this property is only permitted within the actor
20 | @available(*, unavailable)
21 | open class func new() -> Self
22 | @MainActor open var supplementaryItems: [NSCollectionLayoutSupplementaryItem] { get set }
| `- note: mutation of this property is only permitted within the actor
23 | @NSCopying open var interItemSpacing: NSCollectionLayoutSpacing? { get set }
24 | open var subitems: [NSCollectionLayoutItem] { get }
/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 | }
AppKit.NSCollectionLayoutEdgeSpacing:3:35: note: calls to initializer 'init(leading:top:trailing:bottom:)' from outside of its actor context are implicitly asynchronous
1 | @available(macOS 10.15, *)
2 | @MainActor open class NSCollectionLayoutEdgeSpacing : NSObject, NSCopying {
3 | @MainActor public convenience init(leading: NSCollectionLayoutSpacing?, top: NSCollectionLayoutSpacing?, trailing: NSCollectionLayoutSpacing?, bottom: NSCollectionLayoutSpacing?)
| `- note: calls to initializer 'init(leading:top:trailing:bottom:)' from outside of its actor context are implicitly asynchronous
4 | @available(swift, obsoleted: 3, renamed: "init(leading:top:trailing:bottom:)")
5 | public convenience init(forLeading leading: NSCollectionLayoutSpacing?, top: NSCollectionLayoutSpacing?, trailing: NSCollectionLayoutSpacing?, bottom: NSCollectionLayoutSpacing?)
/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: error: main actor-isolated default value in a nonisolated context
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),
| `- error: main actor-isolated default value in a nonisolated context
31 | height: NSCollectionLayoutDimension = .fractionalHeight(1),
32 | @LayoutItemBuilder subItems: () -> [LayoutItem]) {
/Users/admin/builder/spi-builder-workspace/Sources/CompositionalLayoutDSL/Public/Group/VGroup.swift:31:17: error: main actor-isolated default value in a nonisolated context
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),
| `- error: main actor-isolated default value in a nonisolated context
32 | @LayoutItemBuilder subItems: () -> [LayoutItem]) {
33 | self.widthDimension = width
/Users/admin/builder/spi-builder-workspace/Sources/CompositionalLayoutDSL/Public/Group/VGroup.swift:48:17: error: main actor-isolated default value in a nonisolated context
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),
| `- error: main actor-isolated default value in a nonisolated context
49 | height: NSCollectionLayoutDimension = .fractionalHeight(1),
50 | count: Int,
/Users/admin/builder/spi-builder-workspace/Sources/CompositionalLayoutDSL/Public/Group/VGroup.swift:49:17: error: main actor-isolated default value in a nonisolated context
47 | /// in a horizontal line up to the number specified by count.
48 | public init(width: NSCollectionLayoutDimension = .fractionalWidth(1),
49 | height: NSCollectionLayoutDimension = .fractionalHeight(1),
| `- error: main actor-isolated default value in a nonisolated context
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())
AppKit.NSCollectionLayoutSize:10:25: note: property declared here
8 | @available(*, unavailable)
9 | open class func new() -> Self
10 | @MainActor open var widthDimension: NSCollectionLayoutDimension { get }
| `- note: property declared here
11 | open var heightDimension: NSCollectionLayoutDimension { get }
12 | @available(macOS 10.15, *)
/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 | }
AppKit.NSCollectionLayoutSize:11:14: note: property declared here
9 | open class func new() -> Self
10 | @MainActor open var widthDimension: NSCollectionLayoutDimension { get }
11 | open var heightDimension: NSCollectionLayoutDimension { get }
| `- note: property declared here
12 | @available(macOS 10.15, *)
13 | open func copy(with zone: NSZone? = nil) -> Any
/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)
AppKit.NSCollectionLayoutSize:10:25: note: property declared here
8 | @available(*, unavailable)
9 | open class func new() -> Self
10 | @MainActor open var widthDimension: NSCollectionLayoutDimension { get }
| `- note: property declared here
11 | open var heightDimension: NSCollectionLayoutDimension { get }
12 | @available(macOS 10.15, *)
/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 | }
AppKit.NSCollectionLayoutSize:11:14: note: property declared here
9 | open class func new() -> Self
10 | @MainActor open var widthDimension: NSCollectionLayoutDimension { get }
11 | open var heightDimension: NSCollectionLayoutDimension { get }
| `- note: property declared here
12 | @available(macOS 10.15, *)
13 | open func copy(with zone: NSZone? = nil) -> Any
/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:3:32: note: calls to class method 'fractionalWidth' from outside of its actor context are implicitly asynchronous
1 | @available(macOS 10.15, *)
2 | @MainActor open class NSCollectionLayoutDimension : NSObject, NSCopying {
3 | @MainActor open class func fractionalWidth(_ fractionalWidth: CGFloat) -> Self
| `- note: calls to class method 'fractionalWidth' from outside of its actor context are implicitly asynchronous
4 | @available(swift, obsoleted: 3, renamed: "fractionalWidth(_:)")
5 | open class func fractionalWidthDimension(_ fractionalWidth: CGFloat) -> Self
/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:6:32: note: calls to class method 'fractionalHeight' from outside of its actor context are implicitly asynchronous
4 | @available(swift, obsoleted: 3, renamed: "fractionalWidth(_:)")
5 | open class func fractionalWidthDimension(_ fractionalWidth: CGFloat) -> Self
6 | @MainActor open class func fractionalHeight(_ fractionalHeight: CGFloat) -> Self
| `- note: calls to class method 'fractionalHeight' from outside of its actor context are implicitly asynchronous
7 | @available(swift, obsoleted: 3, renamed: "fractionalHeight(_:)")
8 | open class func fractionalHeightDimension(_ fractionalHeight: CGFloat) -> Self
/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
AppKit.NSCollectionLayoutSize:3:24: note: calls to initializer 'init(widthDimension:heightDimension:)' from outside of its actor context are implicitly asynchronous
1 | @available(macOS 10.15, *)
2 | @MainActor open class NSCollectionLayoutSize : NSObject, NSCopying {
3 | public convenience init(widthDimension width: NSCollectionLayoutDimension, heightDimension height: NSCollectionLayoutDimension)
| `- note: calls to initializer 'init(widthDimension:heightDimension:)' from outside of its actor context are implicitly asynchronous
4 | @available(*, unavailable, renamed: "init(widthDimension:heightDimension:)", message: "Not available in Swift")
5 | open class func sizeWithWidthDimension(_ width: NSCollectionLayoutDimension, heightDimension height: NSCollectionLayoutDimension) -> Self
/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:12:21: note: calls to class method 'vertical(layoutSize:subitems:)' from outside of its actor context are implicitly asynchronous
10 | @available(swift, obsoleted: 3, renamed: "vertical(layoutSize:subitem:count:)")
11 | open class func verticalGroupWithLayoutSize(_ layoutSize: NSCollectionLayoutSize, subitem: NSCollectionLayoutItem, count: Int) -> Self
12 | 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
13 | @available(swift, obsoleted: 3, renamed: "vertical(layoutSize:subitems:)")
14 | open class func verticalGroupWithLayoutSize(_ layoutSize: NSCollectionLayoutSize, subitems: [NSCollectionLayoutItem]) -> Self
/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:9:21: note: calls to class method 'vertical(layoutSize:subitem:count:)' from outside of its actor context are implicitly asynchronous
7 | @available(swift, obsoleted: 3, renamed: "horizontal(layoutSize:subitems:)")
8 | open class func horizontalGroupWithLayoutSize(_ layoutSize: NSCollectionLayoutSize, subitems: [NSCollectionLayoutItem]) -> Self
9 | 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
10 | @available(swift, obsoleted: 3, renamed: "vertical(layoutSize:subitem:count:)")
11 | open class func verticalGroupWithLayoutSize(_ layoutSize: NSCollectionLayoutSize, subitem: NSCollectionLayoutItem, count: Int) -> Self
/Users/admin/builder/spi-builder-workspace/Sources/CompositionalLayoutDSL/Public/Item/Item.swift:34:17: error: main actor-isolated default value in a nonisolated context
32 |
33 | /// Creates an item of the specified size
34 | public init(width: NSCollectionLayoutDimension = .fractionalWidth(1),
| `- error: main actor-isolated default value in a nonisolated context
35 | height: NSCollectionLayoutDimension = .fractionalHeight(1)) {
36 | self.widthDimension = width
/Users/admin/builder/spi-builder-workspace/Sources/CompositionalLayoutDSL/Public/Item/Item.swift:35:17: error: main actor-isolated default value in a nonisolated context
33 | /// Creates an item of the specified size
34 | public init(width: NSCollectionLayoutDimension = .fractionalWidth(1),
35 | height: NSCollectionLayoutDimension = .fractionalHeight(1)) {
| `- error: main actor-isolated default value in a nonisolated context
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 = []
AppKit.NSCollectionLayoutSize:10:25: note: property declared here
8 | @available(*, unavailable)
9 | open class func new() -> Self
10 | @MainActor open var widthDimension: NSCollectionLayoutDimension { get }
| `- note: property declared here
11 | open var heightDimension: NSCollectionLayoutDimension { get }
12 | @available(macOS 10.15, *)
/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 | }
AppKit.NSCollectionLayoutSize:11:14: note: property declared here
9 | open class func new() -> Self
10 | @MainActor open var widthDimension: NSCollectionLayoutDimension { get }
11 | open var heightDimension: NSCollectionLayoutDimension { get }
| `- note: property declared here
12 | @available(macOS 10.15, *)
13 | open func copy(with zone: NSZone? = nil) -> Any
/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:3:32: note: calls to class method 'fractionalWidth' from outside of its actor context are implicitly asynchronous
1 | @available(macOS 10.15, *)
2 | @MainActor open class NSCollectionLayoutDimension : NSObject, NSCopying {
3 | @MainActor open class func fractionalWidth(_ fractionalWidth: CGFloat) -> Self
| `- note: calls to class method 'fractionalWidth' from outside of its actor context are implicitly asynchronous
4 | @available(swift, obsoleted: 3, renamed: "fractionalWidth(_:)")
5 | open class func fractionalWidthDimension(_ fractionalWidth: CGFloat) -> Self
/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:6:32: note: calls to class method 'fractionalHeight' from outside of its actor context are implicitly asynchronous
4 | @available(swift, obsoleted: 3, renamed: "fractionalWidth(_:)")
5 | open class func fractionalWidthDimension(_ fractionalWidth: CGFloat) -> Self
6 | @MainActor open class func fractionalHeight(_ fractionalHeight: CGFloat) -> Self
| `- note: calls to class method 'fractionalHeight' from outside of its actor context are implicitly asynchronous
7 | @available(swift, obsoleted: 3, renamed: "fractionalHeight(_:)")
8 | open class func fractionalHeightDimension(_ fractionalHeight: CGFloat) -> Self
/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:3:32: note: calls to class method 'fractionalWidth' from outside of its actor context are implicitly asynchronous
1 | @available(macOS 10.15, *)
2 | @MainActor open class NSCollectionLayoutDimension : NSObject, NSCopying {
3 | @MainActor open class func fractionalWidth(_ fractionalWidth: CGFloat) -> Self
| `- note: calls to class method 'fractionalWidth' from outside of its actor context are implicitly asynchronous
4 | @available(swift, obsoleted: 3, renamed: "fractionalWidth(_:)")
5 | open class func fractionalWidthDimension(_ fractionalWidth: CGFloat) -> Self
/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:6:32: note: calls to class method 'fractionalHeight' from outside of its actor context are implicitly asynchronous
4 | @available(swift, obsoleted: 3, renamed: "fractionalWidth(_:)")
5 | open class func fractionalWidthDimension(_ fractionalWidth: CGFloat) -> Self
6 | @MainActor open class func fractionalHeight(_ fractionalHeight: CGFloat) -> Self
| `- note: calls to class method 'fractionalHeight' from outside of its actor context are implicitly asynchronous
7 | @available(swift, obsoleted: 3, renamed: "fractionalHeight(_:)")
8 | open class func fractionalHeightDimension(_ fractionalHeight: CGFloat) -> Self
/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:))
AppKit.NSCollectionLayoutItem:6:35: note: calls to initializer 'init(layoutSize:supplementaryItems:)' from outside of its actor context are implicitly asynchronous
4 | @available(*, unavailable, renamed: "init(layoutSize:)", message: "Not available in Swift")
5 | open class func itemWithLayoutSize(_ layoutSize: NSCollectionLayoutSize) -> Self
6 | @MainActor public convenience init(layoutSize: NSCollectionLayoutSize, supplementaryItems: [NSCollectionLayoutSupplementaryItem])
| `- note: calls to initializer 'init(layoutSize:supplementaryItems:)' from outside of its actor context are implicitly asynchronous
7 | @available(*, unavailable, renamed: "init(layoutSize:supplementaryItems:)", message: "Not available in Swift")
8 | open class func itemWithLayoutSize(_ layoutSize: NSCollectionLayoutSize, supplementaryItems: [NSCollectionLayoutSupplementaryItem]) -> Self
/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 | )
AppKit.NSCollectionLayoutSize:3:24: note: calls to initializer 'init(widthDimension:heightDimension:)' from outside of its actor context are implicitly asynchronous
1 | @available(macOS 10.15, *)
2 | @MainActor open class NSCollectionLayoutSize : NSObject, NSCopying {
3 | public convenience init(widthDimension width: NSCollectionLayoutDimension, heightDimension height: NSCollectionLayoutDimension)
| `- note: calls to initializer 'init(widthDimension:heightDimension:)' from outside of its actor context are implicitly asynchronous
4 | @available(*, unavailable, renamed: "init(widthDimension:heightDimension:)", message: "Not available in Swift")
5 | open class func sizeWithWidthDimension(_ width: NSCollectionLayoutDimension, heightDimension height: NSCollectionLayoutDimension) -> Self
/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 | }
AppKit.NSCollectionLayoutEdgeSpacing:3:35: note: calls to initializer 'init(leading:top:trailing:bottom:)' from outside of its actor context are implicitly asynchronous
1 | @available(macOS 10.15, *)
2 | @MainActor open class NSCollectionLayoutEdgeSpacing : NSObject, NSCopying {
3 | @MainActor public convenience init(leading: NSCollectionLayoutSpacing?, top: NSCollectionLayoutSpacing?, trailing: NSCollectionLayoutSpacing?, bottom: NSCollectionLayoutSpacing?)
| `- note: calls to initializer 'init(leading:top:trailing:bottom:)' from outside of its actor context are implicitly asynchronous
4 | @available(swift, obsoleted: 3, renamed: "init(leading:top:trailing:bottom:)")
5 | public convenience init(forLeading leading: NSCollectionLayoutSpacing?, top: NSCollectionLayoutSpacing?, trailing: NSCollectionLayoutSpacing?, bottom: NSCollectionLayoutSpacing?)
/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 | }
[41/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 |
AppKit.NSCollectionLayoutGroup:22:25: note: mutation of this property is only permitted within the actor
20 | @available(*, unavailable)
21 | open class func new() -> Self
22 | @MainActor open var supplementaryItems: [NSCollectionLayoutSupplementaryItem] { get set }
| `- note: mutation of this property is only permitted within the actor
23 | @NSCopying open var interItemSpacing: NSCollectionLayoutSpacing? { get set }
24 | open var subitems: [NSCollectionLayoutItem] { get }
/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 | }
AppKit.NSCollectionLayoutEdgeSpacing:3:35: note: calls to initializer 'init(leading:top:trailing:bottom:)' from outside of its actor context are implicitly asynchronous
1 | @available(macOS 10.15, *)
2 | @MainActor open class NSCollectionLayoutEdgeSpacing : NSObject, NSCopying {
3 | @MainActor public convenience init(leading: NSCollectionLayoutSpacing?, top: NSCollectionLayoutSpacing?, trailing: NSCollectionLayoutSpacing?, bottom: NSCollectionLayoutSpacing?)
| `- note: calls to initializer 'init(leading:top:trailing:bottom:)' from outside of its actor context are implicitly asynchronous
4 | @available(swift, obsoleted: 3, renamed: "init(leading:top:trailing:bottom:)")
5 | public convenience init(forLeading leading: NSCollectionLayoutSpacing?, top: NSCollectionLayoutSpacing?, trailing: NSCollectionLayoutSpacing?, bottom: NSCollectionLayoutSpacing?)
/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: error: main actor-isolated default value in a nonisolated context
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),
| `- error: main actor-isolated default value in a nonisolated context
31 | height: NSCollectionLayoutDimension = .fractionalHeight(1),
32 | @LayoutItemBuilder subItems: () -> [LayoutItem]) {
/Users/admin/builder/spi-builder-workspace/Sources/CompositionalLayoutDSL/Public/Group/VGroup.swift:31:17: error: main actor-isolated default value in a nonisolated context
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),
| `- error: main actor-isolated default value in a nonisolated context
32 | @LayoutItemBuilder subItems: () -> [LayoutItem]) {
33 | self.widthDimension = width
/Users/admin/builder/spi-builder-workspace/Sources/CompositionalLayoutDSL/Public/Group/VGroup.swift:48:17: error: main actor-isolated default value in a nonisolated context
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),
| `- error: main actor-isolated default value in a nonisolated context
49 | height: NSCollectionLayoutDimension = .fractionalHeight(1),
50 | count: Int,
/Users/admin/builder/spi-builder-workspace/Sources/CompositionalLayoutDSL/Public/Group/VGroup.swift:49:17: error: main actor-isolated default value in a nonisolated context
47 | /// in a horizontal line up to the number specified by count.
48 | public init(width: NSCollectionLayoutDimension = .fractionalWidth(1),
49 | height: NSCollectionLayoutDimension = .fractionalHeight(1),
| `- error: main actor-isolated default value in a nonisolated context
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())
AppKit.NSCollectionLayoutSize:10:25: note: property declared here
8 | @available(*, unavailable)
9 | open class func new() -> Self
10 | @MainActor open var widthDimension: NSCollectionLayoutDimension { get }
| `- note: property declared here
11 | open var heightDimension: NSCollectionLayoutDimension { get }
12 | @available(macOS 10.15, *)
/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 | }
AppKit.NSCollectionLayoutSize:11:14: note: property declared here
9 | open class func new() -> Self
10 | @MainActor open var widthDimension: NSCollectionLayoutDimension { get }
11 | open var heightDimension: NSCollectionLayoutDimension { get }
| `- note: property declared here
12 | @available(macOS 10.15, *)
13 | open func copy(with zone: NSZone? = nil) -> Any
/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)
AppKit.NSCollectionLayoutSize:10:25: note: property declared here
8 | @available(*, unavailable)
9 | open class func new() -> Self
10 | @MainActor open var widthDimension: NSCollectionLayoutDimension { get }
| `- note: property declared here
11 | open var heightDimension: NSCollectionLayoutDimension { get }
12 | @available(macOS 10.15, *)
/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 | }
AppKit.NSCollectionLayoutSize:11:14: note: property declared here
9 | open class func new() -> Self
10 | @MainActor open var widthDimension: NSCollectionLayoutDimension { get }
11 | open var heightDimension: NSCollectionLayoutDimension { get }
| `- note: property declared here
12 | @available(macOS 10.15, *)
13 | open func copy(with zone: NSZone? = nil) -> Any
/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:3:32: note: calls to class method 'fractionalWidth' from outside of its actor context are implicitly asynchronous
1 | @available(macOS 10.15, *)
2 | @MainActor open class NSCollectionLayoutDimension : NSObject, NSCopying {
3 | @MainActor open class func fractionalWidth(_ fractionalWidth: CGFloat) -> Self
| `- note: calls to class method 'fractionalWidth' from outside of its actor context are implicitly asynchronous
4 | @available(swift, obsoleted: 3, renamed: "fractionalWidth(_:)")
5 | open class func fractionalWidthDimension(_ fractionalWidth: CGFloat) -> Self
/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:6:32: note: calls to class method 'fractionalHeight' from outside of its actor context are implicitly asynchronous
4 | @available(swift, obsoleted: 3, renamed: "fractionalWidth(_:)")
5 | open class func fractionalWidthDimension(_ fractionalWidth: CGFloat) -> Self
6 | @MainActor open class func fractionalHeight(_ fractionalHeight: CGFloat) -> Self
| `- note: calls to class method 'fractionalHeight' from outside of its actor context are implicitly asynchronous
7 | @available(swift, obsoleted: 3, renamed: "fractionalHeight(_:)")
8 | open class func fractionalHeightDimension(_ fractionalHeight: CGFloat) -> Self
/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
AppKit.NSCollectionLayoutSize:3:24: note: calls to initializer 'init(widthDimension:heightDimension:)' from outside of its actor context are implicitly asynchronous
1 | @available(macOS 10.15, *)
2 | @MainActor open class NSCollectionLayoutSize : NSObject, NSCopying {
3 | public convenience init(widthDimension width: NSCollectionLayoutDimension, heightDimension height: NSCollectionLayoutDimension)
| `- note: calls to initializer 'init(widthDimension:heightDimension:)' from outside of its actor context are implicitly asynchronous
4 | @available(*, unavailable, renamed: "init(widthDimension:heightDimension:)", message: "Not available in Swift")
5 | open class func sizeWithWidthDimension(_ width: NSCollectionLayoutDimension, heightDimension height: NSCollectionLayoutDimension) -> Self
/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:12:21: note: calls to class method 'vertical(layoutSize:subitems:)' from outside of its actor context are implicitly asynchronous
10 | @available(swift, obsoleted: 3, renamed: "vertical(layoutSize:subitem:count:)")
11 | open class func verticalGroupWithLayoutSize(_ layoutSize: NSCollectionLayoutSize, subitem: NSCollectionLayoutItem, count: Int) -> Self
12 | 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
13 | @available(swift, obsoleted: 3, renamed: "vertical(layoutSize:subitems:)")
14 | open class func verticalGroupWithLayoutSize(_ layoutSize: NSCollectionLayoutSize, subitems: [NSCollectionLayoutItem]) -> Self
/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:9:21: note: calls to class method 'vertical(layoutSize:subitem:count:)' from outside of its actor context are implicitly asynchronous
7 | @available(swift, obsoleted: 3, renamed: "horizontal(layoutSize:subitems:)")
8 | open class func horizontalGroupWithLayoutSize(_ layoutSize: NSCollectionLayoutSize, subitems: [NSCollectionLayoutItem]) -> Self
9 | 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
10 | @available(swift, obsoleted: 3, renamed: "vertical(layoutSize:subitem:count:)")
11 | open class func verticalGroupWithLayoutSize(_ layoutSize: NSCollectionLayoutSize, subitem: NSCollectionLayoutItem, count: Int) -> Self
/Users/admin/builder/spi-builder-workspace/Sources/CompositionalLayoutDSL/Public/Item/Item.swift:34:17: error: main actor-isolated default value in a nonisolated context
32 |
33 | /// Creates an item of the specified size
34 | public init(width: NSCollectionLayoutDimension = .fractionalWidth(1),
| `- error: main actor-isolated default value in a nonisolated context
35 | height: NSCollectionLayoutDimension = .fractionalHeight(1)) {
36 | self.widthDimension = width
/Users/admin/builder/spi-builder-workspace/Sources/CompositionalLayoutDSL/Public/Item/Item.swift:35:17: error: main actor-isolated default value in a nonisolated context
33 | /// Creates an item of the specified size
34 | public init(width: NSCollectionLayoutDimension = .fractionalWidth(1),
35 | height: NSCollectionLayoutDimension = .fractionalHeight(1)) {
| `- error: main actor-isolated default value in a nonisolated context
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 = []
AppKit.NSCollectionLayoutSize:10:25: note: property declared here
8 | @available(*, unavailable)
9 | open class func new() -> Self
10 | @MainActor open var widthDimension: NSCollectionLayoutDimension { get }
| `- note: property declared here
11 | open var heightDimension: NSCollectionLayoutDimension { get }
12 | @available(macOS 10.15, *)
/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 | }
AppKit.NSCollectionLayoutSize:11:14: note: property declared here
9 | open class func new() -> Self
10 | @MainActor open var widthDimension: NSCollectionLayoutDimension { get }
11 | open var heightDimension: NSCollectionLayoutDimension { get }
| `- note: property declared here
12 | @available(macOS 10.15, *)
13 | open func copy(with zone: NSZone? = nil) -> Any
/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:3:32: note: calls to class method 'fractionalWidth' from outside of its actor context are implicitly asynchronous
1 | @available(macOS 10.15, *)
2 | @MainActor open class NSCollectionLayoutDimension : NSObject, NSCopying {
3 | @MainActor open class func fractionalWidth(_ fractionalWidth: CGFloat) -> Self
| `- note: calls to class method 'fractionalWidth' from outside of its actor context are implicitly asynchronous
4 | @available(swift, obsoleted: 3, renamed: "fractionalWidth(_:)")
5 | open class func fractionalWidthDimension(_ fractionalWidth: CGFloat) -> Self
/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:6:32: note: calls to class method 'fractionalHeight' from outside of its actor context are implicitly asynchronous
4 | @available(swift, obsoleted: 3, renamed: "fractionalWidth(_:)")
5 | open class func fractionalWidthDimension(_ fractionalWidth: CGFloat) -> Self
6 | @MainActor open class func fractionalHeight(_ fractionalHeight: CGFloat) -> Self
| `- note: calls to class method 'fractionalHeight' from outside of its actor context are implicitly asynchronous
7 | @available(swift, obsoleted: 3, renamed: "fractionalHeight(_:)")
8 | open class func fractionalHeightDimension(_ fractionalHeight: CGFloat) -> Self
/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:3:32: note: calls to class method 'fractionalWidth' from outside of its actor context are implicitly asynchronous
1 | @available(macOS 10.15, *)
2 | @MainActor open class NSCollectionLayoutDimension : NSObject, NSCopying {
3 | @MainActor open class func fractionalWidth(_ fractionalWidth: CGFloat) -> Self
| `- note: calls to class method 'fractionalWidth' from outside of its actor context are implicitly asynchronous
4 | @available(swift, obsoleted: 3, renamed: "fractionalWidth(_:)")
5 | open class func fractionalWidthDimension(_ fractionalWidth: CGFloat) -> Self
/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:6:32: note: calls to class method 'fractionalHeight' from outside of its actor context are implicitly asynchronous
4 | @available(swift, obsoleted: 3, renamed: "fractionalWidth(_:)")
5 | open class func fractionalWidthDimension(_ fractionalWidth: CGFloat) -> Self
6 | @MainActor open class func fractionalHeight(_ fractionalHeight: CGFloat) -> Self
| `- note: calls to class method 'fractionalHeight' from outside of its actor context are implicitly asynchronous
7 | @available(swift, obsoleted: 3, renamed: "fractionalHeight(_:)")
8 | open class func fractionalHeightDimension(_ fractionalHeight: CGFloat) -> Self
/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:))
AppKit.NSCollectionLayoutItem:6:35: note: calls to initializer 'init(layoutSize:supplementaryItems:)' from outside of its actor context are implicitly asynchronous
4 | @available(*, unavailable, renamed: "init(layoutSize:)", message: "Not available in Swift")
5 | open class func itemWithLayoutSize(_ layoutSize: NSCollectionLayoutSize) -> Self
6 | @MainActor public convenience init(layoutSize: NSCollectionLayoutSize, supplementaryItems: [NSCollectionLayoutSupplementaryItem])
| `- note: calls to initializer 'init(layoutSize:supplementaryItems:)' from outside of its actor context are implicitly asynchronous
7 | @available(*, unavailable, renamed: "init(layoutSize:supplementaryItems:)", message: "Not available in Swift")
8 | open class func itemWithLayoutSize(_ layoutSize: NSCollectionLayoutSize, supplementaryItems: [NSCollectionLayoutSupplementaryItem]) -> Self
/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 | )
AppKit.NSCollectionLayoutSize:3:24: note: calls to initializer 'init(widthDimension:heightDimension:)' from outside of its actor context are implicitly asynchronous
1 | @available(macOS 10.15, *)
2 | @MainActor open class NSCollectionLayoutSize : NSObject, NSCopying {
3 | public convenience init(widthDimension width: NSCollectionLayoutDimension, heightDimension height: NSCollectionLayoutDimension)
| `- note: calls to initializer 'init(widthDimension:heightDimension:)' from outside of its actor context are implicitly asynchronous
4 | @available(*, unavailable, renamed: "init(widthDimension:heightDimension:)", message: "Not available in Swift")
5 | open class func sizeWithWidthDimension(_ width: NSCollectionLayoutDimension, heightDimension height: NSCollectionLayoutDimension) -> Self
/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 | }
AppKit.NSCollectionLayoutEdgeSpacing:3:35: note: calls to initializer 'init(leading:top:trailing:bottom:)' from outside of its actor context are implicitly asynchronous
1 | @available(macOS 10.15, *)
2 | @MainActor open class NSCollectionLayoutEdgeSpacing : NSObject, NSCopying {
3 | @MainActor public convenience init(leading: NSCollectionLayoutSpacing?, top: NSCollectionLayoutSpacing?, trailing: NSCollectionLayoutSpacing?, bottom: NSCollectionLayoutSpacing?)
| `- note: calls to initializer 'init(leading:top:trailing:bottom:)' from outside of its actor context are implicitly asynchronous
4 | @available(swift, obsoleted: 3, renamed: "init(leading:top:trailing:bottom:)")
5 | public convenience init(forLeading leading: NSCollectionLayoutSpacing?, top: NSCollectionLayoutSpacing?, trailing: NSCollectionLayoutSpacing?, bottom: NSCollectionLayoutSpacing?)
/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 | }
[42/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 |
AppKit.NSCollectionLayoutGroup:22:25: note: mutation of this property is only permitted within the actor
20 | @available(*, unavailable)
21 | open class func new() -> Self
22 | @MainActor open var supplementaryItems: [NSCollectionLayoutSupplementaryItem] { get set }
| `- note: mutation of this property is only permitted within the actor
23 | @NSCopying open var interItemSpacing: NSCollectionLayoutSpacing? { get set }
24 | open var subitems: [NSCollectionLayoutItem] { get }
/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 | }
AppKit.NSCollectionLayoutEdgeSpacing:3:35: note: calls to initializer 'init(leading:top:trailing:bottom:)' from outside of its actor context are implicitly asynchronous
1 | @available(macOS 10.15, *)
2 | @MainActor open class NSCollectionLayoutEdgeSpacing : NSObject, NSCopying {
3 | @MainActor public convenience init(leading: NSCollectionLayoutSpacing?, top: NSCollectionLayoutSpacing?, trailing: NSCollectionLayoutSpacing?, bottom: NSCollectionLayoutSpacing?)
| `- note: calls to initializer 'init(leading:top:trailing:bottom:)' from outside of its actor context are implicitly asynchronous
4 | @available(swift, obsoleted: 3, renamed: "init(leading:top:trailing:bottom:)")
5 | public convenience init(forLeading leading: NSCollectionLayoutSpacing?, top: NSCollectionLayoutSpacing?, trailing: NSCollectionLayoutSpacing?, bottom: NSCollectionLayoutSpacing?)
/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: error: main actor-isolated default value in a nonisolated context
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),
| `- error: main actor-isolated default value in a nonisolated context
31 | height: NSCollectionLayoutDimension = .fractionalHeight(1),
32 | @LayoutItemBuilder subItems: () -> [LayoutItem]) {
/Users/admin/builder/spi-builder-workspace/Sources/CompositionalLayoutDSL/Public/Group/VGroup.swift:31:17: error: main actor-isolated default value in a nonisolated context
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),
| `- error: main actor-isolated default value in a nonisolated context
32 | @LayoutItemBuilder subItems: () -> [LayoutItem]) {
33 | self.widthDimension = width
/Users/admin/builder/spi-builder-workspace/Sources/CompositionalLayoutDSL/Public/Group/VGroup.swift:48:17: error: main actor-isolated default value in a nonisolated context
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),
| `- error: main actor-isolated default value in a nonisolated context
49 | height: NSCollectionLayoutDimension = .fractionalHeight(1),
50 | count: Int,
/Users/admin/builder/spi-builder-workspace/Sources/CompositionalLayoutDSL/Public/Group/VGroup.swift:49:17: error: main actor-isolated default value in a nonisolated context
47 | /// in a horizontal line up to the number specified by count.
48 | public init(width: NSCollectionLayoutDimension = .fractionalWidth(1),
49 | height: NSCollectionLayoutDimension = .fractionalHeight(1),
| `- error: main actor-isolated default value in a nonisolated context
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())
AppKit.NSCollectionLayoutSize:10:25: note: property declared here
8 | @available(*, unavailable)
9 | open class func new() -> Self
10 | @MainActor open var widthDimension: NSCollectionLayoutDimension { get }
| `- note: property declared here
11 | open var heightDimension: NSCollectionLayoutDimension { get }
12 | @available(macOS 10.15, *)
/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 | }
AppKit.NSCollectionLayoutSize:11:14: note: property declared here
9 | open class func new() -> Self
10 | @MainActor open var widthDimension: NSCollectionLayoutDimension { get }
11 | open var heightDimension: NSCollectionLayoutDimension { get }
| `- note: property declared here
12 | @available(macOS 10.15, *)
13 | open func copy(with zone: NSZone? = nil) -> Any
/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)
AppKit.NSCollectionLayoutSize:10:25: note: property declared here
8 | @available(*, unavailable)
9 | open class func new() -> Self
10 | @MainActor open var widthDimension: NSCollectionLayoutDimension { get }
| `- note: property declared here
11 | open var heightDimension: NSCollectionLayoutDimension { get }
12 | @available(macOS 10.15, *)
/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 | }
AppKit.NSCollectionLayoutSize:11:14: note: property declared here
9 | open class func new() -> Self
10 | @MainActor open var widthDimension: NSCollectionLayoutDimension { get }
11 | open var heightDimension: NSCollectionLayoutDimension { get }
| `- note: property declared here
12 | @available(macOS 10.15, *)
13 | open func copy(with zone: NSZone? = nil) -> Any
/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:3:32: note: calls to class method 'fractionalWidth' from outside of its actor context are implicitly asynchronous
1 | @available(macOS 10.15, *)
2 | @MainActor open class NSCollectionLayoutDimension : NSObject, NSCopying {
3 | @MainActor open class func fractionalWidth(_ fractionalWidth: CGFloat) -> Self
| `- note: calls to class method 'fractionalWidth' from outside of its actor context are implicitly asynchronous
4 | @available(swift, obsoleted: 3, renamed: "fractionalWidth(_:)")
5 | open class func fractionalWidthDimension(_ fractionalWidth: CGFloat) -> Self
/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:6:32: note: calls to class method 'fractionalHeight' from outside of its actor context are implicitly asynchronous
4 | @available(swift, obsoleted: 3, renamed: "fractionalWidth(_:)")
5 | open class func fractionalWidthDimension(_ fractionalWidth: CGFloat) -> Self
6 | @MainActor open class func fractionalHeight(_ fractionalHeight: CGFloat) -> Self
| `- note: calls to class method 'fractionalHeight' from outside of its actor context are implicitly asynchronous
7 | @available(swift, obsoleted: 3, renamed: "fractionalHeight(_:)")
8 | open class func fractionalHeightDimension(_ fractionalHeight: CGFloat) -> Self
/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
AppKit.NSCollectionLayoutSize:3:24: note: calls to initializer 'init(widthDimension:heightDimension:)' from outside of its actor context are implicitly asynchronous
1 | @available(macOS 10.15, *)
2 | @MainActor open class NSCollectionLayoutSize : NSObject, NSCopying {
3 | public convenience init(widthDimension width: NSCollectionLayoutDimension, heightDimension height: NSCollectionLayoutDimension)
| `- note: calls to initializer 'init(widthDimension:heightDimension:)' from outside of its actor context are implicitly asynchronous
4 | @available(*, unavailable, renamed: "init(widthDimension:heightDimension:)", message: "Not available in Swift")
5 | open class func sizeWithWidthDimension(_ width: NSCollectionLayoutDimension, heightDimension height: NSCollectionLayoutDimension) -> Self
/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:12:21: note: calls to class method 'vertical(layoutSize:subitems:)' from outside of its actor context are implicitly asynchronous
10 | @available(swift, obsoleted: 3, renamed: "vertical(layoutSize:subitem:count:)")
11 | open class func verticalGroupWithLayoutSize(_ layoutSize: NSCollectionLayoutSize, subitem: NSCollectionLayoutItem, count: Int) -> Self
12 | 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
13 | @available(swift, obsoleted: 3, renamed: "vertical(layoutSize:subitems:)")
14 | open class func verticalGroupWithLayoutSize(_ layoutSize: NSCollectionLayoutSize, subitems: [NSCollectionLayoutItem]) -> Self
/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:9:21: note: calls to class method 'vertical(layoutSize:subitem:count:)' from outside of its actor context are implicitly asynchronous
7 | @available(swift, obsoleted: 3, renamed: "horizontal(layoutSize:subitems:)")
8 | open class func horizontalGroupWithLayoutSize(_ layoutSize: NSCollectionLayoutSize, subitems: [NSCollectionLayoutItem]) -> Self
9 | 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
10 | @available(swift, obsoleted: 3, renamed: "vertical(layoutSize:subitem:count:)")
11 | open class func verticalGroupWithLayoutSize(_ layoutSize: NSCollectionLayoutSize, subitem: NSCollectionLayoutItem, count: Int) -> Self
/Users/admin/builder/spi-builder-workspace/Sources/CompositionalLayoutDSL/Public/Item/Item.swift:34:17: error: main actor-isolated default value in a nonisolated context
32 |
33 | /// Creates an item of the specified size
34 | public init(width: NSCollectionLayoutDimension = .fractionalWidth(1),
| `- error: main actor-isolated default value in a nonisolated context
35 | height: NSCollectionLayoutDimension = .fractionalHeight(1)) {
36 | self.widthDimension = width
/Users/admin/builder/spi-builder-workspace/Sources/CompositionalLayoutDSL/Public/Item/Item.swift:35:17: error: main actor-isolated default value in a nonisolated context
33 | /// Creates an item of the specified size
34 | public init(width: NSCollectionLayoutDimension = .fractionalWidth(1),
35 | height: NSCollectionLayoutDimension = .fractionalHeight(1)) {
| `- error: main actor-isolated default value in a nonisolated context
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 = []
AppKit.NSCollectionLayoutSize:10:25: note: property declared here
8 | @available(*, unavailable)
9 | open class func new() -> Self
10 | @MainActor open var widthDimension: NSCollectionLayoutDimension { get }
| `- note: property declared here
11 | open var heightDimension: NSCollectionLayoutDimension { get }
12 | @available(macOS 10.15, *)
/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 | }
AppKit.NSCollectionLayoutSize:11:14: note: property declared here
9 | open class func new() -> Self
10 | @MainActor open var widthDimension: NSCollectionLayoutDimension { get }
11 | open var heightDimension: NSCollectionLayoutDimension { get }
| `- note: property declared here
12 | @available(macOS 10.15, *)
13 | open func copy(with zone: NSZone? = nil) -> Any
/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:3:32: note: calls to class method 'fractionalWidth' from outside of its actor context are implicitly asynchronous
1 | @available(macOS 10.15, *)
2 | @MainActor open class NSCollectionLayoutDimension : NSObject, NSCopying {
3 | @MainActor open class func fractionalWidth(_ fractionalWidth: CGFloat) -> Self
| `- note: calls to class method 'fractionalWidth' from outside of its actor context are implicitly asynchronous
4 | @available(swift, obsoleted: 3, renamed: "fractionalWidth(_:)")
5 | open class func fractionalWidthDimension(_ fractionalWidth: CGFloat) -> Self
/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:6:32: note: calls to class method 'fractionalHeight' from outside of its actor context are implicitly asynchronous
4 | @available(swift, obsoleted: 3, renamed: "fractionalWidth(_:)")
5 | open class func fractionalWidthDimension(_ fractionalWidth: CGFloat) -> Self
6 | @MainActor open class func fractionalHeight(_ fractionalHeight: CGFloat) -> Self
| `- note: calls to class method 'fractionalHeight' from outside of its actor context are implicitly asynchronous
7 | @available(swift, obsoleted: 3, renamed: "fractionalHeight(_:)")
8 | open class func fractionalHeightDimension(_ fractionalHeight: CGFloat) -> Self
/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:3:32: note: calls to class method 'fractionalWidth' from outside of its actor context are implicitly asynchronous
1 | @available(macOS 10.15, *)
2 | @MainActor open class NSCollectionLayoutDimension : NSObject, NSCopying {
3 | @MainActor open class func fractionalWidth(_ fractionalWidth: CGFloat) -> Self
| `- note: calls to class method 'fractionalWidth' from outside of its actor context are implicitly asynchronous
4 | @available(swift, obsoleted: 3, renamed: "fractionalWidth(_:)")
5 | open class func fractionalWidthDimension(_ fractionalWidth: CGFloat) -> Self
/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:6:32: note: calls to class method 'fractionalHeight' from outside of its actor context are implicitly asynchronous
4 | @available(swift, obsoleted: 3, renamed: "fractionalWidth(_:)")
5 | open class func fractionalWidthDimension(_ fractionalWidth: CGFloat) -> Self
6 | @MainActor open class func fractionalHeight(_ fractionalHeight: CGFloat) -> Self
| `- note: calls to class method 'fractionalHeight' from outside of its actor context are implicitly asynchronous
7 | @available(swift, obsoleted: 3, renamed: "fractionalHeight(_:)")
8 | open class func fractionalHeightDimension(_ fractionalHeight: CGFloat) -> Self
/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:))
AppKit.NSCollectionLayoutItem:6:35: note: calls to initializer 'init(layoutSize:supplementaryItems:)' from outside of its actor context are implicitly asynchronous
4 | @available(*, unavailable, renamed: "init(layoutSize:)", message: "Not available in Swift")
5 | open class func itemWithLayoutSize(_ layoutSize: NSCollectionLayoutSize) -> Self
6 | @MainActor public convenience init(layoutSize: NSCollectionLayoutSize, supplementaryItems: [NSCollectionLayoutSupplementaryItem])
| `- note: calls to initializer 'init(layoutSize:supplementaryItems:)' from outside of its actor context are implicitly asynchronous
7 | @available(*, unavailable, renamed: "init(layoutSize:supplementaryItems:)", message: "Not available in Swift")
8 | open class func itemWithLayoutSize(_ layoutSize: NSCollectionLayoutSize, supplementaryItems: [NSCollectionLayoutSupplementaryItem]) -> Self
/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 | )
AppKit.NSCollectionLayoutSize:3:24: note: calls to initializer 'init(widthDimension:heightDimension:)' from outside of its actor context are implicitly asynchronous
1 | @available(macOS 10.15, *)
2 | @MainActor open class NSCollectionLayoutSize : NSObject, NSCopying {
3 | public convenience init(widthDimension width: NSCollectionLayoutDimension, heightDimension height: NSCollectionLayoutDimension)
| `- note: calls to initializer 'init(widthDimension:heightDimension:)' from outside of its actor context are implicitly asynchronous
4 | @available(*, unavailable, renamed: "init(widthDimension:heightDimension:)", message: "Not available in Swift")
5 | open class func sizeWithWidthDimension(_ width: NSCollectionLayoutDimension, heightDimension height: NSCollectionLayoutDimension) -> Self
/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 | }
AppKit.NSCollectionLayoutEdgeSpacing:3:35: note: calls to initializer 'init(leading:top:trailing:bottom:)' from outside of its actor context are implicitly asynchronous
1 | @available(macOS 10.15, *)
2 | @MainActor open class NSCollectionLayoutEdgeSpacing : NSObject, NSCopying {
3 | @MainActor public convenience init(leading: NSCollectionLayoutSpacing?, top: NSCollectionLayoutSpacing?, trailing: NSCollectionLayoutSpacing?, bottom: NSCollectionLayoutSpacing?)
| `- note: calls to initializer 'init(leading:top:trailing:bottom:)' from outside of its actor context are implicitly asynchronous
4 | @available(swift, obsoleted: 3, renamed: "init(leading:top:trailing:bottom:)")
5 | public convenience init(forLeading leading: NSCollectionLayoutSpacing?, top: NSCollectionLayoutSpacing?, trailing: NSCollectionLayoutSpacing?, bottom: NSCollectionLayoutSpacing?)
/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 | }
BUILD FAILURE 6.0 macosSpm