Build Information
Failed to build CGLayout, reference master (62d3ab
), with Swift 6.1 for Android on 27 May 2025 10:59:40 UTC.
Build Command
bash -c docker run --pull=always --rm -v "checkouts-4609320-3":/host -w "$PWD" registry.gitlab.com/finestructure/spi-images:android-6.1-latest swift build --swift-sdk aarch64-unknown-linux-android24 2>&1
Build Log
86 | func -(l: CGSize, r: CGFloat) -> CGSize { return CGSize(width: l.width - r, height: l.height - r) }
87 | func +(l: CGSize, r: CGFloat) -> CGSize { return CGSize(width: l.width + r, height: l.height + r) }
88 | func *(l: CGSize, r: CGFloat) -> CGSize { return CGSize(width: l.width * r, height: l.height * r) }
| `- error: cannot find type 'CGSize' in scope
89 |
90 | extension CGPoint {
/host/spi-builder-workspace/Sources/Classes/common.cglayout.swift:88:22: error: cannot find type 'CGFloat' in scope
86 | func -(l: CGSize, r: CGFloat) -> CGSize { return CGSize(width: l.width - r, height: l.height - r) }
87 | func +(l: CGSize, r: CGFloat) -> CGSize { return CGSize(width: l.width + r, height: l.height + r) }
88 | func *(l: CGSize, r: CGFloat) -> CGSize { return CGSize(width: l.width * r, height: l.height * r) }
| `- error: cannot find type 'CGFloat' in scope
89 |
90 | extension CGPoint {
/host/spi-builder-workspace/Sources/Classes/common.cglayout.swift:86:34: error: cannot find type 'CGSize' in scope
84 | #endif
85 |
86 | func -(l: CGSize, r: CGFloat) -> CGSize { return CGSize(width: l.width - r, height: l.height - r) }
| `- error: cannot find type 'CGSize' in scope
87 | func +(l: CGSize, r: CGFloat) -> CGSize { return CGSize(width: l.width + r, height: l.height + r) }
88 | func *(l: CGSize, r: CGFloat) -> CGSize { return CGSize(width: l.width * r, height: l.height * r) }
/host/spi-builder-workspace/Sources/Classes/common.cglayout.swift:86:11: error: cannot find type 'CGSize' in scope
84 | #endif
85 |
86 | func -(l: CGSize, r: CGFloat) -> CGSize { return CGSize(width: l.width - r, height: l.height - r) }
| `- error: cannot find type 'CGSize' in scope
87 | func +(l: CGSize, r: CGFloat) -> CGSize { return CGSize(width: l.width + r, height: l.height + r) }
88 | func *(l: CGSize, r: CGFloat) -> CGSize { return CGSize(width: l.width * r, height: l.height * r) }
/host/spi-builder-workspace/Sources/Classes/common.cglayout.swift:86:22: error: cannot find type 'CGFloat' in scope
84 | #endif
85 |
86 | func -(l: CGSize, r: CGFloat) -> CGSize { return CGSize(width: l.width - r, height: l.height - r) }
| `- error: cannot find type 'CGFloat' in scope
87 | func +(l: CGSize, r: CGFloat) -> CGSize { return CGSize(width: l.width + r, height: l.height + r) }
88 | func *(l: CGSize, r: CGFloat) -> CGSize { return CGSize(width: l.width * r, height: l.height * r) }
/host/spi-builder-workspace/Sources/Classes/common.cglayout.swift:87:34: error: cannot find type 'CGSize' in scope
85 |
86 | func -(l: CGSize, r: CGFloat) -> CGSize { return CGSize(width: l.width - r, height: l.height - r) }
87 | func +(l: CGSize, r: CGFloat) -> CGSize { return CGSize(width: l.width + r, height: l.height + r) }
| `- error: cannot find type 'CGSize' in scope
88 | func *(l: CGSize, r: CGFloat) -> CGSize { return CGSize(width: l.width * r, height: l.height * r) }
89 |
/host/spi-builder-workspace/Sources/Classes/common.cglayout.swift:87:11: error: cannot find type 'CGSize' in scope
85 |
86 | func -(l: CGSize, r: CGFloat) -> CGSize { return CGSize(width: l.width - r, height: l.height - r) }
87 | func +(l: CGSize, r: CGFloat) -> CGSize { return CGSize(width: l.width + r, height: l.height + r) }
| `- error: cannot find type 'CGSize' in scope
88 | func *(l: CGSize, r: CGFloat) -> CGSize { return CGSize(width: l.width * r, height: l.height * r) }
89 |
/host/spi-builder-workspace/Sources/Classes/common.cglayout.swift:87:22: error: cannot find type 'CGFloat' in scope
85 |
86 | func -(l: CGSize, r: CGFloat) -> CGSize { return CGSize(width: l.width - r, height: l.height - r) }
87 | func +(l: CGSize, r: CGFloat) -> CGSize { return CGSize(width: l.width + r, height: l.height + r) }
| `- error: cannot find type 'CGFloat' in scope
88 | func *(l: CGSize, r: CGFloat) -> CGSize { return CGSize(width: l.width * r, height: l.height * r) }
89 |
/host/spi-builder-workspace/Sources/Classes/stack.layoutGuide.cglayout.swift:47:81: error: cannot find type 'CGFloat' in scope
45 | }
46 |
47 | func space(for rects: [CGRect], in sourceRect: CGRect, along axis: RectAxis) -> CGFloat {
| `- error: cannot find type 'CGFloat' in scope
48 | let fullLength = rects.reduce(0) { $0 + axis.get(sizeAt: $1) }
49 | return (axis.get(sizeAt: sourceRect) - fullLength) / CGFloat(rects.count - 1)
/host/spi-builder-workspace/Sources/Classes/stack.layoutGuide.cglayout.swift:47:24: error: cannot find type 'CGRect' in scope
45 | }
46 |
47 | func space(for rects: [CGRect], in sourceRect: CGRect, along axis: RectAxis) -> CGFloat {
| `- error: cannot find type 'CGRect' in scope
48 | let fullLength = rects.reduce(0) { $0 + axis.get(sizeAt: $1) }
49 | return (axis.get(sizeAt: sourceRect) - fullLength) / CGFloat(rects.count - 1)
/host/spi-builder-workspace/Sources/Classes/stack.layoutGuide.cglayout.swift:47:48: error: cannot find type 'CGRect' in scope
45 | }
46 |
47 | func space(for rects: [CGRect], in sourceRect: CGRect, along axis: RectAxis) -> CGFloat {
| `- error: cannot find type 'CGRect' in scope
48 | let fullLength = rects.reduce(0) { $0 + axis.get(sizeAt: $1) }
49 | return (axis.get(sizeAt: sourceRect) - fullLength) / CGFloat(rects.count - 1)
/host/spi-builder-workspace/Sources/Classes/layoutBlock.cglayout.swift:22:16: error: cannot find type 'CGRect' in scope
20 | public protocol LayoutSnapshotProtocol { // TODO: Equatable
21 | /// Frame of layout block represented as snapshot
22 | var frame: CGRect { get }
| `- error: cannot find type 'CGRect' in scope
23 | /// Snapshots of child layout blocks
24 | var childSnapshots: [LayoutSnapshotProtocol] { get }
[12/19] Compiling CGLayout deprecated.cglayout.swift
/host/spi-builder-workspace/Sources/Classes/coordinate.cglayout.swift:24:61: error: cannot find type 'CGPoint' in scope
22 | /// Therefore should UIView.layer property when creates constraint relationship between UIView and CALayer.
23 | public protocol LayoutCoordinateSpace {
24 | func convert(point: CGPoint, to item: LayoutElement) -> CGPoint
| `- error: cannot find type 'CGPoint' in scope
25 | func convert(point: CGPoint, from item: LayoutElement) -> CGPoint
26 | func convert(rect: CGRect, to item: LayoutElement) -> CGRect
/host/spi-builder-workspace/Sources/Classes/coordinate.cglayout.swift:24:25: error: cannot find type 'CGPoint' in scope
22 | /// Therefore should UIView.layer property when creates constraint relationship between UIView and CALayer.
23 | public protocol LayoutCoordinateSpace {
24 | func convert(point: CGPoint, to item: LayoutElement) -> CGPoint
| `- error: cannot find type 'CGPoint' in scope
25 | func convert(point: CGPoint, from item: LayoutElement) -> CGPoint
26 | func convert(rect: CGRect, to item: LayoutElement) -> CGRect
/host/spi-builder-workspace/Sources/Classes/coordinate.cglayout.swift:25:63: error: cannot find type 'CGPoint' in scope
23 | public protocol LayoutCoordinateSpace {
24 | func convert(point: CGPoint, to item: LayoutElement) -> CGPoint
25 | func convert(point: CGPoint, from item: LayoutElement) -> CGPoint
| `- error: cannot find type 'CGPoint' in scope
26 | func convert(rect: CGRect, to item: LayoutElement) -> CGRect
27 | func convert(rect: CGRect, from item: LayoutElement) -> CGRect
/host/spi-builder-workspace/Sources/Classes/coordinate.cglayout.swift:25:25: error: cannot find type 'CGPoint' in scope
23 | public protocol LayoutCoordinateSpace {
24 | func convert(point: CGPoint, to item: LayoutElement) -> CGPoint
25 | func convert(point: CGPoint, from item: LayoutElement) -> CGPoint
| `- error: cannot find type 'CGPoint' in scope
26 | func convert(rect: CGRect, to item: LayoutElement) -> CGRect
27 | func convert(rect: CGRect, from item: LayoutElement) -> CGRect
/host/spi-builder-workspace/Sources/Classes/coordinate.cglayout.swift:26:59: error: cannot find type 'CGRect' in scope
24 | func convert(point: CGPoint, to item: LayoutElement) -> CGPoint
25 | func convert(point: CGPoint, from item: LayoutElement) -> CGPoint
26 | func convert(rect: CGRect, to item: LayoutElement) -> CGRect
| `- error: cannot find type 'CGRect' in scope
27 | func convert(rect: CGRect, from item: LayoutElement) -> CGRect
28 |
/host/spi-builder-workspace/Sources/Classes/coordinate.cglayout.swift:26:24: error: cannot find type 'CGRect' in scope
24 | func convert(point: CGPoint, to item: LayoutElement) -> CGPoint
25 | func convert(point: CGPoint, from item: LayoutElement) -> CGPoint
26 | func convert(rect: CGRect, to item: LayoutElement) -> CGRect
| `- error: cannot find type 'CGRect' in scope
27 | func convert(rect: CGRect, from item: LayoutElement) -> CGRect
28 |
/host/spi-builder-workspace/Sources/Classes/coordinate.cglayout.swift:27:61: error: cannot find type 'CGRect' in scope
25 | func convert(point: CGPoint, from item: LayoutElement) -> CGPoint
26 | func convert(rect: CGRect, to item: LayoutElement) -> CGRect
27 | func convert(rect: CGRect, from item: LayoutElement) -> CGRect
| `- error: cannot find type 'CGRect' in scope
28 |
29 | var bounds: CGRect { get }
/host/spi-builder-workspace/Sources/Classes/coordinate.cglayout.swift:27:24: error: cannot find type 'CGRect' in scope
25 | func convert(point: CGPoint, from item: LayoutElement) -> CGPoint
26 | func convert(rect: CGRect, to item: LayoutElement) -> CGRect
27 | func convert(rect: CGRect, from item: LayoutElement) -> CGRect
| `- error: cannot find type 'CGRect' in scope
28 |
29 | var bounds: CGRect { get }
/host/spi-builder-workspace/Sources/Classes/coordinate.cglayout.swift:29:17: error: cannot find type 'CGRect' in scope
27 | func convert(rect: CGRect, from item: LayoutElement) -> CGRect
28 |
29 | var bounds: CGRect { get }
| `- error: cannot find type 'CGRect' in scope
30 | }
31 | #if os(iOS) || os(tvOS)
/host/spi-builder-workspace/Sources/Classes/layoutConstraint.cglayout.swift:31:42: error: cannot find type 'CGRect' in scope
29 | /// - sourceRect: Source space
30 | /// - rect: Rect for constrain
31 | func formConstrain(sourceRect: inout CGRect, by rect: CGRect?, in coordinateSpace: LayoutElement)
| `- error: cannot find type 'CGRect' in scope
32 | }
33 | public extension LayoutConstraintProtocol {
/host/spi-builder-workspace/Sources/Classes/layoutConstraint.cglayout.swift:31:59: error: cannot find type 'CGRect' in scope
29 | /// - sourceRect: Source space
30 | /// - rect: Rect for constrain
31 | func formConstrain(sourceRect: inout CGRect, by rect: CGRect?, in coordinateSpace: LayoutElement)
| `- error: cannot find type 'CGRect' in scope
32 | }
33 | public extension LayoutConstraintProtocol {
/host/spi-builder-workspace/Sources/Classes/core.cglayout.swift:312:17: error: cannot find type 'EdgeInsets' in scope
310 | case bottom(Bottom)
311 | case size(Size)
312 | case insets(EdgeInsets)
| `- error: cannot find type 'EdgeInsets' in scope
313 | case equal(CGRect)
314 | case equally
/host/spi-builder-workspace/Sources/Classes/core.cglayout.swift:395:17: error: cannot find type 'EdgeInsets' in scope
393 | /// - Returns: Inset constraint
394 | public struct Inset: RectBasedConstraint {
395 | let insets: EdgeInsets
| `- error: cannot find type 'EdgeInsets' in scope
396 | public init(_ insets: EdgeInsets) {
397 | self.insets = insets
/host/spi-builder-workspace/Sources/Classes/core.cglayout.swift:396:27: error: cannot find type 'EdgeInsets' in scope
394 | public struct Inset: RectBasedConstraint {
395 | let insets: EdgeInsets
396 | public init(_ insets: EdgeInsets) {
| `- error: cannot find type 'EdgeInsets' in scope
397 | self.insets = insets
398 | }
/host/spi-builder-workspace/Sources/Classes/core.cglayout.swift:78:69: error: extra argument 'in' in call
76 | func layout(rect: CGRect, from coordinateSpace: LayoutElement, in sourceRect: CGRect, use constraints: [LayoutConstraintProtocol] = []) -> CGRect {
77 | return layout(rect: rect, in: constraints.reduce(into: sourceRect) { res, constraint in
78 | constraint.formConstrain(sourceRect: &res, by: nil, in: coordinateSpace)
| `- error: extra argument 'in' in call
79 | })
80 | }
/host/spi-builder-workspace/Sources/Classes/core.cglayout.swift:78:60: error: 'nil' is not compatible with expected argument type 'CGRect'
76 | func layout(rect: CGRect, from coordinateSpace: LayoutElement, in sourceRect: CGRect, use constraints: [LayoutConstraintProtocol] = []) -> CGRect {
77 | return layout(rect: rect, in: constraints.reduce(into: sourceRect) { res, constraint in
78 | constraint.formConstrain(sourceRect: &res, by: nil, in: coordinateSpace)
| `- error: 'nil' is not compatible with expected argument type 'CGRect'
79 | })
80 | }
/host/spi-builder-workspace/Sources/Classes/core.cglayout.swift:405:20: error: value of type 'CGRect' has no member 'apply'
403 | /// - rect: Rect for constrain
404 | public func formConstrain(sourceRect: inout CGRect, by rect: CGRect) {
405 | sourceRect.apply(edgeInsets: insets)
| `- error: value of type 'CGRect' has no member 'apply'
406 | }
407 | }
/host/spi-builder-workspace/Sources/Classes/common.cglayout.swift:88:34: error: cannot find type 'CGSize' in scope
86 | func -(l: CGSize, r: CGFloat) -> CGSize { return CGSize(width: l.width - r, height: l.height - r) }
87 | func +(l: CGSize, r: CGFloat) -> CGSize { return CGSize(width: l.width + r, height: l.height + r) }
88 | func *(l: CGSize, r: CGFloat) -> CGSize { return CGSize(width: l.width * r, height: l.height * r) }
| `- error: cannot find type 'CGSize' in scope
89 |
90 | extension CGPoint {
/host/spi-builder-workspace/Sources/Classes/common.cglayout.swift:88:11: error: cannot find type 'CGSize' in scope
86 | func -(l: CGSize, r: CGFloat) -> CGSize { return CGSize(width: l.width - r, height: l.height - r) }
87 | func +(l: CGSize, r: CGFloat) -> CGSize { return CGSize(width: l.width + r, height: l.height + r) }
88 | func *(l: CGSize, r: CGFloat) -> CGSize { return CGSize(width: l.width * r, height: l.height * r) }
| `- error: cannot find type 'CGSize' in scope
89 |
90 | extension CGPoint {
/host/spi-builder-workspace/Sources/Classes/common.cglayout.swift:88:22: error: cannot find type 'CGFloat' in scope
86 | func -(l: CGSize, r: CGFloat) -> CGSize { return CGSize(width: l.width - r, height: l.height - r) }
87 | func +(l: CGSize, r: CGFloat) -> CGSize { return CGSize(width: l.width + r, height: l.height + r) }
88 | func *(l: CGSize, r: CGFloat) -> CGSize { return CGSize(width: l.width * r, height: l.height * r) }
| `- error: cannot find type 'CGFloat' in scope
89 |
90 | extension CGPoint {
/host/spi-builder-workspace/Sources/Classes/common.cglayout.swift:86:34: error: cannot find type 'CGSize' in scope
84 | #endif
85 |
86 | func -(l: CGSize, r: CGFloat) -> CGSize { return CGSize(width: l.width - r, height: l.height - r) }
| `- error: cannot find type 'CGSize' in scope
87 | func +(l: CGSize, r: CGFloat) -> CGSize { return CGSize(width: l.width + r, height: l.height + r) }
88 | func *(l: CGSize, r: CGFloat) -> CGSize { return CGSize(width: l.width * r, height: l.height * r) }
/host/spi-builder-workspace/Sources/Classes/common.cglayout.swift:86:11: error: cannot find type 'CGSize' in scope
84 | #endif
85 |
86 | func -(l: CGSize, r: CGFloat) -> CGSize { return CGSize(width: l.width - r, height: l.height - r) }
| `- error: cannot find type 'CGSize' in scope
87 | func +(l: CGSize, r: CGFloat) -> CGSize { return CGSize(width: l.width + r, height: l.height + r) }
88 | func *(l: CGSize, r: CGFloat) -> CGSize { return CGSize(width: l.width * r, height: l.height * r) }
/host/spi-builder-workspace/Sources/Classes/common.cglayout.swift:86:22: error: cannot find type 'CGFloat' in scope
84 | #endif
85 |
86 | func -(l: CGSize, r: CGFloat) -> CGSize { return CGSize(width: l.width - r, height: l.height - r) }
| `- error: cannot find type 'CGFloat' in scope
87 | func +(l: CGSize, r: CGFloat) -> CGSize { return CGSize(width: l.width + r, height: l.height + r) }
88 | func *(l: CGSize, r: CGFloat) -> CGSize { return CGSize(width: l.width * r, height: l.height * r) }
/host/spi-builder-workspace/Sources/Classes/common.cglayout.swift:87:34: error: cannot find type 'CGSize' in scope
85 |
86 | func -(l: CGSize, r: CGFloat) -> CGSize { return CGSize(width: l.width - r, height: l.height - r) }
87 | func +(l: CGSize, r: CGFloat) -> CGSize { return CGSize(width: l.width + r, height: l.height + r) }
| `- error: cannot find type 'CGSize' in scope
88 | func *(l: CGSize, r: CGFloat) -> CGSize { return CGSize(width: l.width * r, height: l.height * r) }
89 |
/host/spi-builder-workspace/Sources/Classes/common.cglayout.swift:87:11: error: cannot find type 'CGSize' in scope
85 |
86 | func -(l: CGSize, r: CGFloat) -> CGSize { return CGSize(width: l.width - r, height: l.height - r) }
87 | func +(l: CGSize, r: CGFloat) -> CGSize { return CGSize(width: l.width + r, height: l.height + r) }
| `- error: cannot find type 'CGSize' in scope
88 | func *(l: CGSize, r: CGFloat) -> CGSize { return CGSize(width: l.width * r, height: l.height * r) }
89 |
/host/spi-builder-workspace/Sources/Classes/common.cglayout.swift:87:22: error: cannot find type 'CGFloat' in scope
85 |
86 | func -(l: CGSize, r: CGFloat) -> CGSize { return CGSize(width: l.width - r, height: l.height - r) }
87 | func +(l: CGSize, r: CGFloat) -> CGSize { return CGSize(width: l.width + r, height: l.height + r) }
| `- error: cannot find type 'CGFloat' in scope
88 | func *(l: CGSize, r: CGFloat) -> CGSize { return CGSize(width: l.width * r, height: l.height * r) }
89 |
/host/spi-builder-workspace/Sources/Classes/stack.layoutGuide.cglayout.swift:47:81: error: cannot find type 'CGFloat' in scope
45 | }
46 |
47 | func space(for rects: [CGRect], in sourceRect: CGRect, along axis: RectAxis) -> CGFloat {
| `- error: cannot find type 'CGFloat' in scope
48 | let fullLength = rects.reduce(0) { $0 + axis.get(sizeAt: $1) }
49 | return (axis.get(sizeAt: sourceRect) - fullLength) / CGFloat(rects.count - 1)
/host/spi-builder-workspace/Sources/Classes/stack.layoutGuide.cglayout.swift:47:24: error: cannot find type 'CGRect' in scope
45 | }
46 |
47 | func space(for rects: [CGRect], in sourceRect: CGRect, along axis: RectAxis) -> CGFloat {
| `- error: cannot find type 'CGRect' in scope
48 | let fullLength = rects.reduce(0) { $0 + axis.get(sizeAt: $1) }
49 | return (axis.get(sizeAt: sourceRect) - fullLength) / CGFloat(rects.count - 1)
/host/spi-builder-workspace/Sources/Classes/stack.layoutGuide.cglayout.swift:47:48: error: cannot find type 'CGRect' in scope
45 | }
46 |
47 | func space(for rects: [CGRect], in sourceRect: CGRect, along axis: RectAxis) -> CGFloat {
| `- error: cannot find type 'CGRect' in scope
48 | let fullLength = rects.reduce(0) { $0 + axis.get(sizeAt: $1) }
49 | return (axis.get(sizeAt: sourceRect) - fullLength) / CGFloat(rects.count - 1)
/host/spi-builder-workspace/Sources/Classes/layoutBlock.cglayout.swift:22:16: error: cannot find type 'CGRect' in scope
20 | public protocol LayoutSnapshotProtocol { // TODO: Equatable
21 | /// Frame of layout block represented as snapshot
22 | var frame: CGRect { get }
| `- error: cannot find type 'CGRect' in scope
23 | /// Snapshots of child layout blocks
24 | var childSnapshots: [LayoutSnapshotProtocol] { get }
[13/19] Compiling CGLayout common.cglayout.swift
/host/spi-builder-workspace/Sources/Classes/common.cglayout.swift:86:34: error: cannot find type 'CGSize' in scope
84 | #endif
85 |
86 | func -(l: CGSize, r: CGFloat) -> CGSize { return CGSize(width: l.width - r, height: l.height - r) }
| `- error: cannot find type 'CGSize' in scope
87 | func +(l: CGSize, r: CGFloat) -> CGSize { return CGSize(width: l.width + r, height: l.height + r) }
88 | func *(l: CGSize, r: CGFloat) -> CGSize { return CGSize(width: l.width * r, height: l.height * r) }
/host/spi-builder-workspace/Sources/Classes/common.cglayout.swift:86:11: error: cannot find type 'CGSize' in scope
84 | #endif
85 |
86 | func -(l: CGSize, r: CGFloat) -> CGSize { return CGSize(width: l.width - r, height: l.height - r) }
| `- error: cannot find type 'CGSize' in scope
87 | func +(l: CGSize, r: CGFloat) -> CGSize { return CGSize(width: l.width + r, height: l.height + r) }
88 | func *(l: CGSize, r: CGFloat) -> CGSize { return CGSize(width: l.width * r, height: l.height * r) }
/host/spi-builder-workspace/Sources/Classes/common.cglayout.swift:86:22: error: cannot find type 'CGFloat' in scope
84 | #endif
85 |
86 | func -(l: CGSize, r: CGFloat) -> CGSize { return CGSize(width: l.width - r, height: l.height - r) }
| `- error: cannot find type 'CGFloat' in scope
87 | func +(l: CGSize, r: CGFloat) -> CGSize { return CGSize(width: l.width + r, height: l.height + r) }
88 | func *(l: CGSize, r: CGFloat) -> CGSize { return CGSize(width: l.width * r, height: l.height * r) }
/host/spi-builder-workspace/Sources/Classes/common.cglayout.swift:87:34: error: cannot find type 'CGSize' in scope
85 |
86 | func -(l: CGSize, r: CGFloat) -> CGSize { return CGSize(width: l.width - r, height: l.height - r) }
87 | func +(l: CGSize, r: CGFloat) -> CGSize { return CGSize(width: l.width + r, height: l.height + r) }
| `- error: cannot find type 'CGSize' in scope
88 | func *(l: CGSize, r: CGFloat) -> CGSize { return CGSize(width: l.width * r, height: l.height * r) }
89 |
/host/spi-builder-workspace/Sources/Classes/common.cglayout.swift:87:11: error: cannot find type 'CGSize' in scope
85 |
86 | func -(l: CGSize, r: CGFloat) -> CGSize { return CGSize(width: l.width - r, height: l.height - r) }
87 | func +(l: CGSize, r: CGFloat) -> CGSize { return CGSize(width: l.width + r, height: l.height + r) }
| `- error: cannot find type 'CGSize' in scope
88 | func *(l: CGSize, r: CGFloat) -> CGSize { return CGSize(width: l.width * r, height: l.height * r) }
89 |
/host/spi-builder-workspace/Sources/Classes/common.cglayout.swift:87:22: error: cannot find type 'CGFloat' in scope
85 |
86 | func -(l: CGSize, r: CGFloat) -> CGSize { return CGSize(width: l.width - r, height: l.height - r) }
87 | func +(l: CGSize, r: CGFloat) -> CGSize { return CGSize(width: l.width + r, height: l.height + r) }
| `- error: cannot find type 'CGFloat' in scope
88 | func *(l: CGSize, r: CGFloat) -> CGSize { return CGSize(width: l.width * r, height: l.height * r) }
89 |
/host/spi-builder-workspace/Sources/Classes/common.cglayout.swift:88:34: error: cannot find type 'CGSize' in scope
86 | func -(l: CGSize, r: CGFloat) -> CGSize { return CGSize(width: l.width - r, height: l.height - r) }
87 | func +(l: CGSize, r: CGFloat) -> CGSize { return CGSize(width: l.width + r, height: l.height + r) }
88 | func *(l: CGSize, r: CGFloat) -> CGSize { return CGSize(width: l.width * r, height: l.height * r) }
| `- error: cannot find type 'CGSize' in scope
89 |
90 | extension CGPoint {
/host/spi-builder-workspace/Sources/Classes/common.cglayout.swift:88:11: error: cannot find type 'CGSize' in scope
86 | func -(l: CGSize, r: CGFloat) -> CGSize { return CGSize(width: l.width - r, height: l.height - r) }
87 | func +(l: CGSize, r: CGFloat) -> CGSize { return CGSize(width: l.width + r, height: l.height + r) }
88 | func *(l: CGSize, r: CGFloat) -> CGSize { return CGSize(width: l.width * r, height: l.height * r) }
| `- error: cannot find type 'CGSize' in scope
89 |
90 | extension CGPoint {
/host/spi-builder-workspace/Sources/Classes/common.cglayout.swift:88:22: error: cannot find type 'CGFloat' in scope
86 | func -(l: CGSize, r: CGFloat) -> CGSize { return CGSize(width: l.width - r, height: l.height - r) }
87 | func +(l: CGSize, r: CGFloat) -> CGSize { return CGSize(width: l.width + r, height: l.height + r) }
88 | func *(l: CGSize, r: CGFloat) -> CGSize { return CGSize(width: l.width * r, height: l.height * r) }
| `- error: cannot find type 'CGFloat' in scope
89 |
90 | extension CGPoint {
/host/spi-builder-workspace/Sources/Classes/common.cglayout.swift:90:11: error: cannot find type 'CGPoint' in scope
88 | func *(l: CGSize, r: CGFloat) -> CGSize { return CGSize(width: l.width * r, height: l.height * r) }
89 |
90 | extension CGPoint {
| `- error: cannot find type 'CGPoint' in scope
91 | func positive() -> CGPoint { return CGPoint(x: abs(x), y: abs(y)) }
92 | func negated() -> CGPoint { return CGPoint(x: -x, y: -y) }
/host/spi-builder-workspace/Sources/Classes/common.cglayout.swift:95:11: error: cannot find type 'CGRect' in scope
93 | }
94 |
95 | extension CGRect {
| `- error: cannot find type 'CGRect' in scope
96 | var left: CGFloat { return minX }
97 | var right: CGFloat { return maxX }
/host/spi-builder-workspace/Sources/Classes/common.cglayout.swift:104:11: error: cannot find type 'CGRect' in scope
102 | func distance(from point: CGPoint) -> CGSize { return CGSize(width: maxX - point.x, height: maxY - point.y) }
103 | }
104 | extension CGRect {
| `- error: cannot find type 'CGRect' in scope
105 | mutating func apply(edgeInsets: EdgeInsets) {
106 | self = EdgeInsetsInsetRect(self, edgeInsets)
/host/spi-builder-workspace/Sources/Classes/common.cglayout.swift:113:71: error: cannot find type 'CGRect' in scope
111 | }
112 |
113 | func EdgeInsetsInsetRect(_ rect: CGRect, _ edgeInsets: EdgeInsets) -> CGRect {
| `- error: cannot find type 'CGRect' in scope
114 | #if os(iOS) || os(tvOS)
115 | return rect.inset(by: edgeInsets)
/host/spi-builder-workspace/Sources/Classes/common.cglayout.swift:113:34: error: cannot find type 'CGRect' in scope
111 | }
112 |
113 | func EdgeInsetsInsetRect(_ rect: CGRect, _ edgeInsets: EdgeInsets) -> CGRect {
| `- error: cannot find type 'CGRect' in scope
114 | #if os(iOS) || os(tvOS)
115 | return rect.inset(by: edgeInsets)
/host/spi-builder-workspace/Sources/Classes/common.cglayout.swift:113:56: error: cannot find type 'EdgeInsets' in scope
111 | }
112 |
113 | func EdgeInsetsInsetRect(_ rect: CGRect, _ edgeInsets: EdgeInsets) -> CGRect {
| `- error: cannot find type 'EdgeInsets' in scope
114 | #if os(iOS) || os(tvOS)
115 | return rect.inset(by: edgeInsets)
/host/spi-builder-workspace/Sources/Classes/common.cglayout.swift:131:11: error: cannot find type 'EdgeInsets' in scope
129 | #endif
130 |
131 | extension EdgeInsets {
| `- error: cannot find type 'EdgeInsets' in scope
132 | var horizontal: CGFloat { return left + right }
133 | var vertical: CGFloat { return top + bottom }
/host/spi-builder-workspace/Sources/Classes/common.cglayout.swift:38:16: error: cannot find 'ProcessInfo' in scope
36 | debugAction {
37 | if condition() {
38 | if ProcessInfo.processInfo.arguments.contains("CGL_LOG_WARNINGS") {
| `- error: cannot find 'ProcessInfo' in scope
39 | debugPrint("CGLayout WARNING: \(message())")
40 | }
/host/spi-builder-workspace/Sources/Classes/common.cglayout.swift:41:16: error: cannot find 'ProcessInfo' in scope
39 | debugPrint("CGLayout WARNING: \(message())")
40 | }
41 | if ProcessInfo.processInfo.arguments.contains("CGL_THROW_ON_WARNING") { fatalError() }
| `- error: cannot find 'ProcessInfo' in scope
42 | }
43 | }
/host/spi-builder-workspace/Sources/Classes/coordinate.cglayout.swift:24:61: error: cannot find type 'CGPoint' in scope
22 | /// Therefore should UIView.layer property when creates constraint relationship between UIView and CALayer.
23 | public protocol LayoutCoordinateSpace {
24 | func convert(point: CGPoint, to item: LayoutElement) -> CGPoint
| `- error: cannot find type 'CGPoint' in scope
25 | func convert(point: CGPoint, from item: LayoutElement) -> CGPoint
26 | func convert(rect: CGRect, to item: LayoutElement) -> CGRect
/host/spi-builder-workspace/Sources/Classes/coordinate.cglayout.swift:24:25: error: cannot find type 'CGPoint' in scope
22 | /// Therefore should UIView.layer property when creates constraint relationship between UIView and CALayer.
23 | public protocol LayoutCoordinateSpace {
24 | func convert(point: CGPoint, to item: LayoutElement) -> CGPoint
| `- error: cannot find type 'CGPoint' in scope
25 | func convert(point: CGPoint, from item: LayoutElement) -> CGPoint
26 | func convert(rect: CGRect, to item: LayoutElement) -> CGRect
/host/spi-builder-workspace/Sources/Classes/coordinate.cglayout.swift:25:63: error: cannot find type 'CGPoint' in scope
23 | public protocol LayoutCoordinateSpace {
24 | func convert(point: CGPoint, to item: LayoutElement) -> CGPoint
25 | func convert(point: CGPoint, from item: LayoutElement) -> CGPoint
| `- error: cannot find type 'CGPoint' in scope
26 | func convert(rect: CGRect, to item: LayoutElement) -> CGRect
27 | func convert(rect: CGRect, from item: LayoutElement) -> CGRect
/host/spi-builder-workspace/Sources/Classes/coordinate.cglayout.swift:25:25: error: cannot find type 'CGPoint' in scope
23 | public protocol LayoutCoordinateSpace {
24 | func convert(point: CGPoint, to item: LayoutElement) -> CGPoint
25 | func convert(point: CGPoint, from item: LayoutElement) -> CGPoint
| `- error: cannot find type 'CGPoint' in scope
26 | func convert(rect: CGRect, to item: LayoutElement) -> CGRect
27 | func convert(rect: CGRect, from item: LayoutElement) -> CGRect
/host/spi-builder-workspace/Sources/Classes/coordinate.cglayout.swift:26:59: error: cannot find type 'CGRect' in scope
24 | func convert(point: CGPoint, to item: LayoutElement) -> CGPoint
25 | func convert(point: CGPoint, from item: LayoutElement) -> CGPoint
26 | func convert(rect: CGRect, to item: LayoutElement) -> CGRect
| `- error: cannot find type 'CGRect' in scope
27 | func convert(rect: CGRect, from item: LayoutElement) -> CGRect
28 |
/host/spi-builder-workspace/Sources/Classes/coordinate.cglayout.swift:26:24: error: cannot find type 'CGRect' in scope
24 | func convert(point: CGPoint, to item: LayoutElement) -> CGPoint
25 | func convert(point: CGPoint, from item: LayoutElement) -> CGPoint
26 | func convert(rect: CGRect, to item: LayoutElement) -> CGRect
| `- error: cannot find type 'CGRect' in scope
27 | func convert(rect: CGRect, from item: LayoutElement) -> CGRect
28 |
/host/spi-builder-workspace/Sources/Classes/coordinate.cglayout.swift:27:61: error: cannot find type 'CGRect' in scope
25 | func convert(point: CGPoint, from item: LayoutElement) -> CGPoint
26 | func convert(rect: CGRect, to item: LayoutElement) -> CGRect
27 | func convert(rect: CGRect, from item: LayoutElement) -> CGRect
| `- error: cannot find type 'CGRect' in scope
28 |
29 | var bounds: CGRect { get }
/host/spi-builder-workspace/Sources/Classes/coordinate.cglayout.swift:27:24: error: cannot find type 'CGRect' in scope
25 | func convert(point: CGPoint, from item: LayoutElement) -> CGPoint
26 | func convert(rect: CGRect, to item: LayoutElement) -> CGRect
27 | func convert(rect: CGRect, from item: LayoutElement) -> CGRect
| `- error: cannot find type 'CGRect' in scope
28 |
29 | var bounds: CGRect { get }
/host/spi-builder-workspace/Sources/Classes/coordinate.cglayout.swift:29:17: error: cannot find type 'CGRect' in scope
27 | func convert(rect: CGRect, from item: LayoutElement) -> CGRect
28 |
29 | var bounds: CGRect { get }
| `- error: cannot find type 'CGRect' in scope
30 | }
31 | #if os(iOS) || os(tvOS)
/host/spi-builder-workspace/Sources/Classes/coordinate.cglayout.swift:219:96: error: cannot find type 'CGPoint' in scope
217 |
218 | extension LayoutCoordinateSpace where Self: LayoutElement {
219 | fileprivate static func convert(point: CGPoint, from: LayoutElement, to: LayoutElement) -> CGPoint {
| `- error: cannot find type 'CGPoint' in scope
220 | let list1Iterator = LinkedList(start: from) { $0.inLayoutTime.superElement }.makeIterator()
221 | var list2Iterator = LinkedList(start: to) { $0.inLayoutTime.superElement }.reversed().makeIterator()
/host/spi-builder-workspace/Sources/Classes/coordinate.cglayout.swift:219:44: error: cannot find type 'CGPoint' in scope
217 |
218 | extension LayoutCoordinateSpace where Self: LayoutElement {
219 | fileprivate static func convert(point: CGPoint, from: LayoutElement, to: LayoutElement) -> CGPoint {
| `- error: cannot find type 'CGPoint' in scope
220 | let list1Iterator = LinkedList(start: from) { $0.inLayoutTime.superElement }.makeIterator()
221 | var list2Iterator = LinkedList(start: to) { $0.inLayoutTime.superElement }.reversed().makeIterator()
/host/spi-builder-workspace/Sources/Classes/coordinate.cglayout.swift:236:68: error: cannot find type 'CGPoint' in scope
234 | return converted
235 | }
236 | public func convert(point: CGPoint, to item: LayoutElement) -> CGPoint {
| `- error: cannot find type 'CGPoint' in scope
237 | return Self.convert(point: point, from: self, to: item)
238 | }
/host/spi-builder-workspace/Sources/Classes/coordinate.cglayout.swift:236:32: error: cannot find type 'CGPoint' in scope
234 | return converted
235 | }
236 | public func convert(point: CGPoint, to item: LayoutElement) -> CGPoint {
| `- error: cannot find type 'CGPoint' in scope
237 | return Self.convert(point: point, from: self, to: item)
238 | }
/host/spi-builder-workspace/Sources/Classes/coordinate.cglayout.swift:240:70: error: cannot find type 'CGPoint' in scope
238 | }
239 |
240 | public func convert(point: CGPoint, from item: LayoutElement) -> CGPoint {
| `- error: cannot find type 'CGPoint' in scope
241 | return Self.convert(point: point, from: item, to: self)
242 | }
/host/spi-builder-workspace/Sources/Classes/coordinate.cglayout.swift:240:32: error: cannot find type 'CGPoint' in scope
238 | }
239 |
240 | public func convert(point: CGPoint, from item: LayoutElement) -> CGPoint {
| `- error: cannot find type 'CGPoint' in scope
241 | return Self.convert(point: point, from: item, to: self)
242 | }
/host/spi-builder-workspace/Sources/Classes/coordinate.cglayout.swift:243:66: error: cannot find type 'CGRect' in scope
241 | return Self.convert(point: point, from: item, to: self)
242 | }
243 | public func convert(rect: CGRect, to item: LayoutElement) -> CGRect {
| `- error: cannot find type 'CGRect' in scope
244 | var rect = rect
245 | rect.origin = convert(point: rect.origin, to: item)
/host/spi-builder-workspace/Sources/Classes/coordinate.cglayout.swift:243:31: error: cannot find type 'CGRect' in scope
241 | return Self.convert(point: point, from: item, to: self)
242 | }
243 | public func convert(rect: CGRect, to item: LayoutElement) -> CGRect {
| `- error: cannot find type 'CGRect' in scope
244 | var rect = rect
245 | rect.origin = convert(point: rect.origin, to: item)
/host/spi-builder-workspace/Sources/Classes/coordinate.cglayout.swift:248:68: error: cannot find type 'CGRect' in scope
246 | return rect
247 | }
248 | public func convert(rect: CGRect, from item: LayoutElement) -> CGRect {
| `- error: cannot find type 'CGRect' in scope
249 | var rect = rect
250 | rect.origin = convert(point: rect.origin, from: item)
/host/spi-builder-workspace/Sources/Classes/coordinate.cglayout.swift:248:31: error: cannot find type 'CGRect' in scope
246 | return rect
247 | }
248 | public func convert(rect: CGRect, from item: LayoutElement) -> CGRect {
| `- error: cannot find type 'CGRect' in scope
249 | var rect = rect
250 | rect.origin = convert(point: rect.origin, from: item)
/host/spi-builder-workspace/Sources/Classes/common.cglayout.swift:91:24: error: cannot find type 'CGPoint' in scope
89 |
90 | extension CGPoint {
91 | func positive() -> CGPoint { return CGPoint(x: abs(x), y: abs(y)) }
| `- error: cannot find type 'CGPoint' in scope
92 | func negated() -> CGPoint { return CGPoint(x: -x, y: -y) }
93 | }
/host/spi-builder-workspace/Sources/Classes/common.cglayout.swift:92:23: error: cannot find type 'CGPoint' in scope
90 | extension CGPoint {
91 | func positive() -> CGPoint { return CGPoint(x: abs(x), y: abs(y)) }
92 | func negated() -> CGPoint { return CGPoint(x: -x, y: -y) }
| `- error: cannot find type 'CGPoint' in scope
93 | }
94 |
/host/spi-builder-workspace/Sources/Classes/common.cglayout.swift:96:15: error: cannot find type 'CGFloat' in scope
94 |
95 | extension CGRect {
96 | var left: CGFloat { return minX }
| `- error: cannot find type 'CGFloat' in scope
97 | var right: CGFloat { return maxX }
98 | var top: CGFloat { return minY }
/host/spi-builder-workspace/Sources/Classes/common.cglayout.swift:97:16: error: cannot find type 'CGFloat' in scope
95 | extension CGRect {
96 | var left: CGFloat { return minX }
97 | var right: CGFloat { return maxX }
| `- error: cannot find type 'CGFloat' in scope
98 | var top: CGFloat { return minY }
99 | var bottom: CGFloat { return maxY }
/host/spi-builder-workspace/Sources/Classes/common.cglayout.swift:98:14: error: cannot find type 'CGFloat' in scope
96 | var left: CGFloat { return minX }
97 | var right: CGFloat { return maxX }
98 | var top: CGFloat { return minY }
| `- error: cannot find type 'CGFloat' in scope
99 | var bottom: CGFloat { return maxY }
100 |
/host/spi-builder-workspace/Sources/Classes/common.cglayout.swift:99:17: error: cannot find type 'CGFloat' in scope
97 | var right: CGFloat { return maxX }
98 | var top: CGFloat { return minY }
99 | var bottom: CGFloat { return maxY }
| `- error: cannot find type 'CGFloat' in scope
100 |
101 | var distanceFromOrigin: CGSize { return CGSize(width: maxX, height: maxY) }
/host/spi-builder-workspace/Sources/Classes/common.cglayout.swift:101:29: error: cannot find type 'CGSize' in scope
99 | var bottom: CGFloat { return maxY }
100 |
101 | var distanceFromOrigin: CGSize { return CGSize(width: maxX, height: maxY) }
| `- error: cannot find type 'CGSize' in scope
102 | func distance(from point: CGPoint) -> CGSize { return CGSize(width: maxX - point.x, height: maxY - point.y) }
103 | }
/host/spi-builder-workspace/Sources/Classes/common.cglayout.swift:102:43: error: cannot find type 'CGSize' in scope
100 |
101 | var distanceFromOrigin: CGSize { return CGSize(width: maxX, height: maxY) }
102 | func distance(from point: CGPoint) -> CGSize { return CGSize(width: maxX - point.x, height: maxY - point.y) }
| `- error: cannot find type 'CGSize' in scope
103 | }
104 | extension CGRect {
/host/spi-builder-workspace/Sources/Classes/common.cglayout.swift:102:31: error: cannot find type 'CGPoint' in scope
100 |
101 | var distanceFromOrigin: CGSize { return CGSize(width: maxX, height: maxY) }
102 | func distance(from point: CGPoint) -> CGSize { return CGSize(width: maxX - point.x, height: maxY - point.y) }
| `- error: cannot find type 'CGPoint' in scope
103 | }
104 | extension CGRect {
/host/spi-builder-workspace/Sources/Classes/common.cglayout.swift:105:37: error: cannot find type 'EdgeInsets' in scope
103 | }
104 | extension CGRect {
105 | mutating func apply(edgeInsets: EdgeInsets) {
| `- error: cannot find type 'EdgeInsets' in scope
106 | self = EdgeInsetsInsetRect(self, edgeInsets)
107 | }
/host/spi-builder-workspace/Sources/Classes/common.cglayout.swift:108:46: error: cannot find type 'CGRect' in scope
106 | self = EdgeInsetsInsetRect(self, edgeInsets)
107 | }
108 | func applying(edgeInsets: EdgeInsets) -> CGRect { var this = self; this.apply(edgeInsets: edgeInsets); return this }
| `- error: cannot find type 'CGRect' in scope
109 |
110 | public func asLayout() -> Layout { return Layout(x: .left(origin.x), y: .top(origin.y), width: .fixed(width), height: .fixed(height)) }
/host/spi-builder-workspace/Sources/Classes/common.cglayout.swift:108:31: error: cannot find type 'EdgeInsets' in scope
106 | self = EdgeInsetsInsetRect(self, edgeInsets)
107 | }
108 | func applying(edgeInsets: EdgeInsets) -> CGRect { var this = self; this.apply(edgeInsets: edgeInsets); return this }
| `- error: cannot find type 'EdgeInsets' in scope
109 |
110 | public func asLayout() -> Layout { return Layout(x: .left(origin.x), y: .top(origin.y), width: .fixed(width), height: .fixed(height)) }
/host/spi-builder-workspace/Sources/Classes/common.cglayout.swift:132:21: error: cannot find type 'CGFloat' in scope
130 |
131 | extension EdgeInsets {
132 | var horizontal: CGFloat { return left + right }
| `- error: cannot find type 'CGFloat' in scope
133 | var vertical: CGFloat { return top + bottom }
134 | #if os(macOS) || os(Linux)
/host/spi-builder-workspace/Sources/Classes/common.cglayout.swift:133:19: error: cannot find type 'CGFloat' in scope
131 | extension EdgeInsets {
132 | var horizontal: CGFloat { return left + right }
133 | var vertical: CGFloat { return top + bottom }
| `- error: cannot find type 'CGFloat' in scope
134 | #if os(macOS) || os(Linux)
135 | public static var zero: EdgeInsets { return EdgeInsets(top: 0, left: 0, bottom: 0, right: 0) }
[14/19] Compiling CGLayout container.cglayout.swift
/host/spi-builder-workspace/Sources/Classes/common.cglayout.swift:86:34: error: cannot find type 'CGSize' in scope
84 | #endif
85 |
86 | func -(l: CGSize, r: CGFloat) -> CGSize { return CGSize(width: l.width - r, height: l.height - r) }
| `- error: cannot find type 'CGSize' in scope
87 | func +(l: CGSize, r: CGFloat) -> CGSize { return CGSize(width: l.width + r, height: l.height + r) }
88 | func *(l: CGSize, r: CGFloat) -> CGSize { return CGSize(width: l.width * r, height: l.height * r) }
/host/spi-builder-workspace/Sources/Classes/common.cglayout.swift:86:11: error: cannot find type 'CGSize' in scope
84 | #endif
85 |
86 | func -(l: CGSize, r: CGFloat) -> CGSize { return CGSize(width: l.width - r, height: l.height - r) }
| `- error: cannot find type 'CGSize' in scope
87 | func +(l: CGSize, r: CGFloat) -> CGSize { return CGSize(width: l.width + r, height: l.height + r) }
88 | func *(l: CGSize, r: CGFloat) -> CGSize { return CGSize(width: l.width * r, height: l.height * r) }
/host/spi-builder-workspace/Sources/Classes/common.cglayout.swift:86:22: error: cannot find type 'CGFloat' in scope
84 | #endif
85 |
86 | func -(l: CGSize, r: CGFloat) -> CGSize { return CGSize(width: l.width - r, height: l.height - r) }
| `- error: cannot find type 'CGFloat' in scope
87 | func +(l: CGSize, r: CGFloat) -> CGSize { return CGSize(width: l.width + r, height: l.height + r) }
88 | func *(l: CGSize, r: CGFloat) -> CGSize { return CGSize(width: l.width * r, height: l.height * r) }
/host/spi-builder-workspace/Sources/Classes/common.cglayout.swift:87:34: error: cannot find type 'CGSize' in scope
85 |
86 | func -(l: CGSize, r: CGFloat) -> CGSize { return CGSize(width: l.width - r, height: l.height - r) }
87 | func +(l: CGSize, r: CGFloat) -> CGSize { return CGSize(width: l.width + r, height: l.height + r) }
| `- error: cannot find type 'CGSize' in scope
88 | func *(l: CGSize, r: CGFloat) -> CGSize { return CGSize(width: l.width * r, height: l.height * r) }
89 |
/host/spi-builder-workspace/Sources/Classes/common.cglayout.swift:87:11: error: cannot find type 'CGSize' in scope
85 |
86 | func -(l: CGSize, r: CGFloat) -> CGSize { return CGSize(width: l.width - r, height: l.height - r) }
87 | func +(l: CGSize, r: CGFloat) -> CGSize { return CGSize(width: l.width + r, height: l.height + r) }
| `- error: cannot find type 'CGSize' in scope
88 | func *(l: CGSize, r: CGFloat) -> CGSize { return CGSize(width: l.width * r, height: l.height * r) }
89 |
/host/spi-builder-workspace/Sources/Classes/common.cglayout.swift:87:22: error: cannot find type 'CGFloat' in scope
85 |
86 | func -(l: CGSize, r: CGFloat) -> CGSize { return CGSize(width: l.width - r, height: l.height - r) }
87 | func +(l: CGSize, r: CGFloat) -> CGSize { return CGSize(width: l.width + r, height: l.height + r) }
| `- error: cannot find type 'CGFloat' in scope
88 | func *(l: CGSize, r: CGFloat) -> CGSize { return CGSize(width: l.width * r, height: l.height * r) }
89 |
/host/spi-builder-workspace/Sources/Classes/common.cglayout.swift:88:34: error: cannot find type 'CGSize' in scope
86 | func -(l: CGSize, r: CGFloat) -> CGSize { return CGSize(width: l.width - r, height: l.height - r) }
87 | func +(l: CGSize, r: CGFloat) -> CGSize { return CGSize(width: l.width + r, height: l.height + r) }
88 | func *(l: CGSize, r: CGFloat) -> CGSize { return CGSize(width: l.width * r, height: l.height * r) }
| `- error: cannot find type 'CGSize' in scope
89 |
90 | extension CGPoint {
/host/spi-builder-workspace/Sources/Classes/common.cglayout.swift:88:11: error: cannot find type 'CGSize' in scope
86 | func -(l: CGSize, r: CGFloat) -> CGSize { return CGSize(width: l.width - r, height: l.height - r) }
87 | func +(l: CGSize, r: CGFloat) -> CGSize { return CGSize(width: l.width + r, height: l.height + r) }
88 | func *(l: CGSize, r: CGFloat) -> CGSize { return CGSize(width: l.width * r, height: l.height * r) }
| `- error: cannot find type 'CGSize' in scope
89 |
90 | extension CGPoint {
/host/spi-builder-workspace/Sources/Classes/common.cglayout.swift:88:22: error: cannot find type 'CGFloat' in scope
86 | func -(l: CGSize, r: CGFloat) -> CGSize { return CGSize(width: l.width - r, height: l.height - r) }
87 | func +(l: CGSize, r: CGFloat) -> CGSize { return CGSize(width: l.width + r, height: l.height + r) }
88 | func *(l: CGSize, r: CGFloat) -> CGSize { return CGSize(width: l.width * r, height: l.height * r) }
| `- error: cannot find type 'CGFloat' in scope
89 |
90 | extension CGPoint {
/host/spi-builder-workspace/Sources/Classes/common.cglayout.swift:90:11: error: cannot find type 'CGPoint' in scope
88 | func *(l: CGSize, r: CGFloat) -> CGSize { return CGSize(width: l.width * r, height: l.height * r) }
89 |
90 | extension CGPoint {
| `- error: cannot find type 'CGPoint' in scope
91 | func positive() -> CGPoint { return CGPoint(x: abs(x), y: abs(y)) }
92 | func negated() -> CGPoint { return CGPoint(x: -x, y: -y) }
/host/spi-builder-workspace/Sources/Classes/common.cglayout.swift:95:11: error: cannot find type 'CGRect' in scope
93 | }
94 |
95 | extension CGRect {
| `- error: cannot find type 'CGRect' in scope
96 | var left: CGFloat { return minX }
97 | var right: CGFloat { return maxX }
/host/spi-builder-workspace/Sources/Classes/common.cglayout.swift:104:11: error: cannot find type 'CGRect' in scope
102 | func distance(from point: CGPoint) -> CGSize { return CGSize(width: maxX - point.x, height: maxY - point.y) }
103 | }
104 | extension CGRect {
| `- error: cannot find type 'CGRect' in scope
105 | mutating func apply(edgeInsets: EdgeInsets) {
106 | self = EdgeInsetsInsetRect(self, edgeInsets)
/host/spi-builder-workspace/Sources/Classes/common.cglayout.swift:113:71: error: cannot find type 'CGRect' in scope
111 | }
112 |
113 | func EdgeInsetsInsetRect(_ rect: CGRect, _ edgeInsets: EdgeInsets) -> CGRect {
| `- error: cannot find type 'CGRect' in scope
114 | #if os(iOS) || os(tvOS)
115 | return rect.inset(by: edgeInsets)
/host/spi-builder-workspace/Sources/Classes/common.cglayout.swift:113:34: error: cannot find type 'CGRect' in scope
111 | }
112 |
113 | func EdgeInsetsInsetRect(_ rect: CGRect, _ edgeInsets: EdgeInsets) -> CGRect {
| `- error: cannot find type 'CGRect' in scope
114 | #if os(iOS) || os(tvOS)
115 | return rect.inset(by: edgeInsets)
/host/spi-builder-workspace/Sources/Classes/common.cglayout.swift:113:56: error: cannot find type 'EdgeInsets' in scope
111 | }
112 |
113 | func EdgeInsetsInsetRect(_ rect: CGRect, _ edgeInsets: EdgeInsets) -> CGRect {
| `- error: cannot find type 'EdgeInsets' in scope
114 | #if os(iOS) || os(tvOS)
115 | return rect.inset(by: edgeInsets)
/host/spi-builder-workspace/Sources/Classes/common.cglayout.swift:131:11: error: cannot find type 'EdgeInsets' in scope
129 | #endif
130 |
131 | extension EdgeInsets {
| `- error: cannot find type 'EdgeInsets' in scope
132 | var horizontal: CGFloat { return left + right }
133 | var vertical: CGFloat { return top + bottom }
/host/spi-builder-workspace/Sources/Classes/common.cglayout.swift:38:16: error: cannot find 'ProcessInfo' in scope
36 | debugAction {
37 | if condition() {
38 | if ProcessInfo.processInfo.arguments.contains("CGL_LOG_WARNINGS") {
| `- error: cannot find 'ProcessInfo' in scope
39 | debugPrint("CGLayout WARNING: \(message())")
40 | }
/host/spi-builder-workspace/Sources/Classes/common.cglayout.swift:41:16: error: cannot find 'ProcessInfo' in scope
39 | debugPrint("CGLayout WARNING: \(message())")
40 | }
41 | if ProcessInfo.processInfo.arguments.contains("CGL_THROW_ON_WARNING") { fatalError() }
| `- error: cannot find 'ProcessInfo' in scope
42 | }
43 | }
/host/spi-builder-workspace/Sources/Classes/coordinate.cglayout.swift:24:61: error: cannot find type 'CGPoint' in scope
22 | /// Therefore should UIView.layer property when creates constraint relationship between UIView and CALayer.
23 | public protocol LayoutCoordinateSpace {
24 | func convert(point: CGPoint, to item: LayoutElement) -> CGPoint
| `- error: cannot find type 'CGPoint' in scope
25 | func convert(point: CGPoint, from item: LayoutElement) -> CGPoint
26 | func convert(rect: CGRect, to item: LayoutElement) -> CGRect
/host/spi-builder-workspace/Sources/Classes/coordinate.cglayout.swift:24:25: error: cannot find type 'CGPoint' in scope
22 | /// Therefore should UIView.layer property when creates constraint relationship between UIView and CALayer.
23 | public protocol LayoutCoordinateSpace {
24 | func convert(point: CGPoint, to item: LayoutElement) -> CGPoint
| `- error: cannot find type 'CGPoint' in scope
25 | func convert(point: CGPoint, from item: LayoutElement) -> CGPoint
26 | func convert(rect: CGRect, to item: LayoutElement) -> CGRect
/host/spi-builder-workspace/Sources/Classes/coordinate.cglayout.swift:25:63: error: cannot find type 'CGPoint' in scope
23 | public protocol LayoutCoordinateSpace {
24 | func convert(point: CGPoint, to item: LayoutElement) -> CGPoint
25 | func convert(point: CGPoint, from item: LayoutElement) -> CGPoint
| `- error: cannot find type 'CGPoint' in scope
26 | func convert(rect: CGRect, to item: LayoutElement) -> CGRect
27 | func convert(rect: CGRect, from item: LayoutElement) -> CGRect
/host/spi-builder-workspace/Sources/Classes/coordinate.cglayout.swift:25:25: error: cannot find type 'CGPoint' in scope
23 | public protocol LayoutCoordinateSpace {
24 | func convert(point: CGPoint, to item: LayoutElement) -> CGPoint
25 | func convert(point: CGPoint, from item: LayoutElement) -> CGPoint
| `- error: cannot find type 'CGPoint' in scope
26 | func convert(rect: CGRect, to item: LayoutElement) -> CGRect
27 | func convert(rect: CGRect, from item: LayoutElement) -> CGRect
/host/spi-builder-workspace/Sources/Classes/coordinate.cglayout.swift:26:59: error: cannot find type 'CGRect' in scope
24 | func convert(point: CGPoint, to item: LayoutElement) -> CGPoint
25 | func convert(point: CGPoint, from item: LayoutElement) -> CGPoint
26 | func convert(rect: CGRect, to item: LayoutElement) -> CGRect
| `- error: cannot find type 'CGRect' in scope
27 | func convert(rect: CGRect, from item: LayoutElement) -> CGRect
28 |
/host/spi-builder-workspace/Sources/Classes/coordinate.cglayout.swift:26:24: error: cannot find type 'CGRect' in scope
24 | func convert(point: CGPoint, to item: LayoutElement) -> CGPoint
25 | func convert(point: CGPoint, from item: LayoutElement) -> CGPoint
26 | func convert(rect: CGRect, to item: LayoutElement) -> CGRect
| `- error: cannot find type 'CGRect' in scope
27 | func convert(rect: CGRect, from item: LayoutElement) -> CGRect
28 |
/host/spi-builder-workspace/Sources/Classes/coordinate.cglayout.swift:27:61: error: cannot find type 'CGRect' in scope
25 | func convert(point: CGPoint, from item: LayoutElement) -> CGPoint
26 | func convert(rect: CGRect, to item: LayoutElement) -> CGRect
27 | func convert(rect: CGRect, from item: LayoutElement) -> CGRect
| `- error: cannot find type 'CGRect' in scope
28 |
29 | var bounds: CGRect { get }
/host/spi-builder-workspace/Sources/Classes/coordinate.cglayout.swift:27:24: error: cannot find type 'CGRect' in scope
25 | func convert(point: CGPoint, from item: LayoutElement) -> CGPoint
26 | func convert(rect: CGRect, to item: LayoutElement) -> CGRect
27 | func convert(rect: CGRect, from item: LayoutElement) -> CGRect
| `- error: cannot find type 'CGRect' in scope
28 |
29 | var bounds: CGRect { get }
/host/spi-builder-workspace/Sources/Classes/coordinate.cglayout.swift:29:17: error: cannot find type 'CGRect' in scope
27 | func convert(rect: CGRect, from item: LayoutElement) -> CGRect
28 |
29 | var bounds: CGRect { get }
| `- error: cannot find type 'CGRect' in scope
30 | }
31 | #if os(iOS) || os(tvOS)
/host/spi-builder-workspace/Sources/Classes/coordinate.cglayout.swift:219:96: error: cannot find type 'CGPoint' in scope
217 |
218 | extension LayoutCoordinateSpace where Self: LayoutElement {
219 | fileprivate static func convert(point: CGPoint, from: LayoutElement, to: LayoutElement) -> CGPoint {
| `- error: cannot find type 'CGPoint' in scope
220 | let list1Iterator = LinkedList(start: from) { $0.inLayoutTime.superElement }.makeIterator()
221 | var list2Iterator = LinkedList(start: to) { $0.inLayoutTime.superElement }.reversed().makeIterator()
/host/spi-builder-workspace/Sources/Classes/coordinate.cglayout.swift:219:44: error: cannot find type 'CGPoint' in scope
217 |
218 | extension LayoutCoordinateSpace where Self: LayoutElement {
219 | fileprivate static func convert(point: CGPoint, from: LayoutElement, to: LayoutElement) -> CGPoint {
| `- error: cannot find type 'CGPoint' in scope
220 | let list1Iterator = LinkedList(start: from) { $0.inLayoutTime.superElement }.makeIterator()
221 | var list2Iterator = LinkedList(start: to) { $0.inLayoutTime.superElement }.reversed().makeIterator()
/host/spi-builder-workspace/Sources/Classes/coordinate.cglayout.swift:236:68: error: cannot find type 'CGPoint' in scope
234 | return converted
235 | }
236 | public func convert(point: CGPoint, to item: LayoutElement) -> CGPoint {
| `- error: cannot find type 'CGPoint' in scope
237 | return Self.convert(point: point, from: self, to: item)
238 | }
/host/spi-builder-workspace/Sources/Classes/coordinate.cglayout.swift:236:32: error: cannot find type 'CGPoint' in scope
234 | return converted
235 | }
236 | public func convert(point: CGPoint, to item: LayoutElement) -> CGPoint {
| `- error: cannot find type 'CGPoint' in scope
237 | return Self.convert(point: point, from: self, to: item)
238 | }
/host/spi-builder-workspace/Sources/Classes/coordinate.cglayout.swift:240:70: error: cannot find type 'CGPoint' in scope
238 | }
239 |
240 | public func convert(point: CGPoint, from item: LayoutElement) -> CGPoint {
| `- error: cannot find type 'CGPoint' in scope
241 | return Self.convert(point: point, from: item, to: self)
242 | }
/host/spi-builder-workspace/Sources/Classes/coordinate.cglayout.swift:240:32: error: cannot find type 'CGPoint' in scope
238 | }
239 |
240 | public func convert(point: CGPoint, from item: LayoutElement) -> CGPoint {
| `- error: cannot find type 'CGPoint' in scope
241 | return Self.convert(point: point, from: item, to: self)
242 | }
/host/spi-builder-workspace/Sources/Classes/coordinate.cglayout.swift:243:66: error: cannot find type 'CGRect' in scope
241 | return Self.convert(point: point, from: item, to: self)
242 | }
243 | public func convert(rect: CGRect, to item: LayoutElement) -> CGRect {
| `- error: cannot find type 'CGRect' in scope
244 | var rect = rect
245 | rect.origin = convert(point: rect.origin, to: item)
/host/spi-builder-workspace/Sources/Classes/coordinate.cglayout.swift:243:31: error: cannot find type 'CGRect' in scope
241 | return Self.convert(point: point, from: item, to: self)
242 | }
243 | public func convert(rect: CGRect, to item: LayoutElement) -> CGRect {
| `- error: cannot find type 'CGRect' in scope
244 | var rect = rect
245 | rect.origin = convert(point: rect.origin, to: item)
/host/spi-builder-workspace/Sources/Classes/coordinate.cglayout.swift:248:68: error: cannot find type 'CGRect' in scope
246 | return rect
247 | }
248 | public func convert(rect: CGRect, from item: LayoutElement) -> CGRect {
| `- error: cannot find type 'CGRect' in scope
249 | var rect = rect
250 | rect.origin = convert(point: rect.origin, from: item)
/host/spi-builder-workspace/Sources/Classes/coordinate.cglayout.swift:248:31: error: cannot find type 'CGRect' in scope
246 | return rect
247 | }
248 | public func convert(rect: CGRect, from item: LayoutElement) -> CGRect {
| `- error: cannot find type 'CGRect' in scope
249 | var rect = rect
250 | rect.origin = convert(point: rect.origin, from: item)
/host/spi-builder-workspace/Sources/Classes/common.cglayout.swift:91:24: error: cannot find type 'CGPoint' in scope
89 |
90 | extension CGPoint {
91 | func positive() -> CGPoint { return CGPoint(x: abs(x), y: abs(y)) }
| `- error: cannot find type 'CGPoint' in scope
92 | func negated() -> CGPoint { return CGPoint(x: -x, y: -y) }
93 | }
/host/spi-builder-workspace/Sources/Classes/common.cglayout.swift:92:23: error: cannot find type 'CGPoint' in scope
90 | extension CGPoint {
91 | func positive() -> CGPoint { return CGPoint(x: abs(x), y: abs(y)) }
92 | func negated() -> CGPoint { return CGPoint(x: -x, y: -y) }
| `- error: cannot find type 'CGPoint' in scope
93 | }
94 |
/host/spi-builder-workspace/Sources/Classes/common.cglayout.swift:96:15: error: cannot find type 'CGFloat' in scope
94 |
95 | extension CGRect {
96 | var left: CGFloat { return minX }
| `- error: cannot find type 'CGFloat' in scope
97 | var right: CGFloat { return maxX }
98 | var top: CGFloat { return minY }
/host/spi-builder-workspace/Sources/Classes/common.cglayout.swift:97:16: error: cannot find type 'CGFloat' in scope
95 | extension CGRect {
96 | var left: CGFloat { return minX }
97 | var right: CGFloat { return maxX }
| `- error: cannot find type 'CGFloat' in scope
98 | var top: CGFloat { return minY }
99 | var bottom: CGFloat { return maxY }
/host/spi-builder-workspace/Sources/Classes/common.cglayout.swift:98:14: error: cannot find type 'CGFloat' in scope
96 | var left: CGFloat { return minX }
97 | var right: CGFloat { return maxX }
98 | var top: CGFloat { return minY }
| `- error: cannot find type 'CGFloat' in scope
99 | var bottom: CGFloat { return maxY }
100 |
/host/spi-builder-workspace/Sources/Classes/common.cglayout.swift:99:17: error: cannot find type 'CGFloat' in scope
97 | var right: CGFloat { return maxX }
98 | var top: CGFloat { return minY }
99 | var bottom: CGFloat { return maxY }
| `- error: cannot find type 'CGFloat' in scope
100 |
101 | var distanceFromOrigin: CGSize { return CGSize(width: maxX, height: maxY) }
/host/spi-builder-workspace/Sources/Classes/common.cglayout.swift:101:29: error: cannot find type 'CGSize' in scope
99 | var bottom: CGFloat { return maxY }
100 |
101 | var distanceFromOrigin: CGSize { return CGSize(width: maxX, height: maxY) }
| `- error: cannot find type 'CGSize' in scope
102 | func distance(from point: CGPoint) -> CGSize { return CGSize(width: maxX - point.x, height: maxY - point.y) }
103 | }
/host/spi-builder-workspace/Sources/Classes/common.cglayout.swift:102:43: error: cannot find type 'CGSize' in scope
100 |
101 | var distanceFromOrigin: CGSize { return CGSize(width: maxX, height: maxY) }
102 | func distance(from point: CGPoint) -> CGSize { return CGSize(width: maxX - point.x, height: maxY - point.y) }
| `- error: cannot find type 'CGSize' in scope
103 | }
104 | extension CGRect {
/host/spi-builder-workspace/Sources/Classes/common.cglayout.swift:102:31: error: cannot find type 'CGPoint' in scope
100 |
101 | var distanceFromOrigin: CGSize { return CGSize(width: maxX, height: maxY) }
102 | func distance(from point: CGPoint) -> CGSize { return CGSize(width: maxX - point.x, height: maxY - point.y) }
| `- error: cannot find type 'CGPoint' in scope
103 | }
104 | extension CGRect {
/host/spi-builder-workspace/Sources/Classes/common.cglayout.swift:105:37: error: cannot find type 'EdgeInsets' in scope
103 | }
104 | extension CGRect {
105 | mutating func apply(edgeInsets: EdgeInsets) {
| `- error: cannot find type 'EdgeInsets' in scope
106 | self = EdgeInsetsInsetRect(self, edgeInsets)
107 | }
/host/spi-builder-workspace/Sources/Classes/common.cglayout.swift:108:46: error: cannot find type 'CGRect' in scope
106 | self = EdgeInsetsInsetRect(self, edgeInsets)
107 | }
108 | func applying(edgeInsets: EdgeInsets) -> CGRect { var this = self; this.apply(edgeInsets: edgeInsets); return this }
| `- error: cannot find type 'CGRect' in scope
109 |
110 | public func asLayout() -> Layout { return Layout(x: .left(origin.x), y: .top(origin.y), width: .fixed(width), height: .fixed(height)) }
/host/spi-builder-workspace/Sources/Classes/common.cglayout.swift:108:31: error: cannot find type 'EdgeInsets' in scope
106 | self = EdgeInsetsInsetRect(self, edgeInsets)
107 | }
108 | func applying(edgeInsets: EdgeInsets) -> CGRect { var this = self; this.apply(edgeInsets: edgeInsets); return this }
| `- error: cannot find type 'EdgeInsets' in scope
109 |
110 | public func asLayout() -> Layout { return Layout(x: .left(origin.x), y: .top(origin.y), width: .fixed(width), height: .fixed(height)) }
/host/spi-builder-workspace/Sources/Classes/common.cglayout.swift:132:21: error: cannot find type 'CGFloat' in scope
130 |
131 | extension EdgeInsets {
132 | var horizontal: CGFloat { return left + right }
| `- error: cannot find type 'CGFloat' in scope
133 | var vertical: CGFloat { return top + bottom }
134 | #if os(macOS) || os(Linux)
/host/spi-builder-workspace/Sources/Classes/common.cglayout.swift:133:19: error: cannot find type 'CGFloat' in scope
131 | extension EdgeInsets {
132 | var horizontal: CGFloat { return left + right }
133 | var vertical: CGFloat { return top + bottom }
| `- error: cannot find type 'CGFloat' in scope
134 | #if os(macOS) || os(Linux)
135 | public static var zero: EdgeInsets { return EdgeInsets(top: 0, left: 0, bottom: 0, right: 0) }
[15/19] Compiling CGLayout coordinate.cglayout.swift
/host/spi-builder-workspace/Sources/Classes/common.cglayout.swift:86:34: error: cannot find type 'CGSize' in scope
84 | #endif
85 |
86 | func -(l: CGSize, r: CGFloat) -> CGSize { return CGSize(width: l.width - r, height: l.height - r) }
| `- error: cannot find type 'CGSize' in scope
87 | func +(l: CGSize, r: CGFloat) -> CGSize { return CGSize(width: l.width + r, height: l.height + r) }
88 | func *(l: CGSize, r: CGFloat) -> CGSize { return CGSize(width: l.width * r, height: l.height * r) }
/host/spi-builder-workspace/Sources/Classes/common.cglayout.swift:86:11: error: cannot find type 'CGSize' in scope
84 | #endif
85 |
86 | func -(l: CGSize, r: CGFloat) -> CGSize { return CGSize(width: l.width - r, height: l.height - r) }
| `- error: cannot find type 'CGSize' in scope
87 | func +(l: CGSize, r: CGFloat) -> CGSize { return CGSize(width: l.width + r, height: l.height + r) }
88 | func *(l: CGSize, r: CGFloat) -> CGSize { return CGSize(width: l.width * r, height: l.height * r) }
/host/spi-builder-workspace/Sources/Classes/common.cglayout.swift:86:22: error: cannot find type 'CGFloat' in scope
84 | #endif
85 |
86 | func -(l: CGSize, r: CGFloat) -> CGSize { return CGSize(width: l.width - r, height: l.height - r) }
| `- error: cannot find type 'CGFloat' in scope
87 | func +(l: CGSize, r: CGFloat) -> CGSize { return CGSize(width: l.width + r, height: l.height + r) }
88 | func *(l: CGSize, r: CGFloat) -> CGSize { return CGSize(width: l.width * r, height: l.height * r) }
/host/spi-builder-workspace/Sources/Classes/common.cglayout.swift:87:34: error: cannot find type 'CGSize' in scope
85 |
86 | func -(l: CGSize, r: CGFloat) -> CGSize { return CGSize(width: l.width - r, height: l.height - r) }
87 | func +(l: CGSize, r: CGFloat) -> CGSize { return CGSize(width: l.width + r, height: l.height + r) }
| `- error: cannot find type 'CGSize' in scope
88 | func *(l: CGSize, r: CGFloat) -> CGSize { return CGSize(width: l.width * r, height: l.height * r) }
89 |
/host/spi-builder-workspace/Sources/Classes/common.cglayout.swift:87:11: error: cannot find type 'CGSize' in scope
85 |
86 | func -(l: CGSize, r: CGFloat) -> CGSize { return CGSize(width: l.width - r, height: l.height - r) }
87 | func +(l: CGSize, r: CGFloat) -> CGSize { return CGSize(width: l.width + r, height: l.height + r) }
| `- error: cannot find type 'CGSize' in scope
88 | func *(l: CGSize, r: CGFloat) -> CGSize { return CGSize(width: l.width * r, height: l.height * r) }
89 |
/host/spi-builder-workspace/Sources/Classes/common.cglayout.swift:87:22: error: cannot find type 'CGFloat' in scope
85 |
86 | func -(l: CGSize, r: CGFloat) -> CGSize { return CGSize(width: l.width - r, height: l.height - r) }
87 | func +(l: CGSize, r: CGFloat) -> CGSize { return CGSize(width: l.width + r, height: l.height + r) }
| `- error: cannot find type 'CGFloat' in scope
88 | func *(l: CGSize, r: CGFloat) -> CGSize { return CGSize(width: l.width * r, height: l.height * r) }
89 |
/host/spi-builder-workspace/Sources/Classes/common.cglayout.swift:88:34: error: cannot find type 'CGSize' in scope
86 | func -(l: CGSize, r: CGFloat) -> CGSize { return CGSize(width: l.width - r, height: l.height - r) }
87 | func +(l: CGSize, r: CGFloat) -> CGSize { return CGSize(width: l.width + r, height: l.height + r) }
88 | func *(l: CGSize, r: CGFloat) -> CGSize { return CGSize(width: l.width * r, height: l.height * r) }
| `- error: cannot find type 'CGSize' in scope
89 |
90 | extension CGPoint {
/host/spi-builder-workspace/Sources/Classes/common.cglayout.swift:88:11: error: cannot find type 'CGSize' in scope
86 | func -(l: CGSize, r: CGFloat) -> CGSize { return CGSize(width: l.width - r, height: l.height - r) }
87 | func +(l: CGSize, r: CGFloat) -> CGSize { return CGSize(width: l.width + r, height: l.height + r) }
88 | func *(l: CGSize, r: CGFloat) -> CGSize { return CGSize(width: l.width * r, height: l.height * r) }
| `- error: cannot find type 'CGSize' in scope
89 |
90 | extension CGPoint {
/host/spi-builder-workspace/Sources/Classes/common.cglayout.swift:88:22: error: cannot find type 'CGFloat' in scope
86 | func -(l: CGSize, r: CGFloat) -> CGSize { return CGSize(width: l.width - r, height: l.height - r) }
87 | func +(l: CGSize, r: CGFloat) -> CGSize { return CGSize(width: l.width + r, height: l.height + r) }
88 | func *(l: CGSize, r: CGFloat) -> CGSize { return CGSize(width: l.width * r, height: l.height * r) }
| `- error: cannot find type 'CGFloat' in scope
89 |
90 | extension CGPoint {
/host/spi-builder-workspace/Sources/Classes/common.cglayout.swift:90:11: error: cannot find type 'CGPoint' in scope
88 | func *(l: CGSize, r: CGFloat) -> CGSize { return CGSize(width: l.width * r, height: l.height * r) }
89 |
90 | extension CGPoint {
| `- error: cannot find type 'CGPoint' in scope
91 | func positive() -> CGPoint { return CGPoint(x: abs(x), y: abs(y)) }
92 | func negated() -> CGPoint { return CGPoint(x: -x, y: -y) }
/host/spi-builder-workspace/Sources/Classes/common.cglayout.swift:95:11: error: cannot find type 'CGRect' in scope
93 | }
94 |
95 | extension CGRect {
| `- error: cannot find type 'CGRect' in scope
96 | var left: CGFloat { return minX }
97 | var right: CGFloat { return maxX }
/host/spi-builder-workspace/Sources/Classes/common.cglayout.swift:104:11: error: cannot find type 'CGRect' in scope
102 | func distance(from point: CGPoint) -> CGSize { return CGSize(width: maxX - point.x, height: maxY - point.y) }
103 | }
104 | extension CGRect {
| `- error: cannot find type 'CGRect' in scope
105 | mutating func apply(edgeInsets: EdgeInsets) {
106 | self = EdgeInsetsInsetRect(self, edgeInsets)
/host/spi-builder-workspace/Sources/Classes/common.cglayout.swift:113:71: error: cannot find type 'CGRect' in scope
111 | }
112 |
113 | func EdgeInsetsInsetRect(_ rect: CGRect, _ edgeInsets: EdgeInsets) -> CGRect {
| `- error: cannot find type 'CGRect' in scope
114 | #if os(iOS) || os(tvOS)
115 | return rect.inset(by: edgeInsets)
/host/spi-builder-workspace/Sources/Classes/common.cglayout.swift:113:34: error: cannot find type 'CGRect' in scope
111 | }
112 |
113 | func EdgeInsetsInsetRect(_ rect: CGRect, _ edgeInsets: EdgeInsets) -> CGRect {
| `- error: cannot find type 'CGRect' in scope
114 | #if os(iOS) || os(tvOS)
115 | return rect.inset(by: edgeInsets)
/host/spi-builder-workspace/Sources/Classes/common.cglayout.swift:113:56: error: cannot find type 'EdgeInsets' in scope
111 | }
112 |
113 | func EdgeInsetsInsetRect(_ rect: CGRect, _ edgeInsets: EdgeInsets) -> CGRect {
| `- error: cannot find type 'EdgeInsets' in scope
114 | #if os(iOS) || os(tvOS)
115 | return rect.inset(by: edgeInsets)
/host/spi-builder-workspace/Sources/Classes/common.cglayout.swift:131:11: error: cannot find type 'EdgeInsets' in scope
129 | #endif
130 |
131 | extension EdgeInsets {
| `- error: cannot find type 'EdgeInsets' in scope
132 | var horizontal: CGFloat { return left + right }
133 | var vertical: CGFloat { return top + bottom }
/host/spi-builder-workspace/Sources/Classes/common.cglayout.swift:38:16: error: cannot find 'ProcessInfo' in scope
36 | debugAction {
37 | if condition() {
38 | if ProcessInfo.processInfo.arguments.contains("CGL_LOG_WARNINGS") {
| `- error: cannot find 'ProcessInfo' in scope
39 | debugPrint("CGLayout WARNING: \(message())")
40 | }
/host/spi-builder-workspace/Sources/Classes/common.cglayout.swift:41:16: error: cannot find 'ProcessInfo' in scope
39 | debugPrint("CGLayout WARNING: \(message())")
40 | }
41 | if ProcessInfo.processInfo.arguments.contains("CGL_THROW_ON_WARNING") { fatalError() }
| `- error: cannot find 'ProcessInfo' in scope
42 | }
43 | }
/host/spi-builder-workspace/Sources/Classes/coordinate.cglayout.swift:24:61: error: cannot find type 'CGPoint' in scope
22 | /// Therefore should UIView.layer property when creates constraint relationship between UIView and CALayer.
23 | public protocol LayoutCoordinateSpace {
24 | func convert(point: CGPoint, to item: LayoutElement) -> CGPoint
| `- error: cannot find type 'CGPoint' in scope
25 | func convert(point: CGPoint, from item: LayoutElement) -> CGPoint
26 | func convert(rect: CGRect, to item: LayoutElement) -> CGRect
/host/spi-builder-workspace/Sources/Classes/coordinate.cglayout.swift:24:25: error: cannot find type 'CGPoint' in scope
22 | /// Therefore should UIView.layer property when creates constraint relationship between UIView and CALayer.
23 | public protocol LayoutCoordinateSpace {
24 | func convert(point: CGPoint, to item: LayoutElement) -> CGPoint
| `- error: cannot find type 'CGPoint' in scope
25 | func convert(point: CGPoint, from item: LayoutElement) -> CGPoint
26 | func convert(rect: CGRect, to item: LayoutElement) -> CGRect
/host/spi-builder-workspace/Sources/Classes/coordinate.cglayout.swift:25:63: error: cannot find type 'CGPoint' in scope
23 | public protocol LayoutCoordinateSpace {
24 | func convert(point: CGPoint, to item: LayoutElement) -> CGPoint
25 | func convert(point: CGPoint, from item: LayoutElement) -> CGPoint
| `- error: cannot find type 'CGPoint' in scope
26 | func convert(rect: CGRect, to item: LayoutElement) -> CGRect
27 | func convert(rect: CGRect, from item: LayoutElement) -> CGRect
/host/spi-builder-workspace/Sources/Classes/coordinate.cglayout.swift:25:25: error: cannot find type 'CGPoint' in scope
23 | public protocol LayoutCoordinateSpace {
24 | func convert(point: CGPoint, to item: LayoutElement) -> CGPoint
25 | func convert(point: CGPoint, from item: LayoutElement) -> CGPoint
| `- error: cannot find type 'CGPoint' in scope
26 | func convert(rect: CGRect, to item: LayoutElement) -> CGRect
27 | func convert(rect: CGRect, from item: LayoutElement) -> CGRect
/host/spi-builder-workspace/Sources/Classes/coordinate.cglayout.swift:26:59: error: cannot find type 'CGRect' in scope
24 | func convert(point: CGPoint, to item: LayoutElement) -> CGPoint
25 | func convert(point: CGPoint, from item: LayoutElement) -> CGPoint
26 | func convert(rect: CGRect, to item: LayoutElement) -> CGRect
| `- error: cannot find type 'CGRect' in scope
27 | func convert(rect: CGRect, from item: LayoutElement) -> CGRect
28 |
/host/spi-builder-workspace/Sources/Classes/coordinate.cglayout.swift:26:24: error: cannot find type 'CGRect' in scope
24 | func convert(point: CGPoint, to item: LayoutElement) -> CGPoint
25 | func convert(point: CGPoint, from item: LayoutElement) -> CGPoint
26 | func convert(rect: CGRect, to item: LayoutElement) -> CGRect
| `- error: cannot find type 'CGRect' in scope
27 | func convert(rect: CGRect, from item: LayoutElement) -> CGRect
28 |
/host/spi-builder-workspace/Sources/Classes/coordinate.cglayout.swift:27:61: error: cannot find type 'CGRect' in scope
25 | func convert(point: CGPoint, from item: LayoutElement) -> CGPoint
26 | func convert(rect: CGRect, to item: LayoutElement) -> CGRect
27 | func convert(rect: CGRect, from item: LayoutElement) -> CGRect
| `- error: cannot find type 'CGRect' in scope
28 |
29 | var bounds: CGRect { get }
/host/spi-builder-workspace/Sources/Classes/coordinate.cglayout.swift:27:24: error: cannot find type 'CGRect' in scope
25 | func convert(point: CGPoint, from item: LayoutElement) -> CGPoint
26 | func convert(rect: CGRect, to item: LayoutElement) -> CGRect
27 | func convert(rect: CGRect, from item: LayoutElement) -> CGRect
| `- error: cannot find type 'CGRect' in scope
28 |
29 | var bounds: CGRect { get }
/host/spi-builder-workspace/Sources/Classes/coordinate.cglayout.swift:29:17: error: cannot find type 'CGRect' in scope
27 | func convert(rect: CGRect, from item: LayoutElement) -> CGRect
28 |
29 | var bounds: CGRect { get }
| `- error: cannot find type 'CGRect' in scope
30 | }
31 | #if os(iOS) || os(tvOS)
/host/spi-builder-workspace/Sources/Classes/coordinate.cglayout.swift:219:96: error: cannot find type 'CGPoint' in scope
217 |
218 | extension LayoutCoordinateSpace where Self: LayoutElement {
219 | fileprivate static func convert(point: CGPoint, from: LayoutElement, to: LayoutElement) -> CGPoint {
| `- error: cannot find type 'CGPoint' in scope
220 | let list1Iterator = LinkedList(start: from) { $0.inLayoutTime.superElement }.makeIterator()
221 | var list2Iterator = LinkedList(start: to) { $0.inLayoutTime.superElement }.reversed().makeIterator()
/host/spi-builder-workspace/Sources/Classes/coordinate.cglayout.swift:219:44: error: cannot find type 'CGPoint' in scope
217 |
218 | extension LayoutCoordinateSpace where Self: LayoutElement {
219 | fileprivate static func convert(point: CGPoint, from: LayoutElement, to: LayoutElement) -> CGPoint {
| `- error: cannot find type 'CGPoint' in scope
220 | let list1Iterator = LinkedList(start: from) { $0.inLayoutTime.superElement }.makeIterator()
221 | var list2Iterator = LinkedList(start: to) { $0.inLayoutTime.superElement }.reversed().makeIterator()
/host/spi-builder-workspace/Sources/Classes/coordinate.cglayout.swift:236:68: error: cannot find type 'CGPoint' in scope
234 | return converted
235 | }
236 | public func convert(point: CGPoint, to item: LayoutElement) -> CGPoint {
| `- error: cannot find type 'CGPoint' in scope
237 | return Self.convert(point: point, from: self, to: item)
238 | }
/host/spi-builder-workspace/Sources/Classes/coordinate.cglayout.swift:236:32: error: cannot find type 'CGPoint' in scope
234 | return converted
235 | }
236 | public func convert(point: CGPoint, to item: LayoutElement) -> CGPoint {
| `- error: cannot find type 'CGPoint' in scope
237 | return Self.convert(point: point, from: self, to: item)
238 | }
/host/spi-builder-workspace/Sources/Classes/coordinate.cglayout.swift:240:70: error: cannot find type 'CGPoint' in scope
238 | }
239 |
240 | public func convert(point: CGPoint, from item: LayoutElement) -> CGPoint {
| `- error: cannot find type 'CGPoint' in scope
241 | return Self.convert(point: point, from: item, to: self)
242 | }
/host/spi-builder-workspace/Sources/Classes/coordinate.cglayout.swift:240:32: error: cannot find type 'CGPoint' in scope
238 | }
239 |
240 | public func convert(point: CGPoint, from item: LayoutElement) -> CGPoint {
| `- error: cannot find type 'CGPoint' in scope
241 | return Self.convert(point: point, from: item, to: self)
242 | }
/host/spi-builder-workspace/Sources/Classes/coordinate.cglayout.swift:243:66: error: cannot find type 'CGRect' in scope
241 | return Self.convert(point: point, from: item, to: self)
242 | }
243 | public func convert(rect: CGRect, to item: LayoutElement) -> CGRect {
| `- error: cannot find type 'CGRect' in scope
244 | var rect = rect
245 | rect.origin = convert(point: rect.origin, to: item)
/host/spi-builder-workspace/Sources/Classes/coordinate.cglayout.swift:243:31: error: cannot find type 'CGRect' in scope
241 | return Self.convert(point: point, from: item, to: self)
242 | }
243 | public func convert(rect: CGRect, to item: LayoutElement) -> CGRect {
| `- error: cannot find type 'CGRect' in scope
244 | var rect = rect
245 | rect.origin = convert(point: rect.origin, to: item)
/host/spi-builder-workspace/Sources/Classes/coordinate.cglayout.swift:248:68: error: cannot find type 'CGRect' in scope
246 | return rect
247 | }
248 | public func convert(rect: CGRect, from item: LayoutElement) -> CGRect {
| `- error: cannot find type 'CGRect' in scope
249 | var rect = rect
250 | rect.origin = convert(point: rect.origin, from: item)
/host/spi-builder-workspace/Sources/Classes/coordinate.cglayout.swift:248:31: error: cannot find type 'CGRect' in scope
246 | return rect
247 | }
248 | public func convert(rect: CGRect, from item: LayoutElement) -> CGRect {
| `- error: cannot find type 'CGRect' in scope
249 | var rect = rect
250 | rect.origin = convert(point: rect.origin, from: item)
/host/spi-builder-workspace/Sources/Classes/common.cglayout.swift:91:24: error: cannot find type 'CGPoint' in scope
89 |
90 | extension CGPoint {
91 | func positive() -> CGPoint { return CGPoint(x: abs(x), y: abs(y)) }
| `- error: cannot find type 'CGPoint' in scope
92 | func negated() -> CGPoint { return CGPoint(x: -x, y: -y) }
93 | }
/host/spi-builder-workspace/Sources/Classes/common.cglayout.swift:92:23: error: cannot find type 'CGPoint' in scope
90 | extension CGPoint {
91 | func positive() -> CGPoint { return CGPoint(x: abs(x), y: abs(y)) }
92 | func negated() -> CGPoint { return CGPoint(x: -x, y: -y) }
| `- error: cannot find type 'CGPoint' in scope
93 | }
94 |
/host/spi-builder-workspace/Sources/Classes/common.cglayout.swift:96:15: error: cannot find type 'CGFloat' in scope
94 |
95 | extension CGRect {
96 | var left: CGFloat { return minX }
| `- error: cannot find type 'CGFloat' in scope
97 | var right: CGFloat { return maxX }
98 | var top: CGFloat { return minY }
/host/spi-builder-workspace/Sources/Classes/common.cglayout.swift:97:16: error: cannot find type 'CGFloat' in scope
95 | extension CGRect {
96 | var left: CGFloat { return minX }
97 | var right: CGFloat { return maxX }
| `- error: cannot find type 'CGFloat' in scope
98 | var top: CGFloat { return minY }
99 | var bottom: CGFloat { return maxY }
/host/spi-builder-workspace/Sources/Classes/common.cglayout.swift:98:14: error: cannot find type 'CGFloat' in scope
96 | var left: CGFloat { return minX }
97 | var right: CGFloat { return maxX }
98 | var top: CGFloat { return minY }
| `- error: cannot find type 'CGFloat' in scope
99 | var bottom: CGFloat { return maxY }
100 |
/host/spi-builder-workspace/Sources/Classes/common.cglayout.swift:99:17: error: cannot find type 'CGFloat' in scope
97 | var right: CGFloat { return maxX }
98 | var top: CGFloat { return minY }
99 | var bottom: CGFloat { return maxY }
| `- error: cannot find type 'CGFloat' in scope
100 |
101 | var distanceFromOrigin: CGSize { return CGSize(width: maxX, height: maxY) }
/host/spi-builder-workspace/Sources/Classes/common.cglayout.swift:101:29: error: cannot find type 'CGSize' in scope
99 | var bottom: CGFloat { return maxY }
100 |
101 | var distanceFromOrigin: CGSize { return CGSize(width: maxX, height: maxY) }
| `- error: cannot find type 'CGSize' in scope
102 | func distance(from point: CGPoint) -> CGSize { return CGSize(width: maxX - point.x, height: maxY - point.y) }
103 | }
/host/spi-builder-workspace/Sources/Classes/common.cglayout.swift:102:43: error: cannot find type 'CGSize' in scope
100 |
101 | var distanceFromOrigin: CGSize { return CGSize(width: maxX, height: maxY) }
102 | func distance(from point: CGPoint) -> CGSize { return CGSize(width: maxX - point.x, height: maxY - point.y) }
| `- error: cannot find type 'CGSize' in scope
103 | }
104 | extension CGRect {
/host/spi-builder-workspace/Sources/Classes/common.cglayout.swift:102:31: error: cannot find type 'CGPoint' in scope
100 |
101 | var distanceFromOrigin: CGSize { return CGSize(width: maxX, height: maxY) }
102 | func distance(from point: CGPoint) -> CGSize { return CGSize(width: maxX - point.x, height: maxY - point.y) }
| `- error: cannot find type 'CGPoint' in scope
103 | }
104 | extension CGRect {
/host/spi-builder-workspace/Sources/Classes/common.cglayout.swift:105:37: error: cannot find type 'EdgeInsets' in scope
103 | }
104 | extension CGRect {
105 | mutating func apply(edgeInsets: EdgeInsets) {
| `- error: cannot find type 'EdgeInsets' in scope
106 | self = EdgeInsetsInsetRect(self, edgeInsets)
107 | }
/host/spi-builder-workspace/Sources/Classes/common.cglayout.swift:108:46: error: cannot find type 'CGRect' in scope
106 | self = EdgeInsetsInsetRect(self, edgeInsets)
107 | }
108 | func applying(edgeInsets: EdgeInsets) -> CGRect { var this = self; this.apply(edgeInsets: edgeInsets); return this }
| `- error: cannot find type 'CGRect' in scope
109 |
110 | public func asLayout() -> Layout { return Layout(x: .left(origin.x), y: .top(origin.y), width: .fixed(width), height: .fixed(height)) }
/host/spi-builder-workspace/Sources/Classes/common.cglayout.swift:108:31: error: cannot find type 'EdgeInsets' in scope
106 | self = EdgeInsetsInsetRect(self, edgeInsets)
107 | }
108 | func applying(edgeInsets: EdgeInsets) -> CGRect { var this = self; this.apply(edgeInsets: edgeInsets); return this }
| `- error: cannot find type 'EdgeInsets' in scope
109 |
110 | public func asLayout() -> Layout { return Layout(x: .left(origin.x), y: .top(origin.y), width: .fixed(width), height: .fixed(height)) }
/host/spi-builder-workspace/Sources/Classes/common.cglayout.swift:132:21: error: cannot find type 'CGFloat' in scope
130 |
131 | extension EdgeInsets {
132 | var horizontal: CGFloat { return left + right }
| `- error: cannot find type 'CGFloat' in scope
133 | var vertical: CGFloat { return top + bottom }
134 | #if os(macOS) || os(Linux)
/host/spi-builder-workspace/Sources/Classes/common.cglayout.swift:133:19: error: cannot find type 'CGFloat' in scope
131 | extension EdgeInsets {
132 | var horizontal: CGFloat { return left + right }
133 | var vertical: CGFloat { return top + bottom }
| `- error: cannot find type 'CGFloat' in scope
134 | #if os(macOS) || os(Linux)
135 | public static var zero: EdgeInsets { return EdgeInsets(top: 0, left: 0, bottom: 0, right: 0) }
[16/19] Compiling CGLayout anchors.cglayout.swift
/host/spi-builder-workspace/Sources/Classes/coordinate.cglayout.swift:24:61: error: cannot find type 'CGPoint' in scope
22 | /// Therefore should UIView.layer property when creates constraint relationship between UIView and CALayer.
23 | public protocol LayoutCoordinateSpace {
24 | func convert(point: CGPoint, to item: LayoutElement) -> CGPoint
| `- error: cannot find type 'CGPoint' in scope
25 | func convert(point: CGPoint, from item: LayoutElement) -> CGPoint
26 | func convert(rect: CGRect, to item: LayoutElement) -> CGRect
/host/spi-builder-workspace/Sources/Classes/coordinate.cglayout.swift:24:25: error: cannot find type 'CGPoint' in scope
22 | /// Therefore should UIView.layer property when creates constraint relationship between UIView and CALayer.
23 | public protocol LayoutCoordinateSpace {
24 | func convert(point: CGPoint, to item: LayoutElement) -> CGPoint
| `- error: cannot find type 'CGPoint' in scope
25 | func convert(point: CGPoint, from item: LayoutElement) -> CGPoint
26 | func convert(rect: CGRect, to item: LayoutElement) -> CGRect
/host/spi-builder-workspace/Sources/Classes/coordinate.cglayout.swift:25:63: error: cannot find type 'CGPoint' in scope
23 | public protocol LayoutCoordinateSpace {
24 | func convert(point: CGPoint, to item: LayoutElement) -> CGPoint
25 | func convert(point: CGPoint, from item: LayoutElement) -> CGPoint
| `- error: cannot find type 'CGPoint' in scope
26 | func convert(rect: CGRect, to item: LayoutElement) -> CGRect
27 | func convert(rect: CGRect, from item: LayoutElement) -> CGRect
/host/spi-builder-workspace/Sources/Classes/coordinate.cglayout.swift:25:25: error: cannot find type 'CGPoint' in scope
23 | public protocol LayoutCoordinateSpace {
24 | func convert(point: CGPoint, to item: LayoutElement) -> CGPoint
25 | func convert(point: CGPoint, from item: LayoutElement) -> CGPoint
| `- error: cannot find type 'CGPoint' in scope
26 | func convert(rect: CGRect, to item: LayoutElement) -> CGRect
27 | func convert(rect: CGRect, from item: LayoutElement) -> CGRect
/host/spi-builder-workspace/Sources/Classes/coordinate.cglayout.swift:26:59: error: cannot find type 'CGRect' in scope
24 | func convert(point: CGPoint, to item: LayoutElement) -> CGPoint
25 | func convert(point: CGPoint, from item: LayoutElement) -> CGPoint
26 | func convert(rect: CGRect, to item: LayoutElement) -> CGRect
| `- error: cannot find type 'CGRect' in scope
27 | func convert(rect: CGRect, from item: LayoutElement) -> CGRect
28 |
/host/spi-builder-workspace/Sources/Classes/coordinate.cglayout.swift:26:24: error: cannot find type 'CGRect' in scope
24 | func convert(point: CGPoint, to item: LayoutElement) -> CGPoint
25 | func convert(point: CGPoint, from item: LayoutElement) -> CGPoint
26 | func convert(rect: CGRect, to item: LayoutElement) -> CGRect
| `- error: cannot find type 'CGRect' in scope
27 | func convert(rect: CGRect, from item: LayoutElement) -> CGRect
28 |
/host/spi-builder-workspace/Sources/Classes/coordinate.cglayout.swift:27:61: error: cannot find type 'CGRect' in scope
25 | func convert(point: CGPoint, from item: LayoutElement) -> CGPoint
26 | func convert(rect: CGRect, to item: LayoutElement) -> CGRect
27 | func convert(rect: CGRect, from item: LayoutElement) -> CGRect
| `- error: cannot find type 'CGRect' in scope
28 |
29 | var bounds: CGRect { get }
/host/spi-builder-workspace/Sources/Classes/coordinate.cglayout.swift:27:24: error: cannot find type 'CGRect' in scope
25 | func convert(point: CGPoint, from item: LayoutElement) -> CGPoint
26 | func convert(rect: CGRect, to item: LayoutElement) -> CGRect
27 | func convert(rect: CGRect, from item: LayoutElement) -> CGRect
| `- error: cannot find type 'CGRect' in scope
28 |
29 | var bounds: CGRect { get }
/host/spi-builder-workspace/Sources/Classes/coordinate.cglayout.swift:29:17: error: cannot find type 'CGRect' in scope
27 | func convert(rect: CGRect, from item: LayoutElement) -> CGRect
28 |
29 | var bounds: CGRect { get }
| `- error: cannot find type 'CGRect' in scope
30 | }
31 | #if os(iOS) || os(tvOS)
/host/spi-builder-workspace/Sources/Classes/layoutConstraint.cglayout.swift:31:42: error: cannot find type 'CGRect' in scope
29 | /// - sourceRect: Source space
30 | /// - rect: Rect for constrain
31 | func formConstrain(sourceRect: inout CGRect, by rect: CGRect?, in coordinateSpace: LayoutElement)
| `- error: cannot find type 'CGRect' in scope
32 | }
33 | public extension LayoutConstraintProtocol {
/host/spi-builder-workspace/Sources/Classes/layoutConstraint.cglayout.swift:31:59: error: cannot find type 'CGRect' in scope
29 | /// - sourceRect: Source space
30 | /// - rect: Rect for constrain
31 | func formConstrain(sourceRect: inout CGRect, by rect: CGRect?, in coordinateSpace: LayoutElement)
| `- error: cannot find type 'CGRect' in scope
32 | }
33 | public extension LayoutConstraintProtocol {
/host/spi-builder-workspace/Sources/Classes/layoutConstraint.cglayout.swift:218:66: error: cannot find type 'CGRect' in scope
216 | let constrainRect: ((CGRect) -> CGRect)?
217 |
218 | public init(anchors: [RectBasedConstraint], constrainRect: ((CGRect) -> CGRect)? = nil) {
| `- error: cannot find type 'CGRect' in scope
219 | self.anchors = anchors
220 | self.constrainRect = constrainRect
/host/spi-builder-workspace/Sources/Classes/layoutConstraint.cglayout.swift:218:77: error: cannot find type 'CGRect' in scope
216 | let constrainRect: ((CGRect) -> CGRect)?
217 |
218 | public init(anchors: [RectBasedConstraint], constrainRect: ((CGRect) -> CGRect)? = nil) {
| `- error: cannot find type 'CGRect' in scope
219 | self.anchors = anchors
220 | self.constrainRect = constrainRect
/host/spi-builder-workspace/Sources/Classes/layoutConstraint.cglayout.swift:242:38: error: cannot find type 'CGRect' in scope
240 | }
241 | public extension AnonymConstraint {
242 | init(transform: @escaping (inout CGRect) -> Void) {
| `- error: cannot find type 'CGRect' in scope
243 | self.init(anchors: [Equal()]) {
244 | var source = $0
/host/spi-builder-workspace/Sources/Classes/common.cglayout.swift:86:34: error: cannot find type 'CGSize' in scope
84 | #endif
85 |
86 | func -(l: CGSize, r: CGFloat) -> CGSize { return CGSize(width: l.width - r, height: l.height - r) }
| `- error: cannot find type 'CGSize' in scope
87 | func +(l: CGSize, r: CGFloat) -> CGSize { return CGSize(width: l.width + r, height: l.height + r) }
88 | func *(l: CGSize, r: CGFloat) -> CGSize { return CGSize(width: l.width * r, height: l.height * r) }
/host/spi-builder-workspace/Sources/Classes/common.cglayout.swift:86:11: error: cannot find type 'CGSize' in scope
84 | #endif
85 |
86 | func -(l: CGSize, r: CGFloat) -> CGSize { return CGSize(width: l.width - r, height: l.height - r) }
| `- error: cannot find type 'CGSize' in scope
87 | func +(l: CGSize, r: CGFloat) -> CGSize { return CGSize(width: l.width + r, height: l.height + r) }
88 | func *(l: CGSize, r: CGFloat) -> CGSize { return CGSize(width: l.width * r, height: l.height * r) }
/host/spi-builder-workspace/Sources/Classes/common.cglayout.swift:86:22: error: cannot find type 'CGFloat' in scope
84 | #endif
85 |
86 | func -(l: CGSize, r: CGFloat) -> CGSize { return CGSize(width: l.width - r, height: l.height - r) }
| `- error: cannot find type 'CGFloat' in scope
87 | func +(l: CGSize, r: CGFloat) -> CGSize { return CGSize(width: l.width + r, height: l.height + r) }
88 | func *(l: CGSize, r: CGFloat) -> CGSize { return CGSize(width: l.width * r, height: l.height * r) }
/host/spi-builder-workspace/Sources/Classes/evolution.cglayout/backend.anchors.cglayout.swift:55:70: error: binary operator '-' cannot be applied to operands of type 'CGSize' and 'CGFloat'
53 | public func boxed<A2: SizeRectAnchor>(by a2: A2, box: CGFloat) -> AnyRectBasedConstraint
54 | where Metric == A2.Metric, Metric == CGSize {
55 | return AnyRectBasedConstraint { self.set(a2.get(for: $1) - box, for: &$0) }
| `- error: binary operator '-' cannot be applied to operands of type 'CGSize' and 'CGFloat'
56 | }
57 | public func scaled<A2: SizeRectAnchor>(by a2: A2, scale: CGFloat) -> AnyRectBasedConstraint
/host/spi-builder-workspace/Sources/Classes/common.cglayout.swift:88:34: error: cannot find type 'CGSize' in scope
86 | func -(l: CGSize, r: CGFloat) -> CGSize { return CGSize(width: l.width - r, height: l.height - r) }
87 | func +(l: CGSize, r: CGFloat) -> CGSize { return CGSize(width: l.width + r, height: l.height + r) }
88 | func *(l: CGSize, r: CGFloat) -> CGSize { return CGSize(width: l.width * r, height: l.height * r) }
| `- error: cannot find type 'CGSize' in scope
89 |
90 | extension CGPoint {
/host/spi-builder-workspace/Sources/Classes/common.cglayout.swift:88:11: error: cannot find type 'CGSize' in scope
86 | func -(l: CGSize, r: CGFloat) -> CGSize { return CGSize(width: l.width - r, height: l.height - r) }
87 | func +(l: CGSize, r: CGFloat) -> CGSize { return CGSize(width: l.width + r, height: l.height + r) }
88 | func *(l: CGSize, r: CGFloat) -> CGSize { return CGSize(width: l.width * r, height: l.height * r) }
| `- error: cannot find type 'CGSize' in scope
89 |
90 | extension CGPoint {
/host/spi-builder-workspace/Sources/Classes/common.cglayout.swift:88:22: error: cannot find type 'CGFloat' in scope
86 | func -(l: CGSize, r: CGFloat) -> CGSize { return CGSize(width: l.width - r, height: l.height - r) }
87 | func +(l: CGSize, r: CGFloat) -> CGSize { return CGSize(width: l.width + r, height: l.height + r) }
88 | func *(l: CGSize, r: CGFloat) -> CGSize { return CGSize(width: l.width * r, height: l.height * r) }
| `- error: cannot find type 'CGFloat' in scope
89 |
90 | extension CGPoint {
/host/spi-builder-workspace/Sources/Classes/evolution.cglayout/backend.anchors.cglayout.swift:59:70: error: referencing operator function '*' on 'SIMD' requires that 'CGSize' conform to 'SIMD'
57 | public func scaled<A2: SizeRectAnchor>(by a2: A2, scale: CGFloat) -> AnyRectBasedConstraint
58 | where Metric == A2.Metric, Metric == CGSize {
59 | return AnyRectBasedConstraint { self.set(a2.get(for: $1) * scale, for: &$0) }
| `- error: referencing operator function '*' on 'SIMD' requires that 'CGSize' conform to 'SIMD'
60 | }
61 | }
Swift.SIMD:1:11: note: where 'Self' = 'CGSize'
1 | extension SIMD where Self.Scalar : FloatingPoint {
| `- note: where 'Self' = 'CGSize'
2 | prefix public static func - (a: Self) -> Self
3 | public static func + (a: Self.Scalar, b: Self) -> Self
[17/19] Compiling CGLayout backend.anchors.cglayout.swift
/host/spi-builder-workspace/Sources/Classes/coordinate.cglayout.swift:24:61: error: cannot find type 'CGPoint' in scope
22 | /// Therefore should UIView.layer property when creates constraint relationship between UIView and CALayer.
23 | public protocol LayoutCoordinateSpace {
24 | func convert(point: CGPoint, to item: LayoutElement) -> CGPoint
| `- error: cannot find type 'CGPoint' in scope
25 | func convert(point: CGPoint, from item: LayoutElement) -> CGPoint
26 | func convert(rect: CGRect, to item: LayoutElement) -> CGRect
/host/spi-builder-workspace/Sources/Classes/coordinate.cglayout.swift:24:25: error: cannot find type 'CGPoint' in scope
22 | /// Therefore should UIView.layer property when creates constraint relationship between UIView and CALayer.
23 | public protocol LayoutCoordinateSpace {
24 | func convert(point: CGPoint, to item: LayoutElement) -> CGPoint
| `- error: cannot find type 'CGPoint' in scope
25 | func convert(point: CGPoint, from item: LayoutElement) -> CGPoint
26 | func convert(rect: CGRect, to item: LayoutElement) -> CGRect
/host/spi-builder-workspace/Sources/Classes/coordinate.cglayout.swift:25:63: error: cannot find type 'CGPoint' in scope
23 | public protocol LayoutCoordinateSpace {
24 | func convert(point: CGPoint, to item: LayoutElement) -> CGPoint
25 | func convert(point: CGPoint, from item: LayoutElement) -> CGPoint
| `- error: cannot find type 'CGPoint' in scope
26 | func convert(rect: CGRect, to item: LayoutElement) -> CGRect
27 | func convert(rect: CGRect, from item: LayoutElement) -> CGRect
/host/spi-builder-workspace/Sources/Classes/coordinate.cglayout.swift:25:25: error: cannot find type 'CGPoint' in scope
23 | public protocol LayoutCoordinateSpace {
24 | func convert(point: CGPoint, to item: LayoutElement) -> CGPoint
25 | func convert(point: CGPoint, from item: LayoutElement) -> CGPoint
| `- error: cannot find type 'CGPoint' in scope
26 | func convert(rect: CGRect, to item: LayoutElement) -> CGRect
27 | func convert(rect: CGRect, from item: LayoutElement) -> CGRect
/host/spi-builder-workspace/Sources/Classes/coordinate.cglayout.swift:26:59: error: cannot find type 'CGRect' in scope
24 | func convert(point: CGPoint, to item: LayoutElement) -> CGPoint
25 | func convert(point: CGPoint, from item: LayoutElement) -> CGPoint
26 | func convert(rect: CGRect, to item: LayoutElement) -> CGRect
| `- error: cannot find type 'CGRect' in scope
27 | func convert(rect: CGRect, from item: LayoutElement) -> CGRect
28 |
/host/spi-builder-workspace/Sources/Classes/coordinate.cglayout.swift:26:24: error: cannot find type 'CGRect' in scope
24 | func convert(point: CGPoint, to item: LayoutElement) -> CGPoint
25 | func convert(point: CGPoint, from item: LayoutElement) -> CGPoint
26 | func convert(rect: CGRect, to item: LayoutElement) -> CGRect
| `- error: cannot find type 'CGRect' in scope
27 | func convert(rect: CGRect, from item: LayoutElement) -> CGRect
28 |
/host/spi-builder-workspace/Sources/Classes/coordinate.cglayout.swift:27:61: error: cannot find type 'CGRect' in scope
25 | func convert(point: CGPoint, from item: LayoutElement) -> CGPoint
26 | func convert(rect: CGRect, to item: LayoutElement) -> CGRect
27 | func convert(rect: CGRect, from item: LayoutElement) -> CGRect
| `- error: cannot find type 'CGRect' in scope
28 |
29 | var bounds: CGRect { get }
/host/spi-builder-workspace/Sources/Classes/coordinate.cglayout.swift:27:24: error: cannot find type 'CGRect' in scope
25 | func convert(point: CGPoint, from item: LayoutElement) -> CGPoint
26 | func convert(rect: CGRect, to item: LayoutElement) -> CGRect
27 | func convert(rect: CGRect, from item: LayoutElement) -> CGRect
| `- error: cannot find type 'CGRect' in scope
28 |
29 | var bounds: CGRect { get }
/host/spi-builder-workspace/Sources/Classes/coordinate.cglayout.swift:29:17: error: cannot find type 'CGRect' in scope
27 | func convert(rect: CGRect, from item: LayoutElement) -> CGRect
28 |
29 | var bounds: CGRect { get }
| `- error: cannot find type 'CGRect' in scope
30 | }
31 | #if os(iOS) || os(tvOS)
/host/spi-builder-workspace/Sources/Classes/layoutConstraint.cglayout.swift:31:42: error: cannot find type 'CGRect' in scope
29 | /// - sourceRect: Source space
30 | /// - rect: Rect for constrain
31 | func formConstrain(sourceRect: inout CGRect, by rect: CGRect?, in coordinateSpace: LayoutElement)
| `- error: cannot find type 'CGRect' in scope
32 | }
33 | public extension LayoutConstraintProtocol {
/host/spi-builder-workspace/Sources/Classes/layoutConstraint.cglayout.swift:31:59: error: cannot find type 'CGRect' in scope
29 | /// - sourceRect: Source space
30 | /// - rect: Rect for constrain
31 | func formConstrain(sourceRect: inout CGRect, by rect: CGRect?, in coordinateSpace: LayoutElement)
| `- error: cannot find type 'CGRect' in scope
32 | }
33 | public extension LayoutConstraintProtocol {
/host/spi-builder-workspace/Sources/Classes/layoutConstraint.cglayout.swift:218:66: error: cannot find type 'CGRect' in scope
216 | let constrainRect: ((CGRect) -> CGRect)?
217 |
218 | public init(anchors: [RectBasedConstraint], constrainRect: ((CGRect) -> CGRect)? = nil) {
| `- error: cannot find type 'CGRect' in scope
219 | self.anchors = anchors
220 | self.constrainRect = constrainRect
/host/spi-builder-workspace/Sources/Classes/layoutConstraint.cglayout.swift:218:77: error: cannot find type 'CGRect' in scope
216 | let constrainRect: ((CGRect) -> CGRect)?
217 |
218 | public init(anchors: [RectBasedConstraint], constrainRect: ((CGRect) -> CGRect)? = nil) {
| `- error: cannot find type 'CGRect' in scope
219 | self.anchors = anchors
220 | self.constrainRect = constrainRect
/host/spi-builder-workspace/Sources/Classes/layoutConstraint.cglayout.swift:242:38: error: cannot find type 'CGRect' in scope
240 | }
241 | public extension AnonymConstraint {
242 | init(transform: @escaping (inout CGRect) -> Void) {
| `- error: cannot find type 'CGRect' in scope
243 | self.init(anchors: [Equal()]) {
244 | var source = $0
/host/spi-builder-workspace/Sources/Classes/common.cglayout.swift:86:34: error: cannot find type 'CGSize' in scope
84 | #endif
85 |
86 | func -(l: CGSize, r: CGFloat) -> CGSize { return CGSize(width: l.width - r, height: l.height - r) }
| `- error: cannot find type 'CGSize' in scope
87 | func +(l: CGSize, r: CGFloat) -> CGSize { return CGSize(width: l.width + r, height: l.height + r) }
88 | func *(l: CGSize, r: CGFloat) -> CGSize { return CGSize(width: l.width * r, height: l.height * r) }
/host/spi-builder-workspace/Sources/Classes/common.cglayout.swift:86:11: error: cannot find type 'CGSize' in scope
84 | #endif
85 |
86 | func -(l: CGSize, r: CGFloat) -> CGSize { return CGSize(width: l.width - r, height: l.height - r) }
| `- error: cannot find type 'CGSize' in scope
87 | func +(l: CGSize, r: CGFloat) -> CGSize { return CGSize(width: l.width + r, height: l.height + r) }
88 | func *(l: CGSize, r: CGFloat) -> CGSize { return CGSize(width: l.width * r, height: l.height * r) }
/host/spi-builder-workspace/Sources/Classes/common.cglayout.swift:86:22: error: cannot find type 'CGFloat' in scope
84 | #endif
85 |
86 | func -(l: CGSize, r: CGFloat) -> CGSize { return CGSize(width: l.width - r, height: l.height - r) }
| `- error: cannot find type 'CGFloat' in scope
87 | func +(l: CGSize, r: CGFloat) -> CGSize { return CGSize(width: l.width + r, height: l.height + r) }
88 | func *(l: CGSize, r: CGFloat) -> CGSize { return CGSize(width: l.width * r, height: l.height * r) }
/host/spi-builder-workspace/Sources/Classes/evolution.cglayout/backend.anchors.cglayout.swift:55:70: error: binary operator '-' cannot be applied to operands of type 'CGSize' and 'CGFloat'
53 | public func boxed<A2: SizeRectAnchor>(by a2: A2, box: CGFloat) -> AnyRectBasedConstraint
54 | where Metric == A2.Metric, Metric == CGSize {
55 | return AnyRectBasedConstraint { self.set(a2.get(for: $1) - box, for: &$0) }
| `- error: binary operator '-' cannot be applied to operands of type 'CGSize' and 'CGFloat'
56 | }
57 | public func scaled<A2: SizeRectAnchor>(by a2: A2, scale: CGFloat) -> AnyRectBasedConstraint
/host/spi-builder-workspace/Sources/Classes/common.cglayout.swift:88:34: error: cannot find type 'CGSize' in scope
86 | func -(l: CGSize, r: CGFloat) -> CGSize { return CGSize(width: l.width - r, height: l.height - r) }
87 | func +(l: CGSize, r: CGFloat) -> CGSize { return CGSize(width: l.width + r, height: l.height + r) }
88 | func *(l: CGSize, r: CGFloat) -> CGSize { return CGSize(width: l.width * r, height: l.height * r) }
| `- error: cannot find type 'CGSize' in scope
89 |
90 | extension CGPoint {
/host/spi-builder-workspace/Sources/Classes/common.cglayout.swift:88:11: error: cannot find type 'CGSize' in scope
86 | func -(l: CGSize, r: CGFloat) -> CGSize { return CGSize(width: l.width - r, height: l.height - r) }
87 | func +(l: CGSize, r: CGFloat) -> CGSize { return CGSize(width: l.width + r, height: l.height + r) }
88 | func *(l: CGSize, r: CGFloat) -> CGSize { return CGSize(width: l.width * r, height: l.height * r) }
| `- error: cannot find type 'CGSize' in scope
89 |
90 | extension CGPoint {
/host/spi-builder-workspace/Sources/Classes/common.cglayout.swift:88:22: error: cannot find type 'CGFloat' in scope
86 | func -(l: CGSize, r: CGFloat) -> CGSize { return CGSize(width: l.width - r, height: l.height - r) }
87 | func +(l: CGSize, r: CGFloat) -> CGSize { return CGSize(width: l.width + r, height: l.height + r) }
88 | func *(l: CGSize, r: CGFloat) -> CGSize { return CGSize(width: l.width * r, height: l.height * r) }
| `- error: cannot find type 'CGFloat' in scope
89 |
90 | extension CGPoint {
/host/spi-builder-workspace/Sources/Classes/evolution.cglayout/backend.anchors.cglayout.swift:59:70: error: referencing operator function '*' on 'SIMD' requires that 'CGSize' conform to 'SIMD'
57 | public func scaled<A2: SizeRectAnchor>(by a2: A2, scale: CGFloat) -> AnyRectBasedConstraint
58 | where Metric == A2.Metric, Metric == CGSize {
59 | return AnyRectBasedConstraint { self.set(a2.get(for: $1) * scale, for: &$0) }
| `- error: referencing operator function '*' on 'SIMD' requires that 'CGSize' conform to 'SIMD'
60 | }
61 | }
Swift.SIMD:1:11: note: where 'Self' = 'CGSize'
1 | extension SIMD where Self.Scalar : FloatingPoint {
| `- note: where 'Self' = 'CGSize'
2 | prefix public static func - (a: Self) -> Self
3 | public static func + (a: Self.Scalar, b: Self) -> Self
[18/19] Compiling CGLayout stack.layoutGuide.cglayout.swift
/host/spi-builder-workspace/Sources/Classes/stack.layoutGuide.cglayout.swift:21:87: error: cannot find type 'CGRect' in scope
19 | /// Base protocol for any layout distribution
20 | protocol RectBasedDistribution {
21 | func distribute(rects: [CGRect], in sourceRect: CGRect, along axis: RectAxis) -> [CGRect]
| `- error: cannot find type 'CGRect' in scope
22 | }
23 |
/host/spi-builder-workspace/Sources/Classes/stack.layoutGuide.cglayout.swift:21:29: error: cannot find type 'CGRect' in scope
19 | /// Base protocol for any layout distribution
20 | protocol RectBasedDistribution {
21 | func distribute(rects: [CGRect], in sourceRect: CGRect, along axis: RectAxis) -> [CGRect]
| `- error: cannot find type 'CGRect' in scope
22 | }
23 |
/host/spi-builder-workspace/Sources/Classes/stack.layoutGuide.cglayout.swift:21:53: error: cannot find type 'CGRect' in scope
19 | /// Base protocol for any layout distribution
20 | protocol RectBasedDistribution {
21 | func distribute(rects: [CGRect], in sourceRect: CGRect, along axis: RectAxis) -> [CGRect]
| `- error: cannot find type 'CGRect' in scope
22 | }
23 |
/host/spi-builder-workspace/Sources/Classes/stack.layoutGuide.cglayout.swift:24:112: error: cannot find type 'CGRect' in scope
22 | }
23 |
24 | func distributeFromLeading(rects: [CGRect], in sourceRect: CGRect, along axis: RectAxis, spacing: CGFloat) -> [CGRect] {
| `- error: cannot find type 'CGRect' in scope
25 | var previous: CGRect?
26 | return rects.map { rect in
/host/spi-builder-workspace/Sources/Classes/stack.layoutGuide.cglayout.swift:24:36: error: cannot find type 'CGRect' in scope
22 | }
23 |
24 | func distributeFromLeading(rects: [CGRect], in sourceRect: CGRect, along axis: RectAxis, spacing: CGFloat) -> [CGRect] {
| `- error: cannot find type 'CGRect' in scope
25 | var previous: CGRect?
26 | return rects.map { rect in
/host/spi-builder-workspace/Sources/Classes/stack.layoutGuide.cglayout.swift:24:60: error: cannot find type 'CGRect' in scope
22 | }
23 |
24 | func distributeFromLeading(rects: [CGRect], in sourceRect: CGRect, along axis: RectAxis, spacing: CGFloat) -> [CGRect] {
| `- error: cannot find type 'CGRect' in scope
25 | var previous: CGRect?
26 | return rects.map { rect in
/host/spi-builder-workspace/Sources/Classes/stack.layoutGuide.cglayout.swift:24:99: error: cannot find type 'CGFloat' in scope
22 | }
23 |
24 | func distributeFromLeading(rects: [CGRect], in sourceRect: CGRect, along axis: RectAxis, spacing: CGFloat) -> [CGRect] {
| `- error: cannot find type 'CGFloat' in scope
25 | var previous: CGRect?
26 | return rects.map { rect in
/host/spi-builder-workspace/Sources/Classes/stack.layoutGuide.cglayout.swift:33:113: error: cannot find type 'CGRect' in scope
31 | }
32 | }
33 | func distributeFromTrailing(rects: [CGRect], in sourceRect: CGRect, along axis: RectAxis, spacing: CGFloat) -> [CGRect] {
| `- error: cannot find type 'CGRect' in scope
34 | var previous: CGRect?
35 | return rects.map { rect in
/host/spi-builder-workspace/Sources/Classes/stack.layoutGuide.cglayout.swift:33:37: error: cannot find type 'CGRect' in scope
31 | }
32 | }
33 | func distributeFromTrailing(rects: [CGRect], in sourceRect: CGRect, along axis: RectAxis, spacing: CGFloat) -> [CGRect] {
| `- error: cannot find type 'CGRect' in scope
34 | var previous: CGRect?
35 | return rects.map { rect in
/host/spi-builder-workspace/Sources/Classes/stack.layoutGuide.cglayout.swift:33:61: error: cannot find type 'CGRect' in scope
31 | }
32 | }
33 | func distributeFromTrailing(rects: [CGRect], in sourceRect: CGRect, along axis: RectAxis, spacing: CGFloat) -> [CGRect] {
| `- error: cannot find type 'CGRect' in scope
34 | var previous: CGRect?
35 | return rects.map { rect in
/host/spi-builder-workspace/Sources/Classes/stack.layoutGuide.cglayout.swift:33:100: error: cannot find type 'CGFloat' in scope
31 | }
32 | }
33 | func distributeFromTrailing(rects: [CGRect], in sourceRect: CGRect, along axis: RectAxis, spacing: CGFloat) -> [CGRect] {
| `- error: cannot find type 'CGFloat' in scope
34 | var previous: CGRect?
35 | return rects.map { rect in
/host/spi-builder-workspace/Sources/Classes/stack.layoutGuide.cglayout.swift:42:86: error: cannot find type 'CGRect' in scope
40 | }
41 | }
42 | func alignByCenter(rects: [CGRect], in sourceRect: CGRect, along axis: RectAxis) -> [CGRect] {
| `- error: cannot find type 'CGRect' in scope
43 | let offset = axis.get(midOf: sourceRect) - (((axis.get(maxOf: rects.last!) - axis.get(minOf: rects.first!)) / 2) + axis.get(minOf: rects.first!))
44 | return rects.map { axis.offset(rect: $0, by: offset) }
/host/spi-builder-workspace/Sources/Classes/stack.layoutGuide.cglayout.swift:42:28: error: cannot find type 'CGRect' in scope
40 | }
41 | }
42 | func alignByCenter(rects: [CGRect], in sourceRect: CGRect, along axis: RectAxis) -> [CGRect] {
| `- error: cannot find type 'CGRect' in scope
43 | let offset = axis.get(midOf: sourceRect) - (((axis.get(maxOf: rects.last!) - axis.get(minOf: rects.first!)) / 2) + axis.get(minOf: rects.first!))
44 | return rects.map { axis.offset(rect: $0, by: offset) }
/host/spi-builder-workspace/Sources/Classes/stack.layoutGuide.cglayout.swift:42:52: error: cannot find type 'CGRect' in scope
40 | }
41 | }
42 | func alignByCenter(rects: [CGRect], in sourceRect: CGRect, along axis: RectAxis) -> [CGRect] {
| `- error: cannot find type 'CGRect' in scope
43 | let offset = axis.get(midOf: sourceRect) - (((axis.get(maxOf: rects.last!) - axis.get(minOf: rects.first!)) / 2) + axis.get(minOf: rects.first!))
44 | return rects.map { axis.offset(rect: $0, by: offset) }
/host/spi-builder-workspace/Sources/Classes/stack.layoutGuide.cglayout.swift:47:81: error: cannot find type 'CGFloat' in scope
45 | }
46 |
47 | func space(for rects: [CGRect], in sourceRect: CGRect, along axis: RectAxis) -> CGFloat {
| `- error: cannot find type 'CGFloat' in scope
48 | let fullLength = rects.reduce(0) { $0 + axis.get(sizeAt: $1) }
49 | return (axis.get(sizeAt: sourceRect) - fullLength) / CGFloat(rects.count - 1)
/host/spi-builder-workspace/Sources/Classes/stack.layoutGuide.cglayout.swift:47:24: error: cannot find type 'CGRect' in scope
45 | }
46 |
47 | func space(for rects: [CGRect], in sourceRect: CGRect, along axis: RectAxis) -> CGFloat {
| `- error: cannot find type 'CGRect' in scope
48 | let fullLength = rects.reduce(0) { $0 + axis.get(sizeAt: $1) }
49 | return (axis.get(sizeAt: sourceRect) - fullLength) / CGFloat(rects.count - 1)
/host/spi-builder-workspace/Sources/Classes/stack.layoutGuide.cglayout.swift:47:48: error: cannot find type 'CGRect' in scope
45 | }
46 |
47 | func space(for rects: [CGRect], in sourceRect: CGRect, along axis: RectAxis) -> CGFloat {
| `- error: cannot find type 'CGRect' in scope
48 | let fullLength = rects.reduce(0) { $0 + axis.get(sizeAt: $1) }
49 | return (axis.get(sizeAt: sourceRect) - fullLength) / CGFloat(rects.count - 1)
/host/spi-builder-workspace/Sources/Classes/stack.layoutGuide.cglayout.swift:55:20: error: cannot find type 'CGFloat' in scope
53 | public enum Spacing {
54 | case equally
55 | case equal(CGFloat)
| `- error: cannot find type 'CGFloat' in scope
56 | }
57 | public struct Alignment: RectAxisLayout {
/host/spi-builder-workspace/Sources/Classes/stack.layoutGuide.cglayout.swift:68:46: error: cannot find type 'CGFloat' in scope
66 | }
67 |
68 | public static func leading(_ offset: CGFloat = 0) -> Alignment { return Alignment(Layout.Alignment.leading(by: CGRectAxis.vertical, offset: offset)) }
| `- error: cannot find type 'CGFloat' in scope
69 | public static func trailing(_ offset: CGFloat = 0) -> Alignment { return Alignment(Layout.Alignment.trailing(by: CGRectAxis.vertical, offset: offset)) }
70 | public static func center(_ offset: CGFloat = 0) -> Alignment { return Alignment(Layout.Alignment.center(by: CGRectAxis.vertical, offset: offset)) }
/host/spi-builder-workspace/Sources/Classes/stack.layoutGuide.cglayout.swift:69:47: error: cannot find type 'CGFloat' in scope
67 |
68 | public static func leading(_ offset: CGFloat = 0) -> Alignment { return Alignment(Layout.Alignment.leading(by: CGRectAxis.vertical, offset: offset)) }
69 | public static func trailing(_ offset: CGFloat = 0) -> Alignment { return Alignment(Layout.Alignment.trailing(by: CGRectAxis.vertical, offset: offset)) }
| `- error: cannot find type 'CGFloat' in scope
70 | public static func center(_ offset: CGFloat = 0) -> Alignment { return Alignment(Layout.Alignment.center(by: CGRectAxis.vertical, offset: offset)) }
71 |
/host/spi-builder-workspace/Sources/Classes/stack.layoutGuide.cglayout.swift:70:45: error: cannot find type 'CGFloat' in scope
68 | public static func leading(_ offset: CGFloat = 0) -> Alignment { return Alignment(Layout.Alignment.leading(by: CGRectAxis.vertical, offset: offset)) }
69 | public static func trailing(_ offset: CGFloat = 0) -> Alignment { return Alignment(Layout.Alignment.trailing(by: CGRectAxis.vertical, offset: offset)) }
70 | public static func center(_ offset: CGFloat = 0) -> Alignment { return Alignment(Layout.Alignment.center(by: CGRectAxis.vertical, offset: offset)) }
| `- error: cannot find type 'CGFloat' in scope
71 |
72 | public func formLayout(rect: inout CGRect, in source: CGRect) {
/host/spi-builder-workspace/Sources/Classes/stack.layoutGuide.cglayout.swift:72:44: error: cannot find type 'CGRect' in scope
70 | public static func center(_ offset: CGFloat = 0) -> Alignment { return Alignment(Layout.Alignment.center(by: CGRectAxis.vertical, offset: offset)) }
71 |
72 | public func formLayout(rect: inout CGRect, in source: CGRect) {
| `- error: cannot find type 'CGRect' in scope
73 | layout.formLayout(rect: &rect, in: source)
74 | }
/host/spi-builder-workspace/Sources/Classes/stack.layoutGuide.cglayout.swift:72:63: error: cannot find type 'CGRect' in scope
70 | public static func center(_ offset: CGFloat = 0) -> Alignment { return Alignment(Layout.Alignment.center(by: CGRectAxis.vertical, offset: offset)) }
71 |
72 | public func formLayout(rect: inout CGRect, in source: CGRect) {
| `- error: cannot find type 'CGRect' in scope
73 | layout.formLayout(rect: &rect, in: source)
74 | }
/host/spi-builder-workspace/Sources/Classes/stack.layoutGuide.cglayout.swift:88:20: error: cannot find type 'CGFloat' in scope
86 | public enum Filling {
87 | case equally
88 | case equal(CGFloat)
| `- error: cannot find type 'CGFloat' in scope
89 | }
90 |
/host/spi-builder-workspace/Sources/Classes/stack.layoutGuide.cglayout.swift:96:94: error: cannot find type 'CGRect' in scope
94 | var filling: Filling
95 |
96 | public func distribute(rects: [CGRect], in sourceRect: CGRect, along axis: RectAxis) -> [CGRect] {
| `- error: cannot find type 'CGRect' in scope
97 | guard rects.count > 0 else { return rects }
98 | let fill: CGFloat = {
/host/spi-builder-workspace/Sources/Classes/stack.layoutGuide.cglayout.swift:96:36: error: cannot find type 'CGRect' in scope
94 | var filling: Filling
95 |
96 | public func distribute(rects: [CGRect], in sourceRect: CGRect, along axis: RectAxis) -> [CGRect] {
| `- error: cannot find type 'CGRect' in scope
97 | guard rects.count > 0 else { return rects }
98 | let fill: CGFloat = {
/host/spi-builder-workspace/Sources/Classes/stack.layoutGuide.cglayout.swift:96:60: error: cannot find type 'CGRect' in scope
94 | var filling: Filling
95 |
96 | public func distribute(rects: [CGRect], in sourceRect: CGRect, along axis: RectAxis) -> [CGRect] {
| `- error: cannot find type 'CGRect' in scope
97 | guard rects.count > 0 else { return rects }
98 | let fill: CGFloat = {
/host/spi-builder-workspace/Sources/Classes/coordinate.cglayout.swift:24:61: error: cannot find type 'CGPoint' in scope
22 | /// Therefore should UIView.layer property when creates constraint relationship between UIView and CALayer.
23 | public protocol LayoutCoordinateSpace {
24 | func convert(point: CGPoint, to item: LayoutElement) -> CGPoint
| `- error: cannot find type 'CGPoint' in scope
25 | func convert(point: CGPoint, from item: LayoutElement) -> CGPoint
26 | func convert(rect: CGRect, to item: LayoutElement) -> CGRect
/host/spi-builder-workspace/Sources/Classes/coordinate.cglayout.swift:24:25: error: cannot find type 'CGPoint' in scope
22 | /// Therefore should UIView.layer property when creates constraint relationship between UIView and CALayer.
23 | public protocol LayoutCoordinateSpace {
24 | func convert(point: CGPoint, to item: LayoutElement) -> CGPoint
| `- error: cannot find type 'CGPoint' in scope
25 | func convert(point: CGPoint, from item: LayoutElement) -> CGPoint
26 | func convert(rect: CGRect, to item: LayoutElement) -> CGRect
/host/spi-builder-workspace/Sources/Classes/coordinate.cglayout.swift:25:63: error: cannot find type 'CGPoint' in scope
23 | public protocol LayoutCoordinateSpace {
24 | func convert(point: CGPoint, to item: LayoutElement) -> CGPoint
25 | func convert(point: CGPoint, from item: LayoutElement) -> CGPoint
| `- error: cannot find type 'CGPoint' in scope
26 | func convert(rect: CGRect, to item: LayoutElement) -> CGRect
27 | func convert(rect: CGRect, from item: LayoutElement) -> CGRect
/host/spi-builder-workspace/Sources/Classes/coordinate.cglayout.swift:25:25: error: cannot find type 'CGPoint' in scope
23 | public protocol LayoutCoordinateSpace {
24 | func convert(point: CGPoint, to item: LayoutElement) -> CGPoint
25 | func convert(point: CGPoint, from item: LayoutElement) -> CGPoint
| `- error: cannot find type 'CGPoint' in scope
26 | func convert(rect: CGRect, to item: LayoutElement) -> CGRect
27 | func convert(rect: CGRect, from item: LayoutElement) -> CGRect
/host/spi-builder-workspace/Sources/Classes/coordinate.cglayout.swift:26:59: error: cannot find type 'CGRect' in scope
24 | func convert(point: CGPoint, to item: LayoutElement) -> CGPoint
25 | func convert(point: CGPoint, from item: LayoutElement) -> CGPoint
26 | func convert(rect: CGRect, to item: LayoutElement) -> CGRect
| `- error: cannot find type 'CGRect' in scope
27 | func convert(rect: CGRect, from item: LayoutElement) -> CGRect
28 |
/host/spi-builder-workspace/Sources/Classes/coordinate.cglayout.swift:26:24: error: cannot find type 'CGRect' in scope
24 | func convert(point: CGPoint, to item: LayoutElement) -> CGPoint
25 | func convert(point: CGPoint, from item: LayoutElement) -> CGPoint
26 | func convert(rect: CGRect, to item: LayoutElement) -> CGRect
| `- error: cannot find type 'CGRect' in scope
27 | func convert(rect: CGRect, from item: LayoutElement) -> CGRect
28 |
/host/spi-builder-workspace/Sources/Classes/coordinate.cglayout.swift:27:61: error: cannot find type 'CGRect' in scope
25 | func convert(point: CGPoint, from item: LayoutElement) -> CGPoint
26 | func convert(rect: CGRect, to item: LayoutElement) -> CGRect
27 | func convert(rect: CGRect, from item: LayoutElement) -> CGRect
| `- error: cannot find type 'CGRect' in scope
28 |
29 | var bounds: CGRect { get }
/host/spi-builder-workspace/Sources/Classes/coordinate.cglayout.swift:27:24: error: cannot find type 'CGRect' in scope
25 | func convert(point: CGPoint, from item: LayoutElement) -> CGPoint
26 | func convert(rect: CGRect, to item: LayoutElement) -> CGRect
27 | func convert(rect: CGRect, from item: LayoutElement) -> CGRect
| `- error: cannot find type 'CGRect' in scope
28 |
29 | var bounds: CGRect { get }
/host/spi-builder-workspace/Sources/Classes/coordinate.cglayout.swift:29:17: error: cannot find type 'CGRect' in scope
27 | func convert(rect: CGRect, from item: LayoutElement) -> CGRect
28 |
29 | var bounds: CGRect { get }
| `- error: cannot find type 'CGRect' in scope
30 | }
31 | #if os(iOS) || os(tvOS)
/host/spi-builder-workspace/Sources/Classes/layoutBlock.cglayout.swift:22:16: error: cannot find type 'CGRect' in scope
20 | public protocol LayoutSnapshotProtocol { // TODO: Equatable
21 | /// Frame of layout block represented as snapshot
22 | var frame: CGRect { get }
| `- error: cannot find type 'CGRect' in scope
23 | /// Snapshots of child layout blocks
24 | var childSnapshots: [LayoutSnapshotProtocol] { get }
/host/spi-builder-workspace/Sources/Classes/stack.layoutGuide.cglayout.swift:193:29: error: cannot find type 'CGRect' in scope
191 | }, frame: snapshotFrame ?? .zero)
192 | }
193 | public var currentRect: CGRect {
| `- error: cannot find type 'CGRect' in scope
194 | let items = self.items()
195 | guard items.count > 0 else { fatalError(StackLayoutScheme.message(forNotActive: self)) }
/host/spi-builder-workspace/Sources/Classes/stack.layoutGuide.cglayout.swift:202:32: error: cannot find type 'CGRect' in scope
200 | ///
201 | /// - Parameter sourceRect: Source space
202 | func layout(in sourceRect: CGRect) {
| `- error: cannot find type 'CGRect' in scope
203 | let subItems = items()
204 | let frames = distribution.distribute(rects: subItems.map { $0.inLayoutTime.frame }, in: sourceRect, along: axis)
/host/spi-builder-workspace/Sources/Classes/stack.layoutGuide.cglayout.swift:223:35: error: cannot find type 'CGRect' in scope
221 | /// - Parameter sourceRect: Source space for layout
222 | /// - Returns: Snapshot contained frames layout items
223 | func snapshot(for sourceRect: CGRect) -> LayoutSnapshotProtocol {
| `- error: cannot find type 'CGRect' in scope
224 | var completedFrames: [ObjectIdentifier: CGRect] = [:]
225 | return snapshot(for: sourceRect, completedRects: &completedFrames)
/host/spi-builder-workspace/Sources/Classes/stack.layoutGuide.cglayout.swift:235:35: error: cannot find type 'CGRect' in scope
233 | /// - completedRects: `LayoutItem` items with corrected frame
234 | /// - Returns: Frame of this block
235 | func snapshot(for sourceRect: CGRect, completedRects: inout [ObjectIdentifier : CGRect]) -> LayoutSnapshotProtocol {
| `- error: cannot find type 'CGRect' in scope
236 | let subItems = items()
237 | let frames = distribution.distribute(
/host/spi-builder-workspace/Sources/Classes/stack.layoutGuide.cglayout.swift:235:85: error: cannot find type 'CGRect' in scope
233 | /// - completedRects: `LayoutItem` items with corrected frame
234 | /// - Returns: Frame of this block
235 | func snapshot(for sourceRect: CGRect, completedRects: inout [ObjectIdentifier : CGRect]) -> LayoutSnapshotProtocol {
| `- error: cannot find type 'CGRect' in scope
236 | let subItems = items()
237 | let frames = distribution.distribute(
/host/spi-builder-workspace/Sources/Classes/layoutBlock.cglayout.swift:39:22: error: cannot find type 'CGRect' in scope
37 | /// Snapshot for current state without recalculating
38 | var currentSnapshot: LayoutSnapshotProtocol { get }
39 | var currentRect: CGRect { get }
| `- error: cannot find type 'CGRect' in scope
40 |
41 | /// Calculate and apply frames layout items in custom space.
/host/spi-builder-workspace/Sources/Classes/layoutBlock.cglayout.swift:44:32: error: cannot find type 'CGRect' in scope
42 | ///
43 | /// - Parameter sourceRect: Source space
44 | func layout(in sourceRect: CGRect)
| `- error: cannot find type 'CGRect' in scope
45 |
46 | /// Returns snapshot for all `LayoutElement` items in block. Attention: in during calculating snapshot frames of layout items must not changed.
/host/spi-builder-workspace/Sources/Classes/layoutBlock.cglayout.swift:50:35: error: cannot find type 'CGRect' in scope
48 | /// - Parameter sourceRect: Source space for layout
49 | /// - Returns: Snapshot that contains frames layout items
50 | func snapshot(for sourceRect: CGRect) -> LayoutSnapshotProtocol
| `- error: cannot find type 'CGRect' in scope
51 |
52 | /// Returns snapshot for all `LayoutElement` items in block. Does not call this method directly outside `LayoutBlockProtocol` object.
/host/spi-builder-workspace/Sources/Classes/layoutBlock.cglayout.swift:59:35: error: cannot find type 'CGRect' in scope
57 | /// - completedRects: `LayoutElement` items with corrected frame
58 | /// - Returns: Snapshot that contains frames layout items
59 | func snapshot(for sourceRect: CGRect, completedRects: inout [ObjectIdentifier: CGRect]) -> LayoutSnapshotProtocol
| `- error: cannot find type 'CGRect' in scope
60 |
61 | /// Applying frames from snapshot to `LayoutElement` items in this block.
/host/spi-builder-workspace/Sources/Classes/layoutBlock.cglayout.swift:59:84: error: cannot find type 'CGRect' in scope
57 | /// - completedRects: `LayoutElement` items with corrected frame
58 | /// - Returns: Snapshot that contains frames layout items
59 | func snapshot(for sourceRect: CGRect, completedRects: inout [ObjectIdentifier: CGRect]) -> LayoutSnapshotProtocol
| `- error: cannot find type 'CGRect' in scope
60 |
61 | /// Applying frames from snapshot to `LayoutElement` items in this block.
/host/spi-builder-workspace/Sources/Classes/layoutGuide.cglayout.swift:50:24: error: cannot find type 'CGRect' in scope
48 | func removeFromSuperElement() { ownerElement = nil }
49 |
50 | public init(frame: CGRect = .zero) {
| `- error: cannot find type 'CGRect' in scope
51 | self.frame = frame
52 | self.bounds = CGRect(origin: .zero, size: frame.size)
/host/spi-builder-workspace/Sources/Classes/stack.layoutGuide.cglayout.swift:262:29: error: cannot find type 'EdgeInsets' in scope
260 | open var arrangedItems: [LayoutElement] { return items.map { $0.child } }
261 | /// Insets for distribution space
262 | open var contentInsets: EdgeInsets = .zero {
| `- error: cannot find type 'EdgeInsets' in scope
263 | didSet { insetAnchor = Inset(contentInsets) }
264 | }
/host/spi-builder-workspace/Sources/Classes/core.cglayout.swift:396:27: error: cannot find type 'EdgeInsets' in scope
394 | public struct Inset: RectBasedConstraint {
395 | let insets: EdgeInsets
396 | public init(_ insets: EdgeInsets) {
| `- error: cannot find type 'EdgeInsets' in scope
397 | self.insets = insets
398 | }
/host/spi-builder-workspace/Sources/Classes/stack.layoutGuide.cglayout.swift:294:40: error: cannot find type 'CGRect' in scope
292 | ///
293 | /// - Parameter rect: Space for layout
294 | override open func layout(in rect: CGRect) {
| `- error: cannot find type 'CGRect' in scope
295 | super.layout(in: rect)
296 | scheme.layout(in: rect)
/host/spi-builder-workspace/Sources/Classes/stack.layoutGuide.cglayout.swift:303:63: error: cannot find type 'CGRect' in scope
301 | /// - Parameter frame: New frame value.
302 | /// - Returns: Content rect
303 | open override func contentRect(forFrame frame: CGRect) -> CGRect {
| `- error: cannot find type 'CGRect' in scope
304 | let lFrame = super.contentRect(forFrame: frame)
305 | return insetAnchor?.constrained(sourceRect: lFrame, by: .zero) ?? lFrame
/host/spi-builder-workspace/Sources/Classes/stack.layoutGuide.cglayout.swift:303:52: error: cannot find type 'CGRect' in scope
301 | /// - Parameter frame: New frame value.
302 | /// - Returns: Content rect
303 | open override func contentRect(forFrame frame: CGRect) -> CGRect {
| `- error: cannot find type 'CGRect' in scope
304 | let lFrame = super.contentRect(forFrame: frame)
305 | return insetAnchor?.constrained(sourceRect: lFrame, by: .zero) ?? lFrame
/host/spi-builder-workspace/Sources/Classes/stack.layoutGuide.cglayout.swift:312:42: error: cannot find type 'CGSize' in scope
310 | /// - Parameter size: The size for which the view should calculate its best-fitting size
311 | /// - Returns: A new size that fits the receiver’s content
312 | func sizeThatFits(_ size: CGSize) -> CGSize {
| `- error: cannot find type 'CGSize' in scope
313 | let sourceRect = CGRect(origin: .zero, size: size)
314 | var result = scheme.snapshot(for: insetAnchor?.constrained(sourceRect: sourceRect, by: .zero) ?? sourceRect).frame.distanceFromOrigin
/host/spi-builder-workspace/Sources/Classes/stack.layoutGuide.cglayout.swift:312:31: error: cannot find type 'CGSize' in scope
310 | /// - Parameter size: The size for which the view should calculate its best-fitting size
311 | /// - Returns: A new size that fits the receiver’s content
312 | func sizeThatFits(_ size: CGSize) -> CGSize {
| `- error: cannot find type 'CGSize' in scope
313 | let sourceRect = CGRect(origin: .zero, size: size)
314 | var result = scheme.snapshot(for: insetAnchor?.constrained(sourceRect: sourceRect, by: .zero) ?? sourceRect).frame.distanceFromOrigin
/host/spi-builder-workspace/Sources/Classes/stack.layoutGuide.cglayout.swift:25:19: error: cannot find type 'CGRect' in scope
23 |
24 | func distributeFromLeading(rects: [CGRect], in sourceRect: CGRect, along axis: RectAxis, spacing: CGFloat) -> [CGRect] {
25 | var previous: CGRect?
| `- error: cannot find type 'CGRect' in scope
26 | return rects.map { rect in
27 | var rect = rect
/host/spi-builder-workspace/Sources/Classes/stack.layoutGuide.cglayout.swift:34:19: error: cannot find type 'CGRect' in scope
32 | }
33 | func distributeFromTrailing(rects: [CGRect], in sourceRect: CGRect, along axis: RectAxis, spacing: CGFloat) -> [CGRect] {
34 | var previous: CGRect?
| `- error: cannot find type 'CGRect' in scope
35 | return rects.map { rect in
36 | var rect = rect
/host/spi-builder-workspace/Sources/Classes/common.cglayout.swift:86:34: error: cannot find type 'CGSize' in scope
84 | #endif
85 |
86 | func -(l: CGSize, r: CGFloat) -> CGSize { return CGSize(width: l.width - r, height: l.height - r) }
| `- error: cannot find type 'CGSize' in scope
87 | func +(l: CGSize, r: CGFloat) -> CGSize { return CGSize(width: l.width + r, height: l.height + r) }
88 | func *(l: CGSize, r: CGFloat) -> CGSize { return CGSize(width: l.width * r, height: l.height * r) }
/host/spi-builder-workspace/Sources/Classes/common.cglayout.swift:86:11: error: cannot find type 'CGSize' in scope
84 | #endif
85 |
86 | func -(l: CGSize, r: CGFloat) -> CGSize { return CGSize(width: l.width - r, height: l.height - r) }
| `- error: cannot find type 'CGSize' in scope
87 | func +(l: CGSize, r: CGFloat) -> CGSize { return CGSize(width: l.width + r, height: l.height + r) }
88 | func *(l: CGSize, r: CGFloat) -> CGSize { return CGSize(width: l.width * r, height: l.height * r) }
/host/spi-builder-workspace/Sources/Classes/common.cglayout.swift:86:22: error: cannot find type 'CGFloat' in scope
84 | #endif
85 |
86 | func -(l: CGSize, r: CGFloat) -> CGSize { return CGSize(width: l.width - r, height: l.height - r) }
| `- error: cannot find type 'CGFloat' in scope
87 | func +(l: CGSize, r: CGFloat) -> CGSize { return CGSize(width: l.width + r, height: l.height + r) }
88 | func *(l: CGSize, r: CGFloat) -> CGSize { return CGSize(width: l.width * r, height: l.height * r) }
/host/spi-builder-workspace/Sources/Classes/common.cglayout.swift:87:34: error: cannot find type 'CGSize' in scope
85 |
86 | func -(l: CGSize, r: CGFloat) -> CGSize { return CGSize(width: l.width - r, height: l.height - r) }
87 | func +(l: CGSize, r: CGFloat) -> CGSize { return CGSize(width: l.width + r, height: l.height + r) }
| `- error: cannot find type 'CGSize' in scope
88 | func *(l: CGSize, r: CGFloat) -> CGSize { return CGSize(width: l.width * r, height: l.height * r) }
89 |
/host/spi-builder-workspace/Sources/Classes/common.cglayout.swift:87:11: error: cannot find type 'CGSize' in scope
85 |
86 | func -(l: CGSize, r: CGFloat) -> CGSize { return CGSize(width: l.width - r, height: l.height - r) }
87 | func +(l: CGSize, r: CGFloat) -> CGSize { return CGSize(width: l.width + r, height: l.height + r) }
| `- error: cannot find type 'CGSize' in scope
88 | func *(l: CGSize, r: CGFloat) -> CGSize { return CGSize(width: l.width * r, height: l.height * r) }
89 |
/host/spi-builder-workspace/Sources/Classes/common.cglayout.swift:87:22: error: cannot find type 'CGFloat' in scope
85 |
86 | func -(l: CGSize, r: CGFloat) -> CGSize { return CGSize(width: l.width - r, height: l.height - r) }
87 | func +(l: CGSize, r: CGFloat) -> CGSize { return CGSize(width: l.width + r, height: l.height + r) }
| `- error: cannot find type 'CGFloat' in scope
88 | func *(l: CGSize, r: CGFloat) -> CGSize { return CGSize(width: l.width * r, height: l.height * r) }
89 |
/host/spi-builder-workspace/Sources/Classes/stack.layoutGuide.cglayout.swift:98:19: error: cannot find type 'CGFloat' in scope
96 | public func distribute(rects: [CGRect], in sourceRect: CGRect, along axis: RectAxis) -> [CGRect] {
97 | guard rects.count > 0 else { return rects }
98 | let fill: CGFloat = {
| `- error: cannot find type 'CGFloat' in scope
99 | let count = CGFloat(rects.count)
100 | switch (self.filling, self.spacing) {
/host/spi-builder-workspace/Sources/Classes/stack.layoutGuide.cglayout.swift:111:47: error: cannot find type 'CGRect' in scope
109 |
110 | let transverseAxis = axis.transverse()
111 | let filledRects = rects.map { rect -> CGRect in
| `- error: cannot find type 'CGRect' in scope
112 | var rect = rect
113 | axis.set(size: fill, for: &rect)
/host/spi-builder-workspace/Sources/Classes/stack.layoutGuide.cglayout.swift:113:39: error: cannot convert value of type '_' to expected argument type 'CGRect'
111 | let filledRects = rects.map { rect -> CGRect in
112 | var rect = rect
113 | axis.set(size: fill, for: &rect)
| `- error: cannot convert value of type '_' to expected argument type 'CGRect'
114 | transverseAxis.set(size: transverseAxis.get(sizeAt: sourceRect), for: &rect)
115 | return rect
/host/spi-builder-workspace/Sources/Classes/stack.layoutGuide.cglayout.swift:118:22: error: cannot find type 'CGFloat' in scope
116 | }
117 |
118 | let spacing: CGFloat = {
| `- error: cannot find type 'CGFloat' in scope
119 | switch self.spacing {
120 | case .equally:
/host/spi-builder-workspace/Sources/Classes/stack.layoutGuide.cglayout.swift:186:28: error: cannot find type 'CGRect' in scope
184 | public /// Snapshot for current state without recalculating
185 | var currentSnapshot: LayoutSnapshotProtocol {
186 | var snapshotFrame: CGRect?
| `- error: cannot find type 'CGRect' in scope
187 | return LayoutSnapshot(childSnapshots: items().map { block in
188 | let blockFrame = block.frame
/host/spi-builder-workspace/Sources/Classes/private.cglayout.swift:41:16: error: cannot find type 'CGRect' in scope
39 | internal struct LayoutSnapshot: LayoutSnapshotProtocol {
40 | let childSnapshots: [LayoutSnapshotProtocol]
41 | let frame: CGRect
| `- error: cannot find type 'CGRect' in scope
42 | }
43 |
/host/spi-builder-workspace/Sources/Classes/stack.layoutGuide.cglayout.swift:205:31: error: type of expression is ambiguous without a type annotation
203 | let subItems = items()
204 | let frames = distribution.distribute(rects: subItems.map { $0.inLayoutTime.frame }, in: sourceRect, along: axis)
205 | zip(subItems, frames).forEach { $0.0.frame = $0.1 }
| `- error: type of expression is ambiguous without a type annotation
206 | }
207 |
/host/spi-builder-workspace/Sources/Classes/stack.layoutGuide.cglayout.swift:224:49: error: cannot find type 'CGRect' in scope
222 | /// - Returns: Snapshot contained frames layout items
223 | func snapshot(for sourceRect: CGRect) -> LayoutSnapshotProtocol {
224 | var completedFrames: [ObjectIdentifier: CGRect] = [:]
| `- error: cannot find type 'CGRect' in scope
225 | return snapshot(for: sourceRect, completedRects: &completedFrames)
226 | }
/host/spi-builder-workspace/Sources/Classes/layoutBlock.cglayout.swift:76:35: error: cannot find type 'CGRect' in scope
74 | /// - constrainRects: `LayoutElement` items, that not included to block, but use for constraining.
75 | /// - Returns: Snapshot that contains frames layout items
76 | func snapshot(for sourceRect: CGRect, constrainRects: [ObjectIdentifier: CGRect]) -> LayoutSnapshotProtocol {
| `- error: cannot find type 'CGRect' in scope
77 | var completedRects = constrainRects
78 | return snapshot(for: sourceRect, completedRects: &completedRects)
/host/spi-builder-workspace/Sources/Classes/layoutBlock.cglayout.swift:76:78: error: cannot find type 'CGRect' in scope
74 | /// - constrainRects: `LayoutElement` items, that not included to block, but use for constraining.
75 | /// - Returns: Snapshot that contains frames layout items
76 | func snapshot(for sourceRect: CGRect, constrainRects: [ObjectIdentifier: CGRect]) -> LayoutSnapshotProtocol {
| `- error: cannot find type 'CGRect' in scope
77 | var completedRects = constrainRects
78 | return snapshot(for: sourceRect, completedRects: &completedRects)
/host/spi-builder-workspace/Sources/Classes/stack.layoutGuide.cglayout.swift:247:79: error: cannot find 'CGRect' in scope
245 | snapRect = snapRect?.union(current) ?? current
246 | }
247 | return LayoutSnapshot(childSnapshots: frames, frame: snapshotFrame ?? CGRect(origin: sourceRect.origin, size: .zero))
| `- error: cannot find 'CGRect' in scope
248 | }
249 | }
/host/spi-builder-workspace/Sources/Classes/stack.layoutGuide.cglayout.swift:247:120: error: cannot infer contextual base in reference to member 'zero'
245 | snapRect = snapRect?.union(current) ?? current
246 | }
247 | return LayoutSnapshot(childSnapshots: frames, frame: snapshotFrame ?? CGRect(origin: sourceRect.origin, size: .zero))
| `- error: cannot infer contextual base in reference to member 'zero'
248 | }
249 | }
/host/spi-builder-workspace/Sources/Classes/stack.layoutGuide.cglayout.swift:281:18: error: incorrect argument label in call (have 'frame:', expected 'items:')
279 |
280 | public convenience init(items: [Element]) {
281 | self.init(frame: .zero)
| `- error: incorrect argument label in call (have 'frame:', expected 'items:')
282 | self.items = items
283 | }
/host/spi-builder-workspace/Sources/Classes/stack.layoutGuide.cglayout.swift:281:27: error: type '[StackLayoutGuide<Parent>.Element]' has no member 'zero'
279 |
280 | public convenience init(items: [Element]) {
281 | self.init(frame: .zero)
| `- error: type '[StackLayoutGuide<Parent>.Element]' has no member 'zero'
282 | self.items = items
283 | }
/host/spi-builder-workspace/Sources/Classes/layoutGuide.cglayout.swift:63:31: error: cannot find type 'CGRect' in scope
61 | ///
62 | /// - Parameter rect: Space for layout
63 | open func layout(in rect: CGRect) {
| `- error: cannot find type 'CGRect' in scope
64 | // subclass override
65 | }
/host/spi-builder-workspace/Sources/Classes/stack.layoutGuide.cglayout.swift:295:26: error: argument passed to call that takes no arguments
293 | /// - Parameter rect: Space for layout
294 | override open func layout(in rect: CGRect) {
295 | super.layout(in: rect)
| `- error: argument passed to call that takes no arguments
296 | scheme.layout(in: rect)
297 | }
/host/spi-builder-workspace/Sources/Classes/layoutGuide.cglayout.swift:75:54: error: cannot find type 'CGRect' in scope
73 | /// - Parameter frame: New frame value.
74 | /// - Returns: Content rect
75 | open func contentRect(forFrame frame: CGRect) -> CGRect {
| `- error: cannot find type 'CGRect' in scope
76 | return CGRect(origin: .zero, size: frame.size)
77 | }
/host/spi-builder-workspace/Sources/Classes/layoutGuide.cglayout.swift:75:43: error: cannot find type 'CGRect' in scope
73 | /// - Parameter frame: New frame value.
74 | /// - Returns: Content rect
75 | open func contentRect(forFrame frame: CGRect) -> CGRect {
| `- error: cannot find type 'CGRect' in scope
76 | return CGRect(origin: .zero, size: frame.size)
77 | }
/host/spi-builder-workspace/Sources/Classes/stack.layoutGuide.cglayout.swift:313:26: error: cannot find 'CGRect' in scope
311 | /// - Returns: A new size that fits the receiver’s content
312 | func sizeThatFits(_ size: CGSize) -> CGSize {
313 | let sourceRect = CGRect(origin: .zero, size: size)
| `- error: cannot find 'CGRect' in scope
314 | var result = scheme.snapshot(for: insetAnchor?.constrained(sourceRect: sourceRect, by: .zero) ?? sourceRect).frame.distanceFromOrigin
315 | result.width += contentInsets.right
/host/spi-builder-workspace/Sources/Classes/stack.layoutGuide.cglayout.swift:313:42: error: cannot infer contextual base in reference to member 'zero'
311 | /// - Returns: A new size that fits the receiver’s content
312 | func sizeThatFits(_ size: CGSize) -> CGSize {
313 | let sourceRect = CGRect(origin: .zero, size: size)
| `- error: cannot infer contextual base in reference to member 'zero'
314 | var result = scheme.snapshot(for: insetAnchor?.constrained(sourceRect: sourceRect, by: .zero) ?? sourceRect).frame.distanceFromOrigin
315 | result.width += contentInsets.right
[19/19] Compiling CGLayout support.cglayout.swift
/host/spi-builder-workspace/Sources/Classes/stack.layoutGuide.cglayout.swift:21:87: error: cannot find type 'CGRect' in scope
19 | /// Base protocol for any layout distribution
20 | protocol RectBasedDistribution {
21 | func distribute(rects: [CGRect], in sourceRect: CGRect, along axis: RectAxis) -> [CGRect]
| `- error: cannot find type 'CGRect' in scope
22 | }
23 |
/host/spi-builder-workspace/Sources/Classes/stack.layoutGuide.cglayout.swift:21:29: error: cannot find type 'CGRect' in scope
19 | /// Base protocol for any layout distribution
20 | protocol RectBasedDistribution {
21 | func distribute(rects: [CGRect], in sourceRect: CGRect, along axis: RectAxis) -> [CGRect]
| `- error: cannot find type 'CGRect' in scope
22 | }
23 |
/host/spi-builder-workspace/Sources/Classes/stack.layoutGuide.cglayout.swift:21:53: error: cannot find type 'CGRect' in scope
19 | /// Base protocol for any layout distribution
20 | protocol RectBasedDistribution {
21 | func distribute(rects: [CGRect], in sourceRect: CGRect, along axis: RectAxis) -> [CGRect]
| `- error: cannot find type 'CGRect' in scope
22 | }
23 |
/host/spi-builder-workspace/Sources/Classes/stack.layoutGuide.cglayout.swift:24:112: error: cannot find type 'CGRect' in scope
22 | }
23 |
24 | func distributeFromLeading(rects: [CGRect], in sourceRect: CGRect, along axis: RectAxis, spacing: CGFloat) -> [CGRect] {
| `- error: cannot find type 'CGRect' in scope
25 | var previous: CGRect?
26 | return rects.map { rect in
/host/spi-builder-workspace/Sources/Classes/stack.layoutGuide.cglayout.swift:24:36: error: cannot find type 'CGRect' in scope
22 | }
23 |
24 | func distributeFromLeading(rects: [CGRect], in sourceRect: CGRect, along axis: RectAxis, spacing: CGFloat) -> [CGRect] {
| `- error: cannot find type 'CGRect' in scope
25 | var previous: CGRect?
26 | return rects.map { rect in
/host/spi-builder-workspace/Sources/Classes/stack.layoutGuide.cglayout.swift:24:60: error: cannot find type 'CGRect' in scope
22 | }
23 |
24 | func distributeFromLeading(rects: [CGRect], in sourceRect: CGRect, along axis: RectAxis, spacing: CGFloat) -> [CGRect] {
| `- error: cannot find type 'CGRect' in scope
25 | var previous: CGRect?
26 | return rects.map { rect in
/host/spi-builder-workspace/Sources/Classes/stack.layoutGuide.cglayout.swift:24:99: error: cannot find type 'CGFloat' in scope
22 | }
23 |
24 | func distributeFromLeading(rects: [CGRect], in sourceRect: CGRect, along axis: RectAxis, spacing: CGFloat) -> [CGRect] {
| `- error: cannot find type 'CGFloat' in scope
25 | var previous: CGRect?
26 | return rects.map { rect in
/host/spi-builder-workspace/Sources/Classes/stack.layoutGuide.cglayout.swift:33:113: error: cannot find type 'CGRect' in scope
31 | }
32 | }
33 | func distributeFromTrailing(rects: [CGRect], in sourceRect: CGRect, along axis: RectAxis, spacing: CGFloat) -> [CGRect] {
| `- error: cannot find type 'CGRect' in scope
34 | var previous: CGRect?
35 | return rects.map { rect in
/host/spi-builder-workspace/Sources/Classes/stack.layoutGuide.cglayout.swift:33:37: error: cannot find type 'CGRect' in scope
31 | }
32 | }
33 | func distributeFromTrailing(rects: [CGRect], in sourceRect: CGRect, along axis: RectAxis, spacing: CGFloat) -> [CGRect] {
| `- error: cannot find type 'CGRect' in scope
34 | var previous: CGRect?
35 | return rects.map { rect in
/host/spi-builder-workspace/Sources/Classes/stack.layoutGuide.cglayout.swift:33:61: error: cannot find type 'CGRect' in scope
31 | }
32 | }
33 | func distributeFromTrailing(rects: [CGRect], in sourceRect: CGRect, along axis: RectAxis, spacing: CGFloat) -> [CGRect] {
| `- error: cannot find type 'CGRect' in scope
34 | var previous: CGRect?
35 | return rects.map { rect in
/host/spi-builder-workspace/Sources/Classes/stack.layoutGuide.cglayout.swift:33:100: error: cannot find type 'CGFloat' in scope
31 | }
32 | }
33 | func distributeFromTrailing(rects: [CGRect], in sourceRect: CGRect, along axis: RectAxis, spacing: CGFloat) -> [CGRect] {
| `- error: cannot find type 'CGFloat' in scope
34 | var previous: CGRect?
35 | return rects.map { rect in
/host/spi-builder-workspace/Sources/Classes/stack.layoutGuide.cglayout.swift:42:86: error: cannot find type 'CGRect' in scope
40 | }
41 | }
42 | func alignByCenter(rects: [CGRect], in sourceRect: CGRect, along axis: RectAxis) -> [CGRect] {
| `- error: cannot find type 'CGRect' in scope
43 | let offset = axis.get(midOf: sourceRect) - (((axis.get(maxOf: rects.last!) - axis.get(minOf: rects.first!)) / 2) + axis.get(minOf: rects.first!))
44 | return rects.map { axis.offset(rect: $0, by: offset) }
/host/spi-builder-workspace/Sources/Classes/stack.layoutGuide.cglayout.swift:42:28: error: cannot find type 'CGRect' in scope
40 | }
41 | }
42 | func alignByCenter(rects: [CGRect], in sourceRect: CGRect, along axis: RectAxis) -> [CGRect] {
| `- error: cannot find type 'CGRect' in scope
43 | let offset = axis.get(midOf: sourceRect) - (((axis.get(maxOf: rects.last!) - axis.get(minOf: rects.first!)) / 2) + axis.get(minOf: rects.first!))
44 | return rects.map { axis.offset(rect: $0, by: offset) }
/host/spi-builder-workspace/Sources/Classes/stack.layoutGuide.cglayout.swift:42:52: error: cannot find type 'CGRect' in scope
40 | }
41 | }
42 | func alignByCenter(rects: [CGRect], in sourceRect: CGRect, along axis: RectAxis) -> [CGRect] {
| `- error: cannot find type 'CGRect' in scope
43 | let offset = axis.get(midOf: sourceRect) - (((axis.get(maxOf: rects.last!) - axis.get(minOf: rects.first!)) / 2) + axis.get(minOf: rects.first!))
44 | return rects.map { axis.offset(rect: $0, by: offset) }
/host/spi-builder-workspace/Sources/Classes/stack.layoutGuide.cglayout.swift:47:81: error: cannot find type 'CGFloat' in scope
45 | }
46 |
47 | func space(for rects: [CGRect], in sourceRect: CGRect, along axis: RectAxis) -> CGFloat {
| `- error: cannot find type 'CGFloat' in scope
48 | let fullLength = rects.reduce(0) { $0 + axis.get(sizeAt: $1) }
49 | return (axis.get(sizeAt: sourceRect) - fullLength) / CGFloat(rects.count - 1)
/host/spi-builder-workspace/Sources/Classes/stack.layoutGuide.cglayout.swift:47:24: error: cannot find type 'CGRect' in scope
45 | }
46 |
47 | func space(for rects: [CGRect], in sourceRect: CGRect, along axis: RectAxis) -> CGFloat {
| `- error: cannot find type 'CGRect' in scope
48 | let fullLength = rects.reduce(0) { $0 + axis.get(sizeAt: $1) }
49 | return (axis.get(sizeAt: sourceRect) - fullLength) / CGFloat(rects.count - 1)
/host/spi-builder-workspace/Sources/Classes/stack.layoutGuide.cglayout.swift:47:48: error: cannot find type 'CGRect' in scope
45 | }
46 |
47 | func space(for rects: [CGRect], in sourceRect: CGRect, along axis: RectAxis) -> CGFloat {
| `- error: cannot find type 'CGRect' in scope
48 | let fullLength = rects.reduce(0) { $0 + axis.get(sizeAt: $1) }
49 | return (axis.get(sizeAt: sourceRect) - fullLength) / CGFloat(rects.count - 1)
/host/spi-builder-workspace/Sources/Classes/stack.layoutGuide.cglayout.swift:55:20: error: cannot find type 'CGFloat' in scope
53 | public enum Spacing {
54 | case equally
55 | case equal(CGFloat)
| `- error: cannot find type 'CGFloat' in scope
56 | }
57 | public struct Alignment: RectAxisLayout {
/host/spi-builder-workspace/Sources/Classes/stack.layoutGuide.cglayout.swift:68:46: error: cannot find type 'CGFloat' in scope
66 | }
67 |
68 | public static func leading(_ offset: CGFloat = 0) -> Alignment { return Alignment(Layout.Alignment.leading(by: CGRectAxis.vertical, offset: offset)) }
| `- error: cannot find type 'CGFloat' in scope
69 | public static func trailing(_ offset: CGFloat = 0) -> Alignment { return Alignment(Layout.Alignment.trailing(by: CGRectAxis.vertical, offset: offset)) }
70 | public static func center(_ offset: CGFloat = 0) -> Alignment { return Alignment(Layout.Alignment.center(by: CGRectAxis.vertical, offset: offset)) }
/host/spi-builder-workspace/Sources/Classes/stack.layoutGuide.cglayout.swift:69:47: error: cannot find type 'CGFloat' in scope
67 |
68 | public static func leading(_ offset: CGFloat = 0) -> Alignment { return Alignment(Layout.Alignment.leading(by: CGRectAxis.vertical, offset: offset)) }
69 | public static func trailing(_ offset: CGFloat = 0) -> Alignment { return Alignment(Layout.Alignment.trailing(by: CGRectAxis.vertical, offset: offset)) }
| `- error: cannot find type 'CGFloat' in scope
70 | public static func center(_ offset: CGFloat = 0) -> Alignment { return Alignment(Layout.Alignment.center(by: CGRectAxis.vertical, offset: offset)) }
71 |
/host/spi-builder-workspace/Sources/Classes/stack.layoutGuide.cglayout.swift:70:45: error: cannot find type 'CGFloat' in scope
68 | public static func leading(_ offset: CGFloat = 0) -> Alignment { return Alignment(Layout.Alignment.leading(by: CGRectAxis.vertical, offset: offset)) }
69 | public static func trailing(_ offset: CGFloat = 0) -> Alignment { return Alignment(Layout.Alignment.trailing(by: CGRectAxis.vertical, offset: offset)) }
70 | public static func center(_ offset: CGFloat = 0) -> Alignment { return Alignment(Layout.Alignment.center(by: CGRectAxis.vertical, offset: offset)) }
| `- error: cannot find type 'CGFloat' in scope
71 |
72 | public func formLayout(rect: inout CGRect, in source: CGRect) {
/host/spi-builder-workspace/Sources/Classes/stack.layoutGuide.cglayout.swift:72:44: error: cannot find type 'CGRect' in scope
70 | public static func center(_ offset: CGFloat = 0) -> Alignment { return Alignment(Layout.Alignment.center(by: CGRectAxis.vertical, offset: offset)) }
71 |
72 | public func formLayout(rect: inout CGRect, in source: CGRect) {
| `- error: cannot find type 'CGRect' in scope
73 | layout.formLayout(rect: &rect, in: source)
74 | }
/host/spi-builder-workspace/Sources/Classes/stack.layoutGuide.cglayout.swift:72:63: error: cannot find type 'CGRect' in scope
70 | public static func center(_ offset: CGFloat = 0) -> Alignment { return Alignment(Layout.Alignment.center(by: CGRectAxis.vertical, offset: offset)) }
71 |
72 | public func formLayout(rect: inout CGRect, in source: CGRect) {
| `- error: cannot find type 'CGRect' in scope
73 | layout.formLayout(rect: &rect, in: source)
74 | }
/host/spi-builder-workspace/Sources/Classes/stack.layoutGuide.cglayout.swift:88:20: error: cannot find type 'CGFloat' in scope
86 | public enum Filling {
87 | case equally
88 | case equal(CGFloat)
| `- error: cannot find type 'CGFloat' in scope
89 | }
90 |
/host/spi-builder-workspace/Sources/Classes/stack.layoutGuide.cglayout.swift:96:94: error: cannot find type 'CGRect' in scope
94 | var filling: Filling
95 |
96 | public func distribute(rects: [CGRect], in sourceRect: CGRect, along axis: RectAxis) -> [CGRect] {
| `- error: cannot find type 'CGRect' in scope
97 | guard rects.count > 0 else { return rects }
98 | let fill: CGFloat = {
/host/spi-builder-workspace/Sources/Classes/stack.layoutGuide.cglayout.swift:96:36: error: cannot find type 'CGRect' in scope
94 | var filling: Filling
95 |
96 | public func distribute(rects: [CGRect], in sourceRect: CGRect, along axis: RectAxis) -> [CGRect] {
| `- error: cannot find type 'CGRect' in scope
97 | guard rects.count > 0 else { return rects }
98 | let fill: CGFloat = {
/host/spi-builder-workspace/Sources/Classes/stack.layoutGuide.cglayout.swift:96:60: error: cannot find type 'CGRect' in scope
94 | var filling: Filling
95 |
96 | public func distribute(rects: [CGRect], in sourceRect: CGRect, along axis: RectAxis) -> [CGRect] {
| `- error: cannot find type 'CGRect' in scope
97 | guard rects.count > 0 else { return rects }
98 | let fill: CGFloat = {
/host/spi-builder-workspace/Sources/Classes/coordinate.cglayout.swift:24:61: error: cannot find type 'CGPoint' in scope
22 | /// Therefore should UIView.layer property when creates constraint relationship between UIView and CALayer.
23 | public protocol LayoutCoordinateSpace {
24 | func convert(point: CGPoint, to item: LayoutElement) -> CGPoint
| `- error: cannot find type 'CGPoint' in scope
25 | func convert(point: CGPoint, from item: LayoutElement) -> CGPoint
26 | func convert(rect: CGRect, to item: LayoutElement) -> CGRect
/host/spi-builder-workspace/Sources/Classes/coordinate.cglayout.swift:24:25: error: cannot find type 'CGPoint' in scope
22 | /// Therefore should UIView.layer property when creates constraint relationship between UIView and CALayer.
23 | public protocol LayoutCoordinateSpace {
24 | func convert(point: CGPoint, to item: LayoutElement) -> CGPoint
| `- error: cannot find type 'CGPoint' in scope
25 | func convert(point: CGPoint, from item: LayoutElement) -> CGPoint
26 | func convert(rect: CGRect, to item: LayoutElement) -> CGRect
/host/spi-builder-workspace/Sources/Classes/coordinate.cglayout.swift:25:63: error: cannot find type 'CGPoint' in scope
23 | public protocol LayoutCoordinateSpace {
24 | func convert(point: CGPoint, to item: LayoutElement) -> CGPoint
25 | func convert(point: CGPoint, from item: LayoutElement) -> CGPoint
| `- error: cannot find type 'CGPoint' in scope
26 | func convert(rect: CGRect, to item: LayoutElement) -> CGRect
27 | func convert(rect: CGRect, from item: LayoutElement) -> CGRect
/host/spi-builder-workspace/Sources/Classes/coordinate.cglayout.swift:25:25: error: cannot find type 'CGPoint' in scope
23 | public protocol LayoutCoordinateSpace {
24 | func convert(point: CGPoint, to item: LayoutElement) -> CGPoint
25 | func convert(point: CGPoint, from item: LayoutElement) -> CGPoint
| `- error: cannot find type 'CGPoint' in scope
26 | func convert(rect: CGRect, to item: LayoutElement) -> CGRect
27 | func convert(rect: CGRect, from item: LayoutElement) -> CGRect
/host/spi-builder-workspace/Sources/Classes/coordinate.cglayout.swift:26:59: error: cannot find type 'CGRect' in scope
24 | func convert(point: CGPoint, to item: LayoutElement) -> CGPoint
25 | func convert(point: CGPoint, from item: LayoutElement) -> CGPoint
26 | func convert(rect: CGRect, to item: LayoutElement) -> CGRect
| `- error: cannot find type 'CGRect' in scope
27 | func convert(rect: CGRect, from item: LayoutElement) -> CGRect
28 |
/host/spi-builder-workspace/Sources/Classes/coordinate.cglayout.swift:26:24: error: cannot find type 'CGRect' in scope
24 | func convert(point: CGPoint, to item: LayoutElement) -> CGPoint
25 | func convert(point: CGPoint, from item: LayoutElement) -> CGPoint
26 | func convert(rect: CGRect, to item: LayoutElement) -> CGRect
| `- error: cannot find type 'CGRect' in scope
27 | func convert(rect: CGRect, from item: LayoutElement) -> CGRect
28 |
/host/spi-builder-workspace/Sources/Classes/coordinate.cglayout.swift:27:61: error: cannot find type 'CGRect' in scope
25 | func convert(point: CGPoint, from item: LayoutElement) -> CGPoint
26 | func convert(rect: CGRect, to item: LayoutElement) -> CGRect
27 | func convert(rect: CGRect, from item: LayoutElement) -> CGRect
| `- error: cannot find type 'CGRect' in scope
28 |
29 | var bounds: CGRect { get }
/host/spi-builder-workspace/Sources/Classes/coordinate.cglayout.swift:27:24: error: cannot find type 'CGRect' in scope
25 | func convert(point: CGPoint, from item: LayoutElement) -> CGPoint
26 | func convert(rect: CGRect, to item: LayoutElement) -> CGRect
27 | func convert(rect: CGRect, from item: LayoutElement) -> CGRect
| `- error: cannot find type 'CGRect' in scope
28 |
29 | var bounds: CGRect { get }
/host/spi-builder-workspace/Sources/Classes/coordinate.cglayout.swift:29:17: error: cannot find type 'CGRect' in scope
27 | func convert(rect: CGRect, from item: LayoutElement) -> CGRect
28 |
29 | var bounds: CGRect { get }
| `- error: cannot find type 'CGRect' in scope
30 | }
31 | #if os(iOS) || os(tvOS)
/host/spi-builder-workspace/Sources/Classes/layoutBlock.cglayout.swift:22:16: error: cannot find type 'CGRect' in scope
20 | public protocol LayoutSnapshotProtocol { // TODO: Equatable
21 | /// Frame of layout block represented as snapshot
22 | var frame: CGRect { get }
| `- error: cannot find type 'CGRect' in scope
23 | /// Snapshots of child layout blocks
24 | var childSnapshots: [LayoutSnapshotProtocol] { get }
/host/spi-builder-workspace/Sources/Classes/stack.layoutGuide.cglayout.swift:193:29: error: cannot find type 'CGRect' in scope
191 | }, frame: snapshotFrame ?? .zero)
192 | }
193 | public var currentRect: CGRect {
| `- error: cannot find type 'CGRect' in scope
194 | let items = self.items()
195 | guard items.count > 0 else { fatalError(StackLayoutScheme.message(forNotActive: self)) }
/host/spi-builder-workspace/Sources/Classes/stack.layoutGuide.cglayout.swift:202:32: error: cannot find type 'CGRect' in scope
200 | ///
201 | /// - Parameter sourceRect: Source space
202 | func layout(in sourceRect: CGRect) {
| `- error: cannot find type 'CGRect' in scope
203 | let subItems = items()
204 | let frames = distribution.distribute(rects: subItems.map { $0.inLayoutTime.frame }, in: sourceRect, along: axis)
/host/spi-builder-workspace/Sources/Classes/stack.layoutGuide.cglayout.swift:223:35: error: cannot find type 'CGRect' in scope
221 | /// - Parameter sourceRect: Source space for layout
222 | /// - Returns: Snapshot contained frames layout items
223 | func snapshot(for sourceRect: CGRect) -> LayoutSnapshotProtocol {
| `- error: cannot find type 'CGRect' in scope
224 | var completedFrames: [ObjectIdentifier: CGRect] = [:]
225 | return snapshot(for: sourceRect, completedRects: &completedFrames)
/host/spi-builder-workspace/Sources/Classes/stack.layoutGuide.cglayout.swift:235:35: error: cannot find type 'CGRect' in scope
233 | /// - completedRects: `LayoutItem` items with corrected frame
234 | /// - Returns: Frame of this block
235 | func snapshot(for sourceRect: CGRect, completedRects: inout [ObjectIdentifier : CGRect]) -> LayoutSnapshotProtocol {
| `- error: cannot find type 'CGRect' in scope
236 | let subItems = items()
237 | let frames = distribution.distribute(
/host/spi-builder-workspace/Sources/Classes/stack.layoutGuide.cglayout.swift:235:85: error: cannot find type 'CGRect' in scope
233 | /// - completedRects: `LayoutItem` items with corrected frame
234 | /// - Returns: Frame of this block
235 | func snapshot(for sourceRect: CGRect, completedRects: inout [ObjectIdentifier : CGRect]) -> LayoutSnapshotProtocol {
| `- error: cannot find type 'CGRect' in scope
236 | let subItems = items()
237 | let frames = distribution.distribute(
/host/spi-builder-workspace/Sources/Classes/layoutBlock.cglayout.swift:39:22: error: cannot find type 'CGRect' in scope
37 | /// Snapshot for current state without recalculating
38 | var currentSnapshot: LayoutSnapshotProtocol { get }
39 | var currentRect: CGRect { get }
| `- error: cannot find type 'CGRect' in scope
40 |
41 | /// Calculate and apply frames layout items in custom space.
/host/spi-builder-workspace/Sources/Classes/layoutBlock.cglayout.swift:44:32: error: cannot find type 'CGRect' in scope
42 | ///
43 | /// - Parameter sourceRect: Source space
44 | func layout(in sourceRect: CGRect)
| `- error: cannot find type 'CGRect' in scope
45 |
46 | /// Returns snapshot for all `LayoutElement` items in block. Attention: in during calculating snapshot frames of layout items must not changed.
/host/spi-builder-workspace/Sources/Classes/layoutBlock.cglayout.swift:50:35: error: cannot find type 'CGRect' in scope
48 | /// - Parameter sourceRect: Source space for layout
49 | /// - Returns: Snapshot that contains frames layout items
50 | func snapshot(for sourceRect: CGRect) -> LayoutSnapshotProtocol
| `- error: cannot find type 'CGRect' in scope
51 |
52 | /// Returns snapshot for all `LayoutElement` items in block. Does not call this method directly outside `LayoutBlockProtocol` object.
/host/spi-builder-workspace/Sources/Classes/layoutBlock.cglayout.swift:59:35: error: cannot find type 'CGRect' in scope
57 | /// - completedRects: `LayoutElement` items with corrected frame
58 | /// - Returns: Snapshot that contains frames layout items
59 | func snapshot(for sourceRect: CGRect, completedRects: inout [ObjectIdentifier: CGRect]) -> LayoutSnapshotProtocol
| `- error: cannot find type 'CGRect' in scope
60 |
61 | /// Applying frames from snapshot to `LayoutElement` items in this block.
/host/spi-builder-workspace/Sources/Classes/layoutBlock.cglayout.swift:59:84: error: cannot find type 'CGRect' in scope
57 | /// - completedRects: `LayoutElement` items with corrected frame
58 | /// - Returns: Snapshot that contains frames layout items
59 | func snapshot(for sourceRect: CGRect, completedRects: inout [ObjectIdentifier: CGRect]) -> LayoutSnapshotProtocol
| `- error: cannot find type 'CGRect' in scope
60 |
61 | /// Applying frames from snapshot to `LayoutElement` items in this block.
/host/spi-builder-workspace/Sources/Classes/layoutGuide.cglayout.swift:50:24: error: cannot find type 'CGRect' in scope
48 | func removeFromSuperElement() { ownerElement = nil }
49 |
50 | public init(frame: CGRect = .zero) {
| `- error: cannot find type 'CGRect' in scope
51 | self.frame = frame
52 | self.bounds = CGRect(origin: .zero, size: frame.size)
/host/spi-builder-workspace/Sources/Classes/stack.layoutGuide.cglayout.swift:262:29: error: cannot find type 'EdgeInsets' in scope
260 | open var arrangedItems: [LayoutElement] { return items.map { $0.child } }
261 | /// Insets for distribution space
262 | open var contentInsets: EdgeInsets = .zero {
| `- error: cannot find type 'EdgeInsets' in scope
263 | didSet { insetAnchor = Inset(contentInsets) }
264 | }
/host/spi-builder-workspace/Sources/Classes/core.cglayout.swift:396:27: error: cannot find type 'EdgeInsets' in scope
394 | public struct Inset: RectBasedConstraint {
395 | let insets: EdgeInsets
396 | public init(_ insets: EdgeInsets) {
| `- error: cannot find type 'EdgeInsets' in scope
397 | self.insets = insets
398 | }
/host/spi-builder-workspace/Sources/Classes/stack.layoutGuide.cglayout.swift:294:40: error: cannot find type 'CGRect' in scope
292 | ///
293 | /// - Parameter rect: Space for layout
294 | override open func layout(in rect: CGRect) {
| `- error: cannot find type 'CGRect' in scope
295 | super.layout(in: rect)
296 | scheme.layout(in: rect)
/host/spi-builder-workspace/Sources/Classes/stack.layoutGuide.cglayout.swift:303:63: error: cannot find type 'CGRect' in scope
301 | /// - Parameter frame: New frame value.
302 | /// - Returns: Content rect
303 | open override func contentRect(forFrame frame: CGRect) -> CGRect {
| `- error: cannot find type 'CGRect' in scope
304 | let lFrame = super.contentRect(forFrame: frame)
305 | return insetAnchor?.constrained(sourceRect: lFrame, by: .zero) ?? lFrame
/host/spi-builder-workspace/Sources/Classes/stack.layoutGuide.cglayout.swift:303:52: error: cannot find type 'CGRect' in scope
301 | /// - Parameter frame: New frame value.
302 | /// - Returns: Content rect
303 | open override func contentRect(forFrame frame: CGRect) -> CGRect {
| `- error: cannot find type 'CGRect' in scope
304 | let lFrame = super.contentRect(forFrame: frame)
305 | return insetAnchor?.constrained(sourceRect: lFrame, by: .zero) ?? lFrame
/host/spi-builder-workspace/Sources/Classes/stack.layoutGuide.cglayout.swift:312:42: error: cannot find type 'CGSize' in scope
310 | /// - Parameter size: The size for which the view should calculate its best-fitting size
311 | /// - Returns: A new size that fits the receiver’s content
312 | func sizeThatFits(_ size: CGSize) -> CGSize {
| `- error: cannot find type 'CGSize' in scope
313 | let sourceRect = CGRect(origin: .zero, size: size)
314 | var result = scheme.snapshot(for: insetAnchor?.constrained(sourceRect: sourceRect, by: .zero) ?? sourceRect).frame.distanceFromOrigin
/host/spi-builder-workspace/Sources/Classes/stack.layoutGuide.cglayout.swift:312:31: error: cannot find type 'CGSize' in scope
310 | /// - Parameter size: The size for which the view should calculate its best-fitting size
311 | /// - Returns: A new size that fits the receiver’s content
312 | func sizeThatFits(_ size: CGSize) -> CGSize {
| `- error: cannot find type 'CGSize' in scope
313 | let sourceRect = CGRect(origin: .zero, size: size)
314 | var result = scheme.snapshot(for: insetAnchor?.constrained(sourceRect: sourceRect, by: .zero) ?? sourceRect).frame.distanceFromOrigin
/host/spi-builder-workspace/Sources/Classes/stack.layoutGuide.cglayout.swift:25:19: error: cannot find type 'CGRect' in scope
23 |
24 | func distributeFromLeading(rects: [CGRect], in sourceRect: CGRect, along axis: RectAxis, spacing: CGFloat) -> [CGRect] {
25 | var previous: CGRect?
| `- error: cannot find type 'CGRect' in scope
26 | return rects.map { rect in
27 | var rect = rect
/host/spi-builder-workspace/Sources/Classes/stack.layoutGuide.cglayout.swift:34:19: error: cannot find type 'CGRect' in scope
32 | }
33 | func distributeFromTrailing(rects: [CGRect], in sourceRect: CGRect, along axis: RectAxis, spacing: CGFloat) -> [CGRect] {
34 | var previous: CGRect?
| `- error: cannot find type 'CGRect' in scope
35 | return rects.map { rect in
36 | var rect = rect
/host/spi-builder-workspace/Sources/Classes/common.cglayout.swift:86:34: error: cannot find type 'CGSize' in scope
84 | #endif
85 |
86 | func -(l: CGSize, r: CGFloat) -> CGSize { return CGSize(width: l.width - r, height: l.height - r) }
| `- error: cannot find type 'CGSize' in scope
87 | func +(l: CGSize, r: CGFloat) -> CGSize { return CGSize(width: l.width + r, height: l.height + r) }
88 | func *(l: CGSize, r: CGFloat) -> CGSize { return CGSize(width: l.width * r, height: l.height * r) }
/host/spi-builder-workspace/Sources/Classes/common.cglayout.swift:86:11: error: cannot find type 'CGSize' in scope
84 | #endif
85 |
86 | func -(l: CGSize, r: CGFloat) -> CGSize { return CGSize(width: l.width - r, height: l.height - r) }
| `- error: cannot find type 'CGSize' in scope
87 | func +(l: CGSize, r: CGFloat) -> CGSize { return CGSize(width: l.width + r, height: l.height + r) }
88 | func *(l: CGSize, r: CGFloat) -> CGSize { return CGSize(width: l.width * r, height: l.height * r) }
/host/spi-builder-workspace/Sources/Classes/common.cglayout.swift:86:22: error: cannot find type 'CGFloat' in scope
84 | #endif
85 |
86 | func -(l: CGSize, r: CGFloat) -> CGSize { return CGSize(width: l.width - r, height: l.height - r) }
| `- error: cannot find type 'CGFloat' in scope
87 | func +(l: CGSize, r: CGFloat) -> CGSize { return CGSize(width: l.width + r, height: l.height + r) }
88 | func *(l: CGSize, r: CGFloat) -> CGSize { return CGSize(width: l.width * r, height: l.height * r) }
/host/spi-builder-workspace/Sources/Classes/common.cglayout.swift:87:34: error: cannot find type 'CGSize' in scope
85 |
86 | func -(l: CGSize, r: CGFloat) -> CGSize { return CGSize(width: l.width - r, height: l.height - r) }
87 | func +(l: CGSize, r: CGFloat) -> CGSize { return CGSize(width: l.width + r, height: l.height + r) }
| `- error: cannot find type 'CGSize' in scope
88 | func *(l: CGSize, r: CGFloat) -> CGSize { return CGSize(width: l.width * r, height: l.height * r) }
89 |
/host/spi-builder-workspace/Sources/Classes/common.cglayout.swift:87:11: error: cannot find type 'CGSize' in scope
85 |
86 | func -(l: CGSize, r: CGFloat) -> CGSize { return CGSize(width: l.width - r, height: l.height - r) }
87 | func +(l: CGSize, r: CGFloat) -> CGSize { return CGSize(width: l.width + r, height: l.height + r) }
| `- error: cannot find type 'CGSize' in scope
88 | func *(l: CGSize, r: CGFloat) -> CGSize { return CGSize(width: l.width * r, height: l.height * r) }
89 |
/host/spi-builder-workspace/Sources/Classes/common.cglayout.swift:87:22: error: cannot find type 'CGFloat' in scope
85 |
86 | func -(l: CGSize, r: CGFloat) -> CGSize { return CGSize(width: l.width - r, height: l.height - r) }
87 | func +(l: CGSize, r: CGFloat) -> CGSize { return CGSize(width: l.width + r, height: l.height + r) }
| `- error: cannot find type 'CGFloat' in scope
88 | func *(l: CGSize, r: CGFloat) -> CGSize { return CGSize(width: l.width * r, height: l.height * r) }
89 |
/host/spi-builder-workspace/Sources/Classes/stack.layoutGuide.cglayout.swift:98:19: error: cannot find type 'CGFloat' in scope
96 | public func distribute(rects: [CGRect], in sourceRect: CGRect, along axis: RectAxis) -> [CGRect] {
97 | guard rects.count > 0 else { return rects }
98 | let fill: CGFloat = {
| `- error: cannot find type 'CGFloat' in scope
99 | let count = CGFloat(rects.count)
100 | switch (self.filling, self.spacing) {
/host/spi-builder-workspace/Sources/Classes/stack.layoutGuide.cglayout.swift:111:47: error: cannot find type 'CGRect' in scope
109 |
110 | let transverseAxis = axis.transverse()
111 | let filledRects = rects.map { rect -> CGRect in
| `- error: cannot find type 'CGRect' in scope
112 | var rect = rect
113 | axis.set(size: fill, for: &rect)
/host/spi-builder-workspace/Sources/Classes/stack.layoutGuide.cglayout.swift:113:39: error: cannot convert value of type '_' to expected argument type 'CGRect'
111 | let filledRects = rects.map { rect -> CGRect in
112 | var rect = rect
113 | axis.set(size: fill, for: &rect)
| `- error: cannot convert value of type '_' to expected argument type 'CGRect'
114 | transverseAxis.set(size: transverseAxis.get(sizeAt: sourceRect), for: &rect)
115 | return rect
/host/spi-builder-workspace/Sources/Classes/stack.layoutGuide.cglayout.swift:118:22: error: cannot find type 'CGFloat' in scope
116 | }
117 |
118 | let spacing: CGFloat = {
| `- error: cannot find type 'CGFloat' in scope
119 | switch self.spacing {
120 | case .equally:
/host/spi-builder-workspace/Sources/Classes/stack.layoutGuide.cglayout.swift:186:28: error: cannot find type 'CGRect' in scope
184 | public /// Snapshot for current state without recalculating
185 | var currentSnapshot: LayoutSnapshotProtocol {
186 | var snapshotFrame: CGRect?
| `- error: cannot find type 'CGRect' in scope
187 | return LayoutSnapshot(childSnapshots: items().map { block in
188 | let blockFrame = block.frame
/host/spi-builder-workspace/Sources/Classes/private.cglayout.swift:41:16: error: cannot find type 'CGRect' in scope
39 | internal struct LayoutSnapshot: LayoutSnapshotProtocol {
40 | let childSnapshots: [LayoutSnapshotProtocol]
41 | let frame: CGRect
| `- error: cannot find type 'CGRect' in scope
42 | }
43 |
/host/spi-builder-workspace/Sources/Classes/stack.layoutGuide.cglayout.swift:205:31: error: type of expression is ambiguous without a type annotation
203 | let subItems = items()
204 | let frames = distribution.distribute(rects: subItems.map { $0.inLayoutTime.frame }, in: sourceRect, along: axis)
205 | zip(subItems, frames).forEach { $0.0.frame = $0.1 }
| `- error: type of expression is ambiguous without a type annotation
206 | }
207 |
/host/spi-builder-workspace/Sources/Classes/stack.layoutGuide.cglayout.swift:224:49: error: cannot find type 'CGRect' in scope
222 | /// - Returns: Snapshot contained frames layout items
223 | func snapshot(for sourceRect: CGRect) -> LayoutSnapshotProtocol {
224 | var completedFrames: [ObjectIdentifier: CGRect] = [:]
| `- error: cannot find type 'CGRect' in scope
225 | return snapshot(for: sourceRect, completedRects: &completedFrames)
226 | }
/host/spi-builder-workspace/Sources/Classes/layoutBlock.cglayout.swift:76:35: error: cannot find type 'CGRect' in scope
74 | /// - constrainRects: `LayoutElement` items, that not included to block, but use for constraining.
75 | /// - Returns: Snapshot that contains frames layout items
76 | func snapshot(for sourceRect: CGRect, constrainRects: [ObjectIdentifier: CGRect]) -> LayoutSnapshotProtocol {
| `- error: cannot find type 'CGRect' in scope
77 | var completedRects = constrainRects
78 | return snapshot(for: sourceRect, completedRects: &completedRects)
/host/spi-builder-workspace/Sources/Classes/layoutBlock.cglayout.swift:76:78: error: cannot find type 'CGRect' in scope
74 | /// - constrainRects: `LayoutElement` items, that not included to block, but use for constraining.
75 | /// - Returns: Snapshot that contains frames layout items
76 | func snapshot(for sourceRect: CGRect, constrainRects: [ObjectIdentifier: CGRect]) -> LayoutSnapshotProtocol {
| `- error: cannot find type 'CGRect' in scope
77 | var completedRects = constrainRects
78 | return snapshot(for: sourceRect, completedRects: &completedRects)
/host/spi-builder-workspace/Sources/Classes/stack.layoutGuide.cglayout.swift:247:79: error: cannot find 'CGRect' in scope
245 | snapRect = snapRect?.union(current) ?? current
246 | }
247 | return LayoutSnapshot(childSnapshots: frames, frame: snapshotFrame ?? CGRect(origin: sourceRect.origin, size: .zero))
| `- error: cannot find 'CGRect' in scope
248 | }
249 | }
/host/spi-builder-workspace/Sources/Classes/stack.layoutGuide.cglayout.swift:247:120: error: cannot infer contextual base in reference to member 'zero'
245 | snapRect = snapRect?.union(current) ?? current
246 | }
247 | return LayoutSnapshot(childSnapshots: frames, frame: snapshotFrame ?? CGRect(origin: sourceRect.origin, size: .zero))
| `- error: cannot infer contextual base in reference to member 'zero'
248 | }
249 | }
/host/spi-builder-workspace/Sources/Classes/stack.layoutGuide.cglayout.swift:281:18: error: incorrect argument label in call (have 'frame:', expected 'items:')
279 |
280 | public convenience init(items: [Element]) {
281 | self.init(frame: .zero)
| `- error: incorrect argument label in call (have 'frame:', expected 'items:')
282 | self.items = items
283 | }
/host/spi-builder-workspace/Sources/Classes/stack.layoutGuide.cglayout.swift:281:27: error: type '[StackLayoutGuide<Parent>.Element]' has no member 'zero'
279 |
280 | public convenience init(items: [Element]) {
281 | self.init(frame: .zero)
| `- error: type '[StackLayoutGuide<Parent>.Element]' has no member 'zero'
282 | self.items = items
283 | }
/host/spi-builder-workspace/Sources/Classes/layoutGuide.cglayout.swift:63:31: error: cannot find type 'CGRect' in scope
61 | ///
62 | /// - Parameter rect: Space for layout
63 | open func layout(in rect: CGRect) {
| `- error: cannot find type 'CGRect' in scope
64 | // subclass override
65 | }
/host/spi-builder-workspace/Sources/Classes/stack.layoutGuide.cglayout.swift:295:26: error: argument passed to call that takes no arguments
293 | /// - Parameter rect: Space for layout
294 | override open func layout(in rect: CGRect) {
295 | super.layout(in: rect)
| `- error: argument passed to call that takes no arguments
296 | scheme.layout(in: rect)
297 | }
/host/spi-builder-workspace/Sources/Classes/layoutGuide.cglayout.swift:75:54: error: cannot find type 'CGRect' in scope
73 | /// - Parameter frame: New frame value.
74 | /// - Returns: Content rect
75 | open func contentRect(forFrame frame: CGRect) -> CGRect {
| `- error: cannot find type 'CGRect' in scope
76 | return CGRect(origin: .zero, size: frame.size)
77 | }
/host/spi-builder-workspace/Sources/Classes/layoutGuide.cglayout.swift:75:43: error: cannot find type 'CGRect' in scope
73 | /// - Parameter frame: New frame value.
74 | /// - Returns: Content rect
75 | open func contentRect(forFrame frame: CGRect) -> CGRect {
| `- error: cannot find type 'CGRect' in scope
76 | return CGRect(origin: .zero, size: frame.size)
77 | }
/host/spi-builder-workspace/Sources/Classes/stack.layoutGuide.cglayout.swift:313:26: error: cannot find 'CGRect' in scope
311 | /// - Returns: A new size that fits the receiver’s content
312 | func sizeThatFits(_ size: CGSize) -> CGSize {
313 | let sourceRect = CGRect(origin: .zero, size: size)
| `- error: cannot find 'CGRect' in scope
314 | var result = scheme.snapshot(for: insetAnchor?.constrained(sourceRect: sourceRect, by: .zero) ?? sourceRect).frame.distanceFromOrigin
315 | result.width += contentInsets.right
/host/spi-builder-workspace/Sources/Classes/stack.layoutGuide.cglayout.swift:313:42: error: cannot infer contextual base in reference to member 'zero'
311 | /// - Returns: A new size that fits the receiver’s content
312 | func sizeThatFits(_ size: CGSize) -> CGSize {
313 | let sourceRect = CGRect(origin: .zero, size: size)
| `- error: cannot infer contextual base in reference to member 'zero'
314 | var result = scheme.snapshot(for: insetAnchor?.constrained(sourceRect: sourceRect, by: .zero) ?? sourceRect).frame.distanceFromOrigin
315 | result.width += contentInsets.right
BUILD FAILURE 6.1 android