Build Information
Failed to build Subviews, reference main (5449b8), with Swift 6.4 for visionOS using Xcode 27.0 on 19 Sep 2026 09:12:57 UTC.
Build Command
env DEVELOPER_DIR=/Applications/Xcode-27.0.0-Release.Candidate.app xcrun xcodebuild -IDEClonedSourcePackagesDirPathOverride=$PWD/.dependencies -skipMacroValidation -skipPackagePluginValidation -derivedDataPath $PWD/.derivedData build -scheme Subviews -destination generic/platform=xrOSBuild Log
/Users/admin/builder/spi-builder-workspace/Sources/Subviews/Internal/Align.swift:266:52: error: cannot find type 'LayoutItem' in scope
264 | #endif
265 |
266 | @discardableResult internal func pin(to item2: LayoutItem? = nil, insets: EdgeInsets = .zero, alignment: Alignmment = .fill) -> [NSLayoutConstraint] {
| `- error: cannot find type 'LayoutItem' in scope
267 | let item2 = item2 ?? item.superview!
268 | let left: NSLayoutConstraint.Attribute = isAbsolute ? .left : .leading
/Users/admin/builder/spi-builder-workspace/Sources/Subviews/Internal/Align.swift:266:79: error: cannot find type 'EdgeInsets' in scope
264 | #endif
265 |
266 | @discardableResult internal func pin(to item2: LayoutItem? = nil, insets: EdgeInsets = .zero, alignment: Alignmment = .fill) -> [NSLayoutConstraint] {
| `- error: cannot find type 'EdgeInsets' in scope
267 | let item2 = item2 ?? item.superview!
268 | let left: NSLayoutConstraint.Attribute = isAbsolute ? .left : .leading
/Users/admin/builder/spi-builder-workspace/Sources/Subviews/Internal/Align.swift:294:147: error: cannot find type 'NSLayoutConstraint' in scope
292 |
293 | @available(*, deprecated, message: "Use .horizontal or .vertical before calling .pin instead of specifying axis")
294 | @discardableResult internal func pin(to item2: LayoutItem? = nil, insets: EdgeInsets = .zero, axis: Axis?, alignment: Alignmment = .fill) -> [NSLayoutConstraint] {
| `- error: cannot find type 'NSLayoutConstraint' in scope
295 | if let axis = axis {
296 | return AnchorCollectionEdges(item: item, isAbsolute: isAbsolute, axis: axis).pin(to: item2, insets: insets, alignment: alignment)
/Users/admin/builder/spi-builder-workspace/Sources/Subviews/Internal/Align.swift:294:52: error: cannot find type 'LayoutItem' in scope
292 |
293 | @available(*, deprecated, message: "Use .horizontal or .vertical before calling .pin instead of specifying axis")
294 | @discardableResult internal func pin(to item2: LayoutItem? = nil, insets: EdgeInsets = .zero, axis: Axis?, alignment: Alignmment = .fill) -> [NSLayoutConstraint] {
| `- error: cannot find type 'LayoutItem' in scope
295 | if let axis = axis {
296 | return AnchorCollectionEdges(item: item, isAbsolute: isAbsolute, axis: axis).pin(to: item2, insets: insets, alignment: alignment)
/Users/admin/builder/spi-builder-workspace/Sources/Subviews/Internal/Align.swift:294:79: error: cannot find type 'EdgeInsets' in scope
292 |
293 | @available(*, deprecated, message: "Use .horizontal or .vertical before calling .pin instead of specifying axis")
294 | @discardableResult internal func pin(to item2: LayoutItem? = nil, insets: EdgeInsets = .zero, axis: Axis?, alignment: Alignmment = .fill) -> [NSLayoutConstraint] {
| `- error: cannot find type 'EdgeInsets' in scope
295 | if let axis = axis {
296 | return AnchorCollectionEdges(item: item, isAbsolute: isAbsolute, axis: axis).pin(to: item2, insets: insets, alignment: alignment)
/Users/admin/builder/spi-builder-workspace/Sources/Subviews/Internal/Align.swift:310:50: error: cannot find type 'NSLayoutConstraint' in scope
308 |
309 | /// Centers the view in the superview.
310 | @discardableResult internal func align() -> [NSLayoutConstraint] {
| `- error: cannot find type 'NSLayoutConstraint' in scope
311 | [x.align(), y.align()]
312 | }
/Users/admin/builder/spi-builder-workspace/Sources/Subviews/Internal/Align.swift:315:83: error: cannot find type 'NSLayoutConstraint' in scope
313 |
314 | /// Makes the axis equal to the other collection of axis.
315 | @discardableResult internal func align<Item: LayoutItem>(with item: Item) -> [NSLayoutConstraint] {
| `- error: cannot find type 'NSLayoutConstraint' in scope
316 | [x.equal(item.anchors.centerX), y.equal(item.anchors.centerY)]
317 | }
/Users/admin/builder/spi-builder-workspace/Sources/Subviews/Internal/Align.swift:315:50: error: cannot find type 'LayoutItem' in scope
313 |
314 | /// Makes the axis equal to the other collection of axis.
315 | @discardableResult internal func align<Item: LayoutItem>(with item: Item) -> [NSLayoutConstraint] {
| `- error: cannot find type 'LayoutItem' in scope
316 | [x.equal(item.anchors.centerX), y.equal(item.anchors.centerY)]
317 | }
/Users/admin/builder/spi-builder-workspace/Sources/Subviews/Internal/Align.swift:327:64: error: cannot find type 'NSLayoutConstraint' in scope
325 |
326 | /// Set the size of item.
327 | @discardableResult internal func equal(_ size: CGSize) -> [NSLayoutConstraint] {
| `- error: cannot find type 'NSLayoutConstraint' in scope
328 | [width.equal(size.width), height.equal(size.height)]
329 | }
/Users/admin/builder/spi-builder-workspace/Sources/Subviews/Internal/Align.swift:327:52: error: cannot find type 'CGSize' in scope
325 |
326 | /// Set the size of item.
327 | @discardableResult internal func equal(_ size: CGSize) -> [NSLayoutConstraint] {
| `- error: cannot find type 'CGSize' in scope
328 | [width.equal(size.width), height.equal(size.height)]
329 | }
/Users/admin/builder/spi-builder-workspace/Sources/Subviews/Internal/Align.swift:332:76: error: cannot find type 'NSLayoutConstraint' in scope
330 |
331 | /// Set the size of item.
332 | @discardableResult internal func greaterThanOrEqul(_ size: CGSize) -> [NSLayoutConstraint] {
| `- error: cannot find type 'NSLayoutConstraint' in scope
333 | [width.greaterThanOrEqual(size.width), height.greaterThanOrEqual(size.height)]
334 | }
/Users/admin/builder/spi-builder-workspace/Sources/Subviews/Internal/Align.swift:332:64: error: cannot find type 'CGSize' in scope
330 |
331 | /// Set the size of item.
332 | @discardableResult internal func greaterThanOrEqul(_ size: CGSize) -> [NSLayoutConstraint] {
| `- error: cannot find type 'CGSize' in scope
333 | [width.greaterThanOrEqual(size.width), height.greaterThanOrEqual(size.height)]
334 | }
/Users/admin/builder/spi-builder-workspace/Sources/Subviews/Internal/Align.swift:337:74: error: cannot find type 'NSLayoutConstraint' in scope
335 |
336 | /// Set the size of item.
337 | @discardableResult internal func lessThanOrEqual(_ size: CGSize) -> [NSLayoutConstraint] {
| `- error: cannot find type 'NSLayoutConstraint' in scope
338 | [width.lessThanOrEqual(size.width), height.lessThanOrEqual(size.height)]
339 | }
/Users/admin/builder/spi-builder-workspace/Sources/Subviews/Internal/Align.swift:337:62: error: cannot find type 'CGSize' in scope
335 |
336 | /// Set the size of item.
337 | @discardableResult internal func lessThanOrEqual(_ size: CGSize) -> [NSLayoutConstraint] {
| `- error: cannot find type 'CGSize' in scope
338 | [width.lessThanOrEqual(size.width), height.lessThanOrEqual(size.height)]
339 | }
/Users/admin/builder/spi-builder-workspace/Sources/Subviews/Internal/Align.swift:342:84: error: cannot find type 'CGSize' in scope
340 |
341 | /// Makes the size of the item equal to the size of the other item.
342 | @discardableResult internal func equal<Item: LayoutItem>(_ item: Item, insets: CGSize = .zero, multiplier: CGFloat = 1) -> [NSLayoutConstraint] {
| `- error: cannot find type 'CGSize' in scope
343 | [width.equal(item.anchors.width * multiplier - insets.width), height.equal(item.anchors.height * multiplier - insets.height)]
344 | }
/Users/admin/builder/spi-builder-workspace/Sources/Subviews/Internal/Align.swift:342:112: error: cannot find type 'CGFloat' in scope; did you mean to use 'CGFloat'?
340 |
341 | /// Makes the size of the item equal to the size of the other item.
342 | @discardableResult internal func equal<Item: LayoutItem>(_ item: Item, insets: CGSize = .zero, multiplier: CGFloat = 1) -> [NSLayoutConstraint] {
| `- error: cannot find type 'CGFloat' in scope; did you mean to use 'CGFloat'?
343 | [width.equal(item.anchors.width * multiplier - insets.width), height.equal(item.anchors.height * multiplier - insets.height)]
344 | }
/Users/admin/builder/spi-builder-workspace/Sources/Subviews/Internal/Align.swift:342:129: error: cannot find type 'NSLayoutConstraint' in scope
340 |
341 | /// Makes the size of the item equal to the size of the other item.
342 | @discardableResult internal func equal<Item: LayoutItem>(_ item: Item, insets: CGSize = .zero, multiplier: CGFloat = 1) -> [NSLayoutConstraint] {
| `- error: cannot find type 'NSLayoutConstraint' in scope
343 | [width.equal(item.anchors.width * multiplier - insets.width), height.equal(item.anchors.height * multiplier - insets.height)]
344 | }
/Users/admin/builder/spi-builder-workspace/Sources/Subviews/Internal/Align.swift:342:50: error: cannot find type 'LayoutItem' in scope
340 |
341 | /// Makes the size of the item equal to the size of the other item.
342 | @discardableResult internal func equal<Item: LayoutItem>(_ item: Item, insets: CGSize = .zero, multiplier: CGFloat = 1) -> [NSLayoutConstraint] {
| `- error: cannot find type 'LayoutItem' in scope
343 | [width.equal(item.anchors.width * multiplier - insets.width), height.equal(item.anchors.height * multiplier - insets.height)]
344 | }
/Users/admin/builder/spi-builder-workspace/Sources/Subviews/Internal/Align.swift:342:112: error: cannot find type 'CGFloat' in scope; did you mean to use 'CGFloat'?
340 |
341 | /// Makes the size of the item equal to the size of the other item.
342 | @discardableResult internal func equal<Item: LayoutItem>(_ item: Item, insets: CGSize = .zero, multiplier: CGFloat = 1) -> [NSLayoutConstraint] {
| `- error: cannot find type 'CGFloat' in scope; did you mean to use 'CGFloat'?
343 | [width.equal(item.anchors.width * multiplier - insets.width), height.equal(item.anchors.height * multiplier - insets.height)]
344 | }
/Users/admin/builder/spi-builder-workspace/Sources/Subviews/Internal/Align.swift:346:97: error: cannot find type 'CGSize' in scope
344 | }
345 |
346 | @discardableResult internal func greaterThanOrEqual<Item: LayoutItem>(_ item: Item, insets: CGSize = .zero, multiplier: CGFloat = 1) -> [NSLayoutConstraint] {
| `- error: cannot find type 'CGSize' in scope
347 | [width.greaterThanOrEqual(item.anchors.width * multiplier - insets.width), height.greaterThanOrEqual(item.anchors.height * multiplier - insets.height)]
348 | }
/Users/admin/builder/spi-builder-workspace/Sources/Subviews/Internal/Align.swift:346:125: error: cannot find type 'CGFloat' in scope; did you mean to use 'CGFloat'?
344 | }
345 |
346 | @discardableResult internal func greaterThanOrEqual<Item: LayoutItem>(_ item: Item, insets: CGSize = .zero, multiplier: CGFloat = 1) -> [NSLayoutConstraint] {
| `- error: cannot find type 'CGFloat' in scope; did you mean to use 'CGFloat'?
347 | [width.greaterThanOrEqual(item.anchors.width * multiplier - insets.width), height.greaterThanOrEqual(item.anchors.height * multiplier - insets.height)]
348 | }
/Users/admin/builder/spi-builder-workspace/Sources/Subviews/Internal/Align.swift:346:142: error: cannot find type 'NSLayoutConstraint' in scope
344 | }
345 |
346 | @discardableResult internal func greaterThanOrEqual<Item: LayoutItem>(_ item: Item, insets: CGSize = .zero, multiplier: CGFloat = 1) -> [NSLayoutConstraint] {
| `- error: cannot find type 'NSLayoutConstraint' in scope
347 | [width.greaterThanOrEqual(item.anchors.width * multiplier - insets.width), height.greaterThanOrEqual(item.anchors.height * multiplier - insets.height)]
348 | }
/Users/admin/builder/spi-builder-workspace/Sources/Subviews/Internal/Align.swift:346:63: error: cannot find type 'LayoutItem' in scope
344 | }
345 |
346 | @discardableResult internal func greaterThanOrEqual<Item: LayoutItem>(_ item: Item, insets: CGSize = .zero, multiplier: CGFloat = 1) -> [NSLayoutConstraint] {
| `- error: cannot find type 'LayoutItem' in scope
347 | [width.greaterThanOrEqual(item.anchors.width * multiplier - insets.width), height.greaterThanOrEqual(item.anchors.height * multiplier - insets.height)]
348 | }
/Users/admin/builder/spi-builder-workspace/Sources/Subviews/Internal/Align.swift:346:125: error: cannot find type 'CGFloat' in scope; did you mean to use 'CGFloat'?
344 | }
345 |
346 | @discardableResult internal func greaterThanOrEqual<Item: LayoutItem>(_ item: Item, insets: CGSize = .zero, multiplier: CGFloat = 1) -> [NSLayoutConstraint] {
| `- error: cannot find type 'CGFloat' in scope; did you mean to use 'CGFloat'?
347 | [width.greaterThanOrEqual(item.anchors.width * multiplier - insets.width), height.greaterThanOrEqual(item.anchors.height * multiplier - insets.height)]
348 | }
/Users/admin/builder/spi-builder-workspace/Sources/Subviews/Internal/Align.swift:350:94: error: cannot find type 'CGSize' in scope
348 | }
349 |
350 | @discardableResult internal func lessThanOrEqual<Item: LayoutItem>(_ item: Item, insets: CGSize = .zero, multiplier: CGFloat = 1) -> [NSLayoutConstraint] {
| `- error: cannot find type 'CGSize' in scope
351 | [width.lessThanOrEqual(item.anchors.width * multiplier - insets.width), height.lessThanOrEqual(item.anchors.height * multiplier - insets.height)]
352 | }
/Users/admin/builder/spi-builder-workspace/Sources/Subviews/Internal/Align.swift:350:122: error: cannot find type 'CGFloat' in scope; did you mean to use 'CGFloat'?
348 | }
349 |
350 | @discardableResult internal func lessThanOrEqual<Item: LayoutItem>(_ item: Item, insets: CGSize = .zero, multiplier: CGFloat = 1) -> [NSLayoutConstraint] {
| `- error: cannot find type 'CGFloat' in scope; did you mean to use 'CGFloat'?
351 | [width.lessThanOrEqual(item.anchors.width * multiplier - insets.width), height.lessThanOrEqual(item.anchors.height * multiplier - insets.height)]
352 | }
/Users/admin/builder/spi-builder-workspace/Sources/Subviews/Internal/Align.swift:350:139: error: cannot find type 'NSLayoutConstraint' in scope
348 | }
349 |
350 | @discardableResult internal func lessThanOrEqual<Item: LayoutItem>(_ item: Item, insets: CGSize = .zero, multiplier: CGFloat = 1) -> [NSLayoutConstraint] {
| `- error: cannot find type 'NSLayoutConstraint' in scope
351 | [width.lessThanOrEqual(item.anchors.width * multiplier - insets.width), height.lessThanOrEqual(item.anchors.height * multiplier - insets.height)]
352 | }
/Users/admin/builder/spi-builder-workspace/Sources/Subviews/Internal/Align.swift:350:60: error: cannot find type 'LayoutItem' in scope
348 | }
349 |
350 | @discardableResult internal func lessThanOrEqual<Item: LayoutItem>(_ item: Item, insets: CGSize = .zero, multiplier: CGFloat = 1) -> [NSLayoutConstraint] {
| `- error: cannot find type 'LayoutItem' in scope
351 | [width.lessThanOrEqual(item.anchors.width * multiplier - insets.width), height.lessThanOrEqual(item.anchors.height * multiplier - insets.height)]
352 | }
/Users/admin/builder/spi-builder-workspace/Sources/Subviews/Internal/Align.swift:350:122: error: cannot find type 'CGFloat' in scope; did you mean to use 'CGFloat'?
348 | }
349 |
350 | @discardableResult internal func lessThanOrEqual<Item: LayoutItem>(_ item: Item, insets: CGSize = .zero, multiplier: CGFloat = 1) -> [NSLayoutConstraint] {
| `- error: cannot find type 'CGFloat' in scope; did you mean to use 'CGFloat'?
351 | [width.lessThanOrEqual(item.anchors.width * multiplier - insets.width), height.lessThanOrEqual(item.anchors.height * multiplier - insets.height)]
352 | }
/Users/admin/builder/spi-builder-workspace/Sources/Subviews/Internal/Align.swift:359:46: error: cannot find 'NSLayoutConstraint' in scope
357 | internal final class Constraints {
358 | /// Returns all of the created constraints.
359 | internal private(set) var constraints = [NSLayoutConstraint]()
| `- error: cannot find 'NSLayoutConstraint' in scope
360 |
361 | /// All of the constraints created in the given closure are automatically
/Users/admin/builder/spi-builder-workspace/Sources/Subviews/Internal/Align.swift:359:45: error: cannot call value of non-function type '[Element]'
357 | internal final class Constraints {
358 | /// Returns all of the created constraints.
359 | internal private(set) var constraints = [NSLayoutConstraint]()
| `- error: cannot call value of non-function type '[Element]'
360 |
361 | /// All of the constraints created in the given closure are automatically
/Users/admin/builder/spi-builder-workspace/Sources/Subviews/Internal/Align.swift:376:292: error: cannot find type 'NSLayoutConstraint' in scope
374 |
375 | /// Creates and automatically installs a constraint.
376 | fileprivate static func constrain(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
377 | precondition(Thread.isMainThread, "Align APIs can only be used from the main thread")
378 | #if os(iOS) || os(tvOS)
/Users/admin/builder/spi-builder-workspace/Sources/Subviews/Internal/Align.swift:376:73: error: cannot find type 'NSLayoutConstraint' in scope
374 |
375 | /// Creates and automatically installs a constraint.
376 | fileprivate static func constrain(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
377 | precondition(Thread.isMainThread, "Align APIs can only be used from the main thread")
378 | #if os(iOS) || os(tvOS)
/Users/admin/builder/spi-builder-workspace/Sources/Subviews/Internal/Align.swift:376:123: error: cannot find type 'NSLayoutConstraint' in scope
374 |
375 | /// Creates and automatically installs a constraint.
376 | fileprivate static func constrain(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
377 | precondition(Thread.isMainThread, "Align APIs can only be used from the main thread")
378 | #if os(iOS) || os(tvOS)
/Users/admin/builder/spi-builder-workspace/Sources/Subviews/Internal/Align.swift:376:204: error: cannot find type 'NSLayoutConstraint' in scope
374 |
375 | /// Creates and automatically installs a constraint.
376 | fileprivate static func constrain(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
377 | precondition(Thread.isMainThread, "Align APIs can only be used from the main thread")
378 | #if os(iOS) || os(tvOS)
/Users/admin/builder/spi-builder-workspace/Sources/Subviews/Internal/Align.swift:376:253: error: cannot find type 'CGFloat' in scope; did you mean to use 'CGFloat'?
374 |
375 | /// Creates and automatically installs a constraint.
376 | fileprivate static func constrain(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; did you mean to use 'CGFloat'?
377 | precondition(Thread.isMainThread, "Align APIs can only be used from the main thread")
378 | #if os(iOS) || os(tvOS)
/Users/admin/builder/spi-builder-workspace/Sources/Subviews/Internal/Align.swift:376:276: error: cannot find type 'CGFloat' in scope; did you mean to use 'CGFloat'?
374 |
375 | /// Creates and automatically installs a constraint.
376 | fileprivate static func constrain(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; did you mean to use 'CGFloat'?
377 | precondition(Thread.isMainThread, "Align APIs can only be used from the main thread")
378 | #if os(iOS) || os(tvOS)
/Users/admin/builder/spi-builder-workspace/Sources/Subviews/Internal/Align.swift:389:111: error: cannot find type 'CGFloat' in scope; did you mean to use 'CGFloat'?
387 |
388 | /// Creates and automatically installs a constraint between two anchors.
389 | fileprivate static func constrain<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; did you mean to use 'CGFloat'?
390 | constrain(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)
391 | }
/Users/admin/builder/spi-builder-workspace/Sources/Subviews/Internal/Align.swift:389:136: error: cannot find type 'CGFloat' in scope; did you mean to use 'CGFloat'?
387 |
388 | /// Creates and automatically installs a constraint between two anchors.
389 | fileprivate static func constrain<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; did you mean to use 'CGFloat'?
390 | constrain(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)
391 | }
/Users/admin/builder/spi-builder-workspace/Sources/Subviews/Internal/Align.swift:389:159: error: cannot find type 'NSLayoutConstraint' in scope
387 |
388 | /// Creates and automatically installs a constraint between two anchors.
389 | fileprivate static func constrain<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
390 | constrain(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)
391 | }
/Users/admin/builder/spi-builder-workspace/Sources/Subviews/Internal/Align.swift:389:200: error: cannot find type 'NSLayoutConstraint' in scope
387 |
388 | /// Creates and automatically installs a constraint between two anchors.
389 | fileprivate static func constrain<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
390 | constrain(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)
391 | }
/Users/admin/builder/spi-builder-workspace/Sources/Subviews/Internal/Align.swift:389:111: error: cannot find type 'CGFloat' in scope; did you mean to use 'CGFloat'?
387 |
388 | /// Creates and automatically installs a constraint between two anchors.
389 | fileprivate static func constrain<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; did you mean to use 'CGFloat'?
390 | constrain(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)
391 | }
/Users/admin/builder/spi-builder-workspace/Sources/Subviews/Internal/Align.swift:389:136: error: cannot find type 'CGFloat' in scope; did you mean to use 'CGFloat'?
387 |
388 | /// Creates and automatically installs a constraint between two anchors.
389 | fileprivate static func constrain<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; did you mean to use 'CGFloat'?
390 | constrain(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)
391 | }
/Users/admin/builder/spi-builder-workspace/Sources/Subviews/Internal/Align.swift:395:107: error: cannot find type 'NSLayoutConstraint' in scope
393 | /// Creates and automatically installs a constraint between an anchor and
394 | /// a given item.
395 | fileprivate static func constrain<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
396 | constrain(item: lhs.item, attribute: lhs.attribute, relatedBy: relation, toItem: item2, attribute: attr2, multiplier: multiplier / lhs.multiplier, constant: constant - lhs.offset)
397 | }
/Users/admin/builder/spi-builder-workspace/Sources/Subviews/Internal/Align.swift:395:148: error: cannot find type 'CGFloat' in scope; did you mean to use 'CGFloat'?
393 | /// Creates and automatically installs a constraint between an anchor and
394 | /// a given item.
395 | fileprivate static func constrain<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; did you mean to use 'CGFloat'?
396 | constrain(item: lhs.item, attribute: lhs.attribute, relatedBy: relation, toItem: item2, attribute: attr2, multiplier: multiplier / lhs.multiplier, constant: constant - lhs.offset)
397 | }
/Users/admin/builder/spi-builder-workspace/Sources/Subviews/Internal/Align.swift:395:173: error: cannot find type 'CGFloat' in scope; did you mean to use 'CGFloat'?
393 | /// Creates and automatically installs a constraint between an anchor and
394 | /// a given item.
395 | fileprivate static func constrain<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; did you mean to use 'CGFloat'?
396 | constrain(item: lhs.item, attribute: lhs.attribute, relatedBy: relation, toItem: item2, attribute: attr2, multiplier: multiplier / lhs.multiplier, constant: constant - lhs.offset)
397 | }
/Users/admin/builder/spi-builder-workspace/Sources/Subviews/Internal/Align.swift:395:196: error: cannot find type 'NSLayoutConstraint' in scope
393 | /// Creates and automatically installs a constraint between an anchor and
394 | /// a given item.
395 | fileprivate static func constrain<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
396 | constrain(item: lhs.item, attribute: lhs.attribute, relatedBy: relation, toItem: item2, attribute: attr2, multiplier: multiplier / lhs.multiplier, constant: constant - lhs.offset)
397 | }
/Users/admin/builder/spi-builder-workspace/Sources/Subviews/Internal/Align.swift:395:237: error: cannot find type 'NSLayoutConstraint' in scope
393 | /// Creates and automatically installs a constraint between an anchor and
394 | /// a given item.
395 | fileprivate static func constrain<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
396 | constrain(item: lhs.item, attribute: lhs.attribute, relatedBy: relation, toItem: item2, attribute: attr2, multiplier: multiplier / lhs.multiplier, constant: constant - lhs.offset)
397 | }
/Users/admin/builder/spi-builder-workspace/Sources/Subviews/Internal/Align.swift:395:148: error: cannot find type 'CGFloat' in scope; did you mean to use 'CGFloat'?
393 | /// Creates and automatically installs a constraint between an anchor and
394 | /// a given item.
395 | fileprivate static func constrain<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; did you mean to use 'CGFloat'?
396 | constrain(item: lhs.item, attribute: lhs.attribute, relatedBy: relation, toItem: item2, attribute: attr2, multiplier: multiplier / lhs.multiplier, constant: constant - lhs.offset)
397 | }
/Users/admin/builder/spi-builder-workspace/Sources/Subviews/Internal/Align.swift:395:173: error: cannot find type 'CGFloat' in scope; did you mean to use 'CGFloat'?
393 | /// Creates and automatically installs a constraint between an anchor and
394 | /// a given item.
395 | fileprivate static func constrain<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; did you mean to use 'CGFloat'?
396 | constrain(item: lhs.item, attribute: lhs.attribute, relatedBy: relation, toItem: item2, attribute: attr2, multiplier: multiplier / lhs.multiplier, constant: constant - lhs.offset)
397 | }
/Users/admin/builder/spi-builder-workspace/Sources/Subviews/Internal/Align.swift:401:48: error: cannot find type 'NSLayoutConstraint' in scope
399 | private static var _stack = [Constraints]() // this is what enabled constraint auto-installing
400 |
401 | private static func _install(_ constraint: NSLayoutConstraint) {
| `- error: cannot find type 'NSLayoutConstraint' in scope
402 | if let group = _stack.last {
403 | group.constraints.append(constraint)
/Users/admin/builder/spi-builder-workspace/Sources/Subviews/Internal/Align.swift:411:53: error: cannot find type 'LayoutItem' in scope
409 |
410 | extension Constraints {
411 | @discardableResult internal convenience init<A: LayoutItem>(for a: A, _ closure: (LayoutAnchors<A>) -> Void) {
| `- error: cannot find type 'LayoutItem' in scope
412 | self.init { closure(a.anchors) }
413 | }
/Users/admin/builder/spi-builder-workspace/Sources/Subviews/Internal/Align.swift:415:53: error: cannot find type 'LayoutItem' in scope
413 | }
414 |
415 | @discardableResult internal convenience init<A: LayoutItem, B: LayoutItem>(for a: A, _ b: B, _ closure: (LayoutAnchors<A>, LayoutAnchors<B>) -> Void) {
| `- error: cannot find type 'LayoutItem' in scope
416 | self.init { closure(a.anchors, b.anchors) }
417 | }
/Users/admin/builder/spi-builder-workspace/Sources/Subviews/Internal/Align.swift:415:68: error: cannot find type 'LayoutItem' in scope
413 | }
414 |
415 | @discardableResult internal convenience init<A: LayoutItem, B: LayoutItem>(for a: A, _ b: B, _ closure: (LayoutAnchors<A>, LayoutAnchors<B>) -> Void) {
| `- error: cannot find type 'LayoutItem' in scope
416 | self.init { closure(a.anchors, b.anchors) }
417 | }
/Users/admin/builder/spi-builder-workspace/Sources/Subviews/Internal/Align.swift:419:53: error: cannot find type 'LayoutItem' in scope
417 | }
418 |
419 | @discardableResult internal convenience init<A: LayoutItem, B: LayoutItem, C: LayoutItem>(for a: A, _ b: B, _ c: C, _ closure: (LayoutAnchors<A>, LayoutAnchors<B>, LayoutAnchors<C>) -> Void) {
| `- error: cannot find type 'LayoutItem' in scope
420 | self.init { closure(a.anchors, b.anchors, c.anchors) }
421 | }
/Users/admin/builder/spi-builder-workspace/Sources/Subviews/Internal/Align.swift:419:68: error: cannot find type 'LayoutItem' in scope
417 | }
418 |
419 | @discardableResult internal convenience init<A: LayoutItem, B: LayoutItem, C: LayoutItem>(for a: A, _ b: B, _ c: C, _ closure: (LayoutAnchors<A>, LayoutAnchors<B>, LayoutAnchors<C>) -> Void) {
| `- error: cannot find type 'LayoutItem' in scope
420 | self.init { closure(a.anchors, b.anchors, c.anchors) }
421 | }
/Users/admin/builder/spi-builder-workspace/Sources/Subviews/Internal/Align.swift:419:83: error: cannot find type 'LayoutItem' in scope
417 | }
418 |
419 | @discardableResult internal convenience init<A: LayoutItem, B: LayoutItem, C: LayoutItem>(for a: A, _ b: B, _ c: C, _ closure: (LayoutAnchors<A>, LayoutAnchors<B>, LayoutAnchors<C>) -> Void) {
| `- error: cannot find type 'LayoutItem' in scope
420 | self.init { closure(a.anchors, b.anchors, c.anchors) }
421 | }
/Users/admin/builder/spi-builder-workspace/Sources/Subviews/Internal/Align.swift:423:53: error: cannot find type 'LayoutItem' in scope
421 | }
422 |
423 | @discardableResult internal convenience init<A: LayoutItem, B: LayoutItem, C: LayoutItem, D: LayoutItem>(for a: A, _ b: B, _ c: C, _ d: D, _ closure: (LayoutAnchors<A>, LayoutAnchors<B>, LayoutAnchors<C>, LayoutAnchors<D>) -> Void) {
| `- error: cannot find type 'LayoutItem' in scope
424 | self.init { closure(a.anchors, b.anchors, c.anchors, d.anchors) }
425 | }
/Users/admin/builder/spi-builder-workspace/Sources/Subviews/Internal/Align.swift:423:68: error: cannot find type 'LayoutItem' in scope
421 | }
422 |
423 | @discardableResult internal convenience init<A: LayoutItem, B: LayoutItem, C: LayoutItem, D: LayoutItem>(for a: A, _ b: B, _ c: C, _ d: D, _ closure: (LayoutAnchors<A>, LayoutAnchors<B>, LayoutAnchors<C>, LayoutAnchors<D>) -> Void) {
| `- error: cannot find type 'LayoutItem' in scope
424 | self.init { closure(a.anchors, b.anchors, c.anchors, d.anchors) }
425 | }
/Users/admin/builder/spi-builder-workspace/Sources/Subviews/Internal/Align.swift:423:83: error: cannot find type 'LayoutItem' in scope
421 | }
422 |
423 | @discardableResult internal convenience init<A: LayoutItem, B: LayoutItem, C: LayoutItem, D: LayoutItem>(for a: A, _ b: B, _ c: C, _ d: D, _ closure: (LayoutAnchors<A>, LayoutAnchors<B>, LayoutAnchors<C>, LayoutAnchors<D>) -> Void) {
| `- error: cannot find type 'LayoutItem' in scope
424 | self.init { closure(a.anchors, b.anchors, c.anchors, d.anchors) }
425 | }
/Users/admin/builder/spi-builder-workspace/Sources/Subviews/Internal/Align.swift:423:98: error: cannot find type 'LayoutItem' in scope
421 | }
422 |
423 | @discardableResult internal convenience init<A: LayoutItem, B: LayoutItem, C: LayoutItem, D: LayoutItem>(for a: A, _ b: B, _ c: C, _ d: D, _ closure: (LayoutAnchors<A>, LayoutAnchors<B>, LayoutAnchors<C>, LayoutAnchors<D>) -> Void) {
| `- error: cannot find type 'LayoutItem' in scope
424 | self.init { closure(a.anchors, b.anchors, c.anchors, d.anchors) }
425 | }
/Users/admin/builder/spi-builder-workspace/Sources/Subviews/Internal/Align.swift:440:11: error: cannot find type 'NSLayoutConstraint' in scope
438 | #endif
439 |
440 | extension NSLayoutConstraint.Relation {
| `- error: cannot find type 'NSLayoutConstraint' in scope
441 | fileprivate var inverted: NSLayoutConstraint.Relation {
442 | switch self {
/Users/admin/builder/spi-builder-workspace/Sources/Subviews/Internal/Align.swift:451:11: error: cannot find type 'EdgeInsets' in scope
449 | }
450 |
451 | extension EdgeInsets {
| `- error: cannot find type 'EdgeInsets' in scope
452 | fileprivate func inset(for attribute: NSLayoutConstraint.Attribute, edge: Bool = false) -> CGFloat {
453 | switch attribute {
/Users/admin/builder/spi-builder-workspace/Sources/Subviews/Internal/Align.swift:465:73: error: cannot find type 'NSLayoutConstraint' in scope
463 |
464 | extension Anchor where Type: AnchorType.Edge {
465 | @discardableResult internal func safeAreaPin(inset: CGFloat = 0) -> NSLayoutConstraint {
| `- error: cannot find type 'NSLayoutConstraint' in scope
466 | pin(to: item.superview!.safeAreaLayoutGuide, inset: inset)
467 | }
/Users/admin/builder/spi-builder-workspace/Sources/Subviews/Internal/Align.swift:465:57: error: cannot find type 'CGFloat' in scope; did you mean to use 'CGFloat'?
463 |
464 | extension Anchor where Type: AnchorType.Edge {
465 | @discardableResult internal func safeAreaPin(inset: CGFloat = 0) -> NSLayoutConstraint {
| `- error: cannot find type 'CGFloat' in scope; did you mean to use 'CGFloat'?
466 | pin(to: item.superview!.safeAreaLayoutGuide, inset: inset)
467 | }
/Users/admin/builder/spi-builder-workspace/Sources/Subviews/Internal/Align.swift:469:80: error: cannot find type 'NSLayoutConstraint' in scope
467 | }
468 |
469 | @discardableResult internal func readableContentPin(inset: CGFloat = 0) -> NSLayoutConstraint {
| `- error: cannot find type 'NSLayoutConstraint' in scope
470 | pin(to: item.superview!.readableContentGuide, inset: inset)
471 | }
/Users/admin/builder/spi-builder-workspace/Sources/Subviews/Internal/Align.swift:469:64: error: cannot find type 'CGFloat' in scope; did you mean to use 'CGFloat'?
467 | }
468 |
469 | @discardableResult internal func readableContentPin(inset: CGFloat = 0) -> NSLayoutConstraint {
| `- error: cannot find type 'CGFloat' in scope; did you mean to use 'CGFloat'?
470 | pin(to: item.superview!.readableContentGuide, inset: inset)
471 | }
/Users/admin/builder/spi-builder-workspace/Sources/Subviews/Internal/Align.swift:473:72: error: cannot find type 'NSLayoutConstraint' in scope
471 | }
472 |
473 | @discardableResult internal func marginsPin(inset: CGFloat = 0) -> NSLayoutConstraint {
| `- error: cannot find type 'NSLayoutConstraint' in scope
474 | pin(to: item.superview!.layoutMarginsGuide, inset: inset)
475 | }
/Users/admin/builder/spi-builder-workspace/Sources/Subviews/Internal/Align.swift:473:56: error: cannot find type 'CGFloat' in scope; did you mean to use 'CGFloat'?
471 | }
472 |
473 | @discardableResult internal func marginsPin(inset: CGFloat = 0) -> NSLayoutConstraint {
| `- error: cannot find type 'CGFloat' in scope; did you mean to use 'CGFloat'?
474 | pin(to: item.superview!.layoutMarginsGuide, inset: inset)
475 | }
/Users/admin/builder/spi-builder-workspace/Sources/Subviews/Internal/Align.swift:479:113: error: cannot find type 'NSLayoutConstraint' in scope
477 |
478 | extension AnchorCollectionEdges {
479 | @discardableResult internal func safeAreaPin(insets: EdgeInsets = .zero, alignment: Alignmment = .fill) -> [NSLayoutConstraint] {
| `- error: cannot find type 'NSLayoutConstraint' in scope
480 | pin(to: item.superview!.safeAreaLayoutGuide, insets: insets, alignment: alignment)
481 | }
/Users/admin/builder/spi-builder-workspace/Sources/Subviews/Internal/Align.swift:479:58: error: cannot find type 'EdgeInsets' in scope
477 |
478 | extension AnchorCollectionEdges {
479 | @discardableResult internal func safeAreaPin(insets: EdgeInsets = .zero, alignment: Alignmment = .fill) -> [NSLayoutConstraint] {
| `- error: cannot find type 'EdgeInsets' in scope
480 | pin(to: item.superview!.safeAreaLayoutGuide, insets: insets, alignment: alignment)
481 | }
/Users/admin/builder/spi-builder-workspace/Sources/Subviews/Internal/Align.swift:483:120: error: cannot find type 'NSLayoutConstraint' in scope
481 | }
482 |
483 | @discardableResult internal func readableContentPin(insets: EdgeInsets = .zero, alignment: Alignmment = .fill) -> [NSLayoutConstraint] {
| `- error: cannot find type 'NSLayoutConstraint' in scope
484 | pin(to: item.superview!.readableContentGuide, insets: insets, alignment: alignment)
485 | }
/Users/admin/builder/spi-builder-workspace/Sources/Subviews/Internal/Align.swift:483:65: error: cannot find type 'EdgeInsets' in scope
481 | }
482 |
483 | @discardableResult internal func readableContentPin(insets: EdgeInsets = .zero, alignment: Alignmment = .fill) -> [NSLayoutConstraint] {
| `- error: cannot find type 'EdgeInsets' in scope
484 | pin(to: item.superview!.readableContentGuide, insets: insets, alignment: alignment)
485 | }
/Users/admin/builder/spi-builder-workspace/Sources/Subviews/Internal/Align.swift:487:112: error: cannot find type 'NSLayoutConstraint' in scope
485 | }
486 |
487 | @discardableResult internal func marginsPin(insets: EdgeInsets = .zero, alignment: Alignmment = .fill) -> [NSLayoutConstraint] {
| `- error: cannot find type 'NSLayoutConstraint' in scope
488 | pin(to: item.superview!.layoutMarginsGuide, insets: insets, alignment: alignment)
489 | }
/Users/admin/builder/spi-builder-workspace/Sources/Subviews/Internal/Align.swift:487:57: error: cannot find type 'EdgeInsets' in scope
485 | }
486 |
487 | @discardableResult internal func marginsPin(insets: EdgeInsets = .zero, alignment: Alignmment = .fill) -> [NSLayoutConstraint] {
| `- error: cannot find type 'EdgeInsets' in scope
488 | pin(to: item.superview!.layoutMarginsGuide, insets: insets, alignment: alignment)
489 | }
/Users/admin/builder/spi-builder-workspace/Sources/Subviews/Internal/Align.swift:494:126: error: cannot find type 'NSLayoutConstraint' in scope
492 | extension AnchorCollectionEdges {
493 | @available(*, deprecated, message: "Use .horizontal or .vertical before calling .pin instead of specifying axis")
494 | @discardableResult internal func safeAreaPin(insets: EdgeInsets = .zero, axis: Axis?, alignment: Alignmment = .fill) -> [NSLayoutConstraint] {
| `- error: cannot find type 'NSLayoutConstraint' in scope
495 | pin(to: item.superview!.safeAreaLayoutGuide, insets: insets, axis: axis, alignment: alignment)
496 | }
/Users/admin/builder/spi-builder-workspace/Sources/Subviews/Internal/Align.swift:494:58: error: cannot find type 'EdgeInsets' in scope
492 | extension AnchorCollectionEdges {
493 | @available(*, deprecated, message: "Use .horizontal or .vertical before calling .pin instead of specifying axis")
494 | @discardableResult internal func safeAreaPin(insets: EdgeInsets = .zero, axis: Axis?, alignment: Alignmment = .fill) -> [NSLayoutConstraint] {
| `- error: cannot find type 'EdgeInsets' in scope
495 | pin(to: item.superview!.safeAreaLayoutGuide, insets: insets, axis: axis, alignment: alignment)
496 | }
/Users/admin/builder/spi-builder-workspace/Sources/Subviews/Internal/Align.swift:499:133: error: cannot find type 'NSLayoutConstraint' in scope
497 |
498 | @available(*, deprecated, message: "Use .horizontal or .vertical before calling .pin instead of specifying axis")
499 | @discardableResult internal func readableContentPin(insets: EdgeInsets = .zero, axis: Axis?, alignment: Alignmment = .fill) -> [NSLayoutConstraint] {
| `- error: cannot find type 'NSLayoutConstraint' in scope
500 | pin(to: item.superview!.readableContentGuide, insets: insets, axis: axis, alignment: alignment)
501 | }
/Users/admin/builder/spi-builder-workspace/Sources/Subviews/Internal/Align.swift:499:65: error: cannot find type 'EdgeInsets' in scope
497 |
498 | @available(*, deprecated, message: "Use .horizontal or .vertical before calling .pin instead of specifying axis")
499 | @discardableResult internal func readableContentPin(insets: EdgeInsets = .zero, axis: Axis?, alignment: Alignmment = .fill) -> [NSLayoutConstraint] {
| `- error: cannot find type 'EdgeInsets' in scope
500 | pin(to: item.superview!.readableContentGuide, insets: insets, axis: axis, alignment: alignment)
501 | }
/Users/admin/builder/spi-builder-workspace/Sources/Subviews/Internal/Align.swift:504:125: error: cannot find type 'NSLayoutConstraint' in scope
502 |
503 | @available(*, deprecated, message: "Use .horizontal or .vertical before calling .pin instead of specifying axis")
504 | @discardableResult internal func marginsPin(insets: EdgeInsets = .zero, axis: Axis?, alignment: Alignmment = .fill) -> [NSLayoutConstraint] {
| `- error: cannot find type 'NSLayoutConstraint' in scope
505 | pin(to: item.superview!.layoutMarginsGuide, insets: insets, axis: axis, alignment: alignment)
506 | }
/Users/admin/builder/spi-builder-workspace/Sources/Subviews/Internal/Align.swift:504:57: error: cannot find type 'EdgeInsets' in scope
502 |
503 | @available(*, deprecated, message: "Use .horizontal or .vertical before calling .pin instead of specifying axis")
504 | @discardableResult internal func marginsPin(insets: EdgeInsets = .zero, axis: Axis?, alignment: Alignmment = .fill) -> [NSLayoutConstraint] {
| `- error: cannot find type 'EdgeInsets' in scope
505 | pin(to: item.superview!.layoutMarginsGuide, insets: insets, axis: axis, alignment: alignment)
506 | }
Failed frontend command:
/Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/swift-frontend -frontend -emit-module -experimental-skip-non-inlinable-function-bodies-without-types /Users/admin/builder/spi-builder-workspace/Sources/Subviews/AutoParent.swift /Users/admin/builder/spi-builder-workspace/Sources/Subviews/AutoSuperview.swift /Users/admin/builder/spi-builder-workspace/Sources/Subviews/Child.swift /Users/admin/builder/spi-builder-workspace/Sources/Subviews/Enclosed.swift /Users/admin/builder/spi-builder-workspace/Sources/Subviews/Extensions.swift /Users/admin/builder/spi-builder-workspace/Sources/Subviews/Internal/Align.swift /Users/admin/builder/spi-builder-workspace/Sources/Subviews/Internal/Creatable.swift /Users/admin/builder/spi-builder-workspace/Sources/Subviews/Stacks.swift /Users/admin/builder/spi-builder-workspace/Sources/Subviews/Subview.swift /Users/admin/builder/spi-builder-workspace/Sources/Subviews/ViewLayoutOption.swift -target arm64-apple-xros1.0 -disable-cross-import-overlay-search -load-resolved-plugin /Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Platforms/XROS.platform/Developer/usr/lib/swift/host/plugins/libFoundationMacros.dylib\#/Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Platforms/XROS.platform/Developer/usr/bin/swift-plugin-server\#FoundationMacros -load-resolved-plugin /Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Platforms/XROS.platform/Developer/usr/lib/swift/host/plugins/libObservationMacros.dylib\#/Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Platforms/XROS.platform/Developer/usr/bin/swift-plugin-server\#ObservationMacros -load-resolved-plugin /Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Platforms/XROS.platform/Developer/usr/lib/swift/host/plugins/libPreviewsMacros.dylib\#/Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Platforms/XROS.platform/Developer/usr/bin/swift-plugin-server\#PreviewsMacros -load-resolved-plugin /Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Platforms/XROS.platform/Developer/usr/lib/swift/host/plugins/libSwiftMacros.dylib\#/Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Platforms/XROS.platform/Developer/usr/bin/swift-plugin-server\#SwiftMacros -load-resolved-plugin /Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Platforms/XROS.platform/Developer/usr/lib/swift/host/plugins/libSwiftUIMacros.dylib\#/Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Platforms/XROS.platform/Developer/usr/bin/swift-plugin-server\#SwiftUIMacros -disable-implicit-swift-modules -Xcc -fno-implicit-modules -Xcc -fno-implicit-module-maps -explicit-swift-module-map-file /Users/admin/builder/spi-builder-workspace/.derivedData/Build/Intermediates.noindex/Subviews.build/Debug-xros/Subviews-t.build/Objects-normal/arm64/Subviews-dependencies-1.json -Xllvm -aarch64-use-tbi -enable-objc-interop -stack-check -sdk /Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Platforms/XROS.platform/Developer/SDKs/XROS27.0.sdk -I /Users/admin/builder/spi-builder-workspace/.derivedData/Build/Products/Debug-xros -Isystem /Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Platforms/XROS.platform/Developer/usr/lib -F /Users/admin/builder/spi-builder-workspace/.derivedData/Build/Products/Debug-xros -F /Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Platforms/XROS.platform/Developer/Library/Frameworks -F /Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Platforms/XROS.platform/Developer/SDKs/XROS27.0.sdk/Developer/Library/Frameworks -module-cache-path /Users/admin/builder/spi-builder-workspace/.derivedData/Build/Intermediates.noindex/SwiftExplicitPrecompiledModules -no-color-diagnostics -Xcc -fno-color-diagnostics -enable-testing -g -debug-info-format\=dwarf -dwarf-version\=4 -profile-generate -profile-coverage-mapping -swift-version 5 -Onone -D SWIFT_PACKAGE -D DEBUG -D SWIFT_MODULE_RESOURCE_BUNDLE_UNAVAILABLE -D Xcode -serialize-debugging-options -enable-experimental-feature DebugDescriptionMacro -empty-abi-descriptor -validate-clang-modules-once -clang-build-session-file /Users/admin/builder/spi-builder-workspace/.derivedData/ModuleCache.noindex/Session.modulevalidation -Xcc -working-directory -Xcc /Users/admin/builder/spi-builder-workspace/.swiftpm/xcode -enable-anonymous-context-mangled-names -file-compilation-dir /Users/admin/builder/spi-builder-workspace/.swiftpm/xcode -Xcc -D_LIBCPP_HARDENING_MODE\=_LIBCPP_HARDENING_MODE_DEBUG -Xcc -ivfsstatcache -Xcc /Users/admin/builder/spi-builder-workspace/.derivedData/SDKStatCaches.noindex/xros27.0-24M361-e829b21a6f8c9b70876ba0858053c044735bd543db762f57723cac368afd1ce4.sdkstatcache -Xcc -fmodules-prune-interval\=86400 -Xcc -fmodules-prune-after\=345600 -Xcc -I/Users/admin/builder/spi-builder-workspace/.derivedData/Build/Products/Debug-xros/include -Xcc -I/Users/admin/builder/spi-builder-workspace/.derivedData/Build/Intermediates.noindex/Subviews.build/Debug-xros/Subviews-t.build/DerivedSources-normal/arm64 -Xcc -I/Users/admin/builder/spi-builder-workspace/.derivedData/Build/Intermediates.noindex/Subviews.build/Debug-xros/Subviews-t.build/DerivedSources/arm64 -Xcc -I/Users/admin/builder/spi-builder-workspace/.derivedData/Build/Intermediates.noindex/Subviews.build/Debug-xros/Subviews-t.build/DerivedSources -Xcc -DSWIFT_PACKAGE -Xcc -DDEBUG\=1 -no-auto-bridging-header-chaining -module-name Subviews -const-gather-protocols-file /Users/admin/builder/spi-builder-workspace/.derivedData/Build/Intermediates.noindex/Subviews.build/Debug-xros/Subviews-t.build/Objects-normal/arm64/Subviews_const_extract_protocols.json -disable-clang-spi -clang-target arm64-apple-xros27.0 -target-sdk-version 27.0 -target-sdk-name xros27.0 -in-process-plugin-server-path /Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/host/libSwiftInProcPluginServer.dylib -emit-module-doc-path /Users/admin/builder/spi-builder-workspace/.derivedData/Build/Intermediates.noindex/Subviews.build/Debug-xros/Subviews-t.build/Objects-normal/arm64/Subviews.swiftdoc -emit-module-source-info-path /Users/admin/builder/spi-builder-workspace/.derivedData/Build/Intermediates.noindex/Subviews.build/Debug-xros/Subviews-t.build/Objects-normal/arm64/Subviews.swiftsourceinfo -emit-objc-header-path /Users/admin/builder/spi-builder-workspace/.derivedData/Build/Intermediates.noindex/Subviews.build/Debug-xros/Subviews-t.build/Objects-normal/arm64/Subviews-Swift.h -serialize-diagnostics-path /Users/admin/builder/spi-builder-workspace/.derivedData/Build/Intermediates.noindex/Subviews.build/Debug-xros/Subviews-t.build/Objects-normal/arm64/Subviews-primary-emit-module.dia -emit-dependencies-path /Users/admin/builder/spi-builder-workspace/.derivedData/Build/Intermediates.noindex/Subviews.build/Debug-xros/Subviews-t.build/Objects-normal/arm64/Subviews-primary-emit-module.d -parse-as-library -o /Users/admin/builder/spi-builder-workspace/.derivedData/Build/Intermediates.noindex/Subviews.build/Debug-xros/Subviews-t.build/Objects-normal/arm64/Subviews.swiftmodule -emit-abi-descriptor-path /Users/admin/builder/spi-builder-workspace/.derivedData/Build/Intermediates.noindex/Subviews.build/Debug-xros/Subviews-t.build/Objects-normal/arm64/Subviews.abi.json
SwiftCompile normal arm64 (in target 'Subviews' from project 'Subviews')
cd /Users/admin/builder/spi-builder-workspace/.swiftpm/xcode
SwiftCompile normal arm64 Compiling\ Align.swift /Users/admin/builder/spi-builder-workspace/Sources/Subviews/Internal/Align.swift (in target 'Subviews' from project 'Subviews')
/Users/admin/builder/spi-builder-workspace/Sources/Subviews/Internal/Align.swift:33:20: error: cannot find type 'LayoutItem' in scope
31 | #endif
32 |
33 | internal extension LayoutItem { // Align methods are available via `LayoutAnchors`
| `- error: cannot find type 'LayoutItem' in scope
34 | @nonobjc var anchors: LayoutAnchors<Self> { LayoutAnchors(base: self) }
35 | }
/Users/admin/builder/spi-builder-workspace/Sources/Subviews/Internal/Align.swift:43:46: error: cannot find type 'LayoutItem' in scope
41 | }
42 |
43 | internal extension LayoutAnchors where Base: LayoutItem {
| `- error: cannot find type 'LayoutItem' in scope
44 |
45 | // MARK: Anchors
/Users/admin/builder/spi-builder-workspace/Sources/Subviews/Internal/Align.swift:100:15: error: cannot find type 'LayoutItem' in scope
98 | /// `centerX`, `width`, etc). Use the anchor’s methods to construct constraints.
99 | internal struct Anchor<Type, Axis> { // type and axis are phantom types
100 | let item: LayoutItem
| `- error: cannot find type 'LayoutItem' in scope
101 | fileprivate let attribute: NSLayoutConstraint.Attribute
102 | fileprivate let offset: CGFloat
/Users/admin/builder/spi-builder-workspace/Sources/Subviews/Internal/Align.swift:101:32: error: cannot find type 'NSLayoutConstraint' in scope
99 | internal struct Anchor<Type, Axis> { // type and axis are phantom types
100 | let item: LayoutItem
101 | fileprivate let attribute: NSLayoutConstraint.Attribute
| `- error: cannot find type 'NSLayoutConstraint' in scope
102 | fileprivate let offset: CGFloat
103 | fileprivate let multiplier: CGFloat
/Users/admin/builder/spi-builder-workspace/Sources/Subviews/Internal/Align.swift:102:29: error: cannot find type 'CGFloat' in scope; did you mean to use 'CGFloat'?
100 | let item: LayoutItem
101 | fileprivate let attribute: NSLayoutConstraint.Attribute
102 | fileprivate let offset: CGFloat
| `- error: cannot find type 'CGFloat' in scope; did you mean to use 'CGFloat'?
103 | fileprivate let multiplier: CGFloat
104 |
/Users/admin/builder/spi-builder-workspace/Sources/Subviews/Internal/Align.swift:102:21: warning: cannot use struct 'CGFloat' in a property declaration member of a type not marked '@_implementationOnly'; 'CoreFoundation' was not imported by this file
100 | let item: LayoutItem
101 | fileprivate let attribute: NSLayoutConstraint.Attribute
102 | fileprivate let offset: CGFloat
| `- warning: cannot use struct 'CGFloat' in a property declaration member of a type not marked '@_implementationOnly'; 'CoreFoundation' was not imported by this file
103 | fileprivate let multiplier: CGFloat
104 |
CoreFoundation.CGFloat:2:23: note: struct declared here
1 | @available(macOS 10.0, macCatalyst 13.0, iOS 2.0, watchOS 1.0, tvOS 9.0, *)
2 | @frozen public struct CGFloat : Sendable {
| `- note: struct declared here
3 | public typealias NativeType = Double
4 | public init()
/Users/admin/builder/spi-builder-workspace/Sources/Subviews/Internal/Align.swift:103:33: error: cannot find type 'CGFloat' in scope; did you mean to use 'CGFloat'?
101 | fileprivate let attribute: NSLayoutConstraint.Attribute
102 | fileprivate let offset: CGFloat
103 | fileprivate let multiplier: CGFloat
| `- error: cannot find type 'CGFloat' in scope; did you mean to use 'CGFloat'?
104 |
105 | fileprivate init(_ item: LayoutItem, _ attribute: NSLayoutConstraint.Attribute, offset: CGFloat = 0, multiplier: CGFloat = 1) {
/Users/admin/builder/spi-builder-workspace/Sources/Subviews/Internal/Align.swift:103:21: warning: cannot use struct 'CGFloat' in a property declaration member of a type not marked '@_implementationOnly'; 'CoreFoundation' was not imported by this file
101 | fileprivate let attribute: NSLayoutConstraint.Attribute
102 | fileprivate let offset: CGFloat
103 | fileprivate let multiplier: CGFloat
| `- warning: cannot use struct 'CGFloat' in a property declaration member of a type not marked '@_implementationOnly'; 'CoreFoundation' was not imported by this file
104 |
105 | fileprivate init(_ item: LayoutItem, _ attribute: NSLayoutConstraint.Attribute, offset: CGFloat = 0, multiplier: CGFloat = 1) {
CoreFoundation.CGFloat:2:23: note: struct declared here
1 | @available(macOS 10.0, macCatalyst 13.0, iOS 2.0, watchOS 1.0, tvOS 9.0, *)
2 | @frozen public struct CGFloat : Sendable {
| `- note: struct declared here
3 | public typealias NativeType = Double
4 | public init()
/Users/admin/builder/spi-builder-workspace/Sources/Subviews/Internal/Align.swift:105:30: error: cannot find type 'LayoutItem' in scope
103 | fileprivate let multiplier: CGFloat
104 |
105 | fileprivate init(_ item: LayoutItem, _ attribute: NSLayoutConstraint.Attribute, offset: CGFloat = 0, multiplier: CGFloat = 1) {
| `- error: cannot find type 'LayoutItem' in scope
106 | self.item = item; self.attribute = attribute; self.offset = offset; self.multiplier = multiplier
107 | }
/Users/admin/builder/spi-builder-workspace/Sources/Subviews/Internal/Align.swift:105:55: error: cannot find type 'NSLayoutConstraint' in scope
103 | fileprivate let multiplier: CGFloat
104 |
105 | fileprivate init(_ item: LayoutItem, _ attribute: NSLayoutConstraint.Attribute, offset: CGFloat = 0, multiplier: CGFloat = 1) {
| `- error: cannot find type 'NSLayoutConstraint' in scope
106 | self.item = item; self.attribute = attribute; self.offset = offset; self.multiplier = multiplier
107 | }
/Users/admin/builder/spi-builder-workspace/Sources/Subviews/Internal/Align.swift:105:93: error: cannot find type 'CGFloat' in scope; did you mean to use 'CGFloat'?
103 | fileprivate let multiplier: CGFloat
104 |
105 | fileprivate init(_ item: LayoutItem, _ attribute: NSLayoutConstraint.Attribute, offset: CGFloat = 0, multiplier: CGFloat = 1) {
| `- error: cannot find type 'CGFloat' in scope; did you mean to use 'CGFloat'?
106 | self.item = item; self.attribute = attribute; self.offset = offset; self.multiplier = multiplier
107 | }
/Users/admin/builder/spi-builder-workspace/Sources/Subviews/Internal/Align.swift:105:118: error: cannot find type 'CGFloat' in scope; did you mean to use 'CGFloat'?
103 | fileprivate let multiplier: CGFloat
104 |
105 | fileprivate init(_ item: LayoutItem, _ attribute: NSLayoutConstraint.Attribute, offset: CGFloat = 0, multiplier: CGFloat = 1) {
| `- error: cannot find type 'CGFloat' in scope; did you mean to use 'CGFloat'?
106 | self.item = item; self.attribute = attribute; self.offset = offset; self.multiplier = multiplier
107 | }
/Users/admin/builder/spi-builder-workspace/Sources/Subviews/Internal/Align.swift:112:41: error: cannot find type 'CGFloat' in scope; did you mean to use 'CGFloat'?
110 | ///
111 | /// - note: Consider using a convenience operator instead: `view.anchors.top + 10`.
112 | internal func offsetting(by offset: CGFloat) -> Anchor<Type, Axis> {
| `- error: cannot find type 'CGFloat' in scope; did you mean to use 'CGFloat'?
113 | Anchor<Type, Axis>(item, attribute, offset: self.offset + offset, multiplier: self.multiplier)
114 | }
/Users/admin/builder/spi-builder-workspace/Sources/Subviews/Internal/Align.swift:119:45: error: cannot find type 'CGFloat' in scope; did you mean to use 'CGFloat'?
117 | ///
118 | /// - note: Consider using a convenience operator instead: `view.anchors.height * 2`.
119 | internal func multiplied(by multiplier: CGFloat) -> Anchor<Type, Axis> {
| `- error: cannot find type 'CGFloat' in scope; did you mean to use 'CGFloat'?
120 | Anchor<Type, Axis>(item, attribute, offset: self.offset * multiplier, multiplier: self.multiplier * multiplier)
121 | }
/Users/admin/builder/spi-builder-workspace/Sources/Subviews/Internal/Align.swift:124:66: error: cannot find type 'CGFloat' in scope; did you mean to use 'CGFloat'?
122 | }
123 |
124 | internal func + <Type, Axis>(anchor: Anchor<Type, Axis>, offset: CGFloat) -> Anchor<Type, Axis> {
| `- error: cannot find type 'CGFloat' in scope; did you mean to use 'CGFloat'?
125 | anchor.offsetting(by: offset)
126 | }
/Users/admin/builder/spi-builder-workspace/Sources/Subviews/Internal/Align.swift:124:66: error: cannot find type 'CGFloat' in scope; did you mean to use 'CGFloat'?
122 | }
123 |
124 | internal func + <Type, Axis>(anchor: Anchor<Type, Axis>, offset: CGFloat) -> Anchor<Type, Axis> {
| `- error: cannot find type 'CGFloat' in scope; did you mean to use 'CGFloat'?
125 | anchor.offsetting(by: offset)
126 | }
/Users/admin/builder/spi-builder-workspace/Sources/Subviews/Internal/Align.swift:128:66: error: cannot find type 'CGFloat' in scope; did you mean to use 'CGFloat'?
126 | }
127 |
128 | internal func - <Type, Axis>(anchor: Anchor<Type, Axis>, offset: CGFloat) -> Anchor<Type, Axis> {
| `- error: cannot find type 'CGFloat' in scope; did you mean to use 'CGFloat'?
129 | anchor.offsetting(by: -offset)
130 | }
/Users/admin/builder/spi-builder-workspace/Sources/Subviews/Internal/Align.swift:128:66: error: cannot find type 'CGFloat' in scope; did you mean to use 'CGFloat'?
126 | }
127 |
128 | internal func - <Type, Axis>(anchor: Anchor<Type, Axis>, offset: CGFloat) -> Anchor<Type, Axis> {
| `- error: cannot find type 'CGFloat' in scope; did you mean to use 'CGFloat'?
129 | anchor.offsetting(by: -offset)
130 | }
/Users/admin/builder/spi-builder-workspace/Sources/Subviews/Internal/Align.swift:132:70: error: cannot find type 'CGFloat' in scope; did you mean to use 'CGFloat'?
130 | }
131 |
132 | internal func * <Type, Axis>(anchor: Anchor<Type, Axis>, multiplier: CGFloat) -> Anchor<Type, Axis> {
| `- error: cannot find type 'CGFloat' in scope; did you mean to use 'CGFloat'?
133 | anchor.multiplied(by: multiplier)
134 | }
/Users/admin/builder/spi-builder-workspace/Sources/Subviews/Internal/Align.swift:132:70: error: cannot find type 'CGFloat' in scope; did you mean to use 'CGFloat'?
130 | }
131 |
132 | internal func * <Type, Axis>(anchor: Anchor<Type, Axis>, multiplier: CGFloat) -> Anchor<Type, Axis> {
| `- error: cannot find type 'CGFloat' in scope; did you mean to use 'CGFloat'?
133 | anchor.multiplied(by: multiplier)
134 | }
/Users/admin/builder/spi-builder-workspace/Sources/Subviews/Internal/Align.swift:139:103: error: cannot find type 'CGFloat' in scope; did you mean to use 'CGFloat'?
137 |
138 | internal extension Anchor where Type: AnchorType.Alignment {
139 | @discardableResult func equal<Type: AnchorType.Alignment>(_ anchor: Anchor<Type, Axis>, constant: CGFloat = 0) -> NSLayoutConstraint {
| `- error: cannot find type 'CGFloat' in scope; did you mean to use 'CGFloat'?
140 | Constraints.constrain(self, anchor, constant: constant, relation: .equal)
141 | }
/Users/admin/builder/spi-builder-workspace/Sources/Subviews/Internal/Align.swift:139:119: error: cannot find type 'NSLayoutConstraint' in scope
137 |
138 | internal extension Anchor where Type: AnchorType.Alignment {
139 | @discardableResult func equal<Type: AnchorType.Alignment>(_ anchor: Anchor<Type, Axis>, constant: CGFloat = 0) -> NSLayoutConstraint {
| `- error: cannot find type 'NSLayoutConstraint' in scope
140 | Constraints.constrain(self, anchor, constant: constant, relation: .equal)
141 | }
/Users/admin/builder/spi-builder-workspace/Sources/Subviews/Internal/Align.swift:139:103: error: cannot find type 'CGFloat' in scope; did you mean to use 'CGFloat'?
137 |
138 | internal extension Anchor where Type: AnchorType.Alignment {
139 | @discardableResult func equal<Type: AnchorType.Alignment>(_ anchor: Anchor<Type, Axis>, constant: CGFloat = 0) -> NSLayoutConstraint {
| `- error: cannot find type 'CGFloat' in scope; did you mean to use 'CGFloat'?
140 | Constraints.constrain(self, anchor, constant: constant, relation: .equal)
141 | }
/Users/admin/builder/spi-builder-workspace/Sources/Subviews/Internal/Align.swift:143:116: error: cannot find type 'CGFloat' in scope; did you mean to use 'CGFloat'?
141 | }
142 |
143 | @discardableResult func greaterThanOrEqual<Type: AnchorType.Alignment>(_ anchor: Anchor<Type, Axis>, constant: CGFloat = 0) -> NSLayoutConstraint {
| `- error: cannot find type 'CGFloat' in scope; did you mean to use 'CGFloat'?
144 | Constraints.constrain(self, anchor, constant: constant, relation: .greaterThanOrEqual)
145 | }
/Users/admin/builder/spi-builder-workspace/Sources/Subviews/Internal/Align.swift:143:132: error: cannot find type 'NSLayoutConstraint' in scope
141 | }
142 |
143 | @discardableResult func greaterThanOrEqual<Type: AnchorType.Alignment>(_ anchor: Anchor<Type, Axis>, constant: CGFloat = 0) -> NSLayoutConstraint {
| `- error: cannot find type 'NSLayoutConstraint' in scope
144 | Constraints.constrain(self, anchor, constant: constant, relation: .greaterThanOrEqual)
145 | }
/Users/admin/builder/spi-builder-workspace/Sources/Subviews/Internal/Align.swift:143:116: error: cannot find type 'CGFloat' in scope; did you mean to use 'CGFloat'?
141 | }
142 |
143 | @discardableResult func greaterThanOrEqual<Type: AnchorType.Alignment>(_ anchor: Anchor<Type, Axis>, constant: CGFloat = 0) -> NSLayoutConstraint {
| `- error: cannot find type 'CGFloat' in scope; did you mean to use 'CGFloat'?
144 | Constraints.constrain(self, anchor, constant: constant, relation: .greaterThanOrEqual)
145 | }
/Users/admin/builder/spi-builder-workspace/Sources/Subviews/Internal/Align.swift:147:113: error: cannot find type 'CGFloat' in scope; did you mean to use 'CGFloat'?
145 | }
146 |
147 | @discardableResult func lessThanOrEqual<Type: AnchorType.Alignment>(_ anchor: Anchor<Type, Axis>, constant: CGFloat = 0) -> NSLayoutConstraint {
| `- error: cannot find type 'CGFloat' in scope; did you mean to use 'CGFloat'?
148 | Constraints.constrain(self, anchor, constant: constant, relation: .lessThanOrEqual)
149 | }
/Users/admin/builder/spi-builder-workspace/Sources/Subviews/Internal/Align.swift:147:129: error: cannot find type 'NSLayoutConstraint' in scope
145 | }
146 |
147 | @discardableResult func lessThanOrEqual<Type: AnchorType.Alignment>(_ anchor: Anchor<Type, Axis>, constant: CGFloat = 0) -> NSLayoutConstraint {
| `- error: cannot find type 'NSLayoutConstraint' in scope
148 | Constraints.constrain(self, anchor, constant: constant, relation: .lessThanOrEqual)
149 | }
/Users/admin/builder/spi-builder-workspace/Sources/Subviews/Internal/Align.swift:147:113: error: cannot find type 'CGFloat' in scope; did you mean to use 'CGFloat'?
145 | }
146 |
147 | @discardableResult func lessThanOrEqual<Type: AnchorType.Alignment>(_ anchor: Anchor<Type, Axis>, constant: CGFloat = 0) -> NSLayoutConstraint {
| `- error: cannot find type 'CGFloat' in scope; did you mean to use 'CGFloat'?
148 | Constraints.constrain(self, anchor, constant: constant, relation: .lessThanOrEqual)
149 | }
/Users/admin/builder/spi-builder-workspace/Sources/Subviews/Internal/Align.swift:155:109: error: cannot find type 'CGFloat' in scope; did you mean to use 'CGFloat'?
153 |
154 | internal extension Anchor where Type: AnchorType.Dimension {
155 | @discardableResult func equal<Type: AnchorType.Dimension, Axis>(_ anchor: Anchor<Type, Axis>, constant: CGFloat = 0) -> NSLayoutConstraint {
| `- error: cannot find type 'CGFloat' in scope; did you mean to use 'CGFloat'?
156 | Constraints.constrain(self, anchor, constant: constant, relation: .equal)
157 | }
/Users/admin/builder/spi-builder-workspace/Sources/Subviews/Internal/Align.swift:155:125: error: cannot find type 'NSLayoutConstraint' in scope
153 |
154 | internal extension Anchor where Type: AnchorType.Dimension {
155 | @discardableResult func equal<Type: AnchorType.Dimension, Axis>(_ anchor: Anchor<Type, Axis>, constant: CGFloat = 0) -> NSLayoutConstraint {
| `- error: cannot find type 'NSLayoutConstraint' in scope
156 | Constraints.constrain(self, anchor, constant: constant, relation: .equal)
157 | }
/Users/admin/builder/spi-builder-workspace/Sources/Subviews/Internal/Align.swift:155:109: error: cannot find type 'CGFloat' in scope; did you mean to use 'CGFloat'?
153 |
154 | internal extension Anchor where Type: AnchorType.Dimension {
155 | @discardableResult func equal<Type: AnchorType.Dimension, Axis>(_ anchor: Anchor<Type, Axis>, constant: CGFloat = 0) -> NSLayoutConstraint {
| `- error: cannot find type 'CGFloat' in scope; did you mean to use 'CGFloat'?
156 | Constraints.constrain(self, anchor, constant: constant, relation: .equal)
157 | }
/Users/admin/builder/spi-builder-workspace/Sources/Subviews/Internal/Align.swift:159:122: error: cannot find type 'CGFloat' in scope; did you mean to use 'CGFloat'?
157 | }
158 |
159 | @discardableResult func greaterThanOrEqual<Type: AnchorType.Dimension, Axis>(_ anchor: Anchor<Type, Axis>, constant: CGFloat = 0) -> NSLayoutConstraint {
| `- error: cannot find type 'CGFloat' in scope; did you mean to use 'CGFloat'?
160 | Constraints.constrain(self, anchor, constant: constant, relation: .greaterThanOrEqual)
161 | }
/Users/admin/builder/spi-builder-workspace/Sources/Subviews/Internal/Align.swift:159:138: error: cannot find type 'NSLayoutConstraint' in scope
157 | }
158 |
159 | @discardableResult func greaterThanOrEqual<Type: AnchorType.Dimension, Axis>(_ anchor: Anchor<Type, Axis>, constant: CGFloat = 0) -> NSLayoutConstraint {
| `- error: cannot find type 'NSLayoutConstraint' in scope
160 | Constraints.constrain(self, anchor, constant: constant, relation: .greaterThanOrEqual)
161 | }
/Users/admin/builder/spi-builder-workspace/Sources/Subviews/Internal/Align.swift:159:122: error: cannot find type 'CGFloat' in scope; did you mean to use 'CGFloat'?
157 | }
158 |
159 | @discardableResult func greaterThanOrEqual<Type: AnchorType.Dimension, Axis>(_ anchor: Anchor<Type, Axis>, constant: CGFloat = 0) -> NSLayoutConstraint {
| `- error: cannot find type 'CGFloat' in scope; did you mean to use 'CGFloat'?
160 | Constraints.constrain(self, anchor, constant: constant, relation: .greaterThanOrEqual)
161 | }
/Users/admin/builder/spi-builder-workspace/Sources/Subviews/Internal/Align.swift:163:119: error: cannot find type 'CGFloat' in scope; did you mean to use 'CGFloat'?
161 | }
162 |
163 | @discardableResult func lessThanOrEqual<Type: AnchorType.Dimension, Axis>(_ anchor: Anchor<Type, Axis>, constant: CGFloat = 0) -> NSLayoutConstraint {
| `- error: cannot find type 'CGFloat' in scope; did you mean to use 'CGFloat'?
164 | Constraints.constrain(self, anchor, constant: constant, relation: .lessThanOrEqual)
165 | }
/Users/admin/builder/spi-builder-workspace/Sources/Subviews/Internal/Align.swift:163:135: error: cannot find type 'NSLayoutConstraint' in scope
161 | }
162 |
163 | @discardableResult func lessThanOrEqual<Type: AnchorType.Dimension, Axis>(_ anchor: Anchor<Type, Axis>, constant: CGFloat = 0) -> NSLayoutConstraint {
| `- error: cannot find type 'NSLayoutConstraint' in scope
164 | Constraints.constrain(self, anchor, constant: constant, relation: .lessThanOrEqual)
165 | }
/Users/admin/builder/spi-builder-workspace/Sources/Subviews/Internal/Align.swift:163:119: error: cannot find type 'CGFloat' in scope; did you mean to use 'CGFloat'?
161 | }
162 |
163 | @discardableResult func lessThanOrEqual<Type: AnchorType.Dimension, Axis>(_ anchor: Anchor<Type, Axis>, constant: CGFloat = 0) -> NSLayoutConstraint {
| `- error: cannot find type 'CGFloat' in scope; did you mean to use 'CGFloat'?
164 | Constraints.constrain(self, anchor, constant: constant, relation: .lessThanOrEqual)
165 | }
/Users/admin/builder/spi-builder-workspace/Sources/Subviews/Internal/Align.swift:171:68: error: cannot find type 'NSLayoutConstraint' in scope
169 |
170 | extension Anchor where Type: AnchorType.Dimension {
171 | @discardableResult internal func equal(_ constant: CGFloat) -> NSLayoutConstraint {
| `- error: cannot find type 'NSLayoutConstraint' in scope
172 | Constraints.constrain(item: item, attribute: attribute, relatedBy: .equal, constant: constant)
173 | }
/Users/admin/builder/spi-builder-workspace/Sources/Subviews/Internal/Align.swift:171:56: error: cannot find type 'CGFloat' in scope; did you mean to use 'CGFloat'?
169 |
170 | extension Anchor where Type: AnchorType.Dimension {
171 | @discardableResult internal func equal(_ constant: CGFloat) -> NSLayoutConstraint {
| `- error: cannot find type 'CGFloat' in scope; did you mean to use 'CGFloat'?
172 | Constraints.constrain(item: item, attribute: attribute, relatedBy: .equal, constant: constant)
173 | }
/Users/admin/builder/spi-builder-workspace/Sources/Subviews/Internal/Align.swift:175:81: error: cannot find type 'NSLayoutConstraint' in scope
173 | }
174 |
175 | @discardableResult internal func greaterThanOrEqual(_ constant: CGFloat) -> NSLayoutConstraint {
| `- error: cannot find type 'NSLayoutConstraint' in scope
176 | Constraints.constrain(item: item, attribute: attribute, relatedBy: .greaterThanOrEqual, constant: constant)
177 | }
/Users/admin/builder/spi-builder-workspace/Sources/Subviews/Internal/Align.swift:175:69: error: cannot find type 'CGFloat' in scope; did you mean to use 'CGFloat'?
173 | }
174 |
175 | @discardableResult internal func greaterThanOrEqual(_ constant: CGFloat) -> NSLayoutConstraint {
| `- error: cannot find type 'CGFloat' in scope; did you mean to use 'CGFloat'?
176 | Constraints.constrain(item: item, attribute: attribute, relatedBy: .greaterThanOrEqual, constant: constant)
177 | }
/Users/admin/builder/spi-builder-workspace/Sources/Subviews/Internal/Align.swift:179:78: error: cannot find type 'NSLayoutConstraint' in scope
177 | }
178 |
179 | @discardableResult internal func lessThanOrEqual(_ constant: CGFloat) -> NSLayoutConstraint {
| `- error: cannot find type 'NSLayoutConstraint' in scope
180 | Constraints.constrain(item: item, attribute: attribute, relatedBy: .lessThanOrEqual, constant: constant)
181 | }
/Users/admin/builder/spi-builder-workspace/Sources/Subviews/Internal/Align.swift:179:66: error: cannot find type 'CGFloat' in scope; did you mean to use 'CGFloat'?
177 | }
178 |
179 | @discardableResult internal func lessThanOrEqual(_ constant: CGFloat) -> NSLayoutConstraint {
| `- error: cannot find type 'CGFloat' in scope; did you mean to use 'CGFloat'?
180 | Constraints.constrain(item: item, attribute: attribute, relatedBy: .lessThanOrEqual, constant: constant)
181 | }
/Users/admin/builder/spi-builder-workspace/Sources/Subviews/Internal/Align.swift:188:92: error: cannot find type 'NSLayoutConstraint' in scope
186 | extension Anchor where Type: AnchorType.Edge {
187 | /// Pins the edge to the respected edges of the given container.
188 | @discardableResult internal func pin(to container: LayoutItem?, inset: CGFloat = 0) -> NSLayoutConstraint {
| `- error: cannot find type 'NSLayoutConstraint' in scope
189 | let isInverted = [.trailing, .right, .bottom].contains(attribute)
190 | return Constraints.constrain(self, toItem: container ?? item.superview!, attribute: attribute, constant: (isInverted ? -inset : inset))
/Users/admin/builder/spi-builder-workspace/Sources/Subviews/Internal/Align.swift:188:56: error: cannot find type 'LayoutItem' in scope
186 | extension Anchor where Type: AnchorType.Edge {
187 | /// Pins the edge to the respected edges of the given container.
188 | @discardableResult internal func pin(to container: LayoutItem?, inset: CGFloat = 0) -> NSLayoutConstraint {
| `- error: cannot find type 'LayoutItem' in scope
189 | let isInverted = [.trailing, .right, .bottom].contains(attribute)
190 | return Constraints.constrain(self, toItem: container ?? item.superview!, attribute: attribute, constant: (isInverted ? -inset : inset))
/Users/admin/builder/spi-builder-workspace/Sources/Subviews/Internal/Align.swift:188:76: error: cannot find type 'CGFloat' in scope; did you mean to use 'CGFloat'?
186 | extension Anchor where Type: AnchorType.Edge {
187 | /// Pins the edge to the respected edges of the given container.
188 | @discardableResult internal func pin(to container: LayoutItem?, inset: CGFloat = 0) -> NSLayoutConstraint {
| `- error: cannot find type 'CGFloat' in scope; did you mean to use 'CGFloat'?
189 | let isInverted = [.trailing, .right, .bottom].contains(attribute)
190 | return Constraints.constrain(self, toItem: container ?? item.superview!, attribute: attribute, constant: (isInverted ? -inset : inset))
/Users/admin/builder/spi-builder-workspace/Sources/Subviews/Internal/Align.swift:193:65: error: cannot find type 'NSLayoutConstraint' in scope
191 | }
192 |
193 | @discardableResult internal func pin(inset: CGFloat = 0) -> NSLayoutConstraint {
| `- error: cannot find type 'NSLayoutConstraint' in scope
194 | return pin(to: nil, inset: inset)
195 | }
/Users/admin/builder/spi-builder-workspace/Sources/Subviews/Internal/Align.swift:193:49: error: cannot find type 'CGFloat' in scope; did you mean to use 'CGFloat'?
191 | }
192 |
193 | @discardableResult internal func pin(inset: CGFloat = 0) -> NSLayoutConstraint {
| `- error: cannot find type 'CGFloat' in scope; did you mean to use 'CGFloat'?
194 | return pin(to: nil, inset: inset)
195 | }
/Users/admin/builder/spi-builder-workspace/Sources/Subviews/Internal/Align.swift:198:80: error: cannot find type 'CGFloat' in scope; did you mean to use 'CGFloat'?
196 |
197 | /// Adds spacing between the current anchors.
198 | @discardableResult internal func spacing<Type: AnchorType.Edge>(_ spacing: CGFloat, to anchor: Anchor<Type, Axis>, relation: NSLayoutConstraint.Relation = .equal) -> NSLayoutConstraint {
| `- error: cannot find type 'CGFloat' in scope; did you mean to use 'CGFloat'?
199 | let isInverted = (attribute == .bottom && anchor.attribute == .top) ||
200 | (attribute == .right && anchor.attribute == .left) ||
/Users/admin/builder/spi-builder-workspace/Sources/Subviews/Internal/Align.swift:198:130: error: cannot find type 'NSLayoutConstraint' in scope
196 |
197 | /// Adds spacing between the current anchors.
198 | @discardableResult internal func spacing<Type: AnchorType.Edge>(_ spacing: CGFloat, to anchor: Anchor<Type, Axis>, relation: NSLayoutConstraint.Relation = .equal) -> NSLayoutConstraint {
| `- error: cannot find type 'NSLayoutConstraint' in scope
199 | let isInverted = (attribute == .bottom && anchor.attribute == .top) ||
200 | (attribute == .right && anchor.attribute == .left) ||
/Users/admin/builder/spi-builder-workspace/Sources/Subviews/Internal/Align.swift:198:171: error: cannot find type 'NSLayoutConstraint' in scope
196 |
197 | /// Adds spacing between the current anchors.
198 | @discardableResult internal func spacing<Type: AnchorType.Edge>(_ spacing: CGFloat, to anchor: Anchor<Type, Axis>, relation: NSLayoutConstraint.Relation = .equal) -> NSLayoutConstraint {
| `- error: cannot find type 'NSLayoutConstraint' in scope
199 | let isInverted = (attribute == .bottom && anchor.attribute == .top) ||
200 | (attribute == .right && anchor.attribute == .left) ||
/Users/admin/builder/spi-builder-workspace/Sources/Subviews/Internal/Align.swift:198:80: error: cannot find type 'CGFloat' in scope; did you mean to use 'CGFloat'?
196 |
197 | /// Adds spacing between the current anchors.
198 | @discardableResult internal func spacing<Type: AnchorType.Edge>(_ spacing: CGFloat, to anchor: Anchor<Type, Axis>, relation: NSLayoutConstraint.Relation = .equal) -> NSLayoutConstraint {
| `- error: cannot find type 'CGFloat' in scope; did you mean to use 'CGFloat'?
199 | let isInverted = (attribute == .bottom && anchor.attribute == .top) ||
200 | (attribute == .right && anchor.attribute == .left) ||
/Users/admin/builder/spi-builder-workspace/Sources/Subviews/Internal/Align.swift:210:68: error: cannot find type 'NSLayoutConstraint' in scope
208 | extension Anchor where Type: AnchorType.Center {
209 | /// Aligns the axis with a superview axis.
210 | @discardableResult internal func align(offset: CGFloat = 0) -> NSLayoutConstraint {
| `- error: cannot find type 'NSLayoutConstraint' in scope
211 | Constraints.constrain(self, toItem: item.superview!, attribute: attribute, constant: offset)
212 | }
/Users/admin/builder/spi-builder-workspace/Sources/Subviews/Internal/Align.swift:210:52: error: cannot find type 'CGFloat' in scope; did you mean to use 'CGFloat'?
208 | extension Anchor where Type: AnchorType.Center {
209 | /// Aligns the axis with a superview axis.
210 | @discardableResult internal func align(offset: CGFloat = 0) -> NSLayoutConstraint {
| `- error: cannot find type 'CGFloat' in scope; did you mean to use 'CGFloat'?
211 | Constraints.constrain(self, toItem: item.superview!, attribute: attribute, constant: offset)
212 | }
/Users/admin/builder/spi-builder-workspace/Sources/Subviews/Internal/Align.swift:245:25: error: cannot find type 'LayoutItem' in scope
243 |
244 | internal struct AnchorCollectionEdges {
245 | internal init(item: LayoutItem, isAbsolute: Bool = false, axis: AnchorCollectionEdges.Axis?) {
| `- error: cannot find type 'LayoutItem' in scope
246 | self.item = item
247 | self.isAbsolute = isAbsolute
/Users/admin/builder/spi-builder-workspace/Sources/Subviews/Internal/Align.swift:263:31: error: cannot find type 'NSLayoutConstraint' in scope
261 | internal typealias Axis = NSLayoutConstraint.Axis
262 | #else
263 | internal typealias Axis = NSLayoutConstraint.Orientation
| `- error: cannot find type 'NSLayoutConstraint' in scope
264 | #endif
265 |
/Users/admin/builder/spi-builder-workspace/Sources/Subviews/Internal/Align.swift:251:27: error: cannot find type 'LayoutItem' in scope
249 | }
250 |
251 | fileprivate let item: LayoutItem
| `- error: cannot find type 'LayoutItem' in scope
252 | fileprivate var isAbsolute = false
253 | fileprivate var axis: Axis?
/Users/admin/builder/spi-builder-workspace/Sources/Subviews/Internal/Align.swift:266:134: error: cannot find type 'NSLayoutConstraint' in scope
264 | #endif
265 |
266 | @discardableResult internal func pin(to item2: LayoutItem? = nil, insets: EdgeInsets = .zero, alignment: Alignmment = .fill) -> [NSLayoutConstraint] {
| `- error: cannot find type 'NSLayoutConstraint' in scope
267 | let item2 = item2 ?? item.superview!
268 | let left: NSLayoutConstraint.Attribute = isAbsolute ? .left : .leading
/Users/admin/builder/spi-builder-workspace/Sources/Subviews/Internal/Align.swift:266:52: error: cannot find type 'LayoutItem' in scope
264 | #endif
265 |
266 | @discardableResult internal func pin(to item2: LayoutItem? = nil, insets: EdgeInsets = .zero, alignment: Alignmment = .fill) -> [NSLayoutConstraint] {
| `- error: cannot find type 'LayoutItem' in scope
267 | let item2 = item2 ?? item.superview!
268 | let left: NSLayoutConstraint.Attribute = isAbsolute ? .left : .leading
/Users/admin/builder/spi-builder-workspace/Sources/Subviews/Internal/Align.swift:266:79: error: cannot find type 'EdgeInsets' in scope
264 | #endif
265 |
266 | @discardableResult internal func pin(to item2: LayoutItem? = nil, insets: EdgeInsets = .zero, alignment: Alignmment = .fill) -> [NSLayoutConstraint] {
| `- error: cannot find type 'EdgeInsets' in scope
267 | let item2 = item2 ?? item.superview!
268 | let left: NSLayoutConstraint.Attribute = isAbsolute ? .left : .leading
/Users/admin/builder/spi-builder-workspace/Sources/Subviews/Internal/Align.swift:294:147: error: cannot find type 'NSLayoutConstraint' in scope
292 |
293 | @available(*, deprecated, message: "Use .horizontal or .vertical before calling .pin instead of specifying axis")
294 | @discardableResult internal func pin(to item2: LayoutItem? = nil, insets: EdgeInsets = .zero, axis: Axis?, alignment: Alignmment = .fill) -> [NSLayoutConstraint] {
| `- error: cannot find type 'NSLayoutConstraint' in scope
295 | if let axis = axis {
296 | return AnchorCollectionEdges(item: item, isAbsolute: isAbsolute, axis: axis).pin(to: item2, insets: insets, alignment: alignment)
/Users/admin/builder/spi-builder-workspace/Sources/Subviews/Internal/Align.swift:294:52: error: cannot find type 'LayoutItem' in scope
292 |
293 | @available(*, deprecated, message: "Use .horizontal or .vertical before calling .pin instead of specifying axis")
294 | @discardableResult internal func pin(to item2: LayoutItem? = nil, insets: EdgeInsets = .zero, axis: Axis?, alignment: Alignmment = .fill) -> [NSLayoutConstraint] {
| `- error: cannot find type 'LayoutItem' in scope
295 | if let axis = axis {
296 | return AnchorCollectionEdges(item: item, isAbsolute: isAbsolute, axis: axis).pin(to: item2, insets: insets, alignment: alignment)
/Users/admin/builder/spi-builder-workspace/Sources/Subviews/Internal/Align.swift:294:79: error: cannot find type 'EdgeInsets' in scope
292 |
293 | @available(*, deprecated, message: "Use .horizontal or .vertical before calling .pin instead of specifying axis")
294 | @discardableResult internal func pin(to item2: LayoutItem? = nil, insets: EdgeInsets = .zero, axis: Axis?, alignment: Alignmment = .fill) -> [NSLayoutConstraint] {
| `- error: cannot find type 'EdgeInsets' in scope
295 | if let axis = axis {
296 | return AnchorCollectionEdges(item: item, isAbsolute: isAbsolute, axis: axis).pin(to: item2, insets: insets, alignment: alignment)
/Users/admin/builder/spi-builder-workspace/Sources/Subviews/Internal/Align.swift:310:50: error: cannot find type 'NSLayoutConstraint' in scope
308 |
309 | /// Centers the view in the superview.
310 | @discardableResult internal func align() -> [NSLayoutConstraint] {
| `- error: cannot find type 'NSLayoutConstraint' in scope
311 | [x.align(), y.align()]
312 | }
/Users/admin/builder/spi-builder-workspace/Sources/Subviews/Internal/Align.swift:315:83: error: cannot find type 'NSLayoutConstraint' in scope
313 |
314 | /// Makes the axis equal to the other collection of axis.
315 | @discardableResult internal func align<Item: LayoutItem>(with item: Item) -> [NSLayoutConstraint] {
| `- error: cannot find type 'NSLayoutConstraint' in scope
316 | [x.equal(item.anchors.centerX), y.equal(item.anchors.centerY)]
317 | }
/Users/admin/builder/spi-builder-workspace/Sources/Subviews/Internal/Align.swift:315:50: error: cannot find type 'LayoutItem' in scope
313 |
314 | /// Makes the axis equal to the other collection of axis.
315 | @discardableResult internal func align<Item: LayoutItem>(with item: Item) -> [NSLayoutConstraint] {
| `- error: cannot find type 'LayoutItem' in scope
316 | [x.equal(item.anchors.centerX), y.equal(item.anchors.centerY)]
317 | }
/Users/admin/builder/spi-builder-workspace/Sources/Subviews/Internal/Align.swift:327:64: error: cannot find type 'NSLayoutConstraint' in scope
325 |
326 | /// Set the size of item.
327 | @discardableResult internal func equal(_ size: CGSize) -> [NSLayoutConstraint] {
| `- error: cannot find type 'NSLayoutConstraint' in scope
328 | [width.equal(size.width), height.equal(size.height)]
329 | }
/Users/admin/builder/spi-builder-workspace/Sources/Subviews/Internal/Align.swift:327:52: error: cannot find type 'CGSize' in scope
325 |
326 | /// Set the size of item.
327 | @discardableResult internal func equal(_ size: CGSize) -> [NSLayoutConstraint] {
| `- error: cannot find type 'CGSize' in scope
328 | [width.equal(size.width), height.equal(size.height)]
329 | }
/Users/admin/builder/spi-builder-workspace/Sources/Subviews/Internal/Align.swift:332:76: error: cannot find type 'NSLayoutConstraint' in scope
330 |
331 | /// Set the size of item.
332 | @discardableResult internal func greaterThanOrEqul(_ size: CGSize) -> [NSLayoutConstraint] {
| `- error: cannot find type 'NSLayoutConstraint' in scope
333 | [width.greaterThanOrEqual(size.width), height.greaterThanOrEqual(size.height)]
334 | }
/Users/admin/builder/spi-builder-workspace/Sources/Subviews/Internal/Align.swift:332:64: error: cannot find type 'CGSize' in scope
330 |
331 | /// Set the size of item.
332 | @discardableResult internal func greaterThanOrEqul(_ size: CGSize) -> [NSLayoutConstraint] {
| `- error: cannot find type 'CGSize' in scope
333 | [width.greaterThanOrEqual(size.width), height.greaterThanOrEqual(size.height)]
334 | }
/Users/admin/builder/spi-builder-workspace/Sources/Subviews/Internal/Align.swift:337:74: error: cannot find type 'NSLayoutConstraint' in scope
335 |
336 | /// Set the size of item.
337 | @discardableResult internal func lessThanOrEqual(_ size: CGSize) -> [NSLayoutConstraint] {
| `- error: cannot find type 'NSLayoutConstraint' in scope
338 | [width.lessThanOrEqual(size.width), height.lessThanOrEqual(size.height)]
339 | }
/Users/admin/builder/spi-builder-workspace/Sources/Subviews/Internal/Align.swift:337:62: error: cannot find type 'CGSize' in scope
335 |
336 | /// Set the size of item.
337 | @discardableResult internal func lessThanOrEqual(_ size: CGSize) -> [NSLayoutConstraint] {
| `- error: cannot find type 'CGSize' in scope
338 | [width.lessThanOrEqual(size.width), height.lessThanOrEqual(size.height)]
339 | }
/Users/admin/builder/spi-builder-workspace/Sources/Subviews/Internal/Align.swift:342:84: error: cannot find type 'CGSize' in scope
340 |
341 | /// Makes the size of the item equal to the size of the other item.
342 | @discardableResult internal func equal<Item: LayoutItem>(_ item: Item, insets: CGSize = .zero, multiplier: CGFloat = 1) -> [NSLayoutConstraint] {
| `- error: cannot find type 'CGSize' in scope
343 | [width.equal(item.anchors.width * multiplier - insets.width), height.equal(item.anchors.height * multiplier - insets.height)]
344 | }
/Users/admin/builder/spi-builder-workspace/Sources/Subviews/Internal/Align.swift:342:112: error: cannot find type 'CGFloat' in scope; did you mean to use 'CGFloat'?
340 |
341 | /// Makes the size of the item equal to the size of the other item.
342 | @discardableResult internal func equal<Item: LayoutItem>(_ item: Item, insets: CGSize = .zero, multiplier: CGFloat = 1) -> [NSLayoutConstraint] {
| `- error: cannot find type 'CGFloat' in scope; did you mean to use 'CGFloat'?
343 | [width.equal(item.anchors.width * multiplier - insets.width), height.equal(item.anchors.height * multiplier - insets.height)]
344 | }
/Users/admin/builder/spi-builder-workspace/Sources/Subviews/Internal/Align.swift:342:129: error: cannot find type 'NSLayoutConstraint' in scope
340 |
341 | /// Makes the size of the item equal to the size of the other item.
342 | @discardableResult internal func equal<Item: LayoutItem>(_ item: Item, insets: CGSize = .zero, multiplier: CGFloat = 1) -> [NSLayoutConstraint] {
| `- error: cannot find type 'NSLayoutConstraint' in scope
343 | [width.equal(item.anchors.width * multiplier - insets.width), height.equal(item.anchors.height * multiplier - insets.height)]
344 | }
/Users/admin/builder/spi-builder-workspace/Sources/Subviews/Internal/Align.swift:342:50: error: cannot find type 'LayoutItem' in scope
340 |
341 | /// Makes the size of the item equal to the size of the other item.
342 | @discardableResult internal func equal<Item: LayoutItem>(_ item: Item, insets: CGSize = .zero, multiplier: CGFloat = 1) -> [NSLayoutConstraint] {
| `- error: cannot find type 'LayoutItem' in scope
343 | [width.equal(item.anchors.width * multiplier - insets.width), height.equal(item.anchors.height * multiplier - insets.height)]
344 | }
/Users/admin/builder/spi-builder-workspace/Sources/Subviews/Internal/Align.swift:342:112: error: cannot find type 'CGFloat' in scope; did you mean to use 'CGFloat'?
340 |
341 | /// Makes the size of the item equal to the size of the other item.
342 | @discardableResult internal func equal<Item: LayoutItem>(_ item: Item, insets: CGSize = .zero, multiplier: CGFloat = 1) -> [NSLayoutConstraint] {
| `- error: cannot find type 'CGFloat' in scope; did you mean to use 'CGFloat'?
343 | [width.equal(item.anchors.width * multiplier - insets.width), height.equal(item.anchors.height * multiplier - insets.height)]
344 | }
/Users/admin/builder/spi-builder-workspace/Sources/Subviews/Internal/Align.swift:346:97: error: cannot find type 'CGSize' in scope
344 | }
345 |
346 | @discardableResult internal func greaterThanOrEqual<Item: LayoutItem>(_ item: Item, insets: CGSize = .zero, multiplier: CGFloat = 1) -> [NSLayoutConstraint] {
| `- error: cannot find type 'CGSize' in scope
347 | [width.greaterThanOrEqual(item.anchors.width * multiplier - insets.width), height.greaterThanOrEqual(item.anchors.height * multiplier - insets.height)]
348 | }
/Users/admin/builder/spi-builder-workspace/Sources/Subviews/Internal/Align.swift:346:125: error: cannot find type 'CGFloat' in scope; did you mean to use 'CGFloat'?
344 | }
345 |
346 | @discardableResult internal func greaterThanOrEqual<Item: LayoutItem>(_ item: Item, insets: CGSize = .zero, multiplier: CGFloat = 1) -> [NSLayoutConstraint] {
| `- error: cannot find type 'CGFloat' in scope; did you mean to use 'CGFloat'?
347 | [width.greaterThanOrEqual(item.anchors.width * multiplier - insets.width), height.greaterThanOrEqual(item.anchors.height * multiplier - insets.height)]
348 | }
/Users/admin/builder/spi-builder-workspace/Sources/Subviews/Internal/Align.swift:346:142: error: cannot find type 'NSLayoutConstraint' in scope
344 | }
345 |
346 | @discardableResult internal func greaterThanOrEqual<Item: LayoutItem>(_ item: Item, insets: CGSize = .zero, multiplier: CGFloat = 1) -> [NSLayoutConstraint] {
| `- error: cannot find type 'NSLayoutConstraint' in scope
347 | [width.greaterThanOrEqual(item.anchors.width * multiplier - insets.width), height.greaterThanOrEqual(item.anchors.height * multiplier - insets.height)]
348 | }
/Users/admin/builder/spi-builder-workspace/Sources/Subviews/Internal/Align.swift:346:63: error: cannot find type 'LayoutItem' in scope
344 | }
345 |
346 | @discardableResult internal func greaterThanOrEqual<Item: LayoutItem>(_ item: Item, insets: CGSize = .zero, multiplier: CGFloat = 1) -> [NSLayoutConstraint] {
| `- error: cannot find type 'LayoutItem' in scope
347 | [width.greaterThanOrEqual(item.anchors.width * multiplier - insets.width), height.greaterThanOrEqual(item.anchors.height * multiplier - insets.height)]
348 | }
/Users/admin/builder/spi-builder-workspace/Sources/Subviews/Internal/Align.swift:346:125: error: cannot find type 'CGFloat' in scope; did you mean to use 'CGFloat'?
344 | }
345 |
346 | @discardableResult internal func greaterThanOrEqual<Item: LayoutItem>(_ item: Item, insets: CGSize = .zero, multiplier: CGFloat = 1) -> [NSLayoutConstraint] {
| `- error: cannot find type 'CGFloat' in scope; did you mean to use 'CGFloat'?
347 | [width.greaterThanOrEqual(item.anchors.width * multiplier - insets.width), height.greaterThanOrEqual(item.anchors.height * multiplier - insets.height)]
348 | }
/Users/admin/builder/spi-builder-workspace/Sources/Subviews/Internal/Align.swift:350:94: error: cannot find type 'CGSize' in scope
348 | }
349 |
350 | @discardableResult internal func lessThanOrEqual<Item: LayoutItem>(_ item: Item, insets: CGSize = .zero, multiplier: CGFloat = 1) -> [NSLayoutConstraint] {
| `- error: cannot find type 'CGSize' in scope
351 | [width.lessThanOrEqual(item.anchors.width * multiplier - insets.width), height.lessThanOrEqual(item.anchors.height * multiplier - insets.height)]
352 | }
/Users/admin/builder/spi-builder-workspace/Sources/Subviews/Internal/Align.swift:350:122: error: cannot find type 'CGFloat' in scope; did you mean to use 'CGFloat'?
348 | }
349 |
350 | @discardableResult internal func lessThanOrEqual<Item: LayoutItem>(_ item: Item, insets: CGSize = .zero, multiplier: CGFloat = 1) -> [NSLayoutConstraint] {
| `- error: cannot find type 'CGFloat' in scope; did you mean to use 'CGFloat'?
351 | [width.lessThanOrEqual(item.anchors.width * multiplier - insets.width), height.lessThanOrEqual(item.anchors.height * multiplier - insets.height)]
352 | }
/Users/admin/builder/spi-builder-workspace/Sources/Subviews/Internal/Align.swift:350:139: error: cannot find type 'NSLayoutConstraint' in scope
348 | }
349 |
350 | @discardableResult internal func lessThanOrEqual<Item: LayoutItem>(_ item: Item, insets: CGSize = .zero, multiplier: CGFloat = 1) -> [NSLayoutConstraint] {
| `- error: cannot find type 'NSLayoutConstraint' in scope
351 | [width.lessThanOrEqual(item.anchors.width * multiplier - insets.width), height.lessThanOrEqual(item.anchors.height * multiplier - insets.height)]
352 | }
/Users/admin/builder/spi-builder-workspace/Sources/Subviews/Internal/Align.swift:350:60: error: cannot find type 'LayoutItem' in scope
348 | }
349 |
350 | @discardableResult internal func lessThanOrEqual<Item: LayoutItem>(_ item: Item, insets: CGSize = .zero, multiplier: CGFloat = 1) -> [NSLayoutConstraint] {
| `- error: cannot find type 'LayoutItem' in scope
351 | [width.lessThanOrEqual(item.anchors.width * multiplier - insets.width), height.lessThanOrEqual(item.anchors.height * multiplier - insets.height)]
352 | }
/Users/admin/builder/spi-builder-workspace/Sources/Subviews/Internal/Align.swift:350:122: error: cannot find type 'CGFloat' in scope; did you mean to use 'CGFloat'?
348 | }
349 |
350 | @discardableResult internal func lessThanOrEqual<Item: LayoutItem>(_ item: Item, insets: CGSize = .zero, multiplier: CGFloat = 1) -> [NSLayoutConstraint] {
| `- error: cannot find type 'CGFloat' in scope; did you mean to use 'CGFloat'?
351 | [width.lessThanOrEqual(item.anchors.width * multiplier - insets.width), height.lessThanOrEqual(item.anchors.height * multiplier - insets.height)]
352 | }
/Users/admin/builder/spi-builder-workspace/Sources/Subviews/Internal/Align.swift:359:46: error: cannot find 'NSLayoutConstraint' in scope
357 | internal final class Constraints {
358 | /// Returns all of the created constraints.
359 | internal private(set) var constraints = [NSLayoutConstraint]()
| `- error: cannot find 'NSLayoutConstraint' in scope
360 |
361 | /// All of the constraints created in the given closure are automatically
/Users/admin/builder/spi-builder-workspace/Sources/Subviews/Internal/Align.swift:359:45: error: cannot call value of non-function type '[Element]'
357 | internal final class Constraints {
358 | /// Returns all of the created constraints.
359 | internal private(set) var constraints = [NSLayoutConstraint]()
| `- error: cannot call value of non-function type '[Element]'
360 |
361 | /// All of the constraints created in the given closure are automatically
/Users/admin/builder/spi-builder-workspace/Sources/Subviews/Internal/Align.swift:376:292: error: cannot find type 'NSLayoutConstraint' in scope
374 |
375 | /// Creates and automatically installs a constraint.
376 | fileprivate static func constrain(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
377 | precondition(Thread.isMainThread, "Align APIs can only be used from the main thread")
378 | #if os(iOS) || os(tvOS)
/Users/admin/builder/spi-builder-workspace/Sources/Subviews/Internal/Align.swift:376:73: error: cannot find type 'NSLayoutConstraint' in scope
374 |
375 | /// Creates and automatically installs a constraint.
376 | fileprivate static func constrain(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
377 | precondition(Thread.isMainThread, "Align APIs can only be used from the main thread")
378 | #if os(iOS) || os(tvOS)
/Users/admin/builder/spi-builder-workspace/Sources/Subviews/Internal/Align.swift:376:123: error: cannot find type 'NSLayoutConstraint' in scope
374 |
375 | /// Creates and automatically installs a constraint.
376 | fileprivate static func constrain(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
377 | precondition(Thread.isMainThread, "Align APIs can only be used from the main thread")
378 | #if os(iOS) || os(tvOS)
/Users/admin/builder/spi-builder-workspace/Sources/Subviews/Internal/Align.swift:376:204: error: cannot find type 'NSLayoutConstraint' in scope
374 |
375 | /// Creates and automatically installs a constraint.
376 | fileprivate static func constrain(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
377 | precondition(Thread.isMainThread, "Align APIs can only be used from the main thread")
378 | #if os(iOS) || os(tvOS)
/Users/admin/builder/spi-builder-workspace/Sources/Subviews/Internal/Align.swift:376:253: error: cannot find type 'CGFloat' in scope; did you mean to use 'CGFloat'?
374 |
375 | /// Creates and automatically installs a constraint.
376 | fileprivate static func constrain(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; did you mean to use 'CGFloat'?
377 | precondition(Thread.isMainThread, "Align APIs can only be used from the main thread")
378 | #if os(iOS) || os(tvOS)
/Users/admin/builder/spi-builder-workspace/Sources/Subviews/Internal/Align.swift:376:276: error: cannot find type 'CGFloat' in scope; did you mean to use 'CGFloat'?
374 |
375 | /// Creates and automatically installs a constraint.
376 | fileprivate static func constrain(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; did you mean to use 'CGFloat'?
377 | precondition(Thread.isMainThread, "Align APIs can only be used from the main thread")
378 | #if os(iOS) || os(tvOS)
/Users/admin/builder/spi-builder-workspace/Sources/Subviews/Internal/Align.swift:389:111: error: cannot find type 'CGFloat' in scope; did you mean to use 'CGFloat'?
387 |
388 | /// Creates and automatically installs a constraint between two anchors.
389 | fileprivate static func constrain<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; did you mean to use 'CGFloat'?
390 | constrain(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)
391 | }
/Users/admin/builder/spi-builder-workspace/Sources/Subviews/Internal/Align.swift:389:136: error: cannot find type 'CGFloat' in scope; did you mean to use 'CGFloat'?
387 |
388 | /// Creates and automatically installs a constraint between two anchors.
389 | fileprivate static func constrain<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; did you mean to use 'CGFloat'?
390 | constrain(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)
391 | }
/Users/admin/builder/spi-builder-workspace/Sources/Subviews/Internal/Align.swift:389:159: error: cannot find type 'NSLayoutConstraint' in scope
387 |
388 | /// Creates and automatically installs a constraint between two anchors.
389 | fileprivate static func constrain<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
390 | constrain(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)
391 | }
/Users/admin/builder/spi-builder-workspace/Sources/Subviews/Internal/Align.swift:389:200: error: cannot find type 'NSLayoutConstraint' in scope
387 |
388 | /// Creates and automatically installs a constraint between two anchors.
389 | fileprivate static func constrain<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
390 | constrain(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)
391 | }
/Users/admin/builder/spi-builder-workspace/Sources/Subviews/Internal/Align.swift:389:111: error: cannot find type 'CGFloat' in scope; did you mean to use 'CGFloat'?
387 |
388 | /// Creates and automatically installs a constraint between two anchors.
389 | fileprivate static func constrain<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; did you mean to use 'CGFloat'?
390 | constrain(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)
391 | }
/Users/admin/builder/spi-builder-workspace/Sources/Subviews/Internal/Align.swift:389:136: error: cannot find type 'CGFloat' in scope; did you mean to use 'CGFloat'?
387 |
388 | /// Creates and automatically installs a constraint between two anchors.
389 | fileprivate static func constrain<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; did you mean to use 'CGFloat'?
390 | constrain(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)
391 | }
/Users/admin/builder/spi-builder-workspace/Sources/Subviews/Internal/Align.swift:395:107: error: cannot find type 'NSLayoutConstraint' in scope
393 | /// Creates and automatically installs a constraint between an anchor and
394 | /// a given item.
395 | fileprivate static func constrain<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
396 | constrain(item: lhs.item, attribute: lhs.attribute, relatedBy: relation, toItem: item2, attribute: attr2, multiplier: multiplier / lhs.multiplier, constant: constant - lhs.offset)
397 | }
/Users/admin/builder/spi-builder-workspace/Sources/Subviews/Internal/Align.swift:395:148: error: cannot find type 'CGFloat' in scope; did you mean to use 'CGFloat'?
393 | /// Creates and automatically installs a constraint between an anchor and
394 | /// a given item.
395 | fileprivate static func constrain<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; did you mean to use 'CGFloat'?
396 | constrain(item: lhs.item, attribute: lhs.attribute, relatedBy: relation, toItem: item2, attribute: attr2, multiplier: multiplier / lhs.multiplier, constant: constant - lhs.offset)
397 | }
/Users/admin/builder/spi-builder-workspace/Sources/Subviews/Internal/Align.swift:395:173: error: cannot find type 'CGFloat' in scope; did you mean to use 'CGFloat'?
393 | /// Creates and automatically installs a constraint between an anchor and
394 | /// a given item.
395 | fileprivate static func constrain<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; did you mean to use 'CGFloat'?
396 | constrain(item: lhs.item, attribute: lhs.attribute, relatedBy: relation, toItem: item2, attribute: attr2, multiplier: multiplier / lhs.multiplier, constant: constant - lhs.offset)
397 | }
/Users/admin/builder/spi-builder-workspace/Sources/Subviews/Internal/Align.swift:395:196: error: cannot find type 'NSLayoutConstraint' in scope
393 | /// Creates and automatically installs a constraint between an anchor and
394 | /// a given item.
395 | fileprivate static func constrain<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
396 | constrain(item: lhs.item, attribute: lhs.attribute, relatedBy: relation, toItem: item2, attribute: attr2, multiplier: multiplier / lhs.multiplier, constant: constant - lhs.offset)
397 | }
/Users/admin/builder/spi-builder-workspace/Sources/Subviews/Internal/Align.swift:395:237: error: cannot find type 'NSLayoutConstraint' in scope
393 | /// Creates and automatically installs a constraint between an anchor and
394 | /// a given item.
395 | fileprivate static func constrain<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
396 | constrain(item: lhs.item, attribute: lhs.attribute, relatedBy: relation, toItem: item2, attribute: attr2, multiplier: multiplier / lhs.multiplier, constant: constant - lhs.offset)
397 | }
/Users/admin/builder/spi-builder-workspace/Sources/Subviews/Internal/Align.swift:395:148: error: cannot find type 'CGFloat' in scope; did you mean to use 'CGFloat'?
393 | /// Creates and automatically installs a constraint between an anchor and
394 | /// a given item.
395 | fileprivate static func constrain<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; did you mean to use 'CGFloat'?
396 | constrain(item: lhs.item, attribute: lhs.attribute, relatedBy: relation, toItem: item2, attribute: attr2, multiplier: multiplier / lhs.multiplier, constant: constant - lhs.offset)
397 | }
/Users/admin/builder/spi-builder-workspace/Sources/Subviews/Internal/Align.swift:395:173: error: cannot find type 'CGFloat' in scope; did you mean to use 'CGFloat'?
393 | /// Creates and automatically installs a constraint between an anchor and
394 | /// a given item.
395 | fileprivate static func constrain<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; did you mean to use 'CGFloat'?
396 | constrain(item: lhs.item, attribute: lhs.attribute, relatedBy: relation, toItem: item2, attribute: attr2, multiplier: multiplier / lhs.multiplier, constant: constant - lhs.offset)
397 | }
/Users/admin/builder/spi-builder-workspace/Sources/Subviews/Internal/Align.swift:401:48: error: cannot find type 'NSLayoutConstraint' in scope
399 | private static var _stack = [Constraints]() // this is what enabled constraint auto-installing
400 |
401 | private static func _install(_ constraint: NSLayoutConstraint) {
| `- error: cannot find type 'NSLayoutConstraint' in scope
402 | if let group = _stack.last {
403 | group.constraints.append(constraint)
/Users/admin/builder/spi-builder-workspace/Sources/Subviews/Internal/Align.swift:411:53: error: cannot find type 'LayoutItem' in scope
409 |
410 | extension Constraints {
411 | @discardableResult internal convenience init<A: LayoutItem>(for a: A, _ closure: (LayoutAnchors<A>) -> Void) {
| `- error: cannot find type 'LayoutItem' in scope
412 | self.init { closure(a.anchors) }
413 | }
/Users/admin/builder/spi-builder-workspace/Sources/Subviews/Internal/Align.swift:415:53: error: cannot find type 'LayoutItem' in scope
413 | }
414 |
415 | @discardableResult internal convenience init<A: LayoutItem, B: LayoutItem>(for a: A, _ b: B, _ closure: (LayoutAnchors<A>, LayoutAnchors<B>) -> Void) {
| `- error: cannot find type 'LayoutItem' in scope
416 | self.init { closure(a.anchors, b.anchors) }
417 | }
/Users/admin/builder/spi-builder-workspace/Sources/Subviews/Internal/Align.swift:415:68: error: cannot find type 'LayoutItem' in scope
413 | }
414 |
415 | @discardableResult internal convenience init<A: LayoutItem, B: LayoutItem>(for a: A, _ b: B, _ closure: (LayoutAnchors<A>, LayoutAnchors<B>) -> Void) {
| `- error: cannot find type 'LayoutItem' in scope
416 | self.init { closure(a.anchors, b.anchors) }
417 | }
/Users/admin/builder/spi-builder-workspace/Sources/Subviews/Internal/Align.swift:419:53: error: cannot find type 'LayoutItem' in scope
417 | }
418 |
419 | @discardableResult internal convenience init<A: LayoutItem, B: LayoutItem, C: LayoutItem>(for a: A, _ b: B, _ c: C, _ closure: (LayoutAnchors<A>, LayoutAnchors<B>, LayoutAnchors<C>) -> Void) {
| `- error: cannot find type 'LayoutItem' in scope
420 | self.init { closure(a.anchors, b.anchors, c.anchors) }
421 | }
/Users/admin/builder/spi-builder-workspace/Sources/Subviews/Internal/Align.swift:419:68: error: cannot find type 'LayoutItem' in scope
417 | }
418 |
419 | @discardableResult internal convenience init<A: LayoutItem, B: LayoutItem, C: LayoutItem>(for a: A, _ b: B, _ c: C, _ closure: (LayoutAnchors<A>, LayoutAnchors<B>, LayoutAnchors<C>) -> Void) {
| `- error: cannot find type 'LayoutItem' in scope
420 | self.init { closure(a.anchors, b.anchors, c.anchors) }
421 | }
/Users/admin/builder/spi-builder-workspace/Sources/Subviews/Internal/Align.swift:419:83: error: cannot find type 'LayoutItem' in scope
417 | }
418 |
419 | @discardableResult internal convenience init<A: LayoutItem, B: LayoutItem, C: LayoutItem>(for a: A, _ b: B, _ c: C, _ closure: (LayoutAnchors<A>, LayoutAnchors<B>, LayoutAnchors<C>) -> Void) {
| `- error: cannot find type 'LayoutItem' in scope
420 | self.init { closure(a.anchors, b.anchors, c.anchors) }
421 | }
/Users/admin/builder/spi-builder-workspace/Sources/Subviews/Internal/Align.swift:423:53: error: cannot find type 'LayoutItem' in scope
421 | }
422 |
423 | @discardableResult internal convenience init<A: LayoutItem, B: LayoutItem, C: LayoutItem, D: LayoutItem>(for a: A, _ b: B, _ c: C, _ d: D, _ closure: (LayoutAnchors<A>, LayoutAnchors<B>, LayoutAnchors<C>, LayoutAnchors<D>) -> Void) {
| `- error: cannot find type 'LayoutItem' in scope
424 | self.init { closure(a.anchors, b.anchors, c.anchors, d.anchors) }
425 | }
/Users/admin/builder/spi-builder-workspace/Sources/Subviews/Internal/Align.swift:423:68: error: cannot find type 'LayoutItem' in scope
421 | }
422 |
423 | @discardableResult internal convenience init<A: LayoutItem, B: LayoutItem, C: LayoutItem, D: LayoutItem>(for a: A, _ b: B, _ c: C, _ d: D, _ closure: (LayoutAnchors<A>, LayoutAnchors<B>, LayoutAnchors<C>, LayoutAnchors<D>) -> Void) {
| `- error: cannot find type 'LayoutItem' in scope
424 | self.init { closure(a.anchors, b.anchors, c.anchors, d.anchors) }
425 | }
/Users/admin/builder/spi-builder-workspace/Sources/Subviews/Internal/Align.swift:423:83: error: cannot find type 'LayoutItem' in scope
421 | }
422 |
423 | @discardableResult internal convenience init<A: LayoutItem, B: LayoutItem, C: LayoutItem, D: LayoutItem>(for a: A, _ b: B, _ c: C, _ d: D, _ closure: (LayoutAnchors<A>, LayoutAnchors<B>, LayoutAnchors<C>, LayoutAnchors<D>) -> Void) {
| `- error: cannot find type 'LayoutItem' in scope
424 | self.init { closure(a.anchors, b.anchors, c.anchors, d.anchors) }
425 | }
/Users/admin/builder/spi-builder-workspace/Sources/Subviews/Internal/Align.swift:423:98: error: cannot find type 'LayoutItem' in scope
421 | }
422 |
423 | @discardableResult internal convenience init<A: LayoutItem, B: LayoutItem, C: LayoutItem, D: LayoutItem>(for a: A, _ b: B, _ c: C, _ d: D, _ closure: (LayoutAnchors<A>, LayoutAnchors<B>, LayoutAnchors<C>, LayoutAnchors<D>) -> Void) {
| `- error: cannot find type 'LayoutItem' in scope
424 | self.init { closure(a.anchors, b.anchors, c.anchors, d.anchors) }
425 | }
/Users/admin/builder/spi-builder-workspace/Sources/Subviews/Internal/Align.swift:440:11: error: cannot find type 'NSLayoutConstraint' in scope
438 | #endif
439 |
440 | extension NSLayoutConstraint.Relation {
| `- error: cannot find type 'NSLayoutConstraint' in scope
441 | fileprivate var inverted: NSLayoutConstraint.Relation {
442 | switch self {
/Users/admin/builder/spi-builder-workspace/Sources/Subviews/Internal/Align.swift:451:11: error: cannot find type 'EdgeInsets' in scope
449 | }
450 |
451 | extension EdgeInsets {
| `- error: cannot find type 'EdgeInsets' in scope
452 | fileprivate func inset(for attribute: NSLayoutConstraint.Attribute, edge: Bool = false) -> CGFloat {
453 | switch attribute {
/Users/admin/builder/spi-builder-workspace/Sources/Subviews/Internal/Align.swift:465:73: error: cannot find type 'NSLayoutConstraint' in scope
463 |
464 | extension Anchor where Type: AnchorType.Edge {
465 | @discardableResult internal func safeAreaPin(inset: CGFloat = 0) -> NSLayoutConstraint {
| `- error: cannot find type 'NSLayoutConstraint' in scope
466 | pin(to: item.superview!.safeAreaLayoutGuide, inset: inset)
467 | }
/Users/admin/builder/spi-builder-workspace/Sources/Subviews/Internal/Align.swift:465:57: error: cannot find type 'CGFloat' in scope; did you mean to use 'CGFloat'?
463 |
464 | extension Anchor where Type: AnchorType.Edge {
465 | @discardableResult internal func safeAreaPin(inset: CGFloat = 0) -> NSLayoutConstraint {
| `- error: cannot find type 'CGFloat' in scope; did you mean to use 'CGFloat'?
466 | pin(to: item.superview!.safeAreaLayoutGuide, inset: inset)
467 | }
/Users/admin/builder/spi-builder-workspace/Sources/Subviews/Internal/Align.swift:469:80: error: cannot find type 'NSLayoutConstraint' in scope
467 | }
468 |
469 | @discardableResult internal func readableContentPin(inset: CGFloat = 0) -> NSLayoutConstraint {
| `- error: cannot find type 'NSLayoutConstraint' in scope
470 | pin(to: item.superview!.readableContentGuide, inset: inset)
471 | }
/Users/admin/builder/spi-builder-workspace/Sources/Subviews/Internal/Align.swift:469:64: error: cannot find type 'CGFloat' in scope; did you mean to use 'CGFloat'?
467 | }
468 |
469 | @discardableResult internal func readableContentPin(inset: CGFloat = 0) -> NSLayoutConstraint {
| `- error: cannot find type 'CGFloat' in scope; did you mean to use 'CGFloat'?
470 | pin(to: item.superview!.readableContentGuide, inset: inset)
471 | }
/Users/admin/builder/spi-builder-workspace/Sources/Subviews/Internal/Align.swift:473:72: error: cannot find type 'NSLayoutConstraint' in scope
471 | }
472 |
473 | @discardableResult internal func marginsPin(inset: CGFloat = 0) -> NSLayoutConstraint {
| `- error: cannot find type 'NSLayoutConstraint' in scope
474 | pin(to: item.superview!.layoutMarginsGuide, inset: inset)
475 | }
/Users/admin/builder/spi-builder-workspace/Sources/Subviews/Internal/Align.swift:473:56: error: cannot find type 'CGFloat' in scope; did you mean to use 'CGFloat'?
471 | }
472 |
473 | @discardableResult internal func marginsPin(inset: CGFloat = 0) -> NSLayoutConstraint {
| `- error: cannot find type 'CGFloat' in scope; did you mean to use 'CGFloat'?
474 | pin(to: item.superview!.layoutMarginsGuide, inset: inset)
475 | }
/Users/admin/builder/spi-builder-workspace/Sources/Subviews/Internal/Align.swift:479:113: error: cannot find type 'NSLayoutConstraint' in scope
477 |
478 | extension AnchorCollectionEdges {
479 | @discardableResult internal func safeAreaPin(insets: EdgeInsets = .zero, alignment: Alignmment = .fill) -> [NSLayoutConstraint] {
| `- error: cannot find type 'NSLayoutConstraint' in scope
480 | pin(to: item.superview!.safeAreaLayoutGuide, insets: insets, alignment: alignment)
481 | }
/Users/admin/builder/spi-builder-workspace/Sources/Subviews/Internal/Align.swift:479:58: error: cannot find type 'EdgeInsets' in scope
477 |
478 | extension AnchorCollectionEdges {
479 | @discardableResult internal func safeAreaPin(insets: EdgeInsets = .zero, alignment: Alignmment = .fill) -> [NSLayoutConstraint] {
| `- error: cannot find type 'EdgeInsets' in scope
480 | pin(to: item.superview!.safeAreaLayoutGuide, insets: insets, alignment: alignment)
481 | }
/Users/admin/builder/spi-builder-workspace/Sources/Subviews/Internal/Align.swift:483:120: error: cannot find type 'NSLayoutConstraint' in scope
481 | }
482 |
483 | @discardableResult internal func readableContentPin(insets: EdgeInsets = .zero, alignment: Alignmment = .fill) -> [NSLayoutConstraint] {
| `- error: cannot find type 'NSLayoutConstraint' in scope
484 | pin(to: item.superview!.readableContentGuide, insets: insets, alignment: alignment)
485 | }
/Users/admin/builder/spi-builder-workspace/Sources/Subviews/Internal/Align.swift:483:65: error: cannot find type 'EdgeInsets' in scope
481 | }
482 |
483 | @discardableResult internal func readableContentPin(insets: EdgeInsets = .zero, alignment: Alignmment = .fill) -> [NSLayoutConstraint] {
| `- error: cannot find type 'EdgeInsets' in scope
484 | pin(to: item.superview!.readableContentGuide, insets: insets, alignment: alignment)
485 | }
/Users/admin/builder/spi-builder-workspace/Sources/Subviews/Internal/Align.swift:487:112: error: cannot find type 'NSLayoutConstraint' in scope
485 | }
486 |
487 | @discardableResult internal func marginsPin(insets: EdgeInsets = .zero, alignment: Alignmment = .fill) -> [NSLayoutConstraint] {
| `- error: cannot find type 'NSLayoutConstraint' in scope
488 | pin(to: item.superview!.layoutMarginsGuide, insets: insets, alignment: alignment)
489 | }
/Users/admin/builder/spi-builder-workspace/Sources/Subviews/Internal/Align.swift:487:57: error: cannot find type 'EdgeInsets' in scope
485 | }
486 |
487 | @discardableResult internal func marginsPin(insets: EdgeInsets = .zero, alignment: Alignmment = .fill) -> [NSLayoutConstraint] {
| `- error: cannot find type 'EdgeInsets' in scope
488 | pin(to: item.superview!.layoutMarginsGuide, insets: insets, alignment: alignment)
489 | }
/Users/admin/builder/spi-builder-workspace/Sources/Subviews/Internal/Align.swift:494:126: error: cannot find type 'NSLayoutConstraint' in scope
492 | extension AnchorCollectionEdges {
493 | @available(*, deprecated, message: "Use .horizontal or .vertical before calling .pin instead of specifying axis")
494 | @discardableResult internal func safeAreaPin(insets: EdgeInsets = .zero, axis: Axis?, alignment: Alignmment = .fill) -> [NSLayoutConstraint] {
| `- error: cannot find type 'NSLayoutConstraint' in scope
495 | pin(to: item.superview!.safeAreaLayoutGuide, insets: insets, axis: axis, alignment: alignment)
496 | }
/Users/admin/builder/spi-builder-workspace/Sources/Subviews/Internal/Align.swift:494:58: error: cannot find type 'EdgeInsets' in scope
492 | extension AnchorCollectionEdges {
493 | @available(*, deprecated, message: "Use .horizontal or .vertical before calling .pin instead of specifying axis")
494 | @discardableResult internal func safeAreaPin(insets: EdgeInsets = .zero, axis: Axis?, alignment: Alignmment = .fill) -> [NSLayoutConstraint] {
| `- error: cannot find type 'EdgeInsets' in scope
495 | pin(to: item.superview!.safeAreaLayoutGuide, insets: insets, axis: axis, alignment: alignment)
496 | }
/Users/admin/builder/spi-builder-workspace/Sources/Subviews/Internal/Align.swift:499:133: error: cannot find type 'NSLayoutConstraint' in scope
497 |
498 | @available(*, deprecated, message: "Use .horizontal or .vertical before calling .pin instead of specifying axis")
499 | @discardableResult internal func readableContentPin(insets: EdgeInsets = .zero, axis: Axis?, alignment: Alignmment = .fill) -> [NSLayoutConstraint] {
| `- error: cannot find type 'NSLayoutConstraint' in scope
500 | pin(to: item.superview!.readableContentGuide, insets: insets, axis: axis, alignment: alignment)
501 | }
/Users/admin/builder/spi-builder-workspace/Sources/Subviews/Internal/Align.swift:499:65: error: cannot find type 'EdgeInsets' in scope
497 |
498 | @available(*, deprecated, message: "Use .horizontal or .vertical before calling .pin instead of specifying axis")
499 | @discardableResult internal func readableContentPin(insets: EdgeInsets = .zero, axis: Axis?, alignment: Alignmment = .fill) -> [NSLayoutConstraint] {
| `- error: cannot find type 'EdgeInsets' in scope
500 | pin(to: item.superview!.readableContentGuide, insets: insets, axis: axis, alignment: alignment)
501 | }
/Users/admin/builder/spi-builder-workspace/Sources/Subviews/Internal/Align.swift:504:125: error: cannot find type 'NSLayoutConstraint' in scope
502 |
503 | @available(*, deprecated, message: "Use .horizontal or .vertical before calling .pin instead of specifying axis")
504 | @discardableResult internal func marginsPin(insets: EdgeInsets = .zero, axis: Axis?, alignment: Alignmment = .fill) -> [NSLayoutConstraint] {
| `- error: cannot find type 'NSLayoutConstraint' in scope
505 | pin(to: item.superview!.layoutMarginsGuide, insets: insets, axis: axis, alignment: alignment)
506 | }
/Users/admin/builder/spi-builder-workspace/Sources/Subviews/Internal/Align.swift:504:57: error: cannot find type 'EdgeInsets' in scope
502 |
503 | @available(*, deprecated, message: "Use .horizontal or .vertical before calling .pin instead of specifying axis")
504 | @discardableResult internal func marginsPin(insets: EdgeInsets = .zero, axis: Axis?, alignment: Alignmment = .fill) -> [NSLayoutConstraint] {
| `- error: cannot find type 'EdgeInsets' in scope
505 | pin(to: item.superview!.layoutMarginsGuide, insets: insets, axis: axis, alignment: alignment)
506 | }
/Users/admin/builder/spi-builder-workspace/Sources/Subviews/Internal/Align.swift:47:61: error: generic parameter 'Type' could not be inferred
45 | // MARK: Anchors
46 |
47 | var top: Anchor<AnchorType.Edge, AnchorAxis.Vertical> { Anchor(base, .top) }
| `- error: generic parameter 'Type' could not be inferred
48 | var bottom: Anchor<AnchorType.Edge, AnchorAxis.Vertical> { Anchor(base, .bottom) }
49 | var left: Anchor<AnchorType.Edge, AnchorAxis.Horizontal> { Anchor(base, .left) }
:
97 | /// An anchor represents one of the view's layout attributes (e.g. `left`,
98 | /// `centerX`, `width`, etc). Use the anchor’s methods to construct constraints.
99 | internal struct Anchor<Type, Axis> { // type and axis are phantom types
| `- note: 'Type' declared as parameter to type 'Anchor'
100 | let item: LayoutItem
101 | fileprivate let attribute: NSLayoutConstraint.Attribute
/Users/admin/builder/spi-builder-workspace/Sources/Subviews/Internal/Align.swift:47:61: error: generic parameter 'Axis' could not be inferred
45 | // MARK: Anchors
46 |
47 | var top: Anchor<AnchorType.Edge, AnchorAxis.Vertical> { Anchor(base, .top) }
| |- error: generic parameter 'Axis' could not be inferred
| `- note: explicitly specify the generic arguments to fix this issue
48 | var bottom: Anchor<AnchorType.Edge, AnchorAxis.Vertical> { Anchor(base, .bottom) }
49 | var left: Anchor<AnchorType.Edge, AnchorAxis.Horizontal> { Anchor(base, .left) }
:
97 | /// An anchor represents one of the view's layout attributes (e.g. `left`,
98 | /// `centerX`, `width`, etc). Use the anchor’s methods to construct constraints.
99 | internal struct Anchor<Type, Axis> { // type and axis are phantom types
| `- note: 'Axis' declared as parameter to type 'Anchor'
100 | let item: LayoutItem
101 | fileprivate let attribute: NSLayoutConstraint.Attribute
/Users/admin/builder/spi-builder-workspace/Sources/Subviews/Internal/Align.swift:48:64: error: generic parameter 'Type' could not be inferred
46 |
47 | var top: Anchor<AnchorType.Edge, AnchorAxis.Vertical> { Anchor(base, .top) }
48 | var bottom: Anchor<AnchorType.Edge, AnchorAxis.Vertical> { Anchor(base, .bottom) }
| `- error: generic parameter 'Type' could not be inferred
49 | var left: Anchor<AnchorType.Edge, AnchorAxis.Horizontal> { Anchor(base, .left) }
50 | var right: Anchor<AnchorType.Edge, AnchorAxis.Horizontal> { Anchor(base, .right) }
:
97 | /// An anchor represents one of the view's layout attributes (e.g. `left`,
98 | /// `centerX`, `width`, etc). Use the anchor’s methods to construct constraints.
99 | internal struct Anchor<Type, Axis> { // type and axis are phantom types
| `- note: 'Type' declared as parameter to type 'Anchor'
100 | let item: LayoutItem
101 | fileprivate let attribute: NSLayoutConstraint.Attribute
/Users/admin/builder/spi-builder-workspace/Sources/Subviews/Internal/Align.swift:48:64: error: generic parameter 'Axis' could not be inferred
46 |
47 | var top: Anchor<AnchorType.Edge, AnchorAxis.Vertical> { Anchor(base, .top) }
48 | var bottom: Anchor<AnchorType.Edge, AnchorAxis.Vertical> { Anchor(base, .bottom) }
| |- error: generic parameter 'Axis' could not be inferred
| `- note: explicitly specify the generic arguments to fix this issue
49 | var left: Anchor<AnchorType.Edge, AnchorAxis.Horizontal> { Anchor(base, .left) }
50 | var right: Anchor<AnchorType.Edge, AnchorAxis.Horizontal> { Anchor(base, .right) }
:
97 | /// An anchor represents one of the view's layout attributes (e.g. `left`,
98 | /// `centerX`, `width`, etc). Use the anchor’s methods to construct constraints.
99 | internal struct Anchor<Type, Axis> { // type and axis are phantom types
| `- note: 'Axis' declared as parameter to type 'Anchor'
100 | let item: LayoutItem
101 | fileprivate let attribute: NSLayoutConstraint.Attribute
/Users/admin/builder/spi-builder-workspace/Sources/Subviews/Internal/Align.swift:49:64: error: generic parameter 'Type' could not be inferred
47 | var top: Anchor<AnchorType.Edge, AnchorAxis.Vertical> { Anchor(base, .top) }
48 | var bottom: Anchor<AnchorType.Edge, AnchorAxis.Vertical> { Anchor(base, .bottom) }
49 | var left: Anchor<AnchorType.Edge, AnchorAxis.Horizontal> { Anchor(base, .left) }
| `- error: generic parameter 'Type' could not be inferred
50 | var right: Anchor<AnchorType.Edge, AnchorAxis.Horizontal> { Anchor(base, .right) }
51 | var leading: Anchor<AnchorType.Edge, AnchorAxis.Horizontal> { Anchor(base, .leading) }
:
97 | /// An anchor represents one of the view's layout attributes (e.g. `left`,
98 | /// `centerX`, `width`, etc). Use the anchor’s methods to construct constraints.
99 | internal struct Anchor<Type, Axis> { // type and axis are phantom types
| `- note: 'Type' declared as parameter to type 'Anchor'
100 | let item: LayoutItem
101 | fileprivate let attribute: NSLayoutConstraint.Attribute
/Users/admin/builder/spi-builder-workspace/Sources/Subviews/Internal/Align.swift:49:64: error: generic parameter 'Axis' could not be inferred
47 | var top: Anchor<AnchorType.Edge, AnchorAxis.Vertical> { Anchor(base, .top) }
48 | var bottom: Anchor<AnchorType.Edge, AnchorAxis.Vertical> { Anchor(base, .bottom) }
49 | var left: Anchor<AnchorType.Edge, AnchorAxis.Horizontal> { Anchor(base, .left) }
| |- error: generic parameter 'Axis' could not be inferred
| `- note: explicitly specify the generic arguments to fix this issue
50 | var right: Anchor<AnchorType.Edge, AnchorAxis.Horizontal> { Anchor(base, .right) }
51 | var leading: Anchor<AnchorType.Edge, AnchorAxis.Horizontal> { Anchor(base, .leading) }
:
97 | /// An anchor represents one of the view's layout attributes (e.g. `left`,
98 | /// `centerX`, `width`, etc). Use the anchor’s methods to construct constraints.
99 | internal struct Anchor<Type, Axis> { // type and axis are phantom types
| `- note: 'Axis' declared as parameter to type 'Anchor'
100 | let item: LayoutItem
101 | fileprivate let attribute: NSLayoutConstraint.Attribute
/Users/admin/builder/spi-builder-workspace/Sources/Subviews/Internal/Align.swift:50:65: error: generic parameter 'Type' could not be inferred
48 | var bottom: Anchor<AnchorType.Edge, AnchorAxis.Vertical> { Anchor(base, .bottom) }
49 | var left: Anchor<AnchorType.Edge, AnchorAxis.Horizontal> { Anchor(base, .left) }
50 | var right: Anchor<AnchorType.Edge, AnchorAxis.Horizontal> { Anchor(base, .right) }
| `- error: generic parameter 'Type' could not be inferred
51 | var leading: Anchor<AnchorType.Edge, AnchorAxis.Horizontal> { Anchor(base, .leading) }
52 | var trailing: Anchor<AnchorType.Edge, AnchorAxis.Horizontal> { Anchor(base, .trailing) }
:
97 | /// An anchor represents one of the view's layout attributes (e.g. `left`,
98 | /// `centerX`, `width`, etc). Use the anchor’s methods to construct constraints.
99 | internal struct Anchor<Type, Axis> { // type and axis are phantom types
| `- note: 'Type' declared as parameter to type 'Anchor'
100 | let item: LayoutItem
101 | fileprivate let attribute: NSLayoutConstraint.Attribute
/Users/admin/builder/spi-builder-workspace/Sources/Subviews/Internal/Align.swift:50:65: error: generic parameter 'Axis' could not be inferred
48 | var bottom: Anchor<AnchorType.Edge, AnchorAxis.Vertical> { Anchor(base, .bottom) }
49 | var left: Anchor<AnchorType.Edge, AnchorAxis.Horizontal> { Anchor(base, .left) }
50 | var right: Anchor<AnchorType.Edge, AnchorAxis.Horizontal> { Anchor(base, .right) }
| |- error: generic parameter 'Axis' could not be inferred
| `- note: explicitly specify the generic arguments to fix this issue
51 | var leading: Anchor<AnchorType.Edge, AnchorAxis.Horizontal> { Anchor(base, .leading) }
52 | var trailing: Anchor<AnchorType.Edge, AnchorAxis.Horizontal> { Anchor(base, .trailing) }
:
97 | /// An anchor represents one of the view's layout attributes (e.g. `left`,
98 | /// `centerX`, `width`, etc). Use the anchor’s methods to construct constraints.
99 | internal struct Anchor<Type, Axis> { // type and axis are phantom types
| `- note: 'Axis' declared as parameter to type 'Anchor'
100 | let item: LayoutItem
101 | fileprivate let attribute: NSLayoutConstraint.Attribute
/Users/admin/builder/spi-builder-workspace/Sources/Subviews/Internal/Align.swift:51:67: error: generic parameter 'Type' could not be inferred
49 | var left: Anchor<AnchorType.Edge, AnchorAxis.Horizontal> { Anchor(base, .left) }
50 | var right: Anchor<AnchorType.Edge, AnchorAxis.Horizontal> { Anchor(base, .right) }
51 | var leading: Anchor<AnchorType.Edge, AnchorAxis.Horizontal> { Anchor(base, .leading) }
| `- error: generic parameter 'Type' could not be inferred
52 | var trailing: Anchor<AnchorType.Edge, AnchorAxis.Horizontal> { Anchor(base, .trailing) }
53 |
:
97 | /// An anchor represents one of the view's layout attributes (e.g. `left`,
98 | /// `centerX`, `width`, etc). Use the anchor’s methods to construct constraints.
99 | internal struct Anchor<Type, Axis> { // type and axis are phantom types
| `- note: 'Type' declared as parameter to type 'Anchor'
100 | let item: LayoutItem
101 | fileprivate let attribute: NSLayoutConstraint.Attribute
/Users/admin/builder/spi-builder-workspace/Sources/Subviews/Internal/Align.swift:51:67: error: generic parameter 'Axis' could not be inferred
49 | var left: Anchor<AnchorType.Edge, AnchorAxis.Horizontal> { Anchor(base, .left) }
50 | var right: Anchor<AnchorType.Edge, AnchorAxis.Horizontal> { Anchor(base, .right) }
51 | var leading: Anchor<AnchorType.Edge, AnchorAxis.Horizontal> { Anchor(base, .leading) }
| |- error: generic parameter 'Axis' could not be inferred
| `- note: explicitly specify the generic arguments to fix this issue
52 | var trailing: Anchor<AnchorType.Edge, AnchorAxis.Horizontal> { Anchor(base, .trailing) }
53 |
:
97 | /// An anchor represents one of the view's layout attributes (e.g. `left`,
98 | /// `centerX`, `width`, etc). Use the anchor’s methods to construct constraints.
99 | internal struct Anchor<Type, Axis> { // type and axis are phantom types
| `- note: 'Axis' declared as parameter to type 'Anchor'
100 | let item: LayoutItem
101 | fileprivate let attribute: NSLayoutConstraint.Attribute
/Users/admin/builder/spi-builder-workspace/Sources/Subviews/Internal/Align.swift:52:68: error: generic parameter 'Type' could not be inferred
50 | var right: Anchor<AnchorType.Edge, AnchorAxis.Horizontal> { Anchor(base, .right) }
51 | var leading: Anchor<AnchorType.Edge, AnchorAxis.Horizontal> { Anchor(base, .leading) }
52 | var trailing: Anchor<AnchorType.Edge, AnchorAxis.Horizontal> { Anchor(base, .trailing) }
| `- error: generic parameter 'Type' could not be inferred
53 |
54 | var centerX: Anchor<AnchorType.Center, AnchorAxis.Horizontal> { Anchor(base, .centerX) }
:
97 | /// An anchor represents one of the view's layout attributes (e.g. `left`,
98 | /// `centerX`, `width`, etc). Use the anchor’s methods to construct constraints.
99 | internal struct Anchor<Type, Axis> { // type and axis are phantom types
| `- note: 'Type' declared as parameter to type 'Anchor'
100 | let item: LayoutItem
101 | fileprivate let attribute: NSLayoutConstraint.Attribute
/Users/admin/builder/spi-builder-workspace/Sources/Subviews/Internal/Align.swift:52:68: error: generic parameter 'Axis' could not be inferred
50 | var right: Anchor<AnchorType.Edge, AnchorAxis.Horizontal> { Anchor(base, .right) }
51 | var leading: Anchor<AnchorType.Edge, AnchorAxis.Horizontal> { Anchor(base, .leading) }
52 | var trailing: Anchor<AnchorType.Edge, AnchorAxis.Horizontal> { Anchor(base, .trailing) }
| |- error: generic parameter 'Axis' could not be inferred
| `- note: explicitly specify the generic arguments to fix this issue
53 |
54 | var centerX: Anchor<AnchorType.Center, AnchorAxis.Horizontal> { Anchor(base, .centerX) }
:
97 | /// An anchor represents one of the view's layout attributes (e.g. `left`,
98 | /// `centerX`, `width`, etc). Use the anchor\342\200\231s methods to construct constraints.
99 | internal struct Anchor<Type, Axis> { // type and axis are phantom types
| `- note: 'Axis' declared as parameter to type 'Anchor'
100 | let item: LayoutItem
101 | fileprivate let attribute: NSLayoutConstraint.Attribute
/Users/admin/builder/spi-builder-workspace/Sources/Subviews/Internal/Align.swift:54:69: error: generic parameter 'Type' could not be inferred
52 | var trailing: Anchor<AnchorType.Edge, AnchorAxis.Horizontal> { Anchor(base, .trailing) }
53 |
54 | var centerX: Anchor<AnchorType.Center, AnchorAxis.Horizontal> { Anchor(base, .centerX) }
| `- error: generic parameter 'Type' could not be inferred
55 | var centerY: Anchor<AnchorType.Center, AnchorAxis.Vertical> { Anchor(base, .centerY) }
56 |
:
97 | /// An anchor represents one of the view's layout attributes (e.g. `left`,
98 | /// `centerX`, `width`, etc). Use the anchor’s methods to construct constraints.
99 | internal struct Anchor<Type, Axis> { // type and axis are phantom types
| `- note: 'Type' declared as parameter to type 'Anchor'
100 | let item: LayoutItem
101 | fileprivate let attribute: NSLayoutConstraint.Attribute
/Users/admin/builder/spi-builder-workspace/Sources/Subviews/Internal/Align.swift:54:69: error: generic parameter 'Axis' could not be inferred
52 | var trailing: Anchor<AnchorType.Edge, AnchorAxis.Horizontal> { Anchor(base, .trailing) }
53 |
54 | var centerX: Anchor<AnchorType.Center, AnchorAxis.Horizontal> { Anchor(base, .centerX) }
| |- error: generic parameter 'Axis' could not be inferred
| `- note: explicitly specify the generic arguments to fix this issue
55 | var centerY: Anchor<AnchorType.Center, AnchorAxis.Vertical> { Anchor(base, .centerY) }
56 |
:
97 | /// An anchor represents one of the view's layout attributes (e.g. `left`,
98 | /// `centerX`, `width`, etc). Use the anchor’s methods to construct constraints.
99 | internal struct Anchor<Type, Axis> { // type and axis are phantom types
| `- note: 'Axis' declared as parameter to type 'Anchor'
100 | let item: LayoutItem
101 | fileprivate let attribute: NSLayoutConstraint.Attribute
/Users/admin/builder/spi-builder-workspace/Sources/Subviews/Internal/Align.swift:55:67: error: generic parameter 'Type' could not be inferred
53 |
54 | var centerX: Anchor<AnchorType.Center, AnchorAxis.Horizontal> { Anchor(base, .centerX) }
55 | var centerY: Anchor<AnchorType.Center, AnchorAxis.Vertical> { Anchor(base, .centerY) }
| `- error: generic parameter 'Type' could not be inferred
56 |
57 | var firstBaseline: Anchor<AnchorType.Baseline, AnchorAxis.Vertical> { Anchor(base, .firstBaseline) }
:
97 | /// An anchor represents one of the view's layout attributes (e.g. `left`,
98 | /// `centerX`, `width`, etc). Use the anchor’s methods to construct constraints.
99 | internal struct Anchor<Type, Axis> { // type and axis are phantom types
| `- note: 'Type' declared as parameter to type 'Anchor'
100 | let item: LayoutItem
101 | fileprivate let attribute: NSLayoutConstraint.Attribute
/Users/admin/builder/spi-builder-workspace/Sources/Subviews/Internal/Align.swift:55:67: error: generic parameter 'Axis' could not be inferred
53 |
54 | var centerX: Anchor<AnchorType.Center, AnchorAxis.Horizontal> { Anchor(base, .centerX) }
55 | var centerY: Anchor<AnchorType.Center, AnchorAxis.Vertical> { Anchor(base, .centerY) }
| |- error: generic parameter 'Axis' could not be inferred
| `- note: explicitly specify the generic arguments to fix this issue
56 |
57 | var firstBaseline: Anchor<AnchorType.Baseline, AnchorAxis.Vertical> { Anchor(base, .firstBaseline) }
:
97 | /// An anchor represents one of the view's layout attributes (e.g. `left`,
98 | /// `centerX`, `width`, etc). Use the anchor’s methods to construct constraints.
99 | internal struct Anchor<Type, Axis> { // type and axis are phantom types
| `- note: 'Axis' declared as parameter to type 'Anchor'
100 | let item: LayoutItem
101 | fileprivate let attribute: NSLayoutConstraint.Attribute
/Users/admin/builder/spi-builder-workspace/Sources/Subviews/Internal/Align.swift:57:75: error: generic parameter 'Type' could not be inferred
55 | var centerY: Anchor<AnchorType.Center, AnchorAxis.Vertical> { Anchor(base, .centerY) }
56 |
57 | var firstBaseline: Anchor<AnchorType.Baseline, AnchorAxis.Vertical> { Anchor(base, .firstBaseline) }
| `- error: generic parameter 'Type' could not be inferred
58 | var lastBaseline: Anchor<AnchorType.Baseline, AnchorAxis.Vertical> { Anchor(base, .lastBaseline) }
59 |
:
97 | /// An anchor represents one of the view's layout attributes (e.g. `left`,
98 | /// `centerX`, `width`, etc). Use the anchor’s methods to construct constraints.
99 | internal struct Anchor<Type, Axis> { // type and axis are phantom types
| `- note: 'Type' declared as parameter to type 'Anchor'
100 | let item: LayoutItem
101 | fileprivate let attribute: NSLayoutConstraint.Attribute
/Users/admin/builder/spi-builder-workspace/Sources/Subviews/Internal/Align.swift:57:75: error: generic parameter 'Axis' could not be inferred
55 | var centerY: Anchor<AnchorType.Center, AnchorAxis.Vertical> { Anchor(base, .centerY) }
56 |
57 | var firstBaseline: Anchor<AnchorType.Baseline, AnchorAxis.Vertical> { Anchor(base, .firstBaseline) }
| |- error: generic parameter 'Axis' could not be inferred
| `- note: explicitly specify the generic arguments to fix this issue
58 | var lastBaseline: Anchor<AnchorType.Baseline, AnchorAxis.Vertical> { Anchor(base, .lastBaseline) }
59 |
:
97 | /// An anchor represents one of the view's layout attributes (e.g. `left`,
98 | /// `centerX`, `width`, etc). Use the anchor’s methods to construct constraints.
99 | internal struct Anchor<Type, Axis> { // type and axis are phantom types
| `- note: 'Axis' declared as parameter to type 'Anchor'
100 | let item: LayoutItem
101 | fileprivate let attribute: NSLayoutConstraint.Attribute
/Users/admin/builder/spi-builder-workspace/Sources/Subviews/Internal/Align.swift:58:74: error: generic parameter 'Type' could not be inferred
56 |
57 | var firstBaseline: Anchor<AnchorType.Baseline, AnchorAxis.Vertical> { Anchor(base, .firstBaseline) }
58 | var lastBaseline: Anchor<AnchorType.Baseline, AnchorAxis.Vertical> { Anchor(base, .lastBaseline) }
| `- error: generic parameter 'Type' could not be inferred
59 |
60 | var width: Anchor<AnchorType.Dimension, AnchorAxis.Horizontal> { Anchor(base, .width) }
:
97 | /// An anchor represents one of the view's layout attributes (e.g. `left`,
98 | /// `centerX`, `width`, etc). Use the anchor’s methods to construct constraints.
99 | internal struct Anchor<Type, Axis> { // type and axis are phantom types
| `- note: 'Type' declared as parameter to type 'Anchor'
100 | let item: LayoutItem
101 | fileprivate let attribute: NSLayoutConstraint.Attribute
/Users/admin/builder/spi-builder-workspace/Sources/Subviews/Internal/Align.swift:58:74: error: generic parameter 'Axis' could not be inferred
56 |
57 | var firstBaseline: Anchor<AnchorType.Baseline, AnchorAxis.Vertical> { Anchor(base, .firstBaseline) }
58 | var lastBaseline: Anchor<AnchorType.Baseline, AnchorAxis.Vertical> { Anchor(base, .lastBaseline) }
| |- error: generic parameter 'Axis' could not be inferred
| `- note: explicitly specify the generic arguments to fix this issue
59 |
60 | var width: Anchor<AnchorType.Dimension, AnchorAxis.Horizontal> { Anchor(base, .width) }
:
97 | /// An anchor represents one of the view's layout attributes (e.g. `left`,
98 | /// `centerX`, `width`, etc). Use the anchor’s methods to construct constraints.
99 | internal struct Anchor<Type, Axis> { // type and axis are phantom types
| `- note: 'Axis' declared as parameter to type 'Anchor'
100 | let item: LayoutItem
101 | fileprivate let attribute: NSLayoutConstraint.Attribute
/Users/admin/builder/spi-builder-workspace/Sources/Subviews/Internal/Align.swift:60:70: error: generic parameter 'Type' could not be inferred
58 | var lastBaseline: Anchor<AnchorType.Baseline, AnchorAxis.Vertical> { Anchor(base, .lastBaseline) }
59 |
60 | var width: Anchor<AnchorType.Dimension, AnchorAxis.Horizontal> { Anchor(base, .width) }
| `- error: generic parameter 'Type' could not be inferred
61 | var height: Anchor<AnchorType.Dimension, AnchorAxis.Vertical> { Anchor(base, .height) }
62 |
:
97 | /// An anchor represents one of the view's layout attributes (e.g. `left`,
98 | /// `centerX`, `width`, etc). Use the anchor’s methods to construct constraints.
99 | internal struct Anchor<Type, Axis> { // type and axis are phantom types
| `- note: 'Type' declared as parameter to type 'Anchor'
100 | let item: LayoutItem
101 | fileprivate let attribute: NSLayoutConstraint.Attribute
/Users/admin/builder/spi-builder-workspace/Sources/Subviews/Internal/Align.swift:60:70: error: generic parameter 'Axis' could not be inferred
58 | var lastBaseline: Anchor<AnchorType.Baseline, AnchorAxis.Vertical> { Anchor(base, .lastBaseline) }
59 |
60 | var width: Anchor<AnchorType.Dimension, AnchorAxis.Horizontal> { Anchor(base, .width) }
| |- error: generic parameter 'Axis' could not be inferred
| `- note: explicitly specify the generic arguments to fix this issue
61 | var height: Anchor<AnchorType.Dimension, AnchorAxis.Vertical> { Anchor(base, .height) }
62 |
:
97 | /// An anchor represents one of the view's layout attributes (e.g. `left`,
98 | /// `centerX`, `width`, etc). Use the anchor’s methods to construct constraints.
99 | internal struct Anchor<Type, Axis> { // type and axis are phantom types
| `- note: 'Axis' declared as parameter to type 'Anchor'
100 | let item: LayoutItem
101 | fileprivate let attribute: NSLayoutConstraint.Attribute
/Users/admin/builder/spi-builder-workspace/Sources/Subviews/Internal/Align.swift:61:69: error: generic parameter 'Type' could not be inferred
59 |
60 | var width: Anchor<AnchorType.Dimension, AnchorAxis.Horizontal> { Anchor(base, .width) }
61 | var height: Anchor<AnchorType.Dimension, AnchorAxis.Vertical> { Anchor(base, .height) }
| `- error: generic parameter 'Type' could not be inferred
62 |
63 | // MARK: Anchor Collections
:
97 | /// An anchor represents one of the view's layout attributes (e.g. `left`,
98 | /// `centerX`, `width`, etc). Use the anchor’s methods to construct constraints.
99 | internal struct Anchor<Type, Axis> { // type and axis are phantom types
| `- note: 'Type' declared as parameter to type 'Anchor'
100 | let item: LayoutItem
101 | fileprivate let attribute: NSLayoutConstraint.Attribute
/Users/admin/builder/spi-builder-workspace/Sources/Subviews/Internal/Align.swift:61:69: error: generic parameter 'Axis' could not be inferred
59 |
60 | var width: Anchor<AnchorType.Dimension, AnchorAxis.Horizontal> { Anchor(base, .width) }
61 | var height: Anchor<AnchorType.Dimension, AnchorAxis.Vertical> { Anchor(base, .height) }
| |- error: generic parameter 'Axis' could not be inferred
| `- note: explicitly specify the generic arguments to fix this issue
62 |
63 | // MARK: Anchor Collections
:
97 | /// An anchor represents one of the view's layout attributes (e.g. `left`,
98 | /// `centerX`, `width`, etc). Use the anchor’s methods to construct constraints.
99 | internal struct Anchor<Type, Axis> { // type and axis are phantom types
| `- note: 'Axis' declared as parameter to type 'Anchor'
100 | let item: LayoutItem
101 | fileprivate let attribute: NSLayoutConstraint.Attribute
/Users/admin/builder/spi-builder-workspace/Sources/Subviews/Internal/Align.swift:189:55: error: failed to produce diagnostic for expression; please submit a bug report (https://swift.org/contributing/#reporting-bugs)
187 | /// Pins the edge to the respected edges of the given container.
188 | @discardableResult internal func pin(to container: LayoutItem?, inset: CGFloat = 0) -> NSLayoutConstraint {
189 | let isInverted = [.trailing, .right, .bottom].contains(attribute)
| `- error: failed to produce diagnostic for expression; please submit a bug report (https://swift.org/contributing/#reporting-bugs)
190 | return Constraints.constrain(self, toItem: container ?? item.superview!, attribute: attribute, constant: (isInverted ? -inset : inset))
191 | }
/Users/admin/builder/spi-builder-workspace/Sources/Subviews/Internal/Align.swift:268:19: error: cannot find type 'NSLayoutConstraint' in scope
266 | @discardableResult internal func pin(to item2: LayoutItem? = nil, insets: EdgeInsets = .zero, alignment: Alignmment = .fill) -> [NSLayoutConstraint] {
267 | let item2 = item2 ?? item.superview!
268 | let left: NSLayoutConstraint.Attribute = isAbsolute ? .left : .leading
| `- error: cannot find type 'NSLayoutConstraint' in scope
269 | let right: NSLayoutConstraint.Attribute = isAbsolute ? .right : .trailing
270 | var constraints = [NSLayoutConstraint]()
/Users/admin/builder/spi-builder-workspace/Sources/Subviews/Internal/Align.swift:269:20: error: cannot find type 'NSLayoutConstraint' in scope
267 | let item2 = item2 ?? item.superview!
268 | let left: NSLayoutConstraint.Attribute = isAbsolute ? .left : .leading
269 | let right: NSLayoutConstraint.Attribute = isAbsolute ? .right : .trailing
| `- error: cannot find type 'NSLayoutConstraint' in scope
270 | var constraints = [NSLayoutConstraint]()
271 |
/Users/admin/builder/spi-builder-workspace/Sources/Subviews/Internal/Align.swift:270:28: error: cannot find 'NSLayoutConstraint' in scope
268 | let left: NSLayoutConstraint.Attribute = isAbsolute ? .left : .leading
269 | let right: NSLayoutConstraint.Attribute = isAbsolute ? .right : .trailing
270 | var constraints = [NSLayoutConstraint]()
| `- error: cannot find 'NSLayoutConstraint' in scope
271 |
272 | func constrain(attribute: NSLayoutConstraint.Attribute, relation: NSLayoutConstraint.Relation, constant: CGFloat) {
/Users/admin/builder/spi-builder-workspace/Sources/Subviews/Internal/Align.swift:270:27: error: cannot call value of non-function type '[Element]'
268 | let left: NSLayoutConstraint.Attribute = isAbsolute ? .left : .leading
269 | let right: NSLayoutConstraint.Attribute = isAbsolute ? .right : .trailing
270 | var constraints = [NSLayoutConstraint]()
| `- error: cannot call value of non-function type '[Element]'
271 |
272 | func constrain(attribute: NSLayoutConstraint.Attribute, relation: NSLayoutConstraint.Relation, constant: CGFloat) {
/Users/admin/builder/spi-builder-workspace/Sources/Subviews/Internal/Align.swift:272:35: error: cannot find type 'NSLayoutConstraint' in scope
270 | var constraints = [NSLayoutConstraint]()
271 |
272 | func constrain(attribute: NSLayoutConstraint.Attribute, relation: NSLayoutConstraint.Relation, constant: CGFloat) {
| `- error: cannot find type 'NSLayoutConstraint' in scope
273 | constraints.append(Constraints.constrain(item: item, attribute: attribute, relatedBy: relation, toItem: item2, attribute: attribute, multiplier: 1, constant: constant))
274 | }
/Users/admin/builder/spi-builder-workspace/Sources/Subviews/Internal/Align.swift:272:75: error: cannot find type 'NSLayoutConstraint' in scope
270 | var constraints = [NSLayoutConstraint]()
271 |
272 | func constrain(attribute: NSLayoutConstraint.Attribute, relation: NSLayoutConstraint.Relation, constant: CGFloat) {
| `- error: cannot find type 'NSLayoutConstraint' in scope
273 | constraints.append(Constraints.constrain(item: item, attribute: attribute, relatedBy: relation, toItem: item2, attribute: attribute, multiplier: 1, constant: constant))
274 | }
/Users/admin/builder/spi-builder-workspace/Sources/Subviews/Internal/Align.swift:272:114: error: cannot find type 'CGFloat' in scope; did you mean to use 'CGFloat'?
270 | var constraints = [NSLayoutConstraint]()
271 |
272 | func constrain(attribute: NSLayoutConstraint.Attribute, relation: NSLayoutConstraint.Relation, constant: CGFloat) {
| `- error: cannot find type 'CGFloat' in scope; did you mean to use 'CGFloat'?
273 | constraints.append(Constraints.constrain(item: item, attribute: attribute, relatedBy: relation, toItem: item2, attribute: attribute, multiplier: 1, constant: constant))
274 | }
/Users/admin/builder/spi-builder-workspace/Sources/Subviews/Internal/Align.swift:316:23: error: value of type 'Item' has no member 'anchors'
314 | /// Makes the axis equal to the other collection of axis.
315 | @discardableResult internal func align<Item: LayoutItem>(with item: Item) -> [NSLayoutConstraint] {
316 | [x.equal(item.anchors.centerX), y.equal(item.anchors.centerY)]
| `- error: value of type 'Item' has no member 'anchors'
317 | }
318 | }
/Users/admin/builder/spi-builder-workspace/Sources/Subviews/Internal/Align.swift:316:54: error: value of type 'Item' has no member 'anchors'
314 | /// Makes the axis equal to the other collection of axis.
315 | @discardableResult internal func align<Item: LayoutItem>(with item: Item) -> [NSLayoutConstraint] {
316 | [x.equal(item.anchors.centerX), y.equal(item.anchors.centerY)]
| `- error: value of type 'Item' has no member 'anchors'
317 | }
318 | }
/Users/admin/builder/spi-builder-workspace/Sources/Subviews/Internal/Align.swift:343:27: error: value of type 'Item' has no member 'anchors'
341 | /// Makes the size of the item equal to the size of the other item.
342 | @discardableResult internal func equal<Item: LayoutItem>(_ item: Item, insets: CGSize = .zero, multiplier: CGFloat = 1) -> [NSLayoutConstraint] {
343 | [width.equal(item.anchors.width * multiplier - insets.width), height.equal(item.anchors.height * multiplier - insets.height)]
| `- error: value of type 'Item' has no member 'anchors'
344 | }
345 |
/Users/admin/builder/spi-builder-workspace/Sources/Subviews/Internal/Align.swift:343:89: error: value of type 'Item' has no member 'anchors'
341 | /// Makes the size of the item equal to the size of the other item.
342 | @discardableResult internal func equal<Item: LayoutItem>(_ item: Item, insets: CGSize = .zero, multiplier: CGFloat = 1) -> [NSLayoutConstraint] {
343 | [width.equal(item.anchors.width * multiplier - insets.width), height.equal(item.anchors.height * multiplier - insets.height)]
| `- error: value of type 'Item' has no member 'anchors'
344 | }
345 |
/Users/admin/builder/spi-builder-workspace/Sources/Subviews/Internal/Align.swift:347:40: error: value of type 'Item' has no member 'anchors'
345 |
346 | @discardableResult internal func greaterThanOrEqual<Item: LayoutItem>(_ item: Item, insets: CGSize = .zero, multiplier: CGFloat = 1) -> [NSLayoutConstraint] {
347 | [width.greaterThanOrEqual(item.anchors.width * multiplier - insets.width), height.greaterThanOrEqual(item.anchors.height * multiplier - insets.height)]
| `- error: value of type 'Item' has no member 'anchors'
348 | }
349 |
/Users/admin/builder/spi-builder-workspace/Sources/Subviews/Internal/Align.swift:347:115: error: value of type 'Item' has no member 'anchors'
345 |
346 | @discardableResult internal func greaterThanOrEqual<Item: LayoutItem>(_ item: Item, insets: CGSize = .zero, multiplier: CGFloat = 1) -> [NSLayoutConstraint] {
347 | [width.greaterThanOrEqual(item.anchors.width * multiplier - insets.width), height.greaterThanOrEqual(item.anchors.height * multiplier - insets.height)]
| `- error: value of type 'Item' has no member 'anchors'
348 | }
349 |
/Users/admin/builder/spi-builder-workspace/Sources/Subviews/Internal/Align.swift:351:37: error: value of type 'Item' has no member 'anchors'
349 |
350 | @discardableResult internal func lessThanOrEqual<Item: LayoutItem>(_ item: Item, insets: CGSize = .zero, multiplier: CGFloat = 1) -> [NSLayoutConstraint] {
351 | [width.lessThanOrEqual(item.anchors.width * multiplier - insets.width), height.lessThanOrEqual(item.anchors.height * multiplier - insets.height)]
| `- error: value of type 'Item' has no member 'anchors'
352 | }
353 | }
/Users/admin/builder/spi-builder-workspace/Sources/Subviews/Internal/Align.swift:351:109: error: value of type 'Item' has no member 'anchors'
349 |
350 | @discardableResult internal func lessThanOrEqual<Item: LayoutItem>(_ item: Item, insets: CGSize = .zero, multiplier: CGFloat = 1) -> [NSLayoutConstraint] {
351 | [width.lessThanOrEqual(item.anchors.width * multiplier - insets.width), height.lessThanOrEqual(item.anchors.height * multiplier - insets.height)]
| `- error: value of type 'Item' has no member 'anchors'
352 | }
353 | }
/Users/admin/builder/spi-builder-workspace/Sources/Subviews/Internal/Align.swift:372:23: error: cannot find 'NSLayoutConstraint' in scope
370 | closure() // create constraints
371 | Constraints._stack.removeLast()
372 | if activate { NSLayoutConstraint.activate(constraints) }
| `- error: cannot find 'NSLayoutConstraint' in scope
373 | }
374 |
/Users/admin/builder/spi-builder-workspace/Sources/Subviews/Internal/Align.swift:377:22: error: cannot find 'Thread' in scope
375 | /// Creates and automatically installs a constraint.
376 | fileprivate static func constrain(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 {
377 | precondition(Thread.isMainThread, "Align APIs can only be used from the main thread")
| `- error: cannot find 'Thread' in scope
378 | #if os(iOS) || os(tvOS)
379 | (item1 as? UIView)?.translatesAutoresizingMaskIntoConstraints = false
/Users/admin/builder/spi-builder-workspace/Sources/Subviews/Internal/Align.swift:383:26: error: cannot find 'NSLayoutConstraint' in scope
381 | (item1 as? NSView)?.translatesAutoresizingMaskIntoConstraints = false
382 | #endif
383 | let constraint = NSLayoutConstraint(item: item1, attribute: attr1, relatedBy: relation, toItem: item2, attribute: attr2 ?? .notAnAttribute, multiplier: multiplier, constant: constant)
| `- error: cannot find 'NSLayoutConstraint' in scope
384 | _install(constraint)
385 | return constraint
/Users/admin/builder/spi-builder-workspace/Sources/Subviews/Internal/Align.swift:412:31: error: value of type 'A' has no member 'anchors'
410 | extension Constraints {
411 | @discardableResult internal convenience init<A: LayoutItem>(for a: A, _ closure: (LayoutAnchors<A>) -> Void) {
412 | self.init { closure(a.anchors) }
| `- error: value of type 'A' has no member 'anchors'
413 | }
414 |
/Users/admin/builder/spi-builder-workspace/Sources/Subviews/Internal/Align.swift:416:31: error: value of type 'A' has no member 'anchors'
414 |
415 | @discardableResult internal convenience init<A: LayoutItem, B: LayoutItem>(for a: A, _ b: B, _ closure: (LayoutAnchors<A>, LayoutAnchors<B>) -> Void) {
416 | self.init { closure(a.anchors, b.anchors) }
| `- error: value of type 'A' has no member 'anchors'
417 | }
418 |
/Users/admin/builder/spi-builder-workspace/Sources/Subviews/Internal/Align.swift:416:42: error: value of type 'B' has no member 'anchors'
414 |
415 | @discardableResult internal convenience init<A: LayoutItem, B: LayoutItem>(for a: A, _ b: B, _ closure: (LayoutAnchors<A>, LayoutAnchors<B>) -> Void) {
416 | self.init { closure(a.anchors, b.anchors) }
| `- error: value of type 'B' has no member 'anchors'
417 | }
418 |
/Users/admin/builder/spi-builder-workspace/Sources/Subviews/Internal/Align.swift:420:31: error: value of type 'A' has no member 'anchors'
418 |
419 | @discardableResult internal convenience init<A: LayoutItem, B: LayoutItem, C: LayoutItem>(for a: A, _ b: B, _ c: C, _ closure: (LayoutAnchors<A>, LayoutAnchors<B>, LayoutAnchors<C>) -> Void) {
420 | self.init { closure(a.anchors, b.anchors, c.anchors) }
| `- error: value of type 'A' has no member 'anchors'
421 | }
422 |
/Users/admin/builder/spi-builder-workspace/Sources/Subviews/Internal/Align.swift:420:42: error: value of type 'B' has no member 'anchors'
418 |
419 | @discardableResult internal convenience init<A: LayoutItem, B: LayoutItem, C: LayoutItem>(for a: A, _ b: B, _ c: C, _ closure: (LayoutAnchors<A>, LayoutAnchors<B>, LayoutAnchors<C>) -> Void) {
420 | self.init { closure(a.anchors, b.anchors, c.anchors) }
| `- error: value of type 'B' has no member 'anchors'
421 | }
422 |
/Users/admin/builder/spi-builder-workspace/Sources/Subviews/Internal/Align.swift:420:53: error: value of type 'C' has no member 'anchors'
418 |
419 | @discardableResult internal convenience init<A: LayoutItem, B: LayoutItem, C: LayoutItem>(for a: A, _ b: B, _ c: C, _ closure: (LayoutAnchors<A>, LayoutAnchors<B>, LayoutAnchors<C>) -> Void) {
420 | self.init { closure(a.anchors, b.anchors, c.anchors) }
| `- error: value of type 'C' has no member 'anchors'
421 | }
422 |
/Users/admin/builder/spi-builder-workspace/Sources/Subviews/Internal/Align.swift:424:31: error: value of type 'A' has no member 'anchors'
422 |
423 | @discardableResult internal convenience init<A: LayoutItem, B: LayoutItem, C: LayoutItem, D: LayoutItem>(for a: A, _ b: B, _ c: C, _ d: D, _ closure: (LayoutAnchors<A>, LayoutAnchors<B>, LayoutAnchors<C>, LayoutAnchors<D>) -> Void) {
424 | self.init { closure(a.anchors, b.anchors, c.anchors, d.anchors) }
| `- error: value of type 'A' has no member 'anchors'
425 | }
426 | }
/Users/admin/builder/spi-builder-workspace/Sources/Subviews/Internal/Align.swift:424:42: error: value of type 'B' has no member 'anchors'
422 |
423 | @discardableResult internal convenience init<A: LayoutItem, B: LayoutItem, C: LayoutItem, D: LayoutItem>(for a: A, _ b: B, _ c: C, _ d: D, _ closure: (LayoutAnchors<A>, LayoutAnchors<B>, LayoutAnchors<C>, LayoutAnchors<D>) -> Void) {
424 | self.init { closure(a.anchors, b.anchors, c.anchors, d.anchors) }
| `- error: value of type 'B' has no member 'anchors'
425 | }
426 | }
/Users/admin/builder/spi-builder-workspace/Sources/Subviews/Internal/Align.swift:424:53: error: value of type 'C' has no member 'anchors'
422 |
423 | @discardableResult internal convenience init<A: LayoutItem, B: LayoutItem, C: LayoutItem, D: LayoutItem>(for a: A, _ b: B, _ c: C, _ d: D, _ closure: (LayoutAnchors<A>, LayoutAnchors<B>, LayoutAnchors<C>, LayoutAnchors<D>) -> Void) {
424 | self.init { closure(a.anchors, b.anchors, c.anchors, d.anchors) }
| `- error: value of type 'C' has no member 'anchors'
425 | }
426 | }
SwiftCompile normal arm64 /Users/admin/builder/spi-builder-workspace/Sources/Subviews/Internal/Align.swift (in target 'Subviews' from project 'Subviews')
cd /Users/admin/builder/spi-builder-workspace/.swiftpm/xcode
builtin-SwiftPerFileCompile Align.swift
SwiftCompile normal arm64 Compiling\ Stacks.swift /Users/admin/builder/spi-builder-workspace/Sources/Subviews/Stacks.swift (in target 'Subviews' from project 'Subviews')
SwiftCompile normal arm64 /Users/admin/builder/spi-builder-workspace/Sources/Subviews/Stacks.swift (in target 'Subviews' from project 'Subviews')
cd /Users/admin/builder/spi-builder-workspace/.swiftpm/xcode
builtin-SwiftPerFileCompile Stacks.swift
SwiftCompile normal arm64 Compiling\ Subview.swift /Users/admin/builder/spi-builder-workspace/Sources/Subviews/Subview.swift (in target 'Subviews' from project 'Subviews')
SwiftCompile normal arm64 /Users/admin/builder/spi-builder-workspace/Sources/Subviews/Subview.swift (in target 'Subviews' from project 'Subviews')
cd /Users/admin/builder/spi-builder-workspace/.swiftpm/xcode
builtin-SwiftPerFileCompile Subview.swift
SwiftCompile normal arm64 Compiling\ Child.swift /Users/admin/builder/spi-builder-workspace/Sources/Subviews/Child.swift (in target 'Subviews' from project 'Subviews')
SwiftCompile normal arm64 /Users/admin/builder/spi-builder-workspace/Sources/Subviews/Child.swift (in target 'Subviews' from project 'Subviews')
cd /Users/admin/builder/spi-builder-workspace/.swiftpm/xcode
builtin-SwiftPerFileCompile Child.swift
PruneExplicitPrecompiledModules /Users/admin/builder/spi-builder-workspace/.derivedData/Build/Intermediates.noindex/ExplicitPrecompiledModules
PruneExplicitPrecompiledModules /Users/admin/builder/spi-builder-workspace/.derivedData/SDKExplicitPrecompiledModules
PruneExplicitPrecompiledModules /Users/admin/builder/spi-builder-workspace/.derivedData/Build/Intermediates.noindex/SwiftExplicitPrecompiledModules
2026-09-19 05:12:55.930 xcodebuild[754:4677] [MT] IDERunDestination: Supported platforms for the buildables in the current scheme is empty.
** BUILD FAILED **
The following build commands failed:
SwiftEmitModule normal arm64 Emitting\ module\ for\ Subviews (in target 'Subviews' from project 'Subviews')
SwiftCompile normal arm64 (in target 'Subviews' from project 'Subviews')
Building workspace Subviews with scheme Subviews
(3 failures)
BUILD FAILURE 6.4 visionOS