Build Information
Failed to build OwlNav, reference 0.0.5 (92e40a), with Swift 6.1 for macOS (SPM) on 28 Jun 2026 12:15:52 UTC.
Build Command
env DEVELOPER_DIR=/Applications/Xcode-16.3.0.app xcrun swift build --arch arm64Build Log
========================================
RunAll
========================================
Builder version: undefined version: run 'make version' to update
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/dewangga18/OwlNav.git
Reference: 0.0.5
Initialized empty Git repository in /Users/admin/builder/spi-builder-workspace/.git/
From https://github.com/dewangga18/OwlNav
* tag 0.0.5 -> FETCH_HEAD
HEAD is now at 92e40ac refactor: simplify navigation bar appearance and remove redundant toolbar background configurations
Cloned https://github.com/dewangga18/OwlNav.git
Revision (git rev-parse @):
92e40accc0f1acad673f4b78c2a4b8c02da98a35
SUCCESS checkout https://github.com/dewangga18/OwlNav.git at 0.0.5
========================================
Build
========================================
Selected platform: macosSpm
Swift version: 6.1
Building package at path: $PWD
https://github.com/dewangga18/OwlNav.git
https://github.com/dewangga18/OwlNav.git
{
"dependencies" : [
],
"manifest_display_name" : "OwlNav",
"name" : "OwlNav",
"path" : "/Users/admin/builder/spi-builder-workspace",
"platforms" : [
{
"name" : "ios",
"version" : "15.0"
}
],
"products" : [
{
"name" : "OwlNav",
"targets" : [
"OwlNav"
],
"type" : {
"library" : [
"automatic"
]
}
}
],
"targets" : [
{
"c99name" : "OwlNav",
"module_type" : "SwiftTarget",
"name" : "OwlNav",
"path" : "Sources/OwlNav",
"product_memberships" : [
"OwlNav"
],
"sources" : [
"Extensions/Views+Extensions.swift",
"Internal/OwlNavigationController.swift",
"Modifier/SwipeBack.swift",
"OwlNav.swift",
"Setup/InOwl.swift",
"Setup/OwlContainer.swift",
"Setup/OwlInject.swift"
],
"type" : "library"
}
],
"tools_version" : "5.9"
}
Running build ...
env DEVELOPER_DIR=/Applications/Xcode-16.3.0.app xcrun swift build --arch arm64 -Xswiftc -Xfrontend -Xswiftc -stats-output-dir -Xswiftc -Xfrontend -Xswiftc .stats -Xswiftc -strict-concurrency=complete -Xswiftc -enable-upcoming-feature -Xswiftc StrictConcurrency -Xswiftc -enable-upcoming-feature -Xswiftc DisableOutwardActorInference -Xswiftc -enable-upcoming-feature -Xswiftc GlobalActorIsolatedTypesUsability -Xswiftc -enable-upcoming-feature -Xswiftc InferSendableFromCaptures
Building for debugging...
[0/2] Write sources
[1/2] Write swift-version-2F0A5646E1D333AE.txt
[3/10] Compiling OwlNav OwlInject.swift
[4/10] Compiling OwlNav OwlNavigationController.swift
[5/10] Compiling OwlNav OwlNav.swift
[6/10] Compiling OwlNav SwipeBack.swift
/Users/admin/builder/spi-builder-workspace/Sources/OwlNav/Modifier/SwipeBack.swift:13:6: error: 'Binding' is only available in macOS 10.15 or newer
9 |
10 | /// A `ViewModifier` that enables the swipe-back gesture and coordinates pop completion callbacks.
11 | public struct WithSwipeBackModifier: ViewModifier {
| `- note: add @available attribute to enclosing struct
12 | /// Whether the swipe-back gesture is enabled.
13 | @Binding var isEnabled: Bool
| `- error: 'Binding' is only available in macOS 10.15 or newer
14 |
15 | /// Callback triggered when a system swipe-back pop completes.
/Users/admin/builder/spi-builder-workspace/Sources/OwlNav/Modifier/SwipeBack.swift:18:48: error: 'View' is only available in macOS 10.15 or newer
9 |
10 | /// A `ViewModifier` that enables the swipe-back gesture and coordinates pop completion callbacks.
11 | public struct WithSwipeBackModifier: ViewModifier {
| `- note: add @available attribute to enclosing struct
12 | /// Whether the swipe-back gesture is enabled.
13 | @Binding var isEnabled: Bool
:
16 | var onPopCompleted: (() -> Void)?
17 |
18 | public func body(content: Content) -> some View {
| | `- error: 'View' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing instance method
19 | content
20 | .background(
/Users/admin/builder/spi-builder-workspace/Sources/OwlNav/Modifier/SwipeBack.swift:32:6: error: 'Binding' is only available in macOS 10.15 or newer
28 |
29 | /// A background utility controller that enables the native swipe-back gesture based on stack state.
30 | public struct SwipeBackController: UIViewControllerRepresentable {
| `- note: add @available attribute to enclosing struct
31 | /// Whether the swipe-back gesture is enabled.
32 | @Binding var isEnabled: Bool
| `- error: 'Binding' is only available in macOS 10.15 or newer
33 |
34 | /// Callback triggered when a system swipe-back pop completes.
/Users/admin/builder/spi-builder-workspace/Sources/OwlNav/Modifier/SwipeBack.swift:37:59: error: cannot find type 'UIViewController' in scope
35 | var onPopCompleted: (() -> Void)?
36 |
37 | public func makeUIViewController(context: Context) -> UIViewController {
| `- error: cannot find type 'UIViewController' in scope
38 | let controller = UIViewController()
39 | controller.view.isHidden = true
/Users/admin/builder/spi-builder-workspace/Sources/OwlNav/Modifier/SwipeBack.swift:37:47: error: cannot find type 'Context' in scope
35 | var onPopCompleted: (() -> Void)?
36 |
37 | public func makeUIViewController(context: Context) -> UIViewController {
| `- error: cannot find type 'Context' in scope
38 | let controller = UIViewController()
39 | controller.view.isHidden = true
/Users/admin/builder/spi-builder-workspace/Sources/OwlNav/Modifier/SwipeBack.swift:43:46: error: cannot find type 'UIViewController' in scope
41 | }
42 |
43 | public func updateUIViewController(_ vc: UIViewController, context: Context) {
| `- error: cannot find type 'UIViewController' in scope
44 | // Walk up to the nearest UIHostingController to set associated-object flags.
45 | guard let hostingVC = vc.parent else { return }
/Users/admin/builder/spi-builder-workspace/Sources/OwlNav/Modifier/SwipeBack.swift:43:73: error: cannot find type 'Context' in scope
41 | }
42 |
43 | public func updateUIViewController(_ vc: UIViewController, context: Context) {
| `- error: cannot find type 'Context' in scope
44 | // Walk up to the nearest UIHostingController to set associated-object flags.
45 | guard let hostingVC = vc.parent else { return }
/Users/admin/builder/spi-builder-workspace/Sources/OwlNav/Modifier/SwipeBack.swift:30:36: error: cannot find type 'UIViewControllerRepresentable' in scope
28 |
29 | /// A background utility controller that enables the native swipe-back gesture based on stack state.
30 | public struct SwipeBackController: UIViewControllerRepresentable {
| `- error: cannot find type 'UIViewControllerRepresentable' in scope
31 | /// Whether the swipe-back gesture is enabled.
32 | @Binding var isEnabled: Bool
/Users/admin/builder/spi-builder-workspace/Sources/OwlNav/Modifier/SwipeBack.swift:20:14: error: instance method 'background(_:ignoresSafeAreaEdges:)' requires that 'SwipeBackController' conform to 'ShapeStyle'
18 | public func body(content: Content) -> some View {
19 | content
20 | .background(
| `- error: instance method 'background(_:ignoresSafeAreaEdges:)' requires that 'SwipeBackController' conform to 'ShapeStyle'
21 | SwipeBackController(
22 | isEnabled: $isEnabled,
SwiftUICore.View.background:2:36: note: where 'S' = 'SwipeBackController'
1 | protocol View {
2 | @inlinable nonisolated public func background<S>(_ style: S, ignoresSafeAreaEdges edges: Edge.Set = .all) -> some View where S : ShapeStyle
| `- note: where 'S' = 'SwipeBackController'
3 | }
4 |
/Users/admin/builder/spi-builder-workspace/Sources/OwlNav/Modifier/SwipeBack.swift:38:26: error: cannot find 'UIViewController' in scope
36 |
37 | public func makeUIViewController(context: Context) -> UIViewController {
38 | let controller = UIViewController()
| `- error: cannot find 'UIViewController' in scope
39 | controller.view.isHidden = true
40 | return controller
error: emit-module command failed with exit code 1 (use -v to see invocation)
[7/10] Compiling OwlNav OwlContainer.swift
/Users/admin/builder/spi-builder-workspace/Sources/OwlNav/Setup/OwlContainer.swift:12:63: error: cannot find type 'UIHostingController' in scope
10 | /// A lightweight `UIHostingController` subclass that stores its route value directly,
11 | /// avoiding the need to access `.view.tag` (which force-loads the view hierarchy).
12 | final class OwlHostingController<T: Equatable, Screen: View>: UIHostingController<Screen> {
| `- error: cannot find type 'UIHostingController' in scope
13 | /// The route this controller represents.
14 | let route: T
/Users/admin/builder/spi-builder-workspace/Sources/OwlNav/Setup/OwlContainer.swift:12:56: error: 'View' is only available in macOS 10.15 or newer
10 | /// A lightweight `UIHostingController` subclass that stores its route value directly,
11 | /// avoiding the need to access `.view.tag` (which force-loads the view hierarchy).
12 | final class OwlHostingController<T: Equatable, Screen: View>: UIHostingController<Screen> {
| | `- error: 'View' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing generic class
13 | /// The route this controller represents.
14 | let route: T
/Users/admin/builder/spi-builder-workspace/Sources/OwlNav/Setup/OwlContainer.swift:32:6: warning: call to main actor-isolated initializer 'init(wrappedValue:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
30 | public struct OwlContainer<T: Equatable, Screen: View>: UIViewControllerRepresentable {
31 | /// The navigation manager that holds the route stack.
32 | @ObservedObject public var owl: InOwl<T>
| `- warning: call to main actor-isolated initializer 'init(wrappedValue:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
33 |
34 | /// A closure that maps a route of type `T` to a SwiftUI `View`.
SwiftUICore.ObservedObject.init:2:35: note: calls to initializer 'init(wrappedValue:)' from outside of its actor context are implicitly asynchronous
1 | generic struct ObservedObject {
2 | @MainActor @preconcurrency public init(wrappedValue: ObjectType)}
| `- note: calls to initializer 'init(wrappedValue:)' from outside of its actor context are implicitly asynchronous
3 |
/Users/admin/builder/spi-builder-workspace/Sources/OwlNav/Setup/OwlContainer.swift:32:6: error: 'ObservedObject' is only available in macOS 10.15 or newer
28 | ///
29 | /// `OwlContainer` manages a `UINavigationController` and synchronizes its state with an `OwlNav` instance.
30 | public struct OwlContainer<T: Equatable, Screen: View>: UIViewControllerRepresentable {
| `- note: add @available attribute to enclosing generic struct
31 | /// The navigation manager that holds the route stack.
32 | @ObservedObject public var owl: InOwl<T>
| `- error: 'ObservedObject' is only available in macOS 10.15 or newer
33 |
34 | /// A closure that maps a route of type `T` to a SwiftUI `View`.
/Users/admin/builder/spi-builder-workspace/Sources/OwlNav/Setup/OwlContainer.swift:35:6: error: 'ViewBuilder' is only available in macOS 10.15 or newer
28 | ///
29 | /// `OwlContainer` manages a `UINavigationController` and synchronizes its state with an `OwlNav` instance.
30 | public struct OwlContainer<T: Equatable, Screen: View>: UIViewControllerRepresentable {
| `- note: add @available attribute to enclosing generic struct
31 | /// The navigation manager that holds the route stack.
32 | @ObservedObject public var owl: InOwl<T>
33 |
34 | /// A closure that maps a route of type `T` to a SwiftUI `View`.
35 | @ViewBuilder private let routeMap: (T) -> Screen
| `- error: 'ViewBuilder' is only available in macOS 10.15 or newer
36 |
37 | /// Initializes a new `OwlContainer`.
/Users/admin/builder/spi-builder-workspace/Sources/OwlNav/Setup/OwlContainer.swift:41:35: error: 'ViewBuilder' is only available in macOS 10.15 or newer
28 | ///
29 | /// `OwlContainer` manages a `UINavigationController` and synchronizes its state with an `OwlNav` instance.
30 | public struct OwlContainer<T: Equatable, Screen: View>: UIViewControllerRepresentable {
| `- note: add @available attribute to enclosing generic struct
31 | /// The navigation manager that holds the route stack.
32 | @ObservedObject public var owl: InOwl<T>
:
39 | /// - owl: The `OwlNav` instance to observe.
40 | /// - routeMap: A closure that provides the view for each route in the stack.
41 | public init(_ owl: InOwl<T>, @ViewBuilder routeMap: @escaping (T) -> Screen) {
| | `- error: 'ViewBuilder' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing initializer
42 | _owl = ObservedObject(wrappedValue: owl)
43 | self.routeMap = routeMap
/Users/admin/builder/spi-builder-workspace/Sources/OwlNav/Setup/OwlContainer.swift:47:59: error: cannot find type 'UINavigationController' in scope
45 |
46 | /// Creates the underlying `UINavigationController`.
47 | public func makeUIViewController(context: Context) -> UINavigationController {
| `- error: cannot find type 'UINavigationController' in scope
48 | let navigation = OwlNavigationController()
49 |
/Users/admin/builder/spi-builder-workspace/Sources/OwlNav/Setup/OwlContainer.swift:47:47: error: cannot find type 'Context' in scope
45 |
46 | /// Creates the underlying `UINavigationController`.
47 | public func makeUIViewController(context: Context) -> UINavigationController {
| `- error: cannot find type 'Context' in scope
48 | let navigation = OwlNavigationController()
49 |
/Users/admin/builder/spi-builder-workspace/Sources/OwlNav/Setup/OwlContainer.swift:58:54: error: cannot find type 'UINavigationController' in scope
56 |
57 | /// Updates the `UINavigationController` to match the current state of the `OwlNav` stack.
58 | public func updateUIViewController(_ navigation: UINavigationController, context: Context) {
| `- error: cannot find type 'UINavigationController' in scope
59 | syncNavigation(navigation)
60 | }
/Users/admin/builder/spi-builder-workspace/Sources/OwlNav/Setup/OwlContainer.swift:58:87: error: cannot find type 'Context' in scope
56 |
57 | /// Updates the `UINavigationController` to match the current state of the `OwlNav` stack.
58 | public func updateUIViewController(_ navigation: UINavigationController, context: Context) {
| `- error: cannot find type 'Context' in scope
59 | syncNavigation(navigation)
60 | }
/Users/admin/builder/spi-builder-workspace/Sources/OwlNav/Setup/OwlContainer.swift:62:47: error: cannot find type 'UINavigationController' in scope
60 | }
61 |
62 | private func syncNavigation(_ navigation: UINavigationController) {
| `- error: cannot find type 'UINavigationController' in scope
63 | // Prevent duplicate sync calls when a transition is in flight.
64 | if let owlNav = navigation as? OwlNavigationController, owlNav.isSyncScheduled {
/Users/admin/builder/spi-builder-workspace/Sources/OwlNav/Setup/OwlContainer.swift:30:57: error: cannot find type 'UIViewControllerRepresentable' in scope
28 | ///
29 | /// `OwlContainer` manages a `UINavigationController` and synchronizes its state with an `OwlNav` instance.
30 | public struct OwlContainer<T: Equatable, Screen: View>: UIViewControllerRepresentable {
| `- error: cannot find type 'UIViewControllerRepresentable' in scope
31 | /// The navigation manager that holds the route stack.
32 | @ObservedObject public var owl: InOwl<T>
/Users/admin/builder/spi-builder-workspace/Sources/OwlNav/Setup/OwlContainer.swift:30:50: error: 'View' is only available in macOS 10.15 or newer
28 | ///
29 | /// `OwlContainer` manages a `UINavigationController` and synchronizes its state with an `OwlNav` instance.
30 | public struct OwlContainer<T: Equatable, Screen: View>: UIViewControllerRepresentable {
| | `- error: 'View' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing generic struct
31 | /// The navigation manager that holds the route stack.
32 | @ObservedObject public var owl: InOwl<T>
/Users/admin/builder/spi-builder-workspace/Sources/OwlNav/Setup/OwlContainer.swift:18:9: error: 'super' cannot be used in class 'OwlHostingController' because it has no superclass
16 | init(route: T, rootView: Screen) {
17 | self.route = route
18 | super.init(rootView: rootView)
| `- error: 'super' cannot be used in class 'OwlHostingController' because it has no superclass
19 | }
20 |
/Users/admin/builder/spi-builder-workspace/Sources/OwlNav/Setup/OwlContainer.swift:42:16: error: 'ObservedObject' is only available in macOS 10.15 or newer
28 | ///
29 | /// `OwlContainer` manages a `UINavigationController` and synchronizes its state with an `OwlNav` instance.
30 | public struct OwlContainer<T: Equatable, Screen: View>: UIViewControllerRepresentable {
| `- note: add @available attribute to enclosing generic struct
31 | /// The navigation manager that holds the route stack.
32 | @ObservedObject public var owl: InOwl<T>
:
39 | /// - owl: The `OwlNav` instance to observe.
40 | /// - routeMap: A closure that provides the view for each route in the stack.
41 | public init(_ owl: InOwl<T>, @ViewBuilder routeMap: @escaping (T) -> Screen) {
| `- note: add @available attribute to enclosing initializer
42 | _owl = ObservedObject(wrappedValue: owl)
| |- error: 'ObservedObject' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
43 | self.routeMap = routeMap
44 | }
/Users/admin/builder/spi-builder-workspace/Sources/OwlNav/Setup/OwlContainer.swift:42:16: warning: call to main actor-isolated initializer 'init(wrappedValue:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
40 | /// - routeMap: A closure that provides the view for each route in the stack.
41 | public init(_ owl: InOwl<T>, @ViewBuilder routeMap: @escaping (T) -> Screen) {
42 | _owl = ObservedObject(wrappedValue: owl)
| `- warning: call to main actor-isolated initializer 'init(wrappedValue:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
43 | self.routeMap = routeMap
44 | }
SwiftUICore.ObservedObject.init:2:35: note: calls to initializer 'init(wrappedValue:)' from outside of its actor context are implicitly asynchronous
1 | generic struct ObservedObject {
2 | @MainActor @preconcurrency public init(wrappedValue: ObjectType)}
| `- note: calls to initializer 'init(wrappedValue:)' from outside of its actor context are implicitly asynchronous
3 |
/Users/admin/builder/spi-builder-workspace/Sources/OwlNav/Setup/OwlContainer.swift:48:26: error: cannot find 'OwlNavigationController' in scope
46 | /// Creates the underlying `UINavigationController`.
47 | public func makeUIViewController(context: Context) -> UINavigationController {
48 | let navigation = OwlNavigationController()
| `- error: cannot find 'OwlNavigationController' in scope
49 |
50 | navigation.onSystemPop = {
/Users/admin/builder/spi-builder-workspace/Sources/OwlNav/Setup/OwlContainer.swift:64:40: error: cannot find type 'OwlNavigationController' in scope
62 | private func syncNavigation(_ navigation: UINavigationController) {
63 | // Prevent duplicate sync calls when a transition is in flight.
64 | if let owlNav = navigation as? OwlNavigationController, owlNav.isSyncScheduled {
| `- error: cannot find type 'OwlNavigationController' in scope
65 | return
66 | }
/Users/admin/builder/spi-builder-workspace/Sources/OwlNav/Setup/OwlContainer.swift:69:29: error: cannot find type 'OwlNavigationController' in scope
67 |
68 | if let coordinator = navigation.transitionCoordinator {
69 | (navigation as? OwlNavigationController)?.isSyncScheduled = true
| `- error: cannot find type 'OwlNavigationController' in scope
70 | coordinator.animate(alongsideTransition: nil) { _ in
71 | (navigation as? OwlNavigationController)?.isSyncScheduled = false
/Users/admin/builder/spi-builder-workspace/Sources/OwlNav/Setup/OwlContainer.swift:71:33: error: cannot find type 'OwlNavigationController' in scope
69 | (navigation as? OwlNavigationController)?.isSyncScheduled = true
70 | coordinator.animate(alongsideTransition: nil) { _ in
71 | (navigation as? OwlNavigationController)?.isSyncScheduled = false
| `- error: cannot find type 'OwlNavigationController' in scope
72 | syncNavigation(navigation)
73 | }
/Users/admin/builder/spi-builder-workspace/Sources/OwlNav/Setup/OwlContainer.swift:70:54: error: 'nil' requires a contextual type
68 | if let coordinator = navigation.transitionCoordinator {
69 | (navigation as? OwlNavigationController)?.isSyncScheduled = true
70 | coordinator.animate(alongsideTransition: nil) { _ in
| `- error: 'nil' requires a contextual type
71 | (navigation as? OwlNavigationController)?.isSyncScheduled = false
72 | syncNavigation(navigation)
/Users/admin/builder/spi-builder-workspace/Sources/OwlNav/Setup/OwlContainer.swift:99:28: error: cannot find type 'UIViewController' in scope
97 | // Build the target stack in one shot:
98 | // reuse existing VCs where the route is unchanged, recreate where it differs (e.g. reset to a new root).
99 | var newStack: [UIViewController] = []
| `- error: cannot find type 'UIViewController' in scope
100 | for index in 0..<targetStack {
101 | let route = owl.routes[index]
/Users/admin/builder/spi-builder-workspace/Sources/OwlNav/Setup/OwlContainer.swift:112:29: error: cannot find type 'OwlNavigationController' in scope
110 | }
111 |
112 | (navigation as? OwlNavigationController)?.suppressNextSystemPop()
| `- error: cannot find type 'OwlNavigationController' in scope
113 | navigation.setViewControllers(newStack, animated: owl.consumePendingPopAnimated())
114 | }
/Users/admin/builder/spi-builder-workspace/Sources/OwlNav/Setup/OwlContainer.swift:78:31: error: main actor-isolated property 'routes' can not be referenced from a nonisolated context
60 | }
61 |
62 | private func syncNavigation(_ navigation: UINavigationController) {
| `- note: add '@MainActor' to make instance method 'syncNavigation' part of global actor 'MainActor'
63 | // Prevent duplicate sync calls when a transition is in flight.
64 | if let owlNav = navigation as? OwlNavigationController, owlNav.isSyncScheduled {
:
76 |
77 | let currentStack = navigation.viewControllers.count
78 | let targetStack = owl.routes.count
| `- error: main actor-isolated property 'routes' can not be referenced from a nonisolated context
79 |
80 | if targetStack > currentStack {
/Users/admin/builder/spi-builder-workspace/Sources/OwlNav/Setup/InOwl.swift:15:40: note: property declared here
13 | @MainActor public class InOwl<T: Equatable>: ObservableObject {
14 | /// The current navigation stack.
15 | @Published public private(set) var routes: [T] = []
| `- note: property declared here
16 |
17 | /// Animation flag for the next pop operation.
/Users/admin/builder/spi-builder-workspace/Sources/OwlNav/Setup/OwlContainer.swift:78:27: warning: main actor-isolated property 'owl' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
30 | public struct OwlContainer<T: Equatable, Screen: View>: UIViewControllerRepresentable {
31 | /// The navigation manager that holds the route stack.
32 | @ObservedObject public var owl: InOwl<T>
| `- note: property declared here
33 |
34 | /// A closure that maps a route of type `T` to a SwiftUI `View`.
:
60 | }
61 |
62 | private func syncNavigation(_ navigation: UINavigationController) {
| `- note: add '@MainActor' to make instance method 'syncNavigation' part of global actor 'MainActor'
63 | // Prevent duplicate sync calls when a transition is in flight.
64 | if let owlNav = navigation as? OwlNavigationController, owlNav.isSyncScheduled {
:
76 |
77 | let currentStack = navigation.viewControllers.count
78 | let targetStack = owl.routes.count
| `- warning: main actor-isolated property 'owl' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
79 |
80 | if targetStack > currentStack {
/Users/admin/builder/spi-builder-workspace/Sources/OwlNav/Setup/OwlContainer.swift:101:33: error: main actor-isolated property 'routes' can not be referenced from a nonisolated context
60 | }
61 |
62 | private func syncNavigation(_ navigation: UINavigationController) {
| `- note: add '@MainActor' to make instance method 'syncNavigation' part of global actor 'MainActor'
63 | // Prevent duplicate sync calls when a transition is in flight.
64 | if let owlNav = navigation as? OwlNavigationController, owlNav.isSyncScheduled {
:
99 | var newStack: [UIViewController] = []
100 | for index in 0..<targetStack {
101 | let route = owl.routes[index]
| `- error: main actor-isolated property 'routes' can not be referenced from a nonisolated context
102 | let existing = navigation.viewControllers[index] as? OwlHostingController<T, Screen>
103 |
/Users/admin/builder/spi-builder-workspace/Sources/OwlNav/Setup/InOwl.swift:15:40: note: property declared here
13 | @MainActor public class InOwl<T: Equatable>: ObservableObject {
14 | /// The current navigation stack.
15 | @Published public private(set) var routes: [T] = []
| `- note: property declared here
16 |
17 | /// Animation flag for the next pop operation.
/Users/admin/builder/spi-builder-workspace/Sources/OwlNav/Setup/OwlContainer.swift:101:29: warning: main actor-isolated property 'owl' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
30 | public struct OwlContainer<T: Equatable, Screen: View>: UIViewControllerRepresentable {
31 | /// The navigation manager that holds the route stack.
32 | @ObservedObject public var owl: InOwl<T>
| `- note: property declared here
33 |
34 | /// A closure that maps a route of type `T` to a SwiftUI `View`.
:
60 | }
61 |
62 | private func syncNavigation(_ navigation: UINavigationController) {
| `- note: add '@MainActor' to make instance method 'syncNavigation' part of global actor 'MainActor'
63 | // Prevent duplicate sync calls when a transition is in flight.
64 | if let owlNav = navigation as? OwlNavigationController, owlNav.isSyncScheduled {
:
99 | var newStack: [UIViewController] = []
100 | for index in 0..<targetStack {
101 | let route = owl.routes[index]
| `- warning: main actor-isolated property 'owl' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
102 | let existing = navigation.viewControllers[index] as? OwlHostingController<T, Screen>
103 |
/Users/admin/builder/spi-builder-workspace/Sources/OwlNav/Setup/OwlContainer.swift:121:33: error: main actor-isolated property 'routes' can not be referenced from a nonisolated context
60 | }
61 |
62 | private func syncNavigation(_ navigation: UINavigationController) {
| `- note: add '@MainActor' to make instance method 'syncNavigation' part of global actor 'MainActor'
63 | // Prevent duplicate sync calls when a transition is in flight.
64 | if let owlNav = navigation as? OwlNavigationController, owlNav.isSyncScheduled {
:
119 |
120 | for index in 0..<targetStack {
121 | let route = owl.routes[index]
| `- error: main actor-isolated property 'routes' can not be referenced from a nonisolated context
122 | let existing = navigation.viewControllers[index] as? OwlHostingController<T, Screen>
123 |
/Users/admin/builder/spi-builder-workspace/Sources/OwlNav/Setup/InOwl.swift:15:40: note: property declared here
13 | @MainActor public class InOwl<T: Equatable>: ObservableObject {
14 | /// The current navigation stack.
15 | @Published public private(set) var routes: [T] = []
| `- note: property declared here
16 |
17 | /// Animation flag for the next pop operation.
/Users/admin/builder/spi-builder-workspace/Sources/OwlNav/Setup/OwlContainer.swift:121:29: warning: main actor-isolated property 'owl' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
30 | public struct OwlContainer<T: Equatable, Screen: View>: UIViewControllerRepresentable {
31 | /// The navigation manager that holds the route stack.
32 | @ObservedObject public var owl: InOwl<T>
| `- note: property declared here
33 |
34 | /// A closure that maps a route of type `T` to a SwiftUI `View`.
:
60 | }
61 |
62 | private func syncNavigation(_ navigation: UINavigationController) {
| `- note: add '@MainActor' to make instance method 'syncNavigation' part of global actor 'MainActor'
63 | // Prevent duplicate sync calls when a transition is in flight.
64 | if let owlNav = navigation as? OwlNavigationController, owlNav.isSyncScheduled {
:
119 |
120 | for index in 0..<targetStack {
121 | let route = owl.routes[index]
| `- warning: main actor-isolated property 'owl' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
122 | let existing = navigation.viewControllers[index] as? OwlHostingController<T, Screen>
123 |
[8/10] Compiling OwlNav Views+Extensions.swift
/Users/admin/builder/spi-builder-workspace/Sources/OwlNav/Extensions/Views+Extensions.swift:14:105: error: 'View' is only available in macOS 10.15 or newer
8 | import SwiftUI
9 |
10 | extension View {
| `- note: add @available attribute to enclosing extension
11 | /// Configures the navigation bar to be transparent if available.
12 | /// - Parameter removeBackground: If `true`, hides the toolbar background and sets it to clear on iOS 16+.
13 | /// - Returns: A view with a transparent or default navigation bar.
14 | @ViewBuilder public func transparentNavigationBarIfAvailable(removeBackground: Bool = true) -> some View {
| | `- error: 'View' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing instance method
15 | if #available(iOS 16.0, *) {
16 | if removeBackground {
/Users/admin/builder/spi-builder-workspace/Sources/OwlNav/Extensions/Views+Extensions.swift:14:6: error: 'ViewBuilder' is only available in macOS 10.15 or newer
8 | import SwiftUI
9 |
10 | extension View {
| `- note: add @available attribute to enclosing extension
11 | /// Configures the navigation bar to be transparent if available.
12 | /// - Parameter removeBackground: If `true`, hides the toolbar background and sets it to clear on iOS 16+.
13 | /// - Returns: A view with a transparent or default navigation bar.
14 | @ViewBuilder public func transparentNavigationBarIfAvailable(removeBackground: Bool = true) -> some View {
| | `- note: add @available attribute to enclosing instance method
| `- error: 'ViewBuilder' is only available in macOS 10.15 or newer
15 | if #available(iOS 16.0, *) {
16 | if removeBackground {
/Users/admin/builder/spi-builder-workspace/Sources/OwlNav/Extensions/Views+Extensions.swift:33:69: error: 'View' is only available in macOS 10.15 or newer
8 | import SwiftUI
9 |
10 | extension View {
| `- note: add @available attribute to enclosing extension
11 | /// Configures the navigation bar to be transparent if available.
12 | /// - Parameter removeBackground: If `true`, hides the toolbar background and sets it to clear on iOS 16+.
:
31 | /// Hides the navigation bar if available.
32 | /// - Returns: A view with a hidden navigation bar.
33 | @ViewBuilder public func hideNavigationBarIfAvailable() -> some View {
| | `- error: 'View' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing instance method
34 | if #available(iOS 16.0, *) {
35 | self
/Users/admin/builder/spi-builder-workspace/Sources/OwlNav/Extensions/Views+Extensions.swift:33:6: error: 'ViewBuilder' is only available in macOS 10.15 or newer
8 | import SwiftUI
9 |
10 | extension View {
| `- note: add @available attribute to enclosing extension
11 | /// Configures the navigation bar to be transparent if available.
12 | /// - Parameter removeBackground: If `true`, hides the toolbar background and sets it to clear on iOS 16+.
:
31 | /// Hides the navigation bar if available.
32 | /// - Returns: A view with a hidden navigation bar.
33 | @ViewBuilder public func hideNavigationBarIfAvailable() -> some View {
| | `- note: add @available attribute to enclosing instance method
| `- error: 'ViewBuilder' is only available in macOS 10.15 or newer
34 | if #available(iOS 16.0, *) {
35 | self
/Users/admin/builder/spi-builder-workspace/Sources/OwlNav/Extensions/Views+Extensions.swift:48:42: error: 'Binding' is only available in macOS 10.15 or newer
8 | import SwiftUI
9 |
10 | extension View {
| `- note: add @available attribute to enclosing extension
11 | /// Configures the navigation bar to be transparent if available.
12 | /// - Parameter removeBackground: If `true`, hides the toolbar background and sets it to clear on iOS 16+.
:
46 | /// - onPopCompleted: An optional callback triggered when a system swipe-back pop completes.
47 | /// - Returns: A view with swipe-back functionality enabled.
48 | public func withSwipeBack(isEnabled: Binding<Bool> = .constant(true), onPopCompleted: (() -> Void)? = nil) -> some View {
| | `- error: 'Binding' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing instance method
49 | modifier(WithSwipeBackModifier(isEnabled: isEnabled, onPopCompleted: onPopCompleted))
50 | }
/Users/admin/builder/spi-builder-workspace/Sources/OwlNav/Extensions/Views+Extensions.swift:48:120: error: 'View' is only available in macOS 10.15 or newer
8 | import SwiftUI
9 |
10 | extension View {
| `- note: add @available attribute to enclosing extension
11 | /// Configures the navigation bar to be transparent if available.
12 | /// - Parameter removeBackground: If `true`, hides the toolbar background and sets it to clear on iOS 16+.
:
46 | /// - onPopCompleted: An optional callback triggered when a system swipe-back pop completes.
47 | /// - Returns: A view with swipe-back functionality enabled.
48 | public func withSwipeBack(isEnabled: Binding<Bool> = .constant(true), onPopCompleted: (() -> Void)? = nil) -> some View {
| | `- error: 'View' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing instance method
49 | modifier(WithSwipeBackModifier(isEnabled: isEnabled, onPopCompleted: onPopCompleted))
50 | }
/Users/admin/builder/spi-builder-workspace/Sources/OwlNav/Extensions/Views+Extensions.swift:58:43: error: 'Binding' is only available in macOS 10.15 or newer
8 | import SwiftUI
9 |
10 | extension View {
| `- note: add @available attribute to enclosing extension
11 | /// Configures the navigation bar to be transparent if available.
12 | /// - Parameter removeBackground: If `true`, hides the toolbar background and sets it to clear on iOS 16+.
:
56 | /// - Returns: A view with swipe-back functionality enabled.
57 | @available(*, deprecated, message: "Use withSwipeBack(isEnabled:onPopCompleted:) instead.")
58 | public func withSwipeBack(stackCount: Binding<Int>, onPopCompleted: (() -> Void)? = nil) -> some View {
| `- error: 'Binding' is only available in macOS 10.15 or newer
59 | modifier(WithSwipeBackModifier(isEnabled: .constant(stackCount.wrappedValue > 1), onPopCompleted: onPopCompleted))
60 | }
/Users/admin/builder/spi-builder-workspace/Sources/OwlNav/Extensions/Views+Extensions.swift:58:102: error: 'View' is only available in macOS 10.15 or newer
8 | import SwiftUI
9 |
10 | extension View {
| `- note: add @available attribute to enclosing extension
11 | /// Configures the navigation bar to be transparent if available.
12 | /// - Parameter removeBackground: If `true`, hides the toolbar background and sets it to clear on iOS 16+.
:
56 | /// - Returns: A view with swipe-back functionality enabled.
57 | @available(*, deprecated, message: "Use withSwipeBack(isEnabled:onPopCompleted:) instead.")
58 | public func withSwipeBack(stackCount: Binding<Int>, onPopCompleted: (() -> Void)? = nil) -> some View {
| `- error: 'View' is only available in macOS 10.15 or newer
59 | modifier(WithSwipeBackModifier(isEnabled: .constant(stackCount.wrappedValue > 1), onPopCompleted: onPopCompleted))
60 | }
/Users/admin/builder/spi-builder-workspace/Sources/OwlNav/Extensions/Views+Extensions.swift:10:11: error: 'View' is only available in macOS 10.15 or newer
8 | import SwiftUI
9 |
10 | extension View {
| | `- error: 'View' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing extension
11 | /// Configures the navigation bar to be transparent if available.
12 | /// - Parameter removeBackground: If `true`, hides the toolbar background and sets it to clear on iOS 16+.
/Users/admin/builder/spi-builder-workspace/Sources/OwlNav/Extensions/Views+Extensions.swift:15:12: warning: result builder 'ViewBuilder' does not implement 'buildLimitedAvailability'; this code may crash on earlier versions of the OS
13 | /// - Returns: A view with a transparent or default navigation bar.
14 | @ViewBuilder public func transparentNavigationBarIfAvailable(removeBackground: Bool = true) -> some View {
15 | if #available(iOS 16.0, *) {
| `- warning: result builder 'ViewBuilder' does not implement 'buildLimitedAvailability'; this code may crash on earlier versions of the OS
16 | if removeBackground {
17 | self
/Users/admin/builder/spi-builder-workspace/Sources/OwlNav/Extensions/Views+Extensions.swift:18:22: error: 'toolbar(_:for:)' is only available in macOS 13.0 or newer
8 | import SwiftUI
9 |
10 | extension View {
| `- note: add @available attribute to enclosing extension
11 | /// Configures the navigation bar to be transparent if available.
12 | /// - Parameter removeBackground: If `true`, hides the toolbar background and sets it to clear on iOS 16+.
13 | /// - Returns: A view with a transparent or default navigation bar.
14 | @ViewBuilder public func transparentNavigationBarIfAvailable(removeBackground: Bool = true) -> some View {
| `- note: add @available attribute to enclosing instance method
15 | if #available(iOS 16.0, *) {
16 | if removeBackground {
17 | self
18 | .toolbar(.visible, for: .navigationBar)
| |- error: 'toolbar(_:for:)' is only available in macOS 13.0 or newer
| `- note: add 'if #available' version check
19 | .toolbarBackground(.hidden, for: .navigationBar)
20 | .toolbarBackground(.clear, for: .navigationBar)
/Users/admin/builder/spi-builder-workspace/Sources/OwlNav/Extensions/Views+Extensions.swift:18:46: error: 'navigationBar' is unavailable in macOS
16 | if removeBackground {
17 | self
18 | .toolbar(.visible, for: .navigationBar)
| `- error: 'navigationBar' is unavailable in macOS
19 | .toolbarBackground(.hidden, for: .navigationBar)
20 | .toolbarBackground(.clear, for: .navigationBar)
SwiftUI.ToolbarPlacement.navigationBar:3:21: note: 'navigationBar' has been explicitly marked unavailable here
1 | struct ToolbarPlacement {
2 | @available(macOS, unavailable)
3 | public static var navigationBar: ToolbarPlacement { get }}
| `- note: 'navigationBar' has been explicitly marked unavailable here
4 |
/Users/admin/builder/spi-builder-workspace/Sources/OwlNav/Extensions/Views+Extensions.swift:19:22: error: 'toolbarBackground(_:for:)' is only available in macOS 13.0 or newer
8 | import SwiftUI
9 |
10 | extension View {
| `- note: add @available attribute to enclosing extension
11 | /// Configures the navigation bar to be transparent if available.
12 | /// - Parameter removeBackground: If `true`, hides the toolbar background and sets it to clear on iOS 16+.
13 | /// - Returns: A view with a transparent or default navigation bar.
14 | @ViewBuilder public func transparentNavigationBarIfAvailable(removeBackground: Bool = true) -> some View {
| `- note: add @available attribute to enclosing instance method
15 | if #available(iOS 16.0, *) {
16 | if removeBackground {
17 | self
18 | .toolbar(.visible, for: .navigationBar)
19 | .toolbarBackground(.hidden, for: .navigationBar)
| |- error: 'toolbarBackground(_:for:)' is only available in macOS 13.0 or newer
| `- note: add 'if #available' version check
20 | .toolbarBackground(.clear, for: .navigationBar)
21 | } else {
/Users/admin/builder/spi-builder-workspace/Sources/OwlNav/Extensions/Views+Extensions.swift:19:55: error: 'navigationBar' is unavailable in macOS
17 | self
18 | .toolbar(.visible, for: .navigationBar)
19 | .toolbarBackground(.hidden, for: .navigationBar)
| `- error: 'navigationBar' is unavailable in macOS
20 | .toolbarBackground(.clear, for: .navigationBar)
21 | } else {
SwiftUI.ToolbarPlacement.navigationBar:3:21: note: 'navigationBar' has been explicitly marked unavailable here
1 | struct ToolbarPlacement {
2 | @available(macOS, unavailable)
3 | public static var navigationBar: ToolbarPlacement { get }}
| `- note: 'navigationBar' has been explicitly marked unavailable here
4 |
/Users/admin/builder/spi-builder-workspace/Sources/OwlNav/Extensions/Views+Extensions.swift:20:22: error: 'toolbarBackground(_:for:)' is only available in macOS 13.0 or newer
8 | import SwiftUI
9 |
10 | extension View {
| `- note: add @available attribute to enclosing extension
11 | /// Configures the navigation bar to be transparent if available.
12 | /// - Parameter removeBackground: If `true`, hides the toolbar background and sets it to clear on iOS 16+.
13 | /// - Returns: A view with a transparent or default navigation bar.
14 | @ViewBuilder public func transparentNavigationBarIfAvailable(removeBackground: Bool = true) -> some View {
| `- note: add @available attribute to enclosing instance method
15 | if #available(iOS 16.0, *) {
16 | if removeBackground {
:
18 | .toolbar(.visible, for: .navigationBar)
19 | .toolbarBackground(.hidden, for: .navigationBar)
20 | .toolbarBackground(.clear, for: .navigationBar)
| |- error: 'toolbarBackground(_:for:)' is only available in macOS 13.0 or newer
| `- note: add 'if #available' version check
21 | } else {
22 | self
/Users/admin/builder/spi-builder-workspace/Sources/OwlNav/Extensions/Views+Extensions.swift:20:41: error: 'clear' is only available in macOS 10.15 or newer
8 | import SwiftUI
9 |
10 | extension View {
| `- note: add @available attribute to enclosing extension
11 | /// Configures the navigation bar to be transparent if available.
12 | /// - Parameter removeBackground: If `true`, hides the toolbar background and sets it to clear on iOS 16+.
13 | /// - Returns: A view with a transparent or default navigation bar.
14 | @ViewBuilder public func transparentNavigationBarIfAvailable(removeBackground: Bool = true) -> some View {
| `- note: add @available attribute to enclosing instance method
15 | if #available(iOS 16.0, *) {
16 | if removeBackground {
:
18 | .toolbar(.visible, for: .navigationBar)
19 | .toolbarBackground(.hidden, for: .navigationBar)
20 | .toolbarBackground(.clear, for: .navigationBar)
| |- error: 'clear' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
21 | } else {
22 | self
/Users/admin/builder/spi-builder-workspace/Sources/OwlNav/Extensions/Views+Extensions.swift:20:54: error: 'navigationBar' is unavailable in macOS
18 | .toolbar(.visible, for: .navigationBar)
19 | .toolbarBackground(.hidden, for: .navigationBar)
20 | .toolbarBackground(.clear, for: .navigationBar)
| `- error: 'navigationBar' is unavailable in macOS
21 | } else {
22 | self
SwiftUI.ToolbarPlacement.navigationBar:3:21: note: 'navigationBar' has been explicitly marked unavailable here
1 | struct ToolbarPlacement {
2 | @available(macOS, unavailable)
3 | public static var navigationBar: ToolbarPlacement { get }}
| `- note: 'navigationBar' has been explicitly marked unavailable here
4 |
/Users/admin/builder/spi-builder-workspace/Sources/OwlNav/Extensions/Views+Extensions.swift:16:33: error: 'buildEither(first:)' is only available in macOS 10.15 or newer
8 | import SwiftUI
9 |
10 | extension View {
| `- note: add @available attribute to enclosing extension
11 | /// Configures the navigation bar to be transparent if available.
12 | /// - Parameter removeBackground: If `true`, hides the toolbar background and sets it to clear on iOS 16+.
13 | /// - Returns: A view with a transparent or default navigation bar.
14 | @ViewBuilder public func transparentNavigationBarIfAvailable(removeBackground: Bool = true) -> some View {
| `- note: add @available attribute to enclosing instance method
15 | if #available(iOS 16.0, *) {
16 | if removeBackground {
| |- error: 'buildEither(first:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
17 | self
18 | .toolbar(.visible, for: .navigationBar)
/Users/admin/builder/spi-builder-workspace/Sources/OwlNav/Extensions/Views+Extensions.swift:23:22: error: 'toolbar(_:for:)' is only available in macOS 13.0 or newer
8 | import SwiftUI
9 |
10 | extension View {
| `- note: add @available attribute to enclosing extension
11 | /// Configures the navigation bar to be transparent if available.
12 | /// - Parameter removeBackground: If `true`, hides the toolbar background and sets it to clear on iOS 16+.
13 | /// - Returns: A view with a transparent or default navigation bar.
14 | @ViewBuilder public func transparentNavigationBarIfAvailable(removeBackground: Bool = true) -> some View {
| `- note: add @available attribute to enclosing instance method
15 | if #available(iOS 16.0, *) {
16 | if removeBackground {
:
21 | } else {
22 | self
23 | .toolbar(.visible, for: .navigationBar)
| |- error: 'toolbar(_:for:)' is only available in macOS 13.0 or newer
| `- note: add 'if #available' version check
24 | }
25 | } else {
/Users/admin/builder/spi-builder-workspace/Sources/OwlNav/Extensions/Views+Extensions.swift:23:46: error: 'navigationBar' is unavailable in macOS
21 | } else {
22 | self
23 | .toolbar(.visible, for: .navigationBar)
| `- error: 'navigationBar' is unavailable in macOS
24 | }
25 | } else {
SwiftUI.ToolbarPlacement.navigationBar:3:21: note: 'navigationBar' has been explicitly marked unavailable here
1 | struct ToolbarPlacement {
2 | @available(macOS, unavailable)
3 | public static var navigationBar: ToolbarPlacement { get }}
| `- note: 'navigationBar' has been explicitly marked unavailable here
4 |
/Users/admin/builder/spi-builder-workspace/Sources/OwlNav/Extensions/Views+Extensions.swift:21:20: error: 'buildEither(second:)' is only available in macOS 10.15 or newer
8 | import SwiftUI
9 |
10 | extension View {
| `- note: add @available attribute to enclosing extension
11 | /// Configures the navigation bar to be transparent if available.
12 | /// - Parameter removeBackground: If `true`, hides the toolbar background and sets it to clear on iOS 16+.
13 | /// - Returns: A view with a transparent or default navigation bar.
14 | @ViewBuilder public func transparentNavigationBarIfAvailable(removeBackground: Bool = true) -> some View {
| `- note: add @available attribute to enclosing instance method
15 | if #available(iOS 16.0, *) {
16 | if removeBackground {
:
19 | .toolbarBackground(.hidden, for: .navigationBar)
20 | .toolbarBackground(.clear, for: .navigationBar)
21 | } else {
| |- error: 'buildEither(second:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
22 | self
23 | .toolbar(.visible, for: .navigationBar)
/Users/admin/builder/spi-builder-workspace/Sources/OwlNav/Extensions/Views+Extensions.swift:15:36: error: 'buildLimitedAvailability' is only available in macOS 11.0 or newer
8 | import SwiftUI
9 |
10 | extension View {
| `- note: add @available attribute to enclosing extension
11 | /// Configures the navigation bar to be transparent if available.
12 | /// - Parameter removeBackground: If `true`, hides the toolbar background and sets it to clear on iOS 16+.
13 | /// - Returns: A view with a transparent or default navigation bar.
14 | @ViewBuilder public func transparentNavigationBarIfAvailable(removeBackground: Bool = true) -> some View {
| `- note: add @available attribute to enclosing instance method
15 | if #available(iOS 16.0, *) {
| |- error: 'buildLimitedAvailability' is only available in macOS 11.0 or newer
| `- note: add 'if #available' version check
16 | if removeBackground {
17 | self
/Users/admin/builder/spi-builder-workspace/Sources/OwlNav/Extensions/Views+Extensions.swift:15:36: warning: conformance of '_ConditionalContent<TrueContent, FalseContent>' to 'View' is only available in macOS 10.15 or newer; this is an error in the Swift 6 language mode
8 | import SwiftUI
9 |
10 | extension View {
| `- note: add @available attribute to enclosing extension
11 | /// Configures the navigation bar to be transparent if available.
12 | /// - Parameter removeBackground: If `true`, hides the toolbar background and sets it to clear on iOS 16+.
13 | /// - Returns: A view with a transparent or default navigation bar.
14 | @ViewBuilder public func transparentNavigationBarIfAvailable(removeBackground: Bool = true) -> some View {
| `- note: add @available attribute to enclosing instance method
15 | if #available(iOS 16.0, *) {
| |- warning: conformance of '_ConditionalContent<TrueContent, FalseContent>' 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
16 | if removeBackground {
17 | self
/Users/admin/builder/spi-builder-workspace/Sources/OwlNav/Extensions/Views+Extensions.swift:15:36: error: 'buildEither(first:)' is only available in macOS 10.15 or newer
8 | import SwiftUI
9 |
10 | extension View {
| `- note: add @available attribute to enclosing extension
11 | /// Configures the navigation bar to be transparent if available.
12 | /// - Parameter removeBackground: If `true`, hides the toolbar background and sets it to clear on iOS 16+.
13 | /// - Returns: A view with a transparent or default navigation bar.
14 | @ViewBuilder public func transparentNavigationBarIfAvailable(removeBackground: Bool = true) -> some View {
| `- note: add @available attribute to enclosing instance method
15 | if #available(iOS 16.0, *) {
| |- error: 'buildEither(first:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
16 | if removeBackground {
17 | self
/Users/admin/builder/spi-builder-workspace/Sources/OwlNav/Extensions/Views+Extensions.swift:27:18: error: 'navigationBarHidden' is unavailable in macOS
25 | } else {
26 | self
27 | .navigationBarHidden(false)
| `- error: 'navigationBarHidden' is unavailable in macOS
28 | }
29 | }
SwiftUI.View.navigationBarHidden:7:27: note: 'navigationBarHidden' has been explicitly marked unavailable here
5 | @available(watchOS, introduced: 6.0, deprecated: 100000.0, message: "Use toolbar(.hidden)")
6 | @available(visionOS, introduced: 1.0, deprecated: 100000.0, message: "Use toolbar(.hidden)")
7 | nonisolated public func navigationBarHidden(_ hidden: Bool) -> some View
| `- note: 'navigationBarHidden' has been explicitly marked unavailable here
8 | }
9 |
/Users/admin/builder/spi-builder-workspace/Sources/OwlNav/Extensions/Views+Extensions.swift:25:16: error: 'buildEither(second:)' is only available in macOS 10.15 or newer
8 | import SwiftUI
9 |
10 | extension View {
| `- note: add @available attribute to enclosing extension
11 | /// Configures the navigation bar to be transparent if available.
12 | /// - Parameter removeBackground: If `true`, hides the toolbar background and sets it to clear on iOS 16+.
13 | /// - Returns: A view with a transparent or default navigation bar.
14 | @ViewBuilder public func transparentNavigationBarIfAvailable(removeBackground: Bool = true) -> some View {
| `- note: add @available attribute to enclosing instance method
15 | if #available(iOS 16.0, *) {
16 | if removeBackground {
:
23 | .toolbar(.visible, for: .navigationBar)
24 | }
25 | } else {
| |- error: 'buildEither(second:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
26 | self
27 | .navigationBarHidden(false)
/Users/admin/builder/spi-builder-workspace/Sources/OwlNav/Extensions/Views+Extensions.swift:14:110: warning: conformance of '_ConditionalContent<TrueContent, FalseContent>' to 'View' is only available in macOS 10.15 or newer; this is an error in the Swift 6 language mode
8 | import SwiftUI
9 |
10 | extension View {
| `- note: add @available attribute to enclosing extension
11 | /// Configures the navigation bar to be transparent if available.
12 | /// - Parameter removeBackground: If `true`, hides the toolbar background and sets it to clear on iOS 16+.
13 | /// - Returns: A view with a transparent or default navigation bar.
14 | @ViewBuilder public func transparentNavigationBarIfAvailable(removeBackground: Bool = true) -> some View {
| | |- warning: conformance of '_ConditionalContent<TrueContent, FalseContent>' 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 | if #available(iOS 16.0, *) {
16 | if removeBackground {
/Users/admin/builder/spi-builder-workspace/Sources/OwlNav/Extensions/Views+Extensions.swift:34:12: warning: result builder 'ViewBuilder' does not implement 'buildLimitedAvailability'; this code may crash on earlier versions of the OS
32 | /// - Returns: A view with a hidden navigation bar.
33 | @ViewBuilder public func hideNavigationBarIfAvailable() -> some View {
34 | if #available(iOS 16.0, *) {
| `- warning: result builder 'ViewBuilder' does not implement 'buildLimitedAvailability'; this code may crash on earlier versions of the OS
35 | self
36 | .toolbar(.hidden, for: .navigationBar)
/Users/admin/builder/spi-builder-workspace/Sources/OwlNav/Extensions/Views+Extensions.swift:36:18: error: 'toolbar(_:for:)' is only available in macOS 13.0 or newer
8 | import SwiftUI
9 |
10 | extension View {
| `- note: add @available attribute to enclosing extension
11 | /// Configures the navigation bar to be transparent if available.
12 | /// - Parameter removeBackground: If `true`, hides the toolbar background and sets it to clear on iOS 16+.
:
31 | /// Hides the navigation bar if available.
32 | /// - Returns: A view with a hidden navigation bar.
33 | @ViewBuilder public func hideNavigationBarIfAvailable() -> some View {
| `- note: add @available attribute to enclosing instance method
34 | if #available(iOS 16.0, *) {
35 | self
36 | .toolbar(.hidden, for: .navigationBar)
| |- error: 'toolbar(_:for:)' is only available in macOS 13.0 or newer
| `- note: add 'if #available' version check
37 | } else {
38 | self
/Users/admin/builder/spi-builder-workspace/Sources/OwlNav/Extensions/Views+Extensions.swift:36:41: error: 'navigationBar' is unavailable in macOS
34 | if #available(iOS 16.0, *) {
35 | self
36 | .toolbar(.hidden, for: .navigationBar)
| `- error: 'navigationBar' is unavailable in macOS
37 | } else {
38 | self
SwiftUI.ToolbarPlacement.navigationBar:3:21: note: 'navigationBar' has been explicitly marked unavailable here
1 | struct ToolbarPlacement {
2 | @available(macOS, unavailable)
3 | public static var navigationBar: ToolbarPlacement { get }}
| `- note: 'navigationBar' has been explicitly marked unavailable here
4 |
/Users/admin/builder/spi-builder-workspace/Sources/OwlNav/Extensions/Views+Extensions.swift:34:36: error: 'buildLimitedAvailability' is only available in macOS 11.0 or newer
8 | import SwiftUI
9 |
10 | extension View {
| `- note: add @available attribute to enclosing extension
11 | /// Configures the navigation bar to be transparent if available.
12 | /// - Parameter removeBackground: If `true`, hides the toolbar background and sets it to clear on iOS 16+.
:
31 | /// Hides the navigation bar if available.
32 | /// - Returns: A view with a hidden navigation bar.
33 | @ViewBuilder public func hideNavigationBarIfAvailable() -> some View {
| `- note: add @available attribute to enclosing instance method
34 | if #available(iOS 16.0, *) {
| |- error: 'buildLimitedAvailability' is only available in macOS 11.0 or newer
| `- note: add 'if #available' version check
35 | self
36 | .toolbar(.hidden, for: .navigationBar)
/Users/admin/builder/spi-builder-workspace/Sources/OwlNav/Extensions/Views+Extensions.swift:34:36: error: 'buildEither(first:)' is only available in macOS 10.15 or newer
8 | import SwiftUI
9 |
10 | extension View {
| `- note: add @available attribute to enclosing extension
11 | /// Configures the navigation bar to be transparent if available.
12 | /// - Parameter removeBackground: If `true`, hides the toolbar background and sets it to clear on iOS 16+.
:
31 | /// Hides the navigation bar if available.
32 | /// - Returns: A view with a hidden navigation bar.
33 | @ViewBuilder public func hideNavigationBarIfAvailable() -> some View {
| `- note: add @available attribute to enclosing instance method
34 | if #available(iOS 16.0, *) {
| |- error: 'buildEither(first:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
35 | self
36 | .toolbar(.hidden, for: .navigationBar)
/Users/admin/builder/spi-builder-workspace/Sources/OwlNav/Extensions/Views+Extensions.swift:39:18: error: 'navigationBarHidden' is unavailable in macOS
37 | } else {
38 | self
39 | .navigationBarHidden(true)
| `- error: 'navigationBarHidden' is unavailable in macOS
40 | }
41 | }
SwiftUI.View.navigationBarHidden:7:27: note: 'navigationBarHidden' has been explicitly marked unavailable here
5 | @available(watchOS, introduced: 6.0, deprecated: 100000.0, message: "Use toolbar(.hidden)")
6 | @available(visionOS, introduced: 1.0, deprecated: 100000.0, message: "Use toolbar(.hidden)")
7 | nonisolated public func navigationBarHidden(_ hidden: Bool) -> some View
| `- note: 'navigationBarHidden' has been explicitly marked unavailable here
8 | }
9 |
/Users/admin/builder/spi-builder-workspace/Sources/OwlNav/Extensions/Views+Extensions.swift:37:16: error: 'buildEither(second:)' is only available in macOS 10.15 or newer
8 | import SwiftUI
9 |
10 | extension View {
| `- note: add @available attribute to enclosing extension
11 | /// Configures the navigation bar to be transparent if available.
12 | /// - Parameter removeBackground: If `true`, hides the toolbar background and sets it to clear on iOS 16+.
:
31 | /// Hides the navigation bar if available.
32 | /// - Returns: A view with a hidden navigation bar.
33 | @ViewBuilder public func hideNavigationBarIfAvailable() -> some View {
| `- note: add @available attribute to enclosing instance method
34 | if #available(iOS 16.0, *) {
35 | self
36 | .toolbar(.hidden, for: .navigationBar)
37 | } else {
| |- error: 'buildEither(second:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
38 | self
39 | .navigationBarHidden(true)
/Users/admin/builder/spi-builder-workspace/Sources/OwlNav/Extensions/Views+Extensions.swift:33:74: warning: conformance of '_ConditionalContent<TrueContent, FalseContent>' to 'View' is only available in macOS 10.15 or newer; this is an error in the Swift 6 language mode
8 | import SwiftUI
9 |
10 | extension View {
| `- note: add @available attribute to enclosing extension
11 | /// Configures the navigation bar to be transparent if available.
12 | /// - Parameter removeBackground: If `true`, hides the toolbar background and sets it to clear on iOS 16+.
:
31 | /// Hides the navigation bar if available.
32 | /// - Returns: A view with a hidden navigation bar.
33 | @ViewBuilder public func hideNavigationBarIfAvailable() -> some View {
| | |- warning: conformance of '_ConditionalContent<TrueContent, FalseContent>' 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
34 | if #available(iOS 16.0, *) {
35 | self
/Users/admin/builder/spi-builder-workspace/Sources/OwlNav/Extensions/Views+Extensions.swift:49:9: 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
8 | import SwiftUI
9 |
10 | extension View {
| `- note: add @available attribute to enclosing extension
11 | /// Configures the navigation bar to be transparent if available.
12 | /// - Parameter removeBackground: If `true`, hides the toolbar background and sets it to clear on iOS 16+.
:
46 | /// - onPopCompleted: An optional callback triggered when a system swipe-back pop completes.
47 | /// - Returns: A view with swipe-back functionality enabled.
48 | public func withSwipeBack(isEnabled: Binding<Bool> = .constant(true), onPopCompleted: (() -> Void)? = nil) -> some View {
| `- note: add @available attribute to enclosing instance method
49 | modifier(WithSwipeBackModifier(isEnabled: isEnabled, onPopCompleted: onPopCompleted))
| |- 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
50 | }
51 |
/Users/admin/builder/spi-builder-workspace/Sources/OwlNav/Extensions/Views+Extensions.swift:49:9: error: 'modifier' is only available in macOS 10.15 or newer
8 | import SwiftUI
9 |
10 | extension View {
| `- note: add @available attribute to enclosing extension
11 | /// Configures the navigation bar to be transparent if available.
12 | /// - Parameter removeBackground: If `true`, hides the toolbar background and sets it to clear on iOS 16+.
:
46 | /// - onPopCompleted: An optional callback triggered when a system swipe-back pop completes.
47 | /// - Returns: A view with swipe-back functionality enabled.
48 | public func withSwipeBack(isEnabled: Binding<Bool> = .constant(true), onPopCompleted: (() -> Void)? = nil) -> some View {
| `- note: add @available attribute to enclosing instance method
49 | modifier(WithSwipeBackModifier(isEnabled: isEnabled, onPopCompleted: onPopCompleted))
| |- error: 'modifier' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
50 | }
51 |
/Users/admin/builder/spi-builder-workspace/Sources/OwlNav/Extensions/Views+Extensions.swift:59:9: 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
8 | import SwiftUI
9 |
10 | extension View {
| `- note: add @available attribute to enclosing extension
11 | /// Configures the navigation bar to be transparent if available.
12 | /// - Parameter removeBackground: If `true`, hides the toolbar background and sets it to clear on iOS 16+.
:
57 | @available(*, deprecated, message: "Use withSwipeBack(isEnabled:onPopCompleted:) instead.")
58 | public func withSwipeBack(stackCount: Binding<Int>, onPopCompleted: (() -> Void)? = nil) -> some View {
59 | modifier(WithSwipeBackModifier(isEnabled: .constant(stackCount.wrappedValue > 1), onPopCompleted: onPopCompleted))
| |- 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
60 | }
61 | }
/Users/admin/builder/spi-builder-workspace/Sources/OwlNav/Extensions/Views+Extensions.swift:59:9: error: 'modifier' is only available in macOS 10.15 or newer
8 | import SwiftUI
9 |
10 | extension View {
| `- note: add @available attribute to enclosing extension
11 | /// Configures the navigation bar to be transparent if available.
12 | /// - Parameter removeBackground: If `true`, hides the toolbar background and sets it to clear on iOS 16+.
:
57 | @available(*, deprecated, message: "Use withSwipeBack(isEnabled:onPopCompleted:) instead.")
58 | public func withSwipeBack(stackCount: Binding<Int>, onPopCompleted: (() -> Void)? = nil) -> some View {
59 | modifier(WithSwipeBackModifier(isEnabled: .constant(stackCount.wrappedValue > 1), onPopCompleted: onPopCompleted))
| |- error: 'modifier' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
60 | }
61 | }
[9/10] Emitting module OwlNav
/Users/admin/builder/spi-builder-workspace/Sources/OwlNav/Extensions/Views+Extensions.swift:14:105: error: 'View' is only available in macOS 10.15 or newer
8 | import SwiftUI
9 |
10 | extension View {
| `- note: add @available attribute to enclosing extension
11 | /// Configures the navigation bar to be transparent if available.
12 | /// - Parameter removeBackground: If `true`, hides the toolbar background and sets it to clear on iOS 16+.
13 | /// - Returns: A view with a transparent or default navigation bar.
14 | @ViewBuilder public func transparentNavigationBarIfAvailable(removeBackground: Bool = true) -> some View {
| | `- error: 'View' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing instance method
15 | if #available(iOS 16.0, *) {
16 | if removeBackground {
/Users/admin/builder/spi-builder-workspace/Sources/OwlNav/Extensions/Views+Extensions.swift:14:6: error: 'ViewBuilder' is only available in macOS 10.15 or newer
8 | import SwiftUI
9 |
10 | extension View {
| `- note: add @available attribute to enclosing extension
11 | /// Configures the navigation bar to be transparent if available.
12 | /// - Parameter removeBackground: If `true`, hides the toolbar background and sets it to clear on iOS 16+.
13 | /// - Returns: A view with a transparent or default navigation bar.
14 | @ViewBuilder public func transparentNavigationBarIfAvailable(removeBackground: Bool = true) -> some View {
| | `- note: add @available attribute to enclosing instance method
| `- error: 'ViewBuilder' is only available in macOS 10.15 or newer
15 | if #available(iOS 16.0, *) {
16 | if removeBackground {
/Users/admin/builder/spi-builder-workspace/Sources/OwlNav/Extensions/Views+Extensions.swift:33:69: error: 'View' is only available in macOS 10.15 or newer
8 | import SwiftUI
9 |
10 | extension View {
| `- note: add @available attribute to enclosing extension
11 | /// Configures the navigation bar to be transparent if available.
12 | /// - Parameter removeBackground: If `true`, hides the toolbar background and sets it to clear on iOS 16+.
:
31 | /// Hides the navigation bar if available.
32 | /// - Returns: A view with a hidden navigation bar.
33 | @ViewBuilder public func hideNavigationBarIfAvailable() -> some View {
| | `- error: 'View' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing instance method
34 | if #available(iOS 16.0, *) {
35 | self
/Users/admin/builder/spi-builder-workspace/Sources/OwlNav/Extensions/Views+Extensions.swift:33:6: error: 'ViewBuilder' is only available in macOS 10.15 or newer
8 | import SwiftUI
9 |
10 | extension View {
| `- note: add @available attribute to enclosing extension
11 | /// Configures the navigation bar to be transparent if available.
12 | /// - Parameter removeBackground: If `true`, hides the toolbar background and sets it to clear on iOS 16+.
:
31 | /// Hides the navigation bar if available.
32 | /// - Returns: A view with a hidden navigation bar.
33 | @ViewBuilder public func hideNavigationBarIfAvailable() -> some View {
| | `- note: add @available attribute to enclosing instance method
| `- error: 'ViewBuilder' is only available in macOS 10.15 or newer
34 | if #available(iOS 16.0, *) {
35 | self
/Users/admin/builder/spi-builder-workspace/Sources/OwlNav/Extensions/Views+Extensions.swift:48:42: error: 'Binding' is only available in macOS 10.15 or newer
8 | import SwiftUI
9 |
10 | extension View {
| `- note: add @available attribute to enclosing extension
11 | /// Configures the navigation bar to be transparent if available.
12 | /// - Parameter removeBackground: If `true`, hides the toolbar background and sets it to clear on iOS 16+.
:
46 | /// - onPopCompleted: An optional callback triggered when a system swipe-back pop completes.
47 | /// - Returns: A view with swipe-back functionality enabled.
48 | public func withSwipeBack(isEnabled: Binding<Bool> = .constant(true), onPopCompleted: (() -> Void)? = nil) -> some View {
| | `- error: 'Binding' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing instance method
49 | modifier(WithSwipeBackModifier(isEnabled: isEnabled, onPopCompleted: onPopCompleted))
50 | }
/Users/admin/builder/spi-builder-workspace/Sources/OwlNav/Extensions/Views+Extensions.swift:48:120: error: 'View' is only available in macOS 10.15 or newer
8 | import SwiftUI
9 |
10 | extension View {
| `- note: add @available attribute to enclosing extension
11 | /// Configures the navigation bar to be transparent if available.
12 | /// - Parameter removeBackground: If `true`, hides the toolbar background and sets it to clear on iOS 16+.
:
46 | /// - onPopCompleted: An optional callback triggered when a system swipe-back pop completes.
47 | /// - Returns: A view with swipe-back functionality enabled.
48 | public func withSwipeBack(isEnabled: Binding<Bool> = .constant(true), onPopCompleted: (() -> Void)? = nil) -> some View {
| | `- error: 'View' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing instance method
49 | modifier(WithSwipeBackModifier(isEnabled: isEnabled, onPopCompleted: onPopCompleted))
50 | }
/Users/admin/builder/spi-builder-workspace/Sources/OwlNav/Extensions/Views+Extensions.swift:58:43: error: 'Binding' is only available in macOS 10.15 or newer
8 | import SwiftUI
9 |
10 | extension View {
| `- note: add @available attribute to enclosing extension
11 | /// Configures the navigation bar to be transparent if available.
12 | /// - Parameter removeBackground: If `true`, hides the toolbar background and sets it to clear on iOS 16+.
:
56 | /// - Returns: A view with swipe-back functionality enabled.
57 | @available(*, deprecated, message: "Use withSwipeBack(isEnabled:onPopCompleted:) instead.")
58 | public func withSwipeBack(stackCount: Binding<Int>, onPopCompleted: (() -> Void)? = nil) -> some View {
| `- error: 'Binding' is only available in macOS 10.15 or newer
59 | modifier(WithSwipeBackModifier(isEnabled: .constant(stackCount.wrappedValue > 1), onPopCompleted: onPopCompleted))
60 | }
/Users/admin/builder/spi-builder-workspace/Sources/OwlNav/Extensions/Views+Extensions.swift:58:102: error: 'View' is only available in macOS 10.15 or newer
8 | import SwiftUI
9 |
10 | extension View {
| `- note: add @available attribute to enclosing extension
11 | /// Configures the navigation bar to be transparent if available.
12 | /// - Parameter removeBackground: If `true`, hides the toolbar background and sets it to clear on iOS 16+.
:
56 | /// - Returns: A view with swipe-back functionality enabled.
57 | @available(*, deprecated, message: "Use withSwipeBack(isEnabled:onPopCompleted:) instead.")
58 | public func withSwipeBack(stackCount: Binding<Int>, onPopCompleted: (() -> Void)? = nil) -> some View {
| `- error: 'View' is only available in macOS 10.15 or newer
59 | modifier(WithSwipeBackModifier(isEnabled: .constant(stackCount.wrappedValue > 1), onPopCompleted: onPopCompleted))
60 | }
/Users/admin/builder/spi-builder-workspace/Sources/OwlNav/Extensions/Views+Extensions.swift:10:11: error: 'View' is only available in macOS 10.15 or newer
8 | import SwiftUI
9 |
10 | extension View {
| | `- error: 'View' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing extension
11 | /// Configures the navigation bar to be transparent if available.
12 | /// - Parameter removeBackground: If `true`, hides the toolbar background and sets it to clear on iOS 16+.
/Users/admin/builder/spi-builder-workspace/Sources/OwlNav/Modifier/SwipeBack.swift:13:6: error: 'Binding' is only available in macOS 10.15 or newer
9 |
10 | /// A `ViewModifier` that enables the swipe-back gesture and coordinates pop completion callbacks.
11 | public struct WithSwipeBackModifier: ViewModifier {
| `- note: add @available attribute to enclosing struct
12 | /// Whether the swipe-back gesture is enabled.
13 | @Binding var isEnabled: Bool
| `- error: 'Binding' is only available in macOS 10.15 or newer
14 |
15 | /// Callback triggered when a system swipe-back pop completes.
/Users/admin/builder/spi-builder-workspace/Sources/OwlNav/Modifier/SwipeBack.swift:18:48: error: 'View' is only available in macOS 10.15 or newer
9 |
10 | /// A `ViewModifier` that enables the swipe-back gesture and coordinates pop completion callbacks.
11 | public struct WithSwipeBackModifier: ViewModifier {
| `- note: add @available attribute to enclosing struct
12 | /// Whether the swipe-back gesture is enabled.
13 | @Binding var isEnabled: Bool
:
16 | var onPopCompleted: (() -> Void)?
17 |
18 | public func body(content: Content) -> some View {
| | `- error: 'View' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing instance method
19 | content
20 | .background(
/Users/admin/builder/spi-builder-workspace/Sources/OwlNav/Modifier/SwipeBack.swift:32:6: error: 'Binding' is only available in macOS 10.15 or newer
28 |
29 | /// A background utility controller that enables the native swipe-back gesture based on stack state.
30 | public struct SwipeBackController: UIViewControllerRepresentable {
| `- note: add @available attribute to enclosing struct
31 | /// Whether the swipe-back gesture is enabled.
32 | @Binding var isEnabled: Bool
| `- error: 'Binding' is only available in macOS 10.15 or newer
33 |
34 | /// Callback triggered when a system swipe-back pop completes.
/Users/admin/builder/spi-builder-workspace/Sources/OwlNav/Modifier/SwipeBack.swift:37:59: error: cannot find type 'UIViewController' in scope
35 | var onPopCompleted: (() -> Void)?
36 |
37 | public func makeUIViewController(context: Context) -> UIViewController {
| `- error: cannot find type 'UIViewController' in scope
38 | let controller = UIViewController()
39 | controller.view.isHidden = true
/Users/admin/builder/spi-builder-workspace/Sources/OwlNav/Modifier/SwipeBack.swift:37:47: error: cannot find type 'Context' in scope
35 | var onPopCompleted: (() -> Void)?
36 |
37 | public func makeUIViewController(context: Context) -> UIViewController {
| `- error: cannot find type 'Context' in scope
38 | let controller = UIViewController()
39 | controller.view.isHidden = true
/Users/admin/builder/spi-builder-workspace/Sources/OwlNav/Modifier/SwipeBack.swift:43:46: error: cannot find type 'UIViewController' in scope
41 | }
42 |
43 | public func updateUIViewController(_ vc: UIViewController, context: Context) {
| `- error: cannot find type 'UIViewController' in scope
44 | // Walk up to the nearest UIHostingController to set associated-object flags.
45 | guard let hostingVC = vc.parent else { return }
/Users/admin/builder/spi-builder-workspace/Sources/OwlNav/Modifier/SwipeBack.swift:43:73: error: cannot find type 'Context' in scope
41 | }
42 |
43 | public func updateUIViewController(_ vc: UIViewController, context: Context) {
| `- error: cannot find type 'Context' in scope
44 | // Walk up to the nearest UIHostingController to set associated-object flags.
45 | guard let hostingVC = vc.parent else { return }
/Users/admin/builder/spi-builder-workspace/Sources/OwlNav/Modifier/SwipeBack.swift:30:36: error: cannot find type 'UIViewControllerRepresentable' in scope
28 |
29 | /// A background utility controller that enables the native swipe-back gesture based on stack state.
30 | public struct SwipeBackController: UIViewControllerRepresentable {
| `- error: cannot find type 'UIViewControllerRepresentable' in scope
31 | /// Whether the swipe-back gesture is enabled.
32 | @Binding var isEnabled: Bool
/Users/admin/builder/spi-builder-workspace/Sources/OwlNav/Setup/InOwl.swift:15:6: error: 'Published' is only available in macOS 10.15 or newer
11 | ///
12 | /// `OwlNav` is a `@MainActor` observed object that tracks an array of routes and provides methods to manipulate the stack.
13 | @MainActor public class InOwl<T: Equatable>: ObservableObject {
| `- note: add @available attribute to enclosing generic class
14 | /// The current navigation stack.
15 | @Published public private(set) var routes: [T] = []
| `- error: 'Published' is only available in macOS 10.15 or newer
16 |
17 | /// Animation flag for the next pop operation.
/Users/admin/builder/spi-builder-workspace/Sources/OwlNav/Setup/InOwl.swift:13:46: error: 'ObservableObject' is only available in macOS 10.15 or newer
11 | ///
12 | /// `OwlNav` is a `@MainActor` observed object that tracks an array of routes and provides methods to manipulate the stack.
13 | @MainActor public class InOwl<T: Equatable>: ObservableObject {
| | `- error: 'ObservableObject' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing generic class
14 | /// The current navigation stack.
15 | @Published public private(set) var routes: [T] = []
/Users/admin/builder/spi-builder-workspace/Sources/OwlNav/Setup/OwlContainer.swift:12:63: error: cannot find type 'UIHostingController' in scope
10 | /// A lightweight `UIHostingController` subclass that stores its route value directly,
11 | /// avoiding the need to access `.view.tag` (which force-loads the view hierarchy).
12 | final class OwlHostingController<T: Equatable, Screen: View>: UIHostingController<Screen> {
| `- error: cannot find type 'UIHostingController' in scope
13 | /// The route this controller represents.
14 | let route: T
/Users/admin/builder/spi-builder-workspace/Sources/OwlNav/Setup/OwlContainer.swift:12:56: error: 'View' is only available in macOS 10.15 or newer
10 | /// A lightweight `UIHostingController` subclass that stores its route value directly,
11 | /// avoiding the need to access `.view.tag` (which force-loads the view hierarchy).
12 | final class OwlHostingController<T: Equatable, Screen: View>: UIHostingController<Screen> {
| | `- error: 'View' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing generic class
13 | /// The route this controller represents.
14 | let route: T
/Users/admin/builder/spi-builder-workspace/Sources/OwlNav/Setup/OwlContainer.swift:32:6: warning: call to main actor-isolated initializer 'init(wrappedValue:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
30 | public struct OwlContainer<T: Equatable, Screen: View>: UIViewControllerRepresentable {
31 | /// The navigation manager that holds the route stack.
32 | @ObservedObject public var owl: InOwl<T>
| `- warning: call to main actor-isolated initializer 'init(wrappedValue:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
33 |
34 | /// A closure that maps a route of type `T` to a SwiftUI `View`.
SwiftUICore.ObservedObject.init:2:35: note: calls to initializer 'init(wrappedValue:)' from outside of its actor context are implicitly asynchronous
1 | generic struct ObservedObject {
2 | @MainActor @preconcurrency public init(wrappedValue: ObjectType)}
| `- note: calls to initializer 'init(wrappedValue:)' from outside of its actor context are implicitly asynchronous
3 |
/Users/admin/builder/spi-builder-workspace/Sources/OwlNav/Setup/OwlContainer.swift:32:6: error: 'ObservedObject' is only available in macOS 10.15 or newer
28 | ///
29 | /// `OwlContainer` manages a `UINavigationController` and synchronizes its state with an `OwlNav` instance.
30 | public struct OwlContainer<T: Equatable, Screen: View>: UIViewControllerRepresentable {
| `- note: add @available attribute to enclosing generic struct
31 | /// The navigation manager that holds the route stack.
32 | @ObservedObject public var owl: InOwl<T>
| `- error: 'ObservedObject' is only available in macOS 10.15 or newer
33 |
34 | /// A closure that maps a route of type `T` to a SwiftUI `View`.
/Users/admin/builder/spi-builder-workspace/Sources/OwlNav/Setup/OwlContainer.swift:35:6: error: 'ViewBuilder' is only available in macOS 10.15 or newer
28 | ///
29 | /// `OwlContainer` manages a `UINavigationController` and synchronizes its state with an `OwlNav` instance.
30 | public struct OwlContainer<T: Equatable, Screen: View>: UIViewControllerRepresentable {
| `- note: add @available attribute to enclosing generic struct
31 | /// The navigation manager that holds the route stack.
32 | @ObservedObject public var owl: InOwl<T>
33 |
34 | /// A closure that maps a route of type `T` to a SwiftUI `View`.
35 | @ViewBuilder private let routeMap: (T) -> Screen
| `- error: 'ViewBuilder' is only available in macOS 10.15 or newer
36 |
37 | /// Initializes a new `OwlContainer`.
/Users/admin/builder/spi-builder-workspace/Sources/OwlNav/Setup/OwlContainer.swift:41:35: error: 'ViewBuilder' is only available in macOS 10.15 or newer
28 | ///
29 | /// `OwlContainer` manages a `UINavigationController` and synchronizes its state with an `OwlNav` instance.
30 | public struct OwlContainer<T: Equatable, Screen: View>: UIViewControllerRepresentable {
| `- note: add @available attribute to enclosing generic struct
31 | /// The navigation manager that holds the route stack.
32 | @ObservedObject public var owl: InOwl<T>
:
39 | /// - owl: The `OwlNav` instance to observe.
40 | /// - routeMap: A closure that provides the view for each route in the stack.
41 | public init(_ owl: InOwl<T>, @ViewBuilder routeMap: @escaping (T) -> Screen) {
| | `- error: 'ViewBuilder' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing initializer
42 | _owl = ObservedObject(wrappedValue: owl)
43 | self.routeMap = routeMap
/Users/admin/builder/spi-builder-workspace/Sources/OwlNav/Setup/OwlContainer.swift:47:59: error: cannot find type 'UINavigationController' in scope
45 |
46 | /// Creates the underlying `UINavigationController`.
47 | public func makeUIViewController(context: Context) -> UINavigationController {
| `- error: cannot find type 'UINavigationController' in scope
48 | let navigation = OwlNavigationController()
49 |
/Users/admin/builder/spi-builder-workspace/Sources/OwlNav/Setup/OwlContainer.swift:47:47: error: cannot find type 'Context' in scope
45 |
46 | /// Creates the underlying `UINavigationController`.
47 | public func makeUIViewController(context: Context) -> UINavigationController {
| `- error: cannot find type 'Context' in scope
48 | let navigation = OwlNavigationController()
49 |
/Users/admin/builder/spi-builder-workspace/Sources/OwlNav/Setup/OwlContainer.swift:58:54: error: cannot find type 'UINavigationController' in scope
56 |
57 | /// Updates the `UINavigationController` to match the current state of the `OwlNav` stack.
58 | public func updateUIViewController(_ navigation: UINavigationController, context: Context) {
| `- error: cannot find type 'UINavigationController' in scope
59 | syncNavigation(navigation)
60 | }
/Users/admin/builder/spi-builder-workspace/Sources/OwlNav/Setup/OwlContainer.swift:58:87: error: cannot find type 'Context' in scope
56 |
57 | /// Updates the `UINavigationController` to match the current state of the `OwlNav` stack.
58 | public func updateUIViewController(_ navigation: UINavigationController, context: Context) {
| `- error: cannot find type 'Context' in scope
59 | syncNavigation(navigation)
60 | }
/Users/admin/builder/spi-builder-workspace/Sources/OwlNav/Setup/OwlContainer.swift:62:47: error: cannot find type 'UINavigationController' in scope
60 | }
61 |
62 | private func syncNavigation(_ navigation: UINavigationController) {
| `- error: cannot find type 'UINavigationController' in scope
63 | // Prevent duplicate sync calls when a transition is in flight.
64 | if let owlNav = navigation as? OwlNavigationController, owlNav.isSyncScheduled {
/Users/admin/builder/spi-builder-workspace/Sources/OwlNav/Setup/OwlContainer.swift:30:57: error: cannot find type 'UIViewControllerRepresentable' in scope
28 | ///
29 | /// `OwlContainer` manages a `UINavigationController` and synchronizes its state with an `OwlNav` instance.
30 | public struct OwlContainer<T: Equatable, Screen: View>: UIViewControllerRepresentable {
| `- error: cannot find type 'UIViewControllerRepresentable' in scope
31 | /// The navigation manager that holds the route stack.
32 | @ObservedObject public var owl: InOwl<T>
/Users/admin/builder/spi-builder-workspace/Sources/OwlNav/Setup/OwlContainer.swift:30:50: error: 'View' is only available in macOS 10.15 or newer
28 | ///
29 | /// `OwlContainer` manages a `UINavigationController` and synchronizes its state with an `OwlNav` instance.
30 | public struct OwlContainer<T: Equatable, Screen: View>: UIViewControllerRepresentable {
| | `- error: 'View' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing generic struct
31 | /// The navigation manager that holds the route stack.
32 | @ObservedObject public var owl: InOwl<T>
[10/10] Compiling OwlNav InOwl.swift
/Users/admin/builder/spi-builder-workspace/Sources/OwlNav/Setup/InOwl.swift:15:6: error: 'Published' is only available in macOS 10.15 or newer
11 | ///
12 | /// `OwlNav` is a `@MainActor` observed object that tracks an array of routes and provides methods to manipulate the stack.
13 | @MainActor public class InOwl<T: Equatable>: ObservableObject {
| `- note: add @available attribute to enclosing generic class
14 | /// The current navigation stack.
15 | @Published public private(set) var routes: [T] = []
| `- error: 'Published' is only available in macOS 10.15 or newer
16 |
17 | /// Animation flag for the next pop operation.
<unknown>:0: error: cannot convert value of type 'KeyPath<InOwl<T>, [T]>' to expected argument type 'ReferenceWritableKeyPath<InOwl<T>, [T]>'
/Users/admin/builder/spi-builder-workspace/Sources/OwlNav/Setup/InOwl.swift:13:46: error: 'ObservableObject' is only available in macOS 10.15 or newer
11 | ///
12 | /// `OwlNav` is a `@MainActor` observed object that tracks an array of routes and provides methods to manipulate the stack.
13 | @MainActor public class InOwl<T: Equatable>: ObservableObject {
| | `- error: 'ObservableObject' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing generic class
14 | /// The current navigation stack.
15 | @Published public private(set) var routes: [T] = []
/Users/admin/builder/spi-builder-workspace/Sources/OwlNav/Setup/InOwl.swift:23:9: error: setter for 'routes' is only available in macOS 10.15 or newer
11 | ///
12 | /// `OwlNav` is a `@MainActor` observed object that tracks an array of routes and provides methods to manipulate the stack.
13 | @MainActor public class InOwl<T: Equatable>: ObservableObject {
| `- note: add @available attribute to enclosing generic class
14 | /// The current navigation stack.
15 | @Published public private(set) var routes: [T] = []
:
20 | /// Initializes a new `OwlNav` with an initial route.
21 | /// - Parameter initial: The starting route of the navigation stack.
22 | public init(initial: T) {
| `- note: add @available attribute to enclosing initializer
23 | routes = [initial]
| |- error: setter for 'routes' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
24 | }
25 |
/Users/admin/builder/spi-builder-workspace/Sources/OwlNav/Setup/InOwl.swift:29:9: error: cannot pass as inout because setter for 'routes' is only available in macOS 10.15 or newer
11 | ///
12 | /// `OwlNav` is a `@MainActor` observed object that tracks an array of routes and provides methods to manipulate the stack.
13 | @MainActor public class InOwl<T: Equatable>: ObservableObject {
| `- note: add @available attribute to enclosing generic class
14 | /// The current navigation stack.
15 | @Published public private(set) var routes: [T] = []
:
26 | /// Pushes a new route onto the stack.
27 | /// - Parameter route: The new route to push.
28 | public func push(_ route: T) {
| `- note: add @available attribute to enclosing instance method
29 | routes.append(route)
| |- error: cannot pass as inout because setter for 'routes' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
30 | }
31 |
/Users/admin/builder/spi-builder-workspace/Sources/OwlNav/Setup/InOwl.swift:37:9: error: cannot pass as inout because setter for 'routes' is only available in macOS 10.15 or newer
11 | ///
12 | /// `OwlNav` is a `@MainActor` observed object that tracks an array of routes and provides methods to manipulate the stack.
13 | @MainActor public class InOwl<T: Equatable>: ObservableObject {
| `- note: add @available attribute to enclosing generic class
14 | /// The current navigation stack.
15 | @Published public private(set) var routes: [T] = []
:
32 | /// Pops the top route from the stack.
33 | /// - Parameter animated: Whether the pop should be animated.
34 | public func pop(animated: Bool = true) {
| `- note: add @available attribute to enclosing instance method
35 | guard routes.count > 1 else { return }
36 | pendingPopAnimated = animated
37 | routes.removeLast()
| |- error: cannot pass as inout because setter for 'routes' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
38 | }
39 |
/Users/admin/builder/spi-builder-workspace/Sources/OwlNav/Setup/InOwl.swift:44:13: error: setter for 'routes' is only available in macOS 10.15 or newer
11 | ///
12 | /// `OwlNav` is a `@MainActor` observed object that tracks an array of routes and provides methods to manipulate the stack.
13 | @MainActor public class InOwl<T: Equatable>: ObservableObject {
| `- note: add @available attribute to enclosing generic class
14 | /// The current navigation stack.
15 | @Published public private(set) var routes: [T] = []
:
40 | /// Replaces the current top route with a new one.
41 | /// - Parameter route: The route to replace the current top with.
42 | public func replace(_ route: T) {
| `- note: add @available attribute to enclosing instance method
43 | guard routes.count > 0 else {
44 | routes = [route]
| |- error: setter for 'routes' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
45 | return
46 | }
/Users/admin/builder/spi-builder-workspace/Sources/OwlNav/Setup/InOwl.swift:48:9: error: cannot pass as inout because setter for 'routes' is only available in macOS 10.15 or newer
11 | ///
12 | /// `OwlNav` is a `@MainActor` observed object that tracks an array of routes and provides methods to manipulate the stack.
13 | @MainActor public class InOwl<T: Equatable>: ObservableObject {
| `- note: add @available attribute to enclosing generic class
14 | /// The current navigation stack.
15 | @Published public private(set) var routes: [T] = []
:
40 | /// Replaces the current top route with a new one.
41 | /// - Parameter route: The route to replace the current top with.
42 | public func replace(_ route: T) {
| `- note: add @available attribute to enclosing instance method
43 | guard routes.count > 0 else {
44 | routes = [route]
:
46 | }
47 |
48 | routes[routes.count - 1] = route
| |- error: cannot pass as inout because setter for 'routes' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
49 | }
50 |
/Users/admin/builder/spi-builder-workspace/Sources/OwlNav/Setup/InOwl.swift:68:9: error: cannot pass as inout because setter for 'routes' is only available in macOS 10.15 or newer
11 | ///
12 | /// `OwlNav` is a `@MainActor` observed object that tracks an array of routes and provides methods to manipulate the stack.
13 | @MainActor public class InOwl<T: Equatable>: ObservableObject {
| `- note: add @available attribute to enclosing generic class
14 | /// The current navigation stack.
15 | @Published public private(set) var routes: [T] = []
:
54 | /// - inclusive: If `true`, the target route itself will also be popped unless it is the root.
55 | /// - animated: Whether the pop should be animated.
56 | public func popTo(_ route: T, inclusive: Bool = false, animated: Bool = true) {
| `- note: add @available attribute to enclosing instance method
57 | guard !routes.isEmpty else { return }
58 |
:
66 |
67 | pendingPopAnimated = animated
68 | routes.removeLast(numToPop)
| |- error: cannot pass as inout because setter for 'routes' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
69 | }
70 |
/Users/admin/builder/spi-builder-workspace/Sources/OwlNav/Setup/InOwl.swift:75:9: error: setter for 'routes' is only available in macOS 10.15 or newer
11 | ///
12 | /// `OwlNav` is a `@MainActor` observed object that tracks an array of routes and provides methods to manipulate the stack.
13 | @MainActor public class InOwl<T: Equatable>: ObservableObject {
| `- note: add @available attribute to enclosing generic class
14 | /// The current navigation stack.
15 | @Published public private(set) var routes: [T] = []
:
71 | /// Resets the stack to a single route.
72 | /// - Parameter route: The new root route.
73 | public func reset(_ route: T) {
| `- note: add @available attribute to enclosing instance method
74 | pendingPopAnimated = false
75 | routes = [route]
| |- error: setter for 'routes' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
76 | }
77 |
/Users/admin/builder/spi-builder-workspace/Sources/OwlNav/Setup/InOwl.swift:81:9: error: cannot pass as inout because setter for 'routes' is only available in macOS 10.15 or newer
11 | ///
12 | /// `OwlNav` is a `@MainActor` observed object that tracks an array of routes and provides methods to manipulate the stack.
13 | @MainActor public class InOwl<T: Equatable>: ObservableObject {
| `- note: add @available attribute to enclosing generic class
14 | /// The current navigation stack.
15 | @Published public private(set) var routes: [T] = []
:
77 |
78 | /// Internal method to handle system-initiated pop events (e.g., swipe back).
79 | func systemPop() {
| `- note: add @available attribute to enclosing instance method
80 | guard routes.count > 1 else { return }
81 | routes.removeLast()
| |- error: cannot pass as inout because setter for 'routes' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
82 | }
83 |
Running build ...
env DEVELOPER_DIR=/Applications/Xcode-16.3.0.app xcrun swift build --arch arm64
[0/1] Planning build
Building for debugging...
[0/1] Write swift-version-2F0A5646E1D333AE.txt
[2/9] Compiling OwlNav OwlNav.swift
error: emit-module command failed with exit code 1 (use -v to see invocation)
[3/9] Compiling OwlNav OwlInject.swift
[4/9] Compiling OwlNav OwlNavigationController.swift
[5/9] Compiling OwlNav SwipeBack.swift
/Users/admin/builder/spi-builder-workspace/Sources/OwlNav/Modifier/SwipeBack.swift:13:6: error: 'Binding' is only available in macOS 10.15 or newer
9 |
10 | /// A `ViewModifier` that enables the swipe-back gesture and coordinates pop completion callbacks.
11 | public struct WithSwipeBackModifier: ViewModifier {
| `- note: add @available attribute to enclosing struct
12 | /// Whether the swipe-back gesture is enabled.
13 | @Binding var isEnabled: Bool
| `- error: 'Binding' is only available in macOS 10.15 or newer
14 |
15 | /// Callback triggered when a system swipe-back pop completes.
/Users/admin/builder/spi-builder-workspace/Sources/OwlNav/Modifier/SwipeBack.swift:18:48: error: 'View' is only available in macOS 10.15 or newer
9 |
10 | /// A `ViewModifier` that enables the swipe-back gesture and coordinates pop completion callbacks.
11 | public struct WithSwipeBackModifier: ViewModifier {
| `- note: add @available attribute to enclosing struct
12 | /// Whether the swipe-back gesture is enabled.
13 | @Binding var isEnabled: Bool
:
16 | var onPopCompleted: (() -> Void)?
17 |
18 | public func body(content: Content) -> some View {
| | `- error: 'View' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing instance method
19 | content
20 | .background(
/Users/admin/builder/spi-builder-workspace/Sources/OwlNav/Modifier/SwipeBack.swift:32:6: error: 'Binding' is only available in macOS 10.15 or newer
28 |
29 | /// A background utility controller that enables the native swipe-back gesture based on stack state.
30 | public struct SwipeBackController: UIViewControllerRepresentable {
| `- note: add @available attribute to enclosing struct
31 | /// Whether the swipe-back gesture is enabled.
32 | @Binding var isEnabled: Bool
| `- error: 'Binding' is only available in macOS 10.15 or newer
33 |
34 | /// Callback triggered when a system swipe-back pop completes.
/Users/admin/builder/spi-builder-workspace/Sources/OwlNav/Modifier/SwipeBack.swift:37:59: error: cannot find type 'UIViewController' in scope
35 | var onPopCompleted: (() -> Void)?
36 |
37 | public func makeUIViewController(context: Context) -> UIViewController {
| `- error: cannot find type 'UIViewController' in scope
38 | let controller = UIViewController()
39 | controller.view.isHidden = true
/Users/admin/builder/spi-builder-workspace/Sources/OwlNav/Modifier/SwipeBack.swift:37:47: error: cannot find type 'Context' in scope
35 | var onPopCompleted: (() -> Void)?
36 |
37 | public func makeUIViewController(context: Context) -> UIViewController {
| `- error: cannot find type 'Context' in scope
38 | let controller = UIViewController()
39 | controller.view.isHidden = true
/Users/admin/builder/spi-builder-workspace/Sources/OwlNav/Modifier/SwipeBack.swift:43:46: error: cannot find type 'UIViewController' in scope
41 | }
42 |
43 | public func updateUIViewController(_ vc: UIViewController, context: Context) {
| `- error: cannot find type 'UIViewController' in scope
44 | // Walk up to the nearest UIHostingController to set associated-object flags.
45 | guard let hostingVC = vc.parent else { return }
/Users/admin/builder/spi-builder-workspace/Sources/OwlNav/Modifier/SwipeBack.swift:43:73: error: cannot find type 'Context' in scope
41 | }
42 |
43 | public func updateUIViewController(_ vc: UIViewController, context: Context) {
| `- error: cannot find type 'Context' in scope
44 | // Walk up to the nearest UIHostingController to set associated-object flags.
45 | guard let hostingVC = vc.parent else { return }
/Users/admin/builder/spi-builder-workspace/Sources/OwlNav/Modifier/SwipeBack.swift:30:36: error: cannot find type 'UIViewControllerRepresentable' in scope
28 |
29 | /// A background utility controller that enables the native swipe-back gesture based on stack state.
30 | public struct SwipeBackController: UIViewControllerRepresentable {
| `- error: cannot find type 'UIViewControllerRepresentable' in scope
31 | /// Whether the swipe-back gesture is enabled.
32 | @Binding var isEnabled: Bool
/Users/admin/builder/spi-builder-workspace/Sources/OwlNav/Modifier/SwipeBack.swift:20:14: error: instance method 'background(_:ignoresSafeAreaEdges:)' requires that 'SwipeBackController' conform to 'ShapeStyle'
18 | public func body(content: Content) -> some View {
19 | content
20 | .background(
| `- error: instance method 'background(_:ignoresSafeAreaEdges:)' requires that 'SwipeBackController' conform to 'ShapeStyle'
21 | SwipeBackController(
22 | isEnabled: $isEnabled,
SwiftUICore.View.background:2:36: note: where 'S' = 'SwipeBackController'
1 | protocol View {
2 | @inlinable nonisolated public func background<S>(_ style: S, ignoresSafeAreaEdges edges: Edge.Set = .all) -> some View where S : ShapeStyle
| `- note: where 'S' = 'SwipeBackController'
3 | }
4 |
/Users/admin/builder/spi-builder-workspace/Sources/OwlNav/Modifier/SwipeBack.swift:38:26: error: cannot find 'UIViewController' in scope
36 |
37 | public func makeUIViewController(context: Context) -> UIViewController {
38 | let controller = UIViewController()
| `- error: cannot find 'UIViewController' in scope
39 | controller.view.isHidden = true
40 | return controller
[6/9] Compiling OwlNav InOwl.swift
/Users/admin/builder/spi-builder-workspace/Sources/OwlNav/Setup/InOwl.swift:15:6: error: 'Published' is only available in macOS 10.15 or newer
11 | ///
12 | /// `OwlNav` is a `@MainActor` observed object that tracks an array of routes and provides methods to manipulate the stack.
13 | @MainActor public class InOwl<T: Equatable>: ObservableObject {
| `- note: add @available attribute to enclosing generic class
14 | /// The current navigation stack.
15 | @Published public private(set) var routes: [T] = []
| `- error: 'Published' is only available in macOS 10.15 or newer
16 |
17 | /// Animation flag for the next pop operation.
<unknown>:0: error: cannot convert value of type 'KeyPath<InOwl<T>, [T]>' to expected argument type 'ReferenceWritableKeyPath<InOwl<T>, [T]>'
/Users/admin/builder/spi-builder-workspace/Sources/OwlNav/Setup/InOwl.swift:13:46: error: 'ObservableObject' is only available in macOS 10.15 or newer
11 | ///
12 | /// `OwlNav` is a `@MainActor` observed object that tracks an array of routes and provides methods to manipulate the stack.
13 | @MainActor public class InOwl<T: Equatable>: ObservableObject {
| | `- error: 'ObservableObject' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing generic class
14 | /// The current navigation stack.
15 | @Published public private(set) var routes: [T] = []
/Users/admin/builder/spi-builder-workspace/Sources/OwlNav/Setup/InOwl.swift:23:9: error: setter for 'routes' is only available in macOS 10.15 or newer
11 | ///
12 | /// `OwlNav` is a `@MainActor` observed object that tracks an array of routes and provides methods to manipulate the stack.
13 | @MainActor public class InOwl<T: Equatable>: ObservableObject {
| `- note: add @available attribute to enclosing generic class
14 | /// The current navigation stack.
15 | @Published public private(set) var routes: [T] = []
:
20 | /// Initializes a new `OwlNav` with an initial route.
21 | /// - Parameter initial: The starting route of the navigation stack.
22 | public init(initial: T) {
| `- note: add @available attribute to enclosing initializer
23 | routes = [initial]
| |- error: setter for 'routes' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
24 | }
25 |
/Users/admin/builder/spi-builder-workspace/Sources/OwlNav/Setup/InOwl.swift:29:9: error: cannot pass as inout because setter for 'routes' is only available in macOS 10.15 or newer
11 | ///
12 | /// `OwlNav` is a `@MainActor` observed object that tracks an array of routes and provides methods to manipulate the stack.
13 | @MainActor public class InOwl<T: Equatable>: ObservableObject {
| `- note: add @available attribute to enclosing generic class
14 | /// The current navigation stack.
15 | @Published public private(set) var routes: [T] = []
:
26 | /// Pushes a new route onto the stack.
27 | /// - Parameter route: The new route to push.
28 | public func push(_ route: T) {
| `- note: add @available attribute to enclosing instance method
29 | routes.append(route)
| |- error: cannot pass as inout because setter for 'routes' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
30 | }
31 |
/Users/admin/builder/spi-builder-workspace/Sources/OwlNav/Setup/InOwl.swift:37:9: error: cannot pass as inout because setter for 'routes' is only available in macOS 10.15 or newer
11 | ///
12 | /// `OwlNav` is a `@MainActor` observed object that tracks an array of routes and provides methods to manipulate the stack.
13 | @MainActor public class InOwl<T: Equatable>: ObservableObject {
| `- note: add @available attribute to enclosing generic class
14 | /// The current navigation stack.
15 | @Published public private(set) var routes: [T] = []
:
32 | /// Pops the top route from the stack.
33 | /// - Parameter animated: Whether the pop should be animated.
34 | public func pop(animated: Bool = true) {
| `- note: add @available attribute to enclosing instance method
35 | guard routes.count > 1 else { return }
36 | pendingPopAnimated = animated
37 | routes.removeLast()
| |- error: cannot pass as inout because setter for 'routes' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
38 | }
39 |
/Users/admin/builder/spi-builder-workspace/Sources/OwlNav/Setup/InOwl.swift:44:13: error: setter for 'routes' is only available in macOS 10.15 or newer
11 | ///
12 | /// `OwlNav` is a `@MainActor` observed object that tracks an array of routes and provides methods to manipulate the stack.
13 | @MainActor public class InOwl<T: Equatable>: ObservableObject {
| `- note: add @available attribute to enclosing generic class
14 | /// The current navigation stack.
15 | @Published public private(set) var routes: [T] = []
:
40 | /// Replaces the current top route with a new one.
41 | /// - Parameter route: The route to replace the current top with.
42 | public func replace(_ route: T) {
| `- note: add @available attribute to enclosing instance method
43 | guard routes.count > 0 else {
44 | routes = [route]
| |- error: setter for 'routes' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
45 | return
46 | }
/Users/admin/builder/spi-builder-workspace/Sources/OwlNav/Setup/InOwl.swift:48:9: error: cannot pass as inout because setter for 'routes' is only available in macOS 10.15 or newer
11 | ///
12 | /// `OwlNav` is a `@MainActor` observed object that tracks an array of routes and provides methods to manipulate the stack.
13 | @MainActor public class InOwl<T: Equatable>: ObservableObject {
| `- note: add @available attribute to enclosing generic class
14 | /// The current navigation stack.
15 | @Published public private(set) var routes: [T] = []
:
40 | /// Replaces the current top route with a new one.
41 | /// - Parameter route: The route to replace the current top with.
42 | public func replace(_ route: T) {
| `- note: add @available attribute to enclosing instance method
43 | guard routes.count > 0 else {
44 | routes = [route]
:
46 | }
47 |
48 | routes[routes.count - 1] = route
| |- error: cannot pass as inout because setter for 'routes' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
49 | }
50 |
/Users/admin/builder/spi-builder-workspace/Sources/OwlNav/Setup/InOwl.swift:68:9: error: cannot pass as inout because setter for 'routes' is only available in macOS 10.15 or newer
11 | ///
12 | /// `OwlNav` is a `@MainActor` observed object that tracks an array of routes and provides methods to manipulate the stack.
13 | @MainActor public class InOwl<T: Equatable>: ObservableObject {
| `- note: add @available attribute to enclosing generic class
14 | /// The current navigation stack.
15 | @Published public private(set) var routes: [T] = []
:
54 | /// - inclusive: If `true`, the target route itself will also be popped unless it is the root.
55 | /// - animated: Whether the pop should be animated.
56 | public func popTo(_ route: T, inclusive: Bool = false, animated: Bool = true) {
| `- note: add @available attribute to enclosing instance method
57 | guard !routes.isEmpty else { return }
58 |
:
66 |
67 | pendingPopAnimated = animated
68 | routes.removeLast(numToPop)
| |- error: cannot pass as inout because setter for 'routes' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
69 | }
70 |
/Users/admin/builder/spi-builder-workspace/Sources/OwlNav/Setup/InOwl.swift:75:9: error: setter for 'routes' is only available in macOS 10.15 or newer
11 | ///
12 | /// `OwlNav` is a `@MainActor` observed object that tracks an array of routes and provides methods to manipulate the stack.
13 | @MainActor public class InOwl<T: Equatable>: ObservableObject {
| `- note: add @available attribute to enclosing generic class
14 | /// The current navigation stack.
15 | @Published public private(set) var routes: [T] = []
:
71 | /// Resets the stack to a single route.
72 | /// - Parameter route: The new root route.
73 | public func reset(_ route: T) {
| `- note: add @available attribute to enclosing instance method
74 | pendingPopAnimated = false
75 | routes = [route]
| |- error: setter for 'routes' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
76 | }
77 |
/Users/admin/builder/spi-builder-workspace/Sources/OwlNav/Setup/InOwl.swift:81:9: error: cannot pass as inout because setter for 'routes' is only available in macOS 10.15 or newer
11 | ///
12 | /// `OwlNav` is a `@MainActor` observed object that tracks an array of routes and provides methods to manipulate the stack.
13 | @MainActor public class InOwl<T: Equatable>: ObservableObject {
| `- note: add @available attribute to enclosing generic class
14 | /// The current navigation stack.
15 | @Published public private(set) var routes: [T] = []
:
77 |
78 | /// Internal method to handle system-initiated pop events (e.g., swipe back).
79 | func systemPop() {
| `- note: add @available attribute to enclosing instance method
80 | guard routes.count > 1 else { return }
81 | routes.removeLast()
| |- error: cannot pass as inout because setter for 'routes' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
82 | }
83 |
[7/9] Compiling OwlNav Views+Extensions.swift
/Users/admin/builder/spi-builder-workspace/Sources/OwlNav/Extensions/Views+Extensions.swift:14:105: error: 'View' is only available in macOS 10.15 or newer
8 | import SwiftUI
9 |
10 | extension View {
| `- note: add @available attribute to enclosing extension
11 | /// Configures the navigation bar to be transparent if available.
12 | /// - Parameter removeBackground: If `true`, hides the toolbar background and sets it to clear on iOS 16+.
13 | /// - Returns: A view with a transparent or default navigation bar.
14 | @ViewBuilder public func transparentNavigationBarIfAvailable(removeBackground: Bool = true) -> some View {
| | `- error: 'View' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing instance method
15 | if #available(iOS 16.0, *) {
16 | if removeBackground {
/Users/admin/builder/spi-builder-workspace/Sources/OwlNav/Extensions/Views+Extensions.swift:14:6: error: 'ViewBuilder' is only available in macOS 10.15 or newer
8 | import SwiftUI
9 |
10 | extension View {
| `- note: add @available attribute to enclosing extension
11 | /// Configures the navigation bar to be transparent if available.
12 | /// - Parameter removeBackground: If `true`, hides the toolbar background and sets it to clear on iOS 16+.
13 | /// - Returns: A view with a transparent or default navigation bar.
14 | @ViewBuilder public func transparentNavigationBarIfAvailable(removeBackground: Bool = true) -> some View {
| | `- note: add @available attribute to enclosing instance method
| `- error: 'ViewBuilder' is only available in macOS 10.15 or newer
15 | if #available(iOS 16.0, *) {
16 | if removeBackground {
/Users/admin/builder/spi-builder-workspace/Sources/OwlNav/Extensions/Views+Extensions.swift:33:69: error: 'View' is only available in macOS 10.15 or newer
8 | import SwiftUI
9 |
10 | extension View {
| `- note: add @available attribute to enclosing extension
11 | /// Configures the navigation bar to be transparent if available.
12 | /// - Parameter removeBackground: If `true`, hides the toolbar background and sets it to clear on iOS 16+.
:
31 | /// Hides the navigation bar if available.
32 | /// - Returns: A view with a hidden navigation bar.
33 | @ViewBuilder public func hideNavigationBarIfAvailable() -> some View {
| | `- error: 'View' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing instance method
34 | if #available(iOS 16.0, *) {
35 | self
/Users/admin/builder/spi-builder-workspace/Sources/OwlNav/Extensions/Views+Extensions.swift:33:6: error: 'ViewBuilder' is only available in macOS 10.15 or newer
8 | import SwiftUI
9 |
10 | extension View {
| `- note: add @available attribute to enclosing extension
11 | /// Configures the navigation bar to be transparent if available.
12 | /// - Parameter removeBackground: If `true`, hides the toolbar background and sets it to clear on iOS 16+.
:
31 | /// Hides the navigation bar if available.
32 | /// - Returns: A view with a hidden navigation bar.
33 | @ViewBuilder public func hideNavigationBarIfAvailable() -> some View {
| | `- note: add @available attribute to enclosing instance method
| `- error: 'ViewBuilder' is only available in macOS 10.15 or newer
34 | if #available(iOS 16.0, *) {
35 | self
/Users/admin/builder/spi-builder-workspace/Sources/OwlNav/Extensions/Views+Extensions.swift:48:42: error: 'Binding' is only available in macOS 10.15 or newer
8 | import SwiftUI
9 |
10 | extension View {
| `- note: add @available attribute to enclosing extension
11 | /// Configures the navigation bar to be transparent if available.
12 | /// - Parameter removeBackground: If `true`, hides the toolbar background and sets it to clear on iOS 16+.
:
46 | /// - onPopCompleted: An optional callback triggered when a system swipe-back pop completes.
47 | /// - Returns: A view with swipe-back functionality enabled.
48 | public func withSwipeBack(isEnabled: Binding<Bool> = .constant(true), onPopCompleted: (() -> Void)? = nil) -> some View {
| | `- error: 'Binding' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing instance method
49 | modifier(WithSwipeBackModifier(isEnabled: isEnabled, onPopCompleted: onPopCompleted))
50 | }
/Users/admin/builder/spi-builder-workspace/Sources/OwlNav/Extensions/Views+Extensions.swift:48:120: error: 'View' is only available in macOS 10.15 or newer
8 | import SwiftUI
9 |
10 | extension View {
| `- note: add @available attribute to enclosing extension
11 | /// Configures the navigation bar to be transparent if available.
12 | /// - Parameter removeBackground: If `true`, hides the toolbar background and sets it to clear on iOS 16+.
:
46 | /// - onPopCompleted: An optional callback triggered when a system swipe-back pop completes.
47 | /// - Returns: A view with swipe-back functionality enabled.
48 | public func withSwipeBack(isEnabled: Binding<Bool> = .constant(true), onPopCompleted: (() -> Void)? = nil) -> some View {
| | `- error: 'View' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing instance method
49 | modifier(WithSwipeBackModifier(isEnabled: isEnabled, onPopCompleted: onPopCompleted))
50 | }
/Users/admin/builder/spi-builder-workspace/Sources/OwlNav/Extensions/Views+Extensions.swift:58:43: error: 'Binding' is only available in macOS 10.15 or newer
8 | import SwiftUI
9 |
10 | extension View {
| `- note: add @available attribute to enclosing extension
11 | /// Configures the navigation bar to be transparent if available.
12 | /// - Parameter removeBackground: If `true`, hides the toolbar background and sets it to clear on iOS 16+.
:
56 | /// - Returns: A view with swipe-back functionality enabled.
57 | @available(*, deprecated, message: "Use withSwipeBack(isEnabled:onPopCompleted:) instead.")
58 | public func withSwipeBack(stackCount: Binding<Int>, onPopCompleted: (() -> Void)? = nil) -> some View {
| `- error: 'Binding' is only available in macOS 10.15 or newer
59 | modifier(WithSwipeBackModifier(isEnabled: .constant(stackCount.wrappedValue > 1), onPopCompleted: onPopCompleted))
60 | }
/Users/admin/builder/spi-builder-workspace/Sources/OwlNav/Extensions/Views+Extensions.swift:58:102: error: 'View' is only available in macOS 10.15 or newer
8 | import SwiftUI
9 |
10 | extension View {
| `- note: add @available attribute to enclosing extension
11 | /// Configures the navigation bar to be transparent if available.
12 | /// - Parameter removeBackground: If `true`, hides the toolbar background and sets it to clear on iOS 16+.
:
56 | /// - Returns: A view with swipe-back functionality enabled.
57 | @available(*, deprecated, message: "Use withSwipeBack(isEnabled:onPopCompleted:) instead.")
58 | public func withSwipeBack(stackCount: Binding<Int>, onPopCompleted: (() -> Void)? = nil) -> some View {
| `- error: 'View' is only available in macOS 10.15 or newer
59 | modifier(WithSwipeBackModifier(isEnabled: .constant(stackCount.wrappedValue > 1), onPopCompleted: onPopCompleted))
60 | }
/Users/admin/builder/spi-builder-workspace/Sources/OwlNav/Extensions/Views+Extensions.swift:10:11: error: 'View' is only available in macOS 10.15 or newer
8 | import SwiftUI
9 |
10 | extension View {
| | `- error: 'View' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing extension
11 | /// Configures the navigation bar to be transparent if available.
12 | /// - Parameter removeBackground: If `true`, hides the toolbar background and sets it to clear on iOS 16+.
/Users/admin/builder/spi-builder-workspace/Sources/OwlNav/Extensions/Views+Extensions.swift:15:12: warning: result builder 'ViewBuilder' does not implement 'buildLimitedAvailability'; this code may crash on earlier versions of the OS
13 | /// - Returns: A view with a transparent or default navigation bar.
14 | @ViewBuilder public func transparentNavigationBarIfAvailable(removeBackground: Bool = true) -> some View {
15 | if #available(iOS 16.0, *) {
| `- warning: result builder 'ViewBuilder' does not implement 'buildLimitedAvailability'; this code may crash on earlier versions of the OS
16 | if removeBackground {
17 | self
/Users/admin/builder/spi-builder-workspace/Sources/OwlNav/Extensions/Views+Extensions.swift:18:22: error: 'toolbar(_:for:)' is only available in macOS 13.0 or newer
8 | import SwiftUI
9 |
10 | extension View {
| `- note: add @available attribute to enclosing extension
11 | /// Configures the navigation bar to be transparent if available.
12 | /// - Parameter removeBackground: If `true`, hides the toolbar background and sets it to clear on iOS 16+.
13 | /// - Returns: A view with a transparent or default navigation bar.
14 | @ViewBuilder public func transparentNavigationBarIfAvailable(removeBackground: Bool = true) -> some View {
| `- note: add @available attribute to enclosing instance method
15 | if #available(iOS 16.0, *) {
16 | if removeBackground {
17 | self
18 | .toolbar(.visible, for: .navigationBar)
| |- error: 'toolbar(_:for:)' is only available in macOS 13.0 or newer
| `- note: add 'if #available' version check
19 | .toolbarBackground(.hidden, for: .navigationBar)
20 | .toolbarBackground(.clear, for: .navigationBar)
/Users/admin/builder/spi-builder-workspace/Sources/OwlNav/Extensions/Views+Extensions.swift:18:46: error: 'navigationBar' is unavailable in macOS
16 | if removeBackground {
17 | self
18 | .toolbar(.visible, for: .navigationBar)
| `- error: 'navigationBar' is unavailable in macOS
19 | .toolbarBackground(.hidden, for: .navigationBar)
20 | .toolbarBackground(.clear, for: .navigationBar)
SwiftUI.ToolbarPlacement.navigationBar:3:21: note: 'navigationBar' has been explicitly marked unavailable here
1 | struct ToolbarPlacement {
2 | @available(macOS, unavailable)
3 | public static var navigationBar: ToolbarPlacement { get }}
| `- note: 'navigationBar' has been explicitly marked unavailable here
4 |
/Users/admin/builder/spi-builder-workspace/Sources/OwlNav/Extensions/Views+Extensions.swift:19:22: error: 'toolbarBackground(_:for:)' is only available in macOS 13.0 or newer
8 | import SwiftUI
9 |
10 | extension View {
| `- note: add @available attribute to enclosing extension
11 | /// Configures the navigation bar to be transparent if available.
12 | /// - Parameter removeBackground: If `true`, hides the toolbar background and sets it to clear on iOS 16+.
13 | /// - Returns: A view with a transparent or default navigation bar.
14 | @ViewBuilder public func transparentNavigationBarIfAvailable(removeBackground: Bool = true) -> some View {
| `- note: add @available attribute to enclosing instance method
15 | if #available(iOS 16.0, *) {
16 | if removeBackground {
17 | self
18 | .toolbar(.visible, for: .navigationBar)
19 | .toolbarBackground(.hidden, for: .navigationBar)
| |- error: 'toolbarBackground(_:for:)' is only available in macOS 13.0 or newer
| `- note: add 'if #available' version check
20 | .toolbarBackground(.clear, for: .navigationBar)
21 | } else {
/Users/admin/builder/spi-builder-workspace/Sources/OwlNav/Extensions/Views+Extensions.swift:19:55: error: 'navigationBar' is unavailable in macOS
17 | self
18 | .toolbar(.visible, for: .navigationBar)
19 | .toolbarBackground(.hidden, for: .navigationBar)
| `- error: 'navigationBar' is unavailable in macOS
20 | .toolbarBackground(.clear, for: .navigationBar)
21 | } else {
SwiftUI.ToolbarPlacement.navigationBar:3:21: note: 'navigationBar' has been explicitly marked unavailable here
1 | struct ToolbarPlacement {
2 | @available(macOS, unavailable)
3 | public static var navigationBar: ToolbarPlacement { get }}
| `- note: 'navigationBar' has been explicitly marked unavailable here
4 |
/Users/admin/builder/spi-builder-workspace/Sources/OwlNav/Extensions/Views+Extensions.swift:20:22: error: 'toolbarBackground(_:for:)' is only available in macOS 13.0 or newer
8 | import SwiftUI
9 |
10 | extension View {
| `- note: add @available attribute to enclosing extension
11 | /// Configures the navigation bar to be transparent if available.
12 | /// - Parameter removeBackground: If `true`, hides the toolbar background and sets it to clear on iOS 16+.
13 | /// - Returns: A view with a transparent or default navigation bar.
14 | @ViewBuilder public func transparentNavigationBarIfAvailable(removeBackground: Bool = true) -> some View {
| `- note: add @available attribute to enclosing instance method
15 | if #available(iOS 16.0, *) {
16 | if removeBackground {
:
18 | .toolbar(.visible, for: .navigationBar)
19 | .toolbarBackground(.hidden, for: .navigationBar)
20 | .toolbarBackground(.clear, for: .navigationBar)
| |- error: 'toolbarBackground(_:for:)' is only available in macOS 13.0 or newer
| `- note: add 'if #available' version check
21 | } else {
22 | self
/Users/admin/builder/spi-builder-workspace/Sources/OwlNav/Extensions/Views+Extensions.swift:20:41: error: 'clear' is only available in macOS 10.15 or newer
8 | import SwiftUI
9 |
10 | extension View {
| `- note: add @available attribute to enclosing extension
11 | /// Configures the navigation bar to be transparent if available.
12 | /// - Parameter removeBackground: If `true`, hides the toolbar background and sets it to clear on iOS 16+.
13 | /// - Returns: A view with a transparent or default navigation bar.
14 | @ViewBuilder public func transparentNavigationBarIfAvailable(removeBackground: Bool = true) -> some View {
| `- note: add @available attribute to enclosing instance method
15 | if #available(iOS 16.0, *) {
16 | if removeBackground {
:
18 | .toolbar(.visible, for: .navigationBar)
19 | .toolbarBackground(.hidden, for: .navigationBar)
20 | .toolbarBackground(.clear, for: .navigationBar)
| |- error: 'clear' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
21 | } else {
22 | self
/Users/admin/builder/spi-builder-workspace/Sources/OwlNav/Extensions/Views+Extensions.swift:20:54: error: 'navigationBar' is unavailable in macOS
18 | .toolbar(.visible, for: .navigationBar)
19 | .toolbarBackground(.hidden, for: .navigationBar)
20 | .toolbarBackground(.clear, for: .navigationBar)
| `- error: 'navigationBar' is unavailable in macOS
21 | } else {
22 | self
SwiftUI.ToolbarPlacement.navigationBar:3:21: note: 'navigationBar' has been explicitly marked unavailable here
1 | struct ToolbarPlacement {
2 | @available(macOS, unavailable)
3 | public static var navigationBar: ToolbarPlacement { get }}
| `- note: 'navigationBar' has been explicitly marked unavailable here
4 |
/Users/admin/builder/spi-builder-workspace/Sources/OwlNav/Extensions/Views+Extensions.swift:16:33: error: 'buildEither(first:)' is only available in macOS 10.15 or newer
8 | import SwiftUI
9 |
10 | extension View {
| `- note: add @available attribute to enclosing extension
11 | /// Configures the navigation bar to be transparent if available.
12 | /// - Parameter removeBackground: If `true`, hides the toolbar background and sets it to clear on iOS 16+.
13 | /// - Returns: A view with a transparent or default navigation bar.
14 | @ViewBuilder public func transparentNavigationBarIfAvailable(removeBackground: Bool = true) -> some View {
| `- note: add @available attribute to enclosing instance method
15 | if #available(iOS 16.0, *) {
16 | if removeBackground {
| |- error: 'buildEither(first:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
17 | self
18 | .toolbar(.visible, for: .navigationBar)
/Users/admin/builder/spi-builder-workspace/Sources/OwlNav/Extensions/Views+Extensions.swift:23:22: error: 'toolbar(_:for:)' is only available in macOS 13.0 or newer
8 | import SwiftUI
9 |
10 | extension View {
| `- note: add @available attribute to enclosing extension
11 | /// Configures the navigation bar to be transparent if available.
12 | /// - Parameter removeBackground: If `true`, hides the toolbar background and sets it to clear on iOS 16+.
13 | /// - Returns: A view with a transparent or default navigation bar.
14 | @ViewBuilder public func transparentNavigationBarIfAvailable(removeBackground: Bool = true) -> some View {
| `- note: add @available attribute to enclosing instance method
15 | if #available(iOS 16.0, *) {
16 | if removeBackground {
:
21 | } else {
22 | self
23 | .toolbar(.visible, for: .navigationBar)
| |- error: 'toolbar(_:for:)' is only available in macOS 13.0 or newer
| `- note: add 'if #available' version check
24 | }
25 | } else {
/Users/admin/builder/spi-builder-workspace/Sources/OwlNav/Extensions/Views+Extensions.swift:23:46: error: 'navigationBar' is unavailable in macOS
21 | } else {
22 | self
23 | .toolbar(.visible, for: .navigationBar)
| `- error: 'navigationBar' is unavailable in macOS
24 | }
25 | } else {
SwiftUI.ToolbarPlacement.navigationBar:3:21: note: 'navigationBar' has been explicitly marked unavailable here
1 | struct ToolbarPlacement {
2 | @available(macOS, unavailable)
3 | public static var navigationBar: ToolbarPlacement { get }}
| `- note: 'navigationBar' has been explicitly marked unavailable here
4 |
/Users/admin/builder/spi-builder-workspace/Sources/OwlNav/Extensions/Views+Extensions.swift:21:20: error: 'buildEither(second:)' is only available in macOS 10.15 or newer
8 | import SwiftUI
9 |
10 | extension View {
| `- note: add @available attribute to enclosing extension
11 | /// Configures the navigation bar to be transparent if available.
12 | /// - Parameter removeBackground: If `true`, hides the toolbar background and sets it to clear on iOS 16+.
13 | /// - Returns: A view with a transparent or default navigation bar.
14 | @ViewBuilder public func transparentNavigationBarIfAvailable(removeBackground: Bool = true) -> some View {
| `- note: add @available attribute to enclosing instance method
15 | if #available(iOS 16.0, *) {
16 | if removeBackground {
:
19 | .toolbarBackground(.hidden, for: .navigationBar)
20 | .toolbarBackground(.clear, for: .navigationBar)
21 | } else {
| |- error: 'buildEither(second:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
22 | self
23 | .toolbar(.visible, for: .navigationBar)
/Users/admin/builder/spi-builder-workspace/Sources/OwlNav/Extensions/Views+Extensions.swift:15:36: error: 'buildLimitedAvailability' is only available in macOS 11.0 or newer
8 | import SwiftUI
9 |
10 | extension View {
| `- note: add @available attribute to enclosing extension
11 | /// Configures the navigation bar to be transparent if available.
12 | /// - Parameter removeBackground: If `true`, hides the toolbar background and sets it to clear on iOS 16+.
13 | /// - Returns: A view with a transparent or default navigation bar.
14 | @ViewBuilder public func transparentNavigationBarIfAvailable(removeBackground: Bool = true) -> some View {
| `- note: add @available attribute to enclosing instance method
15 | if #available(iOS 16.0, *) {
| |- error: 'buildLimitedAvailability' is only available in macOS 11.0 or newer
| `- note: add 'if #available' version check
16 | if removeBackground {
17 | self
/Users/admin/builder/spi-builder-workspace/Sources/OwlNav/Extensions/Views+Extensions.swift:15:36: warning: conformance of '_ConditionalContent<TrueContent, FalseContent>' to 'View' is only available in macOS 10.15 or newer; this is an error in the Swift 6 language mode
8 | import SwiftUI
9 |
10 | extension View {
| `- note: add @available attribute to enclosing extension
11 | /// Configures the navigation bar to be transparent if available.
12 | /// - Parameter removeBackground: If `true`, hides the toolbar background and sets it to clear on iOS 16+.
13 | /// - Returns: A view with a transparent or default navigation bar.
14 | @ViewBuilder public func transparentNavigationBarIfAvailable(removeBackground: Bool = true) -> some View {
| `- note: add @available attribute to enclosing instance method
15 | if #available(iOS 16.0, *) {
| |- warning: conformance of '_ConditionalContent<TrueContent, FalseContent>' 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
16 | if removeBackground {
17 | self
/Users/admin/builder/spi-builder-workspace/Sources/OwlNav/Extensions/Views+Extensions.swift:15:36: error: 'buildEither(first:)' is only available in macOS 10.15 or newer
8 | import SwiftUI
9 |
10 | extension View {
| `- note: add @available attribute to enclosing extension
11 | /// Configures the navigation bar to be transparent if available.
12 | /// - Parameter removeBackground: If `true`, hides the toolbar background and sets it to clear on iOS 16+.
13 | /// - Returns: A view with a transparent or default navigation bar.
14 | @ViewBuilder public func transparentNavigationBarIfAvailable(removeBackground: Bool = true) -> some View {
| `- note: add @available attribute to enclosing instance method
15 | if #available(iOS 16.0, *) {
| |- error: 'buildEither(first:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
16 | if removeBackground {
17 | self
/Users/admin/builder/spi-builder-workspace/Sources/OwlNav/Extensions/Views+Extensions.swift:27:18: error: 'navigationBarHidden' is unavailable in macOS
25 | } else {
26 | self
27 | .navigationBarHidden(false)
| `- error: 'navigationBarHidden' is unavailable in macOS
28 | }
29 | }
SwiftUI.View.navigationBarHidden:7:27: note: 'navigationBarHidden' has been explicitly marked unavailable here
5 | @available(watchOS, introduced: 6.0, deprecated: 100000.0, message: "Use toolbar(.hidden)")
6 | @available(visionOS, introduced: 1.0, deprecated: 100000.0, message: "Use toolbar(.hidden)")
7 | nonisolated public func navigationBarHidden(_ hidden: Bool) -> some View
| `- note: 'navigationBarHidden' has been explicitly marked unavailable here
8 | }
9 |
/Users/admin/builder/spi-builder-workspace/Sources/OwlNav/Extensions/Views+Extensions.swift:25:16: error: 'buildEither(second:)' is only available in macOS 10.15 or newer
8 | import SwiftUI
9 |
10 | extension View {
| `- note: add @available attribute to enclosing extension
11 | /// Configures the navigation bar to be transparent if available.
12 | /// - Parameter removeBackground: If `true`, hides the toolbar background and sets it to clear on iOS 16+.
13 | /// - Returns: A view with a transparent or default navigation bar.
14 | @ViewBuilder public func transparentNavigationBarIfAvailable(removeBackground: Bool = true) -> some View {
| `- note: add @available attribute to enclosing instance method
15 | if #available(iOS 16.0, *) {
16 | if removeBackground {
:
23 | .toolbar(.visible, for: .navigationBar)
24 | }
25 | } else {
| |- error: 'buildEither(second:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
26 | self
27 | .navigationBarHidden(false)
/Users/admin/builder/spi-builder-workspace/Sources/OwlNav/Extensions/Views+Extensions.swift:14:110: warning: conformance of '_ConditionalContent<TrueContent, FalseContent>' to 'View' is only available in macOS 10.15 or newer; this is an error in the Swift 6 language mode
8 | import SwiftUI
9 |
10 | extension View {
| `- note: add @available attribute to enclosing extension
11 | /// Configures the navigation bar to be transparent if available.
12 | /// - Parameter removeBackground: If `true`, hides the toolbar background and sets it to clear on iOS 16+.
13 | /// - Returns: A view with a transparent or default navigation bar.
14 | @ViewBuilder public func transparentNavigationBarIfAvailable(removeBackground: Bool = true) -> some View {
| | |- warning: conformance of '_ConditionalContent<TrueContent, FalseContent>' 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 | if #available(iOS 16.0, *) {
16 | if removeBackground {
/Users/admin/builder/spi-builder-workspace/Sources/OwlNav/Extensions/Views+Extensions.swift:34:12: warning: result builder 'ViewBuilder' does not implement 'buildLimitedAvailability'; this code may crash on earlier versions of the OS
32 | /// - Returns: A view with a hidden navigation bar.
33 | @ViewBuilder public func hideNavigationBarIfAvailable() -> some View {
34 | if #available(iOS 16.0, *) {
| `- warning: result builder 'ViewBuilder' does not implement 'buildLimitedAvailability'; this code may crash on earlier versions of the OS
35 | self
36 | .toolbar(.hidden, for: .navigationBar)
/Users/admin/builder/spi-builder-workspace/Sources/OwlNav/Extensions/Views+Extensions.swift:36:18: error: 'toolbar(_:for:)' is only available in macOS 13.0 or newer
8 | import SwiftUI
9 |
10 | extension View {
| `- note: add @available attribute to enclosing extension
11 | /// Configures the navigation bar to be transparent if available.
12 | /// - Parameter removeBackground: If `true`, hides the toolbar background and sets it to clear on iOS 16+.
:
31 | /// Hides the navigation bar if available.
32 | /// - Returns: A view with a hidden navigation bar.
33 | @ViewBuilder public func hideNavigationBarIfAvailable() -> some View {
| `- note: add @available attribute to enclosing instance method
34 | if #available(iOS 16.0, *) {
35 | self
36 | .toolbar(.hidden, for: .navigationBar)
| |- error: 'toolbar(_:for:)' is only available in macOS 13.0 or newer
| `- note: add 'if #available' version check
37 | } else {
38 | self
/Users/admin/builder/spi-builder-workspace/Sources/OwlNav/Extensions/Views+Extensions.swift:36:41: error: 'navigationBar' is unavailable in macOS
34 | if #available(iOS 16.0, *) {
35 | self
36 | .toolbar(.hidden, for: .navigationBar)
| `- error: 'navigationBar' is unavailable in macOS
37 | } else {
38 | self
SwiftUI.ToolbarPlacement.navigationBar:3:21: note: 'navigationBar' has been explicitly marked unavailable here
1 | struct ToolbarPlacement {
2 | @available(macOS, unavailable)
3 | public static var navigationBar: ToolbarPlacement { get }}
| `- note: 'navigationBar' has been explicitly marked unavailable here
4 |
/Users/admin/builder/spi-builder-workspace/Sources/OwlNav/Extensions/Views+Extensions.swift:34:36: error: 'buildLimitedAvailability' is only available in macOS 11.0 or newer
8 | import SwiftUI
9 |
10 | extension View {
| `- note: add @available attribute to enclosing extension
11 | /// Configures the navigation bar to be transparent if available.
12 | /// - Parameter removeBackground: If `true`, hides the toolbar background and sets it to clear on iOS 16+.
:
31 | /// Hides the navigation bar if available.
32 | /// - Returns: A view with a hidden navigation bar.
33 | @ViewBuilder public func hideNavigationBarIfAvailable() -> some View {
| `- note: add @available attribute to enclosing instance method
34 | if #available(iOS 16.0, *) {
| |- error: 'buildLimitedAvailability' is only available in macOS 11.0 or newer
| `- note: add 'if #available' version check
35 | self
36 | .toolbar(.hidden, for: .navigationBar)
/Users/admin/builder/spi-builder-workspace/Sources/OwlNav/Extensions/Views+Extensions.swift:34:36: error: 'buildEither(first:)' is only available in macOS 10.15 or newer
8 | import SwiftUI
9 |
10 | extension View {
| `- note: add @available attribute to enclosing extension
11 | /// Configures the navigation bar to be transparent if available.
12 | /// - Parameter removeBackground: If `true`, hides the toolbar background and sets it to clear on iOS 16+.
:
31 | /// Hides the navigation bar if available.
32 | /// - Returns: A view with a hidden navigation bar.
33 | @ViewBuilder public func hideNavigationBarIfAvailable() -> some View {
| `- note: add @available attribute to enclosing instance method
34 | if #available(iOS 16.0, *) {
| |- error: 'buildEither(first:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
35 | self
36 | .toolbar(.hidden, for: .navigationBar)
/Users/admin/builder/spi-builder-workspace/Sources/OwlNav/Extensions/Views+Extensions.swift:39:18: error: 'navigationBarHidden' is unavailable in macOS
37 | } else {
38 | self
39 | .navigationBarHidden(true)
| `- error: 'navigationBarHidden' is unavailable in macOS
40 | }
41 | }
SwiftUI.View.navigationBarHidden:7:27: note: 'navigationBarHidden' has been explicitly marked unavailable here
5 | @available(watchOS, introduced: 6.0, deprecated: 100000.0, message: "Use toolbar(.hidden)")
6 | @available(visionOS, introduced: 1.0, deprecated: 100000.0, message: "Use toolbar(.hidden)")
7 | nonisolated public func navigationBarHidden(_ hidden: Bool) -> some View
| `- note: 'navigationBarHidden' has been explicitly marked unavailable here
8 | }
9 |
/Users/admin/builder/spi-builder-workspace/Sources/OwlNav/Extensions/Views+Extensions.swift:37:16: error: 'buildEither(second:)' is only available in macOS 10.15 or newer
8 | import SwiftUI
9 |
10 | extension View {
| `- note: add @available attribute to enclosing extension
11 | /// Configures the navigation bar to be transparent if available.
12 | /// - Parameter removeBackground: If `true`, hides the toolbar background and sets it to clear on iOS 16+.
:
31 | /// Hides the navigation bar if available.
32 | /// - Returns: A view with a hidden navigation bar.
33 | @ViewBuilder public func hideNavigationBarIfAvailable() -> some View {
| `- note: add @available attribute to enclosing instance method
34 | if #available(iOS 16.0, *) {
35 | self
36 | .toolbar(.hidden, for: .navigationBar)
37 | } else {
| |- error: 'buildEither(second:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
38 | self
39 | .navigationBarHidden(true)
/Users/admin/builder/spi-builder-workspace/Sources/OwlNav/Extensions/Views+Extensions.swift:33:74: warning: conformance of '_ConditionalContent<TrueContent, FalseContent>' to 'View' is only available in macOS 10.15 or newer; this is an error in the Swift 6 language mode
8 | import SwiftUI
9 |
10 | extension View {
| `- note: add @available attribute to enclosing extension
11 | /// Configures the navigation bar to be transparent if available.
12 | /// - Parameter removeBackground: If `true`, hides the toolbar background and sets it to clear on iOS 16+.
:
31 | /// Hides the navigation bar if available.
32 | /// - Returns: A view with a hidden navigation bar.
33 | @ViewBuilder public func hideNavigationBarIfAvailable() -> some View {
| | |- warning: conformance of '_ConditionalContent<TrueContent, FalseContent>' 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
34 | if #available(iOS 16.0, *) {
35 | self
/Users/admin/builder/spi-builder-workspace/Sources/OwlNav/Extensions/Views+Extensions.swift:49:9: 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
8 | import SwiftUI
9 |
10 | extension View {
| `- note: add @available attribute to enclosing extension
11 | /// Configures the navigation bar to be transparent if available.
12 | /// - Parameter removeBackground: If `true`, hides the toolbar background and sets it to clear on iOS 16+.
:
46 | /// - onPopCompleted: An optional callback triggered when a system swipe-back pop completes.
47 | /// - Returns: A view with swipe-back functionality enabled.
48 | public func withSwipeBack(isEnabled: Binding<Bool> = .constant(true), onPopCompleted: (() -> Void)? = nil) -> some View {
| `- note: add @available attribute to enclosing instance method
49 | modifier(WithSwipeBackModifier(isEnabled: isEnabled, onPopCompleted: onPopCompleted))
| |- 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
50 | }
51 |
/Users/admin/builder/spi-builder-workspace/Sources/OwlNav/Extensions/Views+Extensions.swift:49:9: error: 'modifier' is only available in macOS 10.15 or newer
8 | import SwiftUI
9 |
10 | extension View {
| `- note: add @available attribute to enclosing extension
11 | /// Configures the navigation bar to be transparent if available.
12 | /// - Parameter removeBackground: If `true`, hides the toolbar background and sets it to clear on iOS 16+.
:
46 | /// - onPopCompleted: An optional callback triggered when a system swipe-back pop completes.
47 | /// - Returns: A view with swipe-back functionality enabled.
48 | public func withSwipeBack(isEnabled: Binding<Bool> = .constant(true), onPopCompleted: (() -> Void)? = nil) -> some View {
| `- note: add @available attribute to enclosing instance method
49 | modifier(WithSwipeBackModifier(isEnabled: isEnabled, onPopCompleted: onPopCompleted))
| |- error: 'modifier' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
50 | }
51 |
/Users/admin/builder/spi-builder-workspace/Sources/OwlNav/Extensions/Views+Extensions.swift:59:9: 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
8 | import SwiftUI
9 |
10 | extension View {
| `- note: add @available attribute to enclosing extension
11 | /// Configures the navigation bar to be transparent if available.
12 | /// - Parameter removeBackground: If `true`, hides the toolbar background and sets it to clear on iOS 16+.
:
57 | @available(*, deprecated, message: "Use withSwipeBack(isEnabled:onPopCompleted:) instead.")
58 | public func withSwipeBack(stackCount: Binding<Int>, onPopCompleted: (() -> Void)? = nil) -> some View {
59 | modifier(WithSwipeBackModifier(isEnabled: .constant(stackCount.wrappedValue > 1), onPopCompleted: onPopCompleted))
| |- 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
60 | }
61 | }
/Users/admin/builder/spi-builder-workspace/Sources/OwlNav/Extensions/Views+Extensions.swift:59:9: error: 'modifier' is only available in macOS 10.15 or newer
8 | import SwiftUI
9 |
10 | extension View {
| `- note: add @available attribute to enclosing extension
11 | /// Configures the navigation bar to be transparent if available.
12 | /// - Parameter removeBackground: If `true`, hides the toolbar background and sets it to clear on iOS 16+.
:
57 | @available(*, deprecated, message: "Use withSwipeBack(isEnabled:onPopCompleted:) instead.")
58 | public func withSwipeBack(stackCount: Binding<Int>, onPopCompleted: (() -> Void)? = nil) -> some View {
59 | modifier(WithSwipeBackModifier(isEnabled: .constant(stackCount.wrappedValue > 1), onPopCompleted: onPopCompleted))
| |- error: 'modifier' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
60 | }
61 | }
[8/9] Emitting module OwlNav
/Users/admin/builder/spi-builder-workspace/Sources/OwlNav/Extensions/Views+Extensions.swift:14:105: error: 'View' is only available in macOS 10.15 or newer
8 | import SwiftUI
9 |
10 | extension View {
| `- note: add @available attribute to enclosing extension
11 | /// Configures the navigation bar to be transparent if available.
12 | /// - Parameter removeBackground: If `true`, hides the toolbar background and sets it to clear on iOS 16+.
13 | /// - Returns: A view with a transparent or default navigation bar.
14 | @ViewBuilder public func transparentNavigationBarIfAvailable(removeBackground: Bool = true) -> some View {
| | `- error: 'View' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing instance method
15 | if #available(iOS 16.0, *) {
16 | if removeBackground {
/Users/admin/builder/spi-builder-workspace/Sources/OwlNav/Extensions/Views+Extensions.swift:14:6: error: 'ViewBuilder' is only available in macOS 10.15 or newer
8 | import SwiftUI
9 |
10 | extension View {
| `- note: add @available attribute to enclosing extension
11 | /// Configures the navigation bar to be transparent if available.
12 | /// - Parameter removeBackground: If `true`, hides the toolbar background and sets it to clear on iOS 16+.
13 | /// - Returns: A view with a transparent or default navigation bar.
14 | @ViewBuilder public func transparentNavigationBarIfAvailable(removeBackground: Bool = true) -> some View {
| | `- note: add @available attribute to enclosing instance method
| `- error: 'ViewBuilder' is only available in macOS 10.15 or newer
15 | if #available(iOS 16.0, *) {
16 | if removeBackground {
/Users/admin/builder/spi-builder-workspace/Sources/OwlNav/Extensions/Views+Extensions.swift:33:69: error: 'View' is only available in macOS 10.15 or newer
8 | import SwiftUI
9 |
10 | extension View {
| `- note: add @available attribute to enclosing extension
11 | /// Configures the navigation bar to be transparent if available.
12 | /// - Parameter removeBackground: If `true`, hides the toolbar background and sets it to clear on iOS 16+.
:
31 | /// Hides the navigation bar if available.
32 | /// - Returns: A view with a hidden navigation bar.
33 | @ViewBuilder public func hideNavigationBarIfAvailable() -> some View {
| | `- error: 'View' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing instance method
34 | if #available(iOS 16.0, *) {
35 | self
/Users/admin/builder/spi-builder-workspace/Sources/OwlNav/Extensions/Views+Extensions.swift:33:6: error: 'ViewBuilder' is only available in macOS 10.15 or newer
8 | import SwiftUI
9 |
10 | extension View {
| `- note: add @available attribute to enclosing extension
11 | /// Configures the navigation bar to be transparent if available.
12 | /// - Parameter removeBackground: If `true`, hides the toolbar background and sets it to clear on iOS 16+.
:
31 | /// Hides the navigation bar if available.
32 | /// - Returns: A view with a hidden navigation bar.
33 | @ViewBuilder public func hideNavigationBarIfAvailable() -> some View {
| | `- note: add @available attribute to enclosing instance method
| `- error: 'ViewBuilder' is only available in macOS 10.15 or newer
34 | if #available(iOS 16.0, *) {
35 | self
/Users/admin/builder/spi-builder-workspace/Sources/OwlNav/Extensions/Views+Extensions.swift:48:42: error: 'Binding' is only available in macOS 10.15 or newer
8 | import SwiftUI
9 |
10 | extension View {
| `- note: add @available attribute to enclosing extension
11 | /// Configures the navigation bar to be transparent if available.
12 | /// - Parameter removeBackground: If `true`, hides the toolbar background and sets it to clear on iOS 16+.
:
46 | /// - onPopCompleted: An optional callback triggered when a system swipe-back pop completes.
47 | /// - Returns: A view with swipe-back functionality enabled.
48 | public func withSwipeBack(isEnabled: Binding<Bool> = .constant(true), onPopCompleted: (() -> Void)? = nil) -> some View {
| | `- error: 'Binding' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing instance method
49 | modifier(WithSwipeBackModifier(isEnabled: isEnabled, onPopCompleted: onPopCompleted))
50 | }
/Users/admin/builder/spi-builder-workspace/Sources/OwlNav/Extensions/Views+Extensions.swift:48:120: error: 'View' is only available in macOS 10.15 or newer
8 | import SwiftUI
9 |
10 | extension View {
| `- note: add @available attribute to enclosing extension
11 | /// Configures the navigation bar to be transparent if available.
12 | /// - Parameter removeBackground: If `true`, hides the toolbar background and sets it to clear on iOS 16+.
:
46 | /// - onPopCompleted: An optional callback triggered when a system swipe-back pop completes.
47 | /// - Returns: A view with swipe-back functionality enabled.
48 | public func withSwipeBack(isEnabled: Binding<Bool> = .constant(true), onPopCompleted: (() -> Void)? = nil) -> some View {
| | `- error: 'View' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing instance method
49 | modifier(WithSwipeBackModifier(isEnabled: isEnabled, onPopCompleted: onPopCompleted))
50 | }
/Users/admin/builder/spi-builder-workspace/Sources/OwlNav/Extensions/Views+Extensions.swift:58:43: error: 'Binding' is only available in macOS 10.15 or newer
8 | import SwiftUI
9 |
10 | extension View {
| `- note: add @available attribute to enclosing extension
11 | /// Configures the navigation bar to be transparent if available.
12 | /// - Parameter removeBackground: If `true`, hides the toolbar background and sets it to clear on iOS 16+.
:
56 | /// - Returns: A view with swipe-back functionality enabled.
57 | @available(*, deprecated, message: "Use withSwipeBack(isEnabled:onPopCompleted:) instead.")
58 | public func withSwipeBack(stackCount: Binding<Int>, onPopCompleted: (() -> Void)? = nil) -> some View {
| `- error: 'Binding' is only available in macOS 10.15 or newer
59 | modifier(WithSwipeBackModifier(isEnabled: .constant(stackCount.wrappedValue > 1), onPopCompleted: onPopCompleted))
60 | }
/Users/admin/builder/spi-builder-workspace/Sources/OwlNav/Extensions/Views+Extensions.swift:58:102: error: 'View' is only available in macOS 10.15 or newer
8 | import SwiftUI
9 |
10 | extension View {
| `- note: add @available attribute to enclosing extension
11 | /// Configures the navigation bar to be transparent if available.
12 | /// - Parameter removeBackground: If `true`, hides the toolbar background and sets it to clear on iOS 16+.
:
56 | /// - Returns: A view with swipe-back functionality enabled.
57 | @available(*, deprecated, message: "Use withSwipeBack(isEnabled:onPopCompleted:) instead.")
58 | public func withSwipeBack(stackCount: Binding<Int>, onPopCompleted: (() -> Void)? = nil) -> some View {
| `- error: 'View' is only available in macOS 10.15 or newer
59 | modifier(WithSwipeBackModifier(isEnabled: .constant(stackCount.wrappedValue > 1), onPopCompleted: onPopCompleted))
60 | }
/Users/admin/builder/spi-builder-workspace/Sources/OwlNav/Extensions/Views+Extensions.swift:10:11: error: 'View' is only available in macOS 10.15 or newer
8 | import SwiftUI
9 |
10 | extension View {
| | `- error: 'View' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing extension
11 | /// Configures the navigation bar to be transparent if available.
12 | /// - Parameter removeBackground: If `true`, hides the toolbar background and sets it to clear on iOS 16+.
/Users/admin/builder/spi-builder-workspace/Sources/OwlNav/Modifier/SwipeBack.swift:13:6: error: 'Binding' is only available in macOS 10.15 or newer
9 |
10 | /// A `ViewModifier` that enables the swipe-back gesture and coordinates pop completion callbacks.
11 | public struct WithSwipeBackModifier: ViewModifier {
| `- note: add @available attribute to enclosing struct
12 | /// Whether the swipe-back gesture is enabled.
13 | @Binding var isEnabled: Bool
| `- error: 'Binding' is only available in macOS 10.15 or newer
14 |
15 | /// Callback triggered when a system swipe-back pop completes.
/Users/admin/builder/spi-builder-workspace/Sources/OwlNav/Modifier/SwipeBack.swift:18:48: error: 'View' is only available in macOS 10.15 or newer
9 |
10 | /// A `ViewModifier` that enables the swipe-back gesture and coordinates pop completion callbacks.
11 | public struct WithSwipeBackModifier: ViewModifier {
| `- note: add @available attribute to enclosing struct
12 | /// Whether the swipe-back gesture is enabled.
13 | @Binding var isEnabled: Bool
:
16 | var onPopCompleted: (() -> Void)?
17 |
18 | public func body(content: Content) -> some View {
| | `- error: 'View' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing instance method
19 | content
20 | .background(
/Users/admin/builder/spi-builder-workspace/Sources/OwlNav/Modifier/SwipeBack.swift:32:6: error: 'Binding' is only available in macOS 10.15 or newer
28 |
29 | /// A background utility controller that enables the native swipe-back gesture based on stack state.
30 | public struct SwipeBackController: UIViewControllerRepresentable {
| `- note: add @available attribute to enclosing struct
31 | /// Whether the swipe-back gesture is enabled.
32 | @Binding var isEnabled: Bool
| `- error: 'Binding' is only available in macOS 10.15 or newer
33 |
34 | /// Callback triggered when a system swipe-back pop completes.
/Users/admin/builder/spi-builder-workspace/Sources/OwlNav/Modifier/SwipeBack.swift:37:59: error: cannot find type 'UIViewController' in scope
35 | var onPopCompleted: (() -> Void)?
36 |
37 | public func makeUIViewController(context: Context) -> UIViewController {
| `- error: cannot find type 'UIViewController' in scope
38 | let controller = UIViewController()
39 | controller.view.isHidden = true
/Users/admin/builder/spi-builder-workspace/Sources/OwlNav/Modifier/SwipeBack.swift:37:47: error: cannot find type 'Context' in scope
35 | var onPopCompleted: (() -> Void)?
36 |
37 | public func makeUIViewController(context: Context) -> UIViewController {
| `- error: cannot find type 'Context' in scope
38 | let controller = UIViewController()
39 | controller.view.isHidden = true
/Users/admin/builder/spi-builder-workspace/Sources/OwlNav/Modifier/SwipeBack.swift:43:46: error: cannot find type 'UIViewController' in scope
41 | }
42 |
43 | public func updateUIViewController(_ vc: UIViewController, context: Context) {
| `- error: cannot find type 'UIViewController' in scope
44 | // Walk up to the nearest UIHostingController to set associated-object flags.
45 | guard let hostingVC = vc.parent else { return }
/Users/admin/builder/spi-builder-workspace/Sources/OwlNav/Modifier/SwipeBack.swift:43:73: error: cannot find type 'Context' in scope
41 | }
42 |
43 | public func updateUIViewController(_ vc: UIViewController, context: Context) {
| `- error: cannot find type 'Context' in scope
44 | // Walk up to the nearest UIHostingController to set associated-object flags.
45 | guard let hostingVC = vc.parent else { return }
/Users/admin/builder/spi-builder-workspace/Sources/OwlNav/Modifier/SwipeBack.swift:30:36: error: cannot find type 'UIViewControllerRepresentable' in scope
28 |
29 | /// A background utility controller that enables the native swipe-back gesture based on stack state.
30 | public struct SwipeBackController: UIViewControllerRepresentable {
| `- error: cannot find type 'UIViewControllerRepresentable' in scope
31 | /// Whether the swipe-back gesture is enabled.
32 | @Binding var isEnabled: Bool
/Users/admin/builder/spi-builder-workspace/Sources/OwlNav/Setup/InOwl.swift:15:6: error: 'Published' is only available in macOS 10.15 or newer
11 | ///
12 | /// `OwlNav` is a `@MainActor` observed object that tracks an array of routes and provides methods to manipulate the stack.
13 | @MainActor public class InOwl<T: Equatable>: ObservableObject {
| `- note: add @available attribute to enclosing generic class
14 | /// The current navigation stack.
15 | @Published public private(set) var routes: [T] = []
| `- error: 'Published' is only available in macOS 10.15 or newer
16 |
17 | /// Animation flag for the next pop operation.
/Users/admin/builder/spi-builder-workspace/Sources/OwlNav/Setup/InOwl.swift:13:46: error: 'ObservableObject' is only available in macOS 10.15 or newer
11 | ///
12 | /// `OwlNav` is a `@MainActor` observed object that tracks an array of routes and provides methods to manipulate the stack.
13 | @MainActor public class InOwl<T: Equatable>: ObservableObject {
| | `- error: 'ObservableObject' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing generic class
14 | /// The current navigation stack.
15 | @Published public private(set) var routes: [T] = []
/Users/admin/builder/spi-builder-workspace/Sources/OwlNav/Setup/OwlContainer.swift:12:63: error: cannot find type 'UIHostingController' in scope
10 | /// A lightweight `UIHostingController` subclass that stores its route value directly,
11 | /// avoiding the need to access `.view.tag` (which force-loads the view hierarchy).
12 | final class OwlHostingController<T: Equatable, Screen: View>: UIHostingController<Screen> {
| `- error: cannot find type 'UIHostingController' in scope
13 | /// The route this controller represents.
14 | let route: T
/Users/admin/builder/spi-builder-workspace/Sources/OwlNav/Setup/OwlContainer.swift:12:56: error: 'View' is only available in macOS 10.15 or newer
10 | /// A lightweight `UIHostingController` subclass that stores its route value directly,
11 | /// avoiding the need to access `.view.tag` (which force-loads the view hierarchy).
12 | final class OwlHostingController<T: Equatable, Screen: View>: UIHostingController<Screen> {
| | `- error: 'View' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing generic class
13 | /// The route this controller represents.
14 | let route: T
/Users/admin/builder/spi-builder-workspace/Sources/OwlNav/Setup/OwlContainer.swift:32:6: error: 'ObservedObject' is only available in macOS 10.15 or newer
28 | ///
29 | /// `OwlContainer` manages a `UINavigationController` and synchronizes its state with an `OwlNav` instance.
30 | public struct OwlContainer<T: Equatable, Screen: View>: UIViewControllerRepresentable {
| `- note: add @available attribute to enclosing generic struct
31 | /// The navigation manager that holds the route stack.
32 | @ObservedObject public var owl: InOwl<T>
| `- error: 'ObservedObject' is only available in macOS 10.15 or newer
33 |
34 | /// A closure that maps a route of type `T` to a SwiftUI `View`.
/Users/admin/builder/spi-builder-workspace/Sources/OwlNav/Setup/OwlContainer.swift:35:6: error: 'ViewBuilder' is only available in macOS 10.15 or newer
28 | ///
29 | /// `OwlContainer` manages a `UINavigationController` and synchronizes its state with an `OwlNav` instance.
30 | public struct OwlContainer<T: Equatable, Screen: View>: UIViewControllerRepresentable {
| `- note: add @available attribute to enclosing generic struct
31 | /// The navigation manager that holds the route stack.
32 | @ObservedObject public var owl: InOwl<T>
33 |
34 | /// A closure that maps a route of type `T` to a SwiftUI `View`.
35 | @ViewBuilder private let routeMap: (T) -> Screen
| `- error: 'ViewBuilder' is only available in macOS 10.15 or newer
36 |
37 | /// Initializes a new `OwlContainer`.
/Users/admin/builder/spi-builder-workspace/Sources/OwlNav/Setup/OwlContainer.swift:41:35: error: 'ViewBuilder' is only available in macOS 10.15 or newer
28 | ///
29 | /// `OwlContainer` manages a `UINavigationController` and synchronizes its state with an `OwlNav` instance.
30 | public struct OwlContainer<T: Equatable, Screen: View>: UIViewControllerRepresentable {
| `- note: add @available attribute to enclosing generic struct
31 | /// The navigation manager that holds the route stack.
32 | @ObservedObject public var owl: InOwl<T>
:
39 | /// - owl: The `OwlNav` instance to observe.
40 | /// - routeMap: A closure that provides the view for each route in the stack.
41 | public init(_ owl: InOwl<T>, @ViewBuilder routeMap: @escaping (T) -> Screen) {
| | `- error: 'ViewBuilder' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing initializer
42 | _owl = ObservedObject(wrappedValue: owl)
43 | self.routeMap = routeMap
/Users/admin/builder/spi-builder-workspace/Sources/OwlNav/Setup/OwlContainer.swift:47:59: error: cannot find type 'UINavigationController' in scope
45 |
46 | /// Creates the underlying `UINavigationController`.
47 | public func makeUIViewController(context: Context) -> UINavigationController {
| `- error: cannot find type 'UINavigationController' in scope
48 | let navigation = OwlNavigationController()
49 |
/Users/admin/builder/spi-builder-workspace/Sources/OwlNav/Setup/OwlContainer.swift:47:47: error: cannot find type 'Context' in scope
45 |
46 | /// Creates the underlying `UINavigationController`.
47 | public func makeUIViewController(context: Context) -> UINavigationController {
| `- error: cannot find type 'Context' in scope
48 | let navigation = OwlNavigationController()
49 |
/Users/admin/builder/spi-builder-workspace/Sources/OwlNav/Setup/OwlContainer.swift:58:54: error: cannot find type 'UINavigationController' in scope
56 |
57 | /// Updates the `UINavigationController` to match the current state of the `OwlNav` stack.
58 | public func updateUIViewController(_ navigation: UINavigationController, context: Context) {
| `- error: cannot find type 'UINavigationController' in scope
59 | syncNavigation(navigation)
60 | }
/Users/admin/builder/spi-builder-workspace/Sources/OwlNav/Setup/OwlContainer.swift:58:87: error: cannot find type 'Context' in scope
56 |
57 | /// Updates the `UINavigationController` to match the current state of the `OwlNav` stack.
58 | public func updateUIViewController(_ navigation: UINavigationController, context: Context) {
| `- error: cannot find type 'Context' in scope
59 | syncNavigation(navigation)
60 | }
/Users/admin/builder/spi-builder-workspace/Sources/OwlNav/Setup/OwlContainer.swift:62:47: error: cannot find type 'UINavigationController' in scope
60 | }
61 |
62 | private func syncNavigation(_ navigation: UINavigationController) {
| `- error: cannot find type 'UINavigationController' in scope
63 | // Prevent duplicate sync calls when a transition is in flight.
64 | if let owlNav = navigation as? OwlNavigationController, owlNav.isSyncScheduled {
/Users/admin/builder/spi-builder-workspace/Sources/OwlNav/Setup/OwlContainer.swift:30:57: error: cannot find type 'UIViewControllerRepresentable' in scope
28 | ///
29 | /// `OwlContainer` manages a `UINavigationController` and synchronizes its state with an `OwlNav` instance.
30 | public struct OwlContainer<T: Equatable, Screen: View>: UIViewControllerRepresentable {
| `- error: cannot find type 'UIViewControllerRepresentable' in scope
31 | /// The navigation manager that holds the route stack.
32 | @ObservedObject public var owl: InOwl<T>
/Users/admin/builder/spi-builder-workspace/Sources/OwlNav/Setup/OwlContainer.swift:30:50: error: 'View' is only available in macOS 10.15 or newer
28 | ///
29 | /// `OwlContainer` manages a `UINavigationController` and synchronizes its state with an `OwlNav` instance.
30 | public struct OwlContainer<T: Equatable, Screen: View>: UIViewControllerRepresentable {
| | `- error: 'View' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing generic struct
31 | /// The navigation manager that holds the route stack.
32 | @ObservedObject public var owl: InOwl<T>
[9/9] Compiling OwlNav OwlContainer.swift
/Users/admin/builder/spi-builder-workspace/Sources/OwlNav/Setup/OwlContainer.swift:12:63: error: cannot find type 'UIHostingController' in scope
10 | /// A lightweight `UIHostingController` subclass that stores its route value directly,
11 | /// avoiding the need to access `.view.tag` (which force-loads the view hierarchy).
12 | final class OwlHostingController<T: Equatable, Screen: View>: UIHostingController<Screen> {
| `- error: cannot find type 'UIHostingController' in scope
13 | /// The route this controller represents.
14 | let route: T
/Users/admin/builder/spi-builder-workspace/Sources/OwlNav/Setup/OwlContainer.swift:12:56: error: 'View' is only available in macOS 10.15 or newer
10 | /// A lightweight `UIHostingController` subclass that stores its route value directly,
11 | /// avoiding the need to access `.view.tag` (which force-loads the view hierarchy).
12 | final class OwlHostingController<T: Equatable, Screen: View>: UIHostingController<Screen> {
| | `- error: 'View' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing generic class
13 | /// The route this controller represents.
14 | let route: T
/Users/admin/builder/spi-builder-workspace/Sources/OwlNav/Setup/OwlContainer.swift:32:6: error: 'ObservedObject' is only available in macOS 10.15 or newer
28 | ///
29 | /// `OwlContainer` manages a `UINavigationController` and synchronizes its state with an `OwlNav` instance.
30 | public struct OwlContainer<T: Equatable, Screen: View>: UIViewControllerRepresentable {
| `- note: add @available attribute to enclosing generic struct
31 | /// The navigation manager that holds the route stack.
32 | @ObservedObject public var owl: InOwl<T>
| `- error: 'ObservedObject' is only available in macOS 10.15 or newer
33 |
34 | /// A closure that maps a route of type `T` to a SwiftUI `View`.
/Users/admin/builder/spi-builder-workspace/Sources/OwlNav/Setup/OwlContainer.swift:35:6: error: 'ViewBuilder' is only available in macOS 10.15 or newer
28 | ///
29 | /// `OwlContainer` manages a `UINavigationController` and synchronizes its state with an `OwlNav` instance.
30 | public struct OwlContainer<T: Equatable, Screen: View>: UIViewControllerRepresentable {
| `- note: add @available attribute to enclosing generic struct
31 | /// The navigation manager that holds the route stack.
32 | @ObservedObject public var owl: InOwl<T>
33 |
34 | /// A closure that maps a route of type `T` to a SwiftUI `View`.
35 | @ViewBuilder private let routeMap: (T) -> Screen
| `- error: 'ViewBuilder' is only available in macOS 10.15 or newer
36 |
37 | /// Initializes a new `OwlContainer`.
/Users/admin/builder/spi-builder-workspace/Sources/OwlNav/Setup/OwlContainer.swift:41:35: error: 'ViewBuilder' is only available in macOS 10.15 or newer
28 | ///
29 | /// `OwlContainer` manages a `UINavigationController` and synchronizes its state with an `OwlNav` instance.
30 | public struct OwlContainer<T: Equatable, Screen: View>: UIViewControllerRepresentable {
| `- note: add @available attribute to enclosing generic struct
31 | /// The navigation manager that holds the route stack.
32 | @ObservedObject public var owl: InOwl<T>
:
39 | /// - owl: The `OwlNav` instance to observe.
40 | /// - routeMap: A closure that provides the view for each route in the stack.
41 | public init(_ owl: InOwl<T>, @ViewBuilder routeMap: @escaping (T) -> Screen) {
| | `- error: 'ViewBuilder' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing initializer
42 | _owl = ObservedObject(wrappedValue: owl)
43 | self.routeMap = routeMap
/Users/admin/builder/spi-builder-workspace/Sources/OwlNav/Setup/OwlContainer.swift:47:59: error: cannot find type 'UINavigationController' in scope
45 |
46 | /// Creates the underlying `UINavigationController`.
47 | public func makeUIViewController(context: Context) -> UINavigationController {
| `- error: cannot find type 'UINavigationController' in scope
48 | let navigation = OwlNavigationController()
49 |
/Users/admin/builder/spi-builder-workspace/Sources/OwlNav/Setup/OwlContainer.swift:47:47: error: cannot find type 'Context' in scope
45 |
46 | /// Creates the underlying `UINavigationController`.
47 | public func makeUIViewController(context: Context) -> UINavigationController {
| `- error: cannot find type 'Context' in scope
48 | let navigation = OwlNavigationController()
49 |
/Users/admin/builder/spi-builder-workspace/Sources/OwlNav/Setup/OwlContainer.swift:58:54: error: cannot find type 'UINavigationController' in scope
56 |
57 | /// Updates the `UINavigationController` to match the current state of the `OwlNav` stack.
58 | public func updateUIViewController(_ navigation: UINavigationController, context: Context) {
| `- error: cannot find type 'UINavigationController' in scope
59 | syncNavigation(navigation)
60 | }
/Users/admin/builder/spi-builder-workspace/Sources/OwlNav/Setup/OwlContainer.swift:58:87: error: cannot find type 'Context' in scope
56 |
57 | /// Updates the `UINavigationController` to match the current state of the `OwlNav` stack.
58 | public func updateUIViewController(_ navigation: UINavigationController, context: Context) {
| `- error: cannot find type 'Context' in scope
59 | syncNavigation(navigation)
60 | }
/Users/admin/builder/spi-builder-workspace/Sources/OwlNav/Setup/OwlContainer.swift:62:47: error: cannot find type 'UINavigationController' in scope
60 | }
61 |
62 | private func syncNavigation(_ navigation: UINavigationController) {
| `- error: cannot find type 'UINavigationController' in scope
63 | // Prevent duplicate sync calls when a transition is in flight.
64 | if let owlNav = navigation as? OwlNavigationController, owlNav.isSyncScheduled {
/Users/admin/builder/spi-builder-workspace/Sources/OwlNav/Setup/OwlContainer.swift:30:57: error: cannot find type 'UIViewControllerRepresentable' in scope
28 | ///
29 | /// `OwlContainer` manages a `UINavigationController` and synchronizes its state with an `OwlNav` instance.
30 | public struct OwlContainer<T: Equatable, Screen: View>: UIViewControllerRepresentable {
| `- error: cannot find type 'UIViewControllerRepresentable' in scope
31 | /// The navigation manager that holds the route stack.
32 | @ObservedObject public var owl: InOwl<T>
/Users/admin/builder/spi-builder-workspace/Sources/OwlNav/Setup/OwlContainer.swift:30:50: error: 'View' is only available in macOS 10.15 or newer
28 | ///
29 | /// `OwlContainer` manages a `UINavigationController` and synchronizes its state with an `OwlNav` instance.
30 | public struct OwlContainer<T: Equatable, Screen: View>: UIViewControllerRepresentable {
| | `- error: 'View' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing generic struct
31 | /// The navigation manager that holds the route stack.
32 | @ObservedObject public var owl: InOwl<T>
/Users/admin/builder/spi-builder-workspace/Sources/OwlNav/Setup/OwlContainer.swift:18:9: error: 'super' cannot be used in class 'OwlHostingController' because it has no superclass
16 | init(route: T, rootView: Screen) {
17 | self.route = route
18 | super.init(rootView: rootView)
| `- error: 'super' cannot be used in class 'OwlHostingController' because it has no superclass
19 | }
20 |
/Users/admin/builder/spi-builder-workspace/Sources/OwlNav/Setup/OwlContainer.swift:42:16: error: 'ObservedObject' is only available in macOS 10.15 or newer
28 | ///
29 | /// `OwlContainer` manages a `UINavigationController` and synchronizes its state with an `OwlNav` instance.
30 | public struct OwlContainer<T: Equatable, Screen: View>: UIViewControllerRepresentable {
| `- note: add @available attribute to enclosing generic struct
31 | /// The navigation manager that holds the route stack.
32 | @ObservedObject public var owl: InOwl<T>
:
39 | /// - owl: The `OwlNav` instance to observe.
40 | /// - routeMap: A closure that provides the view for each route in the stack.
41 | public init(_ owl: InOwl<T>, @ViewBuilder routeMap: @escaping (T) -> Screen) {
| `- note: add @available attribute to enclosing initializer
42 | _owl = ObservedObject(wrappedValue: owl)
| |- error: 'ObservedObject' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
43 | self.routeMap = routeMap
44 | }
/Users/admin/builder/spi-builder-workspace/Sources/OwlNav/Setup/OwlContainer.swift:48:26: error: cannot find 'OwlNavigationController' in scope
46 | /// Creates the underlying `UINavigationController`.
47 | public func makeUIViewController(context: Context) -> UINavigationController {
48 | let navigation = OwlNavigationController()
| `- error: cannot find 'OwlNavigationController' in scope
49 |
50 | navigation.onSystemPop = {
/Users/admin/builder/spi-builder-workspace/Sources/OwlNav/Setup/OwlContainer.swift:64:40: error: cannot find type 'OwlNavigationController' in scope
62 | private func syncNavigation(_ navigation: UINavigationController) {
63 | // Prevent duplicate sync calls when a transition is in flight.
64 | if let owlNav = navigation as? OwlNavigationController, owlNav.isSyncScheduled {
| `- error: cannot find type 'OwlNavigationController' in scope
65 | return
66 | }
/Users/admin/builder/spi-builder-workspace/Sources/OwlNav/Setup/OwlContainer.swift:69:29: error: cannot find type 'OwlNavigationController' in scope
67 |
68 | if let coordinator = navigation.transitionCoordinator {
69 | (navigation as? OwlNavigationController)?.isSyncScheduled = true
| `- error: cannot find type 'OwlNavigationController' in scope
70 | coordinator.animate(alongsideTransition: nil) { _ in
71 | (navigation as? OwlNavigationController)?.isSyncScheduled = false
/Users/admin/builder/spi-builder-workspace/Sources/OwlNav/Setup/OwlContainer.swift:71:33: error: cannot find type 'OwlNavigationController' in scope
69 | (navigation as? OwlNavigationController)?.isSyncScheduled = true
70 | coordinator.animate(alongsideTransition: nil) { _ in
71 | (navigation as? OwlNavigationController)?.isSyncScheduled = false
| `- error: cannot find type 'OwlNavigationController' in scope
72 | syncNavigation(navigation)
73 | }
/Users/admin/builder/spi-builder-workspace/Sources/OwlNav/Setup/OwlContainer.swift:70:54: error: 'nil' requires a contextual type
68 | if let coordinator = navigation.transitionCoordinator {
69 | (navigation as? OwlNavigationController)?.isSyncScheduled = true
70 | coordinator.animate(alongsideTransition: nil) { _ in
| `- error: 'nil' requires a contextual type
71 | (navigation as? OwlNavigationController)?.isSyncScheduled = false
72 | syncNavigation(navigation)
/Users/admin/builder/spi-builder-workspace/Sources/OwlNav/Setup/OwlContainer.swift:99:28: error: cannot find type 'UIViewController' in scope
97 | // Build the target stack in one shot:
98 | // reuse existing VCs where the route is unchanged, recreate where it differs (e.g. reset to a new root).
99 | var newStack: [UIViewController] = []
| `- error: cannot find type 'UIViewController' in scope
100 | for index in 0..<targetStack {
101 | let route = owl.routes[index]
/Users/admin/builder/spi-builder-workspace/Sources/OwlNav/Setup/OwlContainer.swift:112:29: error: cannot find type 'OwlNavigationController' in scope
110 | }
111 |
112 | (navigation as? OwlNavigationController)?.suppressNextSystemPop()
| `- error: cannot find type 'OwlNavigationController' in scope
113 | navigation.setViewControllers(newStack, animated: owl.consumePendingPopAnimated())
114 | }
BUILD FAILURE 6.1 macosSpm