Build Information
Failed to build Align, reference main (8c129b), with Swift 6.2 for Android on 27 Apr 2026 01:41:24 UTC.
Build Command
bash -c docker run --pull=always --rm -v "checkouts-4609320-2":/host -w "$PWD" -e JAVA_HOME="/root/.sdkman/candidates/java/current" -e SPI_BUILD="1" -e SPI_PROCESSING="1" registry.gitlab.com/swiftpackageindex/spi-images:android-6.2-latest swift build --swift-sdk aarch64-unknown-linux-android28 2>&1Build Log
46 |
47 | public subscript(position: Int) -> NSLayoutConstraint { constraints[position] }
| `- error: cannot find type 'NSLayoutConstraint' in scope
48 | public var startIndex: Int { constraints.startIndex }
49 | public var endIndex: Int { constraints.endIndex }
/host/spi-builder-workspace/Sources/Constraints.swift:53:43: error: cannot find type 'NSLayoutConstraint' in scope
51 |
52 | /// Returns all of the created constraints.
53 | public private(set) var constraints: [NSLayoutConstraint]
| `- error: cannot find type 'NSLayoutConstraint' in scope
54 |
55 | /// All of the constraints created in the given closure are automatically
/host/spi-builder-workspace/Sources/Constraints.swift:86:350: error: cannot find type 'NSLayoutConstraint' in scope
84 |
85 | /// Creates and automatically installs a constraint.
86 | @MainActor @usableFromInline static func add(item item1: LayoutItem, attribute attr1: NSLayoutConstraint.Attribute, relatedBy relation: NSLayoutConstraint.Relation = .equal, toItem item2: LayoutItem? = nil, attribute attr2: NSLayoutConstraint.Attribute? = nil, multiplier: CGFloat = 1, constant: CGFloat = 0, priority: LayoutPriority? = nil) -> NSLayoutConstraint {
| `- error: cannot find type 'NSLayoutConstraint' in scope
87 | item1._disableAutoresizingMask()
88 | let constraint = NSLayoutConstraint(item: item1, attribute: attr1, relatedBy: relation, toItem: item2, attribute: attr2 ?? .notAnAttribute, multiplier: multiplier, constant: constant)
/host/spi-builder-workspace/Sources/Constraints.swift:86:91: error: cannot find type 'NSLayoutConstraint' in scope
84 |
85 | /// Creates and automatically installs a constraint.
86 | @MainActor @usableFromInline static func add(item item1: LayoutItem, attribute attr1: NSLayoutConstraint.Attribute, relatedBy relation: NSLayoutConstraint.Relation = .equal, toItem item2: LayoutItem? = nil, attribute attr2: NSLayoutConstraint.Attribute? = nil, multiplier: CGFloat = 1, constant: CGFloat = 0, priority: LayoutPriority? = nil) -> NSLayoutConstraint {
| `- error: cannot find type 'NSLayoutConstraint' in scope
87 | item1._disableAutoresizingMask()
88 | let constraint = NSLayoutConstraint(item: item1, attribute: attr1, relatedBy: relation, toItem: item2, attribute: attr2 ?? .notAnAttribute, multiplier: multiplier, constant: constant)
/host/spi-builder-workspace/Sources/Constraints.swift:86:141: error: cannot find type 'NSLayoutConstraint' in scope
84 |
85 | /// Creates and automatically installs a constraint.
86 | @MainActor @usableFromInline static func add(item item1: LayoutItem, attribute attr1: NSLayoutConstraint.Attribute, relatedBy relation: NSLayoutConstraint.Relation = .equal, toItem item2: LayoutItem? = nil, attribute attr2: NSLayoutConstraint.Attribute? = nil, multiplier: CGFloat = 1, constant: CGFloat = 0, priority: LayoutPriority? = nil) -> NSLayoutConstraint {
| `- error: cannot find type 'NSLayoutConstraint' in scope
87 | item1._disableAutoresizingMask()
88 | let constraint = NSLayoutConstraint(item: item1, attribute: attr1, relatedBy: relation, toItem: item2, attribute: attr2 ?? .notAnAttribute, multiplier: multiplier, constant: constant)
/host/spi-builder-workspace/Sources/Constraints.swift:86:229: error: cannot find type 'NSLayoutConstraint' in scope
84 |
85 | /// Creates and automatically installs a constraint.
86 | @MainActor @usableFromInline static func add(item item1: LayoutItem, attribute attr1: NSLayoutConstraint.Attribute, relatedBy relation: NSLayoutConstraint.Relation = .equal, toItem item2: LayoutItem? = nil, attribute attr2: NSLayoutConstraint.Attribute? = nil, multiplier: CGFloat = 1, constant: CGFloat = 0, priority: LayoutPriority? = nil) -> NSLayoutConstraint {
| `- error: cannot find type 'NSLayoutConstraint' in scope
87 | item1._disableAutoresizingMask()
88 | let constraint = NSLayoutConstraint(item: item1, attribute: attr1, relatedBy: relation, toItem: item2, attribute: attr2 ?? .notAnAttribute, multiplier: multiplier, constant: constant)
/host/spi-builder-workspace/Sources/Constraints.swift:86:278: error: cannot find type 'CGFloat' in scope
84 |
85 | /// Creates and automatically installs a constraint.
86 | @MainActor @usableFromInline static func add(item item1: LayoutItem, attribute attr1: NSLayoutConstraint.Attribute, relatedBy relation: NSLayoutConstraint.Relation = .equal, toItem item2: LayoutItem? = nil, attribute attr2: NSLayoutConstraint.Attribute? = nil, multiplier: CGFloat = 1, constant: CGFloat = 0, priority: LayoutPriority? = nil) -> NSLayoutConstraint {
| `- error: cannot find type 'CGFloat' in scope
87 | item1._disableAutoresizingMask()
88 | let constraint = NSLayoutConstraint(item: item1, attribute: attr1, relatedBy: relation, toItem: item2, attribute: attr2 ?? .notAnAttribute, multiplier: multiplier, constant: constant)
/host/spi-builder-workspace/Sources/Constraints.swift:86:301: error: cannot find type 'CGFloat' in scope
84 |
85 | /// Creates and automatically installs a constraint.
86 | @MainActor @usableFromInline static func add(item item1: LayoutItem, attribute attr1: NSLayoutConstraint.Attribute, relatedBy relation: NSLayoutConstraint.Relation = .equal, toItem item2: LayoutItem? = nil, attribute attr2: NSLayoutConstraint.Attribute? = nil, multiplier: CGFloat = 1, constant: CGFloat = 0, priority: LayoutPriority? = nil) -> NSLayoutConstraint {
| `- error: cannot find type 'CGFloat' in scope
87 | item1._disableAutoresizingMask()
88 | let constraint = NSLayoutConstraint(item: item1, attribute: attr1, relatedBy: relation, toItem: item2, attribute: attr2 ?? .notAnAttribute, multiplier: multiplier, constant: constant)
/host/spi-builder-workspace/Sources/Constraints.swift:86:324: error: cannot find type 'LayoutPriority' in scope
84 |
85 | /// Creates and automatically installs a constraint.
86 | @MainActor @usableFromInline static func add(item item1: LayoutItem, attribute attr1: NSLayoutConstraint.Attribute, relatedBy relation: NSLayoutConstraint.Relation = .equal, toItem item2: LayoutItem? = nil, attribute attr2: NSLayoutConstraint.Attribute? = nil, multiplier: CGFloat = 1, constant: CGFloat = 0, priority: LayoutPriority? = nil) -> NSLayoutConstraint {
| `- error: cannot find type 'LayoutPriority' in scope
87 | item1._disableAutoresizingMask()
88 | let constraint = NSLayoutConstraint(item: item1, attribute: attr1, relatedBy: relation, toItem: item2, attribute: attr2 ?? .notAnAttribute, multiplier: multiplier, constant: constant)
/host/spi-builder-workspace/Sources/Constraints.swift:94:142: error: cannot find type 'CGFloat' in scope
92 |
93 | /// Creates and automatically installs a constraint between two anchors.
94 | @MainActor @usableFromInline static func add<T1, A1, T2, A2>(_ lhs: consuming Anchor<T1, A1>, _ rhs: consuming Anchor<T2, A2>, constant: CGFloat = 0, multiplier: CGFloat = 1, relation: NSLayoutConstraint.Relation = .equal, priority: LayoutPriority? = nil) -> NSLayoutConstraint {
| `- error: cannot find type 'CGFloat' in scope
95 | add(item: lhs.item, attribute: lhs.attribute, relatedBy: relation, toItem: rhs.item, attribute: rhs.attribute, multiplier: (multiplier / lhs.multiplier) * rhs.multiplier, constant: constant - lhs.offset + rhs.offset, priority: priority)
96 | }
/host/spi-builder-workspace/Sources/Constraints.swift:94:167: error: cannot find type 'CGFloat' in scope
92 |
93 | /// Creates and automatically installs a constraint between two anchors.
94 | @MainActor @usableFromInline static func add<T1, A1, T2, A2>(_ lhs: consuming Anchor<T1, A1>, _ rhs: consuming Anchor<T2, A2>, constant: CGFloat = 0, multiplier: CGFloat = 1, relation: NSLayoutConstraint.Relation = .equal, priority: LayoutPriority? = nil) -> NSLayoutConstraint {
| `- error: cannot find type 'CGFloat' in scope
95 | add(item: lhs.item, attribute: lhs.attribute, relatedBy: relation, toItem: rhs.item, attribute: rhs.attribute, multiplier: (multiplier / lhs.multiplier) * rhs.multiplier, constant: constant - lhs.offset + rhs.offset, priority: priority)
96 | }
/host/spi-builder-workspace/Sources/Constraints.swift:94:190: error: cannot find type 'NSLayoutConstraint' in scope
92 |
93 | /// Creates and automatically installs a constraint between two anchors.
94 | @MainActor @usableFromInline static func add<T1, A1, T2, A2>(_ lhs: consuming Anchor<T1, A1>, _ rhs: consuming Anchor<T2, A2>, constant: CGFloat = 0, multiplier: CGFloat = 1, relation: NSLayoutConstraint.Relation = .equal, priority: LayoutPriority? = nil) -> NSLayoutConstraint {
| `- error: cannot find type 'NSLayoutConstraint' in scope
95 | add(item: lhs.item, attribute: lhs.attribute, relatedBy: relation, toItem: rhs.item, attribute: rhs.attribute, multiplier: (multiplier / lhs.multiplier) * rhs.multiplier, constant: constant - lhs.offset + rhs.offset, priority: priority)
96 | }
/host/spi-builder-workspace/Sources/Constraints.swift:94:238: error: cannot find type 'LayoutPriority' in scope
92 |
93 | /// Creates and automatically installs a constraint between two anchors.
94 | @MainActor @usableFromInline static func add<T1, A1, T2, A2>(_ lhs: consuming Anchor<T1, A1>, _ rhs: consuming Anchor<T2, A2>, constant: CGFloat = 0, multiplier: CGFloat = 1, relation: NSLayoutConstraint.Relation = .equal, priority: LayoutPriority? = nil) -> NSLayoutConstraint {
| `- error: cannot find type 'LayoutPriority' in scope
95 | add(item: lhs.item, attribute: lhs.attribute, relatedBy: relation, toItem: rhs.item, attribute: rhs.attribute, multiplier: (multiplier / lhs.multiplier) * rhs.multiplier, constant: constant - lhs.offset + rhs.offset, priority: priority)
96 | }
/host/spi-builder-workspace/Sources/Constraints.swift:94:264: error: cannot find type 'NSLayoutConstraint' in scope
92 |
93 | /// Creates and automatically installs a constraint between two anchors.
94 | @MainActor @usableFromInline static func add<T1, A1, T2, A2>(_ lhs: consuming Anchor<T1, A1>, _ rhs: consuming Anchor<T2, A2>, constant: CGFloat = 0, multiplier: CGFloat = 1, relation: NSLayoutConstraint.Relation = .equal, priority: LayoutPriority? = nil) -> NSLayoutConstraint {
| `- error: cannot find type 'NSLayoutConstraint' in scope
95 | add(item: lhs.item, attribute: lhs.attribute, relatedBy: relation, toItem: rhs.item, attribute: rhs.attribute, multiplier: (multiplier / lhs.multiplier) * rhs.multiplier, constant: constant - lhs.offset + rhs.offset, priority: priority)
96 | }
/host/spi-builder-workspace/Sources/Constraints.swift:100:135: error: cannot find type 'NSLayoutConstraint' in scope
98 | /// Creates and automatically installs a constraint between an anchor and
99 | /// a given item.
100 | @MainActor @usableFromInline static func add<T1, A1>(_ lhs: consuming Anchor<T1, A1>, toItem item2: LayoutItem?, attribute attr2: NSLayoutConstraint.Attribute?, constant: CGFloat = 0, multiplier: CGFloat = 1, relation: NSLayoutConstraint.Relation = .equal, priority: LayoutPriority? = nil) -> NSLayoutConstraint {
| `- error: cannot find type 'NSLayoutConstraint' in scope
101 | add(item: lhs.item, attribute: lhs.attribute, relatedBy: relation, toItem: item2, attribute: attr2, multiplier: multiplier / lhs.multiplier, constant: constant - lhs.offset, priority: priority)
102 | }
/host/spi-builder-workspace/Sources/Constraints.swift:100:176: error: cannot find type 'CGFloat' in scope
98 | /// Creates and automatically installs a constraint between an anchor and
99 | /// a given item.
100 | @MainActor @usableFromInline static func add<T1, A1>(_ lhs: consuming Anchor<T1, A1>, toItem item2: LayoutItem?, attribute attr2: NSLayoutConstraint.Attribute?, constant: CGFloat = 0, multiplier: CGFloat = 1, relation: NSLayoutConstraint.Relation = .equal, priority: LayoutPriority? = nil) -> NSLayoutConstraint {
| `- error: cannot find type 'CGFloat' in scope
101 | add(item: lhs.item, attribute: lhs.attribute, relatedBy: relation, toItem: item2, attribute: attr2, multiplier: multiplier / lhs.multiplier, constant: constant - lhs.offset, priority: priority)
102 | }
/host/spi-builder-workspace/Sources/Constraints.swift:100:201: error: cannot find type 'CGFloat' in scope
98 | /// Creates and automatically installs a constraint between an anchor and
99 | /// a given item.
100 | @MainActor @usableFromInline static func add<T1, A1>(_ lhs: consuming Anchor<T1, A1>, toItem item2: LayoutItem?, attribute attr2: NSLayoutConstraint.Attribute?, constant: CGFloat = 0, multiplier: CGFloat = 1, relation: NSLayoutConstraint.Relation = .equal, priority: LayoutPriority? = nil) -> NSLayoutConstraint {
| `- error: cannot find type 'CGFloat' in scope
101 | add(item: lhs.item, attribute: lhs.attribute, relatedBy: relation, toItem: item2, attribute: attr2, multiplier: multiplier / lhs.multiplier, constant: constant - lhs.offset, priority: priority)
102 | }
/host/spi-builder-workspace/Sources/Constraints.swift:100:224: error: cannot find type 'NSLayoutConstraint' in scope
98 | /// Creates and automatically installs a constraint between an anchor and
99 | /// a given item.
100 | @MainActor @usableFromInline static func add<T1, A1>(_ lhs: consuming Anchor<T1, A1>, toItem item2: LayoutItem?, attribute attr2: NSLayoutConstraint.Attribute?, constant: CGFloat = 0, multiplier: CGFloat = 1, relation: NSLayoutConstraint.Relation = .equal, priority: LayoutPriority? = nil) -> NSLayoutConstraint {
| `- error: cannot find type 'NSLayoutConstraint' in scope
101 | add(item: lhs.item, attribute: lhs.attribute, relatedBy: relation, toItem: item2, attribute: attr2, multiplier: multiplier / lhs.multiplier, constant: constant - lhs.offset, priority: priority)
102 | }
/host/spi-builder-workspace/Sources/Constraints.swift:100:272: error: cannot find type 'LayoutPriority' in scope
98 | /// Creates and automatically installs a constraint between an anchor and
99 | /// a given item.
100 | @MainActor @usableFromInline static func add<T1, A1>(_ lhs: consuming Anchor<T1, A1>, toItem item2: LayoutItem?, attribute attr2: NSLayoutConstraint.Attribute?, constant: CGFloat = 0, multiplier: CGFloat = 1, relation: NSLayoutConstraint.Relation = .equal, priority: LayoutPriority? = nil) -> NSLayoutConstraint {
| `- error: cannot find type 'LayoutPriority' in scope
101 | add(item: lhs.item, attribute: lhs.attribute, relatedBy: relation, toItem: item2, attribute: attr2, multiplier: multiplier / lhs.multiplier, constant: constant - lhs.offset, priority: priority)
102 | }
/host/spi-builder-workspace/Sources/Constraints.swift:100:298: error: cannot find type 'NSLayoutConstraint' in scope
98 | /// Creates and automatically installs a constraint between an anchor and
99 | /// a given item.
100 | @MainActor @usableFromInline static func add<T1, A1>(_ lhs: consuming Anchor<T1, A1>, toItem item2: LayoutItem?, attribute attr2: NSLayoutConstraint.Attribute?, constant: CGFloat = 0, multiplier: CGFloat = 1, relation: NSLayoutConstraint.Relation = .equal, priority: LayoutPriority? = nil) -> NSLayoutConstraint {
| `- error: cannot find type 'NSLayoutConstraint' in scope
101 | add(item: lhs.item, attribute: lhs.attribute, relatedBy: relation, toItem: item2, attribute: attr2, multiplier: multiplier / lhs.multiplier, constant: constant - lhs.offset, priority: priority)
102 | }
/host/spi-builder-workspace/Sources/Constraints.swift:104:36: error: cannot find type 'NSLayoutConstraint' in scope
102 | }
103 |
104 | @MainActor static var stack: [[NSLayoutConstraint]] = [] // this is what enables constraint auto-installing
| `- error: cannot find type 'NSLayoutConstraint' in scope
105 |
106 | @MainActor @usableFromInline static func install(_ constraint: NSLayoutConstraint, priority: LayoutPriority? = nil) {
/host/spi-builder-workspace/Sources/Constraints.swift:106:68: error: cannot find type 'NSLayoutConstraint' in scope
104 | @MainActor static var stack: [[NSLayoutConstraint]] = [] // this is what enables constraint auto-installing
105 |
106 | @MainActor @usableFromInline static func install(_ constraint: NSLayoutConstraint, priority: LayoutPriority? = nil) {
| `- error: cannot find type 'NSLayoutConstraint' in scope
107 | if let priority { constraint.priority = priority }
108 | if !stack.isEmpty {
/host/spi-builder-workspace/Sources/Constraints.swift:106:98: error: cannot find type 'LayoutPriority' in scope
104 | @MainActor static var stack: [[NSLayoutConstraint]] = [] // this is what enables constraint auto-installing
105 |
106 | @MainActor @usableFromInline static func install(_ constraint: NSLayoutConstraint, priority: LayoutPriority? = nil) {
| `- error: cannot find type 'LayoutPriority' in scope
107 | if let priority { constraint.priority = priority }
108 | if !stack.isEmpty {
/host/spi-builder-workspace/Sources/Constraints.swift:43:15: error: type 'Constraints' does not conform to protocol 'RandomAccessCollection'
41 | /// Nesting is supported: each constraint is collected by the innermost group,
42 | /// and each group honors its own `activate:` flag independently.
43 | public struct Constraints: RandomAccessCollection {
| |- error: type 'Constraints' does not conform to protocol 'RandomAccessCollection'
| `- note: add stubs for conformance
44 | public typealias Element = NSLayoutConstraint
45 | public typealias Index = Int
Swift.RandomAccessCollection.Element:2:16: note: protocol requires nested type 'Element'
1 | protocol RandomAccessCollection {
2 | associatedtype Element}
| `- note: protocol requires nested type 'Element'
3 |
/host/spi-builder-workspace/Sources/LayoutAnchors.swift:20:79: error: generic parameter 'Type' could not be inferred
18 | // MARK: Anchors
19 |
20 | @inlinable public var top: Anchor<AnchorType.Edge, AnchorAxis.Vertical> { Anchor(item, .top) }
| `- error: generic parameter 'Type' could not be inferred
21 | @inlinable public var bottom: Anchor<AnchorType.Edge, AnchorAxis.Vertical> { Anchor(item, .bottom) }
22 | @inlinable public var left: Anchor<AnchorType.Edge, AnchorAxis.Horizontal> { Anchor(item, .left) }
/host/spi-builder-workspace/Sources/Anchor.swift:51:33: note: 'Type' declared as parameter to type 'Anchor'
49 | /// - tip: `UIView` does not provide anchor properties for the layout margin attributes.
50 | /// Instead, call `view.layoutMarginsGuide.anchors`.
51 | @MainActor public struct Anchor<Type, Axis> { // type and axis are phantom types
| `- note: 'Type' declared as parameter to type 'Anchor'
52 | @usableFromInline let item: LayoutItem
53 | @usableFromInline let attribute: NSLayoutConstraint.Attribute
/host/spi-builder-workspace/Sources/LayoutAnchors.swift:20:79: error: generic parameter 'Axis' could not be inferred
18 | // MARK: Anchors
19 |
20 | @inlinable public var top: Anchor<AnchorType.Edge, AnchorAxis.Vertical> { Anchor(item, .top) }
| |- error: generic parameter 'Axis' could not be inferred
| `- note: explicitly specify the generic arguments to fix this issue
21 | @inlinable public var bottom: Anchor<AnchorType.Edge, AnchorAxis.Vertical> { Anchor(item, .bottom) }
22 | @inlinable public var left: Anchor<AnchorType.Edge, AnchorAxis.Horizontal> { Anchor(item, .left) }
/host/spi-builder-workspace/Sources/Anchor.swift:51:39: note: 'Axis' declared as parameter to type 'Anchor'
49 | /// - tip: `UIView` does not provide anchor properties for the layout margin attributes.
50 | /// Instead, call `view.layoutMarginsGuide.anchors`.
51 | @MainActor public struct Anchor<Type, Axis> { // type and axis are phantom types
| `- note: 'Axis' declared as parameter to type 'Anchor'
52 | @usableFromInline let item: LayoutItem
53 | @usableFromInline let attribute: NSLayoutConstraint.Attribute
/host/spi-builder-workspace/Sources/LayoutAnchors.swift:20:93: error: cannot infer contextual base in reference to member 'top'
18 | // MARK: Anchors
19 |
20 | @inlinable public var top: Anchor<AnchorType.Edge, AnchorAxis.Vertical> { Anchor(item, .top) }
| `- error: cannot infer contextual base in reference to member 'top'
21 | @inlinable public var bottom: Anchor<AnchorType.Edge, AnchorAxis.Vertical> { Anchor(item, .bottom) }
22 | @inlinable public var left: Anchor<AnchorType.Edge, AnchorAxis.Horizontal> { Anchor(item, .left) }
/host/spi-builder-workspace/Sources/LayoutAnchors.swift:21:82: error: generic parameter 'Type' could not be inferred
19 |
20 | @inlinable public var top: Anchor<AnchorType.Edge, AnchorAxis.Vertical> { Anchor(item, .top) }
21 | @inlinable public var bottom: Anchor<AnchorType.Edge, AnchorAxis.Vertical> { Anchor(item, .bottom) }
| `- error: generic parameter 'Type' could not be inferred
22 | @inlinable public var left: Anchor<AnchorType.Edge, AnchorAxis.Horizontal> { Anchor(item, .left) }
23 | @inlinable public var right: Anchor<AnchorType.Edge, AnchorAxis.Horizontal> { Anchor(item, .right) }
/host/spi-builder-workspace/Sources/Anchor.swift:51:33: note: 'Type' declared as parameter to type 'Anchor'
49 | /// - tip: `UIView` does not provide anchor properties for the layout margin attributes.
50 | /// Instead, call `view.layoutMarginsGuide.anchors`.
51 | @MainActor public struct Anchor<Type, Axis> { // type and axis are phantom types
| `- note: 'Type' declared as parameter to type 'Anchor'
52 | @usableFromInline let item: LayoutItem
53 | @usableFromInline let attribute: NSLayoutConstraint.Attribute
/host/spi-builder-workspace/Sources/LayoutAnchors.swift:21:82: error: generic parameter 'Axis' could not be inferred
19 |
20 | @inlinable public var top: Anchor<AnchorType.Edge, AnchorAxis.Vertical> { Anchor(item, .top) }
21 | @inlinable public var bottom: Anchor<AnchorType.Edge, AnchorAxis.Vertical> { Anchor(item, .bottom) }
| |- error: generic parameter 'Axis' could not be inferred
| `- note: explicitly specify the generic arguments to fix this issue
22 | @inlinable public var left: Anchor<AnchorType.Edge, AnchorAxis.Horizontal> { Anchor(item, .left) }
23 | @inlinable public var right: Anchor<AnchorType.Edge, AnchorAxis.Horizontal> { Anchor(item, .right) }
/host/spi-builder-workspace/Sources/Anchor.swift:51:39: note: 'Axis' declared as parameter to type 'Anchor'
49 | /// - tip: `UIView` does not provide anchor properties for the layout margin attributes.
50 | /// Instead, call `view.layoutMarginsGuide.anchors`.
51 | @MainActor public struct Anchor<Type, Axis> { // type and axis are phantom types
| `- note: 'Axis' declared as parameter to type 'Anchor'
52 | @usableFromInline let item: LayoutItem
53 | @usableFromInline let attribute: NSLayoutConstraint.Attribute
/host/spi-builder-workspace/Sources/LayoutAnchors.swift:21:96: error: cannot infer contextual base in reference to member 'bottom'
19 |
20 | @inlinable public var top: Anchor<AnchorType.Edge, AnchorAxis.Vertical> { Anchor(item, .top) }
21 | @inlinable public var bottom: Anchor<AnchorType.Edge, AnchorAxis.Vertical> { Anchor(item, .bottom) }
| `- error: cannot infer contextual base in reference to member 'bottom'
22 | @inlinable public var left: Anchor<AnchorType.Edge, AnchorAxis.Horizontal> { Anchor(item, .left) }
23 | @inlinable public var right: Anchor<AnchorType.Edge, AnchorAxis.Horizontal> { Anchor(item, .right) }
/host/spi-builder-workspace/Sources/LayoutAnchors.swift:22:82: error: generic parameter 'Type' could not be inferred
20 | @inlinable public var top: Anchor<AnchorType.Edge, AnchorAxis.Vertical> { Anchor(item, .top) }
21 | @inlinable public var bottom: Anchor<AnchorType.Edge, AnchorAxis.Vertical> { Anchor(item, .bottom) }
22 | @inlinable public var left: Anchor<AnchorType.Edge, AnchorAxis.Horizontal> { Anchor(item, .left) }
| `- error: generic parameter 'Type' could not be inferred
23 | @inlinable public var right: Anchor<AnchorType.Edge, AnchorAxis.Horizontal> { Anchor(item, .right) }
24 | @inlinable public var leading: Anchor<AnchorType.Edge, AnchorAxis.Horizontal> { Anchor(item, .leading) }
/host/spi-builder-workspace/Sources/Anchor.swift:51:33: note: 'Type' declared as parameter to type 'Anchor'
49 | /// - tip: `UIView` does not provide anchor properties for the layout margin attributes.
50 | /// Instead, call `view.layoutMarginsGuide.anchors`.
51 | @MainActor public struct Anchor<Type, Axis> { // type and axis are phantom types
| `- note: 'Type' declared as parameter to type 'Anchor'
52 | @usableFromInline let item: LayoutItem
53 | @usableFromInline let attribute: NSLayoutConstraint.Attribute
/host/spi-builder-workspace/Sources/LayoutAnchors.swift:22:82: error: generic parameter 'Axis' could not be inferred
20 | @inlinable public var top: Anchor<AnchorType.Edge, AnchorAxis.Vertical> { Anchor(item, .top) }
21 | @inlinable public var bottom: Anchor<AnchorType.Edge, AnchorAxis.Vertical> { Anchor(item, .bottom) }
22 | @inlinable public var left: Anchor<AnchorType.Edge, AnchorAxis.Horizontal> { Anchor(item, .left) }
| |- error: generic parameter 'Axis' could not be inferred
| `- note: explicitly specify the generic arguments to fix this issue
23 | @inlinable public var right: Anchor<AnchorType.Edge, AnchorAxis.Horizontal> { Anchor(item, .right) }
24 | @inlinable public var leading: Anchor<AnchorType.Edge, AnchorAxis.Horizontal> { Anchor(item, .leading) }
/host/spi-builder-workspace/Sources/Anchor.swift:51:39: note: 'Axis' declared as parameter to type 'Anchor'
49 | /// - tip: `UIView` does not provide anchor properties for the layout margin attributes.
50 | /// Instead, call `view.layoutMarginsGuide.anchors`.
51 | @MainActor public struct Anchor<Type, Axis> { // type and axis are phantom types
| `- note: 'Axis' declared as parameter to type 'Anchor'
52 | @usableFromInline let item: LayoutItem
53 | @usableFromInline let attribute: NSLayoutConstraint.Attribute
/host/spi-builder-workspace/Sources/LayoutAnchors.swift:22:96: error: cannot infer contextual base in reference to member 'left'
20 | @inlinable public var top: Anchor<AnchorType.Edge, AnchorAxis.Vertical> { Anchor(item, .top) }
21 | @inlinable public var bottom: Anchor<AnchorType.Edge, AnchorAxis.Vertical> { Anchor(item, .bottom) }
22 | @inlinable public var left: Anchor<AnchorType.Edge, AnchorAxis.Horizontal> { Anchor(item, .left) }
| `- error: cannot infer contextual base in reference to member 'left'
23 | @inlinable public var right: Anchor<AnchorType.Edge, AnchorAxis.Horizontal> { Anchor(item, .right) }
24 | @inlinable public var leading: Anchor<AnchorType.Edge, AnchorAxis.Horizontal> { Anchor(item, .leading) }
/host/spi-builder-workspace/Sources/LayoutAnchors.swift:23:83: error: generic parameter 'Type' could not be inferred
21 | @inlinable public var bottom: Anchor<AnchorType.Edge, AnchorAxis.Vertical> { Anchor(item, .bottom) }
22 | @inlinable public var left: Anchor<AnchorType.Edge, AnchorAxis.Horizontal> { Anchor(item, .left) }
23 | @inlinable public var right: Anchor<AnchorType.Edge, AnchorAxis.Horizontal> { Anchor(item, .right) }
| `- error: generic parameter 'Type' could not be inferred
24 | @inlinable public var leading: Anchor<AnchorType.Edge, AnchorAxis.Horizontal> { Anchor(item, .leading) }
25 | @inlinable public var trailing: Anchor<AnchorType.Edge, AnchorAxis.Horizontal> { Anchor(item, .trailing) }
/host/spi-builder-workspace/Sources/Anchor.swift:51:33: note: 'Type' declared as parameter to type 'Anchor'
49 | /// - tip: `UIView` does not provide anchor properties for the layout margin attributes.
50 | /// Instead, call `view.layoutMarginsGuide.anchors`.
51 | @MainActor public struct Anchor<Type, Axis> { // type and axis are phantom types
| `- note: 'Type' declared as parameter to type 'Anchor'
52 | @usableFromInline let item: LayoutItem
53 | @usableFromInline let attribute: NSLayoutConstraint.Attribute
/host/spi-builder-workspace/Sources/LayoutAnchors.swift:23:83: error: generic parameter 'Axis' could not be inferred
21 | @inlinable public var bottom: Anchor<AnchorType.Edge, AnchorAxis.Vertical> { Anchor(item, .bottom) }
22 | @inlinable public var left: Anchor<AnchorType.Edge, AnchorAxis.Horizontal> { Anchor(item, .left) }
23 | @inlinable public var right: Anchor<AnchorType.Edge, AnchorAxis.Horizontal> { Anchor(item, .right) }
| |- error: generic parameter 'Axis' could not be inferred
| `- note: explicitly specify the generic arguments to fix this issue
24 | @inlinable public var leading: Anchor<AnchorType.Edge, AnchorAxis.Horizontal> { Anchor(item, .leading) }
25 | @inlinable public var trailing: Anchor<AnchorType.Edge, AnchorAxis.Horizontal> { Anchor(item, .trailing) }
/host/spi-builder-workspace/Sources/Anchor.swift:51:39: note: 'Axis' declared as parameter to type 'Anchor'
49 | /// - tip: `UIView` does not provide anchor properties for the layout margin attributes.
50 | /// Instead, call `view.layoutMarginsGuide.anchors`.
51 | @MainActor public struct Anchor<Type, Axis> { // type and axis are phantom types
| `- note: 'Axis' declared as parameter to type 'Anchor'
52 | @usableFromInline let item: LayoutItem
53 | @usableFromInline let attribute: NSLayoutConstraint.Attribute
/host/spi-builder-workspace/Sources/LayoutAnchors.swift:23:97: error: cannot infer contextual base in reference to member 'right'
21 | @inlinable public var bottom: Anchor<AnchorType.Edge, AnchorAxis.Vertical> { Anchor(item, .bottom) }
22 | @inlinable public var left: Anchor<AnchorType.Edge, AnchorAxis.Horizontal> { Anchor(item, .left) }
23 | @inlinable public var right: Anchor<AnchorType.Edge, AnchorAxis.Horizontal> { Anchor(item, .right) }
| `- error: cannot infer contextual base in reference to member 'right'
24 | @inlinable public var leading: Anchor<AnchorType.Edge, AnchorAxis.Horizontal> { Anchor(item, .leading) }
25 | @inlinable public var trailing: Anchor<AnchorType.Edge, AnchorAxis.Horizontal> { Anchor(item, .trailing) }
/host/spi-builder-workspace/Sources/LayoutAnchors.swift:24:85: error: generic parameter 'Type' could not be inferred
22 | @inlinable public var left: Anchor<AnchorType.Edge, AnchorAxis.Horizontal> { Anchor(item, .left) }
23 | @inlinable public var right: Anchor<AnchorType.Edge, AnchorAxis.Horizontal> { Anchor(item, .right) }
24 | @inlinable public var leading: Anchor<AnchorType.Edge, AnchorAxis.Horizontal> { Anchor(item, .leading) }
| `- error: generic parameter 'Type' could not be inferred
25 | @inlinable public var trailing: Anchor<AnchorType.Edge, AnchorAxis.Horizontal> { Anchor(item, .trailing) }
26 |
/host/spi-builder-workspace/Sources/Anchor.swift:51:33: note: 'Type' declared as parameter to type 'Anchor'
49 | /// - tip: `UIView` does not provide anchor properties for the layout margin attributes.
50 | /// Instead, call `view.layoutMarginsGuide.anchors`.
51 | @MainActor public struct Anchor<Type, Axis> { // type and axis are phantom types
| `- note: 'Type' declared as parameter to type 'Anchor'
52 | @usableFromInline let item: LayoutItem
53 | @usableFromInline let attribute: NSLayoutConstraint.Attribute
/host/spi-builder-workspace/Sources/LayoutAnchors.swift:24:85: error: generic parameter 'Axis' could not be inferred
22 | @inlinable public var left: Anchor<AnchorType.Edge, AnchorAxis.Horizontal> { Anchor(item, .left) }
23 | @inlinable public var right: Anchor<AnchorType.Edge, AnchorAxis.Horizontal> { Anchor(item, .right) }
24 | @inlinable public var leading: Anchor<AnchorType.Edge, AnchorAxis.Horizontal> { Anchor(item, .leading) }
| |- error: generic parameter 'Axis' could not be inferred
| `- note: explicitly specify the generic arguments to fix this issue
25 | @inlinable public var trailing: Anchor<AnchorType.Edge, AnchorAxis.Horizontal> { Anchor(item, .trailing) }
26 |
/host/spi-builder-workspace/Sources/Anchor.swift:51:39: note: 'Axis' declared as parameter to type 'Anchor'
49 | /// - tip: `UIView` does not provide anchor properties for the layout margin attributes.
50 | /// Instead, call `view.layoutMarginsGuide.anchors`.
51 | @MainActor public struct Anchor<Type, Axis> { // type and axis are phantom types
| `- note: 'Axis' declared as parameter to type 'Anchor'
52 | @usableFromInline let item: LayoutItem
53 | @usableFromInline let attribute: NSLayoutConstraint.Attribute
/host/spi-builder-workspace/Sources/LayoutAnchors.swift:24:99: error: cannot infer contextual base in reference to member 'leading'
22 | @inlinable public var left: Anchor<AnchorType.Edge, AnchorAxis.Horizontal> { Anchor(item, .left) }
23 | @inlinable public var right: Anchor<AnchorType.Edge, AnchorAxis.Horizontal> { Anchor(item, .right) }
24 | @inlinable public var leading: Anchor<AnchorType.Edge, AnchorAxis.Horizontal> { Anchor(item, .leading) }
| `- error: cannot infer contextual base in reference to member 'leading'
25 | @inlinable public var trailing: Anchor<AnchorType.Edge, AnchorAxis.Horizontal> { Anchor(item, .trailing) }
26 |
/host/spi-builder-workspace/Sources/LayoutAnchors.swift:25:86: error: generic parameter 'Type' could not be inferred
23 | @inlinable public var right: Anchor<AnchorType.Edge, AnchorAxis.Horizontal> { Anchor(item, .right) }
24 | @inlinable public var leading: Anchor<AnchorType.Edge, AnchorAxis.Horizontal> { Anchor(item, .leading) }
25 | @inlinable public var trailing: Anchor<AnchorType.Edge, AnchorAxis.Horizontal> { Anchor(item, .trailing) }
| `- error: generic parameter 'Type' could not be inferred
26 |
27 | @inlinable public var centerX: Anchor<AnchorType.Center, AnchorAxis.Horizontal> { Anchor(item, .centerX) }
/host/spi-builder-workspace/Sources/Anchor.swift:51:33: note: 'Type' declared as parameter to type 'Anchor'
49 | /// - tip: `UIView` does not provide anchor properties for the layout margin attributes.
50 | /// Instead, call `view.layoutMarginsGuide.anchors`.
51 | @MainActor public struct Anchor<Type, Axis> { // type and axis are phantom types
| `- note: 'Type' declared as parameter to type 'Anchor'
52 | @usableFromInline let item: LayoutItem
53 | @usableFromInline let attribute: NSLayoutConstraint.Attribute
/host/spi-builder-workspace/Sources/LayoutAnchors.swift:25:86: error: generic parameter 'Axis' could not be inferred
23 | @inlinable public var right: Anchor<AnchorType.Edge, AnchorAxis.Horizontal> { Anchor(item, .right) }
24 | @inlinable public var leading: Anchor<AnchorType.Edge, AnchorAxis.Horizontal> { Anchor(item, .leading) }
25 | @inlinable public var trailing: Anchor<AnchorType.Edge, AnchorAxis.Horizontal> { Anchor(item, .trailing) }
| |- error: generic parameter 'Axis' could not be inferred
| `- note: explicitly specify the generic arguments to fix this issue
26 |
27 | @inlinable public var centerX: Anchor<AnchorType.Center, AnchorAxis.Horizontal> { Anchor(item, .centerX) }
/host/spi-builder-workspace/Sources/Anchor.swift:51:39: note: 'Axis' declared as parameter to type 'Anchor'
49 | /// - tip: `UIView` does not provide anchor properties for the layout margin attributes.
50 | /// Instead, call `view.layoutMarginsGuide.anchors`.
51 | @MainActor public struct Anchor<Type, Axis> { // type and axis are phantom types
| `- note: 'Axis' declared as parameter to type 'Anchor'
52 | @usableFromInline let item: LayoutItem
53 | @usableFromInline let attribute: NSLayoutConstraint.Attribute
/host/spi-builder-workspace/Sources/LayoutAnchors.swift:25:100: error: cannot infer contextual base in reference to member 'trailing'
23 | @inlinable public var right: Anchor<AnchorType.Edge, AnchorAxis.Horizontal> { Anchor(item, .right) }
24 | @inlinable public var leading: Anchor<AnchorType.Edge, AnchorAxis.Horizontal> { Anchor(item, .leading) }
25 | @inlinable public var trailing: Anchor<AnchorType.Edge, AnchorAxis.Horizontal> { Anchor(item, .trailing) }
| `- error: cannot infer contextual base in reference to member 'trailing'
26 |
27 | @inlinable public var centerX: Anchor<AnchorType.Center, AnchorAxis.Horizontal> { Anchor(item, .centerX) }
/host/spi-builder-workspace/Sources/LayoutAnchors.swift:27:87: error: generic parameter 'Type' could not be inferred
25 | @inlinable public var trailing: Anchor<AnchorType.Edge, AnchorAxis.Horizontal> { Anchor(item, .trailing) }
26 |
27 | @inlinable public var centerX: Anchor<AnchorType.Center, AnchorAxis.Horizontal> { Anchor(item, .centerX) }
| `- error: generic parameter 'Type' could not be inferred
28 | @inlinable public var centerY: Anchor<AnchorType.Center, AnchorAxis.Vertical> { Anchor(item, .centerY) }
29 |
/host/spi-builder-workspace/Sources/Anchor.swift:51:33: note: 'Type' declared as parameter to type 'Anchor'
49 | /// - tip: `UIView` does not provide anchor properties for the layout margin attributes.
50 | /// Instead, call `view.layoutMarginsGuide.anchors`.
51 | @MainActor public struct Anchor<Type, Axis> { // type and axis are phantom types
| `- note: 'Type' declared as parameter to type 'Anchor'
52 | @usableFromInline let item: LayoutItem
53 | @usableFromInline let attribute: NSLayoutConstraint.Attribute
/host/spi-builder-workspace/Sources/LayoutAnchors.swift:27:87: error: generic parameter 'Axis' could not be inferred
25 | @inlinable public var trailing: Anchor<AnchorType.Edge, AnchorAxis.Horizontal> { Anchor(item, .trailing) }
26 |
27 | @inlinable public var centerX: Anchor<AnchorType.Center, AnchorAxis.Horizontal> { Anchor(item, .centerX) }
| |- error: generic parameter 'Axis' could not be inferred
| `- note: explicitly specify the generic arguments to fix this issue
28 | @inlinable public var centerY: Anchor<AnchorType.Center, AnchorAxis.Vertical> { Anchor(item, .centerY) }
29 |
/host/spi-builder-workspace/Sources/Anchor.swift:51:39: note: 'Axis' declared as parameter to type 'Anchor'
49 | /// - tip: `UIView` does not provide anchor properties for the layout margin attributes.
50 | /// Instead, call `view.layoutMarginsGuide.anchors`.
51 | @MainActor public struct Anchor<Type, Axis> { // type and axis are phantom types
| `- note: 'Axis' declared as parameter to type 'Anchor'
52 | @usableFromInline let item: LayoutItem
53 | @usableFromInline let attribute: NSLayoutConstraint.Attribute
/host/spi-builder-workspace/Sources/LayoutAnchors.swift:27:101: error: cannot infer contextual base in reference to member 'centerX'
25 | @inlinable public var trailing: Anchor<AnchorType.Edge, AnchorAxis.Horizontal> { Anchor(item, .trailing) }
26 |
27 | @inlinable public var centerX: Anchor<AnchorType.Center, AnchorAxis.Horizontal> { Anchor(item, .centerX) }
| `- error: cannot infer contextual base in reference to member 'centerX'
28 | @inlinable public var centerY: Anchor<AnchorType.Center, AnchorAxis.Vertical> { Anchor(item, .centerY) }
29 |
/host/spi-builder-workspace/Sources/LayoutAnchors.swift:28:85: error: generic parameter 'Type' could not be inferred
26 |
27 | @inlinable public var centerX: Anchor<AnchorType.Center, AnchorAxis.Horizontal> { Anchor(item, .centerX) }
28 | @inlinable public var centerY: Anchor<AnchorType.Center, AnchorAxis.Vertical> { Anchor(item, .centerY) }
| `- error: generic parameter 'Type' could not be inferred
29 |
30 | @inlinable public var firstBaseline: Anchor<AnchorType.Baseline, AnchorAxis.Vertical> { Anchor(item, .firstBaseline) }
/host/spi-builder-workspace/Sources/Anchor.swift:51:33: note: 'Type' declared as parameter to type 'Anchor'
49 | /// - tip: `UIView` does not provide anchor properties for the layout margin attributes.
50 | /// Instead, call `view.layoutMarginsGuide.anchors`.
51 | @MainActor public struct Anchor<Type, Axis> { // type and axis are phantom types
| `- note: 'Type' declared as parameter to type 'Anchor'
52 | @usableFromInline let item: LayoutItem
53 | @usableFromInline let attribute: NSLayoutConstraint.Attribute
/host/spi-builder-workspace/Sources/LayoutAnchors.swift:28:85: error: generic parameter 'Axis' could not be inferred
26 |
27 | @inlinable public var centerX: Anchor<AnchorType.Center, AnchorAxis.Horizontal> { Anchor(item, .centerX) }
28 | @inlinable public var centerY: Anchor<AnchorType.Center, AnchorAxis.Vertical> { Anchor(item, .centerY) }
| |- error: generic parameter 'Axis' could not be inferred
| `- note: explicitly specify the generic arguments to fix this issue
29 |
30 | @inlinable public var firstBaseline: Anchor<AnchorType.Baseline, AnchorAxis.Vertical> { Anchor(item, .firstBaseline) }
/host/spi-builder-workspace/Sources/Anchor.swift:51:39: note: 'Axis' declared as parameter to type 'Anchor'
49 | /// - tip: `UIView` does not provide anchor properties for the layout margin attributes.
50 | /// Instead, call `view.layoutMarginsGuide.anchors`.
51 | @MainActor public struct Anchor<Type, Axis> { // type and axis are phantom types
| `- note: 'Axis' declared as parameter to type 'Anchor'
52 | @usableFromInline let item: LayoutItem
53 | @usableFromInline let attribute: NSLayoutConstraint.Attribute
/host/spi-builder-workspace/Sources/LayoutAnchors.swift:28:99: error: cannot infer contextual base in reference to member 'centerY'
26 |
27 | @inlinable public var centerX: Anchor<AnchorType.Center, AnchorAxis.Horizontal> { Anchor(item, .centerX) }
28 | @inlinable public var centerY: Anchor<AnchorType.Center, AnchorAxis.Vertical> { Anchor(item, .centerY) }
| `- error: cannot infer contextual base in reference to member 'centerY'
29 |
30 | @inlinable public var firstBaseline: Anchor<AnchorType.Baseline, AnchorAxis.Vertical> { Anchor(item, .firstBaseline) }
/host/spi-builder-workspace/Sources/LayoutAnchors.swift:30:93: error: generic parameter 'Type' could not be inferred
28 | @inlinable public var centerY: Anchor<AnchorType.Center, AnchorAxis.Vertical> { Anchor(item, .centerY) }
29 |
30 | @inlinable public var firstBaseline: Anchor<AnchorType.Baseline, AnchorAxis.Vertical> { Anchor(item, .firstBaseline) }
| `- error: generic parameter 'Type' could not be inferred
31 | @inlinable public var lastBaseline: Anchor<AnchorType.Baseline, AnchorAxis.Vertical> { Anchor(item, .lastBaseline) }
32 |
/host/spi-builder-workspace/Sources/Anchor.swift:51:33: note: 'Type' declared as parameter to type 'Anchor'
49 | /// - tip: `UIView` does not provide anchor properties for the layout margin attributes.
50 | /// Instead, call `view.layoutMarginsGuide.anchors`.
51 | @MainActor public struct Anchor<Type, Axis> { // type and axis are phantom types
| `- note: 'Type' declared as parameter to type 'Anchor'
52 | @usableFromInline let item: LayoutItem
53 | @usableFromInline let attribute: NSLayoutConstraint.Attribute
/host/spi-builder-workspace/Sources/LayoutAnchors.swift:30:93: error: generic parameter 'Axis' could not be inferred
28 | @inlinable public var centerY: Anchor<AnchorType.Center, AnchorAxis.Vertical> { Anchor(item, .centerY) }
29 |
30 | @inlinable public var firstBaseline: Anchor<AnchorType.Baseline, AnchorAxis.Vertical> { Anchor(item, .firstBaseline) }
| |- error: generic parameter 'Axis' could not be inferred
| `- note: explicitly specify the generic arguments to fix this issue
31 | @inlinable public var lastBaseline: Anchor<AnchorType.Baseline, AnchorAxis.Vertical> { Anchor(item, .lastBaseline) }
32 |
/host/spi-builder-workspace/Sources/Anchor.swift:51:39: note: 'Axis' declared as parameter to type 'Anchor'
49 | /// - tip: `UIView` does not provide anchor properties for the layout margin attributes.
50 | /// Instead, call `view.layoutMarginsGuide.anchors`.
51 | @MainActor public struct Anchor<Type, Axis> { // type and axis are phantom types
| `- note: 'Axis' declared as parameter to type 'Anchor'
52 | @usableFromInline let item: LayoutItem
53 | @usableFromInline let attribute: NSLayoutConstraint.Attribute
/host/spi-builder-workspace/Sources/LayoutAnchors.swift:30:107: error: cannot infer contextual base in reference to member 'firstBaseline'
28 | @inlinable public var centerY: Anchor<AnchorType.Center, AnchorAxis.Vertical> { Anchor(item, .centerY) }
29 |
30 | @inlinable public var firstBaseline: Anchor<AnchorType.Baseline, AnchorAxis.Vertical> { Anchor(item, .firstBaseline) }
| `- error: cannot infer contextual base in reference to member 'firstBaseline'
31 | @inlinable public var lastBaseline: Anchor<AnchorType.Baseline, AnchorAxis.Vertical> { Anchor(item, .lastBaseline) }
32 |
/host/spi-builder-workspace/Sources/LayoutAnchors.swift:31:92: error: generic parameter 'Type' could not be inferred
29 |
30 | @inlinable public var firstBaseline: Anchor<AnchorType.Baseline, AnchorAxis.Vertical> { Anchor(item, .firstBaseline) }
31 | @inlinable public var lastBaseline: Anchor<AnchorType.Baseline, AnchorAxis.Vertical> { Anchor(item, .lastBaseline) }
| `- error: generic parameter 'Type' could not be inferred
32 |
33 | @inlinable public var width: Anchor<AnchorType.Dimension, AnchorAxis.Horizontal> { Anchor(item, .width) }
/host/spi-builder-workspace/Sources/Anchor.swift:51:33: note: 'Type' declared as parameter to type 'Anchor'
49 | /// - tip: `UIView` does not provide anchor properties for the layout margin attributes.
50 | /// Instead, call `view.layoutMarginsGuide.anchors`.
51 | @MainActor public struct Anchor<Type, Axis> { // type and axis are phantom types
| `- note: 'Type' declared as parameter to type 'Anchor'
52 | @usableFromInline let item: LayoutItem
53 | @usableFromInline let attribute: NSLayoutConstraint.Attribute
/host/spi-builder-workspace/Sources/LayoutAnchors.swift:31:92: error: generic parameter 'Axis' could not be inferred
29 |
30 | @inlinable public var firstBaseline: Anchor<AnchorType.Baseline, AnchorAxis.Vertical> { Anchor(item, .firstBaseline) }
31 | @inlinable public var lastBaseline: Anchor<AnchorType.Baseline, AnchorAxis.Vertical> { Anchor(item, .lastBaseline) }
| |- error: generic parameter 'Axis' could not be inferred
| `- note: explicitly specify the generic arguments to fix this issue
32 |
33 | @inlinable public var width: Anchor<AnchorType.Dimension, AnchorAxis.Horizontal> { Anchor(item, .width) }
/host/spi-builder-workspace/Sources/Anchor.swift:51:39: note: 'Axis' declared as parameter to type 'Anchor'
49 | /// - tip: `UIView` does not provide anchor properties for the layout margin attributes.
50 | /// Instead, call `view.layoutMarginsGuide.anchors`.
51 | @MainActor public struct Anchor<Type, Axis> { // type and axis are phantom types
| `- note: 'Axis' declared as parameter to type 'Anchor'
52 | @usableFromInline let item: LayoutItem
53 | @usableFromInline let attribute: NSLayoutConstraint.Attribute
/host/spi-builder-workspace/Sources/LayoutAnchors.swift:31:106: error: cannot infer contextual base in reference to member 'lastBaseline'
29 |
30 | @inlinable public var firstBaseline: Anchor<AnchorType.Baseline, AnchorAxis.Vertical> { Anchor(item, .firstBaseline) }
31 | @inlinable public var lastBaseline: Anchor<AnchorType.Baseline, AnchorAxis.Vertical> { Anchor(item, .lastBaseline) }
| `- error: cannot infer contextual base in reference to member 'lastBaseline'
32 |
33 | @inlinable public var width: Anchor<AnchorType.Dimension, AnchorAxis.Horizontal> { Anchor(item, .width) }
/host/spi-builder-workspace/Sources/LayoutAnchors.swift:33:88: error: generic parameter 'Type' could not be inferred
31 | @inlinable public var lastBaseline: Anchor<AnchorType.Baseline, AnchorAxis.Vertical> { Anchor(item, .lastBaseline) }
32 |
33 | @inlinable public var width: Anchor<AnchorType.Dimension, AnchorAxis.Horizontal> { Anchor(item, .width) }
| `- error: generic parameter 'Type' could not be inferred
34 | @inlinable public var height: Anchor<AnchorType.Dimension, AnchorAxis.Vertical> { Anchor(item, .height) }
35 |
/host/spi-builder-workspace/Sources/Anchor.swift:51:33: note: 'Type' declared as parameter to type 'Anchor'
49 | /// - tip: `UIView` does not provide anchor properties for the layout margin attributes.
50 | /// Instead, call `view.layoutMarginsGuide.anchors`.
51 | @MainActor public struct Anchor<Type, Axis> { // type and axis are phantom types
| `- note: 'Type' declared as parameter to type 'Anchor'
52 | @usableFromInline let item: LayoutItem
53 | @usableFromInline let attribute: NSLayoutConstraint.Attribute
/host/spi-builder-workspace/Sources/LayoutAnchors.swift:33:88: error: generic parameter 'Axis' could not be inferred
31 | @inlinable public var lastBaseline: Anchor<AnchorType.Baseline, AnchorAxis.Vertical> { Anchor(item, .lastBaseline) }
32 |
33 | @inlinable public var width: Anchor<AnchorType.Dimension, AnchorAxis.Horizontal> { Anchor(item, .width) }
| |- error: generic parameter 'Axis' could not be inferred
| `- note: explicitly specify the generic arguments to fix this issue
34 | @inlinable public var height: Anchor<AnchorType.Dimension, AnchorAxis.Vertical> { Anchor(item, .height) }
35 |
/host/spi-builder-workspace/Sources/Anchor.swift:51:39: note: 'Axis' declared as parameter to type 'Anchor'
49 | /// - tip: `UIView` does not provide anchor properties for the layout margin attributes.
50 | /// Instead, call `view.layoutMarginsGuide.anchors`.
51 | @MainActor public struct Anchor<Type, Axis> { // type and axis are phantom types
| `- note: 'Axis' declared as parameter to type 'Anchor'
52 | @usableFromInline let item: LayoutItem
53 | @usableFromInline let attribute: NSLayoutConstraint.Attribute
/host/spi-builder-workspace/Sources/LayoutAnchors.swift:33:102: error: cannot infer contextual base in reference to member 'width'
31 | @inlinable public var lastBaseline: Anchor<AnchorType.Baseline, AnchorAxis.Vertical> { Anchor(item, .lastBaseline) }
32 |
33 | @inlinable public var width: Anchor<AnchorType.Dimension, AnchorAxis.Horizontal> { Anchor(item, .width) }
| `- error: cannot infer contextual base in reference to member 'width'
34 | @inlinable public var height: Anchor<AnchorType.Dimension, AnchorAxis.Vertical> { Anchor(item, .height) }
35 |
/host/spi-builder-workspace/Sources/LayoutAnchors.swift:34:87: error: generic parameter 'Type' could not be inferred
32 |
33 | @inlinable public var width: Anchor<AnchorType.Dimension, AnchorAxis.Horizontal> { Anchor(item, .width) }
34 | @inlinable public var height: Anchor<AnchorType.Dimension, AnchorAxis.Vertical> { Anchor(item, .height) }
| `- error: generic parameter 'Type' could not be inferred
35 |
36 | // MARK: Anchor Collections
/host/spi-builder-workspace/Sources/Anchor.swift:51:33: note: 'Type' declared as parameter to type 'Anchor'
49 | /// - tip: `UIView` does not provide anchor properties for the layout margin attributes.
50 | /// Instead, call `view.layoutMarginsGuide.anchors`.
51 | @MainActor public struct Anchor<Type, Axis> { // type and axis are phantom types
| `- note: 'Type' declared as parameter to type 'Anchor'
52 | @usableFromInline let item: LayoutItem
53 | @usableFromInline let attribute: NSLayoutConstraint.Attribute
/host/spi-builder-workspace/Sources/LayoutAnchors.swift:34:87: error: generic parameter 'Axis' could not be inferred
32 |
33 | @inlinable public var width: Anchor<AnchorType.Dimension, AnchorAxis.Horizontal> { Anchor(item, .width) }
34 | @inlinable public var height: Anchor<AnchorType.Dimension, AnchorAxis.Vertical> { Anchor(item, .height) }
| |- error: generic parameter 'Axis' could not be inferred
| `- note: explicitly specify the generic arguments to fix this issue
35 |
36 | // MARK: Anchor Collections
/host/spi-builder-workspace/Sources/Anchor.swift:51:39: note: 'Axis' declared as parameter to type 'Anchor'
49 | /// - tip: `UIView` does not provide anchor properties for the layout margin attributes.
50 | /// Instead, call `view.layoutMarginsGuide.anchors`.
51 | @MainActor public struct Anchor<Type, Axis> { // type and axis are phantom types
| `- note: 'Axis' declared as parameter to type 'Anchor'
52 | @usableFromInline let item: LayoutItem
53 | @usableFromInline let attribute: NSLayoutConstraint.Attribute
/host/spi-builder-workspace/Sources/LayoutAnchors.swift:34:101: error: cannot infer contextual base in reference to member 'height'
32 |
33 | @inlinable public var width: Anchor<AnchorType.Dimension, AnchorAxis.Horizontal> { Anchor(item, .width) }
34 | @inlinable public var height: Anchor<AnchorType.Dimension, AnchorAxis.Vertical> { Anchor(item, .height) }
| `- error: cannot infer contextual base in reference to member 'height'
35 |
36 | // MARK: Anchor Collections
/host/spi-builder-workspace/Sources/LayoutItem.swift:75:11: error: cannot find type 'NSLayoutConstraint' in scope
73 | #endif
74 |
75 | extension NSLayoutConstraint.Relation {
| `- error: cannot find type 'NSLayoutConstraint' in scope
76 | @usableFromInline var inverted: NSLayoutConstraint.Relation {
77 | switch self {
[6/10] Compiling Align Align+Preview.swift
[7/10] Compiling Align Constraints.swift
/host/spi-builder-workspace/Sources/Constraints.swift:44:32: error: cannot find type 'NSLayoutConstraint' in scope
42 | /// and each group honors its own `activate:` flag independently.
43 | public struct Constraints: RandomAccessCollection {
44 | public typealias Element = NSLayoutConstraint
| `- error: cannot find type 'NSLayoutConstraint' in scope
45 | public typealias Index = Int
46 |
/host/spi-builder-workspace/Sources/Constraints.swift:47:40: error: cannot find type 'NSLayoutConstraint' in scope
45 | public typealias Index = Int
46 |
47 | public subscript(position: Int) -> NSLayoutConstraint { constraints[position] }
| `- error: cannot find type 'NSLayoutConstraint' in scope
48 | public var startIndex: Int { constraints.startIndex }
49 | public var endIndex: Int { constraints.endIndex }
/host/spi-builder-workspace/Sources/Constraints.swift:53:43: error: cannot find type 'NSLayoutConstraint' in scope
51 |
52 | /// Returns all of the created constraints.
53 | public private(set) var constraints: [NSLayoutConstraint]
| `- error: cannot find type 'NSLayoutConstraint' in scope
54 |
55 | /// All of the constraints created in the given closure are automatically
/host/spi-builder-workspace/Sources/Constraints.swift:86:350: error: cannot find type 'NSLayoutConstraint' in scope
84 |
85 | /// Creates and automatically installs a constraint.
86 | @MainActor @usableFromInline static func add(item item1: LayoutItem, attribute attr1: NSLayoutConstraint.Attribute, relatedBy relation: NSLayoutConstraint.Relation = .equal, toItem item2: LayoutItem? = nil, attribute attr2: NSLayoutConstraint.Attribute? = nil, multiplier: CGFloat = 1, constant: CGFloat = 0, priority: LayoutPriority? = nil) -> NSLayoutConstraint {
| `- error: cannot find type 'NSLayoutConstraint' in scope
87 | item1._disableAutoresizingMask()
88 | let constraint = NSLayoutConstraint(item: item1, attribute: attr1, relatedBy: relation, toItem: item2, attribute: attr2 ?? .notAnAttribute, multiplier: multiplier, constant: constant)
/host/spi-builder-workspace/Sources/Constraints.swift:86:91: error: cannot find type 'NSLayoutConstraint' in scope
84 |
85 | /// Creates and automatically installs a constraint.
86 | @MainActor @usableFromInline static func add(item item1: LayoutItem, attribute attr1: NSLayoutConstraint.Attribute, relatedBy relation: NSLayoutConstraint.Relation = .equal, toItem item2: LayoutItem? = nil, attribute attr2: NSLayoutConstraint.Attribute? = nil, multiplier: CGFloat = 1, constant: CGFloat = 0, priority: LayoutPriority? = nil) -> NSLayoutConstraint {
| `- error: cannot find type 'NSLayoutConstraint' in scope
87 | item1._disableAutoresizingMask()
88 | let constraint = NSLayoutConstraint(item: item1, attribute: attr1, relatedBy: relation, toItem: item2, attribute: attr2 ?? .notAnAttribute, multiplier: multiplier, constant: constant)
/host/spi-builder-workspace/Sources/Constraints.swift:86:141: error: cannot find type 'NSLayoutConstraint' in scope
84 |
85 | /// Creates and automatically installs a constraint.
86 | @MainActor @usableFromInline static func add(item item1: LayoutItem, attribute attr1: NSLayoutConstraint.Attribute, relatedBy relation: NSLayoutConstraint.Relation = .equal, toItem item2: LayoutItem? = nil, attribute attr2: NSLayoutConstraint.Attribute? = nil, multiplier: CGFloat = 1, constant: CGFloat = 0, priority: LayoutPriority? = nil) -> NSLayoutConstraint {
| `- error: cannot find type 'NSLayoutConstraint' in scope
87 | item1._disableAutoresizingMask()
88 | let constraint = NSLayoutConstraint(item: item1, attribute: attr1, relatedBy: relation, toItem: item2, attribute: attr2 ?? .notAnAttribute, multiplier: multiplier, constant: constant)
/host/spi-builder-workspace/Sources/Constraints.swift:86:229: error: cannot find type 'NSLayoutConstraint' in scope
84 |
85 | /// Creates and automatically installs a constraint.
86 | @MainActor @usableFromInline static func add(item item1: LayoutItem, attribute attr1: NSLayoutConstraint.Attribute, relatedBy relation: NSLayoutConstraint.Relation = .equal, toItem item2: LayoutItem? = nil, attribute attr2: NSLayoutConstraint.Attribute? = nil, multiplier: CGFloat = 1, constant: CGFloat = 0, priority: LayoutPriority? = nil) -> NSLayoutConstraint {
| `- error: cannot find type 'NSLayoutConstraint' in scope
87 | item1._disableAutoresizingMask()
88 | let constraint = NSLayoutConstraint(item: item1, attribute: attr1, relatedBy: relation, toItem: item2, attribute: attr2 ?? .notAnAttribute, multiplier: multiplier, constant: constant)
/host/spi-builder-workspace/Sources/Constraints.swift:86:278: error: cannot find type 'CGFloat' in scope
84 |
85 | /// Creates and automatically installs a constraint.
86 | @MainActor @usableFromInline static func add(item item1: LayoutItem, attribute attr1: NSLayoutConstraint.Attribute, relatedBy relation: NSLayoutConstraint.Relation = .equal, toItem item2: LayoutItem? = nil, attribute attr2: NSLayoutConstraint.Attribute? = nil, multiplier: CGFloat = 1, constant: CGFloat = 0, priority: LayoutPriority? = nil) -> NSLayoutConstraint {
| `- error: cannot find type 'CGFloat' in scope
87 | item1._disableAutoresizingMask()
88 | let constraint = NSLayoutConstraint(item: item1, attribute: attr1, relatedBy: relation, toItem: item2, attribute: attr2 ?? .notAnAttribute, multiplier: multiplier, constant: constant)
/host/spi-builder-workspace/Sources/Constraints.swift:86:301: error: cannot find type 'CGFloat' in scope
84 |
85 | /// Creates and automatically installs a constraint.
86 | @MainActor @usableFromInline static func add(item item1: LayoutItem, attribute attr1: NSLayoutConstraint.Attribute, relatedBy relation: NSLayoutConstraint.Relation = .equal, toItem item2: LayoutItem? = nil, attribute attr2: NSLayoutConstraint.Attribute? = nil, multiplier: CGFloat = 1, constant: CGFloat = 0, priority: LayoutPriority? = nil) -> NSLayoutConstraint {
| `- error: cannot find type 'CGFloat' in scope
87 | item1._disableAutoresizingMask()
88 | let constraint = NSLayoutConstraint(item: item1, attribute: attr1, relatedBy: relation, toItem: item2, attribute: attr2 ?? .notAnAttribute, multiplier: multiplier, constant: constant)
/host/spi-builder-workspace/Sources/Constraints.swift:86:324: error: cannot find type 'LayoutPriority' in scope
84 |
85 | /// Creates and automatically installs a constraint.
86 | @MainActor @usableFromInline static func add(item item1: LayoutItem, attribute attr1: NSLayoutConstraint.Attribute, relatedBy relation: NSLayoutConstraint.Relation = .equal, toItem item2: LayoutItem? = nil, attribute attr2: NSLayoutConstraint.Attribute? = nil, multiplier: CGFloat = 1, constant: CGFloat = 0, priority: LayoutPriority? = nil) -> NSLayoutConstraint {
| `- error: cannot find type 'LayoutPriority' in scope
87 | item1._disableAutoresizingMask()
88 | let constraint = NSLayoutConstraint(item: item1, attribute: attr1, relatedBy: relation, toItem: item2, attribute: attr2 ?? .notAnAttribute, multiplier: multiplier, constant: constant)
/host/spi-builder-workspace/Sources/Constraints.swift:94:142: error: cannot find type 'CGFloat' in scope
92 |
93 | /// Creates and automatically installs a constraint between two anchors.
94 | @MainActor @usableFromInline static func add<T1, A1, T2, A2>(_ lhs: consuming Anchor<T1, A1>, _ rhs: consuming Anchor<T2, A2>, constant: CGFloat = 0, multiplier: CGFloat = 1, relation: NSLayoutConstraint.Relation = .equal, priority: LayoutPriority? = nil) -> NSLayoutConstraint {
| `- error: cannot find type 'CGFloat' in scope
95 | add(item: lhs.item, attribute: lhs.attribute, relatedBy: relation, toItem: rhs.item, attribute: rhs.attribute, multiplier: (multiplier / lhs.multiplier) * rhs.multiplier, constant: constant - lhs.offset + rhs.offset, priority: priority)
96 | }
/host/spi-builder-workspace/Sources/Constraints.swift:94:167: error: cannot find type 'CGFloat' in scope
92 |
93 | /// Creates and automatically installs a constraint between two anchors.
94 | @MainActor @usableFromInline static func add<T1, A1, T2, A2>(_ lhs: consuming Anchor<T1, A1>, _ rhs: consuming Anchor<T2, A2>, constant: CGFloat = 0, multiplier: CGFloat = 1, relation: NSLayoutConstraint.Relation = .equal, priority: LayoutPriority? = nil) -> NSLayoutConstraint {
| `- error: cannot find type 'CGFloat' in scope
95 | add(item: lhs.item, attribute: lhs.attribute, relatedBy: relation, toItem: rhs.item, attribute: rhs.attribute, multiplier: (multiplier / lhs.multiplier) * rhs.multiplier, constant: constant - lhs.offset + rhs.offset, priority: priority)
96 | }
/host/spi-builder-workspace/Sources/Constraints.swift:94:190: error: cannot find type 'NSLayoutConstraint' in scope
92 |
93 | /// Creates and automatically installs a constraint between two anchors.
94 | @MainActor @usableFromInline static func add<T1, A1, T2, A2>(_ lhs: consuming Anchor<T1, A1>, _ rhs: consuming Anchor<T2, A2>, constant: CGFloat = 0, multiplier: CGFloat = 1, relation: NSLayoutConstraint.Relation = .equal, priority: LayoutPriority? = nil) -> NSLayoutConstraint {
| `- error: cannot find type 'NSLayoutConstraint' in scope
95 | add(item: lhs.item, attribute: lhs.attribute, relatedBy: relation, toItem: rhs.item, attribute: rhs.attribute, multiplier: (multiplier / lhs.multiplier) * rhs.multiplier, constant: constant - lhs.offset + rhs.offset, priority: priority)
96 | }
/host/spi-builder-workspace/Sources/Constraints.swift:94:238: error: cannot find type 'LayoutPriority' in scope
92 |
93 | /// Creates and automatically installs a constraint between two anchors.
94 | @MainActor @usableFromInline static func add<T1, A1, T2, A2>(_ lhs: consuming Anchor<T1, A1>, _ rhs: consuming Anchor<T2, A2>, constant: CGFloat = 0, multiplier: CGFloat = 1, relation: NSLayoutConstraint.Relation = .equal, priority: LayoutPriority? = nil) -> NSLayoutConstraint {
| `- error: cannot find type 'LayoutPriority' in scope
95 | add(item: lhs.item, attribute: lhs.attribute, relatedBy: relation, toItem: rhs.item, attribute: rhs.attribute, multiplier: (multiplier / lhs.multiplier) * rhs.multiplier, constant: constant - lhs.offset + rhs.offset, priority: priority)
96 | }
/host/spi-builder-workspace/Sources/Constraints.swift:94:264: error: cannot find type 'NSLayoutConstraint' in scope
92 |
93 | /// Creates and automatically installs a constraint between two anchors.
94 | @MainActor @usableFromInline static func add<T1, A1, T2, A2>(_ lhs: consuming Anchor<T1, A1>, _ rhs: consuming Anchor<T2, A2>, constant: CGFloat = 0, multiplier: CGFloat = 1, relation: NSLayoutConstraint.Relation = .equal, priority: LayoutPriority? = nil) -> NSLayoutConstraint {
| `- error: cannot find type 'NSLayoutConstraint' in scope
95 | add(item: lhs.item, attribute: lhs.attribute, relatedBy: relation, toItem: rhs.item, attribute: rhs.attribute, multiplier: (multiplier / lhs.multiplier) * rhs.multiplier, constant: constant - lhs.offset + rhs.offset, priority: priority)
96 | }
/host/spi-builder-workspace/Sources/Constraints.swift:100:135: error: cannot find type 'NSLayoutConstraint' in scope
98 | /// Creates and automatically installs a constraint between an anchor and
99 | /// a given item.
100 | @MainActor @usableFromInline static func add<T1, A1>(_ lhs: consuming Anchor<T1, A1>, toItem item2: LayoutItem?, attribute attr2: NSLayoutConstraint.Attribute?, constant: CGFloat = 0, multiplier: CGFloat = 1, relation: NSLayoutConstraint.Relation = .equal, priority: LayoutPriority? = nil) -> NSLayoutConstraint {
| `- error: cannot find type 'NSLayoutConstraint' in scope
101 | add(item: lhs.item, attribute: lhs.attribute, relatedBy: relation, toItem: item2, attribute: attr2, multiplier: multiplier / lhs.multiplier, constant: constant - lhs.offset, priority: priority)
102 | }
/host/spi-builder-workspace/Sources/Constraints.swift:100:176: error: cannot find type 'CGFloat' in scope
98 | /// Creates and automatically installs a constraint between an anchor and
99 | /// a given item.
100 | @MainActor @usableFromInline static func add<T1, A1>(_ lhs: consuming Anchor<T1, A1>, toItem item2: LayoutItem?, attribute attr2: NSLayoutConstraint.Attribute?, constant: CGFloat = 0, multiplier: CGFloat = 1, relation: NSLayoutConstraint.Relation = .equal, priority: LayoutPriority? = nil) -> NSLayoutConstraint {
| `- error: cannot find type 'CGFloat' in scope
101 | add(item: lhs.item, attribute: lhs.attribute, relatedBy: relation, toItem: item2, attribute: attr2, multiplier: multiplier / lhs.multiplier, constant: constant - lhs.offset, priority: priority)
102 | }
/host/spi-builder-workspace/Sources/Constraints.swift:100:201: error: cannot find type 'CGFloat' in scope
98 | /// Creates and automatically installs a constraint between an anchor and
99 | /// a given item.
100 | @MainActor @usableFromInline static func add<T1, A1>(_ lhs: consuming Anchor<T1, A1>, toItem item2: LayoutItem?, attribute attr2: NSLayoutConstraint.Attribute?, constant: CGFloat = 0, multiplier: CGFloat = 1, relation: NSLayoutConstraint.Relation = .equal, priority: LayoutPriority? = nil) -> NSLayoutConstraint {
| `- error: cannot find type 'CGFloat' in scope
101 | add(item: lhs.item, attribute: lhs.attribute, relatedBy: relation, toItem: item2, attribute: attr2, multiplier: multiplier / lhs.multiplier, constant: constant - lhs.offset, priority: priority)
102 | }
/host/spi-builder-workspace/Sources/Constraints.swift:100:224: error: cannot find type 'NSLayoutConstraint' in scope
98 | /// Creates and automatically installs a constraint between an anchor and
99 | /// a given item.
100 | @MainActor @usableFromInline static func add<T1, A1>(_ lhs: consuming Anchor<T1, A1>, toItem item2: LayoutItem?, attribute attr2: NSLayoutConstraint.Attribute?, constant: CGFloat = 0, multiplier: CGFloat = 1, relation: NSLayoutConstraint.Relation = .equal, priority: LayoutPriority? = nil) -> NSLayoutConstraint {
| `- error: cannot find type 'NSLayoutConstraint' in scope
101 | add(item: lhs.item, attribute: lhs.attribute, relatedBy: relation, toItem: item2, attribute: attr2, multiplier: multiplier / lhs.multiplier, constant: constant - lhs.offset, priority: priority)
102 | }
/host/spi-builder-workspace/Sources/Constraints.swift:100:272: error: cannot find type 'LayoutPriority' in scope
98 | /// Creates and automatically installs a constraint between an anchor and
99 | /// a given item.
100 | @MainActor @usableFromInline static func add<T1, A1>(_ lhs: consuming Anchor<T1, A1>, toItem item2: LayoutItem?, attribute attr2: NSLayoutConstraint.Attribute?, constant: CGFloat = 0, multiplier: CGFloat = 1, relation: NSLayoutConstraint.Relation = .equal, priority: LayoutPriority? = nil) -> NSLayoutConstraint {
| `- error: cannot find type 'LayoutPriority' in scope
101 | add(item: lhs.item, attribute: lhs.attribute, relatedBy: relation, toItem: item2, attribute: attr2, multiplier: multiplier / lhs.multiplier, constant: constant - lhs.offset, priority: priority)
102 | }
/host/spi-builder-workspace/Sources/Constraints.swift:100:298: error: cannot find type 'NSLayoutConstraint' in scope
98 | /// Creates and automatically installs a constraint between an anchor and
99 | /// a given item.
100 | @MainActor @usableFromInline static func add<T1, A1>(_ lhs: consuming Anchor<T1, A1>, toItem item2: LayoutItem?, attribute attr2: NSLayoutConstraint.Attribute?, constant: CGFloat = 0, multiplier: CGFloat = 1, relation: NSLayoutConstraint.Relation = .equal, priority: LayoutPriority? = nil) -> NSLayoutConstraint {
| `- error: cannot find type 'NSLayoutConstraint' in scope
101 | add(item: lhs.item, attribute: lhs.attribute, relatedBy: relation, toItem: item2, attribute: attr2, multiplier: multiplier / lhs.multiplier, constant: constant - lhs.offset, priority: priority)
102 | }
/host/spi-builder-workspace/Sources/Constraints.swift:104:36: error: cannot find type 'NSLayoutConstraint' in scope
102 | }
103 |
104 | @MainActor static var stack: [[NSLayoutConstraint]] = [] // this is what enables constraint auto-installing
| `- error: cannot find type 'NSLayoutConstraint' in scope
105 |
106 | @MainActor @usableFromInline static func install(_ constraint: NSLayoutConstraint, priority: LayoutPriority? = nil) {
/host/spi-builder-workspace/Sources/Constraints.swift:106:68: error: cannot find type 'NSLayoutConstraint' in scope
104 | @MainActor static var stack: [[NSLayoutConstraint]] = [] // this is what enables constraint auto-installing
105 |
106 | @MainActor @usableFromInline static func install(_ constraint: NSLayoutConstraint, priority: LayoutPriority? = nil) {
| `- error: cannot find type 'NSLayoutConstraint' in scope
107 | if let priority { constraint.priority = priority }
108 | if !stack.isEmpty {
/host/spi-builder-workspace/Sources/Constraints.swift:106:98: error: cannot find type 'LayoutPriority' in scope
104 | @MainActor static var stack: [[NSLayoutConstraint]] = [] // this is what enables constraint auto-installing
105 |
106 | @MainActor @usableFromInline static func install(_ constraint: NSLayoutConstraint, priority: LayoutPriority? = nil) {
| `- error: cannot find type 'LayoutPriority' in scope
107 | if let priority { constraint.priority = priority }
108 | if !stack.isEmpty {
/host/spi-builder-workspace/Sources/Constraints.swift:43:15: error: type 'Constraints' does not conform to protocol 'RandomAccessCollection'
41 | /// Nesting is supported: each constraint is collected by the innermost group,
42 | /// and each group honors its own `activate:` flag independently.
43 | public struct Constraints: RandomAccessCollection {
| |- error: type 'Constraints' does not conform to protocol 'RandomAccessCollection'
| `- note: add stubs for conformance
44 | public typealias Element = NSLayoutConstraint
45 | public typealias Index = Int
Swift.RandomAccessCollection.Element:2:16: note: protocol requires nested type 'Element'
1 | protocol RandomAccessCollection {
2 | associatedtype Element}
| `- note: protocol requires nested type 'Element'
3 |
/host/spi-builder-workspace/Sources/Anchor.swift:77:96: error: cannot find type 'CGFloat' in scope
75 |
76 | /// Returns a new anchor offset by a given amount.
77 | @MainActor @inlinable public func + <Type, Axis>(anchor: consuming Anchor<Type, Axis>, offset: CGFloat) -> Anchor<Type, Axis> {
| `- error: cannot find type 'CGFloat' in scope
78 | anchor.offsetting(by: offset)
79 | }
/host/spi-builder-workspace/Sources/Constraints.swift:68:23: error: cannot find 'NSLayoutConstraint' in scope
66 | closure() // create constraints
67 | self.constraints = Constraints.stack.removeLast()
68 | if activate { NSLayoutConstraint.activate(constraints) }
| `- error: cannot find 'NSLayoutConstraint' in scope
69 | }
70 |
/host/spi-builder-workspace/Sources/Constraints.swift:75:9: error: cannot find 'NSLayoutConstraint' in scope
73 | /// Activates each constraint in the receiver.
74 | @MainActor public func activate() {
75 | NSLayoutConstraint.activate(constraints)
| `- error: cannot find 'NSLayoutConstraint' in scope
76 | }
77 |
/host/spi-builder-workspace/Sources/Constraints.swift:80:9: error: cannot find 'NSLayoutConstraint' in scope
78 | /// Deactivates each constraint in the receiver.
79 | @MainActor public func deactivate() {
80 | NSLayoutConstraint.deactivate(constraints)
| `- error: cannot find 'NSLayoutConstraint' in scope
81 | }
82 |
/host/spi-builder-workspace/Sources/Constraints.swift:88:26: error: cannot find 'NSLayoutConstraint' in scope
86 | @MainActor @usableFromInline static func add(item item1: LayoutItem, attribute attr1: NSLayoutConstraint.Attribute, relatedBy relation: NSLayoutConstraint.Relation = .equal, toItem item2: LayoutItem? = nil, attribute attr2: NSLayoutConstraint.Attribute? = nil, multiplier: CGFloat = 1, constant: CGFloat = 0, priority: LayoutPriority? = nil) -> NSLayoutConstraint {
87 | item1._disableAutoresizingMask()
88 | let constraint = NSLayoutConstraint(item: item1, attribute: attr1, relatedBy: relation, toItem: item2, attribute: attr2 ?? .notAnAttribute, multiplier: multiplier, constant: constant)
| `- error: cannot find 'NSLayoutConstraint' in scope
89 | install(constraint, priority: priority)
90 | return constraint
/host/spi-builder-workspace/Sources/Anchor.swift:82:96: error: cannot find type 'CGFloat' in scope
80 |
81 | /// Returns a new anchor offset by a given amount.
82 | @MainActor @inlinable public func - <Type, Axis>(anchor: consuming Anchor<Type, Axis>, offset: CGFloat) -> Anchor<Type, Axis> {
| `- error: cannot find type 'CGFloat' in scope
83 | anchor.offsetting(by: -offset)
84 | }
[8/10] Compiling Align Anchor.swift
/host/spi-builder-workspace/Sources/LayoutItem.swift:16:33: error: cannot find type 'NSView' in scope
14 | @_spi(Align) var superview: UIView? { get }
15 | #else
16 | @_spi(Align) var superview: NSView? { get }
| `- error: cannot find type 'NSView' in scope
17 | #endif
18 |
/host/spi-builder-workspace/Sources/Anchor.swift:53:38: error: cannot find type 'NSLayoutConstraint' in scope
51 | @MainActor public struct Anchor<Type, Axis> { // type and axis are phantom types
52 | @usableFromInline let item: LayoutItem
53 | @usableFromInline let attribute: NSLayoutConstraint.Attribute
| `- error: cannot find type 'NSLayoutConstraint' in scope
54 | @usableFromInline let offset: CGFloat
55 | @usableFromInline let multiplier: CGFloat
/host/spi-builder-workspace/Sources/Anchor.swift:54:35: error: cannot find type 'CGFloat' in scope
52 | @usableFromInline let item: LayoutItem
53 | @usableFromInline let attribute: NSLayoutConstraint.Attribute
54 | @usableFromInline let offset: CGFloat
| `- error: cannot find type 'CGFloat' in scope
55 | @usableFromInline let multiplier: CGFloat
56 |
/host/spi-builder-workspace/Sources/Anchor.swift:55:39: error: cannot find type 'CGFloat' in scope
53 | @usableFromInline let attribute: NSLayoutConstraint.Attribute
54 | @usableFromInline let offset: CGFloat
55 | @usableFromInline let multiplier: CGFloat
| `- error: cannot find type 'CGFloat' in scope
56 |
57 | @inlinable init(_ item: LayoutItem, _ attribute: NSLayoutConstraint.Attribute, offset: CGFloat = 0, multiplier: CGFloat = 1) {
/host/spi-builder-workspace/Sources/Anchor.swift:57:54: error: cannot find type 'NSLayoutConstraint' in scope
55 | @usableFromInline let multiplier: CGFloat
56 |
57 | @inlinable init(_ item: LayoutItem, _ attribute: NSLayoutConstraint.Attribute, offset: CGFloat = 0, multiplier: CGFloat = 1) {
| `- error: cannot find type 'NSLayoutConstraint' in scope
58 | self.item = item; self.attribute = attribute; self.offset = offset; self.multiplier = multiplier
59 | }
/host/spi-builder-workspace/Sources/Anchor.swift:57:92: error: cannot find type 'CGFloat' in scope
55 | @usableFromInline let multiplier: CGFloat
56 |
57 | @inlinable init(_ item: LayoutItem, _ attribute: NSLayoutConstraint.Attribute, offset: CGFloat = 0, multiplier: CGFloat = 1) {
| `- error: cannot find type 'CGFloat' in scope
58 | self.item = item; self.attribute = attribute; self.offset = offset; self.multiplier = multiplier
59 | }
/host/spi-builder-workspace/Sources/Anchor.swift:57:117: error: cannot find type 'CGFloat' in scope
55 | @usableFromInline let multiplier: CGFloat
56 |
57 | @inlinable init(_ item: LayoutItem, _ attribute: NSLayoutConstraint.Attribute, offset: CGFloat = 0, multiplier: CGFloat = 1) {
| `- error: cannot find type 'CGFloat' in scope
58 | self.item = item; self.attribute = attribute; self.offset = offset; self.multiplier = multiplier
59 | }
/host/spi-builder-workspace/Sources/Anchor.swift:64:60: error: cannot find type 'CGFloat' in scope
62 | ///
63 | /// - tip: Consider using a convenience operator instead: `view.anchors.top + 10`.
64 | @inlinable public consuming func offsetting(by offset: CGFloat) -> Anchor {
| `- error: cannot find type 'CGFloat' in scope
65 | Anchor(item, attribute, offset: self.offset + offset, multiplier: self.multiplier)
66 | }
/host/spi-builder-workspace/Sources/Anchor.swift:71:64: error: cannot find type 'CGFloat' in scope
69 | ///
70 | /// - tip: Consider using a convenience operator instead: `view.anchors.height * 2`.
71 | @inlinable public consuming func multiplied(by multiplier: CGFloat) -> Anchor {
| `- error: cannot find type 'CGFloat' in scope
72 | Anchor(item, attribute, offset: self.offset * multiplier, multiplier: self.multiplier * multiplier)
73 | }
/host/spi-builder-workspace/Sources/Anchor.swift:77:96: error: cannot find type 'CGFloat' in scope
75 |
76 | /// Returns a new anchor offset by a given amount.
77 | @MainActor @inlinable public func + <Type, Axis>(anchor: consuming Anchor<Type, Axis>, offset: CGFloat) -> Anchor<Type, Axis> {
| `- error: cannot find type 'CGFloat' in scope
78 | anchor.offsetting(by: offset)
79 | }
/host/spi-builder-workspace/Sources/Anchor.swift:82:96: error: cannot find type 'CGFloat' in scope
80 |
81 | /// Returns a new anchor offset by a given amount.
82 | @MainActor @inlinable public func - <Type, Axis>(anchor: consuming Anchor<Type, Axis>, offset: CGFloat) -> Anchor<Type, Axis> {
| `- error: cannot find type 'CGFloat' in scope
83 | anchor.offsetting(by: -offset)
84 | }
/host/spi-builder-workspace/Sources/Anchor.swift:87:100: error: cannot find type 'CGFloat' in scope
85 |
86 | /// Returns a new anchor with a constant multiplied by the given amount.
87 | @MainActor @inlinable public func * <Type, Axis>(anchor: consuming Anchor<Type, Axis>, multiplier: CGFloat) -> Anchor<Type, Axis> {
| `- error: cannot find type 'CGFloat' in scope
88 | anchor.multiplied(by: multiplier)
89 | }
/host/spi-builder-workspace/Sources/Anchor.swift:92:97: error: cannot find type 'CGFloat' in scope
90 |
91 | /// Returns a new anchor with a constant divided by the given amount.
92 | @MainActor @inlinable public func / <Type, Axis>(anchor: consuming Anchor<Type, Axis>, divisor: CGFloat) -> Anchor<Type, Axis> {
| `- error: cannot find type 'CGFloat' in scope
93 | anchor.multiplied(by: 1 / divisor)
94 | }
/host/spi-builder-workspace/Sources/Anchor.swift:99:143: error: cannot find type 'CGFloat' in scope
97 |
98 | @MainActor public extension Anchor where Type: AlignmentAnchorKind {
99 | @inlinable @discardableResult consuming func equal<OtherType: AlignmentAnchorKind>(_ anchor: consuming Anchor<OtherType, Axis>, constant: CGFloat = 0, priority: LayoutPriority? = nil) -> NSLayoutConstraint {
| `- error: cannot find type 'CGFloat' in scope
100 | Constraints.add(self, anchor, constant: constant, relation: .equal, priority: priority)
101 | }
/host/spi-builder-workspace/Sources/Anchor.swift:99:166: error: cannot find type 'LayoutPriority' in scope
97 |
98 | @MainActor public extension Anchor where Type: AlignmentAnchorKind {
99 | @inlinable @discardableResult consuming func equal<OtherType: AlignmentAnchorKind>(_ anchor: consuming Anchor<OtherType, Axis>, constant: CGFloat = 0, priority: LayoutPriority? = nil) -> NSLayoutConstraint {
| `- error: cannot find type 'LayoutPriority' in scope
100 | Constraints.add(self, anchor, constant: constant, relation: .equal, priority: priority)
101 | }
/host/spi-builder-workspace/Sources/Anchor.swift:99:192: error: cannot find type 'NSLayoutConstraint' in scope
97 |
98 | @MainActor public extension Anchor where Type: AlignmentAnchorKind {
99 | @inlinable @discardableResult consuming func equal<OtherType: AlignmentAnchorKind>(_ anchor: consuming Anchor<OtherType, Axis>, constant: CGFloat = 0, priority: LayoutPriority? = nil) -> NSLayoutConstraint {
| `- error: cannot find type 'NSLayoutConstraint' in scope
100 | Constraints.add(self, anchor, constant: constant, relation: .equal, priority: priority)
101 | }
/host/spi-builder-workspace/Sources/Anchor.swift:103:156: error: cannot find type 'CGFloat' in scope
101 | }
102 |
103 | @inlinable @discardableResult consuming func greaterThanOrEqual<OtherType: AlignmentAnchorKind>(_ anchor: consuming Anchor<OtherType, Axis>, constant: CGFloat = 0, priority: LayoutPriority? = nil) -> NSLayoutConstraint {
| `- error: cannot find type 'CGFloat' in scope
104 | Constraints.add(self, anchor, constant: constant, relation: .greaterThanOrEqual, priority: priority)
105 | }
/host/spi-builder-workspace/Sources/Anchor.swift:103:179: error: cannot find type 'LayoutPriority' in scope
101 | }
102 |
103 | @inlinable @discardableResult consuming func greaterThanOrEqual<OtherType: AlignmentAnchorKind>(_ anchor: consuming Anchor<OtherType, Axis>, constant: CGFloat = 0, priority: LayoutPriority? = nil) -> NSLayoutConstraint {
| `- error: cannot find type 'LayoutPriority' in scope
104 | Constraints.add(self, anchor, constant: constant, relation: .greaterThanOrEqual, priority: priority)
105 | }
/host/spi-builder-workspace/Sources/Anchor.swift:103:205: error: cannot find type 'NSLayoutConstraint' in scope
101 | }
102 |
103 | @inlinable @discardableResult consuming func greaterThanOrEqual<OtherType: AlignmentAnchorKind>(_ anchor: consuming Anchor<OtherType, Axis>, constant: CGFloat = 0, priority: LayoutPriority? = nil) -> NSLayoutConstraint {
| `- error: cannot find type 'NSLayoutConstraint' in scope
104 | Constraints.add(self, anchor, constant: constant, relation: .greaterThanOrEqual, priority: priority)
105 | }
/host/spi-builder-workspace/Sources/Anchor.swift:107:153: error: cannot find type 'CGFloat' in scope
105 | }
106 |
107 | @inlinable @discardableResult consuming func lessThanOrEqual<OtherType: AlignmentAnchorKind>(_ anchor: consuming Anchor<OtherType, Axis>, constant: CGFloat = 0, priority: LayoutPriority? = nil) -> NSLayoutConstraint {
| `- error: cannot find type 'CGFloat' in scope
108 | Constraints.add(self, anchor, constant: constant, relation: .lessThanOrEqual, priority: priority)
109 | }
/host/spi-builder-workspace/Sources/Anchor.swift:107:176: error: cannot find type 'LayoutPriority' in scope
105 | }
106 |
107 | @inlinable @discardableResult consuming func lessThanOrEqual<OtherType: AlignmentAnchorKind>(_ anchor: consuming Anchor<OtherType, Axis>, constant: CGFloat = 0, priority: LayoutPriority? = nil) -> NSLayoutConstraint {
| `- error: cannot find type 'LayoutPriority' in scope
108 | Constraints.add(self, anchor, constant: constant, relation: .lessThanOrEqual, priority: priority)
109 | }
/host/spi-builder-workspace/Sources/Anchor.swift:107:202: error: cannot find type 'NSLayoutConstraint' in scope
105 | }
106 |
107 | @inlinable @discardableResult consuming func lessThanOrEqual<OtherType: AlignmentAnchorKind>(_ anchor: consuming Anchor<OtherType, Axis>, constant: CGFloat = 0, priority: LayoutPriority? = nil) -> NSLayoutConstraint {
| `- error: cannot find type 'NSLayoutConstraint' in scope
108 | Constraints.add(self, anchor, constant: constant, relation: .lessThanOrEqual, priority: priority)
109 | }
/host/spi-builder-workspace/Sources/Anchor.swift:115:138: error: cannot find type 'CGFloat' in scope
113 |
114 | @MainActor public extension Anchor where Type == AnchorType.Dimension {
115 | @inlinable @discardableResult consuming func equal<OtherAxis>(_ anchor: consuming Anchor<AnchorType.Dimension, OtherAxis>, constant: CGFloat = 0, priority: LayoutPriority? = nil) -> NSLayoutConstraint {
| `- error: cannot find type 'CGFloat' in scope
116 | Constraints.add(self, anchor, constant: constant, relation: .equal, priority: priority)
117 | }
/host/spi-builder-workspace/Sources/Anchor.swift:115:161: error: cannot find type 'LayoutPriority' in scope
113 |
114 | @MainActor public extension Anchor where Type == AnchorType.Dimension {
115 | @inlinable @discardableResult consuming func equal<OtherAxis>(_ anchor: consuming Anchor<AnchorType.Dimension, OtherAxis>, constant: CGFloat = 0, priority: LayoutPriority? = nil) -> NSLayoutConstraint {
| `- error: cannot find type 'LayoutPriority' in scope
116 | Constraints.add(self, anchor, constant: constant, relation: .equal, priority: priority)
117 | }
/host/spi-builder-workspace/Sources/Anchor.swift:115:187: error: cannot find type 'NSLayoutConstraint' in scope
113 |
114 | @MainActor public extension Anchor where Type == AnchorType.Dimension {
115 | @inlinable @discardableResult consuming func equal<OtherAxis>(_ anchor: consuming Anchor<AnchorType.Dimension, OtherAxis>, constant: CGFloat = 0, priority: LayoutPriority? = nil) -> NSLayoutConstraint {
| `- error: cannot find type 'NSLayoutConstraint' in scope
116 | Constraints.add(self, anchor, constant: constant, relation: .equal, priority: priority)
117 | }
/host/spi-builder-workspace/Sources/Anchor.swift:119:151: error: cannot find type 'CGFloat' in scope
117 | }
118 |
119 | @inlinable @discardableResult consuming func greaterThanOrEqual<OtherAxis>(_ anchor: consuming Anchor<AnchorType.Dimension, OtherAxis>, constant: CGFloat = 0, priority: LayoutPriority? = nil) -> NSLayoutConstraint {
| `- error: cannot find type 'CGFloat' in scope
120 | Constraints.add(self, anchor, constant: constant, relation: .greaterThanOrEqual, priority: priority)
121 | }
/host/spi-builder-workspace/Sources/Anchor.swift:119:174: error: cannot find type 'LayoutPriority' in scope
117 | }
118 |
119 | @inlinable @discardableResult consuming func greaterThanOrEqual<OtherAxis>(_ anchor: consuming Anchor<AnchorType.Dimension, OtherAxis>, constant: CGFloat = 0, priority: LayoutPriority? = nil) -> NSLayoutConstraint {
| `- error: cannot find type 'LayoutPriority' in scope
120 | Constraints.add(self, anchor, constant: constant, relation: .greaterThanOrEqual, priority: priority)
121 | }
/host/spi-builder-workspace/Sources/Anchor.swift:119:200: error: cannot find type 'NSLayoutConstraint' in scope
117 | }
118 |
119 | @inlinable @discardableResult consuming func greaterThanOrEqual<OtherAxis>(_ anchor: consuming Anchor<AnchorType.Dimension, OtherAxis>, constant: CGFloat = 0, priority: LayoutPriority? = nil) -> NSLayoutConstraint {
| `- error: cannot find type 'NSLayoutConstraint' in scope
120 | Constraints.add(self, anchor, constant: constant, relation: .greaterThanOrEqual, priority: priority)
121 | }
/host/spi-builder-workspace/Sources/Anchor.swift:123:148: error: cannot find type 'CGFloat' in scope
121 | }
122 |
123 | @inlinable @discardableResult consuming func lessThanOrEqual<OtherAxis>(_ anchor: consuming Anchor<AnchorType.Dimension, OtherAxis>, constant: CGFloat = 0, priority: LayoutPriority? = nil) -> NSLayoutConstraint {
| `- error: cannot find type 'CGFloat' in scope
124 | Constraints.add(self, anchor, constant: constant, relation: .lessThanOrEqual, priority: priority)
125 | }
/host/spi-builder-workspace/Sources/Anchor.swift:123:171: error: cannot find type 'LayoutPriority' in scope
121 | }
122 |
123 | @inlinable @discardableResult consuming func lessThanOrEqual<OtherAxis>(_ anchor: consuming Anchor<AnchorType.Dimension, OtherAxis>, constant: CGFloat = 0, priority: LayoutPriority? = nil) -> NSLayoutConstraint {
| `- error: cannot find type 'LayoutPriority' in scope
124 | Constraints.add(self, anchor, constant: constant, relation: .lessThanOrEqual, priority: priority)
125 | }
/host/spi-builder-workspace/Sources/Anchor.swift:123:197: error: cannot find type 'NSLayoutConstraint' in scope
121 | }
122 |
123 | @inlinable @discardableResult consuming func lessThanOrEqual<OtherAxis>(_ anchor: consuming Anchor<AnchorType.Dimension, OtherAxis>, constant: CGFloat = 0, priority: LayoutPriority? = nil) -> NSLayoutConstraint {
| `- error: cannot find type 'NSLayoutConstraint' in scope
124 | Constraints.add(self, anchor, constant: constant, relation: .lessThanOrEqual, priority: priority)
125 | }
/host/spi-builder-workspace/Sources/Anchor.swift:127:113: error: cannot find type 'NSLayoutConstraint' in scope
125 | }
126 |
127 | @inlinable @discardableResult consuming func equal(_ constant: CGFloat, priority: LayoutPriority? = nil) -> NSLayoutConstraint {
| `- error: cannot find type 'NSLayoutConstraint' in scope
128 | Constraints.add(item: item, attribute: attribute, relatedBy: .equal, constant: constant, priority: priority)
129 | }
/host/spi-builder-workspace/Sources/Anchor.swift:127:68: error: cannot find type 'CGFloat' in scope
125 | }
126 |
127 | @inlinable @discardableResult consuming func equal(_ constant: CGFloat, priority: LayoutPriority? = nil) -> NSLayoutConstraint {
| `- error: cannot find type 'CGFloat' in scope
128 | Constraints.add(item: item, attribute: attribute, relatedBy: .equal, constant: constant, priority: priority)
129 | }
/host/spi-builder-workspace/Sources/Anchor.swift:127:87: error: cannot find type 'LayoutPriority' in scope
125 | }
126 |
127 | @inlinable @discardableResult consuming func equal(_ constant: CGFloat, priority: LayoutPriority? = nil) -> NSLayoutConstraint {
| `- error: cannot find type 'LayoutPriority' in scope
128 | Constraints.add(item: item, attribute: attribute, relatedBy: .equal, constant: constant, priority: priority)
129 | }
/host/spi-builder-workspace/Sources/Anchor.swift:131:126: error: cannot find type 'NSLayoutConstraint' in scope
129 | }
130 |
131 | @inlinable @discardableResult consuming func greaterThanOrEqual(_ constant: CGFloat, priority: LayoutPriority? = nil) -> NSLayoutConstraint {
| `- error: cannot find type 'NSLayoutConstraint' in scope
132 | Constraints.add(item: item, attribute: attribute, relatedBy: .greaterThanOrEqual, constant: constant, priority: priority)
133 | }
/host/spi-builder-workspace/Sources/Anchor.swift:131:81: error: cannot find type 'CGFloat' in scope
129 | }
130 |
131 | @inlinable @discardableResult consuming func greaterThanOrEqual(_ constant: CGFloat, priority: LayoutPriority? = nil) -> NSLayoutConstraint {
| `- error: cannot find type 'CGFloat' in scope
132 | Constraints.add(item: item, attribute: attribute, relatedBy: .greaterThanOrEqual, constant: constant, priority: priority)
133 | }
/host/spi-builder-workspace/Sources/Anchor.swift:131:100: error: cannot find type 'LayoutPriority' in scope
129 | }
130 |
131 | @inlinable @discardableResult consuming func greaterThanOrEqual(_ constant: CGFloat, priority: LayoutPriority? = nil) -> NSLayoutConstraint {
| `- error: cannot find type 'LayoutPriority' in scope
132 | Constraints.add(item: item, attribute: attribute, relatedBy: .greaterThanOrEqual, constant: constant, priority: priority)
133 | }
/host/spi-builder-workspace/Sources/Anchor.swift:135:123: error: cannot find type 'NSLayoutConstraint' in scope
133 | }
134 |
135 | @inlinable @discardableResult consuming func lessThanOrEqual(_ constant: CGFloat, priority: LayoutPriority? = nil) -> NSLayoutConstraint {
| `- error: cannot find type 'NSLayoutConstraint' in scope
136 | Constraints.add(item: item, attribute: attribute, relatedBy: .lessThanOrEqual, constant: constant, priority: priority)
137 | }
/host/spi-builder-workspace/Sources/Anchor.swift:135:78: error: cannot find type 'CGFloat' in scope
133 | }
134 |
135 | @inlinable @discardableResult consuming func lessThanOrEqual(_ constant: CGFloat, priority: LayoutPriority? = nil) -> NSLayoutConstraint {
| `- error: cannot find type 'CGFloat' in scope
136 | Constraints.add(item: item, attribute: attribute, relatedBy: .lessThanOrEqual, constant: constant, priority: priority)
137 | }
/host/spi-builder-workspace/Sources/Anchor.swift:135:97: error: cannot find type 'LayoutPriority' in scope
133 | }
134 |
135 | @inlinable @discardableResult consuming func lessThanOrEqual(_ constant: CGFloat, priority: LayoutPriority? = nil) -> NSLayoutConstraint {
| `- error: cannot find type 'LayoutPriority' in scope
136 | Constraints.add(item: item, attribute: attribute, relatedBy: .lessThanOrEqual, constant: constant, priority: priority)
137 | }
/host/spi-builder-workspace/Sources/Anchor.swift:140:126: error: cannot find type 'NSLayoutConstraint' in scope
138 |
139 | /// Clamps the dimension of a view to the given limiting range.
140 | @inlinable @discardableResult consuming func clamp(to limits: ClosedRange<CGFloat>, priority: LayoutPriority? = nil) -> [NSLayoutConstraint] {
| `- error: cannot find type 'NSLayoutConstraint' in scope
141 | [(copy self).greaterThanOrEqual(limits.lowerBound, priority: priority), lessThanOrEqual(limits.upperBound, priority: priority)]
142 | }
/host/spi-builder-workspace/Sources/Anchor.swift:140:79: error: cannot find type 'CGFloat' in scope
138 |
139 | /// Clamps the dimension of a view to the given limiting range.
140 | @inlinable @discardableResult consuming func clamp(to limits: ClosedRange<CGFloat>, priority: LayoutPriority? = nil) -> [NSLayoutConstraint] {
| `- error: cannot find type 'CGFloat' in scope
141 | [(copy self).greaterThanOrEqual(limits.lowerBound, priority: priority), lessThanOrEqual(limits.upperBound, priority: priority)]
142 | }
/host/spi-builder-workspace/Sources/Anchor.swift:140:99: error: cannot find type 'LayoutPriority' in scope
138 |
139 | /// Clamps the dimension of a view to the given limiting range.
140 | @inlinable @discardableResult consuming func clamp(to limits: ClosedRange<CGFloat>, priority: LayoutPriority? = nil) -> [NSLayoutConstraint] {
| `- error: cannot find type 'LayoutPriority' in scope
141 | [(copy self).greaterThanOrEqual(limits.lowerBound, priority: priority), lessThanOrEqual(limits.upperBound, priority: priority)]
142 | }
/host/spi-builder-workspace/Sources/Anchor.swift:154:191: error: cannot find type 'NSLayoutConstraint' in scope
152 | @MainActor public extension Anchor where Type == AnchorType.Edge {
153 | /// Pins the edge to the respected edges of the given container.
154 | @inlinable @discardableResult consuming func pin(to container: LayoutItem? = nil, inset: CGFloat = 0, relation: NSLayoutConstraint.Relation = .equal, priority: LayoutPriority? = nil) -> NSLayoutConstraint {
| `- error: cannot find type 'NSLayoutConstraint' in scope
155 | let isInverted: Bool = switch attribute {
156 | case .trailing, .right, .bottom: true
/host/spi-builder-workspace/Sources/Anchor.swift:154:94: error: cannot find type 'CGFloat' in scope
152 | @MainActor public extension Anchor where Type == AnchorType.Edge {
153 | /// Pins the edge to the respected edges of the given container.
154 | @inlinable @discardableResult consuming func pin(to container: LayoutItem? = nil, inset: CGFloat = 0, relation: NSLayoutConstraint.Relation = .equal, priority: LayoutPriority? = nil) -> NSLayoutConstraint {
| `- error: cannot find type 'CGFloat' in scope
155 | let isInverted: Bool = switch attribute {
156 | case .trailing, .right, .bottom: true
/host/spi-builder-workspace/Sources/Anchor.swift:154:117: error: cannot find type 'NSLayoutConstraint' in scope
152 | @MainActor public extension Anchor where Type == AnchorType.Edge {
153 | /// Pins the edge to the respected edges of the given container.
154 | @inlinable @discardableResult consuming func pin(to container: LayoutItem? = nil, inset: CGFloat = 0, relation: NSLayoutConstraint.Relation = .equal, priority: LayoutPriority? = nil) -> NSLayoutConstraint {
| `- error: cannot find type 'NSLayoutConstraint' in scope
155 | let isInverted: Bool = switch attribute {
156 | case .trailing, .right, .bottom: true
/host/spi-builder-workspace/Sources/Anchor.swift:154:165: error: cannot find type 'LayoutPriority' in scope
152 | @MainActor public extension Anchor where Type == AnchorType.Edge {
153 | /// Pins the edge to the respected edges of the given container.
154 | @inlinable @discardableResult consuming func pin(to container: LayoutItem? = nil, inset: CGFloat = 0, relation: NSLayoutConstraint.Relation = .equal, priority: LayoutPriority? = nil) -> NSLayoutConstraint {
| `- error: cannot find type 'LayoutPriority' in scope
155 | let isInverted: Bool = switch attribute {
156 | case .trailing, .right, .bottom: true
/host/spi-builder-workspace/Sources/Anchor.swift:164:214: error: cannot find type 'NSLayoutConstraint' in scope
162 |
163 | /// Adds spacing between the current anchors.
164 | @inlinable @discardableResult consuming func spacing(_ spacing: CGFloat, to anchor: consuming Anchor<AnchorType.Edge, Axis>, relation: NSLayoutConstraint.Relation = .equal, priority: LayoutPriority? = nil) -> NSLayoutConstraint {
| `- error: cannot find type 'NSLayoutConstraint' in scope
165 | let isInverted = (attribute == .bottom && anchor.attribute == .top) ||
166 | (attribute == .right && anchor.attribute == .left) ||
/host/spi-builder-workspace/Sources/Anchor.swift:164:69: error: cannot find type 'CGFloat' in scope
162 |
163 | /// Adds spacing between the current anchors.
164 | @inlinable @discardableResult consuming func spacing(_ spacing: CGFloat, to anchor: consuming Anchor<AnchorType.Edge, Axis>, relation: NSLayoutConstraint.Relation = .equal, priority: LayoutPriority? = nil) -> NSLayoutConstraint {
| `- error: cannot find type 'CGFloat' in scope
165 | let isInverted = (attribute == .bottom && anchor.attribute == .top) ||
166 | (attribute == .right && anchor.attribute == .left) ||
/host/spi-builder-workspace/Sources/Anchor.swift:164:140: error: cannot find type 'NSLayoutConstraint' in scope
162 |
163 | /// Adds spacing between the current anchors.
164 | @inlinable @discardableResult consuming func spacing(_ spacing: CGFloat, to anchor: consuming Anchor<AnchorType.Edge, Axis>, relation: NSLayoutConstraint.Relation = .equal, priority: LayoutPriority? = nil) -> NSLayoutConstraint {
| `- error: cannot find type 'NSLayoutConstraint' in scope
165 | let isInverted = (attribute == .bottom && anchor.attribute == .top) ||
166 | (attribute == .right && anchor.attribute == .left) ||
/host/spi-builder-workspace/Sources/Anchor.swift:164:188: error: cannot find type 'LayoutPriority' in scope
162 |
163 | /// Adds spacing between the current anchors.
164 | @inlinable @discardableResult consuming func spacing(_ spacing: CGFloat, to anchor: consuming Anchor<AnchorType.Edge, Axis>, relation: NSLayoutConstraint.Relation = .equal, priority: LayoutPriority? = nil) -> NSLayoutConstraint {
| `- error: cannot find type 'LayoutPriority' in scope
165 | let isInverted = (attribute == .bottom && anchor.attribute == .top) ||
166 | (attribute == .right && anchor.attribute == .left) ||
/host/spi-builder-workspace/Sources/Anchor.swift:176:113: error: cannot find type 'NSLayoutConstraint' in scope
174 | @MainActor public extension Anchor where Type == AnchorType.Center {
175 | /// Aligns the axis with a superview axis.
176 | @inlinable @discardableResult consuming func align(offset: CGFloat = 0, priority: LayoutPriority? = nil) -> NSLayoutConstraint {
| `- error: cannot find type 'NSLayoutConstraint' in scope
177 | Constraints.add(self, toItem: item._requireSuperview(), attribute: attribute, constant: offset, priority: priority)
178 | }
/host/spi-builder-workspace/Sources/Anchor.swift:176:64: error: cannot find type 'CGFloat' in scope
174 | @MainActor public extension Anchor where Type == AnchorType.Center {
175 | /// Aligns the axis with a superview axis.
176 | @inlinable @discardableResult consuming func align(offset: CGFloat = 0, priority: LayoutPriority? = nil) -> NSLayoutConstraint {
| `- error: cannot find type 'CGFloat' in scope
177 | Constraints.add(self, toItem: item._requireSuperview(), attribute: attribute, constant: offset, priority: priority)
178 | }
/host/spi-builder-workspace/Sources/Anchor.swift:176:87: error: cannot find type 'LayoutPriority' in scope
174 | @MainActor public extension Anchor where Type == AnchorType.Center {
175 | /// Aligns the axis with a superview axis.
176 | @inlinable @discardableResult consuming func align(offset: CGFloat = 0, priority: LayoutPriority? = nil) -> NSLayoutConstraint {
| `- error: cannot find type 'LayoutPriority' in scope
177 | Constraints.add(self, toItem: item._requireSuperview(), attribute: attribute, constant: offset, priority: priority)
178 | }
/host/spi-builder-workspace/Sources/Anchor.swift:165:41: error: cannot infer contextual base in reference to member 'bottom'
163 | /// Adds spacing between the current anchors.
164 | @inlinable @discardableResult consuming func spacing(_ spacing: CGFloat, to anchor: consuming Anchor<AnchorType.Edge, Axis>, relation: NSLayoutConstraint.Relation = .equal, priority: LayoutPriority? = nil) -> NSLayoutConstraint {
165 | let isInverted = (attribute == .bottom && anchor.attribute == .top) ||
| `- error: cannot infer contextual base in reference to member 'bottom'
166 | (attribute == .right && anchor.attribute == .left) ||
167 | (attribute == .trailing && anchor.attribute == .leading)
/host/spi-builder-workspace/Sources/Anchor.swift:165:72: error: cannot infer contextual base in reference to member 'top'
163 | /// Adds spacing between the current anchors.
164 | @inlinable @discardableResult consuming func spacing(_ spacing: CGFloat, to anchor: consuming Anchor<AnchorType.Edge, Axis>, relation: NSLayoutConstraint.Relation = .equal, priority: LayoutPriority? = nil) -> NSLayoutConstraint {
165 | let isInverted = (attribute == .bottom && anchor.attribute == .top) ||
| `- error: cannot infer contextual base in reference to member 'top'
166 | (attribute == .right && anchor.attribute == .left) ||
167 | (attribute == .trailing && anchor.attribute == .leading)
/host/spi-builder-workspace/Sources/Anchor.swift:167:24: error: cannot infer contextual base in reference to member 'trailing'
165 | let isInverted = (attribute == .bottom && anchor.attribute == .top) ||
166 | (attribute == .right && anchor.attribute == .left) ||
167 | (attribute == .trailing && anchor.attribute == .leading)
| `- error: cannot infer contextual base in reference to member 'trailing'
168 | return Constraints.add(self, anchor, constant: isInverted ? -spacing : spacing, relation: isInverted ? relation.inverted : relation, priority: priority)
169 | }
/host/spi-builder-workspace/Sources/Anchor.swift:167:57: error: cannot infer contextual base in reference to member 'leading'
165 | let isInverted = (attribute == .bottom && anchor.attribute == .top) ||
166 | (attribute == .right && anchor.attribute == .left) ||
167 | (attribute == .trailing && anchor.attribute == .leading)
| `- error: cannot infer contextual base in reference to member 'leading'
168 | return Constraints.add(self, anchor, constant: isInverted ? -spacing : spacing, relation: isInverted ? relation.inverted : relation, priority: priority)
169 | }
[9/11] Compiling Align AnchorCollectionEdges.swift
/host/spi-builder-workspace/Sources/LayoutItem.swift:16:33: error: cannot find type 'NSView' in scope
14 | @_spi(Align) var superview: UIView? { get }
15 | #else
16 | @_spi(Align) var superview: NSView? { get }
| `- error: cannot find type 'NSView' in scope
17 | #endif
18 |
/host/spi-builder-workspace/Sources/AnchorCollectionEdges.swift:29:29: error: cannot find type 'NSLayoutConstraint' in scope
27 | public typealias Axis = NSLayoutConstraint.Axis
28 | #else
29 | public typealias Axis = NSLayoutConstraint.Orientation
| `- error: cannot find type 'NSLayoutConstraint' in scope
30 | #endif
31 |
/host/spi-builder-workspace/Sources/AnchorCollectionEdges.swift:35:139: error: cannot find type 'NSLayoutConstraint' in scope
33 |
34 | @available(*, deprecated, message: "Use pin(to:insets:priority:) instead")
35 | @inlinable @discardableResult public func equal(_ item2: LayoutItem, insets: EdgeInsets = .zero, priority: LayoutPriority? = nil) -> [NSLayoutConstraint] {
| `- error: cannot find type 'NSLayoutConstraint' in scope
36 | pin(to: item2, insets: insets, priority: priority)
37 | }
/host/spi-builder-workspace/Sources/AnchorCollectionEdges.swift:35:82: error: cannot find type 'EdgeInsets' in scope
33 |
34 | @available(*, deprecated, message: "Use pin(to:insets:priority:) instead")
35 | @inlinable @discardableResult public func equal(_ item2: LayoutItem, insets: EdgeInsets = .zero, priority: LayoutPriority? = nil) -> [NSLayoutConstraint] {
| `- error: cannot find type 'EdgeInsets' in scope
36 | pin(to: item2, insets: insets, priority: priority)
37 | }
/host/spi-builder-workspace/Sources/AnchorCollectionEdges.swift:35:112: error: cannot find type 'LayoutPriority' in scope
33 |
34 | @available(*, deprecated, message: "Use pin(to:insets:priority:) instead")
35 | @inlinable @discardableResult public func equal(_ item2: LayoutItem, insets: EdgeInsets = .zero, priority: LayoutPriority? = nil) -> [NSLayoutConstraint] {
| `- error: cannot find type 'LayoutPriority' in scope
36 | pin(to: item2, insets: insets, priority: priority)
37 | }
/host/spi-builder-workspace/Sources/AnchorCollectionEdges.swift:40:149: error: cannot find type 'NSLayoutConstraint' in scope
38 |
39 | @available(*, deprecated, message: "Use pin(to:insets:alignment:priority:) with alignment .center instead")
40 | @inlinable @discardableResult public func lessThanOrEqual(_ item2: LayoutItem, insets: EdgeInsets = .zero, priority: LayoutPriority? = nil) -> [NSLayoutConstraint] {
| `- error: cannot find type 'NSLayoutConstraint' in scope
41 | _pin(to: item2, insets: insets, axis: nil, alignment: .center, isCenteringEnabled: false, priority: priority)
42 | }
/host/spi-builder-workspace/Sources/AnchorCollectionEdges.swift:40:92: error: cannot find type 'EdgeInsets' in scope
38 |
39 | @available(*, deprecated, message: "Use pin(to:insets:alignment:priority:) with alignment .center instead")
40 | @inlinable @discardableResult public func lessThanOrEqual(_ item2: LayoutItem, insets: EdgeInsets = .zero, priority: LayoutPriority? = nil) -> [NSLayoutConstraint] {
| `- error: cannot find type 'EdgeInsets' in scope
41 | _pin(to: item2, insets: insets, axis: nil, alignment: .center, isCenteringEnabled: false, priority: priority)
42 | }
/host/spi-builder-workspace/Sources/AnchorCollectionEdges.swift:40:122: error: cannot find type 'LayoutPriority' in scope
38 |
39 | @available(*, deprecated, message: "Use pin(to:insets:alignment:priority:) with alignment .center instead")
40 | @inlinable @discardableResult public func lessThanOrEqual(_ item2: LayoutItem, insets: EdgeInsets = .zero, priority: LayoutPriority? = nil) -> [NSLayoutConstraint] {
| `- error: cannot find type 'LayoutPriority' in scope
41 | _pin(to: item2, insets: insets, axis: nil, alignment: .center, isCenteringEnabled: false, priority: priority)
42 | }
/host/spi-builder-workspace/Sources/AnchorCollectionEdges.swift:45:128: error: cannot find type 'NSLayoutConstraint' in scope
43 |
44 | @available(*, deprecated, message: "Use pin(to:insets:priority:) instead")
45 | @inlinable @discardableResult public func equal(_ item2: LayoutItem, insets: CGFloat, priority: LayoutPriority? = nil) -> [NSLayoutConstraint] {
| `- error: cannot find type 'NSLayoutConstraint' in scope
46 | pin(to: item2, insets: EdgeInsets(top: insets, left: insets, bottom: insets, right: insets), priority: priority)
47 | }
/host/spi-builder-workspace/Sources/AnchorCollectionEdges.swift:45:82: error: cannot find type 'CGFloat' in scope
43 |
44 | @available(*, deprecated, message: "Use pin(to:insets:priority:) instead")
45 | @inlinable @discardableResult public func equal(_ item2: LayoutItem, insets: CGFloat, priority: LayoutPriority? = nil) -> [NSLayoutConstraint] {
| `- error: cannot find type 'CGFloat' in scope
46 | pin(to: item2, insets: EdgeInsets(top: insets, left: insets, bottom: insets, right: insets), priority: priority)
47 | }
/host/spi-builder-workspace/Sources/AnchorCollectionEdges.swift:45:101: error: cannot find type 'LayoutPriority' in scope
43 |
44 | @available(*, deprecated, message: "Use pin(to:insets:priority:) instead")
45 | @inlinable @discardableResult public func equal(_ item2: LayoutItem, insets: CGFloat, priority: LayoutPriority? = nil) -> [NSLayoutConstraint] {
| `- error: cannot find type 'LayoutPriority' in scope
46 | pin(to: item2, insets: EdgeInsets(top: insets, left: insets, bottom: insets, right: insets), priority: priority)
47 | }
/host/spi-builder-workspace/Sources/AnchorCollectionEdges.swift:50:138: error: cannot find type 'NSLayoutConstraint' in scope
48 |
49 | @available(*, deprecated, message: "Use pin(to:insets:alignment:priority:) with alignment .center instead")
50 | @inlinable @discardableResult public func lessThanOrEqual(_ item2: LayoutItem, insets: CGFloat, priority: LayoutPriority? = nil) -> [NSLayoutConstraint] {
| `- error: cannot find type 'NSLayoutConstraint' in scope
51 | _pin(to: item2, insets: EdgeInsets(top: insets, left: insets, bottom: insets, right: insets), axis: nil, alignment: .center, isCenteringEnabled: false, priority: priority)
52 | }
/host/spi-builder-workspace/Sources/AnchorCollectionEdges.swift:50:92: error: cannot find type 'CGFloat' in scope
48 |
49 | @available(*, deprecated, message: "Use pin(to:insets:alignment:priority:) with alignment .center instead")
50 | @inlinable @discardableResult public func lessThanOrEqual(_ item2: LayoutItem, insets: CGFloat, priority: LayoutPriority? = nil) -> [NSLayoutConstraint] {
| `- error: cannot find type 'CGFloat' in scope
51 | _pin(to: item2, insets: EdgeInsets(top: insets, left: insets, bottom: insets, right: insets), axis: nil, alignment: .center, isCenteringEnabled: false, priority: priority)
52 | }
/host/spi-builder-workspace/Sources/AnchorCollectionEdges.swift:50:111: error: cannot find type 'LayoutPriority' in scope
48 |
49 | @available(*, deprecated, message: "Use pin(to:insets:alignment:priority:) with alignment .center instead")
50 | @inlinable @discardableResult public func lessThanOrEqual(_ item2: LayoutItem, insets: CGFloat, priority: LayoutPriority? = nil) -> [NSLayoutConstraint] {
| `- error: cannot find type 'LayoutPriority' in scope
51 | _pin(to: item2, insets: EdgeInsets(top: insets, left: insets, bottom: insets, right: insets), axis: nil, alignment: .center, isCenteringEnabled: false, priority: priority)
52 | }
/host/spi-builder-workspace/Sources/AnchorCollectionEdges.swift:68:183: error: cannot find type 'NSLayoutConstraint' in scope
66 | /// - parameter priority: The priority of the created constraints. Uses the
67 | /// system's default priority when `nil`.
68 | @inlinable @discardableResult public func pin(to item2: LayoutItem? = nil, insets: CGFloat, axis: Axis? = nil, alignment: Alignment = .fill, priority: LayoutPriority? = nil) -> [NSLayoutConstraint] {
| `- error: cannot find type 'NSLayoutConstraint' in scope
69 | pin(to: item2, insets: EdgeInsets(top: insets, left: insets, bottom: insets, right: insets), axis: axis, alignment: alignment, priority: priority)
70 | }
/host/spi-builder-workspace/Sources/AnchorCollectionEdges.swift:68:88: error: cannot find type 'CGFloat' in scope
66 | /// - parameter priority: The priority of the created constraints. Uses the
67 | /// system's default priority when `nil`.
68 | @inlinable @discardableResult public func pin(to item2: LayoutItem? = nil, insets: CGFloat, axis: Axis? = nil, alignment: Alignment = .fill, priority: LayoutPriority? = nil) -> [NSLayoutConstraint] {
| `- error: cannot find type 'CGFloat' in scope
69 | pin(to: item2, insets: EdgeInsets(top: insets, left: insets, bottom: insets, right: insets), axis: axis, alignment: alignment, priority: priority)
70 | }
/host/spi-builder-workspace/Sources/AnchorCollectionEdges.swift:68:156: error: cannot find type 'LayoutPriority' in scope
66 | /// - parameter priority: The priority of the created constraints. Uses the
67 | /// system's default priority when `nil`.
68 | @inlinable @discardableResult public func pin(to item2: LayoutItem? = nil, insets: CGFloat, axis: Axis? = nil, alignment: Alignment = .fill, priority: LayoutPriority? = nil) -> [NSLayoutConstraint] {
| `- error: cannot find type 'LayoutPriority' in scope
69 | pin(to: item2, insets: EdgeInsets(top: insets, left: insets, bottom: insets, right: insets), axis: axis, alignment: alignment, priority: priority)
70 | }
/host/spi-builder-workspace/Sources/AnchorCollectionEdges.swift:84:194: error: cannot find type 'NSLayoutConstraint' in scope
82 | /// - parameter priority: The priority of the created constraints. Uses the
83 | /// system's default priority when `nil`.
84 | @inlinable @discardableResult public func pin(to item2: LayoutItem? = nil, insets: EdgeInsets = .zero, axis: Axis? = nil, alignment: Alignment = .fill, priority: LayoutPriority? = nil) -> [NSLayoutConstraint] {
| `- error: cannot find type 'NSLayoutConstraint' in scope
85 | _pin(to: item2, insets: insets, axis: axis, alignment: alignment, isCenteringEnabled: true, priority: priority)
86 | }
/host/spi-builder-workspace/Sources/AnchorCollectionEdges.swift:84:88: error: cannot find type 'EdgeInsets' in scope
82 | /// - parameter priority: The priority of the created constraints. Uses the
83 | /// system's default priority when `nil`.
84 | @inlinable @discardableResult public func pin(to item2: LayoutItem? = nil, insets: EdgeInsets = .zero, axis: Axis? = nil, alignment: Alignment = .fill, priority: LayoutPriority? = nil) -> [NSLayoutConstraint] {
| `- error: cannot find type 'EdgeInsets' in scope
85 | _pin(to: item2, insets: insets, axis: axis, alignment: alignment, isCenteringEnabled: true, priority: priority)
86 | }
/host/spi-builder-workspace/Sources/AnchorCollectionEdges.swift:84:167: error: cannot find type 'LayoutPriority' in scope
82 | /// - parameter priority: The priority of the created constraints. Uses the
83 | /// system's default priority when `nil`.
84 | @inlinable @discardableResult public func pin(to item2: LayoutItem? = nil, insets: EdgeInsets = .zero, axis: Axis? = nil, alignment: Alignment = .fill, priority: LayoutPriority? = nil) -> [NSLayoutConstraint] {
| `- error: cannot find type 'LayoutPriority' in scope
85 | _pin(to: item2, insets: insets, axis: axis, alignment: alignment, isCenteringEnabled: true, priority: priority)
86 | }
/host/spi-builder-workspace/Sources/AnchorCollectionEdges.swift:88:174: error: cannot find type 'NSLayoutConstraint' in scope
86 | }
87 |
88 | @usableFromInline func _pin(to item2: LayoutItem?, insets: EdgeInsets, axis: Axis?, alignment: Alignment, isCenteringEnabled: Bool, priority: LayoutPriority? = nil) -> [NSLayoutConstraint] {
| `- error: cannot find type 'NSLayoutConstraint' in scope
89 | let item2 = item2 ?? item._requireSuperview()
90 | item._disableAutoresizingMask()
/host/spi-builder-workspace/Sources/AnchorCollectionEdges.swift:88:64: error: cannot find type 'EdgeInsets' in scope
86 | }
87 |
88 | @usableFromInline func _pin(to item2: LayoutItem?, insets: EdgeInsets, axis: Axis?, alignment: Alignment, isCenteringEnabled: Bool, priority: LayoutPriority? = nil) -> [NSLayoutConstraint] {
| `- error: cannot find type 'EdgeInsets' in scope
89 | let item2 = item2 ?? item._requireSuperview()
90 | item._disableAutoresizingMask()
/host/spi-builder-workspace/Sources/AnchorCollectionEdges.swift:88:147: error: cannot find type 'LayoutPriority' in scope
86 | }
87 |
88 | @usableFromInline func _pin(to item2: LayoutItem?, insets: EdgeInsets, axis: Axis?, alignment: Alignment, isCenteringEnabled: Bool, priority: LayoutPriority? = nil) -> [NSLayoutConstraint] {
| `- error: cannot find type 'LayoutPriority' in scope
89 | let item2 = item2 ?? item._requireSuperview()
90 | item._disableAutoresizingMask()
/host/spi-builder-workspace/Sources/AnchorCollectionEdges.swift:91:19: error: cannot find type 'NSLayoutConstraint' in scope
89 | let item2 = item2 ?? item._requireSuperview()
90 | item._disableAutoresizingMask()
91 | let left: NSLayoutConstraint.Attribute = isAbsolute ? .left : .leading
| `- error: cannot find type 'NSLayoutConstraint' in scope
92 | let right: NSLayoutConstraint.Attribute = isAbsolute ? .right : .trailing
93 | var constraints = [NSLayoutConstraint]()
/host/spi-builder-workspace/Sources/AnchorCollectionEdges.swift:92:20: error: cannot find type 'NSLayoutConstraint' in scope
90 | item._disableAutoresizingMask()
91 | let left: NSLayoutConstraint.Attribute = isAbsolute ? .left : .leading
92 | let right: NSLayoutConstraint.Attribute = isAbsolute ? .right : .trailing
| `- error: cannot find type 'NSLayoutConstraint' in scope
93 | var constraints = [NSLayoutConstraint]()
94 |
/host/spi-builder-workspace/Sources/AnchorCollectionEdges.swift:93:28: error: cannot find 'NSLayoutConstraint' in scope
91 | let left: NSLayoutConstraint.Attribute = isAbsolute ? .left : .leading
92 | let right: NSLayoutConstraint.Attribute = isAbsolute ? .right : .trailing
93 | var constraints = [NSLayoutConstraint]()
| `- error: cannot find 'NSLayoutConstraint' in scope
94 |
95 | func constrain(attribute: NSLayoutConstraint.Attribute, relation: NSLayoutConstraint.Relation, constant: CGFloat) {
/host/spi-builder-workspace/Sources/AnchorCollectionEdges.swift:93:27: error: cannot call value of non-function type '[Any]'
91 | let left: NSLayoutConstraint.Attribute = isAbsolute ? .left : .leading
92 | let right: NSLayoutConstraint.Attribute = isAbsolute ? .right : .trailing
93 | var constraints = [NSLayoutConstraint]()
| `- error: cannot call value of non-function type '[Any]'
94 |
95 | func constrain(attribute: NSLayoutConstraint.Attribute, relation: NSLayoutConstraint.Relation, constant: CGFloat) {
/host/spi-builder-workspace/Sources/AnchorCollectionEdges.swift:95:35: error: cannot find type 'NSLayoutConstraint' in scope
93 | var constraints = [NSLayoutConstraint]()
94 |
95 | func constrain(attribute: NSLayoutConstraint.Attribute, relation: NSLayoutConstraint.Relation, constant: CGFloat) {
| `- error: cannot find type 'NSLayoutConstraint' in scope
96 | let constraint = NSLayoutConstraint(item: item, attribute: attribute, relatedBy: relation, toItem: item2, attribute: attribute, multiplier: 1, constant: constant)
97 | Constraints.install(constraint, priority: priority)
/host/spi-builder-workspace/Sources/AnchorCollectionEdges.swift:95:75: error: cannot find type 'NSLayoutConstraint' in scope
93 | var constraints = [NSLayoutConstraint]()
94 |
95 | func constrain(attribute: NSLayoutConstraint.Attribute, relation: NSLayoutConstraint.Relation, constant: CGFloat) {
| `- error: cannot find type 'NSLayoutConstraint' in scope
96 | let constraint = NSLayoutConstraint(item: item, attribute: attribute, relatedBy: relation, toItem: item2, attribute: attribute, multiplier: 1, constant: constant)
97 | Constraints.install(constraint, priority: priority)
/host/spi-builder-workspace/Sources/AnchorCollectionEdges.swift:95:114: error: cannot find type 'CGFloat' in scope
93 | var constraints = [NSLayoutConstraint]()
94 |
95 | func constrain(attribute: NSLayoutConstraint.Attribute, relation: NSLayoutConstraint.Relation, constant: CGFloat) {
| `- error: cannot find type 'CGFloat' in scope
96 | let constraint = NSLayoutConstraint(item: item, attribute: attribute, relatedBy: relation, toItem: item2, attribute: attribute, multiplier: 1, constant: constant)
97 | Constraints.install(constraint, priority: priority)
/host/spi-builder-workspace/Sources/AnchorCollectionEdges.swift:96:30: error: cannot find 'NSLayoutConstraint' in scope
94 |
95 | func constrain(attribute: NSLayoutConstraint.Attribute, relation: NSLayoutConstraint.Relation, constant: CGFloat) {
96 | let constraint = NSLayoutConstraint(item: item, attribute: attribute, relatedBy: relation, toItem: item2, attribute: attribute, multiplier: 1, constant: constant)
| `- error: cannot find 'NSLayoutConstraint' in scope
97 | Constraints.install(constraint, priority: priority)
98 | constraints.append(constraint)
/host/spi-builder-workspace/Sources/Constraints.swift:106:68: error: cannot find type 'NSLayoutConstraint' in scope
104 | @MainActor static var stack: [[NSLayoutConstraint]] = [] // this is what enables constraint auto-installing
105 |
106 | @MainActor @usableFromInline static func install(_ constraint: NSLayoutConstraint, priority: LayoutPriority? = nil) {
| `- error: cannot find type 'NSLayoutConstraint' in scope
107 | if let priority { constraint.priority = priority }
108 | if !stack.isEmpty {
/host/spi-builder-workspace/Sources/Constraints.swift:106:98: error: cannot find type 'LayoutPriority' in scope
104 | @MainActor static var stack: [[NSLayoutConstraint]] = [] // this is what enables constraint auto-installing
105 |
106 | @MainActor @usableFromInline static func install(_ constraint: NSLayoutConstraint, priority: LayoutPriority? = nil) {
| `- error: cannot find type 'LayoutPriority' in scope
107 | if let priority { constraint.priority = priority }
108 | if !stack.isEmpty {
/host/spi-builder-workspace/Sources/AnchorCollectionEdges.swift:102:119: error: cannot infer contextual base in reference to member 'equal'
100 |
101 | if axis == nil || axis == .horizontal {
102 | constrain(attribute: left, relation: alignment.horizontal == .fill || alignment.horizontal == .leading ? .equal : .greaterThanOrEqual, constant: insets.left)
| `- error: cannot infer contextual base in reference to member 'equal'
103 | constrain(attribute: right, relation: alignment.horizontal == .fill || alignment.horizontal == .trailing ? .equal : .lessThanOrEqual, constant: -insets.right)
104 | if alignment.horizontal == .center && isCenteringEnabled {
/host/spi-builder-workspace/Sources/Anchor.swift:82:96: error: cannot find type 'CGFloat' in scope
80 |
81 | /// Returns a new anchor offset by a given amount.
82 | @MainActor @inlinable public func - <Type, Axis>(anchor: consuming Anchor<Type, Axis>, offset: CGFloat) -> Anchor<Type, Axis> {
| `- error: cannot find type 'CGFloat' in scope
83 | anchor.offsetting(by: -offset)
84 | }
/host/spi-builder-workspace/Sources/AnchorCollectionEdges.swift:103:121: error: cannot infer contextual base in reference to member 'equal'
101 | if axis == nil || axis == .horizontal {
102 | constrain(attribute: left, relation: alignment.horizontal == .fill || alignment.horizontal == .leading ? .equal : .greaterThanOrEqual, constant: insets.left)
103 | constrain(attribute: right, relation: alignment.horizontal == .fill || alignment.horizontal == .trailing ? .equal : .lessThanOrEqual, constant: -insets.right)
| `- error: cannot infer contextual base in reference to member 'equal'
104 | if alignment.horizontal == .center && isCenteringEnabled {
105 | constrain(attribute: .centerX, relation: .equal, constant: 0)
/host/spi-builder-workspace/Sources/AnchorCollectionEdges.swift:105:39: error: cannot infer contextual base in reference to member 'centerX'
103 | constrain(attribute: right, relation: alignment.horizontal == .fill || alignment.horizontal == .trailing ? .equal : .lessThanOrEqual, constant: -insets.right)
104 | if alignment.horizontal == .center && isCenteringEnabled {
105 | constrain(attribute: .centerX, relation: .equal, constant: 0)
| `- error: cannot infer contextual base in reference to member 'centerX'
106 | }
107 | }
/host/spi-builder-workspace/Sources/AnchorCollectionEdges.swift:105:59: error: cannot infer contextual base in reference to member 'equal'
103 | constrain(attribute: right, relation: alignment.horizontal == .fill || alignment.horizontal == .trailing ? .equal : .lessThanOrEqual, constant: -insets.right)
104 | if alignment.horizontal == .center && isCenteringEnabled {
105 | constrain(attribute: .centerX, relation: .equal, constant: 0)
| `- error: cannot infer contextual base in reference to member 'equal'
106 | }
107 | }
/host/spi-builder-workspace/Sources/AnchorCollectionEdges.swift:109:35: error: cannot infer contextual base in reference to member 'top'
107 | }
108 | if axis == nil || axis == .vertical {
109 | constrain(attribute: .top, relation: alignment.vertical == .fill || alignment.vertical == .top ? .equal : .greaterThanOrEqual, constant: insets.top)
| `- error: cannot infer contextual base in reference to member 'top'
110 | constrain(attribute: .bottom, relation: alignment.vertical == .fill || alignment.vertical == .bottom ? .equal : .lessThanOrEqual, constant: -insets.bottom)
111 | if alignment.vertical == .center && isCenteringEnabled {
/host/spi-builder-workspace/Sources/AnchorCollectionEdges.swift:109:111: error: cannot infer contextual base in reference to member 'equal'
107 | }
108 | if axis == nil || axis == .vertical {
109 | constrain(attribute: .top, relation: alignment.vertical == .fill || alignment.vertical == .top ? .equal : .greaterThanOrEqual, constant: insets.top)
| `- error: cannot infer contextual base in reference to member 'equal'
110 | constrain(attribute: .bottom, relation: alignment.vertical == .fill || alignment.vertical == .bottom ? .equal : .lessThanOrEqual, constant: -insets.bottom)
111 | if alignment.vertical == .center && isCenteringEnabled {
/host/spi-builder-workspace/Sources/AnchorCollectionEdges.swift:110:35: error: cannot infer contextual base in reference to member 'bottom'
108 | if axis == nil || axis == .vertical {
109 | constrain(attribute: .top, relation: alignment.vertical == .fill || alignment.vertical == .top ? .equal : .greaterThanOrEqual, constant: insets.top)
110 | constrain(attribute: .bottom, relation: alignment.vertical == .fill || alignment.vertical == .bottom ? .equal : .lessThanOrEqual, constant: -insets.bottom)
| `- error: cannot infer contextual base in reference to member 'bottom'
111 | if alignment.vertical == .center && isCenteringEnabled {
112 | constrain(attribute: .centerY, relation: .equal, constant: 0)
/host/spi-builder-workspace/Sources/AnchorCollectionEdges.swift:110:117: error: cannot infer contextual base in reference to member 'equal'
108 | if axis == nil || axis == .vertical {
109 | constrain(attribute: .top, relation: alignment.vertical == .fill || alignment.vertical == .top ? .equal : .greaterThanOrEqual, constant: insets.top)
110 | constrain(attribute: .bottom, relation: alignment.vertical == .fill || alignment.vertical == .bottom ? .equal : .lessThanOrEqual, constant: -insets.bottom)
| `- error: cannot infer contextual base in reference to member 'equal'
111 | if alignment.vertical == .center && isCenteringEnabled {
112 | constrain(attribute: .centerY, relation: .equal, constant: 0)
/host/spi-builder-workspace/Sources/AnchorCollectionEdges.swift:112:39: error: cannot infer contextual base in reference to member 'centerY'
110 | constrain(attribute: .bottom, relation: alignment.vertical == .fill || alignment.vertical == .bottom ? .equal : .lessThanOrEqual, constant: -insets.bottom)
111 | if alignment.vertical == .center && isCenteringEnabled {
112 | constrain(attribute: .centerY, relation: .equal, constant: 0)
| `- error: cannot infer contextual base in reference to member 'centerY'
113 | }
114 | }
/host/spi-builder-workspace/Sources/AnchorCollectionEdges.swift:112:59: error: cannot infer contextual base in reference to member 'equal'
110 | constrain(attribute: .bottom, relation: alignment.vertical == .fill || alignment.vertical == .bottom ? .equal : .lessThanOrEqual, constant: -insets.bottom)
111 | if alignment.vertical == .center && isCenteringEnabled {
112 | constrain(attribute: .centerY, relation: .equal, constant: 0)
| `- error: cannot infer contextual base in reference to member 'equal'
113 | }
114 | }
[10/11] Compiling Align LayoutItem.swift
/host/spi-builder-workspace/Sources/LayoutItem.swift:16:33: error: cannot find type 'NSView' in scope
14 | @_spi(Align) var superview: UIView? { get }
15 | #else
16 | @_spi(Align) var superview: NSView? { get }
| `- error: cannot find type 'NSView' in scope
17 | #endif
18 |
/host/spi-builder-workspace/Sources/LayoutItem.swift:75:11: error: cannot find type 'NSLayoutConstraint' in scope
73 | #endif
74 |
75 | extension NSLayoutConstraint.Relation {
| `- error: cannot find type 'NSLayoutConstraint' in scope
76 | @usableFromInline var inverted: NSLayoutConstraint.Relation {
77 | switch self {
/host/spi-builder-workspace/Sources/LayoutItem.swift:76:37: error: cannot find type 'NSLayoutConstraint' in scope
74 |
75 | extension NSLayoutConstraint.Relation {
76 | @usableFromInline var inverted: NSLayoutConstraint.Relation {
| `- error: cannot find type 'NSLayoutConstraint' in scope
77 | switch self {
78 | case .greaterThanOrEqual: return .lessThanOrEqual
[11/11] Compiling Align LayoutAnchors.swift
/host/spi-builder-workspace/Sources/Anchor.swift:57:54: error: cannot find type 'NSLayoutConstraint' in scope
55 | @usableFromInline let multiplier: CGFloat
56 |
57 | @inlinable init(_ item: LayoutItem, _ attribute: NSLayoutConstraint.Attribute, offset: CGFloat = 0, multiplier: CGFloat = 1) {
| `- error: cannot find type 'NSLayoutConstraint' in scope
58 | self.item = item; self.attribute = attribute; self.offset = offset; self.multiplier = multiplier
59 | }
/host/spi-builder-workspace/Sources/Anchor.swift:57:92: error: cannot find type 'CGFloat' in scope
55 | @usableFromInline let multiplier: CGFloat
56 |
57 | @inlinable init(_ item: LayoutItem, _ attribute: NSLayoutConstraint.Attribute, offset: CGFloat = 0, multiplier: CGFloat = 1) {
| `- error: cannot find type 'CGFloat' in scope
58 | self.item = item; self.attribute = attribute; self.offset = offset; self.multiplier = multiplier
59 | }
/host/spi-builder-workspace/Sources/Anchor.swift:57:117: error: cannot find type 'CGFloat' in scope
55 | @usableFromInline let multiplier: CGFloat
56 |
57 | @inlinable init(_ item: LayoutItem, _ attribute: NSLayoutConstraint.Attribute, offset: CGFloat = 0, multiplier: CGFloat = 1) {
| `- error: cannot find type 'CGFloat' in scope
58 | self.item = item; self.attribute = attribute; self.offset = offset; self.multiplier = multiplier
59 | }
/host/spi-builder-workspace/Sources/LayoutAnchors.swift:20:79: error: generic parameter 'Type' could not be inferred
18 | // MARK: Anchors
19 |
20 | @inlinable public var top: Anchor<AnchorType.Edge, AnchorAxis.Vertical> { Anchor(item, .top) }
| `- error: generic parameter 'Type' could not be inferred
21 | @inlinable public var bottom: Anchor<AnchorType.Edge, AnchorAxis.Vertical> { Anchor(item, .bottom) }
22 | @inlinable public var left: Anchor<AnchorType.Edge, AnchorAxis.Horizontal> { Anchor(item, .left) }
/host/spi-builder-workspace/Sources/Anchor.swift:51:33: note: 'Type' declared as parameter to type 'Anchor'
49 | /// - tip: `UIView` does not provide anchor properties for the layout margin attributes.
50 | /// Instead, call `view.layoutMarginsGuide.anchors`.
51 | @MainActor public struct Anchor<Type, Axis> { // type and axis are phantom types
| `- note: 'Type' declared as parameter to type 'Anchor'
52 | @usableFromInline let item: LayoutItem
53 | @usableFromInline let attribute: NSLayoutConstraint.Attribute
/host/spi-builder-workspace/Sources/LayoutAnchors.swift:20:79: error: generic parameter 'Axis' could not be inferred
18 | // MARK: Anchors
19 |
20 | @inlinable public var top: Anchor<AnchorType.Edge, AnchorAxis.Vertical> { Anchor(item, .top) }
| |- error: generic parameter 'Axis' could not be inferred
| `- note: explicitly specify the generic arguments to fix this issue
21 | @inlinable public var bottom: Anchor<AnchorType.Edge, AnchorAxis.Vertical> { Anchor(item, .bottom) }
22 | @inlinable public var left: Anchor<AnchorType.Edge, AnchorAxis.Horizontal> { Anchor(item, .left) }
/host/spi-builder-workspace/Sources/Anchor.swift:51:39: note: 'Axis' declared as parameter to type 'Anchor'
49 | /// - tip: `UIView` does not provide anchor properties for the layout margin attributes.
50 | /// Instead, call `view.layoutMarginsGuide.anchors`.
51 | @MainActor public struct Anchor<Type, Axis> { // type and axis are phantom types
| `- note: 'Axis' declared as parameter to type 'Anchor'
52 | @usableFromInline let item: LayoutItem
53 | @usableFromInline let attribute: NSLayoutConstraint.Attribute
/host/spi-builder-workspace/Sources/LayoutAnchors.swift:20:93: error: cannot infer contextual base in reference to member 'top'
18 | // MARK: Anchors
19 |
20 | @inlinable public var top: Anchor<AnchorType.Edge, AnchorAxis.Vertical> { Anchor(item, .top) }
| `- error: cannot infer contextual base in reference to member 'top'
21 | @inlinable public var bottom: Anchor<AnchorType.Edge, AnchorAxis.Vertical> { Anchor(item, .bottom) }
22 | @inlinable public var left: Anchor<AnchorType.Edge, AnchorAxis.Horizontal> { Anchor(item, .left) }
/host/spi-builder-workspace/Sources/LayoutAnchors.swift:21:82: error: generic parameter 'Type' could not be inferred
19 |
20 | @inlinable public var top: Anchor<AnchorType.Edge, AnchorAxis.Vertical> { Anchor(item, .top) }
21 | @inlinable public var bottom: Anchor<AnchorType.Edge, AnchorAxis.Vertical> { Anchor(item, .bottom) }
| `- error: generic parameter 'Type' could not be inferred
22 | @inlinable public var left: Anchor<AnchorType.Edge, AnchorAxis.Horizontal> { Anchor(item, .left) }
23 | @inlinable public var right: Anchor<AnchorType.Edge, AnchorAxis.Horizontal> { Anchor(item, .right) }
/host/spi-builder-workspace/Sources/Anchor.swift:51:33: note: 'Type' declared as parameter to type 'Anchor'
49 | /// - tip: `UIView` does not provide anchor properties for the layout margin attributes.
50 | /// Instead, call `view.layoutMarginsGuide.anchors`.
51 | @MainActor public struct Anchor<Type, Axis> { // type and axis are phantom types
| `- note: 'Type' declared as parameter to type 'Anchor'
52 | @usableFromInline let item: LayoutItem
53 | @usableFromInline let attribute: NSLayoutConstraint.Attribute
/host/spi-builder-workspace/Sources/LayoutAnchors.swift:21:82: error: generic parameter 'Axis' could not be inferred
19 |
20 | @inlinable public var top: Anchor<AnchorType.Edge, AnchorAxis.Vertical> { Anchor(item, .top) }
21 | @inlinable public var bottom: Anchor<AnchorType.Edge, AnchorAxis.Vertical> { Anchor(item, .bottom) }
| |- error: generic parameter 'Axis' could not be inferred
| `- note: explicitly specify the generic arguments to fix this issue
22 | @inlinable public var left: Anchor<AnchorType.Edge, AnchorAxis.Horizontal> { Anchor(item, .left) }
23 | @inlinable public var right: Anchor<AnchorType.Edge, AnchorAxis.Horizontal> { Anchor(item, .right) }
/host/spi-builder-workspace/Sources/Anchor.swift:51:39: note: 'Axis' declared as parameter to type 'Anchor'
49 | /// - tip: `UIView` does not provide anchor properties for the layout margin attributes.
50 | /// Instead, call `view.layoutMarginsGuide.anchors`.
51 | @MainActor public struct Anchor<Type, Axis> { // type and axis are phantom types
| `- note: 'Axis' declared as parameter to type 'Anchor'
52 | @usableFromInline let item: LayoutItem
53 | @usableFromInline let attribute: NSLayoutConstraint.Attribute
/host/spi-builder-workspace/Sources/LayoutAnchors.swift:21:96: error: cannot infer contextual base in reference to member 'bottom'
19 |
20 | @inlinable public var top: Anchor<AnchorType.Edge, AnchorAxis.Vertical> { Anchor(item, .top) }
21 | @inlinable public var bottom: Anchor<AnchorType.Edge, AnchorAxis.Vertical> { Anchor(item, .bottom) }
| `- error: cannot infer contextual base in reference to member 'bottom'
22 | @inlinable public var left: Anchor<AnchorType.Edge, AnchorAxis.Horizontal> { Anchor(item, .left) }
23 | @inlinable public var right: Anchor<AnchorType.Edge, AnchorAxis.Horizontal> { Anchor(item, .right) }
/host/spi-builder-workspace/Sources/LayoutAnchors.swift:22:82: error: generic parameter 'Type' could not be inferred
20 | @inlinable public var top: Anchor<AnchorType.Edge, AnchorAxis.Vertical> { Anchor(item, .top) }
21 | @inlinable public var bottom: Anchor<AnchorType.Edge, AnchorAxis.Vertical> { Anchor(item, .bottom) }
22 | @inlinable public var left: Anchor<AnchorType.Edge, AnchorAxis.Horizontal> { Anchor(item, .left) }
| `- error: generic parameter 'Type' could not be inferred
23 | @inlinable public var right: Anchor<AnchorType.Edge, AnchorAxis.Horizontal> { Anchor(item, .right) }
24 | @inlinable public var leading: Anchor<AnchorType.Edge, AnchorAxis.Horizontal> { Anchor(item, .leading) }
/host/spi-builder-workspace/Sources/Anchor.swift:51:33: note: 'Type' declared as parameter to type 'Anchor'
49 | /// - tip: `UIView` does not provide anchor properties for the layout margin attributes.
50 | /// Instead, call `view.layoutMarginsGuide.anchors`.
51 | @MainActor public struct Anchor<Type, Axis> { // type and axis are phantom types
| `- note: 'Type' declared as parameter to type 'Anchor'
52 | @usableFromInline let item: LayoutItem
53 | @usableFromInline let attribute: NSLayoutConstraint.Attribute
/host/spi-builder-workspace/Sources/LayoutAnchors.swift:22:82: error: generic parameter 'Axis' could not be inferred
20 | @inlinable public var top: Anchor<AnchorType.Edge, AnchorAxis.Vertical> { Anchor(item, .top) }
21 | @inlinable public var bottom: Anchor<AnchorType.Edge, AnchorAxis.Vertical> { Anchor(item, .bottom) }
22 | @inlinable public var left: Anchor<AnchorType.Edge, AnchorAxis.Horizontal> { Anchor(item, .left) }
| |- error: generic parameter 'Axis' could not be inferred
| `- note: explicitly specify the generic arguments to fix this issue
23 | @inlinable public var right: Anchor<AnchorType.Edge, AnchorAxis.Horizontal> { Anchor(item, .right) }
24 | @inlinable public var leading: Anchor<AnchorType.Edge, AnchorAxis.Horizontal> { Anchor(item, .leading) }
/host/spi-builder-workspace/Sources/Anchor.swift:51:39: note: 'Axis' declared as parameter to type 'Anchor'
49 | /// - tip: `UIView` does not provide anchor properties for the layout margin attributes.
50 | /// Instead, call `view.layoutMarginsGuide.anchors`.
51 | @MainActor public struct Anchor<Type, Axis> { // type and axis are phantom types
| `- note: 'Axis' declared as parameter to type 'Anchor'
52 | @usableFromInline let item: LayoutItem
53 | @usableFromInline let attribute: NSLayoutConstraint.Attribute
/host/spi-builder-workspace/Sources/LayoutAnchors.swift:22:96: error: cannot infer contextual base in reference to member 'left'
20 | @inlinable public var top: Anchor<AnchorType.Edge, AnchorAxis.Vertical> { Anchor(item, .top) }
21 | @inlinable public var bottom: Anchor<AnchorType.Edge, AnchorAxis.Vertical> { Anchor(item, .bottom) }
22 | @inlinable public var left: Anchor<AnchorType.Edge, AnchorAxis.Horizontal> { Anchor(item, .left) }
| `- error: cannot infer contextual base in reference to member 'left'
23 | @inlinable public var right: Anchor<AnchorType.Edge, AnchorAxis.Horizontal> { Anchor(item, .right) }
24 | @inlinable public var leading: Anchor<AnchorType.Edge, AnchorAxis.Horizontal> { Anchor(item, .leading) }
/host/spi-builder-workspace/Sources/LayoutAnchors.swift:23:83: error: generic parameter 'Type' could not be inferred
21 | @inlinable public var bottom: Anchor<AnchorType.Edge, AnchorAxis.Vertical> { Anchor(item, .bottom) }
22 | @inlinable public var left: Anchor<AnchorType.Edge, AnchorAxis.Horizontal> { Anchor(item, .left) }
23 | @inlinable public var right: Anchor<AnchorType.Edge, AnchorAxis.Horizontal> { Anchor(item, .right) }
| `- error: generic parameter 'Type' could not be inferred
24 | @inlinable public var leading: Anchor<AnchorType.Edge, AnchorAxis.Horizontal> { Anchor(item, .leading) }
25 | @inlinable public var trailing: Anchor<AnchorType.Edge, AnchorAxis.Horizontal> { Anchor(item, .trailing) }
/host/spi-builder-workspace/Sources/Anchor.swift:51:33: note: 'Type' declared as parameter to type 'Anchor'
49 | /// - tip: `UIView` does not provide anchor properties for the layout margin attributes.
50 | /// Instead, call `view.layoutMarginsGuide.anchors`.
51 | @MainActor public struct Anchor<Type, Axis> { // type and axis are phantom types
| `- note: 'Type' declared as parameter to type 'Anchor'
52 | @usableFromInline let item: LayoutItem
53 | @usableFromInline let attribute: NSLayoutConstraint.Attribute
/host/spi-builder-workspace/Sources/LayoutAnchors.swift:23:83: error: generic parameter 'Axis' could not be inferred
21 | @inlinable public var bottom: Anchor<AnchorType.Edge, AnchorAxis.Vertical> { Anchor(item, .bottom) }
22 | @inlinable public var left: Anchor<AnchorType.Edge, AnchorAxis.Horizontal> { Anchor(item, .left) }
23 | @inlinable public var right: Anchor<AnchorType.Edge, AnchorAxis.Horizontal> { Anchor(item, .right) }
| |- error: generic parameter 'Axis' could not be inferred
| `- note: explicitly specify the generic arguments to fix this issue
24 | @inlinable public var leading: Anchor<AnchorType.Edge, AnchorAxis.Horizontal> { Anchor(item, .leading) }
25 | @inlinable public var trailing: Anchor<AnchorType.Edge, AnchorAxis.Horizontal> { Anchor(item, .trailing) }
/host/spi-builder-workspace/Sources/Anchor.swift:51:39: note: 'Axis' declared as parameter to type 'Anchor'
49 | /// - tip: `UIView` does not provide anchor properties for the layout margin attributes.
50 | /// Instead, call `view.layoutMarginsGuide.anchors`.
51 | @MainActor public struct Anchor<Type, Axis> { // type and axis are phantom types
| `- note: 'Axis' declared as parameter to type 'Anchor'
52 | @usableFromInline let item: LayoutItem
53 | @usableFromInline let attribute: NSLayoutConstraint.Attribute
/host/spi-builder-workspace/Sources/LayoutAnchors.swift:23:97: error: cannot infer contextual base in reference to member 'right'
21 | @inlinable public var bottom: Anchor<AnchorType.Edge, AnchorAxis.Vertical> { Anchor(item, .bottom) }
22 | @inlinable public var left: Anchor<AnchorType.Edge, AnchorAxis.Horizontal> { Anchor(item, .left) }
23 | @inlinable public var right: Anchor<AnchorType.Edge, AnchorAxis.Horizontal> { Anchor(item, .right) }
| `- error: cannot infer contextual base in reference to member 'right'
24 | @inlinable public var leading: Anchor<AnchorType.Edge, AnchorAxis.Horizontal> { Anchor(item, .leading) }
25 | @inlinable public var trailing: Anchor<AnchorType.Edge, AnchorAxis.Horizontal> { Anchor(item, .trailing) }
/host/spi-builder-workspace/Sources/LayoutAnchors.swift:24:85: error: generic parameter 'Type' could not be inferred
22 | @inlinable public var left: Anchor<AnchorType.Edge, AnchorAxis.Horizontal> { Anchor(item, .left) }
23 | @inlinable public var right: Anchor<AnchorType.Edge, AnchorAxis.Horizontal> { Anchor(item, .right) }
24 | @inlinable public var leading: Anchor<AnchorType.Edge, AnchorAxis.Horizontal> { Anchor(item, .leading) }
| `- error: generic parameter 'Type' could not be inferred
25 | @inlinable public var trailing: Anchor<AnchorType.Edge, AnchorAxis.Horizontal> { Anchor(item, .trailing) }
26 |
/host/spi-builder-workspace/Sources/Anchor.swift:51:33: note: 'Type' declared as parameter to type 'Anchor'
49 | /// - tip: `UIView` does not provide anchor properties for the layout margin attributes.
50 | /// Instead, call `view.layoutMarginsGuide.anchors`.
51 | @MainActor public struct Anchor<Type, Axis> { // type and axis are phantom types
| `- note: 'Type' declared as parameter to type 'Anchor'
52 | @usableFromInline let item: LayoutItem
53 | @usableFromInline let attribute: NSLayoutConstraint.Attribute
/host/spi-builder-workspace/Sources/LayoutAnchors.swift:24:85: error: generic parameter 'Axis' could not be inferred
22 | @inlinable public var left: Anchor<AnchorType.Edge, AnchorAxis.Horizontal> { Anchor(item, .left) }
23 | @inlinable public var right: Anchor<AnchorType.Edge, AnchorAxis.Horizontal> { Anchor(item, .right) }
24 | @inlinable public var leading: Anchor<AnchorType.Edge, AnchorAxis.Horizontal> { Anchor(item, .leading) }
| |- error: generic parameter 'Axis' could not be inferred
| `- note: explicitly specify the generic arguments to fix this issue
25 | @inlinable public var trailing: Anchor<AnchorType.Edge, AnchorAxis.Horizontal> { Anchor(item, .trailing) }
26 |
/host/spi-builder-workspace/Sources/Anchor.swift:51:39: note: 'Axis' declared as parameter to type 'Anchor'
49 | /// - tip: `UIView` does not provide anchor properties for the layout margin attributes.
50 | /// Instead, call `view.layoutMarginsGuide.anchors`.
51 | @MainActor public struct Anchor<Type, Axis> { // type and axis are phantom types
| `- note: 'Axis' declared as parameter to type 'Anchor'
52 | @usableFromInline let item: LayoutItem
53 | @usableFromInline let attribute: NSLayoutConstraint.Attribute
/host/spi-builder-workspace/Sources/LayoutAnchors.swift:24:99: error: cannot infer contextual base in reference to member 'leading'
22 | @inlinable public var left: Anchor<AnchorType.Edge, AnchorAxis.Horizontal> { Anchor(item, .left) }
23 | @inlinable public var right: Anchor<AnchorType.Edge, AnchorAxis.Horizontal> { Anchor(item, .right) }
24 | @inlinable public var leading: Anchor<AnchorType.Edge, AnchorAxis.Horizontal> { Anchor(item, .leading) }
| `- error: cannot infer contextual base in reference to member 'leading'
25 | @inlinable public var trailing: Anchor<AnchorType.Edge, AnchorAxis.Horizontal> { Anchor(item, .trailing) }
26 |
/host/spi-builder-workspace/Sources/LayoutAnchors.swift:25:86: error: generic parameter 'Type' could not be inferred
23 | @inlinable public var right: Anchor<AnchorType.Edge, AnchorAxis.Horizontal> { Anchor(item, .right) }
24 | @inlinable public var leading: Anchor<AnchorType.Edge, AnchorAxis.Horizontal> { Anchor(item, .leading) }
25 | @inlinable public var trailing: Anchor<AnchorType.Edge, AnchorAxis.Horizontal> { Anchor(item, .trailing) }
| `- error: generic parameter 'Type' could not be inferred
26 |
27 | @inlinable public var centerX: Anchor<AnchorType.Center, AnchorAxis.Horizontal> { Anchor(item, .centerX) }
/host/spi-builder-workspace/Sources/Anchor.swift:51:33: note: 'Type' declared as parameter to type 'Anchor'
49 | /// - tip: `UIView` does not provide anchor properties for the layout margin attributes.
50 | /// Instead, call `view.layoutMarginsGuide.anchors`.
51 | @MainActor public struct Anchor<Type, Axis> { // type and axis are phantom types
| `- note: 'Type' declared as parameter to type 'Anchor'
52 | @usableFromInline let item: LayoutItem
53 | @usableFromInline let attribute: NSLayoutConstraint.Attribute
/host/spi-builder-workspace/Sources/LayoutAnchors.swift:25:86: error: generic parameter 'Axis' could not be inferred
23 | @inlinable public var right: Anchor<AnchorType.Edge, AnchorAxis.Horizontal> { Anchor(item, .right) }
24 | @inlinable public var leading: Anchor<AnchorType.Edge, AnchorAxis.Horizontal> { Anchor(item, .leading) }
25 | @inlinable public var trailing: Anchor<AnchorType.Edge, AnchorAxis.Horizontal> { Anchor(item, .trailing) }
| |- error: generic parameter 'Axis' could not be inferred
| `- note: explicitly specify the generic arguments to fix this issue
26 |
27 | @inlinable public var centerX: Anchor<AnchorType.Center, AnchorAxis.Horizontal> { Anchor(item, .centerX) }
/host/spi-builder-workspace/Sources/Anchor.swift:51:39: note: 'Axis' declared as parameter to type 'Anchor'
49 | /// - tip: `UIView` does not provide anchor properties for the layout margin attributes.
50 | /// Instead, call `view.layoutMarginsGuide.anchors`.
51 | @MainActor public struct Anchor<Type, Axis> { // type and axis are phantom types
| `- note: 'Axis' declared as parameter to type 'Anchor'
52 | @usableFromInline let item: LayoutItem
53 | @usableFromInline let attribute: NSLayoutConstraint.Attribute
/host/spi-builder-workspace/Sources/LayoutAnchors.swift:25:100: error: cannot infer contextual base in reference to member 'trailing'
23 | @inlinable public var right: Anchor<AnchorType.Edge, AnchorAxis.Horizontal> { Anchor(item, .right) }
24 | @inlinable public var leading: Anchor<AnchorType.Edge, AnchorAxis.Horizontal> { Anchor(item, .leading) }
25 | @inlinable public var trailing: Anchor<AnchorType.Edge, AnchorAxis.Horizontal> { Anchor(item, .trailing) }
| `- error: cannot infer contextual base in reference to member 'trailing'
26 |
27 | @inlinable public var centerX: Anchor<AnchorType.Center, AnchorAxis.Horizontal> { Anchor(item, .centerX) }
/host/spi-builder-workspace/Sources/LayoutAnchors.swift:27:87: error: generic parameter 'Type' could not be inferred
25 | @inlinable public var trailing: Anchor<AnchorType.Edge, AnchorAxis.Horizontal> { Anchor(item, .trailing) }
26 |
27 | @inlinable public var centerX: Anchor<AnchorType.Center, AnchorAxis.Horizontal> { Anchor(item, .centerX) }
| `- error: generic parameter 'Type' could not be inferred
28 | @inlinable public var centerY: Anchor<AnchorType.Center, AnchorAxis.Vertical> { Anchor(item, .centerY) }
29 |
/host/spi-builder-workspace/Sources/Anchor.swift:51:33: note: 'Type' declared as parameter to type 'Anchor'
49 | /// - tip: `UIView` does not provide anchor properties for the layout margin attributes.
50 | /// Instead, call `view.layoutMarginsGuide.anchors`.
51 | @MainActor public struct Anchor<Type, Axis> { // type and axis are phantom types
| `- note: 'Type' declared as parameter to type 'Anchor'
52 | @usableFromInline let item: LayoutItem
53 | @usableFromInline let attribute: NSLayoutConstraint.Attribute
/host/spi-builder-workspace/Sources/LayoutAnchors.swift:27:87: error: generic parameter 'Axis' could not be inferred
25 | @inlinable public var trailing: Anchor<AnchorType.Edge, AnchorAxis.Horizontal> { Anchor(item, .trailing) }
26 |
27 | @inlinable public var centerX: Anchor<AnchorType.Center, AnchorAxis.Horizontal> { Anchor(item, .centerX) }
| |- error: generic parameter 'Axis' could not be inferred
| `- note: explicitly specify the generic arguments to fix this issue
28 | @inlinable public var centerY: Anchor<AnchorType.Center, AnchorAxis.Vertical> { Anchor(item, .centerY) }
29 |
/host/spi-builder-workspace/Sources/Anchor.swift:51:39: note: 'Axis' declared as parameter to type 'Anchor'
49 | /// - tip: `UIView` does not provide anchor properties for the layout margin attributes.
50 | /// Instead, call `view.layoutMarginsGuide.anchors`.
51 | @MainActor public struct Anchor<Type, Axis> { // type and axis are phantom types
| `- note: 'Axis' declared as parameter to type 'Anchor'
52 | @usableFromInline let item: LayoutItem
53 | @usableFromInline let attribute: NSLayoutConstraint.Attribute
/host/spi-builder-workspace/Sources/LayoutAnchors.swift:27:101: error: cannot infer contextual base in reference to member 'centerX'
25 | @inlinable public var trailing: Anchor<AnchorType.Edge, AnchorAxis.Horizontal> { Anchor(item, .trailing) }
26 |
27 | @inlinable public var centerX: Anchor<AnchorType.Center, AnchorAxis.Horizontal> { Anchor(item, .centerX) }
| `- error: cannot infer contextual base in reference to member 'centerX'
28 | @inlinable public var centerY: Anchor<AnchorType.Center, AnchorAxis.Vertical> { Anchor(item, .centerY) }
29 |
/host/spi-builder-workspace/Sources/LayoutAnchors.swift:28:85: error: generic parameter 'Type' could not be inferred
26 |
27 | @inlinable public var centerX: Anchor<AnchorType.Center, AnchorAxis.Horizontal> { Anchor(item, .centerX) }
28 | @inlinable public var centerY: Anchor<AnchorType.Center, AnchorAxis.Vertical> { Anchor(item, .centerY) }
| `- error: generic parameter 'Type' could not be inferred
29 |
30 | @inlinable public var firstBaseline: Anchor<AnchorType.Baseline, AnchorAxis.Vertical> { Anchor(item, .firstBaseline) }
/host/spi-builder-workspace/Sources/Anchor.swift:51:33: note: 'Type' declared as parameter to type 'Anchor'
49 | /// - tip: `UIView` does not provide anchor properties for the layout margin attributes.
50 | /// Instead, call `view.layoutMarginsGuide.anchors`.
51 | @MainActor public struct Anchor<Type, Axis> { // type and axis are phantom types
| `- note: 'Type' declared as parameter to type 'Anchor'
52 | @usableFromInline let item: LayoutItem
53 | @usableFromInline let attribute: NSLayoutConstraint.Attribute
/host/spi-builder-workspace/Sources/LayoutAnchors.swift:28:85: error: generic parameter 'Axis' could not be inferred
26 |
27 | @inlinable public var centerX: Anchor<AnchorType.Center, AnchorAxis.Horizontal> { Anchor(item, .centerX) }
28 | @inlinable public var centerY: Anchor<AnchorType.Center, AnchorAxis.Vertical> { Anchor(item, .centerY) }
| |- error: generic parameter 'Axis' could not be inferred
| `- note: explicitly specify the generic arguments to fix this issue
29 |
30 | @inlinable public var firstBaseline: Anchor<AnchorType.Baseline, AnchorAxis.Vertical> { Anchor(item, .firstBaseline) }
/host/spi-builder-workspace/Sources/Anchor.swift:51:39: note: 'Axis' declared as parameter to type 'Anchor'
49 | /// - tip: `UIView` does not provide anchor properties for the layout margin attributes.
50 | /// Instead, call `view.layoutMarginsGuide.anchors`.
51 | @MainActor public struct Anchor<Type, Axis> { // type and axis are phantom types
| `- note: 'Axis' declared as parameter to type 'Anchor'
52 | @usableFromInline let item: LayoutItem
53 | @usableFromInline let attribute: NSLayoutConstraint.Attribute
/host/spi-builder-workspace/Sources/LayoutAnchors.swift:28:99: error: cannot infer contextual base in reference to member 'centerY'
26 |
27 | @inlinable public var centerX: Anchor<AnchorType.Center, AnchorAxis.Horizontal> { Anchor(item, .centerX) }
28 | @inlinable public var centerY: Anchor<AnchorType.Center, AnchorAxis.Vertical> { Anchor(item, .centerY) }
| `- error: cannot infer contextual base in reference to member 'centerY'
29 |
30 | @inlinable public var firstBaseline: Anchor<AnchorType.Baseline, AnchorAxis.Vertical> { Anchor(item, .firstBaseline) }
/host/spi-builder-workspace/Sources/LayoutAnchors.swift:30:93: error: generic parameter 'Type' could not be inferred
28 | @inlinable public var centerY: Anchor<AnchorType.Center, AnchorAxis.Vertical> { Anchor(item, .centerY) }
29 |
30 | @inlinable public var firstBaseline: Anchor<AnchorType.Baseline, AnchorAxis.Vertical> { Anchor(item, .firstBaseline) }
| `- error: generic parameter 'Type' could not be inferred
31 | @inlinable public var lastBaseline: Anchor<AnchorType.Baseline, AnchorAxis.Vertical> { Anchor(item, .lastBaseline) }
32 |
/host/spi-builder-workspace/Sources/Anchor.swift:51:33: note: 'Type' declared as parameter to type 'Anchor'
49 | /// - tip: `UIView` does not provide anchor properties for the layout margin attributes.
50 | /// Instead, call `view.layoutMarginsGuide.anchors`.
51 | @MainActor public struct Anchor<Type, Axis> { // type and axis are phantom types
| `- note: 'Type' declared as parameter to type 'Anchor'
52 | @usableFromInline let item: LayoutItem
53 | @usableFromInline let attribute: NSLayoutConstraint.Attribute
/host/spi-builder-workspace/Sources/LayoutAnchors.swift:30:93: error: generic parameter 'Axis' could not be inferred
28 | @inlinable public var centerY: Anchor<AnchorType.Center, AnchorAxis.Vertical> { Anchor(item, .centerY) }
29 |
30 | @inlinable public var firstBaseline: Anchor<AnchorType.Baseline, AnchorAxis.Vertical> { Anchor(item, .firstBaseline) }
| |- error: generic parameter 'Axis' could not be inferred
| `- note: explicitly specify the generic arguments to fix this issue
31 | @inlinable public var lastBaseline: Anchor<AnchorType.Baseline, AnchorAxis.Vertical> { Anchor(item, .lastBaseline) }
32 |
/host/spi-builder-workspace/Sources/Anchor.swift:51:39: note: 'Axis' declared as parameter to type 'Anchor'
49 | /// - tip: `UIView` does not provide anchor properties for the layout margin attributes.
50 | /// Instead, call `view.layoutMarginsGuide.anchors`.
51 | @MainActor public struct Anchor<Type, Axis> { // type and axis are phantom types
| `- note: 'Axis' declared as parameter to type 'Anchor'
52 | @usableFromInline let item: LayoutItem
53 | @usableFromInline let attribute: NSLayoutConstraint.Attribute
/host/spi-builder-workspace/Sources/LayoutAnchors.swift:30:107: error: cannot infer contextual base in reference to member 'firstBaseline'
28 | @inlinable public var centerY: Anchor<AnchorType.Center, AnchorAxis.Vertical> { Anchor(item, .centerY) }
29 |
30 | @inlinable public var firstBaseline: Anchor<AnchorType.Baseline, AnchorAxis.Vertical> { Anchor(item, .firstBaseline) }
| `- error: cannot infer contextual base in reference to member 'firstBaseline'
31 | @inlinable public var lastBaseline: Anchor<AnchorType.Baseline, AnchorAxis.Vertical> { Anchor(item, .lastBaseline) }
32 |
/host/spi-builder-workspace/Sources/LayoutAnchors.swift:31:92: error: generic parameter 'Type' could not be inferred
29 |
30 | @inlinable public var firstBaseline: Anchor<AnchorType.Baseline, AnchorAxis.Vertical> { Anchor(item, .firstBaseline) }
31 | @inlinable public var lastBaseline: Anchor<AnchorType.Baseline, AnchorAxis.Vertical> { Anchor(item, .lastBaseline) }
| `- error: generic parameter 'Type' could not be inferred
32 |
33 | @inlinable public var width: Anchor<AnchorType.Dimension, AnchorAxis.Horizontal> { Anchor(item, .width) }
/host/spi-builder-workspace/Sources/Anchor.swift:51:33: note: 'Type' declared as parameter to type 'Anchor'
49 | /// - tip: `UIView` does not provide anchor properties for the layout margin attributes.
50 | /// Instead, call `view.layoutMarginsGuide.anchors`.
51 | @MainActor public struct Anchor<Type, Axis> { // type and axis are phantom types
| `- note: 'Type' declared as parameter to type 'Anchor'
52 | @usableFromInline let item: LayoutItem
53 | @usableFromInline let attribute: NSLayoutConstraint.Attribute
/host/spi-builder-workspace/Sources/LayoutAnchors.swift:31:92: error: generic parameter 'Axis' could not be inferred
29 |
30 | @inlinable public var firstBaseline: Anchor<AnchorType.Baseline, AnchorAxis.Vertical> { Anchor(item, .firstBaseline) }
31 | @inlinable public var lastBaseline: Anchor<AnchorType.Baseline, AnchorAxis.Vertical> { Anchor(item, .lastBaseline) }
| |- error: generic parameter 'Axis' could not be inferred
| `- note: explicitly specify the generic arguments to fix this issue
32 |
33 | @inlinable public var width: Anchor<AnchorType.Dimension, AnchorAxis.Horizontal> { Anchor(item, .width) }
/host/spi-builder-workspace/Sources/Anchor.swift:51:39: note: 'Axis' declared as parameter to type 'Anchor'
49 | /// - tip: `UIView` does not provide anchor properties for the layout margin attributes.
50 | /// Instead, call `view.layoutMarginsGuide.anchors`.
51 | @MainActor public struct Anchor<Type, Axis> { // type and axis are phantom types
| `- note: 'Axis' declared as parameter to type 'Anchor'
52 | @usableFromInline let item: LayoutItem
53 | @usableFromInline let attribute: NSLayoutConstraint.Attribute
/host/spi-builder-workspace/Sources/LayoutAnchors.swift:31:106: error: cannot infer contextual base in reference to member 'lastBaseline'
29 |
30 | @inlinable public var firstBaseline: Anchor<AnchorType.Baseline, AnchorAxis.Vertical> { Anchor(item, .firstBaseline) }
31 | @inlinable public var lastBaseline: Anchor<AnchorType.Baseline, AnchorAxis.Vertical> { Anchor(item, .lastBaseline) }
| `- error: cannot infer contextual base in reference to member 'lastBaseline'
32 |
33 | @inlinable public var width: Anchor<AnchorType.Dimension, AnchorAxis.Horizontal> { Anchor(item, .width) }
/host/spi-builder-workspace/Sources/LayoutAnchors.swift:33:88: error: generic parameter 'Type' could not be inferred
31 | @inlinable public var lastBaseline: Anchor<AnchorType.Baseline, AnchorAxis.Vertical> { Anchor(item, .lastBaseline) }
32 |
33 | @inlinable public var width: Anchor<AnchorType.Dimension, AnchorAxis.Horizontal> { Anchor(item, .width) }
| `- error: generic parameter 'Type' could not be inferred
34 | @inlinable public var height: Anchor<AnchorType.Dimension, AnchorAxis.Vertical> { Anchor(item, .height) }
35 |
/host/spi-builder-workspace/Sources/Anchor.swift:51:33: note: 'Type' declared as parameter to type 'Anchor'
49 | /// - tip: `UIView` does not provide anchor properties for the layout margin attributes.
50 | /// Instead, call `view.layoutMarginsGuide.anchors`.
51 | @MainActor public struct Anchor<Type, Axis> { // type and axis are phantom types
| `- note: 'Type' declared as parameter to type 'Anchor'
52 | @usableFromInline let item: LayoutItem
53 | @usableFromInline let attribute: NSLayoutConstraint.Attribute
/host/spi-builder-workspace/Sources/LayoutAnchors.swift:33:88: error: generic parameter 'Axis' could not be inferred
31 | @inlinable public var lastBaseline: Anchor<AnchorType.Baseline, AnchorAxis.Vertical> { Anchor(item, .lastBaseline) }
32 |
33 | @inlinable public var width: Anchor<AnchorType.Dimension, AnchorAxis.Horizontal> { Anchor(item, .width) }
| |- error: generic parameter 'Axis' could not be inferred
| `- note: explicitly specify the generic arguments to fix this issue
34 | @inlinable public var height: Anchor<AnchorType.Dimension, AnchorAxis.Vertical> { Anchor(item, .height) }
35 |
/host/spi-builder-workspace/Sources/Anchor.swift:51:39: note: 'Axis' declared as parameter to type 'Anchor'
49 | /// - tip: `UIView` does not provide anchor properties for the layout margin attributes.
50 | /// Instead, call `view.layoutMarginsGuide.anchors`.
51 | @MainActor public struct Anchor<Type, Axis> { // type and axis are phantom types
| `- note: 'Axis' declared as parameter to type 'Anchor'
52 | @usableFromInline let item: LayoutItem
53 | @usableFromInline let attribute: NSLayoutConstraint.Attribute
/host/spi-builder-workspace/Sources/LayoutAnchors.swift:33:102: error: cannot infer contextual base in reference to member 'width'
31 | @inlinable public var lastBaseline: Anchor<AnchorType.Baseline, AnchorAxis.Vertical> { Anchor(item, .lastBaseline) }
32 |
33 | @inlinable public var width: Anchor<AnchorType.Dimension, AnchorAxis.Horizontal> { Anchor(item, .width) }
| `- error: cannot infer contextual base in reference to member 'width'
34 | @inlinable public var height: Anchor<AnchorType.Dimension, AnchorAxis.Vertical> { Anchor(item, .height) }
35 |
/host/spi-builder-workspace/Sources/LayoutAnchors.swift:34:87: error: generic parameter 'Type' could not be inferred
32 |
33 | @inlinable public var width: Anchor<AnchorType.Dimension, AnchorAxis.Horizontal> { Anchor(item, .width) }
34 | @inlinable public var height: Anchor<AnchorType.Dimension, AnchorAxis.Vertical> { Anchor(item, .height) }
| `- error: generic parameter 'Type' could not be inferred
35 |
36 | // MARK: Anchor Collections
/host/spi-builder-workspace/Sources/Anchor.swift:51:33: note: 'Type' declared as parameter to type 'Anchor'
49 | /// - tip: `UIView` does not provide anchor properties for the layout margin attributes.
50 | /// Instead, call `view.layoutMarginsGuide.anchors`.
51 | @MainActor public struct Anchor<Type, Axis> { // type and axis are phantom types
| `- note: 'Type' declared as parameter to type 'Anchor'
52 | @usableFromInline let item: LayoutItem
53 | @usableFromInline let attribute: NSLayoutConstraint.Attribute
/host/spi-builder-workspace/Sources/LayoutAnchors.swift:34:87: error: generic parameter 'Axis' could not be inferred
32 |
33 | @inlinable public var width: Anchor<AnchorType.Dimension, AnchorAxis.Horizontal> { Anchor(item, .width) }
34 | @inlinable public var height: Anchor<AnchorType.Dimension, AnchorAxis.Vertical> { Anchor(item, .height) }
| |- error: generic parameter 'Axis' could not be inferred
| `- note: explicitly specify the generic arguments to fix this issue
35 |
36 | // MARK: Anchor Collections
/host/spi-builder-workspace/Sources/Anchor.swift:51:39: note: 'Axis' declared as parameter to type 'Anchor'
49 | /// - tip: `UIView` does not provide anchor properties for the layout margin attributes.
50 | /// Instead, call `view.layoutMarginsGuide.anchors`.
51 | @MainActor public struct Anchor<Type, Axis> { // type and axis are phantom types
| `- note: 'Axis' declared as parameter to type 'Anchor'
52 | @usableFromInline let item: LayoutItem
53 | @usableFromInline let attribute: NSLayoutConstraint.Attribute
/host/spi-builder-workspace/Sources/LayoutAnchors.swift:34:101: error: cannot infer contextual base in reference to member 'height'
32 |
33 | @inlinable public var width: Anchor<AnchorType.Dimension, AnchorAxis.Horizontal> { Anchor(item, .width) }
34 | @inlinable public var height: Anchor<AnchorType.Dimension, AnchorAxis.Vertical> { Anchor(item, .height) }
| `- error: cannot infer contextual base in reference to member 'height'
35 |
36 | // MARK: Anchor Collections
BUILD FAILURE 6.2 android