Build Information
Failed to build CompositionalLayoutDSL, reference main (3b1c5a
), with Swift 6.0 for macOS (SPM) on 30 Nov 2024 02:08:33 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
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/CustomGroup.swift:73: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
70 |
71 | extension CustomGroup: BuildableGroup {
72 | func makeGroup() -> NSCollectionLayoutGroup {
| `- note: add '@MainActor' to make instance method 'makeGroup()' part of global actor 'MainActor'
73 | let size = NSCollectionLayoutSize(
| `- 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
74 | widthDimension: widthDimension,
75 | 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/CustomGroup.swift:77:45: warning: call to main actor-isolated class method 'custom(layoutSize:itemProvider:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
70 |
71 | extension CustomGroup: BuildableGroup {
72 | func makeGroup() -> NSCollectionLayoutGroup {
| `- note: add '@MainActor' to make instance method 'makeGroup()' part of global actor 'MainActor'
73 | let size = NSCollectionLayoutSize(
74 | widthDimension: widthDimension,
75 | heightDimension: heightDimension
76 | )
77 | let group = NSCollectionLayoutGroup.custom(layoutSize: size, itemProvider: itemProvider)
| `- warning: call to main actor-isolated class method 'custom(layoutSize:itemProvider:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
78 | return group
79 | }
AppKit.NSCollectionLayoutGroup:15:32: note: calls to class method 'custom(layoutSize:itemProvider:)' 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
15 | @MainActor open class func custom(layoutSize: NSCollectionLayoutSize, itemProvider: @escaping NSCollectionLayoutGroupCustomItemProvider) -> Self
| `- note: calls to class method 'custom(layoutSize:itemProvider:)' from outside of its actor context are implicitly asynchronous
16 | @available(swift, obsoleted: 3, renamed: "custom(layoutSize:itemProvider:)")
17 | open class func customGroupWithLayoutSize(_ layoutSize: NSCollectionLayoutSize, itemProvider: @escaping NSCollectionLayoutGroupCustomItemProvider) -> Self
/Users/admin/builder/spi-builder-workspace/Sources/CompositionalLayoutDSL/Public/Group/HGroup.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 horizontal 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/HGroup.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 horizontal 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/HGroup.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/HGroup.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/HGroup.swift:41:36: warning: main actor-isolated property 'widthDimension' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
39 | public init(size: NSCollectionLayoutSize,
40 | @LayoutItemBuilder subItems: () -> [LayoutItem]) {
41 | self.widthDimension = size.widthDimension
| `- warning: main actor-isolated property 'widthDimension' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
42 | self.heightDimension = size.heightDimension
43 | self.subItems = .list(subItems())
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/HGroup.swift:42:37: warning: main actor-isolated property 'heightDimension' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
40 | @LayoutItemBuilder subItems: () -> [LayoutItem]) {
41 | self.widthDimension = size.widthDimension
42 | self.heightDimension = size.heightDimension
| `- warning: main actor-isolated property 'heightDimension' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
43 | self.subItems = .list(subItems())
44 | }
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/HGroup.swift:62:36: warning: main actor-isolated property 'widthDimension' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
60 | count: Int,
61 | subItem: () -> LayoutItem) {
62 | self.widthDimension = size.widthDimension
| `- warning: main actor-isolated property 'widthDimension' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
63 | self.heightDimension = size.heightDimension
64 | self.subItems = .repeated(subItem(), count: count)
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/HGroup.swift:63:37: warning: main actor-isolated property 'heightDimension' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
61 | subItem: () -> LayoutItem) {
62 | self.widthDimension = size.widthDimension
63 | self.heightDimension = size.heightDimension
| `- warning: main actor-isolated property 'heightDimension' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
64 | self.subItems = .repeated(subItem(), count: count)
65 | }
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/HGroup.swift:69:27: warning: call to main actor-isolated class method 'fractionalWidth' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
67 | /// Creates a group containing an array of items arranged in a horizontal line.
68 | public init(@LayoutItemBuilder subItems: () -> [LayoutItem]) {
69 | self.init(width: .fractionalWidth(1), height: .fractionalHeight(1), subItems: subItems)
| `- warning: call to main actor-isolated class method 'fractionalWidth' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
70 | }
71 |
AppKit.NSCollectionLayoutDimension: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/HGroup.swift:69:56: warning: call to main actor-isolated class method 'fractionalHeight' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
67 | /// Creates a group containing an array of items arranged in a horizontal line.
68 | public init(@LayoutItemBuilder subItems: () -> [LayoutItem]) {
69 | self.init(width: .fractionalWidth(1), height: .fractionalHeight(1), subItems: subItems)
| `- warning: call to main actor-isolated class method 'fractionalHeight' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
70 | }
71 |
AppKit.NSCollectionLayoutDimension: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/HGroup.swift:97:20: warning: call to main actor-isolated initializer 'init(widthDimension:heightDimension:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
94 |
95 | extension HGroup: BuildableGroup {
96 | func makeGroup() -> NSCollectionLayoutGroup {
| `- note: add '@MainActor' to make instance method 'makeGroup()' part of global actor 'MainActor'
97 | let size = NSCollectionLayoutSize(
| `- warning: call to main actor-isolated initializer 'init(widthDimension:heightDimension:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
98 | widthDimension: widthDimension,
99 | heightDimension: heightDimension
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/HGroup.swift:104:45: warning: call to main actor-isolated class method 'horizontal(layoutSize:subitems:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
94 |
95 | extension HGroup: BuildableGroup {
96 | func makeGroup() -> NSCollectionLayoutGroup {
| `- note: add '@MainActor' to make instance method 'makeGroup()' part of global actor 'MainActor'
97 | let size = NSCollectionLayoutSize(
98 | widthDimension: widthDimension,
:
102 | switch subItems {
103 | case let .list(items):
104 | group = NSCollectionLayoutGroup.horizontal(
| `- warning: call to main actor-isolated class method 'horizontal(layoutSize:subitems:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
105 | layoutSize: size,
106 | subitems: items.map(ItemBuilder.make(from:))
AppKit.NSCollectionLayoutGroup: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
[23/42] Compiling CompositionalLayoutDSL ItemBuilder.swift
[24/42] Compiling CompositionalLayoutDSL SectionBuilder.swift
[25/42] Compiling CompositionalLayoutDSL SupplementaryItemBuilder.swift
[26/42] Compiling CompositionalLayoutDSL ModifiedLayoutBoundarySupplementaryItem.swift
[27/42] Compiling CompositionalLayoutDSL BoundarySupplementaryItemBuilder.swift
[28/42] Compiling CompositionalLayoutDSL ConfigurationBuilder.swift
[29/42] Compiling CompositionalLayoutDSL DecorationItemBuilder.swift
[30/42] Compiling CompositionalLayoutDSL GroupBuilder.swift
[31/42] Compiling CompositionalLayoutDSL CompositionalLayout.swift
/Users/admin/builder/spi-builder-workspace/Sources/CompositionalLayoutDSL/Public/CompositionalLayout.swift:121:16: warning: call to main actor-isolated initializer 'init(sectionProvider:configuration:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
118 | extension CompositionalLayout {
119 | #if os(macOS)
120 | func makeCollectionViewCompositionalLayout() -> NSCollectionViewCompositionalLayout {
| `- note: add '@MainActor' to make instance method 'makeCollectionViewCompositionalLayout()' part of global actor 'MainActor'
121 | return NSCollectionViewCompositionalLayout(
| `- warning: call to main actor-isolated initializer 'init(sectionProvider:configuration:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
122 | sectionProvider: { section, environment in
123 | return sectionBuilder(section, environment).map(SectionBuilder.make(from:))
AppKit.NSCollectionViewCompositionalLayout:6:23: note: calls to initializer 'init(sectionProvider:configuration:)' from outside of its actor context are implicitly asynchronous
4 | public init(section: NSCollectionLayoutSection, configuration: NSCollectionViewCompositionalLayoutConfiguration)
5 | public init(sectionProvider: @escaping NSCollectionViewCompositionalLayoutSectionProvider)
6 | @MainActor public init(sectionProvider: @escaping NSCollectionViewCompositionalLayoutSectionProvider, configuration: NSCollectionViewCompositionalLayoutConfiguration)
| `- note: calls to initializer 'init(sectionProvider:configuration:)' from outside of its actor context are implicitly asynchronous
7 | @available(*, unavailable)
8 | public init()
/Users/admin/builder/spi-builder-workspace/Sources/CompositionalLayoutDSL/Public/CompositionalLayoutDSL.swift:30:12: warning: call to main actor-isolated initializer 'init(section:configuration:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
24 | #if os(macOS)
25 | /// Converts a layout configuration and a layout section into an `NSCollectionViewCompositionalLayout`
26 | public func LayoutBuilder(
| `- note: add '@MainActor' to make global function 'LayoutBuilder(configuration:layoutSection:)' part of global actor 'MainActor'
27 | configuration: LayoutConfiguration = Configuration(),
28 | layoutSection: () -> LayoutSection
29 | ) -> NSCollectionViewCompositionalLayout {
30 | return NSCollectionViewCompositionalLayout(
| `- warning: call to main actor-isolated initializer 'init(section:configuration:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
31 | section: SectionBuilder.make(from: layoutSection()),
32 | configuration: ConfigurationBuilder.make(from: configuration)
AppKit.NSCollectionViewCompositionalLayout:4:12: note: calls to initializer 'init(section:configuration:)' from outside of its actor context are implicitly asynchronous
2 | @MainActor open class NSCollectionViewCompositionalLayout : NSCollectionViewLayout {
3 | public init(section: NSCollectionLayoutSection)
4 | public init(section: NSCollectionLayoutSection, configuration: NSCollectionViewCompositionalLayoutConfiguration)
| `- note: calls to initializer 'init(section:configuration:)' from outside of its actor context are implicitly asynchronous
5 | public init(sectionProvider: @escaping NSCollectionViewCompositionalLayoutSectionProvider)
6 | @MainActor public init(sectionProvider: @escaping NSCollectionViewCompositionalLayoutSectionProvider, configuration: NSCollectionViewCompositionalLayoutConfiguration)
/Users/admin/builder/spi-builder-workspace/Sources/CompositionalLayoutDSL/Public/Configuration/Configuration.swift:32:16: warning: call to main actor-isolated initializer 'init()' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
28 |
29 | extension Configuration: BuildableConfiguration {
30 | func makeConfiguration() -> ConfigurationBuilder.TransformedType {
| `- note: add '@MainActor' to make instance method 'makeConfiguration()' part of global actor 'MainActor'
31 | #if os(macOS)
32 | return NSCollectionViewCompositionalLayoutConfiguration()
| `- warning: call to main actor-isolated initializer 'init()' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
33 | #else
34 | return UICollectionViewCompositionalLayoutConfiguration()
AppKit.NSCollectionViewCompositionalLayoutConfiguration:6:23: note: calls to initializer 'init()' from outside of its actor context are implicitly asynchronous
4 | open var interSectionSpacing: CGFloat { get set }
5 | open var boundarySupplementaryItems: [NSCollectionLayoutBoundarySupplementaryItem] { get set }
6 | @MainActor public init()
| `- note: calls to initializer 'init()' from outside of its actor context are implicitly asynchronous
7 | @available(macOS 10.15, *)
8 | open func copy(with zone: NSZone? = nil) -> Any
/Users/admin/builder/spi-builder-workspace/Sources/CompositionalLayoutDSL/Public/Configuration/LayoutConfiguration.swift:49:51: warning: cannot form key path to main actor-isolated property 'scrollDirection'; this is an error in the Swift 6 language mode
47 | _ scrollDirection: NSCollectionView.ScrollDirection
48 | ) -> LayoutConfiguration {
49 | valueModifier(scrollDirection, keyPath: \.scrollDirection)
| `- warning: cannot form key path to main actor-isolated property 'scrollDirection'; this is an error in the Swift 6 language mode
50 | }
51 | #else
/Users/admin/builder/spi-builder-workspace/Sources/CompositionalLayoutDSL/Public/Configuration/LayoutConfiguration.swift:68:55: warning: cannot form key path to main actor-isolated property 'interSectionSpacing'; this is an error in the Swift 6 language mode
66 | @warn_unqualified_access
67 | public func interSectionSpacing(_ interSectionSpacing: CGFloat) -> LayoutConfiguration {
68 | valueModifier(interSectionSpacing, keyPath: \.interSectionSpacing)
| `- warning: cannot form key path to main actor-isolated property 'interSectionSpacing'; this is an error in the Swift 6 language mode
69 | }
70 |
/Users/admin/builder/spi-builder-workspace/Sources/CompositionalLayoutDSL/Public/Configuration/LayoutConfiguration.swift:81:16: warning: main actor-isolated property 'boundarySupplementaryItems' can not be mutated from a nonisolated context; this is an error in the Swift 6 language mode
79 | .map(BoundarySupplementaryItemBuilder.make(from:))
80 | return valueModifier {
81 | $0.boundarySupplementaryItems.append(contentsOf: boundarySupplementaryItems)
| `- warning: main actor-isolated property 'boundarySupplementaryItems' can not be mutated from a nonisolated context; this is an error in the Swift 6 language mode
82 | }
83 | }
AppKit.NSCollectionViewCompositionalLayoutConfiguration:5:14: note: mutation of this property is only permitted within the actor
3 | open var scrollDirection: NSCollectionView.ScrollDirection { get set }
4 | open var interSectionSpacing: CGFloat { get set }
5 | open var boundarySupplementaryItems: [NSCollectionLayoutBoundarySupplementaryItem] { get set }
| `- note: mutation of this property is only permitted within the actor
6 | @MainActor public init()
7 | @available(macOS 10.15, *)
/Users/admin/builder/spi-builder-workspace/Sources/CompositionalLayoutDSL/Public/CompositionalLayout.swift:121:16: warning: sending task-isolated value of type '(Int, any NSCollectionLayoutEnvironment) -> NSCollectionLayoutSection?' with later accesses to main actor-isolated context risks causing data races; this is an error in the Swift 6 language mode
119 | #if os(macOS)
120 | func makeCollectionViewCompositionalLayout() -> NSCollectionViewCompositionalLayout {
121 | return NSCollectionViewCompositionalLayout(
| `- warning: sending task-isolated value of type '(Int, any NSCollectionLayoutEnvironment) -> NSCollectionLayoutSection?' with later accesses to main actor-isolated context risks causing data races; this is an error in the Swift 6 language mode
122 | sectionProvider: { section, environment in
123 | return sectionBuilder(section, environment).map(SectionBuilder.make(from:))
[32/42] Compiling CompositionalLayoutDSL CompositionalLayoutDSL.swift
/Users/admin/builder/spi-builder-workspace/Sources/CompositionalLayoutDSL/Public/CompositionalLayout.swift:121:16: warning: call to main actor-isolated initializer 'init(sectionProvider:configuration:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
118 | extension CompositionalLayout {
119 | #if os(macOS)
120 | func makeCollectionViewCompositionalLayout() -> NSCollectionViewCompositionalLayout {
| `- note: add '@MainActor' to make instance method 'makeCollectionViewCompositionalLayout()' part of global actor 'MainActor'
121 | return NSCollectionViewCompositionalLayout(
| `- warning: call to main actor-isolated initializer 'init(sectionProvider:configuration:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
122 | sectionProvider: { section, environment in
123 | return sectionBuilder(section, environment).map(SectionBuilder.make(from:))
AppKit.NSCollectionViewCompositionalLayout:6:23: note: calls to initializer 'init(sectionProvider:configuration:)' from outside of its actor context are implicitly asynchronous
4 | public init(section: NSCollectionLayoutSection, configuration: NSCollectionViewCompositionalLayoutConfiguration)
5 | public init(sectionProvider: @escaping NSCollectionViewCompositionalLayoutSectionProvider)
6 | @MainActor public init(sectionProvider: @escaping NSCollectionViewCompositionalLayoutSectionProvider, configuration: NSCollectionViewCompositionalLayoutConfiguration)
| `- note: calls to initializer 'init(sectionProvider:configuration:)' from outside of its actor context are implicitly asynchronous
7 | @available(*, unavailable)
8 | public init()
/Users/admin/builder/spi-builder-workspace/Sources/CompositionalLayoutDSL/Public/CompositionalLayoutDSL.swift:30:12: warning: call to main actor-isolated initializer 'init(section:configuration:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
24 | #if os(macOS)
25 | /// Converts a layout configuration and a layout section into an `NSCollectionViewCompositionalLayout`
26 | public func LayoutBuilder(
| `- note: add '@MainActor' to make global function 'LayoutBuilder(configuration:layoutSection:)' part of global actor 'MainActor'
27 | configuration: LayoutConfiguration = Configuration(),
28 | layoutSection: () -> LayoutSection
29 | ) -> NSCollectionViewCompositionalLayout {
30 | return NSCollectionViewCompositionalLayout(
| `- warning: call to main actor-isolated initializer 'init(section:configuration:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
31 | section: SectionBuilder.make(from: layoutSection()),
32 | configuration: ConfigurationBuilder.make(from: configuration)
AppKit.NSCollectionViewCompositionalLayout:4:12: note: calls to initializer 'init(section:configuration:)' from outside of its actor context are implicitly asynchronous
2 | @MainActor open class NSCollectionViewCompositionalLayout : NSCollectionViewLayout {
3 | public init(section: NSCollectionLayoutSection)
4 | public init(section: NSCollectionLayoutSection, configuration: NSCollectionViewCompositionalLayoutConfiguration)
| `- note: calls to initializer 'init(section:configuration:)' from outside of its actor context are implicitly asynchronous
5 | public init(sectionProvider: @escaping NSCollectionViewCompositionalLayoutSectionProvider)
6 | @MainActor public init(sectionProvider: @escaping NSCollectionViewCompositionalLayoutSectionProvider, configuration: NSCollectionViewCompositionalLayoutConfiguration)
/Users/admin/builder/spi-builder-workspace/Sources/CompositionalLayoutDSL/Public/Configuration/Configuration.swift:32:16: warning: call to main actor-isolated initializer 'init()' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
28 |
29 | extension Configuration: BuildableConfiguration {
30 | func makeConfiguration() -> ConfigurationBuilder.TransformedType {
| `- note: add '@MainActor' to make instance method 'makeConfiguration()' part of global actor 'MainActor'
31 | #if os(macOS)
32 | return NSCollectionViewCompositionalLayoutConfiguration()
| `- warning: call to main actor-isolated initializer 'init()' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
33 | #else
34 | return UICollectionViewCompositionalLayoutConfiguration()
AppKit.NSCollectionViewCompositionalLayoutConfiguration:6:23: note: calls to initializer 'init()' from outside of its actor context are implicitly asynchronous
4 | open var interSectionSpacing: CGFloat { get set }
5 | open var boundarySupplementaryItems: [NSCollectionLayoutBoundarySupplementaryItem] { get set }
6 | @MainActor public init()
| `- note: calls to initializer 'init()' from outside of its actor context are implicitly asynchronous
7 | @available(macOS 10.15, *)
8 | open func copy(with zone: NSZone? = nil) -> Any
/Users/admin/builder/spi-builder-workspace/Sources/CompositionalLayoutDSL/Public/Configuration/LayoutConfiguration.swift:49:51: warning: cannot form key path to main actor-isolated property 'scrollDirection'; this is an error in the Swift 6 language mode
47 | _ scrollDirection: NSCollectionView.ScrollDirection
48 | ) -> LayoutConfiguration {
49 | valueModifier(scrollDirection, keyPath: \.scrollDirection)
| `- warning: cannot form key path to main actor-isolated property 'scrollDirection'; this is an error in the Swift 6 language mode
50 | }
51 | #else
/Users/admin/builder/spi-builder-workspace/Sources/CompositionalLayoutDSL/Public/Configuration/LayoutConfiguration.swift:68:55: warning: cannot form key path to main actor-isolated property 'interSectionSpacing'; this is an error in the Swift 6 language mode
66 | @warn_unqualified_access
67 | public func interSectionSpacing(_ interSectionSpacing: CGFloat) -> LayoutConfiguration {
68 | valueModifier(interSectionSpacing, keyPath: \.interSectionSpacing)
| `- warning: cannot form key path to main actor-isolated property 'interSectionSpacing'; this is an error in the Swift 6 language mode
69 | }
70 |
/Users/admin/builder/spi-builder-workspace/Sources/CompositionalLayoutDSL/Public/Configuration/LayoutConfiguration.swift:81:16: warning: main actor-isolated property 'boundarySupplementaryItems' can not be mutated from a nonisolated context; this is an error in the Swift 6 language mode
79 | .map(BoundarySupplementaryItemBuilder.make(from:))
80 | return valueModifier {
81 | $0.boundarySupplementaryItems.append(contentsOf: boundarySupplementaryItems)
| `- warning: main actor-isolated property 'boundarySupplementaryItems' can not be mutated from a nonisolated context; this is an error in the Swift 6 language mode
82 | }
83 | }
AppKit.NSCollectionViewCompositionalLayoutConfiguration:5:14: note: mutation of this property is only permitted within the actor
3 | open var scrollDirection: NSCollectionView.ScrollDirection { get set }
4 | open var interSectionSpacing: CGFloat { get set }
5 | open var boundarySupplementaryItems: [NSCollectionLayoutBoundarySupplementaryItem] { get set }
| `- note: mutation of this property is only permitted within the actor
6 | @MainActor public init()
7 | @available(macOS 10.15, *)
/Users/admin/builder/spi-builder-workspace/Sources/CompositionalLayoutDSL/Public/CompositionalLayout.swift:121:16: warning: sending task-isolated value of type '(Int, any NSCollectionLayoutEnvironment) -> NSCollectionLayoutSection?' with later accesses to main actor-isolated context risks causing data races; this is an error in the Swift 6 language mode
119 | #if os(macOS)
120 | func makeCollectionViewCompositionalLayout() -> NSCollectionViewCompositionalLayout {
121 | return NSCollectionViewCompositionalLayout(
| `- warning: sending task-isolated value of type '(Int, any NSCollectionLayoutEnvironment) -> NSCollectionLayoutSection?' with later accesses to main actor-isolated context risks causing data races; this is an error in the Swift 6 language mode
122 | sectionProvider: { section, environment in
123 | return sectionBuilder(section, environment).map(SectionBuilder.make(from:))
[33/42] Compiling CompositionalLayoutDSL Configuration.swift
/Users/admin/builder/spi-builder-workspace/Sources/CompositionalLayoutDSL/Public/CompositionalLayout.swift:121:16: warning: call to main actor-isolated initializer 'init(sectionProvider:configuration:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
118 | extension CompositionalLayout {
119 | #if os(macOS)
120 | func makeCollectionViewCompositionalLayout() -> NSCollectionViewCompositionalLayout {
| `- note: add '@MainActor' to make instance method 'makeCollectionViewCompositionalLayout()' part of global actor 'MainActor'
121 | return NSCollectionViewCompositionalLayout(
| `- warning: call to main actor-isolated initializer 'init(sectionProvider:configuration:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
122 | sectionProvider: { section, environment in
123 | return sectionBuilder(section, environment).map(SectionBuilder.make(from:))
AppKit.NSCollectionViewCompositionalLayout:6:23: note: calls to initializer 'init(sectionProvider:configuration:)' from outside of its actor context are implicitly asynchronous
4 | public init(section: NSCollectionLayoutSection, configuration: NSCollectionViewCompositionalLayoutConfiguration)
5 | public init(sectionProvider: @escaping NSCollectionViewCompositionalLayoutSectionProvider)
6 | @MainActor public init(sectionProvider: @escaping NSCollectionViewCompositionalLayoutSectionProvider, configuration: NSCollectionViewCompositionalLayoutConfiguration)
| `- note: calls to initializer 'init(sectionProvider:configuration:)' from outside of its actor context are implicitly asynchronous
7 | @available(*, unavailable)
8 | public init()
/Users/admin/builder/spi-builder-workspace/Sources/CompositionalLayoutDSL/Public/CompositionalLayoutDSL.swift:30:12: warning: call to main actor-isolated initializer 'init(section:configuration:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
24 | #if os(macOS)
25 | /// Converts a layout configuration and a layout section into an `NSCollectionViewCompositionalLayout`
26 | public func LayoutBuilder(
| `- note: add '@MainActor' to make global function 'LayoutBuilder(configuration:layoutSection:)' part of global actor 'MainActor'
27 | configuration: LayoutConfiguration = Configuration(),
28 | layoutSection: () -> LayoutSection
29 | ) -> NSCollectionViewCompositionalLayout {
30 | return NSCollectionViewCompositionalLayout(
| `- warning: call to main actor-isolated initializer 'init(section:configuration:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
31 | section: SectionBuilder.make(from: layoutSection()),
32 | configuration: ConfigurationBuilder.make(from: configuration)
AppKit.NSCollectionViewCompositionalLayout:4:12: note: calls to initializer 'init(section:configuration:)' from outside of its actor context are implicitly asynchronous
2 | @MainActor open class NSCollectionViewCompositionalLayout : NSCollectionViewLayout {
3 | public init(section: NSCollectionLayoutSection)
4 | public init(section: NSCollectionLayoutSection, configuration: NSCollectionViewCompositionalLayoutConfiguration)
| `- note: calls to initializer 'init(section:configuration:)' from outside of its actor context are implicitly asynchronous
5 | public init(sectionProvider: @escaping NSCollectionViewCompositionalLayoutSectionProvider)
6 | @MainActor public init(sectionProvider: @escaping NSCollectionViewCompositionalLayoutSectionProvider, configuration: NSCollectionViewCompositionalLayoutConfiguration)
/Users/admin/builder/spi-builder-workspace/Sources/CompositionalLayoutDSL/Public/Configuration/Configuration.swift:32:16: warning: call to main actor-isolated initializer 'init()' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
28 |
29 | extension Configuration: BuildableConfiguration {
30 | func makeConfiguration() -> ConfigurationBuilder.TransformedType {
| `- note: add '@MainActor' to make instance method 'makeConfiguration()' part of global actor 'MainActor'
31 | #if os(macOS)
32 | return NSCollectionViewCompositionalLayoutConfiguration()
| `- warning: call to main actor-isolated initializer 'init()' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
33 | #else
34 | return UICollectionViewCompositionalLayoutConfiguration()
AppKit.NSCollectionViewCompositionalLayoutConfiguration:6:23: note: calls to initializer 'init()' from outside of its actor context are implicitly asynchronous
4 | open var interSectionSpacing: CGFloat { get set }
5 | open var boundarySupplementaryItems: [NSCollectionLayoutBoundarySupplementaryItem] { get set }
6 | @MainActor public init()
| `- note: calls to initializer 'init()' from outside of its actor context are implicitly asynchronous
7 | @available(macOS 10.15, *)
8 | open func copy(with zone: NSZone? = nil) -> Any
/Users/admin/builder/spi-builder-workspace/Sources/CompositionalLayoutDSL/Public/Configuration/LayoutConfiguration.swift:49:51: warning: cannot form key path to main actor-isolated property 'scrollDirection'; this is an error in the Swift 6 language mode
47 | _ scrollDirection: NSCollectionView.ScrollDirection
48 | ) -> LayoutConfiguration {
49 | valueModifier(scrollDirection, keyPath: \.scrollDirection)
| `- warning: cannot form key path to main actor-isolated property 'scrollDirection'; this is an error in the Swift 6 language mode
50 | }
51 | #else
/Users/admin/builder/spi-builder-workspace/Sources/CompositionalLayoutDSL/Public/Configuration/LayoutConfiguration.swift:68:55: warning: cannot form key path to main actor-isolated property 'interSectionSpacing'; this is an error in the Swift 6 language mode
66 | @warn_unqualified_access
67 | public func interSectionSpacing(_ interSectionSpacing: CGFloat) -> LayoutConfiguration {
68 | valueModifier(interSectionSpacing, keyPath: \.interSectionSpacing)
| `- warning: cannot form key path to main actor-isolated property 'interSectionSpacing'; this is an error in the Swift 6 language mode
69 | }
70 |
/Users/admin/builder/spi-builder-workspace/Sources/CompositionalLayoutDSL/Public/Configuration/LayoutConfiguration.swift:81:16: warning: main actor-isolated property 'boundarySupplementaryItems' can not be mutated from a nonisolated context; this is an error in the Swift 6 language mode
79 | .map(BoundarySupplementaryItemBuilder.make(from:))
80 | return valueModifier {
81 | $0.boundarySupplementaryItems.append(contentsOf: boundarySupplementaryItems)
| `- warning: main actor-isolated property 'boundarySupplementaryItems' can not be mutated from a nonisolated context; this is an error in the Swift 6 language mode
82 | }
83 | }
AppKit.NSCollectionViewCompositionalLayoutConfiguration:5:14: note: mutation of this property is only permitted within the actor
3 | open var scrollDirection: NSCollectionView.ScrollDirection { get set }
4 | open var interSectionSpacing: CGFloat { get set }
5 | open var boundarySupplementaryItems: [NSCollectionLayoutBoundarySupplementaryItem] { get set }
| `- note: mutation of this property is only permitted within the actor
6 | @MainActor public init()
7 | @available(macOS 10.15, *)
/Users/admin/builder/spi-builder-workspace/Sources/CompositionalLayoutDSL/Public/CompositionalLayout.swift:121:16: warning: sending task-isolated value of type '(Int, any NSCollectionLayoutEnvironment) -> NSCollectionLayoutSection?' with later accesses to main actor-isolated context risks causing data races; this is an error in the Swift 6 language mode
119 | #if os(macOS)
120 | func makeCollectionViewCompositionalLayout() -> NSCollectionViewCompositionalLayout {
121 | return NSCollectionViewCompositionalLayout(
| `- warning: sending task-isolated value of type '(Int, any NSCollectionLayoutEnvironment) -> NSCollectionLayoutSection?' with later accesses to main actor-isolated context risks causing data races; this is an error in the Swift 6 language mode
122 | sectionProvider: { section, environment in
123 | return sectionBuilder(section, environment).map(SectionBuilder.make(from:))
[34/42] Compiling CompositionalLayoutDSL LayoutConfiguration.swift
/Users/admin/builder/spi-builder-workspace/Sources/CompositionalLayoutDSL/Public/CompositionalLayout.swift:121:16: warning: call to main actor-isolated initializer 'init(sectionProvider:configuration:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
118 | extension CompositionalLayout {
119 | #if os(macOS)
120 | func makeCollectionViewCompositionalLayout() -> NSCollectionViewCompositionalLayout {
| `- note: add '@MainActor' to make instance method 'makeCollectionViewCompositionalLayout()' part of global actor 'MainActor'
121 | return NSCollectionViewCompositionalLayout(
| `- warning: call to main actor-isolated initializer 'init(sectionProvider:configuration:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
122 | sectionProvider: { section, environment in
123 | return sectionBuilder(section, environment).map(SectionBuilder.make(from:))
AppKit.NSCollectionViewCompositionalLayout:6:23: note: calls to initializer 'init(sectionProvider:configuration:)' from outside of its actor context are implicitly asynchronous
4 | public init(section: NSCollectionLayoutSection, configuration: NSCollectionViewCompositionalLayoutConfiguration)
5 | public init(sectionProvider: @escaping NSCollectionViewCompositionalLayoutSectionProvider)
6 | @MainActor public init(sectionProvider: @escaping NSCollectionViewCompositionalLayoutSectionProvider, configuration: NSCollectionViewCompositionalLayoutConfiguration)
| `- note: calls to initializer 'init(sectionProvider:configuration:)' from outside of its actor context are implicitly asynchronous
7 | @available(*, unavailable)
8 | public init()
/Users/admin/builder/spi-builder-workspace/Sources/CompositionalLayoutDSL/Public/CompositionalLayoutDSL.swift:30:12: warning: call to main actor-isolated initializer 'init(section:configuration:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
24 | #if os(macOS)
25 | /// Converts a layout configuration and a layout section into an `NSCollectionViewCompositionalLayout`
26 | public func LayoutBuilder(
| `- note: add '@MainActor' to make global function 'LayoutBuilder(configuration:layoutSection:)' part of global actor 'MainActor'
27 | configuration: LayoutConfiguration = Configuration(),
28 | layoutSection: () -> LayoutSection
29 | ) -> NSCollectionViewCompositionalLayout {
30 | return NSCollectionViewCompositionalLayout(
| `- warning: call to main actor-isolated initializer 'init(section:configuration:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
31 | section: SectionBuilder.make(from: layoutSection()),
32 | configuration: ConfigurationBuilder.make(from: configuration)
AppKit.NSCollectionViewCompositionalLayout:4:12: note: calls to initializer 'init(section:configuration:)' from outside of its actor context are implicitly asynchronous
2 | @MainActor open class NSCollectionViewCompositionalLayout : NSCollectionViewLayout {
3 | public init(section: NSCollectionLayoutSection)
4 | public init(section: NSCollectionLayoutSection, configuration: NSCollectionViewCompositionalLayoutConfiguration)
| `- note: calls to initializer 'init(section:configuration:)' from outside of its actor context are implicitly asynchronous
5 | public init(sectionProvider: @escaping NSCollectionViewCompositionalLayoutSectionProvider)
6 | @MainActor public init(sectionProvider: @escaping NSCollectionViewCompositionalLayoutSectionProvider, configuration: NSCollectionViewCompositionalLayoutConfiguration)
/Users/admin/builder/spi-builder-workspace/Sources/CompositionalLayoutDSL/Public/Configuration/Configuration.swift:32:16: warning: call to main actor-isolated initializer 'init()' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
28 |
29 | extension Configuration: BuildableConfiguration {
30 | func makeConfiguration() -> ConfigurationBuilder.TransformedType {
| `- note: add '@MainActor' to make instance method 'makeConfiguration()' part of global actor 'MainActor'
31 | #if os(macOS)
32 | return NSCollectionViewCompositionalLayoutConfiguration()
| `- warning: call to main actor-isolated initializer 'init()' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
33 | #else
34 | return UICollectionViewCompositionalLayoutConfiguration()
AppKit.NSCollectionViewCompositionalLayoutConfiguration:6:23: note: calls to initializer 'init()' from outside of its actor context are implicitly asynchronous
4 | open var interSectionSpacing: CGFloat { get set }
5 | open var boundarySupplementaryItems: [NSCollectionLayoutBoundarySupplementaryItem] { get set }
6 | @MainActor public init()
| `- note: calls to initializer 'init()' from outside of its actor context are implicitly asynchronous
7 | @available(macOS 10.15, *)
8 | open func copy(with zone: NSZone? = nil) -> Any
/Users/admin/builder/spi-builder-workspace/Sources/CompositionalLayoutDSL/Public/Configuration/LayoutConfiguration.swift:49:51: warning: cannot form key path to main actor-isolated property 'scrollDirection'; this is an error in the Swift 6 language mode
47 | _ scrollDirection: NSCollectionView.ScrollDirection
48 | ) -> LayoutConfiguration {
49 | valueModifier(scrollDirection, keyPath: \.scrollDirection)
| `- warning: cannot form key path to main actor-isolated property 'scrollDirection'; this is an error in the Swift 6 language mode
50 | }
51 | #else
/Users/admin/builder/spi-builder-workspace/Sources/CompositionalLayoutDSL/Public/Configuration/LayoutConfiguration.swift:68:55: warning: cannot form key path to main actor-isolated property 'interSectionSpacing'; this is an error in the Swift 6 language mode
66 | @warn_unqualified_access
67 | public func interSectionSpacing(_ interSectionSpacing: CGFloat) -> LayoutConfiguration {
68 | valueModifier(interSectionSpacing, keyPath: \.interSectionSpacing)
| `- warning: cannot form key path to main actor-isolated property 'interSectionSpacing'; this is an error in the Swift 6 language mode
69 | }
70 |
/Users/admin/builder/spi-builder-workspace/Sources/CompositionalLayoutDSL/Public/Configuration/LayoutConfiguration.swift:81:16: warning: main actor-isolated property 'boundarySupplementaryItems' can not be mutated from a nonisolated context; this is an error in the Swift 6 language mode
79 | .map(BoundarySupplementaryItemBuilder.make(from:))
80 | return valueModifier {
81 | $0.boundarySupplementaryItems.append(contentsOf: boundarySupplementaryItems)
| `- warning: main actor-isolated property 'boundarySupplementaryItems' can not be mutated from a nonisolated context; this is an error in the Swift 6 language mode
82 | }
83 | }
AppKit.NSCollectionViewCompositionalLayoutConfiguration:5:14: note: mutation of this property is only permitted within the actor
3 | open var scrollDirection: NSCollectionView.ScrollDirection { get set }
4 | open var interSectionSpacing: CGFloat { get set }
5 | open var boundarySupplementaryItems: [NSCollectionLayoutBoundarySupplementaryItem] { get set }
| `- note: mutation of this property is only permitted within the actor
6 | @MainActor public init()
7 | @available(macOS 10.15, *)
/Users/admin/builder/spi-builder-workspace/Sources/CompositionalLayoutDSL/Public/CompositionalLayout.swift:121:16: warning: sending task-isolated value of type '(Int, any NSCollectionLayoutEnvironment) -> NSCollectionLayoutSection?' with later accesses to main actor-isolated context risks causing data races; this is an error in the Swift 6 language mode
119 | #if os(macOS)
120 | func makeCollectionViewCompositionalLayout() -> NSCollectionViewCompositionalLayout {
121 | return NSCollectionViewCompositionalLayout(
| `- warning: sending task-isolated value of type '(Int, any NSCollectionLayoutEnvironment) -> NSCollectionLayoutSection?' with later accesses to main actor-isolated context risks causing data races; this is an error in the Swift 6 language mode
122 | sectionProvider: { section, environment in
123 | return sectionBuilder(section, environment).map(SectionBuilder.make(from:))
[35/42] Compiling CompositionalLayoutDSL ModifiedLayoutConfiguration.swift
[36/42] Compiling CompositionalLayoutDSL ModifiedLayoutDecorationItem.swift
[37/42] Compiling CompositionalLayoutDSL ModifiedLayoutGroup.swift
[38/42] Compiling CompositionalLayoutDSL ModifiedLayoutItem.swift
[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