Build Information
Failed to build LookingGlassUI, reference 0.4.2 (9e3dd1
), with Swift 6.2 (beta) for macOS (SPM) on 22 Jun 2025 06:20:12 UTC.
Build Command
env DEVELOPER_DIR=/Applications/Xcode-26.0.0-Beta.app xcrun swift build --arch arm64
Build Log
8 | import SwiftUI
9 |
10 | extension View {
| `- note: add @available attribute to enclosing extension
11 | @available(*, deprecated, renamed: "rotation3DEffect(quaternion:anchor:anchorZ:perspective:)", message: "This method was accidentally named with a lowercase d.")
12 | public func rotation3dEffect(quaternion: Quat, anchor: UnitPoint, anchorZ: CGFloat, perspective: CGFloat) -> some View {
:
21 | /// - perspective: The relative vanishing point with a default of 1 for this rotation.
22 | /// - Returns: A 3D rotated version of this view.
23 | public func rotation3DEffect(quaternion: Quat, anchor: UnitPoint, anchorZ: CGFloat, perspective: CGFloat) -> some View {
| | `- error: 'View' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing instance method
24 | self
25 | .rotation3DEffect(
/Users/admin/builder/spi-builder-workspace/Sources/LookingGlassUI/_Extensions-Public/View+rotation3DEffect.swift:10:11: error: 'View' is only available in macOS 10.15 or newer
8 | import SwiftUI
9 |
10 | extension View {
| | `- error: 'View' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing extension
11 | @available(*, deprecated, renamed: "rotation3DEffect(quaternion:anchor:anchorZ:perspective:)", message: "This method was accidentally named with a lowercase d.")
12 | public func rotation3dEffect(quaternion: Quat, anchor: UnitPoint, anchorZ: CGFloat, perspective: CGFloat) -> some View {
/Users/admin/builder/spi-builder-workspace/Sources/LookingGlassUI/_Extensions-Public/View+rotation3DEffect.swift:25:14: error: 'rotation3DEffect(_:axis:anchor:anchorZ:perspective:)' is only available in macOS 10.15 or newer
8 | import SwiftUI
9 |
10 | extension View {
| `- note: add @available attribute to enclosing extension
11 | @available(*, deprecated, renamed: "rotation3DEffect(quaternion:anchor:anchorZ:perspective:)", message: "This method was accidentally named with a lowercase d.")
12 | public func rotation3dEffect(quaternion: Quat, anchor: UnitPoint, anchorZ: CGFloat, perspective: CGFloat) -> some View {
:
21 | /// - perspective: The relative vanishing point with a default of 1 for this rotation.
22 | /// - Returns: A 3D rotated version of this view.
23 | public func rotation3DEffect(quaternion: Quat, anchor: UnitPoint, anchorZ: CGFloat, perspective: CGFloat) -> some View {
| `- note: add @available attribute to enclosing instance method
24 | self
25 | .rotation3DEffect(
| |- error: 'rotation3DEffect(_:axis:anchor:anchorZ:perspective:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
26 | quaternion.angle,
27 | axis: quaternion.axis.cgFloat,
[16/22] Compiling LookingGlassUI Quat.swift
/Users/admin/builder/spi-builder-workspace/Sources/LookingGlassUI/Quat.swift:58:16: error: 'Angle' is only available in macOS 10.15 or newer
21 | }
22 |
23 | public extension Quat {
| `- note: add @available attribute to enclosing extension
24 | /// Creates a quaternion from components.
25 | init(_ x: Double, _ y: Double, _ z: Double, _ w: Double) {
:
56 |
57 | /// The angle of rotation when this quaternion is represented as an axis and a rotation.
58 | var angle: Angle {
| | `- error: 'Angle' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing property
59 | .radians(simd.angle)
60 | }
/Users/admin/builder/spi-builder-workspace/Sources/LookingGlassUI/Quat.swift:63:24: error: 'Angle' is only available in macOS 10.15 or newer
21 | }
22 |
23 | public extension Quat {
| `- note: add @available attribute to enclosing extension
24 | /// Creates a quaternion from components.
25 | init(_ x: Double, _ y: Double, _ z: Double, _ w: Double) {
:
61 |
62 | @available(*, deprecated, renamed: "angle")
63 | var rotationAngle: Angle {
| `- error: 'Angle' is only available in macOS 10.15 or newer
64 | angle
65 | }
/Users/admin/builder/spi-builder-workspace/Sources/LookingGlassUI/Quat.swift:86:17: error: 'Angle' is only available in macOS 10.15 or newer
21 | }
22 |
23 | public extension Quat {
| `- note: add @available attribute to enclosing extension
24 | /// Creates a quaternion from components.
25 | init(_ x: Double, _ y: Double, _ z: Double, _ w: Double) {
:
84 | /// - angle: Angle of rotation.
85 | /// - axis: Axis for the rotation.
86 | init(angle: Angle, axis: Vec3) {
| | `- error: 'Angle' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing initializer
87 | simd = simd_quaternion(angle.radians, axis)
88 | }
/Users/admin/builder/spi-builder-workspace/Sources/LookingGlassUI/Quat.swift:100:17: error: 'Angle' is only available in macOS 10.15 or newer
21 | }
22 |
23 | public extension Quat {
| `- note: add @available attribute to enclosing extension
24 | /// Creates a quaternion from components.
25 | init(_ x: Double, _ y: Double, _ z: Double, _ w: Double) {
:
98 | /// - yaw: rotation around Z axis. Default is zero.
99 | /// - localRoll: rotation around local Z axis. Default is zero.
100 | init(pitch: Angle? = nil, yaw: Angle? = nil, localRoll: Angle? = nil) {
| | `- error: 'Angle' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing initializer
101 | let pitch = Self(angle: pitch ?? .zero, axis: .xAxis)
102 | let yaw = Self(angle: yaw ?? .zero, axis: .zAxis)
/Users/admin/builder/spi-builder-workspace/Sources/LookingGlassUI/Quat.swift:100:36: error: 'Angle' is only available in macOS 10.15 or newer
21 | }
22 |
23 | public extension Quat {
| `- note: add @available attribute to enclosing extension
24 | /// Creates a quaternion from components.
25 | init(_ x: Double, _ y: Double, _ z: Double, _ w: Double) {
:
98 | /// - yaw: rotation around Z axis. Default is zero.
99 | /// - localRoll: rotation around local Z axis. Default is zero.
100 | init(pitch: Angle? = nil, yaw: Angle? = nil, localRoll: Angle? = nil) {
| | `- error: 'Angle' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing initializer
101 | let pitch = Self(angle: pitch ?? .zero, axis: .xAxis)
102 | let yaw = Self(angle: yaw ?? .zero, axis: .zAxis)
/Users/admin/builder/spi-builder-workspace/Sources/LookingGlassUI/Quat.swift:100:61: error: 'Angle' is only available in macOS 10.15 or newer
21 | }
22 |
23 | public extension Quat {
| `- note: add @available attribute to enclosing extension
24 | /// Creates a quaternion from components.
25 | init(_ x: Double, _ y: Double, _ z: Double, _ w: Double) {
:
98 | /// - yaw: rotation around Z axis. Default is zero.
99 | /// - localRoll: rotation around local Z axis. Default is zero.
100 | init(pitch: Angle? = nil, yaw: Angle? = nil, localRoll: Angle? = nil) {
| | `- error: 'Angle' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing initializer
101 | let pitch = Self(angle: pitch ?? .zero, axis: .xAxis)
102 | let yaw = Self(angle: yaw ?? .zero, axis: .zAxis)
/Users/admin/builder/spi-builder-workspace/Sources/LookingGlassUI/Quat.swift:108:25: error: 'Angle' is only available in macOS 10.15 or newer
21 | }
22 |
23 | public extension Quat {
| `- note: add @available attribute to enclosing extension
24 | /// Creates a quaternion from components.
25 | init(_ x: Double, _ y: Double, _ z: Double, _ w: Double) {
:
106 |
107 | /// The yaw angle (rotation around the Y axis) between -180 to 180 degrees.
108 | @inlinable var yaw: Angle {
| | `- error: 'Angle' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing property
109 | /// https://github.com/OGRECave/ogre/blob/master/OgreMain/src/OgreQuaternion.cpp#L508
110 | .radians(asin(-2 * (x * z - w * y)))
/Users/admin/builder/spi-builder-workspace/Sources/LookingGlassUI/Quat.swift:114:27: error: 'Angle' is only available in macOS 10.15 or newer
21 | }
22 |
23 | public extension Quat {
| `- note: add @available attribute to enclosing extension
24 | /// Creates a quaternion from components.
25 | init(_ x: Double, _ y: Double, _ z: Double, _ w: Double) {
:
112 |
113 | /// The pitch angle (rotation around the X zxis) between -180 to 180 degrees.
114 | @inlinable var pitch: Angle {
| | `- error: 'Angle' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing property
115 | /// https://github.com/OGRECave/ogre/blob/master/OgreMain/src/OgreQuaternion.cpp#L484
116 | .radians(atan2(2.0 * (y * z + w * x), w * w - x * x - y * y + z * z))
/Users/admin/builder/spi-builder-workspace/Sources/LookingGlassUI/Quat.swift:120:26: error: 'Angle' is only available in macOS 10.15 or newer
21 | }
22 |
23 | public extension Quat {
| `- note: add @available attribute to enclosing extension
24 | /// Creates a quaternion from components.
25 | init(_ x: Double, _ y: Double, _ z: Double, _ w: Double) {
:
118 |
119 | /// The roll angle (rotation around the Z axis) between -180 to 180 degrees.
120 | @inlinable var roll: Angle {
| | `- error: 'Angle' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing property
121 | /// https://github.com/OGRECave/ogre/blob/master/OgreMain/src/OgreQuaternion.cpp#L459
122 | .radians(atan2(2.0 * (x * y + w * z), w * w + x * x - y * y - z * z))
/Users/admin/builder/spi-builder-workspace/Sources/LookingGlassUI/Quat.swift:128:40: error: 'Angle' is only available in macOS 10.15 or newer
21 | }
22 |
23 | public extension Quat {
| `- note: add @available attribute to enclosing extension
24 | /// Creates a quaternion from components.
25 | init(_ x: Double, _ y: Double, _ z: Double, _ w: Double) {
:
126 | /// - Parameter q2: Second quaternion.
127 | /// - Returns: Angle in radians between two quaternions.
128 | func rotationAngle(to q2: Self) -> Angle {
| | `- error: 'Angle' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing instance method
129 | (conjugate * q2).angle
130 | }
/Users/admin/builder/spi-builder-workspace/Sources/LookingGlassUI/Quat.swift:101:43: error: 'zero' is only available in macOS 10.15 or newer
21 | }
22 |
23 | public extension Quat {
| `- note: add @available attribute to enclosing extension
24 | /// Creates a quaternion from components.
25 | init(_ x: Double, _ y: Double, _ z: Double, _ w: Double) {
:
98 | /// - yaw: rotation around Z axis. Default is zero.
99 | /// - localRoll: rotation around local Z axis. Default is zero.
100 | init(pitch: Angle? = nil, yaw: Angle? = nil, localRoll: Angle? = nil) {
| `- note: add @available attribute to enclosing initializer
101 | let pitch = Self(angle: pitch ?? .zero, axis: .xAxis)
| |- error: 'zero' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
102 | let yaw = Self(angle: yaw ?? .zero, axis: .zAxis)
103 | let localRoll = Self(angle: localRoll ?? .zero, axis: .zAxis)
/Users/admin/builder/spi-builder-workspace/Sources/LookingGlassUI/Quat.swift:102:39: error: 'zero' is only available in macOS 10.15 or newer
21 | }
22 |
23 | public extension Quat {
| `- note: add @available attribute to enclosing extension
24 | /// Creates a quaternion from components.
25 | init(_ x: Double, _ y: Double, _ z: Double, _ w: Double) {
:
98 | /// - yaw: rotation around Z axis. Default is zero.
99 | /// - localRoll: rotation around local Z axis. Default is zero.
100 | init(pitch: Angle? = nil, yaw: Angle? = nil, localRoll: Angle? = nil) {
| `- note: add @available attribute to enclosing initializer
101 | let pitch = Self(angle: pitch ?? .zero, axis: .xAxis)
102 | let yaw = Self(angle: yaw ?? .zero, axis: .zAxis)
| |- error: 'zero' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
103 | let localRoll = Self(angle: localRoll ?? .zero, axis: .zAxis)
104 | self = yaw * pitch * localRoll
/Users/admin/builder/spi-builder-workspace/Sources/LookingGlassUI/Quat.swift:103:51: error: 'zero' is only available in macOS 10.15 or newer
21 | }
22 |
23 | public extension Quat {
| `- note: add @available attribute to enclosing extension
24 | /// Creates a quaternion from components.
25 | init(_ x: Double, _ y: Double, _ z: Double, _ w: Double) {
:
98 | /// - yaw: rotation around Z axis. Default is zero.
99 | /// - localRoll: rotation around local Z axis. Default is zero.
100 | init(pitch: Angle? = nil, yaw: Angle? = nil, localRoll: Angle? = nil) {
| `- note: add @available attribute to enclosing initializer
101 | let pitch = Self(angle: pitch ?? .zero, axis: .xAxis)
102 | let yaw = Self(angle: yaw ?? .zero, axis: .zAxis)
103 | let localRoll = Self(angle: localRoll ?? .zero, axis: .zAxis)
| |- error: 'zero' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
104 | self = yaw * pitch * localRoll
105 | }
/Users/admin/builder/spi-builder-workspace/Sources/LookingGlassUI/QuaternionDataView.swift:18:27: error: 'View' is only available in macOS 10.15 or newer
8 | import SwiftUI
9 |
10 | public struct QuaternionDataView: View {
| `- note: add @available attribute to enclosing struct
11 | let quat: Quat?
12 |
:
16 |
17 | @ViewBuilder
18 | public var body: some View {
| | `- error: 'View' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing property
19 | if let quat {
20 | Section(header: Text("Axis Vector and angle")) {
/Users/admin/builder/spi-builder-workspace/Sources/LookingGlassUI/QuaternionDataView.swift:17:6: error: 'ViewBuilder' is only available in macOS 10.15 or newer
8 | import SwiftUI
9 |
10 | public struct QuaternionDataView: View {
| `- note: add @available attribute to enclosing struct
11 | let quat: Quat?
12 |
:
15 | }
16 |
17 | @ViewBuilder
| `- error: 'ViewBuilder' is only available in macOS 10.15 or newer
18 | public var body: some View {
19 | if let quat {
/Users/admin/builder/spi-builder-workspace/Sources/LookingGlassUI/QuaternionDataView.swift:37:57: error: 'View' is only available in macOS 10.15 or newer
8 | import SwiftUI
9 |
10 | public struct QuaternionDataView: View {
| `- note: add @available attribute to enclosing struct
11 | let quat: Quat?
12 |
:
35 | }
36 |
37 | func data(_ label: String, _ value: Double) -> some View {
| | `- error: 'View' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing instance method
38 | Text("\(label): \(value)")
39 | .accessibilityLabel(label)
/Users/admin/builder/spi-builder-workspace/Sources/LookingGlassUI/QuaternionDataView.swift:20:13: error: conformance of 'Section<Parent, Content, Footer>' to 'View' is only available in macOS 10.15 or newer
8 | import SwiftUI
9 |
10 | public struct QuaternionDataView: View {
| `- note: add @available attribute to enclosing struct
11 | let quat: Quat?
12 |
:
16 |
17 | @ViewBuilder
18 | public var body: some View {
| `- note: add @available attribute to enclosing property
19 | if let quat {
20 | Section(header: Text("Axis Vector and angle")) {
| |- error: conformance of 'Section<Parent, Content, Footer>' to 'View' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
21 | data("Axis Vector x", quat.axis.x)
22 | data("Axis Vector y", quat.axis.y)
/Users/admin/builder/spi-builder-workspace/Sources/LookingGlassUI/QuaternionDataView.swift:20:13: error: 'Section' is only available in macOS 10.15 or newer
8 | import SwiftUI
9 |
10 | public struct QuaternionDataView: View {
| `- note: add @available attribute to enclosing struct
11 | let quat: Quat?
12 |
:
16 |
17 | @ViewBuilder
18 | public var body: some View {
| `- note: add @available attribute to enclosing property
19 | if let quat {
20 | Section(header: Text("Axis Vector and angle")) {
| |- error: 'Section' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
21 | data("Axis Vector x", quat.axis.x)
22 | data("Axis Vector y", quat.axis.y)
/Users/admin/builder/spi-builder-workspace/Sources/LookingGlassUI/QuaternionDataView.swift:20:13: error: 'init(header:content:)' is only available in macOS 10.15 or newer
8 | import SwiftUI
9 |
10 | public struct QuaternionDataView: View {
| `- note: add @available attribute to enclosing struct
11 | let quat: Quat?
12 |
:
16 |
17 | @ViewBuilder
18 | public var body: some View {
| `- note: add @available attribute to enclosing property
19 | if let quat {
20 | Section(header: Text("Axis Vector and angle")) {
| |- error: 'init(header:content:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
21 | data("Axis Vector x", quat.axis.x)
22 | data("Axis Vector y", quat.axis.y)
/Users/admin/builder/spi-builder-workspace/Sources/LookingGlassUI/QuaternionDataView.swift:20:29: error: 'Text' is only available in macOS 10.15 or newer
8 | import SwiftUI
9 |
10 | public struct QuaternionDataView: View {
| `- note: add @available attribute to enclosing struct
11 | let quat: Quat?
12 |
:
16 |
17 | @ViewBuilder
18 | public var body: some View {
| `- note: add @available attribute to enclosing property
19 | if let quat {
20 | Section(header: Text("Axis Vector and angle")) {
| |- error: 'Text' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
21 | data("Axis Vector x", quat.axis.x)
22 | data("Axis Vector y", quat.axis.y)
/Users/admin/builder/spi-builder-workspace/Sources/LookingGlassUI/QuaternionDataView.swift:27:13: error: conformance of 'Section<Parent, Content, Footer>' to 'View' is only available in macOS 10.15 or newer
8 | import SwiftUI
9 |
10 | public struct QuaternionDataView: View {
| `- note: add @available attribute to enclosing struct
11 | let quat: Quat?
12 |
:
16 |
17 | @ViewBuilder
18 | public var body: some View {
| `- note: add @available attribute to enclosing property
19 | if let quat {
20 | Section(header: Text("Axis Vector and angle")) {
:
25 | }
26 |
27 | Section(header: Text("Rotation components")) {
| |- error: conformance of 'Section<Parent, Content, Footer>' to 'View' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
28 | data("Pitch (degrees)", quat.pitch.degrees)
29 | data("Yaw (degrees)", quat.yaw.degrees)
/Users/admin/builder/spi-builder-workspace/Sources/LookingGlassUI/QuaternionDataView.swift:27:13: error: 'Section' is only available in macOS 10.15 or newer
8 | import SwiftUI
9 |
10 | public struct QuaternionDataView: View {
| `- note: add @available attribute to enclosing struct
11 | let quat: Quat?
12 |
:
16 |
17 | @ViewBuilder
18 | public var body: some View {
| `- note: add @available attribute to enclosing property
19 | if let quat {
20 | Section(header: Text("Axis Vector and angle")) {
:
25 | }
26 |
27 | Section(header: Text("Rotation components")) {
| |- error: 'Section' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
28 | data("Pitch (degrees)", quat.pitch.degrees)
29 | data("Yaw (degrees)", quat.yaw.degrees)
/Users/admin/builder/spi-builder-workspace/Sources/LookingGlassUI/QuaternionDataView.swift:27:13: error: 'init(header:content:)' is only available in macOS 10.15 or newer
8 | import SwiftUI
9 |
10 | public struct QuaternionDataView: View {
| `- note: add @available attribute to enclosing struct
11 | let quat: Quat?
12 |
:
16 |
17 | @ViewBuilder
18 | public var body: some View {
| `- note: add @available attribute to enclosing property
19 | if let quat {
20 | Section(header: Text("Axis Vector and angle")) {
:
25 | }
26 |
27 | Section(header: Text("Rotation components")) {
| |- error: 'init(header:content:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
28 | data("Pitch (degrees)", quat.pitch.degrees)
29 | data("Yaw (degrees)", quat.yaw.degrees)
/Users/admin/builder/spi-builder-workspace/Sources/LookingGlassUI/QuaternionDataView.swift:27:29: error: 'Text' is only available in macOS 10.15 or newer
8 | import SwiftUI
9 |
10 | public struct QuaternionDataView: View {
| `- note: add @available attribute to enclosing struct
11 | let quat: Quat?
12 |
:
16 |
17 | @ViewBuilder
18 | public var body: some View {
| `- note: add @available attribute to enclosing property
19 | if let quat {
20 | Section(header: Text("Axis Vector and angle")) {
:
25 | }
26 |
27 | Section(header: Text("Rotation components")) {
| |- error: 'Text' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
28 | data("Pitch (degrees)", quat.pitch.degrees)
29 | data("Yaw (degrees)", quat.yaw.degrees)
/Users/admin/builder/spi-builder-workspace/Sources/LookingGlassUI/QuaternionDataView.swift:19:21: error: conformance of 'Section<Parent, Content, Footer>' to 'View' is only available in macOS 10.15 or newer
8 | import SwiftUI
9 |
10 | public struct QuaternionDataView: View {
| `- note: add @available attribute to enclosing struct
11 | let quat: Quat?
12 |
:
16 |
17 | @ViewBuilder
18 | public var body: some View {
| `- note: add @available attribute to enclosing property
19 | if let quat {
| |- error: conformance of 'Section<Parent, Content, Footer>' to 'View' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
20 | Section(header: Text("Axis Vector and angle")) {
21 | data("Axis Vector x", quat.axis.x)
/Users/admin/builder/spi-builder-workspace/Sources/LookingGlassUI/QuaternionDataView.swift:19:21: error: conformance of 'Section<Parent, Content, Footer>' to 'View' is only available in macOS 10.15 or newer
8 | import SwiftUI
9 |
10 | public struct QuaternionDataView: View {
| `- note: add @available attribute to enclosing struct
11 | let quat: Quat?
12 |
:
16 |
17 | @ViewBuilder
18 | public var body: some View {
| `- note: add @available attribute to enclosing property
19 | if let quat {
| |- error: conformance of 'Section<Parent, Content, Footer>' to 'View' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
20 | Section(header: Text("Axis Vector and angle")) {
21 | data("Axis Vector x", quat.axis.x)
/Users/admin/builder/spi-builder-workspace/Sources/LookingGlassUI/QuaternionDataView.swift:19:21: error: 'buildEither(first:)' is only available in macOS 10.15 or newer
8 | import SwiftUI
9 |
10 | public struct QuaternionDataView: View {
| `- note: add @available attribute to enclosing struct
11 | let quat: Quat?
12 |
:
16 |
17 | @ViewBuilder
18 | public var body: some View {
| `- note: add @available attribute to enclosing property
19 | if let quat {
| |- error: 'buildEither(first:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
20 | Section(header: Text("Axis Vector and angle")) {
21 | data("Axis Vector x", quat.axis.x)
/Users/admin/builder/spi-builder-workspace/Sources/LookingGlassUI/QuaternionDataView.swift:33:13: error: conformance of 'Text' to 'View' is only available in macOS 10.15 or newer
8 | import SwiftUI
9 |
10 | public struct QuaternionDataView: View {
| `- note: add @available attribute to enclosing struct
11 | let quat: Quat?
12 |
:
16 |
17 | @ViewBuilder
18 | public var body: some View {
| `- note: add @available attribute to enclosing property
19 | if let quat {
20 | Section(header: Text("Axis Vector and angle")) {
:
31 | }
32 | } else {
33 | Text("Quat: Nil")
| |- error: conformance of 'Text' to 'View' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
34 | }
35 | }
/Users/admin/builder/spi-builder-workspace/Sources/LookingGlassUI/QuaternionDataView.swift:33:13: error: 'Text' is only available in macOS 10.15 or newer
8 | import SwiftUI
9 |
10 | public struct QuaternionDataView: View {
| `- note: add @available attribute to enclosing struct
11 | let quat: Quat?
12 |
:
16 |
17 | @ViewBuilder
18 | public var body: some View {
| `- note: add @available attribute to enclosing property
19 | if let quat {
20 | Section(header: Text("Axis Vector and angle")) {
:
31 | }
32 | } else {
33 | Text("Quat: Nil")
| |- error: 'Text' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
34 | }
35 | }
/Users/admin/builder/spi-builder-workspace/Sources/LookingGlassUI/QuaternionDataView.swift:32:16: error: conformance of 'Text' to 'View' is only available in macOS 10.15 or newer
8 | import SwiftUI
9 |
10 | public struct QuaternionDataView: View {
| `- note: add @available attribute to enclosing struct
11 | let quat: Quat?
12 |
:
16 |
17 | @ViewBuilder
18 | public var body: some View {
| `- note: add @available attribute to enclosing property
19 | if let quat {
20 | Section(header: Text("Axis Vector and angle")) {
:
30 | data("Roll (degrees)", quat.roll.degrees)
31 | }
32 | } else {
| |- error: conformance of 'Text' to 'View' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
33 | Text("Quat: Nil")
34 | }
/Users/admin/builder/spi-builder-workspace/Sources/LookingGlassUI/QuaternionDataView.swift:32:16: error: 'buildEither(second:)' is only available in macOS 10.15 or newer
8 | import SwiftUI
9 |
10 | public struct QuaternionDataView: View {
| `- note: add @available attribute to enclosing struct
11 | let quat: Quat?
12 |
:
16 |
17 | @ViewBuilder
18 | public var body: some View {
| `- note: add @available attribute to enclosing property
19 | if let quat {
20 | Section(header: Text("Axis Vector and angle")) {
:
30 | data("Roll (degrees)", quat.roll.degrees)
31 | }
32 | } else {
| |- error: 'buildEither(second:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
33 | Text("Quat: Nil")
34 | }
/Users/admin/builder/spi-builder-workspace/Sources/LookingGlassUI/QuaternionDataView.swift:18:32: error: conformance of '_ConditionalContent<TrueContent, FalseContent>' to 'View' is only available in macOS 10.15 or newer
8 | import SwiftUI
9 |
10 | public struct QuaternionDataView: View {
| `- note: add @available attribute to enclosing struct
11 | let quat: Quat?
12 |
:
16 |
17 | @ViewBuilder
18 | public var body: some View {
| | |- error: conformance of '_ConditionalContent<TrueContent, FalseContent>' to 'View' is only available in macOS 10.15 or newer
| | `- note: add 'if #available' version check
| `- note: add @available attribute to enclosing property
19 | if let quat {
20 | Section(header: Text("Axis Vector and angle")) {
/Users/admin/builder/spi-builder-workspace/Sources/LookingGlassUI/QuaternionDataView.swift:41:14: error: conformance of 'ModifiedContent<Content, Modifier>' to 'View' is only available in macOS 10.15 or newer
8 | import SwiftUI
9 |
10 | public struct QuaternionDataView: View {
| `- note: add @available attribute to enclosing struct
11 | let quat: Quat?
12 |
:
35 | }
36 |
37 | func data(_ label: String, _ value: Double) -> some View {
| `- note: add @available attribute to enclosing instance method
38 | Text("\(label): \(value)")
39 | .accessibilityLabel(label)
40 | .accessibilityValue(String(value))
41 | .accessibilityAddTraits(.updatesFrequently)
| |- error: conformance of 'ModifiedContent<Content, Modifier>' to 'View' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
42 | }
43 | }
/Users/admin/builder/spi-builder-workspace/Sources/LookingGlassUI/QuaternionDataView.swift:38:9: error: 'Text' is only available in macOS 10.15 or newer
8 | import SwiftUI
9 |
10 | public struct QuaternionDataView: View {
| `- note: add @available attribute to enclosing struct
11 | let quat: Quat?
12 |
:
35 | }
36 |
37 | func data(_ label: String, _ value: Double) -> some View {
| `- note: add @available attribute to enclosing instance method
38 | Text("\(label): \(value)")
| |- error: 'Text' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
39 | .accessibilityLabel(label)
40 | .accessibilityValue(String(value))
/Users/admin/builder/spi-builder-workspace/Sources/LookingGlassUI/QuaternionDataView.swift:39:14: error: 'accessibilityLabel' is only available in macOS 12.0 or newer
8 | import SwiftUI
9 |
10 | public struct QuaternionDataView: View {
| `- note: add @available attribute to enclosing struct
11 | let quat: Quat?
12 |
:
35 | }
36 |
37 | func data(_ label: String, _ value: Double) -> some View {
| `- note: add @available attribute to enclosing instance method
38 | Text("\(label): \(value)")
39 | .accessibilityLabel(label)
| |- error: 'accessibilityLabel' is only available in macOS 12.0 or newer
| `- note: add 'if #available' version check
40 | .accessibilityValue(String(value))
41 | .accessibilityAddTraits(.updatesFrequently)
/Users/admin/builder/spi-builder-workspace/Sources/LookingGlassUI/QuaternionDataView.swift:40:14: error: 'accessibilityValue' is only available in macOS 11.0 or newer
8 | import SwiftUI
9 |
10 | public struct QuaternionDataView: View {
| `- note: add @available attribute to enclosing struct
11 | let quat: Quat?
12 |
:
35 | }
36 |
37 | func data(_ label: String, _ value: Double) -> some View {
| `- note: add @available attribute to enclosing instance method
38 | Text("\(label): \(value)")
39 | .accessibilityLabel(label)
40 | .accessibilityValue(String(value))
| |- error: 'accessibilityValue' is only available in macOS 11.0 or newer
| `- note: add 'if #available' version check
41 | .accessibilityAddTraits(.updatesFrequently)
42 | }
/Users/admin/builder/spi-builder-workspace/Sources/LookingGlassUI/QuaternionDataView.swift:41:14: error: 'accessibilityAddTraits' is only available in macOS 11.0 or newer
8 | import SwiftUI
9 |
10 | public struct QuaternionDataView: View {
| `- note: add @available attribute to enclosing struct
11 | let quat: Quat?
12 |
:
35 | }
36 |
37 | func data(_ label: String, _ value: Double) -> some View {
| `- note: add @available attribute to enclosing instance method
38 | Text("\(label): \(value)")
39 | .accessibilityLabel(label)
40 | .accessibilityValue(String(value))
41 | .accessibilityAddTraits(.updatesFrequently)
| |- error: 'accessibilityAddTraits' is only available in macOS 11.0 or newer
| `- note: add 'if #available' version check
42 | }
43 | }
[17/22] Compiling LookingGlassUI QuaternionDataView.swift
/Users/admin/builder/spi-builder-workspace/Sources/LookingGlassUI/Quat.swift:58:16: error: 'Angle' is only available in macOS 10.15 or newer
21 | }
22 |
23 | public extension Quat {
| `- note: add @available attribute to enclosing extension
24 | /// Creates a quaternion from components.
25 | init(_ x: Double, _ y: Double, _ z: Double, _ w: Double) {
:
56 |
57 | /// The angle of rotation when this quaternion is represented as an axis and a rotation.
58 | var angle: Angle {
| | `- error: 'Angle' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing property
59 | .radians(simd.angle)
60 | }
/Users/admin/builder/spi-builder-workspace/Sources/LookingGlassUI/Quat.swift:63:24: error: 'Angle' is only available in macOS 10.15 or newer
21 | }
22 |
23 | public extension Quat {
| `- note: add @available attribute to enclosing extension
24 | /// Creates a quaternion from components.
25 | init(_ x: Double, _ y: Double, _ z: Double, _ w: Double) {
:
61 |
62 | @available(*, deprecated, renamed: "angle")
63 | var rotationAngle: Angle {
| `- error: 'Angle' is only available in macOS 10.15 or newer
64 | angle
65 | }
/Users/admin/builder/spi-builder-workspace/Sources/LookingGlassUI/Quat.swift:86:17: error: 'Angle' is only available in macOS 10.15 or newer
21 | }
22 |
23 | public extension Quat {
| `- note: add @available attribute to enclosing extension
24 | /// Creates a quaternion from components.
25 | init(_ x: Double, _ y: Double, _ z: Double, _ w: Double) {
:
84 | /// - angle: Angle of rotation.
85 | /// - axis: Axis for the rotation.
86 | init(angle: Angle, axis: Vec3) {
| | `- error: 'Angle' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing initializer
87 | simd = simd_quaternion(angle.radians, axis)
88 | }
/Users/admin/builder/spi-builder-workspace/Sources/LookingGlassUI/Quat.swift:100:17: error: 'Angle' is only available in macOS 10.15 or newer
21 | }
22 |
23 | public extension Quat {
| `- note: add @available attribute to enclosing extension
24 | /// Creates a quaternion from components.
25 | init(_ x: Double, _ y: Double, _ z: Double, _ w: Double) {
:
98 | /// - yaw: rotation around Z axis. Default is zero.
99 | /// - localRoll: rotation around local Z axis. Default is zero.
100 | init(pitch: Angle? = nil, yaw: Angle? = nil, localRoll: Angle? = nil) {
| | `- error: 'Angle' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing initializer
101 | let pitch = Self(angle: pitch ?? .zero, axis: .xAxis)
102 | let yaw = Self(angle: yaw ?? .zero, axis: .zAxis)
/Users/admin/builder/spi-builder-workspace/Sources/LookingGlassUI/Quat.swift:100:36: error: 'Angle' is only available in macOS 10.15 or newer
21 | }
22 |
23 | public extension Quat {
| `- note: add @available attribute to enclosing extension
24 | /// Creates a quaternion from components.
25 | init(_ x: Double, _ y: Double, _ z: Double, _ w: Double) {
:
98 | /// - yaw: rotation around Z axis. Default is zero.
99 | /// - localRoll: rotation around local Z axis. Default is zero.
100 | init(pitch: Angle? = nil, yaw: Angle? = nil, localRoll: Angle? = nil) {
| | `- error: 'Angle' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing initializer
101 | let pitch = Self(angle: pitch ?? .zero, axis: .xAxis)
102 | let yaw = Self(angle: yaw ?? .zero, axis: .zAxis)
/Users/admin/builder/spi-builder-workspace/Sources/LookingGlassUI/Quat.swift:100:61: error: 'Angle' is only available in macOS 10.15 or newer
21 | }
22 |
23 | public extension Quat {
| `- note: add @available attribute to enclosing extension
24 | /// Creates a quaternion from components.
25 | init(_ x: Double, _ y: Double, _ z: Double, _ w: Double) {
:
98 | /// - yaw: rotation around Z axis. Default is zero.
99 | /// - localRoll: rotation around local Z axis. Default is zero.
100 | init(pitch: Angle? = nil, yaw: Angle? = nil, localRoll: Angle? = nil) {
| | `- error: 'Angle' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing initializer
101 | let pitch = Self(angle: pitch ?? .zero, axis: .xAxis)
102 | let yaw = Self(angle: yaw ?? .zero, axis: .zAxis)
/Users/admin/builder/spi-builder-workspace/Sources/LookingGlassUI/Quat.swift:108:25: error: 'Angle' is only available in macOS 10.15 or newer
21 | }
22 |
23 | public extension Quat {
| `- note: add @available attribute to enclosing extension
24 | /// Creates a quaternion from components.
25 | init(_ x: Double, _ y: Double, _ z: Double, _ w: Double) {
:
106 |
107 | /// The yaw angle (rotation around the Y axis) between -180 to 180 degrees.
108 | @inlinable var yaw: Angle {
| | `- error: 'Angle' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing property
109 | /// https://github.com/OGRECave/ogre/blob/master/OgreMain/src/OgreQuaternion.cpp#L508
110 | .radians(asin(-2 * (x * z - w * y)))
/Users/admin/builder/spi-builder-workspace/Sources/LookingGlassUI/Quat.swift:114:27: error: 'Angle' is only available in macOS 10.15 or newer
21 | }
22 |
23 | public extension Quat {
| `- note: add @available attribute to enclosing extension
24 | /// Creates a quaternion from components.
25 | init(_ x: Double, _ y: Double, _ z: Double, _ w: Double) {
:
112 |
113 | /// The pitch angle (rotation around the X zxis) between -180 to 180 degrees.
114 | @inlinable var pitch: Angle {
| | `- error: 'Angle' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing property
115 | /// https://github.com/OGRECave/ogre/blob/master/OgreMain/src/OgreQuaternion.cpp#L484
116 | .radians(atan2(2.0 * (y * z + w * x), w * w - x * x - y * y + z * z))
/Users/admin/builder/spi-builder-workspace/Sources/LookingGlassUI/Quat.swift:120:26: error: 'Angle' is only available in macOS 10.15 or newer
21 | }
22 |
23 | public extension Quat {
| `- note: add @available attribute to enclosing extension
24 | /// Creates a quaternion from components.
25 | init(_ x: Double, _ y: Double, _ z: Double, _ w: Double) {
:
118 |
119 | /// The roll angle (rotation around the Z axis) between -180 to 180 degrees.
120 | @inlinable var roll: Angle {
| | `- error: 'Angle' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing property
121 | /// https://github.com/OGRECave/ogre/blob/master/OgreMain/src/OgreQuaternion.cpp#L459
122 | .radians(atan2(2.0 * (x * y + w * z), w * w + x * x - y * y - z * z))
/Users/admin/builder/spi-builder-workspace/Sources/LookingGlassUI/Quat.swift:128:40: error: 'Angle' is only available in macOS 10.15 or newer
21 | }
22 |
23 | public extension Quat {
| `- note: add @available attribute to enclosing extension
24 | /// Creates a quaternion from components.
25 | init(_ x: Double, _ y: Double, _ z: Double, _ w: Double) {
:
126 | /// - Parameter q2: Second quaternion.
127 | /// - Returns: Angle in radians between two quaternions.
128 | func rotationAngle(to q2: Self) -> Angle {
| | `- error: 'Angle' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing instance method
129 | (conjugate * q2).angle
130 | }
/Users/admin/builder/spi-builder-workspace/Sources/LookingGlassUI/Quat.swift:101:43: error: 'zero' is only available in macOS 10.15 or newer
21 | }
22 |
23 | public extension Quat {
| `- note: add @available attribute to enclosing extension
24 | /// Creates a quaternion from components.
25 | init(_ x: Double, _ y: Double, _ z: Double, _ w: Double) {
:
98 | /// - yaw: rotation around Z axis. Default is zero.
99 | /// - localRoll: rotation around local Z axis. Default is zero.
100 | init(pitch: Angle? = nil, yaw: Angle? = nil, localRoll: Angle? = nil) {
| `- note: add @available attribute to enclosing initializer
101 | let pitch = Self(angle: pitch ?? .zero, axis: .xAxis)
| |- error: 'zero' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
102 | let yaw = Self(angle: yaw ?? .zero, axis: .zAxis)
103 | let localRoll = Self(angle: localRoll ?? .zero, axis: .zAxis)
/Users/admin/builder/spi-builder-workspace/Sources/LookingGlassUI/Quat.swift:102:39: error: 'zero' is only available in macOS 10.15 or newer
21 | }
22 |
23 | public extension Quat {
| `- note: add @available attribute to enclosing extension
24 | /// Creates a quaternion from components.
25 | init(_ x: Double, _ y: Double, _ z: Double, _ w: Double) {
:
98 | /// - yaw: rotation around Z axis. Default is zero.
99 | /// - localRoll: rotation around local Z axis. Default is zero.
100 | init(pitch: Angle? = nil, yaw: Angle? = nil, localRoll: Angle? = nil) {
| `- note: add @available attribute to enclosing initializer
101 | let pitch = Self(angle: pitch ?? .zero, axis: .xAxis)
102 | let yaw = Self(angle: yaw ?? .zero, axis: .zAxis)
| |- error: 'zero' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
103 | let localRoll = Self(angle: localRoll ?? .zero, axis: .zAxis)
104 | self = yaw * pitch * localRoll
/Users/admin/builder/spi-builder-workspace/Sources/LookingGlassUI/Quat.swift:103:51: error: 'zero' is only available in macOS 10.15 or newer
21 | }
22 |
23 | public extension Quat {
| `- note: add @available attribute to enclosing extension
24 | /// Creates a quaternion from components.
25 | init(_ x: Double, _ y: Double, _ z: Double, _ w: Double) {
:
98 | /// - yaw: rotation around Z axis. Default is zero.
99 | /// - localRoll: rotation around local Z axis. Default is zero.
100 | init(pitch: Angle? = nil, yaw: Angle? = nil, localRoll: Angle? = nil) {
| `- note: add @available attribute to enclosing initializer
101 | let pitch = Self(angle: pitch ?? .zero, axis: .xAxis)
102 | let yaw = Self(angle: yaw ?? .zero, axis: .zAxis)
103 | let localRoll = Self(angle: localRoll ?? .zero, axis: .zAxis)
| |- error: 'zero' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
104 | self = yaw * pitch * localRoll
105 | }
/Users/admin/builder/spi-builder-workspace/Sources/LookingGlassUI/QuaternionDataView.swift:18:27: error: 'View' is only available in macOS 10.15 or newer
8 | import SwiftUI
9 |
10 | public struct QuaternionDataView: View {
| `- note: add @available attribute to enclosing struct
11 | let quat: Quat?
12 |
:
16 |
17 | @ViewBuilder
18 | public var body: some View {
| | `- error: 'View' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing property
19 | if let quat {
20 | Section(header: Text("Axis Vector and angle")) {
/Users/admin/builder/spi-builder-workspace/Sources/LookingGlassUI/QuaternionDataView.swift:17:6: error: 'ViewBuilder' is only available in macOS 10.15 or newer
8 | import SwiftUI
9 |
10 | public struct QuaternionDataView: View {
| `- note: add @available attribute to enclosing struct
11 | let quat: Quat?
12 |
:
15 | }
16 |
17 | @ViewBuilder
| `- error: 'ViewBuilder' is only available in macOS 10.15 or newer
18 | public var body: some View {
19 | if let quat {
/Users/admin/builder/spi-builder-workspace/Sources/LookingGlassUI/QuaternionDataView.swift:37:57: error: 'View' is only available in macOS 10.15 or newer
8 | import SwiftUI
9 |
10 | public struct QuaternionDataView: View {
| `- note: add @available attribute to enclosing struct
11 | let quat: Quat?
12 |
:
35 | }
36 |
37 | func data(_ label: String, _ value: Double) -> some View {
| | `- error: 'View' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing instance method
38 | Text("\(label): \(value)")
39 | .accessibilityLabel(label)
/Users/admin/builder/spi-builder-workspace/Sources/LookingGlassUI/QuaternionDataView.swift:20:13: error: conformance of 'Section<Parent, Content, Footer>' to 'View' is only available in macOS 10.15 or newer
8 | import SwiftUI
9 |
10 | public struct QuaternionDataView: View {
| `- note: add @available attribute to enclosing struct
11 | let quat: Quat?
12 |
:
16 |
17 | @ViewBuilder
18 | public var body: some View {
| `- note: add @available attribute to enclosing property
19 | if let quat {
20 | Section(header: Text("Axis Vector and angle")) {
| |- error: conformance of 'Section<Parent, Content, Footer>' to 'View' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
21 | data("Axis Vector x", quat.axis.x)
22 | data("Axis Vector y", quat.axis.y)
/Users/admin/builder/spi-builder-workspace/Sources/LookingGlassUI/QuaternionDataView.swift:20:13: error: 'Section' is only available in macOS 10.15 or newer
8 | import SwiftUI
9 |
10 | public struct QuaternionDataView: View {
| `- note: add @available attribute to enclosing struct
11 | let quat: Quat?
12 |
:
16 |
17 | @ViewBuilder
18 | public var body: some View {
| `- note: add @available attribute to enclosing property
19 | if let quat {
20 | Section(header: Text("Axis Vector and angle")) {
| |- error: 'Section' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
21 | data("Axis Vector x", quat.axis.x)
22 | data("Axis Vector y", quat.axis.y)
/Users/admin/builder/spi-builder-workspace/Sources/LookingGlassUI/QuaternionDataView.swift:20:13: error: 'init(header:content:)' is only available in macOS 10.15 or newer
8 | import SwiftUI
9 |
10 | public struct QuaternionDataView: View {
| `- note: add @available attribute to enclosing struct
11 | let quat: Quat?
12 |
:
16 |
17 | @ViewBuilder
18 | public var body: some View {
| `- note: add @available attribute to enclosing property
19 | if let quat {
20 | Section(header: Text("Axis Vector and angle")) {
| |- error: 'init(header:content:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
21 | data("Axis Vector x", quat.axis.x)
22 | data("Axis Vector y", quat.axis.y)
/Users/admin/builder/spi-builder-workspace/Sources/LookingGlassUI/QuaternionDataView.swift:20:29: error: 'Text' is only available in macOS 10.15 or newer
8 | import SwiftUI
9 |
10 | public struct QuaternionDataView: View {
| `- note: add @available attribute to enclosing struct
11 | let quat: Quat?
12 |
:
16 |
17 | @ViewBuilder
18 | public var body: some View {
| `- note: add @available attribute to enclosing property
19 | if let quat {
20 | Section(header: Text("Axis Vector and angle")) {
| |- error: 'Text' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
21 | data("Axis Vector x", quat.axis.x)
22 | data("Axis Vector y", quat.axis.y)
/Users/admin/builder/spi-builder-workspace/Sources/LookingGlassUI/QuaternionDataView.swift:27:13: error: conformance of 'Section<Parent, Content, Footer>' to 'View' is only available in macOS 10.15 or newer
8 | import SwiftUI
9 |
10 | public struct QuaternionDataView: View {
| `- note: add @available attribute to enclosing struct
11 | let quat: Quat?
12 |
:
16 |
17 | @ViewBuilder
18 | public var body: some View {
| `- note: add @available attribute to enclosing property
19 | if let quat {
20 | Section(header: Text("Axis Vector and angle")) {
:
25 | }
26 |
27 | Section(header: Text("Rotation components")) {
| |- error: conformance of 'Section<Parent, Content, Footer>' to 'View' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
28 | data("Pitch (degrees)", quat.pitch.degrees)
29 | data("Yaw (degrees)", quat.yaw.degrees)
/Users/admin/builder/spi-builder-workspace/Sources/LookingGlassUI/QuaternionDataView.swift:27:13: error: 'Section' is only available in macOS 10.15 or newer
8 | import SwiftUI
9 |
10 | public struct QuaternionDataView: View {
| `- note: add @available attribute to enclosing struct
11 | let quat: Quat?
12 |
:
16 |
17 | @ViewBuilder
18 | public var body: some View {
| `- note: add @available attribute to enclosing property
19 | if let quat {
20 | Section(header: Text("Axis Vector and angle")) {
:
25 | }
26 |
27 | Section(header: Text("Rotation components")) {
| |- error: 'Section' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
28 | data("Pitch (degrees)", quat.pitch.degrees)
29 | data("Yaw (degrees)", quat.yaw.degrees)
/Users/admin/builder/spi-builder-workspace/Sources/LookingGlassUI/QuaternionDataView.swift:27:13: error: 'init(header:content:)' is only available in macOS 10.15 or newer
8 | import SwiftUI
9 |
10 | public struct QuaternionDataView: View {
| `- note: add @available attribute to enclosing struct
11 | let quat: Quat?
12 |
:
16 |
17 | @ViewBuilder
18 | public var body: some View {
| `- note: add @available attribute to enclosing property
19 | if let quat {
20 | Section(header: Text("Axis Vector and angle")) {
:
25 | }
26 |
27 | Section(header: Text("Rotation components")) {
| |- error: 'init(header:content:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
28 | data("Pitch (degrees)", quat.pitch.degrees)
29 | data("Yaw (degrees)", quat.yaw.degrees)
/Users/admin/builder/spi-builder-workspace/Sources/LookingGlassUI/QuaternionDataView.swift:27:29: error: 'Text' is only available in macOS 10.15 or newer
8 | import SwiftUI
9 |
10 | public struct QuaternionDataView: View {
| `- note: add @available attribute to enclosing struct
11 | let quat: Quat?
12 |
:
16 |
17 | @ViewBuilder
18 | public var body: some View {
| `- note: add @available attribute to enclosing property
19 | if let quat {
20 | Section(header: Text("Axis Vector and angle")) {
:
25 | }
26 |
27 | Section(header: Text("Rotation components")) {
| |- error: 'Text' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
28 | data("Pitch (degrees)", quat.pitch.degrees)
29 | data("Yaw (degrees)", quat.yaw.degrees)
/Users/admin/builder/spi-builder-workspace/Sources/LookingGlassUI/QuaternionDataView.swift:19:21: error: conformance of 'Section<Parent, Content, Footer>' to 'View' is only available in macOS 10.15 or newer
8 | import SwiftUI
9 |
10 | public struct QuaternionDataView: View {
| `- note: add @available attribute to enclosing struct
11 | let quat: Quat?
12 |
:
16 |
17 | @ViewBuilder
18 | public var body: some View {
| `- note: add @available attribute to enclosing property
19 | if let quat {
| |- error: conformance of 'Section<Parent, Content, Footer>' to 'View' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
20 | Section(header: Text("Axis Vector and angle")) {
21 | data("Axis Vector x", quat.axis.x)
/Users/admin/builder/spi-builder-workspace/Sources/LookingGlassUI/QuaternionDataView.swift:19:21: error: conformance of 'Section<Parent, Content, Footer>' to 'View' is only available in macOS 10.15 or newer
8 | import SwiftUI
9 |
10 | public struct QuaternionDataView: View {
| `- note: add @available attribute to enclosing struct
11 | let quat: Quat?
12 |
:
16 |
17 | @ViewBuilder
18 | public var body: some View {
| `- note: add @available attribute to enclosing property
19 | if let quat {
| |- error: conformance of 'Section<Parent, Content, Footer>' to 'View' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
20 | Section(header: Text("Axis Vector and angle")) {
21 | data("Axis Vector x", quat.axis.x)
/Users/admin/builder/spi-builder-workspace/Sources/LookingGlassUI/QuaternionDataView.swift:19:21: error: 'buildEither(first:)' is only available in macOS 10.15 or newer
8 | import SwiftUI
9 |
10 | public struct QuaternionDataView: View {
| `- note: add @available attribute to enclosing struct
11 | let quat: Quat?
12 |
:
16 |
17 | @ViewBuilder
18 | public var body: some View {
| `- note: add @available attribute to enclosing property
19 | if let quat {
| |- error: 'buildEither(first:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
20 | Section(header: Text("Axis Vector and angle")) {
21 | data("Axis Vector x", quat.axis.x)
/Users/admin/builder/spi-builder-workspace/Sources/LookingGlassUI/QuaternionDataView.swift:33:13: error: conformance of 'Text' to 'View' is only available in macOS 10.15 or newer
8 | import SwiftUI
9 |
10 | public struct QuaternionDataView: View {
| `- note: add @available attribute to enclosing struct
11 | let quat: Quat?
12 |
:
16 |
17 | @ViewBuilder
18 | public var body: some View {
| `- note: add @available attribute to enclosing property
19 | if let quat {
20 | Section(header: Text("Axis Vector and angle")) {
:
31 | }
32 | } else {
33 | Text("Quat: Nil")
| |- error: conformance of 'Text' to 'View' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
34 | }
35 | }
/Users/admin/builder/spi-builder-workspace/Sources/LookingGlassUI/QuaternionDataView.swift:33:13: error: 'Text' is only available in macOS 10.15 or newer
8 | import SwiftUI
9 |
10 | public struct QuaternionDataView: View {
| `- note: add @available attribute to enclosing struct
11 | let quat: Quat?
12 |
:
16 |
17 | @ViewBuilder
18 | public var body: some View {
| `- note: add @available attribute to enclosing property
19 | if let quat {
20 | Section(header: Text("Axis Vector and angle")) {
:
31 | }
32 | } else {
33 | Text("Quat: Nil")
| |- error: 'Text' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
34 | }
35 | }
/Users/admin/builder/spi-builder-workspace/Sources/LookingGlassUI/QuaternionDataView.swift:32:16: error: conformance of 'Text' to 'View' is only available in macOS 10.15 or newer
8 | import SwiftUI
9 |
10 | public struct QuaternionDataView: View {
| `- note: add @available attribute to enclosing struct
11 | let quat: Quat?
12 |
:
16 |
17 | @ViewBuilder
18 | public var body: some View {
| `- note: add @available attribute to enclosing property
19 | if let quat {
20 | Section(header: Text("Axis Vector and angle")) {
:
30 | data("Roll (degrees)", quat.roll.degrees)
31 | }
32 | } else {
| |- error: conformance of 'Text' to 'View' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
33 | Text("Quat: Nil")
34 | }
/Users/admin/builder/spi-builder-workspace/Sources/LookingGlassUI/QuaternionDataView.swift:32:16: error: 'buildEither(second:)' is only available in macOS 10.15 or newer
8 | import SwiftUI
9 |
10 | public struct QuaternionDataView: View {
| `- note: add @available attribute to enclosing struct
11 | let quat: Quat?
12 |
:
16 |
17 | @ViewBuilder
18 | public var body: some View {
| `- note: add @available attribute to enclosing property
19 | if let quat {
20 | Section(header: Text("Axis Vector and angle")) {
:
30 | data("Roll (degrees)", quat.roll.degrees)
31 | }
32 | } else {
| |- error: 'buildEither(second:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
33 | Text("Quat: Nil")
34 | }
/Users/admin/builder/spi-builder-workspace/Sources/LookingGlassUI/QuaternionDataView.swift:18:32: error: conformance of '_ConditionalContent<TrueContent, FalseContent>' to 'View' is only available in macOS 10.15 or newer
8 | import SwiftUI
9 |
10 | public struct QuaternionDataView: View {
| `- note: add @available attribute to enclosing struct
11 | let quat: Quat?
12 |
:
16 |
17 | @ViewBuilder
18 | public var body: some View {
| | |- error: conformance of '_ConditionalContent<TrueContent, FalseContent>' to 'View' is only available in macOS 10.15 or newer
| | `- note: add 'if #available' version check
| `- note: add @available attribute to enclosing property
19 | if let quat {
20 | Section(header: Text("Axis Vector and angle")) {
/Users/admin/builder/spi-builder-workspace/Sources/LookingGlassUI/QuaternionDataView.swift:41:14: error: conformance of 'ModifiedContent<Content, Modifier>' to 'View' is only available in macOS 10.15 or newer
8 | import SwiftUI
9 |
10 | public struct QuaternionDataView: View {
| `- note: add @available attribute to enclosing struct
11 | let quat: Quat?
12 |
:
35 | }
36 |
37 | func data(_ label: String, _ value: Double) -> some View {
| `- note: add @available attribute to enclosing instance method
38 | Text("\(label): \(value)")
39 | .accessibilityLabel(label)
40 | .accessibilityValue(String(value))
41 | .accessibilityAddTraits(.updatesFrequently)
| |- error: conformance of 'ModifiedContent<Content, Modifier>' to 'View' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
42 | }
43 | }
/Users/admin/builder/spi-builder-workspace/Sources/LookingGlassUI/QuaternionDataView.swift:38:9: error: 'Text' is only available in macOS 10.15 or newer
8 | import SwiftUI
9 |
10 | public struct QuaternionDataView: View {
| `- note: add @available attribute to enclosing struct
11 | let quat: Quat?
12 |
:
35 | }
36 |
37 | func data(_ label: String, _ value: Double) -> some View {
| `- note: add @available attribute to enclosing instance method
38 | Text("\(label): \(value)")
| |- error: 'Text' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
39 | .accessibilityLabel(label)
40 | .accessibilityValue(String(value))
/Users/admin/builder/spi-builder-workspace/Sources/LookingGlassUI/QuaternionDataView.swift:39:14: error: 'accessibilityLabel' is only available in macOS 12.0 or newer
8 | import SwiftUI
9 |
10 | public struct QuaternionDataView: View {
| `- note: add @available attribute to enclosing struct
11 | let quat: Quat?
12 |
:
35 | }
36 |
37 | func data(_ label: String, _ value: Double) -> some View {
| `- note: add @available attribute to enclosing instance method
38 | Text("\(label): \(value)")
39 | .accessibilityLabel(label)
| |- error: 'accessibilityLabel' is only available in macOS 12.0 or newer
| `- note: add 'if #available' version check
40 | .accessibilityValue(String(value))
41 | .accessibilityAddTraits(.updatesFrequently)
/Users/admin/builder/spi-builder-workspace/Sources/LookingGlassUI/QuaternionDataView.swift:40:14: error: 'accessibilityValue' is only available in macOS 11.0 or newer
8 | import SwiftUI
9 |
10 | public struct QuaternionDataView: View {
| `- note: add @available attribute to enclosing struct
11 | let quat: Quat?
12 |
:
35 | }
36 |
37 | func data(_ label: String, _ value: Double) -> some View {
| `- note: add @available attribute to enclosing instance method
38 | Text("\(label): \(value)")
39 | .accessibilityLabel(label)
40 | .accessibilityValue(String(value))
| |- error: 'accessibilityValue' is only available in macOS 11.0 or newer
| `- note: add 'if #available' version check
41 | .accessibilityAddTraits(.updatesFrequently)
42 | }
/Users/admin/builder/spi-builder-workspace/Sources/LookingGlassUI/QuaternionDataView.swift:41:14: error: 'accessibilityAddTraits' is only available in macOS 11.0 or newer
8 | import SwiftUI
9 |
10 | public struct QuaternionDataView: View {
| `- note: add @available attribute to enclosing struct
11 | let quat: Quat?
12 |
:
35 | }
36 |
37 | func data(_ label: String, _ value: Double) -> some View {
| `- note: add @available attribute to enclosing instance method
38 | Text("\(label): \(value)")
39 | .accessibilityLabel(label)
40 | .accessibilityValue(String(value))
41 | .accessibilityAddTraits(.updatesFrequently)
| |- error: 'accessibilityAddTraits' is only available in macOS 11.0 or newer
| `- note: add 'if #available' version check
42 | }
43 | }
[18/22] Compiling LookingGlassUI ShimmerMode.swift
/Users/admin/builder/spi-builder-workspace/Sources/LookingGlassUI/ShimmerMode.swift:17:35: error: 'ColorScheme' is only available in macOS 10.15 or newer
9 |
10 | /// Mode that toggles a `Bool` based on supplied `ColorScheme`
11 | public enum ShimmerMode: Int, Sendable {
| `- note: add @available attribute to enclosing enum
12 | case off, on, darkModeOnly, lightModeOnly
13 |
:
15 | /// - Parameter colorScheme: Used to evaluate `Bool` state
16 | /// - Returns: on/off `Bool` based on supplied `ColorScheme`
17 | public func isOn(colorScheme: ColorScheme) -> Bool {
| | `- error: 'ColorScheme' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing instance method
18 | switch self {
19 | case .off:
/Users/admin/builder/spi-builder-workspace/Sources/LookingGlassUI/ShimmerView.swift:15:20: error: 'colorScheme' is only available in macOS 10.15 or newer
11 | ///
12 | /// Takes all available space similar to `Color`
13 | public struct ShimmerView: View {
| `- note: add @available attribute to enclosing struct
14 | @EnvironmentObject var motionManager: MotionManager
15 | @Environment(\.colorScheme) var colorScheme
| `- error: 'colorScheme' is only available in macOS 10.15 or newer
16 |
17 | let mode: ShimmerMode
/Users/admin/builder/spi-builder-workspace/Sources/LookingGlassUI/ShimmerView.swift:14:6: error: 'EnvironmentObject' is only available in macOS 10.15 or newer
11 | ///
12 | /// Takes all available space similar to `Color`
13 | public struct ShimmerView: View {
| `- note: add @available attribute to enclosing struct
14 | @EnvironmentObject var motionManager: MotionManager
| `- error: 'EnvironmentObject' is only available in macOS 10.15 or newer
15 | @Environment(\.colorScheme) var colorScheme
16 |
/Users/admin/builder/spi-builder-workspace/Sources/LookingGlassUI/ShimmerView.swift:15:6: error: 'Environment' is only available in macOS 10.15 or newer
11 | ///
12 | /// Takes all available space similar to `Color`
13 | public struct ShimmerView: View {
| `- note: add @available attribute to enclosing struct
14 | @EnvironmentObject var motionManager: MotionManager
15 | @Environment(\.colorScheme) var colorScheme
| `- error: 'Environment' is only available in macOS 10.15 or newer
16 |
17 | let mode: ShimmerMode
/Users/admin/builder/spi-builder-workspace/Sources/LookingGlassUI/ShimmerView.swift:18:16: error: 'Color' is only available in macOS 10.15 or newer
11 | ///
12 | /// Takes all available space similar to `Color`
13 | public struct ShimmerView: View {
| `- note: add @available attribute to enclosing struct
14 | @EnvironmentObject var motionManager: MotionManager
15 | @Environment(\.colorScheme) var colorScheme
16 |
17 | let mode: ShimmerMode
18 | let color: Color
| `- error: 'Color' is only available in macOS 10.15 or newer
19 | let background: Color
20 |
/Users/admin/builder/spi-builder-workspace/Sources/LookingGlassUI/ShimmerView.swift:19:21: error: 'Color' is only available in macOS 10.15 or newer
11 | ///
12 | /// Takes all available space similar to `Color`
13 | public struct ShimmerView: View {
| `- note: add @available attribute to enclosing struct
14 | @EnvironmentObject var motionManager: MotionManager
15 | @Environment(\.colorScheme) var colorScheme
:
17 | let mode: ShimmerMode
18 | let color: Color
19 | let background: Color
| `- error: 'Color' is only available in macOS 10.15 or newer
20 |
21 | let startRadius: CGFloat = 5
/Users/admin/builder/spi-builder-workspace/Sources/LookingGlassUI/ShimmerView.swift:26:16: error: 'Angle' is only available in macOS 10.15 or newer
11 | ///
12 | /// Takes all available space similar to `Color`
13 | public struct ShimmerView: View {
| `- note: add @available attribute to enclosing struct
14 | @EnvironmentObject var motionManager: MotionManager
15 | @Environment(\.colorScheme) var colorScheme
:
24 | let aspectRatio: CGFloat = 0.5
25 | let distance: CGFloat = 4000
26 | let pitch: Angle = .degrees(45)
| `- error: 'Angle' is only available in macOS 10.15 or newer
27 | let yaw: Angle = .zero
28 | let localRoll: Angle = .degrees(-30)
/Users/admin/builder/spi-builder-workspace/Sources/LookingGlassUI/ShimmerView.swift:27:14: error: 'Angle' is only available in macOS 10.15 or newer
11 | ///
12 | /// Takes all available space similar to `Color`
13 | public struct ShimmerView: View {
| `- note: add @available attribute to enclosing struct
14 | @EnvironmentObject var motionManager: MotionManager
15 | @Environment(\.colorScheme) var colorScheme
:
25 | let distance: CGFloat = 4000
26 | let pitch: Angle = .degrees(45)
27 | let yaw: Angle = .zero
| `- error: 'Angle' is only available in macOS 10.15 or newer
28 | let localRoll: Angle = .degrees(-30)
29 |
/Users/admin/builder/spi-builder-workspace/Sources/LookingGlassUI/ShimmerView.swift:27:23: error: 'zero' is only available in macOS 10.15 or newer
11 | ///
12 | /// Takes all available space similar to `Color`
13 | public struct ShimmerView: View {
| `- note: add @available attribute to enclosing struct
14 | @EnvironmentObject var motionManager: MotionManager
15 | @Environment(\.colorScheme) var colorScheme
:
25 | let distance: CGFloat = 4000
26 | let pitch: Angle = .degrees(45)
27 | let yaw: Angle = .zero
| `- error: 'zero' is only available in macOS 10.15 or newer
28 | let localRoll: Angle = .degrees(-30)
29 |
/Users/admin/builder/spi-builder-workspace/Sources/LookingGlassUI/ShimmerView.swift:28:20: error: 'Angle' is only available in macOS 10.15 or newer
11 | ///
12 | /// Takes all available space similar to `Color`
13 | public struct ShimmerView: View {
| `- note: add @available attribute to enclosing struct
14 | @EnvironmentObject var motionManager: MotionManager
15 | @Environment(\.colorScheme) var colorScheme
:
26 | let pitch: Angle = .degrees(45)
27 | let yaw: Angle = .zero
28 | let localRoll: Angle = .degrees(-30)
| `- error: 'Angle' is only available in macOS 10.15 or newer
29 |
30 | /// Creates a shimmering view based on device orientation
/Users/admin/builder/spi-builder-workspace/Sources/LookingGlassUI/ShimmerView.swift:38:50: error: 'Color' is only available in macOS 10.15 or newer
11 | ///
12 | /// Takes all available space similar to `Color`
13 | public struct ShimmerView: View {
| `- note: add @available attribute to enclosing struct
14 | @EnvironmentObject var motionManager: MotionManager
15 | @Environment(\.colorScheme) var colorScheme
:
36 | /// - color: Shimmer color
37 | /// - background: Background color
38 | public init(mode: ShimmerMode? = nil, color: Color, background: Color) {
| | `- error: 'Color' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing initializer
39 | self.mode = mode ?? .on
40 | self.color = color
/Users/admin/builder/spi-builder-workspace/Sources/LookingGlassUI/ShimmerView.swift:38:69: error: 'Color' is only available in macOS 10.15 or newer
11 | ///
12 | /// Takes all available space similar to `Color`
13 | public struct ShimmerView: View {
| `- note: add @available attribute to enclosing struct
14 | @EnvironmentObject var motionManager: MotionManager
15 | @Environment(\.colorScheme) var colorScheme
:
36 | /// - color: Shimmer color
37 | /// - background: Background color
38 | public init(mode: ShimmerMode? = nil, color: Color, background: Color) {
| | `- error: 'Color' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing initializer
39 | self.mode = mode ?? .on
40 | self.color = color
/Users/admin/builder/spi-builder-workspace/Sources/LookingGlassUI/ShimmerView.swift:52:36: error: 'Color' is only available in macOS 10.15 or newer
11 | ///
12 | /// Takes all available space similar to `Color`
13 | public struct ShimmerView: View {
| `- note: add @available attribute to enclosing struct
14 | @EnvironmentObject var motionManager: MotionManager
15 | @Environment(\.colorScheme) var colorScheme
:
50 | /// - color: Shimmer color
51 | /// - background: Background color
52 | public init(isOn: Bool, color: Color, background: Color) {
| | `- error: 'Color' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing initializer
53 | self.init(mode: isOn ? .on : .off, color: color, background: background)
54 | }
/Users/admin/builder/spi-builder-workspace/Sources/LookingGlassUI/ShimmerView.swift:52:55: error: 'Color' is only available in macOS 10.15 or newer
11 | ///
12 | /// Takes all available space similar to `Color`
13 | public struct ShimmerView: View {
| `- note: add @available attribute to enclosing struct
14 | @EnvironmentObject var motionManager: MotionManager
15 | @Environment(\.colorScheme) var colorScheme
:
50 | /// - color: Shimmer color
51 | /// - background: Background color
52 | public init(isOn: Bool, color: Color, background: Color) {
| | `- error: 'Color' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing initializer
53 | self.init(mode: isOn ? .on : .off, color: color, background: background)
54 | }
/Users/admin/builder/spi-builder-workspace/Sources/LookingGlassUI/ShimmerView.swift:60:27: error: 'View' is only available in macOS 10.15 or newer
11 | ///
12 | /// Takes all available space similar to `Color`
13 | public struct ShimmerView: View {
| `- note: add @available attribute to enclosing struct
14 | @EnvironmentObject var motionManager: MotionManager
15 | @Environment(\.colorScheme) var colorScheme
:
58 | }
59 |
60 | public var body: some View {
| | `- error: 'View' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing property
61 | background
62 | .overlay(
/Users/admin/builder/spi-builder-workspace/Sources/LookingGlassUI/ShimmerView.swift:62:14: error: 'overlay(_:alignment:)' is only available in macOS 10.15 or newer
11 | ///
12 | /// Takes all available space similar to `Color`
13 | public struct ShimmerView: View {
| `- note: add @available attribute to enclosing struct
14 | @EnvironmentObject var motionManager: MotionManager
15 | @Environment(\.colorScheme) var colorScheme
:
58 | }
59 |
60 | public var body: some View {
| `- note: add @available attribute to enclosing property
61 | background
62 | .overlay(
| |- error: 'overlay(_:alignment:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
63 | VStack {
64 | if isShimmering {
/Users/admin/builder/spi-builder-workspace/Sources/LookingGlassUI/ShimmerView.swift:63:17: error: 'VStack' is only available in macOS 10.15 or newer
11 | ///
12 | /// Takes all available space similar to `Color`
13 | public struct ShimmerView: View {
| `- note: add @available attribute to enclosing struct
14 | @EnvironmentObject var motionManager: MotionManager
15 | @Environment(\.colorScheme) var colorScheme
:
58 | }
59 |
60 | public var body: some View {
| `- note: add @available attribute to enclosing property
61 | background
62 | .overlay(
63 | VStack {
| |- error: 'VStack' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
64 | if isShimmering {
65 | LookingGlass(
/Users/admin/builder/spi-builder-workspace/Sources/LookingGlassUI/ShimmerView.swift:63:17: error: conformance of 'Optional<Wrapped>' to 'View' is only available in macOS 10.15 or newer
11 | ///
12 | /// Takes all available space similar to `Color`
13 | public struct ShimmerView: View {
| `- note: add @available attribute to enclosing struct
14 | @EnvironmentObject var motionManager: MotionManager
15 | @Environment(\.colorScheme) var colorScheme
:
58 | }
59 |
60 | public var body: some View {
| `- note: add @available attribute to enclosing property
61 | background
62 | .overlay(
63 | VStack {
| |- error: conformance of 'Optional<Wrapped>' to 'View' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
64 | if isShimmering {
65 | LookingGlass(
/Users/admin/builder/spi-builder-workspace/Sources/LookingGlassUI/ShimmerView.swift:74:29: error: 'RadialGradient' is only available in macOS 10.15 or newer
11 | ///
12 | /// Takes all available space similar to `Color`
13 | public struct ShimmerView: View {
| `- note: add @available attribute to enclosing struct
14 | @EnvironmentObject var motionManager: MotionManager
15 | @Environment(\.colorScheme) var colorScheme
:
58 | }
59 |
60 | public var body: some View {
| `- note: add @available attribute to enclosing property
61 | background
62 | .overlay(
:
72 | isShowingInFourDirections: true
73 | ) {
74 | RadialGradient(gradient: Gradient(colors: [color, background]), center: .center, startRadius: startRadius, endRadius: endRadius)
| |- error: 'RadialGradient' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
75 | .frame(width: endRadius * 2, height: endRadius * 2)
76 | .scaleEffect(x: scale * aspectRatio, y: scale / aspectRatio, anchor: .center)
/Users/admin/builder/spi-builder-workspace/Sources/LookingGlassUI/ShimmerView.swift:74:54: error: 'Gradient' is only available in macOS 10.15 or newer
11 | ///
12 | /// Takes all available space similar to `Color`
13 | public struct ShimmerView: View {
| `- note: add @available attribute to enclosing struct
14 | @EnvironmentObject var motionManager: MotionManager
15 | @Environment(\.colorScheme) var colorScheme
:
58 | }
59 |
60 | public var body: some View {
| `- note: add @available attribute to enclosing property
61 | background
62 | .overlay(
:
72 | isShowingInFourDirections: true
73 | ) {
74 | RadialGradient(gradient: Gradient(colors: [color, background]), center: .center, startRadius: startRadius, endRadius: endRadius)
| |- error: 'Gradient' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
75 | .frame(width: endRadius * 2, height: endRadius * 2)
76 | .scaleEffect(x: scale * aspectRatio, y: scale / aspectRatio, anchor: .center)
/Users/admin/builder/spi-builder-workspace/Sources/LookingGlassUI/ShimmerView.swift:75:34: error: 'frame(width:height:alignment:)' is only available in macOS 10.15 or newer
11 | ///
12 | /// Takes all available space similar to `Color`
13 | public struct ShimmerView: View {
| `- note: add @available attribute to enclosing struct
14 | @EnvironmentObject var motionManager: MotionManager
15 | @Environment(\.colorScheme) var colorScheme
:
58 | }
59 |
60 | public var body: some View {
| `- note: add @available attribute to enclosing property
61 | background
62 | .overlay(
:
73 | ) {
74 | RadialGradient(gradient: Gradient(colors: [color, background]), center: .center, startRadius: startRadius, endRadius: endRadius)
75 | .frame(width: endRadius * 2, height: endRadius * 2)
| |- error: 'frame(width:height:alignment:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
76 | .scaleEffect(x: scale * aspectRatio, y: scale / aspectRatio, anchor: .center)
77 | }
/Users/admin/builder/spi-builder-workspace/Sources/LookingGlassUI/ShimmerView.swift:76:34: error: 'scaleEffect(x:y:anchor:)' is only available in macOS 10.15 or newer
11 | ///
12 | /// Takes all available space similar to `Color`
13 | public struct ShimmerView: View {
| `- note: add @available attribute to enclosing struct
14 | @EnvironmentObject var motionManager: MotionManager
15 | @Environment(\.colorScheme) var colorScheme
:
58 | }
59 |
60 | public var body: some View {
| `- note: add @available attribute to enclosing property
61 | background
62 | .overlay(
:
74 | RadialGradient(gradient: Gradient(colors: [color, background]), center: .center, startRadius: startRadius, endRadius: endRadius)
75 | .frame(width: endRadius * 2, height: endRadius * 2)
76 | .scaleEffect(x: scale * aspectRatio, y: scale / aspectRatio, anchor: .center)
| |- error: 'scaleEffect(x:y:anchor:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
77 | }
78 | .clipped()
/Users/admin/builder/spi-builder-workspace/Sources/LookingGlassUI/ShimmerView.swift:78:26: error: 'clipped(antialiased:)' is only available in macOS 10.15 or newer
11 | ///
12 | /// Takes all available space similar to `Color`
13 | public struct ShimmerView: View {
| `- note: add @available attribute to enclosing struct
14 | @EnvironmentObject var motionManager: MotionManager
15 | @Environment(\.colorScheme) var colorScheme
:
58 | }
59 |
60 | public var body: some View {
| `- note: add @available attribute to enclosing property
61 | background
62 | .overlay(
:
76 | .scaleEffect(x: scale * aspectRatio, y: scale / aspectRatio, anchor: .center)
77 | }
78 | .clipped()
| |- error: 'clipped(antialiased:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
79 | }
80 | }
/Users/admin/builder/spi-builder-workspace/Sources/LookingGlassUI/ShimmerView.swift:64:37: error: 'buildIf' is only available in macOS 10.15 or newer
11 | ///
12 | /// Takes all available space similar to `Color`
13 | public struct ShimmerView: View {
| `- note: add @available attribute to enclosing struct
14 | @EnvironmentObject var motionManager: MotionManager
15 | @Environment(\.colorScheme) var colorScheme
:
58 | }
59 |
60 | public var body: some View {
| `- note: add @available attribute to enclosing property
61 | background
62 | .overlay(
63 | VStack {
64 | if isShimmering {
| |- error: 'buildIf' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
65 | LookingGlass(
66 | .reflection,
/Users/admin/builder/spi-builder-workspace/Sources/LookingGlassUI/ShimmerView.swift:79:21: error: 'buildIf' is only available in macOS 10.15 or newer
11 | ///
12 | /// Takes all available space similar to `Color`
13 | public struct ShimmerView: View {
| `- note: add @available attribute to enclosing struct
14 | @EnvironmentObject var motionManager: MotionManager
15 | @Environment(\.colorScheme) var colorScheme
:
58 | }
59 |
60 | public var body: some View {
| `- note: add @available attribute to enclosing property
61 | background
62 | .overlay(
:
77 | }
78 | .clipped()
79 | }
| |- error: 'buildIf' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
80 | }
81 | /// This ensures the shimmering effect does not change the content shape for hit testing and accessibility purporses.
/Users/admin/builder/spi-builder-workspace/Sources/LookingGlassUI/ShimmerView.swift:63:24: error: conformance of 'Optional<Wrapped>' to 'View' is only available in macOS 10.15 or newer
11 | ///
12 | /// Takes all available space similar to `Color`
13 | public struct ShimmerView: View {
| `- note: add @available attribute to enclosing struct
14 | @EnvironmentObject var motionManager: MotionManager
15 | @Environment(\.colorScheme) var colorScheme
:
58 | }
59 |
60 | public var body: some View {
| `- note: add @available attribute to enclosing property
61 | background
62 | .overlay(
63 | VStack {
| |- error: conformance of 'Optional<Wrapped>' to 'View' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
64 | if isShimmering {
65 | LookingGlass(
/Users/admin/builder/spi-builder-workspace/Sources/LookingGlassUI/ShimmerView.swift:82:22: error: 'contentShape(_:eoFill:)' is only available in macOS 10.15 or newer
11 | ///
12 | /// Takes all available space similar to `Color`
13 | public struct ShimmerView: View {
| `- note: add @available attribute to enclosing struct
14 | @EnvironmentObject var motionManager: MotionManager
15 | @Environment(\.colorScheme) var colorScheme
:
58 | }
59 |
60 | public var body: some View {
| `- note: add @available attribute to enclosing property
61 | background
62 | .overlay(
:
80 | }
81 | /// This ensures the shimmering effect does not change the content shape for hit testing and accessibility purporses.
82 | .contentShape(EmptyShape())
| |- error: 'contentShape(_:eoFill:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
83 | )
84 | }
[19/22] Compiling LookingGlassUI ShimmerView.swift
/Users/admin/builder/spi-builder-workspace/Sources/LookingGlassUI/ShimmerMode.swift:17:35: error: 'ColorScheme' is only available in macOS 10.15 or newer
9 |
10 | /// Mode that toggles a `Bool` based on supplied `ColorScheme`
11 | public enum ShimmerMode: Int, Sendable {
| `- note: add @available attribute to enclosing enum
12 | case off, on, darkModeOnly, lightModeOnly
13 |
:
15 | /// - Parameter colorScheme: Used to evaluate `Bool` state
16 | /// - Returns: on/off `Bool` based on supplied `ColorScheme`
17 | public func isOn(colorScheme: ColorScheme) -> Bool {
| | `- error: 'ColorScheme' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing instance method
18 | switch self {
19 | case .off:
/Users/admin/builder/spi-builder-workspace/Sources/LookingGlassUI/ShimmerView.swift:15:20: error: 'colorScheme' is only available in macOS 10.15 or newer
11 | ///
12 | /// Takes all available space similar to `Color`
13 | public struct ShimmerView: View {
| `- note: add @available attribute to enclosing struct
14 | @EnvironmentObject var motionManager: MotionManager
15 | @Environment(\.colorScheme) var colorScheme
| `- error: 'colorScheme' is only available in macOS 10.15 or newer
16 |
17 | let mode: ShimmerMode
/Users/admin/builder/spi-builder-workspace/Sources/LookingGlassUI/ShimmerView.swift:14:6: error: 'EnvironmentObject' is only available in macOS 10.15 or newer
11 | ///
12 | /// Takes all available space similar to `Color`
13 | public struct ShimmerView: View {
| `- note: add @available attribute to enclosing struct
14 | @EnvironmentObject var motionManager: MotionManager
| `- error: 'EnvironmentObject' is only available in macOS 10.15 or newer
15 | @Environment(\.colorScheme) var colorScheme
16 |
/Users/admin/builder/spi-builder-workspace/Sources/LookingGlassUI/ShimmerView.swift:15:6: error: 'Environment' is only available in macOS 10.15 or newer
11 | ///
12 | /// Takes all available space similar to `Color`
13 | public struct ShimmerView: View {
| `- note: add @available attribute to enclosing struct
14 | @EnvironmentObject var motionManager: MotionManager
15 | @Environment(\.colorScheme) var colorScheme
| `- error: 'Environment' is only available in macOS 10.15 or newer
16 |
17 | let mode: ShimmerMode
/Users/admin/builder/spi-builder-workspace/Sources/LookingGlassUI/ShimmerView.swift:18:16: error: 'Color' is only available in macOS 10.15 or newer
11 | ///
12 | /// Takes all available space similar to `Color`
13 | public struct ShimmerView: View {
| `- note: add @available attribute to enclosing struct
14 | @EnvironmentObject var motionManager: MotionManager
15 | @Environment(\.colorScheme) var colorScheme
16 |
17 | let mode: ShimmerMode
18 | let color: Color
| `- error: 'Color' is only available in macOS 10.15 or newer
19 | let background: Color
20 |
/Users/admin/builder/spi-builder-workspace/Sources/LookingGlassUI/ShimmerView.swift:19:21: error: 'Color' is only available in macOS 10.15 or newer
11 | ///
12 | /// Takes all available space similar to `Color`
13 | public struct ShimmerView: View {
| `- note: add @available attribute to enclosing struct
14 | @EnvironmentObject var motionManager: MotionManager
15 | @Environment(\.colorScheme) var colorScheme
:
17 | let mode: ShimmerMode
18 | let color: Color
19 | let background: Color
| `- error: 'Color' is only available in macOS 10.15 or newer
20 |
21 | let startRadius: CGFloat = 5
/Users/admin/builder/spi-builder-workspace/Sources/LookingGlassUI/ShimmerView.swift:26:16: error: 'Angle' is only available in macOS 10.15 or newer
11 | ///
12 | /// Takes all available space similar to `Color`
13 | public struct ShimmerView: View {
| `- note: add @available attribute to enclosing struct
14 | @EnvironmentObject var motionManager: MotionManager
15 | @Environment(\.colorScheme) var colorScheme
:
24 | let aspectRatio: CGFloat = 0.5
25 | let distance: CGFloat = 4000
26 | let pitch: Angle = .degrees(45)
| `- error: 'Angle' is only available in macOS 10.15 or newer
27 | let yaw: Angle = .zero
28 | let localRoll: Angle = .degrees(-30)
/Users/admin/builder/spi-builder-workspace/Sources/LookingGlassUI/ShimmerView.swift:27:14: error: 'Angle' is only available in macOS 10.15 or newer
11 | ///
12 | /// Takes all available space similar to `Color`
13 | public struct ShimmerView: View {
| `- note: add @available attribute to enclosing struct
14 | @EnvironmentObject var motionManager: MotionManager
15 | @Environment(\.colorScheme) var colorScheme
:
25 | let distance: CGFloat = 4000
26 | let pitch: Angle = .degrees(45)
27 | let yaw: Angle = .zero
| `- error: 'Angle' is only available in macOS 10.15 or newer
28 | let localRoll: Angle = .degrees(-30)
29 |
/Users/admin/builder/spi-builder-workspace/Sources/LookingGlassUI/ShimmerView.swift:27:23: error: 'zero' is only available in macOS 10.15 or newer
11 | ///
12 | /// Takes all available space similar to `Color`
13 | public struct ShimmerView: View {
| `- note: add @available attribute to enclosing struct
14 | @EnvironmentObject var motionManager: MotionManager
15 | @Environment(\.colorScheme) var colorScheme
:
25 | let distance: CGFloat = 4000
26 | let pitch: Angle = .degrees(45)
27 | let yaw: Angle = .zero
| `- error: 'zero' is only available in macOS 10.15 or newer
28 | let localRoll: Angle = .degrees(-30)
29 |
/Users/admin/builder/spi-builder-workspace/Sources/LookingGlassUI/ShimmerView.swift:28:20: error: 'Angle' is only available in macOS 10.15 or newer
11 | ///
12 | /// Takes all available space similar to `Color`
13 | public struct ShimmerView: View {
| `- note: add @available attribute to enclosing struct
14 | @EnvironmentObject var motionManager: MotionManager
15 | @Environment(\.colorScheme) var colorScheme
:
26 | let pitch: Angle = .degrees(45)
27 | let yaw: Angle = .zero
28 | let localRoll: Angle = .degrees(-30)
| `- error: 'Angle' is only available in macOS 10.15 or newer
29 |
30 | /// Creates a shimmering view based on device orientation
/Users/admin/builder/spi-builder-workspace/Sources/LookingGlassUI/ShimmerView.swift:38:50: error: 'Color' is only available in macOS 10.15 or newer
11 | ///
12 | /// Takes all available space similar to `Color`
13 | public struct ShimmerView: View {
| `- note: add @available attribute to enclosing struct
14 | @EnvironmentObject var motionManager: MotionManager
15 | @Environment(\.colorScheme) var colorScheme
:
36 | /// - color: Shimmer color
37 | /// - background: Background color
38 | public init(mode: ShimmerMode? = nil, color: Color, background: Color) {
| | `- error: 'Color' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing initializer
39 | self.mode = mode ?? .on
40 | self.color = color
/Users/admin/builder/spi-builder-workspace/Sources/LookingGlassUI/ShimmerView.swift:38:69: error: 'Color' is only available in macOS 10.15 or newer
11 | ///
12 | /// Takes all available space similar to `Color`
13 | public struct ShimmerView: View {
| `- note: add @available attribute to enclosing struct
14 | @EnvironmentObject var motionManager: MotionManager
15 | @Environment(\.colorScheme) var colorScheme
:
36 | /// - color: Shimmer color
37 | /// - background: Background color
38 | public init(mode: ShimmerMode? = nil, color: Color, background: Color) {
| | `- error: 'Color' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing initializer
39 | self.mode = mode ?? .on
40 | self.color = color
/Users/admin/builder/spi-builder-workspace/Sources/LookingGlassUI/ShimmerView.swift:52:36: error: 'Color' is only available in macOS 10.15 or newer
11 | ///
12 | /// Takes all available space similar to `Color`
13 | public struct ShimmerView: View {
| `- note: add @available attribute to enclosing struct
14 | @EnvironmentObject var motionManager: MotionManager
15 | @Environment(\.colorScheme) var colorScheme
:
50 | /// - color: Shimmer color
51 | /// - background: Background color
52 | public init(isOn: Bool, color: Color, background: Color) {
| | `- error: 'Color' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing initializer
53 | self.init(mode: isOn ? .on : .off, color: color, background: background)
54 | }
/Users/admin/builder/spi-builder-workspace/Sources/LookingGlassUI/ShimmerView.swift:52:55: error: 'Color' is only available in macOS 10.15 or newer
11 | ///
12 | /// Takes all available space similar to `Color`
13 | public struct ShimmerView: View {
| `- note: add @available attribute to enclosing struct
14 | @EnvironmentObject var motionManager: MotionManager
15 | @Environment(\.colorScheme) var colorScheme
:
50 | /// - color: Shimmer color
51 | /// - background: Background color
52 | public init(isOn: Bool, color: Color, background: Color) {
| | `- error: 'Color' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing initializer
53 | self.init(mode: isOn ? .on : .off, color: color, background: background)
54 | }
/Users/admin/builder/spi-builder-workspace/Sources/LookingGlassUI/ShimmerView.swift:60:27: error: 'View' is only available in macOS 10.15 or newer
11 | ///
12 | /// Takes all available space similar to `Color`
13 | public struct ShimmerView: View {
| `- note: add @available attribute to enclosing struct
14 | @EnvironmentObject var motionManager: MotionManager
15 | @Environment(\.colorScheme) var colorScheme
:
58 | }
59 |
60 | public var body: some View {
| | `- error: 'View' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing property
61 | background
62 | .overlay(
/Users/admin/builder/spi-builder-workspace/Sources/LookingGlassUI/ShimmerView.swift:62:14: error: 'overlay(_:alignment:)' is only available in macOS 10.15 or newer
11 | ///
12 | /// Takes all available space similar to `Color`
13 | public struct ShimmerView: View {
| `- note: add @available attribute to enclosing struct
14 | @EnvironmentObject var motionManager: MotionManager
15 | @Environment(\.colorScheme) var colorScheme
:
58 | }
59 |
60 | public var body: some View {
| `- note: add @available attribute to enclosing property
61 | background
62 | .overlay(
| |- error: 'overlay(_:alignment:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
63 | VStack {
64 | if isShimmering {
/Users/admin/builder/spi-builder-workspace/Sources/LookingGlassUI/ShimmerView.swift:63:17: error: 'VStack' is only available in macOS 10.15 or newer
11 | ///
12 | /// Takes all available space similar to `Color`
13 | public struct ShimmerView: View {
| `- note: add @available attribute to enclosing struct
14 | @EnvironmentObject var motionManager: MotionManager
15 | @Environment(\.colorScheme) var colorScheme
:
58 | }
59 |
60 | public var body: some View {
| `- note: add @available attribute to enclosing property
61 | background
62 | .overlay(
63 | VStack {
| |- error: 'VStack' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
64 | if isShimmering {
65 | LookingGlass(
/Users/admin/builder/spi-builder-workspace/Sources/LookingGlassUI/ShimmerView.swift:63:17: error: conformance of 'Optional<Wrapped>' to 'View' is only available in macOS 10.15 or newer
11 | ///
12 | /// Takes all available space similar to `Color`
13 | public struct ShimmerView: View {
| `- note: add @available attribute to enclosing struct
14 | @EnvironmentObject var motionManager: MotionManager
15 | @Environment(\.colorScheme) var colorScheme
:
58 | }
59 |
60 | public var body: some View {
| `- note: add @available attribute to enclosing property
61 | background
62 | .overlay(
63 | VStack {
| |- error: conformance of 'Optional<Wrapped>' to 'View' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
64 | if isShimmering {
65 | LookingGlass(
/Users/admin/builder/spi-builder-workspace/Sources/LookingGlassUI/ShimmerView.swift:74:29: error: 'RadialGradient' is only available in macOS 10.15 or newer
11 | ///
12 | /// Takes all available space similar to `Color`
13 | public struct ShimmerView: View {
| `- note: add @available attribute to enclosing struct
14 | @EnvironmentObject var motionManager: MotionManager
15 | @Environment(\.colorScheme) var colorScheme
:
58 | }
59 |
60 | public var body: some View {
| `- note: add @available attribute to enclosing property
61 | background
62 | .overlay(
:
72 | isShowingInFourDirections: true
73 | ) {
74 | RadialGradient(gradient: Gradient(colors: [color, background]), center: .center, startRadius: startRadius, endRadius: endRadius)
| |- error: 'RadialGradient' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
75 | .frame(width: endRadius * 2, height: endRadius * 2)
76 | .scaleEffect(x: scale * aspectRatio, y: scale / aspectRatio, anchor: .center)
/Users/admin/builder/spi-builder-workspace/Sources/LookingGlassUI/ShimmerView.swift:74:54: error: 'Gradient' is only available in macOS 10.15 or newer
11 | ///
12 | /// Takes all available space similar to `Color`
13 | public struct ShimmerView: View {
| `- note: add @available attribute to enclosing struct
14 | @EnvironmentObject var motionManager: MotionManager
15 | @Environment(\.colorScheme) var colorScheme
:
58 | }
59 |
60 | public var body: some View {
| `- note: add @available attribute to enclosing property
61 | background
62 | .overlay(
:
72 | isShowingInFourDirections: true
73 | ) {
74 | RadialGradient(gradient: Gradient(colors: [color, background]), center: .center, startRadius: startRadius, endRadius: endRadius)
| |- error: 'Gradient' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
75 | .frame(width: endRadius * 2, height: endRadius * 2)
76 | .scaleEffect(x: scale * aspectRatio, y: scale / aspectRatio, anchor: .center)
/Users/admin/builder/spi-builder-workspace/Sources/LookingGlassUI/ShimmerView.swift:75:34: error: 'frame(width:height:alignment:)' is only available in macOS 10.15 or newer
11 | ///
12 | /// Takes all available space similar to `Color`
13 | public struct ShimmerView: View {
| `- note: add @available attribute to enclosing struct
14 | @EnvironmentObject var motionManager: MotionManager
15 | @Environment(\.colorScheme) var colorScheme
:
58 | }
59 |
60 | public var body: some View {
| `- note: add @available attribute to enclosing property
61 | background
62 | .overlay(
:
73 | ) {
74 | RadialGradient(gradient: Gradient(colors: [color, background]), center: .center, startRadius: startRadius, endRadius: endRadius)
75 | .frame(width: endRadius * 2, height: endRadius * 2)
| |- error: 'frame(width:height:alignment:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
76 | .scaleEffect(x: scale * aspectRatio, y: scale / aspectRatio, anchor: .center)
77 | }
/Users/admin/builder/spi-builder-workspace/Sources/LookingGlassUI/ShimmerView.swift:76:34: error: 'scaleEffect(x:y:anchor:)' is only available in macOS 10.15 or newer
11 | ///
12 | /// Takes all available space similar to `Color`
13 | public struct ShimmerView: View {
| `- note: add @available attribute to enclosing struct
14 | @EnvironmentObject var motionManager: MotionManager
15 | @Environment(\.colorScheme) var colorScheme
:
58 | }
59 |
60 | public var body: some View {
| `- note: add @available attribute to enclosing property
61 | background
62 | .overlay(
:
74 | RadialGradient(gradient: Gradient(colors: [color, background]), center: .center, startRadius: startRadius, endRadius: endRadius)
75 | .frame(width: endRadius * 2, height: endRadius * 2)
76 | .scaleEffect(x: scale * aspectRatio, y: scale / aspectRatio, anchor: .center)
| |- error: 'scaleEffect(x:y:anchor:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
77 | }
78 | .clipped()
/Users/admin/builder/spi-builder-workspace/Sources/LookingGlassUI/ShimmerView.swift:78:26: error: 'clipped(antialiased:)' is only available in macOS 10.15 or newer
11 | ///
12 | /// Takes all available space similar to `Color`
13 | public struct ShimmerView: View {
| `- note: add @available attribute to enclosing struct
14 | @EnvironmentObject var motionManager: MotionManager
15 | @Environment(\.colorScheme) var colorScheme
:
58 | }
59 |
60 | public var body: some View {
| `- note: add @available attribute to enclosing property
61 | background
62 | .overlay(
:
76 | .scaleEffect(x: scale * aspectRatio, y: scale / aspectRatio, anchor: .center)
77 | }
78 | .clipped()
| |- error: 'clipped(antialiased:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
79 | }
80 | }
/Users/admin/builder/spi-builder-workspace/Sources/LookingGlassUI/ShimmerView.swift:64:37: error: 'buildIf' is only available in macOS 10.15 or newer
11 | ///
12 | /// Takes all available space similar to `Color`
13 | public struct ShimmerView: View {
| `- note: add @available attribute to enclosing struct
14 | @EnvironmentObject var motionManager: MotionManager
15 | @Environment(\.colorScheme) var colorScheme
:
58 | }
59 |
60 | public var body: some View {
| `- note: add @available attribute to enclosing property
61 | background
62 | .overlay(
63 | VStack {
64 | if isShimmering {
| |- error: 'buildIf' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
65 | LookingGlass(
66 | .reflection,
/Users/admin/builder/spi-builder-workspace/Sources/LookingGlassUI/ShimmerView.swift:79:21: error: 'buildIf' is only available in macOS 10.15 or newer
11 | ///
12 | /// Takes all available space similar to `Color`
13 | public struct ShimmerView: View {
| `- note: add @available attribute to enclosing struct
14 | @EnvironmentObject var motionManager: MotionManager
15 | @Environment(\.colorScheme) var colorScheme
:
58 | }
59 |
60 | public var body: some View {
| `- note: add @available attribute to enclosing property
61 | background
62 | .overlay(
:
77 | }
78 | .clipped()
79 | }
| |- error: 'buildIf' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
80 | }
81 | /// This ensures the shimmering effect does not change the content shape for hit testing and accessibility purporses.
/Users/admin/builder/spi-builder-workspace/Sources/LookingGlassUI/ShimmerView.swift:63:24: error: conformance of 'Optional<Wrapped>' to 'View' is only available in macOS 10.15 or newer
11 | ///
12 | /// Takes all available space similar to `Color`
13 | public struct ShimmerView: View {
| `- note: add @available attribute to enclosing struct
14 | @EnvironmentObject var motionManager: MotionManager
15 | @Environment(\.colorScheme) var colorScheme
:
58 | }
59 |
60 | public var body: some View {
| `- note: add @available attribute to enclosing property
61 | background
62 | .overlay(
63 | VStack {
| |- error: conformance of 'Optional<Wrapped>' to 'View' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
64 | if isShimmering {
65 | LookingGlass(
/Users/admin/builder/spi-builder-workspace/Sources/LookingGlassUI/ShimmerView.swift:82:22: error: 'contentShape(_:eoFill:)' is only available in macOS 10.15 or newer
11 | ///
12 | /// Takes all available space similar to `Color`
13 | public struct ShimmerView: View {
| `- note: add @available attribute to enclosing struct
14 | @EnvironmentObject var motionManager: MotionManager
15 | @Environment(\.colorScheme) var colorScheme
:
58 | }
59 |
60 | public var body: some View {
| `- note: add @available attribute to enclosing property
61 | background
62 | .overlay(
:
80 | }
81 | /// This ensures the shimmering effect does not change the content shape for hit testing and accessibility purporses.
82 | .contentShape(EmptyShape())
| |- error: 'contentShape(_:eoFill:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
83 | )
84 | }
[20/22] Compiling LookingGlassUI ShimmerViewModifier.swift
/Users/admin/builder/spi-builder-workspace/Sources/LookingGlassUI/ShimmerViewModifier.swift:12:20: error: 'colorScheme' is only available in macOS 10.15 or newer
8 | import SwiftUI
9 |
10 | struct ShimmerViewModifier: ViewModifier {
| `- note: add @available attribute to enclosing struct
11 | @EnvironmentObject private var motionManager: MotionManager
12 | @Environment(\.colorScheme) private var colorScheme
| `- error: 'colorScheme' is only available in macOS 10.15 or newer
13 |
14 | @Namespace private var namespace
/Users/admin/builder/spi-builder-workspace/Sources/LookingGlassUI/ShimmerViewModifier.swift:11:6: error: 'EnvironmentObject' is only available in macOS 10.15 or newer
8 | import SwiftUI
9 |
10 | struct ShimmerViewModifier: ViewModifier {
| `- note: add @available attribute to enclosing struct
11 | @EnvironmentObject private var motionManager: MotionManager
| `- error: 'EnvironmentObject' is only available in macOS 10.15 or newer
12 | @Environment(\.colorScheme) private var colorScheme
13 |
/Users/admin/builder/spi-builder-workspace/Sources/LookingGlassUI/ShimmerViewModifier.swift:12:6: error: 'Environment' is only available in macOS 10.15 or newer
8 | import SwiftUI
9 |
10 | struct ShimmerViewModifier: ViewModifier {
| `- note: add @available attribute to enclosing struct
11 | @EnvironmentObject private var motionManager: MotionManager
12 | @Environment(\.colorScheme) private var colorScheme
| `- error: 'Environment' is only available in macOS 10.15 or newer
13 |
14 | @Namespace private var namespace
/Users/admin/builder/spi-builder-workspace/Sources/LookingGlassUI/ShimmerViewModifier.swift:14:6: error: 'Namespace' is only available in macOS 11.0 or newer
8 | import SwiftUI
9 |
10 | struct ShimmerViewModifier: ViewModifier {
| `- note: add @available attribute to enclosing struct
11 | @EnvironmentObject private var motionManager: MotionManager
12 | @Environment(\.colorScheme) private var colorScheme
13 |
14 | @Namespace private var namespace
| `- error: 'Namespace' is only available in macOS 11.0 or newer
15 |
16 | let mode: ShimmerMode
/Users/admin/builder/spi-builder-workspace/Sources/LookingGlassUI/ShimmerViewModifier.swift:17:16: error: 'Color' is only available in macOS 10.15 or newer
8 | import SwiftUI
9 |
10 | struct ShimmerViewModifier: ViewModifier {
| `- note: add @available attribute to enclosing struct
11 | @EnvironmentObject private var motionManager: MotionManager
12 | @Environment(\.colorScheme) private var colorScheme
:
15 |
16 | let mode: ShimmerMode
17 | let color: Color
| `- error: 'Color' is only available in macOS 10.15 or newer
18 | let background: Color
19 | let blendMode: BlendMode
/Users/admin/builder/spi-builder-workspace/Sources/LookingGlassUI/ShimmerViewModifier.swift:18:21: error: 'Color' is only available in macOS 10.15 or newer
8 | import SwiftUI
9 |
10 | struct ShimmerViewModifier: ViewModifier {
| `- note: add @available attribute to enclosing struct
11 | @EnvironmentObject private var motionManager: MotionManager
12 | @Environment(\.colorScheme) private var colorScheme
:
16 | let mode: ShimmerMode
17 | let color: Color
18 | let background: Color
| `- error: 'Color' is only available in macOS 10.15 or newer
19 | let blendMode: BlendMode
20 |
/Users/admin/builder/spi-builder-workspace/Sources/LookingGlassUI/ShimmerViewModifier.swift:19:20: error: 'BlendMode' is only available in macOS 10.15 or newer
8 | import SwiftUI
9 |
10 | struct ShimmerViewModifier: ViewModifier {
| `- note: add @available attribute to enclosing struct
11 | @EnvironmentObject private var motionManager: MotionManager
12 | @Environment(\.colorScheme) private var colorScheme
:
17 | let color: Color
18 | let background: Color
19 | let blendMode: BlendMode
| `- error: 'BlendMode' is only available in macOS 10.15 or newer
20 |
21 | init(mode: ShimmerMode? = nil, color: Color, blendMode: BlendMode? = nil) {
/Users/admin/builder/spi-builder-workspace/Sources/LookingGlassUI/ShimmerViewModifier.swift:21:43: error: 'Color' is only available in macOS 10.15 or newer
8 | import SwiftUI
9 |
10 | struct ShimmerViewModifier: ViewModifier {
| `- note: add @available attribute to enclosing struct
11 | @EnvironmentObject private var motionManager: MotionManager
12 | @Environment(\.colorScheme) private var colorScheme
:
19 | let blendMode: BlendMode
20 |
21 | init(mode: ShimmerMode? = nil, color: Color, blendMode: BlendMode? = nil) {
| | `- error: 'Color' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing initializer
22 | self.mode = mode ?? .on
23 | self.color = color
/Users/admin/builder/spi-builder-workspace/Sources/LookingGlassUI/ShimmerViewModifier.swift:21:61: error: 'BlendMode' is only available in macOS 10.15 or newer
8 | import SwiftUI
9 |
10 | struct ShimmerViewModifier: ViewModifier {
| `- note: add @available attribute to enclosing struct
11 | @EnvironmentObject private var motionManager: MotionManager
12 | @Environment(\.colorScheme) private var colorScheme
:
19 | let blendMode: BlendMode
20 |
21 | init(mode: ShimmerMode? = nil, color: Color, blendMode: BlendMode? = nil) {
| | `- error: 'BlendMode' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing initializer
22 | self.mode = mode ?? .on
23 | self.color = color
/Users/admin/builder/spi-builder-workspace/Sources/LookingGlassUI/ShimmerViewModifier.swift:28:43: error: 'Color' is only available in macOS 10.15 or newer
8 | import SwiftUI
9 |
10 | struct ShimmerViewModifier: ViewModifier {
| `- note: add @available attribute to enclosing struct
11 | @EnvironmentObject private var motionManager: MotionManager
12 | @Environment(\.colorScheme) private var colorScheme
:
26 | }
27 |
28 | init(mode: ShimmerMode? = nil, color: Color, background: Color) {
| | `- error: 'Color' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing initializer
29 | self.mode = mode ?? .on
30 | self.color = color
/Users/admin/builder/spi-builder-workspace/Sources/LookingGlassUI/ShimmerViewModifier.swift:28:62: error: 'Color' is only available in macOS 10.15 or newer
8 | import SwiftUI
9 |
10 | struct ShimmerViewModifier: ViewModifier {
| `- note: add @available attribute to enclosing struct
11 | @EnvironmentObject private var motionManager: MotionManager
12 | @Environment(\.colorScheme) private var colorScheme
:
26 | }
27 |
28 | init(mode: ShimmerMode? = nil, color: Color, background: Color) {
| | `- error: 'Color' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing initializer
29 | self.mode = mode ?? .on
30 | self.color = color
/Users/admin/builder/spi-builder-workspace/Sources/LookingGlassUI/ShimmerViewModifier.swift:40:41: error: 'View' is only available in macOS 10.15 or newer
8 | import SwiftUI
9 |
10 | struct ShimmerViewModifier: ViewModifier {
| `- note: add @available attribute to enclosing struct
11 | @EnvironmentObject private var motionManager: MotionManager
12 | @Environment(\.colorScheme) private var colorScheme
:
38 |
39 | @ViewBuilder
40 | func body(content: Content) -> some View {
| | `- error: 'View' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing instance method
41 | content
42 | .overlay(
/Users/admin/builder/spi-builder-workspace/Sources/LookingGlassUI/ShimmerViewModifier.swift:39:6: error: 'ViewBuilder' is only available in macOS 10.15 or newer
8 | import SwiftUI
9 |
10 | struct ShimmerViewModifier: ViewModifier {
| `- note: add @available attribute to enclosing struct
11 | @EnvironmentObject private var motionManager: MotionManager
12 | @Environment(\.colorScheme) private var colorScheme
:
37 | }
38 |
39 | @ViewBuilder
| `- error: 'ViewBuilder' is only available in macOS 10.15 or newer
40 | func body(content: Content) -> some View {
| `- note: add @available attribute to enclosing instance method
41 | content
42 | .overlay(
/Users/admin/builder/spi-builder-workspace/Sources/LookingGlassUI/ShimmerViewModifier.swift:70:51: error: 'Color' is only available in macOS 10.15 or newer
58 | }
59 |
60 | public extension View {
| `- note: add @available attribute to enclosing extension
61 | /// Add a shimmer effect with a background masked to this view.
62 | ///
:
68 | /// - background: Background color.
69 | /// - Returns: A shimmer effect with a background masked to this view.
70 | func shimmer(mode: ShimmerMode? = nil, color: Color, background: Color) -> some View {
| | `- error: 'Color' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing instance method
71 | self.modifier(ShimmerViewModifier(mode: mode, color: color, background: background))
72 | }
/Users/admin/builder/spi-builder-workspace/Sources/LookingGlassUI/ShimmerViewModifier.swift:70:70: error: 'Color' is only available in macOS 10.15 or newer
58 | }
59 |
60 | public extension View {
| `- note: add @available attribute to enclosing extension
61 | /// Add a shimmer effect with a background masked to this view.
62 | ///
:
68 | /// - background: Background color.
69 | /// - Returns: A shimmer effect with a background masked to this view.
70 | func shimmer(mode: ShimmerMode? = nil, color: Color, background: Color) -> some View {
| | `- error: 'Color' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing instance method
71 | self.modifier(ShimmerViewModifier(mode: mode, color: color, background: background))
72 | }
/Users/admin/builder/spi-builder-workspace/Sources/LookingGlassUI/ShimmerViewModifier.swift:70:85: error: 'View' is only available in macOS 10.15 or newer
58 | }
59 |
60 | public extension View {
| `- note: add @available attribute to enclosing extension
61 | /// Add a shimmer effect with a background masked to this view.
62 | ///
:
68 | /// - background: Background color.
69 | /// - Returns: A shimmer effect with a background masked to this view.
70 | func shimmer(mode: ShimmerMode? = nil, color: Color, background: Color) -> some View {
| | `- error: 'View' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing instance method
71 | self.modifier(ShimmerViewModifier(mode: mode, color: color, background: background))
72 | }
/Users/admin/builder/spi-builder-workspace/Sources/LookingGlassUI/ShimmerViewModifier.swift:83:37: error: 'Color' is only available in macOS 10.15 or newer
58 | }
59 |
60 | public extension View {
| `- note: add @available attribute to enclosing extension
61 | /// Add a shimmer effect with a background masked to this view.
62 | ///
:
81 | /// - background: Background color.
82 | /// - Returns: A shimmer effect with a background masked to this view.
83 | func shimmer(isOn: Bool, color: Color, background: Color) -> some View {
| | `- error: 'Color' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing instance method
84 | self.modifier(ShimmerViewModifier(mode: isOn ? .on : .off, color: color, background: background))
85 | }
/Users/admin/builder/spi-builder-workspace/Sources/LookingGlassUI/ShimmerViewModifier.swift:83:56: error: 'Color' is only available in macOS 10.15 or newer
58 | }
59 |
60 | public extension View {
| `- note: add @available attribute to enclosing extension
61 | /// Add a shimmer effect with a background masked to this view.
62 | ///
:
81 | /// - background: Background color.
82 | /// - Returns: A shimmer effect with a background masked to this view.
83 | func shimmer(isOn: Bool, color: Color, background: Color) -> some View {
| | `- error: 'Color' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing instance method
84 | self.modifier(ShimmerViewModifier(mode: isOn ? .on : .off, color: color, background: background))
85 | }
/Users/admin/builder/spi-builder-workspace/Sources/LookingGlassUI/ShimmerViewModifier.swift:83:71: error: 'View' is only available in macOS 10.15 or newer
58 | }
59 |
60 | public extension View {
| `- note: add @available attribute to enclosing extension
61 | /// Add a shimmer effect with a background masked to this view.
62 | ///
:
81 | /// - background: Background color.
82 | /// - Returns: A shimmer effect with a background masked to this view.
83 | func shimmer(isOn: Bool, color: Color, background: Color) -> some View {
| | `- error: 'View' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing instance method
84 | self.modifier(ShimmerViewModifier(mode: isOn ? .on : .off, color: color, background: background))
85 | }
/Users/admin/builder/spi-builder-workspace/Sources/LookingGlassUI/ShimmerViewModifier.swift:96:51: error: 'Color' is only available in macOS 10.15 or newer
58 | }
59 |
60 | public extension View {
| `- note: add @available attribute to enclosing extension
61 | /// Add a shimmer effect with a background masked to this view.
62 | ///
:
94 | /// - blendMode: How shimmer will blend with other views. (default: `.screen`)
95 | /// - Returns: A view with a shimmer effect overlayed that is masked by the same view
96 | func shimmer(mode: ShimmerMode? = nil, color: Color, blendMode: BlendMode? = nil) -> some View {
| | `- error: 'Color' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing instance method
97 | self.modifier(ShimmerViewModifier(mode: mode, color: color, blendMode: blendMode))
98 | }
/Users/admin/builder/spi-builder-workspace/Sources/LookingGlassUI/ShimmerViewModifier.swift:96:69: error: 'BlendMode' is only available in macOS 10.15 or newer
58 | }
59 |
60 | public extension View {
| `- note: add @available attribute to enclosing extension
61 | /// Add a shimmer effect with a background masked to this view.
62 | ///
:
94 | /// - blendMode: How shimmer will blend with other views. (default: `.screen`)
95 | /// - Returns: A view with a shimmer effect overlayed that is masked by the same view
96 | func shimmer(mode: ShimmerMode? = nil, color: Color, blendMode: BlendMode? = nil) -> some View {
| | `- error: 'BlendMode' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing instance method
97 | self.modifier(ShimmerViewModifier(mode: mode, color: color, blendMode: blendMode))
98 | }
/Users/admin/builder/spi-builder-workspace/Sources/LookingGlassUI/ShimmerViewModifier.swift:96:95: error: 'View' is only available in macOS 10.15 or newer
58 | }
59 |
60 | public extension View {
| `- note: add @available attribute to enclosing extension
61 | /// Add a shimmer effect with a background masked to this view.
62 | ///
:
94 | /// - blendMode: How shimmer will blend with other views. (default: `.screen`)
95 | /// - Returns: A view with a shimmer effect overlayed that is masked by the same view
96 | func shimmer(mode: ShimmerMode? = nil, color: Color, blendMode: BlendMode? = nil) -> some View {
| | `- error: 'View' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing instance method
97 | self.modifier(ShimmerViewModifier(mode: mode, color: color, blendMode: blendMode))
98 | }
/Users/admin/builder/spi-builder-workspace/Sources/LookingGlassUI/ShimmerViewModifier.swift:109:37: error: 'Color' is only available in macOS 10.15 or newer
58 | }
59 |
60 | public extension View {
| `- note: add @available attribute to enclosing extension
61 | /// Add a shimmer effect with a background masked to this view.
62 | ///
:
107 | /// - blendMode: How shimmer will blend with other views. (default: `.screen`)
108 | /// - Returns: A view with a shimmer effect overlayed that is masked by the same view
109 | func shimmer(isOn: Bool, color: Color, blendMode: BlendMode? = nil) -> some View {
| | `- error: 'Color' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing instance method
110 | self.modifier(ShimmerViewModifier(mode: isOn ? .on : .off, color: color, blendMode: blendMode))
111 | }
/Users/admin/builder/spi-builder-workspace/Sources/LookingGlassUI/ShimmerViewModifier.swift:109:55: error: 'BlendMode' is only available in macOS 10.15 or newer
58 | }
59 |
60 | public extension View {
| `- note: add @available attribute to enclosing extension
61 | /// Add a shimmer effect with a background masked to this view.
62 | ///
:
107 | /// - blendMode: How shimmer will blend with other views. (default: `.screen`)
108 | /// - Returns: A view with a shimmer effect overlayed that is masked by the same view
109 | func shimmer(isOn: Bool, color: Color, blendMode: BlendMode? = nil) -> some View {
| | `- error: 'BlendMode' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing instance method
110 | self.modifier(ShimmerViewModifier(mode: isOn ? .on : .off, color: color, blendMode: blendMode))
111 | }
/Users/admin/builder/spi-builder-workspace/Sources/LookingGlassUI/ShimmerViewModifier.swift:109:81: error: 'View' is only available in macOS 10.15 or newer
58 | }
59 |
60 | public extension View {
| `- note: add @available attribute to enclosing extension
61 | /// Add a shimmer effect with a background masked to this view.
62 | ///
:
107 | /// - blendMode: How shimmer will blend with other views. (default: `.screen`)
108 | /// - Returns: A view with a shimmer effect overlayed that is masked by the same view
109 | func shimmer(isOn: Bool, color: Color, blendMode: BlendMode? = nil) -> some View {
| | `- error: 'View' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing instance method
110 | self.modifier(ShimmerViewModifier(mode: isOn ? .on : .off, color: color, blendMode: blendMode))
111 | }
/Users/admin/builder/spi-builder-workspace/Sources/LookingGlassUI/ShimmerViewModifier.swift:60:18: error: 'View' is only available in macOS 10.15 or newer
58 | }
59 |
60 | public extension View {
| | `- error: 'View' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing extension
61 | /// Add a shimmer effect with a background masked to this view.
62 | ///
/Users/admin/builder/spi-builder-workspace/Sources/LookingGlassUI/ShimmerViewModifier.swift:24:28: error: 'clear' is only available in macOS 10.15 or newer
8 | import SwiftUI
9 |
10 | struct ShimmerViewModifier: ViewModifier {
| `- note: add @available attribute to enclosing struct
11 | @EnvironmentObject private var motionManager: MotionManager
12 | @Environment(\.colorScheme) private var colorScheme
:
19 | let blendMode: BlendMode
20 |
21 | init(mode: ShimmerMode? = nil, color: Color, blendMode: BlendMode? = nil) {
| `- note: add @available attribute to enclosing initializer
22 | self.mode = mode ?? .on
23 | self.color = color
24 | self.background = .clear
| |- error: 'clear' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
25 | self.blendMode = blendMode ?? .screen
26 | }
/Users/admin/builder/spi-builder-workspace/Sources/LookingGlassUI/ShimmerViewModifier.swift:42:14: error: 'overlay(_:alignment:)' is only available in macOS 10.15 or newer
8 | import SwiftUI
9 |
10 | struct ShimmerViewModifier: ViewModifier {
| `- note: add @available attribute to enclosing struct
11 | @EnvironmentObject private var motionManager: MotionManager
12 | @Environment(\.colorScheme) private var colorScheme
:
38 |
39 | @ViewBuilder
40 | func body(content: Content) -> some View {
| `- note: add @available attribute to enclosing instance method
41 | content
42 | .overlay(
| |- error: 'overlay(_:alignment:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
43 | VStack {
44 | if isShimmering {
/Users/admin/builder/spi-builder-workspace/Sources/LookingGlassUI/ShimmerViewModifier.swift:43:17: error: 'VStack' is only available in macOS 10.15 or newer
8 | import SwiftUI
9 |
10 | struct ShimmerViewModifier: ViewModifier {
| `- note: add @available attribute to enclosing struct
11 | @EnvironmentObject private var motionManager: MotionManager
12 | @Environment(\.colorScheme) private var colorScheme
:
38 |
39 | @ViewBuilder
40 | func body(content: Content) -> some View {
| `- note: add @available attribute to enclosing instance method
41 | content
42 | .overlay(
43 | VStack {
| |- error: 'VStack' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
44 | if isShimmering {
45 | content
/Users/admin/builder/spi-builder-workspace/Sources/LookingGlassUI/ShimmerViewModifier.swift:43:17: error: conformance of 'Optional<Wrapped>' to 'View' is only available in macOS 10.15 or newer
8 | import SwiftUI
9 |
10 | struct ShimmerViewModifier: ViewModifier {
| `- note: add @available attribute to enclosing struct
11 | @EnvironmentObject private var motionManager: MotionManager
12 | @Environment(\.colorScheme) private var colorScheme
:
38 |
39 | @ViewBuilder
40 | func body(content: Content) -> some View {
| `- note: add @available attribute to enclosing instance method
41 | content
42 | .overlay(
43 | VStack {
| |- error: conformance of 'Optional<Wrapped>' to 'View' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
44 | if isShimmering {
45 | content
/Users/admin/builder/spi-builder-workspace/Sources/LookingGlassUI/ShimmerViewModifier.swift:46:30: error: 'hidden()' is only available in macOS 10.15 or newer
8 | import SwiftUI
9 |
10 | struct ShimmerViewModifier: ViewModifier {
| `- note: add @available attribute to enclosing struct
11 | @EnvironmentObject private var motionManager: MotionManager
12 | @Environment(\.colorScheme) private var colorScheme
:
38 |
39 | @ViewBuilder
40 | func body(content: Content) -> some View {
| `- note: add @available attribute to enclosing instance method
41 | content
42 | .overlay(
:
44 | if isShimmering {
45 | content
46 | .hidden()
| |- error: 'hidden()' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
47 | .overlay(
48 | ShimmerView(color: color, background: background)
/Users/admin/builder/spi-builder-workspace/Sources/LookingGlassUI/ShimmerViewModifier.swift:47:30: error: 'overlay(_:alignment:)' is only available in macOS 10.15 or newer
8 | import SwiftUI
9 |
10 | struct ShimmerViewModifier: ViewModifier {
| `- note: add @available attribute to enclosing struct
11 | @EnvironmentObject private var motionManager: MotionManager
12 | @Environment(\.colorScheme) private var colorScheme
:
38 |
39 | @ViewBuilder
40 | func body(content: Content) -> some View {
| `- note: add @available attribute to enclosing instance method
41 | content
42 | .overlay(
:
45 | content
46 | .hidden()
47 | .overlay(
| |- error: 'overlay(_:alignment:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
48 | ShimmerView(color: color, background: background)
49 | )
/Users/admin/builder/spi-builder-workspace/Sources/LookingGlassUI/ShimmerViewModifier.swift:50:30: error: 'mask' is only available in macOS 10.15 or newer
8 | import SwiftUI
9 |
10 | struct ShimmerViewModifier: ViewModifier {
| `- note: add @available attribute to enclosing struct
11 | @EnvironmentObject private var motionManager: MotionManager
12 | @Environment(\.colorScheme) private var colorScheme
:
38 |
39 | @ViewBuilder
40 | func body(content: Content) -> some View {
| `- note: add @available attribute to enclosing instance method
41 | content
42 | .overlay(
:
48 | ShimmerView(color: color, background: background)
49 | )
50 | .mask(content)
| |- error: 'mask' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
51 | .blendMode(blendMode)
52 | .accessibilityHidden(true)
/Users/admin/builder/spi-builder-workspace/Sources/LookingGlassUI/ShimmerViewModifier.swift:51:30: error: 'blendMode' is only available in macOS 10.15 or newer
8 | import SwiftUI
9 |
10 | struct ShimmerViewModifier: ViewModifier {
| `- note: add @available attribute to enclosing struct
11 | @EnvironmentObject private var motionManager: MotionManager
12 | @Environment(\.colorScheme) private var colorScheme
:
38 |
39 | @ViewBuilder
40 | func body(content: Content) -> some View {
| `- note: add @available attribute to enclosing instance method
41 | content
42 | .overlay(
:
49 | )
50 | .mask(content)
51 | .blendMode(blendMode)
| |- error: 'blendMode' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
52 | .accessibilityHidden(true)
53 | .allowsHitTesting(false)
/Users/admin/builder/spi-builder-workspace/Sources/LookingGlassUI/ShimmerViewModifier.swift:52:30: error: 'accessibilityHidden' is only available in macOS 11.0 or newer
8 | import SwiftUI
9 |
10 | struct ShimmerViewModifier: ViewModifier {
| `- note: add @available attribute to enclosing struct
11 | @EnvironmentObject private var motionManager: MotionManager
12 | @Environment(\.colorScheme) private var colorScheme
:
38 |
39 | @ViewBuilder
40 | func body(content: Content) -> some View {
| `- note: add @available attribute to enclosing instance method
41 | content
42 | .overlay(
:
50 | .mask(content)
51 | .blendMode(blendMode)
52 | .accessibilityHidden(true)
| |- error: 'accessibilityHidden' is only available in macOS 11.0 or newer
| `- note: add 'if #available' version check
53 | .allowsHitTesting(false)
54 | }
/Users/admin/builder/spi-builder-workspace/Sources/LookingGlassUI/ShimmerViewModifier.swift:53:30: error: 'allowsHitTesting' is only available in macOS 10.15 or newer
8 | import SwiftUI
9 |
10 | struct ShimmerViewModifier: ViewModifier {
| `- note: add @available attribute to enclosing struct
11 | @EnvironmentObject private var motionManager: MotionManager
12 | @Environment(\.colorScheme) private var colorScheme
:
38 |
39 | @ViewBuilder
40 | func body(content: Content) -> some View {
| `- note: add @available attribute to enclosing instance method
41 | content
42 | .overlay(
:
51 | .blendMode(blendMode)
52 | .accessibilityHidden(true)
53 | .allowsHitTesting(false)
| |- error: 'allowsHitTesting' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
54 | }
55 | }
/Users/admin/builder/spi-builder-workspace/Sources/LookingGlassUI/ShimmerViewModifier.swift:44:37: error: 'buildIf' is only available in macOS 10.15 or newer
8 | import SwiftUI
9 |
10 | struct ShimmerViewModifier: ViewModifier {
| `- note: add @available attribute to enclosing struct
11 | @EnvironmentObject private var motionManager: MotionManager
12 | @Environment(\.colorScheme) private var colorScheme
:
38 |
39 | @ViewBuilder
40 | func body(content: Content) -> some View {
| `- note: add @available attribute to enclosing instance method
41 | content
42 | .overlay(
43 | VStack {
44 | if isShimmering {
| |- error: 'buildIf' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
45 | content
46 | .hidden()
/Users/admin/builder/spi-builder-workspace/Sources/LookingGlassUI/ShimmerViewModifier.swift:54:21: error: 'buildIf' is only available in macOS 10.15 or newer
8 | import SwiftUI
9 |
10 | struct ShimmerViewModifier: ViewModifier {
| `- note: add @available attribute to enclosing struct
11 | @EnvironmentObject private var motionManager: MotionManager
12 | @Environment(\.colorScheme) private var colorScheme
:
38 |
39 | @ViewBuilder
40 | func body(content: Content) -> some View {
| `- note: add @available attribute to enclosing instance method
41 | content
42 | .overlay(
:
52 | .accessibilityHidden(true)
53 | .allowsHitTesting(false)
54 | }
| |- error: 'buildIf' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
55 | }
56 | )
/Users/admin/builder/spi-builder-workspace/Sources/LookingGlassUI/ShimmerViewModifier.swift:43:24: error: conformance of 'Optional<Wrapped>' to 'View' is only available in macOS 10.15 or newer
8 | import SwiftUI
9 |
10 | struct ShimmerViewModifier: ViewModifier {
| `- note: add @available attribute to enclosing struct
11 | @EnvironmentObject private var motionManager: MotionManager
12 | @Environment(\.colorScheme) private var colorScheme
:
38 |
39 | @ViewBuilder
40 | func body(content: Content) -> some View {
| `- note: add @available attribute to enclosing instance method
41 | content
42 | .overlay(
43 | VStack {
| |- error: conformance of 'Optional<Wrapped>' to 'View' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
44 | if isShimmering {
45 | content
/Users/admin/builder/spi-builder-workspace/Sources/LookingGlassUI/ShimmerViewModifier.swift:71:14: error: conformance of 'ModifiedContent<Content, Modifier>' to 'View' is only available in macOS 10.15 or newer
58 | }
59 |
60 | public extension View {
| `- note: add @available attribute to enclosing extension
61 | /// Add a shimmer effect with a background masked to this view.
62 | ///
:
68 | /// - background: Background color.
69 | /// - Returns: A shimmer effect with a background masked to this view.
70 | func shimmer(mode: ShimmerMode? = nil, color: Color, background: Color) -> some View {
| `- note: add @available attribute to enclosing instance method
71 | self.modifier(ShimmerViewModifier(mode: mode, color: color, background: background))
| |- error: conformance of 'ModifiedContent<Content, Modifier>' to 'View' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
72 | }
73 |
/Users/admin/builder/spi-builder-workspace/Sources/LookingGlassUI/ShimmerViewModifier.swift:71:14: error: 'modifier' is only available in macOS 10.15 or newer
58 | }
59 |
60 | public extension View {
| `- note: add @available attribute to enclosing extension
61 | /// Add a shimmer effect with a background masked to this view.
62 | ///
:
68 | /// - background: Background color.
69 | /// - Returns: A shimmer effect with a background masked to this view.
70 | func shimmer(mode: ShimmerMode? = nil, color: Color, background: Color) -> some View {
| `- note: add @available attribute to enclosing instance method
71 | self.modifier(ShimmerViewModifier(mode: mode, color: color, background: background))
| |- error: 'modifier' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
72 | }
73 |
/Users/admin/builder/spi-builder-workspace/Sources/LookingGlassUI/ShimmerViewModifier.swift:84:14: error: conformance of 'ModifiedContent<Content, Modifier>' to 'View' is only available in macOS 10.15 or newer
58 | }
59 |
60 | public extension View {
| `- note: add @available attribute to enclosing extension
61 | /// Add a shimmer effect with a background masked to this view.
62 | ///
:
81 | /// - background: Background color.
82 | /// - Returns: A shimmer effect with a background masked to this view.
83 | func shimmer(isOn: Bool, color: Color, background: Color) -> some View {
| `- note: add @available attribute to enclosing instance method
84 | self.modifier(ShimmerViewModifier(mode: isOn ? .on : .off, color: color, background: background))
| |- error: conformance of 'ModifiedContent<Content, Modifier>' to 'View' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
85 | }
86 |
/Users/admin/builder/spi-builder-workspace/Sources/LookingGlassUI/ShimmerViewModifier.swift:84:14: error: 'modifier' is only available in macOS 10.15 or newer
58 | }
59 |
60 | public extension View {
| `- note: add @available attribute to enclosing extension
61 | /// Add a shimmer effect with a background masked to this view.
62 | ///
:
81 | /// - background: Background color.
82 | /// - Returns: A shimmer effect with a background masked to this view.
83 | func shimmer(isOn: Bool, color: Color, background: Color) -> some View {
| `- note: add @available attribute to enclosing instance method
84 | self.modifier(ShimmerViewModifier(mode: isOn ? .on : .off, color: color, background: background))
| |- error: 'modifier' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
85 | }
86 |
/Users/admin/builder/spi-builder-workspace/Sources/LookingGlassUI/ShimmerViewModifier.swift:97:14: error: conformance of 'ModifiedContent<Content, Modifier>' to 'View' is only available in macOS 10.15 or newer
58 | }
59 |
60 | public extension View {
| `- note: add @available attribute to enclosing extension
61 | /// Add a shimmer effect with a background masked to this view.
62 | ///
:
94 | /// - blendMode: How shimmer will blend with other views. (default: `.screen`)
95 | /// - Returns: A view with a shimmer effect overlayed that is masked by the same view
96 | func shimmer(mode: ShimmerMode? = nil, color: Color, blendMode: BlendMode? = nil) -> some View {
| `- note: add @available attribute to enclosing instance method
97 | self.modifier(ShimmerViewModifier(mode: mode, color: color, blendMode: blendMode))
| |- error: conformance of 'ModifiedContent<Content, Modifier>' to 'View' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
98 | }
99 |
/Users/admin/builder/spi-builder-workspace/Sources/LookingGlassUI/ShimmerViewModifier.swift:97:14: error: 'modifier' is only available in macOS 10.15 or newer
58 | }
59 |
60 | public extension View {
| `- note: add @available attribute to enclosing extension
61 | /// Add a shimmer effect with a background masked to this view.
62 | ///
:
94 | /// - blendMode: How shimmer will blend with other views. (default: `.screen`)
95 | /// - Returns: A view with a shimmer effect overlayed that is masked by the same view
96 | func shimmer(mode: ShimmerMode? = nil, color: Color, blendMode: BlendMode? = nil) -> some View {
| `- note: add @available attribute to enclosing instance method
97 | self.modifier(ShimmerViewModifier(mode: mode, color: color, blendMode: blendMode))
| |- error: 'modifier' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
98 | }
99 |
/Users/admin/builder/spi-builder-workspace/Sources/LookingGlassUI/ShimmerViewModifier.swift:110:14: error: conformance of 'ModifiedContent<Content, Modifier>' to 'View' is only available in macOS 10.15 or newer
58 | }
59 |
60 | public extension View {
| `- note: add @available attribute to enclosing extension
61 | /// Add a shimmer effect with a background masked to this view.
62 | ///
:
107 | /// - blendMode: How shimmer will blend with other views. (default: `.screen`)
108 | /// - Returns: A view with a shimmer effect overlayed that is masked by the same view
109 | func shimmer(isOn: Bool, color: Color, blendMode: BlendMode? = nil) -> some View {
| `- note: add @available attribute to enclosing instance method
110 | self.modifier(ShimmerViewModifier(mode: isOn ? .on : .off, color: color, blendMode: blendMode))
| |- error: conformance of 'ModifiedContent<Content, Modifier>' to 'View' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
111 | }
112 | }
/Users/admin/builder/spi-builder-workspace/Sources/LookingGlassUI/ShimmerViewModifier.swift:110:14: error: 'modifier' is only available in macOS 10.15 or newer
58 | }
59 |
60 | public extension View {
| `- note: add @available attribute to enclosing extension
61 | /// Add a shimmer effect with a background masked to this view.
62 | ///
:
107 | /// - blendMode: How shimmer will blend with other views. (default: `.screen`)
108 | /// - Returns: A view with a shimmer effect overlayed that is masked by the same view
109 | func shimmer(isOn: Bool, color: Color, blendMode: BlendMode? = nil) -> some View {
| `- note: add @available attribute to enclosing instance method
110 | self.modifier(ShimmerViewModifier(mode: isOn ? .on : .off, color: color, blendMode: blendMode))
| |- error: 'modifier' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
111 | }
112 | }
/Users/admin/builder/spi-builder-workspace/Sources/LookingGlassUI/_Extensions-Internal/UIDeviceOrientation-extension.swift:10:11: error: cannot find type 'UIDeviceOrientation' in scope
8 | import SwiftUI
9 |
10 | extension UIDeviceOrientation {
| `- error: cannot find type 'UIDeviceOrientation' in scope
11 | init?(key: String) {
12 | switch key {
[21/22] Compiling LookingGlassUI UIDeviceOrientation-extension.swift
/Users/admin/builder/spi-builder-workspace/Sources/LookingGlassUI/ShimmerViewModifier.swift:12:20: error: 'colorScheme' is only available in macOS 10.15 or newer
8 | import SwiftUI
9 |
10 | struct ShimmerViewModifier: ViewModifier {
| `- note: add @available attribute to enclosing struct
11 | @EnvironmentObject private var motionManager: MotionManager
12 | @Environment(\.colorScheme) private var colorScheme
| `- error: 'colorScheme' is only available in macOS 10.15 or newer
13 |
14 | @Namespace private var namespace
/Users/admin/builder/spi-builder-workspace/Sources/LookingGlassUI/ShimmerViewModifier.swift:11:6: error: 'EnvironmentObject' is only available in macOS 10.15 or newer
8 | import SwiftUI
9 |
10 | struct ShimmerViewModifier: ViewModifier {
| `- note: add @available attribute to enclosing struct
11 | @EnvironmentObject private var motionManager: MotionManager
| `- error: 'EnvironmentObject' is only available in macOS 10.15 or newer
12 | @Environment(\.colorScheme) private var colorScheme
13 |
/Users/admin/builder/spi-builder-workspace/Sources/LookingGlassUI/ShimmerViewModifier.swift:12:6: error: 'Environment' is only available in macOS 10.15 or newer
8 | import SwiftUI
9 |
10 | struct ShimmerViewModifier: ViewModifier {
| `- note: add @available attribute to enclosing struct
11 | @EnvironmentObject private var motionManager: MotionManager
12 | @Environment(\.colorScheme) private var colorScheme
| `- error: 'Environment' is only available in macOS 10.15 or newer
13 |
14 | @Namespace private var namespace
/Users/admin/builder/spi-builder-workspace/Sources/LookingGlassUI/ShimmerViewModifier.swift:14:6: error: 'Namespace' is only available in macOS 11.0 or newer
8 | import SwiftUI
9 |
10 | struct ShimmerViewModifier: ViewModifier {
| `- note: add @available attribute to enclosing struct
11 | @EnvironmentObject private var motionManager: MotionManager
12 | @Environment(\.colorScheme) private var colorScheme
13 |
14 | @Namespace private var namespace
| `- error: 'Namespace' is only available in macOS 11.0 or newer
15 |
16 | let mode: ShimmerMode
/Users/admin/builder/spi-builder-workspace/Sources/LookingGlassUI/ShimmerViewModifier.swift:17:16: error: 'Color' is only available in macOS 10.15 or newer
8 | import SwiftUI
9 |
10 | struct ShimmerViewModifier: ViewModifier {
| `- note: add @available attribute to enclosing struct
11 | @EnvironmentObject private var motionManager: MotionManager
12 | @Environment(\.colorScheme) private var colorScheme
:
15 |
16 | let mode: ShimmerMode
17 | let color: Color
| `- error: 'Color' is only available in macOS 10.15 or newer
18 | let background: Color
19 | let blendMode: BlendMode
/Users/admin/builder/spi-builder-workspace/Sources/LookingGlassUI/ShimmerViewModifier.swift:18:21: error: 'Color' is only available in macOS 10.15 or newer
8 | import SwiftUI
9 |
10 | struct ShimmerViewModifier: ViewModifier {
| `- note: add @available attribute to enclosing struct
11 | @EnvironmentObject private var motionManager: MotionManager
12 | @Environment(\.colorScheme) private var colorScheme
:
16 | let mode: ShimmerMode
17 | let color: Color
18 | let background: Color
| `- error: 'Color' is only available in macOS 10.15 or newer
19 | let blendMode: BlendMode
20 |
/Users/admin/builder/spi-builder-workspace/Sources/LookingGlassUI/ShimmerViewModifier.swift:19:20: error: 'BlendMode' is only available in macOS 10.15 or newer
8 | import SwiftUI
9 |
10 | struct ShimmerViewModifier: ViewModifier {
| `- note: add @available attribute to enclosing struct
11 | @EnvironmentObject private var motionManager: MotionManager
12 | @Environment(\.colorScheme) private var colorScheme
:
17 | let color: Color
18 | let background: Color
19 | let blendMode: BlendMode
| `- error: 'BlendMode' is only available in macOS 10.15 or newer
20 |
21 | init(mode: ShimmerMode? = nil, color: Color, blendMode: BlendMode? = nil) {
/Users/admin/builder/spi-builder-workspace/Sources/LookingGlassUI/ShimmerViewModifier.swift:21:43: error: 'Color' is only available in macOS 10.15 or newer
8 | import SwiftUI
9 |
10 | struct ShimmerViewModifier: ViewModifier {
| `- note: add @available attribute to enclosing struct
11 | @EnvironmentObject private var motionManager: MotionManager
12 | @Environment(\.colorScheme) private var colorScheme
:
19 | let blendMode: BlendMode
20 |
21 | init(mode: ShimmerMode? = nil, color: Color, blendMode: BlendMode? = nil) {
| | `- error: 'Color' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing initializer
22 | self.mode = mode ?? .on
23 | self.color = color
/Users/admin/builder/spi-builder-workspace/Sources/LookingGlassUI/ShimmerViewModifier.swift:21:61: error: 'BlendMode' is only available in macOS 10.15 or newer
8 | import SwiftUI
9 |
10 | struct ShimmerViewModifier: ViewModifier {
| `- note: add @available attribute to enclosing struct
11 | @EnvironmentObject private var motionManager: MotionManager
12 | @Environment(\.colorScheme) private var colorScheme
:
19 | let blendMode: BlendMode
20 |
21 | init(mode: ShimmerMode? = nil, color: Color, blendMode: BlendMode? = nil) {
| | `- error: 'BlendMode' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing initializer
22 | self.mode = mode ?? .on
23 | self.color = color
/Users/admin/builder/spi-builder-workspace/Sources/LookingGlassUI/ShimmerViewModifier.swift:28:43: error: 'Color' is only available in macOS 10.15 or newer
8 | import SwiftUI
9 |
10 | struct ShimmerViewModifier: ViewModifier {
| `- note: add @available attribute to enclosing struct
11 | @EnvironmentObject private var motionManager: MotionManager
12 | @Environment(\.colorScheme) private var colorScheme
:
26 | }
27 |
28 | init(mode: ShimmerMode? = nil, color: Color, background: Color) {
| | `- error: 'Color' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing initializer
29 | self.mode = mode ?? .on
30 | self.color = color
/Users/admin/builder/spi-builder-workspace/Sources/LookingGlassUI/ShimmerViewModifier.swift:28:62: error: 'Color' is only available in macOS 10.15 or newer
8 | import SwiftUI
9 |
10 | struct ShimmerViewModifier: ViewModifier {
| `- note: add @available attribute to enclosing struct
11 | @EnvironmentObject private var motionManager: MotionManager
12 | @Environment(\.colorScheme) private var colorScheme
:
26 | }
27 |
28 | init(mode: ShimmerMode? = nil, color: Color, background: Color) {
| | `- error: 'Color' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing initializer
29 | self.mode = mode ?? .on
30 | self.color = color
/Users/admin/builder/spi-builder-workspace/Sources/LookingGlassUI/ShimmerViewModifier.swift:40:41: error: 'View' is only available in macOS 10.15 or newer
8 | import SwiftUI
9 |
10 | struct ShimmerViewModifier: ViewModifier {
| `- note: add @available attribute to enclosing struct
11 | @EnvironmentObject private var motionManager: MotionManager
12 | @Environment(\.colorScheme) private var colorScheme
:
38 |
39 | @ViewBuilder
40 | func body(content: Content) -> some View {
| | `- error: 'View' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing instance method
41 | content
42 | .overlay(
/Users/admin/builder/spi-builder-workspace/Sources/LookingGlassUI/ShimmerViewModifier.swift:39:6: error: 'ViewBuilder' is only available in macOS 10.15 or newer
8 | import SwiftUI
9 |
10 | struct ShimmerViewModifier: ViewModifier {
| `- note: add @available attribute to enclosing struct
11 | @EnvironmentObject private var motionManager: MotionManager
12 | @Environment(\.colorScheme) private var colorScheme
:
37 | }
38 |
39 | @ViewBuilder
| `- error: 'ViewBuilder' is only available in macOS 10.15 or newer
40 | func body(content: Content) -> some View {
| `- note: add @available attribute to enclosing instance method
41 | content
42 | .overlay(
/Users/admin/builder/spi-builder-workspace/Sources/LookingGlassUI/ShimmerViewModifier.swift:70:51: error: 'Color' is only available in macOS 10.15 or newer
58 | }
59 |
60 | public extension View {
| `- note: add @available attribute to enclosing extension
61 | /// Add a shimmer effect with a background masked to this view.
62 | ///
:
68 | /// - background: Background color.
69 | /// - Returns: A shimmer effect with a background masked to this view.
70 | func shimmer(mode: ShimmerMode? = nil, color: Color, background: Color) -> some View {
| | `- error: 'Color' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing instance method
71 | self.modifier(ShimmerViewModifier(mode: mode, color: color, background: background))
72 | }
/Users/admin/builder/spi-builder-workspace/Sources/LookingGlassUI/ShimmerViewModifier.swift:70:70: error: 'Color' is only available in macOS 10.15 or newer
58 | }
59 |
60 | public extension View {
| `- note: add @available attribute to enclosing extension
61 | /// Add a shimmer effect with a background masked to this view.
62 | ///
:
68 | /// - background: Background color.
69 | /// - Returns: A shimmer effect with a background masked to this view.
70 | func shimmer(mode: ShimmerMode? = nil, color: Color, background: Color) -> some View {
| | `- error: 'Color' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing instance method
71 | self.modifier(ShimmerViewModifier(mode: mode, color: color, background: background))
72 | }
/Users/admin/builder/spi-builder-workspace/Sources/LookingGlassUI/ShimmerViewModifier.swift:70:85: error: 'View' is only available in macOS 10.15 or newer
58 | }
59 |
60 | public extension View {
| `- note: add @available attribute to enclosing extension
61 | /// Add a shimmer effect with a background masked to this view.
62 | ///
:
68 | /// - background: Background color.
69 | /// - Returns: A shimmer effect with a background masked to this view.
70 | func shimmer(mode: ShimmerMode? = nil, color: Color, background: Color) -> some View {
| | `- error: 'View' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing instance method
71 | self.modifier(ShimmerViewModifier(mode: mode, color: color, background: background))
72 | }
/Users/admin/builder/spi-builder-workspace/Sources/LookingGlassUI/ShimmerViewModifier.swift:83:37: error: 'Color' is only available in macOS 10.15 or newer
58 | }
59 |
60 | public extension View {
| `- note: add @available attribute to enclosing extension
61 | /// Add a shimmer effect with a background masked to this view.
62 | ///
:
81 | /// - background: Background color.
82 | /// - Returns: A shimmer effect with a background masked to this view.
83 | func shimmer(isOn: Bool, color: Color, background: Color) -> some View {
| | `- error: 'Color' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing instance method
84 | self.modifier(ShimmerViewModifier(mode: isOn ? .on : .off, color: color, background: background))
85 | }
/Users/admin/builder/spi-builder-workspace/Sources/LookingGlassUI/ShimmerViewModifier.swift:83:56: error: 'Color' is only available in macOS 10.15 or newer
58 | }
59 |
60 | public extension View {
| `- note: add @available attribute to enclosing extension
61 | /// Add a shimmer effect with a background masked to this view.
62 | ///
:
81 | /// - background: Background color.
82 | /// - Returns: A shimmer effect with a background masked to this view.
83 | func shimmer(isOn: Bool, color: Color, background: Color) -> some View {
| | `- error: 'Color' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing instance method
84 | self.modifier(ShimmerViewModifier(mode: isOn ? .on : .off, color: color, background: background))
85 | }
/Users/admin/builder/spi-builder-workspace/Sources/LookingGlassUI/ShimmerViewModifier.swift:83:71: error: 'View' is only available in macOS 10.15 or newer
58 | }
59 |
60 | public extension View {
| `- note: add @available attribute to enclosing extension
61 | /// Add a shimmer effect with a background masked to this view.
62 | ///
:
81 | /// - background: Background color.
82 | /// - Returns: A shimmer effect with a background masked to this view.
83 | func shimmer(isOn: Bool, color: Color, background: Color) -> some View {
| | `- error: 'View' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing instance method
84 | self.modifier(ShimmerViewModifier(mode: isOn ? .on : .off, color: color, background: background))
85 | }
/Users/admin/builder/spi-builder-workspace/Sources/LookingGlassUI/ShimmerViewModifier.swift:96:51: error: 'Color' is only available in macOS 10.15 or newer
58 | }
59 |
60 | public extension View {
| `- note: add @available attribute to enclosing extension
61 | /// Add a shimmer effect with a background masked to this view.
62 | ///
:
94 | /// - blendMode: How shimmer will blend with other views. (default: `.screen`)
95 | /// - Returns: A view with a shimmer effect overlayed that is masked by the same view
96 | func shimmer(mode: ShimmerMode? = nil, color: Color, blendMode: BlendMode? = nil) -> some View {
| | `- error: 'Color' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing instance method
97 | self.modifier(ShimmerViewModifier(mode: mode, color: color, blendMode: blendMode))
98 | }
/Users/admin/builder/spi-builder-workspace/Sources/LookingGlassUI/ShimmerViewModifier.swift:96:69: error: 'BlendMode' is only available in macOS 10.15 or newer
58 | }
59 |
60 | public extension View {
| `- note: add @available attribute to enclosing extension
61 | /// Add a shimmer effect with a background masked to this view.
62 | ///
:
94 | /// - blendMode: How shimmer will blend with other views. (default: `.screen`)
95 | /// - Returns: A view with a shimmer effect overlayed that is masked by the same view
96 | func shimmer(mode: ShimmerMode? = nil, color: Color, blendMode: BlendMode? = nil) -> some View {
| | `- error: 'BlendMode' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing instance method
97 | self.modifier(ShimmerViewModifier(mode: mode, color: color, blendMode: blendMode))
98 | }
/Users/admin/builder/spi-builder-workspace/Sources/LookingGlassUI/ShimmerViewModifier.swift:96:95: error: 'View' is only available in macOS 10.15 or newer
58 | }
59 |
60 | public extension View {
| `- note: add @available attribute to enclosing extension
61 | /// Add a shimmer effect with a background masked to this view.
62 | ///
:
94 | /// - blendMode: How shimmer will blend with other views. (default: `.screen`)
95 | /// - Returns: A view with a shimmer effect overlayed that is masked by the same view
96 | func shimmer(mode: ShimmerMode? = nil, color: Color, blendMode: BlendMode? = nil) -> some View {
| | `- error: 'View' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing instance method
97 | self.modifier(ShimmerViewModifier(mode: mode, color: color, blendMode: blendMode))
98 | }
/Users/admin/builder/spi-builder-workspace/Sources/LookingGlassUI/ShimmerViewModifier.swift:109:37: error: 'Color' is only available in macOS 10.15 or newer
58 | }
59 |
60 | public extension View {
| `- note: add @available attribute to enclosing extension
61 | /// Add a shimmer effect with a background masked to this view.
62 | ///
:
107 | /// - blendMode: How shimmer will blend with other views. (default: `.screen`)
108 | /// - Returns: A view with a shimmer effect overlayed that is masked by the same view
109 | func shimmer(isOn: Bool, color: Color, blendMode: BlendMode? = nil) -> some View {
| | `- error: 'Color' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing instance method
110 | self.modifier(ShimmerViewModifier(mode: isOn ? .on : .off, color: color, blendMode: blendMode))
111 | }
/Users/admin/builder/spi-builder-workspace/Sources/LookingGlassUI/ShimmerViewModifier.swift:109:55: error: 'BlendMode' is only available in macOS 10.15 or newer
58 | }
59 |
60 | public extension View {
| `- note: add @available attribute to enclosing extension
61 | /// Add a shimmer effect with a background masked to this view.
62 | ///
:
107 | /// - blendMode: How shimmer will blend with other views. (default: `.screen`)
108 | /// - Returns: A view with a shimmer effect overlayed that is masked by the same view
109 | func shimmer(isOn: Bool, color: Color, blendMode: BlendMode? = nil) -> some View {
| | `- error: 'BlendMode' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing instance method
110 | self.modifier(ShimmerViewModifier(mode: isOn ? .on : .off, color: color, blendMode: blendMode))
111 | }
/Users/admin/builder/spi-builder-workspace/Sources/LookingGlassUI/ShimmerViewModifier.swift:109:81: error: 'View' is only available in macOS 10.15 or newer
58 | }
59 |
60 | public extension View {
| `- note: add @available attribute to enclosing extension
61 | /// Add a shimmer effect with a background masked to this view.
62 | ///
:
107 | /// - blendMode: How shimmer will blend with other views. (default: `.screen`)
108 | /// - Returns: A view with a shimmer effect overlayed that is masked by the same view
109 | func shimmer(isOn: Bool, color: Color, blendMode: BlendMode? = nil) -> some View {
| | `- error: 'View' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing instance method
110 | self.modifier(ShimmerViewModifier(mode: isOn ? .on : .off, color: color, blendMode: blendMode))
111 | }
/Users/admin/builder/spi-builder-workspace/Sources/LookingGlassUI/ShimmerViewModifier.swift:60:18: error: 'View' is only available in macOS 10.15 or newer
58 | }
59 |
60 | public extension View {
| | `- error: 'View' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing extension
61 | /// Add a shimmer effect with a background masked to this view.
62 | ///
/Users/admin/builder/spi-builder-workspace/Sources/LookingGlassUI/ShimmerViewModifier.swift:24:28: error: 'clear' is only available in macOS 10.15 or newer
8 | import SwiftUI
9 |
10 | struct ShimmerViewModifier: ViewModifier {
| `- note: add @available attribute to enclosing struct
11 | @EnvironmentObject private var motionManager: MotionManager
12 | @Environment(\.colorScheme) private var colorScheme
:
19 | let blendMode: BlendMode
20 |
21 | init(mode: ShimmerMode? = nil, color: Color, blendMode: BlendMode? = nil) {
| `- note: add @available attribute to enclosing initializer
22 | self.mode = mode ?? .on
23 | self.color = color
24 | self.background = .clear
| |- error: 'clear' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
25 | self.blendMode = blendMode ?? .screen
26 | }
/Users/admin/builder/spi-builder-workspace/Sources/LookingGlassUI/ShimmerViewModifier.swift:42:14: error: 'overlay(_:alignment:)' is only available in macOS 10.15 or newer
8 | import SwiftUI
9 |
10 | struct ShimmerViewModifier: ViewModifier {
| `- note: add @available attribute to enclosing struct
11 | @EnvironmentObject private var motionManager: MotionManager
12 | @Environment(\.colorScheme) private var colorScheme
:
38 |
39 | @ViewBuilder
40 | func body(content: Content) -> some View {
| `- note: add @available attribute to enclosing instance method
41 | content
42 | .overlay(
| |- error: 'overlay(_:alignment:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
43 | VStack {
44 | if isShimmering {
/Users/admin/builder/spi-builder-workspace/Sources/LookingGlassUI/ShimmerViewModifier.swift:43:17: error: 'VStack' is only available in macOS 10.15 or newer
8 | import SwiftUI
9 |
10 | struct ShimmerViewModifier: ViewModifier {
| `- note: add @available attribute to enclosing struct
11 | @EnvironmentObject private var motionManager: MotionManager
12 | @Environment(\.colorScheme) private var colorScheme
:
38 |
39 | @ViewBuilder
40 | func body(content: Content) -> some View {
| `- note: add @available attribute to enclosing instance method
41 | content
42 | .overlay(
43 | VStack {
| |- error: 'VStack' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
44 | if isShimmering {
45 | content
/Users/admin/builder/spi-builder-workspace/Sources/LookingGlassUI/ShimmerViewModifier.swift:43:17: error: conformance of 'Optional<Wrapped>' to 'View' is only available in macOS 10.15 or newer
8 | import SwiftUI
9 |
10 | struct ShimmerViewModifier: ViewModifier {
| `- note: add @available attribute to enclosing struct
11 | @EnvironmentObject private var motionManager: MotionManager
12 | @Environment(\.colorScheme) private var colorScheme
:
38 |
39 | @ViewBuilder
40 | func body(content: Content) -> some View {
| `- note: add @available attribute to enclosing instance method
41 | content
42 | .overlay(
43 | VStack {
| |- error: conformance of 'Optional<Wrapped>' to 'View' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
44 | if isShimmering {
45 | content
/Users/admin/builder/spi-builder-workspace/Sources/LookingGlassUI/ShimmerViewModifier.swift:46:30: error: 'hidden()' is only available in macOS 10.15 or newer
8 | import SwiftUI
9 |
10 | struct ShimmerViewModifier: ViewModifier {
| `- note: add @available attribute to enclosing struct
11 | @EnvironmentObject private var motionManager: MotionManager
12 | @Environment(\.colorScheme) private var colorScheme
:
38 |
39 | @ViewBuilder
40 | func body(content: Content) -> some View {
| `- note: add @available attribute to enclosing instance method
41 | content
42 | .overlay(
:
44 | if isShimmering {
45 | content
46 | .hidden()
| |- error: 'hidden()' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
47 | .overlay(
48 | ShimmerView(color: color, background: background)
/Users/admin/builder/spi-builder-workspace/Sources/LookingGlassUI/ShimmerViewModifier.swift:47:30: error: 'overlay(_:alignment:)' is only available in macOS 10.15 or newer
8 | import SwiftUI
9 |
10 | struct ShimmerViewModifier: ViewModifier {
| `- note: add @available attribute to enclosing struct
11 | @EnvironmentObject private var motionManager: MotionManager
12 | @Environment(\.colorScheme) private var colorScheme
:
38 |
39 | @ViewBuilder
40 | func body(content: Content) -> some View {
| `- note: add @available attribute to enclosing instance method
41 | content
42 | .overlay(
:
45 | content
46 | .hidden()
47 | .overlay(
| |- error: 'overlay(_:alignment:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
48 | ShimmerView(color: color, background: background)
49 | )
/Users/admin/builder/spi-builder-workspace/Sources/LookingGlassUI/ShimmerViewModifier.swift:50:30: error: 'mask' is only available in macOS 10.15 or newer
8 | import SwiftUI
9 |
10 | struct ShimmerViewModifier: ViewModifier {
| `- note: add @available attribute to enclosing struct
11 | @EnvironmentObject private var motionManager: MotionManager
12 | @Environment(\.colorScheme) private var colorScheme
:
38 |
39 | @ViewBuilder
40 | func body(content: Content) -> some View {
| `- note: add @available attribute to enclosing instance method
41 | content
42 | .overlay(
:
48 | ShimmerView(color: color, background: background)
49 | )
50 | .mask(content)
| |- error: 'mask' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
51 | .blendMode(blendMode)
52 | .accessibilityHidden(true)
/Users/admin/builder/spi-builder-workspace/Sources/LookingGlassUI/ShimmerViewModifier.swift:51:30: error: 'blendMode' is only available in macOS 10.15 or newer
8 | import SwiftUI
9 |
10 | struct ShimmerViewModifier: ViewModifier {
| `- note: add @available attribute to enclosing struct
11 | @EnvironmentObject private var motionManager: MotionManager
12 | @Environment(\.colorScheme) private var colorScheme
:
38 |
39 | @ViewBuilder
40 | func body(content: Content) -> some View {
| `- note: add @available attribute to enclosing instance method
41 | content
42 | .overlay(
:
49 | )
50 | .mask(content)
51 | .blendMode(blendMode)
| |- error: 'blendMode' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
52 | .accessibilityHidden(true)
53 | .allowsHitTesting(false)
/Users/admin/builder/spi-builder-workspace/Sources/LookingGlassUI/ShimmerViewModifier.swift:52:30: error: 'accessibilityHidden' is only available in macOS 11.0 or newer
8 | import SwiftUI
9 |
10 | struct ShimmerViewModifier: ViewModifier {
| `- note: add @available attribute to enclosing struct
11 | @EnvironmentObject private var motionManager: MotionManager
12 | @Environment(\.colorScheme) private var colorScheme
:
38 |
39 | @ViewBuilder
40 | func body(content: Content) -> some View {
| `- note: add @available attribute to enclosing instance method
41 | content
42 | .overlay(
:
50 | .mask(content)
51 | .blendMode(blendMode)
52 | .accessibilityHidden(true)
| |- error: 'accessibilityHidden' is only available in macOS 11.0 or newer
| `- note: add 'if #available' version check
53 | .allowsHitTesting(false)
54 | }
/Users/admin/builder/spi-builder-workspace/Sources/LookingGlassUI/ShimmerViewModifier.swift:53:30: error: 'allowsHitTesting' is only available in macOS 10.15 or newer
8 | import SwiftUI
9 |
10 | struct ShimmerViewModifier: ViewModifier {
| `- note: add @available attribute to enclosing struct
11 | @EnvironmentObject private var motionManager: MotionManager
12 | @Environment(\.colorScheme) private var colorScheme
:
38 |
39 | @ViewBuilder
40 | func body(content: Content) -> some View {
| `- note: add @available attribute to enclosing instance method
41 | content
42 | .overlay(
:
51 | .blendMode(blendMode)
52 | .accessibilityHidden(true)
53 | .allowsHitTesting(false)
| |- error: 'allowsHitTesting' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
54 | }
55 | }
/Users/admin/builder/spi-builder-workspace/Sources/LookingGlassUI/ShimmerViewModifier.swift:44:37: error: 'buildIf' is only available in macOS 10.15 or newer
8 | import SwiftUI
9 |
10 | struct ShimmerViewModifier: ViewModifier {
| `- note: add @available attribute to enclosing struct
11 | @EnvironmentObject private var motionManager: MotionManager
12 | @Environment(\.colorScheme) private var colorScheme
:
38 |
39 | @ViewBuilder
40 | func body(content: Content) -> some View {
| `- note: add @available attribute to enclosing instance method
41 | content
42 | .overlay(
43 | VStack {
44 | if isShimmering {
| |- error: 'buildIf' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
45 | content
46 | .hidden()
/Users/admin/builder/spi-builder-workspace/Sources/LookingGlassUI/ShimmerViewModifier.swift:54:21: error: 'buildIf' is only available in macOS 10.15 or newer
8 | import SwiftUI
9 |
10 | struct ShimmerViewModifier: ViewModifier {
| `- note: add @available attribute to enclosing struct
11 | @EnvironmentObject private var motionManager: MotionManager
12 | @Environment(\.colorScheme) private var colorScheme
:
38 |
39 | @ViewBuilder
40 | func body(content: Content) -> some View {
| `- note: add @available attribute to enclosing instance method
41 | content
42 | .overlay(
:
52 | .accessibilityHidden(true)
53 | .allowsHitTesting(false)
54 | }
| |- error: 'buildIf' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
55 | }
56 | )
/Users/admin/builder/spi-builder-workspace/Sources/LookingGlassUI/ShimmerViewModifier.swift:43:24: error: conformance of 'Optional<Wrapped>' to 'View' is only available in macOS 10.15 or newer
8 | import SwiftUI
9 |
10 | struct ShimmerViewModifier: ViewModifier {
| `- note: add @available attribute to enclosing struct
11 | @EnvironmentObject private var motionManager: MotionManager
12 | @Environment(\.colorScheme) private var colorScheme
:
38 |
39 | @ViewBuilder
40 | func body(content: Content) -> some View {
| `- note: add @available attribute to enclosing instance method
41 | content
42 | .overlay(
43 | VStack {
| |- error: conformance of 'Optional<Wrapped>' to 'View' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
44 | if isShimmering {
45 | content
/Users/admin/builder/spi-builder-workspace/Sources/LookingGlassUI/ShimmerViewModifier.swift:71:14: error: conformance of 'ModifiedContent<Content, Modifier>' to 'View' is only available in macOS 10.15 or newer
58 | }
59 |
60 | public extension View {
| `- note: add @available attribute to enclosing extension
61 | /// Add a shimmer effect with a background masked to this view.
62 | ///
:
68 | /// - background: Background color.
69 | /// - Returns: A shimmer effect with a background masked to this view.
70 | func shimmer(mode: ShimmerMode? = nil, color: Color, background: Color) -> some View {
| `- note: add @available attribute to enclosing instance method
71 | self.modifier(ShimmerViewModifier(mode: mode, color: color, background: background))
| |- error: conformance of 'ModifiedContent<Content, Modifier>' to 'View' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
72 | }
73 |
/Users/admin/builder/spi-builder-workspace/Sources/LookingGlassUI/ShimmerViewModifier.swift:71:14: error: 'modifier' is only available in macOS 10.15 or newer
58 | }
59 |
60 | public extension View {
| `- note: add @available attribute to enclosing extension
61 | /// Add a shimmer effect with a background masked to this view.
62 | ///
:
68 | /// - background: Background color.
69 | /// - Returns: A shimmer effect with a background masked to this view.
70 | func shimmer(mode: ShimmerMode? = nil, color: Color, background: Color) -> some View {
| `- note: add @available attribute to enclosing instance method
71 | self.modifier(ShimmerViewModifier(mode: mode, color: color, background: background))
| |- error: 'modifier' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
72 | }
73 |
/Users/admin/builder/spi-builder-workspace/Sources/LookingGlassUI/ShimmerViewModifier.swift:84:14: error: conformance of 'ModifiedContent<Content, Modifier>' to 'View' is only available in macOS 10.15 or newer
58 | }
59 |
60 | public extension View {
| `- note: add @available attribute to enclosing extension
61 | /// Add a shimmer effect with a background masked to this view.
62 | ///
:
81 | /// - background: Background color.
82 | /// - Returns: A shimmer effect with a background masked to this view.
83 | func shimmer(isOn: Bool, color: Color, background: Color) -> some View {
| `- note: add @available attribute to enclosing instance method
84 | self.modifier(ShimmerViewModifier(mode: isOn ? .on : .off, color: color, background: background))
| |- error: conformance of 'ModifiedContent<Content, Modifier>' to 'View' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
85 | }
86 |
/Users/admin/builder/spi-builder-workspace/Sources/LookingGlassUI/ShimmerViewModifier.swift:84:14: error: 'modifier' is only available in macOS 10.15 or newer
58 | }
59 |
60 | public extension View {
| `- note: add @available attribute to enclosing extension
61 | /// Add a shimmer effect with a background masked to this view.
62 | ///
:
81 | /// - background: Background color.
82 | /// - Returns: A shimmer effect with a background masked to this view.
83 | func shimmer(isOn: Bool, color: Color, background: Color) -> some View {
| `- note: add @available attribute to enclosing instance method
84 | self.modifier(ShimmerViewModifier(mode: isOn ? .on : .off, color: color, background: background))
| |- error: 'modifier' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
85 | }
86 |
/Users/admin/builder/spi-builder-workspace/Sources/LookingGlassUI/ShimmerViewModifier.swift:97:14: error: conformance of 'ModifiedContent<Content, Modifier>' to 'View' is only available in macOS 10.15 or newer
58 | }
59 |
60 | public extension View {
| `- note: add @available attribute to enclosing extension
61 | /// Add a shimmer effect with a background masked to this view.
62 | ///
:
94 | /// - blendMode: How shimmer will blend with other views. (default: `.screen`)
95 | /// - Returns: A view with a shimmer effect overlayed that is masked by the same view
96 | func shimmer(mode: ShimmerMode? = nil, color: Color, blendMode: BlendMode? = nil) -> some View {
| `- note: add @available attribute to enclosing instance method
97 | self.modifier(ShimmerViewModifier(mode: mode, color: color, blendMode: blendMode))
| |- error: conformance of 'ModifiedContent<Content, Modifier>' to 'View' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
98 | }
99 |
/Users/admin/builder/spi-builder-workspace/Sources/LookingGlassUI/ShimmerViewModifier.swift:97:14: error: 'modifier' is only available in macOS 10.15 or newer
58 | }
59 |
60 | public extension View {
| `- note: add @available attribute to enclosing extension
61 | /// Add a shimmer effect with a background masked to this view.
62 | ///
:
94 | /// - blendMode: How shimmer will blend with other views. (default: `.screen`)
95 | /// - Returns: A view with a shimmer effect overlayed that is masked by the same view
96 | func shimmer(mode: ShimmerMode? = nil, color: Color, blendMode: BlendMode? = nil) -> some View {
| `- note: add @available attribute to enclosing instance method
97 | self.modifier(ShimmerViewModifier(mode: mode, color: color, blendMode: blendMode))
| |- error: 'modifier' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
98 | }
99 |
/Users/admin/builder/spi-builder-workspace/Sources/LookingGlassUI/ShimmerViewModifier.swift:110:14: error: conformance of 'ModifiedContent<Content, Modifier>' to 'View' is only available in macOS 10.15 or newer
58 | }
59 |
60 | public extension View {
| `- note: add @available attribute to enclosing extension
61 | /// Add a shimmer effect with a background masked to this view.
62 | ///
:
107 | /// - blendMode: How shimmer will blend with other views. (default: `.screen`)
108 | /// - Returns: A view with a shimmer effect overlayed that is masked by the same view
109 | func shimmer(isOn: Bool, color: Color, blendMode: BlendMode? = nil) -> some View {
| `- note: add @available attribute to enclosing instance method
110 | self.modifier(ShimmerViewModifier(mode: isOn ? .on : .off, color: color, blendMode: blendMode))
| |- error: conformance of 'ModifiedContent<Content, Modifier>' to 'View' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
111 | }
112 | }
/Users/admin/builder/spi-builder-workspace/Sources/LookingGlassUI/ShimmerViewModifier.swift:110:14: error: 'modifier' is only available in macOS 10.15 or newer
58 | }
59 |
60 | public extension View {
| `- note: add @available attribute to enclosing extension
61 | /// Add a shimmer effect with a background masked to this view.
62 | ///
:
107 | /// - blendMode: How shimmer will blend with other views. (default: `.screen`)
108 | /// - Returns: A view with a shimmer effect overlayed that is masked by the same view
109 | func shimmer(isOn: Bool, color: Color, blendMode: BlendMode? = nil) -> some View {
| `- note: add @available attribute to enclosing instance method
110 | self.modifier(ShimmerViewModifier(mode: isOn ? .on : .off, color: color, blendMode: blendMode))
| |- error: 'modifier' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
111 | }
112 | }
/Users/admin/builder/spi-builder-workspace/Sources/LookingGlassUI/_Extensions-Internal/UIDeviceOrientation-extension.swift:10:11: error: cannot find type 'UIDeviceOrientation' in scope
8 | import SwiftUI
9 |
10 | extension UIDeviceOrientation {
| `- error: cannot find type 'UIDeviceOrientation' in scope
11 | init?(key: String) {
12 | switch key {
[22/22] Compiling LookingGlassUI resource_bundle_accessor.swift
BUILD FAILURE 6.2 macosSpm