The Swift Package Index logo.Swift Package Index

Track the adoption of Swift 6 strict concurrency checks for data race safety. How many packages are Ready for Swift 6?

Build Information

Failed to build Align, reference main (9cadf7), with Swift 6.1 for Linux on 29 Apr 2025 15:39:27 UTC.

Build Command

bash -c docker run --pull=always --rm -v "checkouts-4609320-0":/host -w "$PWD" registry.gitlab.com/finestructure/spi-images:basic-6.1-latest swift build --triple x86_64-unknown-linux-gnu 2>&1

Build Log

108 |     let item: LayoutItem
109 |     let attribute: NSLayoutConstraint.Attribute
/host/spi-builder-workspace/Sources/Align.swift:59:81: error: generic parameter 'Axis' could not be inferred
 57 |
 58 |     public var firstBaseline: Anchor<AnchorType.Baseline, AnchorAxis.Vertical> { Anchor(item, .firstBaseline) }
 59 |     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
 60 |
 61 |     public var width: Anchor<AnchorType.Dimension, AnchorAxis.Horizontal> { Anchor(item, .width) }
    :
105 | /// - tip: `UIView` does not provide anchor properties for the layout margin attributes.
106 | /// Instead, call `view.layoutMarginsGuide.anchors`.
107 | @MainActor public struct Anchor<Type, Axis> { // type and axis are phantom types
    |                                       `- note: 'Axis' declared as parameter to type 'Anchor'
108 |     let item: LayoutItem
109 |     let attribute: NSLayoutConstraint.Attribute
/host/spi-builder-workspace/Sources/Align.swift:59:95: error: cannot infer contextual base in reference to member 'lastBaseline'
 57 |
 58 |     public var firstBaseline: Anchor<AnchorType.Baseline, AnchorAxis.Vertical> { Anchor(item, .firstBaseline) }
 59 |     public var lastBaseline: Anchor<AnchorType.Baseline, AnchorAxis.Vertical> { Anchor(item, .lastBaseline) }
    |                                                                                               `- error: cannot infer contextual base in reference to member 'lastBaseline'
 60 |
 61 |     public var width: Anchor<AnchorType.Dimension, AnchorAxis.Horizontal> { Anchor(item, .width) }
/host/spi-builder-workspace/Sources/Align.swift:61:77: error: generic parameter 'Type' could not be inferred
 59 |     public var lastBaseline: Anchor<AnchorType.Baseline, AnchorAxis.Vertical> { Anchor(item, .lastBaseline) }
 60 |
 61 |     public var width: Anchor<AnchorType.Dimension, AnchorAxis.Horizontal> { Anchor(item, .width) }
    |                                                                             `- error: generic parameter 'Type' could not be inferred
 62 |     public var height: Anchor<AnchorType.Dimension, AnchorAxis.Vertical> { Anchor(item, .height) }
 63 |
    :
105 | /// - tip: `UIView` does not provide anchor properties for the layout margin attributes.
106 | /// Instead, call `view.layoutMarginsGuide.anchors`.
107 | @MainActor public struct Anchor<Type, Axis> { // type and axis are phantom types
    |                                 `- note: 'Type' declared as parameter to type 'Anchor'
108 |     let item: LayoutItem
109 |     let attribute: NSLayoutConstraint.Attribute
/host/spi-builder-workspace/Sources/Align.swift:61:77: error: generic parameter 'Axis' could not be inferred
 59 |     public var lastBaseline: Anchor<AnchorType.Baseline, AnchorAxis.Vertical> { Anchor(item, .lastBaseline) }
 60 |
 61 |     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
 62 |     public var height: Anchor<AnchorType.Dimension, AnchorAxis.Vertical> { Anchor(item, .height) }
 63 |
    :
105 | /// - tip: `UIView` does not provide anchor properties for the layout margin attributes.
106 | /// Instead, call `view.layoutMarginsGuide.anchors`.
107 | @MainActor public struct Anchor<Type, Axis> { // type and axis are phantom types
    |                                       `- note: 'Axis' declared as parameter to type 'Anchor'
108 |     let item: LayoutItem
109 |     let attribute: NSLayoutConstraint.Attribute
/host/spi-builder-workspace/Sources/Align.swift:61:91: error: cannot infer contextual base in reference to member 'width'
 59 |     public var lastBaseline: Anchor<AnchorType.Baseline, AnchorAxis.Vertical> { Anchor(item, .lastBaseline) }
 60 |
 61 |     public var width: Anchor<AnchorType.Dimension, AnchorAxis.Horizontal> { Anchor(item, .width) }
    |                                                                                           `- error: cannot infer contextual base in reference to member 'width'
 62 |     public var height: Anchor<AnchorType.Dimension, AnchorAxis.Vertical> { Anchor(item, .height) }
 63 |
/host/spi-builder-workspace/Sources/Align.swift:62:76: error: generic parameter 'Type' could not be inferred
 60 |
 61 |     public var width: Anchor<AnchorType.Dimension, AnchorAxis.Horizontal> { Anchor(item, .width) }
 62 |     public var height: Anchor<AnchorType.Dimension, AnchorAxis.Vertical> { Anchor(item, .height) }
    |                                                                            `- error: generic parameter 'Type' could not be inferred
 63 |
 64 |     // MARK: Anchor Collections
    :
105 | /// - tip: `UIView` does not provide anchor properties for the layout margin attributes.
106 | /// Instead, call `view.layoutMarginsGuide.anchors`.
107 | @MainActor public struct Anchor<Type, Axis> { // type and axis are phantom types
    |                                 `- note: 'Type' declared as parameter to type 'Anchor'
108 |     let item: LayoutItem
109 |     let attribute: NSLayoutConstraint.Attribute
/host/spi-builder-workspace/Sources/Align.swift:62:76: error: generic parameter 'Axis' could not be inferred
 60 |
 61 |     public var width: Anchor<AnchorType.Dimension, AnchorAxis.Horizontal> { Anchor(item, .width) }
 62 |     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
 63 |
 64 |     // MARK: Anchor Collections
    :
105 | /// - tip: `UIView` does not provide anchor properties for the layout margin attributes.
106 | /// Instead, call `view.layoutMarginsGuide.anchors`.
107 | @MainActor public struct Anchor<Type, Axis> { // type and axis are phantom types
    |                                       `- note: 'Axis' declared as parameter to type 'Anchor'
108 |     let item: LayoutItem
109 |     let attribute: NSLayoutConstraint.Attribute
/host/spi-builder-workspace/Sources/Align.swift:62:90: error: cannot infer contextual base in reference to member 'height'
 60 |
 61 |     public var width: Anchor<AnchorType.Dimension, AnchorAxis.Horizontal> { Anchor(item, .width) }
 62 |     public var height: Anchor<AnchorType.Dimension, AnchorAxis.Vertical> { Anchor(item, .height) }
    |                                                                                          `- error: cannot infer contextual base in reference to member 'height'
 63 |
 64 |     // MARK: Anchor Collections
/host/spi-builder-workspace/Sources/Align.swift:205:28: error: reference to member 'trailing' cannot be resolved without a contextual type
203 |     /// Pins the edge to the respected edges of the given container.
204 |     @discardableResult func pin(to container: LayoutItem? = nil, inset: CGFloat = 0) -> NSLayoutConstraint {
205 |         let isInverted = [.trailing, .right, .bottom].contains(attribute)
    |                            `- error: reference to member 'trailing' cannot be resolved without a contextual type
206 |         return Constraints.add(self, toItem: container ?? item.superview!, attribute: attribute, constant: (isInverted ? -inset : inset))
207 |     }
/host/spi-builder-workspace/Sources/Align.swift:205:39: error: reference to member 'right' cannot be resolved without a contextual type
203 |     /// Pins the edge to the respected edges of the given container.
204 |     @discardableResult func pin(to container: LayoutItem? = nil, inset: CGFloat = 0) -> NSLayoutConstraint {
205 |         let isInverted = [.trailing, .right, .bottom].contains(attribute)
    |                                       `- error: reference to member 'right' cannot be resolved without a contextual type
206 |         return Constraints.add(self, toItem: container ?? item.superview!, attribute: attribute, constant: (isInverted ? -inset : inset))
207 |     }
/host/spi-builder-workspace/Sources/Align.swift:205:47: error: reference to member 'bottom' cannot be resolved without a contextual type
203 |     /// Pins the edge to the respected edges of the given container.
204 |     @discardableResult func pin(to container: LayoutItem? = nil, inset: CGFloat = 0) -> NSLayoutConstraint {
205 |         let isInverted = [.trailing, .right, .bottom].contains(attribute)
    |                                               `- error: reference to member 'bottom' cannot be resolved without a contextual type
206 |         return Constraints.add(self, toItem: container ?? item.superview!, attribute: attribute, constant: (isInverted ? -inset : inset))
207 |     }
/host/spi-builder-workspace/Sources/Align.swift:205:64: error: missing argument label 'where:' in call
203 |     /// Pins the edge to the respected edges of the given container.
204 |     @discardableResult func pin(to container: LayoutItem? = nil, inset: CGFloat = 0) -> NSLayoutConstraint {
205 |         let isInverted = [.trailing, .right, .bottom].contains(attribute)
    |                                                                `- error: missing argument label 'where:' in call
206 |         return Constraints.add(self, toItem: container ?? item.superview!, attribute: attribute, constant: (isInverted ? -inset : inset))
207 |     }
/host/spi-builder-workspace/Sources/Align.swift:211:41: error: cannot infer contextual base in reference to member 'bottom'
209 |     /// Adds spacing between the current anchors.
210 |     @discardableResult func spacing<OtherType: AnchorType.Edge>(_ spacing: CGFloat, to anchor: Anchor<OtherType, Axis>, relation: NSLayoutConstraint.Relation = .equal) -> NSLayoutConstraint {
211 |         let isInverted = (attribute == .bottom && anchor.attribute == .top) ||
    |                                         `- error: cannot infer contextual base in reference to member 'bottom'
212 |         (attribute == .right && anchor.attribute == .left) ||
213 |         (attribute == .trailing && anchor.attribute == .leading)
/host/spi-builder-workspace/Sources/Align.swift:211:72: error: cannot infer contextual base in reference to member 'top'
209 |     /// Adds spacing between the current anchors.
210 |     @discardableResult func spacing<OtherType: AnchorType.Edge>(_ spacing: CGFloat, to anchor: Anchor<OtherType, Axis>, relation: NSLayoutConstraint.Relation = .equal) -> NSLayoutConstraint {
211 |         let isInverted = (attribute == .bottom && anchor.attribute == .top) ||
    |                                                                        `- error: cannot infer contextual base in reference to member 'top'
212 |         (attribute == .right && anchor.attribute == .left) ||
213 |         (attribute == .trailing && anchor.attribute == .leading)
/host/spi-builder-workspace/Sources/Align.swift:213:24: error: cannot infer contextual base in reference to member 'trailing'
211 |         let isInverted = (attribute == .bottom && anchor.attribute == .top) ||
212 |         (attribute == .right && anchor.attribute == .left) ||
213 |         (attribute == .trailing && anchor.attribute == .leading)
    |                        `- error: cannot infer contextual base in reference to member 'trailing'
214 |         return Constraints.add(self, anchor, constant: isInverted ? -spacing : spacing, relation: isInverted ? relation.inverted : relation)
215 |     }
/host/spi-builder-workspace/Sources/Align.swift:213:57: error: cannot infer contextual base in reference to member 'leading'
211 |         let isInverted = (attribute == .bottom && anchor.attribute == .top) ||
212 |         (attribute == .right && anchor.attribute == .left) ||
213 |         (attribute == .trailing && anchor.attribute == .leading)
    |                                                         `- error: cannot infer contextual base in reference to member 'leading'
214 |         return Constraints.add(self, anchor, constant: isInverted ? -spacing : spacing, relation: isInverted ? relation.inverted : relation)
215 |     }
/host/spi-builder-workspace/Sources/Align.swift:295:19: error: cannot find type 'NSLayoutConstraint' in scope
293 |     private func pin(to item2: LayoutItem?, insets: EdgeInsets, axis: Axis?, alignment: Alignment, isCenteringEnabled: Bool) -> [NSLayoutConstraint] {
294 |         let item2 = item2 ?? item.superview!
295 |         let left: NSLayoutConstraint.Attribute = isAbsolute ? .left : .leading
    |                   `- error: cannot find type 'NSLayoutConstraint' in scope
296 |         let right: NSLayoutConstraint.Attribute = isAbsolute ? .right : .trailing
297 |         var constraints = [NSLayoutConstraint]()
/host/spi-builder-workspace/Sources/Align.swift:296:20: error: cannot find type 'NSLayoutConstraint' in scope
294 |         let item2 = item2 ?? item.superview!
295 |         let left: NSLayoutConstraint.Attribute = isAbsolute ? .left : .leading
296 |         let right: NSLayoutConstraint.Attribute = isAbsolute ? .right : .trailing
    |                    `- error: cannot find type 'NSLayoutConstraint' in scope
297 |         var constraints = [NSLayoutConstraint]()
298 |
/host/spi-builder-workspace/Sources/Align.swift:297:28: error: cannot find 'NSLayoutConstraint' in scope
295 |         let left: NSLayoutConstraint.Attribute = isAbsolute ? .left : .leading
296 |         let right: NSLayoutConstraint.Attribute = isAbsolute ? .right : .trailing
297 |         var constraints = [NSLayoutConstraint]()
    |                            `- error: cannot find 'NSLayoutConstraint' in scope
298 |
299 |         func constrain(attribute: NSLayoutConstraint.Attribute, relation: NSLayoutConstraint.Relation, constant: CGFloat) {
/host/spi-builder-workspace/Sources/Align.swift:297:27: error: cannot call value of non-function type '[Any]'
295 |         let left: NSLayoutConstraint.Attribute = isAbsolute ? .left : .leading
296 |         let right: NSLayoutConstraint.Attribute = isAbsolute ? .right : .trailing
297 |         var constraints = [NSLayoutConstraint]()
    |                           `- error: cannot call value of non-function type '[Any]'
298 |
299 |         func constrain(attribute: NSLayoutConstraint.Attribute, relation: NSLayoutConstraint.Relation, constant: CGFloat) {
/host/spi-builder-workspace/Sources/Align.swift:299:35: error: cannot find type 'NSLayoutConstraint' in scope
297 |         var constraints = [NSLayoutConstraint]()
298 |
299 |         func constrain(attribute: NSLayoutConstraint.Attribute, relation: NSLayoutConstraint.Relation, constant: CGFloat) {
    |                                   `- error: cannot find type 'NSLayoutConstraint' in scope
300 |             constraints.append(Constraints.add(item: item, attribute: attribute, relatedBy: relation, toItem: item2, attribute: attribute, multiplier: 1, constant: constant))
301 |         }
/host/spi-builder-workspace/Sources/Align.swift:299:75: error: cannot find type 'NSLayoutConstraint' in scope
297 |         var constraints = [NSLayoutConstraint]()
298 |
299 |         func constrain(attribute: NSLayoutConstraint.Attribute, relation: NSLayoutConstraint.Relation, constant: CGFloat) {
    |                                                                           `- error: cannot find type 'NSLayoutConstraint' in scope
300 |             constraints.append(Constraints.add(item: item, attribute: attribute, relatedBy: relation, toItem: item2, attribute: attribute, multiplier: 1, constant: constant))
301 |         }
/host/spi-builder-workspace/Sources/Align.swift:299:114: error: cannot find type 'CGFloat' in scope
297 |         var constraints = [NSLayoutConstraint]()
298 |
299 |         func constrain(attribute: NSLayoutConstraint.Attribute, relation: NSLayoutConstraint.Relation, constant: CGFloat) {
    |                                                                                                                  `- error: cannot find type 'CGFloat' in scope
300 |             constraints.append(Constraints.add(item: item, attribute: attribute, relatedBy: relation, toItem: item2, attribute: attribute, multiplier: 1, constant: constant))
301 |         }
/host/spi-builder-workspace/Sources/Align.swift:304:119: error: cannot infer contextual base in reference to member 'equal'
302 |
303 |         if axis == nil || axis == .horizontal {
304 |             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'
305 |             constrain(attribute: right, relation: alignment.horizontal == .fill || alignment.horizontal == .trailing ? .equal : .lessThanOrEqual, constant: -insets.right)
306 |             if alignment.horizontal == .center && isCenteringEnabled {
/host/spi-builder-workspace/Sources/Align.swift:305:121: error: cannot infer contextual base in reference to member 'equal'
303 |         if axis == nil || axis == .horizontal {
304 |             constrain(attribute: left, relation: alignment.horizontal == .fill || alignment.horizontal == .leading ? .equal : .greaterThanOrEqual, constant: insets.left)
305 |             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'
306 |             if alignment.horizontal == .center && isCenteringEnabled {
307 |                 constrain(attribute: .centerX, relation: .equal, constant: 0)
/host/spi-builder-workspace/Sources/Align.swift:307:39: error: cannot infer contextual base in reference to member 'centerX'
305 |             constrain(attribute: right, relation: alignment.horizontal == .fill || alignment.horizontal == .trailing ? .equal : .lessThanOrEqual, constant: -insets.right)
306 |             if alignment.horizontal == .center && isCenteringEnabled {
307 |                 constrain(attribute: .centerX, relation: .equal, constant: 0)
    |                                       `- error: cannot infer contextual base in reference to member 'centerX'
308 |             }
309 |         }
/host/spi-builder-workspace/Sources/Align.swift:307:59: error: cannot infer contextual base in reference to member 'equal'
305 |             constrain(attribute: right, relation: alignment.horizontal == .fill || alignment.horizontal == .trailing ? .equal : .lessThanOrEqual, constant: -insets.right)
306 |             if alignment.horizontal == .center && isCenteringEnabled {
307 |                 constrain(attribute: .centerX, relation: .equal, constant: 0)
    |                                                           `- error: cannot infer contextual base in reference to member 'equal'
308 |             }
309 |         }
/host/spi-builder-workspace/Sources/Align.swift:311:35: error: cannot infer contextual base in reference to member 'top'
309 |         }
310 |         if axis == nil || axis == .vertical {
311 |             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'
312 |             constrain(attribute: .bottom, relation: alignment.vertical == .fill || alignment.vertical == .bottom ? .equal : .lessThanOrEqual, constant: -insets.bottom)
313 |             if alignment.vertical == .center && isCenteringEnabled {
/host/spi-builder-workspace/Sources/Align.swift:311:111: error: cannot infer contextual base in reference to member 'equal'
309 |         }
310 |         if axis == nil || axis == .vertical {
311 |             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'
312 |             constrain(attribute: .bottom, relation: alignment.vertical == .fill || alignment.vertical == .bottom ? .equal : .lessThanOrEqual, constant: -insets.bottom)
313 |             if alignment.vertical == .center && isCenteringEnabled {
/host/spi-builder-workspace/Sources/Align.swift:312:35: error: cannot infer contextual base in reference to member 'bottom'
310 |         if axis == nil || axis == .vertical {
311 |             constrain(attribute: .top, relation: alignment.vertical == .fill || alignment.vertical == .top ? .equal : .greaterThanOrEqual, constant: insets.top)
312 |             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'
313 |             if alignment.vertical == .center && isCenteringEnabled {
314 |                 constrain(attribute: .centerY, relation: .equal, constant: 0)
/host/spi-builder-workspace/Sources/Align.swift:312:117: error: cannot infer contextual base in reference to member 'equal'
310 |         if axis == nil || axis == .vertical {
311 |             constrain(attribute: .top, relation: alignment.vertical == .fill || alignment.vertical == .top ? .equal : .greaterThanOrEqual, constant: insets.top)
312 |             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'
313 |             if alignment.vertical == .center && isCenteringEnabled {
314 |                 constrain(attribute: .centerY, relation: .equal, constant: 0)
/host/spi-builder-workspace/Sources/Align.swift:314:39: error: cannot infer contextual base in reference to member 'centerY'
312 |             constrain(attribute: .bottom, relation: alignment.vertical == .fill || alignment.vertical == .bottom ? .equal : .lessThanOrEqual, constant: -insets.bottom)
313 |             if alignment.vertical == .center && isCenteringEnabled {
314 |                 constrain(attribute: .centerY, relation: .equal, constant: 0)
    |                                       `- error: cannot infer contextual base in reference to member 'centerY'
315 |             }
316 |         }
/host/spi-builder-workspace/Sources/Align.swift:314:59: error: cannot infer contextual base in reference to member 'equal'
312 |             constrain(attribute: .bottom, relation: alignment.vertical == .fill || alignment.vertical == .bottom ? .equal : .lessThanOrEqual, constant: -insets.bottom)
313 |             if alignment.vertical == .center && isCenteringEnabled {
314 |                 constrain(attribute: .centerY, relation: .equal, constant: 0)
    |                                                           `- error: cannot infer contextual base in reference to member 'equal'
315 |             }
316 |         }
/host/spi-builder-workspace/Sources/Align.swift:532:23: error: cannot find 'NSLayoutConstraint' in scope
530 |         closure() // create constraints
531 |         Constraints.stack.removeLast()
532 |         if activate { NSLayoutConstraint.activate(constraints) }
    |                       `- error: cannot find 'NSLayoutConstraint' in scope
533 |     }
534 |
/host/spi-builder-workspace/Sources/Align.swift:539:9: error: cannot find 'NSLayoutConstraint' in scope
537 |     /// Activates each constraint in the receiver.
538 |     public func activate() {
539 |         NSLayoutConstraint.activate(constraints)
    |         `- error: cannot find 'NSLayoutConstraint' in scope
540 |     }
541 |
/host/spi-builder-workspace/Sources/Align.swift:544:9: error: cannot find 'NSLayoutConstraint' in scope
542 |     /// Deactivates each constraint in the receiver.
543 |     public func deactivate() {
544 |         NSLayoutConstraint.deactivate(constraints)
    |         `- error: cannot find 'NSLayoutConstraint' in scope
545 |     }
546 |
/host/spi-builder-workspace/Sources/Align.swift:556:26: error: cannot find 'NSLayoutConstraint' in scope
554 |         (item1 as? NSView)?.translatesAutoresizingMaskIntoConstraints = false
555 | #endif
556 |         let constraint = NSLayoutConstraint(item: item1, attribute: attr1, relatedBy: relation, toItem: item2, attribute: attr2 ?? .notAnAttribute, multiplier: multiplier, constant: constant)
    |                          `- error: cannot find 'NSLayoutConstraint' in scope
557 |         install(constraint)
558 |         return constraint
/host/spi-builder-workspace/Sources/Align.swift:614:19: error: cannot find type 'NSLayoutConstraint' in scope
612 |
613 | extension NSLayoutConstraint.Relation {
614 |     var inverted: NSLayoutConstraint.Relation {
    |                   `- error: cannot find type 'NSLayoutConstraint' in scope
615 |         switch self {
616 |         case .greaterThanOrEqual: return .lessThanOrEqual
/host/spi-builder-workspace/Sources/Align.swift:625:84: error: cannot find type 'CGFloat' in scope
623 |
624 | extension EdgeInsets {
625 |     func inset(for attribute: NSLayoutConstraint.Attribute, edge: Bool = false) -> CGFloat {
    |                                                                                    `- error: cannot find type 'CGFloat' in scope
626 |         switch attribute {
627 |         case .top: return top; case .bottom: return edge ? -bottom : bottom
/host/spi-builder-workspace/Sources/Align.swift:625:31: error: cannot find type 'NSLayoutConstraint' in scope
623 |
624 | extension EdgeInsets {
625 |     func inset(for attribute: NSLayoutConstraint.Attribute, edge: Bool = false) -> CGFloat {
    |                               `- error: cannot find type 'NSLayoutConstraint' in scope
626 |         switch attribute {
627 |         case .top: return top; case .bottom: return edge ? -bottom : bottom
Running build ...
bash -c docker run --pull=always --rm -v "checkouts-4609320-0":/host -w "$PWD" registry.gitlab.com/finestructure/spi-images:basic-6.1-latest swift build --triple x86_64-unknown-linux-gnu 2>&1
basic-6.1-latest: Pulling from finestructure/spi-images
Digest: sha256:3bdcac04179f4ed3e5b8e9dbd6e74bbf5ebc0f4fde48bbaad7d1e5c757e65bcb
Status: Image is up to date for registry.gitlab.com/finestructure/spi-images:basic-6.1-latest
[0/1] Planning build
Building for debugging...
[0/1] Write swift-version-24593BA9C3E375BF.txt
error: emit-module command failed with exit code 1 (use -v to see invocation)
[2/3] Emitting module Align
/host/spi-builder-workspace/Sources/Align.swift:16:20: error: cannot find type 'NSView' in scope
 14 |     var superview: UIView? { get }
 15 | #else
 16 |     var superview: NSView? { get }
    |                    `- error: cannot find type 'NSView' in scope
 17 | #endif
 18 | }
/host/spi-builder-workspace/Sources/Align.swift:109:20: error: cannot find type 'NSLayoutConstraint' in scope
107 | @MainActor public struct Anchor<Type, Axis> { // type and axis are phantom types
108 |     let item: LayoutItem
109 |     let attribute: NSLayoutConstraint.Attribute
    |                    `- error: cannot find type 'NSLayoutConstraint' in scope
110 |     let offset: CGFloat
111 |     let multiplier: CGFloat
/host/spi-builder-workspace/Sources/Align.swift:110:17: error: cannot find type 'CGFloat' in scope
108 |     let item: LayoutItem
109 |     let attribute: NSLayoutConstraint.Attribute
110 |     let offset: CGFloat
    |                 `- error: cannot find type 'CGFloat' in scope
111 |     let multiplier: CGFloat
112 |
/host/spi-builder-workspace/Sources/Align.swift:111:21: error: cannot find type 'CGFloat' in scope
109 |     let attribute: NSLayoutConstraint.Attribute
110 |     let offset: CGFloat
111 |     let multiplier: CGFloat
    |                     `- error: cannot find type 'CGFloat' in scope
112 |
113 |     init(_ item: LayoutItem, _ attribute: NSLayoutConstraint.Attribute, offset: CGFloat = 0, multiplier: CGFloat = 1) {
/host/spi-builder-workspace/Sources/Align.swift:113:43: error: cannot find type 'NSLayoutConstraint' in scope
111 |     let multiplier: CGFloat
112 |
113 |     init(_ item: LayoutItem, _ attribute: NSLayoutConstraint.Attribute, offset: CGFloat = 0, multiplier: CGFloat = 1) {
    |                                           `- error: cannot find type 'NSLayoutConstraint' in scope
114 |         self.item = item; self.attribute = attribute; self.offset = offset; self.multiplier = multiplier
115 |     }
/host/spi-builder-workspace/Sources/Align.swift:113:81: error: cannot find type 'CGFloat' in scope
111 |     let multiplier: CGFloat
112 |
113 |     init(_ item: LayoutItem, _ attribute: NSLayoutConstraint.Attribute, offset: CGFloat = 0, multiplier: CGFloat = 1) {
    |                                                                                 `- error: cannot find type 'CGFloat' in scope
114 |         self.item = item; self.attribute = attribute; self.offset = offset; self.multiplier = multiplier
115 |     }
/host/spi-builder-workspace/Sources/Align.swift:113:106: error: cannot find type 'CGFloat' in scope
111 |     let multiplier: CGFloat
112 |
113 |     init(_ item: LayoutItem, _ attribute: NSLayoutConstraint.Attribute, offset: CGFloat = 0, multiplier: CGFloat = 1) {
    |                                                                                                          `- error: cannot find type 'CGFloat' in scope
114 |         self.item = item; self.attribute = attribute; self.offset = offset; self.multiplier = multiplier
115 |     }
/host/spi-builder-workspace/Sources/Align.swift:120:39: error: cannot find type 'CGFloat' in scope
118 |     ///
119 |     /// - tip: Consider using a convenience operator instead: `view.anchors.top + 10`.
120 |     public func offsetting(by offset: CGFloat) -> Anchor {
    |                                       `- error: cannot find type 'CGFloat' in scope
121 |         Anchor(item, attribute, offset: self.offset + offset, multiplier: self.multiplier)
122 |     }
/host/spi-builder-workspace/Sources/Align.swift:127:43: error: cannot find type 'CGFloat' in scope
125 |     ///
126 |     /// - tip: Consider using a convenience operator instead: `view.anchors.height * 2`.
127 |     public func multiplied(by multiplier: CGFloat) -> Anchor {
    |                                           `- error: cannot find type 'CGFloat' in scope
128 |         Anchor(item, attribute, offset: self.offset * multiplier, multiplier: self.multiplier * multiplier)
129 |     }
/host/spi-builder-workspace/Sources/Align.swift:133:75: error: cannot find type 'CGFloat' in scope
131 |
132 | /// Returns a new anchor offset by a given amount.
133 | @MainActor public func + <Type, Axis>(anchor: Anchor<Type, Axis>, offset: CGFloat) -> Anchor<Type, Axis> {
    |                                                                           `- error: cannot find type 'CGFloat' in scope
134 |     anchor.offsetting(by: offset)
135 | }
/host/spi-builder-workspace/Sources/Align.swift:138:75: error: cannot find type 'CGFloat' in scope
136 |
137 | /// Returns a new anchor offset by a given amount.
138 | @MainActor public func - <Type, Axis>(anchor: Anchor<Type, Axis>, offset: CGFloat) -> Anchor<Type, Axis> {
    |                                                                           `- error: cannot find type 'CGFloat' in scope
139 |     anchor.offsetting(by: -offset)
140 | }
/host/spi-builder-workspace/Sources/Align.swift:143:79: error: cannot find type 'CGFloat' in scope
141 |
142 | /// Returns a new anchor with an constant multiplied by the given amount.
143 | @MainActor public func * <Type, Axis>(anchor: Anchor<Type, Axis>, multiplier: CGFloat) -> Anchor<Type, Axis> {
    |                                                                               `- error: cannot find type 'CGFloat' in scope
144 |     anchor.multiplied(by: multiplier)
145 | }
/host/spi-builder-workspace/Sources/Align.swift:150:113: error: cannot find type 'CGFloat' in scope
148 |
149 | @MainActor public extension Anchor where Type: AnchorType.Alignment {
150 |     @discardableResult func equal<OtherType: AnchorType.Alignment>(_ anchor: Anchor<OtherType, Axis>, constant: CGFloat = 0) -> NSLayoutConstraint {
    |                                                                                                                 `- error: cannot find type 'CGFloat' in scope
151 |         Constraints.add(self, anchor, constant: constant, relation: .equal)
152 |     }
/host/spi-builder-workspace/Sources/Align.swift:150:129: error: cannot find type 'NSLayoutConstraint' in scope
148 |
149 | @MainActor public extension Anchor where Type: AnchorType.Alignment {
150 |     @discardableResult func equal<OtherType: AnchorType.Alignment>(_ anchor: Anchor<OtherType, Axis>, constant: CGFloat = 0) -> NSLayoutConstraint {
    |                                                                                                                                 `- error: cannot find type 'NSLayoutConstraint' in scope
151 |         Constraints.add(self, anchor, constant: constant, relation: .equal)
152 |     }
/host/spi-builder-workspace/Sources/Align.swift:154:126: error: cannot find type 'CGFloat' in scope
152 |     }
153 |
154 |     @discardableResult func greaterThanOrEqual<OtherType: AnchorType.Alignment>(_ anchor: Anchor<OtherType, Axis>, constant: CGFloat = 0) -> NSLayoutConstraint {
    |                                                                                                                              `- error: cannot find type 'CGFloat' in scope
155 |         Constraints.add(self, anchor, constant: constant, relation: .greaterThanOrEqual)
156 |     }
/host/spi-builder-workspace/Sources/Align.swift:154:142: error: cannot find type 'NSLayoutConstraint' in scope
152 |     }
153 |
154 |     @discardableResult func greaterThanOrEqual<OtherType: AnchorType.Alignment>(_ anchor: Anchor<OtherType, Axis>, constant: CGFloat = 0) -> NSLayoutConstraint {
    |                                                                                                                                              `- error: cannot find type 'NSLayoutConstraint' in scope
155 |         Constraints.add(self, anchor, constant: constant, relation: .greaterThanOrEqual)
156 |     }
/host/spi-builder-workspace/Sources/Align.swift:158:123: error: cannot find type 'CGFloat' in scope
156 |     }
157 |
158 |     @discardableResult func lessThanOrEqual<OtherType: AnchorType.Alignment>(_ anchor: Anchor<OtherType, Axis>, constant: CGFloat = 0) -> NSLayoutConstraint {
    |                                                                                                                           `- error: cannot find type 'CGFloat' in scope
159 |         Constraints.add(self, anchor, constant: constant, relation: .lessThanOrEqual)
160 |     }
/host/spi-builder-workspace/Sources/Align.swift:158:139: error: cannot find type 'NSLayoutConstraint' in scope
156 |     }
157 |
158 |     @discardableResult func lessThanOrEqual<OtherType: AnchorType.Alignment>(_ anchor: Anchor<OtherType, Axis>, constant: CGFloat = 0) -> NSLayoutConstraint {
    |                                                                                                                                           `- error: cannot find type 'NSLayoutConstraint' in scope
159 |         Constraints.add(self, anchor, constant: constant, relation: .lessThanOrEqual)
160 |     }
/host/spi-builder-workspace/Sources/Align.swift:166:129: error: cannot find type 'CGFloat' in scope
164 |
165 | @MainActor public extension Anchor where Type: AnchorType.Dimension {
166 |     @discardableResult func equal<OtherType: AnchorType.Dimension, OtherAxis>(_ anchor: Anchor<OtherType, OtherAxis>, constant: CGFloat = 0) -> NSLayoutConstraint {
    |                                                                                                                                 `- error: cannot find type 'CGFloat' in scope
167 |         Constraints.add(self, anchor, constant: constant, relation: .equal)
168 |     }
/host/spi-builder-workspace/Sources/Align.swift:166:145: error: cannot find type 'NSLayoutConstraint' in scope
164 |
165 | @MainActor public extension Anchor where Type: AnchorType.Dimension {
166 |     @discardableResult func equal<OtherType: AnchorType.Dimension, OtherAxis>(_ anchor: Anchor<OtherType, OtherAxis>, constant: CGFloat = 0) -> NSLayoutConstraint {
    |                                                                                                                                                 `- error: cannot find type 'NSLayoutConstraint' in scope
167 |         Constraints.add(self, anchor, constant: constant, relation: .equal)
168 |     }
/host/spi-builder-workspace/Sources/Align.swift:170:142: error: cannot find type 'CGFloat' in scope
168 |     }
169 |
170 |     @discardableResult func greaterThanOrEqual<OtherType: AnchorType.Dimension, OtherAxis>(_ anchor: Anchor<OtherType, OtherAxis>, constant: CGFloat = 0) -> NSLayoutConstraint {
    |                                                                                                                                              `- error: cannot find type 'CGFloat' in scope
171 |         Constraints.add(self, anchor, constant: constant, relation: .greaterThanOrEqual)
172 |     }
/host/spi-builder-workspace/Sources/Align.swift:170:158: error: cannot find type 'NSLayoutConstraint' in scope
168 |     }
169 |
170 |     @discardableResult func greaterThanOrEqual<OtherType: AnchorType.Dimension, OtherAxis>(_ anchor: Anchor<OtherType, OtherAxis>, constant: CGFloat = 0) -> NSLayoutConstraint {
    |                                                                                                                                                              `- error: cannot find type 'NSLayoutConstraint' in scope
171 |         Constraints.add(self, anchor, constant: constant, relation: .greaterThanOrEqual)
172 |     }
/host/spi-builder-workspace/Sources/Align.swift:174:139: error: cannot find type 'CGFloat' in scope
172 |     }
173 |
174 |     @discardableResult func lessThanOrEqual<OtherType: AnchorType.Dimension, OtherAxis>(_ anchor: Anchor<OtherType, OtherAxis>, constant: CGFloat = 0) -> NSLayoutConstraint {
    |                                                                                                                                           `- error: cannot find type 'CGFloat' in scope
175 |         Constraints.add(self, anchor, constant: constant, relation: .lessThanOrEqual)
176 |     }
/host/spi-builder-workspace/Sources/Align.swift:174:155: error: cannot find type 'NSLayoutConstraint' in scope
172 |     }
173 |
174 |     @discardableResult func lessThanOrEqual<OtherType: AnchorType.Dimension, OtherAxis>(_ anchor: Anchor<OtherType, OtherAxis>, constant: CGFloat = 0) -> NSLayoutConstraint {
    |                                                                                                                                                           `- error: cannot find type 'NSLayoutConstraint' in scope
175 |         Constraints.add(self, anchor, constant: constant, relation: .lessThanOrEqual)
176 |     }
/host/spi-builder-workspace/Sources/Align.swift:182:59: error: cannot find type 'NSLayoutConstraint' in scope
180 |
181 | @MainActor public extension Anchor where Type: AnchorType.Dimension {
182 |     @discardableResult func equal(_ constant: CGFloat) -> NSLayoutConstraint {
    |                                                           `- error: cannot find type 'NSLayoutConstraint' in scope
183 |         Constraints.add(item: item, attribute: attribute, relatedBy: .equal, constant: constant)
184 |     }
/host/spi-builder-workspace/Sources/Align.swift:182:47: error: cannot find type 'CGFloat' in scope
180 |
181 | @MainActor public extension Anchor where Type: AnchorType.Dimension {
182 |     @discardableResult func equal(_ constant: CGFloat) -> NSLayoutConstraint {
    |                                               `- error: cannot find type 'CGFloat' in scope
183 |         Constraints.add(item: item, attribute: attribute, relatedBy: .equal, constant: constant)
184 |     }
/host/spi-builder-workspace/Sources/Align.swift:186:72: error: cannot find type 'NSLayoutConstraint' in scope
184 |     }
185 |
186 |     @discardableResult func greaterThanOrEqual(_ constant: CGFloat) -> NSLayoutConstraint {
    |                                                                        `- error: cannot find type 'NSLayoutConstraint' in scope
187 |         Constraints.add(item: item, attribute: attribute, relatedBy: .greaterThanOrEqual, constant: constant)
188 |     }
/host/spi-builder-workspace/Sources/Align.swift:186:60: error: cannot find type 'CGFloat' in scope
184 |     }
185 |
186 |     @discardableResult func greaterThanOrEqual(_ constant: CGFloat) -> NSLayoutConstraint {
    |                                                            `- error: cannot find type 'CGFloat' in scope
187 |         Constraints.add(item: item, attribute: attribute, relatedBy: .greaterThanOrEqual, constant: constant)
188 |     }
/host/spi-builder-workspace/Sources/Align.swift:190:69: error: cannot find type 'NSLayoutConstraint' in scope
188 |     }
189 |
190 |     @discardableResult func lessThanOrEqual(_ constant: CGFloat) -> NSLayoutConstraint {
    |                                                                     `- error: cannot find type 'NSLayoutConstraint' in scope
191 |         Constraints.add(item: item, attribute: attribute, relatedBy: .lessThanOrEqual, constant: constant)
192 |     }
/host/spi-builder-workspace/Sources/Align.swift:190:57: error: cannot find type 'CGFloat' in scope
188 |     }
189 |
190 |     @discardableResult func lessThanOrEqual(_ constant: CGFloat) -> NSLayoutConstraint {
    |                                                         `- error: cannot find type 'CGFloat' in scope
191 |         Constraints.add(item: item, attribute: attribute, relatedBy: .lessThanOrEqual, constant: constant)
192 |     }
/host/spi-builder-workspace/Sources/Align.swift:195:72: error: cannot find type 'NSLayoutConstraint' in scope
193 |
194 |     /// Clamps the dimension of a view to the given limiting range.
195 |     @discardableResult func clamp(to limits: ClosedRange<CGFloat>) -> [NSLayoutConstraint] {
    |                                                                        `- error: cannot find type 'NSLayoutConstraint' in scope
196 |         [greaterThanOrEqual(limits.lowerBound), lessThanOrEqual(limits.upperBound)]
197 |     }
/host/spi-builder-workspace/Sources/Align.swift:195:58: error: cannot find type 'CGFloat' in scope
193 |
194 |     /// Clamps the dimension of a view to the given limiting range.
195 |     @discardableResult func clamp(to limits: ClosedRange<CGFloat>) -> [NSLayoutConstraint] {
    |                                                          `- error: cannot find type 'CGFloat' in scope
196 |         [greaterThanOrEqual(limits.lowerBound), lessThanOrEqual(limits.upperBound)]
197 |     }
/host/spi-builder-workspace/Sources/Align.swift:204:89: error: cannot find type 'NSLayoutConstraint' in scope
202 | @MainActor public extension Anchor where Type: AnchorType.Edge {
203 |     /// Pins the edge to the respected edges of the given container.
204 |     @discardableResult func pin(to container: LayoutItem? = nil, inset: CGFloat = 0) -> NSLayoutConstraint {
    |                                                                                         `- error: cannot find type 'NSLayoutConstraint' in scope
205 |         let isInverted = [.trailing, .right, .bottom].contains(attribute)
206 |         return Constraints.add(self, toItem: container ?? item.superview!, attribute: attribute, constant: (isInverted ? -inset : inset))
/host/spi-builder-workspace/Sources/Align.swift:204:73: error: cannot find type 'CGFloat' in scope
202 | @MainActor public extension Anchor where Type: AnchorType.Edge {
203 |     /// Pins the edge to the respected edges of the given container.
204 |     @discardableResult func pin(to container: LayoutItem? = nil, inset: CGFloat = 0) -> NSLayoutConstraint {
    |                                                                         `- error: cannot find type 'CGFloat' in scope
205 |         let isInverted = [.trailing, .right, .bottom].contains(attribute)
206 |         return Constraints.add(self, toItem: container ?? item.superview!, attribute: attribute, constant: (isInverted ? -inset : inset))
/host/spi-builder-workspace/Sources/Align.swift:210:76: error: cannot find type 'CGFloat' in scope
208 |
209 |     /// Adds spacing between the current anchors.
210 |     @discardableResult func spacing<OtherType: AnchorType.Edge>(_ spacing: CGFloat, to anchor: Anchor<OtherType, Axis>, relation: NSLayoutConstraint.Relation = .equal) -> NSLayoutConstraint {
    |                                                                            `- error: cannot find type 'CGFloat' in scope
211 |         let isInverted = (attribute == .bottom && anchor.attribute == .top) ||
212 |         (attribute == .right && anchor.attribute == .left) ||
/host/spi-builder-workspace/Sources/Align.swift:210:131: error: cannot find type 'NSLayoutConstraint' in scope
208 |
209 |     /// Adds spacing between the current anchors.
210 |     @discardableResult func spacing<OtherType: AnchorType.Edge>(_ spacing: CGFloat, to anchor: Anchor<OtherType, Axis>, relation: NSLayoutConstraint.Relation = .equal) -> NSLayoutConstraint {
    |                                                                                                                                   `- error: cannot find type 'NSLayoutConstraint' in scope
211 |         let isInverted = (attribute == .bottom && anchor.attribute == .top) ||
212 |         (attribute == .right && anchor.attribute == .left) ||
/host/spi-builder-workspace/Sources/Align.swift:210:172: error: cannot find type 'NSLayoutConstraint' in scope
208 |
209 |     /// Adds spacing between the current anchors.
210 |     @discardableResult func spacing<OtherType: AnchorType.Edge>(_ spacing: CGFloat, to anchor: Anchor<OtherType, Axis>, relation: NSLayoutConstraint.Relation = .equal) -> NSLayoutConstraint {
    |                                                                                                                                                                            `- error: cannot find type 'NSLayoutConstraint' in scope
211 |         let isInverted = (attribute == .bottom && anchor.attribute == .top) ||
212 |         (attribute == .right && anchor.attribute == .left) ||
/host/spi-builder-workspace/Sources/Align.swift:222:59: error: cannot find type 'NSLayoutConstraint' in scope
220 | @MainActor public extension Anchor where Type: AnchorType.Center {
221 |     /// Aligns the axis with a superview axis.
222 |     @discardableResult func align(offset: CGFloat = 0) -> NSLayoutConstraint {
    |                                                           `- error: cannot find type 'NSLayoutConstraint' in scope
223 |         Constraints.add(self, toItem: item.superview!, attribute: attribute, constant: offset)
224 |     }
/host/spi-builder-workspace/Sources/Align.swift:222:43: error: cannot find type 'CGFloat' in scope
220 | @MainActor public extension Anchor where Type: AnchorType.Center {
221 |     /// Aligns the axis with a superview axis.
222 |     @discardableResult func align(offset: CGFloat = 0) -> NSLayoutConstraint {
    |                                           `- error: cannot find type 'CGFloat' in scope
223 |         Constraints.add(self, toItem: item.superview!, attribute: attribute, constant: offset)
224 |     }
/host/spi-builder-workspace/Sources/Align.swift:242:29: error: cannot find type 'NSLayoutConstraint' in scope
240 |     public typealias Axis = NSLayoutConstraint.Axis
241 | #else
242 |     public typealias Axis = NSLayoutConstraint.Orientation
    |                             `- error: cannot find type 'NSLayoutConstraint' in scope
243 | #endif
244 |
/host/spi-builder-workspace/Sources/Align.swift:247:95: error: cannot find type 'NSLayoutConstraint' in scope
245 |     // MARK: Core API
246 |
247 |     @discardableResult public func equal(_ item2: LayoutItem, insets: EdgeInsets = .zero) -> [NSLayoutConstraint] {
    |                                                                                               `- error: cannot find type 'NSLayoutConstraint' in scope
248 |         pin(to: item2, insets: insets)
249 |     }
/host/spi-builder-workspace/Sources/Align.swift:247:71: error: cannot find type 'EdgeInsets' in scope
245 |     // MARK: Core API
246 |
247 |     @discardableResult public func equal(_ item2: LayoutItem, insets: EdgeInsets = .zero) -> [NSLayoutConstraint] {
    |                                                                       `- error: cannot find type 'EdgeInsets' in scope
248 |         pin(to: item2, insets: insets)
249 |     }
/host/spi-builder-workspace/Sources/Align.swift:251:105: error: cannot find type 'NSLayoutConstraint' in scope
249 |     }
250 |
251 |     @discardableResult public func lessThanOrEqual(_ item2: LayoutItem, insets: EdgeInsets = .zero) -> [NSLayoutConstraint] {
    |                                                                                                         `- error: cannot find type 'NSLayoutConstraint' in scope
252 |         pin(to: item2, insets: insets, axis: nil, alignment: .center, isCenteringEnabled: false)
253 |     }
/host/spi-builder-workspace/Sources/Align.swift:251:81: error: cannot find type 'EdgeInsets' in scope
249 |     }
250 |
251 |     @discardableResult public func lessThanOrEqual(_ item2: LayoutItem, insets: EdgeInsets = .zero) -> [NSLayoutConstraint] {
    |                                                                                 `- error: cannot find type 'EdgeInsets' in scope
252 |         pin(to: item2, insets: insets, axis: nil, alignment: .center, isCenteringEnabled: false)
253 |     }
/host/spi-builder-workspace/Sources/Align.swift:255:84: error: cannot find type 'NSLayoutConstraint' in scope
253 |     }
254 |
255 |     @discardableResult public func equal(_ item2: LayoutItem, insets: CGFloat) -> [NSLayoutConstraint] {
    |                                                                                    `- error: cannot find type 'NSLayoutConstraint' in scope
256 |         pin(to: item2, insets: EdgeInsets(top: insets, left: insets, bottom: insets, right: insets))
257 |     }
/host/spi-builder-workspace/Sources/Align.swift:255:71: error: cannot find type 'CGFloat' in scope
253 |     }
254 |
255 |     @discardableResult public func equal(_ item2: LayoutItem, insets: CGFloat) -> [NSLayoutConstraint] {
    |                                                                       `- error: cannot find type 'CGFloat' in scope
256 |         pin(to: item2, insets: EdgeInsets(top: insets, left: insets, bottom: insets, right: insets))
257 |     }
/host/spi-builder-workspace/Sources/Align.swift:259:94: error: cannot find type 'NSLayoutConstraint' in scope
257 |     }
258 |
259 |     @discardableResult public func lessThanOrEqual(_ item2: LayoutItem, insets: CGFloat) -> [NSLayoutConstraint] {
    |                                                                                              `- error: cannot find type 'NSLayoutConstraint' in scope
260 |         pin(to: item2, insets: EdgeInsets(top: insets, left: insets, bottom: insets, right: insets), axis: nil, alignment: .center, isCenteringEnabled: false)
261 |     }
/host/spi-builder-workspace/Sources/Align.swift:259:81: error: cannot find type 'CGFloat' in scope
257 |     }
258 |
259 |     @discardableResult public func lessThanOrEqual(_ item2: LayoutItem, insets: CGFloat) -> [NSLayoutConstraint] {
    |                                                                                 `- error: cannot find type 'CGFloat' in scope
260 |         pin(to: item2, insets: EdgeInsets(top: insets, left: insets, bottom: insets, right: insets), axis: nil, alignment: .center, isCenteringEnabled: false)
261 |     }
/host/spi-builder-workspace/Sources/Align.swift:275:139: error: cannot find type 'NSLayoutConstraint' in scope
273 |     /// - parameter alignment: `.fill` by default, see `Alignment` for a list of
274 |     /// the available options.
275 |     @discardableResult public func pin(to item2: LayoutItem? = nil, insets: CGFloat, axis: Axis? = nil, alignment: Alignment = .fill) -> [NSLayoutConstraint] {
    |                                                                                                                                           `- error: cannot find type 'NSLayoutConstraint' in scope
276 |         pin(to: item2, insets: EdgeInsets(top: insets, left: insets, bottom: insets, right: insets), axis: axis, alignment: alignment)
277 |     }
/host/spi-builder-workspace/Sources/Align.swift:275:77: error: cannot find type 'CGFloat' in scope
273 |     /// - parameter alignment: `.fill` by default, see `Alignment` for a list of
274 |     /// the available options.
275 |     @discardableResult public func pin(to item2: LayoutItem? = nil, insets: CGFloat, axis: Axis? = nil, alignment: Alignment = .fill) -> [NSLayoutConstraint] {
    |                                                                             `- error: cannot find type 'CGFloat' in scope
276 |         pin(to: item2, insets: EdgeInsets(top: insets, left: insets, bottom: insets, right: insets), axis: axis, alignment: alignment)
277 |     }
/host/spi-builder-workspace/Sources/Align.swift:289:150: error: cannot find type 'NSLayoutConstraint' in scope
287 |     /// - parameter alignment: `.fill` by default, see `Alignment` for a list of
288 |     /// the available options.
289 |     @discardableResult public func pin(to item2: LayoutItem? = nil, insets: EdgeInsets = .zero, axis: Axis? = nil, alignment: Alignment = .fill) -> [NSLayoutConstraint] {
    |                                                                                                                                                      `- error: cannot find type 'NSLayoutConstraint' in scope
290 |         pin(to: item2, insets: insets, axis: axis, alignment: alignment, isCenteringEnabled: true)
291 |     }
/host/spi-builder-workspace/Sources/Align.swift:289:77: error: cannot find type 'EdgeInsets' in scope
287 |     /// - parameter alignment: `.fill` by default, see `Alignment` for a list of
288 |     /// the available options.
289 |     @discardableResult public func pin(to item2: LayoutItem? = nil, insets: EdgeInsets = .zero, axis: Axis? = nil, alignment: Alignment = .fill) -> [NSLayoutConstraint] {
    |                                                                             `- error: cannot find type 'EdgeInsets' in scope
290 |         pin(to: item2, insets: insets, axis: axis, alignment: alignment, isCenteringEnabled: true)
291 |     }
/host/spi-builder-workspace/Sources/Align.swift:293:130: error: cannot find type 'NSLayoutConstraint' in scope
291 |     }
292 |
293 |     private func pin(to item2: LayoutItem?, insets: EdgeInsets, axis: Axis?, alignment: Alignment, isCenteringEnabled: Bool) -> [NSLayoutConstraint] {
    |                                                                                                                                  `- error: cannot find type 'NSLayoutConstraint' in scope
294 |         let item2 = item2 ?? item.superview!
295 |         let left: NSLayoutConstraint.Attribute = isAbsolute ? .left : .leading
/host/spi-builder-workspace/Sources/Align.swift:293:53: error: cannot find type 'EdgeInsets' in scope
291 |     }
292 |
293 |     private func pin(to item2: LayoutItem?, insets: EdgeInsets, axis: Axis?, alignment: Alignment, isCenteringEnabled: Bool) -> [NSLayoutConstraint] {
    |                                                     `- error: cannot find type 'EdgeInsets' in scope
294 |         let item2 = item2 ?? item.superview!
295 |         let left: NSLayoutConstraint.Attribute = isAbsolute ? .left : .leading
/host/spi-builder-workspace/Sources/Align.swift:413:83: error: cannot find type 'CGPoint' in scope
411 |     // MARK: Core API
412 |
413 |     @discardableResult public func equal<Item: LayoutItem>(_ item2: Item, offset: CGPoint = .zero) -> [NSLayoutConstraint] {
    |                                                                                   `- error: cannot find type 'CGPoint' in scope
414 |         [x.equal(item2.anchors.centerX, constant: offset.x), y.equal(item2.anchors.centerY, constant: offset.y)]
415 |     }
/host/spi-builder-workspace/Sources/Align.swift:413:104: error: cannot find type 'NSLayoutConstraint' in scope
411 |     // MARK: Core API
412 |
413 |     @discardableResult public func equal<Item: LayoutItem>(_ item2: Item, offset: CGPoint = .zero) -> [NSLayoutConstraint] {
    |                                                                                                        `- error: cannot find type 'NSLayoutConstraint' in scope
414 |         [x.equal(item2.anchors.centerX, constant: offset.x), y.equal(item2.anchors.centerY, constant: offset.y)]
415 |     }
/host/spi-builder-workspace/Sources/Align.swift:417:96: error: cannot find type 'CGPoint' in scope
415 |     }
416 |
417 |     @discardableResult public func greaterThanOrEqual<Item: LayoutItem>(_ item2: Item, offset: CGPoint = .zero) -> [NSLayoutConstraint] {
    |                                                                                                `- error: cannot find type 'CGPoint' in scope
418 |         [x.greaterThanOrEqual(item2.anchors.centerX, constant: offset.x), y.greaterThanOrEqual(item2.anchors.centerY, constant: offset.y)]
419 |     }
/host/spi-builder-workspace/Sources/Align.swift:417:117: error: cannot find type 'NSLayoutConstraint' in scope
415 |     }
416 |
417 |     @discardableResult public func greaterThanOrEqual<Item: LayoutItem>(_ item2: Item, offset: CGPoint = .zero) -> [NSLayoutConstraint] {
    |                                                                                                                     `- error: cannot find type 'NSLayoutConstraint' in scope
418 |         [x.greaterThanOrEqual(item2.anchors.centerX, constant: offset.x), y.greaterThanOrEqual(item2.anchors.centerY, constant: offset.y)]
419 |     }
/host/spi-builder-workspace/Sources/Align.swift:421:93: error: cannot find type 'CGPoint' in scope
419 |     }
420 |
421 |     @discardableResult public func lessThanOrEqual<Item: LayoutItem>(_ item2: Item, offset: CGPoint = .zero) -> [NSLayoutConstraint] {
    |                                                                                             `- error: cannot find type 'CGPoint' in scope
422 |         [x.lessThanOrEqual(item2.anchors.centerX, constant: offset.x), y.lessThanOrEqual(item2.anchors.centerY, constant: offset.y)]
423 |     }
/host/spi-builder-workspace/Sources/Align.swift:421:114: error: cannot find type 'NSLayoutConstraint' in scope
419 |     }
420 |
421 |     @discardableResult public func lessThanOrEqual<Item: LayoutItem>(_ item2: Item, offset: CGPoint = .zero) -> [NSLayoutConstraint] {
    |                                                                                                                  `- error: cannot find type 'NSLayoutConstraint' in scope
422 |         [x.lessThanOrEqual(item2.anchors.centerX, constant: offset.x), y.lessThanOrEqual(item2.anchors.centerY, constant: offset.y)]
423 |     }
/host/spi-builder-workspace/Sources/Align.swift:428:48: error: cannot find type 'NSLayoutConstraint' in scope
426 |
427 |     /// Centers the view in the superview.
428 |     @discardableResult public func align() -> [NSLayoutConstraint] {
    |                                                `- error: cannot find type 'NSLayoutConstraint' in scope
429 |         [x.align(), y.align()]
430 |     }
/host/spi-builder-workspace/Sources/Align.swift:433:81: error: cannot find type 'NSLayoutConstraint' in scope
431 |
432 |     /// Makes the axis equal to the other collection of axis.
433 |     @discardableResult public func align<Item: LayoutItem>(with item: Item) -> [NSLayoutConstraint] {
    |                                                                                 `- error: cannot find type 'NSLayoutConstraint' in scope
434 |         [x.equal(item.anchors.centerX), y.equal(item.anchors.centerY)]
435 |     }
/host/spi-builder-workspace/Sources/Align.swift:448:62: error: cannot find type 'NSLayoutConstraint' in scope
446 |
447 |     /// Set the size of item.
448 |     @discardableResult public func equal(_ size: CGSize) -> [NSLayoutConstraint] {
    |                                                              `- error: cannot find type 'NSLayoutConstraint' in scope
449 |         [width.equal(size.width), height.equal(size.height)]
450 |     }
/host/spi-builder-workspace/Sources/Align.swift:448:50: error: cannot find type 'CGSize' in scope
446 |
447 |     /// Set the size of item.
448 |     @discardableResult public func equal(_ size: CGSize) -> [NSLayoutConstraint] {
    |                                                  `- error: cannot find type 'CGSize' in scope
449 |         [width.equal(size.width), height.equal(size.height)]
450 |     }
/host/spi-builder-workspace/Sources/Align.swift:453:74: error: cannot find type 'NSLayoutConstraint' in scope
451 |
452 |     /// Set the size of item.
453 |     @discardableResult public func greaterThanOrEqul(_ size: CGSize) -> [NSLayoutConstraint] {
    |                                                                          `- error: cannot find type 'NSLayoutConstraint' in scope
454 |         [width.greaterThanOrEqual(size.width), height.greaterThanOrEqual(size.height)]
455 |     }
/host/spi-builder-workspace/Sources/Align.swift:453:62: error: cannot find type 'CGSize' in scope
451 |
452 |     /// Set the size of item.
453 |     @discardableResult public func greaterThanOrEqul(_ size: CGSize) -> [NSLayoutConstraint] {
    |                                                              `- error: cannot find type 'CGSize' in scope
454 |         [width.greaterThanOrEqual(size.width), height.greaterThanOrEqual(size.height)]
455 |     }
/host/spi-builder-workspace/Sources/Align.swift:458:72: error: cannot find type 'NSLayoutConstraint' in scope
456 |
457 |     /// Set the size of item.
458 |     @discardableResult public func lessThanOrEqual(_ size: CGSize) -> [NSLayoutConstraint] {
    |                                                                        `- error: cannot find type 'NSLayoutConstraint' in scope
459 |         [width.lessThanOrEqual(size.width), height.lessThanOrEqual(size.height)]
460 |     }
/host/spi-builder-workspace/Sources/Align.swift:458:60: error: cannot find type 'CGSize' in scope
456 |
457 |     /// Set the size of item.
458 |     @discardableResult public func lessThanOrEqual(_ size: CGSize) -> [NSLayoutConstraint] {
    |                                                            `- error: cannot find type 'CGSize' in scope
459 |         [width.lessThanOrEqual(size.width), height.lessThanOrEqual(size.height)]
460 |     }
/host/spi-builder-workspace/Sources/Align.swift:463:82: error: cannot find type 'CGSize' in scope
461 |
462 |     /// Makes the size of the item equal to the size of the other item.
463 |     @discardableResult public func equal<Item: LayoutItem>(_ item: Item, insets: CGSize = .zero, multiplier: CGFloat = 1) -> [NSLayoutConstraint] {
    |                                                                                  `- error: cannot find type 'CGSize' in scope
464 |         [width.equal(item.anchors.width * multiplier - insets.width), height.equal(item.anchors.height * multiplier - insets.height)]
465 |     }
/host/spi-builder-workspace/Sources/Align.swift:463:110: error: cannot find type 'CGFloat' in scope
461 |
462 |     /// Makes the size of the item equal to the size of the other item.
463 |     @discardableResult public func equal<Item: LayoutItem>(_ item: Item, insets: CGSize = .zero, multiplier: CGFloat = 1) -> [NSLayoutConstraint] {
    |                                                                                                              `- error: cannot find type 'CGFloat' in scope
464 |         [width.equal(item.anchors.width * multiplier - insets.width), height.equal(item.anchors.height * multiplier - insets.height)]
465 |     }
/host/spi-builder-workspace/Sources/Align.swift:463:127: error: cannot find type 'NSLayoutConstraint' in scope
461 |
462 |     /// Makes the size of the item equal to the size of the other item.
463 |     @discardableResult public func equal<Item: LayoutItem>(_ item: Item, insets: CGSize = .zero, multiplier: CGFloat = 1) -> [NSLayoutConstraint] {
    |                                                                                                                               `- error: cannot find type 'NSLayoutConstraint' in scope
464 |         [width.equal(item.anchors.width * multiplier - insets.width), height.equal(item.anchors.height * multiplier - insets.height)]
465 |     }
/host/spi-builder-workspace/Sources/Align.swift:467:95: error: cannot find type 'CGSize' in scope
465 |     }
466 |
467 |     @discardableResult public func greaterThanOrEqual<Item: LayoutItem>(_ item: Item, insets: CGSize = .zero, multiplier: CGFloat = 1) -> [NSLayoutConstraint] {
    |                                                                                               `- error: cannot find type 'CGSize' in scope
468 |         [width.greaterThanOrEqual(item.anchors.width * multiplier - insets.width), height.greaterThanOrEqual(item.anchors.height * multiplier - insets.height)]
469 |     }
/host/spi-builder-workspace/Sources/Align.swift:467:123: error: cannot find type 'CGFloat' in scope
465 |     }
466 |
467 |     @discardableResult public func greaterThanOrEqual<Item: LayoutItem>(_ item: Item, insets: CGSize = .zero, multiplier: CGFloat = 1) -> [NSLayoutConstraint] {
    |                                                                                                                           `- error: cannot find type 'CGFloat' in scope
468 |         [width.greaterThanOrEqual(item.anchors.width * multiplier - insets.width), height.greaterThanOrEqual(item.anchors.height * multiplier - insets.height)]
469 |     }
/host/spi-builder-workspace/Sources/Align.swift:467:140: error: cannot find type 'NSLayoutConstraint' in scope
465 |     }
466 |
467 |     @discardableResult public func greaterThanOrEqual<Item: LayoutItem>(_ item: Item, insets: CGSize = .zero, multiplier: CGFloat = 1) -> [NSLayoutConstraint] {
    |                                                                                                                                            `- error: cannot find type 'NSLayoutConstraint' in scope
468 |         [width.greaterThanOrEqual(item.anchors.width * multiplier - insets.width), height.greaterThanOrEqual(item.anchors.height * multiplier - insets.height)]
469 |     }
/host/spi-builder-workspace/Sources/Align.swift:471:92: error: cannot find type 'CGSize' in scope
469 |     }
470 |
471 |     @discardableResult public func lessThanOrEqual<Item: LayoutItem>(_ item: Item, insets: CGSize = .zero, multiplier: CGFloat = 1) -> [NSLayoutConstraint] {
    |                                                                                            `- error: cannot find type 'CGSize' in scope
472 |         [width.lessThanOrEqual(item.anchors.width * multiplier - insets.width), height.lessThanOrEqual(item.anchors.height * multiplier - insets.height)]
473 |     }
/host/spi-builder-workspace/Sources/Align.swift:471:120: error: cannot find type 'CGFloat' in scope
469 |     }
470 |
471 |     @discardableResult public func lessThanOrEqual<Item: LayoutItem>(_ item: Item, insets: CGSize = .zero, multiplier: CGFloat = 1) -> [NSLayoutConstraint] {
    |                                                                                                                        `- error: cannot find type 'CGFloat' in scope
472 |         [width.lessThanOrEqual(item.anchors.width * multiplier - insets.width), height.lessThanOrEqual(item.anchors.height * multiplier - insets.height)]
473 |     }
/host/spi-builder-workspace/Sources/Align.swift:471:137: error: cannot find type 'NSLayoutConstraint' in scope
469 |     }
470 |
471 |     @discardableResult public func lessThanOrEqual<Item: LayoutItem>(_ item: Item, insets: CGSize = .zero, multiplier: CGFloat = 1) -> [NSLayoutConstraint] {
    |                                                                                                                                         `- error: cannot find type 'NSLayoutConstraint' in scope
472 |         [width.lessThanOrEqual(item.anchors.width * multiplier - insets.width), height.lessThanOrEqual(item.anchors.height * multiplier - insets.height)]
473 |     }
/host/spi-builder-workspace/Sources/Align.swift:508:32: error: cannot find type 'NSLayoutConstraint' in scope
506 | /// ```
507 | @MainActor public final class Constraints: Collection {
508 |     public typealias Element = NSLayoutConstraint
    |                                `- error: cannot find type 'NSLayoutConstraint' in scope
509 |     public typealias Index = Int
510 |
/host/spi-builder-workspace/Sources/Align.swift:511:52: error: cannot find type 'NSLayoutConstraint' in scope
509 |     public typealias Index = Int
510 |
511 |     public nonisolated subscript(position: Int) -> NSLayoutConstraint {
    |                                                    `- error: cannot find type 'NSLayoutConstraint' in scope
512 |         get { MainActor.assumeIsolated { constraints[position] } }
513 |     }
/host/spi-builder-workspace/Sources/Align.swift:519:44: error: cannot find 'NSLayoutConstraint' in scope
517 |
518 |     /// Returns all of the created constraints.
519 |     public private(set) var constraints = [NSLayoutConstraint]()
    |                                            `- error: cannot find 'NSLayoutConstraint' in scope
520 |
521 |     /// All of the constraints created in the given closure are automatically
/host/spi-builder-workspace/Sources/Align.swift:519:43: error: cannot call value of non-function type '[Any]'
517 |
518 |     /// Returns all of the created constraints.
519 |     public private(set) var constraints = [NSLayoutConstraint]()
    |                                           `- error: cannot call value of non-function type '[Any]'
520 |
521 |     /// All of the constraints created in the given closure are automatically
/host/spi-builder-workspace/Sources/Align.swift:550:274: error: cannot find type 'NSLayoutConstraint' in scope
548 |
549 |     /// Creates and automatically installs a constraint.
550 |     static func add(item item1: Any, attribute attr1: NSLayoutConstraint.Attribute, relatedBy relation: NSLayoutConstraint.Relation = .equal, toItem item2: Any? = nil, attribute attr2: NSLayoutConstraint.Attribute? = nil, multiplier: CGFloat = 1, constant: CGFloat = 0) -> NSLayoutConstraint {
    |                                                                                                                                                                                                                                                                                  `- error: cannot find type 'NSLayoutConstraint' in scope
551 | #if os(iOS) || os(tvOS)
552 |         (item1 as? UIView)?.translatesAutoresizingMaskIntoConstraints = false
/host/spi-builder-workspace/Sources/Align.swift:550:55: error: cannot find type 'NSLayoutConstraint' in scope
548 |
549 |     /// Creates and automatically installs a constraint.
550 |     static func add(item item1: Any, attribute attr1: NSLayoutConstraint.Attribute, relatedBy relation: NSLayoutConstraint.Relation = .equal, toItem item2: Any? = nil, attribute attr2: NSLayoutConstraint.Attribute? = nil, multiplier: CGFloat = 1, constant: CGFloat = 0) -> NSLayoutConstraint {
    |                                                       `- error: cannot find type 'NSLayoutConstraint' in scope
551 | #if os(iOS) || os(tvOS)
552 |         (item1 as? UIView)?.translatesAutoresizingMaskIntoConstraints = false
/host/spi-builder-workspace/Sources/Align.swift:550:105: error: cannot find type 'NSLayoutConstraint' in scope
548 |
549 |     /// Creates and automatically installs a constraint.
550 |     static func add(item item1: Any, attribute attr1: NSLayoutConstraint.Attribute, relatedBy relation: NSLayoutConstraint.Relation = .equal, toItem item2: Any? = nil, attribute attr2: NSLayoutConstraint.Attribute? = nil, multiplier: CGFloat = 1, constant: CGFloat = 0) -> NSLayoutConstraint {
    |                                                                                                         `- error: cannot find type 'NSLayoutConstraint' in scope
551 | #if os(iOS) || os(tvOS)
552 |         (item1 as? UIView)?.translatesAutoresizingMaskIntoConstraints = false
/host/spi-builder-workspace/Sources/Align.swift:550:186: error: cannot find type 'NSLayoutConstraint' in scope
548 |
549 |     /// Creates and automatically installs a constraint.
550 |     static func add(item item1: Any, attribute attr1: NSLayoutConstraint.Attribute, relatedBy relation: NSLayoutConstraint.Relation = .equal, toItem item2: Any? = nil, attribute attr2: NSLayoutConstraint.Attribute? = nil, multiplier: CGFloat = 1, constant: CGFloat = 0) -> NSLayoutConstraint {
    |                                                                                                                                                                                          `- error: cannot find type 'NSLayoutConstraint' in scope
551 | #if os(iOS) || os(tvOS)
552 |         (item1 as? UIView)?.translatesAutoresizingMaskIntoConstraints = false
/host/spi-builder-workspace/Sources/Align.swift:550:235: error: cannot find type 'CGFloat' in scope
548 |
549 |     /// Creates and automatically installs a constraint.
550 |     static func add(item item1: Any, attribute attr1: NSLayoutConstraint.Attribute, relatedBy relation: NSLayoutConstraint.Relation = .equal, toItem item2: Any? = nil, attribute attr2: NSLayoutConstraint.Attribute? = nil, multiplier: CGFloat = 1, constant: CGFloat = 0) -> NSLayoutConstraint {
    |                                                                                                                                                                                                                                           `- error: cannot find type 'CGFloat' in scope
551 | #if os(iOS) || os(tvOS)
552 |         (item1 as? UIView)?.translatesAutoresizingMaskIntoConstraints = false
/host/spi-builder-workspace/Sources/Align.swift:550:258: error: cannot find type 'CGFloat' in scope
548 |
549 |     /// Creates and automatically installs a constraint.
550 |     static func add(item item1: Any, attribute attr1: NSLayoutConstraint.Attribute, relatedBy relation: NSLayoutConstraint.Relation = .equal, toItem item2: Any? = nil, attribute attr2: NSLayoutConstraint.Attribute? = nil, multiplier: CGFloat = 1, constant: CGFloat = 0) -> NSLayoutConstraint {
    |                                                                                                                                                                                                                                                                  `- error: cannot find type 'CGFloat' in scope
551 | #if os(iOS) || os(tvOS)
552 |         (item1 as? UIView)?.translatesAutoresizingMaskIntoConstraints = false
/host/spi-builder-workspace/Sources/Align.swift:562:93: error: cannot find type 'CGFloat' in scope
560 |
561 |     /// Creates and automatically installs a constraint between two anchors.
562 |     static func add<T1, A1, T2, A2>(_ lhs: Anchor<T1, A1>, _ rhs: Anchor<T2, A2>, constant: CGFloat = 0, multiplier: CGFloat = 1, relation: NSLayoutConstraint.Relation = .equal) -> NSLayoutConstraint {
    |                                                                                             `- error: cannot find type 'CGFloat' in scope
563 |         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)
564 |     }
/host/spi-builder-workspace/Sources/Align.swift:562:118: error: cannot find type 'CGFloat' in scope
560 |
561 |     /// Creates and automatically installs a constraint between two anchors.
562 |     static func add<T1, A1, T2, A2>(_ lhs: Anchor<T1, A1>, _ rhs: Anchor<T2, A2>, constant: CGFloat = 0, multiplier: CGFloat = 1, relation: NSLayoutConstraint.Relation = .equal) -> NSLayoutConstraint {
    |                                                                                                                      `- error: cannot find type 'CGFloat' in scope
563 |         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)
564 |     }
/host/spi-builder-workspace/Sources/Align.swift:562:141: error: cannot find type 'NSLayoutConstraint' in scope
560 |
561 |     /// Creates and automatically installs a constraint between two anchors.
562 |     static func add<T1, A1, T2, A2>(_ lhs: Anchor<T1, A1>, _ rhs: Anchor<T2, A2>, constant: CGFloat = 0, multiplier: CGFloat = 1, relation: NSLayoutConstraint.Relation = .equal) -> NSLayoutConstraint {
    |                                                                                                                                             `- error: cannot find type 'NSLayoutConstraint' in scope
563 |         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)
564 |     }
/host/spi-builder-workspace/Sources/Align.swift:562:182: error: cannot find type 'NSLayoutConstraint' in scope
560 |
561 |     /// Creates and automatically installs a constraint between two anchors.
562 |     static func add<T1, A1, T2, A2>(_ lhs: Anchor<T1, A1>, _ rhs: Anchor<T2, A2>, constant: CGFloat = 0, multiplier: CGFloat = 1, relation: NSLayoutConstraint.Relation = .equal) -> NSLayoutConstraint {
    |                                                                                                                                                                                      `- error: cannot find type 'NSLayoutConstraint' in scope
563 |         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)
564 |     }
/host/spi-builder-workspace/Sources/Align.swift:568:89: error: cannot find type 'NSLayoutConstraint' in scope
566 |     /// Creates and automatically installs a constraint between an anchor and
567 |     /// a given item.
568 |     static func add<T1, A1>(_ lhs: Anchor<T1, A1>, toItem item2: Any?, attribute attr2: NSLayoutConstraint.Attribute?, constant: CGFloat = 0, multiplier: CGFloat = 1, relation: NSLayoutConstraint.Relation = .equal) -> NSLayoutConstraint {
    |                                                                                         `- error: cannot find type 'NSLayoutConstraint' in scope
569 |         add(item: lhs.item, attribute: lhs.attribute, relatedBy: relation, toItem: item2, attribute: attr2, multiplier: multiplier / lhs.multiplier, constant: constant - lhs.offset)
570 |     }
/host/spi-builder-workspace/Sources/Align.swift:568:130: error: cannot find type 'CGFloat' in scope
566 |     /// Creates and automatically installs a constraint between an anchor and
567 |     /// a given item.
568 |     static func add<T1, A1>(_ lhs: Anchor<T1, A1>, toItem item2: Any?, attribute attr2: NSLayoutConstraint.Attribute?, constant: CGFloat = 0, multiplier: CGFloat = 1, relation: NSLayoutConstraint.Relation = .equal) -> NSLayoutConstraint {
    |                                                                                                                                  `- error: cannot find type 'CGFloat' in scope
569 |         add(item: lhs.item, attribute: lhs.attribute, relatedBy: relation, toItem: item2, attribute: attr2, multiplier: multiplier / lhs.multiplier, constant: constant - lhs.offset)
570 |     }
/host/spi-builder-workspace/Sources/Align.swift:568:155: error: cannot find type 'CGFloat' in scope
566 |     /// Creates and automatically installs a constraint between an anchor and
567 |     /// a given item.
568 |     static func add<T1, A1>(_ lhs: Anchor<T1, A1>, toItem item2: Any?, attribute attr2: NSLayoutConstraint.Attribute?, constant: CGFloat = 0, multiplier: CGFloat = 1, relation: NSLayoutConstraint.Relation = .equal) -> NSLayoutConstraint {
    |                                                                                                                                                           `- error: cannot find type 'CGFloat' in scope
569 |         add(item: lhs.item, attribute: lhs.attribute, relatedBy: relation, toItem: item2, attribute: attr2, multiplier: multiplier / lhs.multiplier, constant: constant - lhs.offset)
570 |     }
/host/spi-builder-workspace/Sources/Align.swift:568:178: error: cannot find type 'NSLayoutConstraint' in scope
566 |     /// Creates and automatically installs a constraint between an anchor and
567 |     /// a given item.
568 |     static func add<T1, A1>(_ lhs: Anchor<T1, A1>, toItem item2: Any?, attribute attr2: NSLayoutConstraint.Attribute?, constant: CGFloat = 0, multiplier: CGFloat = 1, relation: NSLayoutConstraint.Relation = .equal) -> NSLayoutConstraint {
    |                                                                                                                                                                                  `- error: cannot find type 'NSLayoutConstraint' in scope
569 |         add(item: lhs.item, attribute: lhs.attribute, relatedBy: relation, toItem: item2, attribute: attr2, multiplier: multiplier / lhs.multiplier, constant: constant - lhs.offset)
570 |     }
/host/spi-builder-workspace/Sources/Align.swift:568:219: error: cannot find type 'NSLayoutConstraint' in scope
566 |     /// Creates and automatically installs a constraint between an anchor and
567 |     /// a given item.
568 |     static func add<T1, A1>(_ lhs: Anchor<T1, A1>, toItem item2: Any?, attribute attr2: NSLayoutConstraint.Attribute?, constant: CGFloat = 0, multiplier: CGFloat = 1, relation: NSLayoutConstraint.Relation = .equal) -> NSLayoutConstraint {
    |                                                                                                                                                                                                                           `- error: cannot find type 'NSLayoutConstraint' in scope
569 |         add(item: lhs.item, attribute: lhs.attribute, relatedBy: relation, toItem: item2, attribute: attr2, multiplier: multiplier / lhs.multiplier, constant: constant - lhs.offset)
570 |     }
/host/spi-builder-workspace/Sources/Align.swift:574:47: error: cannot find type 'NSLayoutConstraint' in scope
572 |     private static var stack = [Constraints]() // this is what enabled constraint auto-installing
573 |
574 |     private static func install(_ constraint: NSLayoutConstraint) {
    |                                               `- error: cannot find type 'NSLayoutConstraint' in scope
575 |         if let group = stack.last {
576 |             group.constraints.append(constraint)
/host/spi-builder-workspace/Sources/Align.swift:507:31: error: type 'Constraints' does not conform to protocol 'Collection'
505 | /// }
506 | /// ```
507 | @MainActor public final class Constraints: Collection {
    |                               |- error: type 'Constraints' does not conform to protocol 'Collection'
    |                               `- note: add stubs for conformance
508 |     public typealias Element = NSLayoutConstraint
509 |     public typealias Index = Int
Swift.Collection.Element:2:16: note: protocol requires nested type 'Element'
1 | protocol Collection {
2 | associatedtype Element}
  |                `- note: protocol requires nested type 'Element'
3 |
/host/spi-builder-workspace/Sources/Align.swift:613:11: error: cannot find type 'NSLayoutConstraint' in scope
611 | #endif
612 |
613 | extension NSLayoutConstraint.Relation {
    |           `- error: cannot find type 'NSLayoutConstraint' in scope
614 |     var inverted: NSLayoutConstraint.Relation {
615 |         switch self {
/host/spi-builder-workspace/Sources/Align.swift:624:11: error: cannot find type 'EdgeInsets' in scope
622 | }
623 |
624 | extension EdgeInsets {
    |           `- error: cannot find type 'EdgeInsets' in scope
625 |     func inset(for attribute: NSLayoutConstraint.Attribute, edge: Bool = false) -> CGFloat {
626 |         switch attribute {
[3/3] Compiling Align Align.swift
/host/spi-builder-workspace/Sources/Align.swift:16:20: error: cannot find type 'NSView' in scope
 14 |     var superview: UIView? { get }
 15 | #else
 16 |     var superview: NSView? { get }
    |                    `- error: cannot find type 'NSView' in scope
 17 | #endif
 18 | }
/host/spi-builder-workspace/Sources/Align.swift:109:20: error: cannot find type 'NSLayoutConstraint' in scope
107 | @MainActor public struct Anchor<Type, Axis> { // type and axis are phantom types
108 |     let item: LayoutItem
109 |     let attribute: NSLayoutConstraint.Attribute
    |                    `- error: cannot find type 'NSLayoutConstraint' in scope
110 |     let offset: CGFloat
111 |     let multiplier: CGFloat
/host/spi-builder-workspace/Sources/Align.swift:110:17: error: cannot find type 'CGFloat' in scope
108 |     let item: LayoutItem
109 |     let attribute: NSLayoutConstraint.Attribute
110 |     let offset: CGFloat
    |                 `- error: cannot find type 'CGFloat' in scope
111 |     let multiplier: CGFloat
112 |
/host/spi-builder-workspace/Sources/Align.swift:111:21: error: cannot find type 'CGFloat' in scope
109 |     let attribute: NSLayoutConstraint.Attribute
110 |     let offset: CGFloat
111 |     let multiplier: CGFloat
    |                     `- error: cannot find type 'CGFloat' in scope
112 |
113 |     init(_ item: LayoutItem, _ attribute: NSLayoutConstraint.Attribute, offset: CGFloat = 0, multiplier: CGFloat = 1) {
/host/spi-builder-workspace/Sources/Align.swift:113:43: error: cannot find type 'NSLayoutConstraint' in scope
111 |     let multiplier: CGFloat
112 |
113 |     init(_ item: LayoutItem, _ attribute: NSLayoutConstraint.Attribute, offset: CGFloat = 0, multiplier: CGFloat = 1) {
    |                                           `- error: cannot find type 'NSLayoutConstraint' in scope
114 |         self.item = item; self.attribute = attribute; self.offset = offset; self.multiplier = multiplier
115 |     }
/host/spi-builder-workspace/Sources/Align.swift:113:81: error: cannot find type 'CGFloat' in scope
111 |     let multiplier: CGFloat
112 |
113 |     init(_ item: LayoutItem, _ attribute: NSLayoutConstraint.Attribute, offset: CGFloat = 0, multiplier: CGFloat = 1) {
    |                                                                                 `- error: cannot find type 'CGFloat' in scope
114 |         self.item = item; self.attribute = attribute; self.offset = offset; self.multiplier = multiplier
115 |     }
/host/spi-builder-workspace/Sources/Align.swift:113:106: error: cannot find type 'CGFloat' in scope
111 |     let multiplier: CGFloat
112 |
113 |     init(_ item: LayoutItem, _ attribute: NSLayoutConstraint.Attribute, offset: CGFloat = 0, multiplier: CGFloat = 1) {
    |                                                                                                          `- error: cannot find type 'CGFloat' in scope
114 |         self.item = item; self.attribute = attribute; self.offset = offset; self.multiplier = multiplier
115 |     }
/host/spi-builder-workspace/Sources/Align.swift:120:39: error: cannot find type 'CGFloat' in scope
118 |     ///
119 |     /// - tip: Consider using a convenience operator instead: `view.anchors.top + 10`.
120 |     public func offsetting(by offset: CGFloat) -> Anchor {
    |                                       `- error: cannot find type 'CGFloat' in scope
121 |         Anchor(item, attribute, offset: self.offset + offset, multiplier: self.multiplier)
122 |     }
/host/spi-builder-workspace/Sources/Align.swift:127:43: error: cannot find type 'CGFloat' in scope
125 |     ///
126 |     /// - tip: Consider using a convenience operator instead: `view.anchors.height * 2`.
127 |     public func multiplied(by multiplier: CGFloat) -> Anchor {
    |                                           `- error: cannot find type 'CGFloat' in scope
128 |         Anchor(item, attribute, offset: self.offset * multiplier, multiplier: self.multiplier * multiplier)
129 |     }
/host/spi-builder-workspace/Sources/Align.swift:133:75: error: cannot find type 'CGFloat' in scope
131 |
132 | /// Returns a new anchor offset by a given amount.
133 | @MainActor public func + <Type, Axis>(anchor: Anchor<Type, Axis>, offset: CGFloat) -> Anchor<Type, Axis> {
    |                                                                           `- error: cannot find type 'CGFloat' in scope
134 |     anchor.offsetting(by: offset)
135 | }
/host/spi-builder-workspace/Sources/Align.swift:138:75: error: cannot find type 'CGFloat' in scope
136 |
137 | /// Returns a new anchor offset by a given amount.
138 | @MainActor public func - <Type, Axis>(anchor: Anchor<Type, Axis>, offset: CGFloat) -> Anchor<Type, Axis> {
    |                                                                           `- error: cannot find type 'CGFloat' in scope
139 |     anchor.offsetting(by: -offset)
140 | }
/host/spi-builder-workspace/Sources/Align.swift:143:79: error: cannot find type 'CGFloat' in scope
141 |
142 | /// Returns a new anchor with an constant multiplied by the given amount.
143 | @MainActor public func * <Type, Axis>(anchor: Anchor<Type, Axis>, multiplier: CGFloat) -> Anchor<Type, Axis> {
    |                                                                               `- error: cannot find type 'CGFloat' in scope
144 |     anchor.multiplied(by: multiplier)
145 | }
/host/spi-builder-workspace/Sources/Align.swift:150:113: error: cannot find type 'CGFloat' in scope
148 |
149 | @MainActor public extension Anchor where Type: AnchorType.Alignment {
150 |     @discardableResult func equal<OtherType: AnchorType.Alignment>(_ anchor: Anchor<OtherType, Axis>, constant: CGFloat = 0) -> NSLayoutConstraint {
    |                                                                                                                 `- error: cannot find type 'CGFloat' in scope
151 |         Constraints.add(self, anchor, constant: constant, relation: .equal)
152 |     }
/host/spi-builder-workspace/Sources/Align.swift:150:129: error: cannot find type 'NSLayoutConstraint' in scope
148 |
149 | @MainActor public extension Anchor where Type: AnchorType.Alignment {
150 |     @discardableResult func equal<OtherType: AnchorType.Alignment>(_ anchor: Anchor<OtherType, Axis>, constant: CGFloat = 0) -> NSLayoutConstraint {
    |                                                                                                                                 `- error: cannot find type 'NSLayoutConstraint' in scope
151 |         Constraints.add(self, anchor, constant: constant, relation: .equal)
152 |     }
/host/spi-builder-workspace/Sources/Align.swift:154:126: error: cannot find type 'CGFloat' in scope
152 |     }
153 |
154 |     @discardableResult func greaterThanOrEqual<OtherType: AnchorType.Alignment>(_ anchor: Anchor<OtherType, Axis>, constant: CGFloat = 0) -> NSLayoutConstraint {
    |                                                                                                                              `- error: cannot find type 'CGFloat' in scope
155 |         Constraints.add(self, anchor, constant: constant, relation: .greaterThanOrEqual)
156 |     }
/host/spi-builder-workspace/Sources/Align.swift:154:142: error: cannot find type 'NSLayoutConstraint' in scope
152 |     }
153 |
154 |     @discardableResult func greaterThanOrEqual<OtherType: AnchorType.Alignment>(_ anchor: Anchor<OtherType, Axis>, constant: CGFloat = 0) -> NSLayoutConstraint {
    |                                                                                                                                              `- error: cannot find type 'NSLayoutConstraint' in scope
155 |         Constraints.add(self, anchor, constant: constant, relation: .greaterThanOrEqual)
156 |     }
/host/spi-builder-workspace/Sources/Align.swift:158:123: error: cannot find type 'CGFloat' in scope
156 |     }
157 |
158 |     @discardableResult func lessThanOrEqual<OtherType: AnchorType.Alignment>(_ anchor: Anchor<OtherType, Axis>, constant: CGFloat = 0) -> NSLayoutConstraint {
    |                                                                                                                           `- error: cannot find type 'CGFloat' in scope
159 |         Constraints.add(self, anchor, constant: constant, relation: .lessThanOrEqual)
160 |     }
/host/spi-builder-workspace/Sources/Align.swift:158:139: error: cannot find type 'NSLayoutConstraint' in scope
156 |     }
157 |
158 |     @discardableResult func lessThanOrEqual<OtherType: AnchorType.Alignment>(_ anchor: Anchor<OtherType, Axis>, constant: CGFloat = 0) -> NSLayoutConstraint {
    |                                                                                                                                           `- error: cannot find type 'NSLayoutConstraint' in scope
159 |         Constraints.add(self, anchor, constant: constant, relation: .lessThanOrEqual)
160 |     }
/host/spi-builder-workspace/Sources/Align.swift:166:129: error: cannot find type 'CGFloat' in scope
164 |
165 | @MainActor public extension Anchor where Type: AnchorType.Dimension {
166 |     @discardableResult func equal<OtherType: AnchorType.Dimension, OtherAxis>(_ anchor: Anchor<OtherType, OtherAxis>, constant: CGFloat = 0) -> NSLayoutConstraint {
    |                                                                                                                                 `- error: cannot find type 'CGFloat' in scope
167 |         Constraints.add(self, anchor, constant: constant, relation: .equal)
168 |     }
/host/spi-builder-workspace/Sources/Align.swift:166:145: error: cannot find type 'NSLayoutConstraint' in scope
164 |
165 | @MainActor public extension Anchor where Type: AnchorType.Dimension {
166 |     @discardableResult func equal<OtherType: AnchorType.Dimension, OtherAxis>(_ anchor: Anchor<OtherType, OtherAxis>, constant: CGFloat = 0) -> NSLayoutConstraint {
    |                                                                                                                                                 `- error: cannot find type 'NSLayoutConstraint' in scope
167 |         Constraints.add(self, anchor, constant: constant, relation: .equal)
168 |     }
/host/spi-builder-workspace/Sources/Align.swift:170:142: error: cannot find type 'CGFloat' in scope
168 |     }
169 |
170 |     @discardableResult func greaterThanOrEqual<OtherType: AnchorType.Dimension, OtherAxis>(_ anchor: Anchor<OtherType, OtherAxis>, constant: CGFloat = 0) -> NSLayoutConstraint {
    |                                                                                                                                              `- error: cannot find type 'CGFloat' in scope
171 |         Constraints.add(self, anchor, constant: constant, relation: .greaterThanOrEqual)
172 |     }
/host/spi-builder-workspace/Sources/Align.swift:170:158: error: cannot find type 'NSLayoutConstraint' in scope
168 |     }
169 |
170 |     @discardableResult func greaterThanOrEqual<OtherType: AnchorType.Dimension, OtherAxis>(_ anchor: Anchor<OtherType, OtherAxis>, constant: CGFloat = 0) -> NSLayoutConstraint {
    |                                                                                                                                                              `- error: cannot find type 'NSLayoutConstraint' in scope
171 |         Constraints.add(self, anchor, constant: constant, relation: .greaterThanOrEqual)
172 |     }
/host/spi-builder-workspace/Sources/Align.swift:174:139: error: cannot find type 'CGFloat' in scope
172 |     }
173 |
174 |     @discardableResult func lessThanOrEqual<OtherType: AnchorType.Dimension, OtherAxis>(_ anchor: Anchor<OtherType, OtherAxis>, constant: CGFloat = 0) -> NSLayoutConstraint {
    |                                                                                                                                           `- error: cannot find type 'CGFloat' in scope
175 |         Constraints.add(self, anchor, constant: constant, relation: .lessThanOrEqual)
176 |     }
/host/spi-builder-workspace/Sources/Align.swift:174:155: error: cannot find type 'NSLayoutConstraint' in scope
172 |     }
173 |
174 |     @discardableResult func lessThanOrEqual<OtherType: AnchorType.Dimension, OtherAxis>(_ anchor: Anchor<OtherType, OtherAxis>, constant: CGFloat = 0) -> NSLayoutConstraint {
    |                                                                                                                                                           `- error: cannot find type 'NSLayoutConstraint' in scope
175 |         Constraints.add(self, anchor, constant: constant, relation: .lessThanOrEqual)
176 |     }
/host/spi-builder-workspace/Sources/Align.swift:182:59: error: cannot find type 'NSLayoutConstraint' in scope
180 |
181 | @MainActor public extension Anchor where Type: AnchorType.Dimension {
182 |     @discardableResult func equal(_ constant: CGFloat) -> NSLayoutConstraint {
    |                                                           `- error: cannot find type 'NSLayoutConstraint' in scope
183 |         Constraints.add(item: item, attribute: attribute, relatedBy: .equal, constant: constant)
184 |     }
/host/spi-builder-workspace/Sources/Align.swift:182:47: error: cannot find type 'CGFloat' in scope
180 |
181 | @MainActor public extension Anchor where Type: AnchorType.Dimension {
182 |     @discardableResult func equal(_ constant: CGFloat) -> NSLayoutConstraint {
    |                                               `- error: cannot find type 'CGFloat' in scope
183 |         Constraints.add(item: item, attribute: attribute, relatedBy: .equal, constant: constant)
184 |     }
/host/spi-builder-workspace/Sources/Align.swift:186:72: error: cannot find type 'NSLayoutConstraint' in scope
184 |     }
185 |
186 |     @discardableResult func greaterThanOrEqual(_ constant: CGFloat) -> NSLayoutConstraint {
    |                                                                        `- error: cannot find type 'NSLayoutConstraint' in scope
187 |         Constraints.add(item: item, attribute: attribute, relatedBy: .greaterThanOrEqual, constant: constant)
188 |     }
/host/spi-builder-workspace/Sources/Align.swift:186:60: error: cannot find type 'CGFloat' in scope
184 |     }
185 |
186 |     @discardableResult func greaterThanOrEqual(_ constant: CGFloat) -> NSLayoutConstraint {
    |                                                            `- error: cannot find type 'CGFloat' in scope
187 |         Constraints.add(item: item, attribute: attribute, relatedBy: .greaterThanOrEqual, constant: constant)
188 |     }
/host/spi-builder-workspace/Sources/Align.swift:190:69: error: cannot find type 'NSLayoutConstraint' in scope
188 |     }
189 |
190 |     @discardableResult func lessThanOrEqual(_ constant: CGFloat) -> NSLayoutConstraint {
    |                                                                     `- error: cannot find type 'NSLayoutConstraint' in scope
191 |         Constraints.add(item: item, attribute: attribute, relatedBy: .lessThanOrEqual, constant: constant)
192 |     }
/host/spi-builder-workspace/Sources/Align.swift:190:57: error: cannot find type 'CGFloat' in scope
188 |     }
189 |
190 |     @discardableResult func lessThanOrEqual(_ constant: CGFloat) -> NSLayoutConstraint {
    |                                                         `- error: cannot find type 'CGFloat' in scope
191 |         Constraints.add(item: item, attribute: attribute, relatedBy: .lessThanOrEqual, constant: constant)
192 |     }
/host/spi-builder-workspace/Sources/Align.swift:195:72: error: cannot find type 'NSLayoutConstraint' in scope
193 |
194 |     /// Clamps the dimension of a view to the given limiting range.
195 |     @discardableResult func clamp(to limits: ClosedRange<CGFloat>) -> [NSLayoutConstraint] {
    |                                                                        `- error: cannot find type 'NSLayoutConstraint' in scope
196 |         [greaterThanOrEqual(limits.lowerBound), lessThanOrEqual(limits.upperBound)]
197 |     }
/host/spi-builder-workspace/Sources/Align.swift:195:58: error: cannot find type 'CGFloat' in scope
193 |
194 |     /// Clamps the dimension of a view to the given limiting range.
195 |     @discardableResult func clamp(to limits: ClosedRange<CGFloat>) -> [NSLayoutConstraint] {
    |                                                          `- error: cannot find type 'CGFloat' in scope
196 |         [greaterThanOrEqual(limits.lowerBound), lessThanOrEqual(limits.upperBound)]
197 |     }
/host/spi-builder-workspace/Sources/Align.swift:204:89: error: cannot find type 'NSLayoutConstraint' in scope
202 | @MainActor public extension Anchor where Type: AnchorType.Edge {
203 |     /// Pins the edge to the respected edges of the given container.
204 |     @discardableResult func pin(to container: LayoutItem? = nil, inset: CGFloat = 0) -> NSLayoutConstraint {
    |                                                                                         `- error: cannot find type 'NSLayoutConstraint' in scope
205 |         let isInverted = [.trailing, .right, .bottom].contains(attribute)
206 |         return Constraints.add(self, toItem: container ?? item.superview!, attribute: attribute, constant: (isInverted ? -inset : inset))
/host/spi-builder-workspace/Sources/Align.swift:204:73: error: cannot find type 'CGFloat' in scope
202 | @MainActor public extension Anchor where Type: AnchorType.Edge {
203 |     /// Pins the edge to the respected edges of the given container.
204 |     @discardableResult func pin(to container: LayoutItem? = nil, inset: CGFloat = 0) -> NSLayoutConstraint {
    |                                                                         `- error: cannot find type 'CGFloat' in scope
205 |         let isInverted = [.trailing, .right, .bottom].contains(attribute)
206 |         return Constraints.add(self, toItem: container ?? item.superview!, attribute: attribute, constant: (isInverted ? -inset : inset))
/host/spi-builder-workspace/Sources/Align.swift:210:76: error: cannot find type 'CGFloat' in scope
208 |
209 |     /// Adds spacing between the current anchors.
210 |     @discardableResult func spacing<OtherType: AnchorType.Edge>(_ spacing: CGFloat, to anchor: Anchor<OtherType, Axis>, relation: NSLayoutConstraint.Relation = .equal) -> NSLayoutConstraint {
    |                                                                            `- error: cannot find type 'CGFloat' in scope
211 |         let isInverted = (attribute == .bottom && anchor.attribute == .top) ||
212 |         (attribute == .right && anchor.attribute == .left) ||
/host/spi-builder-workspace/Sources/Align.swift:210:131: error: cannot find type 'NSLayoutConstraint' in scope
208 |
209 |     /// Adds spacing between the current anchors.
210 |     @discardableResult func spacing<OtherType: AnchorType.Edge>(_ spacing: CGFloat, to anchor: Anchor<OtherType, Axis>, relation: NSLayoutConstraint.Relation = .equal) -> NSLayoutConstraint {
    |                                                                                                                                   `- error: cannot find type 'NSLayoutConstraint' in scope
211 |         let isInverted = (attribute == .bottom && anchor.attribute == .top) ||
212 |         (attribute == .right && anchor.attribute == .left) ||
/host/spi-builder-workspace/Sources/Align.swift:210:172: error: cannot find type 'NSLayoutConstraint' in scope
208 |
209 |     /// Adds spacing between the current anchors.
210 |     @discardableResult func spacing<OtherType: AnchorType.Edge>(_ spacing: CGFloat, to anchor: Anchor<OtherType, Axis>, relation: NSLayoutConstraint.Relation = .equal) -> NSLayoutConstraint {
    |                                                                                                                                                                            `- error: cannot find type 'NSLayoutConstraint' in scope
211 |         let isInverted = (attribute == .bottom && anchor.attribute == .top) ||
212 |         (attribute == .right && anchor.attribute == .left) ||
/host/spi-builder-workspace/Sources/Align.swift:222:59: error: cannot find type 'NSLayoutConstraint' in scope
220 | @MainActor public extension Anchor where Type: AnchorType.Center {
221 |     /// Aligns the axis with a superview axis.
222 |     @discardableResult func align(offset: CGFloat = 0) -> NSLayoutConstraint {
    |                                                           `- error: cannot find type 'NSLayoutConstraint' in scope
223 |         Constraints.add(self, toItem: item.superview!, attribute: attribute, constant: offset)
224 |     }
/host/spi-builder-workspace/Sources/Align.swift:222:43: error: cannot find type 'CGFloat' in scope
220 | @MainActor public extension Anchor where Type: AnchorType.Center {
221 |     /// Aligns the axis with a superview axis.
222 |     @discardableResult func align(offset: CGFloat = 0) -> NSLayoutConstraint {
    |                                           `- error: cannot find type 'CGFloat' in scope
223 |         Constraints.add(self, toItem: item.superview!, attribute: attribute, constant: offset)
224 |     }
/host/spi-builder-workspace/Sources/Align.swift:242:29: error: cannot find type 'NSLayoutConstraint' in scope
240 |     public typealias Axis = NSLayoutConstraint.Axis
241 | #else
242 |     public typealias Axis = NSLayoutConstraint.Orientation
    |                             `- error: cannot find type 'NSLayoutConstraint' in scope
243 | #endif
244 |
/host/spi-builder-workspace/Sources/Align.swift:247:95: error: cannot find type 'NSLayoutConstraint' in scope
245 |     // MARK: Core API
246 |
247 |     @discardableResult public func equal(_ item2: LayoutItem, insets: EdgeInsets = .zero) -> [NSLayoutConstraint] {
    |                                                                                               `- error: cannot find type 'NSLayoutConstraint' in scope
248 |         pin(to: item2, insets: insets)
249 |     }
/host/spi-builder-workspace/Sources/Align.swift:247:71: error: cannot find type 'EdgeInsets' in scope
245 |     // MARK: Core API
246 |
247 |     @discardableResult public func equal(_ item2: LayoutItem, insets: EdgeInsets = .zero) -> [NSLayoutConstraint] {
    |                                                                       `- error: cannot find type 'EdgeInsets' in scope
248 |         pin(to: item2, insets: insets)
249 |     }
/host/spi-builder-workspace/Sources/Align.swift:251:105: error: cannot find type 'NSLayoutConstraint' in scope
249 |     }
250 |
251 |     @discardableResult public func lessThanOrEqual(_ item2: LayoutItem, insets: EdgeInsets = .zero) -> [NSLayoutConstraint] {
    |                                                                                                         `- error: cannot find type 'NSLayoutConstraint' in scope
252 |         pin(to: item2, insets: insets, axis: nil, alignment: .center, isCenteringEnabled: false)
253 |     }
/host/spi-builder-workspace/Sources/Align.swift:251:81: error: cannot find type 'EdgeInsets' in scope
249 |     }
250 |
251 |     @discardableResult public func lessThanOrEqual(_ item2: LayoutItem, insets: EdgeInsets = .zero) -> [NSLayoutConstraint] {
    |                                                                                 `- error: cannot find type 'EdgeInsets' in scope
252 |         pin(to: item2, insets: insets, axis: nil, alignment: .center, isCenteringEnabled: false)
253 |     }
/host/spi-builder-workspace/Sources/Align.swift:255:84: error: cannot find type 'NSLayoutConstraint' in scope
253 |     }
254 |
255 |     @discardableResult public func equal(_ item2: LayoutItem, insets: CGFloat) -> [NSLayoutConstraint] {
    |                                                                                    `- error: cannot find type 'NSLayoutConstraint' in scope
256 |         pin(to: item2, insets: EdgeInsets(top: insets, left: insets, bottom: insets, right: insets))
257 |     }
/host/spi-builder-workspace/Sources/Align.swift:255:71: error: cannot find type 'CGFloat' in scope
253 |     }
254 |
255 |     @discardableResult public func equal(_ item2: LayoutItem, insets: CGFloat) -> [NSLayoutConstraint] {
    |                                                                       `- error: cannot find type 'CGFloat' in scope
256 |         pin(to: item2, insets: EdgeInsets(top: insets, left: insets, bottom: insets, right: insets))
257 |     }
/host/spi-builder-workspace/Sources/Align.swift:259:94: error: cannot find type 'NSLayoutConstraint' in scope
257 |     }
258 |
259 |     @discardableResult public func lessThanOrEqual(_ item2: LayoutItem, insets: CGFloat) -> [NSLayoutConstraint] {
    |                                                                                              `- error: cannot find type 'NSLayoutConstraint' in scope
260 |         pin(to: item2, insets: EdgeInsets(top: insets, left: insets, bottom: insets, right: insets), axis: nil, alignment: .center, isCenteringEnabled: false)
261 |     }
/host/spi-builder-workspace/Sources/Align.swift:259:81: error: cannot find type 'CGFloat' in scope
257 |     }
258 |
259 |     @discardableResult public func lessThanOrEqual(_ item2: LayoutItem, insets: CGFloat) -> [NSLayoutConstraint] {
    |                                                                                 `- error: cannot find type 'CGFloat' in scope
260 |         pin(to: item2, insets: EdgeInsets(top: insets, left: insets, bottom: insets, right: insets), axis: nil, alignment: .center, isCenteringEnabled: false)
261 |     }
/host/spi-builder-workspace/Sources/Align.swift:275:139: error: cannot find type 'NSLayoutConstraint' in scope
273 |     /// - parameter alignment: `.fill` by default, see `Alignment` for a list of
274 |     /// the available options.
275 |     @discardableResult public func pin(to item2: LayoutItem? = nil, insets: CGFloat, axis: Axis? = nil, alignment: Alignment = .fill) -> [NSLayoutConstraint] {
    |                                                                                                                                           `- error: cannot find type 'NSLayoutConstraint' in scope
276 |         pin(to: item2, insets: EdgeInsets(top: insets, left: insets, bottom: insets, right: insets), axis: axis, alignment: alignment)
277 |     }
/host/spi-builder-workspace/Sources/Align.swift:275:77: error: cannot find type 'CGFloat' in scope
273 |     /// - parameter alignment: `.fill` by default, see `Alignment` for a list of
274 |     /// the available options.
275 |     @discardableResult public func pin(to item2: LayoutItem? = nil, insets: CGFloat, axis: Axis? = nil, alignment: Alignment = .fill) -> [NSLayoutConstraint] {
    |                                                                             `- error: cannot find type 'CGFloat' in scope
276 |         pin(to: item2, insets: EdgeInsets(top: insets, left: insets, bottom: insets, right: insets), axis: axis, alignment: alignment)
277 |     }
/host/spi-builder-workspace/Sources/Align.swift:289:150: error: cannot find type 'NSLayoutConstraint' in scope
287 |     /// - parameter alignment: `.fill` by default, see `Alignment` for a list of
288 |     /// the available options.
289 |     @discardableResult public func pin(to item2: LayoutItem? = nil, insets: EdgeInsets = .zero, axis: Axis? = nil, alignment: Alignment = .fill) -> [NSLayoutConstraint] {
    |                                                                                                                                                      `- error: cannot find type 'NSLayoutConstraint' in scope
290 |         pin(to: item2, insets: insets, axis: axis, alignment: alignment, isCenteringEnabled: true)
291 |     }
/host/spi-builder-workspace/Sources/Align.swift:289:77: error: cannot find type 'EdgeInsets' in scope
287 |     /// - parameter alignment: `.fill` by default, see `Alignment` for a list of
288 |     /// the available options.
289 |     @discardableResult public func pin(to item2: LayoutItem? = nil, insets: EdgeInsets = .zero, axis: Axis? = nil, alignment: Alignment = .fill) -> [NSLayoutConstraint] {
    |                                                                             `- error: cannot find type 'EdgeInsets' in scope
290 |         pin(to: item2, insets: insets, axis: axis, alignment: alignment, isCenteringEnabled: true)
291 |     }
/host/spi-builder-workspace/Sources/Align.swift:293:130: error: cannot find type 'NSLayoutConstraint' in scope
291 |     }
292 |
293 |     private func pin(to item2: LayoutItem?, insets: EdgeInsets, axis: Axis?, alignment: Alignment, isCenteringEnabled: Bool) -> [NSLayoutConstraint] {
    |                                                                                                                                  `- error: cannot find type 'NSLayoutConstraint' in scope
294 |         let item2 = item2 ?? item.superview!
295 |         let left: NSLayoutConstraint.Attribute = isAbsolute ? .left : .leading
/host/spi-builder-workspace/Sources/Align.swift:293:53: error: cannot find type 'EdgeInsets' in scope
291 |     }
292 |
293 |     private func pin(to item2: LayoutItem?, insets: EdgeInsets, axis: Axis?, alignment: Alignment, isCenteringEnabled: Bool) -> [NSLayoutConstraint] {
    |                                                     `- error: cannot find type 'EdgeInsets' in scope
294 |         let item2 = item2 ?? item.superview!
295 |         let left: NSLayoutConstraint.Attribute = isAbsolute ? .left : .leading
/host/spi-builder-workspace/Sources/Align.swift:413:83: error: cannot find type 'CGPoint' in scope
411 |     // MARK: Core API
412 |
413 |     @discardableResult public func equal<Item: LayoutItem>(_ item2: Item, offset: CGPoint = .zero) -> [NSLayoutConstraint] {
    |                                                                                   `- error: cannot find type 'CGPoint' in scope
414 |         [x.equal(item2.anchors.centerX, constant: offset.x), y.equal(item2.anchors.centerY, constant: offset.y)]
415 |     }
/host/spi-builder-workspace/Sources/Align.swift:413:104: error: cannot find type 'NSLayoutConstraint' in scope
411 |     // MARK: Core API
412 |
413 |     @discardableResult public func equal<Item: LayoutItem>(_ item2: Item, offset: CGPoint = .zero) -> [NSLayoutConstraint] {
    |                                                                                                        `- error: cannot find type 'NSLayoutConstraint' in scope
414 |         [x.equal(item2.anchors.centerX, constant: offset.x), y.equal(item2.anchors.centerY, constant: offset.y)]
415 |     }
/host/spi-builder-workspace/Sources/Align.swift:417:96: error: cannot find type 'CGPoint' in scope
415 |     }
416 |
417 |     @discardableResult public func greaterThanOrEqual<Item: LayoutItem>(_ item2: Item, offset: CGPoint = .zero) -> [NSLayoutConstraint] {
    |                                                                                                `- error: cannot find type 'CGPoint' in scope
418 |         [x.greaterThanOrEqual(item2.anchors.centerX, constant: offset.x), y.greaterThanOrEqual(item2.anchors.centerY, constant: offset.y)]
419 |     }
/host/spi-builder-workspace/Sources/Align.swift:417:117: error: cannot find type 'NSLayoutConstraint' in scope
415 |     }
416 |
417 |     @discardableResult public func greaterThanOrEqual<Item: LayoutItem>(_ item2: Item, offset: CGPoint = .zero) -> [NSLayoutConstraint] {
    |                                                                                                                     `- error: cannot find type 'NSLayoutConstraint' in scope
418 |         [x.greaterThanOrEqual(item2.anchors.centerX, constant: offset.x), y.greaterThanOrEqual(item2.anchors.centerY, constant: offset.y)]
419 |     }
/host/spi-builder-workspace/Sources/Align.swift:421:93: error: cannot find type 'CGPoint' in scope
419 |     }
420 |
421 |     @discardableResult public func lessThanOrEqual<Item: LayoutItem>(_ item2: Item, offset: CGPoint = .zero) -> [NSLayoutConstraint] {
    |                                                                                             `- error: cannot find type 'CGPoint' in scope
422 |         [x.lessThanOrEqual(item2.anchors.centerX, constant: offset.x), y.lessThanOrEqual(item2.anchors.centerY, constant: offset.y)]
423 |     }
/host/spi-builder-workspace/Sources/Align.swift:421:114: error: cannot find type 'NSLayoutConstraint' in scope
419 |     }
420 |
421 |     @discardableResult public func lessThanOrEqual<Item: LayoutItem>(_ item2: Item, offset: CGPoint = .zero) -> [NSLayoutConstraint] {
    |                                                                                                                  `- error: cannot find type 'NSLayoutConstraint' in scope
422 |         [x.lessThanOrEqual(item2.anchors.centerX, constant: offset.x), y.lessThanOrEqual(item2.anchors.centerY, constant: offset.y)]
423 |     }
/host/spi-builder-workspace/Sources/Align.swift:428:48: error: cannot find type 'NSLayoutConstraint' in scope
426 |
427 |     /// Centers the view in the superview.
428 |     @discardableResult public func align() -> [NSLayoutConstraint] {
    |                                                `- error: cannot find type 'NSLayoutConstraint' in scope
429 |         [x.align(), y.align()]
430 |     }
/host/spi-builder-workspace/Sources/Align.swift:433:81: error: cannot find type 'NSLayoutConstraint' in scope
431 |
432 |     /// Makes the axis equal to the other collection of axis.
433 |     @discardableResult public func align<Item: LayoutItem>(with item: Item) -> [NSLayoutConstraint] {
    |                                                                                 `- error: cannot find type 'NSLayoutConstraint' in scope
434 |         [x.equal(item.anchors.centerX), y.equal(item.anchors.centerY)]
435 |     }
/host/spi-builder-workspace/Sources/Align.swift:448:62: error: cannot find type 'NSLayoutConstraint' in scope
446 |
447 |     /// Set the size of item.
448 |     @discardableResult public func equal(_ size: CGSize) -> [NSLayoutConstraint] {
    |                                                              `- error: cannot find type 'NSLayoutConstraint' in scope
449 |         [width.equal(size.width), height.equal(size.height)]
450 |     }
/host/spi-builder-workspace/Sources/Align.swift:448:50: error: cannot find type 'CGSize' in scope
446 |
447 |     /// Set the size of item.
448 |     @discardableResult public func equal(_ size: CGSize) -> [NSLayoutConstraint] {
    |                                                  `- error: cannot find type 'CGSize' in scope
449 |         [width.equal(size.width), height.equal(size.height)]
450 |     }
/host/spi-builder-workspace/Sources/Align.swift:453:74: error: cannot find type 'NSLayoutConstraint' in scope
451 |
452 |     /// Set the size of item.
453 |     @discardableResult public func greaterThanOrEqul(_ size: CGSize) -> [NSLayoutConstraint] {
    |                                                                          `- error: cannot find type 'NSLayoutConstraint' in scope
454 |         [width.greaterThanOrEqual(size.width), height.greaterThanOrEqual(size.height)]
455 |     }
/host/spi-builder-workspace/Sources/Align.swift:453:62: error: cannot find type 'CGSize' in scope
451 |
452 |     /// Set the size of item.
453 |     @discardableResult public func greaterThanOrEqul(_ size: CGSize) -> [NSLayoutConstraint] {
    |                                                              `- error: cannot find type 'CGSize' in scope
454 |         [width.greaterThanOrEqual(size.width), height.greaterThanOrEqual(size.height)]
455 |     }
/host/spi-builder-workspace/Sources/Align.swift:458:72: error: cannot find type 'NSLayoutConstraint' in scope
456 |
457 |     /// Set the size of item.
458 |     @discardableResult public func lessThanOrEqual(_ size: CGSize) -> [NSLayoutConstraint] {
    |                                                                        `- error: cannot find type 'NSLayoutConstraint' in scope
459 |         [width.lessThanOrEqual(size.width), height.lessThanOrEqual(size.height)]
460 |     }
/host/spi-builder-workspace/Sources/Align.swift:458:60: error: cannot find type 'CGSize' in scope
456 |
457 |     /// Set the size of item.
458 |     @discardableResult public func lessThanOrEqual(_ size: CGSize) -> [NSLayoutConstraint] {
    |                                                            `- error: cannot find type 'CGSize' in scope
459 |         [width.lessThanOrEqual(size.width), height.lessThanOrEqual(size.height)]
460 |     }
/host/spi-builder-workspace/Sources/Align.swift:463:82: error: cannot find type 'CGSize' in scope
461 |
462 |     /// Makes the size of the item equal to the size of the other item.
463 |     @discardableResult public func equal<Item: LayoutItem>(_ item: Item, insets: CGSize = .zero, multiplier: CGFloat = 1) -> [NSLayoutConstraint] {
    |                                                                                  `- error: cannot find type 'CGSize' in scope
464 |         [width.equal(item.anchors.width * multiplier - insets.width), height.equal(item.anchors.height * multiplier - insets.height)]
465 |     }
/host/spi-builder-workspace/Sources/Align.swift:463:110: error: cannot find type 'CGFloat' in scope
461 |
462 |     /// Makes the size of the item equal to the size of the other item.
463 |     @discardableResult public func equal<Item: LayoutItem>(_ item: Item, insets: CGSize = .zero, multiplier: CGFloat = 1) -> [NSLayoutConstraint] {
    |                                                                                                              `- error: cannot find type 'CGFloat' in scope
464 |         [width.equal(item.anchors.width * multiplier - insets.width), height.equal(item.anchors.height * multiplier - insets.height)]
465 |     }
/host/spi-builder-workspace/Sources/Align.swift:463:127: error: cannot find type 'NSLayoutConstraint' in scope
461 |
462 |     /// Makes the size of the item equal to the size of the other item.
463 |     @discardableResult public func equal<Item: LayoutItem>(_ item: Item, insets: CGSize = .zero, multiplier: CGFloat = 1) -> [NSLayoutConstraint] {
    |                                                                                                                               `- error: cannot find type 'NSLayoutConstraint' in scope
464 |         [width.equal(item.anchors.width * multiplier - insets.width), height.equal(item.anchors.height * multiplier - insets.height)]
465 |     }
/host/spi-builder-workspace/Sources/Align.swift:467:95: error: cannot find type 'CGSize' in scope
465 |     }
466 |
467 |     @discardableResult public func greaterThanOrEqual<Item: LayoutItem>(_ item: Item, insets: CGSize = .zero, multiplier: CGFloat = 1) -> [NSLayoutConstraint] {
    |                                                                                               `- error: cannot find type 'CGSize' in scope
468 |         [width.greaterThanOrEqual(item.anchors.width * multiplier - insets.width), height.greaterThanOrEqual(item.anchors.height * multiplier - insets.height)]
469 |     }
/host/spi-builder-workspace/Sources/Align.swift:467:123: error: cannot find type 'CGFloat' in scope
465 |     }
466 |
467 |     @discardableResult public func greaterThanOrEqual<Item: LayoutItem>(_ item: Item, insets: CGSize = .zero, multiplier: CGFloat = 1) -> [NSLayoutConstraint] {
    |                                                                                                                           `- error: cannot find type 'CGFloat' in scope
468 |         [width.greaterThanOrEqual(item.anchors.width * multiplier - insets.width), height.greaterThanOrEqual(item.anchors.height * multiplier - insets.height)]
469 |     }
/host/spi-builder-workspace/Sources/Align.swift:467:140: error: cannot find type 'NSLayoutConstraint' in scope
465 |     }
466 |
467 |     @discardableResult public func greaterThanOrEqual<Item: LayoutItem>(_ item: Item, insets: CGSize = .zero, multiplier: CGFloat = 1) -> [NSLayoutConstraint] {
    |                                                                                                                                            `- error: cannot find type 'NSLayoutConstraint' in scope
468 |         [width.greaterThanOrEqual(item.anchors.width * multiplier - insets.width), height.greaterThanOrEqual(item.anchors.height * multiplier - insets.height)]
469 |     }
/host/spi-builder-workspace/Sources/Align.swift:471:92: error: cannot find type 'CGSize' in scope
469 |     }
470 |
471 |     @discardableResult public func lessThanOrEqual<Item: LayoutItem>(_ item: Item, insets: CGSize = .zero, multiplier: CGFloat = 1) -> [NSLayoutConstraint] {
    |                                                                                            `- error: cannot find type 'CGSize' in scope
472 |         [width.lessThanOrEqual(item.anchors.width * multiplier - insets.width), height.lessThanOrEqual(item.anchors.height * multiplier - insets.height)]
473 |     }
/host/spi-builder-workspace/Sources/Align.swift:471:120: error: cannot find type 'CGFloat' in scope
469 |     }
470 |
471 |     @discardableResult public func lessThanOrEqual<Item: LayoutItem>(_ item: Item, insets: CGSize = .zero, multiplier: CGFloat = 1) -> [NSLayoutConstraint] {
    |                                                                                                                        `- error: cannot find type 'CGFloat' in scope
472 |         [width.lessThanOrEqual(item.anchors.width * multiplier - insets.width), height.lessThanOrEqual(item.anchors.height * multiplier - insets.height)]
473 |     }
/host/spi-builder-workspace/Sources/Align.swift:471:137: error: cannot find type 'NSLayoutConstraint' in scope
469 |     }
470 |
471 |     @discardableResult public func lessThanOrEqual<Item: LayoutItem>(_ item: Item, insets: CGSize = .zero, multiplier: CGFloat = 1) -> [NSLayoutConstraint] {
    |                                                                                                                                         `- error: cannot find type 'NSLayoutConstraint' in scope
472 |         [width.lessThanOrEqual(item.anchors.width * multiplier - insets.width), height.lessThanOrEqual(item.anchors.height * multiplier - insets.height)]
473 |     }
/host/spi-builder-workspace/Sources/Align.swift:508:32: error: cannot find type 'NSLayoutConstraint' in scope
506 | /// ```
507 | @MainActor public final class Constraints: Collection {
508 |     public typealias Element = NSLayoutConstraint
    |                                `- error: cannot find type 'NSLayoutConstraint' in scope
509 |     public typealias Index = Int
510 |
/host/spi-builder-workspace/Sources/Align.swift:511:52: error: cannot find type 'NSLayoutConstraint' in scope
509 |     public typealias Index = Int
510 |
511 |     public nonisolated subscript(position: Int) -> NSLayoutConstraint {
    |                                                    `- error: cannot find type 'NSLayoutConstraint' in scope
512 |         get { MainActor.assumeIsolated { constraints[position] } }
513 |     }
/host/spi-builder-workspace/Sources/Align.swift:519:44: error: cannot find 'NSLayoutConstraint' in scope
517 |
518 |     /// Returns all of the created constraints.
519 |     public private(set) var constraints = [NSLayoutConstraint]()
    |                                            `- error: cannot find 'NSLayoutConstraint' in scope
520 |
521 |     /// All of the constraints created in the given closure are automatically
/host/spi-builder-workspace/Sources/Align.swift:519:43: error: cannot call value of non-function type '[Any]'
517 |
518 |     /// Returns all of the created constraints.
519 |     public private(set) var constraints = [NSLayoutConstraint]()
    |                                           `- error: cannot call value of non-function type '[Any]'
520 |
521 |     /// All of the constraints created in the given closure are automatically
/host/spi-builder-workspace/Sources/Align.swift:550:274: error: cannot find type 'NSLayoutConstraint' in scope
548 |
549 |     /// Creates and automatically installs a constraint.
550 |     static func add(item item1: Any, attribute attr1: NSLayoutConstraint.Attribute, relatedBy relation: NSLayoutConstraint.Relation = .equal, toItem item2: Any? = nil, attribute attr2: NSLayoutConstraint.Attribute? = nil, multiplier: CGFloat = 1, constant: CGFloat = 0) -> NSLayoutConstraint {
    |                                                                                                                                                                                                                                                                                  `- error: cannot find type 'NSLayoutConstraint' in scope
551 | #if os(iOS) || os(tvOS)
552 |         (item1 as? UIView)?.translatesAutoresizingMaskIntoConstraints = false
/host/spi-builder-workspace/Sources/Align.swift:550:55: error: cannot find type 'NSLayoutConstraint' in scope
548 |
549 |     /// Creates and automatically installs a constraint.
550 |     static func add(item item1: Any, attribute attr1: NSLayoutConstraint.Attribute, relatedBy relation: NSLayoutConstraint.Relation = .equal, toItem item2: Any? = nil, attribute attr2: NSLayoutConstraint.Attribute? = nil, multiplier: CGFloat = 1, constant: CGFloat = 0) -> NSLayoutConstraint {
    |                                                       `- error: cannot find type 'NSLayoutConstraint' in scope
551 | #if os(iOS) || os(tvOS)
552 |         (item1 as? UIView)?.translatesAutoresizingMaskIntoConstraints = false
/host/spi-builder-workspace/Sources/Align.swift:550:105: error: cannot find type 'NSLayoutConstraint' in scope
548 |
549 |     /// Creates and automatically installs a constraint.
550 |     static func add(item item1: Any, attribute attr1: NSLayoutConstraint.Attribute, relatedBy relation: NSLayoutConstraint.Relation = .equal, toItem item2: Any? = nil, attribute attr2: NSLayoutConstraint.Attribute? = nil, multiplier: CGFloat = 1, constant: CGFloat = 0) -> NSLayoutConstraint {
    |                                                                                                         `- error: cannot find type 'NSLayoutConstraint' in scope
551 | #if os(iOS) || os(tvOS)
552 |         (item1 as? UIView)?.translatesAutoresizingMaskIntoConstraints = false
/host/spi-builder-workspace/Sources/Align.swift:550:186: error: cannot find type 'NSLayoutConstraint' in scope
548 |
549 |     /// Creates and automatically installs a constraint.
550 |     static func add(item item1: Any, attribute attr1: NSLayoutConstraint.Attribute, relatedBy relation: NSLayoutConstraint.Relation = .equal, toItem item2: Any? = nil, attribute attr2: NSLayoutConstraint.Attribute? = nil, multiplier: CGFloat = 1, constant: CGFloat = 0) -> NSLayoutConstraint {
    |                                                                                                                                                                                          `- error: cannot find type 'NSLayoutConstraint' in scope
551 | #if os(iOS) || os(tvOS)
552 |         (item1 as? UIView)?.translatesAutoresizingMaskIntoConstraints = false
/host/spi-builder-workspace/Sources/Align.swift:550:235: error: cannot find type 'CGFloat' in scope
548 |
549 |     /// Creates and automatically installs a constraint.
550 |     static func add(item item1: Any, attribute attr1: NSLayoutConstraint.Attribute, relatedBy relation: NSLayoutConstraint.Relation = .equal, toItem item2: Any? = nil, attribute attr2: NSLayoutConstraint.Attribute? = nil, multiplier: CGFloat = 1, constant: CGFloat = 0) -> NSLayoutConstraint {
    |                                                                                                                                                                                                                                           `- error: cannot find type 'CGFloat' in scope
551 | #if os(iOS) || os(tvOS)
552 |         (item1 as? UIView)?.translatesAutoresizingMaskIntoConstraints = false
/host/spi-builder-workspace/Sources/Align.swift:550:258: error: cannot find type 'CGFloat' in scope
548 |
549 |     /// Creates and automatically installs a constraint.
550 |     static func add(item item1: Any, attribute attr1: NSLayoutConstraint.Attribute, relatedBy relation: NSLayoutConstraint.Relation = .equal, toItem item2: Any? = nil, attribute attr2: NSLayoutConstraint.Attribute? = nil, multiplier: CGFloat = 1, constant: CGFloat = 0) -> NSLayoutConstraint {
    |                                                                                                                                                                                                                                                                  `- error: cannot find type 'CGFloat' in scope
551 | #if os(iOS) || os(tvOS)
552 |         (item1 as? UIView)?.translatesAutoresizingMaskIntoConstraints = false
/host/spi-builder-workspace/Sources/Align.swift:562:93: error: cannot find type 'CGFloat' in scope
560 |
561 |     /// Creates and automatically installs a constraint between two anchors.
562 |     static func add<T1, A1, T2, A2>(_ lhs: Anchor<T1, A1>, _ rhs: Anchor<T2, A2>, constant: CGFloat = 0, multiplier: CGFloat = 1, relation: NSLayoutConstraint.Relation = .equal) -> NSLayoutConstraint {
    |                                                                                             `- error: cannot find type 'CGFloat' in scope
563 |         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)
564 |     }
/host/spi-builder-workspace/Sources/Align.swift:562:118: error: cannot find type 'CGFloat' in scope
560 |
561 |     /// Creates and automatically installs a constraint between two anchors.
562 |     static func add<T1, A1, T2, A2>(_ lhs: Anchor<T1, A1>, _ rhs: Anchor<T2, A2>, constant: CGFloat = 0, multiplier: CGFloat = 1, relation: NSLayoutConstraint.Relation = .equal) -> NSLayoutConstraint {
    |                                                                                                                      `- error: cannot find type 'CGFloat' in scope
563 |         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)
564 |     }
/host/spi-builder-workspace/Sources/Align.swift:562:141: error: cannot find type 'NSLayoutConstraint' in scope
560 |
561 |     /// Creates and automatically installs a constraint between two anchors.
562 |     static func add<T1, A1, T2, A2>(_ lhs: Anchor<T1, A1>, _ rhs: Anchor<T2, A2>, constant: CGFloat = 0, multiplier: CGFloat = 1, relation: NSLayoutConstraint.Relation = .equal) -> NSLayoutConstraint {
    |                                                                                                                                             `- error: cannot find type 'NSLayoutConstraint' in scope
563 |         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)
564 |     }
/host/spi-builder-workspace/Sources/Align.swift:562:182: error: cannot find type 'NSLayoutConstraint' in scope
560 |
561 |     /// Creates and automatically installs a constraint between two anchors.
562 |     static func add<T1, A1, T2, A2>(_ lhs: Anchor<T1, A1>, _ rhs: Anchor<T2, A2>, constant: CGFloat = 0, multiplier: CGFloat = 1, relation: NSLayoutConstraint.Relation = .equal) -> NSLayoutConstraint {
    |                                                                                                                                                                                      `- error: cannot find type 'NSLayoutConstraint' in scope
563 |         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)
564 |     }
/host/spi-builder-workspace/Sources/Align.swift:568:89: error: cannot find type 'NSLayoutConstraint' in scope
566 |     /// Creates and automatically installs a constraint between an anchor and
567 |     /// a given item.
568 |     static func add<T1, A1>(_ lhs: Anchor<T1, A1>, toItem item2: Any?, attribute attr2: NSLayoutConstraint.Attribute?, constant: CGFloat = 0, multiplier: CGFloat = 1, relation: NSLayoutConstraint.Relation = .equal) -> NSLayoutConstraint {
    |                                                                                         `- error: cannot find type 'NSLayoutConstraint' in scope
569 |         add(item: lhs.item, attribute: lhs.attribute, relatedBy: relation, toItem: item2, attribute: attr2, multiplier: multiplier / lhs.multiplier, constant: constant - lhs.offset)
570 |     }
/host/spi-builder-workspace/Sources/Align.swift:568:130: error: cannot find type 'CGFloat' in scope
566 |     /// Creates and automatically installs a constraint between an anchor and
567 |     /// a given item.
568 |     static func add<T1, A1>(_ lhs: Anchor<T1, A1>, toItem item2: Any?, attribute attr2: NSLayoutConstraint.Attribute?, constant: CGFloat = 0, multiplier: CGFloat = 1, relation: NSLayoutConstraint.Relation = .equal) -> NSLayoutConstraint {
    |                                                                                                                                  `- error: cannot find type 'CGFloat' in scope
569 |         add(item: lhs.item, attribute: lhs.attribute, relatedBy: relation, toItem: item2, attribute: attr2, multiplier: multiplier / lhs.multiplier, constant: constant - lhs.offset)
570 |     }
/host/spi-builder-workspace/Sources/Align.swift:568:155: error: cannot find type 'CGFloat' in scope
566 |     /// Creates and automatically installs a constraint between an anchor and
567 |     /// a given item.
568 |     static func add<T1, A1>(_ lhs: Anchor<T1, A1>, toItem item2: Any?, attribute attr2: NSLayoutConstraint.Attribute?, constant: CGFloat = 0, multiplier: CGFloat = 1, relation: NSLayoutConstraint.Relation = .equal) -> NSLayoutConstraint {
    |                                                                                                                                                           `- error: cannot find type 'CGFloat' in scope
569 |         add(item: lhs.item, attribute: lhs.attribute, relatedBy: relation, toItem: item2, attribute: attr2, multiplier: multiplier / lhs.multiplier, constant: constant - lhs.offset)
570 |     }
/host/spi-builder-workspace/Sources/Align.swift:568:178: error: cannot find type 'NSLayoutConstraint' in scope
566 |     /// Creates and automatically installs a constraint between an anchor and
567 |     /// a given item.
568 |     static func add<T1, A1>(_ lhs: Anchor<T1, A1>, toItem item2: Any?, attribute attr2: NSLayoutConstraint.Attribute?, constant: CGFloat = 0, multiplier: CGFloat = 1, relation: NSLayoutConstraint.Relation = .equal) -> NSLayoutConstraint {
    |                                                                                                                                                                                  `- error: cannot find type 'NSLayoutConstraint' in scope
569 |         add(item: lhs.item, attribute: lhs.attribute, relatedBy: relation, toItem: item2, attribute: attr2, multiplier: multiplier / lhs.multiplier, constant: constant - lhs.offset)
570 |     }
/host/spi-builder-workspace/Sources/Align.swift:568:219: error: cannot find type 'NSLayoutConstraint' in scope
566 |     /// Creates and automatically installs a constraint between an anchor and
567 |     /// a given item.
568 |     static func add<T1, A1>(_ lhs: Anchor<T1, A1>, toItem item2: Any?, attribute attr2: NSLayoutConstraint.Attribute?, constant: CGFloat = 0, multiplier: CGFloat = 1, relation: NSLayoutConstraint.Relation = .equal) -> NSLayoutConstraint {
    |                                                                                                                                                                                                                           `- error: cannot find type 'NSLayoutConstraint' in scope
569 |         add(item: lhs.item, attribute: lhs.attribute, relatedBy: relation, toItem: item2, attribute: attr2, multiplier: multiplier / lhs.multiplier, constant: constant - lhs.offset)
570 |     }
/host/spi-builder-workspace/Sources/Align.swift:574:47: error: cannot find type 'NSLayoutConstraint' in scope
572 |     private static var stack = [Constraints]() // this is what enabled constraint auto-installing
573 |
574 |     private static func install(_ constraint: NSLayoutConstraint) {
    |                                               `- error: cannot find type 'NSLayoutConstraint' in scope
575 |         if let group = stack.last {
576 |             group.constraints.append(constraint)
/host/spi-builder-workspace/Sources/Align.swift:507:31: error: type 'Constraints' does not conform to protocol 'Collection'
505 | /// }
506 | /// ```
507 | @MainActor public final class Constraints: Collection {
    |                               |- error: type 'Constraints' does not conform to protocol 'Collection'
    |                               `- note: add stubs for conformance
508 |     public typealias Element = NSLayoutConstraint
509 |     public typealias Index = Int
Swift.Collection.Element:2:16: note: protocol requires nested type 'Element'
1 | protocol Collection {
2 | associatedtype Element}
  |                `- note: protocol requires nested type 'Element'
3 |
/host/spi-builder-workspace/Sources/Align.swift:613:11: error: cannot find type 'NSLayoutConstraint' in scope
611 | #endif
612 |
613 | extension NSLayoutConstraint.Relation {
    |           `- error: cannot find type 'NSLayoutConstraint' in scope
614 |     var inverted: NSLayoutConstraint.Relation {
615 |         switch self {
/host/spi-builder-workspace/Sources/Align.swift:624:11: error: cannot find type 'EdgeInsets' in scope
622 | }
623 |
624 | extension EdgeInsets {
    |           `- error: cannot find type 'EdgeInsets' in scope
625 |     func inset(for attribute: NSLayoutConstraint.Attribute, edge: Bool = false) -> CGFloat {
626 |         switch attribute {
/host/spi-builder-workspace/Sources/Align.swift:48:68: error: generic parameter 'Type' could not be inferred
 46 |     // MARK: Anchors
 47 |
 48 |     public var top: Anchor<AnchorType.Edge, AnchorAxis.Vertical> { Anchor(item, .top) }
    |                                                                    `- error: generic parameter 'Type' could not be inferred
 49 |     public var bottom: Anchor<AnchorType.Edge, AnchorAxis.Vertical> { Anchor(item, .bottom) }
 50 |     public var left: Anchor<AnchorType.Edge, AnchorAxis.Horizontal> { Anchor(item, .left) }
    :
105 | /// - tip: `UIView` does not provide anchor properties for the layout margin attributes.
106 | /// Instead, call `view.layoutMarginsGuide.anchors`.
107 | @MainActor public struct Anchor<Type, Axis> { // type and axis are phantom types
    |                                 `- note: 'Type' declared as parameter to type 'Anchor'
108 |     let item: LayoutItem
109 |     let attribute: NSLayoutConstraint.Attribute
/host/spi-builder-workspace/Sources/Align.swift:48:68: error: generic parameter 'Axis' could not be inferred
 46 |     // MARK: Anchors
 47 |
 48 |     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
 49 |     public var bottom: Anchor<AnchorType.Edge, AnchorAxis.Vertical> { Anchor(item, .bottom) }
 50 |     public var left: Anchor<AnchorType.Edge, AnchorAxis.Horizontal> { Anchor(item, .left) }
    :
105 | /// - tip: `UIView` does not provide anchor properties for the layout margin attributes.
106 | /// Instead, call `view.layoutMarginsGuide.anchors`.
107 | @MainActor public struct Anchor<Type, Axis> { // type and axis are phantom types
    |                                       `- note: 'Axis' declared as parameter to type 'Anchor'
108 |     let item: LayoutItem
109 |     let attribute: NSLayoutConstraint.Attribute
/host/spi-builder-workspace/Sources/Align.swift:48:82: error: cannot infer contextual base in reference to member 'top'
 46 |     // MARK: Anchors
 47 |
 48 |     public var top: Anchor<AnchorType.Edge, AnchorAxis.Vertical> { Anchor(item, .top) }
    |                                                                                  `- error: cannot infer contextual base in reference to member 'top'
 49 |     public var bottom: Anchor<AnchorType.Edge, AnchorAxis.Vertical> { Anchor(item, .bottom) }
 50 |     public var left: Anchor<AnchorType.Edge, AnchorAxis.Horizontal> { Anchor(item, .left) }
/host/spi-builder-workspace/Sources/Align.swift:49:71: error: generic parameter 'Type' could not be inferred
 47 |
 48 |     public var top: Anchor<AnchorType.Edge, AnchorAxis.Vertical> { Anchor(item, .top) }
 49 |     public var bottom: Anchor<AnchorType.Edge, AnchorAxis.Vertical> { Anchor(item, .bottom) }
    |                                                                       `- error: generic parameter 'Type' could not be inferred
 50 |     public var left: Anchor<AnchorType.Edge, AnchorAxis.Horizontal> { Anchor(item, .left) }
 51 |     public var right: Anchor<AnchorType.Edge, AnchorAxis.Horizontal> { Anchor(item, .right) }
    :
105 | /// - tip: `UIView` does not provide anchor properties for the layout margin attributes.
106 | /// Instead, call `view.layoutMarginsGuide.anchors`.
107 | @MainActor public struct Anchor<Type, Axis> { // type and axis are phantom types
    |                                 `- note: 'Type' declared as parameter to type 'Anchor'
108 |     let item: LayoutItem
109 |     let attribute: NSLayoutConstraint.Attribute
/host/spi-builder-workspace/Sources/Align.swift:49:71: error: generic parameter 'Axis' could not be inferred
 47 |
 48 |     public var top: Anchor<AnchorType.Edge, AnchorAxis.Vertical> { Anchor(item, .top) }
 49 |     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
 50 |     public var left: Anchor<AnchorType.Edge, AnchorAxis.Horizontal> { Anchor(item, .left) }
 51 |     public var right: Anchor<AnchorType.Edge, AnchorAxis.Horizontal> { Anchor(item, .right) }
    :
105 | /// - tip: `UIView` does not provide anchor properties for the layout margin attributes.
106 | /// Instead, call `view.layoutMarginsGuide.anchors`.
107 | @MainActor public struct Anchor<Type, Axis> { // type and axis are phantom types
    |                                       `- note: 'Axis' declared as parameter to type 'Anchor'
108 |     let item: LayoutItem
109 |     let attribute: NSLayoutConstraint.Attribute
/host/spi-builder-workspace/Sources/Align.swift:49:85: error: cannot infer contextual base in reference to member 'bottom'
 47 |
 48 |     public var top: Anchor<AnchorType.Edge, AnchorAxis.Vertical> { Anchor(item, .top) }
 49 |     public var bottom: Anchor<AnchorType.Edge, AnchorAxis.Vertical> { Anchor(item, .bottom) }
    |                                                                                     `- error: cannot infer contextual base in reference to member 'bottom'
 50 |     public var left: Anchor<AnchorType.Edge, AnchorAxis.Horizontal> { Anchor(item, .left) }
 51 |     public var right: Anchor<AnchorType.Edge, AnchorAxis.Horizontal> { Anchor(item, .right) }
/host/spi-builder-workspace/Sources/Align.swift:50:71: error: generic parameter 'Type' could not be inferred
 48 |     public var top: Anchor<AnchorType.Edge, AnchorAxis.Vertical> { Anchor(item, .top) }
 49 |     public var bottom: Anchor<AnchorType.Edge, AnchorAxis.Vertical> { Anchor(item, .bottom) }
 50 |     public var left: Anchor<AnchorType.Edge, AnchorAxis.Horizontal> { Anchor(item, .left) }
    |                                                                       `- error: generic parameter 'Type' could not be inferred
 51 |     public var right: Anchor<AnchorType.Edge, AnchorAxis.Horizontal> { Anchor(item, .right) }
 52 |     public var leading: Anchor<AnchorType.Edge, AnchorAxis.Horizontal> { Anchor(item, .leading) }
    :
105 | /// - tip: `UIView` does not provide anchor properties for the layout margin attributes.
106 | /// Instead, call `view.layoutMarginsGuide.anchors`.
107 | @MainActor public struct Anchor<Type, Axis> { // type and axis are phantom types
    |                                 `- note: 'Type' declared as parameter to type 'Anchor'
108 |     let item: LayoutItem
109 |     let attribute: NSLayoutConstraint.Attribute
/host/spi-builder-workspace/Sources/Align.swift:50:71: error: generic parameter 'Axis' could not be inferred
 48 |     public var top: Anchor<AnchorType.Edge, AnchorAxis.Vertical> { Anchor(item, .top) }
 49 |     public var bottom: Anchor<AnchorType.Edge, AnchorAxis.Vertical> { Anchor(item, .bottom) }
 50 |     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
 51 |     public var right: Anchor<AnchorType.Edge, AnchorAxis.Horizontal> { Anchor(item, .right) }
 52 |     public var leading: Anchor<AnchorType.Edge, AnchorAxis.Horizontal> { Anchor(item, .leading) }
    :
105 | /// - tip: `UIView` does not provide anchor properties for the layout margin attributes.
106 | /// Instead, call `view.layoutMarginsGuide.anchors`.
107 | @MainActor public struct Anchor<Type, Axis> { // type and axis are phantom types
    |                                       `- note: 'Axis' declared as parameter to type 'Anchor'
108 |     let item: LayoutItem
109 |     let attribute: NSLayoutConstraint.Attribute
/host/spi-builder-workspace/Sources/Align.swift:50:85: error: cannot infer contextual base in reference to member 'left'
 48 |     public var top: Anchor<AnchorType.Edge, AnchorAxis.Vertical> { Anchor(item, .top) }
 49 |     public var bottom: Anchor<AnchorType.Edge, AnchorAxis.Vertical> { Anchor(item, .bottom) }
 50 |     public var left: Anchor<AnchorType.Edge, AnchorAxis.Horizontal> { Anchor(item, .left) }
    |                                                                                     `- error: cannot infer contextual base in reference to member 'left'
 51 |     public var right: Anchor<AnchorType.Edge, AnchorAxis.Horizontal> { Anchor(item, .right) }
 52 |     public var leading: Anchor<AnchorType.Edge, AnchorAxis.Horizontal> { Anchor(item, .leading) }
/host/spi-builder-workspace/Sources/Align.swift:51:72: error: generic parameter 'Type' could not be inferred
 49 |     public var bottom: Anchor<AnchorType.Edge, AnchorAxis.Vertical> { Anchor(item, .bottom) }
 50 |     public var left: Anchor<AnchorType.Edge, AnchorAxis.Horizontal> { Anchor(item, .left) }
 51 |     public var right: Anchor<AnchorType.Edge, AnchorAxis.Horizontal> { Anchor(item, .right) }
    |                                                                        `- error: generic parameter 'Type' could not be inferred
 52 |     public var leading: Anchor<AnchorType.Edge, AnchorAxis.Horizontal> { Anchor(item, .leading) }
 53 |     public var trailing: Anchor<AnchorType.Edge, AnchorAxis.Horizontal> { Anchor(item, .trailing) }
    :
105 | /// - tip: `UIView` does not provide anchor properties for the layout margin attributes.
106 | /// Instead, call `view.layoutMarginsGuide.anchors`.
107 | @MainActor public struct Anchor<Type, Axis> { // type and axis are phantom types
    |                                 `- note: 'Type' declared as parameter to type 'Anchor'
108 |     let item: LayoutItem
109 |     let attribute: NSLayoutConstraint.Attribute
/host/spi-builder-workspace/Sources/Align.swift:51:72: error: generic parameter 'Axis' could not be inferred
 49 |     public var bottom: Anchor<AnchorType.Edge, AnchorAxis.Vertical> { Anchor(item, .bottom) }
 50 |     public var left: Anchor<AnchorType.Edge, AnchorAxis.Horizontal> { Anchor(item, .left) }
 51 |     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
 52 |     public var leading: Anchor<AnchorType.Edge, AnchorAxis.Horizontal> { Anchor(item, .leading) }
 53 |     public var trailing: Anchor<AnchorType.Edge, AnchorAxis.Horizontal> { Anchor(item, .trailing) }
    :
105 | /// - tip: `UIView` does not provide anchor properties for the layout margin attributes.
106 | /// Instead, call `view.layoutMarginsGuide.anchors`.
107 | @MainActor public struct Anchor<Type, Axis> { // type and axis are phantom types
    |                                       `- note: 'Axis' declared as parameter to type 'Anchor'
108 |     let item: LayoutItem
109 |     let attribute: NSLayoutConstraint.Attribute
/host/spi-builder-workspace/Sources/Align.swift:51:86: error: cannot infer contextual base in reference to member 'right'
 49 |     public var bottom: Anchor<AnchorType.Edge, AnchorAxis.Vertical> { Anchor(item, .bottom) }
 50 |     public var left: Anchor<AnchorType.Edge, AnchorAxis.Horizontal> { Anchor(item, .left) }
 51 |     public var right: Anchor<AnchorType.Edge, AnchorAxis.Horizontal> { Anchor(item, .right) }
    |                                                                                      `- error: cannot infer contextual base in reference to member 'right'
 52 |     public var leading: Anchor<AnchorType.Edge, AnchorAxis.Horizontal> { Anchor(item, .leading) }
 53 |     public var trailing: Anchor<AnchorType.Edge, AnchorAxis.Horizontal> { Anchor(item, .trailing) }
/host/spi-builder-workspace/Sources/Align.swift:52:74: error: generic parameter 'Type' could not be inferred
 50 |     public var left: Anchor<AnchorType.Edge, AnchorAxis.Horizontal> { Anchor(item, .left) }
 51 |     public var right: Anchor<AnchorType.Edge, AnchorAxis.Horizontal> { Anchor(item, .right) }
 52 |     public var leading: Anchor<AnchorType.Edge, AnchorAxis.Horizontal> { Anchor(item, .leading) }
    |                                                                          `- error: generic parameter 'Type' could not be inferred
 53 |     public var trailing: Anchor<AnchorType.Edge, AnchorAxis.Horizontal> { Anchor(item, .trailing) }
 54 |
    :
105 | /// - tip: `UIView` does not provide anchor properties for the layout margin attributes.
106 | /// Instead, call `view.layoutMarginsGuide.anchors`.
107 | @MainActor public struct Anchor<Type, Axis> { // type and axis are phantom types
    |                                 `- note: 'Type' declared as parameter to type 'Anchor'
108 |     let item: LayoutItem
109 |     let attribute: NSLayoutConstraint.Attribute
/host/spi-builder-workspace/Sources/Align.swift:52:74: error: generic parameter 'Axis' could not be inferred
 50 |     public var left: Anchor<AnchorType.Edge, AnchorAxis.Horizontal> { Anchor(item, .left) }
 51 |     public var right: Anchor<AnchorType.Edge, AnchorAxis.Horizontal> { Anchor(item, .right) }
 52 |     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
 53 |     public var trailing: Anchor<AnchorType.Edge, AnchorAxis.Horizontal> { Anchor(item, .trailing) }
 54 |
    :
105 | /// - tip: `UIView` does not provide anchor properties for the layout margin attributes.
106 | /// Instead, call `view.layoutMarginsGuide.anchors`.
107 | @MainActor public struct Anchor<Type, Axis> { // type and axis are phantom types
    |                                       `- note: 'Axis' declared as parameter to type 'Anchor'
108 |     let item: LayoutItem
109 |     let attribute: NSLayoutConstraint.Attribute
/host/spi-builder-workspace/Sources/Align.swift:52:88: error: cannot infer contextual base in reference to member 'leading'
 50 |     public var left: Anchor<AnchorType.Edge, AnchorAxis.Horizontal> { Anchor(item, .left) }
 51 |     public var right: Anchor<AnchorType.Edge, AnchorAxis.Horizontal> { Anchor(item, .right) }
 52 |     public var leading: Anchor<AnchorType.Edge, AnchorAxis.Horizontal> { Anchor(item, .leading) }
    |                                                                                        `- error: cannot infer contextual base in reference to member 'leading'
 53 |     public var trailing: Anchor<AnchorType.Edge, AnchorAxis.Horizontal> { Anchor(item, .trailing) }
 54 |
/host/spi-builder-workspace/Sources/Align.swift:53:75: error: generic parameter 'Type' could not be inferred
 51 |     public var right: Anchor<AnchorType.Edge, AnchorAxis.Horizontal> { Anchor(item, .right) }
 52 |     public var leading: Anchor<AnchorType.Edge, AnchorAxis.Horizontal> { Anchor(item, .leading) }
 53 |     public var trailing: Anchor<AnchorType.Edge, AnchorAxis.Horizontal> { Anchor(item, .trailing) }
    |                                                                           `- error: generic parameter 'Type' could not be inferred
 54 |
 55 |     public var centerX: Anchor<AnchorType.Center, AnchorAxis.Horizontal> { Anchor(item, .centerX) }
    :
105 | /// - tip: `UIView` does not provide anchor properties for the layout margin attributes.
106 | /// Instead, call `view.layoutMarginsGuide.anchors`.
107 | @MainActor public struct Anchor<Type, Axis> { // type and axis are phantom types
    |                                 `- note: 'Type' declared as parameter to type 'Anchor'
108 |     let item: LayoutItem
109 |     let attribute: NSLayoutConstraint.Attribute
/host/spi-builder-workspace/Sources/Align.swift:53:75: error: generic parameter 'Axis' could not be inferred
 51 |     public var right: Anchor<AnchorType.Edge, AnchorAxis.Horizontal> { Anchor(item, .right) }
 52 |     public var leading: Anchor<AnchorType.Edge, AnchorAxis.Horizontal> { Anchor(item, .leading) }
 53 |     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
 54 |
 55 |     public var centerX: Anchor<AnchorType.Center, AnchorAxis.Horizontal> { Anchor(item, .centerX) }
    :
105 | /// - tip: `UIView` does not provide anchor properties for the layout margin attributes.
106 | /// Instead, call `view.layoutMarginsGuide.anchors`.
107 | @MainActor public struct Anchor<Type, Axis> { // type and axis are phantom types
    |                                       `- note: 'Axis' declared as parameter to type 'Anchor'
108 |     let item: LayoutItem
109 |     let attribute: NSLayoutConstraint.Attribute
/host/spi-builder-workspace/Sources/Align.swift:53:89: error: cannot infer contextual base in reference to member 'trailing'
 51 |     public var right: Anchor<AnchorType.Edge, AnchorAxis.Horizontal> { Anchor(item, .right) }
 52 |     public var leading: Anchor<AnchorType.Edge, AnchorAxis.Horizontal> { Anchor(item, .leading) }
 53 |     public var trailing: Anchor<AnchorType.Edge, AnchorAxis.Horizontal> { Anchor(item, .trailing) }
    |                                                                                         `- error: cannot infer contextual base in reference to member 'trailing'
 54 |
 55 |     public var centerX: Anchor<AnchorType.Center, AnchorAxis.Horizontal> { Anchor(item, .centerX) }
/host/spi-builder-workspace/Sources/Align.swift:55:76: error: generic parameter 'Type' could not be inferred
 53 |     public var trailing: Anchor<AnchorType.Edge, AnchorAxis.Horizontal> { Anchor(item, .trailing) }
 54 |
 55 |     public var centerX: Anchor<AnchorType.Center, AnchorAxis.Horizontal> { Anchor(item, .centerX) }
    |                                                                            `- error: generic parameter 'Type' could not be inferred
 56 |     public var centerY: Anchor<AnchorType.Center, AnchorAxis.Vertical> { Anchor(item, .centerY) }
 57 |
    :
105 | /// - tip: `UIView` does not provide anchor properties for the layout margin attributes.
106 | /// Instead, call `view.layoutMarginsGuide.anchors`.
107 | @MainActor public struct Anchor<Type, Axis> { // type and axis are phantom types
    |                                 `- note: 'Type' declared as parameter to type 'Anchor'
108 |     let item: LayoutItem
109 |     let attribute: NSLayoutConstraint.Attribute
/host/spi-builder-workspace/Sources/Align.swift:55:76: error: generic parameter 'Axis' could not be inferred
 53 |     public var trailing: Anchor<AnchorType.Edge, AnchorAxis.Horizontal> { Anchor(item, .trailing) }
 54 |
 55 |     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
 56 |     public var centerY: Anchor<AnchorType.Center, AnchorAxis.Vertical> { Anchor(item, .centerY) }
 57 |
    :
105 | /// - tip: `UIView` does not provide anchor properties for the layout margin attributes.
106 | /// Instead, call `view.layoutMarginsGuide.anchors`.
107 | @MainActor public struct Anchor<Type, Axis> { // type and axis are phantom types
    |                                       `- note: 'Axis' declared as parameter to type 'Anchor'
108 |     let item: LayoutItem
109 |     let attribute: NSLayoutConstraint.Attribute
/host/spi-builder-workspace/Sources/Align.swift:55:90: error: cannot infer contextual base in reference to member 'centerX'
 53 |     public var trailing: Anchor<AnchorType.Edge, AnchorAxis.Horizontal> { Anchor(item, .trailing) }
 54 |
 55 |     public var centerX: Anchor<AnchorType.Center, AnchorAxis.Horizontal> { Anchor(item, .centerX) }
    |                                                                                          `- error: cannot infer contextual base in reference to member 'centerX'
 56 |     public var centerY: Anchor<AnchorType.Center, AnchorAxis.Vertical> { Anchor(item, .centerY) }
 57 |
/host/spi-builder-workspace/Sources/Align.swift:56:74: error: generic parameter 'Type' could not be inferred
 54 |
 55 |     public var centerX: Anchor<AnchorType.Center, AnchorAxis.Horizontal> { Anchor(item, .centerX) }
 56 |     public var centerY: Anchor<AnchorType.Center, AnchorAxis.Vertical> { Anchor(item, .centerY) }
    |                                                                          `- error: generic parameter 'Type' could not be inferred
 57 |
 58 |     public var firstBaseline: Anchor<AnchorType.Baseline, AnchorAxis.Vertical> { Anchor(item, .firstBaseline) }
    :
105 | /// - tip: `UIView` does not provide anchor properties for the layout margin attributes.
106 | /// Instead, call `view.layoutMarginsGuide.anchors`.
107 | @MainActor public struct Anchor<Type, Axis> { // type and axis are phantom types
    |                                 `- note: 'Type' declared as parameter to type 'Anchor'
108 |     let item: LayoutItem
109 |     let attribute: NSLayoutConstraint.Attribute
/host/spi-builder-workspace/Sources/Align.swift:56:74: error: generic parameter 'Axis' could not be inferred
 54 |
 55 |     public var centerX: Anchor<AnchorType.Center, AnchorAxis.Horizontal> { Anchor(item, .centerX) }
 56 |     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
 57 |
 58 |     public var firstBaseline: Anchor<AnchorType.Baseline, AnchorAxis.Vertical> { Anchor(item, .firstBaseline) }
    :
105 | /// - tip: `UIView` does not provide anchor properties for the layout margin attributes.
106 | /// Instead, call `view.layoutMarginsGuide.anchors`.
107 | @MainActor public struct Anchor<Type, Axis> { // type and axis are phantom types
    |                                       `- note: 'Axis' declared as parameter to type 'Anchor'
108 |     let item: LayoutItem
109 |     let attribute: NSLayoutConstraint.Attribute
/host/spi-builder-workspace/Sources/Align.swift:56:88: error: cannot infer contextual base in reference to member 'centerY'
 54 |
 55 |     public var centerX: Anchor<AnchorType.Center, AnchorAxis.Horizontal> { Anchor(item, .centerX) }
 56 |     public var centerY: Anchor<AnchorType.Center, AnchorAxis.Vertical> { Anchor(item, .centerY) }
    |                                                                                        `- error: cannot infer contextual base in reference to member 'centerY'
 57 |
 58 |     public var firstBaseline: Anchor<AnchorType.Baseline, AnchorAxis.Vertical> { Anchor(item, .firstBaseline) }
/host/spi-builder-workspace/Sources/Align.swift:58:82: error: generic parameter 'Type' could not be inferred
 56 |     public var centerY: Anchor<AnchorType.Center, AnchorAxis.Vertical> { Anchor(item, .centerY) }
 57 |
 58 |     public var firstBaseline: Anchor<AnchorType.Baseline, AnchorAxis.Vertical> { Anchor(item, .firstBaseline) }
    |                                                                                  `- error: generic parameter 'Type' could not be inferred
 59 |     public var lastBaseline: Anchor<AnchorType.Baseline, AnchorAxis.Vertical> { Anchor(item, .lastBaseline) }
 60 |
    :
105 | /// - tip: `UIView` does not provide anchor properties for the layout margin attributes.
106 | /// Instead, call `view.layoutMarginsGuide.anchors`.
107 | @MainActor public struct Anchor<Type, Axis> { // type and axis are phantom types
    |                                 `- note: 'Type' declared as parameter to type 'Anchor'
108 |     let item: LayoutItem
109 |     let attribute: NSLayoutConstraint.Attribute
/host/spi-builder-workspace/Sources/Align.swift:58:82: error: generic parameter 'Axis' could not be inferred
 56 |     public var centerY: Anchor<AnchorType.Center, AnchorAxis.Vertical> { Anchor(item, .centerY) }
 57 |
 58 |     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
 59 |     public var lastBaseline: Anchor<AnchorType.Baseline, AnchorAxis.Vertical> { Anchor(item, .lastBaseline) }
 60 |
    :
105 | /// - tip: `UIView` does not provide anchor properties for the layout margin attributes.
106 | /// Instead, call `view.layoutMarginsGuide.anchors`.
107 | @MainActor public struct Anchor<Type, Axis> { // type and axis are phantom types
    |                                       `- note: 'Axis' declared as parameter to type 'Anchor'
108 |     let item: LayoutItem
109 |     let attribute: NSLayoutConstraint.Attribute
/host/spi-builder-workspace/Sources/Align.swift:58:96: error: cannot infer contextual base in reference to member 'firstBaseline'
 56 |     public var centerY: Anchor<AnchorType.Center, AnchorAxis.Vertical> { Anchor(item, .centerY) }
 57 |
 58 |     public var firstBaseline: Anchor<AnchorType.Baseline, AnchorAxis.Vertical> { Anchor(item, .firstBaseline) }
    |                                                                                                `- error: cannot infer contextual base in reference to member 'firstBaseline'
 59 |     public var lastBaseline: Anchor<AnchorType.Baseline, AnchorAxis.Vertical> { Anchor(item, .lastBaseline) }
 60 |
/host/spi-builder-workspace/Sources/Align.swift:59:81: error: generic parameter 'Type' could not be inferred
 57 |
 58 |     public var firstBaseline: Anchor<AnchorType.Baseline, AnchorAxis.Vertical> { Anchor(item, .firstBaseline) }
 59 |     public var lastBaseline: Anchor<AnchorType.Baseline, AnchorAxis.Vertical> { Anchor(item, .lastBaseline) }
    |                                                                                 `- error: generic parameter 'Type' could not be inferred
 60 |
 61 |     public var width: Anchor<AnchorType.Dimension, AnchorAxis.Horizontal> { Anchor(item, .width) }
    :
105 | /// - tip: `UIView` does not provide anchor properties for the layout margin attributes.
106 | /// Instead, call `view.layoutMarginsGuide.anchors`.
107 | @MainActor public struct Anchor<Type, Axis> { // type and axis are phantom types
    |                                 `- note: 'Type' declared as parameter to type 'Anchor'
108 |     let item: LayoutItem
109 |     let attribute: NSLayoutConstraint.Attribute
/host/spi-builder-workspace/Sources/Align.swift:59:81: error: generic parameter 'Axis' could not be inferred
 57 |
 58 |     public var firstBaseline: Anchor<AnchorType.Baseline, AnchorAxis.Vertical> { Anchor(item, .firstBaseline) }
 59 |     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
 60 |
 61 |     public var width: Anchor<AnchorType.Dimension, AnchorAxis.Horizontal> { Anchor(item, .width) }
    :
105 | /// - tip: `UIView` does not provide anchor properties for the layout margin attributes.
106 | /// Instead, call `view.layoutMarginsGuide.anchors`.
107 | @MainActor public struct Anchor<Type, Axis> { // type and axis are phantom types
    |                                       `- note: 'Axis' declared as parameter to type 'Anchor'
108 |     let item: LayoutItem
109 |     let attribute: NSLayoutConstraint.Attribute
/host/spi-builder-workspace/Sources/Align.swift:59:95: error: cannot infer contextual base in reference to member 'lastBaseline'
 57 |
 58 |     public var firstBaseline: Anchor<AnchorType.Baseline, AnchorAxis.Vertical> { Anchor(item, .firstBaseline) }
 59 |     public var lastBaseline: Anchor<AnchorType.Baseline, AnchorAxis.Vertical> { Anchor(item, .lastBaseline) }
    |                                                                                               `- error: cannot infer contextual base in reference to member 'lastBaseline'
 60 |
 61 |     public var width: Anchor<AnchorType.Dimension, AnchorAxis.Horizontal> { Anchor(item, .width) }
/host/spi-builder-workspace/Sources/Align.swift:61:77: error: generic parameter 'Type' could not be inferred
 59 |     public var lastBaseline: Anchor<AnchorType.Baseline, AnchorAxis.Vertical> { Anchor(item, .lastBaseline) }
 60 |
 61 |     public var width: Anchor<AnchorType.Dimension, AnchorAxis.Horizontal> { Anchor(item, .width) }
    |                                                                             `- error: generic parameter 'Type' could not be inferred
 62 |     public var height: Anchor<AnchorType.Dimension, AnchorAxis.Vertical> { Anchor(item, .height) }
 63 |
    :
105 | /// - tip: `UIView` does not provide anchor properties for the layout margin attributes.
106 | /// Instead, call `view.layoutMarginsGuide.anchors`.
107 | @MainActor public struct Anchor<Type, Axis> { // type and axis are phantom types
    |                                 `- note: 'Type' declared as parameter to type 'Anchor'
108 |     let item: LayoutItem
109 |     let attribute: NSLayoutConstraint.Attribute
/host/spi-builder-workspace/Sources/Align.swift:61:77: error: generic parameter 'Axis' could not be inferred
 59 |     public var lastBaseline: Anchor<AnchorType.Baseline, AnchorAxis.Vertical> { Anchor(item, .lastBaseline) }
 60 |
 61 |     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
 62 |     public var height: Anchor<AnchorType.Dimension, AnchorAxis.Vertical> { Anchor(item, .height) }
 63 |
    :
105 | /// - tip: `UIView` does not provide anchor properties for the layout margin attributes.
106 | /// Instead, call `view.layoutMarginsGuide.anchors`.
107 | @MainActor public struct Anchor<Type, Axis> { // type and axis are phantom types
    |                                       `- note: 'Axis' declared as parameter to type 'Anchor'
108 |     let item: LayoutItem
109 |     let attribute: NSLayoutConstraint.Attribute
/host/spi-builder-workspace/Sources/Align.swift:61:91: error: cannot infer contextual base in reference to member 'width'
 59 |     public var lastBaseline: Anchor<AnchorType.Baseline, AnchorAxis.Vertical> { Anchor(item, .lastBaseline) }
 60 |
 61 |     public var width: Anchor<AnchorType.Dimension, AnchorAxis.Horizontal> { Anchor(item, .width) }
    |                                                                                           `- error: cannot infer contextual base in reference to member 'width'
 62 |     public var height: Anchor<AnchorType.Dimension, AnchorAxis.Vertical> { Anchor(item, .height) }
 63 |
/host/spi-builder-workspace/Sources/Align.swift:62:76: error: generic parameter 'Type' could not be inferred
 60 |
 61 |     public var width: Anchor<AnchorType.Dimension, AnchorAxis.Horizontal> { Anchor(item, .width) }
 62 |     public var height: Anchor<AnchorType.Dimension, AnchorAxis.Vertical> { Anchor(item, .height) }
    |                                                                            `- error: generic parameter 'Type' could not be inferred
 63 |
 64 |     // MARK: Anchor Collections
    :
105 | /// - tip: `UIView` does not provide anchor properties for the layout margin attributes.
106 | /// Instead, call `view.layoutMarginsGuide.anchors`.
107 | @MainActor public struct Anchor<Type, Axis> { // type and axis are phantom types
    |                                 `- note: 'Type' declared as parameter to type 'Anchor'
108 |     let item: LayoutItem
109 |     let attribute: NSLayoutConstraint.Attribute
/host/spi-builder-workspace/Sources/Align.swift:62:76: error: generic parameter 'Axis' could not be inferred
 60 |
 61 |     public var width: Anchor<AnchorType.Dimension, AnchorAxis.Horizontal> { Anchor(item, .width) }
 62 |     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
 63 |
 64 |     // MARK: Anchor Collections
    :
105 | /// - tip: `UIView` does not provide anchor properties for the layout margin attributes.
106 | /// Instead, call `view.layoutMarginsGuide.anchors`.
107 | @MainActor public struct Anchor<Type, Axis> { // type and axis are phantom types
    |                                       `- note: 'Axis' declared as parameter to type 'Anchor'
108 |     let item: LayoutItem
109 |     let attribute: NSLayoutConstraint.Attribute
/host/spi-builder-workspace/Sources/Align.swift:62:90: error: cannot infer contextual base in reference to member 'height'
 60 |
 61 |     public var width: Anchor<AnchorType.Dimension, AnchorAxis.Horizontal> { Anchor(item, .width) }
 62 |     public var height: Anchor<AnchorType.Dimension, AnchorAxis.Vertical> { Anchor(item, .height) }
    |                                                                                          `- error: cannot infer contextual base in reference to member 'height'
 63 |
 64 |     // MARK: Anchor Collections
/host/spi-builder-workspace/Sources/Align.swift:205:28: error: reference to member 'trailing' cannot be resolved without a contextual type
203 |     /// Pins the edge to the respected edges of the given container.
204 |     @discardableResult func pin(to container: LayoutItem? = nil, inset: CGFloat = 0) -> NSLayoutConstraint {
205 |         let isInverted = [.trailing, .right, .bottom].contains(attribute)
    |                            `- error: reference to member 'trailing' cannot be resolved without a contextual type
206 |         return Constraints.add(self, toItem: container ?? item.superview!, attribute: attribute, constant: (isInverted ? -inset : inset))
207 |     }
/host/spi-builder-workspace/Sources/Align.swift:205:39: error: reference to member 'right' cannot be resolved without a contextual type
203 |     /// Pins the edge to the respected edges of the given container.
204 |     @discardableResult func pin(to container: LayoutItem? = nil, inset: CGFloat = 0) -> NSLayoutConstraint {
205 |         let isInverted = [.trailing, .right, .bottom].contains(attribute)
    |                                       `- error: reference to member 'right' cannot be resolved without a contextual type
206 |         return Constraints.add(self, toItem: container ?? item.superview!, attribute: attribute, constant: (isInverted ? -inset : inset))
207 |     }
/host/spi-builder-workspace/Sources/Align.swift:205:47: error: reference to member 'bottom' cannot be resolved without a contextual type
203 |     /// Pins the edge to the respected edges of the given container.
204 |     @discardableResult func pin(to container: LayoutItem? = nil, inset: CGFloat = 0) -> NSLayoutConstraint {
205 |         let isInverted = [.trailing, .right, .bottom].contains(attribute)
    |                                               `- error: reference to member 'bottom' cannot be resolved without a contextual type
206 |         return Constraints.add(self, toItem: container ?? item.superview!, attribute: attribute, constant: (isInverted ? -inset : inset))
207 |     }
/host/spi-builder-workspace/Sources/Align.swift:205:64: error: missing argument label 'where:' in call
203 |     /// Pins the edge to the respected edges of the given container.
204 |     @discardableResult func pin(to container: LayoutItem? = nil, inset: CGFloat = 0) -> NSLayoutConstraint {
205 |         let isInverted = [.trailing, .right, .bottom].contains(attribute)
    |                                                                `- error: missing argument label 'where:' in call
206 |         return Constraints.add(self, toItem: container ?? item.superview!, attribute: attribute, constant: (isInverted ? -inset : inset))
207 |     }
/host/spi-builder-workspace/Sources/Align.swift:211:41: error: cannot infer contextual base in reference to member 'bottom'
209 |     /// Adds spacing between the current anchors.
210 |     @discardableResult func spacing<OtherType: AnchorType.Edge>(_ spacing: CGFloat, to anchor: Anchor<OtherType, Axis>, relation: NSLayoutConstraint.Relation = .equal) -> NSLayoutConstraint {
211 |         let isInverted = (attribute == .bottom && anchor.attribute == .top) ||
    |                                         `- error: cannot infer contextual base in reference to member 'bottom'
212 |         (attribute == .right && anchor.attribute == .left) ||
213 |         (attribute == .trailing && anchor.attribute == .leading)
/host/spi-builder-workspace/Sources/Align.swift:211:72: error: cannot infer contextual base in reference to member 'top'
209 |     /// Adds spacing between the current anchors.
210 |     @discardableResult func spacing<OtherType: AnchorType.Edge>(_ spacing: CGFloat, to anchor: Anchor<OtherType, Axis>, relation: NSLayoutConstraint.Relation = .equal) -> NSLayoutConstraint {
211 |         let isInverted = (attribute == .bottom && anchor.attribute == .top) ||
    |                                                                        `- error: cannot infer contextual base in reference to member 'top'
212 |         (attribute == .right && anchor.attribute == .left) ||
213 |         (attribute == .trailing && anchor.attribute == .leading)
/host/spi-builder-workspace/Sources/Align.swift:213:24: error: cannot infer contextual base in reference to member 'trailing'
211 |         let isInverted = (attribute == .bottom && anchor.attribute == .top) ||
212 |         (attribute == .right && anchor.attribute == .left) ||
213 |         (attribute == .trailing && anchor.attribute == .leading)
    |                        `- error: cannot infer contextual base in reference to member 'trailing'
214 |         return Constraints.add(self, anchor, constant: isInverted ? -spacing : spacing, relation: isInverted ? relation.inverted : relation)
215 |     }
/host/spi-builder-workspace/Sources/Align.swift:213:57: error: cannot infer contextual base in reference to member 'leading'
211 |         let isInverted = (attribute == .bottom && anchor.attribute == .top) ||
212 |         (attribute == .right && anchor.attribute == .left) ||
213 |         (attribute == .trailing && anchor.attribute == .leading)
    |                                                         `- error: cannot infer contextual base in reference to member 'leading'
214 |         return Constraints.add(self, anchor, constant: isInverted ? -spacing : spacing, relation: isInverted ? relation.inverted : relation)
215 |     }
/host/spi-builder-workspace/Sources/Align.swift:295:19: error: cannot find type 'NSLayoutConstraint' in scope
293 |     private func pin(to item2: LayoutItem?, insets: EdgeInsets, axis: Axis?, alignment: Alignment, isCenteringEnabled: Bool) -> [NSLayoutConstraint] {
294 |         let item2 = item2 ?? item.superview!
295 |         let left: NSLayoutConstraint.Attribute = isAbsolute ? .left : .leading
    |                   `- error: cannot find type 'NSLayoutConstraint' in scope
296 |         let right: NSLayoutConstraint.Attribute = isAbsolute ? .right : .trailing
297 |         var constraints = [NSLayoutConstraint]()
/host/spi-builder-workspace/Sources/Align.swift:296:20: error: cannot find type 'NSLayoutConstraint' in scope
294 |         let item2 = item2 ?? item.superview!
295 |         let left: NSLayoutConstraint.Attribute = isAbsolute ? .left : .leading
296 |         let right: NSLayoutConstraint.Attribute = isAbsolute ? .right : .trailing
    |                    `- error: cannot find type 'NSLayoutConstraint' in scope
297 |         var constraints = [NSLayoutConstraint]()
298 |
/host/spi-builder-workspace/Sources/Align.swift:297:28: error: cannot find 'NSLayoutConstraint' in scope
295 |         let left: NSLayoutConstraint.Attribute = isAbsolute ? .left : .leading
296 |         let right: NSLayoutConstraint.Attribute = isAbsolute ? .right : .trailing
297 |         var constraints = [NSLayoutConstraint]()
    |                            `- error: cannot find 'NSLayoutConstraint' in scope
298 |
299 |         func constrain(attribute: NSLayoutConstraint.Attribute, relation: NSLayoutConstraint.Relation, constant: CGFloat) {
/host/spi-builder-workspace/Sources/Align.swift:297:27: error: cannot call value of non-function type '[Any]'
295 |         let left: NSLayoutConstraint.Attribute = isAbsolute ? .left : .leading
296 |         let right: NSLayoutConstraint.Attribute = isAbsolute ? .right : .trailing
297 |         var constraints = [NSLayoutConstraint]()
    |                           `- error: cannot call value of non-function type '[Any]'
298 |
299 |         func constrain(attribute: NSLayoutConstraint.Attribute, relation: NSLayoutConstraint.Relation, constant: CGFloat) {
/host/spi-builder-workspace/Sources/Align.swift:299:35: error: cannot find type 'NSLayoutConstraint' in scope
297 |         var constraints = [NSLayoutConstraint]()
298 |
299 |         func constrain(attribute: NSLayoutConstraint.Attribute, relation: NSLayoutConstraint.Relation, constant: CGFloat) {
    |                                   `- error: cannot find type 'NSLayoutConstraint' in scope
300 |             constraints.append(Constraints.add(item: item, attribute: attribute, relatedBy: relation, toItem: item2, attribute: attribute, multiplier: 1, constant: constant))
301 |         }
/host/spi-builder-workspace/Sources/Align.swift:299:75: error: cannot find type 'NSLayoutConstraint' in scope
297 |         var constraints = [NSLayoutConstraint]()
298 |
299 |         func constrain(attribute: NSLayoutConstraint.Attribute, relation: NSLayoutConstraint.Relation, constant: CGFloat) {
    |                                                                           `- error: cannot find type 'NSLayoutConstraint' in scope
300 |             constraints.append(Constraints.add(item: item, attribute: attribute, relatedBy: relation, toItem: item2, attribute: attribute, multiplier: 1, constant: constant))
301 |         }
/host/spi-builder-workspace/Sources/Align.swift:299:114: error: cannot find type 'CGFloat' in scope
297 |         var constraints = [NSLayoutConstraint]()
298 |
299 |         func constrain(attribute: NSLayoutConstraint.Attribute, relation: NSLayoutConstraint.Relation, constant: CGFloat) {
    |                                                                                                                  `- error: cannot find type 'CGFloat' in scope
300 |             constraints.append(Constraints.add(item: item, attribute: attribute, relatedBy: relation, toItem: item2, attribute: attribute, multiplier: 1, constant: constant))
301 |         }
/host/spi-builder-workspace/Sources/Align.swift:304:119: error: cannot infer contextual base in reference to member 'equal'
302 |
303 |         if axis == nil || axis == .horizontal {
304 |             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'
305 |             constrain(attribute: right, relation: alignment.horizontal == .fill || alignment.horizontal == .trailing ? .equal : .lessThanOrEqual, constant: -insets.right)
306 |             if alignment.horizontal == .center && isCenteringEnabled {
/host/spi-builder-workspace/Sources/Align.swift:305:121: error: cannot infer contextual base in reference to member 'equal'
303 |         if axis == nil || axis == .horizontal {
304 |             constrain(attribute: left, relation: alignment.horizontal == .fill || alignment.horizontal == .leading ? .equal : .greaterThanOrEqual, constant: insets.left)
305 |             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'
306 |             if alignment.horizontal == .center && isCenteringEnabled {
307 |                 constrain(attribute: .centerX, relation: .equal, constant: 0)
/host/spi-builder-workspace/Sources/Align.swift:307:39: error: cannot infer contextual base in reference to member 'centerX'
305 |             constrain(attribute: right, relation: alignment.horizontal == .fill || alignment.horizontal == .trailing ? .equal : .lessThanOrEqual, constant: -insets.right)
306 |             if alignment.horizontal == .center && isCenteringEnabled {
307 |                 constrain(attribute: .centerX, relation: .equal, constant: 0)
    |                                       `- error: cannot infer contextual base in reference to member 'centerX'
308 |             }
309 |         }
/host/spi-builder-workspace/Sources/Align.swift:307:59: error: cannot infer contextual base in reference to member 'equal'
305 |             constrain(attribute: right, relation: alignment.horizontal == .fill || alignment.horizontal == .trailing ? .equal : .lessThanOrEqual, constant: -insets.right)
306 |             if alignment.horizontal == .center && isCenteringEnabled {
307 |                 constrain(attribute: .centerX, relation: .equal, constant: 0)
    |                                                           `- error: cannot infer contextual base in reference to member 'equal'
308 |             }
309 |         }
/host/spi-builder-workspace/Sources/Align.swift:311:35: error: cannot infer contextual base in reference to member 'top'
309 |         }
310 |         if axis == nil || axis == .vertical {
311 |             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'
312 |             constrain(attribute: .bottom, relation: alignment.vertical == .fill || alignment.vertical == .bottom ? .equal : .lessThanOrEqual, constant: -insets.bottom)
313 |             if alignment.vertical == .center && isCenteringEnabled {
/host/spi-builder-workspace/Sources/Align.swift:311:111: error: cannot infer contextual base in reference to member 'equal'
309 |         }
310 |         if axis == nil || axis == .vertical {
311 |             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'
312 |             constrain(attribute: .bottom, relation: alignment.vertical == .fill || alignment.vertical == .bottom ? .equal : .lessThanOrEqual, constant: -insets.bottom)
313 |             if alignment.vertical == .center && isCenteringEnabled {
/host/spi-builder-workspace/Sources/Align.swift:312:35: error: cannot infer contextual base in reference to member 'bottom'
310 |         if axis == nil || axis == .vertical {
311 |             constrain(attribute: .top, relation: alignment.vertical == .fill || alignment.vertical == .top ? .equal : .greaterThanOrEqual, constant: insets.top)
312 |             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'
313 |             if alignment.vertical == .center && isCenteringEnabled {
314 |                 constrain(attribute: .centerY, relation: .equal, constant: 0)
/host/spi-builder-workspace/Sources/Align.swift:312:117: error: cannot infer contextual base in reference to member 'equal'
310 |         if axis == nil || axis == .vertical {
311 |             constrain(attribute: .top, relation: alignment.vertical == .fill || alignment.vertical == .top ? .equal : .greaterThanOrEqual, constant: insets.top)
312 |             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'
313 |             if alignment.vertical == .center && isCenteringEnabled {
314 |                 constrain(attribute: .centerY, relation: .equal, constant: 0)
/host/spi-builder-workspace/Sources/Align.swift:314:39: error: cannot infer contextual base in reference to member 'centerY'
312 |             constrain(attribute: .bottom, relation: alignment.vertical == .fill || alignment.vertical == .bottom ? .equal : .lessThanOrEqual, constant: -insets.bottom)
313 |             if alignment.vertical == .center && isCenteringEnabled {
314 |                 constrain(attribute: .centerY, relation: .equal, constant: 0)
    |                                       `- error: cannot infer contextual base in reference to member 'centerY'
315 |             }
316 |         }
/host/spi-builder-workspace/Sources/Align.swift:314:59: error: cannot infer contextual base in reference to member 'equal'
312 |             constrain(attribute: .bottom, relation: alignment.vertical == .fill || alignment.vertical == .bottom ? .equal : .lessThanOrEqual, constant: -insets.bottom)
313 |             if alignment.vertical == .center && isCenteringEnabled {
314 |                 constrain(attribute: .centerY, relation: .equal, constant: 0)
    |                                                           `- error: cannot infer contextual base in reference to member 'equal'
315 |             }
316 |         }
/host/spi-builder-workspace/Sources/Align.swift:532:23: error: cannot find 'NSLayoutConstraint' in scope
530 |         closure() // create constraints
531 |         Constraints.stack.removeLast()
532 |         if activate { NSLayoutConstraint.activate(constraints) }
    |                       `- error: cannot find 'NSLayoutConstraint' in scope
533 |     }
534 |
/host/spi-builder-workspace/Sources/Align.swift:539:9: error: cannot find 'NSLayoutConstraint' in scope
537 |     /// Activates each constraint in the receiver.
538 |     public func activate() {
539 |         NSLayoutConstraint.activate(constraints)
    |         `- error: cannot find 'NSLayoutConstraint' in scope
540 |     }
541 |
/host/spi-builder-workspace/Sources/Align.swift:544:9: error: cannot find 'NSLayoutConstraint' in scope
542 |     /// Deactivates each constraint in the receiver.
543 |     public func deactivate() {
544 |         NSLayoutConstraint.deactivate(constraints)
    |         `- error: cannot find 'NSLayoutConstraint' in scope
545 |     }
546 |
/host/spi-builder-workspace/Sources/Align.swift:556:26: error: cannot find 'NSLayoutConstraint' in scope
554 |         (item1 as? NSView)?.translatesAutoresizingMaskIntoConstraints = false
555 | #endif
556 |         let constraint = NSLayoutConstraint(item: item1, attribute: attr1, relatedBy: relation, toItem: item2, attribute: attr2 ?? .notAnAttribute, multiplier: multiplier, constant: constant)
    |                          `- error: cannot find 'NSLayoutConstraint' in scope
557 |         install(constraint)
558 |         return constraint
/host/spi-builder-workspace/Sources/Align.swift:614:19: error: cannot find type 'NSLayoutConstraint' in scope
612 |
613 | extension NSLayoutConstraint.Relation {
614 |     var inverted: NSLayoutConstraint.Relation {
    |                   `- error: cannot find type 'NSLayoutConstraint' in scope
615 |         switch self {
616 |         case .greaterThanOrEqual: return .lessThanOrEqual
/host/spi-builder-workspace/Sources/Align.swift:625:84: error: cannot find type 'CGFloat' in scope
623 |
624 | extension EdgeInsets {
625 |     func inset(for attribute: NSLayoutConstraint.Attribute, edge: Bool = false) -> CGFloat {
    |                                                                                    `- error: cannot find type 'CGFloat' in scope
626 |         switch attribute {
627 |         case .top: return top; case .bottom: return edge ? -bottom : bottom
/host/spi-builder-workspace/Sources/Align.swift:625:31: error: cannot find type 'NSLayoutConstraint' in scope
623 |
624 | extension EdgeInsets {
625 |     func inset(for attribute: NSLayoutConstraint.Attribute, edge: Bool = false) -> CGFloat {
    |                               `- error: cannot find type 'NSLayoutConstraint' in scope
626 |         switch attribute {
627 |         case .top: return top; case .bottom: return edge ? -bottom : bottom
BUILD FAILURE 6.1 linux