Build Information
Failed to build LookingGlassUI, reference 0.4.2 (9e3dd1
), with Swift 6.1 for macOS (SPM) on 29 Apr 2025 14:59:43 UTC.
Build Command
env DEVELOPER_DIR=/Applications/Xcode-16.3.0.app xcrun swift build --arch arm64
Build Log
76 | _ type: DeviceRotationEffectType,
77 | distance: CGFloat,
:
79 | pitch: Angle? = nil,
80 | yaw: Angle? = nil,
81 | localRoll: Angle? = nil,
| `- error: 'Angle' is only available in macOS 10.15 or newer
82 | isShowingInFourDirections: Bool? = nil,
83 | content: () -> Content
/Users/admin/builder/spi-builder-workspace/Sources/LookingGlassUI/LookingGlass.swift:95:27: error: 'View' is only available in macOS 10.15 or newer
16 | ///
17 | /// - Requires: ``motionManager(updateInterval:disabled:)`` must be added only once in your app somewhere above this view in the heirarchy.
18 | public struct LookingGlass<Content: View>: View {
| `- note: add @available attribute to enclosing generic struct
19 | @EnvironmentObject var motionManager: MotionManager
20 |
:
93 | }
94 |
95 | public var body: some View {
| | `- error: 'View' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing property
96 | if motionManager.isDetectingMotion {
97 | GeometryReader { proxy in
/Users/admin/builder/spi-builder-workspace/Sources/LookingGlassUI/LookingGlass.swift:18:37: error: 'View' is only available in macOS 10.15 or newer
16 | ///
17 | /// - Requires: ``motionManager(updateInterval:disabled:)`` must be added only once in your app somewhere above this view in the heirarchy.
18 | public struct LookingGlass<Content: View>: View {
| | `- error: 'View' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing generic struct
19 | @EnvironmentObject var motionManager: MotionManager
20 |
/Users/admin/builder/spi-builder-workspace/Sources/LookingGlassUI/MotionManager.swift:29:59: error: cannot find type 'UIDeviceOrientation' in scope
27 | @Published public private(set) var disabled: Bool = false
28 |
29 | @Published public private(set) var deviceOrientation: UIDeviceOrientation = .unknown
| `- error: cannot find type 'UIDeviceOrientation' in scope
30 |
31 | /// Rotation of device relative to zero position. Value is updated with SwiftUI animation to smooth between update intervals.
/Users/admin/builder/spi-builder-workspace/Sources/LookingGlassUI/MotionManager.swift:19:29: error: cannot find 'UIScreen' in scope
17 |
18 | static let motionQueue = OperationQueue()
19 | static let screenSize = UIScreen.main.bounds.size
| `- error: cannot find 'UIScreen' in scope
20 | static let maxScreenDimension = max(MotionManager.screenSize.height, MotionManager.screenSize.width)
21 |
/Users/admin/builder/spi-builder-workspace/Sources/LookingGlassUI/MotionManager.swift:22:29: error: 'CMMotionManager' is unavailable in macOS
20 | static let maxScreenDimension = max(MotionManager.screenSize.height, MotionManager.screenSize.width)
21 |
22 | private let cmManager = CMMotionManager()
| `- error: 'CMMotionManager' is unavailable in macOS
23 |
24 | // set to 0 for off
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.4.sdk/System/Library/Frameworks/CoreMotion.framework/Headers/CMMotionManager.h:90:12: note: 'CMMotionManager' has been explicitly marked unavailable here
88 | */
89 | COREMOTION_EXPORT API_AVAILABLE(ios(4.0)) API_UNAVAILABLE(macos)
90 | @interface CMMotionManager : NSObject
| `- note: 'CMMotionManager' has been explicitly marked unavailable here
91 | {
92 | @private
/Users/admin/builder/spi-builder-workspace/Sources/LookingGlassUI/MotionManager.swift:25:6: error: 'Published' is only available in macOS 10.15 or newer
10 |
11 | @MainActor
12 | public class MotionManager: ObservableObject {
| `- note: add @available attribute to enclosing class
13 | /// Only one shared MotionManager should be used in an app
14 | static let shared = MotionManager()
:
23 |
24 | // set to 0 for off
25 | @Published public private(set) var updateInterval: TimeInterval = 0
| `- error: 'Published' is only available in macOS 10.15 or newer
26 |
27 | @Published public private(set) var disabled: Bool = false
/Users/admin/builder/spi-builder-workspace/Sources/LookingGlassUI/MotionManager.swift:27:6: error: 'Published' is only available in macOS 10.15 or newer
10 |
11 | @MainActor
12 | public class MotionManager: ObservableObject {
| `- note: add @available attribute to enclosing class
13 | /// Only one shared MotionManager should be used in an app
14 | static let shared = MotionManager()
:
25 | @Published public private(set) var updateInterval: TimeInterval = 0
26 |
27 | @Published public private(set) var disabled: Bool = false
| `- error: 'Published' is only available in macOS 10.15 or newer
28 |
29 | @Published public private(set) var deviceOrientation: UIDeviceOrientation = .unknown
/Users/admin/builder/spi-builder-workspace/Sources/LookingGlassUI/MotionManager.swift:29:6: error: 'Published' is only available in macOS 10.15 or newer
10 |
11 | @MainActor
12 | public class MotionManager: ObservableObject {
| `- note: add @available attribute to enclosing class
13 | /// Only one shared MotionManager should be used in an app
14 | static let shared = MotionManager()
:
27 | @Published public private(set) var disabled: Bool = false
28 |
29 | @Published public private(set) var deviceOrientation: UIDeviceOrientation = .unknown
| `- error: 'Published' is only available in macOS 10.15 or newer
30 |
31 | /// Rotation of device relative to zero position. Value is updated with SwiftUI animation to smooth between update intervals.
/Users/admin/builder/spi-builder-workspace/Sources/LookingGlassUI/MotionManager.swift:32:6: error: 'Published' is only available in macOS 10.15 or newer
10 |
11 | @MainActor
12 | public class MotionManager: ObservableObject {
| `- note: add @available attribute to enclosing class
13 | /// Only one shared MotionManager should be used in an app
14 | static let shared = MotionManager()
:
30 |
31 | /// Rotation of device relative to zero position. Value is updated with SwiftUI animation to smooth between update intervals.
32 | @Published public private(set) var animatedQuaternion: Quat = .identity
| `- error: 'Published' is only available in macOS 10.15 or newer
33 |
34 | /// Rotation of device relative to zero position. Value is updated based on update intervals without animation or smoothing.
/Users/admin/builder/spi-builder-workspace/Sources/LookingGlassUI/MotionManager.swift:35:6: error: 'Published' is only available in macOS 10.15 or newer
10 |
11 | @MainActor
12 | public class MotionManager: ObservableObject {
| `- note: add @available attribute to enclosing class
13 | /// Only one shared MotionManager should be used in an app
14 | static let shared = MotionManager()
:
33 |
34 | /// Rotation of device relative to zero position. Value is updated based on update intervals without animation or smoothing.
35 | @Published public private(set) var quaternion: Quat = .identity
| `- error: 'Published' is only available in macOS 10.15 or newer
36 |
37 | /// Rotation from zero to initial position of device when motion updates started.
/Users/admin/builder/spi-builder-workspace/Sources/LookingGlassUI/MotionManager.swift:40:6: error: 'Published' is only available in macOS 10.15 or newer
10 |
11 | @MainActor
12 | public class MotionManager: ObservableObject {
| `- note: add @available attribute to enclosing class
13 | /// Only one shared MotionManager should be used in an app
14 | static let shared = MotionManager()
:
38 | ///
39 | /// This value is reset whenever motion manager is re-enabled.
40 | @Published public private(set) var initialDeviceRotation: Quat? = nil
| `- error: 'Published' is only available in macOS 10.15 or newer
41 |
42 | /// Rotation from initial device rotation to current.
/Users/admin/builder/spi-builder-workspace/Sources/LookingGlassUI/MotionManager.swift:12:29: error: 'ObservableObject' is only available in macOS 10.15 or newer
10 |
11 | @MainActor
12 | public class MotionManager: ObservableObject {
| | `- error: 'ObservableObject' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing class
13 | /// Only one shared MotionManager should be used in an app
14 | static let shared = MotionManager()
/Users/admin/builder/spi-builder-workspace/Sources/LookingGlassUI/MotionManager.swift:187:31: error: 'View' is only available in macOS 10.15 or newer
184 | }
185 |
186 | struct MotionManager_Previews: PreviewProvider {
| `- note: add @available attribute to enclosing struct
187 | static var previews: some View {
| | `- error: 'View' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing static property
188 | Color.blue
189 | .motionManager(updateInterval: 0)
/Users/admin/builder/spi-builder-workspace/Sources/LookingGlassUI/MotionManagerViewModifier.swift:11:6: error: 'ObservedObject' is only available in macOS 10.15 or newer
8 | import SwiftUI
9 |
10 | struct MotionManagerViewModifier: ViewModifier {
| `- note: add @available attribute to enclosing struct
11 | @ObservedObject var motionManager = MotionManager.shared
| `- error: 'ObservedObject' is only available in macOS 10.15 or newer
12 |
13 | let updateInterval: TimeInterval
/Users/admin/builder/spi-builder-workspace/Sources/LookingGlassUI/MotionManagerViewModifier.swift:16:41: error: 'View' is only available in macOS 10.15 or newer
8 | import SwiftUI
9 |
10 | struct MotionManagerViewModifier: ViewModifier {
| `- note: add @available attribute to enclosing struct
11 | @ObservedObject var motionManager = MotionManager.shared
12 |
:
14 | let disabled: Bool
15 |
16 | 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
17 | content
18 | .environmentObject(motionManager)
/Users/admin/builder/spi-builder-workspace/Sources/LookingGlassUI/MotionManagerViewModifier.swift:52:92: error: 'View' is only available in macOS 10.15 or newer
41 | }
42 |
43 | public extension View {
| `- note: add @available attribute to enclosing extension
44 | /// Adds ``MotionManager`` into the environment.
45 | /// - Adjusts for landscape/portrait changes to device orientation.
:
50 | /// - disabled: Used to temporarily disable updates.
51 | /// - Returns: View with ``MotionManager`` in the environment
52 | func motionManager(updateInterval: TimeInterval = 0.1, disabled: Bool = false) -> some View {
| | `- error: 'View' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing instance method
53 | self.modifier(MotionManagerViewModifier(updateInterval: updateInterval, disabled: disabled))
54 | }
/Users/admin/builder/spi-builder-workspace/Sources/LookingGlassUI/MotionManagerViewModifier.swift:43:18: error: 'View' is only available in macOS 10.15 or newer
41 | }
42 |
43 | public extension View {
| | `- error: 'View' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing extension
44 | /// Adds ``MotionManager`` into the environment.
45 | /// - Adjusts for landscape/portrait changes to device orientation.
/Users/admin/builder/spi-builder-workspace/Sources/LookingGlassUI/ParallaxView.swift:11:6: error: 'EnvironmentObject' is only available in macOS 10.15 or newer
8 | import SwiftUI
9 |
10 | struct ParallaxViewModifier: ViewModifier {
| `- note: add @available attribute to enclosing struct
11 | @EnvironmentObject var motionManager: MotionManager
| `- error: 'EnvironmentObject' is only available in macOS 10.15 or newer
12 |
13 | let multiplier: CGFloat
/Users/admin/builder/spi-builder-workspace/Sources/LookingGlassUI/ParallaxView.swift:37:41: error: 'View' is only available in macOS 10.15 or newer
8 | import SwiftUI
9 |
10 | struct ParallaxViewModifier: ViewModifier {
| `- note: add @available attribute to enclosing struct
11 | @EnvironmentObject var motionManager: MotionManager
12 |
:
35 | }
36 |
37 | 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
38 | content
39 | .offset(parallaxOffset)
/Users/admin/builder/spi-builder-workspace/Sources/LookingGlassUI/ParallaxView.swift:52:80: error: 'View' is only available in macOS 10.15 or newer
41 | }
42 |
43 | public extension View {
| `- note: add @available attribute to enclosing extension
44 | /// Moves the view to create a parallax effect based on device orientation.
45 | ///
:
50 | /// - maxOffset: Clamps the movement to a maximum distance in x and y directions..
51 | /// - Returns: The view moved to create a parallax effect based on device orientation.
52 | func parallax(multiplier: CGFloat = 50, maxOffset: CGFloat? = nil) -> some View {
| | `- error: 'View' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing instance method
53 | modifier(ParallaxViewModifier(multiplier: multiplier, maxOffset: maxOffset))
54 | }
/Users/admin/builder/spi-builder-workspace/Sources/LookingGlassUI/ParallaxView.swift:43:18: error: 'View' is only available in macOS 10.15 or newer
41 | }
42 |
43 | public extension View {
| | `- error: 'View' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing extension
44 | /// Moves the view to create a parallax effect based on device orientation.
45 | ///
/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/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/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/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/_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 {
/Users/admin/builder/spi-builder-workspace/Sources/LookingGlassUI/_Extensions-Public/View+rotation3DEffect.swift:12:60: error: 'UnitPoint' 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 {
| `- error: 'UnitPoint' is only available in macOS 10.15 or newer
13 | rotation3DEffect(quaternion: quaternion, anchor: anchor, anchorZ: anchorZ, perspective: perspective)
14 | }
/Users/admin/builder/spi-builder-workspace/Sources/LookingGlassUI/_Extensions-Public/View+rotation3DEffect.swift:12:119: error: 'View' 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 {
| `- error: 'View' is only available in macOS 10.15 or newer
13 | rotation3DEffect(quaternion: quaternion, anchor: anchor, anchorZ: anchorZ, perspective: perspective)
14 | }
/Users/admin/builder/spi-builder-workspace/Sources/LookingGlassUI/_Extensions-Public/View+rotation3DEffect.swift:23:60: error: 'UnitPoint' 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 {
| | `- error: 'UnitPoint' 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:23:119: error: 'View' 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 {
| | `- 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 {
[14/20] Compiling LookingGlassUI DeviceRotationEffectViewModifier.swift
/Users/admin/builder/spi-builder-workspace/Sources/LookingGlassUI/DeviceRotationEffectViewModifier.swift:28:6: error: 'EnvironmentObject' is only available in macOS 10.15 or newer
25 | }
26 |
27 | struct DeviceRotationEffectViewModifier: ViewModifier {
| `- note: add @available attribute to enclosing struct
28 | @EnvironmentObject var motionManager: MotionManager
| `- error: 'EnvironmentObject' is only available in macOS 10.15 or newer
29 |
30 | let distance: CGFloat
/Users/admin/builder/spi-builder-workspace/Sources/LookingGlassUI/DeviceRotationEffectViewModifier.swift:94:41: error: 'View' is only available in macOS 10.15 or newer
25 | }
26 |
27 | struct DeviceRotationEffectViewModifier: ViewModifier {
| `- note: add @available attribute to enclosing struct
28 | @EnvironmentObject var motionManager: MotionManager
29 |
:
92 | }
93 |
94 | 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
95 | if motionManager.isDetectingMotion {
96 | content
/Users/admin/builder/spi-builder-workspace/Sources/LookingGlassUI/DeviceRotationEffectViewModifier.swift:120:15: error: 'View' is only available in macOS 10.15 or newer
100 | }
101 |
102 | public extension View {
| `- note: add @available attribute to enclosing extension
103 | /// Position a view on a sphere centered on the device and rotated using real world coordinates. This view will rotate to compensate for device rotation and appear to be seen either through a window or as a kind of reflection.
104 | ///
:
112 | /// - isShowingInFourDirections: If active the view will be rotated around the Z axis at 90 degree intervals to always face the direction the device is pointing.
113 | /// - Returns: The view is positioned centered on the device and rotated using real world coordinates. It will rotate to compensate for device rotation and appear to be seen either through a window or as a kind of reflection.
114 | func deviceRotationEffect(
| `- note: add @available attribute to enclosing instance method
115 | _ type: DeviceRotationEffectType,
116 | distance: CGFloat? = nil,
:
118 | offsetRotation: Quat? = nil,
119 | isShowingInFourDirections: Bool? = nil
120 | ) -> some View {
| `- error: 'View' is only available in macOS 10.15 or newer
121 | self.modifier(
122 | DeviceRotationEffectViewModifier(
/Users/admin/builder/spi-builder-workspace/Sources/LookingGlassUI/DeviceRotationEffectViewModifier.swift:149:16: error: 'Angle' is only available in macOS 10.15 or newer
100 | }
101 |
102 | public extension View {
| `- note: add @available attribute to enclosing extension
103 | /// Position a view on a sphere centered on the device and rotated using real world coordinates. This view will rotate to compensate for device rotation and appear to be seen either through a window or as a kind of reflection.
104 | ///
:
143 | /// - isShowingInFourDirections: If active the view will be rotated around the Z axis at 90 degree intervals to always face the direction the device is pointing.
144 | /// - Returns: The view is positioned centered on the device and rotated using real world coordinates. It will rotate to compensate for device rotation and appear to be seen either through a window or as a kind of reflection.
145 | func deviceRotationEffect(
| `- note: add @available attribute to enclosing instance method
146 | _ type: DeviceRotationEffectType,
147 | distance: CGFloat? = nil,
148 | perspective: CGFloat? = nil,
149 | pitch: Angle? = nil,
| `- error: 'Angle' is only available in macOS 10.15 or newer
150 | yaw: Angle? = nil,
151 | localRoll: Angle? = nil,
/Users/admin/builder/spi-builder-workspace/Sources/LookingGlassUI/DeviceRotationEffectViewModifier.swift:150:14: error: 'Angle' is only available in macOS 10.15 or newer
100 | }
101 |
102 | public extension View {
| `- note: add @available attribute to enclosing extension
103 | /// Position a view on a sphere centered on the device and rotated using real world coordinates. This view will rotate to compensate for device rotation and appear to be seen either through a window or as a kind of reflection.
104 | ///
:
143 | /// - isShowingInFourDirections: If active the view will be rotated around the Z axis at 90 degree intervals to always face the direction the device is pointing.
144 | /// - Returns: The view is positioned centered on the device and rotated using real world coordinates. It will rotate to compensate for device rotation and appear to be seen either through a window or as a kind of reflection.
145 | func deviceRotationEffect(
| `- note: add @available attribute to enclosing instance method
146 | _ type: DeviceRotationEffectType,
147 | distance: CGFloat? = nil,
148 | perspective: CGFloat? = nil,
149 | pitch: Angle? = nil,
150 | yaw: Angle? = nil,
| `- error: 'Angle' is only available in macOS 10.15 or newer
151 | localRoll: Angle? = nil,
152 | isShowingInFourDirections: Bool? = nil
/Users/admin/builder/spi-builder-workspace/Sources/LookingGlassUI/DeviceRotationEffectViewModifier.swift:151:20: error: 'Angle' is only available in macOS 10.15 or newer
100 | }
101 |
102 | public extension View {
| `- note: add @available attribute to enclosing extension
103 | /// Position a view on a sphere centered on the device and rotated using real world coordinates. This view will rotate to compensate for device rotation and appear to be seen either through a window or as a kind of reflection.
104 | ///
:
143 | /// - isShowingInFourDirections: If active the view will be rotated around the Z axis at 90 degree intervals to always face the direction the device is pointing.
144 | /// - Returns: The view is positioned centered on the device and rotated using real world coordinates. It will rotate to compensate for device rotation and appear to be seen either through a window or as a kind of reflection.
145 | func deviceRotationEffect(
| `- note: add @available attribute to enclosing instance method
146 | _ type: DeviceRotationEffectType,
147 | distance: CGFloat? = nil,
:
149 | pitch: Angle? = nil,
150 | yaw: Angle? = nil,
151 | localRoll: Angle? = nil,
| `- error: 'Angle' is only available in macOS 10.15 or newer
152 | isShowingInFourDirections: Bool? = nil
153 | ) -> some View {
/Users/admin/builder/spi-builder-workspace/Sources/LookingGlassUI/DeviceRotationEffectViewModifier.swift:153:15: error: 'View' is only available in macOS 10.15 or newer
100 | }
101 |
102 | public extension View {
| `- note: add @available attribute to enclosing extension
103 | /// Position a view on a sphere centered on the device and rotated using real world coordinates. This view will rotate to compensate for device rotation and appear to be seen either through a window or as a kind of reflection.
104 | ///
:
143 | /// - isShowingInFourDirections: If active the view will be rotated around the Z axis at 90 degree intervals to always face the direction the device is pointing.
144 | /// - Returns: The view is positioned centered on the device and rotated using real world coordinates. It will rotate to compensate for device rotation and appear to be seen either through a window or as a kind of reflection.
145 | func deviceRotationEffect(
| `- note: add @available attribute to enclosing instance method
146 | _ type: DeviceRotationEffectType,
147 | distance: CGFloat? = nil,
:
151 | localRoll: Angle? = nil,
152 | isShowingInFourDirections: Bool? = nil
153 | ) -> some View {
| `- error: 'View' is only available in macOS 10.15 or newer
154 | deviceRotationEffect(
155 | type,
/Users/admin/builder/spi-builder-workspace/Sources/LookingGlassUI/DeviceRotationEffectViewModifier.swift:102:18: error: 'View' is only available in macOS 10.15 or newer
100 | }
101 |
102 | public extension View {
| | `- error: 'View' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing extension
103 | /// Position a view on a sphere centered on the device and rotated using real world coordinates. This view will rotate to compensate for device rotation and appear to be seen either through a window or as a kind of reflection.
104 | ///
/Users/admin/builder/spi-builder-workspace/Sources/LookingGlassUI/DeviceRotationEffectViewModifier.swift:95:44: error: 'buildIf' is only available in macOS 10.15 or newer
25 | }
26 |
27 | struct DeviceRotationEffectViewModifier: ViewModifier {
| `- note: add @available attribute to enclosing struct
28 | @EnvironmentObject var motionManager: MotionManager
29 |
:
92 | }
93 |
94 | func body(content: Content) -> some View {
| `- note: add @available attribute to enclosing instance method
95 | if motionManager.isDetectingMotion {
| |- error: 'buildIf' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
96 | content
97 | .rotation3DEffect(quaternion: rotation, anchor: .center, anchorZ: distance, perspective: perspective)
/Users/admin/builder/spi-builder-workspace/Sources/LookingGlassUI/DeviceRotationEffectViewModifier.swift:98:9: error: 'buildIf' is only available in macOS 10.15 or newer
25 | }
26 |
27 | struct DeviceRotationEffectViewModifier: ViewModifier {
| `- note: add @available attribute to enclosing struct
28 | @EnvironmentObject var motionManager: MotionManager
29 |
:
92 | }
93 |
94 | func body(content: Content) -> some View {
| `- note: add @available attribute to enclosing instance method
95 | if motionManager.isDetectingMotion {
96 | content
97 | .rotation3DEffect(quaternion: rotation, anchor: .center, anchorZ: distance, perspective: perspective)
98 | }
| |- error: 'buildIf' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
99 | }
100 | }
/Users/admin/builder/spi-builder-workspace/Sources/LookingGlassUI/DeviceRotationEffectViewModifier.swift:94:46: error: conformance of 'Optional<Wrapped>' to 'View' is only available in macOS 10.15 or newer
25 | }
26 |
27 | struct DeviceRotationEffectViewModifier: ViewModifier {
| `- note: add @available attribute to enclosing struct
28 | @EnvironmentObject var motionManager: MotionManager
29 |
:
92 | }
93 |
94 | func body(content: Content) -> some View {
| | |- error: conformance of 'Optional<Wrapped>' to 'View' is only available in macOS 10.15 or newer
| | `- note: add 'if #available' version check
| `- note: add @available attribute to enclosing instance method
95 | if motionManager.isDetectingMotion {
96 | content
/Users/admin/builder/spi-builder-workspace/Sources/LookingGlassUI/DeviceRotationEffectViewModifier.swift:121:14: error: conformance of 'ModifiedContent<Content, Modifier>' to 'View' is only available in macOS 10.15 or newer
100 | }
101 |
102 | public extension View {
| `- note: add @available attribute to enclosing extension
103 | /// Position a view on a sphere centered on the device and rotated using real world coordinates. This view will rotate to compensate for device rotation and appear to be seen either through a window or as a kind of reflection.
104 | ///
:
112 | /// - isShowingInFourDirections: If active the view will be rotated around the Z axis at 90 degree intervals to always face the direction the device is pointing.
113 | /// - Returns: The view is positioned centered on the device and rotated using real world coordinates. It will rotate to compensate for device rotation and appear to be seen either through a window or as a kind of reflection.
114 | func deviceRotationEffect(
| `- note: add @available attribute to enclosing instance method
115 | _ type: DeviceRotationEffectType,
116 | distance: CGFloat? = nil,
:
119 | isShowingInFourDirections: Bool? = nil
120 | ) -> some View {
121 | self.modifier(
| |- error: conformance of 'ModifiedContent<Content, Modifier>' to 'View' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
122 | DeviceRotationEffectViewModifier(
123 | type: type,
/Users/admin/builder/spi-builder-workspace/Sources/LookingGlassUI/DeviceRotationEffectViewModifier.swift:121:14: error: 'modifier' is only available in macOS 10.15 or newer
100 | }
101 |
102 | public extension View {
| `- note: add @available attribute to enclosing extension
103 | /// Position a view on a sphere centered on the device and rotated using real world coordinates. This view will rotate to compensate for device rotation and appear to be seen either through a window or as a kind of reflection.
104 | ///
:
112 | /// - isShowingInFourDirections: If active the view will be rotated around the Z axis at 90 degree intervals to always face the direction the device is pointing.
113 | /// - Returns: The view is positioned centered on the device and rotated using real world coordinates. It will rotate to compensate for device rotation and appear to be seen either through a window or as a kind of reflection.
114 | func deviceRotationEffect(
| `- note: add @available attribute to enclosing instance method
115 | _ type: DeviceRotationEffectType,
116 | distance: CGFloat? = nil,
:
119 | isShowingInFourDirections: Bool? = nil
120 | ) -> some View {
121 | self.modifier(
| |- error: 'modifier' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
122 | DeviceRotationEffectViewModifier(
123 | type: type,
/Users/admin/builder/spi-builder-workspace/Sources/LookingGlassUI/EmptyShape.swift:14:35: error: 'Path' is only available in macOS 10.15 or newer
9 |
10 | /// An empty shape used in the `contentShape()` modifier to create an empty content shape. This is useful for visible view that you don't want effecting accessibility frames.
11 | struct EmptyShape: InsettableShape {
| `- note: add @available attribute to enclosing struct
12 | init() { }
13 |
14 | func path(in rect: CGRect) -> Path {
| | `- error: 'Path' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing instance method
15 | Path()
16 | }
/Users/admin/builder/spi-builder-workspace/Sources/LookingGlassUI/EmptyShape.swift:15:9: error: 'Path' is only available in macOS 10.15 or newer
9 |
10 | /// An empty shape used in the `contentShape()` modifier to create an empty content shape. This is useful for visible view that you don't want effecting accessibility frames.
11 | struct EmptyShape: InsettableShape {
| `- note: add @available attribute to enclosing struct
12 | init() { }
13 |
14 | func path(in rect: CGRect) -> Path {
| `- note: add @available attribute to enclosing instance method
15 | Path()
| |- error: 'Path' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
16 | }
17 |
[15/20] Compiling LookingGlassUI EmptyShape.swift
/Users/admin/builder/spi-builder-workspace/Sources/LookingGlassUI/DeviceRotationEffectViewModifier.swift:28:6: error: 'EnvironmentObject' is only available in macOS 10.15 or newer
25 | }
26 |
27 | struct DeviceRotationEffectViewModifier: ViewModifier {
| `- note: add @available attribute to enclosing struct
28 | @EnvironmentObject var motionManager: MotionManager
| `- error: 'EnvironmentObject' is only available in macOS 10.15 or newer
29 |
30 | let distance: CGFloat
/Users/admin/builder/spi-builder-workspace/Sources/LookingGlassUI/DeviceRotationEffectViewModifier.swift:94:41: error: 'View' is only available in macOS 10.15 or newer
25 | }
26 |
27 | struct DeviceRotationEffectViewModifier: ViewModifier {
| `- note: add @available attribute to enclosing struct
28 | @EnvironmentObject var motionManager: MotionManager
29 |
:
92 | }
93 |
94 | 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
95 | if motionManager.isDetectingMotion {
96 | content
/Users/admin/builder/spi-builder-workspace/Sources/LookingGlassUI/DeviceRotationEffectViewModifier.swift:120:15: error: 'View' is only available in macOS 10.15 or newer
100 | }
101 |
102 | public extension View {
| `- note: add @available attribute to enclosing extension
103 | /// Position a view on a sphere centered on the device and rotated using real world coordinates. This view will rotate to compensate for device rotation and appear to be seen either through a window or as a kind of reflection.
104 | ///
:
112 | /// - isShowingInFourDirections: If active the view will be rotated around the Z axis at 90 degree intervals to always face the direction the device is pointing.
113 | /// - Returns: The view is positioned centered on the device and rotated using real world coordinates. It will rotate to compensate for device rotation and appear to be seen either through a window or as a kind of reflection.
114 | func deviceRotationEffect(
| `- note: add @available attribute to enclosing instance method
115 | _ type: DeviceRotationEffectType,
116 | distance: CGFloat? = nil,
:
118 | offsetRotation: Quat? = nil,
119 | isShowingInFourDirections: Bool? = nil
120 | ) -> some View {
| `- error: 'View' is only available in macOS 10.15 or newer
121 | self.modifier(
122 | DeviceRotationEffectViewModifier(
/Users/admin/builder/spi-builder-workspace/Sources/LookingGlassUI/DeviceRotationEffectViewModifier.swift:149:16: error: 'Angle' is only available in macOS 10.15 or newer
100 | }
101 |
102 | public extension View {
| `- note: add @available attribute to enclosing extension
103 | /// Position a view on a sphere centered on the device and rotated using real world coordinates. This view will rotate to compensate for device rotation and appear to be seen either through a window or as a kind of reflection.
104 | ///
:
143 | /// - isShowingInFourDirections: If active the view will be rotated around the Z axis at 90 degree intervals to always face the direction the device is pointing.
144 | /// - Returns: The view is positioned centered on the device and rotated using real world coordinates. It will rotate to compensate for device rotation and appear to be seen either through a window or as a kind of reflection.
145 | func deviceRotationEffect(
| `- note: add @available attribute to enclosing instance method
146 | _ type: DeviceRotationEffectType,
147 | distance: CGFloat? = nil,
148 | perspective: CGFloat? = nil,
149 | pitch: Angle? = nil,
| `- error: 'Angle' is only available in macOS 10.15 or newer
150 | yaw: Angle? = nil,
151 | localRoll: Angle? = nil,
/Users/admin/builder/spi-builder-workspace/Sources/LookingGlassUI/DeviceRotationEffectViewModifier.swift:150:14: error: 'Angle' is only available in macOS 10.15 or newer
100 | }
101 |
102 | public extension View {
| `- note: add @available attribute to enclosing extension
103 | /// Position a view on a sphere centered on the device and rotated using real world coordinates. This view will rotate to compensate for device rotation and appear to be seen either through a window or as a kind of reflection.
104 | ///
:
143 | /// - isShowingInFourDirections: If active the view will be rotated around the Z axis at 90 degree intervals to always face the direction the device is pointing.
144 | /// - Returns: The view is positioned centered on the device and rotated using real world coordinates. It will rotate to compensate for device rotation and appear to be seen either through a window or as a kind of reflection.
145 | func deviceRotationEffect(
| `- note: add @available attribute to enclosing instance method
146 | _ type: DeviceRotationEffectType,
147 | distance: CGFloat? = nil,
148 | perspective: CGFloat? = nil,
149 | pitch: Angle? = nil,
150 | yaw: Angle? = nil,
| `- error: 'Angle' is only available in macOS 10.15 or newer
151 | localRoll: Angle? = nil,
152 | isShowingInFourDirections: Bool? = nil
/Users/admin/builder/spi-builder-workspace/Sources/LookingGlassUI/DeviceRotationEffectViewModifier.swift:151:20: error: 'Angle' is only available in macOS 10.15 or newer
100 | }
101 |
102 | public extension View {
| `- note: add @available attribute to enclosing extension
103 | /// Position a view on a sphere centered on the device and rotated using real world coordinates. This view will rotate to compensate for device rotation and appear to be seen either through a window or as a kind of reflection.
104 | ///
:
143 | /// - isShowingInFourDirections: If active the view will be rotated around the Z axis at 90 degree intervals to always face the direction the device is pointing.
144 | /// - Returns: The view is positioned centered on the device and rotated using real world coordinates. It will rotate to compensate for device rotation and appear to be seen either through a window or as a kind of reflection.
145 | func deviceRotationEffect(
| `- note: add @available attribute to enclosing instance method
146 | _ type: DeviceRotationEffectType,
147 | distance: CGFloat? = nil,
:
149 | pitch: Angle? = nil,
150 | yaw: Angle? = nil,
151 | localRoll: Angle? = nil,
| `- error: 'Angle' is only available in macOS 10.15 or newer
152 | isShowingInFourDirections: Bool? = nil
153 | ) -> some View {
/Users/admin/builder/spi-builder-workspace/Sources/LookingGlassUI/DeviceRotationEffectViewModifier.swift:153:15: error: 'View' is only available in macOS 10.15 or newer
100 | }
101 |
102 | public extension View {
| `- note: add @available attribute to enclosing extension
103 | /// Position a view on a sphere centered on the device and rotated using real world coordinates. This view will rotate to compensate for device rotation and appear to be seen either through a window or as a kind of reflection.
104 | ///
:
143 | /// - isShowingInFourDirections: If active the view will be rotated around the Z axis at 90 degree intervals to always face the direction the device is pointing.
144 | /// - Returns: The view is positioned centered on the device and rotated using real world coordinates. It will rotate to compensate for device rotation and appear to be seen either through a window or as a kind of reflection.
145 | func deviceRotationEffect(
| `- note: add @available attribute to enclosing instance method
146 | _ type: DeviceRotationEffectType,
147 | distance: CGFloat? = nil,
:
151 | localRoll: Angle? = nil,
152 | isShowingInFourDirections: Bool? = nil
153 | ) -> some View {
| `- error: 'View' is only available in macOS 10.15 or newer
154 | deviceRotationEffect(
155 | type,
/Users/admin/builder/spi-builder-workspace/Sources/LookingGlassUI/DeviceRotationEffectViewModifier.swift:102:18: error: 'View' is only available in macOS 10.15 or newer
100 | }
101 |
102 | public extension View {
| | `- error: 'View' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing extension
103 | /// Position a view on a sphere centered on the device and rotated using real world coordinates. This view will rotate to compensate for device rotation and appear to be seen either through a window or as a kind of reflection.
104 | ///
/Users/admin/builder/spi-builder-workspace/Sources/LookingGlassUI/DeviceRotationEffectViewModifier.swift:95:44: error: 'buildIf' is only available in macOS 10.15 or newer
25 | }
26 |
27 | struct DeviceRotationEffectViewModifier: ViewModifier {
| `- note: add @available attribute to enclosing struct
28 | @EnvironmentObject var motionManager: MotionManager
29 |
:
92 | }
93 |
94 | func body(content: Content) -> some View {
| `- note: add @available attribute to enclosing instance method
95 | if motionManager.isDetectingMotion {
| |- error: 'buildIf' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
96 | content
97 | .rotation3DEffect(quaternion: rotation, anchor: .center, anchorZ: distance, perspective: perspective)
/Users/admin/builder/spi-builder-workspace/Sources/LookingGlassUI/DeviceRotationEffectViewModifier.swift:98:9: error: 'buildIf' is only available in macOS 10.15 or newer
25 | }
26 |
27 | struct DeviceRotationEffectViewModifier: ViewModifier {
| `- note: add @available attribute to enclosing struct
28 | @EnvironmentObject var motionManager: MotionManager
29 |
:
92 | }
93 |
94 | func body(content: Content) -> some View {
| `- note: add @available attribute to enclosing instance method
95 | if motionManager.isDetectingMotion {
96 | content
97 | .rotation3DEffect(quaternion: rotation, anchor: .center, anchorZ: distance, perspective: perspective)
98 | }
| |- error: 'buildIf' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
99 | }
100 | }
/Users/admin/builder/spi-builder-workspace/Sources/LookingGlassUI/DeviceRotationEffectViewModifier.swift:94:46: error: conformance of 'Optional<Wrapped>' to 'View' is only available in macOS 10.15 or newer
25 | }
26 |
27 | struct DeviceRotationEffectViewModifier: ViewModifier {
| `- note: add @available attribute to enclosing struct
28 | @EnvironmentObject var motionManager: MotionManager
29 |
:
92 | }
93 |
94 | func body(content: Content) -> some View {
| | |- error: conformance of 'Optional<Wrapped>' to 'View' is only available in macOS 10.15 or newer
| | `- note: add 'if #available' version check
| `- note: add @available attribute to enclosing instance method
95 | if motionManager.isDetectingMotion {
96 | content
/Users/admin/builder/spi-builder-workspace/Sources/LookingGlassUI/DeviceRotationEffectViewModifier.swift:121:14: error: conformance of 'ModifiedContent<Content, Modifier>' to 'View' is only available in macOS 10.15 or newer
100 | }
101 |
102 | public extension View {
| `- note: add @available attribute to enclosing extension
103 | /// Position a view on a sphere centered on the device and rotated using real world coordinates. This view will rotate to compensate for device rotation and appear to be seen either through a window or as a kind of reflection.
104 | ///
:
112 | /// - isShowingInFourDirections: If active the view will be rotated around the Z axis at 90 degree intervals to always face the direction the device is pointing.
113 | /// - Returns: The view is positioned centered on the device and rotated using real world coordinates. It will rotate to compensate for device rotation and appear to be seen either through a window or as a kind of reflection.
114 | func deviceRotationEffect(
| `- note: add @available attribute to enclosing instance method
115 | _ type: DeviceRotationEffectType,
116 | distance: CGFloat? = nil,
:
119 | isShowingInFourDirections: Bool? = nil
120 | ) -> some View {
121 | self.modifier(
| |- error: conformance of 'ModifiedContent<Content, Modifier>' to 'View' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
122 | DeviceRotationEffectViewModifier(
123 | type: type,
/Users/admin/builder/spi-builder-workspace/Sources/LookingGlassUI/DeviceRotationEffectViewModifier.swift:121:14: error: 'modifier' is only available in macOS 10.15 or newer
100 | }
101 |
102 | public extension View {
| `- note: add @available attribute to enclosing extension
103 | /// Position a view on a sphere centered on the device and rotated using real world coordinates. This view will rotate to compensate for device rotation and appear to be seen either through a window or as a kind of reflection.
104 | ///
:
112 | /// - isShowingInFourDirections: If active the view will be rotated around the Z axis at 90 degree intervals to always face the direction the device is pointing.
113 | /// - Returns: The view is positioned centered on the device and rotated using real world coordinates. It will rotate to compensate for device rotation and appear to be seen either through a window or as a kind of reflection.
114 | func deviceRotationEffect(
| `- note: add @available attribute to enclosing instance method
115 | _ type: DeviceRotationEffectType,
116 | distance: CGFloat? = nil,
:
119 | isShowingInFourDirections: Bool? = nil
120 | ) -> some View {
121 | self.modifier(
| |- error: 'modifier' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
122 | DeviceRotationEffectViewModifier(
123 | type: type,
/Users/admin/builder/spi-builder-workspace/Sources/LookingGlassUI/EmptyShape.swift:14:35: error: 'Path' is only available in macOS 10.15 or newer
9 |
10 | /// An empty shape used in the `contentShape()` modifier to create an empty content shape. This is useful for visible view that you don't want effecting accessibility frames.
11 | struct EmptyShape: InsettableShape {
| `- note: add @available attribute to enclosing struct
12 | init() { }
13 |
14 | func path(in rect: CGRect) -> Path {
| | `- error: 'Path' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing instance method
15 | Path()
16 | }
/Users/admin/builder/spi-builder-workspace/Sources/LookingGlassUI/EmptyShape.swift:15:9: error: 'Path' is only available in macOS 10.15 or newer
9 |
10 | /// An empty shape used in the `contentShape()` modifier to create an empty content shape. This is useful for visible view that you don't want effecting accessibility frames.
11 | struct EmptyShape: InsettableShape {
| `- note: add @available attribute to enclosing struct
12 | init() { }
13 |
14 | func path(in rect: CGRect) -> Path {
| `- note: add @available attribute to enclosing instance method
15 | Path()
| |- error: 'Path' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
16 | }
17 |
[16/20] 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: '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: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: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: '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: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: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/20] 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: '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: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: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: '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: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: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/20] Compiling LookingGlassUI InfoDictionary.swift
/Users/admin/builder/spi-builder-workspace/Sources/LookingGlassUI/InfoDictionary.swift:12:43: error: cannot find type 'UIDeviceOrientation' in scope
10 | enum InfoDictionary {
11 | /// Set of supported orientations for the current app
12 | static let supportedOrientations: Set<UIDeviceOrientation> = {
| `- error: cannot find type 'UIDeviceOrientation' in scope
13 | if let orientations = Bundle.main.infoDictionary?["UISupportedInterfaceOrientations"] as? [String] {
14 | return Set(orientations.compactMap({ UIDeviceOrientation(key: $0) }))
/Users/admin/builder/spi-builder-workspace/Sources/LookingGlassUI/LookingGlass.swift:19:6: error: 'EnvironmentObject' is only available in macOS 10.15 or newer
16 | ///
17 | /// - Requires: ``motionManager(updateInterval:disabled:)`` must be added only once in your app somewhere above this view in the heirarchy.
18 | public struct LookingGlass<Content: View>: View {
| `- note: add @available attribute to enclosing generic struct
19 | @EnvironmentObject var motionManager: MotionManager
| `- error: 'EnvironmentObject' is only available in macOS 10.15 or newer
20 |
21 | let type: DeviceRotationEffectType
/Users/admin/builder/spi-builder-workspace/Sources/LookingGlassUI/LookingGlass.swift:79:16: error: 'Angle' is only available in macOS 10.15 or newer
16 | ///
17 | /// - Requires: ``motionManager(updateInterval:disabled:)`` must be added only once in your app somewhere above this view in the heirarchy.
18 | public struct LookingGlass<Content: View>: View {
| `- note: add @available attribute to enclosing generic struct
19 | @EnvironmentObject var motionManager: MotionManager
20 |
:
73 | /// - isShowingInFourDirections: If active the view will be rotated around the Z axis at 90 degree intervals to always face the direction the device is pointing.
74 | /// - content: View to be shown.
75 | public init(
| `- note: add @available attribute to enclosing initializer
76 | _ type: DeviceRotationEffectType,
77 | distance: CGFloat,
78 | perspective: CGFloat? = nil,
79 | pitch: Angle? = nil,
| `- error: 'Angle' is only available in macOS 10.15 or newer
80 | yaw: Angle? = nil,
81 | localRoll: Angle? = nil,
/Users/admin/builder/spi-builder-workspace/Sources/LookingGlassUI/LookingGlass.swift:80:14: error: 'Angle' is only available in macOS 10.15 or newer
16 | ///
17 | /// - Requires: ``motionManager(updateInterval:disabled:)`` must be added only once in your app somewhere above this view in the heirarchy.
18 | public struct LookingGlass<Content: View>: View {
| `- note: add @available attribute to enclosing generic struct
19 | @EnvironmentObject var motionManager: MotionManager
20 |
:
73 | /// - isShowingInFourDirections: If active the view will be rotated around the Z axis at 90 degree intervals to always face the direction the device is pointing.
74 | /// - content: View to be shown.
75 | public init(
| `- note: add @available attribute to enclosing initializer
76 | _ type: DeviceRotationEffectType,
77 | distance: CGFloat,
78 | perspective: CGFloat? = nil,
79 | pitch: Angle? = nil,
80 | yaw: Angle? = nil,
| `- error: 'Angle' is only available in macOS 10.15 or newer
81 | localRoll: Angle? = nil,
82 | isShowingInFourDirections: Bool? = nil,
/Users/admin/builder/spi-builder-workspace/Sources/LookingGlassUI/LookingGlass.swift:81:20: error: 'Angle' is only available in macOS 10.15 or newer
16 | ///
17 | /// - Requires: ``motionManager(updateInterval:disabled:)`` must be added only once in your app somewhere above this view in the heirarchy.
18 | public struct LookingGlass<Content: View>: View {
| `- note: add @available attribute to enclosing generic struct
19 | @EnvironmentObject var motionManager: MotionManager
20 |
:
73 | /// - isShowingInFourDirections: If active the view will be rotated around the Z axis at 90 degree intervals to always face the direction the device is pointing.
74 | /// - content: View to be shown.
75 | public init(
| `- note: add @available attribute to enclosing initializer
76 | _ type: DeviceRotationEffectType,
77 | distance: CGFloat,
:
79 | pitch: Angle? = nil,
80 | yaw: Angle? = nil,
81 | localRoll: Angle? = nil,
| `- error: 'Angle' is only available in macOS 10.15 or newer
82 | isShowingInFourDirections: Bool? = nil,
83 | content: () -> Content
/Users/admin/builder/spi-builder-workspace/Sources/LookingGlassUI/LookingGlass.swift:95:27: error: 'View' is only available in macOS 10.15 or newer
16 | ///
17 | /// - Requires: ``motionManager(updateInterval:disabled:)`` must be added only once in your app somewhere above this view in the heirarchy.
18 | public struct LookingGlass<Content: View>: View {
| `- note: add @available attribute to enclosing generic struct
19 | @EnvironmentObject var motionManager: MotionManager
20 |
:
93 | }
94 |
95 | public var body: some View {
| | `- error: 'View' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing property
96 | if motionManager.isDetectingMotion {
97 | GeometryReader { proxy in
/Users/admin/builder/spi-builder-workspace/Sources/LookingGlassUI/LookingGlass.swift:18:37: error: 'View' is only available in macOS 10.15 or newer
16 | ///
17 | /// - Requires: ``motionManager(updateInterval:disabled:)`` must be added only once in your app somewhere above this view in the heirarchy.
18 | public struct LookingGlass<Content: View>: View {
| | `- error: 'View' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing generic struct
19 | @EnvironmentObject var motionManager: MotionManager
20 |
/Users/admin/builder/spi-builder-workspace/Sources/LookingGlassUI/LookingGlass.swift:97:13: error: 'GeometryReader' is only available in macOS 10.15 or newer
16 | ///
17 | /// - Requires: ``motionManager(updateInterval:disabled:)`` must be added only once in your app somewhere above this view in the heirarchy.
18 | public struct LookingGlass<Content: View>: View {
| `- note: add @available attribute to enclosing generic struct
19 | @EnvironmentObject var motionManager: MotionManager
20 |
:
93 | }
94 |
95 | public var body: some View {
| `- note: add @available attribute to enclosing property
96 | if motionManager.isDetectingMotion {
97 | GeometryReader { proxy in
| |- error: 'GeometryReader' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
98 | content
99 | .deviceRotationEffect(type, distance: distance, perspective: perspective, offsetRotation: offsetRotation, isShowingInFourDirections: isShowingInFourDirections)
/Users/admin/builder/spi-builder-workspace/Sources/LookingGlassUI/LookingGlass.swift:100:22: error: 'frame(width:height:alignment:)' is only available in macOS 10.15 or newer
16 | ///
17 | /// - Requires: ``motionManager(updateInterval:disabled:)`` must be added only once in your app somewhere above this view in the heirarchy.
18 | public struct LookingGlass<Content: View>: View {
| `- note: add @available attribute to enclosing generic struct
19 | @EnvironmentObject var motionManager: MotionManager
20 |
:
93 | }
94 |
95 | public var body: some View {
| `- note: add @available attribute to enclosing property
96 | if motionManager.isDetectingMotion {
97 | GeometryReader { proxy in
98 | content
99 | .deviceRotationEffect(type, distance: distance, perspective: perspective, offsetRotation: offsetRotation, isShowingInFourDirections: isShowingInFourDirections)
100 | .frame(width: motionManager.interfaceSize.width, height: motionManager.interfaceSize.height)
| |- error: 'frame(width:height:alignment:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
101 | .offset(x: (proxy.size.width / 2) - proxy.frame(in: .global).midX, y: (proxy.size.height / 2) - proxy.frame(in: .global).midY)
102 | }
/Users/admin/builder/spi-builder-workspace/Sources/LookingGlassUI/LookingGlass.swift:101:22: error: 'offset(x:y:)' is only available in macOS 10.15 or newer
16 | ///
17 | /// - Requires: ``motionManager(updateInterval:disabled:)`` must be added only once in your app somewhere above this view in the heirarchy.
18 | public struct LookingGlass<Content: View>: View {
| `- note: add @available attribute to enclosing generic struct
19 | @EnvironmentObject var motionManager: MotionManager
20 |
:
93 | }
94 |
95 | public var body: some View {
| `- note: add @available attribute to enclosing property
96 | if motionManager.isDetectingMotion {
97 | GeometryReader { proxy in
:
99 | .deviceRotationEffect(type, distance: distance, perspective: perspective, offsetRotation: offsetRotation, isShowingInFourDirections: isShowingInFourDirections)
100 | .frame(width: motionManager.interfaceSize.width, height: motionManager.interfaceSize.height)
101 | .offset(x: (proxy.size.width / 2) - proxy.frame(in: .global).midX, y: (proxy.size.height / 2) - proxy.frame(in: .global).midY)
| |- error: 'offset(x:y:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
102 | }
103 | } else {
/Users/admin/builder/spi-builder-workspace/Sources/LookingGlassUI/LookingGlass.swift:101:63: error: 'frame(in:)' is only available in macOS 10.15 or newer
16 | ///
17 | /// - Requires: ``motionManager(updateInterval:disabled:)`` must be added only once in your app somewhere above this view in the heirarchy.
18 | public struct LookingGlass<Content: View>: View {
| `- note: add @available attribute to enclosing generic struct
19 | @EnvironmentObject var motionManager: MotionManager
20 |
:
93 | }
94 |
95 | public var body: some View {
| `- note: add @available attribute to enclosing property
96 | if motionManager.isDetectingMotion {
97 | GeometryReader { proxy in
:
99 | .deviceRotationEffect(type, distance: distance, perspective: perspective, offsetRotation: offsetRotation, isShowingInFourDirections: isShowingInFourDirections)
100 | .frame(width: motionManager.interfaceSize.width, height: motionManager.interfaceSize.height)
101 | .offset(x: (proxy.size.width / 2) - proxy.frame(in: .global).midX, y: (proxy.size.height / 2) - proxy.frame(in: .global).midY)
| |- error: 'frame(in:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
102 | }
103 | } else {
/Users/admin/builder/spi-builder-workspace/Sources/LookingGlassUI/LookingGlass.swift:101:123: error: 'frame(in:)' is only available in macOS 10.15 or newer
16 | ///
17 | /// - Requires: ``motionManager(updateInterval:disabled:)`` must be added only once in your app somewhere above this view in the heirarchy.
18 | public struct LookingGlass<Content: View>: View {
| `- note: add @available attribute to enclosing generic struct
19 | @EnvironmentObject var motionManager: MotionManager
20 |
:
93 | }
94 |
95 | public var body: some View {
| `- note: add @available attribute to enclosing property
96 | if motionManager.isDetectingMotion {
97 | GeometryReader { proxy in
:
99 | .deviceRotationEffect(type, distance: distance, perspective: perspective, offsetRotation: offsetRotation, isShowingInFourDirections: isShowingInFourDirections)
100 | .frame(width: motionManager.interfaceSize.width, height: motionManager.interfaceSize.height)
101 | .offset(x: (proxy.size.width / 2) - proxy.frame(in: .global).midX, y: (proxy.size.height / 2) - proxy.frame(in: .global).midY)
| |- error: 'frame(in:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
102 | }
103 | } else {
/Users/admin/builder/spi-builder-workspace/Sources/LookingGlassUI/LookingGlass.swift:96:44: error: 'buildEither(first:)' is only available in macOS 10.15 or newer
16 | ///
17 | /// - Requires: ``motionManager(updateInterval:disabled:)`` must be added only once in your app somewhere above this view in the heirarchy.
18 | public struct LookingGlass<Content: View>: View {
| `- note: add @available attribute to enclosing generic struct
19 | @EnvironmentObject var motionManager: MotionManager
20 |
:
93 | }
94 |
95 | public var body: some View {
| `- note: add @available attribute to enclosing property
96 | if motionManager.isDetectingMotion {
| |- error: 'buildEither(first:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
97 | GeometryReader { proxy in
98 | content
/Users/admin/builder/spi-builder-workspace/Sources/LookingGlassUI/LookingGlass.swift:104:13: error: conformance of 'Color' to 'View' is only available in macOS 10.15 or newer
16 | ///
17 | /// - Requires: ``motionManager(updateInterval:disabled:)`` must be added only once in your app somewhere above this view in the heirarchy.
18 | public struct LookingGlass<Content: View>: View {
| `- note: add @available attribute to enclosing generic struct
19 | @EnvironmentObject var motionManager: MotionManager
20 |
:
93 | }
94 |
95 | public var body: some View {
| `- note: add @available attribute to enclosing property
96 | if motionManager.isDetectingMotion {
97 | GeometryReader { proxy in
:
102 | }
103 | } else {
104 | Color.clear
| |- error: conformance of 'Color' to 'View' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
105 | }
106 | }
/Users/admin/builder/spi-builder-workspace/Sources/LookingGlassUI/LookingGlass.swift:104:13: error: 'Color' is only available in macOS 10.15 or newer
16 | ///
17 | /// - Requires: ``motionManager(updateInterval:disabled:)`` must be added only once in your app somewhere above this view in the heirarchy.
18 | public struct LookingGlass<Content: View>: View {
| `- note: add @available attribute to enclosing generic struct
19 | @EnvironmentObject var motionManager: MotionManager
20 |
:
93 | }
94 |
95 | public var body: some View {
| `- note: add @available attribute to enclosing property
96 | if motionManager.isDetectingMotion {
97 | GeometryReader { proxy in
:
102 | }
103 | } else {
104 | Color.clear
| |- error: 'Color' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
105 | }
106 | }
/Users/admin/builder/spi-builder-workspace/Sources/LookingGlassUI/LookingGlass.swift:104:19: error: 'clear' is only available in macOS 10.15 or newer
16 | ///
17 | /// - Requires: ``motionManager(updateInterval:disabled:)`` must be added only once in your app somewhere above this view in the heirarchy.
18 | public struct LookingGlass<Content: View>: View {
| `- note: add @available attribute to enclosing generic struct
19 | @EnvironmentObject var motionManager: MotionManager
20 |
:
93 | }
94 |
95 | public var body: some View {
| `- note: add @available attribute to enclosing property
96 | if motionManager.isDetectingMotion {
97 | GeometryReader { proxy in
:
102 | }
103 | } else {
104 | Color.clear
| |- error: 'clear' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
105 | }
106 | }
/Users/admin/builder/spi-builder-workspace/Sources/LookingGlassUI/LookingGlass.swift:103:16: error: 'buildEither(second:)' is only available in macOS 10.15 or newer
16 | ///
17 | /// - Requires: ``motionManager(updateInterval:disabled:)`` must be added only once in your app somewhere above this view in the heirarchy.
18 | public struct LookingGlass<Content: View>: View {
| `- note: add @available attribute to enclosing generic struct
19 | @EnvironmentObject var motionManager: MotionManager
20 |
:
93 | }
94 |
95 | public var body: some View {
| `- note: add @available attribute to enclosing property
96 | if motionManager.isDetectingMotion {
97 | GeometryReader { proxy in
:
101 | .offset(x: (proxy.size.width / 2) - proxy.frame(in: .global).midX, y: (proxy.size.height / 2) - proxy.frame(in: .global).midY)
102 | }
103 | } else {
| |- error: 'buildEither(second:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
104 | Color.clear
105 | }
/Users/admin/builder/spi-builder-workspace/Sources/LookingGlassUI/LookingGlass.swift:103:16: error: conformance of 'Color' to 'View' is only available in macOS 10.15 or newer
16 | ///
17 | /// - Requires: ``motionManager(updateInterval:disabled:)`` must be added only once in your app somewhere above this view in the heirarchy.
18 | public struct LookingGlass<Content: View>: View {
| `- note: add @available attribute to enclosing generic struct
19 | @EnvironmentObject var motionManager: MotionManager
20 |
:
93 | }
94 |
95 | public var body: some View {
| `- note: add @available attribute to enclosing property
96 | if motionManager.isDetectingMotion {
97 | GeometryReader { proxy in
:
101 | .offset(x: (proxy.size.width / 2) - proxy.frame(in: .global).midX, y: (proxy.size.height / 2) - proxy.frame(in: .global).midY)
102 | }
103 | } else {
| |- error: conformance of 'Color' to 'View' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
104 | Color.clear
105 | }
/Users/admin/builder/spi-builder-workspace/Sources/LookingGlassUI/LookingGlass.swift:95:32: error: conformance of '_ConditionalContent<TrueContent, FalseContent>' to 'View' is only available in macOS 10.15 or newer
16 | ///
17 | /// - Requires: ``motionManager(updateInterval:disabled:)`` must be added only once in your app somewhere above this view in the heirarchy.
18 | public struct LookingGlass<Content: View>: View {
| `- note: add @available attribute to enclosing generic struct
19 | @EnvironmentObject var motionManager: MotionManager
20 |
:
93 | }
94 |
95 | 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
96 | if motionManager.isDetectingMotion {
97 | GeometryReader { proxy in
[19/20] Compiling LookingGlassUI LookingGlass.swift
/Users/admin/builder/spi-builder-workspace/Sources/LookingGlassUI/InfoDictionary.swift:12:43: error: cannot find type 'UIDeviceOrientation' in scope
10 | enum InfoDictionary {
11 | /// Set of supported orientations for the current app
12 | static let supportedOrientations: Set<UIDeviceOrientation> = {
| `- error: cannot find type 'UIDeviceOrientation' in scope
13 | if let orientations = Bundle.main.infoDictionary?["UISupportedInterfaceOrientations"] as? [String] {
14 | return Set(orientations.compactMap({ UIDeviceOrientation(key: $0) }))
/Users/admin/builder/spi-builder-workspace/Sources/LookingGlassUI/LookingGlass.swift:19:6: error: 'EnvironmentObject' is only available in macOS 10.15 or newer
16 | ///
17 | /// - Requires: ``motionManager(updateInterval:disabled:)`` must be added only once in your app somewhere above this view in the heirarchy.
18 | public struct LookingGlass<Content: View>: View {
| `- note: add @available attribute to enclosing generic struct
19 | @EnvironmentObject var motionManager: MotionManager
| `- error: 'EnvironmentObject' is only available in macOS 10.15 or newer
20 |
21 | let type: DeviceRotationEffectType
/Users/admin/builder/spi-builder-workspace/Sources/LookingGlassUI/LookingGlass.swift:79:16: error: 'Angle' is only available in macOS 10.15 or newer
16 | ///
17 | /// - Requires: ``motionManager(updateInterval:disabled:)`` must be added only once in your app somewhere above this view in the heirarchy.
18 | public struct LookingGlass<Content: View>: View {
| `- note: add @available attribute to enclosing generic struct
19 | @EnvironmentObject var motionManager: MotionManager
20 |
:
73 | /// - isShowingInFourDirections: If active the view will be rotated around the Z axis at 90 degree intervals to always face the direction the device is pointing.
74 | /// - content: View to be shown.
75 | public init(
| `- note: add @available attribute to enclosing initializer
76 | _ type: DeviceRotationEffectType,
77 | distance: CGFloat,
78 | perspective: CGFloat? = nil,
79 | pitch: Angle? = nil,
| `- error: 'Angle' is only available in macOS 10.15 or newer
80 | yaw: Angle? = nil,
81 | localRoll: Angle? = nil,
/Users/admin/builder/spi-builder-workspace/Sources/LookingGlassUI/LookingGlass.swift:80:14: error: 'Angle' is only available in macOS 10.15 or newer
16 | ///
17 | /// - Requires: ``motionManager(updateInterval:disabled:)`` must be added only once in your app somewhere above this view in the heirarchy.
18 | public struct LookingGlass<Content: View>: View {
| `- note: add @available attribute to enclosing generic struct
19 | @EnvironmentObject var motionManager: MotionManager
20 |
:
73 | /// - isShowingInFourDirections: If active the view will be rotated around the Z axis at 90 degree intervals to always face the direction the device is pointing.
74 | /// - content: View to be shown.
75 | public init(
| `- note: add @available attribute to enclosing initializer
76 | _ type: DeviceRotationEffectType,
77 | distance: CGFloat,
78 | perspective: CGFloat? = nil,
79 | pitch: Angle? = nil,
80 | yaw: Angle? = nil,
| `- error: 'Angle' is only available in macOS 10.15 or newer
81 | localRoll: Angle? = nil,
82 | isShowingInFourDirections: Bool? = nil,
/Users/admin/builder/spi-builder-workspace/Sources/LookingGlassUI/LookingGlass.swift:81:20: error: 'Angle' is only available in macOS 10.15 or newer
16 | ///
17 | /// - Requires: ``motionManager(updateInterval:disabled:)`` must be added only once in your app somewhere above this view in the heirarchy.
18 | public struct LookingGlass<Content: View>: View {
| `- note: add @available attribute to enclosing generic struct
19 | @EnvironmentObject var motionManager: MotionManager
20 |
:
73 | /// - isShowingInFourDirections: If active the view will be rotated around the Z axis at 90 degree intervals to always face the direction the device is pointing.
74 | /// - content: View to be shown.
75 | public init(
| `- note: add @available attribute to enclosing initializer
76 | _ type: DeviceRotationEffectType,
77 | distance: CGFloat,
:
79 | pitch: Angle? = nil,
80 | yaw: Angle? = nil,
81 | localRoll: Angle? = nil,
| `- error: 'Angle' is only available in macOS 10.15 or newer
82 | isShowingInFourDirections: Bool? = nil,
83 | content: () -> Content
/Users/admin/builder/spi-builder-workspace/Sources/LookingGlassUI/LookingGlass.swift:95:27: error: 'View' is only available in macOS 10.15 or newer
16 | ///
17 | /// - Requires: ``motionManager(updateInterval:disabled:)`` must be added only once in your app somewhere above this view in the heirarchy.
18 | public struct LookingGlass<Content: View>: View {
| `- note: add @available attribute to enclosing generic struct
19 | @EnvironmentObject var motionManager: MotionManager
20 |
:
93 | }
94 |
95 | public var body: some View {
| | `- error: 'View' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing property
96 | if motionManager.isDetectingMotion {
97 | GeometryReader { proxy in
/Users/admin/builder/spi-builder-workspace/Sources/LookingGlassUI/LookingGlass.swift:18:37: error: 'View' is only available in macOS 10.15 or newer
16 | ///
17 | /// - Requires: ``motionManager(updateInterval:disabled:)`` must be added only once in your app somewhere above this view in the heirarchy.
18 | public struct LookingGlass<Content: View>: View {
| | `- error: 'View' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing generic struct
19 | @EnvironmentObject var motionManager: MotionManager
20 |
/Users/admin/builder/spi-builder-workspace/Sources/LookingGlassUI/LookingGlass.swift:97:13: error: 'GeometryReader' is only available in macOS 10.15 or newer
16 | ///
17 | /// - Requires: ``motionManager(updateInterval:disabled:)`` must be added only once in your app somewhere above this view in the heirarchy.
18 | public struct LookingGlass<Content: View>: View {
| `- note: add @available attribute to enclosing generic struct
19 | @EnvironmentObject var motionManager: MotionManager
20 |
:
93 | }
94 |
95 | public var body: some View {
| `- note: add @available attribute to enclosing property
96 | if motionManager.isDetectingMotion {
97 | GeometryReader { proxy in
| |- error: 'GeometryReader' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
98 | content
99 | .deviceRotationEffect(type, distance: distance, perspective: perspective, offsetRotation: offsetRotation, isShowingInFourDirections: isShowingInFourDirections)
/Users/admin/builder/spi-builder-workspace/Sources/LookingGlassUI/LookingGlass.swift:100:22: error: 'frame(width:height:alignment:)' is only available in macOS 10.15 or newer
16 | ///
17 | /// - Requires: ``motionManager(updateInterval:disabled:)`` must be added only once in your app somewhere above this view in the heirarchy.
18 | public struct LookingGlass<Content: View>: View {
| `- note: add @available attribute to enclosing generic struct
19 | @EnvironmentObject var motionManager: MotionManager
20 |
:
93 | }
94 |
95 | public var body: some View {
| `- note: add @available attribute to enclosing property
96 | if motionManager.isDetectingMotion {
97 | GeometryReader { proxy in
98 | content
99 | .deviceRotationEffect(type, distance: distance, perspective: perspective, offsetRotation: offsetRotation, isShowingInFourDirections: isShowingInFourDirections)
100 | .frame(width: motionManager.interfaceSize.width, height: motionManager.interfaceSize.height)
| |- error: 'frame(width:height:alignment:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
101 | .offset(x: (proxy.size.width / 2) - proxy.frame(in: .global).midX, y: (proxy.size.height / 2) - proxy.frame(in: .global).midY)
102 | }
/Users/admin/builder/spi-builder-workspace/Sources/LookingGlassUI/LookingGlass.swift:101:22: error: 'offset(x:y:)' is only available in macOS 10.15 or newer
16 | ///
17 | /// - Requires: ``motionManager(updateInterval:disabled:)`` must be added only once in your app somewhere above this view in the heirarchy.
18 | public struct LookingGlass<Content: View>: View {
| `- note: add @available attribute to enclosing generic struct
19 | @EnvironmentObject var motionManager: MotionManager
20 |
:
93 | }
94 |
95 | public var body: some View {
| `- note: add @available attribute to enclosing property
96 | if motionManager.isDetectingMotion {
97 | GeometryReader { proxy in
:
99 | .deviceRotationEffect(type, distance: distance, perspective: perspective, offsetRotation: offsetRotation, isShowingInFourDirections: isShowingInFourDirections)
100 | .frame(width: motionManager.interfaceSize.width, height: motionManager.interfaceSize.height)
101 | .offset(x: (proxy.size.width / 2) - proxy.frame(in: .global).midX, y: (proxy.size.height / 2) - proxy.frame(in: .global).midY)
| |- error: 'offset(x:y:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
102 | }
103 | } else {
/Users/admin/builder/spi-builder-workspace/Sources/LookingGlassUI/LookingGlass.swift:101:63: error: 'frame(in:)' is only available in macOS 10.15 or newer
16 | ///
17 | /// - Requires: ``motionManager(updateInterval:disabled:)`` must be added only once in your app somewhere above this view in the heirarchy.
18 | public struct LookingGlass<Content: View>: View {
| `- note: add @available attribute to enclosing generic struct
19 | @EnvironmentObject var motionManager: MotionManager
20 |
:
93 | }
94 |
95 | public var body: some View {
| `- note: add @available attribute to enclosing property
96 | if motionManager.isDetectingMotion {
97 | GeometryReader { proxy in
:
99 | .deviceRotationEffect(type, distance: distance, perspective: perspective, offsetRotation: offsetRotation, isShowingInFourDirections: isShowingInFourDirections)
100 | .frame(width: motionManager.interfaceSize.width, height: motionManager.interfaceSize.height)
101 | .offset(x: (proxy.size.width / 2) - proxy.frame(in: .global).midX, y: (proxy.size.height / 2) - proxy.frame(in: .global).midY)
| |- error: 'frame(in:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
102 | }
103 | } else {
/Users/admin/builder/spi-builder-workspace/Sources/LookingGlassUI/LookingGlass.swift:101:123: error: 'frame(in:)' is only available in macOS 10.15 or newer
16 | ///
17 | /// - Requires: ``motionManager(updateInterval:disabled:)`` must be added only once in your app somewhere above this view in the heirarchy.
18 | public struct LookingGlass<Content: View>: View {
| `- note: add @available attribute to enclosing generic struct
19 | @EnvironmentObject var motionManager: MotionManager
20 |
:
93 | }
94 |
95 | public var body: some View {
| `- note: add @available attribute to enclosing property
96 | if motionManager.isDetectingMotion {
97 | GeometryReader { proxy in
:
99 | .deviceRotationEffect(type, distance: distance, perspective: perspective, offsetRotation: offsetRotation, isShowingInFourDirections: isShowingInFourDirections)
100 | .frame(width: motionManager.interfaceSize.width, height: motionManager.interfaceSize.height)
101 | .offset(x: (proxy.size.width / 2) - proxy.frame(in: .global).midX, y: (proxy.size.height / 2) - proxy.frame(in: .global).midY)
| |- error: 'frame(in:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
102 | }
103 | } else {
/Users/admin/builder/spi-builder-workspace/Sources/LookingGlassUI/LookingGlass.swift:96:44: error: 'buildEither(first:)' is only available in macOS 10.15 or newer
16 | ///
17 | /// - Requires: ``motionManager(updateInterval:disabled:)`` must be added only once in your app somewhere above this view in the heirarchy.
18 | public struct LookingGlass<Content: View>: View {
| `- note: add @available attribute to enclosing generic struct
19 | @EnvironmentObject var motionManager: MotionManager
20 |
:
93 | }
94 |
95 | public var body: some View {
| `- note: add @available attribute to enclosing property
96 | if motionManager.isDetectingMotion {
| |- error: 'buildEither(first:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
97 | GeometryReader { proxy in
98 | content
/Users/admin/builder/spi-builder-workspace/Sources/LookingGlassUI/LookingGlass.swift:104:13: error: conformance of 'Color' to 'View' is only available in macOS 10.15 or newer
16 | ///
17 | /// - Requires: ``motionManager(updateInterval:disabled:)`` must be added only once in your app somewhere above this view in the heirarchy.
18 | public struct LookingGlass<Content: View>: View {
| `- note: add @available attribute to enclosing generic struct
19 | @EnvironmentObject var motionManager: MotionManager
20 |
:
93 | }
94 |
95 | public var body: some View {
| `- note: add @available attribute to enclosing property
96 | if motionManager.isDetectingMotion {
97 | GeometryReader { proxy in
:
102 | }
103 | } else {
104 | Color.clear
| |- error: conformance of 'Color' to 'View' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
105 | }
106 | }
/Users/admin/builder/spi-builder-workspace/Sources/LookingGlassUI/LookingGlass.swift:104:13: error: 'Color' is only available in macOS 10.15 or newer
16 | ///
17 | /// - Requires: ``motionManager(updateInterval:disabled:)`` must be added only once in your app somewhere above this view in the heirarchy.
18 | public struct LookingGlass<Content: View>: View {
| `- note: add @available attribute to enclosing generic struct
19 | @EnvironmentObject var motionManager: MotionManager
20 |
:
93 | }
94 |
95 | public var body: some View {
| `- note: add @available attribute to enclosing property
96 | if motionManager.isDetectingMotion {
97 | GeometryReader { proxy in
:
102 | }
103 | } else {
104 | Color.clear
| |- error: 'Color' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
105 | }
106 | }
/Users/admin/builder/spi-builder-workspace/Sources/LookingGlassUI/LookingGlass.swift:104:19: error: 'clear' is only available in macOS 10.15 or newer
16 | ///
17 | /// - Requires: ``motionManager(updateInterval:disabled:)`` must be added only once in your app somewhere above this view in the heirarchy.
18 | public struct LookingGlass<Content: View>: View {
| `- note: add @available attribute to enclosing generic struct
19 | @EnvironmentObject var motionManager: MotionManager
20 |
:
93 | }
94 |
95 | public var body: some View {
| `- note: add @available attribute to enclosing property
96 | if motionManager.isDetectingMotion {
97 | GeometryReader { proxy in
:
102 | }
103 | } else {
104 | Color.clear
| |- error: 'clear' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
105 | }
106 | }
/Users/admin/builder/spi-builder-workspace/Sources/LookingGlassUI/LookingGlass.swift:103:16: error: 'buildEither(second:)' is only available in macOS 10.15 or newer
16 | ///
17 | /// - Requires: ``motionManager(updateInterval:disabled:)`` must be added only once in your app somewhere above this view in the heirarchy.
18 | public struct LookingGlass<Content: View>: View {
| `- note: add @available attribute to enclosing generic struct
19 | @EnvironmentObject var motionManager: MotionManager
20 |
:
93 | }
94 |
95 | public var body: some View {
| `- note: add @available attribute to enclosing property
96 | if motionManager.isDetectingMotion {
97 | GeometryReader { proxy in
:
101 | .offset(x: (proxy.size.width / 2) - proxy.frame(in: .global).midX, y: (proxy.size.height / 2) - proxy.frame(in: .global).midY)
102 | }
103 | } else {
| |- error: 'buildEither(second:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
104 | Color.clear
105 | }
/Users/admin/builder/spi-builder-workspace/Sources/LookingGlassUI/LookingGlass.swift:103:16: error: conformance of 'Color' to 'View' is only available in macOS 10.15 or newer
16 | ///
17 | /// - Requires: ``motionManager(updateInterval:disabled:)`` must be added only once in your app somewhere above this view in the heirarchy.
18 | public struct LookingGlass<Content: View>: View {
| `- note: add @available attribute to enclosing generic struct
19 | @EnvironmentObject var motionManager: MotionManager
20 |
:
93 | }
94 |
95 | public var body: some View {
| `- note: add @available attribute to enclosing property
96 | if motionManager.isDetectingMotion {
97 | GeometryReader { proxy in
:
101 | .offset(x: (proxy.size.width / 2) - proxy.frame(in: .global).midX, y: (proxy.size.height / 2) - proxy.frame(in: .global).midY)
102 | }
103 | } else {
| |- error: conformance of 'Color' to 'View' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
104 | Color.clear
105 | }
/Users/admin/builder/spi-builder-workspace/Sources/LookingGlassUI/LookingGlass.swift:95:32: error: conformance of '_ConditionalContent<TrueContent, FalseContent>' to 'View' is only available in macOS 10.15 or newer
16 | ///
17 | /// - Requires: ``motionManager(updateInterval:disabled:)`` must be added only once in your app somewhere above this view in the heirarchy.
18 | public struct LookingGlass<Content: View>: View {
| `- note: add @available attribute to enclosing generic struct
19 | @EnvironmentObject var motionManager: MotionManager
20 |
:
93 | }
94 |
95 | 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
96 | if motionManager.isDetectingMotion {
97 | GeometryReader { proxy in
[20/20] Compiling LookingGlassUI resource_bundle_accessor.swift
BUILD FAILURE 6.1 macosSpm