Build Information
Failed to build DonateToUkraine, reference main (82d42e), with Swift 6.4 for visionOS using Xcode 27.0 on 18 Sep 2026 08:07:24 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 DonateToUkraine -destination generic/platform=xrOSBuild Log
151 | @discardableResult func equal<Type: AnchorType.Dimension, Axis>(_ anchor: Anchor<Type, Axis>, constant: CGFloat = 0) -> NSLayoutConstraint {
| `- error: cannot find type 'CGFloat' in scope
152 | Constraints.constrain(self, anchor, constant: constant, relation: .equal)
153 | }
/Users/admin/builder/spi-builder-workspace/Sources/DonateToUkraine/NiceUI/Align.swift:151:125: error: cannot find type 'NSLayoutConstraint' in scope
149 |
150 | extension Anchor where Type: AnchorType.Dimension {
151 | @discardableResult func equal<Type: AnchorType.Dimension, Axis>(_ anchor: Anchor<Type, Axis>, constant: CGFloat = 0) -> NSLayoutConstraint {
| `- error: cannot find type 'NSLayoutConstraint' in scope
152 | Constraints.constrain(self, anchor, constant: constant, relation: .equal)
153 | }
/Users/admin/builder/spi-builder-workspace/Sources/DonateToUkraine/NiceUI/Align.swift:155:122: error: cannot find type 'CGFloat' in scope
153 | }
154 |
155 | @discardableResult func greaterThanOrEqual<Type: AnchorType.Dimension, Axis>(_ anchor: Anchor<Type, Axis>, constant: CGFloat = 0) -> NSLayoutConstraint {
| `- error: cannot find type 'CGFloat' in scope
156 | Constraints.constrain(self, anchor, constant: constant, relation: .greaterThanOrEqual)
157 | }
/Users/admin/builder/spi-builder-workspace/Sources/DonateToUkraine/NiceUI/Align.swift:155:138: error: cannot find type 'NSLayoutConstraint' in scope
153 | }
154 |
155 | @discardableResult func greaterThanOrEqual<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: .greaterThanOrEqual)
157 | }
/Users/admin/builder/spi-builder-workspace/Sources/DonateToUkraine/NiceUI/Align.swift:159:119: error: cannot find type 'CGFloat' in scope
157 | }
158 |
159 | @discardableResult func lessThanOrEqual<Type: AnchorType.Dimension, Axis>(_ anchor: Anchor<Type, Axis>, constant: CGFloat = 0) -> NSLayoutConstraint {
| `- error: cannot find type 'CGFloat' in scope
160 | Constraints.constrain(self, anchor, constant: constant, relation: .lessThanOrEqual)
161 | }
/Users/admin/builder/spi-builder-workspace/Sources/DonateToUkraine/NiceUI/Align.swift:159:135: error: cannot find type 'NSLayoutConstraint' in scope
157 | }
158 |
159 | @discardableResult func lessThanOrEqual<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: .lessThanOrEqual)
161 | }
/Users/admin/builder/spi-builder-workspace/Sources/DonateToUkraine/NiceUI/Align.swift:167:59: error: cannot find type 'NSLayoutConstraint' in scope
165 |
166 | extension Anchor where Type: AnchorType.Dimension {
167 | @discardableResult func equal(_ constant: CGFloat) -> NSLayoutConstraint {
| `- error: cannot find type 'NSLayoutConstraint' in scope
168 | Constraints.constrain(item: item, attribute: attribute, relatedBy: .equal, constant: constant)
169 | }
/Users/admin/builder/spi-builder-workspace/Sources/DonateToUkraine/NiceUI/Align.swift:167:47: error: cannot find type 'CGFloat' in scope
165 |
166 | extension Anchor where Type: AnchorType.Dimension {
167 | @discardableResult func equal(_ constant: CGFloat) -> NSLayoutConstraint {
| `- error: cannot find type 'CGFloat' in scope
168 | Constraints.constrain(item: item, attribute: attribute, relatedBy: .equal, constant: constant)
169 | }
/Users/admin/builder/spi-builder-workspace/Sources/DonateToUkraine/NiceUI/Align.swift:171:72: error: cannot find type 'NSLayoutConstraint' in scope
169 | }
170 |
171 | @discardableResult func greaterThanOrEqual(_ constant: CGFloat) -> NSLayoutConstraint {
| `- error: cannot find type 'NSLayoutConstraint' in scope
172 | Constraints.constrain(item: item, attribute: attribute, relatedBy: .greaterThanOrEqual, constant: constant)
173 | }
/Users/admin/builder/spi-builder-workspace/Sources/DonateToUkraine/NiceUI/Align.swift:171:60: error: cannot find type 'CGFloat' in scope
169 | }
170 |
171 | @discardableResult func greaterThanOrEqual(_ constant: CGFloat) -> NSLayoutConstraint {
| `- error: cannot find type 'CGFloat' in scope
172 | Constraints.constrain(item: item, attribute: attribute, relatedBy: .greaterThanOrEqual, constant: constant)
173 | }
/Users/admin/builder/spi-builder-workspace/Sources/DonateToUkraine/NiceUI/Align.swift:175:69: error: cannot find type 'NSLayoutConstraint' in scope
173 | }
174 |
175 | @discardableResult func lessThanOrEqual(_ constant: CGFloat) -> NSLayoutConstraint {
| `- error: cannot find type 'NSLayoutConstraint' in scope
176 | Constraints.constrain(item: item, attribute: attribute, relatedBy: .lessThanOrEqual, constant: constant)
177 | }
/Users/admin/builder/spi-builder-workspace/Sources/DonateToUkraine/NiceUI/Align.swift:175:57: error: cannot find type 'CGFloat' in scope
173 | }
174 |
175 | @discardableResult func lessThanOrEqual(_ constant: CGFloat) -> NSLayoutConstraint {
| `- error: cannot find type 'CGFloat' in scope
176 | Constraints.constrain(item: item, attribute: attribute, relatedBy: .lessThanOrEqual, constant: constant)
177 | }
/Users/admin/builder/spi-builder-workspace/Sources/DonateToUkraine/NiceUI/Align.swift:184:83: error: cannot find type 'NSLayoutConstraint' in scope
182 | extension Anchor where Type: AnchorType.Edge {
183 | /// Pins the edge to the respected edges of the given container.
184 | @discardableResult func pin(to container: LayoutItem?, inset: CGFloat = 0) -> NSLayoutConstraint {
| `- error: cannot find type 'NSLayoutConstraint' in scope
185 | let isInverted = [.trailing, .right, .bottom].contains(attribute)
186 | return Constraints.constrain(self, toItem: container ?? item.superview!, attribute: attribute, constant: (isInverted ? -inset : inset))
/Users/admin/builder/spi-builder-workspace/Sources/DonateToUkraine/NiceUI/Align.swift:184:47: error: cannot find type 'LayoutItem' in scope
182 | extension Anchor where Type: AnchorType.Edge {
183 | /// Pins the edge to the respected edges of the given container.
184 | @discardableResult func pin(to container: LayoutItem?, inset: CGFloat = 0) -> NSLayoutConstraint {
| `- error: cannot find type 'LayoutItem' in scope
185 | let isInverted = [.trailing, .right, .bottom].contains(attribute)
186 | return Constraints.constrain(self, toItem: container ?? item.superview!, attribute: attribute, constant: (isInverted ? -inset : inset))
/Users/admin/builder/spi-builder-workspace/Sources/DonateToUkraine/NiceUI/Align.swift:184:67: error: cannot find type 'CGFloat' in scope
182 | extension Anchor where Type: AnchorType.Edge {
183 | /// Pins the edge to the respected edges of the given container.
184 | @discardableResult func pin(to container: LayoutItem?, inset: CGFloat = 0) -> NSLayoutConstraint {
| `- error: cannot find type 'CGFloat' in scope
185 | let isInverted = [.trailing, .right, .bottom].contains(attribute)
186 | return Constraints.constrain(self, toItem: container ?? item.superview!, attribute: attribute, constant: (isInverted ? -inset : inset))
/Users/admin/builder/spi-builder-workspace/Sources/DonateToUkraine/NiceUI/Align.swift:189:56: error: cannot find type 'NSLayoutConstraint' in scope
187 | }
188 |
189 | @discardableResult func pin(inset: CGFloat = 0) -> NSLayoutConstraint {
| `- error: cannot find type 'NSLayoutConstraint' in scope
190 | return pin(to: nil, inset: inset)
191 | }
/Users/admin/builder/spi-builder-workspace/Sources/DonateToUkraine/NiceUI/Align.swift:189:40: error: cannot find type 'CGFloat' in scope
187 | }
188 |
189 | @discardableResult func pin(inset: CGFloat = 0) -> NSLayoutConstraint {
| `- error: cannot find type 'CGFloat' in scope
190 | return pin(to: nil, inset: inset)
191 | }
/Users/admin/builder/spi-builder-workspace/Sources/DonateToUkraine/NiceUI/Align.swift:194:71: error: cannot find type 'CGFloat' in scope
192 |
193 | /// Adds spacing between the current anchors.
194 | @discardableResult func spacing<Type: AnchorType.Edge>(_ spacing: CGFloat, to anchor: Anchor<Type, Axis>, relation: NSLayoutConstraint.Relation = .equal) -> NSLayoutConstraint {
| `- error: cannot find type 'CGFloat' in scope
195 | let isInverted = (attribute == .bottom && anchor.attribute == .top) ||
196 | (attribute == .right && anchor.attribute == .left) ||
/Users/admin/builder/spi-builder-workspace/Sources/DonateToUkraine/NiceUI/Align.swift:194:121: error: cannot find type 'NSLayoutConstraint' in scope
192 |
193 | /// Adds spacing between the current anchors.
194 | @discardableResult func spacing<Type: AnchorType.Edge>(_ spacing: CGFloat, to anchor: Anchor<Type, Axis>, relation: NSLayoutConstraint.Relation = .equal) -> NSLayoutConstraint {
| `- error: cannot find type 'NSLayoutConstraint' in scope
195 | let isInverted = (attribute == .bottom && anchor.attribute == .top) ||
196 | (attribute == .right && anchor.attribute == .left) ||
/Users/admin/builder/spi-builder-workspace/Sources/DonateToUkraine/NiceUI/Align.swift:194:162: error: cannot find type 'NSLayoutConstraint' in scope
192 |
193 | /// Adds spacing between the current anchors.
194 | @discardableResult func spacing<Type: AnchorType.Edge>(_ spacing: CGFloat, to anchor: Anchor<Type, Axis>, relation: NSLayoutConstraint.Relation = .equal) -> NSLayoutConstraint {
| `- error: cannot find type 'NSLayoutConstraint' in scope
195 | let isInverted = (attribute == .bottom && anchor.attribute == .top) ||
196 | (attribute == .right && anchor.attribute == .left) ||
/Users/admin/builder/spi-builder-workspace/Sources/DonateToUkraine/NiceUI/Align.swift:206:59: error: cannot find type 'NSLayoutConstraint' in scope
204 | extension Anchor where Type: AnchorType.Center {
205 | /// Aligns the axis with a superview axis.
206 | @discardableResult func align(offset: CGFloat = 0) -> NSLayoutConstraint {
| `- error: cannot find type 'NSLayoutConstraint' in scope
207 | Constraints.constrain(self, toItem: item.superview!, attribute: attribute, constant: offset)
208 | }
/Users/admin/builder/spi-builder-workspace/Sources/DonateToUkraine/NiceUI/Align.swift:206:43: error: cannot find type 'CGFloat' in scope
204 | extension Anchor where Type: AnchorType.Center {
205 | /// Aligns the axis with a superview axis.
206 | @discardableResult func align(offset: CGFloat = 0) -> NSLayoutConstraint {
| `- error: cannot find type 'CGFloat' in scope
207 | Constraints.constrain(self, toItem: item.superview!, attribute: attribute, constant: offset)
208 | }
/Users/admin/builder/spi-builder-workspace/Sources/DonateToUkraine/NiceUI/Align.swift:241:27: error: cannot find type 'LayoutItem' in scope
239 |
240 | struct AnchorCollectionEdges {
241 | fileprivate let item: LayoutItem
| `- error: cannot find type 'LayoutItem' in scope
242 | fileprivate var isAbsolute = false
243 |
/Users/admin/builder/spi-builder-workspace/Sources/DonateToUkraine/NiceUI/Align.swift:252:22: error: cannot find type 'NSLayoutConstraint' in scope
250 | typealias Axis = NSLayoutConstraint.Axis
251 | #else
252 | typealias Axis = NSLayoutConstraint.Orientation
| `- error: cannot find type 'NSLayoutConstraint' in scope
253 | #endif
254 |
/Users/admin/builder/spi-builder-workspace/Sources/DonateToUkraine/NiceUI/Align.swift:255:144: error: cannot find type 'NSLayoutConstraint' in scope
253 | #endif
254 |
255 | @discardableResult func pin(to item2: LayoutItem? = nil, insets: EdgeInsets = .zero, axis: Axis? = nil, alignment: Alignmment = .fill) -> [NSLayoutConstraint] {
| `- error: cannot find type 'NSLayoutConstraint' in scope
256 | let item2 = item2 ?? item.superview!
257 | let left: NSLayoutConstraint.Attribute = isAbsolute ? .left : .leading
/Users/admin/builder/spi-builder-workspace/Sources/DonateToUkraine/NiceUI/Align.swift:255:43: error: cannot find type 'LayoutItem' in scope
253 | #endif
254 |
255 | @discardableResult func pin(to item2: LayoutItem? = nil, insets: EdgeInsets = .zero, axis: Axis? = nil, alignment: Alignmment = .fill) -> [NSLayoutConstraint] {
| `- error: cannot find type 'LayoutItem' in scope
256 | let item2 = item2 ?? item.superview!
257 | let left: NSLayoutConstraint.Attribute = isAbsolute ? .left : .leading
/Users/admin/builder/spi-builder-workspace/Sources/DonateToUkraine/NiceUI/Align.swift:255:70: error: cannot find type 'EdgeInsets' in scope
253 | #endif
254 |
255 | @discardableResult func pin(to item2: LayoutItem? = nil, insets: EdgeInsets = .zero, axis: Axis? = nil, alignment: Alignmment = .fill) -> [NSLayoutConstraint] {
| `- error: cannot find type 'EdgeInsets' in scope
256 | let item2 = item2 ?? item.superview!
257 | let left: NSLayoutConstraint.Attribute = isAbsolute ? .left : .leading
/Users/admin/builder/spi-builder-workspace/Sources/DonateToUkraine/NiceUI/Align.swift:290:41: error: cannot find type 'NSLayoutConstraint' in scope
288 |
289 | /// Centers the view in the superview.
290 | @discardableResult func align() -> [NSLayoutConstraint] {
| `- error: cannot find type 'NSLayoutConstraint' in scope
291 | [x.align(), y.align()]
292 | }
/Users/admin/builder/spi-builder-workspace/Sources/DonateToUkraine/NiceUI/Align.swift:295:74: error: cannot find type 'NSLayoutConstraint' in scope
293 |
294 | /// Makes the axis equal to the other collection of axis.
295 | @discardableResult func align<Item: LayoutItem>(with item: Item) -> [NSLayoutConstraint] {
| `- error: cannot find type 'NSLayoutConstraint' in scope
296 | [x.equal(item.anchors.centerX), y.equal(item.anchors.centerY)]
297 | }
/Users/admin/builder/spi-builder-workspace/Sources/DonateToUkraine/NiceUI/Align.swift:295:41: error: cannot find type 'LayoutItem' in scope
293 |
294 | /// Makes the axis equal to the other collection of axis.
295 | @discardableResult func align<Item: LayoutItem>(with item: Item) -> [NSLayoutConstraint] {
| `- error: cannot find type 'LayoutItem' in scope
296 | [x.equal(item.anchors.centerX), y.equal(item.anchors.centerY)]
297 | }
/Users/admin/builder/spi-builder-workspace/Sources/DonateToUkraine/NiceUI/Align.swift:307:55: error: cannot find type 'NSLayoutConstraint' in scope
305 |
306 | /// Set the size of item.
307 | @discardableResult func equal(_ size: CGSize) -> [NSLayoutConstraint] {
| `- error: cannot find type 'NSLayoutConstraint' in scope
308 | [width.equal(size.width), height.equal(size.height)]
309 | }
/Users/admin/builder/spi-builder-workspace/Sources/DonateToUkraine/NiceUI/Align.swift:307:43: error: cannot find type 'CGSize' in scope
305 |
306 | /// Set the size of item.
307 | @discardableResult func equal(_ size: CGSize) -> [NSLayoutConstraint] {
| `- error: cannot find type 'CGSize' in scope
308 | [width.equal(size.width), height.equal(size.height)]
309 | }
/Users/admin/builder/spi-builder-workspace/Sources/DonateToUkraine/NiceUI/Align.swift:312:67: error: cannot find type 'NSLayoutConstraint' in scope
310 |
311 | /// Set the size of item.
312 | @discardableResult func greaterThanOrEqul(_ size: CGSize) -> [NSLayoutConstraint] {
| `- error: cannot find type 'NSLayoutConstraint' in scope
313 | [width.greaterThanOrEqual(size.width), height.greaterThanOrEqual(size.height)]
314 | }
/Users/admin/builder/spi-builder-workspace/Sources/DonateToUkraine/NiceUI/Align.swift:312:55: error: cannot find type 'CGSize' in scope
310 |
311 | /// Set the size of item.
312 | @discardableResult func greaterThanOrEqul(_ size: CGSize) -> [NSLayoutConstraint] {
| `- error: cannot find type 'CGSize' in scope
313 | [width.greaterThanOrEqual(size.width), height.greaterThanOrEqual(size.height)]
314 | }
/Users/admin/builder/spi-builder-workspace/Sources/DonateToUkraine/NiceUI/Align.swift:317:65: error: cannot find type 'NSLayoutConstraint' in scope
315 |
316 | /// Set the size of item.
317 | @discardableResult func lessThanOrEqual(_ size: CGSize) -> [NSLayoutConstraint] {
| `- error: cannot find type 'NSLayoutConstraint' in scope
318 | [width.lessThanOrEqual(size.width), height.lessThanOrEqual(size.height)]
319 | }
/Users/admin/builder/spi-builder-workspace/Sources/DonateToUkraine/NiceUI/Align.swift:317:53: error: cannot find type 'CGSize' in scope
315 |
316 | /// Set the size of item.
317 | @discardableResult func lessThanOrEqual(_ size: CGSize) -> [NSLayoutConstraint] {
| `- error: cannot find type 'CGSize' in scope
318 | [width.lessThanOrEqual(size.width), height.lessThanOrEqual(size.height)]
319 | }
/Users/admin/builder/spi-builder-workspace/Sources/DonateToUkraine/NiceUI/Align.swift:322:75: error: cannot find type 'CGSize' in scope
320 |
321 | /// Makes the size of the item equal to the size of the other item.
322 | @discardableResult func equal<Item: LayoutItem>(_ item: Item, insets: CGSize = .zero, multiplier: CGFloat = 1) -> [NSLayoutConstraint] {
| `- error: cannot find type 'CGSize' in scope
323 | [width.equal(item.anchors.width * multiplier - insets.width), height.equal(item.anchors.height * multiplier - insets.height)]
324 | }
/Users/admin/builder/spi-builder-workspace/Sources/DonateToUkraine/NiceUI/Align.swift:322:103: error: cannot find type 'CGFloat' in scope
320 |
321 | /// Makes the size of the item equal to the size of the other item.
322 | @discardableResult func equal<Item: LayoutItem>(_ item: Item, insets: CGSize = .zero, multiplier: CGFloat = 1) -> [NSLayoutConstraint] {
| `- error: cannot find type 'CGFloat' in scope
323 | [width.equal(item.anchors.width * multiplier - insets.width), height.equal(item.anchors.height * multiplier - insets.height)]
324 | }
/Users/admin/builder/spi-builder-workspace/Sources/DonateToUkraine/NiceUI/Align.swift:322:120: error: cannot find type 'NSLayoutConstraint' in scope
320 |
321 | /// Makes the size of the item equal to the size of the other item.
322 | @discardableResult func equal<Item: LayoutItem>(_ item: Item, insets: CGSize = .zero, multiplier: CGFloat = 1) -> [NSLayoutConstraint] {
| `- error: cannot find type 'NSLayoutConstraint' in scope
323 | [width.equal(item.anchors.width * multiplier - insets.width), height.equal(item.anchors.height * multiplier - insets.height)]
324 | }
/Users/admin/builder/spi-builder-workspace/Sources/DonateToUkraine/NiceUI/Align.swift:322:41: error: cannot find type 'LayoutItem' in scope
320 |
321 | /// Makes the size of the item equal to the size of the other item.
322 | @discardableResult func equal<Item: LayoutItem>(_ item: Item, insets: CGSize = .zero, multiplier: CGFloat = 1) -> [NSLayoutConstraint] {
| `- error: cannot find type 'LayoutItem' in scope
323 | [width.equal(item.anchors.width * multiplier - insets.width), height.equal(item.anchors.height * multiplier - insets.height)]
324 | }
/Users/admin/builder/spi-builder-workspace/Sources/DonateToUkraine/NiceUI/Align.swift:326:88: error: cannot find type 'CGSize' in scope
324 | }
325 |
326 | @discardableResult func greaterThanOrEqual<Item: LayoutItem>(_ item: Item, insets: CGSize = .zero, multiplier: CGFloat = 1) -> [NSLayoutConstraint] {
| `- error: cannot find type 'CGSize' in scope
327 | [width.greaterThanOrEqual(item.anchors.width * multiplier - insets.width), height.greaterThanOrEqual(item.anchors.height * multiplier - insets.height)]
328 | }
/Users/admin/builder/spi-builder-workspace/Sources/DonateToUkraine/NiceUI/Align.swift:326:116: error: cannot find type 'CGFloat' in scope
324 | }
325 |
326 | @discardableResult func greaterThanOrEqual<Item: LayoutItem>(_ item: Item, insets: CGSize = .zero, multiplier: CGFloat = 1) -> [NSLayoutConstraint] {
| `- error: cannot find type 'CGFloat' in scope
327 | [width.greaterThanOrEqual(item.anchors.width * multiplier - insets.width), height.greaterThanOrEqual(item.anchors.height * multiplier - insets.height)]
328 | }
/Users/admin/builder/spi-builder-workspace/Sources/DonateToUkraine/NiceUI/Align.swift:326:133: error: cannot find type 'NSLayoutConstraint' in scope
324 | }
325 |
326 | @discardableResult func greaterThanOrEqual<Item: LayoutItem>(_ item: Item, insets: CGSize = .zero, multiplier: CGFloat = 1) -> [NSLayoutConstraint] {
| `- error: cannot find type 'NSLayoutConstraint' in scope
327 | [width.greaterThanOrEqual(item.anchors.width * multiplier - insets.width), height.greaterThanOrEqual(item.anchors.height * multiplier - insets.height)]
328 | }
/Users/admin/builder/spi-builder-workspace/Sources/DonateToUkraine/NiceUI/Align.swift:326:54: error: cannot find type 'LayoutItem' in scope
324 | }
325 |
326 | @discardableResult func greaterThanOrEqual<Item: LayoutItem>(_ item: Item, insets: CGSize = .zero, multiplier: CGFloat = 1) -> [NSLayoutConstraint] {
| `- error: cannot find type 'LayoutItem' in scope
327 | [width.greaterThanOrEqual(item.anchors.width * multiplier - insets.width), height.greaterThanOrEqual(item.anchors.height * multiplier - insets.height)]
328 | }
/Users/admin/builder/spi-builder-workspace/Sources/DonateToUkraine/NiceUI/Align.swift:330:85: error: cannot find type 'CGSize' in scope
328 | }
329 |
330 | @discardableResult func lessThanOrEqual<Item: LayoutItem>(_ item: Item, insets: CGSize = .zero, multiplier: CGFloat = 1) -> [NSLayoutConstraint] {
| `- error: cannot find type 'CGSize' in scope
331 | [width.lessThanOrEqual(item.anchors.width * multiplier - insets.width), height.lessThanOrEqual(item.anchors.height * multiplier - insets.height)]
332 | }
/Users/admin/builder/spi-builder-workspace/Sources/DonateToUkraine/NiceUI/Align.swift:330:113: error: cannot find type 'CGFloat' in scope
328 | }
329 |
330 | @discardableResult func lessThanOrEqual<Item: LayoutItem>(_ item: Item, insets: CGSize = .zero, multiplier: CGFloat = 1) -> [NSLayoutConstraint] {
| `- error: cannot find type 'CGFloat' in scope
331 | [width.lessThanOrEqual(item.anchors.width * multiplier - insets.width), height.lessThanOrEqual(item.anchors.height * multiplier - insets.height)]
332 | }
/Users/admin/builder/spi-builder-workspace/Sources/DonateToUkraine/NiceUI/Align.swift:330:130: error: cannot find type 'NSLayoutConstraint' in scope
328 | }
329 |
330 | @discardableResult func lessThanOrEqual<Item: LayoutItem>(_ item: Item, insets: CGSize = .zero, multiplier: CGFloat = 1) -> [NSLayoutConstraint] {
| `- error: cannot find type 'NSLayoutConstraint' in scope
331 | [width.lessThanOrEqual(item.anchors.width * multiplier - insets.width), height.lessThanOrEqual(item.anchors.height * multiplier - insets.height)]
332 | }
/Users/admin/builder/spi-builder-workspace/Sources/DonateToUkraine/NiceUI/Align.swift:330:51: error: cannot find type 'LayoutItem' in scope
328 | }
329 |
330 | @discardableResult func lessThanOrEqual<Item: LayoutItem>(_ item: Item, insets: CGSize = .zero, multiplier: CGFloat = 1) -> [NSLayoutConstraint] {
| `- error: cannot find type 'LayoutItem' in scope
331 | [width.lessThanOrEqual(item.anchors.width * multiplier - insets.width), height.lessThanOrEqual(item.anchors.height * multiplier - insets.height)]
332 | }
/Users/admin/builder/spi-builder-workspace/Sources/DonateToUkraine/NiceUI/Align.swift:339:37: error: cannot find 'NSLayoutConstraint' in scope
337 | final class Constraints {
338 | /// Returns all of the created constraints.
339 | private(set) var constraints = [NSLayoutConstraint]()
| `- error: cannot find 'NSLayoutConstraint' in scope
340 |
341 | /// All of the constraints created in the given closure are automatically
/Users/admin/builder/spi-builder-workspace/Sources/DonateToUkraine/NiceUI/Align.swift:339:36: error: cannot call value of non-function type '[Element]'
337 | final class Constraints {
338 | /// Returns all of the created constraints.
339 | private(set) var constraints = [NSLayoutConstraint]()
| `- error: cannot call value of non-function type '[Element]'
340 |
341 | /// All of the constraints created in the given closure are automatically
/Users/admin/builder/spi-builder-workspace/Sources/DonateToUkraine/NiceUI/Align.swift:356:292: error: cannot find type 'NSLayoutConstraint' in scope
354 |
355 | /// Creates and automatically installs a constraint.
356 | 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
357 | precondition(Thread.isMainThread, "Align APIs can only be used from the main thread")
358 | #if os(iOS) || os(tvOS)
/Users/admin/builder/spi-builder-workspace/Sources/DonateToUkraine/NiceUI/Align.swift:356:73: error: cannot find type 'NSLayoutConstraint' in scope
354 |
355 | /// Creates and automatically installs a constraint.
356 | 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
357 | precondition(Thread.isMainThread, "Align APIs can only be used from the main thread")
358 | #if os(iOS) || os(tvOS)
/Users/admin/builder/spi-builder-workspace/Sources/DonateToUkraine/NiceUI/Align.swift:356:123: error: cannot find type 'NSLayoutConstraint' in scope
354 |
355 | /// Creates and automatically installs a constraint.
356 | 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
357 | precondition(Thread.isMainThread, "Align APIs can only be used from the main thread")
358 | #if os(iOS) || os(tvOS)
/Users/admin/builder/spi-builder-workspace/Sources/DonateToUkraine/NiceUI/Align.swift:356:204: error: cannot find type 'NSLayoutConstraint' in scope
354 |
355 | /// Creates and automatically installs a constraint.
356 | 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
357 | precondition(Thread.isMainThread, "Align APIs can only be used from the main thread")
358 | #if os(iOS) || os(tvOS)
/Users/admin/builder/spi-builder-workspace/Sources/DonateToUkraine/NiceUI/Align.swift:356:253: error: cannot find type 'CGFloat' in scope
354 |
355 | /// Creates and automatically installs a constraint.
356 | 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
357 | precondition(Thread.isMainThread, "Align APIs can only be used from the main thread")
358 | #if os(iOS) || os(tvOS)
/Users/admin/builder/spi-builder-workspace/Sources/DonateToUkraine/NiceUI/Align.swift:356:276: error: cannot find type 'CGFloat' in scope
354 |
355 | /// Creates and automatically installs a constraint.
356 | 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
357 | precondition(Thread.isMainThread, "Align APIs can only be used from the main thread")
358 | #if os(iOS) || os(tvOS)
/Users/admin/builder/spi-builder-workspace/Sources/DonateToUkraine/NiceUI/Align.swift:369:111: error: cannot find type 'CGFloat' in scope
367 |
368 | /// Creates and automatically installs a constraint between two anchors.
369 | 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
370 | 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)
371 | }
/Users/admin/builder/spi-builder-workspace/Sources/DonateToUkraine/NiceUI/Align.swift:369:136: error: cannot find type 'CGFloat' in scope
367 |
368 | /// Creates and automatically installs a constraint between two anchors.
369 | 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
370 | 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)
371 | }
/Users/admin/builder/spi-builder-workspace/Sources/DonateToUkraine/NiceUI/Align.swift:369:159: error: cannot find type 'NSLayoutConstraint' in scope
367 |
368 | /// Creates and automatically installs a constraint between two anchors.
369 | 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
370 | 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)
371 | }
/Users/admin/builder/spi-builder-workspace/Sources/DonateToUkraine/NiceUI/Align.swift:369:200: error: cannot find type 'NSLayoutConstraint' in scope
367 |
368 | /// Creates and automatically installs a constraint between two anchors.
369 | 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
370 | 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)
371 | }
/Users/admin/builder/spi-builder-workspace/Sources/DonateToUkraine/NiceUI/Align.swift:375:107: error: cannot find type 'NSLayoutConstraint' in scope
373 | /// Creates and automatically installs a constraint between an anchor and
374 | /// a given item.
375 | 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
376 | constrain(item: lhs.item, attribute: lhs.attribute, relatedBy: relation, toItem: item2, attribute: attr2, multiplier: multiplier / lhs.multiplier, constant: constant - lhs.offset)
377 | }
/Users/admin/builder/spi-builder-workspace/Sources/DonateToUkraine/NiceUI/Align.swift:375:148: error: cannot find type 'CGFloat' in scope
373 | /// Creates and automatically installs a constraint between an anchor and
374 | /// a given item.
375 | 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
376 | constrain(item: lhs.item, attribute: lhs.attribute, relatedBy: relation, toItem: item2, attribute: attr2, multiplier: multiplier / lhs.multiplier, constant: constant - lhs.offset)
377 | }
/Users/admin/builder/spi-builder-workspace/Sources/DonateToUkraine/NiceUI/Align.swift:375:173: error: cannot find type 'CGFloat' in scope
373 | /// Creates and automatically installs a constraint between an anchor and
374 | /// a given item.
375 | 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
376 | constrain(item: lhs.item, attribute: lhs.attribute, relatedBy: relation, toItem: item2, attribute: attr2, multiplier: multiplier / lhs.multiplier, constant: constant - lhs.offset)
377 | }
/Users/admin/builder/spi-builder-workspace/Sources/DonateToUkraine/NiceUI/Align.swift:375:196: error: cannot find type 'NSLayoutConstraint' in scope
373 | /// Creates and automatically installs a constraint between an anchor and
374 | /// a given item.
375 | 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
376 | constrain(item: lhs.item, attribute: lhs.attribute, relatedBy: relation, toItem: item2, attribute: attr2, multiplier: multiplier / lhs.multiplier, constant: constant - lhs.offset)
377 | }
/Users/admin/builder/spi-builder-workspace/Sources/DonateToUkraine/NiceUI/Align.swift:375:237: error: cannot find type 'NSLayoutConstraint' in scope
373 | /// Creates and automatically installs a constraint between an anchor and
374 | /// a given item.
375 | 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
376 | constrain(item: lhs.item, attribute: lhs.attribute, relatedBy: relation, toItem: item2, attribute: attr2, multiplier: multiplier / lhs.multiplier, constant: constant - lhs.offset)
377 | }
/Users/admin/builder/spi-builder-workspace/Sources/DonateToUkraine/NiceUI/Align.swift:381:48: error: cannot find type 'NSLayoutConstraint' in scope
379 | private static var _stack = [Constraints]() // this is what enabled constraint auto-installing
380 |
381 | private static func _install(_ constraint: NSLayoutConstraint) {
| `- error: cannot find type 'NSLayoutConstraint' in scope
382 | if let group = _stack.last {
383 | group.constraints.append(constraint)
/Users/admin/builder/spi-builder-workspace/Sources/DonateToUkraine/NiceUI/Align.swift:391:44: error: cannot find type 'LayoutItem' in scope
389 |
390 | extension Constraints {
391 | @discardableResult convenience init<A: LayoutItem>(for a: A, _ closure: (LayoutAnchors<A>) -> Void) {
| `- error: cannot find type 'LayoutItem' in scope
392 | self.init { closure(a.anchors) }
393 | }
/Users/admin/builder/spi-builder-workspace/Sources/DonateToUkraine/NiceUI/Align.swift:395:44: error: cannot find type 'LayoutItem' in scope
393 | }
394 |
395 | @discardableResult convenience init<A: LayoutItem, B: LayoutItem>(for a: A, _ b: B, _ closure: (LayoutAnchors<A>, LayoutAnchors<B>) -> Void) {
| `- error: cannot find type 'LayoutItem' in scope
396 | self.init { closure(a.anchors, b.anchors) }
397 | }
/Users/admin/builder/spi-builder-workspace/Sources/DonateToUkraine/NiceUI/Align.swift:395:59: error: cannot find type 'LayoutItem' in scope
393 | }
394 |
395 | @discardableResult convenience init<A: LayoutItem, B: LayoutItem>(for a: A, _ b: B, _ closure: (LayoutAnchors<A>, LayoutAnchors<B>) -> Void) {
| `- error: cannot find type 'LayoutItem' in scope
396 | self.init { closure(a.anchors, b.anchors) }
397 | }
/Users/admin/builder/spi-builder-workspace/Sources/DonateToUkraine/NiceUI/Align.swift:399:44: error: cannot find type 'LayoutItem' in scope
397 | }
398 |
399 | @discardableResult 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
400 | self.init { closure(a.anchors, b.anchors, c.anchors) }
401 | }
/Users/admin/builder/spi-builder-workspace/Sources/DonateToUkraine/NiceUI/Align.swift:399:59: error: cannot find type 'LayoutItem' in scope
397 | }
398 |
399 | @discardableResult 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
400 | self.init { closure(a.anchors, b.anchors, c.anchors) }
401 | }
/Users/admin/builder/spi-builder-workspace/Sources/DonateToUkraine/NiceUI/Align.swift:399:74: error: cannot find type 'LayoutItem' in scope
397 | }
398 |
399 | @discardableResult 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
400 | self.init { closure(a.anchors, b.anchors, c.anchors) }
401 | }
/Users/admin/builder/spi-builder-workspace/Sources/DonateToUkraine/NiceUI/Align.swift:403:44: error: cannot find type 'LayoutItem' in scope
401 | }
402 |
403 | @discardableResult 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
404 | self.init { closure(a.anchors, b.anchors, c.anchors, d.anchors) }
405 | }
/Users/admin/builder/spi-builder-workspace/Sources/DonateToUkraine/NiceUI/Align.swift:403:59: error: cannot find type 'LayoutItem' in scope
401 | }
402 |
403 | @discardableResult 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
404 | self.init { closure(a.anchors, b.anchors, c.anchors, d.anchors) }
405 | }
/Users/admin/builder/spi-builder-workspace/Sources/DonateToUkraine/NiceUI/Align.swift:403:74: error: cannot find type 'LayoutItem' in scope
401 | }
402 |
403 | @discardableResult 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
404 | self.init { closure(a.anchors, b.anchors, c.anchors, d.anchors) }
405 | }
/Users/admin/builder/spi-builder-workspace/Sources/DonateToUkraine/NiceUI/Align.swift:403:89: error: cannot find type 'LayoutItem' in scope
401 | }
402 |
403 | @discardableResult 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
404 | self.init { closure(a.anchors, b.anchors, c.anchors, d.anchors) }
405 | }
/Users/admin/builder/spi-builder-workspace/Sources/DonateToUkraine/NiceUI/Align.swift:420:11: error: cannot find type 'NSLayoutConstraint' in scope
418 | #endif
419 |
420 | extension NSLayoutConstraint.Relation {
| `- error: cannot find type 'NSLayoutConstraint' in scope
421 | fileprivate var inverted: NSLayoutConstraint.Relation {
422 | switch self {
/Users/admin/builder/spi-builder-workspace/Sources/DonateToUkraine/NiceUI/Align.swift:431:11: error: cannot find type 'EdgeInsets' in scope
429 | }
430 |
431 | extension EdgeInsets {
| `- error: cannot find type 'EdgeInsets' in scope
432 | fileprivate func inset(for attribute: NSLayoutConstraint.Attribute, edge: Bool = false) -> CGFloat {
433 | switch attribute {
/Users/admin/builder/spi-builder-workspace/Sources/DonateToUkraine/NiceUI/Align.swift:445:64: error: cannot find type 'NSLayoutConstraint' in scope
443 |
444 | extension Anchor where Type: AnchorType.Edge {
445 | @discardableResult func safeAreaPin(inset: CGFloat = 0) -> NSLayoutConstraint {
| `- error: cannot find type 'NSLayoutConstraint' in scope
446 | pin(to: item.superview!.safeAreaLayoutGuide, inset: inset)
447 | }
/Users/admin/builder/spi-builder-workspace/Sources/DonateToUkraine/NiceUI/Align.swift:445:48: error: cannot find type 'CGFloat' in scope
443 |
444 | extension Anchor where Type: AnchorType.Edge {
445 | @discardableResult func safeAreaPin(inset: CGFloat = 0) -> NSLayoutConstraint {
| `- error: cannot find type 'CGFloat' in scope
446 | pin(to: item.superview!.safeAreaLayoutGuide, inset: inset)
447 | }
/Users/admin/builder/spi-builder-workspace/Sources/DonateToUkraine/NiceUI/Align.swift:449:71: error: cannot find type 'NSLayoutConstraint' in scope
447 | }
448 |
449 | @discardableResult func readableContentPin(inset: CGFloat = 0) -> NSLayoutConstraint {
| `- error: cannot find type 'NSLayoutConstraint' in scope
450 | pin(to: item.superview!.readableContentGuide, inset: inset)
451 | }
/Users/admin/builder/spi-builder-workspace/Sources/DonateToUkraine/NiceUI/Align.swift:449:55: error: cannot find type 'CGFloat' in scope
447 | }
448 |
449 | @discardableResult func readableContentPin(inset: CGFloat = 0) -> NSLayoutConstraint {
| `- error: cannot find type 'CGFloat' in scope
450 | pin(to: item.superview!.readableContentGuide, inset: inset)
451 | }
/Users/admin/builder/spi-builder-workspace/Sources/DonateToUkraine/NiceUI/Align.swift:453:63: error: cannot find type 'NSLayoutConstraint' in scope
451 | }
452 |
453 | @discardableResult func marginsPin(inset: CGFloat = 0) -> NSLayoutConstraint {
| `- error: cannot find type 'NSLayoutConstraint' in scope
454 | pin(to: item.superview!.layoutMarginsGuide, inset: inset)
455 | }
/Users/admin/builder/spi-builder-workspace/Sources/DonateToUkraine/NiceUI/Align.swift:453:47: error: cannot find type 'CGFloat' in scope
451 | }
452 |
453 | @discardableResult func marginsPin(inset: CGFloat = 0) -> NSLayoutConstraint {
| `- error: cannot find type 'CGFloat' in scope
454 | pin(to: item.superview!.layoutMarginsGuide, inset: inset)
455 | }
/Users/admin/builder/spi-builder-workspace/Sources/DonateToUkraine/NiceUI/Align.swift:459:123: error: cannot find type 'NSLayoutConstraint' in scope
457 |
458 | extension AnchorCollectionEdges {
459 | @discardableResult func safeAreaPin(insets: EdgeInsets = .zero, axis: Axis? = nil, alignment: Alignmment = .fill) -> [NSLayoutConstraint] {
| `- error: cannot find type 'NSLayoutConstraint' in scope
460 | pin(to: item.superview!.safeAreaLayoutGuide, insets: insets, axis: axis, alignment: alignment)
461 | }
/Users/admin/builder/spi-builder-workspace/Sources/DonateToUkraine/NiceUI/Align.swift:459:49: error: cannot find type 'EdgeInsets' in scope
457 |
458 | extension AnchorCollectionEdges {
459 | @discardableResult func safeAreaPin(insets: EdgeInsets = .zero, axis: Axis? = nil, alignment: Alignmment = .fill) -> [NSLayoutConstraint] {
| `- error: cannot find type 'EdgeInsets' in scope
460 | pin(to: item.superview!.safeAreaLayoutGuide, insets: insets, axis: axis, alignment: alignment)
461 | }
/Users/admin/builder/spi-builder-workspace/Sources/DonateToUkraine/NiceUI/Align.swift:463:130: error: cannot find type 'NSLayoutConstraint' in scope
461 | }
462 |
463 | @discardableResult func readableContentPin(insets: EdgeInsets = .zero, axis: Axis? = nil, alignment: Alignmment = .fill) -> [NSLayoutConstraint] {
| `- error: cannot find type 'NSLayoutConstraint' in scope
464 | pin(to: item.superview!.readableContentGuide, insets: insets, axis: axis, alignment: alignment)
465 | }
/Users/admin/builder/spi-builder-workspace/Sources/DonateToUkraine/NiceUI/Align.swift:463:56: error: cannot find type 'EdgeInsets' in scope
461 | }
462 |
463 | @discardableResult func readableContentPin(insets: EdgeInsets = .zero, axis: Axis? = nil, alignment: Alignmment = .fill) -> [NSLayoutConstraint] {
| `- error: cannot find type 'EdgeInsets' in scope
464 | pin(to: item.superview!.readableContentGuide, insets: insets, axis: axis, alignment: alignment)
465 | }
/Users/admin/builder/spi-builder-workspace/Sources/DonateToUkraine/NiceUI/Align.swift:467:122: error: cannot find type 'NSLayoutConstraint' in scope
465 | }
466 |
467 | @discardableResult func marginsPin(insets: EdgeInsets = .zero, axis: Axis? = nil, alignment: Alignmment = .fill) -> [NSLayoutConstraint] {
| `- error: cannot find type 'NSLayoutConstraint' in scope
468 | pin(to: item.superview!.layoutMarginsGuide, insets: insets, axis: axis, alignment: alignment)
469 | }
/Users/admin/builder/spi-builder-workspace/Sources/DonateToUkraine/NiceUI/Align.swift:467:48: error: cannot find type 'EdgeInsets' in scope
465 | }
466 |
467 | @discardableResult func marginsPin(insets: EdgeInsets = .zero, axis: Axis? = nil, alignment: Alignmment = .fill) -> [NSLayoutConstraint] {
| `- error: cannot find type 'EdgeInsets' in scope
468 | pin(to: item.superview!.layoutMarginsGuide, insets: insets, axis: axis, alignment: alignment)
469 | }
/Users/admin/builder/spi-builder-workspace/Sources/DonateToUkraine/NiceUI/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) }
:
93 | /// An anchor represents one of the view's layout attributes (e.g. `left`,
94 | /// `centerX`, `width`, etc). Use the anchor’s methods to construct constraints.
95 | struct Anchor<Type, Axis> { // type and axis are phantom types
| `- note: 'Type' declared as parameter to type 'Anchor'
96 | let item: LayoutItem
97 | fileprivate let attribute: NSLayoutConstraint.Attribute
/Users/admin/builder/spi-builder-workspace/Sources/DonateToUkraine/NiceUI/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) }
:
93 | /// An anchor represents one of the view's layout attributes (e.g. `left`,
94 | /// `centerX`, `width`, etc). Use the anchor’s methods to construct constraints.
95 | struct Anchor<Type, Axis> { // type and axis are phantom types
| `- note: 'Axis' declared as parameter to type 'Anchor'
96 | let item: LayoutItem
97 | fileprivate let attribute: NSLayoutConstraint.Attribute
/Users/admin/builder/spi-builder-workspace/Sources/DonateToUkraine/NiceUI/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) }
:
93 | /// An anchor represents one of the view's layout attributes (e.g. `left`,
94 | /// `centerX`, `width`, etc). Use the anchor’s methods to construct constraints.
95 | struct Anchor<Type, Axis> { // type and axis are phantom types
| `- note: 'Type' declared as parameter to type 'Anchor'
96 | let item: LayoutItem
97 | fileprivate let attribute: NSLayoutConstraint.Attribute
/Users/admin/builder/spi-builder-workspace/Sources/DonateToUkraine/NiceUI/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) }
:
93 | /// An anchor represents one of the view's layout attributes (e.g. `left`,
94 | /// `centerX`, `width`, etc). Use the anchor’s methods to construct constraints.
95 | struct Anchor<Type, Axis> { // type and axis are phantom types
| `- note: 'Axis' declared as parameter to type 'Anchor'
96 | let item: LayoutItem
97 | fileprivate let attribute: NSLayoutConstraint.Attribute
/Users/admin/builder/spi-builder-workspace/Sources/DonateToUkraine/NiceUI/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) }
:
93 | /// An anchor represents one of the view's layout attributes (e.g. `left`,
94 | /// `centerX`, `width`, etc). Use the anchor’s methods to construct constraints.
95 | struct Anchor<Type, Axis> { // type and axis are phantom types
| `- note: 'Type' declared as parameter to type 'Anchor'
96 | let item: LayoutItem
97 | fileprivate let attribute: NSLayoutConstraint.Attribute
/Users/admin/builder/spi-builder-workspace/Sources/DonateToUkraine/NiceUI/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) }
:
93 | /// An anchor represents one of the view's layout attributes (e.g. `left`,
94 | /// `centerX`, `width`, etc). Use the anchor’s methods to construct constraints.
95 | struct Anchor<Type, Axis> { // type and axis are phantom types
| `- note: 'Axis' declared as parameter to type 'Anchor'
96 | let item: LayoutItem
97 | fileprivate let attribute: NSLayoutConstraint.Attribute
/Users/admin/builder/spi-builder-workspace/Sources/DonateToUkraine/NiceUI/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) }
:
93 | /// An anchor represents one of the view's layout attributes (e.g. `left`,
94 | /// `centerX`, `width`, etc). Use the anchor’s methods to construct constraints.
95 | struct Anchor<Type, Axis> { // type and axis are phantom types
| `- note: 'Type' declared as parameter to type 'Anchor'
96 | let item: LayoutItem
97 | fileprivate let attribute: NSLayoutConstraint.Attribute
/Users/admin/builder/spi-builder-workspace/Sources/DonateToUkraine/NiceUI/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) }
:
93 | /// An anchor represents one of the view's layout attributes (e.g. `left`,
94 | /// `centerX`, `width`, etc). Use the anchor’s methods to construct constraints.
95 | struct Anchor<Type, Axis> { // type and axis are phantom types
| `- note: 'Axis' declared as parameter to type 'Anchor'
96 | let item: LayoutItem
97 | fileprivate let attribute: NSLayoutConstraint.Attribute
/Users/admin/builder/spi-builder-workspace/Sources/DonateToUkraine/NiceUI/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 |
:
93 | /// An anchor represents one of the view's layout attributes (e.g. `left`,
94 | /// `centerX`, `width`, etc). Use the anchor’s methods to construct constraints.
95 | struct Anchor<Type, Axis> { // type and axis are phantom types
| `- note: 'Type' declared as parameter to type 'Anchor'
96 | let item: LayoutItem
97 | fileprivate let attribute: NSLayoutConstraint.Attribute
/Users/admin/builder/spi-builder-workspace/Sources/DonateToUkraine/NiceUI/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 |
:
93 | /// An anchor represents one of the view's layout attributes (e.g. `left`,
94 | /// `centerX`, `width`, etc). Use the anchor’s methods to construct constraints.
95 | struct Anchor<Type, Axis> { // type and axis are phantom types
| `- note: 'Axis' declared as parameter to type 'Anchor'
96 | let item: LayoutItem
97 | fileprivate let attribute: NSLayoutConstraint.Attribute
/Users/admin/builder/spi-builder-workspace/Sources/DonateToUkraine/NiceUI/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) }
:
93 | /// An anchor represents one of the view's layout attributes (e.g. `left`,
94 | /// `centerX`, `width`, etc). Use the anchor’s methods to construct constraints.
95 | struct Anchor<Type, Axis> { // type and axis are phantom types
| `- note: 'Type' declared as parameter to type 'Anchor'
96 | let item: LayoutItem
97 | fileprivate let attribute: NSLayoutConstraint.Attribute
/Users/admin/builder/spi-builder-workspace/Sources/DonateToUkraine/NiceUI/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) }
:
93 | /// An anchor represents one of the view's layout attributes (e.g. `left`,
94 | /// `centerX`, `width`, etc). Use the anchor’s methods to construct constraints.
95 | struct Anchor<Type, Axis> { // type and axis are phantom types
| `- note: 'Axis' declared as parameter to type 'Anchor'
96 | let item: LayoutItem
97 | fileprivate let attribute: NSLayoutConstraint.Attribute
/Users/admin/builder/spi-builder-workspace/Sources/DonateToUkraine/NiceUI/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 |
:
93 | /// An anchor represents one of the view's layout attributes (e.g. `left`,
94 | /// `centerX`, `width`, etc). Use the anchor’s methods to construct constraints.
95 | struct Anchor<Type, Axis> { // type and axis are phantom types
| `- note: 'Type' declared as parameter to type 'Anchor'
96 | let item: LayoutItem
97 | fileprivate let attribute: NSLayoutConstraint.Attribute
/Users/admin/builder/spi-builder-workspace/Sources/DonateToUkraine/NiceUI/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 |
:
93 | /// An anchor represents one of the view's layout attributes (e.g. `left`,
94 | /// `centerX`, `width`, etc). Use the anchor’s methods to construct constraints.
95 | struct Anchor<Type, Axis> { // type and axis are phantom types
| `- note: 'Axis' declared as parameter to type 'Anchor'
96 | let item: LayoutItem
97 | fileprivate let attribute: NSLayoutConstraint.Attribute
/Users/admin/builder/spi-builder-workspace/Sources/DonateToUkraine/NiceUI/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) }
:
93 | /// An anchor represents one of the view's layout attributes (e.g. `left`,
94 | /// `centerX`, `width`, etc). Use the anchor’s methods to construct constraints.
95 | struct Anchor<Type, Axis> { // type and axis are phantom types
| `- note: 'Type' declared as parameter to type 'Anchor'
96 | let item: LayoutItem
97 | fileprivate let attribute: NSLayoutConstraint.Attribute
/Users/admin/builder/spi-builder-workspace/Sources/DonateToUkraine/NiceUI/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) }
:
93 | /// An anchor represents one of the view's layout attributes (e.g. `left`,
94 | /// `centerX`, `width`, etc). Use the anchor’s methods to construct constraints.
95 | struct Anchor<Type, Axis> { // type and axis are phantom types
| `- note: 'Axis' declared as parameter to type 'Anchor'
96 | let item: LayoutItem
97 | fileprivate let attribute: NSLayoutConstraint.Attribute
/Users/admin/builder/spi-builder-workspace/Sources/DonateToUkraine/NiceUI/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 |
:
93 | /// An anchor represents one of the view's layout attributes (e.g. `left`,
94 | /// `centerX`, `width`, etc). Use the anchor’s methods to construct constraints.
95 | struct Anchor<Type, Axis> { // type and axis are phantom types
| `- note: 'Type' declared as parameter to type 'Anchor'
96 | let item: LayoutItem
97 | fileprivate let attribute: NSLayoutConstraint.Attribute
/Users/admin/builder/spi-builder-workspace/Sources/DonateToUkraine/NiceUI/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 |
:
93 | /// An anchor represents one of the view's layout attributes (e.g. `left`,
94 | /// `centerX`, `width`, etc). Use the anchor’s methods to construct constraints.
95 | struct Anchor<Type, Axis> { // type and axis are phantom types
| `- note: 'Axis' declared as parameter to type 'Anchor'
96 | let item: LayoutItem
97 | fileprivate let attribute: NSLayoutConstraint.Attribute
/Users/admin/builder/spi-builder-workspace/Sources/DonateToUkraine/NiceUI/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) }
:
93 | /// An anchor represents one of the view's layout attributes (e.g. `left`,
94 | /// `centerX`, `width`, etc). Use the anchor’s methods to construct constraints.
95 | struct Anchor<Type, Axis> { // type and axis are phantom types
| `- note: 'Type' declared as parameter to type 'Anchor'
96 | let item: LayoutItem
97 | fileprivate let attribute: NSLayoutConstraint.Attribute
/Users/admin/builder/spi-builder-workspace/Sources/DonateToUkraine/NiceUI/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) }
:
93 | /// An anchor represents one of the view's layout attributes (e.g. `left`,
94 | /// `centerX`, `width`, etc). Use the anchor’s methods to construct constraints.
95 | struct Anchor<Type, Axis> { // type and axis are phantom types
| `- note: 'Axis' declared as parameter to type 'Anchor'
96 | let item: LayoutItem
97 | fileprivate let attribute: NSLayoutConstraint.Attribute
/Users/admin/builder/spi-builder-workspace/Sources/DonateToUkraine/NiceUI/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 |
:
93 | /// An anchor represents one of the view's layout attributes (e.g. `left`,
94 | /// `centerX`, `width`, etc). Use the anchor’s methods to construct constraints.
95 | struct Anchor<Type, Axis> { // type and axis are phantom types
| `- note: 'Type' declared as parameter to type 'Anchor'
96 | let item: LayoutItem
97 | fileprivate let attribute: NSLayoutConstraint.Attribute
/Users/admin/builder/spi-builder-workspace/Sources/DonateToUkraine/NiceUI/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 |
:
93 | /// An anchor represents one of the view's layout attributes (e.g. `left`,
94 | /// `centerX`, `width`, etc). Use the anchor’s methods to construct constraints.
95 | struct Anchor<Type, Axis> { // type and axis are phantom types
| `- note: 'Axis' declared as parameter to type 'Anchor'
96 | let item: LayoutItem
97 | fileprivate let attribute: NSLayoutConstraint.Attribute
/Users/admin/builder/spi-builder-workspace/Sources/DonateToUkraine/NiceUI/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
:
93 | /// An anchor represents one of the view's layout attributes (e.g. `left`,
94 | /// `centerX`, `width`, etc). Use the anchor’s methods to construct constraints.
95 | struct Anchor<Type, Axis> { // type and axis are phantom types
| `- note: 'Type' declared as parameter to type 'Anchor'
96 | let item: LayoutItem
97 | fileprivate let attribute: NSLayoutConstraint.Attribute
/Users/admin/builder/spi-builder-workspace/Sources/DonateToUkraine/NiceUI/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
:
93 | /// An anchor represents one of the view's layout attributes (e.g. `left`,
94 | /// `centerX`, `width`, etc). Use the anchor’s methods to construct constraints.
95 | struct Anchor<Type, Axis> { // type and axis are phantom types
| `- note: 'Axis' declared as parameter to type 'Anchor'
96 | let item: LayoutItem
97 | fileprivate let attribute: NSLayoutConstraint.Attribute
/Users/admin/builder/spi-builder-workspace/Sources/DonateToUkraine/NiceUI/Align.swift:185:55: error: failed to produce diagnostic for expression; please submit a bug report (https://swift.org/contributing/#reporting-bugs)
183 | /// Pins the edge to the respected edges of the given container.
184 | @discardableResult func pin(to container: LayoutItem?, inset: CGFloat = 0) -> NSLayoutConstraint {
185 | 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)
186 | return Constraints.constrain(self, toItem: container ?? item.superview!, attribute: attribute, constant: (isInverted ? -inset : inset))
187 | }
/Users/admin/builder/spi-builder-workspace/Sources/DonateToUkraine/NiceUI/Align.swift:257:19: error: cannot find type 'NSLayoutConstraint' in scope
255 | @discardableResult func pin(to item2: LayoutItem? = nil, insets: EdgeInsets = .zero, axis: Axis? = nil, alignment: Alignmment = .fill) -> [NSLayoutConstraint] {
256 | let item2 = item2 ?? item.superview!
257 | let left: NSLayoutConstraint.Attribute = isAbsolute ? .left : .leading
| `- error: cannot find type 'NSLayoutConstraint' in scope
258 | let right: NSLayoutConstraint.Attribute = isAbsolute ? .right : .trailing
259 | var constraints = [NSLayoutConstraint]()
/Users/admin/builder/spi-builder-workspace/Sources/DonateToUkraine/NiceUI/Align.swift:258:20: error: cannot find type 'NSLayoutConstraint' in scope
256 | let item2 = item2 ?? item.superview!
257 | let left: NSLayoutConstraint.Attribute = isAbsolute ? .left : .leading
258 | let right: NSLayoutConstraint.Attribute = isAbsolute ? .right : .trailing
| `- error: cannot find type 'NSLayoutConstraint' in scope
259 | var constraints = [NSLayoutConstraint]()
260 |
/Users/admin/builder/spi-builder-workspace/Sources/DonateToUkraine/NiceUI/Align.swift:259:28: error: cannot find 'NSLayoutConstraint' in scope
257 | let left: NSLayoutConstraint.Attribute = isAbsolute ? .left : .leading
258 | let right: NSLayoutConstraint.Attribute = isAbsolute ? .right : .trailing
259 | var constraints = [NSLayoutConstraint]()
| `- error: cannot find 'NSLayoutConstraint' in scope
260 |
261 | func constrain(attribute: NSLayoutConstraint.Attribute, relation: NSLayoutConstraint.Relation, constant: CGFloat) {
/Users/admin/builder/spi-builder-workspace/Sources/DonateToUkraine/NiceUI/Align.swift:259:27: error: cannot call value of non-function type '[Element]'
257 | let left: NSLayoutConstraint.Attribute = isAbsolute ? .left : .leading
258 | let right: NSLayoutConstraint.Attribute = isAbsolute ? .right : .trailing
259 | var constraints = [NSLayoutConstraint]()
| `- error: cannot call value of non-function type '[Element]'
260 |
261 | func constrain(attribute: NSLayoutConstraint.Attribute, relation: NSLayoutConstraint.Relation, constant: CGFloat) {
/Users/admin/builder/spi-builder-workspace/Sources/DonateToUkraine/NiceUI/Align.swift:261:35: error: cannot find type 'NSLayoutConstraint' in scope
259 | var constraints = [NSLayoutConstraint]()
260 |
261 | func constrain(attribute: NSLayoutConstraint.Attribute, relation: NSLayoutConstraint.Relation, constant: CGFloat) {
| `- error: cannot find type 'NSLayoutConstraint' in scope
262 | constraints.append(Constraints.constrain(item: item, attribute: attribute, relatedBy: relation, toItem: item2, attribute: attribute, multiplier: 1, constant: constant))
263 | }
/Users/admin/builder/spi-builder-workspace/Sources/DonateToUkraine/NiceUI/Align.swift:261:75: error: cannot find type 'NSLayoutConstraint' in scope
259 | var constraints = [NSLayoutConstraint]()
260 |
261 | func constrain(attribute: NSLayoutConstraint.Attribute, relation: NSLayoutConstraint.Relation, constant: CGFloat) {
| `- error: cannot find type 'NSLayoutConstraint' in scope
262 | constraints.append(Constraints.constrain(item: item, attribute: attribute, relatedBy: relation, toItem: item2, attribute: attribute, multiplier: 1, constant: constant))
263 | }
/Users/admin/builder/spi-builder-workspace/Sources/DonateToUkraine/NiceUI/Align.swift:261:114: error: cannot find type 'CGFloat' in scope
259 | var constraints = [NSLayoutConstraint]()
260 |
261 | func constrain(attribute: NSLayoutConstraint.Attribute, relation: NSLayoutConstraint.Relation, constant: CGFloat) {
| `- error: cannot find type 'CGFloat' in scope
262 | constraints.append(Constraints.constrain(item: item, attribute: attribute, relatedBy: relation, toItem: item2, attribute: attribute, multiplier: 1, constant: constant))
263 | }
/Users/admin/builder/spi-builder-workspace/Sources/DonateToUkraine/NiceUI/Align.swift:296:23: error: value of type 'Item' has no member 'anchors'
294 | /// Makes the axis equal to the other collection of axis.
295 | @discardableResult func align<Item: LayoutItem>(with item: Item) -> [NSLayoutConstraint] {
296 | [x.equal(item.anchors.centerX), y.equal(item.anchors.centerY)]
| `- error: value of type 'Item' has no member 'anchors'
297 | }
298 | }
/Users/admin/builder/spi-builder-workspace/Sources/DonateToUkraine/NiceUI/Align.swift:296:54: error: value of type 'Item' has no member 'anchors'
294 | /// Makes the axis equal to the other collection of axis.
295 | @discardableResult func align<Item: LayoutItem>(with item: Item) -> [NSLayoutConstraint] {
296 | [x.equal(item.anchors.centerX), y.equal(item.anchors.centerY)]
| `- error: value of type 'Item' has no member 'anchors'
297 | }
298 | }
/Users/admin/builder/spi-builder-workspace/Sources/DonateToUkraine/NiceUI/Align.swift:323:27: error: value of type 'Item' has no member 'anchors'
321 | /// Makes the size of the item equal to the size of the other item.
322 | @discardableResult func equal<Item: LayoutItem>(_ item: Item, insets: CGSize = .zero, multiplier: CGFloat = 1) -> [NSLayoutConstraint] {
323 | [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'
324 | }
325 |
/Users/admin/builder/spi-builder-workspace/Sources/DonateToUkraine/NiceUI/Align.swift:323:89: error: value of type 'Item' has no member 'anchors'
321 | /// Makes the size of the item equal to the size of the other item.
322 | @discardableResult func equal<Item: LayoutItem>(_ item: Item, insets: CGSize = .zero, multiplier: CGFloat = 1) -> [NSLayoutConstraint] {
323 | [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'
324 | }
325 |
/Users/admin/builder/spi-builder-workspace/Sources/DonateToUkraine/NiceUI/Align.swift:327:40: error: value of type 'Item' has no member 'anchors'
325 |
326 | @discardableResult func greaterThanOrEqual<Item: LayoutItem>(_ item: Item, insets: CGSize = .zero, multiplier: CGFloat = 1) -> [NSLayoutConstraint] {
327 | [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'
328 | }
329 |
/Users/admin/builder/spi-builder-workspace/Sources/DonateToUkraine/NiceUI/Align.swift:327:115: error: value of type 'Item' has no member 'anchors'
325 |
326 | @discardableResult func greaterThanOrEqual<Item: LayoutItem>(_ item: Item, insets: CGSize = .zero, multiplier: CGFloat = 1) -> [NSLayoutConstraint] {
327 | [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'
328 | }
329 |
/Users/admin/builder/spi-builder-workspace/Sources/DonateToUkraine/NiceUI/Align.swift:331:37: error: value of type 'Item' has no member 'anchors'
329 |
330 | @discardableResult func lessThanOrEqual<Item: LayoutItem>(_ item: Item, insets: CGSize = .zero, multiplier: CGFloat = 1) -> [NSLayoutConstraint] {
331 | [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'
332 | }
333 | }
/Users/admin/builder/spi-builder-workspace/Sources/DonateToUkraine/NiceUI/Align.swift:331:109: error: value of type 'Item' has no member 'anchors'
329 |
330 | @discardableResult func lessThanOrEqual<Item: LayoutItem>(_ item: Item, insets: CGSize = .zero, multiplier: CGFloat = 1) -> [NSLayoutConstraint] {
331 | [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'
332 | }
333 | }
/Users/admin/builder/spi-builder-workspace/Sources/DonateToUkraine/NiceUI/Align.swift:352:23: error: cannot find 'NSLayoutConstraint' in scope
350 | closure() // create constraints
351 | Constraints._stack.removeLast()
352 | if activate { NSLayoutConstraint.activate(constraints) }
| `- error: cannot find 'NSLayoutConstraint' in scope
353 | }
354 |
/Users/admin/builder/spi-builder-workspace/Sources/DonateToUkraine/NiceUI/Align.swift:357:22: error: cannot find 'Thread' in scope
355 | /// Creates and automatically installs a constraint.
356 | 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 {
357 | precondition(Thread.isMainThread, "Align APIs can only be used from the main thread")
| `- error: cannot find 'Thread' in scope
358 | #if os(iOS) || os(tvOS)
359 | (item1 as? UIView)?.translatesAutoresizingMaskIntoConstraints = false
/Users/admin/builder/spi-builder-workspace/Sources/DonateToUkraine/NiceUI/Align.swift:363:26: error: cannot find 'NSLayoutConstraint' in scope
361 | (item1 as? NSView)?.translatesAutoresizingMaskIntoConstraints = false
362 | #endif
363 | let constraint = NSLayoutConstraint(item: item1, attribute: attr1, relatedBy: relation, toItem: item2, attribute: attr2 ?? .notAnAttribute, multiplier: multiplier, constant: constant)
| `- error: cannot find 'NSLayoutConstraint' in scope
364 | _install(constraint)
365 | return constraint
/Users/admin/builder/spi-builder-workspace/Sources/DonateToUkraine/NiceUI/Align.swift:392:31: error: value of type 'A' has no member 'anchors'
390 | extension Constraints {
391 | @discardableResult convenience init<A: LayoutItem>(for a: A, _ closure: (LayoutAnchors<A>) -> Void) {
392 | self.init { closure(a.anchors) }
| `- error: value of type 'A' has no member 'anchors'
393 | }
394 |
/Users/admin/builder/spi-builder-workspace/Sources/DonateToUkraine/NiceUI/Align.swift:396:31: error: value of type 'A' has no member 'anchors'
394 |
395 | @discardableResult convenience init<A: LayoutItem, B: LayoutItem>(for a: A, _ b: B, _ closure: (LayoutAnchors<A>, LayoutAnchors<B>) -> Void) {
396 | self.init { closure(a.anchors, b.anchors) }
| `- error: value of type 'A' has no member 'anchors'
397 | }
398 |
/Users/admin/builder/spi-builder-workspace/Sources/DonateToUkraine/NiceUI/Align.swift:396:42: error: value of type 'B' has no member 'anchors'
394 |
395 | @discardableResult convenience init<A: LayoutItem, B: LayoutItem>(for a: A, _ b: B, _ closure: (LayoutAnchors<A>, LayoutAnchors<B>) -> Void) {
396 | self.init { closure(a.anchors, b.anchors) }
| `- error: value of type 'B' has no member 'anchors'
397 | }
398 |
/Users/admin/builder/spi-builder-workspace/Sources/DonateToUkraine/NiceUI/Align.swift:400:31: error: value of type 'A' has no member 'anchors'
398 |
399 | @discardableResult convenience init<A: LayoutItem, B: LayoutItem, C: LayoutItem>(for a: A, _ b: B, _ c: C, _ closure: (LayoutAnchors<A>, LayoutAnchors<B>, LayoutAnchors<C>) -> Void) {
400 | self.init { closure(a.anchors, b.anchors, c.anchors) }
| `- error: value of type 'A' has no member 'anchors'
401 | }
402 |
/Users/admin/builder/spi-builder-workspace/Sources/DonateToUkraine/NiceUI/Align.swift:400:42: error: value of type 'B' has no member 'anchors'
398 |
399 | @discardableResult convenience init<A: LayoutItem, B: LayoutItem, C: LayoutItem>(for a: A, _ b: B, _ c: C, _ closure: (LayoutAnchors<A>, LayoutAnchors<B>, LayoutAnchors<C>) -> Void) {
400 | self.init { closure(a.anchors, b.anchors, c.anchors) }
| `- error: value of type 'B' has no member 'anchors'
401 | }
402 |
/Users/admin/builder/spi-builder-workspace/Sources/DonateToUkraine/NiceUI/Align.swift:400:53: error: value of type 'C' has no member 'anchors'
398 |
399 | @discardableResult convenience init<A: LayoutItem, B: LayoutItem, C: LayoutItem>(for a: A, _ b: B, _ c: C, _ closure: (LayoutAnchors<A>, LayoutAnchors<B>, LayoutAnchors<C>) -> Void) {
400 | self.init { closure(a.anchors, b.anchors, c.anchors) }
| `- error: value of type 'C' has no member 'anchors'
401 | }
402 |
/Users/admin/builder/spi-builder-workspace/Sources/DonateToUkraine/NiceUI/Align.swift:404:31: error: value of type 'A' has no member 'anchors'
402 |
403 | @discardableResult 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) {
404 | self.init { closure(a.anchors, b.anchors, c.anchors, d.anchors) }
| `- error: value of type 'A' has no member 'anchors'
405 | }
406 | }
/Users/admin/builder/spi-builder-workspace/Sources/DonateToUkraine/NiceUI/Align.swift:404:42: error: value of type 'B' has no member 'anchors'
402 |
403 | @discardableResult 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) {
404 | self.init { closure(a.anchors, b.anchors, c.anchors, d.anchors) }
| `- error: value of type 'B' has no member 'anchors'
405 | }
406 | }
/Users/admin/builder/spi-builder-workspace/Sources/DonateToUkraine/NiceUI/Align.swift:404:53: error: value of type 'C' has no member 'anchors'
402 |
403 | @discardableResult 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) {
404 | self.init { closure(a.anchors, b.anchors, c.anchors, d.anchors) }
| `- error: value of type 'C' has no member 'anchors'
405 | }
406 | }
SwiftCompile normal arm64 /Users/admin/builder/spi-builder-workspace/Sources/DonateToUkraine/NiceUI/Align.swift (in target 'DonateToUkraine' from project 'DonateToUkraine')
cd /Users/admin/builder/spi-builder-workspace/.swiftpm/xcode
builtin-SwiftPerFileCompile Align.swift
SwiftCompile normal arm64 Compiling\ DonateToUkraineViewController.swift /Users/admin/builder/spi-builder-workspace/Sources/DonateToUkraine/DonateToUkraineViewController.swift (in target 'DonateToUkraine' from project 'DonateToUkraine')
SwiftCompile normal arm64 /Users/admin/builder/spi-builder-workspace/Sources/DonateToUkraine/DonateToUkraineViewController.swift (in target 'DonateToUkraine' from project 'DonateToUkraine')
cd /Users/admin/builder/spi-builder-workspace/.swiftpm/xcode
builtin-SwiftPerFileCompile DonateToUkraineViewController.swift
/Users/admin/builder/spi-builder-workspace/Sources/DonateToUkraine/DonateToUkraineViewController.swift:35:12: warning: 'contentEdgeInsets' was deprecated in visionOS 1.0: This property is ignored when using UIButtonConfiguration [#DeprecatedDeclaration]
33 | $0.tintColor = UIColor.black
34 | $0.alpha = 0.3
35 | $0.contentEdgeInsets = UIEdgeInsets(top: 16, left: 16, bottom: 16, right: 16)
| `- warning: 'contentEdgeInsets' was deprecated in visionOS 1.0: This property is ignored when using UIButtonConfiguration [#DeprecatedDeclaration]
36 | return $0
37 | }(UIButton())
/Users/admin/builder/spi-builder-workspace/Sources/DonateToUkraine/DonateToUkraineViewController.swift:68:16: error: reference to member 'anchors' cannot be resolved without a contextual type
66 |
67 | view.addSubview(webView) {
68 | $0.anchors.edges.pin()
| `- error: reference to member 'anchors' cannot be resolved without a contextual type
69 | }
70 |
/Users/admin/builder/spi-builder-workspace/Sources/DonateToUkraine/DonateToUkraineViewController.swift:72:16: error: reference to member 'anchors' cannot be resolved without a contextual type
70 |
71 | view.addSubview(loadingIndicator) {
72 | $0.anchors.center.align()
| `- error: reference to member 'anchors' cannot be resolved without a contextual type
73 | $0.alpha = 0
74 | }
/Users/admin/builder/spi-builder-workspace/Sources/DonateToUkraine/DonateToUkraineViewController.swift:77:16: error: reference to member 'anchors' cannot be resolved without a contextual type
75 |
76 | view.addSubview(failedConnectionView) {
77 | $0.anchors.centerY.align(offset: -25)
| `- error: reference to member 'anchors' cannot be resolved without a contextual type
78 | $0.anchors.edges.readableContentPin(insets: .init(top: 0, left: 32, bottom: 0, right: 32), axis: .horizontal)
79 | $0.isHidden = true
/Users/admin/builder/spi-builder-workspace/Sources/DonateToUkraine/DonateToUkraineViewController.swift:83:16: error: reference to member 'anchors' cannot be resolved without a contextual type
81 |
82 | view.addSubview(failedPaymentView) {
83 | $0.anchors.centerY.align(offset: -25)
| `- error: reference to member 'anchors' cannot be resolved without a contextual type
84 | $0.anchors.edges.readableContentPin(insets: .init(top: 0, left: 32, bottom: 0, right: 32), axis: .horizontal)
85 | $0.isHidden = true
/Users/admin/builder/spi-builder-workspace/Sources/DonateToUkraine/DonateToUkraineViewController.swift:89:16: error: reference to member 'anchors' cannot be resolved without a contextual type
87 |
88 | view.addSubview(closeButton) {
89 | $0.anchors.top.safeAreaPin()
| `- error: reference to member 'anchors' cannot be resolved without a contextual type
90 | $0.anchors.leading.pin()
91 | }
/Users/admin/builder/spi-builder-workspace/Sources/DonateToUkraine/NiceUI/Align.swift:120:57: error: cannot find type 'CGFloat' in scope; did you mean to use 'CGFloat'?
118 | }
119 |
120 | 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'?
121 | anchor.offsetting(by: offset)
122 | }
/Users/admin/builder/spi-builder-workspace/Sources/DonateToUkraine/NiceUI/Align.swift:120:57: error: cannot find type 'CGFloat' in scope; did you mean to use 'CGFloat'?
118 | }
119 |
120 | 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'?
121 | anchor.offsetting(by: offset)
122 | }
/Users/admin/builder/spi-builder-workspace/Sources/DonateToUkraine/NiceUI/Align.swift:128:61: error: cannot find type 'CGFloat' in scope; did you mean to use 'CGFloat'?
126 | }
127 |
128 | 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'?
129 | anchor.multiplied(by: multiplier)
130 | }
SwiftCompile normal arm64 Compiling\ Promise.swift /Users/admin/builder/spi-builder-workspace/Sources/DonateToUkraine/Promise.swift (in target 'DonateToUkraine' from project 'DonateToUkraine')
SwiftCompile normal arm64 /Users/admin/builder/spi-builder-workspace/Sources/DonateToUkraine/Promise.swift (in target 'DonateToUkraine' from project 'DonateToUkraine')
cd /Users/admin/builder/spi-builder-workspace/.swiftpm/xcode
builtin-SwiftPerFileCompile Promise.swift
SwiftEmitModule normal arm64 Emitting\ module\ for\ DonateToUkraine (in target 'DonateToUkraine' from project 'DonateToUkraine')
/Users/admin/builder/spi-builder-workspace/Sources/DonateToUkraine/DonateToUkraineViewController.swift:35:12: warning: 'contentEdgeInsets' was deprecated in visionOS 1.0: This property is ignored when using UIButtonConfiguration [#DeprecatedDeclaration]
33 | $0.tintColor = UIColor.black
34 | $0.alpha = 0.3
35 | $0.contentEdgeInsets = UIEdgeInsets(top: 16, left: 16, bottom: 16, right: 16)
| `- warning: 'contentEdgeInsets' was deprecated in visionOS 1.0: This property is ignored when using UIButtonConfiguration [#DeprecatedDeclaration]
36 | return $0
37 | }(UIButton())
/Users/admin/builder/spi-builder-workspace/Sources/DonateToUkraine/NiceUI/Align.swift:33:11: error: cannot find type 'LayoutItem' in scope
31 | #endif
32 |
33 | 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/DonateToUkraine/NiceUI/Align.swift:43:37: error: cannot find type 'LayoutItem' in scope
41 | }
42 |
43 | extension LayoutAnchors where Base: LayoutItem {
| `- error: cannot find type 'LayoutItem' in scope
44 |
45 | // MARK: Anchors
/Users/admin/builder/spi-builder-workspace/Sources/DonateToUkraine/NiceUI/Align.swift:96:15: error: cannot find type 'LayoutItem' in scope
94 | /// `centerX`, `width`, etc). Use the anchor’s methods to construct constraints.
95 | struct Anchor<Type, Axis> { // type and axis are phantom types
96 | let item: LayoutItem
| `- error: cannot find type 'LayoutItem' in scope
97 | fileprivate let attribute: NSLayoutConstraint.Attribute
98 | fileprivate let offset: CGFloat
/Users/admin/builder/spi-builder-workspace/Sources/DonateToUkraine/NiceUI/Align.swift:97:32: error: cannot find type 'NSLayoutConstraint' in scope
95 | struct Anchor<Type, Axis> { // type and axis are phantom types
96 | let item: LayoutItem
97 | fileprivate let attribute: NSLayoutConstraint.Attribute
| `- error: cannot find type 'NSLayoutConstraint' in scope
98 | fileprivate let offset: CGFloat
99 | fileprivate let multiplier: CGFloat
/Users/admin/builder/spi-builder-workspace/Sources/DonateToUkraine/NiceUI/Align.swift:98:29: error: cannot find type 'CGFloat' in scope; did you mean to use 'CGFloat'?
96 | let item: LayoutItem
97 | fileprivate let attribute: NSLayoutConstraint.Attribute
98 | fileprivate let offset: CGFloat
| `- error: cannot find type 'CGFloat' in scope; did you mean to use 'CGFloat'?
99 | fileprivate let multiplier: CGFloat
100 |
/Users/admin/builder/spi-builder-workspace/Sources/DonateToUkraine/NiceUI/Align.swift:98:21: warning: cannot use struct 'CGFloat' in a property declaration member of a type not marked '@_implementationOnly'; 'CoreFoundation' was not imported by this file
96 | let item: LayoutItem
97 | fileprivate let attribute: NSLayoutConstraint.Attribute
98 | 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
99 | fileprivate let multiplier: CGFloat
100 |
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/DonateToUkraine/NiceUI/Align.swift:99:33: error: cannot find type 'CGFloat' in scope; did you mean to use 'CGFloat'?
97 | fileprivate let attribute: NSLayoutConstraint.Attribute
98 | fileprivate let offset: CGFloat
99 | fileprivate let multiplier: CGFloat
| `- error: cannot find type 'CGFloat' in scope; did you mean to use 'CGFloat'?
100 |
101 | fileprivate init(_ item: LayoutItem, _ attribute: NSLayoutConstraint.Attribute, offset: CGFloat = 0, multiplier: CGFloat = 1) {
/Users/admin/builder/spi-builder-workspace/Sources/DonateToUkraine/NiceUI/Align.swift:99:21: warning: cannot use struct 'CGFloat' in a property declaration member of a type not marked '@_implementationOnly'; 'CoreFoundation' was not imported by this file
97 | fileprivate let attribute: NSLayoutConstraint.Attribute
98 | fileprivate let offset: CGFloat
99 | 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
100 |
101 | 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/DonateToUkraine/NiceUI/Align.swift:101:30: error: cannot find type 'LayoutItem' in scope
99 | fileprivate let multiplier: CGFloat
100 |
101 | fileprivate init(_ item: LayoutItem, _ attribute: NSLayoutConstraint.Attribute, offset: CGFloat = 0, multiplier: CGFloat = 1) {
| `- error: cannot find type 'LayoutItem' in scope
102 | self.item = item; self.attribute = attribute; self.offset = offset; self.multiplier = multiplier
103 | }
/Users/admin/builder/spi-builder-workspace/Sources/DonateToUkraine/NiceUI/Align.swift:101:55: error: cannot find type 'NSLayoutConstraint' in scope
99 | fileprivate let multiplier: CGFloat
100 |
101 | fileprivate init(_ item: LayoutItem, _ attribute: NSLayoutConstraint.Attribute, offset: CGFloat = 0, multiplier: CGFloat = 1) {
| `- error: cannot find type 'NSLayoutConstraint' in scope
102 | self.item = item; self.attribute = attribute; self.offset = offset; self.multiplier = multiplier
103 | }
/Users/admin/builder/spi-builder-workspace/Sources/DonateToUkraine/NiceUI/Align.swift:101:93: error: cannot find type 'CGFloat' in scope; did you mean to use 'CGFloat'?
99 | fileprivate let multiplier: CGFloat
100 |
101 | 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'?
102 | self.item = item; self.attribute = attribute; self.offset = offset; self.multiplier = multiplier
103 | }
/Users/admin/builder/spi-builder-workspace/Sources/DonateToUkraine/NiceUI/Align.swift:101:118: error: cannot find type 'CGFloat' in scope; did you mean to use 'CGFloat'?
99 | fileprivate let multiplier: CGFloat
100 |
101 | 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'?
102 | self.item = item; self.attribute = attribute; self.offset = offset; self.multiplier = multiplier
103 | }
/Users/admin/builder/spi-builder-workspace/Sources/DonateToUkraine/NiceUI/Align.swift:108:32: error: cannot find type 'CGFloat' in scope; did you mean to use 'CGFloat'?
106 | ///
107 | /// - note: Consider using a convenience operator instead: `view.anchors.top + 10`.
108 | func offsetting(by offset: CGFloat) -> Anchor<Type, Axis> {
| `- error: cannot find type 'CGFloat' in scope; did you mean to use 'CGFloat'?
109 | Anchor<Type, Axis>(item, attribute, offset: self.offset + offset, multiplier: self.multiplier)
110 | }
/Users/admin/builder/spi-builder-workspace/Sources/DonateToUkraine/NiceUI/Align.swift:115:36: error: cannot find type 'CGFloat' in scope; did you mean to use 'CGFloat'?
113 | ///
114 | /// - note: Consider using a convenience operator instead: `view.anchors.height * 2`.
115 | func multiplied(by multiplier: CGFloat) -> Anchor<Type, Axis> {
| `- error: cannot find type 'CGFloat' in scope; did you mean to use 'CGFloat'?
116 | Anchor<Type, Axis>(item, attribute, offset: self.offset * multiplier, multiplier: self.multiplier * multiplier)
117 | }
/Users/admin/builder/spi-builder-workspace/Sources/DonateToUkraine/NiceUI/Align.swift:120:57: error: cannot find type 'CGFloat' in scope; did you mean to use 'CGFloat'?
118 | }
119 |
120 | 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'?
121 | anchor.offsetting(by: offset)
122 | }
/Users/admin/builder/spi-builder-workspace/Sources/DonateToUkraine/NiceUI/Align.swift:120:57: error: cannot find type 'CGFloat' in scope; did you mean to use 'CGFloat'?
118 | }
119 |
120 | 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'?
121 | anchor.offsetting(by: offset)
122 | }
/Users/admin/builder/spi-builder-workspace/Sources/DonateToUkraine/NiceUI/Align.swift:124:57: error: cannot find type 'CGFloat' in scope; did you mean to use 'CGFloat'?
122 | }
123 |
124 | 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/DonateToUkraine/NiceUI/Align.swift:124:57: error: cannot find type 'CGFloat' in scope; did you mean to use 'CGFloat'?
122 | }
123 |
124 | 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/DonateToUkraine/NiceUI/Align.swift:128:61: error: cannot find type 'CGFloat' in scope; did you mean to use 'CGFloat'?
126 | }
127 |
128 | 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'?
129 | anchor.multiplied(by: multiplier)
130 | }
/Users/admin/builder/spi-builder-workspace/Sources/DonateToUkraine/NiceUI/Align.swift:128:61: error: cannot find type 'CGFloat' in scope; did you mean to use 'CGFloat'?
126 | }
127 |
128 | 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'?
129 | anchor.multiplied(by: multiplier)
130 | }
/Users/admin/builder/spi-builder-workspace/Sources/DonateToUkraine/NiceUI/Align.swift:135:103: error: cannot find type 'CGFloat' in scope; did you mean to use 'CGFloat'?
133 |
134 | extension Anchor where Type: AnchorType.Alignment {
135 | @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'?
136 | Constraints.constrain(self, anchor, constant: constant, relation: .equal)
137 | }
/Users/admin/builder/spi-builder-workspace/Sources/DonateToUkraine/NiceUI/Align.swift:135:119: error: cannot find type 'NSLayoutConstraint' in scope
133 |
134 | extension Anchor where Type: AnchorType.Alignment {
135 | @discardableResult func equal<Type: AnchorType.Alignment>(_ anchor: Anchor<Type, Axis>, constant: CGFloat = 0) -> NSLayoutConstraint {
| `- error: cannot find type 'NSLayoutConstraint' in scope
136 | Constraints.constrain(self, anchor, constant: constant, relation: .equal)
137 | }
/Users/admin/builder/spi-builder-workspace/Sources/DonateToUkraine/NiceUI/Align.swift:135:103: error: cannot find type 'CGFloat' in scope; did you mean to use 'CGFloat'?
133 |
134 | extension Anchor where Type: AnchorType.Alignment {
135 | @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'?
136 | Constraints.constrain(self, anchor, constant: constant, relation: .equal)
137 | }
/Users/admin/builder/spi-builder-workspace/Sources/DonateToUkraine/NiceUI/Align.swift:139:116: error: cannot find type 'CGFloat' in scope; did you mean to use 'CGFloat'?
137 | }
138 |
139 | @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'?
140 | Constraints.constrain(self, anchor, constant: constant, relation: .greaterThanOrEqual)
141 | }
/Users/admin/builder/spi-builder-workspace/Sources/DonateToUkraine/NiceUI/Align.swift:139:132: error: cannot find type 'NSLayoutConstraint' in scope
137 | }
138 |
139 | @discardableResult func greaterThanOrEqual<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: .greaterThanOrEqual)
141 | }
/Users/admin/builder/spi-builder-workspace/Sources/DonateToUkraine/NiceUI/Align.swift:139:116: error: cannot find type 'CGFloat' in scope; did you mean to use 'CGFloat'?
137 | }
138 |
139 | @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'?
140 | Constraints.constrain(self, anchor, constant: constant, relation: .greaterThanOrEqual)
141 | }
/Users/admin/builder/spi-builder-workspace/Sources/DonateToUkraine/NiceUI/Align.swift:143:113: error: cannot find type 'CGFloat' in scope; did you mean to use 'CGFloat'?
141 | }
142 |
143 | @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'?
144 | Constraints.constrain(self, anchor, constant: constant, relation: .lessThanOrEqual)
145 | }
/Users/admin/builder/spi-builder-workspace/Sources/DonateToUkraine/NiceUI/Align.swift:143:129: error: cannot find type 'NSLayoutConstraint' in scope
141 | }
142 |
143 | @discardableResult func lessThanOrEqual<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: .lessThanOrEqual)
145 | }
/Users/admin/builder/spi-builder-workspace/Sources/DonateToUkraine/NiceUI/Align.swift:143:113: error: cannot find type 'CGFloat' in scope; did you mean to use 'CGFloat'?
141 | }
142 |
143 | @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'?
144 | Constraints.constrain(self, anchor, constant: constant, relation: .lessThanOrEqual)
145 | }
/Users/admin/builder/spi-builder-workspace/Sources/DonateToUkraine/NiceUI/Align.swift:151:109: error: cannot find type 'CGFloat' in scope; did you mean to use 'CGFloat'?
149 |
150 | extension Anchor where Type: AnchorType.Dimension {
151 | @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'?
152 | Constraints.constrain(self, anchor, constant: constant, relation: .equal)
153 | }
/Users/admin/builder/spi-builder-workspace/Sources/DonateToUkraine/NiceUI/Align.swift:151:125: error: cannot find type 'NSLayoutConstraint' in scope
149 |
150 | extension Anchor where Type: AnchorType.Dimension {
151 | @discardableResult func equal<Type: AnchorType.Dimension, Axis>(_ anchor: Anchor<Type, Axis>, constant: CGFloat = 0) -> NSLayoutConstraint {
| `- error: cannot find type 'NSLayoutConstraint' in scope
152 | Constraints.constrain(self, anchor, constant: constant, relation: .equal)
153 | }
/Users/admin/builder/spi-builder-workspace/Sources/DonateToUkraine/NiceUI/Align.swift:151:109: error: cannot find type 'CGFloat' in scope; did you mean to use 'CGFloat'?
149 |
150 | extension Anchor where Type: AnchorType.Dimension {
151 | @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'?
152 | Constraints.constrain(self, anchor, constant: constant, relation: .equal)
153 | }
/Users/admin/builder/spi-builder-workspace/Sources/DonateToUkraine/NiceUI/Align.swift:155:122: error: cannot find type 'CGFloat' in scope; did you mean to use 'CGFloat'?
153 | }
154 |
155 | @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'?
156 | Constraints.constrain(self, anchor, constant: constant, relation: .greaterThanOrEqual)
157 | }
/Users/admin/builder/spi-builder-workspace/Sources/DonateToUkraine/NiceUI/Align.swift:155:138: error: cannot find type 'NSLayoutConstraint' in scope
153 | }
154 |
155 | @discardableResult func greaterThanOrEqual<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: .greaterThanOrEqual)
157 | }
/Users/admin/builder/spi-builder-workspace/Sources/DonateToUkraine/NiceUI/Align.swift:155:122: error: cannot find type 'CGFloat' in scope; did you mean to use 'CGFloat'?
153 | }
154 |
155 | @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'?
156 | Constraints.constrain(self, anchor, constant: constant, relation: .greaterThanOrEqual)
157 | }
/Users/admin/builder/spi-builder-workspace/Sources/DonateToUkraine/NiceUI/Align.swift:159:119: error: cannot find type 'CGFloat' in scope; did you mean to use 'CGFloat'?
157 | }
158 |
159 | @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'?
160 | Constraints.constrain(self, anchor, constant: constant, relation: .lessThanOrEqual)
161 | }
/Users/admin/builder/spi-builder-workspace/Sources/DonateToUkraine/NiceUI/Align.swift:159:135: error: cannot find type 'NSLayoutConstraint' in scope
157 | }
158 |
159 | @discardableResult func lessThanOrEqual<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: .lessThanOrEqual)
161 | }
/Users/admin/builder/spi-builder-workspace/Sources/DonateToUkraine/NiceUI/Align.swift:159:119: error: cannot find type 'CGFloat' in scope; did you mean to use 'CGFloat'?
157 | }
158 |
159 | @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'?
160 | Constraints.constrain(self, anchor, constant: constant, relation: .lessThanOrEqual)
161 | }
/Users/admin/builder/spi-builder-workspace/Sources/DonateToUkraine/NiceUI/Align.swift:167:59: error: cannot find type 'NSLayoutConstraint' in scope
165 |
166 | extension Anchor where Type: AnchorType.Dimension {
167 | @discardableResult func equal(_ constant: CGFloat) -> NSLayoutConstraint {
| `- error: cannot find type 'NSLayoutConstraint' in scope
168 | Constraints.constrain(item: item, attribute: attribute, relatedBy: .equal, constant: constant)
169 | }
/Users/admin/builder/spi-builder-workspace/Sources/DonateToUkraine/NiceUI/Align.swift:167:47: error: cannot find type 'CGFloat' in scope; did you mean to use 'CGFloat'?
165 |
166 | extension Anchor where Type: AnchorType.Dimension {
167 | @discardableResult func equal(_ constant: CGFloat) -> NSLayoutConstraint {
| `- error: cannot find type 'CGFloat' in scope; did you mean to use 'CGFloat'?
168 | Constraints.constrain(item: item, attribute: attribute, relatedBy: .equal, constant: constant)
169 | }
/Users/admin/builder/spi-builder-workspace/Sources/DonateToUkraine/NiceUI/Align.swift:171:72: error: cannot find type 'NSLayoutConstraint' in scope
169 | }
170 |
171 | @discardableResult func greaterThanOrEqual(_ constant: CGFloat) -> NSLayoutConstraint {
| `- error: cannot find type 'NSLayoutConstraint' in scope
172 | Constraints.constrain(item: item, attribute: attribute, relatedBy: .greaterThanOrEqual, constant: constant)
173 | }
/Users/admin/builder/spi-builder-workspace/Sources/DonateToUkraine/NiceUI/Align.swift:171:60: error: cannot find type 'CGFloat' in scope; did you mean to use 'CGFloat'?
169 | }
170 |
171 | @discardableResult func greaterThanOrEqual(_ constant: CGFloat) -> NSLayoutConstraint {
| `- error: cannot find type 'CGFloat' in scope; did you mean to use 'CGFloat'?
172 | Constraints.constrain(item: item, attribute: attribute, relatedBy: .greaterThanOrEqual, constant: constant)
173 | }
/Users/admin/builder/spi-builder-workspace/Sources/DonateToUkraine/NiceUI/Align.swift:175:69: error: cannot find type 'NSLayoutConstraint' in scope
173 | }
174 |
175 | @discardableResult func lessThanOrEqual(_ constant: CGFloat) -> NSLayoutConstraint {
| `- error: cannot find type 'NSLayoutConstraint' in scope
176 | Constraints.constrain(item: item, attribute: attribute, relatedBy: .lessThanOrEqual, constant: constant)
177 | }
/Users/admin/builder/spi-builder-workspace/Sources/DonateToUkraine/NiceUI/Align.swift:175:57: error: cannot find type 'CGFloat' in scope; did you mean to use 'CGFloat'?
173 | }
174 |
175 | @discardableResult func lessThanOrEqual(_ constant: CGFloat) -> NSLayoutConstraint {
| `- error: cannot find type 'CGFloat' in scope; did you mean to use 'CGFloat'?
176 | Constraints.constrain(item: item, attribute: attribute, relatedBy: .lessThanOrEqual, constant: constant)
177 | }
/Users/admin/builder/spi-builder-workspace/Sources/DonateToUkraine/NiceUI/Align.swift:184:83: error: cannot find type 'NSLayoutConstraint' in scope
182 | extension Anchor where Type: AnchorType.Edge {
183 | /// Pins the edge to the respected edges of the given container.
184 | @discardableResult func pin(to container: LayoutItem?, inset: CGFloat = 0) -> NSLayoutConstraint {
| `- error: cannot find type 'NSLayoutConstraint' in scope
185 | let isInverted = [.trailing, .right, .bottom].contains(attribute)
186 | return Constraints.constrain(self, toItem: container ?? item.superview!, attribute: attribute, constant: (isInverted ? -inset : inset))
/Users/admin/builder/spi-builder-workspace/Sources/DonateToUkraine/NiceUI/Align.swift:184:47: error: cannot find type 'LayoutItem' in scope
182 | extension Anchor where Type: AnchorType.Edge {
183 | /// Pins the edge to the respected edges of the given container.
184 | @discardableResult func pin(to container: LayoutItem?, inset: CGFloat = 0) -> NSLayoutConstraint {
| `- error: cannot find type 'LayoutItem' in scope
185 | let isInverted = [.trailing, .right, .bottom].contains(attribute)
186 | return Constraints.constrain(self, toItem: container ?? item.superview!, attribute: attribute, constant: (isInverted ? -inset : inset))
/Users/admin/builder/spi-builder-workspace/Sources/DonateToUkraine/NiceUI/Align.swift:184:67: error: cannot find type 'CGFloat' in scope; did you mean to use 'CGFloat'?
182 | extension Anchor where Type: AnchorType.Edge {
183 | /// Pins the edge to the respected edges of the given container.
184 | @discardableResult func pin(to container: LayoutItem?, inset: CGFloat = 0) -> NSLayoutConstraint {
| `- error: cannot find type 'CGFloat' in scope; did you mean to use 'CGFloat'?
185 | let isInverted = [.trailing, .right, .bottom].contains(attribute)
186 | return Constraints.constrain(self, toItem: container ?? item.superview!, attribute: attribute, constant: (isInverted ? -inset : inset))
/Users/admin/builder/spi-builder-workspace/Sources/DonateToUkraine/NiceUI/Align.swift:189:56: error: cannot find type 'NSLayoutConstraint' in scope
187 | }
188 |
189 | @discardableResult func pin(inset: CGFloat = 0) -> NSLayoutConstraint {
| `- error: cannot find type 'NSLayoutConstraint' in scope
190 | return pin(to: nil, inset: inset)
191 | }
/Users/admin/builder/spi-builder-workspace/Sources/DonateToUkraine/NiceUI/Align.swift:189:40: error: cannot find type 'CGFloat' in scope; did you mean to use 'CGFloat'?
187 | }
188 |
189 | @discardableResult func pin(inset: CGFloat = 0) -> NSLayoutConstraint {
| `- error: cannot find type 'CGFloat' in scope; did you mean to use 'CGFloat'?
190 | return pin(to: nil, inset: inset)
191 | }
/Users/admin/builder/spi-builder-workspace/Sources/DonateToUkraine/NiceUI/Align.swift:194:71: error: cannot find type 'CGFloat' in scope; did you mean to use 'CGFloat'?
192 |
193 | /// Adds spacing between the current anchors.
194 | @discardableResult 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'?
195 | let isInverted = (attribute == .bottom && anchor.attribute == .top) ||
196 | (attribute == .right && anchor.attribute == .left) ||
/Users/admin/builder/spi-builder-workspace/Sources/DonateToUkraine/NiceUI/Align.swift:194:121: error: cannot find type 'NSLayoutConstraint' in scope
192 |
193 | /// Adds spacing between the current anchors.
194 | @discardableResult func spacing<Type: AnchorType.Edge>(_ spacing: CGFloat, to anchor: Anchor<Type, Axis>, relation: NSLayoutConstraint.Relation = .equal) -> NSLayoutConstraint {
| `- error: cannot find type 'NSLayoutConstraint' in scope
195 | let isInverted = (attribute == .bottom && anchor.attribute == .top) ||
196 | (attribute == .right && anchor.attribute == .left) ||
/Users/admin/builder/spi-builder-workspace/Sources/DonateToUkraine/NiceUI/Align.swift:194:162: error: cannot find type 'NSLayoutConstraint' in scope
192 |
193 | /// Adds spacing between the current anchors.
194 | @discardableResult func spacing<Type: AnchorType.Edge>(_ spacing: CGFloat, to anchor: Anchor<Type, Axis>, relation: NSLayoutConstraint.Relation = .equal) -> NSLayoutConstraint {
| `- error: cannot find type 'NSLayoutConstraint' in scope
195 | let isInverted = (attribute == .bottom && anchor.attribute == .top) ||
196 | (attribute == .right && anchor.attribute == .left) ||
/Users/admin/builder/spi-builder-workspace/Sources/DonateToUkraine/NiceUI/Align.swift:194:71: error: cannot find type 'CGFloat' in scope; did you mean to use 'CGFloat'?
192 |
193 | /// Adds spacing between the current anchors.
194 | @discardableResult 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'?
195 | let isInverted = (attribute == .bottom && anchor.attribute == .top) ||
196 | (attribute == .right && anchor.attribute == .left) ||
/Users/admin/builder/spi-builder-workspace/Sources/DonateToUkraine/NiceUI/Align.swift:206:59: error: cannot find type 'NSLayoutConstraint' in scope
204 | extension Anchor where Type: AnchorType.Center {
205 | /// Aligns the axis with a superview axis.
206 | @discardableResult func align(offset: CGFloat = 0) -> NSLayoutConstraint {
| `- error: cannot find type 'NSLayoutConstraint' in scope
207 | Constraints.constrain(self, toItem: item.superview!, attribute: attribute, constant: offset)
208 | }
/Users/admin/builder/spi-builder-workspace/Sources/DonateToUkraine/NiceUI/Align.swift:206:43: error: cannot find type 'CGFloat' in scope; did you mean to use 'CGFloat'?
204 | extension Anchor where Type: AnchorType.Center {
205 | /// Aligns the axis with a superview axis.
206 | @discardableResult func align(offset: CGFloat = 0) -> NSLayoutConstraint {
| `- error: cannot find type 'CGFloat' in scope; did you mean to use 'CGFloat'?
207 | Constraints.constrain(self, toItem: item.superview!, attribute: attribute, constant: offset)
208 | }
/Users/admin/builder/spi-builder-workspace/Sources/DonateToUkraine/NiceUI/Align.swift:241:27: error: cannot find type 'LayoutItem' in scope
239 |
240 | struct AnchorCollectionEdges {
241 | fileprivate let item: LayoutItem
| `- error: cannot find type 'LayoutItem' in scope
242 | fileprivate var isAbsolute = false
243 |
/Users/admin/builder/spi-builder-workspace/Sources/DonateToUkraine/NiceUI/Align.swift:252:22: error: cannot find type 'NSLayoutConstraint' in scope
250 | typealias Axis = NSLayoutConstraint.Axis
251 | #else
252 | typealias Axis = NSLayoutConstraint.Orientation
| `- error: cannot find type 'NSLayoutConstraint' in scope
253 | #endif
254 |
/Users/admin/builder/spi-builder-workspace/Sources/DonateToUkraine/NiceUI/Align.swift:255:144: error: cannot find type 'NSLayoutConstraint' in scope
253 | #endif
254 |
255 | @discardableResult func pin(to item2: LayoutItem? = nil, insets: EdgeInsets = .zero, axis: Axis? = nil, alignment: Alignmment = .fill) -> [NSLayoutConstraint] {
| `- error: cannot find type 'NSLayoutConstraint' in scope
256 | let item2 = item2 ?? item.superview!
257 | let left: NSLayoutConstraint.Attribute = isAbsolute ? .left : .leading
/Users/admin/builder/spi-builder-workspace/Sources/DonateToUkraine/NiceUI/Align.swift:255:43: error: cannot find type 'LayoutItem' in scope
253 | #endif
254 |
255 | @discardableResult func pin(to item2: LayoutItem? = nil, insets: EdgeInsets = .zero, axis: Axis? = nil, alignment: Alignmment = .fill) -> [NSLayoutConstraint] {
| `- error: cannot find type 'LayoutItem' in scope
256 | let item2 = item2 ?? item.superview!
257 | let left: NSLayoutConstraint.Attribute = isAbsolute ? .left : .leading
/Users/admin/builder/spi-builder-workspace/Sources/DonateToUkraine/NiceUI/Align.swift:255:70: error: cannot find type 'EdgeInsets' in scope
253 | #endif
254 |
255 | @discardableResult func pin(to item2: LayoutItem? = nil, insets: EdgeInsets = .zero, axis: Axis? = nil, alignment: Alignmment = .fill) -> [NSLayoutConstraint] {
| `- error: cannot find type 'EdgeInsets' in scope
256 | let item2 = item2 ?? item.superview!
257 | let left: NSLayoutConstraint.Attribute = isAbsolute ? .left : .leading
/Users/admin/builder/spi-builder-workspace/Sources/DonateToUkraine/NiceUI/Align.swift:290:41: error: cannot find type 'NSLayoutConstraint' in scope
288 |
289 | /// Centers the view in the superview.
290 | @discardableResult func align() -> [NSLayoutConstraint] {
| `- error: cannot find type 'NSLayoutConstraint' in scope
291 | [x.align(), y.align()]
292 | }
/Users/admin/builder/spi-builder-workspace/Sources/DonateToUkraine/NiceUI/Align.swift:295:74: error: cannot find type 'NSLayoutConstraint' in scope
293 |
294 | /// Makes the axis equal to the other collection of axis.
295 | @discardableResult func align<Item: LayoutItem>(with item: Item) -> [NSLayoutConstraint] {
| `- error: cannot find type 'NSLayoutConstraint' in scope
296 | [x.equal(item.anchors.centerX), y.equal(item.anchors.centerY)]
297 | }
/Users/admin/builder/spi-builder-workspace/Sources/DonateToUkraine/NiceUI/Align.swift:295:41: error: cannot find type 'LayoutItem' in scope
293 |
294 | /// Makes the axis equal to the other collection of axis.
295 | @discardableResult func align<Item: LayoutItem>(with item: Item) -> [NSLayoutConstraint] {
| `- error: cannot find type 'LayoutItem' in scope
296 | [x.equal(item.anchors.centerX), y.equal(item.anchors.centerY)]
297 | }
/Users/admin/builder/spi-builder-workspace/Sources/DonateToUkraine/NiceUI/Align.swift:307:55: error: cannot find type 'NSLayoutConstraint' in scope
305 |
306 | /// Set the size of item.
307 | @discardableResult func equal(_ size: CGSize) -> [NSLayoutConstraint] {
| `- error: cannot find type 'NSLayoutConstraint' in scope
308 | [width.equal(size.width), height.equal(size.height)]
309 | }
/Users/admin/builder/spi-builder-workspace/Sources/DonateToUkraine/NiceUI/Align.swift:307:43: error: cannot find type 'CGSize' in scope
305 |
306 | /// Set the size of item.
307 | @discardableResult func equal(_ size: CGSize) -> [NSLayoutConstraint] {
| `- error: cannot find type 'CGSize' in scope
308 | [width.equal(size.width), height.equal(size.height)]
309 | }
/Users/admin/builder/spi-builder-workspace/Sources/DonateToUkraine/NiceUI/Align.swift:312:67: error: cannot find type 'NSLayoutConstraint' in scope
310 |
311 | /// Set the size of item.
312 | @discardableResult func greaterThanOrEqul(_ size: CGSize) -> [NSLayoutConstraint] {
| `- error: cannot find type 'NSLayoutConstraint' in scope
313 | [width.greaterThanOrEqual(size.width), height.greaterThanOrEqual(size.height)]
314 | }
/Users/admin/builder/spi-builder-workspace/Sources/DonateToUkraine/NiceUI/Align.swift:312:55: error: cannot find type 'CGSize' in scope
310 |
311 | /// Set the size of item.
312 | @discardableResult func greaterThanOrEqul(_ size: CGSize) -> [NSLayoutConstraint] {
| `- error: cannot find type 'CGSize' in scope
313 | [width.greaterThanOrEqual(size.width), height.greaterThanOrEqual(size.height)]
314 | }
/Users/admin/builder/spi-builder-workspace/Sources/DonateToUkraine/NiceUI/Align.swift:317:65: error: cannot find type 'NSLayoutConstraint' in scope
315 |
316 | /// Set the size of item.
317 | @discardableResult func lessThanOrEqual(_ size: CGSize) -> [NSLayoutConstraint] {
| `- error: cannot find type 'NSLayoutConstraint' in scope
318 | [width.lessThanOrEqual(size.width), height.lessThanOrEqual(size.height)]
319 | }
/Users/admin/builder/spi-builder-workspace/Sources/DonateToUkraine/NiceUI/Align.swift:317:53: error: cannot find type 'CGSize' in scope
315 |
316 | /// Set the size of item.
317 | @discardableResult func lessThanOrEqual(_ size: CGSize) -> [NSLayoutConstraint] {
| `- error: cannot find type 'CGSize' in scope
318 | [width.lessThanOrEqual(size.width), height.lessThanOrEqual(size.height)]
319 | }
/Users/admin/builder/spi-builder-workspace/Sources/DonateToUkraine/NiceUI/Align.swift:322:75: error: cannot find type 'CGSize' in scope
320 |
321 | /// Makes the size of the item equal to the size of the other item.
322 | @discardableResult func equal<Item: LayoutItem>(_ item: Item, insets: CGSize = .zero, multiplier: CGFloat = 1) -> [NSLayoutConstraint] {
| `- error: cannot find type 'CGSize' in scope
323 | [width.equal(item.anchors.width * multiplier - insets.width), height.equal(item.anchors.height * multiplier - insets.height)]
324 | }
/Users/admin/builder/spi-builder-workspace/Sources/DonateToUkraine/NiceUI/Align.swift:322:103: error: cannot find type 'CGFloat' in scope; did you mean to use 'CGFloat'?
320 |
321 | /// Makes the size of the item equal to the size of the other item.
322 | @discardableResult 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'?
323 | [width.equal(item.anchors.width * multiplier - insets.width), height.equal(item.anchors.height * multiplier - insets.height)]
324 | }
/Users/admin/builder/spi-builder-workspace/Sources/DonateToUkraine/NiceUI/Align.swift:322:120: error: cannot find type 'NSLayoutConstraint' in scope
320 |
321 | /// Makes the size of the item equal to the size of the other item.
322 | @discardableResult func equal<Item: LayoutItem>(_ item: Item, insets: CGSize = .zero, multiplier: CGFloat = 1) -> [NSLayoutConstraint] {
| `- error: cannot find type 'NSLayoutConstraint' in scope
323 | [width.equal(item.anchors.width * multiplier - insets.width), height.equal(item.anchors.height * multiplier - insets.height)]
324 | }
/Users/admin/builder/spi-builder-workspace/Sources/DonateToUkraine/NiceUI/Align.swift:322:41: error: cannot find type 'LayoutItem' in scope
320 |
321 | /// Makes the size of the item equal to the size of the other item.
322 | @discardableResult func equal<Item: LayoutItem>(_ item: Item, insets: CGSize = .zero, multiplier: CGFloat = 1) -> [NSLayoutConstraint] {
| `- error: cannot find type 'LayoutItem' in scope
323 | [width.equal(item.anchors.width * multiplier - insets.width), height.equal(item.anchors.height * multiplier - insets.height)]
324 | }
/Users/admin/builder/spi-builder-workspace/Sources/DonateToUkraine/NiceUI/Align.swift:322:103: error: cannot find type 'CGFloat' in scope; did you mean to use 'CGFloat'?
320 |
321 | /// Makes the size of the item equal to the size of the other item.
322 | @discardableResult 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'?
323 | [width.equal(item.anchors.width * multiplier - insets.width), height.equal(item.anchors.height * multiplier - insets.height)]
324 | }
/Users/admin/builder/spi-builder-workspace/Sources/DonateToUkraine/NiceUI/Align.swift:326:88: error: cannot find type 'CGSize' in scope
324 | }
325 |
326 | @discardableResult func greaterThanOrEqual<Item: LayoutItem>(_ item: Item, insets: CGSize = .zero, multiplier: CGFloat = 1) -> [NSLayoutConstraint] {
| `- error: cannot find type 'CGSize' in scope
327 | [width.greaterThanOrEqual(item.anchors.width * multiplier - insets.width), height.greaterThanOrEqual(item.anchors.height * multiplier - insets.height)]
328 | }
/Users/admin/builder/spi-builder-workspace/Sources/DonateToUkraine/NiceUI/Align.swift:326:116: error: cannot find type 'CGFloat' in scope; did you mean to use 'CGFloat'?
324 | }
325 |
326 | @discardableResult 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'?
327 | [width.greaterThanOrEqual(item.anchors.width * multiplier - insets.width), height.greaterThanOrEqual(item.anchors.height * multiplier - insets.height)]
328 | }
/Users/admin/builder/spi-builder-workspace/Sources/DonateToUkraine/NiceUI/Align.swift:326:133: error: cannot find type 'NSLayoutConstraint' in scope
324 | }
325 |
326 | @discardableResult func greaterThanOrEqual<Item: LayoutItem>(_ item: Item, insets: CGSize = .zero, multiplier: CGFloat = 1) -> [NSLayoutConstraint] {
| `- error: cannot find type 'NSLayoutConstraint' in scope
327 | [width.greaterThanOrEqual(item.anchors.width * multiplier - insets.width), height.greaterThanOrEqual(item.anchors.height * multiplier - insets.height)]
328 | }
/Users/admin/builder/spi-builder-workspace/Sources/DonateToUkraine/NiceUI/Align.swift:326:54: error: cannot find type 'LayoutItem' in scope
324 | }
325 |
326 | @discardableResult func greaterThanOrEqual<Item: LayoutItem>(_ item: Item, insets: CGSize = .zero, multiplier: CGFloat = 1) -> [NSLayoutConstraint] {
| `- error: cannot find type 'LayoutItem' in scope
327 | [width.greaterThanOrEqual(item.anchors.width * multiplier - insets.width), height.greaterThanOrEqual(item.anchors.height * multiplier - insets.height)]
328 | }
/Users/admin/builder/spi-builder-workspace/Sources/DonateToUkraine/NiceUI/Align.swift:326:116: error: cannot find type 'CGFloat' in scope; did you mean to use 'CGFloat'?
324 | }
325 |
326 | @discardableResult 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'?
327 | [width.greaterThanOrEqual(item.anchors.width * multiplier - insets.width), height.greaterThanOrEqual(item.anchors.height * multiplier - insets.height)]
328 | }
/Users/admin/builder/spi-builder-workspace/Sources/DonateToUkraine/NiceUI/Align.swift:330:85: error: cannot find type 'CGSize' in scope
328 | }
329 |
330 | @discardableResult func lessThanOrEqual<Item: LayoutItem>(_ item: Item, insets: CGSize = .zero, multiplier: CGFloat = 1) -> [NSLayoutConstraint] {
| `- error: cannot find type 'CGSize' in scope
331 | [width.lessThanOrEqual(item.anchors.width * multiplier - insets.width), height.lessThanOrEqual(item.anchors.height * multiplier - insets.height)]
332 | }
/Users/admin/builder/spi-builder-workspace/Sources/DonateToUkraine/NiceUI/Align.swift:330:113: error: cannot find type 'CGFloat' in scope; did you mean to use 'CGFloat'?
328 | }
329 |
330 | @discardableResult 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'?
331 | [width.lessThanOrEqual(item.anchors.width * multiplier - insets.width), height.lessThanOrEqual(item.anchors.height * multiplier - insets.height)]
332 | }
/Users/admin/builder/spi-builder-workspace/Sources/DonateToUkraine/NiceUI/Align.swift:330:130: error: cannot find type 'NSLayoutConstraint' in scope
328 | }
329 |
330 | @discardableResult func lessThanOrEqual<Item: LayoutItem>(_ item: Item, insets: CGSize = .zero, multiplier: CGFloat = 1) -> [NSLayoutConstraint] {
| `- error: cannot find type 'NSLayoutConstraint' in scope
331 | [width.lessThanOrEqual(item.anchors.width * multiplier - insets.width), height.lessThanOrEqual(item.anchors.height * multiplier - insets.height)]
332 | }
/Users/admin/builder/spi-builder-workspace/Sources/DonateToUkraine/NiceUI/Align.swift:330:51: error: cannot find type 'LayoutItem' in scope
328 | }
329 |
330 | @discardableResult func lessThanOrEqual<Item: LayoutItem>(_ item: Item, insets: CGSize = .zero, multiplier: CGFloat = 1) -> [NSLayoutConstraint] {
| `- error: cannot find type 'LayoutItem' in scope
331 | [width.lessThanOrEqual(item.anchors.width * multiplier - insets.width), height.lessThanOrEqual(item.anchors.height * multiplier - insets.height)]
332 | }
/Users/admin/builder/spi-builder-workspace/Sources/DonateToUkraine/NiceUI/Align.swift:330:113: error: cannot find type 'CGFloat' in scope; did you mean to use 'CGFloat'?
328 | }
329 |
330 | @discardableResult 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'?
331 | [width.lessThanOrEqual(item.anchors.width * multiplier - insets.width), height.lessThanOrEqual(item.anchors.height * multiplier - insets.height)]
332 | }
/Users/admin/builder/spi-builder-workspace/Sources/DonateToUkraine/NiceUI/Align.swift:339:37: error: cannot find 'NSLayoutConstraint' in scope
337 | final class Constraints {
338 | /// Returns all of the created constraints.
339 | private(set) var constraints = [NSLayoutConstraint]()
| `- error: cannot find 'NSLayoutConstraint' in scope
340 |
341 | /// All of the constraints created in the given closure are automatically
/Users/admin/builder/spi-builder-workspace/Sources/DonateToUkraine/NiceUI/Align.swift:339:36: error: cannot call value of non-function type '[Element]'
337 | final class Constraints {
338 | /// Returns all of the created constraints.
339 | private(set) var constraints = [NSLayoutConstraint]()
| `- error: cannot call value of non-function type '[Element]'
340 |
341 | /// All of the constraints created in the given closure are automatically
/Users/admin/builder/spi-builder-workspace/Sources/DonateToUkraine/NiceUI/Align.swift:356:292: error: cannot find type 'NSLayoutConstraint' in scope
354 |
355 | /// Creates and automatically installs a constraint.
356 | 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
357 | precondition(Thread.isMainThread, "Align APIs can only be used from the main thread")
358 | #if os(iOS) || os(tvOS)
/Users/admin/builder/spi-builder-workspace/Sources/DonateToUkraine/NiceUI/Align.swift:356:73: error: cannot find type 'NSLayoutConstraint' in scope
354 |
355 | /// Creates and automatically installs a constraint.
356 | 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
357 | precondition(Thread.isMainThread, "Align APIs can only be used from the main thread")
358 | #if os(iOS) || os(tvOS)
/Users/admin/builder/spi-builder-workspace/Sources/DonateToUkraine/NiceUI/Align.swift:356:123: error: cannot find type 'NSLayoutConstraint' in scope
354 |
355 | /// Creates and automatically installs a constraint.
356 | 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
357 | precondition(Thread.isMainThread, "Align APIs can only be used from the main thread")
358 | #if os(iOS) || os(tvOS)
/Users/admin/builder/spi-builder-workspace/Sources/DonateToUkraine/NiceUI/Align.swift:356:204: error: cannot find type 'NSLayoutConstraint' in scope
354 |
355 | /// Creates and automatically installs a constraint.
356 | 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
357 | precondition(Thread.isMainThread, "Align APIs can only be used from the main thread")
358 | #if os(iOS) || os(tvOS)
/Users/admin/builder/spi-builder-workspace/Sources/DonateToUkraine/NiceUI/Align.swift:356:253: error: cannot find type 'CGFloat' in scope; did you mean to use 'CGFloat'?
354 |
355 | /// Creates and automatically installs a constraint.
356 | 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'?
357 | precondition(Thread.isMainThread, "Align APIs can only be used from the main thread")
358 | #if os(iOS) || os(tvOS)
/Users/admin/builder/spi-builder-workspace/Sources/DonateToUkraine/NiceUI/Align.swift:356:276: error: cannot find type 'CGFloat' in scope; did you mean to use 'CGFloat'?
354 |
355 | /// Creates and automatically installs a constraint.
356 | 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'?
357 | precondition(Thread.isMainThread, "Align APIs can only be used from the main thread")
358 | #if os(iOS) || os(tvOS)
/Users/admin/builder/spi-builder-workspace/Sources/DonateToUkraine/NiceUI/Align.swift:369:111: error: cannot find type 'CGFloat' in scope; did you mean to use 'CGFloat'?
367 |
368 | /// Creates and automatically installs a constraint between two anchors.
369 | 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'?
370 | 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)
371 | }
/Users/admin/builder/spi-builder-workspace/Sources/DonateToUkraine/NiceUI/Align.swift:369:136: error: cannot find type 'CGFloat' in scope; did you mean to use 'CGFloat'?
367 |
368 | /// Creates and automatically installs a constraint between two anchors.
369 | 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'?
370 | 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)
371 | }
/Users/admin/builder/spi-builder-workspace/Sources/DonateToUkraine/NiceUI/Align.swift:369:159: error: cannot find type 'NSLayoutConstraint' in scope
367 |
368 | /// Creates and automatically installs a constraint between two anchors.
369 | 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
370 | 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)
371 | }
/Users/admin/builder/spi-builder-workspace/Sources/DonateToUkraine/NiceUI/Align.swift:369:200: error: cannot find type 'NSLayoutConstraint' in scope
367 |
368 | /// Creates and automatically installs a constraint between two anchors.
369 | 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
370 | 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)
371 | }
/Users/admin/builder/spi-builder-workspace/Sources/DonateToUkraine/NiceUI/Align.swift:369:111: error: cannot find type 'CGFloat' in scope; did you mean to use 'CGFloat'?
367 |
368 | /// Creates and automatically installs a constraint between two anchors.
369 | 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'?
370 | 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)
371 | }
/Users/admin/builder/spi-builder-workspace/Sources/DonateToUkraine/NiceUI/Align.swift:369:136: error: cannot find type 'CGFloat' in scope; did you mean to use 'CGFloat'?
367 |
368 | /// Creates and automatically installs a constraint between two anchors.
369 | 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'?
370 | 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)
371 | }
/Users/admin/builder/spi-builder-workspace/Sources/DonateToUkraine/NiceUI/Align.swift:375:107: error: cannot find type 'NSLayoutConstraint' in scope
373 | /// Creates and automatically installs a constraint between an anchor and
374 | /// a given item.
375 | 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
376 | constrain(item: lhs.item, attribute: lhs.attribute, relatedBy: relation, toItem: item2, attribute: attr2, multiplier: multiplier / lhs.multiplier, constant: constant - lhs.offset)
377 | }
/Users/admin/builder/spi-builder-workspace/Sources/DonateToUkraine/NiceUI/Align.swift:375:148: error: cannot find type 'CGFloat' in scope; did you mean to use 'CGFloat'?
373 | /// Creates and automatically installs a constraint between an anchor and
374 | /// a given item.
375 | 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'?
376 | constrain(item: lhs.item, attribute: lhs.attribute, relatedBy: relation, toItem: item2, attribute: attr2, multiplier: multiplier / lhs.multiplier, constant: constant - lhs.offset)
377 | }
/Users/admin/builder/spi-builder-workspace/Sources/DonateToUkraine/NiceUI/Align.swift:375:173: error: cannot find type 'CGFloat' in scope; did you mean to use 'CGFloat'?
373 | /// Creates and automatically installs a constraint between an anchor and
374 | /// a given item.
375 | 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'?
376 | constrain(item: lhs.item, attribute: lhs.attribute, relatedBy: relation, toItem: item2, attribute: attr2, multiplier: multiplier / lhs.multiplier, constant: constant - lhs.offset)
377 | }
/Users/admin/builder/spi-builder-workspace/Sources/DonateToUkraine/NiceUI/Align.swift:375:196: error: cannot find type 'NSLayoutConstraint' in scope
373 | /// Creates and automatically installs a constraint between an anchor and
374 | /// a given item.
375 | 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
376 | constrain(item: lhs.item, attribute: lhs.attribute, relatedBy: relation, toItem: item2, attribute: attr2, multiplier: multiplier / lhs.multiplier, constant: constant - lhs.offset)
377 | }
/Users/admin/builder/spi-builder-workspace/Sources/DonateToUkraine/NiceUI/Align.swift:375:237: error: cannot find type 'NSLayoutConstraint' in scope
373 | /// Creates and automatically installs a constraint between an anchor and
374 | /// a given item.
375 | 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
376 | constrain(item: lhs.item, attribute: lhs.attribute, relatedBy: relation, toItem: item2, attribute: attr2, multiplier: multiplier / lhs.multiplier, constant: constant - lhs.offset)
377 | }
/Users/admin/builder/spi-builder-workspace/Sources/DonateToUkraine/NiceUI/Align.swift:375:148: error: cannot find type 'CGFloat' in scope; did you mean to use 'CGFloat'?
373 | /// Creates and automatically installs a constraint between an anchor and
374 | /// a given item.
375 | 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'?
376 | constrain(item: lhs.item, attribute: lhs.attribute, relatedBy: relation, toItem: item2, attribute: attr2, multiplier: multiplier / lhs.multiplier, constant: constant - lhs.offset)
377 | }
/Users/admin/builder/spi-builder-workspace/Sources/DonateToUkraine/NiceUI/Align.swift:375:173: error: cannot find type 'CGFloat' in scope; did you mean to use 'CGFloat'?
373 | /// Creates and automatically installs a constraint between an anchor and
374 | /// a given item.
375 | 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'?
376 | constrain(item: lhs.item, attribute: lhs.attribute, relatedBy: relation, toItem: item2, attribute: attr2, multiplier: multiplier / lhs.multiplier, constant: constant - lhs.offset)
377 | }
/Users/admin/builder/spi-builder-workspace/Sources/DonateToUkraine/NiceUI/Align.swift:381:48: error: cannot find type 'NSLayoutConstraint' in scope
379 | private static var _stack = [Constraints]() // this is what enabled constraint auto-installing
380 |
381 | private static func _install(_ constraint: NSLayoutConstraint) {
| `- error: cannot find type 'NSLayoutConstraint' in scope
382 | if let group = _stack.last {
383 | group.constraints.append(constraint)
/Users/admin/builder/spi-builder-workspace/Sources/DonateToUkraine/NiceUI/Align.swift:391:44: error: cannot find type 'LayoutItem' in scope
389 |
390 | extension Constraints {
391 | @discardableResult convenience init<A: LayoutItem>(for a: A, _ closure: (LayoutAnchors<A>) -> Void) {
| `- error: cannot find type 'LayoutItem' in scope
392 | self.init { closure(a.anchors) }
393 | }
/Users/admin/builder/spi-builder-workspace/Sources/DonateToUkraine/NiceUI/Align.swift:395:44: error: cannot find type 'LayoutItem' in scope
393 | }
394 |
395 | @discardableResult convenience init<A: LayoutItem, B: LayoutItem>(for a: A, _ b: B, _ closure: (LayoutAnchors<A>, LayoutAnchors<B>) -> Void) {
| `- error: cannot find type 'LayoutItem' in scope
396 | self.init { closure(a.anchors, b.anchors) }
397 | }
/Users/admin/builder/spi-builder-workspace/Sources/DonateToUkraine/NiceUI/Align.swift:395:59: error: cannot find type 'LayoutItem' in scope
393 | }
394 |
395 | @discardableResult convenience init<A: LayoutItem, B: LayoutItem>(for a: A, _ b: B, _ closure: (LayoutAnchors<A>, LayoutAnchors<B>) -> Void) {
| `- error: cannot find type 'LayoutItem' in scope
396 | self.init { closure(a.anchors, b.anchors) }
397 | }
/Users/admin/builder/spi-builder-workspace/Sources/DonateToUkraine/NiceUI/Align.swift:399:44: error: cannot find type 'LayoutItem' in scope
397 | }
398 |
399 | @discardableResult 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
400 | self.init { closure(a.anchors, b.anchors, c.anchors) }
401 | }
/Users/admin/builder/spi-builder-workspace/Sources/DonateToUkraine/NiceUI/Align.swift:399:59: error: cannot find type 'LayoutItem' in scope
397 | }
398 |
399 | @discardableResult 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
400 | self.init { closure(a.anchors, b.anchors, c.anchors) }
401 | }
/Users/admin/builder/spi-builder-workspace/Sources/DonateToUkraine/NiceUI/Align.swift:399:74: error: cannot find type 'LayoutItem' in scope
397 | }
398 |
399 | @discardableResult 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
400 | self.init { closure(a.anchors, b.anchors, c.anchors) }
401 | }
/Users/admin/builder/spi-builder-workspace/Sources/DonateToUkraine/NiceUI/Align.swift:403:44: error: cannot find type 'LayoutItem' in scope
401 | }
402 |
403 | @discardableResult 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
404 | self.init { closure(a.anchors, b.anchors, c.anchors, d.anchors) }
405 | }
/Users/admin/builder/spi-builder-workspace/Sources/DonateToUkraine/NiceUI/Align.swift:403:59: error: cannot find type 'LayoutItem' in scope
401 | }
402 |
403 | @discardableResult 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
404 | self.init { closure(a.anchors, b.anchors, c.anchors, d.anchors) }
405 | }
/Users/admin/builder/spi-builder-workspace/Sources/DonateToUkraine/NiceUI/Align.swift:403:74: error: cannot find type 'LayoutItem' in scope
401 | }
402 |
403 | @discardableResult 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
404 | self.init { closure(a.anchors, b.anchors, c.anchors, d.anchors) }
405 | }
/Users/admin/builder/spi-builder-workspace/Sources/DonateToUkraine/NiceUI/Align.swift:403:89: error: cannot find type 'LayoutItem' in scope
401 | }
402 |
403 | @discardableResult 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
404 | self.init { closure(a.anchors, b.anchors, c.anchors, d.anchors) }
405 | }
/Users/admin/builder/spi-builder-workspace/Sources/DonateToUkraine/NiceUI/Align.swift:420:11: error: cannot find type 'NSLayoutConstraint' in scope
418 | #endif
419 |
420 | extension NSLayoutConstraint.Relation {
| `- error: cannot find type 'NSLayoutConstraint' in scope
421 | fileprivate var inverted: NSLayoutConstraint.Relation {
422 | switch self {
/Users/admin/builder/spi-builder-workspace/Sources/DonateToUkraine/NiceUI/Align.swift:431:11: error: cannot find type 'EdgeInsets' in scope
429 | }
430 |
431 | extension EdgeInsets {
| `- error: cannot find type 'EdgeInsets' in scope
432 | fileprivate func inset(for attribute: NSLayoutConstraint.Attribute, edge: Bool = false) -> CGFloat {
433 | switch attribute {
/Users/admin/builder/spi-builder-workspace/Sources/DonateToUkraine/NiceUI/Align.swift:445:64: error: cannot find type 'NSLayoutConstraint' in scope
443 |
444 | extension Anchor where Type: AnchorType.Edge {
445 | @discardableResult func safeAreaPin(inset: CGFloat = 0) -> NSLayoutConstraint {
| `- error: cannot find type 'NSLayoutConstraint' in scope
446 | pin(to: item.superview!.safeAreaLayoutGuide, inset: inset)
447 | }
/Users/admin/builder/spi-builder-workspace/Sources/DonateToUkraine/NiceUI/Align.swift:445:48: error: cannot find type 'CGFloat' in scope; did you mean to use 'CGFloat'?
443 |
444 | extension Anchor where Type: AnchorType.Edge {
445 | @discardableResult func safeAreaPin(inset: CGFloat = 0) -> NSLayoutConstraint {
| `- error: cannot find type 'CGFloat' in scope; did you mean to use 'CGFloat'?
446 | pin(to: item.superview!.safeAreaLayoutGuide, inset: inset)
447 | }
/Users/admin/builder/spi-builder-workspace/Sources/DonateToUkraine/NiceUI/Align.swift:449:71: error: cannot find type 'NSLayoutConstraint' in scope
447 | }
448 |
449 | @discardableResult func readableContentPin(inset: CGFloat = 0) -> NSLayoutConstraint {
| `- error: cannot find type 'NSLayoutConstraint' in scope
450 | pin(to: item.superview!.readableContentGuide, inset: inset)
451 | }
/Users/admin/builder/spi-builder-workspace/Sources/DonateToUkraine/NiceUI/Align.swift:449:55: error: cannot find type 'CGFloat' in scope; did you mean to use 'CGFloat'?
447 | }
448 |
449 | @discardableResult func readableContentPin(inset: CGFloat = 0) -> NSLayoutConstraint {
| `- error: cannot find type 'CGFloat' in scope; did you mean to use 'CGFloat'?
450 | pin(to: item.superview!.readableContentGuide, inset: inset)
451 | }
/Users/admin/builder/spi-builder-workspace/Sources/DonateToUkraine/NiceUI/Align.swift:453:63: error: cannot find type 'NSLayoutConstraint' in scope
451 | }
452 |
453 | @discardableResult func marginsPin(inset: CGFloat = 0) -> NSLayoutConstraint {
| `- error: cannot find type 'NSLayoutConstraint' in scope
454 | pin(to: item.superview!.layoutMarginsGuide, inset: inset)
455 | }
/Users/admin/builder/spi-builder-workspace/Sources/DonateToUkraine/NiceUI/Align.swift:453:47: error: cannot find type 'CGFloat' in scope; did you mean to use 'CGFloat'?
451 | }
452 |
453 | @discardableResult func marginsPin(inset: CGFloat = 0) -> NSLayoutConstraint {
| `- error: cannot find type 'CGFloat' in scope; did you mean to use 'CGFloat'?
454 | pin(to: item.superview!.layoutMarginsGuide, inset: inset)
455 | }
/Users/admin/builder/spi-builder-workspace/Sources/DonateToUkraine/NiceUI/Align.swift:459:123: error: cannot find type 'NSLayoutConstraint' in scope
457 |
458 | extension AnchorCollectionEdges {
459 | @discardableResult func safeAreaPin(insets: EdgeInsets = .zero, axis: Axis? = nil, alignment: Alignmment = .fill) -> [NSLayoutConstraint] {
| `- error: cannot find type 'NSLayoutConstraint' in scope
460 | pin(to: item.superview!.safeAreaLayoutGuide, insets: insets, axis: axis, alignment: alignment)
461 | }
/Users/admin/builder/spi-builder-workspace/Sources/DonateToUkraine/NiceUI/Align.swift:459:49: error: cannot find type 'EdgeInsets' in scope
457 |
458 | extension AnchorCollectionEdges {
459 | @discardableResult func safeAreaPin(insets: EdgeInsets = .zero, axis: Axis? = nil, alignment: Alignmment = .fill) -> [NSLayoutConstraint] {
| `- error: cannot find type 'EdgeInsets' in scope
460 | pin(to: item.superview!.safeAreaLayoutGuide, insets: insets, axis: axis, alignment: alignment)
461 | }
/Users/admin/builder/spi-builder-workspace/Sources/DonateToUkraine/NiceUI/Align.swift:463:130: error: cannot find type 'NSLayoutConstraint' in scope
461 | }
462 |
463 | @discardableResult func readableContentPin(insets: EdgeInsets = .zero, axis: Axis? = nil, alignment: Alignmment = .fill) -> [NSLayoutConstraint] {
| `- error: cannot find type 'NSLayoutConstraint' in scope
464 | pin(to: item.superview!.readableContentGuide, insets: insets, axis: axis, alignment: alignment)
465 | }
/Users/admin/builder/spi-builder-workspace/Sources/DonateToUkraine/NiceUI/Align.swift:463:56: error: cannot find type 'EdgeInsets' in scope
461 | }
462 |
463 | @discardableResult func readableContentPin(insets: EdgeInsets = .zero, axis: Axis? = nil, alignment: Alignmment = .fill) -> [NSLayoutConstraint] {
| `- error: cannot find type 'EdgeInsets' in scope
464 | pin(to: item.superview!.readableContentGuide, insets: insets, axis: axis, alignment: alignment)
465 | }
/Users/admin/builder/spi-builder-workspace/Sources/DonateToUkraine/NiceUI/Align.swift:467:122: error: cannot find type 'NSLayoutConstraint' in scope
465 | }
466 |
467 | @discardableResult func marginsPin(insets: EdgeInsets = .zero, axis: Axis? = nil, alignment: Alignmment = .fill) -> [NSLayoutConstraint] {
| `- error: cannot find type 'NSLayoutConstraint' in scope
468 | pin(to: item.superview!.layoutMarginsGuide, insets: insets, axis: axis, alignment: alignment)
469 | }
/Users/admin/builder/spi-builder-workspace/Sources/DonateToUkraine/NiceUI/Align.swift:467:48: error: cannot find type 'EdgeInsets' in scope
465 | }
466 |
467 | @discardableResult func marginsPin(insets: EdgeInsets = .zero, axis: Axis? = nil, alignment: Alignmment = .fill) -> [NSLayoutConstraint] {
| `- error: cannot find type 'EdgeInsets' in scope
468 | pin(to: item.superview!.layoutMarginsGuide, insets: insets, axis: axis, alignment: alignment)
469 | }
[#DeprecatedDeclaration]: <https://docs.swift.org/compiler/documentation/diagnostics/deprecated-declaration>
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/DonateToUkraine/DonateToUkraine.swift /Users/admin/builder/spi-builder-workspace/Sources/DonateToUkraine/DonateToUkraineButton.swift /Users/admin/builder/spi-builder-workspace/Sources/DonateToUkraine/DonateToUkraineViewController.swift /Users/admin/builder/spi-builder-workspace/Sources/DonateToUkraine/DonationTracking.swift /Users/admin/builder/spi-builder-workspace/Sources/DonateToUkraine/NiceUI/Align.swift /Users/admin/builder/spi-builder-workspace/Sources/DonateToUkraine/NiceUI/View.swift /Users/admin/builder/spi-builder-workspace/Sources/DonateToUkraine/Promise.swift /Users/admin/builder/spi-builder-workspace/Sources/DonateToUkraine/UkraineDonation.swift /Users/admin/builder/spi-builder-workspace/Sources/DonateToUkraine/UserDefault.swift -target arm64-apple-xros1.0 -disable-cross-import-overlay-search -swift-module-cross-import WebKit /Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Platforms/XROS.platform/Developer/SDKs/XROS.sdk/System/Library/Frameworks/WebKit.framework/Modules/WebKit.swiftcrossimport/SwiftUI.swiftoverlay -swift-module-cross-import WebKit /Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Platforms/XROS.platform/Developer/SDKs/XROS27.0.sdk/System/Library/Frameworks/WebKit.framework/Modules/WebKit.swiftcrossimport/SwiftUI.swiftoverlay -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/DonateToUkraine.build/Debug-xros/DonateToUkraine-t.build/Objects-normal/arm64/DonateToUkraine-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/DonateToUkraine.build/Debug-xros/DonateToUkraine-t.build/DerivedSources-normal/arm64 -Xcc -I/Users/admin/builder/spi-builder-workspace/.derivedData/Build/Intermediates.noindex/DonateToUkraine.build/Debug-xros/DonateToUkraine-t.build/DerivedSources/arm64 -Xcc -I/Users/admin/builder/spi-builder-workspace/.derivedData/Build/Intermediates.noindex/DonateToUkraine.build/Debug-xros/DonateToUkraine-t.build/DerivedSources -Xcc -DSWIFT_PACKAGE -Xcc -DDEBUG\=1 -no-auto-bridging-header-chaining -module-name DonateToUkraine -const-gather-protocols-file /Users/admin/builder/spi-builder-workspace/.derivedData/Build/Intermediates.noindex/DonateToUkraine.build/Debug-xros/DonateToUkraine-t.build/Objects-normal/arm64/DonateToUkraine_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/DonateToUkraine.build/Debug-xros/DonateToUkraine-t.build/Objects-normal/arm64/DonateToUkraine.swiftdoc -emit-module-source-info-path /Users/admin/builder/spi-builder-workspace/.derivedData/Build/Intermediates.noindex/DonateToUkraine.build/Debug-xros/DonateToUkraine-t.build/Objects-normal/arm64/DonateToUkraine.swiftsourceinfo -emit-objc-header-path /Users/admin/builder/spi-builder-workspace/.derivedData/Build/Intermediates.noindex/DonateToUkraine.build/Debug-xros/DonateToUkraine-t.build/Objects-normal/arm64/DonateToUkraine-Swift.h -serialize-diagnostics-path /Users/admin/builder/spi-builder-workspace/.derivedData/Build/Intermediates.noindex/DonateToUkraine.build/Debug-xros/DonateToUkraine-t.build/Objects-normal/arm64/DonateToUkraine-primary-emit-module.dia -emit-dependencies-path /Users/admin/builder/spi-builder-workspace/.derivedData/Build/Intermediates.noindex/DonateToUkraine.build/Debug-xros/DonateToUkraine-t.build/Objects-normal/arm64/DonateToUkraine-primary-emit-module.d -parse-as-library -o /Users/admin/builder/spi-builder-workspace/.derivedData/Build/Intermediates.noindex/DonateToUkraine.build/Debug-xros/DonateToUkraine-t.build/Objects-normal/arm64/DonateToUkraine.swiftmodule -emit-abi-descriptor-path /Users/admin/builder/spi-builder-workspace/.derivedData/Build/Intermediates.noindex/DonateToUkraine.build/Debug-xros/DonateToUkraine-t.build/Objects-normal/arm64/DonateToUkraine.abi.json
SwiftCompile normal arm64 (in target 'DonateToUkraine' from project 'DonateToUkraine')
cd /Users/admin/builder/spi-builder-workspace/.swiftpm/xcode
SwiftCompile normal arm64 Compiling\ UserDefault.swift /Users/admin/builder/spi-builder-workspace/Sources/DonateToUkraine/UserDefault.swift (in target 'DonateToUkraine' from project 'DonateToUkraine')
SwiftCompile normal arm64 /Users/admin/builder/spi-builder-workspace/Sources/DonateToUkraine/UserDefault.swift (in target 'DonateToUkraine' from project 'DonateToUkraine')
cd /Users/admin/builder/spi-builder-workspace/.swiftpm/xcode
builtin-SwiftPerFileCompile UserDefault.swift
SwiftCompile normal arm64 Compiling\ UkraineDonation.swift /Users/admin/builder/spi-builder-workspace/Sources/DonateToUkraine/UkraineDonation.swift (in target 'DonateToUkraine' from project 'DonateToUkraine')
SwiftCompile normal arm64 /Users/admin/builder/spi-builder-workspace/Sources/DonateToUkraine/UkraineDonation.swift (in target 'DonateToUkraine' from project 'DonateToUkraine')
cd /Users/admin/builder/spi-builder-workspace/.swiftpm/xcode
builtin-SwiftPerFileCompile UkraineDonation.swift
SwiftCompile normal arm64 Compiling\ View.swift /Users/admin/builder/spi-builder-workspace/Sources/DonateToUkraine/NiceUI/View.swift (in target 'DonateToUkraine' from project 'DonateToUkraine')
SwiftCompile normal arm64 /Users/admin/builder/spi-builder-workspace/Sources/DonateToUkraine/NiceUI/View.swift (in target 'DonateToUkraine' from project 'DonateToUkraine')
cd /Users/admin/builder/spi-builder-workspace/.swiftpm/xcode
builtin-SwiftPerFileCompile View.swift
PruneExplicitPrecompiledModules /Users/admin/builder/spi-builder-workspace/.derivedData/SDKExplicitPrecompiledModules
PruneExplicitPrecompiledModules /Users/admin/builder/spi-builder-workspace/.derivedData/Build/Intermediates.noindex/ExplicitPrecompiledModules
PruneExplicitPrecompiledModules /Users/admin/builder/spi-builder-workspace/.derivedData/Build/Intermediates.noindex/SwiftExplicitPrecompiledModules
2026-09-18 04:07:23.168 xcodebuild[758:4716] [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\ DonateToUkraine (in target 'DonateToUkraine' from project 'DonateToUkraine')
SwiftCompile normal arm64 (in target 'DonateToUkraine' from project 'DonateToUkraine')
Building workspace DonateToUkraine with scheme DonateToUkraine
(3 failures)
BUILD FAILURE 6.4 visionOS