Build Information
Failed to build LookingGlassUI, reference main (4ee892
), with Swift 6.1 for macOS (SPM) on 29 Apr 2025 14:59:18 UTC.
Build Command
env DEVELOPER_DIR=/Applications/Xcode-16.3.0.app xcrun swift build --arch arm64
Build Log
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()
:
120 | /// - disabled: If true, motion updates are disabled.
121 | /// - setDeviceOrientation: If true, device orientation is updated.
122 | public func startMotionUpdates(updateInterval: TimeInterval? = nil, disabled: Bool? = nil, setDeviceOrientation: Bool = false) {
| `- note: add @available attribute to enclosing instance method
123 |
124 | if let disabled, self.disabled != disabled {
:
127 |
128 | if let updateInterval, self.updateInterval != updateInterval {
129 | self.updateInterval = updateInterval
| |- error: setter for 'updateInterval' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
130 | }
131 |
/Users/admin/builder/spi-builder-workspace/Sources/LookingGlassUI/MotionManager.swift:133:34: error: cannot find 'UIDevice' in scope
131 |
132 | if setDeviceOrientation {
133 | let newOrientation = UIDevice.current.orientation
| `- error: cannot find 'UIDevice' in scope
134 | if deviceOrientation != newOrientation,
135 | InfoDictionary.supportedOrientations.contains(newOrientation) {
/Users/admin/builder/spi-builder-workspace/Sources/LookingGlassUI/MotionManager.swift:136:17: error: setter for 'initialDeviceRotation' 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()
:
120 | /// - disabled: If true, motion updates are disabled.
121 | /// - setDeviceOrientation: If true, device orientation is updated.
122 | public func startMotionUpdates(updateInterval: TimeInterval? = nil, disabled: Bool? = nil, setDeviceOrientation: Bool = false) {
| `- note: add @available attribute to enclosing instance method
123 |
124 | if let disabled, self.disabled != disabled {
:
134 | if deviceOrientation != newOrientation,
135 | InfoDictionary.supportedOrientations.contains(newOrientation) {
136 | initialDeviceRotation = nil
| |- error: setter for 'initialDeviceRotation' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
137 | deviceOrientation = newOrientation
138 | }
/Users/admin/builder/spi-builder-workspace/Sources/LookingGlassUI/MotionManager.swift:169:21: error: setter for 'initialDeviceRotation' 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()
:
155 |
156 | /// Toggles motion updates off if on or on if off (and not disabled and update interval greater than zero).
157 | private func restartMotionUpdatesIfNeeded() {
| `- note: add @available attribute to enclosing instance method
158 | stopMotionUpdates()
159 |
:
167 |
168 | if self.initialDeviceRotation == nil {
169 | self.initialDeviceRotation = quaternion
| |- error: setter for 'initialDeviceRotation' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
170 | }
171 |
/Users/admin/builder/spi-builder-workspace/Sources/LookingGlassUI/MotionManager.swift:172:17: error: setter for 'quaternion' 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()
:
155 |
156 | /// Toggles motion updates off if on or on if off (and not disabled and update interval greater than zero).
157 | private func restartMotionUpdatesIfNeeded() {
| `- note: add @available attribute to enclosing instance method
158 | stopMotionUpdates()
159 |
:
170 | }
171 |
172 | self.quaternion = quaternion
| |- error: setter for 'quaternion' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
173 | withAnimation(Animation.linear(duration: self.updateInterval)) {
174 | self.animatedQuaternion = quaternion
/Users/admin/builder/spi-builder-workspace/Sources/LookingGlassUI/MotionManager.swift:173:17: error: 'withAnimation' 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()
:
155 |
156 | /// Toggles motion updates off if on or on if off (and not disabled and update interval greater than zero).
157 | private func restartMotionUpdatesIfNeeded() {
| `- note: add @available attribute to enclosing instance method
158 | stopMotionUpdates()
159 |
:
171 |
172 | self.quaternion = quaternion
173 | withAnimation(Animation.linear(duration: self.updateInterval)) {
| |- error: 'withAnimation' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
174 | self.animatedQuaternion = quaternion
175 | }
/Users/admin/builder/spi-builder-workspace/Sources/LookingGlassUI/MotionManager.swift:173:31: error: 'Animation' 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()
:
155 |
156 | /// Toggles motion updates off if on or on if off (and not disabled and update interval greater than zero).
157 | private func restartMotionUpdatesIfNeeded() {
| `- note: add @available attribute to enclosing instance method
158 | stopMotionUpdates()
159 |
:
171 |
172 | self.quaternion = quaternion
173 | withAnimation(Animation.linear(duration: self.updateInterval)) {
| |- error: 'Animation' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
174 | self.animatedQuaternion = quaternion
175 | }
/Users/admin/builder/spi-builder-workspace/Sources/LookingGlassUI/MotionManager.swift:173:41: error: 'linear(duration:)' 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()
:
155 |
156 | /// Toggles motion updates off if on or on if off (and not disabled and update interval greater than zero).
157 | private func restartMotionUpdatesIfNeeded() {
| `- note: add @available attribute to enclosing instance method
158 | stopMotionUpdates()
159 |
:
171 |
172 | self.quaternion = quaternion
173 | withAnimation(Animation.linear(duration: self.updateInterval)) {
| |- error: 'linear(duration:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
174 | self.animatedQuaternion = quaternion
175 | }
/Users/admin/builder/spi-builder-workspace/Sources/LookingGlassUI/MotionManager.swift:174:21: error: setter for 'animatedQuaternion' 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()
:
155 |
156 | /// Toggles motion updates off if on or on if off (and not disabled and update interval greater than zero).
157 | private func restartMotionUpdatesIfNeeded() {
| `- note: add @available attribute to enclosing instance method
158 | stopMotionUpdates()
159 |
:
172 | self.quaternion = quaternion
173 | withAnimation(Animation.linear(duration: self.updateInterval)) {
174 | self.animatedQuaternion = quaternion
| |- error: setter for 'animatedQuaternion' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
175 | }
176 |
/Users/admin/builder/spi-builder-workspace/Sources/LookingGlassUI/MotionManager.swift:188:9: error: 'Color' 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 {
| `- note: add @available attribute to enclosing static property
188 | Color.blue
| |- error: 'Color' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
189 | .motionManager(updateInterval: 0)
190 | }
/Users/admin/builder/spi-builder-workspace/Sources/LookingGlassUI/MotionManager.swift:188:15: error: 'blue' 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 {
| `- note: add @available attribute to enclosing static property
188 | Color.blue
| |- error: 'blue' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
189 | .motionManager(updateInterval: 0)
190 | }
/Users/admin/builder/spi-builder-workspace/Sources/LookingGlassUI/MotionManager.swift:189:14: error: conformance of 'Color' to '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 {
| `- note: add @available attribute to enclosing static property
188 | Color.blue
189 | .motionManager(updateInterval: 0)
| |- error: conformance of 'Color' to 'View' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
190 | }
191 | }
/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/MotionManagerViewModifier.swift:19:66: error: cannot find 'UIDevice' in scope
17 | content
18 | .environmentObject(motionManager)
19 | .onReceive(NotificationCenter.default.publisher(for: UIDevice.orientationDidChangeNotification)) { _ in
| `- error: cannot find 'UIDevice' in scope
20 | motionManager.changeDeviceOrientation()
21 | }
/Users/admin/builder/spi-builder-workspace/Sources/LookingGlassUI/MotionManagerViewModifier.swift:22:66: error: cannot find 'UIApplication' in scope
20 | motionManager.changeDeviceOrientation()
21 | }
22 | .onReceive(NotificationCenter.default.publisher(for: UIApplication.willEnterForegroundNotification)) { _ in
| `- error: cannot find 'UIApplication' in scope
23 | motionManager.startMotionUpdates(updateInterval: updateInterval, disabled: disabled, setDeviceOrientation: true)
24 | }
/Users/admin/builder/spi-builder-workspace/Sources/LookingGlassUI/MotionManagerViewModifier.swift:25:66: error: cannot find 'UIApplication' in scope
23 | motionManager.startMotionUpdates(updateInterval: updateInterval, disabled: disabled, setDeviceOrientation: true)
24 | }
25 | .onReceive(NotificationCenter.default.publisher(for: UIApplication.didEnterBackgroundNotification)) { _ in
| `- error: cannot find 'UIApplication' in scope
26 | motionManager.stopMotionUpdates()
27 | }
/Users/admin/builder/spi-builder-workspace/Sources/LookingGlassUI/MotionManagerViewModifier.swift:53:14: error: conformance of 'ModifiedContent<Content, Modifier>' to '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 {
| `- note: add @available attribute to enclosing instance method
53 | self.modifier(MotionManagerViewModifier(updateInterval: updateInterval, disabled: disabled))
| |- error: conformance of 'ModifiedContent<Content, Modifier>' to 'View' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
54 | }
55 | }
/Users/admin/builder/spi-builder-workspace/Sources/LookingGlassUI/MotionManagerViewModifier.swift:53:14: error: 'modifier' 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 {
| `- note: add @available attribute to enclosing instance method
53 | self.modifier(MotionManagerViewModifier(updateInterval: updateInterval, disabled: disabled))
| |- error: 'modifier' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
54 | }
55 | }
[11/20] Compiling LookingGlassUI MotionManagerViewModifier.swift
/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()
<unknown>:0: error: cannot convert value of type 'KeyPath<MotionManager, TimeInterval>' (aka 'KeyPath<MotionManager, Double>') to expected argument type 'ReferenceWritableKeyPath<MotionManager, TimeInterval>' (aka 'ReferenceWritableKeyPath<MotionManager, Double>')
<unknown>:0: error: cannot convert value of type 'KeyPath<MotionManager, Bool>' to expected argument type 'ReferenceWritableKeyPath<MotionManager, Bool>'
<unknown>:0: error: cannot convert value of type 'KeyPath<MotionManager, Quat>' to expected argument type 'ReferenceWritableKeyPath<MotionManager, Quat>'
<unknown>:0: error: cannot convert value of type 'KeyPath<MotionManager, Quat>' to expected argument type 'ReferenceWritableKeyPath<MotionManager, Quat>'
<unknown>:0: error: cannot convert value of type 'KeyPath<MotionManager, Quat?>' to expected argument type 'ReferenceWritableKeyPath<MotionManager, Quat?>'
/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/MotionManager.swift:86:30: error: cannot find 'UIDevice' in scope
84 | /// Changes the device orientation property if the new orientation is supported.
85 | public func changeDeviceOrientation() {
86 | let newOrientation = UIDevice.current.orientation
| `- error: cannot find 'UIDevice' in scope
87 |
88 | guard deviceOrientation != newOrientation else {
/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/MotionManager.swift:93:13: error: setter for 'initialDeviceRotation' 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()
:
83 |
84 | /// Changes the device orientation property if the new orientation is supported.
85 | public func changeDeviceOrientation() {
| `- note: add @available attribute to enclosing instance method
86 | let newOrientation = UIDevice.current.orientation
87 |
:
91 |
92 | if InfoDictionary.supportedOrientations.contains(newOrientation) {
93 | initialDeviceRotation = nil
| |- error: setter for 'initialDeviceRotation' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
94 | self.deviceOrientation = newOrientation
95 | restartMotionUpdatesIfNeeded()
/Users/admin/builder/spi-builder-workspace/Sources/LookingGlassUI/MotionManager.swift:103:13: error: setter for 'updateInterval' 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()
:
99 | /// Sets the update interval to the value specified
100 | /// - Parameter newUpdateInterval: New update interval
101 | public func setUpdateInterval(_ newUpdateInterval: TimeInterval) {
| `- note: add @available attribute to enclosing instance method
102 | if updateInterval != newUpdateInterval {
103 | updateInterval = newUpdateInterval
| |- error: setter for 'updateInterval' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
104 | restartMotionUpdatesIfNeeded()
105 | }
/Users/admin/builder/spi-builder-workspace/Sources/LookingGlassUI/MotionManager.swift:112:13: error: setter for 'disabled' 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()
:
108 | /// Sets the disabled property to the value specified
109 | /// - Parameter newDisabled: New disabled value.
110 | public func setDisabled(_ newDisabled: Bool) {
| `- note: add @available attribute to enclosing instance method
111 | if disabled != newDisabled {
112 | disabled = newDisabled
| |- error: setter for 'disabled' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
113 | restartMotionUpdatesIfNeeded()
114 | }
/Users/admin/builder/spi-builder-workspace/Sources/LookingGlassUI/MotionManager.swift:125:13: error: setter for 'disabled' 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()
:
120 | /// - disabled: If true, motion updates are disabled.
121 | /// - setDeviceOrientation: If true, device orientation is updated.
122 | public func startMotionUpdates(updateInterval: TimeInterval? = nil, disabled: Bool? = nil, setDeviceOrientation: Bool = false) {
| `- note: add @available attribute to enclosing instance method
123 |
124 | if let disabled, self.disabled != disabled {
125 | self.disabled = disabled
| |- error: setter for 'disabled' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
126 | }
127 |
/Users/admin/builder/spi-builder-workspace/Sources/LookingGlassUI/MotionManager.swift:129:13: error: setter for 'updateInterval' 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()
:
120 | /// - disabled: If true, motion updates are disabled.
121 | /// - setDeviceOrientation: If true, device orientation is updated.
122 | public func startMotionUpdates(updateInterval: TimeInterval? = nil, disabled: Bool? = nil, setDeviceOrientation: Bool = false) {
| `- note: add @available attribute to enclosing instance method
123 |
124 | if let disabled, self.disabled != disabled {
:
127 |
128 | if let updateInterval, self.updateInterval != updateInterval {
129 | self.updateInterval = updateInterval
| |- error: setter for 'updateInterval' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
130 | }
131 |
/Users/admin/builder/spi-builder-workspace/Sources/LookingGlassUI/MotionManager.swift:133:34: error: cannot find 'UIDevice' in scope
131 |
132 | if setDeviceOrientation {
133 | let newOrientation = UIDevice.current.orientation
| `- error: cannot find 'UIDevice' in scope
134 | if deviceOrientation != newOrientation,
135 | InfoDictionary.supportedOrientations.contains(newOrientation) {
/Users/admin/builder/spi-builder-workspace/Sources/LookingGlassUI/MotionManager.swift:136:17: error: setter for 'initialDeviceRotation' 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()
:
120 | /// - disabled: If true, motion updates are disabled.
121 | /// - setDeviceOrientation: If true, device orientation is updated.
122 | public func startMotionUpdates(updateInterval: TimeInterval? = nil, disabled: Bool? = nil, setDeviceOrientation: Bool = false) {
| `- note: add @available attribute to enclosing instance method
123 |
124 | if let disabled, self.disabled != disabled {
:
134 | if deviceOrientation != newOrientation,
135 | InfoDictionary.supportedOrientations.contains(newOrientation) {
136 | initialDeviceRotation = nil
| |- error: setter for 'initialDeviceRotation' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
137 | deviceOrientation = newOrientation
138 | }
/Users/admin/builder/spi-builder-workspace/Sources/LookingGlassUI/MotionManager.swift:169:21: error: setter for 'initialDeviceRotation' 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()
:
155 |
156 | /// Toggles motion updates off if on or on if off (and not disabled and update interval greater than zero).
157 | private func restartMotionUpdatesIfNeeded() {
| `- note: add @available attribute to enclosing instance method
158 | stopMotionUpdates()
159 |
:
167 |
168 | if self.initialDeviceRotation == nil {
169 | self.initialDeviceRotation = quaternion
| |- error: setter for 'initialDeviceRotation' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
170 | }
171 |
/Users/admin/builder/spi-builder-workspace/Sources/LookingGlassUI/MotionManager.swift:172:17: error: setter for 'quaternion' 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()
:
155 |
156 | /// Toggles motion updates off if on or on if off (and not disabled and update interval greater than zero).
157 | private func restartMotionUpdatesIfNeeded() {
| `- note: add @available attribute to enclosing instance method
158 | stopMotionUpdates()
159 |
:
170 | }
171 |
172 | self.quaternion = quaternion
| |- error: setter for 'quaternion' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
173 | withAnimation(Animation.linear(duration: self.updateInterval)) {
174 | self.animatedQuaternion = quaternion
/Users/admin/builder/spi-builder-workspace/Sources/LookingGlassUI/MotionManager.swift:173:17: error: 'withAnimation' 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()
:
155 |
156 | /// Toggles motion updates off if on or on if off (and not disabled and update interval greater than zero).
157 | private func restartMotionUpdatesIfNeeded() {
| `- note: add @available attribute to enclosing instance method
158 | stopMotionUpdates()
159 |
:
171 |
172 | self.quaternion = quaternion
173 | withAnimation(Animation.linear(duration: self.updateInterval)) {
| |- error: 'withAnimation' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
174 | self.animatedQuaternion = quaternion
175 | }
/Users/admin/builder/spi-builder-workspace/Sources/LookingGlassUI/MotionManager.swift:173:31: error: 'Animation' 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()
:
155 |
156 | /// Toggles motion updates off if on or on if off (and not disabled and update interval greater than zero).
157 | private func restartMotionUpdatesIfNeeded() {
| `- note: add @available attribute to enclosing instance method
158 | stopMotionUpdates()
159 |
:
171 |
172 | self.quaternion = quaternion
173 | withAnimation(Animation.linear(duration: self.updateInterval)) {
| |- error: 'Animation' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
174 | self.animatedQuaternion = quaternion
175 | }
/Users/admin/builder/spi-builder-workspace/Sources/LookingGlassUI/MotionManager.swift:173:41: error: 'linear(duration:)' 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()
:
155 |
156 | /// Toggles motion updates off if on or on if off (and not disabled and update interval greater than zero).
157 | private func restartMotionUpdatesIfNeeded() {
| `- note: add @available attribute to enclosing instance method
158 | stopMotionUpdates()
159 |
:
171 |
172 | self.quaternion = quaternion
173 | withAnimation(Animation.linear(duration: self.updateInterval)) {
| |- error: 'linear(duration:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
174 | self.animatedQuaternion = quaternion
175 | }
/Users/admin/builder/spi-builder-workspace/Sources/LookingGlassUI/MotionManager.swift:174:21: error: setter for 'animatedQuaternion' 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()
:
155 |
156 | /// Toggles motion updates off if on or on if off (and not disabled and update interval greater than zero).
157 | private func restartMotionUpdatesIfNeeded() {
| `- note: add @available attribute to enclosing instance method
158 | stopMotionUpdates()
159 |
:
172 | self.quaternion = quaternion
173 | withAnimation(Animation.linear(duration: self.updateInterval)) {
174 | self.animatedQuaternion = quaternion
| |- error: setter for 'animatedQuaternion' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
175 | }
176 |
/Users/admin/builder/spi-builder-workspace/Sources/LookingGlassUI/MotionManager.swift:188:9: error: 'Color' 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 {
| `- note: add @available attribute to enclosing static property
188 | Color.blue
| |- error: 'Color' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
189 | .motionManager(updateInterval: 0)
190 | }
/Users/admin/builder/spi-builder-workspace/Sources/LookingGlassUI/MotionManager.swift:188:15: error: 'blue' 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 {
| `- note: add @available attribute to enclosing static property
188 | Color.blue
| |- error: 'blue' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
189 | .motionManager(updateInterval: 0)
190 | }
/Users/admin/builder/spi-builder-workspace/Sources/LookingGlassUI/MotionManager.swift:189:14: error: conformance of 'Color' to '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 {
| `- note: add @available attribute to enclosing static property
188 | Color.blue
189 | .motionManager(updateInterval: 0)
| |- error: conformance of 'Color' to 'View' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
190 | }
191 | }
/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/MotionManagerViewModifier.swift:19:66: error: cannot find 'UIDevice' in scope
17 | content
18 | .environmentObject(motionManager)
19 | .onReceive(NotificationCenter.default.publisher(for: UIDevice.orientationDidChangeNotification)) { _ in
| `- error: cannot find 'UIDevice' in scope
20 | motionManager.changeDeviceOrientation()
21 | }
/Users/admin/builder/spi-builder-workspace/Sources/LookingGlassUI/MotionManagerViewModifier.swift:22:66: error: cannot find 'UIApplication' in scope
20 | motionManager.changeDeviceOrientation()
21 | }
22 | .onReceive(NotificationCenter.default.publisher(for: UIApplication.willEnterForegroundNotification)) { _ in
| `- error: cannot find 'UIApplication' in scope
23 | motionManager.startMotionUpdates(updateInterval: updateInterval, disabled: disabled, setDeviceOrientation: true)
24 | }
/Users/admin/builder/spi-builder-workspace/Sources/LookingGlassUI/MotionManagerViewModifier.swift:25:66: error: cannot find 'UIApplication' in scope
23 | motionManager.startMotionUpdates(updateInterval: updateInterval, disabled: disabled, setDeviceOrientation: true)
24 | }
25 | .onReceive(NotificationCenter.default.publisher(for: UIApplication.didEnterBackgroundNotification)) { _ in
| `- error: cannot find 'UIApplication' in scope
26 | motionManager.stopMotionUpdates()
27 | }
/Users/admin/builder/spi-builder-workspace/Sources/LookingGlassUI/MotionManagerViewModifier.swift:53:14: error: conformance of 'ModifiedContent<Content, Modifier>' to '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 {
| `- note: add @available attribute to enclosing instance method
53 | self.modifier(MotionManagerViewModifier(updateInterval: updateInterval, disabled: disabled))
| |- error: conformance of 'ModifiedContent<Content, Modifier>' to 'View' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
54 | }
55 | }
/Users/admin/builder/spi-builder-workspace/Sources/LookingGlassUI/MotionManagerViewModifier.swift:53:14: error: 'modifier' 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 {
| `- note: add @available attribute to enclosing instance method
53 | self.modifier(MotionManagerViewModifier(updateInterval: updateInterval, disabled: disabled))
| |- error: 'modifier' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
54 | }
55 | }
[12/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 | }
[13/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 | }
[14/20] Compiling LookingGlassUI ParallaxView.swift
/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/ParallaxView.swift:39:14: error: 'offset' 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 {
| `- note: add @available attribute to enclosing instance method
38 | content
39 | .offset(parallaxOffset)
| |- error: 'offset' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
40 | }
41 | }
/Users/admin/builder/spi-builder-workspace/Sources/LookingGlassUI/ParallaxView.swift:53:9: error: conformance of 'ModifiedContent<Content, Modifier>' to '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 {
| `- note: add @available attribute to enclosing instance method
53 | modifier(ParallaxViewModifier(multiplier: multiplier, maxOffset: maxOffset))
| |- error: conformance of 'ModifiedContent<Content, Modifier>' to 'View' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
54 | }
55 | }
/Users/admin/builder/spi-builder-workspace/Sources/LookingGlassUI/ParallaxView.swift:53:9: error: 'modifier' 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 {
| `- note: add @available attribute to enclosing instance method
53 | modifier(ParallaxViewModifier(multiplier: multiplier, maxOffset: maxOffset))
| |- error: 'modifier' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
54 | }
55 | }
[15/20] Compiling LookingGlassUI Quat+CoreMotion.swift
/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/ParallaxView.swift:39:14: error: 'offset' 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 {
| `- note: add @available attribute to enclosing instance method
38 | content
39 | .offset(parallaxOffset)
| |- error: 'offset' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
40 | }
41 | }
/Users/admin/builder/spi-builder-workspace/Sources/LookingGlassUI/ParallaxView.swift:53:9: error: conformance of 'ModifiedContent<Content, Modifier>' to '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 {
| `- note: add @available attribute to enclosing instance method
53 | modifier(ParallaxViewModifier(multiplier: multiplier, maxOffset: maxOffset))
| |- error: conformance of 'ModifiedContent<Content, Modifier>' to 'View' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
54 | }
55 | }
/Users/admin/builder/spi-builder-workspace/Sources/LookingGlassUI/ParallaxView.swift:53:9: error: 'modifier' 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 {
| `- note: add @available attribute to enclosing instance method
53 | modifier(ParallaxViewModifier(multiplier: multiplier, maxOffset: maxOffset))
| |- error: 'modifier' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
54 | }
55 | }
[16/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 |
[17/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 |
[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