Build Information
Failed to build MijickNavigationView, reference main (273822
), with Swift 6.0 for macOS (SPM) on 5 Nov 2024 11:27:57 UTC.
Build Command
env DEVELOPER_DIR=/Applications/Xcode-16.1.0.app xcrun swift build --arch arm64 -Xswiftc -Xfrontend -Xswiftc -stats-output-dir -Xswiftc -Xfrontend -Xswiftc .stats -Xswiftc -strict-concurrency=complete
Build Log
95 | func onDragGestureEndedWithoutReturn() { withAnimation(getAnimation()) {
| `- note: add @available attribute to enclosing instance method
96 | NavigationManager.setTransitionType(.push)
97 | gestureData.isActive = false
| |- error: cannot pass as inout because setter for 'gestureData' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
98 | gestureData.translation = 0
99 | }}
/Users/admin/builder/spi-builder-workspace/Sources/Internal/Views/NavigationView.swift:98:9: error: cannot pass as inout because setter for 'gestureData' is only available in macOS 10.15 or newer
71 | }
72 | }
73 | private extension NavigationView {
| `- note: add @available attribute to enclosing extension
74 | func canUseDragGesture() -> Bool {
75 | guard stack.views.count > 1 else { return false }
:
93 | func shouldDragGestureReturn() -> Bool { gestureData.translation > screenManager.size.width * config.backGestureThreshold }
94 | func onDragGestureEndedWithReturn() { NavigationManager.pop() }
95 | func onDragGestureEndedWithoutReturn() { withAnimation(getAnimation()) {
| `- note: add @available attribute to enclosing instance method
96 | NavigationManager.setTransitionType(.push)
97 | gestureData.isActive = false
98 | gestureData.translation = 0
| |- error: cannot pass as inout because setter for 'gestureData' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
99 | }}
100 | }
/Users/admin/builder/spi-builder-workspace/Sources/Internal/Views/NavigationView.swift:198:114: error: 'zero' is only available in macOS 10.15 or newer
195 |
196 | // MARK: - Calculating Rotation
197 | private extension NavigationView {
| `- note: add @available attribute to enclosing extension
198 | func getRotationAngle(_ view: AnyNavigatableView) -> Angle { guard canCalculateRotation(view) else { return .zero }
| | |- error: 'zero' is only available in macOS 10.15 or newer
| | `- note: add 'if #available' version check
| `- note: add @available attribute to enclosing instance method
199 | let angle = calculateRotationAngleValue(view)
200 | return angle
/Users/admin/builder/spi-builder-workspace/Sources/Internal/Views/NavigationView.swift:239:20: error: 'easeInOut(duration:)' is only available in macOS 10.15 or newer
235 |
236 | // MARK: - Animation
237 | private extension NavigationView {
| `- note: add @available attribute to enclosing extension
238 | func getAnimation() -> Animation { switch stack.transitionAnimation {
| `- note: add @available attribute to enclosing instance method
239 | case .no: .easeInOut(duration: 0)
| |- error: 'easeInOut(duration:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
240 | case .dissolve, .horizontalSlide, .verticalSlide, .scale: .interpolatingSpring(mass: 3, stiffness: 1000, damping: 500, initialVelocity: 6.4)
241 | case .cubeRotation: .easeOut(duration: 0.52)
/Users/admin/builder/spi-builder-workspace/Sources/Internal/Views/NavigationView.swift:240:68: error: 'interpolatingSpring(mass:stiffness:damping:initialVelocity:)' is only available in macOS 10.15 or newer
235 |
236 | // MARK: - Animation
237 | private extension NavigationView {
| `- note: add @available attribute to enclosing extension
238 | func getAnimation() -> Animation { switch stack.transitionAnimation {
| `- note: add @available attribute to enclosing instance method
239 | case .no: .easeInOut(duration: 0)
240 | case .dissolve, .horizontalSlide, .verticalSlide, .scale: .interpolatingSpring(mass: 3, stiffness: 1000, damping: 500, initialVelocity: 6.4)
| |- error: 'interpolatingSpring(mass:stiffness:damping:initialVelocity:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
241 | case .cubeRotation: .easeOut(duration: 0.52)
242 | }}
/Users/admin/builder/spi-builder-workspace/Sources/Internal/Views/NavigationView.swift:241:30: error: 'easeOut(duration:)' is only available in macOS 10.15 or newer
235 |
236 | // MARK: - Animation
237 | private extension NavigationView {
| `- note: add @available attribute to enclosing extension
238 | func getAnimation() -> Animation { switch stack.transitionAnimation {
| `- note: add @available attribute to enclosing instance method
239 | case .no: .easeInOut(duration: 0)
240 | case .dissolve, .horizontalSlide, .verticalSlide, .scale: .interpolatingSpring(mass: 3, stiffness: 1000, damping: 500, initialVelocity: 6.4)
241 | case .cubeRotation: .easeOut(duration: 0.52)
| |- error: 'easeOut(duration:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
242 | }}
243 | }
/Users/admin/builder/spi-builder-workspace/Sources/Internal/Views/NavigationView.swift:259:35: error: setter for 'temporaryViews' is only available in macOS 10.15 or newer
252 | }
253 | }
254 | private extension NavigationView {
| `- note: add @available attribute to enclosing extension
255 | func blockTransitions() {
256 | NavigationManager.blockTransitions(true)
257 | }
258 | func updateTemporaryViews(_ views: [AnyNavigatableView]) { switch stack.transitionType {
| `- note: add @available attribute to enclosing instance method
259 | case .push, .replaceRoot: temporaryViews = views
| |- error: setter for 'temporaryViews' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
260 | case .pop: temporaryViews = views + [temporaryViews.last].compactMap { $0 }
261 | }}
/Users/admin/builder/spi-builder-workspace/Sources/Internal/Views/NavigationView.swift:260:20: error: setter for 'temporaryViews' is only available in macOS 10.15 or newer
252 | }
253 | }
254 | private extension NavigationView {
| `- note: add @available attribute to enclosing extension
255 | func blockTransitions() {
256 | NavigationManager.blockTransitions(true)
257 | }
258 | func updateTemporaryViews(_ views: [AnyNavigatableView]) { switch stack.transitionType {
| `- note: add @available attribute to enclosing instance method
259 | case .push, .replaceRoot: temporaryViews = views
260 | case .pop: temporaryViews = views + [temporaryViews.last].compactMap { $0 }
| |- error: setter for 'temporaryViews' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
261 | }}
262 | func resetOffsetAndOpacity() {
/Users/admin/builder/spi-builder-workspace/Sources/Internal/Views/NavigationView.swift:265:9: error: cannot pass as inout because setter for 'animatableData' is only available in macOS 10.15 or newer
252 | }
253 | }
254 | private extension NavigationView {
| `- note: add @available attribute to enclosing extension
255 | func blockTransitions() {
256 | NavigationManager.blockTransitions(true)
:
260 | case .pop: temporaryViews = views + [temporaryViews.last].compactMap { $0 }
261 | }}
262 | func resetOffsetAndOpacity() {
| `- note: add @available attribute to enclosing instance method
263 | let animatableOffsetFactor = stack.transitionType == .push ? 1.0 : -1.0
264 |
265 | animatableData.offset = maxOffsetValue * animatableOffsetFactor + gestureData.translation
| |- error: cannot pass as inout because setter for 'animatableData' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
266 | animatableData.opacity = gestureProgress
267 | animatableData.rotation = calculateNewRotationOnReset()
/Users/admin/builder/spi-builder-workspace/Sources/Internal/Views/NavigationView.swift:266:9: error: cannot pass as inout because setter for 'animatableData' is only available in macOS 10.15 or newer
252 | }
253 | }
254 | private extension NavigationView {
| `- note: add @available attribute to enclosing extension
255 | func blockTransitions() {
256 | NavigationManager.blockTransitions(true)
:
260 | case .pop: temporaryViews = views + [temporaryViews.last].compactMap { $0 }
261 | }}
262 | func resetOffsetAndOpacity() {
| `- note: add @available attribute to enclosing instance method
263 | let animatableOffsetFactor = stack.transitionType == .push ? 1.0 : -1.0
264 |
265 | animatableData.offset = maxOffsetValue * animatableOffsetFactor + gestureData.translation
266 | animatableData.opacity = gestureProgress
| |- error: cannot pass as inout because setter for 'animatableData' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
267 | animatableData.rotation = calculateNewRotationOnReset()
268 | animatableData.scale = scaleFactor * gestureProgress
/Users/admin/builder/spi-builder-workspace/Sources/Internal/Views/NavigationView.swift:267:9: error: cannot pass as inout because setter for 'animatableData' is only available in macOS 10.15 or newer
252 | }
253 | }
254 | private extension NavigationView {
| `- note: add @available attribute to enclosing extension
255 | func blockTransitions() {
256 | NavigationManager.blockTransitions(true)
:
260 | case .pop: temporaryViews = views + [temporaryViews.last].compactMap { $0 }
261 | }}
262 | func resetOffsetAndOpacity() {
| `- note: add @available attribute to enclosing instance method
263 | let animatableOffsetFactor = stack.transitionType == .push ? 1.0 : -1.0
264 |
265 | animatableData.offset = maxOffsetValue * animatableOffsetFactor + gestureData.translation
266 | animatableData.opacity = gestureProgress
267 | animatableData.rotation = calculateNewRotationOnReset()
| |- error: cannot pass as inout because setter for 'animatableData' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
268 | animatableData.scale = scaleFactor * gestureProgress
269 | gestureData.isActive = false
/Users/admin/builder/spi-builder-workspace/Sources/Internal/Views/NavigationView.swift:268:9: error: cannot pass as inout because setter for 'animatableData' is only available in macOS 10.15 or newer
252 | }
253 | }
254 | private extension NavigationView {
| `- note: add @available attribute to enclosing extension
255 | func blockTransitions() {
256 | NavigationManager.blockTransitions(true)
:
260 | case .pop: temporaryViews = views + [temporaryViews.last].compactMap { $0 }
261 | }}
262 | func resetOffsetAndOpacity() {
| `- note: add @available attribute to enclosing instance method
263 | let animatableOffsetFactor = stack.transitionType == .push ? 1.0 : -1.0
264 |
:
266 | animatableData.opacity = gestureProgress
267 | animatableData.rotation = calculateNewRotationOnReset()
268 | animatableData.scale = scaleFactor * gestureProgress
| |- error: cannot pass as inout because setter for 'animatableData' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
269 | gestureData.isActive = false
270 | gestureData.translation = 0
/Users/admin/builder/spi-builder-workspace/Sources/Internal/Views/NavigationView.swift:269:9: error: cannot pass as inout because setter for 'gestureData' is only available in macOS 10.15 or newer
252 | }
253 | }
254 | private extension NavigationView {
| `- note: add @available attribute to enclosing extension
255 | func blockTransitions() {
256 | NavigationManager.blockTransitions(true)
:
260 | case .pop: temporaryViews = views + [temporaryViews.last].compactMap { $0 }
261 | }}
262 | func resetOffsetAndOpacity() {
| `- note: add @available attribute to enclosing instance method
263 | let animatableOffsetFactor = stack.transitionType == .push ? 1.0 : -1.0
264 |
:
267 | animatableData.rotation = calculateNewRotationOnReset()
268 | animatableData.scale = scaleFactor * gestureProgress
269 | gestureData.isActive = false
| |- error: cannot pass as inout because setter for 'gestureData' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
270 | gestureData.translation = 0
271 | }
/Users/admin/builder/spi-builder-workspace/Sources/Internal/Views/NavigationView.swift:270:9: error: cannot pass as inout because setter for 'gestureData' is only available in macOS 10.15 or newer
252 | }
253 | }
254 | private extension NavigationView {
| `- note: add @available attribute to enclosing extension
255 | func blockTransitions() {
256 | NavigationManager.blockTransitions(true)
:
260 | case .pop: temporaryViews = views + [temporaryViews.last].compactMap { $0 }
261 | }}
262 | func resetOffsetAndOpacity() {
| `- note: add @available attribute to enclosing instance method
263 | let animatableOffsetFactor = stack.transitionType == .push ? 1.0 : -1.0
264 |
:
268 | animatableData.scale = scaleFactor * gestureProgress
269 | gestureData.isActive = false
270 | gestureData.translation = 0
| |- error: cannot pass as inout because setter for 'gestureData' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
271 | }
272 | func animateOffsetAndOpacityChange() { withAnimation(getAnimation()) {
/Users/admin/builder/spi-builder-workspace/Sources/Internal/Views/NavigationView.swift:272:44: error: 'withAnimation' is only available in macOS 10.15 or newer
252 | }
253 | }
254 | private extension NavigationView {
| `- note: add @available attribute to enclosing extension
255 | func blockTransitions() {
256 | NavigationManager.blockTransitions(true)
:
270 | gestureData.translation = 0
271 | }
272 | func animateOffsetAndOpacityChange() { withAnimation(getAnimation()) {
| | |- error: 'withAnimation' is only available in macOS 10.15 or newer
| | `- note: add 'if #available' version check
| `- note: add @available attribute to enclosing instance method
273 | animatableData.offset = 0
274 | animatableData.opacity = 1
/Users/admin/builder/spi-builder-workspace/Sources/Internal/Views/NavigationView.swift:273:9: error: cannot pass as inout because setter for 'animatableData' is only available in macOS 10.15 or newer
252 | }
253 | }
254 | private extension NavigationView {
| `- note: add @available attribute to enclosing extension
255 | func blockTransitions() {
256 | NavigationManager.blockTransitions(true)
:
270 | gestureData.translation = 0
271 | }
272 | func animateOffsetAndOpacityChange() { withAnimation(getAnimation()) {
| `- note: add @available attribute to enclosing instance method
273 | animatableData.offset = 0
| |- error: cannot pass as inout because setter for 'animatableData' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
274 | animatableData.opacity = 1
275 | animatableData.rotation = stack.transitionType == .push ? 1 : 0
/Users/admin/builder/spi-builder-workspace/Sources/Internal/Views/NavigationView.swift:274:9: error: cannot pass as inout because setter for 'animatableData' is only available in macOS 10.15 or newer
252 | }
253 | }
254 | private extension NavigationView {
| `- note: add @available attribute to enclosing extension
255 | func blockTransitions() {
256 | NavigationManager.blockTransitions(true)
:
270 | gestureData.translation = 0
271 | }
272 | func animateOffsetAndOpacityChange() { withAnimation(getAnimation()) {
| `- note: add @available attribute to enclosing instance method
273 | animatableData.offset = 0
274 | animatableData.opacity = 1
| |- error: cannot pass as inout because setter for 'animatableData' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
275 | animatableData.rotation = stack.transitionType == .push ? 1 : 0
276 | animatableData.scale = scaleFactor
/Users/admin/builder/spi-builder-workspace/Sources/Internal/Views/NavigationView.swift:275:9: error: cannot pass as inout because setter for 'animatableData' is only available in macOS 10.15 or newer
252 | }
253 | }
254 | private extension NavigationView {
| `- note: add @available attribute to enclosing extension
255 | func blockTransitions() {
256 | NavigationManager.blockTransitions(true)
:
270 | gestureData.translation = 0
271 | }
272 | func animateOffsetAndOpacityChange() { withAnimation(getAnimation()) {
| `- note: add @available attribute to enclosing instance method
273 | animatableData.offset = 0
274 | animatableData.opacity = 1
275 | animatableData.rotation = stack.transitionType == .push ? 1 : 0
| |- error: cannot pass as inout because setter for 'animatableData' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
276 | animatableData.scale = scaleFactor
277 | }}
/Users/admin/builder/spi-builder-workspace/Sources/Internal/Views/NavigationView.swift:276:9: error: cannot pass as inout because setter for 'animatableData' is only available in macOS 10.15 or newer
252 | }
253 | }
254 | private extension NavigationView {
| `- note: add @available attribute to enclosing extension
255 | func blockTransitions() {
256 | NavigationManager.blockTransitions(true)
:
270 | gestureData.translation = 0
271 | }
272 | func animateOffsetAndOpacityChange() { withAnimation(getAnimation()) {
| `- note: add @available attribute to enclosing instance method
273 | animatableData.offset = 0
274 | animatableData.opacity = 1
275 | animatableData.rotation = stack.transitionType == .push ? 1 : 0
276 | animatableData.scale = scaleFactor
| |- error: cannot pass as inout because setter for 'animatableData' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
277 | }}
278 | }
/Users/admin/builder/spi-builder-workspace/Sources/Internal/Views/NavigationView.swift:296:9: error: setter for 'temporaryViews' is only available in macOS 10.15 or newer
292 | }
293 | }
294 | private extension NavigationView {
| `- note: add @available attribute to enclosing extension
295 | func resetViewOnAnimationCompleted() { guard stack.transitionType == .pop else { return }
| `- note: add @available attribute to enclosing instance method
296 | temporaryViews = stack.views
| |- error: setter for 'temporaryViews' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
297 | animatableData.offset = 0
298 | animatableData.rotation = 1
/Users/admin/builder/spi-builder-workspace/Sources/Internal/Views/NavigationView.swift:297:9: error: cannot pass as inout because setter for 'animatableData' is only available in macOS 10.15 or newer
292 | }
293 | }
294 | private extension NavigationView {
| `- note: add @available attribute to enclosing extension
295 | func resetViewOnAnimationCompleted() { guard stack.transitionType == .pop else { return }
| `- note: add @available attribute to enclosing instance method
296 | temporaryViews = stack.views
297 | animatableData.offset = 0
| |- error: cannot pass as inout because setter for 'animatableData' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
298 | animatableData.rotation = 1
299 | gestureData.translation = 0
/Users/admin/builder/spi-builder-workspace/Sources/Internal/Views/NavigationView.swift:298:9: error: cannot pass as inout because setter for 'animatableData' is only available in macOS 10.15 or newer
292 | }
293 | }
294 | private extension NavigationView {
| `- note: add @available attribute to enclosing extension
295 | func resetViewOnAnimationCompleted() { guard stack.transitionType == .pop else { return }
| `- note: add @available attribute to enclosing instance method
296 | temporaryViews = stack.views
297 | animatableData.offset = 0
298 | animatableData.rotation = 1
| |- error: cannot pass as inout because setter for 'animatableData' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
299 | gestureData.translation = 0
300 | }
/Users/admin/builder/spi-builder-workspace/Sources/Internal/Views/NavigationView.swift:299:9: error: cannot pass as inout because setter for 'gestureData' is only available in macOS 10.15 or newer
292 | }
293 | }
294 | private extension NavigationView {
| `- note: add @available attribute to enclosing extension
295 | func resetViewOnAnimationCompleted() { guard stack.transitionType == .pop else { return }
| `- note: add @available attribute to enclosing instance method
296 | temporaryViews = stack.views
297 | animatableData.offset = 0
298 | animatableData.rotation = 1
299 | gestureData.translation = 0
| |- error: cannot pass as inout because setter for 'gestureData' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
300 | }
301 | func resetTransitionType() {
/Users/admin/builder/spi-builder-workspace/Sources/Public/Public+NavigatableView.swift:15:84: error: 'View' is only available in macOS 10.15 or newer
12 |
13 | // MARK: - Initialising
14 | public extension NavigatableView {
| `- note: add @available attribute to enclosing extension
15 | func implementNavigationView(config: NavigationGlobalConfig = .init()) -> some View { GeometryReader { reader in
| | `- error: 'View' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing instance method
16 | NavigationView(config: config)
17 | .onAppear { ScreenManager.update(reader); NavigationManager.setRoot(self) }
/Users/admin/builder/spi-builder-workspace/Sources/Public/Public+NavigatableView.swift:37:62: error: 'ObservableObject' is only available in macOS 10.15 or newer
27 |
28 | // MARK: - Presenting Views
29 | public extension NavigatableView {
| `- note: add @available attribute to enclosing extension
30 | /// Pushes a new view. Stacks previous one
31 | @discardableResult func push(with animation: TransitionAnimation) -> some NavigatableView { NavigationManager.performOperation(.insert(self, animation)); return self }
:
35 |
36 | /// Supplies an observable object to a view’s hierarchy
37 | @discardableResult func environmentObject(_ object: some ObservableObject) -> any NavigatableView { AnyNavigatableView(self, object) }
| | `- error: 'ObservableObject' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing instance method
38 | }
39 |
/Users/admin/builder/spi-builder-workspace/Sources/Public/Public+NavigatableView.swift:37:62: error: 'ObservableObject' is only available in macOS 10.15 or newer
27 |
28 | // MARK: - Presenting Views
29 | public extension NavigatableView {
| `- note: add @available attribute to enclosing extension
30 | /// Pushes a new view. Stacks previous one
31 | @discardableResult func push(with animation: TransitionAnimation) -> some NavigatableView { NavigationManager.performOperation(.insert(self, animation)); return self }
:
35 |
36 | /// Supplies an observable object to a view’s hierarchy
37 | @discardableResult func environmentObject(_ object: some ObservableObject) -> any NavigatableView { AnyNavigatableView(self, object) }
| | `- error: 'ObservableObject' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing instance method
38 | }
39 |
/Users/admin/builder/spi-builder-workspace/Sources/Public/Public+NavigatableView.swift:15:91: error: 'GeometryReader' is only available in macOS 10.15 or newer
12 |
13 | // MARK: - Initialising
14 | public extension NavigatableView {
| `- note: add @available attribute to enclosing extension
15 | func implementNavigationView(config: NavigationGlobalConfig = .init()) -> some View { GeometryReader { reader in
| | |- error: 'GeometryReader' is only available in macOS 10.15 or newer
| | `- note: add 'if #available' version check
| `- note: add @available attribute to enclosing instance method
16 | NavigationView(config: config)
17 | .onAppear { ScreenManager.update(reader); NavigationManager.setRoot(self) }
/Users/admin/builder/spi-builder-workspace/Sources/Public/Public+NavigatableView.swift:17:14: error: 'onAppear(perform:)' is only available in macOS 10.15 or newer
12 |
13 | // MARK: - Initialising
14 | public extension NavigatableView {
| `- note: add @available attribute to enclosing extension
15 | func implementNavigationView(config: NavigationGlobalConfig = .init()) -> some View { GeometryReader { reader in
| `- note: add @available attribute to enclosing instance method
16 | NavigationView(config: config)
17 | .onAppear { ScreenManager.update(reader); NavigationManager.setRoot(self) }
| |- error: 'onAppear(perform:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
18 | .onChange(of: reader.size) { _ in ScreenManager.update(reader) }
19 | .onChange(of: reader.safeAreaInsets) { _ in ScreenManager.update(reader) }
/Users/admin/builder/spi-builder-workspace/Sources/Public/Public+NavigatableView.swift:18:14: error: 'onChange(of:perform:)' is only available in macOS 11.0 or newer
12 |
13 | // MARK: - Initialising
14 | public extension NavigatableView {
| `- note: add @available attribute to enclosing extension
15 | func implementNavigationView(config: NavigationGlobalConfig = .init()) -> some View { GeometryReader { reader in
| `- note: add @available attribute to enclosing instance method
16 | NavigationView(config: config)
17 | .onAppear { ScreenManager.update(reader); NavigationManager.setRoot(self) }
18 | .onChange(of: reader.size) { _ in ScreenManager.update(reader) }
| |- error: 'onChange(of:perform:)' is only available in macOS 11.0 or newer
| `- note: add 'if #available' version check
19 | .onChange(of: reader.safeAreaInsets) { _ in ScreenManager.update(reader) }
20 | }}
/Users/admin/builder/spi-builder-workspace/Sources/Public/Public+NavigatableView.swift:19:14: error: 'onChange(of:perform:)' is only available in macOS 11.0 or newer
12 |
13 | // MARK: - Initialising
14 | public extension NavigatableView {
| `- note: add @available attribute to enclosing extension
15 | func implementNavigationView(config: NavigationGlobalConfig = .init()) -> some View { GeometryReader { reader in
| `- note: add @available attribute to enclosing instance method
16 | NavigationView(config: config)
17 | .onAppear { ScreenManager.update(reader); NavigationManager.setRoot(self) }
18 | .onChange(of: reader.size) { _ in ScreenManager.update(reader) }
19 | .onChange(of: reader.safeAreaInsets) { _ in ScreenManager.update(reader) }
| |- error: 'onChange(of:perform:)' is only available in macOS 11.0 or newer
| `- note: add 'if #available' version check
20 | }}
21 | }
/Users/admin/builder/spi-builder-workspace/Sources/Public/Public+NavigatableView.swift:16:9: warning: call to main actor-isolated initializer 'init(config:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
14 | public extension NavigatableView {
15 | func implementNavigationView(config: NavigationGlobalConfig = .init()) -> some View { GeometryReader { reader in
16 | NavigationView(config: config)
| `- warning: call to main actor-isolated initializer 'init(config:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
17 | .onAppear { ScreenManager.update(reader); NavigationManager.setRoot(self) }
18 | .onChange(of: reader.size) { _ in ScreenManager.update(reader) }
/Users/admin/builder/spi-builder-workspace/Sources/Internal/Views/NavigationView.swift:13:8: note: calls to initializer 'init(config:)' from outside of its actor context are implicitly asynchronous
11 | import SwiftUI
12 |
13 | struct NavigationView: View {
| `- note: calls to initializer 'init(config:)' from outside of its actor context are implicitly asynchronous
14 | let config: NavigationGlobalConfig
15 | @ObservedObject private var stack: NavigationManager = .shared
/Users/admin/builder/spi-builder-workspace/Sources/Public/Public+NavigatableView.swift:37:105: warning: call to main actor-isolated initializer 'init(_:_:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
35 |
36 | /// Supplies an observable object to a view’s hierarchy
37 | @discardableResult func environmentObject(_ object: some ObservableObject) -> any NavigatableView { AnyNavigatableView(self, object) }
| | `- warning: call to main actor-isolated initializer 'init(_:_:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
| `- note: add '@MainActor' to make instance method 'environmentObject' part of global actor 'MainActor'
38 | }
39 |
/Users/admin/builder/spi-builder-workspace/Sources/Internal/Type Erasers/AnyNavigatableView.swift:26:5: note: calls to initializer 'init(_:_:)' from outside of its actor context are implicitly asynchronous
24 | self._configure = view.configure
25 | }
26 | init(_ view: some NavigatableView, _ environmentObject: some ObservableObject) {
| `- note: calls to initializer 'init(_:_:)' from outside of its actor context are implicitly asynchronous
27 | self.id = view.id
28 | self.animation = .no
[9/22] Compiling MijickNavigationView Public+NavigationGlobalConfig.swift
/Users/admin/builder/spi-builder-workspace/Sources/Public/Public+NavigationGlobalConfig.swift:19:34: error: 'Color' is only available in macOS 10.15 or newer
11 | import SwiftUI
12 |
13 | public struct NavigationGlobalConfig { public init() {}
| `- note: add @available attribute to enclosing struct
14 | // MARK: Navigation Gestures
15 | public var backGesturePosition: NavigationBackGesture.Position = .anywhere
:
17 |
18 | // MARK: Others
19 | public var backgroundColour: Color = .clear
| `- error: 'Color' is only available in macOS 10.15 or newer
20 | }
21 |
/Users/admin/builder/spi-builder-workspace/Sources/Public/Public+NavigationGlobalConfig.swift:19:43: error: 'clear' is only available in macOS 10.15 or newer
11 | import SwiftUI
12 |
13 | public struct NavigationGlobalConfig { public init() {}
| `- note: add @available attribute to enclosing struct
14 | // MARK: Navigation Gestures
15 | public var backGesturePosition: NavigationBackGesture.Position = .anywhere
:
17 |
18 | // MARK: Others
19 | public var backgroundColour: Color = .clear
| `- error: 'clear' is only available in macOS 10.15 or newer
20 | }
21 |
[10/22] Compiling MijickNavigationView Public+NavigationManager.swift
/Users/admin/builder/spi-builder-workspace/Sources/Public/Public+NavigationGlobalConfig.swift:19:34: error: 'Color' is only available in macOS 10.15 or newer
11 | import SwiftUI
12 |
13 | public struct NavigationGlobalConfig { public init() {}
| `- note: add @available attribute to enclosing struct
14 | // MARK: Navigation Gestures
15 | public var backGesturePosition: NavigationBackGesture.Position = .anywhere
:
17 |
18 | // MARK: Others
19 | public var backgroundColour: Color = .clear
| `- error: 'Color' is only available in macOS 10.15 or newer
20 | }
21 |
/Users/admin/builder/spi-builder-workspace/Sources/Public/Public+NavigationGlobalConfig.swift:19:43: error: 'clear' is only available in macOS 10.15 or newer
11 | import SwiftUI
12 |
13 | public struct NavigationGlobalConfig { public init() {}
| `- note: add @available attribute to enclosing struct
14 | // MARK: Navigation Gestures
15 | public var backGesturePosition: NavigationBackGesture.Position = .anywhere
:
17 |
18 | // MARK: Others
19 | public var backgroundColour: Color = .clear
| `- error: 'clear' is only available in macOS 10.15 or newer
20 | }
21 |
error: emit-module command failed with exit code 1 (use -v to see invocation)
[11/22] Emitting module MijickNavigationView
/Users/admin/builder/spi-builder-workspace/Sources/Internal/Extensions/Animation++.swift:15:46: error: 'Animation' is only available in macOS 10.15 or newer
12 | import SwiftUI
13 |
14 | extension Animation {
| `- note: add @available attribute to enclosing extension
15 | static func keyboard(withDelay: Bool) -> Animation { .easeOut(duration: 0.25).delay(withDelay ? 0.1 : 0) }
| | `- error: 'Animation' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing static method
16 | }
17 |
/Users/admin/builder/spi-builder-workspace/Sources/Internal/Extensions/Animation++.swift:14:11: error: 'Animation' is only available in macOS 10.15 or newer
12 | import SwiftUI
13 |
14 | extension Animation {
| | `- error: 'Animation' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing extension
15 | static func keyboard(withDelay: Bool) -> Animation { .easeOut(duration: 0.25).delay(withDelay ? 0.1 : 0) }
16 | }
/Users/admin/builder/spi-builder-workspace/Sources/Internal/Managers/KeyboardManager.swift:16:6: error: 'Published' is only available in macOS 10.15 or newer
13 | import Combine
14 |
15 | class KeyboardManager: ObservableObject {
| `- note: add @available attribute to enclosing class
16 | @Published private(set) var height: CGFloat = .zero
| `- error: 'Published' is only available in macOS 10.15 or newer
17 | private var subscription: [AnyCancellable] = []
18 |
/Users/admin/builder/spi-builder-workspace/Sources/Internal/Managers/KeyboardManager.swift:17:32: error: 'AnyCancellable' is only available in macOS 10.15 or newer
13 | import Combine
14 |
15 | class KeyboardManager: ObservableObject {
| `- note: add @available attribute to enclosing class
16 | @Published private(set) var height: CGFloat = .zero
17 | private var subscription: [AnyCancellable] = []
| `- error: 'AnyCancellable' is only available in macOS 10.15 or newer
18 |
19 | static let shared: KeyboardManager = .init()
/Users/admin/builder/spi-builder-workspace/Sources/Internal/Managers/KeyboardManager.swift:19:16: warning: static property 'shared' is not concurrency-safe because non-'Sendable' type 'KeyboardManager' may have shared mutable state; this is an error in the Swift 6 language mode
13 | import Combine
14 |
15 | class KeyboardManager: ObservableObject {
| `- note: class 'KeyboardManager' does not conform to the 'Sendable' protocol
16 | @Published private(set) var height: CGFloat = .zero
17 | private var subscription: [AnyCancellable] = []
18 |
19 | static let shared: KeyboardManager = .init()
| |- warning: static property 'shared' is not concurrency-safe because non-'Sendable' type 'KeyboardManager' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'shared' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
20 | private init() { subscribeToKeyboardEvents() }
21 | }
/Users/admin/builder/spi-builder-workspace/Sources/Internal/Managers/KeyboardManager.swift:36:36: error: 'Publishers' is only available in macOS 10.15 or newer
33 | }
34 | }
35 | private extension KeyboardManager {
| `- note: add @available attribute to enclosing extension
36 | var keyboardWillOpenPublisher: Publishers.CompactMap<NotificationCenter.Publisher, CGFloat> { NotificationCenter.default
| | `- error: 'Publishers' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing property
37 | .publisher(for: UIResponder.keyboardWillShowNotification)
38 | .compactMap { $0.userInfo?[UIResponder.keyboardFrameEndUserInfoKey] as? CGRect }
/Users/admin/builder/spi-builder-workspace/Sources/Internal/Managers/KeyboardManager.swift:41:36: error: 'Publishers' is only available in macOS 10.15 or newer
33 | }
34 | }
35 | private extension KeyboardManager {
| `- note: add @available attribute to enclosing extension
36 | var keyboardWillOpenPublisher: Publishers.CompactMap<NotificationCenter.Publisher, CGFloat> { NotificationCenter.default
37 | .publisher(for: UIResponder.keyboardWillShowNotification)
:
39 | .map { $0.height }
40 | }
41 | var keyboardWillHidePublisher: Publishers.Map<NotificationCenter.Publisher, CGFloat> { NotificationCenter.default
| | `- error: 'Publishers' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing property
42 | .publisher(for: UIResponder.keyboardWillHideNotification)
43 | .map { _ in .zero }
/Users/admin/builder/spi-builder-workspace/Sources/Internal/Managers/NavigationManager.swift:14:6: error: 'Published' is only available in macOS 10.15 or newer
11 | import SwiftUI
12 |
13 | public class NavigationManager: ObservableObject {
| `- note: add @available attribute to enclosing class
14 | @Published private(set) var views: [AnyNavigatableView] = [] { willSet { onViewsWillUpdate(newValue) } }
| `- error: 'Published' is only available in macOS 10.15 or newer
15 | private(set) var transitionsBlocked: Bool = false { didSet { onTransitionsBlockedUpdate() } }
16 | private(set) var transitionType: TransitionType = .push
/Users/admin/builder/spi-builder-workspace/Sources/Internal/Managers/NavigationManager.swift:20:16: warning: static property 'shared' is not concurrency-safe because non-'Sendable' type 'NavigationManager' may have shared mutable state; this is an error in the Swift 6 language mode
11 | import SwiftUI
12 |
13 | public class NavigationManager: ObservableObject {
| `- note: class 'NavigationManager' does not conform to the 'Sendable' protocol
14 | @Published private(set) var views: [AnyNavigatableView] = [] { willSet { onViewsWillUpdate(newValue) } }
15 | private(set) var transitionsBlocked: Bool = false { didSet { onTransitionsBlockedUpdate() } }
:
18 | private(set) var navigationBackGesture: NavigationBackGesture.Kind = .no
19 |
20 | static let shared: NavigationManager = .init()
| |- warning: static property 'shared' is not concurrency-safe because non-'Sendable' type 'NavigationManager' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'shared' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
21 | private init() {}
22 | }
/Users/admin/builder/spi-builder-workspace/Sources/Internal/Managers/NavigationManager.swift:13:33: error: 'ObservableObject' is only available in macOS 10.15 or newer
11 | import SwiftUI
12 |
13 | public class NavigationManager: ObservableObject {
| | `- error: 'ObservableObject' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing class
14 | @Published private(set) var views: [AnyNavigatableView] = [] { willSet { onViewsWillUpdate(newValue) } }
15 | private(set) var transitionsBlocked: Bool = false { didSet { onTransitionsBlockedUpdate() } }
/Users/admin/builder/spi-builder-workspace/Sources/Internal/Managers/ScreenManager.swift:16:30: error: cannot find type 'UIEdgeInsets' in scope
14 | class ScreenManager: ObservableObject {
15 | @Published var size: CGSize = .init()
16 | @Published var safeArea: UIEdgeInsets = .init()
| `- error: cannot find type 'UIEdgeInsets' in scope
17 |
18 | static let shared: ScreenManager = .init()
/Users/admin/builder/spi-builder-workspace/Sources/Internal/Managers/ScreenManager.swift:15:6: error: 'Published' is only available in macOS 10.15 or newer
12 | import SwiftUI
13 |
14 | class ScreenManager: ObservableObject {
| `- note: add @available attribute to enclosing class
15 | @Published var size: CGSize = .init()
| `- error: 'Published' is only available in macOS 10.15 or newer
16 | @Published var safeArea: UIEdgeInsets = .init()
17 |
/Users/admin/builder/spi-builder-workspace/Sources/Internal/Managers/ScreenManager.swift:16:6: error: 'Published' is only available in macOS 10.15 or newer
12 | import SwiftUI
13 |
14 | class ScreenManager: ObservableObject {
| `- note: add @available attribute to enclosing class
15 | @Published var size: CGSize = .init()
16 | @Published var safeArea: UIEdgeInsets = .init()
| `- error: 'Published' is only available in macOS 10.15 or newer
17 |
18 | static let shared: ScreenManager = .init()
/Users/admin/builder/spi-builder-workspace/Sources/Internal/Managers/ScreenManager.swift:18:16: warning: static property 'shared' is not concurrency-safe because non-'Sendable' type 'ScreenManager' may have shared mutable state; this is an error in the Swift 6 language mode
12 | import SwiftUI
13 |
14 | class ScreenManager: ObservableObject {
| `- note: class 'ScreenManager' does not conform to the 'Sendable' protocol
15 | @Published var size: CGSize = .init()
16 | @Published var safeArea: UIEdgeInsets = .init()
17 |
18 | static let shared: ScreenManager = .init()
| |- warning: static property 'shared' is not concurrency-safe because non-'Sendable' type 'ScreenManager' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'shared' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
19 | private init() {}
20 | }
/Users/admin/builder/spi-builder-workspace/Sources/Internal/Managers/ScreenManager.swift:14:22: error: 'ObservableObject' is only available in macOS 10.15 or newer
12 | import SwiftUI
13 |
14 | class ScreenManager: ObservableObject {
| | `- error: 'ObservableObject' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing class
15 | @Published var size: CGSize = .init()
16 | @Published var safeArea: UIEdgeInsets = .init()
/Users/admin/builder/spi-builder-workspace/Sources/Internal/Managers/ScreenManager.swift:24:34: error: 'GeometryProxy' is only available in macOS 10.15 or newer
21 |
22 | // MARK: - Updating Dimensions
23 | extension ScreenManager {
| `- note: add @available attribute to enclosing extension
24 | static func update(_ reader: GeometryProxy) {
| | `- error: 'GeometryProxy' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing static method
25 | shared.size.height = reader.size.height + reader.safeAreaInsets.top + reader.safeAreaInsets.bottom
26 | shared.size.width = reader.size.width + reader.safeAreaInsets.leading + reader.safeAreaInsets.trailing
/Users/admin/builder/spi-builder-workspace/Sources/Internal/Managers/ScreenManager.swift:37:37: error: 'Edge' is only available in macOS 10.15 or newer
34 |
35 | // MARK: - Getting Value For Safe Area
36 | extension ScreenManager {
| `- note: add @available attribute to enclosing extension
37 | func getSafeAreaValue(for edge: Edge.Set) -> CGFloat { switch edge {
| | `- error: 'Edge' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing instance method
38 | case .top: safeArea.top
39 | case .bottom: KeyboardManager.shared.height > 0 ? KeyboardManager.shared.height : safeArea.bottom
/Users/admin/builder/spi-builder-workspace/Sources/Internal/Protocols/NavigatableView.swift:13:34: error: 'View' is only available in macOS 10.15 or newer
11 | import SwiftUI
12 |
13 | public protocol NavigatableView: View {
| | `- error: 'View' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing protocol
14 | var id: String { get }
15 |
/Users/admin/builder/spi-builder-workspace/Sources/Internal/Type Erasers/AnyNavigatableView.swift:16:24: error: 'AnyView' is only available in macOS 10.15 or newer
11 | import SwiftUI
12 |
13 | struct AnyNavigatableView: NavigatableView, Equatable {
| `- note: add @available attribute to enclosing struct
14 | let id: String
15 | let animation: TransitionAnimation
16 | private let _body: AnyView
| `- error: 'AnyView' is only available in macOS 10.15 or newer
17 | private let _configure: (NavigationConfig) -> (NavigationConfig)
18 |
/Users/admin/builder/spi-builder-workspace/Sources/Internal/Type Erasers/AnyNavigatableView.swift:26:66: error: 'ObservableObject' is only available in macOS 10.15 or newer
11 | import SwiftUI
12 |
13 | struct AnyNavigatableView: NavigatableView, Equatable {
| `- note: add @available attribute to enclosing struct
14 | let id: String
15 | let animation: TransitionAnimation
:
24 | self._configure = view.configure
25 | }
26 | init(_ view: some NavigatableView, _ environmentObject: some ObservableObject) {
| | `- error: 'ObservableObject' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing initializer
27 | self.id = view.id
28 | self.animation = .no
/Users/admin/builder/spi-builder-workspace/Sources/Internal/Type Erasers/AnyNavigatableView.swift:26:66: error: 'ObservableObject' is only available in macOS 10.15 or newer
11 | import SwiftUI
12 |
13 | struct AnyNavigatableView: NavigatableView, Equatable {
| `- note: add @available attribute to enclosing struct
14 | let id: String
15 | let animation: TransitionAnimation
:
24 | self._configure = view.configure
25 | }
26 | init(_ view: some NavigatableView, _ environmentObject: some ObservableObject) {
| | `- error: 'ObservableObject' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing initializer
27 | self.id = view.id
28 | self.animation = .no
/Users/admin/builder/spi-builder-workspace/Sources/Internal/Type Erasers/AnyNavigatableView.swift:38:10: warning: main actor-isolated instance method 'configure(view:)' cannot be used to satisfy nonisolated protocol requirement; this is an error in the Swift 6 language mode
11 | import SwiftUI
12 |
13 | struct AnyNavigatableView: NavigatableView, Equatable {
| `- note: add '@preconcurrency' to the 'NavigatableView' conformance to defer isolation checking to run time
14 | let id: String
15 | let animation: TransitionAnimation
:
36 | extension AnyNavigatableView {
37 | var body: some View { _body }
38 | func configure(view: NavigationConfig) -> NavigationConfig { _configure(view) }
| |- warning: main actor-isolated instance method 'configure(view:)' cannot be used to satisfy nonisolated protocol requirement; this is an error in the Swift 6 language mode
| `- note: add 'nonisolated' to 'configure(view:)' to make this instance method not isolated to the actor
39 | }
40 |
/Users/admin/builder/spi-builder-workspace/Sources/Internal/Protocols/NavigatableView.swift:16:10: note: mark the protocol requirement 'configure(view:)' 'async' to allow actor-isolated conformances
14 | var id: String { get }
15 |
16 | func configure(view: NavigationConfig) -> NavigationConfig
| `- note: mark the protocol requirement 'configure(view:)' 'async' to allow actor-isolated conformances
17 | }
18 |
/Users/admin/builder/spi-builder-workspace/Sources/Internal/Type Erasers/AnyNavigatableView.swift:34:17: warning: main actor-isolated operator function '==' cannot be used to satisfy nonisolated protocol requirement; this is an error in the Swift 6 language mode
11 | import SwiftUI
12 |
13 | struct AnyNavigatableView: NavigatableView, Equatable {
| `- note: add '@preconcurrency' to the 'Equatable' conformance to defer isolation checking to run time
14 | let id: String
15 | let animation: TransitionAnimation
:
32 | }
33 | extension AnyNavigatableView {
34 | static func == (lhs: AnyNavigatableView, rhs: AnyNavigatableView) -> Bool { lhs.id == rhs.id }
| |- warning: main actor-isolated operator function '==' cannot be used to satisfy nonisolated protocol requirement; this is an error in the Swift 6 language mode
| `- note: add 'nonisolated' to '==' to make this operator function not isolated to the actor
35 | }
36 | extension AnyNavigatableView {
Swift.Equatable:2:17: note: '==' declared here
1 | public protocol Equatable {
2 | static func == (lhs: Self, rhs: Self) -> Bool
| `- note: '==' declared here
3 | }
/Users/admin/builder/spi-builder-workspace/Sources/Internal/Type Erasers/AnyNavigatableView.swift:37:20: error: 'View' is only available in macOS 10.15 or newer
34 | static func == (lhs: AnyNavigatableView, rhs: AnyNavigatableView) -> Bool { lhs.id == rhs.id }
35 | }
36 | extension AnyNavigatableView {
| `- note: add @available attribute to enclosing extension
37 | var body: some View { _body }
| | `- error: 'View' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing property
38 | func configure(view: NavigationConfig) -> NavigationConfig { _configure(view) }
39 | }
/Users/admin/builder/spi-builder-workspace/Sources/Internal/View Modifiers/AnimationCompletionModifier.swift:14:34: error: 'VectorArithmetic' is only available in macOS 10.15 or newer
11 | import SwiftUI
12 |
13 | extension View {
| `- note: add @available attribute to enclosing extension
14 | func onAnimationCompleted<V: VectorArithmetic>(for value: V, perform action: @escaping () -> ()) -> some View { modifier(Modifier(observedValue: value, completion: action)) }
| | `- error: 'VectorArithmetic' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing instance method
15 | }
16 |
/Users/admin/builder/spi-builder-workspace/Sources/Internal/View Modifiers/AnimationCompletionModifier.swift:14:110: error: 'View' is only available in macOS 10.15 or newer
11 | import SwiftUI
12 |
13 | extension View {
| `- note: add @available attribute to enclosing extension
14 | func onAnimationCompleted<V: VectorArithmetic>(for value: V, perform action: @escaping () -> ()) -> some View { modifier(Modifier(observedValue: value, completion: action)) }
| | `- error: 'View' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing instance method
15 | }
16 |
/Users/admin/builder/spi-builder-workspace/Sources/Internal/View Modifiers/AnimationCompletionModifier.swift:13:11: error: 'View' is only available in macOS 10.15 or newer
11 | import SwiftUI
12 |
13 | extension View {
| | `- error: 'View' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing extension
14 | func onAnimationCompleted<V: VectorArithmetic>(for value: V, perform action: @escaping () -> ()) -> some View { modifier(Modifier(observedValue: value, completion: action)) }
15 | }
/Users/admin/builder/spi-builder-workspace/Sources/Internal/View Modifiers/AnimationCompletionModifier.swift:29:41: error: 'View' is only available in macOS 10.15 or newer
16 |
17 | // MARK: - Implementation
18 | fileprivate struct Modifier<V: VectorArithmetic>: AnimatableModifier {
| `- note: add @available attribute to enclosing generic struct
19 | var animatableData: V { didSet { notifyCompletionIfFinished() }}
20 | private var targetValue: V
:
27 | self.completion = completion
28 | }
29 | func body(content: Content) -> some View { content }
| | `- error: 'View' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing instance method
30 | }
31 |
/Users/admin/builder/spi-builder-workspace/Sources/Internal/View Modifiers/AnimationCompletionModifier.swift:18:32: error: 'VectorArithmetic' is only available in macOS 10.15 or newer
16 |
17 | // MARK: - Implementation
18 | fileprivate struct Modifier<V: VectorArithmetic>: AnimatableModifier {
| | `- error: 'VectorArithmetic' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing generic struct
19 | var animatableData: V { didSet { notifyCompletionIfFinished() }}
20 | private var targetValue: V
/Users/admin/builder/spi-builder-workspace/Sources/Internal/View Modifiers/AnimationCompletionModifier.swift:19:9: warning: main actor-isolated property 'animatableData' cannot be used to satisfy nonisolated protocol requirement; this is an error in the Swift 6 language mode
17 | // MARK: - Implementation
18 | fileprivate struct Modifier<V: VectorArithmetic>: AnimatableModifier {
19 | var animatableData: V { didSet { notifyCompletionIfFinished() }}
| `- warning: main actor-isolated property 'animatableData' cannot be used to satisfy nonisolated protocol requirement; this is an error in the Swift 6 language mode
20 | private var targetValue: V
21 | private var completion: () -> ()
SwiftUICore.Animatable:4:9: note: 'animatableData' declared here
2 | public protocol Animatable {
3 | associatedtype AnimatableData : VectorArithmetic
4 | var animatableData: Self.AnimatableData { get set }
| `- note: 'animatableData' declared here
5 | static func _makeAnimatable(value: inout _GraphValue<Self>, inputs: _GraphInputs)
6 | }
/Users/admin/builder/spi-builder-workspace/Sources/Internal/Views/NavigationView.swift:15:6: error: 'ObservedObject' is only available in macOS 10.15 or newer
11 | import SwiftUI
12 |
13 | struct NavigationView: View {
| `- note: add @available attribute to enclosing struct
14 | let config: NavigationGlobalConfig
15 | @ObservedObject private var stack: NavigationManager = .shared
| `- error: 'ObservedObject' is only available in macOS 10.15 or newer
16 | @ObservedObject private var screenManager: ScreenManager = .shared
17 | @ObservedObject private var keyboardManager: KeyboardManager = .shared
/Users/admin/builder/spi-builder-workspace/Sources/Internal/Views/NavigationView.swift:16:6: error: 'ObservedObject' is only available in macOS 10.15 or newer
11 | import SwiftUI
12 |
13 | struct NavigationView: View {
| `- note: add @available attribute to enclosing struct
14 | let config: NavigationGlobalConfig
15 | @ObservedObject private var stack: NavigationManager = .shared
16 | @ObservedObject private var screenManager: ScreenManager = .shared
| `- error: 'ObservedObject' is only available in macOS 10.15 or newer
17 | @ObservedObject private var keyboardManager: KeyboardManager = .shared
18 | @GestureState private var isGestureActive: Bool = false
/Users/admin/builder/spi-builder-workspace/Sources/Internal/Views/NavigationView.swift:17:6: error: 'ObservedObject' is only available in macOS 10.15 or newer
11 | import SwiftUI
12 |
13 | struct NavigationView: View {
| `- note: add @available attribute to enclosing struct
14 | let config: NavigationGlobalConfig
15 | @ObservedObject private var stack: NavigationManager = .shared
16 | @ObservedObject private var screenManager: ScreenManager = .shared
17 | @ObservedObject private var keyboardManager: KeyboardManager = .shared
| `- error: 'ObservedObject' is only available in macOS 10.15 or newer
18 | @GestureState private var isGestureActive: Bool = false
19 | @State private var temporaryViews: [AnyNavigatableView] = []
/Users/admin/builder/spi-builder-workspace/Sources/Internal/Views/NavigationView.swift:18:6: error: 'GestureState' is only available in macOS 10.15 or newer
11 | import SwiftUI
12 |
13 | struct NavigationView: View {
| `- note: add @available attribute to enclosing struct
14 | let config: NavigationGlobalConfig
15 | @ObservedObject private var stack: NavigationManager = .shared
16 | @ObservedObject private var screenManager: ScreenManager = .shared
17 | @ObservedObject private var keyboardManager: KeyboardManager = .shared
18 | @GestureState private var isGestureActive: Bool = false
| `- error: 'GestureState' is only available in macOS 10.15 or newer
19 | @State private var temporaryViews: [AnyNavigatableView] = []
20 | @State private var animatableData: AnimatableData = .init()
/Users/admin/builder/spi-builder-workspace/Sources/Internal/Views/NavigationView.swift:19:6: error: 'State' is only available in macOS 10.15 or newer
11 | import SwiftUI
12 |
13 | struct NavigationView: View {
| `- note: add @available attribute to enclosing struct
14 | let config: NavigationGlobalConfig
15 | @ObservedObject private var stack: NavigationManager = .shared
:
17 | @ObservedObject private var keyboardManager: KeyboardManager = .shared
18 | @GestureState private var isGestureActive: Bool = false
19 | @State private var temporaryViews: [AnyNavigatableView] = []
| `- error: 'State' is only available in macOS 10.15 or newer
20 | @State private var animatableData: AnimatableData = .init()
21 | @State private var gestureData: GestureData = .init()
/Users/admin/builder/spi-builder-workspace/Sources/Internal/Views/NavigationView.swift:20:6: error: 'State' is only available in macOS 10.15 or newer
11 | import SwiftUI
12 |
13 | struct NavigationView: View {
| `- note: add @available attribute to enclosing struct
14 | let config: NavigationGlobalConfig
15 | @ObservedObject private var stack: NavigationManager = .shared
:
18 | @GestureState private var isGestureActive: Bool = false
19 | @State private var temporaryViews: [AnyNavigatableView] = []
20 | @State private var animatableData: AnimatableData = .init()
| `- error: 'State' is only available in macOS 10.15 or newer
21 | @State private var gestureData: GestureData = .init()
22 |
/Users/admin/builder/spi-builder-workspace/Sources/Internal/Views/NavigationView.swift:21:6: error: 'State' is only available in macOS 10.15 or newer
11 | import SwiftUI
12 |
13 | struct NavigationView: View {
| `- note: add @available attribute to enclosing struct
14 | let config: NavigationGlobalConfig
15 | @ObservedObject private var stack: NavigationManager = .shared
:
19 | @State private var temporaryViews: [AnyNavigatableView] = []
20 | @State private var animatableData: AnimatableData = .init()
21 | @State private var gestureData: GestureData = .init()
| `- error: 'State' is only available in macOS 10.15 or newer
22 |
23 |
/Users/admin/builder/spi-builder-workspace/Sources/Internal/Views/NavigationView.swift:24:20: error: 'View' is only available in macOS 10.15 or newer
11 | import SwiftUI
12 |
13 | struct NavigationView: View {
| `- note: add @available attribute to enclosing struct
14 | let config: NavigationGlobalConfig
15 | @ObservedObject private var stack: NavigationManager = .shared
:
22 |
23 |
24 | var body: some View {
| | `- error: 'View' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing property
25 | ZStack { ForEach(temporaryViews, id: \.id, content: createItem) }
26 | .ignoresSafeArea()
/Users/admin/builder/spi-builder-workspace/Sources/Internal/Views/NavigationView.swift:36:57: error: 'View' is only available in macOS 10.15 or newer
33 | }
34 | }
35 | private extension NavigationView {
| `- note: add @available attribute to enclosing extension
36 | func createItem(_ item: AnyNavigatableView) -> some View {
| | `- error: 'View' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing instance method
37 | item.body
38 | .padding(.top, getPadding(.top, item))
/Users/admin/builder/spi-builder-workspace/Sources/Internal/Views/NavigationView.swift:56:38: error: 'Gesture' is only available in macOS 10.15 or newer
53 |
54 | // MARK: - Handling Drag Gesture
55 | private extension NavigationView {
| `- note: add @available attribute to enclosing extension
56 | func createDragGesture() -> some Gesture { DragGesture()
| | `- error: 'Gesture' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing instance method
57 | .updating($isGestureActive) { _, state, _ in state = true }
58 | .onChanged(onDragGestureChanged)
/Users/admin/builder/spi-builder-workspace/Sources/Internal/Views/NavigationView.swift:62:40: error: 'DragGesture' is only available in macOS 10.15 or newer
59 | }
60 | }
61 | private extension NavigationView {
| `- note: add @available attribute to enclosing extension
62 | func onDragGestureChanged(_ value: DragGesture.Value) { guard canUseDragGesture(), canUseDragGesturePosition(value) else { return }
| | `- error: 'DragGesture' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing instance method
63 | updateAttributesOnDragGestureStarted()
64 | gestureData.translation = calculateNewDragGestureDataTranslation(value)
/Users/admin/builder/spi-builder-workspace/Sources/Internal/Views/NavigationView.swift:80:45: error: 'DragGesture' is only available in macOS 10.15 or newer
71 | }
72 | }
73 | private extension NavigationView {
| `- note: add @available attribute to enclosing extension
74 | func canUseDragGesture() -> Bool {
75 | guard stack.views.count > 1 else { return false }
:
78 | return true
79 | }
80 | func canUseDragGesturePosition(_ value: DragGesture.Value) -> Bool { if config.backGesturePosition == .anywhere { return true }
| | `- error: 'DragGesture' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing instance method
81 | let startPosition = stack.transitionAnimation == .verticalSlide ? value.startLocation.y : value.startLocation.x
82 | return startPosition < 50
/Users/admin/builder/spi-builder-workspace/Sources/Internal/Views/NavigationView.swift:88:58: error: 'DragGesture' is only available in macOS 10.15 or newer
71 | }
72 | }
73 | private extension NavigationView {
| `- note: add @available attribute to enclosing extension
74 | func canUseDragGesture() -> Bool {
75 | guard stack.views.count > 1 else { return false }
:
86 | gestureData.isActive = true
87 | }
88 | func calculateNewDragGestureDataTranslation(_ value: DragGesture.Value) -> CGFloat { switch stack.transitionAnimation {
| | `- error: 'DragGesture' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing instance method
89 | case .horizontalSlide, .cubeRotation, .scale: max(value.translation.width, 0)
90 | case .verticalSlide: max(value.translation.height, 0)
/Users/admin/builder/spi-builder-workspace/Sources/Internal/Views/NavigationView.swift:104:29: error: 'Edge' is only available in macOS 10.15 or newer
101 |
102 | // MARK: - Local Configurables
103 | private extension NavigationView {
| `- note: add @available attribute to enclosing extension
104 | func getPadding(_ edge: Edge.Set, _ item: AnyNavigatableView) -> CGFloat {
| | `- error: 'Edge' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing instance method
105 | guard let ignoredAreas = getConfig(item).ignoredSafeAreas,
106 | ignoredAreas.edges.isOne(of: .init(edge), .all)
/Users/admin/builder/spi-builder-workspace/Sources/Internal/Views/NavigationView.swift:113:55: error: 'Color' is only available in macOS 10.15 or newer
101 |
102 | // MARK: - Local Configurables
103 | private extension NavigationView {
| `- note: add @available attribute to enclosing extension
104 | func getPadding(_ edge: Edge.Set, _ item: AnyNavigatableView) -> CGFloat {
105 | guard let ignoredAreas = getConfig(item).ignoredSafeAreas,
:
111 | return screenManager.getSafeAreaValue(for: edge)
112 | }
113 | func getBackground(_ item: AnyNavigatableView) -> Color { getConfig(item).backgroundColour ?? config.backgroundColour }
| | `- error: 'Color' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing instance method
114 | func getConfig(_ item: AnyNavigatableView) -> NavigationConfig { item.configure(view: .init()) }
115 | }
/Users/admin/builder/spi-builder-workspace/Sources/Internal/Views/NavigationView.swift:198:58: error: 'Angle' is only available in macOS 10.15 or newer
195 |
196 | // MARK: - Calculating Rotation
197 | private extension NavigationView {
| `- note: add @available attribute to enclosing extension
198 | func getRotationAngle(_ view: AnyNavigatableView) -> Angle { guard canCalculateRotation(view) else { return .zero }
| | `- error: 'Angle' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing instance method
199 | let angle = calculateRotationAngleValue(view)
200 | return angle
/Users/admin/builder/spi-builder-workspace/Sources/Internal/Views/NavigationView.swift:202:59: error: 'UnitPoint' is only available in macOS 10.15 or newer
195 |
196 | // MARK: - Calculating Rotation
197 | private extension NavigationView {
| `- note: add @available attribute to enclosing extension
198 | func getRotationAngle(_ view: AnyNavigatableView) -> Angle { guard canCalculateRotation(view) else { return .zero }
199 | let angle = calculateRotationAngleValue(view)
200 | return angle
201 | }
202 | func getRotationAnchor(_ view: AnyNavigatableView) -> UnitPoint { switch view == temporaryViews.last {
| | `- error: 'UnitPoint' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing instance method
203 | case true: .trailing
204 | case false: .leading
/Users/admin/builder/spi-builder-workspace/Sources/Internal/Views/NavigationView.swift:222:69: error: 'Angle' is only available in macOS 10.15 or newer
214 | }}
215 | }
216 | private extension NavigationView {
| `- note: add @available attribute to enclosing extension
217 | func canCalculateRotation(_ view: AnyNavigatableView) -> Bool {
218 | guard stack.transitionAnimation.isOne(of: .cubeRotation) else { return false }
:
220 | return true
221 | }
222 | func calculateRotationAngleValue(_ view: AnyNavigatableView) -> Angle { let rotationFactor = gestureData.isActive ? 1 - gestureProgress : animatableData.rotation
| | `- error: 'Angle' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing instance method
223 | switch view == temporaryViews.last {
224 | case true: return .degrees(90 - 90 * rotationFactor)
/Users/admin/builder/spi-builder-workspace/Sources/Internal/Views/NavigationView.swift:238:28: error: 'Animation' is only available in macOS 10.15 or newer
235 |
236 | // MARK: - Animation
237 | private extension NavigationView {
| `- note: add @available attribute to enclosing extension
238 | func getAnimation() -> Animation { switch stack.transitionAnimation {
| | `- error: 'Animation' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing instance method
239 | case .no: .easeInOut(duration: 0)
240 | case .dissolve, .horizontalSlide, .verticalSlide, .scale: .interpolatingSpring(mass: 3, stiffness: 1000, damping: 500, initialVelocity: 6.4)
/Users/admin/builder/spi-builder-workspace/Sources/Public/Public+NavigatableView.swift:15:84: error: 'View' is only available in macOS 10.15 or newer
12 |
13 | // MARK: - Initialising
14 | public extension NavigatableView {
| `- note: add @available attribute to enclosing extension
15 | func implementNavigationView(config: NavigationGlobalConfig = .init()) -> some View { GeometryReader { reader in
| | `- error: 'View' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing instance method
16 | NavigationView(config: config)
17 | .onAppear { ScreenManager.update(reader); NavigationManager.setRoot(self) }
/Users/admin/builder/spi-builder-workspace/Sources/Public/Public+NavigatableView.swift:37:62: error: 'ObservableObject' is only available in macOS 10.15 or newer
27 |
28 | // MARK: - Presenting Views
29 | public extension NavigatableView {
| `- note: add @available attribute to enclosing extension
30 | /// Pushes a new view. Stacks previous one
31 | @discardableResult func push(with animation: TransitionAnimation) -> some NavigatableView { NavigationManager.performOperation(.insert(self, animation)); return self }
:
35 |
36 | /// Supplies an observable object to a view’s hierarchy
37 | @discardableResult func environmentObject(_ object: some ObservableObject) -> any NavigatableView { AnyNavigatableView(self, object) }
| | `- error: 'ObservableObject' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing instance method
38 | }
39 |
/Users/admin/builder/spi-builder-workspace/Sources/Public/Public+NavigatableView.swift:37:62: error: 'ObservableObject' is only available in macOS 10.15 or newer
27 |
28 | // MARK: - Presenting Views
29 | public extension NavigatableView {
| `- note: add @available attribute to enclosing extension
30 | /// Pushes a new view. Stacks previous one
31 | @discardableResult func push(with animation: TransitionAnimation) -> some NavigatableView { NavigationManager.performOperation(.insert(self, animation)); return self }
:
35 |
36 | /// Supplies an observable object to a view’s hierarchy
37 | @discardableResult func environmentObject(_ object: some ObservableObject) -> any NavigatableView { AnyNavigatableView(self, object) }
| | `- error: 'ObservableObject' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing instance method
38 | }
39 |
/Users/admin/builder/spi-builder-workspace/Sources/Public/Public+NavigationConfig.swift:16:37: error: 'SafeAreaRegions' is only available in macOS 11.0 or newer
12 |
13 | // MARK: - Content Customisation
14 | public extension NavigationConfig {
| `- note: add @available attribute to enclosing extension
15 | /// Ignores safe areas
16 | func ignoresSafeArea(_ regions: SafeAreaRegions = .all, _ edges: SafeAreaEdges) -> Self { changing(path: \.ignoredSafeAreas, to: (regions, edges)) }
| | `- error: 'SafeAreaRegions' is only available in macOS 11.0 or newer
| `- note: add @available attribute to enclosing instance method
17 |
18 | /// Changes the background colour of the selected view
/Users/admin/builder/spi-builder-workspace/Sources/Public/Public+NavigationConfig.swift:19:36: error: 'Color' is only available in macOS 10.15 or newer
12 |
13 | // MARK: - Content Customisation
14 | public extension NavigationConfig {
| `- note: add @available attribute to enclosing extension
15 | /// Ignores safe areas
16 | func ignoresSafeArea(_ regions: SafeAreaRegions = .all, _ edges: SafeAreaEdges) -> Self { changing(path: \.ignoredSafeAreas, to: (regions, edges)) }
17 |
18 | /// Changes the background colour of the selected view
19 | func backgroundColour(_ value: Color) -> Self { changing(path: \.backgroundColour, to: value) }
| | `- error: 'Color' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing instance method
20 |
21 | /// Changes the gesture that can be used to move to the previous view
/Users/admin/builder/spi-builder-workspace/Sources/Public/Public+NavigationConfig.swift:27:50: error: 'SafeAreaRegions' is only available in macOS 11.0 or newer
24 |
25 | // MARK: - Internal
26 | public struct NavigationConfig: Configurable {
| `- note: add @available attribute to enclosing struct
27 | private(set) var ignoredSafeAreas: (regions: SafeAreaRegions, edges: SafeAreaEdges)? = nil
| `- error: 'SafeAreaRegions' is only available in macOS 11.0 or newer
28 | private(set) var backgroundColour: Color? = nil
29 | private(set) var navigationBackGesture: NavigationBackGesture.Kind = .no
/Users/admin/builder/spi-builder-workspace/Sources/Public/Public+NavigationConfig.swift:28:40: error: 'Color' is only available in macOS 10.15 or newer
24 |
25 | // MARK: - Internal
26 | public struct NavigationConfig: Configurable {
| `- note: add @available attribute to enclosing struct
27 | private(set) var ignoredSafeAreas: (regions: SafeAreaRegions, edges: SafeAreaEdges)? = nil
28 | private(set) var backgroundColour: Color? = nil
| `- error: 'Color' is only available in macOS 10.15 or newer
29 | private(set) var navigationBackGesture: NavigationBackGesture.Kind = .no
30 | }
/Users/admin/builder/spi-builder-workspace/Sources/Public/Public+NavigationGlobalConfig.swift:19:34: error: 'Color' is only available in macOS 10.15 or newer
11 | import SwiftUI
12 |
13 | public struct NavigationGlobalConfig { public init() {}
| `- note: add @available attribute to enclosing struct
14 | // MARK: Navigation Gestures
15 | public var backGesturePosition: NavigationBackGesture.Position = .anywhere
:
17 |
18 | // MARK: Others
19 | public var backgroundColour: Color = .clear
| `- error: 'Color' is only available in macOS 10.15 or newer
20 | }
21 |
/Users/admin/builder/spi-builder-workspace/Sources/Public/Public+NavigationGlobalConfig.swift:19:43: error: 'clear' is only available in macOS 10.15 or newer
11 | import SwiftUI
12 |
13 | public struct NavigationGlobalConfig { public init() {}
| `- note: add @available attribute to enclosing struct
14 | // MARK: Navigation Gestures
15 | public var backGesturePosition: NavigationBackGesture.Position = .anywhere
:
17 |
18 | // MARK: Others
19 | public var backgroundColour: Color = .clear
| `- error: 'clear' is only available in macOS 10.15 or newer
20 | }
21 |
/Users/admin/builder/spi-builder-workspace/Sources/Public/Public+SafeAreaEdges.swift:24:19: error: 'Edge' is only available in macOS 10.15 or newer
21 |
22 | // MARK: - Initialiser
23 | extension SafeAreaEdges {
| `- note: add @available attribute to enclosing extension
24 | init(_ value: Edge.Set) { switch value {
| | `- error: 'Edge' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing initializer
25 | case .top: self = .top
26 | case .bottom: self = .bottom
/Users/admin/builder/spi-builder-workspace/Sources/Public/Public+View.swift:14:18: error: 'View' is only available in macOS 10.15 or newer
12 |
13 | // MARK: - Removing Views From Stack
14 | public extension View {
| | `- error: 'View' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing extension
15 | /// Removes the presented view from the stack
16 | func pop() { NavigationManager.pop() }
/Users/admin/builder/spi-builder-workspace/Sources/Public/Public+View.swift:28:92: error: 'View' is only available in macOS 10.15 or newer
24 |
25 | // MARK: - Actions
26 | public extension View {
| `- note: add @available attribute to enclosing extension
27 | /// Triggers every time the popup is at the top of the stack
28 | func onFocus(_ view: some NavigatableView, perform action: @escaping () -> ()) -> some View {
| | `- error: 'View' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing instance method
29 | onReceive(NavigationManager.shared.$views) { views in
30 | if views.last?.id == view.id { action() }
/Users/admin/builder/spi-builder-workspace/Sources/Public/Public+View.swift:26:18: error: 'View' is only available in macOS 10.15 or newer
24 |
25 | // MARK: - Actions
26 | public extension View {
| | `- error: 'View' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing extension
27 | /// Triggers every time the popup is at the top of the stack
28 | func onFocus(_ view: some NavigatableView, perform action: @escaping () -> ()) -> some View {
[12/22] Compiling MijickNavigationView Equatable++.swift
/Users/admin/builder/spi-builder-workspace/Sources/Internal/Managers/KeyboardManager.swift:16:6: error: 'Published' is only available in macOS 10.15 or newer
13 | import Combine
14 |
15 | class KeyboardManager: ObservableObject {
| `- note: add @available attribute to enclosing class
16 | @Published private(set) var height: CGFloat = .zero
| `- error: 'Published' is only available in macOS 10.15 or newer
17 | private var subscription: [AnyCancellable] = []
18 |
/Users/admin/builder/spi-builder-workspace/Sources/Internal/Managers/KeyboardManager.swift:17:32: error: 'AnyCancellable' is only available in macOS 10.15 or newer
13 | import Combine
14 |
15 | class KeyboardManager: ObservableObject {
| `- note: add @available attribute to enclosing class
16 | @Published private(set) var height: CGFloat = .zero
17 | private var subscription: [AnyCancellable] = []
| `- error: 'AnyCancellable' is only available in macOS 10.15 or newer
18 |
19 | static let shared: KeyboardManager = .init()
/Users/admin/builder/spi-builder-workspace/Sources/Internal/Managers/KeyboardManager.swift:19:16: warning: static property 'shared' is not concurrency-safe because non-'Sendable' type 'KeyboardManager' may have shared mutable state; this is an error in the Swift 6 language mode
13 | import Combine
14 |
15 | class KeyboardManager: ObservableObject {
| `- note: class 'KeyboardManager' does not conform to the 'Sendable' protocol
16 | @Published private(set) var height: CGFloat = .zero
17 | private var subscription: [AnyCancellable] = []
18 |
19 | static let shared: KeyboardManager = .init()
| |- warning: static property 'shared' is not concurrency-safe because non-'Sendable' type 'KeyboardManager' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'shared' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
20 | private init() { subscribeToKeyboardEvents() }
21 | }
/Users/admin/builder/spi-builder-workspace/Sources/Internal/Managers/KeyboardManager.swift:36:36: error: 'Publishers' is only available in macOS 10.15 or newer
33 | }
34 | }
35 | private extension KeyboardManager {
| `- note: add @available attribute to enclosing extension
36 | var keyboardWillOpenPublisher: Publishers.CompactMap<NotificationCenter.Publisher, CGFloat> { NotificationCenter.default
| | `- error: 'Publishers' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing property
37 | .publisher(for: UIResponder.keyboardWillShowNotification)
38 | .compactMap { $0.userInfo?[UIResponder.keyboardFrameEndUserInfoKey] as? CGRect }
<unknown>:0: error: cannot convert value of type 'KeyPath<KeyboardManager, CGFloat>' to expected argument type 'ReferenceWritableKeyPath<KeyboardManager, CGFloat>'
/Users/admin/builder/spi-builder-workspace/Sources/Internal/Managers/KeyboardManager.swift:41:36: error: 'Publishers' is only available in macOS 10.15 or newer
33 | }
34 | }
35 | private extension KeyboardManager {
| `- note: add @available attribute to enclosing extension
36 | var keyboardWillOpenPublisher: Publishers.CompactMap<NotificationCenter.Publisher, CGFloat> { NotificationCenter.default
37 | .publisher(for: UIResponder.keyboardWillShowNotification)
:
39 | .map { $0.height }
40 | }
41 | var keyboardWillHidePublisher: Publishers.Map<NotificationCenter.Publisher, CGFloat> { NotificationCenter.default
| | `- error: 'Publishers' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing property
42 | .publisher(for: UIResponder.keyboardWillHideNotification)
43 | .map { _ in .zero }
/Users/admin/builder/spi-builder-workspace/Sources/Internal/Managers/KeyboardManager.swift:25:34: error: cannot find 'UIApplication' in scope
23 | // MARK: - Hiding Keyboard
24 | extension KeyboardManager {
25 | static func hideKeyboard() { UIApplication.shared.sendAction(#selector(UIResponder.resignFirstResponder), to: nil, from: nil, for: nil) }
| `- error: cannot find 'UIApplication' in scope
26 | }
27 |
/Users/admin/builder/spi-builder-workspace/Sources/Internal/Managers/KeyboardManager.swift:25:76: error: cannot find 'UIResponder' in scope
23 | // MARK: - Hiding Keyboard
24 | extension KeyboardManager {
25 | static func hideKeyboard() { UIApplication.shared.sendAction(#selector(UIResponder.resignFirstResponder), to: nil, from: nil, for: nil) }
| `- error: cannot find 'UIResponder' in scope
26 | }
27 |
/Users/admin/builder/spi-builder-workspace/Sources/Internal/Managers/KeyboardManager.swift:25:115: error: 'nil' requires a contextual type
23 | // MARK: - Hiding Keyboard
24 | extension KeyboardManager {
25 | static func hideKeyboard() { UIApplication.shared.sendAction(#selector(UIResponder.resignFirstResponder), to: nil, from: nil, for: nil) }
| `- error: 'nil' requires a contextual type
26 | }
27 |
/Users/admin/builder/spi-builder-workspace/Sources/Internal/Managers/KeyboardManager.swift:25:126: error: 'nil' requires a contextual type
23 | // MARK: - Hiding Keyboard
24 | extension KeyboardManager {
25 | static func hideKeyboard() { UIApplication.shared.sendAction(#selector(UIResponder.resignFirstResponder), to: nil, from: nil, for: nil) }
| `- error: 'nil' requires a contextual type
26 | }
27 |
/Users/admin/builder/spi-builder-workspace/Sources/Internal/Managers/KeyboardManager.swift:25:136: error: 'nil' requires a contextual type
23 | // MARK: - Hiding Keyboard
24 | extension KeyboardManager {
25 | static func hideKeyboard() { UIApplication.shared.sendAction(#selector(UIResponder.resignFirstResponder), to: nil, from: nil, for: nil) }
| `- error: 'nil' requires a contextual type
26 | }
27 |
/Users/admin/builder/spi-builder-workspace/Sources/Internal/Managers/KeyboardManager.swift:30:40: error: 'Publishers' is only available in macOS 10.15 or newer
27 |
28 | // MARK: - Show / Hide Events
29 | private extension KeyboardManager {
| `- note: add @available attribute to enclosing extension
30 | func subscribeToKeyboardEvents() { Publishers.Merge(keyboardWillOpenPublisher, keyboardWillHidePublisher)
| | |- error: 'Publishers' is only available in macOS 10.15 or newer
| | `- note: add 'if #available' version check
| `- note: add @available attribute to enclosing instance method
31 | .sink { self.height = $0 }
32 | .store(in: &subscription)
/Users/admin/builder/spi-builder-workspace/Sources/Internal/Managers/KeyboardManager.swift:31:10: error: 'sink(receiveValue:)' is only available in macOS 10.15 or newer
27 |
28 | // MARK: - Show / Hide Events
29 | private extension KeyboardManager {
| `- note: add @available attribute to enclosing extension
30 | func subscribeToKeyboardEvents() { Publishers.Merge(keyboardWillOpenPublisher, keyboardWillHidePublisher)
| `- note: add @available attribute to enclosing instance method
31 | .sink { self.height = $0 }
| |- error: 'sink(receiveValue:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
32 | .store(in: &subscription)
33 | }
/Users/admin/builder/spi-builder-workspace/Sources/Internal/Managers/KeyboardManager.swift:31:17: error: setter for 'height' is only available in macOS 10.15 or newer
27 |
28 | // MARK: - Show / Hide Events
29 | private extension KeyboardManager {
| `- note: add @available attribute to enclosing extension
30 | func subscribeToKeyboardEvents() { Publishers.Merge(keyboardWillOpenPublisher, keyboardWillHidePublisher)
| `- note: add @available attribute to enclosing instance method
31 | .sink { self.height = $0 }
| |- error: setter for 'height' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
32 | .store(in: &subscription)
33 | }
/Users/admin/builder/spi-builder-workspace/Sources/Internal/Managers/KeyboardManager.swift:32:10: error: 'store(in:)' is only available in macOS 10.15 or newer
27 |
28 | // MARK: - Show / Hide Events
29 | private extension KeyboardManager {
| `- note: add @available attribute to enclosing extension
30 | func subscribeToKeyboardEvents() { Publishers.Merge(keyboardWillOpenPublisher, keyboardWillHidePublisher)
| `- note: add @available attribute to enclosing instance method
31 | .sink { self.height = $0 }
32 | .store(in: &subscription)
| |- error: 'store(in:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
33 | }
34 | }
/Users/admin/builder/spi-builder-workspace/Sources/Internal/Managers/KeyboardManager.swift:37:25: error: cannot find 'UIResponder' in scope
35 | private extension KeyboardManager {
36 | var keyboardWillOpenPublisher: Publishers.CompactMap<NotificationCenter.Publisher, CGFloat> { NotificationCenter.default
37 | .publisher(for: UIResponder.keyboardWillShowNotification)
| `- error: cannot find 'UIResponder' in scope
38 | .compactMap { $0.userInfo?[UIResponder.keyboardFrameEndUserInfoKey] as? CGRect }
39 | .map { $0.height }
/Users/admin/builder/spi-builder-workspace/Sources/Internal/Managers/KeyboardManager.swift:38:36: error: cannot find 'UIResponder' in scope
36 | var keyboardWillOpenPublisher: Publishers.CompactMap<NotificationCenter.Publisher, CGFloat> { NotificationCenter.default
37 | .publisher(for: UIResponder.keyboardWillShowNotification)
38 | .compactMap { $0.userInfo?[UIResponder.keyboardFrameEndUserInfoKey] as? CGRect }
| `- error: cannot find 'UIResponder' in scope
39 | .map { $0.height }
40 | }
/Users/admin/builder/spi-builder-workspace/Sources/Internal/Managers/KeyboardManager.swift:42:25: error: cannot find 'UIResponder' in scope
40 | }
41 | var keyboardWillHidePublisher: Publishers.Map<NotificationCenter.Publisher, CGFloat> { NotificationCenter.default
42 | .publisher(for: UIResponder.keyboardWillHideNotification)
| `- error: cannot find 'UIResponder' in scope
43 | .map { _ in .zero }
44 | }
[13/22] Compiling MijickNavigationView KeyboardManager.swift
/Users/admin/builder/spi-builder-workspace/Sources/Internal/Managers/KeyboardManager.swift:16:6: error: 'Published' is only available in macOS 10.15 or newer
13 | import Combine
14 |
15 | class KeyboardManager: ObservableObject {
| `- note: add @available attribute to enclosing class
16 | @Published private(set) var height: CGFloat = .zero
| `- error: 'Published' is only available in macOS 10.15 or newer
17 | private var subscription: [AnyCancellable] = []
18 |
/Users/admin/builder/spi-builder-workspace/Sources/Internal/Managers/KeyboardManager.swift:17:32: error: 'AnyCancellable' is only available in macOS 10.15 or newer
13 | import Combine
14 |
15 | class KeyboardManager: ObservableObject {
| `- note: add @available attribute to enclosing class
16 | @Published private(set) var height: CGFloat = .zero
17 | private var subscription: [AnyCancellable] = []
| `- error: 'AnyCancellable' is only available in macOS 10.15 or newer
18 |
19 | static let shared: KeyboardManager = .init()
/Users/admin/builder/spi-builder-workspace/Sources/Internal/Managers/KeyboardManager.swift:19:16: warning: static property 'shared' is not concurrency-safe because non-'Sendable' type 'KeyboardManager' may have shared mutable state; this is an error in the Swift 6 language mode
13 | import Combine
14 |
15 | class KeyboardManager: ObservableObject {
| `- note: class 'KeyboardManager' does not conform to the 'Sendable' protocol
16 | @Published private(set) var height: CGFloat = .zero
17 | private var subscription: [AnyCancellable] = []
18 |
19 | static let shared: KeyboardManager = .init()
| |- warning: static property 'shared' is not concurrency-safe because non-'Sendable' type 'KeyboardManager' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'shared' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
20 | private init() { subscribeToKeyboardEvents() }
21 | }
/Users/admin/builder/spi-builder-workspace/Sources/Internal/Managers/KeyboardManager.swift:36:36: error: 'Publishers' is only available in macOS 10.15 or newer
33 | }
34 | }
35 | private extension KeyboardManager {
| `- note: add @available attribute to enclosing extension
36 | var keyboardWillOpenPublisher: Publishers.CompactMap<NotificationCenter.Publisher, CGFloat> { NotificationCenter.default
| | `- error: 'Publishers' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing property
37 | .publisher(for: UIResponder.keyboardWillShowNotification)
38 | .compactMap { $0.userInfo?[UIResponder.keyboardFrameEndUserInfoKey] as? CGRect }
<unknown>:0: error: cannot convert value of type 'KeyPath<KeyboardManager, CGFloat>' to expected argument type 'ReferenceWritableKeyPath<KeyboardManager, CGFloat>'
/Users/admin/builder/spi-builder-workspace/Sources/Internal/Managers/KeyboardManager.swift:41:36: error: 'Publishers' is only available in macOS 10.15 or newer
33 | }
34 | }
35 | private extension KeyboardManager {
| `- note: add @available attribute to enclosing extension
36 | var keyboardWillOpenPublisher: Publishers.CompactMap<NotificationCenter.Publisher, CGFloat> { NotificationCenter.default
37 | .publisher(for: UIResponder.keyboardWillShowNotification)
:
39 | .map { $0.height }
40 | }
41 | var keyboardWillHidePublisher: Publishers.Map<NotificationCenter.Publisher, CGFloat> { NotificationCenter.default
| | `- error: 'Publishers' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing property
42 | .publisher(for: UIResponder.keyboardWillHideNotification)
43 | .map { _ in .zero }
/Users/admin/builder/spi-builder-workspace/Sources/Internal/Managers/KeyboardManager.swift:25:34: error: cannot find 'UIApplication' in scope
23 | // MARK: - Hiding Keyboard
24 | extension KeyboardManager {
25 | static func hideKeyboard() { UIApplication.shared.sendAction(#selector(UIResponder.resignFirstResponder), to: nil, from: nil, for: nil) }
| `- error: cannot find 'UIApplication' in scope
26 | }
27 |
/Users/admin/builder/spi-builder-workspace/Sources/Internal/Managers/KeyboardManager.swift:25:76: error: cannot find 'UIResponder' in scope
23 | // MARK: - Hiding Keyboard
24 | extension KeyboardManager {
25 | static func hideKeyboard() { UIApplication.shared.sendAction(#selector(UIResponder.resignFirstResponder), to: nil, from: nil, for: nil) }
| `- error: cannot find 'UIResponder' in scope
26 | }
27 |
/Users/admin/builder/spi-builder-workspace/Sources/Internal/Managers/KeyboardManager.swift:25:115: error: 'nil' requires a contextual type
23 | // MARK: - Hiding Keyboard
24 | extension KeyboardManager {
25 | static func hideKeyboard() { UIApplication.shared.sendAction(#selector(UIResponder.resignFirstResponder), to: nil, from: nil, for: nil) }
| `- error: 'nil' requires a contextual type
26 | }
27 |
/Users/admin/builder/spi-builder-workspace/Sources/Internal/Managers/KeyboardManager.swift:25:126: error: 'nil' requires a contextual type
23 | // MARK: - Hiding Keyboard
24 | extension KeyboardManager {
25 | static func hideKeyboard() { UIApplication.shared.sendAction(#selector(UIResponder.resignFirstResponder), to: nil, from: nil, for: nil) }
| `- error: 'nil' requires a contextual type
26 | }
27 |
/Users/admin/builder/spi-builder-workspace/Sources/Internal/Managers/KeyboardManager.swift:25:136: error: 'nil' requires a contextual type
23 | // MARK: - Hiding Keyboard
24 | extension KeyboardManager {
25 | static func hideKeyboard() { UIApplication.shared.sendAction(#selector(UIResponder.resignFirstResponder), to: nil, from: nil, for: nil) }
| `- error: 'nil' requires a contextual type
26 | }
27 |
/Users/admin/builder/spi-builder-workspace/Sources/Internal/Managers/KeyboardManager.swift:30:40: error: 'Publishers' is only available in macOS 10.15 or newer
27 |
28 | // MARK: - Show / Hide Events
29 | private extension KeyboardManager {
| `- note: add @available attribute to enclosing extension
30 | func subscribeToKeyboardEvents() { Publishers.Merge(keyboardWillOpenPublisher, keyboardWillHidePublisher)
| | |- error: 'Publishers' is only available in macOS 10.15 or newer
| | `- note: add 'if #available' version check
| `- note: add @available attribute to enclosing instance method
31 | .sink { self.height = $0 }
32 | .store(in: &subscription)
/Users/admin/builder/spi-builder-workspace/Sources/Internal/Managers/KeyboardManager.swift:31:10: error: 'sink(receiveValue:)' is only available in macOS 10.15 or newer
27 |
28 | // MARK: - Show / Hide Events
29 | private extension KeyboardManager {
| `- note: add @available attribute to enclosing extension
30 | func subscribeToKeyboardEvents() { Publishers.Merge(keyboardWillOpenPublisher, keyboardWillHidePublisher)
| `- note: add @available attribute to enclosing instance method
31 | .sink { self.height = $0 }
| |- error: 'sink(receiveValue:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
32 | .store(in: &subscription)
33 | }
/Users/admin/builder/spi-builder-workspace/Sources/Internal/Managers/KeyboardManager.swift:31:17: error: setter for 'height' is only available in macOS 10.15 or newer
27 |
28 | // MARK: - Show / Hide Events
29 | private extension KeyboardManager {
| `- note: add @available attribute to enclosing extension
30 | func subscribeToKeyboardEvents() { Publishers.Merge(keyboardWillOpenPublisher, keyboardWillHidePublisher)
| `- note: add @available attribute to enclosing instance method
31 | .sink { self.height = $0 }
| |- error: setter for 'height' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
32 | .store(in: &subscription)
33 | }
/Users/admin/builder/spi-builder-workspace/Sources/Internal/Managers/KeyboardManager.swift:32:10: error: 'store(in:)' is only available in macOS 10.15 or newer
27 |
28 | // MARK: - Show / Hide Events
29 | private extension KeyboardManager {
| `- note: add @available attribute to enclosing extension
30 | func subscribeToKeyboardEvents() { Publishers.Merge(keyboardWillOpenPublisher, keyboardWillHidePublisher)
| `- note: add @available attribute to enclosing instance method
31 | .sink { self.height = $0 }
32 | .store(in: &subscription)
| |- error: 'store(in:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
33 | }
34 | }
/Users/admin/builder/spi-builder-workspace/Sources/Internal/Managers/KeyboardManager.swift:37:25: error: cannot find 'UIResponder' in scope
35 | private extension KeyboardManager {
36 | var keyboardWillOpenPublisher: Publishers.CompactMap<NotificationCenter.Publisher, CGFloat> { NotificationCenter.default
37 | .publisher(for: UIResponder.keyboardWillShowNotification)
| `- error: cannot find 'UIResponder' in scope
38 | .compactMap { $0.userInfo?[UIResponder.keyboardFrameEndUserInfoKey] as? CGRect }
39 | .map { $0.height }
/Users/admin/builder/spi-builder-workspace/Sources/Internal/Managers/KeyboardManager.swift:38:36: error: cannot find 'UIResponder' in scope
36 | var keyboardWillOpenPublisher: Publishers.CompactMap<NotificationCenter.Publisher, CGFloat> { NotificationCenter.default
37 | .publisher(for: UIResponder.keyboardWillShowNotification)
38 | .compactMap { $0.userInfo?[UIResponder.keyboardFrameEndUserInfoKey] as? CGRect }
| `- error: cannot find 'UIResponder' in scope
39 | .map { $0.height }
40 | }
/Users/admin/builder/spi-builder-workspace/Sources/Internal/Managers/KeyboardManager.swift:42:25: error: cannot find 'UIResponder' in scope
40 | }
41 | var keyboardWillHidePublisher: Publishers.Map<NotificationCenter.Publisher, CGFloat> { NotificationCenter.default
42 | .publisher(for: UIResponder.keyboardWillHideNotification)
| `- error: cannot find 'UIResponder' in scope
43 | .map { _ in .zero }
44 | }
[14/22] Compiling MijickNavigationView AnyNavigatableView.swift
/Users/admin/builder/spi-builder-workspace/Sources/Internal/Type Erasers/AnyNavigatableView.swift:16:24: error: 'AnyView' is only available in macOS 10.15 or newer
11 | import SwiftUI
12 |
13 | struct AnyNavigatableView: NavigatableView, Equatable {
| `- note: add @available attribute to enclosing struct
14 | let id: String
15 | let animation: TransitionAnimation
16 | private let _body: AnyView
| `- error: 'AnyView' is only available in macOS 10.15 or newer
17 | private let _configure: (NavigationConfig) -> (NavigationConfig)
18 |
/Users/admin/builder/spi-builder-workspace/Sources/Internal/Type Erasers/AnyNavigatableView.swift:26:66: error: 'ObservableObject' is only available in macOS 10.15 or newer
11 | import SwiftUI
12 |
13 | struct AnyNavigatableView: NavigatableView, Equatable {
| `- note: add @available attribute to enclosing struct
14 | let id: String
15 | let animation: TransitionAnimation
:
24 | self._configure = view.configure
25 | }
26 | init(_ view: some NavigatableView, _ environmentObject: some ObservableObject) {
| | `- error: 'ObservableObject' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing initializer
27 | self.id = view.id
28 | self.animation = .no
/Users/admin/builder/spi-builder-workspace/Sources/Internal/Type Erasers/AnyNavigatableView.swift:26:66: error: 'ObservableObject' is only available in macOS 10.15 or newer
11 | import SwiftUI
12 |
13 | struct AnyNavigatableView: NavigatableView, Equatable {
| `- note: add @available attribute to enclosing struct
14 | let id: String
15 | let animation: TransitionAnimation
:
24 | self._configure = view.configure
25 | }
26 | init(_ view: some NavigatableView, _ environmentObject: some ObservableObject) {
| | `- error: 'ObservableObject' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing initializer
27 | self.id = view.id
28 | self.animation = .no
/Users/admin/builder/spi-builder-workspace/Sources/Internal/Type Erasers/AnyNavigatableView.swift:38:10: warning: main actor-isolated instance method 'configure(view:)' cannot be used to satisfy nonisolated protocol requirement; this is an error in the Swift 6 language mode
11 | import SwiftUI
12 |
13 | struct AnyNavigatableView: NavigatableView, Equatable {
| `- note: add '@preconcurrency' to the 'NavigatableView' conformance to defer isolation checking to run time
14 | let id: String
15 | let animation: TransitionAnimation
:
36 | extension AnyNavigatableView {
37 | var body: some View { _body }
38 | func configure(view: NavigationConfig) -> NavigationConfig { _configure(view) }
| |- warning: main actor-isolated instance method 'configure(view:)' cannot be used to satisfy nonisolated protocol requirement; this is an error in the Swift 6 language mode
| `- note: add 'nonisolated' to 'configure(view:)' to make this instance method not isolated to the actor
39 | }
40 |
/Users/admin/builder/spi-builder-workspace/Sources/Internal/Protocols/NavigatableView.swift:16:10: note: mark the protocol requirement 'configure(view:)' 'async' to allow actor-isolated conformances
14 | var id: String { get }
15 |
16 | func configure(view: NavigationConfig) -> NavigationConfig
| `- note: mark the protocol requirement 'configure(view:)' 'async' to allow actor-isolated conformances
17 | }
18 |
/Users/admin/builder/spi-builder-workspace/Sources/Internal/Type Erasers/AnyNavigatableView.swift:34:17: warning: main actor-isolated operator function '==' cannot be used to satisfy nonisolated protocol requirement; this is an error in the Swift 6 language mode
11 | import SwiftUI
12 |
13 | struct AnyNavigatableView: NavigatableView, Equatable {
| `- note: add '@preconcurrency' to the 'Equatable' conformance to defer isolation checking to run time
14 | let id: String
15 | let animation: TransitionAnimation
:
32 | }
33 | extension AnyNavigatableView {
34 | static func == (lhs: AnyNavigatableView, rhs: AnyNavigatableView) -> Bool { lhs.id == rhs.id }
| |- warning: main actor-isolated operator function '==' cannot be used to satisfy nonisolated protocol requirement; this is an error in the Swift 6 language mode
| `- note: add 'nonisolated' to '==' to make this operator function not isolated to the actor
35 | }
36 | extension AnyNavigatableView {
Swift.Equatable:2:17: note: '==' declared here
1 | public protocol Equatable {
2 | static func == (lhs: Self, rhs: Self) -> Bool
| `- note: '==' declared here
3 | }
/Users/admin/builder/spi-builder-workspace/Sources/Internal/Type Erasers/AnyNavigatableView.swift:37:20: error: 'View' is only available in macOS 10.15 or newer
34 | static func == (lhs: AnyNavigatableView, rhs: AnyNavigatableView) -> Bool { lhs.id == rhs.id }
35 | }
36 | extension AnyNavigatableView {
| `- note: add @available attribute to enclosing extension
37 | var body: some View { _body }
| | `- error: 'View' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing property
38 | func configure(view: NavigationConfig) -> NavigationConfig { _configure(view) }
39 | }
/Users/admin/builder/spi-builder-workspace/Sources/Internal/Type Erasers/AnyNavigatableView.swift:23:22: error: 'AnyView' is only available in macOS 10.15 or newer
11 | import SwiftUI
12 |
13 | struct AnyNavigatableView: NavigatableView, Equatable {
| `- note: add @available attribute to enclosing struct
14 | let id: String
15 | let animation: TransitionAnimation
:
18 |
19 |
20 | init(_ view: some NavigatableView, _ animation: TransitionAnimation) {
| `- note: add @available attribute to enclosing initializer
21 | self.id = view.id
22 | self.animation = animation
23 | self._body = AnyView(view)
| |- error: 'AnyView' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
24 | self._configure = view.configure
25 | }
/Users/admin/builder/spi-builder-workspace/Sources/Internal/Type Erasers/AnyNavigatableView.swift:29:22: error: 'AnyView' is only available in macOS 10.15 or newer
11 | import SwiftUI
12 |
13 | struct AnyNavigatableView: NavigatableView, Equatable {
| `- note: add @available attribute to enclosing struct
14 | let id: String
15 | let animation: TransitionAnimation
:
24 | self._configure = view.configure
25 | }
26 | init(_ view: some NavigatableView, _ environmentObject: some ObservableObject) {
| `- note: add @available attribute to enclosing initializer
27 | self.id = view.id
28 | self.animation = .no
29 | self._body = AnyView(view.environmentObject(environmentObject))
| |- error: 'AnyView' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
30 | self._configure = view.configure
31 | }
/Users/admin/builder/spi-builder-workspace/Sources/Internal/Type Erasers/AnyNavigatableView.swift:29:35: error: 'environmentObject' is only available in macOS 10.15 or newer
11 | import SwiftUI
12 |
13 | struct AnyNavigatableView: NavigatableView, Equatable {
| `- note: add @available attribute to enclosing struct
14 | let id: String
15 | let animation: TransitionAnimation
:
24 | self._configure = view.configure
25 | }
26 | init(_ view: some NavigatableView, _ environmentObject: some ObservableObject) {
| `- note: add @available attribute to enclosing initializer
27 | self.id = view.id
28 | self.animation = .no
29 | self._body = AnyView(view.environmentObject(environmentObject))
| |- error: 'environmentObject' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
30 | self._configure = view.configure
31 | }
/Users/admin/builder/spi-builder-workspace/Sources/Internal/View Modifiers/AnimationCompletionModifier.swift:14:34: error: 'VectorArithmetic' is only available in macOS 10.15 or newer
11 | import SwiftUI
12 |
13 | extension View {
| `- note: add @available attribute to enclosing extension
14 | func onAnimationCompleted<V: VectorArithmetic>(for value: V, perform action: @escaping () -> ()) -> some View { modifier(Modifier(observedValue: value, completion: action)) }
| | `- error: 'VectorArithmetic' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing instance method
15 | }
16 |
/Users/admin/builder/spi-builder-workspace/Sources/Internal/View Modifiers/AnimationCompletionModifier.swift:14:110: error: 'View' is only available in macOS 10.15 or newer
11 | import SwiftUI
12 |
13 | extension View {
| `- note: add @available attribute to enclosing extension
14 | func onAnimationCompleted<V: VectorArithmetic>(for value: V, perform action: @escaping () -> ()) -> some View { modifier(Modifier(observedValue: value, completion: action)) }
| | `- error: 'View' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing instance method
15 | }
16 |
/Users/admin/builder/spi-builder-workspace/Sources/Internal/View Modifiers/AnimationCompletionModifier.swift:13:11: error: 'View' is only available in macOS 10.15 or newer
11 | import SwiftUI
12 |
13 | extension View {
| | `- error: 'View' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing extension
14 | func onAnimationCompleted<V: VectorArithmetic>(for value: V, perform action: @escaping () -> ()) -> some View { modifier(Modifier(observedValue: value, completion: action)) }
15 | }
/Users/admin/builder/spi-builder-workspace/Sources/Internal/View Modifiers/AnimationCompletionModifier.swift:29:41: error: 'View' is only available in macOS 10.15 or newer
16 |
17 | // MARK: - Implementation
18 | fileprivate struct Modifier<V: VectorArithmetic>: AnimatableModifier {
| `- note: add @available attribute to enclosing generic struct
19 | var animatableData: V { didSet { notifyCompletionIfFinished() }}
20 | private var targetValue: V
:
27 | self.completion = completion
28 | }
29 | func body(content: Content) -> some View { content }
| | `- error: 'View' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing instance method
30 | }
31 |
/Users/admin/builder/spi-builder-workspace/Sources/Internal/View Modifiers/AnimationCompletionModifier.swift:18:32: error: 'VectorArithmetic' is only available in macOS 10.15 or newer
16 |
17 | // MARK: - Implementation
18 | fileprivate struct Modifier<V: VectorArithmetic>: AnimatableModifier {
| | `- error: 'VectorArithmetic' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing generic struct
19 | var animatableData: V { didSet { notifyCompletionIfFinished() }}
20 | private var targetValue: V
/Users/admin/builder/spi-builder-workspace/Sources/Internal/View Modifiers/AnimationCompletionModifier.swift:19:9: warning: main actor-isolated property 'animatableData' cannot be used to satisfy nonisolated protocol requirement; this is an error in the Swift 6 language mode
17 | // MARK: - Implementation
18 | fileprivate struct Modifier<V: VectorArithmetic>: AnimatableModifier {
19 | var animatableData: V { didSet { notifyCompletionIfFinished() }}
| `- warning: main actor-isolated property 'animatableData' cannot be used to satisfy nonisolated protocol requirement; this is an error in the Swift 6 language mode
20 | private var targetValue: V
21 | private var completion: () -> ()
SwiftUICore.Animatable:4:9: note: 'animatableData' declared here
2 | public protocol Animatable {
3 | associatedtype AnimatableData : VectorArithmetic
4 | var animatableData: Self.AnimatableData { get set }
| `- note: 'animatableData' declared here
5 | static func _makeAnimatable(value: inout _GraphValue<Self>, inputs: _GraphInputs)
6 | }
/Users/admin/builder/spi-builder-workspace/Sources/Internal/View Modifiers/AnimationCompletionModifier.swift:14:117: warning: conformance of 'ModifiedContent<Content, Modifier>' to 'View' is only available in macOS 10.15 or newer; this is an error in the Swift 6 language mode
11 | import SwiftUI
12 |
13 | extension View {
| `- note: add @available attribute to enclosing extension
14 | func onAnimationCompleted<V: VectorArithmetic>(for value: V, perform action: @escaping () -> ()) -> some View { modifier(Modifier(observedValue: value, completion: action)) }
| | |- warning: conformance of 'ModifiedContent<Content, Modifier>' to 'View' is only available in macOS 10.15 or newer; this is an error in the Swift 6 language mode
| | `- note: add 'if #available' version check
| `- note: add @available attribute to enclosing instance method
15 | }
16 |
/Users/admin/builder/spi-builder-workspace/Sources/Internal/View Modifiers/AnimationCompletionModifier.swift:14:117: error: 'modifier' is only available in macOS 10.15 or newer
11 | import SwiftUI
12 |
13 | extension View {
| `- note: add @available attribute to enclosing extension
14 | func onAnimationCompleted<V: VectorArithmetic>(for value: V, perform action: @escaping () -> ()) -> some View { modifier(Modifier(observedValue: value, completion: action)) }
| | |- error: 'modifier' is only available in macOS 10.15 or newer
| | `- note: add 'if #available' version check
| `- note: add @available attribute to enclosing instance method
15 | }
16 |
[15/22] Compiling MijickNavigationView AnimationCompletionModifier.swift
/Users/admin/builder/spi-builder-workspace/Sources/Internal/Type Erasers/AnyNavigatableView.swift:16:24: error: 'AnyView' is only available in macOS 10.15 or newer
11 | import SwiftUI
12 |
13 | struct AnyNavigatableView: NavigatableView, Equatable {
| `- note: add @available attribute to enclosing struct
14 | let id: String
15 | let animation: TransitionAnimation
16 | private let _body: AnyView
| `- error: 'AnyView' is only available in macOS 10.15 or newer
17 | private let _configure: (NavigationConfig) -> (NavigationConfig)
18 |
/Users/admin/builder/spi-builder-workspace/Sources/Internal/Type Erasers/AnyNavigatableView.swift:26:66: error: 'ObservableObject' is only available in macOS 10.15 or newer
11 | import SwiftUI
12 |
13 | struct AnyNavigatableView: NavigatableView, Equatable {
| `- note: add @available attribute to enclosing struct
14 | let id: String
15 | let animation: TransitionAnimation
:
24 | self._configure = view.configure
25 | }
26 | init(_ view: some NavigatableView, _ environmentObject: some ObservableObject) {
| | `- error: 'ObservableObject' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing initializer
27 | self.id = view.id
28 | self.animation = .no
/Users/admin/builder/spi-builder-workspace/Sources/Internal/Type Erasers/AnyNavigatableView.swift:26:66: error: 'ObservableObject' is only available in macOS 10.15 or newer
11 | import SwiftUI
12 |
13 | struct AnyNavigatableView: NavigatableView, Equatable {
| `- note: add @available attribute to enclosing struct
14 | let id: String
15 | let animation: TransitionAnimation
:
24 | self._configure = view.configure
25 | }
26 | init(_ view: some NavigatableView, _ environmentObject: some ObservableObject) {
| | `- error: 'ObservableObject' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing initializer
27 | self.id = view.id
28 | self.animation = .no
/Users/admin/builder/spi-builder-workspace/Sources/Internal/Type Erasers/AnyNavigatableView.swift:38:10: warning: main actor-isolated instance method 'configure(view:)' cannot be used to satisfy nonisolated protocol requirement; this is an error in the Swift 6 language mode
11 | import SwiftUI
12 |
13 | struct AnyNavigatableView: NavigatableView, Equatable {
| `- note: add '@preconcurrency' to the 'NavigatableView' conformance to defer isolation checking to run time
14 | let id: String
15 | let animation: TransitionAnimation
:
36 | extension AnyNavigatableView {
37 | var body: some View { _body }
38 | func configure(view: NavigationConfig) -> NavigationConfig { _configure(view) }
| |- warning: main actor-isolated instance method 'configure(view:)' cannot be used to satisfy nonisolated protocol requirement; this is an error in the Swift 6 language mode
| `- note: add 'nonisolated' to 'configure(view:)' to make this instance method not isolated to the actor
39 | }
40 |
/Users/admin/builder/spi-builder-workspace/Sources/Internal/Protocols/NavigatableView.swift:16:10: note: mark the protocol requirement 'configure(view:)' 'async' to allow actor-isolated conformances
14 | var id: String { get }
15 |
16 | func configure(view: NavigationConfig) -> NavigationConfig
| `- note: mark the protocol requirement 'configure(view:)' 'async' to allow actor-isolated conformances
17 | }
18 |
/Users/admin/builder/spi-builder-workspace/Sources/Internal/Type Erasers/AnyNavigatableView.swift:34:17: warning: main actor-isolated operator function '==' cannot be used to satisfy nonisolated protocol requirement; this is an error in the Swift 6 language mode
11 | import SwiftUI
12 |
13 | struct AnyNavigatableView: NavigatableView, Equatable {
| `- note: add '@preconcurrency' to the 'Equatable' conformance to defer isolation checking to run time
14 | let id: String
15 | let animation: TransitionAnimation
:
32 | }
33 | extension AnyNavigatableView {
34 | static func == (lhs: AnyNavigatableView, rhs: AnyNavigatableView) -> Bool { lhs.id == rhs.id }
| |- warning: main actor-isolated operator function '==' cannot be used to satisfy nonisolated protocol requirement; this is an error in the Swift 6 language mode
| `- note: add 'nonisolated' to '==' to make this operator function not isolated to the actor
35 | }
36 | extension AnyNavigatableView {
Swift.Equatable:2:17: note: '==' declared here
1 | public protocol Equatable {
2 | static func == (lhs: Self, rhs: Self) -> Bool
| `- note: '==' declared here
3 | }
/Users/admin/builder/spi-builder-workspace/Sources/Internal/Type Erasers/AnyNavigatableView.swift:37:20: error: 'View' is only available in macOS 10.15 or newer
34 | static func == (lhs: AnyNavigatableView, rhs: AnyNavigatableView) -> Bool { lhs.id == rhs.id }
35 | }
36 | extension AnyNavigatableView {
| `- note: add @available attribute to enclosing extension
37 | var body: some View { _body }
| | `- error: 'View' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing property
38 | func configure(view: NavigationConfig) -> NavigationConfig { _configure(view) }
39 | }
/Users/admin/builder/spi-builder-workspace/Sources/Internal/Type Erasers/AnyNavigatableView.swift:23:22: error: 'AnyView' is only available in macOS 10.15 or newer
11 | import SwiftUI
12 |
13 | struct AnyNavigatableView: NavigatableView, Equatable {
| `- note: add @available attribute to enclosing struct
14 | let id: String
15 | let animation: TransitionAnimation
:
18 |
19 |
20 | init(_ view: some NavigatableView, _ animation: TransitionAnimation) {
| `- note: add @available attribute to enclosing initializer
21 | self.id = view.id
22 | self.animation = animation
23 | self._body = AnyView(view)
| |- error: 'AnyView' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
24 | self._configure = view.configure
25 | }
/Users/admin/builder/spi-builder-workspace/Sources/Internal/Type Erasers/AnyNavigatableView.swift:29:22: error: 'AnyView' is only available in macOS 10.15 or newer
11 | import SwiftUI
12 |
13 | struct AnyNavigatableView: NavigatableView, Equatable {
| `- note: add @available attribute to enclosing struct
14 | let id: String
15 | let animation: TransitionAnimation
:
24 | self._configure = view.configure
25 | }
26 | init(_ view: some NavigatableView, _ environmentObject: some ObservableObject) {
| `- note: add @available attribute to enclosing initializer
27 | self.id = view.id
28 | self.animation = .no
29 | self._body = AnyView(view.environmentObject(environmentObject))
| |- error: 'AnyView' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
30 | self._configure = view.configure
31 | }
/Users/admin/builder/spi-builder-workspace/Sources/Internal/Type Erasers/AnyNavigatableView.swift:29:35: error: 'environmentObject' is only available in macOS 10.15 or newer
11 | import SwiftUI
12 |
13 | struct AnyNavigatableView: NavigatableView, Equatable {
| `- note: add @available attribute to enclosing struct
14 | let id: String
15 | let animation: TransitionAnimation
:
24 | self._configure = view.configure
25 | }
26 | init(_ view: some NavigatableView, _ environmentObject: some ObservableObject) {
| `- note: add @available attribute to enclosing initializer
27 | self.id = view.id
28 | self.animation = .no
29 | self._body = AnyView(view.environmentObject(environmentObject))
| |- error: 'environmentObject' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
30 | self._configure = view.configure
31 | }
/Users/admin/builder/spi-builder-workspace/Sources/Internal/View Modifiers/AnimationCompletionModifier.swift:14:34: error: 'VectorArithmetic' is only available in macOS 10.15 or newer
11 | import SwiftUI
12 |
13 | extension View {
| `- note: add @available attribute to enclosing extension
14 | func onAnimationCompleted<V: VectorArithmetic>(for value: V, perform action: @escaping () -> ()) -> some View { modifier(Modifier(observedValue: value, completion: action)) }
| | `- error: 'VectorArithmetic' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing instance method
15 | }
16 |
/Users/admin/builder/spi-builder-workspace/Sources/Internal/View Modifiers/AnimationCompletionModifier.swift:14:110: error: 'View' is only available in macOS 10.15 or newer
11 | import SwiftUI
12 |
13 | extension View {
| `- note: add @available attribute to enclosing extension
14 | func onAnimationCompleted<V: VectorArithmetic>(for value: V, perform action: @escaping () -> ()) -> some View { modifier(Modifier(observedValue: value, completion: action)) }
| | `- error: 'View' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing instance method
15 | }
16 |
/Users/admin/builder/spi-builder-workspace/Sources/Internal/View Modifiers/AnimationCompletionModifier.swift:13:11: error: 'View' is only available in macOS 10.15 or newer
11 | import SwiftUI
12 |
13 | extension View {
| | `- error: 'View' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing extension
14 | func onAnimationCompleted<V: VectorArithmetic>(for value: V, perform action: @escaping () -> ()) -> some View { modifier(Modifier(observedValue: value, completion: action)) }
15 | }
/Users/admin/builder/spi-builder-workspace/Sources/Internal/View Modifiers/AnimationCompletionModifier.swift:29:41: error: 'View' is only available in macOS 10.15 or newer
16 |
17 | // MARK: - Implementation
18 | fileprivate struct Modifier<V: VectorArithmetic>: AnimatableModifier {
| `- note: add @available attribute to enclosing generic struct
19 | var animatableData: V { didSet { notifyCompletionIfFinished() }}
20 | private var targetValue: V
:
27 | self.completion = completion
28 | }
29 | func body(content: Content) -> some View { content }
| | `- error: 'View' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing instance method
30 | }
31 |
/Users/admin/builder/spi-builder-workspace/Sources/Internal/View Modifiers/AnimationCompletionModifier.swift:18:32: error: 'VectorArithmetic' is only available in macOS 10.15 or newer
16 |
17 | // MARK: - Implementation
18 | fileprivate struct Modifier<V: VectorArithmetic>: AnimatableModifier {
| | `- error: 'VectorArithmetic' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing generic struct
19 | var animatableData: V { didSet { notifyCompletionIfFinished() }}
20 | private var targetValue: V
/Users/admin/builder/spi-builder-workspace/Sources/Internal/View Modifiers/AnimationCompletionModifier.swift:19:9: warning: main actor-isolated property 'animatableData' cannot be used to satisfy nonisolated protocol requirement; this is an error in the Swift 6 language mode
17 | // MARK: - Implementation
18 | fileprivate struct Modifier<V: VectorArithmetic>: AnimatableModifier {
19 | var animatableData: V { didSet { notifyCompletionIfFinished() }}
| `- warning: main actor-isolated property 'animatableData' cannot be used to satisfy nonisolated protocol requirement; this is an error in the Swift 6 language mode
20 | private var targetValue: V
21 | private var completion: () -> ()
SwiftUICore.Animatable:4:9: note: 'animatableData' declared here
2 | public protocol Animatable {
3 | associatedtype AnimatableData : VectorArithmetic
4 | var animatableData: Self.AnimatableData { get set }
| `- note: 'animatableData' declared here
5 | static func _makeAnimatable(value: inout _GraphValue<Self>, inputs: _GraphInputs)
6 | }
/Users/admin/builder/spi-builder-workspace/Sources/Internal/View Modifiers/AnimationCompletionModifier.swift:14:117: warning: conformance of 'ModifiedContent<Content, Modifier>' to 'View' is only available in macOS 10.15 or newer; this is an error in the Swift 6 language mode
11 | import SwiftUI
12 |
13 | extension View {
| `- note: add @available attribute to enclosing extension
14 | func onAnimationCompleted<V: VectorArithmetic>(for value: V, perform action: @escaping () -> ()) -> some View { modifier(Modifier(observedValue: value, completion: action)) }
| | |- warning: conformance of 'ModifiedContent<Content, Modifier>' to 'View' is only available in macOS 10.15 or newer; this is an error in the Swift 6 language mode
| | `- note: add 'if #available' version check
| `- note: add @available attribute to enclosing instance method
15 | }
16 |
/Users/admin/builder/spi-builder-workspace/Sources/Internal/View Modifiers/AnimationCompletionModifier.swift:14:117: error: 'modifier' is only available in macOS 10.15 or newer
11 | import SwiftUI
12 |
13 | extension View {
| `- note: add @available attribute to enclosing extension
14 | func onAnimationCompleted<V: VectorArithmetic>(for value: V, perform action: @escaping () -> ()) -> some View { modifier(Modifier(observedValue: value, completion: action)) }
| | |- error: 'modifier' is only available in macOS 10.15 or newer
| | `- note: add 'if #available' version check
| `- note: add @available attribute to enclosing instance method
15 | }
16 |
[16/22] Compiling MijickNavigationView Animation++.swift
/Users/admin/builder/spi-builder-workspace/Sources/Internal/Extensions/Animation++.swift:15:46: error: 'Animation' is only available in macOS 10.15 or newer
12 | import SwiftUI
13 |
14 | extension Animation {
| `- note: add @available attribute to enclosing extension
15 | static func keyboard(withDelay: Bool) -> Animation { .easeOut(duration: 0.25).delay(withDelay ? 0.1 : 0) }
| | `- error: 'Animation' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing static method
16 | }
17 |
/Users/admin/builder/spi-builder-workspace/Sources/Internal/Extensions/Animation++.swift:14:11: error: 'Animation' is only available in macOS 10.15 or newer
12 | import SwiftUI
13 |
14 | extension Animation {
| | `- error: 'Animation' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing extension
15 | static func keyboard(withDelay: Bool) -> Animation { .easeOut(duration: 0.25).delay(withDelay ? 0.1 : 0) }
16 | }
/Users/admin/builder/spi-builder-workspace/Sources/Internal/Extensions/Animation++.swift:15:59: error: 'easeOut(duration:)' is only available in macOS 10.15 or newer
12 | import SwiftUI
13 |
14 | extension Animation {
| `- note: add @available attribute to enclosing extension
15 | static func keyboard(withDelay: Bool) -> Animation { .easeOut(duration: 0.25).delay(withDelay ? 0.1 : 0) }
| | |- error: 'easeOut(duration:)' is only available in macOS 10.15 or newer
| | `- note: add 'if #available' version check
| `- note: add @available attribute to enclosing static method
16 | }
17 |
/Users/admin/builder/spi-builder-workspace/Sources/Internal/Extensions/Animation++.swift:15:83: error: 'delay' is only available in macOS 10.15 or newer
12 | import SwiftUI
13 |
14 | extension Animation {
| `- note: add @available attribute to enclosing extension
15 | static func keyboard(withDelay: Bool) -> Animation { .easeOut(duration: 0.25).delay(withDelay ? 0.1 : 0) }
| | |- error: 'delay' is only available in macOS 10.15 or newer
| | `- note: add 'if #available' version check
| `- note: add @available attribute to enclosing static method
16 | }
17 |
[17/22] Compiling MijickNavigationView Array++.swift
/Users/admin/builder/spi-builder-workspace/Sources/Internal/Extensions/Animation++.swift:15:46: error: 'Animation' is only available in macOS 10.15 or newer
12 | import SwiftUI
13 |
14 | extension Animation {
| `- note: add @available attribute to enclosing extension
15 | static func keyboard(withDelay: Bool) -> Animation { .easeOut(duration: 0.25).delay(withDelay ? 0.1 : 0) }
| | `- error: 'Animation' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing static method
16 | }
17 |
/Users/admin/builder/spi-builder-workspace/Sources/Internal/Extensions/Animation++.swift:14:11: error: 'Animation' is only available in macOS 10.15 or newer
12 | import SwiftUI
13 |
14 | extension Animation {
| | `- error: 'Animation' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing extension
15 | static func keyboard(withDelay: Bool) -> Animation { .easeOut(duration: 0.25).delay(withDelay ? 0.1 : 0) }
16 | }
/Users/admin/builder/spi-builder-workspace/Sources/Internal/Extensions/Animation++.swift:15:59: error: 'easeOut(duration:)' is only available in macOS 10.15 or newer
12 | import SwiftUI
13 |
14 | extension Animation {
| `- note: add @available attribute to enclosing extension
15 | static func keyboard(withDelay: Bool) -> Animation { .easeOut(duration: 0.25).delay(withDelay ? 0.1 : 0) }
| | |- error: 'easeOut(duration:)' is only available in macOS 10.15 or newer
| | `- note: add 'if #available' version check
| `- note: add @available attribute to enclosing static method
16 | }
17 |
/Users/admin/builder/spi-builder-workspace/Sources/Internal/Extensions/Animation++.swift:15:83: error: 'delay' is only available in macOS 10.15 or newer
12 | import SwiftUI
13 |
14 | extension Animation {
| `- note: add @available attribute to enclosing extension
15 | static func keyboard(withDelay: Bool) -> Animation { .easeOut(duration: 0.25).delay(withDelay ? 0.1 : 0) }
| | |- error: 'delay' is only available in macOS 10.15 or newer
| | `- note: add 'if #available' version check
| `- note: add @available attribute to enclosing static method
16 | }
17 |
[18/22] Compiling MijickNavigationView Public+NavigationBackGesture.swift
/Users/admin/builder/spi-builder-workspace/Sources/Public/Public+NavigationConfig.swift:16:37: error: 'SafeAreaRegions' is only available in macOS 11.0 or newer
12 |
13 | // MARK: - Content Customisation
14 | public extension NavigationConfig {
| `- note: add @available attribute to enclosing extension
15 | /// Ignores safe areas
16 | func ignoresSafeArea(_ regions: SafeAreaRegions = .all, _ edges: SafeAreaEdges) -> Self { changing(path: \.ignoredSafeAreas, to: (regions, edges)) }
| | `- error: 'SafeAreaRegions' is only available in macOS 11.0 or newer
| `- note: add @available attribute to enclosing instance method
17 |
18 | /// Changes the background colour of the selected view
/Users/admin/builder/spi-builder-workspace/Sources/Public/Public+NavigationConfig.swift:19:36: error: 'Color' is only available in macOS 10.15 or newer
12 |
13 | // MARK: - Content Customisation
14 | public extension NavigationConfig {
| `- note: add @available attribute to enclosing extension
15 | /// Ignores safe areas
16 | func ignoresSafeArea(_ regions: SafeAreaRegions = .all, _ edges: SafeAreaEdges) -> Self { changing(path: \.ignoredSafeAreas, to: (regions, edges)) }
17 |
18 | /// Changes the background colour of the selected view
19 | func backgroundColour(_ value: Color) -> Self { changing(path: \.backgroundColour, to: value) }
| | `- error: 'Color' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing instance method
20 |
21 | /// Changes the gesture that can be used to move to the previous view
/Users/admin/builder/spi-builder-workspace/Sources/Public/Public+NavigationConfig.swift:27:50: error: 'SafeAreaRegions' is only available in macOS 11.0 or newer
24 |
25 | // MARK: - Internal
26 | public struct NavigationConfig: Configurable {
| `- note: add @available attribute to enclosing struct
27 | private(set) var ignoredSafeAreas: (regions: SafeAreaRegions, edges: SafeAreaEdges)? = nil
| `- error: 'SafeAreaRegions' is only available in macOS 11.0 or newer
28 | private(set) var backgroundColour: Color? = nil
29 | private(set) var navigationBackGesture: NavigationBackGesture.Kind = .no
/Users/admin/builder/spi-builder-workspace/Sources/Public/Public+NavigationConfig.swift:28:40: error: 'Color' is only available in macOS 10.15 or newer
24 |
25 | // MARK: - Internal
26 | public struct NavigationConfig: Configurable {
| `- note: add @available attribute to enclosing struct
27 | private(set) var ignoredSafeAreas: (regions: SafeAreaRegions, edges: SafeAreaEdges)? = nil
28 | private(set) var backgroundColour: Color? = nil
| `- error: 'Color' is only available in macOS 10.15 or newer
29 | private(set) var navigationBackGesture: NavigationBackGesture.Kind = .no
30 | }
[19/22] Compiling MijickNavigationView Public+NavigationConfig.swift
/Users/admin/builder/spi-builder-workspace/Sources/Public/Public+NavigationConfig.swift:16:37: error: 'SafeAreaRegions' is only available in macOS 11.0 or newer
12 |
13 | // MARK: - Content Customisation
14 | public extension NavigationConfig {
| `- note: add @available attribute to enclosing extension
15 | /// Ignores safe areas
16 | func ignoresSafeArea(_ regions: SafeAreaRegions = .all, _ edges: SafeAreaEdges) -> Self { changing(path: \.ignoredSafeAreas, to: (regions, edges)) }
| | `- error: 'SafeAreaRegions' is only available in macOS 11.0 or newer
| `- note: add @available attribute to enclosing instance method
17 |
18 | /// Changes the background colour of the selected view
/Users/admin/builder/spi-builder-workspace/Sources/Public/Public+NavigationConfig.swift:19:36: error: 'Color' is only available in macOS 10.15 or newer
12 |
13 | // MARK: - Content Customisation
14 | public extension NavigationConfig {
| `- note: add @available attribute to enclosing extension
15 | /// Ignores safe areas
16 | func ignoresSafeArea(_ regions: SafeAreaRegions = .all, _ edges: SafeAreaEdges) -> Self { changing(path: \.ignoredSafeAreas, to: (regions, edges)) }
17 |
18 | /// Changes the background colour of the selected view
19 | func backgroundColour(_ value: Color) -> Self { changing(path: \.backgroundColour, to: value) }
| | `- error: 'Color' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing instance method
20 |
21 | /// Changes the gesture that can be used to move to the previous view
/Users/admin/builder/spi-builder-workspace/Sources/Public/Public+NavigationConfig.swift:27:50: error: 'SafeAreaRegions' is only available in macOS 11.0 or newer
24 |
25 | // MARK: - Internal
26 | public struct NavigationConfig: Configurable {
| `- note: add @available attribute to enclosing struct
27 | private(set) var ignoredSafeAreas: (regions: SafeAreaRegions, edges: SafeAreaEdges)? = nil
| `- error: 'SafeAreaRegions' is only available in macOS 11.0 or newer
28 | private(set) var backgroundColour: Color? = nil
29 | private(set) var navigationBackGesture: NavigationBackGesture.Kind = .no
/Users/admin/builder/spi-builder-workspace/Sources/Public/Public+NavigationConfig.swift:28:40: error: 'Color' is only available in macOS 10.15 or newer
24 |
25 | // MARK: - Internal
26 | public struct NavigationConfig: Configurable {
| `- note: add @available attribute to enclosing struct
27 | private(set) var ignoredSafeAreas: (regions: SafeAreaRegions, edges: SafeAreaEdges)? = nil
28 | private(set) var backgroundColour: Color? = nil
| `- error: 'Color' is only available in macOS 10.15 or newer
29 | private(set) var navigationBackGesture: NavigationBackGesture.Kind = .no
30 | }
[20/22] Compiling MijickNavigationView NavigationManager.swift
/Users/admin/builder/spi-builder-workspace/Sources/Internal/Managers/NavigationManager.swift:14:6: error: 'Published' is only available in macOS 10.15 or newer
11 | import SwiftUI
12 |
13 | public class NavigationManager: ObservableObject {
| `- note: add @available attribute to enclosing class
14 | @Published private(set) var views: [AnyNavigatableView] = [] { willSet { onViewsWillUpdate(newValue) } }
| `- error: 'Published' is only available in macOS 10.15 or newer
15 | private(set) var transitionsBlocked: Bool = false { didSet { onTransitionsBlockedUpdate() } }
16 | private(set) var transitionType: TransitionType = .push
/Users/admin/builder/spi-builder-workspace/Sources/Internal/Managers/NavigationManager.swift:20:16: warning: static property 'shared' is not concurrency-safe because non-'Sendable' type 'NavigationManager' may have shared mutable state; this is an error in the Swift 6 language mode
11 | import SwiftUI
12 |
13 | public class NavigationManager: ObservableObject {
| `- note: class 'NavigationManager' does not conform to the 'Sendable' protocol
14 | @Published private(set) var views: [AnyNavigatableView] = [] { willSet { onViewsWillUpdate(newValue) } }
15 | private(set) var transitionsBlocked: Bool = false { didSet { onTransitionsBlockedUpdate() } }
:
18 | private(set) var navigationBackGesture: NavigationBackGesture.Kind = .no
19 |
20 | static let shared: NavigationManager = .init()
| |- warning: static property 'shared' is not concurrency-safe because non-'Sendable' type 'NavigationManager' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'shared' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
21 | private init() {}
22 | }
<unknown>:0: error: cannot convert value of type 'KeyPath<NavigationManager, [AnyNavigatableView]>' to expected argument type 'ReferenceWritableKeyPath<NavigationManager, [AnyNavigatableView]>'
/Users/admin/builder/spi-builder-workspace/Sources/Internal/Managers/NavigationManager.swift:13:33: error: 'ObservableObject' is only available in macOS 10.15 or newer
11 | import SwiftUI
12 |
13 | public class NavigationManager: ObservableObject {
| | `- error: 'ObservableObject' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing class
14 | @Published private(set) var views: [AnyNavigatableView] = [] { willSet { onViewsWillUpdate(newValue) } }
15 | private(set) var transitionsBlocked: Bool = false { didSet { onTransitionsBlockedUpdate() } }
/Users/admin/builder/spi-builder-workspace/Sources/Internal/Managers/NavigationManager.swift:27:36: error: cannot pass as inout because setter for 'views' is only available in macOS 10.15 or newer
23 |
24 | // MARK: - Operations Handler
25 | extension NavigationManager {
| `- note: add @available attribute to enclosing extension
26 | static func performOperation(_ operation: Operation) { if !NavigationManager.shared.transitionsBlocked {
| `- note: add @available attribute to enclosing static method
27 | DispatchQueue.main.async { shared.views.perform(operation) }
| |- error: cannot pass as inout because setter for 'views' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
28 | }}
29 | }
/Users/admin/builder/spi-builder-workspace/Sources/Internal/Managers/NavigationManager.swift:27:57: warning: capture of 'operation' with non-sendable type 'NavigationManager.Operation' in a `@Sendable` closure; this is an error in the Swift 6 language mode
25 | extension NavigationManager {
26 | static func performOperation(_ operation: Operation) { if !NavigationManager.shared.transitionsBlocked {
27 | DispatchQueue.main.async { shared.views.perform(operation) }
| `- warning: capture of 'operation' with non-sendable type 'NavigationManager.Operation' in a `@Sendable` closure; this is an error in the Swift 6 language mode
28 | }}
29 | }
:
64 |
65 | // MARK: - Array Operations
66 | extension NavigationManager { enum Operation {
| `- note: consider making enum 'Operation' conform to the 'Sendable' protocol
67 | case insert(any NavigatableView, TransitionAnimation)
68 | case removeLast, removeAll(toID: String), removeAllExceptFirst
/Users/admin/builder/spi-builder-workspace/Sources/Internal/Managers/NavigationManager.swift:33:88: error: setter for 'views' is only available in macOS 10.15 or newer
30 |
31 | // MARK: - Setters
32 | extension NavigationManager {
| `- note: add @available attribute to enclosing extension
33 | static func setRoot(_ rootView: some NavigatableView) { DispatchQueue.main.async { shared.views = [.init(rootView, .no)] }}
| | |- error: setter for 'views' is only available in macOS 10.15 or newer
| | `- note: add 'if #available' version check
| `- note: add @available attribute to enclosing static method
34 | static func replaceRoot(_ newRootView: some NavigatableView) { DispatchQueue.main.asyncAfter(deadline: .now() + 0.05) { shared.transitionType = .replaceRoot(.init(newRootView, .no)) }}
35 | static func blockTransitions(_ value: Bool) { shared.transitionsBlocked = value }
/Users/admin/builder/spi-builder-workspace/Sources/Internal/Managers/NavigationManager.swift:33:110: warning: capture of 'rootView' with non-sendable type 'some NavigatableView' in a `@Sendable` closure; this is an error in the Swift 6 language mode
31 | // MARK: - Setters
32 | extension NavigationManager {
33 | static func setRoot(_ rootView: some NavigatableView) { DispatchQueue.main.async { shared.views = [.init(rootView, .no)] }}
| | `- warning: capture of 'rootView' with non-sendable type 'some NavigatableView' in a `@Sendable` closure; this is an error in the Swift 6 language mode
| `- note: consider making generic parameter 'some NavigatableView' conform to the 'Sendable' protocol
34 | static func replaceRoot(_ newRootView: some NavigatableView) { DispatchQueue.main.asyncAfter(deadline: .now() + 0.05) { shared.transitionType = .replaceRoot(.init(newRootView, .no)) }}
35 | static func blockTransitions(_ value: Bool) { shared.transitionsBlocked = value }
/Users/admin/builder/spi-builder-workspace/Sources/Internal/Managers/NavigationManager.swift:34:168: warning: capture of 'newRootView' with non-sendable type 'some NavigatableView' in a `@Sendable` closure; this is an error in the Swift 6 language mode
32 | extension NavigationManager {
33 | static func setRoot(_ rootView: some NavigatableView) { DispatchQueue.main.async { shared.views = [.init(rootView, .no)] }}
34 | static func replaceRoot(_ newRootView: some NavigatableView) { DispatchQueue.main.asyncAfter(deadline: .now() + 0.05) { shared.transitionType = .replaceRoot(.init(newRootView, .no)) }}
| | `- warning: capture of 'newRootView' with non-sendable type 'some NavigatableView' in a `@Sendable` closure; this is an error in the Swift 6 language mode
| `- note: consider making generic parameter 'some NavigatableView' conform to the 'Sendable' protocol
35 | static func blockTransitions(_ value: Bool) { shared.transitionsBlocked = value }
36 | static func setTransitionType(_ value: TransitionType) { if shared.transitionType != value { shared.transitionType = value }}
/Users/admin/builder/spi-builder-workspace/Sources/Internal/Managers/NavigationManager.swift:42:43: warning: main actor-isolated property 'animation' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
39 | // MARK: - Gesture Handlers
40 | extension NavigationManager {
41 | func gestureStarted() {
| `- note: add '@MainActor' to make instance method 'gestureStarted()' part of global actor 'MainActor'
42 | transitionAnimation = views.last?.animation ?? .no
| `- warning: main actor-isolated property 'animation' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
43 | navigationBackGesture = views.last?.configure(view: .init()).navigationBackGesture ?? .no
44 | }
/Users/admin/builder/spi-builder-workspace/Sources/Internal/Type Erasers/AnyNavigatableView.swift:15:9: note: property declared here
13 | struct AnyNavigatableView: NavigatableView, Equatable {
14 | let id: String
15 | let animation: TransitionAnimation
| `- note: property declared here
16 | private let _body: AnyView
17 | private let _configure: (NavigationConfig) -> (NavigationConfig)
/Users/admin/builder/spi-builder-workspace/Sources/Internal/Managers/NavigationManager.swift:43:45: warning: call to main actor-isolated instance method 'configure(view:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
39 | // MARK: - Gesture Handlers
40 | extension NavigationManager {
41 | func gestureStarted() {
| `- note: add '@MainActor' to make instance method 'gestureStarted()' part of global actor 'MainActor'
42 | transitionAnimation = views.last?.animation ?? .no
43 | navigationBackGesture = views.last?.configure(view: .init()).navigationBackGesture ?? .no
| `- warning: call to main actor-isolated instance method 'configure(view:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
44 | }
45 | }
/Users/admin/builder/spi-builder-workspace/Sources/Internal/Type Erasers/AnyNavigatableView.swift:38:10: note: calls to instance method 'configure(view:)' from outside of its actor context are implicitly asynchronous
36 | extension AnyNavigatableView {
37 | var body: some View { _body }
38 | func configure(view: NavigationConfig) -> NavigationConfig { _configure(view) }
| `- note: calls to instance method 'configure(view:)' from outside of its actor context are implicitly asynchronous
39 | }
40 |
/Users/admin/builder/spi-builder-workspace/Sources/Internal/Managers/NavigationManager.swift:51:73: warning: main actor-isolated property 'animation' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
47 | // MARK: - On Attributes Will/Did Change
48 | private extension NavigationManager {
49 | func onViewsWillUpdate(_ newValue: [AnyNavigatableView]) { if newValue.count != views.count {
| `- note: add '@MainActor' to make instance method 'onViewsWillUpdate' part of global actor 'MainActor'
50 | transitionType = newValue.count > views.count || !transitionType.isOne(of: .push, .pop) ? .push : .pop
51 | transitionAnimation = (transitionType == .push ? newValue.last?.animation : views[newValue.count].animation) ?? .no
| `- warning: main actor-isolated property 'animation' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
52 | navigationBackGesture = newValue.last?.configure(view: .init()).navigationBackGesture ?? .no
53 | }}
/Users/admin/builder/spi-builder-workspace/Sources/Internal/Type Erasers/AnyNavigatableView.swift:15:9: note: property declared here
13 | struct AnyNavigatableView: NavigatableView, Equatable {
14 | let id: String
15 | let animation: TransitionAnimation
| `- note: property declared here
16 | private let _body: AnyView
17 | private let _configure: (NavigationConfig) -> (NavigationConfig)
/Users/admin/builder/spi-builder-workspace/Sources/Internal/Managers/NavigationManager.swift:51:107: warning: main actor-isolated property 'animation' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
47 | // MARK: - On Attributes Will/Did Change
48 | private extension NavigationManager {
49 | func onViewsWillUpdate(_ newValue: [AnyNavigatableView]) { if newValue.count != views.count {
| `- note: add '@MainActor' to make instance method 'onViewsWillUpdate' part of global actor 'MainActor'
50 | transitionType = newValue.count > views.count || !transitionType.isOne(of: .push, .pop) ? .push : .pop
51 | transitionAnimation = (transitionType == .push ? newValue.last?.animation : views[newValue.count].animation) ?? .no
| `- warning: main actor-isolated property 'animation' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
52 | navigationBackGesture = newValue.last?.configure(view: .init()).navigationBackGesture ?? .no
53 | }}
/Users/admin/builder/spi-builder-workspace/Sources/Internal/Type Erasers/AnyNavigatableView.swift:15:9: note: property declared here
13 | struct AnyNavigatableView: NavigatableView, Equatable {
14 | let id: String
15 | let animation: TransitionAnimation
| `- note: property declared here
16 | private let _body: AnyView
17 | private let _configure: (NavigationConfig) -> (NavigationConfig)
/Users/admin/builder/spi-builder-workspace/Sources/Internal/Managers/NavigationManager.swift:52:48: warning: call to main actor-isolated instance method 'configure(view:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
47 | // MARK: - On Attributes Will/Did Change
48 | private extension NavigationManager {
49 | func onViewsWillUpdate(_ newValue: [AnyNavigatableView]) { if newValue.count != views.count {
| `- note: add '@MainActor' to make instance method 'onViewsWillUpdate' part of global actor 'MainActor'
50 | transitionType = newValue.count > views.count || !transitionType.isOne(of: .push, .pop) ? .push : .pop
51 | transitionAnimation = (transitionType == .push ? newValue.last?.animation : views[newValue.count].animation) ?? .no
52 | navigationBackGesture = newValue.last?.configure(view: .init()).navigationBackGesture ?? .no
| `- warning: call to main actor-isolated instance method 'configure(view:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
53 | }}
54 | func onTransitionsBlockedUpdate() { if !transitionsBlocked, case let .replaceRoot(newRootView) = transitionType {
/Users/admin/builder/spi-builder-workspace/Sources/Internal/Type Erasers/AnyNavigatableView.swift:38:10: note: calls to instance method 'configure(view:)' from outside of its actor context are implicitly asynchronous
36 | extension AnyNavigatableView {
37 | var body: some View { _body }
38 | func configure(view: NavigationConfig) -> NavigationConfig { _configure(view) }
| `- note: calls to instance method 'configure(view:)' from outside of its actor context are implicitly asynchronous
39 | }
40 |
/Users/admin/builder/spi-builder-workspace/Sources/Internal/Managers/NavigationManager.swift:55:9: error: setter for 'views' is only available in macOS 10.15 or newer
46 |
47 | // MARK: - On Attributes Will/Did Change
48 | private extension NavigationManager {
| `- note: add @available attribute to enclosing extension
49 | func onViewsWillUpdate(_ newValue: [AnyNavigatableView]) { if newValue.count != views.count {
50 | transitionType = newValue.count > views.count || !transitionType.isOne(of: .push, .pop) ? .push : .pop
:
52 | navigationBackGesture = newValue.last?.configure(view: .init()).navigationBackGesture ?? .no
53 | }}
54 | func onTransitionsBlockedUpdate() { if !transitionsBlocked, case let .replaceRoot(newRootView) = transitionType {
| `- note: add @available attribute to enclosing instance method
55 | views = views.appendingAsFirstAndRemovingDuplicates(newRootView)
| |- error: setter for 'views' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
56 | }}
57 | }
/Users/admin/builder/spi-builder-workspace/Sources/Internal/Managers/NavigationManager.swift:82:60: warning: call to main actor-isolated initializer 'init(_:_:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
78 | KeyboardManager.hideKeyboard()
79 | }
80 | mutating func performOperation(_ operation: NavigationManager.Operation) {
| `- note: add '@MainActor' to make instance method 'performOperation' part of global actor 'MainActor'
81 | switch operation {
82 | case .insert(let view, let animation): append(.init(view, animation), if: canBeInserted(view))
| `- warning: call to main actor-isolated initializer 'init(_:_:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
83 | case .removeLast: removeLastExceptFirst()
84 | case .removeAll(let id): removeLastTo(elementWhere: { $0.id == id })
/Users/admin/builder/spi-builder-workspace/Sources/Internal/Type Erasers/AnyNavigatableView.swift:20:5: note: calls to initializer 'init(_:_:)' from outside of its actor context are implicitly asynchronous
18 |
19 |
20 | init(_ view: some NavigatableView, _ animation: TransitionAnimation) {
| `- note: calls to initializer 'init(_:_:)' from outside of its actor context are implicitly asynchronous
21 | self.id = view.id
22 | self.animation = animation
/Users/admin/builder/spi-builder-workspace/Sources/Internal/Managers/ScreenManager.swift:16:30: error: cannot find type 'UIEdgeInsets' in scope
14 | class ScreenManager: ObservableObject {
15 | @Published var size: CGSize = .init()
16 | @Published var safeArea: UIEdgeInsets = .init()
| `- error: cannot find type 'UIEdgeInsets' in scope
17 |
18 | static let shared: ScreenManager = .init()
/Users/admin/builder/spi-builder-workspace/Sources/Internal/Managers/ScreenManager.swift:15:6: error: 'Published' is only available in macOS 10.15 or newer
12 | import SwiftUI
13 |
14 | class ScreenManager: ObservableObject {
| `- note: add @available attribute to enclosing class
15 | @Published var size: CGSize = .init()
| `- error: 'Published' is only available in macOS 10.15 or newer
16 | @Published var safeArea: UIEdgeInsets = .init()
17 |
/Users/admin/builder/spi-builder-workspace/Sources/Internal/Managers/ScreenManager.swift:16:6: error: 'Published' is only available in macOS 10.15 or newer
12 | import SwiftUI
13 |
14 | class ScreenManager: ObservableObject {
| `- note: add @available attribute to enclosing class
15 | @Published var size: CGSize = .init()
16 | @Published var safeArea: UIEdgeInsets = .init()
| `- error: 'Published' is only available in macOS 10.15 or newer
17 |
18 | static let shared: ScreenManager = .init()
/Users/admin/builder/spi-builder-workspace/Sources/Internal/Managers/ScreenManager.swift:18:16: warning: static property 'shared' is not concurrency-safe because non-'Sendable' type 'ScreenManager' may have shared mutable state; this is an error in the Swift 6 language mode
12 | import SwiftUI
13 |
14 | class ScreenManager: ObservableObject {
| `- note: class 'ScreenManager' does not conform to the 'Sendable' protocol
15 | @Published var size: CGSize = .init()
16 | @Published var safeArea: UIEdgeInsets = .init()
17 |
18 | static let shared: ScreenManager = .init()
| |- warning: static property 'shared' is not concurrency-safe because non-'Sendable' type 'ScreenManager' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'shared' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
19 | private init() {}
20 | }
/Users/admin/builder/spi-builder-workspace/Sources/Internal/Managers/ScreenManager.swift:14:22: error: 'ObservableObject' is only available in macOS 10.15 or newer
12 | import SwiftUI
13 |
14 | class ScreenManager: ObservableObject {
| | `- error: 'ObservableObject' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing class
15 | @Published var size: CGSize = .init()
16 | @Published var safeArea: UIEdgeInsets = .init()
/Users/admin/builder/spi-builder-workspace/Sources/Internal/Managers/ScreenManager.swift:24:34: error: 'GeometryProxy' is only available in macOS 10.15 or newer
21 |
22 | // MARK: - Updating Dimensions
23 | extension ScreenManager {
| `- note: add @available attribute to enclosing extension
24 | static func update(_ reader: GeometryProxy) {
| | `- error: 'GeometryProxy' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing static method
25 | shared.size.height = reader.size.height + reader.safeAreaInsets.top + reader.safeAreaInsets.bottom
26 | shared.size.width = reader.size.width + reader.safeAreaInsets.leading + reader.safeAreaInsets.trailing
<unknown>:0: error: cannot convert value of type 'KeyPath<ScreenManager, CGSize>' to expected argument type 'ReferenceWritableKeyPath<ScreenManager, CGSize>'
/Users/admin/builder/spi-builder-workspace/Sources/Internal/Managers/ScreenManager.swift:37:37: error: 'Edge' is only available in macOS 10.15 or newer
34 |
35 | // MARK: - Getting Value For Safe Area
36 | extension ScreenManager {
| `- note: add @available attribute to enclosing extension
37 | func getSafeAreaValue(for edge: Edge.Set) -> CGFloat { switch edge {
| | `- error: 'Edge' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing instance method
38 | case .top: safeArea.top
39 | case .bottom: KeyboardManager.shared.height > 0 ? KeyboardManager.shared.height : safeArea.bottom
/Users/admin/builder/spi-builder-workspace/Sources/Internal/Managers/ScreenManager.swift:25:9: error: cannot pass as inout because setter for 'size' is only available in macOS 10.15 or newer
21 |
22 | // MARK: - Updating Dimensions
23 | extension ScreenManager {
| `- note: add @available attribute to enclosing extension
24 | static func update(_ reader: GeometryProxy) {
| `- note: add @available attribute to enclosing static method
25 | shared.size.height = reader.size.height + reader.safeAreaInsets.top + reader.safeAreaInsets.bottom
| |- error: cannot pass as inout because setter for 'size' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
26 | shared.size.width = reader.size.width + reader.safeAreaInsets.leading + reader.safeAreaInsets.trailing
27 |
/Users/admin/builder/spi-builder-workspace/Sources/Internal/Managers/ScreenManager.swift:26:9: error: cannot pass as inout because setter for 'size' is only available in macOS 10.15 or newer
21 |
22 | // MARK: - Updating Dimensions
23 | extension ScreenManager {
| `- note: add @available attribute to enclosing extension
24 | static func update(_ reader: GeometryProxy) {
| `- note: add @available attribute to enclosing static method
25 | shared.size.height = reader.size.height + reader.safeAreaInsets.top + reader.safeAreaInsets.bottom
26 | shared.size.width = reader.size.width + reader.safeAreaInsets.leading + reader.safeAreaInsets.trailing
| |- error: cannot pass as inout because setter for 'size' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
27 |
28 | shared.safeArea.top = reader.safeAreaInsets.top
[21/22] Compiling MijickNavigationView ScreenManager.swift
/Users/admin/builder/spi-builder-workspace/Sources/Internal/Managers/NavigationManager.swift:14:6: error: 'Published' is only available in macOS 10.15 or newer
11 | import SwiftUI
12 |
13 | public class NavigationManager: ObservableObject {
| `- note: add @available attribute to enclosing class
14 | @Published private(set) var views: [AnyNavigatableView] = [] { willSet { onViewsWillUpdate(newValue) } }
| `- error: 'Published' is only available in macOS 10.15 or newer
15 | private(set) var transitionsBlocked: Bool = false { didSet { onTransitionsBlockedUpdate() } }
16 | private(set) var transitionType: TransitionType = .push
/Users/admin/builder/spi-builder-workspace/Sources/Internal/Managers/NavigationManager.swift:20:16: warning: static property 'shared' is not concurrency-safe because non-'Sendable' type 'NavigationManager' may have shared mutable state; this is an error in the Swift 6 language mode
11 | import SwiftUI
12 |
13 | public class NavigationManager: ObservableObject {
| `- note: class 'NavigationManager' does not conform to the 'Sendable' protocol
14 | @Published private(set) var views: [AnyNavigatableView] = [] { willSet { onViewsWillUpdate(newValue) } }
15 | private(set) var transitionsBlocked: Bool = false { didSet { onTransitionsBlockedUpdate() } }
:
18 | private(set) var navigationBackGesture: NavigationBackGesture.Kind = .no
19 |
20 | static let shared: NavigationManager = .init()
| |- warning: static property 'shared' is not concurrency-safe because non-'Sendable' type 'NavigationManager' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'shared' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
21 | private init() {}
22 | }
<unknown>:0: error: cannot convert value of type 'KeyPath<NavigationManager, [AnyNavigatableView]>' to expected argument type 'ReferenceWritableKeyPath<NavigationManager, [AnyNavigatableView]>'
/Users/admin/builder/spi-builder-workspace/Sources/Internal/Managers/NavigationManager.swift:13:33: error: 'ObservableObject' is only available in macOS 10.15 or newer
11 | import SwiftUI
12 |
13 | public class NavigationManager: ObservableObject {
| | `- error: 'ObservableObject' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing class
14 | @Published private(set) var views: [AnyNavigatableView] = [] { willSet { onViewsWillUpdate(newValue) } }
15 | private(set) var transitionsBlocked: Bool = false { didSet { onTransitionsBlockedUpdate() } }
/Users/admin/builder/spi-builder-workspace/Sources/Internal/Managers/NavigationManager.swift:27:36: error: cannot pass as inout because setter for 'views' is only available in macOS 10.15 or newer
23 |
24 | // MARK: - Operations Handler
25 | extension NavigationManager {
| `- note: add @available attribute to enclosing extension
26 | static func performOperation(_ operation: Operation) { if !NavigationManager.shared.transitionsBlocked {
| `- note: add @available attribute to enclosing static method
27 | DispatchQueue.main.async { shared.views.perform(operation) }
| |- error: cannot pass as inout because setter for 'views' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
28 | }}
29 | }
/Users/admin/builder/spi-builder-workspace/Sources/Internal/Managers/NavigationManager.swift:27:57: warning: capture of 'operation' with non-sendable type 'NavigationManager.Operation' in a `@Sendable` closure; this is an error in the Swift 6 language mode
25 | extension NavigationManager {
26 | static func performOperation(_ operation: Operation) { if !NavigationManager.shared.transitionsBlocked {
27 | DispatchQueue.main.async { shared.views.perform(operation) }
| `- warning: capture of 'operation' with non-sendable type 'NavigationManager.Operation' in a `@Sendable` closure; this is an error in the Swift 6 language mode
28 | }}
29 | }
:
64 |
65 | // MARK: - Array Operations
66 | extension NavigationManager { enum Operation {
| `- note: consider making enum 'Operation' conform to the 'Sendable' protocol
67 | case insert(any NavigatableView, TransitionAnimation)
68 | case removeLast, removeAll(toID: String), removeAllExceptFirst
/Users/admin/builder/spi-builder-workspace/Sources/Internal/Managers/NavigationManager.swift:33:88: error: setter for 'views' is only available in macOS 10.15 or newer
30 |
31 | // MARK: - Setters
32 | extension NavigationManager {
| `- note: add @available attribute to enclosing extension
33 | static func setRoot(_ rootView: some NavigatableView) { DispatchQueue.main.async { shared.views = [.init(rootView, .no)] }}
| | |- error: setter for 'views' is only available in macOS 10.15 or newer
| | `- note: add 'if #available' version check
| `- note: add @available attribute to enclosing static method
34 | static func replaceRoot(_ newRootView: some NavigatableView) { DispatchQueue.main.asyncAfter(deadline: .now() + 0.05) { shared.transitionType = .replaceRoot(.init(newRootView, .no)) }}
35 | static func blockTransitions(_ value: Bool) { shared.transitionsBlocked = value }
/Users/admin/builder/spi-builder-workspace/Sources/Internal/Managers/NavigationManager.swift:33:110: warning: capture of 'rootView' with non-sendable type 'some NavigatableView' in a `@Sendable` closure; this is an error in the Swift 6 language mode
31 | // MARK: - Setters
32 | extension NavigationManager {
33 | static func setRoot(_ rootView: some NavigatableView) { DispatchQueue.main.async { shared.views = [.init(rootView, .no)] }}
| | `- warning: capture of 'rootView' with non-sendable type 'some NavigatableView' in a `@Sendable` closure; this is an error in the Swift 6 language mode
| `- note: consider making generic parameter 'some NavigatableView' conform to the 'Sendable' protocol
34 | static func replaceRoot(_ newRootView: some NavigatableView) { DispatchQueue.main.asyncAfter(deadline: .now() + 0.05) { shared.transitionType = .replaceRoot(.init(newRootView, .no)) }}
35 | static func blockTransitions(_ value: Bool) { shared.transitionsBlocked = value }
/Users/admin/builder/spi-builder-workspace/Sources/Internal/Managers/NavigationManager.swift:34:168: warning: capture of 'newRootView' with non-sendable type 'some NavigatableView' in a `@Sendable` closure; this is an error in the Swift 6 language mode
32 | extension NavigationManager {
33 | static func setRoot(_ rootView: some NavigatableView) { DispatchQueue.main.async { shared.views = [.init(rootView, .no)] }}
34 | static func replaceRoot(_ newRootView: some NavigatableView) { DispatchQueue.main.asyncAfter(deadline: .now() + 0.05) { shared.transitionType = .replaceRoot(.init(newRootView, .no)) }}
| | `- warning: capture of 'newRootView' with non-sendable type 'some NavigatableView' in a `@Sendable` closure; this is an error in the Swift 6 language mode
| `- note: consider making generic parameter 'some NavigatableView' conform to the 'Sendable' protocol
35 | static func blockTransitions(_ value: Bool) { shared.transitionsBlocked = value }
36 | static func setTransitionType(_ value: TransitionType) { if shared.transitionType != value { shared.transitionType = value }}
/Users/admin/builder/spi-builder-workspace/Sources/Internal/Managers/NavigationManager.swift:42:43: warning: main actor-isolated property 'animation' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
39 | // MARK: - Gesture Handlers
40 | extension NavigationManager {
41 | func gestureStarted() {
| `- note: add '@MainActor' to make instance method 'gestureStarted()' part of global actor 'MainActor'
42 | transitionAnimation = views.last?.animation ?? .no
| `- warning: main actor-isolated property 'animation' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
43 | navigationBackGesture = views.last?.configure(view: .init()).navigationBackGesture ?? .no
44 | }
/Users/admin/builder/spi-builder-workspace/Sources/Internal/Type Erasers/AnyNavigatableView.swift:15:9: note: property declared here
13 | struct AnyNavigatableView: NavigatableView, Equatable {
14 | let id: String
15 | let animation: TransitionAnimation
| `- note: property declared here
16 | private let _body: AnyView
17 | private let _configure: (NavigationConfig) -> (NavigationConfig)
/Users/admin/builder/spi-builder-workspace/Sources/Internal/Managers/NavigationManager.swift:43:45: warning: call to main actor-isolated instance method 'configure(view:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
39 | // MARK: - Gesture Handlers
40 | extension NavigationManager {
41 | func gestureStarted() {
| `- note: add '@MainActor' to make instance method 'gestureStarted()' part of global actor 'MainActor'
42 | transitionAnimation = views.last?.animation ?? .no
43 | navigationBackGesture = views.last?.configure(view: .init()).navigationBackGesture ?? .no
| `- warning: call to main actor-isolated instance method 'configure(view:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
44 | }
45 | }
/Users/admin/builder/spi-builder-workspace/Sources/Internal/Type Erasers/AnyNavigatableView.swift:38:10: note: calls to instance method 'configure(view:)' from outside of its actor context are implicitly asynchronous
36 | extension AnyNavigatableView {
37 | var body: some View { _body }
38 | func configure(view: NavigationConfig) -> NavigationConfig { _configure(view) }
| `- note: calls to instance method 'configure(view:)' from outside of its actor context are implicitly asynchronous
39 | }
40 |
/Users/admin/builder/spi-builder-workspace/Sources/Internal/Managers/NavigationManager.swift:51:73: warning: main actor-isolated property 'animation' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
47 | // MARK: - On Attributes Will/Did Change
48 | private extension NavigationManager {
49 | func onViewsWillUpdate(_ newValue: [AnyNavigatableView]) { if newValue.count != views.count {
| `- note: add '@MainActor' to make instance method 'onViewsWillUpdate' part of global actor 'MainActor'
50 | transitionType = newValue.count > views.count || !transitionType.isOne(of: .push, .pop) ? .push : .pop
51 | transitionAnimation = (transitionType == .push ? newValue.last?.animation : views[newValue.count].animation) ?? .no
| `- warning: main actor-isolated property 'animation' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
52 | navigationBackGesture = newValue.last?.configure(view: .init()).navigationBackGesture ?? .no
53 | }}
/Users/admin/builder/spi-builder-workspace/Sources/Internal/Type Erasers/AnyNavigatableView.swift:15:9: note: property declared here
13 | struct AnyNavigatableView: NavigatableView, Equatable {
14 | let id: String
15 | let animation: TransitionAnimation
| `- note: property declared here
16 | private let _body: AnyView
17 | private let _configure: (NavigationConfig) -> (NavigationConfig)
/Users/admin/builder/spi-builder-workspace/Sources/Internal/Managers/NavigationManager.swift:51:107: warning: main actor-isolated property 'animation' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
47 | // MARK: - On Attributes Will/Did Change
48 | private extension NavigationManager {
49 | func onViewsWillUpdate(_ newValue: [AnyNavigatableView]) { if newValue.count != views.count {
| `- note: add '@MainActor' to make instance method 'onViewsWillUpdate' part of global actor 'MainActor'
50 | transitionType = newValue.count > views.count || !transitionType.isOne(of: .push, .pop) ? .push : .pop
51 | transitionAnimation = (transitionType == .push ? newValue.last?.animation : views[newValue.count].animation) ?? .no
| `- warning: main actor-isolated property 'animation' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
52 | navigationBackGesture = newValue.last?.configure(view: .init()).navigationBackGesture ?? .no
53 | }}
/Users/admin/builder/spi-builder-workspace/Sources/Internal/Type Erasers/AnyNavigatableView.swift:15:9: note: property declared here
13 | struct AnyNavigatableView: NavigatableView, Equatable {
14 | let id: String
15 | let animation: TransitionAnimation
| `- note: property declared here
16 | private let _body: AnyView
17 | private let _configure: (NavigationConfig) -> (NavigationConfig)
/Users/admin/builder/spi-builder-workspace/Sources/Internal/Managers/NavigationManager.swift:52:48: warning: call to main actor-isolated instance method 'configure(view:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
47 | // MARK: - On Attributes Will/Did Change
48 | private extension NavigationManager {
49 | func onViewsWillUpdate(_ newValue: [AnyNavigatableView]) { if newValue.count != views.count {
| `- note: add '@MainActor' to make instance method 'onViewsWillUpdate' part of global actor 'MainActor'
50 | transitionType = newValue.count > views.count || !transitionType.isOne(of: .push, .pop) ? .push : .pop
51 | transitionAnimation = (transitionType == .push ? newValue.last?.animation : views[newValue.count].animation) ?? .no
52 | navigationBackGesture = newValue.last?.configure(view: .init()).navigationBackGesture ?? .no
| `- warning: call to main actor-isolated instance method 'configure(view:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
53 | }}
54 | func onTransitionsBlockedUpdate() { if !transitionsBlocked, case let .replaceRoot(newRootView) = transitionType {
/Users/admin/builder/spi-builder-workspace/Sources/Internal/Type Erasers/AnyNavigatableView.swift:38:10: note: calls to instance method 'configure(view:)' from outside of its actor context are implicitly asynchronous
36 | extension AnyNavigatableView {
37 | var body: some View { _body }
38 | func configure(view: NavigationConfig) -> NavigationConfig { _configure(view) }
| `- note: calls to instance method 'configure(view:)' from outside of its actor context are implicitly asynchronous
39 | }
40 |
/Users/admin/builder/spi-builder-workspace/Sources/Internal/Managers/NavigationManager.swift:55:9: error: setter for 'views' is only available in macOS 10.15 or newer
46 |
47 | // MARK: - On Attributes Will/Did Change
48 | private extension NavigationManager {
| `- note: add @available attribute to enclosing extension
49 | func onViewsWillUpdate(_ newValue: [AnyNavigatableView]) { if newValue.count != views.count {
50 | transitionType = newValue.count > views.count || !transitionType.isOne(of: .push, .pop) ? .push : .pop
:
52 | navigationBackGesture = newValue.last?.configure(view: .init()).navigationBackGesture ?? .no
53 | }}
54 | func onTransitionsBlockedUpdate() { if !transitionsBlocked, case let .replaceRoot(newRootView) = transitionType {
| `- note: add @available attribute to enclosing instance method
55 | views = views.appendingAsFirstAndRemovingDuplicates(newRootView)
| |- error: setter for 'views' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
56 | }}
57 | }
/Users/admin/builder/spi-builder-workspace/Sources/Internal/Managers/NavigationManager.swift:82:60: warning: call to main actor-isolated initializer 'init(_:_:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
78 | KeyboardManager.hideKeyboard()
79 | }
80 | mutating func performOperation(_ operation: NavigationManager.Operation) {
| `- note: add '@MainActor' to make instance method 'performOperation' part of global actor 'MainActor'
81 | switch operation {
82 | case .insert(let view, let animation): append(.init(view, animation), if: canBeInserted(view))
| `- warning: call to main actor-isolated initializer 'init(_:_:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
83 | case .removeLast: removeLastExceptFirst()
84 | case .removeAll(let id): removeLastTo(elementWhere: { $0.id == id })
/Users/admin/builder/spi-builder-workspace/Sources/Internal/Type Erasers/AnyNavigatableView.swift:20:5: note: calls to initializer 'init(_:_:)' from outside of its actor context are implicitly asynchronous
18 |
19 |
20 | init(_ view: some NavigatableView, _ animation: TransitionAnimation) {
| `- note: calls to initializer 'init(_:_:)' from outside of its actor context are implicitly asynchronous
21 | self.id = view.id
22 | self.animation = animation
/Users/admin/builder/spi-builder-workspace/Sources/Internal/Managers/ScreenManager.swift:16:30: error: cannot find type 'UIEdgeInsets' in scope
14 | class ScreenManager: ObservableObject {
15 | @Published var size: CGSize = .init()
16 | @Published var safeArea: UIEdgeInsets = .init()
| `- error: cannot find type 'UIEdgeInsets' in scope
17 |
18 | static let shared: ScreenManager = .init()
/Users/admin/builder/spi-builder-workspace/Sources/Internal/Managers/ScreenManager.swift:15:6: error: 'Published' is only available in macOS 10.15 or newer
12 | import SwiftUI
13 |
14 | class ScreenManager: ObservableObject {
| `- note: add @available attribute to enclosing class
15 | @Published var size: CGSize = .init()
| `- error: 'Published' is only available in macOS 10.15 or newer
16 | @Published var safeArea: UIEdgeInsets = .init()
17 |
/Users/admin/builder/spi-builder-workspace/Sources/Internal/Managers/ScreenManager.swift:16:6: error: 'Published' is only available in macOS 10.15 or newer
12 | import SwiftUI
13 |
14 | class ScreenManager: ObservableObject {
| `- note: add @available attribute to enclosing class
15 | @Published var size: CGSize = .init()
16 | @Published var safeArea: UIEdgeInsets = .init()
| `- error: 'Published' is only available in macOS 10.15 or newer
17 |
18 | static let shared: ScreenManager = .init()
/Users/admin/builder/spi-builder-workspace/Sources/Internal/Managers/ScreenManager.swift:18:16: warning: static property 'shared' is not concurrency-safe because non-'Sendable' type 'ScreenManager' may have shared mutable state; this is an error in the Swift 6 language mode
12 | import SwiftUI
13 |
14 | class ScreenManager: ObservableObject {
| `- note: class 'ScreenManager' does not conform to the 'Sendable' protocol
15 | @Published var size: CGSize = .init()
16 | @Published var safeArea: UIEdgeInsets = .init()
17 |
18 | static let shared: ScreenManager = .init()
| |- warning: static property 'shared' is not concurrency-safe because non-'Sendable' type 'ScreenManager' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'shared' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
19 | private init() {}
20 | }
/Users/admin/builder/spi-builder-workspace/Sources/Internal/Managers/ScreenManager.swift:14:22: error: 'ObservableObject' is only available in macOS 10.15 or newer
12 | import SwiftUI
13 |
14 | class ScreenManager: ObservableObject {
| | `- error: 'ObservableObject' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing class
15 | @Published var size: CGSize = .init()
16 | @Published var safeArea: UIEdgeInsets = .init()
/Users/admin/builder/spi-builder-workspace/Sources/Internal/Managers/ScreenManager.swift:24:34: error: 'GeometryProxy' is only available in macOS 10.15 or newer
21 |
22 | // MARK: - Updating Dimensions
23 | extension ScreenManager {
| `- note: add @available attribute to enclosing extension
24 | static func update(_ reader: GeometryProxy) {
| | `- error: 'GeometryProxy' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing static method
25 | shared.size.height = reader.size.height + reader.safeAreaInsets.top + reader.safeAreaInsets.bottom
26 | shared.size.width = reader.size.width + reader.safeAreaInsets.leading + reader.safeAreaInsets.trailing
<unknown>:0: error: cannot convert value of type 'KeyPath<ScreenManager, CGSize>' to expected argument type 'ReferenceWritableKeyPath<ScreenManager, CGSize>'
/Users/admin/builder/spi-builder-workspace/Sources/Internal/Managers/ScreenManager.swift:37:37: error: 'Edge' is only available in macOS 10.15 or newer
34 |
35 | // MARK: - Getting Value For Safe Area
36 | extension ScreenManager {
| `- note: add @available attribute to enclosing extension
37 | func getSafeAreaValue(for edge: Edge.Set) -> CGFloat { switch edge {
| | `- error: 'Edge' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing instance method
38 | case .top: safeArea.top
39 | case .bottom: KeyboardManager.shared.height > 0 ? KeyboardManager.shared.height : safeArea.bottom
/Users/admin/builder/spi-builder-workspace/Sources/Internal/Managers/ScreenManager.swift:25:9: error: cannot pass as inout because setter for 'size' is only available in macOS 10.15 or newer
21 |
22 | // MARK: - Updating Dimensions
23 | extension ScreenManager {
| `- note: add @available attribute to enclosing extension
24 | static func update(_ reader: GeometryProxy) {
| `- note: add @available attribute to enclosing static method
25 | shared.size.height = reader.size.height + reader.safeAreaInsets.top + reader.safeAreaInsets.bottom
| |- error: cannot pass as inout because setter for 'size' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
26 | shared.size.width = reader.size.width + reader.safeAreaInsets.leading + reader.safeAreaInsets.trailing
27 |
/Users/admin/builder/spi-builder-workspace/Sources/Internal/Managers/ScreenManager.swift:26:9: error: cannot pass as inout because setter for 'size' is only available in macOS 10.15 or newer
21 |
22 | // MARK: - Updating Dimensions
23 | extension ScreenManager {
| `- note: add @available attribute to enclosing extension
24 | static func update(_ reader: GeometryProxy) {
| `- note: add @available attribute to enclosing static method
25 | shared.size.height = reader.size.height + reader.safeAreaInsets.top + reader.safeAreaInsets.bottom
26 | shared.size.width = reader.size.width + reader.safeAreaInsets.leading + reader.safeAreaInsets.trailing
| |- error: cannot pass as inout because setter for 'size' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
27 |
28 | shared.safeArea.top = reader.safeAreaInsets.top
[22/22] Compiling MijickNavigationView Public+View.swift
/Users/admin/builder/spi-builder-workspace/Sources/Public/Public+View.swift:14:18: error: 'View' is only available in macOS 10.15 or newer
12 |
13 | // MARK: - Removing Views From Stack
14 | public extension View {
| | `- error: 'View' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing extension
15 | /// Removes the presented view from the stack
16 | func pop() { NavigationManager.pop() }
/Users/admin/builder/spi-builder-workspace/Sources/Public/Public+View.swift:28:92: error: 'View' is only available in macOS 10.15 or newer
24 |
25 | // MARK: - Actions
26 | public extension View {
| `- note: add @available attribute to enclosing extension
27 | /// Triggers every time the popup is at the top of the stack
28 | func onFocus(_ view: some NavigatableView, perform action: @escaping () -> ()) -> some View {
| | `- error: 'View' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing instance method
29 | onReceive(NavigationManager.shared.$views) { views in
30 | if views.last?.id == view.id { action() }
/Users/admin/builder/spi-builder-workspace/Sources/Public/Public+View.swift:26:18: error: 'View' is only available in macOS 10.15 or newer
24 |
25 | // MARK: - Actions
26 | public extension View {
| | `- error: 'View' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing extension
27 | /// Triggers every time the popup is at the top of the stack
28 | func onFocus(_ view: some NavigatableView, perform action: @escaping () -> ()) -> some View {
/Users/admin/builder/spi-builder-workspace/Sources/Public/Public+View.swift:29:9: error: 'onReceive(_:perform:)' is only available in macOS 10.15 or newer
24 |
25 | // MARK: - Actions
26 | public extension View {
| `- note: add @available attribute to enclosing extension
27 | /// Triggers every time the popup is at the top of the stack
28 | func onFocus(_ view: some NavigatableView, perform action: @escaping () -> ()) -> some View {
| `- note: add @available attribute to enclosing instance method
29 | onReceive(NavigationManager.shared.$views) { views in
| |- error: 'onReceive(_:perform:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
30 | if views.last?.id == view.id { action() }
31 | }
/Users/admin/builder/spi-builder-workspace/Sources/Internal/Managers/NavigationManager.swift:20:16: warning: static property 'shared' is not concurrency-safe because non-'Sendable' type 'NavigationManager' may have shared mutable state; this is an error in the Swift 6 language mode
11 | import SwiftUI
12 |
13 | public class NavigationManager: ObservableObject {
| `- note: class 'NavigationManager' does not conform to the 'Sendable' protocol
14 | @Published private(set) var views: [AnyNavigatableView] = [] { willSet { onViewsWillUpdate(newValue) } }
15 | private(set) var transitionsBlocked: Bool = false { didSet { onTransitionsBlockedUpdate() } }
:
18 | private(set) var navigationBackGesture: NavigationBackGesture.Kind = .no
19 |
20 | static let shared: NavigationManager = .init()
| |- warning: static property 'shared' is not concurrency-safe because non-'Sendable' type 'NavigationManager' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'shared' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
21 | private init() {}
22 | }
BUILD FAILURE 6.0 macosSpm