Build Information
Failed to build navigation-stack-backport, reference main (55acfe
), with Swift 6.0 for macOS (SPM) on 4 Nov 2024 05:53:25 UTC.
Build Command
env DEVELOPER_DIR=/Applications/Xcode-16.1.0.app xcrun swift build --arch arm64 -Xswiftc -Xfrontend -Xswiftc -stats-output-dir -Xswiftc -Xfrontend -Xswiftc .stats -Xswiftc -strict-concurrency=complete
Build Log
/Users/admin/builder/spi-builder-workspace/Sources/NavigationStackBackport/Presentation.swift:18:10: error: 'buildEither(second:)' is only available in macOS 10.15 or newer
1 | import SwiftUI
2 |
3 | public extension Backport {
| `- note: add @available attribute to enclosing extension
4 | @ViewBuilder func navigationDestination<C: View>(isPresented: Binding<Bool>, @ViewBuilder destination: () -> C) -> some View {
5 | if #available(iOS 16.0, *) {
:
10 | }
11 |
12 | @ViewBuilder func navigationDestination<D: Hashable, C: View>(
| `- note: add @available attribute to enclosing instance method
13 | item: Binding<D?>,
14 | @ViewBuilder destination: @escaping (D) -> C
:
16 | if #available(iOS 17.0, *) {
17 | content.navigationDestination(item: item, destination: destination)
18 | } else {
| |- error: 'buildEither(second:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
19 | content.modifier(ItemPresentationModifier(item: item, destination: destination))
20 | }
/Users/admin/builder/spi-builder-workspace/Sources/NavigationStackBackport/Presentation.swift:18:10: 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
1 | import SwiftUI
2 |
3 | public extension Backport {
| `- note: add @available attribute to enclosing extension
4 | @ViewBuilder func navigationDestination<C: View>(isPresented: Binding<Bool>, @ViewBuilder destination: () -> C) -> some View {
5 | if #available(iOS 16.0, *) {
:
10 | }
11 |
12 | @ViewBuilder func navigationDestination<D: Hashable, C: View>(
| `- note: add @available attribute to enclosing instance method
13 | item: Binding<D?>,
14 | @ViewBuilder destination: @escaping (D) -> C
:
16 | if #available(iOS 17.0, *) {
17 | content.navigationDestination(item: item, destination: destination)
18 | } else {
| |- 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
19 | content.modifier(ItemPresentationModifier(item: item, destination: destination))
20 | }
/Users/admin/builder/spi-builder-workspace/Sources/NavigationStackBackport/Presentation.swift:15:17: 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
1 | import SwiftUI
2 |
3 | public extension Backport {
| `- note: add @available attribute to enclosing extension
4 | @ViewBuilder func navigationDestination<C: View>(isPresented: Binding<Bool>, @ViewBuilder destination: () -> C) -> some View {
5 | if #available(iOS 16.0, *) {
:
10 | }
11 |
12 | @ViewBuilder func navigationDestination<D: Hashable, C: View>(
| `- note: add @available attribute to enclosing instance method
13 | item: Binding<D?>,
14 | @ViewBuilder destination: @escaping (D) -> C
15 | ) -> 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
16 | if #available(iOS 17.0, *) {
17 | content.navigationDestination(item: item, destination: destination)
/Users/admin/builder/spi-builder-workspace/Sources/NavigationStackBackport/Presentation.swift:19:21: warning: call to main actor-isolated initializer 'init(item:destination:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
10 | }
11 |
12 | @ViewBuilder func navigationDestination<D: Hashable, C: View>(
| `- note: add '@MainActor' to make instance method 'navigationDestination(item:destination:)' part of global actor 'MainActor'
13 | item: Binding<D?>,
14 | @ViewBuilder destination: @escaping (D) -> C
:
17 | content.navigationDestination(item: item, destination: destination)
18 | } else {
19 | content.modifier(ItemPresentationModifier(item: item, destination: destination))
| `- warning: call to main actor-isolated initializer 'init(item:destination:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
20 | }
21 | }
:
48 | }
49 |
50 | private struct ItemPresentationModifier<D: Hashable, C: View>: ViewModifier {
| `- note: calls to initializer 'init(item:destination:)' from outside of its actor context are implicitly asynchronous
51 | @Binding var item: D?
52 | let destination: (D) -> C
/Users/admin/builder/spi-builder-workspace/Sources/NavigationStackBackport/NavigationAuthority.swift:24:33: error: 'PassthroughSubject' is only available in macOS 10.15 or newer
2 | import SwiftUI
3 |
4 | class NavigationAuthority: NSObject, ObservableObject {
| `- note: add @available attribute to enclosing class
5 | weak var navigationController: UINavigationController? {
6 | didSet { navigationController?.delegate = self }
:
22 | let pathPopPublisher = PassthroughSubject<Int, Never>()
23 | let pathPushPublisher = PassthroughSubject<NavigationPathItem, Never>()
24 | let presentationPopPublisher = PassthroughSubject<Namespace.ID, Never>()
| `- error: 'PassthroughSubject' is only available in macOS 10.15 or newer
25 | var canNavigate: Bool { navigationController != nil }
26 |
/Users/admin/builder/spi-builder-workspace/Sources/NavigationStackBackport/Presentation.swift:36:5: error: 'transformPreference' is only available in macOS 10.15 or newer
22 | }
23 |
24 | private struct PresentationModifier<C: View>: ViewModifier {
| `- note: add @available attribute to enclosing generic struct
25 | @Binding var isPresented: Bool
26 | let destination: C
:
30 | @Environment(\.navigationAuthority) private var authority
31 |
32 | func body(content: Content) -> some View {
| `- note: add @available attribute to enclosing instance method
33 | var updated = false
34 |
35 | content
36 | .transformPreference(PresentationIDsKey.self) { ids in
| |- error: 'transformPreference' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
37 | ids.append(id)
38 |
/Users/admin/builder/spi-builder-workspace/Sources/NavigationStackBackport/Presentation.swift:43:5: error: 'onReceive(_:perform:)' is only available in macOS 10.15 or newer
22 | }
23 |
24 | private struct PresentationModifier<C: View>: ViewModifier {
| `- note: add @available attribute to enclosing generic struct
25 | @Binding var isPresented: Bool
26 | let destination: C
:
30 | @Environment(\.navigationAuthority) private var authority
31 |
32 | func body(content: Content) -> some View {
| `- note: add @available attribute to enclosing instance method
33 | var updated = false
34 |
:
41 | authority.update(id: id, presentation: Presentation(contextId: contextId, isPresented: isPresented, view: destination))
42 | }
43 | .onReceive(authority.presentationPopPublisher) { id in
| |- error: 'onReceive(_:perform:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
44 | guard id == self.id else { return }
45 | isPresented = false
/Users/admin/builder/spi-builder-workspace/Sources/NavigationStackBackport/Presentation.swift:45:5: error: setter for 'isPresented' is only available in macOS 10.15 or newer
22 | }
23 |
24 | private struct PresentationModifier<C: View>: ViewModifier {
| `- note: add @available attribute to enclosing generic struct
25 | @Binding var isPresented: Bool
26 | let destination: C
:
30 | @Environment(\.navigationAuthority) private var authority
31 |
32 | func body(content: Content) -> some View {
| `- note: add @available attribute to enclosing instance method
33 | var updated = false
34 |
:
43 | .onReceive(authority.presentationPopPublisher) { id in
44 | guard id == self.id else { return }
45 | isPresented = false
| |- error: setter for 'isPresented' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
46 | }
47 | }
/Users/admin/builder/spi-builder-workspace/Sources/NavigationStackBackport/Presentation.swift:55:21: error: 'Binding' is only available in macOS 10.15 or newer
48 | }
49 |
50 | private struct ItemPresentationModifier<D: Hashable, C: View>: ViewModifier {
| `- note: add @available attribute to enclosing generic struct
51 | @Binding var item: D?
52 | let destination: (D) -> C
53 |
54 | func body(content: Content) -> some View {
| `- note: add @available attribute to enclosing instance method
55 | let isPresented = Binding {
| |- error: 'Binding' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
56 | item != nil
57 | } set: {
/Users/admin/builder/spi-builder-workspace/Sources/NavigationStackBackport/Presentation.swift:59:5: error: setter for 'item' is only available in macOS 10.15 or newer
48 | }
49 |
50 | private struct ItemPresentationModifier<D: Hashable, C: View>: ViewModifier {
| `- note: add @available attribute to enclosing generic struct
51 | @Binding var item: D?
52 | let destination: (D) -> C
53 |
54 | func body(content: Content) -> some View {
| `- note: add @available attribute to enclosing instance method
55 | let isPresented = Binding {
56 | item != nil
57 | } set: {
58 | if !$0 {
59 | item = nil
| |- error: setter for 'item' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
60 | }
61 | }
/Users/admin/builder/spi-builder-workspace/Sources/NavigationStackBackport/Presentation.swift:63:20: warning: conformance of 'Optional<Wrapped>' to 'View' is only available in macOS 10.15 or newer; this is an error in the Swift 6 language mode
48 | }
49 |
50 | private struct ItemPresentationModifier<D: Hashable, C: View>: ViewModifier {
| `- note: add @available attribute to enclosing generic struct
51 | @Binding var item: D?
52 | let destination: (D) -> C
53 |
54 | func body(content: Content) -> some View {
| `- note: add @available attribute to enclosing instance method
55 | let isPresented = Binding {
56 | item != nil
:
61 | }
62 |
63 | content.backport.navigationDestination(isPresented: isPresented) {
| |- warning: conformance of 'Optional<Wrapped>' 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
64 | if let item {
65 | destination(item)
/Users/admin/builder/spi-builder-workspace/Sources/NavigationStackBackport/Presentation.swift:64:16: error: 'buildIf' is only available in macOS 10.15 or newer
48 | }
49 |
50 | private struct ItemPresentationModifier<D: Hashable, C: View>: ViewModifier {
| `- note: add @available attribute to enclosing generic struct
51 | @Binding var item: D?
52 | let destination: (D) -> C
53 |
54 | func body(content: Content) -> some View {
| `- note: add @available attribute to enclosing instance method
55 | let isPresented = Binding {
56 | item != nil
:
62 |
63 | content.backport.navigationDestination(isPresented: isPresented) {
64 | if let item {
| |- error: 'buildIf' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
65 | destination(item)
66 | }
/Users/admin/builder/spi-builder-workspace/Sources/NavigationStackBackport/Presentation.swift:66:4: error: 'buildIf' is only available in macOS 10.15 or newer
48 | }
49 |
50 | private struct ItemPresentationModifier<D: Hashable, C: View>: ViewModifier {
| `- note: add @available attribute to enclosing generic struct
51 | @Binding var item: D?
52 | let destination: (D) -> C
53 |
54 | func body(content: Content) -> some View {
| `- note: add @available attribute to enclosing instance method
55 | let isPresented = Binding {
56 | item != nil
:
64 | if let item {
65 | destination(item)
66 | }
| |- error: 'buildIf' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
67 | }
68 | }
/Users/admin/builder/spi-builder-workspace/Sources/NavigationStackBackport/Presentation.swift:63:68: warning: conformance of 'Optional<Wrapped>' to 'View' is only available in macOS 10.15 or newer; this is an error in the Swift 6 language mode
48 | }
49 |
50 | private struct ItemPresentationModifier<D: Hashable, C: View>: ViewModifier {
| `- note: add @available attribute to enclosing generic struct
51 | @Binding var item: D?
52 | let destination: (D) -> C
53 |
54 | func body(content: Content) -> some View {
| `- note: add @available attribute to enclosing instance method
55 | let isPresented = Binding {
56 | item != nil
:
61 | }
62 |
63 | content.backport.navigationDestination(isPresented: isPresented) {
| |- warning: conformance of 'Optional<Wrapped>' 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
64 | if let item {
65 | destination(item)
/Users/admin/builder/spi-builder-workspace/Sources/NavigationStackBackport/Presentation.swift:79:15: error: 'AnyView' is only available in macOS 10.15 or newer
69 | }
70 |
71 | struct Presentation {
| `- note: add @available attribute to enclosing struct
72 | let contextId: Int
73 | let isPresented: Bool
74 | let view: AnyView
75 |
76 | init(contextId: Int, isPresented: Bool, view: some View) {
| `- note: add @available attribute to enclosing initializer
77 | self.contextId = contextId
78 | self.isPresented = isPresented
79 | self.view = AnyView(view.environment(\.navigationContextId, contextId))
| |- error: 'AnyView' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
80 | }
81 | }
/Users/admin/builder/spi-builder-workspace/Sources/NavigationStackBackport/Presentation.swift:79:28: error: 'environment' is only available in macOS 10.15 or newer
69 | }
70 |
71 | struct Presentation {
| `- note: add @available attribute to enclosing struct
72 | let contextId: Int
73 | let isPresented: Bool
74 | let view: AnyView
75 |
76 | init(contextId: Int, isPresented: Bool, view: some View) {
| `- note: add @available attribute to enclosing initializer
77 | self.contextId = contextId
78 | self.isPresented = isPresented
79 | self.view = AnyView(view.environment(\.navigationContextId, contextId))
| |- error: 'environment' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
80 | }
81 | }
error: emit-module command failed with exit code 1 (use -v to see invocation)
[9/16] Compiling NavigationStackBackport NavigationUpdate.swift
/Users/admin/builder/spi-builder-workspace/Sources/NavigationStackBackport/NavigationUpdate.swift:4:24: error: cannot find type 'UIViewController' in scope
2 |
3 | @MainActor struct NavigationUpdate {
4 | var viewControllers: [UIViewController] {
| `- error: cannot find type 'UIViewController' in scope
5 | didSet { changed = true }
6 | }
/Users/admin/builder/spi-builder-workspace/Sources/NavigationStackBackport/NavigationUpdate.swift:8:36: error: cannot find type 'UINavigationController' in scope
6 | }
7 |
8 | private let navigationController: UINavigationController
| `- error: cannot find type 'UINavigationController' in scope
9 | private var addedViewControllers: [UIViewController] = []
10 | private var changed = false
/Users/admin/builder/spi-builder-workspace/Sources/NavigationStackBackport/NavigationUpdate.swift:9:37: error: cannot find type 'UIViewController' in scope
7 |
8 | private let navigationController: UINavigationController
9 | private var addedViewControllers: [UIViewController] = []
| `- error: cannot find type 'UIViewController' in scope
10 | private var changed = false
11 |
/Users/admin/builder/spi-builder-workspace/Sources/NavigationStackBackport/NavigationUpdate.swift:12:29: error: cannot find type 'UINavigationController' in scope
10 | private var changed = false
11 |
12 | init(navigationController: UINavigationController) {
| `- error: cannot find type 'UINavigationController' in scope
13 | self.navigationController = navigationController
14 | viewControllers = navigationController.viewControllers
/Users/admin/builder/spi-builder-workspace/Sources/NavigationStackBackport/NavigationUpdate.swift:17:29: error: 'AnyView' is only available in macOS 10.15 or newer
1 | import SwiftUI
2 |
3 | @MainActor struct NavigationUpdate {
| `- note: add @available attribute to enclosing struct
4 | var viewControllers: [UIViewController] {
5 | didSet { changed = true }
:
15 | }
16 |
17 | mutating func view(_ view: AnyView, at index: Int) {
| | `- error: 'AnyView' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing instance method
18 | changed = true
19 |
/Users/admin/builder/spi-builder-workspace/Sources/NavigationStackBackport/NavigationUpdate.swift:21:53: error: cannot find type 'UIHostingController' in scope
19 |
20 | if navigationController.viewControllers.indices.contains(index) {
21 | (navigationController.viewControllers[index] as? UIHostingController<AnyView>)?.rootView = view
| `- error: cannot find type 'UIHostingController' in scope
22 | return
23 | }
/Users/admin/builder/spi-builder-workspace/Sources/NavigationStackBackport/NavigationUpdate.swift:25:27: error: cannot find 'UIHostingController' in scope
23 | }
24 |
25 | let hostingController = UIHostingController(rootView: view)
| `- error: cannot find 'UIHostingController' in scope
26 | viewControllers.append(hostingController)
27 |
/Users/admin/builder/spi-builder-workspace/Sources/NavigationStackBackport/NavigationUpdate.swift:39:27: error: 'nil' requires a contextual type
37 | Task {
38 | addedViewControllers.forEach {
39 | $0.willMove(toParent: nil)
| `- error: 'nil' requires a contextual type
40 | $0.view.removeFromSuperview()
41 | $0.removeFromParent()
[10/16] Compiling NavigationStackBackport NavigationPathBackport.swift
[11/16] Emitting module NavigationStackBackport
/Users/admin/builder/spi-builder-workspace/Sources/NavigationStackBackport/Backport.swift:3:33: error: 'View' is only available in macOS 10.15 or newer
1 | import SwiftUI
2 |
3 | public struct Backport<Content: View> {
| | `- error: 'View' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing generic struct
4 | let content: Content
5 | }
/Users/admin/builder/spi-builder-workspace/Sources/NavigationStackBackport/Backport.swift:7:18: error: 'View' is only available in macOS 10.15 or newer
5 | }
6 |
7 | public extension View {
| | `- error: 'View' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing extension
8 | var backport: Backport<Self> { .init(content: self) }
9 | }
/Users/admin/builder/spi-builder-workspace/Sources/NavigationStackBackport/Destination.swift:4:58: error: 'View' is only available in macOS 10.15 or newer
1 | import SwiftUI
2 |
3 | public extension Backport {
| `- note: add @available attribute to enclosing extension
4 | @ViewBuilder func navigationDestination<D: Hashable, C: View>(for data: D.Type, @ViewBuilder destination: @escaping (D) -> C) -> some View {
| | `- error: 'View' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing instance method
5 | if #available(iOS 16.0, *) {
6 | content.navigationDestination(for: D.self, destination: destination)
/Users/admin/builder/spi-builder-workspace/Sources/NavigationStackBackport/Destination.swift:4:83: error: 'ViewBuilder' is only available in macOS 10.15 or newer
1 | import SwiftUI
2 |
3 | public extension Backport {
| `- note: add @available attribute to enclosing extension
4 | @ViewBuilder func navigationDestination<D: Hashable, C: View>(for data: D.Type, @ViewBuilder destination: @escaping (D) -> C) -> some View {
| | `- error: 'ViewBuilder' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing instance method
5 | if #available(iOS 16.0, *) {
6 | content.navigationDestination(for: D.self, destination: destination)
/Users/admin/builder/spi-builder-workspace/Sources/NavigationStackBackport/Destination.swift:4:136: error: 'View' is only available in macOS 10.15 or newer
1 | import SwiftUI
2 |
3 | public extension Backport {
| `- note: add @available attribute to enclosing extension
4 | @ViewBuilder func navigationDestination<D: Hashable, C: View>(for data: D.Type, @ViewBuilder destination: @escaping (D) -> C) -> some View {
| | `- error: 'View' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing instance method
5 | if #available(iOS 16.0, *) {
6 | content.navigationDestination(for: D.self, destination: destination)
/Users/admin/builder/spi-builder-workspace/Sources/NavigationStackBackport/Destination.swift:4:3: error: 'ViewBuilder' is only available in macOS 10.15 or newer
1 | import SwiftUI
2 |
3 | public extension Backport {
| `- note: add @available attribute to enclosing extension
4 | @ViewBuilder func navigationDestination<D: Hashable, C: View>(for data: D.Type, @ViewBuilder destination: @escaping (D) -> C) -> some View {
| | `- note: add @available attribute to enclosing instance method
| `- error: 'ViewBuilder' is only available in macOS 10.15 or newer
5 | if #available(iOS 16.0, *) {
6 | content.navigationDestination(for: D.self, destination: destination)
/Users/admin/builder/spi-builder-workspace/Sources/NavigationStackBackport/Destination.swift:15:3: error: 'Namespace' is only available in macOS 11.0 or newer
11 | }
12 |
13 | private struct DestinationModifier<D: Hashable, C: View>: ViewModifier {
| `- note: add @available attribute to enclosing generic struct
14 | let destination: (D) -> C
15 | @Namespace private var id
| `- error: 'Namespace' is only available in macOS 11.0 or newer
16 | @Environment(\.navigationAuthority) private var authority
17 |
/Users/admin/builder/spi-builder-workspace/Sources/NavigationStackBackport/Destination.swift:16:3: error: 'Environment' is only available in macOS 10.15 or newer
11 | }
12 |
13 | private struct DestinationModifier<D: Hashable, C: View>: ViewModifier {
| `- note: add @available attribute to enclosing generic struct
14 | let destination: (D) -> C
15 | @Namespace private var id
16 | @Environment(\.navigationAuthority) private var authority
| `- error: 'Environment' is only available in macOS 10.15 or newer
17 |
18 | func body(content: Content) -> some View {
/Users/admin/builder/spi-builder-workspace/Sources/NavigationStackBackport/Destination.swift:18:38: error: 'View' is only available in macOS 10.15 or newer
11 | }
12 |
13 | private struct DestinationModifier<D: Hashable, C: View>: ViewModifier {
| `- note: add @available attribute to enclosing generic struct
14 | let destination: (D) -> C
15 | @Namespace private var id
16 | @Environment(\.navigationAuthority) private var authority
17 |
18 | 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 | var updated = false
20 |
/Users/admin/builder/spi-builder-workspace/Sources/NavigationStackBackport/Destination.swift:13:52: error: 'View' is only available in macOS 10.15 or newer
11 | }
12 |
13 | private struct DestinationModifier<D: Hashable, C: View>: ViewModifier {
| | `- error: 'View' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing generic struct
14 | let destination: (D) -> C
15 | @Namespace private var id
/Users/admin/builder/spi-builder-workspace/Sources/NavigationStackBackport/Destination.swift:33:41: error: 'AnyView' is only available in macOS 10.15 or newer
30 | }
31 |
32 | struct Destination {
| `- note: add @available attribute to enclosing struct
33 | let view: (NavigationPathItem, Int) -> AnyView?
| `- error: 'AnyView' is only available in macOS 10.15 or newer
34 | let accepts: (NavigationPathItem) -> Bool
35 |
/Users/admin/builder/spi-builder-workspace/Sources/NavigationStackBackport/Destination.swift:36:44: error: 'View' is only available in macOS 10.15 or newer
30 | }
31 |
32 | struct Destination {
| `- note: add @available attribute to enclosing struct
33 | let view: (NavigationPathItem, Int) -> AnyView?
34 | let accepts: (NavigationPathItem) -> Bool
35 |
36 | init<Data>(view: @escaping (Data) -> some View) {
| | `- error: 'View' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing initializer
37 | self.view = { data, contextId in
38 | guard let data = data.valueAs(Data.self) else { return nil }
/Users/admin/builder/spi-builder-workspace/Sources/NavigationStackBackport/Destination.swift:36:44: error: 'View' is only available in macOS 10.15 or newer
30 | }
31 |
32 | struct Destination {
| `- note: add @available attribute to enclosing struct
33 | let view: (NavigationPathItem, Int) -> AnyView?
34 | let accepts: (NavigationPathItem) -> Bool
35 |
36 | init<Data>(view: @escaping (Data) -> some View) {
| | `- error: 'View' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing initializer
37 | self.view = { data, contextId in
38 | guard let data = data.valueAs(Data.self) else { return nil }
/Users/admin/builder/spi-builder-workspace/Sources/NavigationStackBackport/Destination.swift:45:11: error: 'EnvironmentValues' is only available in macOS 10.15 or newer
43 | }
44 |
45 | extension EnvironmentValues {
| | `- error: 'EnvironmentValues' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing extension
46 | var navigationContextId: Int {
47 | get { self[ContextIdKey.self] }
/Users/admin/builder/spi-builder-workspace/Sources/NavigationStackBackport/Destination.swift:53:13: warning: static property 'defaultValue' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
51 |
52 | private struct ContextIdKey: EnvironmentKey {
53 | static var defaultValue = 0
| |- warning: static property 'defaultValue' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'defaultValue' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'defaultValue' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
54 | }
55 |
/Users/admin/builder/spi-builder-workspace/Sources/NavigationStackBackport/Destination.swift:57:13: warning: static property 'defaultValue' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
55 |
56 | struct DestinationIDsKey: PreferenceKey {
57 | static var defaultValue: Set<Namespace.ID> = []
| |- warning: static property 'defaultValue' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'defaultValue' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'defaultValue' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
58 |
59 | static func reduce(value: inout Set<Namespace.ID>, nextValue: () -> Set<Namespace.ID>) {
/Users/admin/builder/spi-builder-workspace/Sources/NavigationStackBackport/Destination.swift:57:31: error: 'Namespace' is only available in macOS 11.0 or newer
54 | }
55 |
56 | struct DestinationIDsKey: PreferenceKey {
| `- note: add @available attribute to enclosing struct
57 | static var defaultValue: Set<Namespace.ID> = []
| | `- error: 'Namespace' is only available in macOS 11.0 or newer
| `- note: add @available attribute to enclosing static property
58 |
59 | static func reduce(value: inout Set<Namespace.ID>, nextValue: () -> Set<Namespace.ID>) {
/Users/admin/builder/spi-builder-workspace/Sources/NavigationStackBackport/Destination.swift:59:38: error: 'Namespace' is only available in macOS 11.0 or newer
54 | }
55 |
56 | struct DestinationIDsKey: PreferenceKey {
| `- note: add @available attribute to enclosing struct
57 | static var defaultValue: Set<Namespace.ID> = []
58 |
59 | static func reduce(value: inout Set<Namespace.ID>, nextValue: () -> Set<Namespace.ID>) {
| | `- error: 'Namespace' is only available in macOS 11.0 or newer
| `- note: add @available attribute to enclosing static method
60 | value = value.union(nextValue())
61 | }
/Users/admin/builder/spi-builder-workspace/Sources/NavigationStackBackport/Destination.swift:59:74: error: 'Namespace' is only available in macOS 11.0 or newer
54 | }
55 |
56 | struct DestinationIDsKey: PreferenceKey {
| `- note: add @available attribute to enclosing struct
57 | static var defaultValue: Set<Namespace.ID> = []
58 |
59 | static func reduce(value: inout Set<Namespace.ID>, nextValue: () -> Set<Namespace.ID>) {
| | `- error: 'Namespace' is only available in macOS 11.0 or newer
| `- note: add @available attribute to enclosing static method
60 | value = value.union(nextValue())
61 | }
/Users/admin/builder/spi-builder-workspace/Sources/NavigationStackBackport/NavigationAuthority.swift:5:33: error: cannot find type 'UINavigationController' in scope
3 |
4 | class NavigationAuthority: NSObject, ObservableObject {
5 | weak var navigationController: UINavigationController? {
| `- error: cannot find type 'UINavigationController' in scope
6 | didSet { navigationController?.delegate = self }
7 | }
/Users/admin/builder/spi-builder-workspace/Sources/NavigationStackBackport/NavigationAuthority.swift:97:52: error: cannot find type 'UINavigationController' in scope
95 |
96 | extension NavigationAuthority: UINavigationControllerDelegate {
97 | func navigationController(_ navigationController: UINavigationController, didShow viewController: UIViewController, animated: Bool) {
| `- error: cannot find type 'UINavigationController' in scope
98 | let count = navigationController.viewControllers.count
99 | defer { viewControllersCount = count }
/Users/admin/builder/spi-builder-workspace/Sources/NavigationStackBackport/NavigationAuthority.swift:97:100: error: cannot find type 'UIViewController' in scope
95 |
96 | extension NavigationAuthority: UINavigationControllerDelegate {
97 | func navigationController(_ navigationController: UINavigationController, didShow viewController: UIViewController, animated: Bool) {
| `- error: cannot find type 'UIViewController' in scope
98 | let count = navigationController.viewControllers.count
99 | defer { viewControllersCount = count }
/Users/admin/builder/spi-builder-workspace/Sources/NavigationStackBackport/NavigationAuthority.swift:9:26: error: 'Namespace' is only available in macOS 11.0 or newer
2 | import SwiftUI
3 |
4 | class NavigationAuthority: NSObject, ObservableObject {
| `- note: add @available attribute to enclosing class
5 | weak var navigationController: UINavigationController? {
6 | didSet { navigationController?.delegate = self }
7 | }
8 |
9 | var destinationIds: Set<Namespace.ID> = [] {
| `- error: 'Namespace' is only available in macOS 11.0 or newer
10 | didSet {
11 | cleanupDestinations(oldValue.subtracting(destinationIds))
/Users/admin/builder/spi-builder-workspace/Sources/NavigationStackBackport/NavigationAuthority.swift:15:24: error: 'Namespace' is only available in macOS 11.0 or newer
2 | import SwiftUI
3 |
4 | class NavigationAuthority: NSObject, ObservableObject {
| `- note: add @available attribute to enclosing class
5 | weak var navigationController: UINavigationController? {
6 | didSet { navigationController?.delegate = self }
:
13 | }
14 |
15 | var presentationIds: [Namespace.ID] = [] {
| `- error: 'Namespace' is only available in macOS 11.0 or newer
16 | didSet {
17 | guard presentationIds.count < oldValue.count else { return }
/Users/admin/builder/spi-builder-workspace/Sources/NavigationStackBackport/NavigationAuthority.swift:22:25: error: 'PassthroughSubject' is only available in macOS 10.15 or newer
2 | import SwiftUI
3 |
4 | class NavigationAuthority: NSObject, ObservableObject {
| `- note: add @available attribute to enclosing class
5 | weak var navigationController: UINavigationController? {
6 | didSet { navigationController?.delegate = self }
:
20 | }
21 |
22 | let pathPopPublisher = PassthroughSubject<Int, Never>()
| `- error: 'PassthroughSubject' is only available in macOS 10.15 or newer
23 | let pathPushPublisher = PassthroughSubject<NavigationPathItem, Never>()
24 | let presentationPopPublisher = PassthroughSubject<Namespace.ID, Never>()
/Users/admin/builder/spi-builder-workspace/Sources/NavigationStackBackport/NavigationAuthority.swift:23:26: error: 'PassthroughSubject' is only available in macOS 10.15 or newer
2 | import SwiftUI
3 |
4 | class NavigationAuthority: NSObject, ObservableObject {
| `- note: add @available attribute to enclosing class
5 | weak var navigationController: UINavigationController? {
6 | didSet { navigationController?.delegate = self }
:
21 |
22 | let pathPopPublisher = PassthroughSubject<Int, Never>()
23 | let pathPushPublisher = PassthroughSubject<NavigationPathItem, Never>()
| `- error: 'PassthroughSubject' is only available in macOS 10.15 or newer
24 | let presentationPopPublisher = PassthroughSubject<Namespace.ID, Never>()
25 | var canNavigate: Bool { navigationController != nil }
/Users/admin/builder/spi-builder-workspace/Sources/NavigationStackBackport/NavigationAuthority.swift:24:33: error: 'PassthroughSubject' is only available in macOS 10.15 or newer
2 | import SwiftUI
3 |
4 | class NavigationAuthority: NSObject, ObservableObject {
| `- note: add @available attribute to enclosing class
5 | weak var navigationController: UINavigationController? {
6 | didSet { navigationController?.delegate = self }
:
22 | let pathPopPublisher = PassthroughSubject<Int, Never>()
23 | let pathPushPublisher = PassthroughSubject<NavigationPathItem, Never>()
24 | let presentationPopPublisher = PassthroughSubject<Namespace.ID, Never>()
| `- error: 'PassthroughSubject' is only available in macOS 10.15 or newer
25 | var canNavigate: Bool { navigationController != nil }
26 |
/Users/admin/builder/spi-builder-workspace/Sources/NavigationStackBackport/NavigationAuthority.swift:28:29: error: 'Namespace' is only available in macOS 11.0 or newer
2 | import SwiftUI
3 |
4 | class NavigationAuthority: NSObject, ObservableObject {
| `- note: add @available attribute to enclosing class
5 | weak var navigationController: UINavigationController? {
6 | didSet { navigationController?.delegate = self }
:
26 |
27 | private var path = NavigationPathBackport(items: [])
28 | private var destinations: [Namespace.ID: Destination] = [:]
| `- error: 'Namespace' is only available in macOS 11.0 or newer
29 | private var presentations: [Namespace.ID: Presentation] = [:]
30 | private var viewControllersCount = 1
/Users/admin/builder/spi-builder-workspace/Sources/NavigationStackBackport/NavigationAuthority.swift:29:30: error: 'Namespace' is only available in macOS 11.0 or newer
2 | import SwiftUI
3 |
4 | class NavigationAuthority: NSObject, ObservableObject {
| `- note: add @available attribute to enclosing class
5 | weak var navigationController: UINavigationController? {
6 | didSet { navigationController?.delegate = self }
:
27 | private var path = NavigationPathBackport(items: [])
28 | private var destinations: [Namespace.ID: Destination] = [:]
29 | private var presentations: [Namespace.ID: Presentation] = [:]
| `- error: 'Namespace' is only available in macOS 11.0 or newer
30 | private var viewControllersCount = 1
31 | }
/Users/admin/builder/spi-builder-workspace/Sources/NavigationStackBackport/NavigationAuthority.swift:34:18: error: 'Namespace' is only available in macOS 11.0 or newer
31 | }
32 |
33 | extension NavigationAuthority {
| `- note: add @available attribute to enclosing extension
34 | func update(id: Namespace.ID, destination: Destination) {
| | `- error: 'Namespace' is only available in macOS 11.0 or newer
| `- note: add @available attribute to enclosing instance method
35 | destinations[id] = destination
36 |
/Users/admin/builder/spi-builder-workspace/Sources/NavigationStackBackport/NavigationAuthority.swift:45:18: error: 'Namespace' is only available in macOS 11.0 or newer
31 | }
32 |
33 | extension NavigationAuthority {
| `- note: add @available attribute to enclosing extension
34 | func update(id: Namespace.ID, destination: Destination) {
35 | destinations[id] = destination
:
43 | }
44 |
45 | func update(id: Namespace.ID, presentation: Presentation) {
| | `- error: 'Namespace' is only available in macOS 11.0 or newer
| `- note: add @available attribute to enclosing instance method
46 | let prevPresentation = presentations[id]
47 | presentations[id] = presentation
/Users/admin/builder/spi-builder-workspace/Sources/NavigationStackBackport/NavigationAuthority.swift:96:32: error: cannot find type 'UINavigationControllerDelegate' in scope
94 | }
95 |
96 | extension NavigationAuthority: UINavigationControllerDelegate {
| `- error: cannot find type 'UINavigationControllerDelegate' in scope
97 | func navigationController(_ navigationController: UINavigationController, didShow viewController: UIViewController, animated: Bool) {
98 | let count = navigationController.viewControllers.count
/Users/admin/builder/spi-builder-workspace/Sources/NavigationStackBackport/NavigationAuthority.swift:114:57: error: 'AnyView' is only available in macOS 10.15 or newer
111 | }
112 |
113 | private extension NavigationAuthority {
| `- note: add @available attribute to enclosing extension
114 | func view(for item: NavigationPathItem, index: Int) -> AnyView {
| | `- error: 'AnyView' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing instance method
115 | for destination in destinations.values {
116 | if let view = destination.view(item, index) {
/Users/admin/builder/spi-builder-workspace/Sources/NavigationStackBackport/NavigationAuthority.swift:129:45: error: 'Namespace' is only available in macOS 11.0 or newer
111 | }
112 |
113 | private extension NavigationAuthority {
| `- note: add @available attribute to enclosing extension
114 | func view(for item: NavigationPathItem, index: Int) -> AnyView {
115 | for destination in destinations.values {
:
127 | }
128 |
129 | func cleanupDestinations(_ removedIds: Set<Namespace.ID>) {
| | `- error: 'Namespace' is only available in macOS 11.0 or newer
| `- note: add @available attribute to enclosing instance method
130 | let removedDestinations = removedIds.map { destinations[$0] }
131 | destinations = destinations.filter { destinationIds.contains($0.key) }
/Users/admin/builder/spi-builder-workspace/Sources/NavigationStackBackport/NavigationAuthority.swift:150:11: error: 'EnvironmentValues' is only available in macOS 10.15 or newer
148 | }
149 |
150 | extension EnvironmentValues {
| | `- error: 'EnvironmentValues' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing extension
151 | var navigationAuthority: NavigationAuthority {
152 | get { self[NavigationAuthorityKey.self] }
/Users/admin/builder/spi-builder-workspace/Sources/NavigationStackBackport/NavigationAuthority.swift:158:13: warning: static property 'defaultValue' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
156 |
157 | private struct NavigationAuthorityKey: EnvironmentKey {
158 | static var defaultValue = NavigationAuthority()
| |- warning: static property 'defaultValue' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'defaultValue' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'defaultValue' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
159 | }
160 |
/Users/admin/builder/spi-builder-workspace/Sources/NavigationStackBackport/NavigationLink.swift:4:19: error: 'AnyView' is only available in macOS 10.15 or newer
1 | import SwiftUI
2 |
3 | public struct NavigationLink<Label: View>: View {
| `- note: add @available attribute to enclosing generic struct
4 | public let body: AnyView
| `- error: 'AnyView' is only available in macOS 10.15 or newer
5 |
6 | public init<P: Hashable>(value: P?, @ViewBuilder label: () -> Label) {
/Users/admin/builder/spi-builder-workspace/Sources/NavigationStackBackport/NavigationLink.swift:6:39: error: 'ViewBuilder' is only available in macOS 10.15 or newer
1 | import SwiftUI
2 |
3 | public struct NavigationLink<Label: View>: View {
| `- note: add @available attribute to enclosing generic struct
4 | public let body: AnyView
5 |
6 | public init<P: Hashable>(value: P?, @ViewBuilder label: () -> Label) {
| | `- error: 'ViewBuilder' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing initializer
7 | if #available(iOS 16.0, *) {
8 | body = AnyView(SwiftUI.NavigationLink(value: value, label: label))
/Users/admin/builder/spi-builder-workspace/Sources/NavigationStackBackport/NavigationLink.swift:14:39: error: 'ViewBuilder' is only available in macOS 10.15 or newer
1 | import SwiftUI
2 |
3 | public struct NavigationLink<Label: View>: View {
| `- note: add @available attribute to enclosing generic struct
4 | public let body: AnyView
5 |
:
12 | }
13 |
14 | public init<P: Hashable>(value: P?, @ViewBuilder label: () -> Label) where P: Codable {
| | `- error: 'ViewBuilder' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing initializer
15 | if #available(iOS 16.0, *) {
16 | body = AnyView(SwiftUI.NavigationLink(value: value, label: label))
/Users/admin/builder/spi-builder-workspace/Sources/NavigationStackBackport/NavigationLink.swift:22:85: error: 'Text' is only available in macOS 10.15 or newer
1 | import SwiftUI
2 |
3 | public struct NavigationLink<Label: View>: View {
| `- note: add @available attribute to enclosing generic struct
4 | public let body: AnyView
5 |
:
20 | }
21 |
22 | public init<P: Hashable>(_ titleKey: LocalizedStringKey, value: P?) where Label == Text {
| | `- error: 'Text' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing initializer
23 | if #available(iOS 16.0, *) {
24 | body = AnyView(SwiftUI.NavigationLink(titleKey, value: value))
/Users/admin/builder/spi-builder-workspace/Sources/NavigationStackBackport/NavigationLink.swift:22:39: error: 'LocalizedStringKey' is only available in macOS 10.15 or newer
1 | import SwiftUI
2 |
3 | public struct NavigationLink<Label: View>: View {
| `- note: add @available attribute to enclosing generic struct
4 | public let body: AnyView
5 |
:
20 | }
21 |
22 | public init<P: Hashable>(_ titleKey: LocalizedStringKey, value: P?) where Label == Text {
| | `- error: 'LocalizedStringKey' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing initializer
23 | if #available(iOS 16.0, *) {
24 | body = AnyView(SwiftUI.NavigationLink(titleKey, value: value))
/Users/admin/builder/spi-builder-workspace/Sources/NavigationStackBackport/NavigationLink.swift:30:85: error: 'Text' is only available in macOS 10.15 or newer
1 | import SwiftUI
2 |
3 | public struct NavigationLink<Label: View>: View {
| `- note: add @available attribute to enclosing generic struct
4 | public let body: AnyView
5 |
:
28 | }
29 |
30 | public init<P: Hashable>(_ titleKey: LocalizedStringKey, value: P?) where Label == Text, P: Codable {
| | `- error: 'Text' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing initializer
31 | if #available(iOS 16.0, *) {
32 | body = AnyView(SwiftUI.NavigationLink(titleKey, value: value))
/Users/admin/builder/spi-builder-workspace/Sources/NavigationStackBackport/NavigationLink.swift:30:39: error: 'LocalizedStringKey' is only available in macOS 10.15 or newer
1 | import SwiftUI
2 |
3 | public struct NavigationLink<Label: View>: View {
| `- note: add @available attribute to enclosing generic struct
4 | public let body: AnyView
5 |
:
28 | }
29 |
30 | public init<P: Hashable>(_ titleKey: LocalizedStringKey, value: P?) where Label == Text, P: Codable {
| | `- error: 'LocalizedStringKey' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing initializer
31 | if #available(iOS 16.0, *) {
32 | body = AnyView(SwiftUI.NavigationLink(titleKey, value: value))
/Users/admin/builder/spi-builder-workspace/Sources/NavigationStackBackport/NavigationLink.swift:38:68: error: 'Text' is only available in macOS 10.15 or newer
1 | import SwiftUI
2 |
3 | public struct NavigationLink<Label: View>: View {
| `- note: add @available attribute to enclosing generic struct
4 | public let body: AnyView
5 |
:
36 | }
37 |
38 | public init<P: Hashable, S>(_ title: S, value: P?) where Label == Text, S: StringProtocol {
| | `- error: 'Text' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing initializer
39 | if #available(iOS 16.0, *) {
40 | body = AnyView(SwiftUI.NavigationLink(title, value: value))
/Users/admin/builder/spi-builder-workspace/Sources/NavigationStackBackport/NavigationLink.swift:46:68: error: 'Text' is only available in macOS 10.15 or newer
1 | import SwiftUI
2 |
3 | public struct NavigationLink<Label: View>: View {
| `- note: add @available attribute to enclosing generic struct
4 | public let body: AnyView
5 |
:
44 | }
45 |
46 | public init<P: Hashable, S>(_ title: S, value: P?) where Label == Text, S: StringProtocol, P: Codable {
| | `- error: 'Text' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing initializer
47 | if #available(iOS 16.0, *) {
48 | body = AnyView(SwiftUI.NavigationLink(title, value: value))
/Users/admin/builder/spi-builder-workspace/Sources/NavigationStackBackport/NavigationLink.swift:3:37: error: 'View' is only available in macOS 10.15 or newer
1 | import SwiftUI
2 |
3 | public struct NavigationLink<Label: View>: View {
| | `- error: 'View' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing generic struct
4 | public let body: AnyView
5 |
/Users/admin/builder/spi-builder-workspace/Sources/NavigationStackBackport/NavigationLink.swift:59:4: error: 'Environment' is only available in macOS 10.15 or newer
54 |
55 | private extension NavigationLink {
56 | struct Backport: View {
| |- note: add @available attribute to enclosing struct
| `- note: add @available attribute to enclosing struct
57 | let label: Label
58 | let item: NavigationPathItem?
59 | @Environment(\.navigationAuthority) private var authority
| `- error: 'Environment' is only available in macOS 10.15 or newer
60 |
61 | var body: some View {
/Users/admin/builder/spi-builder-workspace/Sources/NavigationStackBackport/NavigationLink.swift:61:18: error: 'View' is only available in macOS 10.15 or newer
54 |
55 | private extension NavigationLink {
56 | struct Backport: View {
| `- note: add @available attribute to enclosing struct
57 | let label: Label
58 | let item: NavigationPathItem?
59 | @Environment(\.navigationAuthority) private var authority
60 |
61 | var body: some View {
| | `- error: 'View' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing property
62 | Button {
63 | guard let item else { return }
/Users/admin/builder/spi-builder-workspace/Sources/NavigationStackBackport/NavigationPath.swift:11:27: error: 'NavigationPath' is only available in macOS 13.0 or newer
1 | import SwiftUI
2 |
3 | public struct NavigationPath {
| `- note: add @available attribute to enclosing struct
4 | public var count: Int { box.count }
5 | public var isEmpty: Bool { box.isEmpty }
:
9 |
10 | @available(iOS 16.0, *)
11 | var swiftUIPath: SwiftUI.NavigationPath {
| | `- error: 'NavigationPath' is only available in macOS 13.0 or newer
| `- note: add @available attribute to enclosing property
12 | get { box as! SwiftUI.NavigationPath }
13 | set { box = newValue }
/Users/admin/builder/spi-builder-workspace/Sources/NavigationStackBackport/NavigationPathBox.swift:14:19: error: 'NavigationPath' is only available in macOS 13.0 or newer
12 |
13 | @available(iOS 16.0, *)
14 | extension SwiftUI.NavigationPath: NavigationPathBox {
| | `- error: 'NavigationPath' is only available in macOS 13.0 or newer
| `- note: add @available attribute to enclosing extension
15 | var backportedCodable: NavigationPath.CodableRepresentation? {
16 | codable.map(NavigationPath.CodableRepresentation.init(storage:))
/Users/admin/builder/spi-builder-workspace/Sources/NavigationStackBackport/NavigationStack.swift:4:19: error: 'AnyView' is only available in macOS 10.15 or newer
1 | import SwiftUI
2 |
3 | public struct NavigationStack<Data, Root: View>: View {
| `- note: add @available attribute to enclosing generic struct
4 | public let body: AnyView
| `- error: 'AnyView' is only available in macOS 10.15 or newer
5 |
6 | public init(@ViewBuilder root: () -> Root) where Data == NavigationPath {
/Users/admin/builder/spi-builder-workspace/Sources/NavigationStackBackport/NavigationStack.swift:6:15: error: 'ViewBuilder' is only available in macOS 10.15 or newer
1 | import SwiftUI
2 |
3 | public struct NavigationStack<Data, Root: View>: View {
| `- note: add @available attribute to enclosing generic struct
4 | public let body: AnyView
5 |
6 | public init(@ViewBuilder root: () -> Root) where Data == NavigationPath {
| | `- error: 'ViewBuilder' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing initializer
7 | if #available(iOS 16.0, *) {
8 | body = AnyView(SwiftUI.NavigationStack(root: root))
/Users/admin/builder/spi-builder-workspace/Sources/NavigationStackBackport/NavigationStack.swift:14:20: error: 'Binding' is only available in macOS 10.15 or newer
1 | import SwiftUI
2 |
3 | public struct NavigationStack<Data, Root: View>: View {
| `- note: add @available attribute to enclosing generic struct
4 | public let body: AnyView
5 |
:
12 | }
13 |
14 | public init(path: Binding<NavigationPath>, @ViewBuilder root: () -> Root) where Data == NavigationPath {
| | `- error: 'Binding' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing initializer
15 | if #available(iOS 16.0, *) {
16 | body = AnyView(SwiftUI.NavigationStack(path: path.swiftUIPath, root: root))
/Users/admin/builder/spi-builder-workspace/Sources/NavigationStackBackport/NavigationStack.swift:14:46: error: 'ViewBuilder' is only available in macOS 10.15 or newer
1 | import SwiftUI
2 |
3 | public struct NavigationStack<Data, Root: View>: View {
| `- note: add @available attribute to enclosing generic struct
4 | public let body: AnyView
5 |
:
12 | }
13 |
14 | public init(path: Binding<NavigationPath>, @ViewBuilder root: () -> Root) where Data == NavigationPath {
| | `- error: 'ViewBuilder' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing initializer
15 | if #available(iOS 16.0, *) {
16 | body = AnyView(SwiftUI.NavigationStack(path: path.swiftUIPath, root: root))
/Users/admin/builder/spi-builder-workspace/Sources/NavigationStackBackport/NavigationStack.swift:22:20: error: 'Binding' is only available in macOS 10.15 or newer
1 | import SwiftUI
2 |
3 | public struct NavigationStack<Data, Root: View>: View {
| `- note: add @available attribute to enclosing generic struct
4 | public let body: AnyView
5 |
:
20 | }
21 |
22 | public init(path: Binding<Data>, @ViewBuilder root: () -> Root) where Data: MutableCollection, Data: RandomAccessCollection, Data: RangeReplaceableCollection, Data.Element: Hashable {
| | `- error: 'Binding' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing initializer
23 | if #available(iOS 16.0, *) {
24 | body = AnyView(SwiftUI.NavigationStack(path: path, root: root))
/Users/admin/builder/spi-builder-workspace/Sources/NavigationStackBackport/NavigationStack.swift:22:36: error: 'ViewBuilder' is only available in macOS 10.15 or newer
1 | import SwiftUI
2 |
3 | public struct NavigationStack<Data, Root: View>: View {
| `- note: add @available attribute to enclosing generic struct
4 | public let body: AnyView
5 |
:
20 | }
21 |
22 | public init(path: Binding<Data>, @ViewBuilder root: () -> Root) where Data: MutableCollection, Data: RandomAccessCollection, Data: RangeReplaceableCollection, Data.Element: Hashable {
| | `- error: 'ViewBuilder' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing initializer
23 | if #available(iOS 16.0, *) {
24 | body = AnyView(SwiftUI.NavigationStack(path: path, root: root))
/Users/admin/builder/spi-builder-workspace/Sources/NavigationStackBackport/NavigationStack.swift:3:43: error: 'View' is only available in macOS 10.15 or newer
1 | import SwiftUI
2 |
3 | public struct NavigationStack<Data, Root: View>: View {
| | `- error: 'View' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing generic struct
4 | public let body: AnyView
5 |
/Users/admin/builder/spi-builder-workspace/Sources/NavigationStackBackport/NavigationStack.swift:39:4: error: 'State' is only available in macOS 10.15 or newer
35 |
36 | private extension NavigationStack {
37 | struct ImplicitStateView: View {
| |- note: add @available attribute to enclosing struct
| `- note: add @available attribute to enclosing struct
38 | let root: Root
39 | @State private var path = NavigationPathBackport(items: [])
| `- error: 'State' is only available in macOS 10.15 or newer
40 |
41 | var body: some View {
/Users/admin/builder/spi-builder-workspace/Sources/NavigationStackBackport/NavigationStack.swift:41:18: error: 'View' is only available in macOS 10.15 or newer
35 |
36 | private extension NavigationStack {
37 | struct ImplicitStateView: View {
| `- note: add @available attribute to enclosing struct
38 | let root: Root
39 | @State private var path = NavigationPathBackport(items: [])
40 |
41 | var body: some View {
| | `- error: 'View' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing property
42 | AuthorityView(path: $path, root: root)
43 | }
/Users/admin/builder/spi-builder-workspace/Sources/NavigationStackBackport/NavigationStack.swift:47:4: error: 'Binding' is only available in macOS 10.15 or newer
44 | }
45 |
46 | struct AuthorityView: View {
| |- note: add @available attribute to enclosing struct
| `- note: add @available attribute to enclosing struct
47 | @Binding var path: NavigationPathBackport
| `- error: 'Binding' is only available in macOS 10.15 or newer
48 | let root: Root
49 |
/Users/admin/builder/spi-builder-workspace/Sources/NavigationStackBackport/NavigationStack.swift:50:4: error: 'StateObject' is only available in macOS 11.0 or newer
44 | }
45 |
46 | struct AuthorityView: View {
| |- note: add @available attribute to enclosing struct
| `- note: add @available attribute to enclosing struct
47 | @Binding var path: NavigationPathBackport
48 | let root: Root
49 |
50 | @StateObject private var authority = NavigationAuthority()
| `- error: 'StateObject' is only available in macOS 11.0 or newer
51 |
52 | var body: some View {
/Users/admin/builder/spi-builder-workspace/Sources/NavigationStackBackport/NavigationStack.swift:52:18: error: 'View' is only available in macOS 10.15 or newer
44 | }
45 |
46 | struct AuthorityView: View {
| `- note: add @available attribute to enclosing struct
47 | @Binding var path: NavigationPathBackport
48 | let root: Root
:
50 | @StateObject private var authority = NavigationAuthority()
51 |
52 | var body: some View {
| | `- error: 'View' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing property
53 | UIKitNavigation(root: root.environment(\.navigationContextId, 0), path: path)
54 | .ignoresSafeArea()
/Users/admin/builder/spi-builder-workspace/Sources/NavigationStackBackport/NavigationUpdate.swift:4:24: error: cannot find type 'UIViewController' in scope
2 |
3 | @MainActor struct NavigationUpdate {
4 | var viewControllers: [UIViewController] {
| `- error: cannot find type 'UIViewController' in scope
5 | didSet { changed = true }
6 | }
/Users/admin/builder/spi-builder-workspace/Sources/NavigationStackBackport/NavigationUpdate.swift:8:36: error: cannot find type 'UINavigationController' in scope
6 | }
7 |
8 | private let navigationController: UINavigationController
| `- error: cannot find type 'UINavigationController' in scope
9 | private var addedViewControllers: [UIViewController] = []
10 | private var changed = false
/Users/admin/builder/spi-builder-workspace/Sources/NavigationStackBackport/NavigationUpdate.swift:9:37: error: cannot find type 'UIViewController' in scope
7 |
8 | private let navigationController: UINavigationController
9 | private var addedViewControllers: [UIViewController] = []
| `- error: cannot find type 'UIViewController' in scope
10 | private var changed = false
11 |
/Users/admin/builder/spi-builder-workspace/Sources/NavigationStackBackport/NavigationUpdate.swift:12:29: error: cannot find type 'UINavigationController' in scope
10 | private var changed = false
11 |
12 | init(navigationController: UINavigationController) {
| `- error: cannot find type 'UINavigationController' in scope
13 | self.navigationController = navigationController
14 | viewControllers = navigationController.viewControllers
/Users/admin/builder/spi-builder-workspace/Sources/NavigationStackBackport/NavigationUpdate.swift:17:29: error: 'AnyView' is only available in macOS 10.15 or newer
1 | import SwiftUI
2 |
3 | @MainActor struct NavigationUpdate {
| `- note: add @available attribute to enclosing struct
4 | var viewControllers: [UIViewController] {
5 | didSet { changed = true }
:
15 | }
16 |
17 | mutating func view(_ view: AnyView, at index: Int) {
| | `- error: 'AnyView' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing instance method
18 | changed = true
19 |
/Users/admin/builder/spi-builder-workspace/Sources/NavigationStackBackport/Presentation.swift:4:45: error: 'View' is only available in macOS 10.15 or newer
1 | import SwiftUI
2 |
3 | public extension Backport {
| `- note: add @available attribute to enclosing extension
4 | @ViewBuilder func navigationDestination<C: View>(isPresented: Binding<Bool>, @ViewBuilder destination: () -> C) -> some View {
| | `- error: 'View' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing instance method
5 | if #available(iOS 16.0, *) {
6 | content.navigationDestination(isPresented: isPresented, destination: destination)
/Users/admin/builder/spi-builder-workspace/Sources/NavigationStackBackport/Presentation.swift:4:64: error: 'Binding' is only available in macOS 10.15 or newer
1 | import SwiftUI
2 |
3 | public extension Backport {
| `- note: add @available attribute to enclosing extension
4 | @ViewBuilder func navigationDestination<C: View>(isPresented: Binding<Bool>, @ViewBuilder destination: () -> C) -> some View {
| | `- error: 'Binding' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing instance method
5 | if #available(iOS 16.0, *) {
6 | content.navigationDestination(isPresented: isPresented, destination: destination)
/Users/admin/builder/spi-builder-workspace/Sources/NavigationStackBackport/Presentation.swift:4:80: error: 'ViewBuilder' is only available in macOS 10.15 or newer
1 | import SwiftUI
2 |
3 | public extension Backport {
| `- note: add @available attribute to enclosing extension
4 | @ViewBuilder func navigationDestination<C: View>(isPresented: Binding<Bool>, @ViewBuilder destination: () -> C) -> some View {
| | `- error: 'ViewBuilder' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing instance method
5 | if #available(iOS 16.0, *) {
6 | content.navigationDestination(isPresented: isPresented, destination: destination)
/Users/admin/builder/spi-builder-workspace/Sources/NavigationStackBackport/Presentation.swift:4:122: error: 'View' is only available in macOS 10.15 or newer
1 | import SwiftUI
2 |
3 | public extension Backport {
| `- note: add @available attribute to enclosing extension
4 | @ViewBuilder func navigationDestination<C: View>(isPresented: Binding<Bool>, @ViewBuilder destination: () -> C) -> some View {
| | `- error: 'View' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing instance method
5 | if #available(iOS 16.0, *) {
6 | content.navigationDestination(isPresented: isPresented, destination: destination)
/Users/admin/builder/spi-builder-workspace/Sources/NavigationStackBackport/Presentation.swift:4:3: error: 'ViewBuilder' is only available in macOS 10.15 or newer
1 | import SwiftUI
2 |
3 | public extension Backport {
| `- note: add @available attribute to enclosing extension
4 | @ViewBuilder func navigationDestination<C: View>(isPresented: Binding<Bool>, @ViewBuilder destination: () -> C) -> some View {
| | `- note: add @available attribute to enclosing instance method
| `- error: 'ViewBuilder' is only available in macOS 10.15 or newer
5 | if #available(iOS 16.0, *) {
6 | content.navigationDestination(isPresented: isPresented, destination: destination)
/Users/admin/builder/spi-builder-workspace/Sources/NavigationStackBackport/Presentation.swift:12:58: error: 'View' is only available in macOS 10.15 or newer
1 | import SwiftUI
2 |
3 | public extension Backport {
| `- note: add @available attribute to enclosing extension
4 | @ViewBuilder func navigationDestination<C: View>(isPresented: Binding<Bool>, @ViewBuilder destination: () -> C) -> some View {
5 | if #available(iOS 16.0, *) {
:
10 | }
11 |
12 | @ViewBuilder func navigationDestination<D: Hashable, C: View>(
| | `- error: 'View' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing instance method
13 | item: Binding<D?>,
14 | @ViewBuilder destination: @escaping (D) -> C
/Users/admin/builder/spi-builder-workspace/Sources/NavigationStackBackport/Presentation.swift:13:9: error: 'Binding' is only available in macOS 10.15 or newer
1 | import SwiftUI
2 |
3 | public extension Backport {
| `- note: add @available attribute to enclosing extension
4 | @ViewBuilder func navigationDestination<C: View>(isPresented: Binding<Bool>, @ViewBuilder destination: () -> C) -> some View {
5 | if #available(iOS 16.0, *) {
:
10 | }
11 |
12 | @ViewBuilder func navigationDestination<D: Hashable, C: View>(
| `- note: add @available attribute to enclosing instance method
13 | item: Binding<D?>,
| `- error: 'Binding' is only available in macOS 10.15 or newer
14 | @ViewBuilder destination: @escaping (D) -> C
15 | ) -> some View {
/Users/admin/builder/spi-builder-workspace/Sources/NavigationStackBackport/Presentation.swift:14:4: error: 'ViewBuilder' is only available in macOS 10.15 or newer
1 | import SwiftUI
2 |
3 | public extension Backport {
| `- note: add @available attribute to enclosing extension
4 | @ViewBuilder func navigationDestination<C: View>(isPresented: Binding<Bool>, @ViewBuilder destination: () -> C) -> some View {
5 | if #available(iOS 16.0, *) {
:
10 | }
11 |
12 | @ViewBuilder func navigationDestination<D: Hashable, C: View>(
| `- note: add @available attribute to enclosing instance method
13 | item: Binding<D?>,
14 | @ViewBuilder destination: @escaping (D) -> C
| `- error: 'ViewBuilder' is only available in macOS 10.15 or newer
15 | ) -> some View {
16 | if #available(iOS 17.0, *) {
/Users/admin/builder/spi-builder-workspace/Sources/NavigationStackBackport/Presentation.swift:15:12: error: 'View' is only available in macOS 10.15 or newer
1 | import SwiftUI
2 |
3 | public extension Backport {
| `- note: add @available attribute to enclosing extension
4 | @ViewBuilder func navigationDestination<C: View>(isPresented: Binding<Bool>, @ViewBuilder destination: () -> C) -> some View {
5 | if #available(iOS 16.0, *) {
:
10 | }
11 |
12 | @ViewBuilder func navigationDestination<D: Hashable, C: View>(
| `- note: add @available attribute to enclosing instance method
13 | item: Binding<D?>,
14 | @ViewBuilder destination: @escaping (D) -> C
15 | ) -> some View {
| `- error: 'View' is only available in macOS 10.15 or newer
16 | if #available(iOS 17.0, *) {
17 | content.navigationDestination(item: item, destination: destination)
/Users/admin/builder/spi-builder-workspace/Sources/NavigationStackBackport/Presentation.swift:12:3: error: 'ViewBuilder' is only available in macOS 10.15 or newer
1 | import SwiftUI
2 |
3 | public extension Backport {
| `- note: add @available attribute to enclosing extension
4 | @ViewBuilder func navigationDestination<C: View>(isPresented: Binding<Bool>, @ViewBuilder destination: () -> C) -> some View {
5 | if #available(iOS 16.0, *) {
:
10 | }
11 |
12 | @ViewBuilder func navigationDestination<D: Hashable, C: View>(
| | `- note: add @available attribute to enclosing instance method
| `- error: 'ViewBuilder' is only available in macOS 10.15 or newer
13 | item: Binding<D?>,
14 | @ViewBuilder destination: @escaping (D) -> C
/Users/admin/builder/spi-builder-workspace/Sources/NavigationStackBackport/Presentation.swift:25:3: error: 'Binding' is only available in macOS 10.15 or newer
22 | }
23 |
24 | private struct PresentationModifier<C: View>: ViewModifier {
| `- note: add @available attribute to enclosing generic struct
25 | @Binding var isPresented: Bool
| `- error: 'Binding' is only available in macOS 10.15 or newer
26 | let destination: C
27 |
/Users/admin/builder/spi-builder-workspace/Sources/NavigationStackBackport/Presentation.swift:28:3: error: 'Namespace' is only available in macOS 11.0 or newer
22 | }
23 |
24 | private struct PresentationModifier<C: View>: ViewModifier {
| `- note: add @available attribute to enclosing generic struct
25 | @Binding var isPresented: Bool
26 | let destination: C
27 |
28 | @Namespace private var id
| `- error: 'Namespace' is only available in macOS 11.0 or newer
29 | @Environment(\.navigationContextId) private var contextId
30 | @Environment(\.navigationAuthority) private var authority
/Users/admin/builder/spi-builder-workspace/Sources/NavigationStackBackport/Presentation.swift:29:3: error: 'Environment' is only available in macOS 10.15 or newer
22 | }
23 |
24 | private struct PresentationModifier<C: View>: ViewModifier {
| `- note: add @available attribute to enclosing generic struct
25 | @Binding var isPresented: Bool
26 | let destination: C
27 |
28 | @Namespace private var id
29 | @Environment(\.navigationContextId) private var contextId
| `- error: 'Environment' is only available in macOS 10.15 or newer
30 | @Environment(\.navigationAuthority) private var authority
31 |
/Users/admin/builder/spi-builder-workspace/Sources/NavigationStackBackport/Presentation.swift:30:3: error: 'Environment' is only available in macOS 10.15 or newer
22 | }
23 |
24 | private struct PresentationModifier<C: View>: ViewModifier {
| `- note: add @available attribute to enclosing generic struct
25 | @Binding var isPresented: Bool
26 | let destination: C
:
28 | @Namespace private var id
29 | @Environment(\.navigationContextId) private var contextId
30 | @Environment(\.navigationAuthority) private var authority
| `- error: 'Environment' is only available in macOS 10.15 or newer
31 |
32 | func body(content: Content) -> some View {
/Users/admin/builder/spi-builder-workspace/Sources/NavigationStackBackport/Presentation.swift:32:38: error: 'View' is only available in macOS 10.15 or newer
22 | }
23 |
24 | private struct PresentationModifier<C: View>: ViewModifier {
| `- note: add @available attribute to enclosing generic struct
25 | @Binding var isPresented: Bool
26 | let destination: C
:
30 | @Environment(\.navigationAuthority) private var authority
31 |
32 | 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
33 | var updated = false
34 |
/Users/admin/builder/spi-builder-workspace/Sources/NavigationStackBackport/Presentation.swift:24:40: error: 'View' is only available in macOS 10.15 or newer
22 | }
23 |
24 | private struct PresentationModifier<C: View>: ViewModifier {
| | `- error: 'View' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing generic struct
25 | @Binding var isPresented: Bool
26 | let destination: C
/Users/admin/builder/spi-builder-workspace/Sources/NavigationStackBackport/Presentation.swift:51:3: error: 'Binding' is only available in macOS 10.15 or newer
48 | }
49 |
50 | private struct ItemPresentationModifier<D: Hashable, C: View>: ViewModifier {
| `- note: add @available attribute to enclosing generic struct
51 | @Binding var item: D?
| `- error: 'Binding' is only available in macOS 10.15 or newer
52 | let destination: (D) -> C
53 |
/Users/admin/builder/spi-builder-workspace/Sources/NavigationStackBackport/Presentation.swift:54:38: error: 'View' is only available in macOS 10.15 or newer
48 | }
49 |
50 | private struct ItemPresentationModifier<D: Hashable, C: View>: ViewModifier {
| `- note: add @available attribute to enclosing generic struct
51 | @Binding var item: D?
52 | let destination: (D) -> C
53 |
54 | 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
55 | let isPresented = Binding {
56 | item != nil
/Users/admin/builder/spi-builder-workspace/Sources/NavigationStackBackport/Presentation.swift:50:57: error: 'View' is only available in macOS 10.15 or newer
48 | }
49 |
50 | private struct ItemPresentationModifier<D: Hashable, C: View>: ViewModifier {
| | `- error: 'View' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing generic struct
51 | @Binding var item: D?
52 | let destination: (D) -> C
/Users/admin/builder/spi-builder-workspace/Sources/NavigationStackBackport/Presentation.swift:74:12: error: 'AnyView' is only available in macOS 10.15 or newer
69 | }
70 |
71 | struct Presentation {
| `- note: add @available attribute to enclosing struct
72 | let contextId: Int
73 | let isPresented: Bool
74 | let view: AnyView
| `- error: 'AnyView' is only available in macOS 10.15 or newer
75 |
76 | init(contextId: Int, isPresented: Bool, view: some View) {
/Users/admin/builder/spi-builder-workspace/Sources/NavigationStackBackport/Presentation.swift:76:53: error: 'View' is only available in macOS 10.15 or newer
69 | }
70 |
71 | struct Presentation {
| `- note: add @available attribute to enclosing struct
72 | let contextId: Int
73 | let isPresented: Bool
74 | let view: AnyView
75 |
76 | init(contextId: Int, isPresented: Bool, view: some View) {
| | `- error: 'View' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing initializer
77 | self.contextId = contextId
78 | self.isPresented = isPresented
/Users/admin/builder/spi-builder-workspace/Sources/NavigationStackBackport/Presentation.swift:76:53: error: 'View' is only available in macOS 10.15 or newer
69 | }
70 |
71 | struct Presentation {
| `- note: add @available attribute to enclosing struct
72 | let contextId: Int
73 | let isPresented: Bool
74 | let view: AnyView
75 |
76 | init(contextId: Int, isPresented: Bool, view: some View) {
| | `- error: 'View' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing initializer
77 | self.contextId = contextId
78 | self.isPresented = isPresented
/Users/admin/builder/spi-builder-workspace/Sources/NavigationStackBackport/Presentation.swift:84:13: warning: static property 'defaultValue' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
82 |
83 | struct PresentationIDsKey: PreferenceKey {
84 | static var defaultValue: [Namespace.ID] = []
| |- warning: static property 'defaultValue' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'defaultValue' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'defaultValue' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
85 |
86 | static func reduce(value: inout [Namespace.ID], nextValue: () -> [Namespace.ID]) {
/Users/admin/builder/spi-builder-workspace/Sources/NavigationStackBackport/Presentation.swift:84:28: error: 'Namespace' is only available in macOS 11.0 or newer
81 | }
82 |
83 | struct PresentationIDsKey: PreferenceKey {
| `- note: add @available attribute to enclosing struct
84 | static var defaultValue: [Namespace.ID] = []
| | `- error: 'Namespace' is only available in macOS 11.0 or newer
| `- note: add @available attribute to enclosing static property
85 |
86 | static func reduce(value: inout [Namespace.ID], nextValue: () -> [Namespace.ID]) {
/Users/admin/builder/spi-builder-workspace/Sources/NavigationStackBackport/Presentation.swift:86:35: error: 'Namespace' is only available in macOS 11.0 or newer
81 | }
82 |
83 | struct PresentationIDsKey: PreferenceKey {
| `- note: add @available attribute to enclosing struct
84 | static var defaultValue: [Namespace.ID] = []
85 |
86 | static func reduce(value: inout [Namespace.ID], nextValue: () -> [Namespace.ID]) {
| | `- error: 'Namespace' is only available in macOS 11.0 or newer
| `- note: add @available attribute to enclosing static method
87 | value += nextValue()
88 | }
/Users/admin/builder/spi-builder-workspace/Sources/NavigationStackBackport/Presentation.swift:86:68: error: 'Namespace' is only available in macOS 11.0 or newer
81 | }
82 |
83 | struct PresentationIDsKey: PreferenceKey {
| `- note: add @available attribute to enclosing struct
84 | static var defaultValue: [Namespace.ID] = []
85 |
86 | static func reduce(value: inout [Namespace.ID], nextValue: () -> [Namespace.ID]) {
| | `- error: 'Namespace' is only available in macOS 11.0 or newer
| `- note: add @available attribute to enclosing static method
87 | value += nextValue()
88 | }
/Users/admin/builder/spi-builder-workspace/Sources/NavigationStackBackport/UIKitNavigation.swift:6:3: error: 'Environment' is only available in macOS 10.15 or newer
1 | import SwiftUI
2 |
3 | struct UIKitNavigation<Root: View>: UIViewControllerRepresentable {
| `- note: add @available attribute to enclosing generic struct
4 | let root: Root
5 | let path: NavigationPathBackport
6 | @Environment(\.navigationAuthority) private var authority
| `- error: 'Environment' is only available in macOS 10.15 or newer
7 |
8 | func makeUIViewController(context: Context) -> UINavigationController {
/Users/admin/builder/spi-builder-workspace/Sources/NavigationStackBackport/UIKitNavigation.swift:8:49: error: cannot find type 'UINavigationController' in scope
6 | @Environment(\.navigationAuthority) private var authority
7 |
8 | func makeUIViewController(context: Context) -> UINavigationController {
| `- error: cannot find type 'UINavigationController' in scope
9 | let navigationController = UINavigationController()
10 | navigationController.navigationBar.prefersLargeTitles = true
/Users/admin/builder/spi-builder-workspace/Sources/NavigationStackBackport/UIKitNavigation.swift:8:37: error: cannot find type 'Context' in scope
6 | @Environment(\.navigationAuthority) private var authority
7 |
8 | func makeUIViewController(context: Context) -> UINavigationController {
| `- error: cannot find type 'Context' in scope
9 | let navigationController = UINavigationController()
10 | navigationController.navigationBar.prefersLargeTitles = true
/Users/admin/builder/spi-builder-workspace/Sources/NavigationStackBackport/UIKitNavigation.swift:17:54: error: cannot find type 'UINavigationController' in scope
15 | }
16 |
17 | func updateUIViewController(_ navigationController: UINavigationController, context: Context) {
| `- error: cannot find type 'UINavigationController' in scope
18 | if !navigationController.viewControllers.isEmpty, let hostingController = navigationController.viewControllers[0] as? UIHostingController<Root> {
19 | hostingController.rootView = root
/Users/admin/builder/spi-builder-workspace/Sources/NavigationStackBackport/UIKitNavigation.swift:17:87: error: cannot find type 'Context' in scope
15 | }
16 |
17 | func updateUIViewController(_ navigationController: UINavigationController, context: Context) {
| `- error: cannot find type 'Context' in scope
18 | if !navigationController.viewControllers.isEmpty, let hostingController = navigationController.viewControllers[0] as? UIHostingController<Root> {
19 | hostingController.rootView = root
/Users/admin/builder/spi-builder-workspace/Sources/NavigationStackBackport/UIKitNavigation.swift:3:37: error: cannot find type 'UIViewControllerRepresentable' in scope
1 | import SwiftUI
2 |
3 | struct UIKitNavigation<Root: View>: UIViewControllerRepresentable {
| `- error: cannot find type 'UIViewControllerRepresentable' in scope
4 | let root: Root
5 | let path: NavigationPathBackport
/Users/admin/builder/spi-builder-workspace/Sources/NavigationStackBackport/UIKitNavigation.swift:3:30: error: 'View' is only available in macOS 10.15 or newer
1 | import SwiftUI
2 |
3 | struct UIKitNavigation<Root: View>: UIViewControllerRepresentable {
| | `- error: 'View' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing generic struct
4 | let root: Root
5 | let path: NavigationPathBackport
/Users/admin/builder/spi-builder-workspace/Sources/NavigationStackBackport/UIKitNavigation.swift:31:37: error: cannot find type 'UIHostingController' in scope
29 |
30 | private extension UIKitNavigation {
31 | func prelayout(rootViewController: UIHostingController<Root>, navigationController: UINavigationController) {
| `- error: cannot find type 'UIHostingController' in scope
32 | navigationController.view.insertSubview(rootViewController.view, at: 0)
33 | navigationController.addChild(rootViewController)
/Users/admin/builder/spi-builder-workspace/Sources/NavigationStackBackport/UIKitNavigation.swift:31:86: error: cannot find type 'UINavigationController' in scope
29 |
30 | private extension UIKitNavigation {
31 | func prelayout(rootViewController: UIHostingController<Root>, navigationController: UINavigationController) {
| `- error: cannot find type 'UINavigationController' in scope
32 | navigationController.view.insertSubview(rootViewController.view, at: 0)
33 | navigationController.addChild(rootViewController)
[12/16] Compiling NavigationStackBackport NavigationPathItem.swift
[13/16] Compiling NavigationStackBackport NavigationPathBox.swift
/Users/admin/builder/spi-builder-workspace/Sources/NavigationStackBackport/NavigationPathBox.swift:14:19: error: 'NavigationPath' is only available in macOS 13.0 or newer
12 |
13 | @available(iOS 16.0, *)
14 | extension SwiftUI.NavigationPath: NavigationPathBox {
| | `- error: 'NavigationPath' is only available in macOS 13.0 or newer
| `- note: add @available attribute to enclosing extension
15 | var backportedCodable: NavigationPath.CodableRepresentation? {
16 | codable.map(NavigationPath.CodableRepresentation.init(storage:))
[14/16] Compiling NavigationStackBackport NavigationLink.swift
/Users/admin/builder/spi-builder-workspace/Sources/NavigationStackBackport/NavigationLink.swift:4:19: error: 'AnyView' is only available in macOS 10.15 or newer
1 | import SwiftUI
2 |
3 | public struct NavigationLink<Label: View>: View {
| `- note: add @available attribute to enclosing generic struct
4 | public let body: AnyView
| `- error: 'AnyView' is only available in macOS 10.15 or newer
5 |
6 | public init<P: Hashable>(value: P?, @ViewBuilder label: () -> Label) {
/Users/admin/builder/spi-builder-workspace/Sources/NavigationStackBackport/NavigationLink.swift:6:39: error: 'ViewBuilder' is only available in macOS 10.15 or newer
1 | import SwiftUI
2 |
3 | public struct NavigationLink<Label: View>: View {
| `- note: add @available attribute to enclosing generic struct
4 | public let body: AnyView
5 |
6 | public init<P: Hashable>(value: P?, @ViewBuilder label: () -> Label) {
| | `- error: 'ViewBuilder' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing initializer
7 | if #available(iOS 16.0, *) {
8 | body = AnyView(SwiftUI.NavigationLink(value: value, label: label))
/Users/admin/builder/spi-builder-workspace/Sources/NavigationStackBackport/NavigationLink.swift:14:39: error: 'ViewBuilder' is only available in macOS 10.15 or newer
1 | import SwiftUI
2 |
3 | public struct NavigationLink<Label: View>: View {
| `- note: add @available attribute to enclosing generic struct
4 | public let body: AnyView
5 |
:
12 | }
13 |
14 | public init<P: Hashable>(value: P?, @ViewBuilder label: () -> Label) where P: Codable {
| | `- error: 'ViewBuilder' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing initializer
15 | if #available(iOS 16.0, *) {
16 | body = AnyView(SwiftUI.NavigationLink(value: value, label: label))
/Users/admin/builder/spi-builder-workspace/Sources/NavigationStackBackport/NavigationLink.swift:22:85: error: 'Text' is only available in macOS 10.15 or newer
1 | import SwiftUI
2 |
3 | public struct NavigationLink<Label: View>: View {
| `- note: add @available attribute to enclosing generic struct
4 | public let body: AnyView
5 |
:
20 | }
21 |
22 | public init<P: Hashable>(_ titleKey: LocalizedStringKey, value: P?) where Label == Text {
| | `- error: 'Text' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing initializer
23 | if #available(iOS 16.0, *) {
24 | body = AnyView(SwiftUI.NavigationLink(titleKey, value: value))
/Users/admin/builder/spi-builder-workspace/Sources/NavigationStackBackport/NavigationLink.swift:22:39: error: 'LocalizedStringKey' is only available in macOS 10.15 or newer
1 | import SwiftUI
2 |
3 | public struct NavigationLink<Label: View>: View {
| `- note: add @available attribute to enclosing generic struct
4 | public let body: AnyView
5 |
:
20 | }
21 |
22 | public init<P: Hashable>(_ titleKey: LocalizedStringKey, value: P?) where Label == Text {
| | `- error: 'LocalizedStringKey' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing initializer
23 | if #available(iOS 16.0, *) {
24 | body = AnyView(SwiftUI.NavigationLink(titleKey, value: value))
/Users/admin/builder/spi-builder-workspace/Sources/NavigationStackBackport/NavigationLink.swift:30:85: error: 'Text' is only available in macOS 10.15 or newer
1 | import SwiftUI
2 |
3 | public struct NavigationLink<Label: View>: View {
| `- note: add @available attribute to enclosing generic struct
4 | public let body: AnyView
5 |
:
28 | }
29 |
30 | public init<P: Hashable>(_ titleKey: LocalizedStringKey, value: P?) where Label == Text, P: Codable {
| | `- error: 'Text' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing initializer
31 | if #available(iOS 16.0, *) {
32 | body = AnyView(SwiftUI.NavigationLink(titleKey, value: value))
/Users/admin/builder/spi-builder-workspace/Sources/NavigationStackBackport/NavigationLink.swift:30:39: error: 'LocalizedStringKey' is only available in macOS 10.15 or newer
1 | import SwiftUI
2 |
3 | public struct NavigationLink<Label: View>: View {
| `- note: add @available attribute to enclosing generic struct
4 | public let body: AnyView
5 |
:
28 | }
29 |
30 | public init<P: Hashable>(_ titleKey: LocalizedStringKey, value: P?) where Label == Text, P: Codable {
| | `- error: 'LocalizedStringKey' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing initializer
31 | if #available(iOS 16.0, *) {
32 | body = AnyView(SwiftUI.NavigationLink(titleKey, value: value))
/Users/admin/builder/spi-builder-workspace/Sources/NavigationStackBackport/NavigationLink.swift:38:68: error: 'Text' is only available in macOS 10.15 or newer
1 | import SwiftUI
2 |
3 | public struct NavigationLink<Label: View>: View {
| `- note: add @available attribute to enclosing generic struct
4 | public let body: AnyView
5 |
:
36 | }
37 |
38 | public init<P: Hashable, S>(_ title: S, value: P?) where Label == Text, S: StringProtocol {
| | `- error: 'Text' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing initializer
39 | if #available(iOS 16.0, *) {
40 | body = AnyView(SwiftUI.NavigationLink(title, value: value))
/Users/admin/builder/spi-builder-workspace/Sources/NavigationStackBackport/NavigationLink.swift:46:68: error: 'Text' is only available in macOS 10.15 or newer
1 | import SwiftUI
2 |
3 | public struct NavigationLink<Label: View>: View {
| `- note: add @available attribute to enclosing generic struct
4 | public let body: AnyView
5 |
:
44 | }
45 |
46 | public init<P: Hashable, S>(_ title: S, value: P?) where Label == Text, S: StringProtocol, P: Codable {
| | `- error: 'Text' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing initializer
47 | if #available(iOS 16.0, *) {
48 | body = AnyView(SwiftUI.NavigationLink(title, value: value))
/Users/admin/builder/spi-builder-workspace/Sources/NavigationStackBackport/NavigationLink.swift:3:37: error: 'View' is only available in macOS 10.15 or newer
1 | import SwiftUI
2 |
3 | public struct NavigationLink<Label: View>: View {
| | `- error: 'View' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing generic struct
4 | public let body: AnyView
5 |
/Users/admin/builder/spi-builder-workspace/Sources/NavigationStackBackport/NavigationLink.swift:59:4: error: 'Environment' is only available in macOS 10.15 or newer
54 |
55 | private extension NavigationLink {
56 | struct Backport: View {
| |- note: add @available attribute to enclosing struct
| `- note: add @available attribute to enclosing struct
57 | let label: Label
58 | let item: NavigationPathItem?
59 | @Environment(\.navigationAuthority) private var authority
| `- error: 'Environment' is only available in macOS 10.15 or newer
60 |
61 | var body: some View {
/Users/admin/builder/spi-builder-workspace/Sources/NavigationStackBackport/NavigationLink.swift:61:18: error: 'View' is only available in macOS 10.15 or newer
54 |
55 | private extension NavigationLink {
56 | struct Backport: View {
| `- note: add @available attribute to enclosing struct
57 | let label: Label
58 | let item: NavigationPathItem?
59 | @Environment(\.navigationAuthority) private var authority
60 |
61 | var body: some View {
| | `- error: 'View' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing property
62 | Button {
63 | guard let item else { return }
/Users/admin/builder/spi-builder-workspace/Sources/NavigationStackBackport/NavigationLink.swift:8:11: error: 'AnyView' is only available in macOS 10.15 or newer
1 | import SwiftUI
2 |
3 | public struct NavigationLink<Label: View>: View {
| `- note: add @available attribute to enclosing generic struct
4 | public let body: AnyView
5 |
6 | public init<P: Hashable>(value: P?, @ViewBuilder label: () -> Label) {
| `- note: add @available attribute to enclosing initializer
7 | if #available(iOS 16.0, *) {
8 | body = AnyView(SwiftUI.NavigationLink(value: value, label: label))
| |- error: 'AnyView' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
9 | } else {
10 | body = AnyView(Backport(label: label(), item: value.map { .init(value: $0) }))
/Users/admin/builder/spi-builder-workspace/Sources/NavigationStackBackport/NavigationLink.swift:8:11: warning: conformance of 'Never' to 'View' is only available in macOS 10.15 or newer; this is an error in the Swift 6 language mode
1 | import SwiftUI
2 |
3 | public struct NavigationLink<Label: View>: View {
| `- note: add @available attribute to enclosing generic struct
4 | public let body: AnyView
5 |
6 | public init<P: Hashable>(value: P?, @ViewBuilder label: () -> Label) {
| `- note: add @available attribute to enclosing initializer
7 | if #available(iOS 16.0, *) {
8 | body = AnyView(SwiftUI.NavigationLink(value: value, label: label))
| |- warning: conformance of 'Never' 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
9 | } else {
10 | body = AnyView(Backport(label: label(), item: value.map { .init(value: $0) }))
/Users/admin/builder/spi-builder-workspace/Sources/NavigationStackBackport/NavigationLink.swift:8:27: error: 'NavigationLink' is only available in macOS 10.15 or newer
1 | import SwiftUI
2 |
3 | public struct NavigationLink<Label: View>: View {
| `- note: add @available attribute to enclosing generic struct
4 | public let body: AnyView
5 |
6 | public init<P: Hashable>(value: P?, @ViewBuilder label: () -> Label) {
| `- note: add @available attribute to enclosing initializer
7 | if #available(iOS 16.0, *) {
8 | body = AnyView(SwiftUI.NavigationLink(value: value, label: label))
| |- error: 'NavigationLink' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
9 | } else {
10 | body = AnyView(Backport(label: label(), item: value.map { .init(value: $0) }))
/Users/admin/builder/spi-builder-workspace/Sources/NavigationStackBackport/NavigationLink.swift:8:27: error: 'init(value:label:)' is only available in macOS 13.0 or newer
1 | import SwiftUI
2 |
3 | public struct NavigationLink<Label: View>: View {
| `- note: add @available attribute to enclosing generic struct
4 | public let body: AnyView
5 |
6 | public init<P: Hashable>(value: P?, @ViewBuilder label: () -> Label) {
| `- note: add @available attribute to enclosing initializer
7 | if #available(iOS 16.0, *) {
8 | body = AnyView(SwiftUI.NavigationLink(value: value, label: label))
| |- error: 'init(value:label:)' is only available in macOS 13.0 or newer
| `- note: add 'if #available' version check
9 | } else {
10 | body = AnyView(Backport(label: label(), item: value.map { .init(value: $0) }))
/Users/admin/builder/spi-builder-workspace/Sources/NavigationStackBackport/NavigationLink.swift:16:11: error: 'AnyView' is only available in macOS 10.15 or newer
1 | import SwiftUI
2 |
3 | public struct NavigationLink<Label: View>: View {
| `- note: add @available attribute to enclosing generic struct
4 | public let body: AnyView
5 |
:
12 | }
13 |
14 | public init<P: Hashable>(value: P?, @ViewBuilder label: () -> Label) where P: Codable {
| `- note: add @available attribute to enclosing initializer
15 | if #available(iOS 16.0, *) {
16 | body = AnyView(SwiftUI.NavigationLink(value: value, label: label))
| |- error: 'AnyView' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
17 | } else {
18 | body = AnyView(Backport(label: label(), item: value.map { .init(value: $0) }))
/Users/admin/builder/spi-builder-workspace/Sources/NavigationStackBackport/NavigationLink.swift:16:11: warning: conformance of 'Never' to 'View' is only available in macOS 10.15 or newer; this is an error in the Swift 6 language mode
1 | import SwiftUI
2 |
3 | public struct NavigationLink<Label: View>: View {
| `- note: add @available attribute to enclosing generic struct
4 | public let body: AnyView
5 |
:
12 | }
13 |
14 | public init<P: Hashable>(value: P?, @ViewBuilder label: () -> Label) where P: Codable {
| `- note: add @available attribute to enclosing initializer
15 | if #available(iOS 16.0, *) {
16 | body = AnyView(SwiftUI.NavigationLink(value: value, label: label))
| |- warning: conformance of 'Never' 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
17 | } else {
18 | body = AnyView(Backport(label: label(), item: value.map { .init(value: $0) }))
/Users/admin/builder/spi-builder-workspace/Sources/NavigationStackBackport/NavigationLink.swift:16:27: error: 'NavigationLink' is only available in macOS 10.15 or newer
1 | import SwiftUI
2 |
3 | public struct NavigationLink<Label: View>: View {
| `- note: add @available attribute to enclosing generic struct
4 | public let body: AnyView
5 |
:
12 | }
13 |
14 | public init<P: Hashable>(value: P?, @ViewBuilder label: () -> Label) where P: Codable {
| `- note: add @available attribute to enclosing initializer
15 | if #available(iOS 16.0, *) {
16 | body = AnyView(SwiftUI.NavigationLink(value: value, label: label))
| |- error: 'NavigationLink' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
17 | } else {
18 | body = AnyView(Backport(label: label(), item: value.map { .init(value: $0) }))
/Users/admin/builder/spi-builder-workspace/Sources/NavigationStackBackport/NavigationLink.swift:16:27: error: 'init(value:label:)' is only available in macOS 13.0 or newer
1 | import SwiftUI
2 |
3 | public struct NavigationLink<Label: View>: View {
| `- note: add @available attribute to enclosing generic struct
4 | public let body: AnyView
5 |
:
12 | }
13 |
14 | public init<P: Hashable>(value: P?, @ViewBuilder label: () -> Label) where P: Codable {
| `- note: add @available attribute to enclosing initializer
15 | if #available(iOS 16.0, *) {
16 | body = AnyView(SwiftUI.NavigationLink(value: value, label: label))
| |- error: 'init(value:label:)' is only available in macOS 13.0 or newer
| `- note: add 'if #available' version check
17 | } else {
18 | body = AnyView(Backport(label: label(), item: value.map { .init(value: $0) }))
/Users/admin/builder/spi-builder-workspace/Sources/NavigationStackBackport/NavigationLink.swift:24:4: warning: conformance of 'Text' to 'View' is only available in macOS 10.15 or newer; this is an error in the Swift 6 language mode
1 | import SwiftUI
2 |
3 | public struct NavigationLink<Label: View>: View {
| `- note: add @available attribute to enclosing generic struct
4 | public let body: AnyView
5 |
:
20 | }
21 |
22 | public init<P: Hashable>(_ titleKey: LocalizedStringKey, value: P?) where Label == Text {
| `- note: add @available attribute to enclosing initializer
23 | if #available(iOS 16.0, *) {
24 | body = AnyView(SwiftUI.NavigationLink(titleKey, value: value))
| |- warning: conformance of 'Text' 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
25 | } else {
26 | body = AnyView(Backport(label: Text(titleKey), item: value.map { .init(value: $0) }))
/Users/admin/builder/spi-builder-workspace/Sources/NavigationStackBackport/NavigationLink.swift:24:11: error: 'AnyView' is only available in macOS 10.15 or newer
1 | import SwiftUI
2 |
3 | public struct NavigationLink<Label: View>: View {
| `- note: add @available attribute to enclosing generic struct
4 | public let body: AnyView
5 |
:
20 | }
21 |
22 | public init<P: Hashable>(_ titleKey: LocalizedStringKey, value: P?) where Label == Text {
| `- note: add @available attribute to enclosing initializer
23 | if #available(iOS 16.0, *) {
24 | body = AnyView(SwiftUI.NavigationLink(titleKey, value: value))
| |- error: 'AnyView' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
25 | } else {
26 | body = AnyView(Backport(label: Text(titleKey), item: value.map { .init(value: $0) }))
/Users/admin/builder/spi-builder-workspace/Sources/NavigationStackBackport/NavigationLink.swift:24:11: warning: conformance of 'Text' to 'View' is only available in macOS 10.15 or newer; this is an error in the Swift 6 language mode
1 | import SwiftUI
2 |
3 | public struct NavigationLink<Label: View>: View {
| `- note: add @available attribute to enclosing generic struct
4 | public let body: AnyView
5 |
:
20 | }
21 |
22 | public init<P: Hashable>(_ titleKey: LocalizedStringKey, value: P?) where Label == Text {
| `- note: add @available attribute to enclosing initializer
23 | if #available(iOS 16.0, *) {
24 | body = AnyView(SwiftUI.NavigationLink(titleKey, value: value))
| |- warning: conformance of 'Text' 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
25 | } else {
26 | body = AnyView(Backport(label: Text(titleKey), item: value.map { .init(value: $0) }))
/Users/admin/builder/spi-builder-workspace/Sources/NavigationStackBackport/NavigationLink.swift:24:11: warning: conformance of 'Never' to 'View' is only available in macOS 10.15 or newer; this is an error in the Swift 6 language mode
1 | import SwiftUI
2 |
3 | public struct NavigationLink<Label: View>: View {
| `- note: add @available attribute to enclosing generic struct
4 | public let body: AnyView
5 |
:
20 | }
21 |
22 | public init<P: Hashable>(_ titleKey: LocalizedStringKey, value: P?) where Label == Text {
| `- note: add @available attribute to enclosing initializer
23 | if #available(iOS 16.0, *) {
24 | body = AnyView(SwiftUI.NavigationLink(titleKey, value: value))
| |- warning: conformance of 'Never' 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
25 | } else {
26 | body = AnyView(Backport(label: Text(titleKey), item: value.map { .init(value: $0) }))
/Users/admin/builder/spi-builder-workspace/Sources/NavigationStackBackport/NavigationLink.swift:24:27: error: 'NavigationLink' is only available in macOS 10.15 or newer
1 | import SwiftUI
2 |
3 | public struct NavigationLink<Label: View>: View {
| `- note: add @available attribute to enclosing generic struct
4 | public let body: AnyView
5 |
:
20 | }
21 |
22 | public init<P: Hashable>(_ titleKey: LocalizedStringKey, value: P?) where Label == Text {
| `- note: add @available attribute to enclosing initializer
23 | if #available(iOS 16.0, *) {
24 | body = AnyView(SwiftUI.NavigationLink(titleKey, value: value))
| |- error: 'NavigationLink' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
25 | } else {
26 | body = AnyView(Backport(label: Text(titleKey), item: value.map { .init(value: $0) }))
/Users/admin/builder/spi-builder-workspace/Sources/NavigationStackBackport/NavigationLink.swift:24:27: error: 'init(_:value:)' is only available in macOS 13.0 or newer
1 | import SwiftUI
2 |
3 | public struct NavigationLink<Label: View>: View {
| `- note: add @available attribute to enclosing generic struct
4 | public let body: AnyView
5 |
:
20 | }
21 |
22 | public init<P: Hashable>(_ titleKey: LocalizedStringKey, value: P?) where Label == Text {
| `- note: add @available attribute to enclosing initializer
23 | if #available(iOS 16.0, *) {
24 | body = AnyView(SwiftUI.NavigationLink(titleKey, value: value))
| |- error: 'init(_:value:)' is only available in macOS 13.0 or newer
| `- note: add 'if #available' version check
25 | } else {
26 | body = AnyView(Backport(label: Text(titleKey), item: value.map { .init(value: $0) }))
/Users/admin/builder/spi-builder-workspace/Sources/NavigationStackBackport/NavigationLink.swift:32:4: warning: conformance of 'Text' to 'View' is only available in macOS 10.15 or newer; this is an error in the Swift 6 language mode
1 | import SwiftUI
2 |
3 | public struct NavigationLink<Label: View>: View {
| `- note: add @available attribute to enclosing generic struct
4 | public let body: AnyView
5 |
:
28 | }
29 |
30 | public init<P: Hashable>(_ titleKey: LocalizedStringKey, value: P?) where Label == Text, P: Codable {
| `- note: add @available attribute to enclosing initializer
31 | if #available(iOS 16.0, *) {
32 | body = AnyView(SwiftUI.NavigationLink(titleKey, value: value))
| |- warning: conformance of 'Text' 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
33 | } else {
34 | body = AnyView(Backport(label: Text(titleKey), item: value.map { .init(value: $0) }))
/Users/admin/builder/spi-builder-workspace/Sources/NavigationStackBackport/NavigationLink.swift:32:11: error: 'AnyView' is only available in macOS 10.15 or newer
1 | import SwiftUI
2 |
3 | public struct NavigationLink<Label: View>: View {
| `- note: add @available attribute to enclosing generic struct
4 | public let body: AnyView
5 |
:
28 | }
29 |
30 | public init<P: Hashable>(_ titleKey: LocalizedStringKey, value: P?) where Label == Text, P: Codable {
| `- note: add @available attribute to enclosing initializer
31 | if #available(iOS 16.0, *) {
32 | body = AnyView(SwiftUI.NavigationLink(titleKey, value: value))
| |- error: 'AnyView' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
33 | } else {
34 | body = AnyView(Backport(label: Text(titleKey), item: value.map { .init(value: $0) }))
/Users/admin/builder/spi-builder-workspace/Sources/NavigationStackBackport/NavigationLink.swift:32:11: warning: conformance of 'Text' to 'View' is only available in macOS 10.15 or newer; this is an error in the Swift 6 language mode
1 | import SwiftUI
2 |
3 | public struct NavigationLink<Label: View>: View {
| `- note: add @available attribute to enclosing generic struct
4 | public let body: AnyView
5 |
:
28 | }
29 |
30 | public init<P: Hashable>(_ titleKey: LocalizedStringKey, value: P?) where Label == Text, P: Codable {
| `- note: add @available attribute to enclosing initializer
31 | if #available(iOS 16.0, *) {
32 | body = AnyView(SwiftUI.NavigationLink(titleKey, value: value))
| |- warning: conformance of 'Text' 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
33 | } else {
34 | body = AnyView(Backport(label: Text(titleKey), item: value.map { .init(value: $0) }))
/Users/admin/builder/spi-builder-workspace/Sources/NavigationStackBackport/NavigationLink.swift:32:11: warning: conformance of 'Never' to 'View' is only available in macOS 10.15 or newer; this is an error in the Swift 6 language mode
1 | import SwiftUI
2 |
3 | public struct NavigationLink<Label: View>: View {
| `- note: add @available attribute to enclosing generic struct
4 | public let body: AnyView
5 |
:
28 | }
29 |
30 | public init<P: Hashable>(_ titleKey: LocalizedStringKey, value: P?) where Label == Text, P: Codable {
| `- note: add @available attribute to enclosing initializer
31 | if #available(iOS 16.0, *) {
32 | body = AnyView(SwiftUI.NavigationLink(titleKey, value: value))
| |- warning: conformance of 'Never' 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
33 | } else {
34 | body = AnyView(Backport(label: Text(titleKey), item: value.map { .init(value: $0) }))
/Users/admin/builder/spi-builder-workspace/Sources/NavigationStackBackport/NavigationLink.swift:32:27: error: 'NavigationLink' is only available in macOS 10.15 or newer
1 | import SwiftUI
2 |
3 | public struct NavigationLink<Label: View>: View {
| `- note: add @available attribute to enclosing generic struct
4 | public let body: AnyView
5 |
:
28 | }
29 |
30 | public init<P: Hashable>(_ titleKey: LocalizedStringKey, value: P?) where Label == Text, P: Codable {
| `- note: add @available attribute to enclosing initializer
31 | if #available(iOS 16.0, *) {
32 | body = AnyView(SwiftUI.NavigationLink(titleKey, value: value))
| |- error: 'NavigationLink' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
33 | } else {
34 | body = AnyView(Backport(label: Text(titleKey), item: value.map { .init(value: $0) }))
/Users/admin/builder/spi-builder-workspace/Sources/NavigationStackBackport/NavigationLink.swift:32:27: error: 'init(_:value:)' is only available in macOS 13.0 or newer
1 | import SwiftUI
2 |
3 | public struct NavigationLink<Label: View>: View {
| `- note: add @available attribute to enclosing generic struct
4 | public let body: AnyView
5 |
:
28 | }
29 |
30 | public init<P: Hashable>(_ titleKey: LocalizedStringKey, value: P?) where Label == Text, P: Codable {
| `- note: add @available attribute to enclosing initializer
31 | if #available(iOS 16.0, *) {
32 | body = AnyView(SwiftUI.NavigationLink(titleKey, value: value))
| |- error: 'init(_:value:)' is only available in macOS 13.0 or newer
| `- note: add 'if #available' version check
33 | } else {
34 | body = AnyView(Backport(label: Text(titleKey), item: value.map { .init(value: $0) }))
/Users/admin/builder/spi-builder-workspace/Sources/NavigationStackBackport/NavigationLink.swift:40:4: warning: conformance of 'Text' to 'View' is only available in macOS 10.15 or newer; this is an error in the Swift 6 language mode
1 | import SwiftUI
2 |
3 | public struct NavigationLink<Label: View>: View {
| `- note: add @available attribute to enclosing generic struct
4 | public let body: AnyView
5 |
:
36 | }
37 |
38 | public init<P: Hashable, S>(_ title: S, value: P?) where Label == Text, S: StringProtocol {
| `- note: add @available attribute to enclosing initializer
39 | if #available(iOS 16.0, *) {
40 | body = AnyView(SwiftUI.NavigationLink(title, value: value))
| |- warning: conformance of 'Text' 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
41 | } else {
42 | body = AnyView(Backport(label: Text(title), item: value.map { .init(value: $0) }))
/Users/admin/builder/spi-builder-workspace/Sources/NavigationStackBackport/NavigationLink.swift:40:11: error: 'AnyView' is only available in macOS 10.15 or newer
1 | import SwiftUI
2 |
3 | public struct NavigationLink<Label: View>: View {
| `- note: add @available attribute to enclosing generic struct
4 | public let body: AnyView
5 |
:
36 | }
37 |
38 | public init<P: Hashable, S>(_ title: S, value: P?) where Label == Text, S: StringProtocol {
| `- note: add @available attribute to enclosing initializer
39 | if #available(iOS 16.0, *) {
40 | body = AnyView(SwiftUI.NavigationLink(title, value: value))
| |- error: 'AnyView' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
41 | } else {
42 | body = AnyView(Backport(label: Text(title), item: value.map { .init(value: $0) }))
/Users/admin/builder/spi-builder-workspace/Sources/NavigationStackBackport/NavigationLink.swift:40:11: warning: conformance of 'Text' to 'View' is only available in macOS 10.15 or newer; this is an error in the Swift 6 language mode
1 | import SwiftUI
2 |
3 | public struct NavigationLink<Label: View>: View {
| `- note: add @available attribute to enclosing generic struct
4 | public let body: AnyView
5 |
:
36 | }
37 |
38 | public init<P: Hashable, S>(_ title: S, value: P?) where Label == Text, S: StringProtocol {
| `- note: add @available attribute to enclosing initializer
39 | if #available(iOS 16.0, *) {
40 | body = AnyView(SwiftUI.NavigationLink(title, value: value))
| |- warning: conformance of 'Text' 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
41 | } else {
42 | body = AnyView(Backport(label: Text(title), item: value.map { .init(value: $0) }))
/Users/admin/builder/spi-builder-workspace/Sources/NavigationStackBackport/NavigationLink.swift:40:11: warning: conformance of 'Never' to 'View' is only available in macOS 10.15 or newer; this is an error in the Swift 6 language mode
1 | import SwiftUI
2 |
3 | public struct NavigationLink<Label: View>: View {
| `- note: add @available attribute to enclosing generic struct
4 | public let body: AnyView
5 |
:
36 | }
37 |
38 | public init<P: Hashable, S>(_ title: S, value: P?) where Label == Text, S: StringProtocol {
| `- note: add @available attribute to enclosing initializer
39 | if #available(iOS 16.0, *) {
40 | body = AnyView(SwiftUI.NavigationLink(title, value: value))
| |- warning: conformance of 'Never' 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
41 | } else {
42 | body = AnyView(Backport(label: Text(title), item: value.map { .init(value: $0) }))
/Users/admin/builder/spi-builder-workspace/Sources/NavigationStackBackport/NavigationLink.swift:40:27: error: 'NavigationLink' is only available in macOS 10.15 or newer
1 | import SwiftUI
2 |
3 | public struct NavigationLink<Label: View>: View {
| `- note: add @available attribute to enclosing generic struct
4 | public let body: AnyView
5 |
:
36 | }
37 |
38 | public init<P: Hashable, S>(_ title: S, value: P?) where Label == Text, S: StringProtocol {
| `- note: add @available attribute to enclosing initializer
39 | if #available(iOS 16.0, *) {
40 | body = AnyView(SwiftUI.NavigationLink(title, value: value))
| |- error: 'NavigationLink' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
41 | } else {
42 | body = AnyView(Backport(label: Text(title), item: value.map { .init(value: $0) }))
/Users/admin/builder/spi-builder-workspace/Sources/NavigationStackBackport/NavigationLink.swift:40:27: error: 'init(_:value:)' is only available in macOS 13.0 or newer
1 | import SwiftUI
2 |
3 | public struct NavigationLink<Label: View>: View {
| `- note: add @available attribute to enclosing generic struct
4 | public let body: AnyView
5 |
:
36 | }
37 |
38 | public init<P: Hashable, S>(_ title: S, value: P?) where Label == Text, S: StringProtocol {
| `- note: add @available attribute to enclosing initializer
39 | if #available(iOS 16.0, *) {
40 | body = AnyView(SwiftUI.NavigationLink(title, value: value))
| |- error: 'init(_:value:)' is only available in macOS 13.0 or newer
| `- note: add 'if #available' version check
41 | } else {
42 | body = AnyView(Backport(label: Text(title), item: value.map { .init(value: $0) }))
/Users/admin/builder/spi-builder-workspace/Sources/NavigationStackBackport/NavigationLink.swift:48:4: warning: conformance of 'Text' to 'View' is only available in macOS 10.15 or newer; this is an error in the Swift 6 language mode
1 | import SwiftUI
2 |
3 | public struct NavigationLink<Label: View>: View {
| `- note: add @available attribute to enclosing generic struct
4 | public let body: AnyView
5 |
:
44 | }
45 |
46 | public init<P: Hashable, S>(_ title: S, value: P?) where Label == Text, S: StringProtocol, P: Codable {
| `- note: add @available attribute to enclosing initializer
47 | if #available(iOS 16.0, *) {
48 | body = AnyView(SwiftUI.NavigationLink(title, value: value))
| |- warning: conformance of 'Text' 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
49 | } else {
50 | body = AnyView(Backport(label: Text(title), item: value.map { .init(value: $0) }))
/Users/admin/builder/spi-builder-workspace/Sources/NavigationStackBackport/NavigationLink.swift:48:11: error: 'AnyView' is only available in macOS 10.15 or newer
1 | import SwiftUI
2 |
3 | public struct NavigationLink<Label: View>: View {
| `- note: add @available attribute to enclosing generic struct
4 | public let body: AnyView
5 |
:
44 | }
45 |
46 | public init<P: Hashable, S>(_ title: S, value: P?) where Label == Text, S: StringProtocol, P: Codable {
| `- note: add @available attribute to enclosing initializer
47 | if #available(iOS 16.0, *) {
48 | body = AnyView(SwiftUI.NavigationLink(title, value: value))
| |- error: 'AnyView' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
49 | } else {
50 | body = AnyView(Backport(label: Text(title), item: value.map { .init(value: $0) }))
/Users/admin/builder/spi-builder-workspace/Sources/NavigationStackBackport/NavigationLink.swift:48:11: warning: conformance of 'Text' to 'View' is only available in macOS 10.15 or newer; this is an error in the Swift 6 language mode
1 | import SwiftUI
2 |
3 | public struct NavigationLink<Label: View>: View {
| `- note: add @available attribute to enclosing generic struct
4 | public let body: AnyView
5 |
:
44 | }
45 |
46 | public init<P: Hashable, S>(_ title: S, value: P?) where Label == Text, S: StringProtocol, P: Codable {
| `- note: add @available attribute to enclosing initializer
47 | if #available(iOS 16.0, *) {
48 | body = AnyView(SwiftUI.NavigationLink(title, value: value))
| |- warning: conformance of 'Text' 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
49 | } else {
50 | body = AnyView(Backport(label: Text(title), item: value.map { .init(value: $0) }))
/Users/admin/builder/spi-builder-workspace/Sources/NavigationStackBackport/NavigationLink.swift:48:11: warning: conformance of 'Never' to 'View' is only available in macOS 10.15 or newer; this is an error in the Swift 6 language mode
1 | import SwiftUI
2 |
3 | public struct NavigationLink<Label: View>: View {
| `- note: add @available attribute to enclosing generic struct
4 | public let body: AnyView
5 |
:
44 | }
45 |
46 | public init<P: Hashable, S>(_ title: S, value: P?) where Label == Text, S: StringProtocol, P: Codable {
| `- note: add @available attribute to enclosing initializer
47 | if #available(iOS 16.0, *) {
48 | body = AnyView(SwiftUI.NavigationLink(title, value: value))
| |- warning: conformance of 'Never' 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
49 | } else {
50 | body = AnyView(Backport(label: Text(title), item: value.map { .init(value: $0) }))
/Users/admin/builder/spi-builder-workspace/Sources/NavigationStackBackport/NavigationLink.swift:48:27: error: 'NavigationLink' is only available in macOS 10.15 or newer
1 | import SwiftUI
2 |
3 | public struct NavigationLink<Label: View>: View {
| `- note: add @available attribute to enclosing generic struct
4 | public let body: AnyView
5 |
:
44 | }
45 |
46 | public init<P: Hashable, S>(_ title: S, value: P?) where Label == Text, S: StringProtocol, P: Codable {
| `- note: add @available attribute to enclosing initializer
47 | if #available(iOS 16.0, *) {
48 | body = AnyView(SwiftUI.NavigationLink(title, value: value))
| |- error: 'NavigationLink' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
49 | } else {
50 | body = AnyView(Backport(label: Text(title), item: value.map { .init(value: $0) }))
/Users/admin/builder/spi-builder-workspace/Sources/NavigationStackBackport/NavigationLink.swift:48:27: error: 'init(_:value:)' is only available in macOS 13.0 or newer
1 | import SwiftUI
2 |
3 | public struct NavigationLink<Label: View>: View {
| `- note: add @available attribute to enclosing generic struct
4 | public let body: AnyView
5 |
:
44 | }
45 |
46 | public init<P: Hashable, S>(_ title: S, value: P?) where Label == Text, S: StringProtocol, P: Codable {
| `- note: add @available attribute to enclosing initializer
47 | if #available(iOS 16.0, *) {
48 | body = AnyView(SwiftUI.NavigationLink(title, value: value))
| |- error: 'init(_:value:)' is only available in macOS 13.0 or newer
| `- note: add 'if #available' version check
49 | } else {
50 | body = AnyView(Backport(label: Text(title), item: value.map { .init(value: $0) }))
/Users/admin/builder/spi-builder-workspace/Sources/NavigationStackBackport/NavigationAuthority.swift:23:26: error: 'PassthroughSubject' is only available in macOS 10.15 or newer
2 | import SwiftUI
3 |
4 | class NavigationAuthority: NSObject, ObservableObject {
| `- note: add @available attribute to enclosing class
5 | weak var navigationController: UINavigationController? {
6 | didSet { navigationController?.delegate = self }
:
21 |
22 | let pathPopPublisher = PassthroughSubject<Int, Never>()
23 | let pathPushPublisher = PassthroughSubject<NavigationPathItem, Never>()
| `- error: 'PassthroughSubject' is only available in macOS 10.15 or newer
24 | let presentationPopPublisher = PassthroughSubject<Namespace.ID, Never>()
25 | var canNavigate: Bool { navigationController != nil }
/Users/admin/builder/spi-builder-workspace/Sources/NavigationStackBackport/NavigationLink.swift:62:4: error: 'Button' is only available in macOS 10.15 or newer
54 |
55 | private extension NavigationLink {
56 | struct Backport: View {
| `- note: add @available attribute to enclosing struct
57 | let label: Label
58 | let item: NavigationPathItem?
59 | @Environment(\.navigationAuthority) private var authority
60 |
61 | var body: some View {
| `- note: add @available attribute to enclosing property
62 | Button {
| |- error: 'Button' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
63 | guard let item else { return }
64 | authority.pathPushPublisher.send(item)
/Users/admin/builder/spi-builder-workspace/Sources/NavigationStackBackport/NavigationLink.swift:68:5: error: 'disabled' is only available in macOS 10.15 or newer
54 |
55 | private extension NavigationLink {
56 | struct Backport: View {
| `- note: add @available attribute to enclosing struct
57 | let label: Label
58 | let item: NavigationPathItem?
59 | @Environment(\.navigationAuthority) private var authority
60 |
61 | var body: some View {
| `- note: add @available attribute to enclosing property
62 | Button {
63 | guard let item else { return }
:
66 | label
67 | }
68 | .disabled(item == nil || !authority.canNavigate)
| |- error: 'disabled' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
69 | }
70 | }
/Users/admin/builder/spi-builder-workspace/Sources/NavigationStackBackport/NavigationPath.swift:11:27: error: 'NavigationPath' is only available in macOS 13.0 or newer
1 | import SwiftUI
2 |
3 | public struct NavigationPath {
| `- note: add @available attribute to enclosing struct
4 | public var count: Int { box.count }
5 | public var isEmpty: Bool { box.isEmpty }
:
9 |
10 | @available(iOS 16.0, *)
11 | var swiftUIPath: SwiftUI.NavigationPath {
| | `- error: 'NavigationPath' is only available in macOS 13.0 or newer
| `- note: add @available attribute to enclosing property
12 | get { box as! SwiftUI.NavigationPath }
13 | set { box = newValue }
/Users/admin/builder/spi-builder-workspace/Sources/NavigationStackBackport/NavigationPath.swift:12:25: error: 'NavigationPath' is only available in macOS 13.0 or newer
1 | import SwiftUI
2 |
3 | public struct NavigationPath {
| `- note: add @available attribute to enclosing struct
4 | public var count: Int { box.count }
5 | public var isEmpty: Bool { box.isEmpty }
:
9 |
10 | @available(iOS 16.0, *)
11 | var swiftUIPath: SwiftUI.NavigationPath {
| `- note: add @available attribute to enclosing property
12 | get { box as! SwiftUI.NavigationPath }
| |- error: 'NavigationPath' is only available in macOS 13.0 or newer
| `- note: add 'if #available' version check
13 | set { box = newValue }
14 | }
/Users/admin/builder/spi-builder-workspace/Sources/NavigationStackBackport/NavigationPath.swift:23:18: error: 'NavigationPath' is only available in macOS 13.0 or newer
1 | import SwiftUI
2 |
3 | public struct NavigationPath {
| `- note: add @available attribute to enclosing struct
4 | public var count: Int { box.count }
5 | public var isEmpty: Bool { box.isEmpty }
:
19 | }
20 |
21 | public init() {
| `- note: add @available attribute to enclosing initializer
22 | if #available(iOS 16.0, *) {
23 | box = SwiftUI.NavigationPath()
| |- error: 'NavigationPath' is only available in macOS 13.0 or newer
| `- note: add 'if #available' version check
24 | } else {
25 | box = NavigationPathBackport(items: [])
/Users/admin/builder/spi-builder-workspace/Sources/NavigationStackBackport/NavigationPath.swift:31:18: error: 'NavigationPath' is only available in macOS 13.0 or newer
1 | import SwiftUI
2 |
3 | public struct NavigationPath {
| `- note: add @available attribute to enclosing struct
4 | public var count: Int { box.count }
5 | public var isEmpty: Bool { box.isEmpty }
:
27 | }
28 |
29 | public init<S: Sequence>(_ elements: S) where S.Element: Hashable {
| `- note: add @available attribute to enclosing initializer
30 | if #available(iOS 16.0, *) {
31 | box = SwiftUI.NavigationPath(elements)
| |- error: 'NavigationPath' is only available in macOS 13.0 or newer
| `- note: add 'if #available' version check
32 | } else {
33 | box = NavigationPathBackport(items: elements.map { .init(value: $0) })
/Users/admin/builder/spi-builder-workspace/Sources/NavigationStackBackport/NavigationPath.swift:39:18: error: 'NavigationPath' is only available in macOS 13.0 or newer
1 | import SwiftUI
2 |
3 | public struct NavigationPath {
| `- note: add @available attribute to enclosing struct
4 | public var count: Int { box.count }
5 | public var isEmpty: Bool { box.isEmpty }
:
35 | }
36 |
37 | public init<S: Sequence>(_ elements: S) where S.Element: Hashable, S.Element: Codable {
| `- note: add @available attribute to enclosing initializer
38 | if #available(iOS 16.0, *) {
39 | box = SwiftUI.NavigationPath(elements)
| |- error: 'NavigationPath' is only available in macOS 13.0 or newer
| `- note: add 'if #available' version check
40 | } else {
41 | box = NavigationPathBackport(items: elements.map { .init(value: $0) })
/Users/admin/builder/spi-builder-workspace/Sources/NavigationStackBackport/NavigationPath.swift:47:18: error: 'NavigationPath' is only available in macOS 13.0 or newer
1 | import SwiftUI
2 |
3 | public struct NavigationPath {
| `- note: add @available attribute to enclosing struct
4 | public var count: Int { box.count }
5 | public var isEmpty: Bool { box.isEmpty }
:
43 | }
44 |
45 | public init(_ codable: CodableRepresentation) {
| `- note: add @available attribute to enclosing initializer
46 | if #available(iOS 16.0, *) {
47 | box = SwiftUI.NavigationPath(codable.storage as! SwiftUI.NavigationPath.CodableRepresentation)
| |- error: 'NavigationPath' is only available in macOS 13.0 or newer
| `- note: add 'if #available' version check
48 | } else {
49 | box = NavigationPathBackport(items: codable.storage as! [NavigationPathItem])
/Users/admin/builder/spi-builder-workspace/Sources/NavigationStackBackport/NavigationPath.swift:47:61: error: 'NavigationPath' is only available in macOS 13.0 or newer
1 | import SwiftUI
2 |
3 | public struct NavigationPath {
| `- note: add @available attribute to enclosing struct
4 | public var count: Int { box.count }
5 | public var isEmpty: Bool { box.isEmpty }
:
43 | }
44 |
45 | public init(_ codable: CodableRepresentation) {
| `- note: add @available attribute to enclosing initializer
46 | if #available(iOS 16.0, *) {
47 | box = SwiftUI.NavigationPath(codable.storage as! SwiftUI.NavigationPath.CodableRepresentation)
| |- error: 'NavigationPath' is only available in macOS 13.0 or newer
| `- note: add 'if #available' version check
48 | } else {
49 | box = NavigationPathBackport(items: codable.storage as! [NavigationPathItem])
/Users/admin/builder/spi-builder-workspace/Sources/NavigationStackBackport/NavigationPath.swift:71:46: warning: conformance of 'NavigationPath' to 'Equatable' is only available in macOS 13.0 or newer; this is an error in the Swift 6 language mode
66 | }
67 |
68 | extension NavigationPath: Equatable {
| `- note: add @available attribute to enclosing extension
69 | public static func == (lhs: Self, rhs: Self) -> Bool {
| `- note: add @available attribute to enclosing operator function
70 | if #available(iOS 16.0, *) {
71 | return lhs.box as? SwiftUI.NavigationPath == rhs.box as? SwiftUI.NavigationPath
| |- warning: conformance of 'NavigationPath' to 'Equatable' is only available in macOS 13.0 or newer; this is an error in the Swift 6 language mode
| `- note: add 'if #available' version check
72 | } else {
73 | return lhs.box as? NavigationPathBackport == rhs.box as? NavigationPathBackport
/Users/admin/builder/spi-builder-workspace/Sources/NavigationStackBackport/NavigationPath.swift:71:31: error: 'NavigationPath' is only available in macOS 13.0 or newer
66 | }
67 |
68 | extension NavigationPath: Equatable {
| `- note: add @available attribute to enclosing extension
69 | public static func == (lhs: Self, rhs: Self) -> Bool {
| `- note: add @available attribute to enclosing operator function
70 | if #available(iOS 16.0, *) {
71 | return lhs.box as? SwiftUI.NavigationPath == rhs.box as? SwiftUI.NavigationPath
| |- error: 'NavigationPath' is only available in macOS 13.0 or newer
| `- note: add 'if #available' version check
72 | } else {
73 | return lhs.box as? NavigationPathBackport == rhs.box as? NavigationPathBackport
/Users/admin/builder/spi-builder-workspace/Sources/NavigationStackBackport/NavigationPath.swift:71:69: error: 'NavigationPath' is only available in macOS 13.0 or newer
66 | }
67 |
68 | extension NavigationPath: Equatable {
| `- note: add @available attribute to enclosing extension
69 | public static func == (lhs: Self, rhs: Self) -> Bool {
| `- note: add @available attribute to enclosing operator function
70 | if #available(iOS 16.0, *) {
71 | return lhs.box as? SwiftUI.NavigationPath == rhs.box as? SwiftUI.NavigationPath
| |- error: 'NavigationPath' is only available in macOS 13.0 or newer
| `- note: add 'if #available' version check
72 | } else {
73 | return lhs.box as? NavigationPathBackport == rhs.box as? NavigationPathBackport
[15/16] Compiling NavigationStackBackport NavigationPath.swift
/Users/admin/builder/spi-builder-workspace/Sources/NavigationStackBackport/NavigationLink.swift:4:19: error: 'AnyView' is only available in macOS 10.15 or newer
1 | import SwiftUI
2 |
3 | public struct NavigationLink<Label: View>: View {
| `- note: add @available attribute to enclosing generic struct
4 | public let body: AnyView
| `- error: 'AnyView' is only available in macOS 10.15 or newer
5 |
6 | public init<P: Hashable>(value: P?, @ViewBuilder label: () -> Label) {
/Users/admin/builder/spi-builder-workspace/Sources/NavigationStackBackport/NavigationLink.swift:6:39: error: 'ViewBuilder' is only available in macOS 10.15 or newer
1 | import SwiftUI
2 |
3 | public struct NavigationLink<Label: View>: View {
| `- note: add @available attribute to enclosing generic struct
4 | public let body: AnyView
5 |
6 | public init<P: Hashable>(value: P?, @ViewBuilder label: () -> Label) {
| | `- error: 'ViewBuilder' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing initializer
7 | if #available(iOS 16.0, *) {
8 | body = AnyView(SwiftUI.NavigationLink(value: value, label: label))
/Users/admin/builder/spi-builder-workspace/Sources/NavigationStackBackport/NavigationLink.swift:14:39: error: 'ViewBuilder' is only available in macOS 10.15 or newer
1 | import SwiftUI
2 |
3 | public struct NavigationLink<Label: View>: View {
| `- note: add @available attribute to enclosing generic struct
4 | public let body: AnyView
5 |
:
12 | }
13 |
14 | public init<P: Hashable>(value: P?, @ViewBuilder label: () -> Label) where P: Codable {
| | `- error: 'ViewBuilder' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing initializer
15 | if #available(iOS 16.0, *) {
16 | body = AnyView(SwiftUI.NavigationLink(value: value, label: label))
/Users/admin/builder/spi-builder-workspace/Sources/NavigationStackBackport/NavigationLink.swift:22:85: error: 'Text' is only available in macOS 10.15 or newer
1 | import SwiftUI
2 |
3 | public struct NavigationLink<Label: View>: View {
| `- note: add @available attribute to enclosing generic struct
4 | public let body: AnyView
5 |
:
20 | }
21 |
22 | public init<P: Hashable>(_ titleKey: LocalizedStringKey, value: P?) where Label == Text {
| | `- error: 'Text' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing initializer
23 | if #available(iOS 16.0, *) {
24 | body = AnyView(SwiftUI.NavigationLink(titleKey, value: value))
/Users/admin/builder/spi-builder-workspace/Sources/NavigationStackBackport/NavigationLink.swift:22:39: error: 'LocalizedStringKey' is only available in macOS 10.15 or newer
1 | import SwiftUI
2 |
3 | public struct NavigationLink<Label: View>: View {
| `- note: add @available attribute to enclosing generic struct
4 | public let body: AnyView
5 |
:
20 | }
21 |
22 | public init<P: Hashable>(_ titleKey: LocalizedStringKey, value: P?) where Label == Text {
| | `- error: 'LocalizedStringKey' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing initializer
23 | if #available(iOS 16.0, *) {
24 | body = AnyView(SwiftUI.NavigationLink(titleKey, value: value))
/Users/admin/builder/spi-builder-workspace/Sources/NavigationStackBackport/NavigationLink.swift:30:85: error: 'Text' is only available in macOS 10.15 or newer
1 | import SwiftUI
2 |
3 | public struct NavigationLink<Label: View>: View {
| `- note: add @available attribute to enclosing generic struct
4 | public let body: AnyView
5 |
:
28 | }
29 |
30 | public init<P: Hashable>(_ titleKey: LocalizedStringKey, value: P?) where Label == Text, P: Codable {
| | `- error: 'Text' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing initializer
31 | if #available(iOS 16.0, *) {
32 | body = AnyView(SwiftUI.NavigationLink(titleKey, value: value))
/Users/admin/builder/spi-builder-workspace/Sources/NavigationStackBackport/NavigationLink.swift:30:39: error: 'LocalizedStringKey' is only available in macOS 10.15 or newer
1 | import SwiftUI
2 |
3 | public struct NavigationLink<Label: View>: View {
| `- note: add @available attribute to enclosing generic struct
4 | public let body: AnyView
5 |
:
28 | }
29 |
30 | public init<P: Hashable>(_ titleKey: LocalizedStringKey, value: P?) where Label == Text, P: Codable {
| | `- error: 'LocalizedStringKey' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing initializer
31 | if #available(iOS 16.0, *) {
32 | body = AnyView(SwiftUI.NavigationLink(titleKey, value: value))
/Users/admin/builder/spi-builder-workspace/Sources/NavigationStackBackport/NavigationLink.swift:38:68: error: 'Text' is only available in macOS 10.15 or newer
1 | import SwiftUI
2 |
3 | public struct NavigationLink<Label: View>: View {
| `- note: add @available attribute to enclosing generic struct
4 | public let body: AnyView
5 |
:
36 | }
37 |
38 | public init<P: Hashable, S>(_ title: S, value: P?) where Label == Text, S: StringProtocol {
| | `- error: 'Text' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing initializer
39 | if #available(iOS 16.0, *) {
40 | body = AnyView(SwiftUI.NavigationLink(title, value: value))
/Users/admin/builder/spi-builder-workspace/Sources/NavigationStackBackport/NavigationLink.swift:46:68: error: 'Text' is only available in macOS 10.15 or newer
1 | import SwiftUI
2 |
3 | public struct NavigationLink<Label: View>: View {
| `- note: add @available attribute to enclosing generic struct
4 | public let body: AnyView
5 |
:
44 | }
45 |
46 | public init<P: Hashable, S>(_ title: S, value: P?) where Label == Text, S: StringProtocol, P: Codable {
| | `- error: 'Text' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing initializer
47 | if #available(iOS 16.0, *) {
48 | body = AnyView(SwiftUI.NavigationLink(title, value: value))
/Users/admin/builder/spi-builder-workspace/Sources/NavigationStackBackport/NavigationLink.swift:3:37: error: 'View' is only available in macOS 10.15 or newer
1 | import SwiftUI
2 |
3 | public struct NavigationLink<Label: View>: View {
| | `- error: 'View' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing generic struct
4 | public let body: AnyView
5 |
/Users/admin/builder/spi-builder-workspace/Sources/NavigationStackBackport/NavigationLink.swift:59:4: error: 'Environment' is only available in macOS 10.15 or newer
54 |
55 | private extension NavigationLink {
56 | struct Backport: View {
| |- note: add @available attribute to enclosing struct
| `- note: add @available attribute to enclosing struct
57 | let label: Label
58 | let item: NavigationPathItem?
59 | @Environment(\.navigationAuthority) private var authority
| `- error: 'Environment' is only available in macOS 10.15 or newer
60 |
61 | var body: some View {
/Users/admin/builder/spi-builder-workspace/Sources/NavigationStackBackport/NavigationLink.swift:61:18: error: 'View' is only available in macOS 10.15 or newer
54 |
55 | private extension NavigationLink {
56 | struct Backport: View {
| `- note: add @available attribute to enclosing struct
57 | let label: Label
58 | let item: NavigationPathItem?
59 | @Environment(\.navigationAuthority) private var authority
60 |
61 | var body: some View {
| | `- error: 'View' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing property
62 | Button {
63 | guard let item else { return }
/Users/admin/builder/spi-builder-workspace/Sources/NavigationStackBackport/NavigationLink.swift:8:11: error: 'AnyView' is only available in macOS 10.15 or newer
1 | import SwiftUI
2 |
3 | public struct NavigationLink<Label: View>: View {
| `- note: add @available attribute to enclosing generic struct
4 | public let body: AnyView
5 |
6 | public init<P: Hashable>(value: P?, @ViewBuilder label: () -> Label) {
| `- note: add @available attribute to enclosing initializer
7 | if #available(iOS 16.0, *) {
8 | body = AnyView(SwiftUI.NavigationLink(value: value, label: label))
| |- error: 'AnyView' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
9 | } else {
10 | body = AnyView(Backport(label: label(), item: value.map { .init(value: $0) }))
/Users/admin/builder/spi-builder-workspace/Sources/NavigationStackBackport/NavigationLink.swift:8:11: warning: conformance of 'Never' to 'View' is only available in macOS 10.15 or newer; this is an error in the Swift 6 language mode
1 | import SwiftUI
2 |
3 | public struct NavigationLink<Label: View>: View {
| `- note: add @available attribute to enclosing generic struct
4 | public let body: AnyView
5 |
6 | public init<P: Hashable>(value: P?, @ViewBuilder label: () -> Label) {
| `- note: add @available attribute to enclosing initializer
7 | if #available(iOS 16.0, *) {
8 | body = AnyView(SwiftUI.NavigationLink(value: value, label: label))
| |- warning: conformance of 'Never' 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
9 | } else {
10 | body = AnyView(Backport(label: label(), item: value.map { .init(value: $0) }))
/Users/admin/builder/spi-builder-workspace/Sources/NavigationStackBackport/NavigationLink.swift:8:27: error: 'NavigationLink' is only available in macOS 10.15 or newer
1 | import SwiftUI
2 |
3 | public struct NavigationLink<Label: View>: View {
| `- note: add @available attribute to enclosing generic struct
4 | public let body: AnyView
5 |
6 | public init<P: Hashable>(value: P?, @ViewBuilder label: () -> Label) {
| `- note: add @available attribute to enclosing initializer
7 | if #available(iOS 16.0, *) {
8 | body = AnyView(SwiftUI.NavigationLink(value: value, label: label))
| |- error: 'NavigationLink' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
9 | } else {
10 | body = AnyView(Backport(label: label(), item: value.map { .init(value: $0) }))
/Users/admin/builder/spi-builder-workspace/Sources/NavigationStackBackport/NavigationLink.swift:8:27: error: 'init(value:label:)' is only available in macOS 13.0 or newer
1 | import SwiftUI
2 |
3 | public struct NavigationLink<Label: View>: View {
| `- note: add @available attribute to enclosing generic struct
4 | public let body: AnyView
5 |
6 | public init<P: Hashable>(value: P?, @ViewBuilder label: () -> Label) {
| `- note: add @available attribute to enclosing initializer
7 | if #available(iOS 16.0, *) {
8 | body = AnyView(SwiftUI.NavigationLink(value: value, label: label))
| |- error: 'init(value:label:)' is only available in macOS 13.0 or newer
| `- note: add 'if #available' version check
9 | } else {
10 | body = AnyView(Backport(label: label(), item: value.map { .init(value: $0) }))
/Users/admin/builder/spi-builder-workspace/Sources/NavigationStackBackport/NavigationLink.swift:16:11: error: 'AnyView' is only available in macOS 10.15 or newer
1 | import SwiftUI
2 |
3 | public struct NavigationLink<Label: View>: View {
| `- note: add @available attribute to enclosing generic struct
4 | public let body: AnyView
5 |
:
12 | }
13 |
14 | public init<P: Hashable>(value: P?, @ViewBuilder label: () -> Label) where P: Codable {
| `- note: add @available attribute to enclosing initializer
15 | if #available(iOS 16.0, *) {
16 | body = AnyView(SwiftUI.NavigationLink(value: value, label: label))
| |- error: 'AnyView' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
17 | } else {
18 | body = AnyView(Backport(label: label(), item: value.map { .init(value: $0) }))
/Users/admin/builder/spi-builder-workspace/Sources/NavigationStackBackport/NavigationLink.swift:16:11: warning: conformance of 'Never' to 'View' is only available in macOS 10.15 or newer; this is an error in the Swift 6 language mode
1 | import SwiftUI
2 |
3 | public struct NavigationLink<Label: View>: View {
| `- note: add @available attribute to enclosing generic struct
4 | public let body: AnyView
5 |
:
12 | }
13 |
14 | public init<P: Hashable>(value: P?, @ViewBuilder label: () -> Label) where P: Codable {
| `- note: add @available attribute to enclosing initializer
15 | if #available(iOS 16.0, *) {
16 | body = AnyView(SwiftUI.NavigationLink(value: value, label: label))
| |- warning: conformance of 'Never' 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
17 | } else {
18 | body = AnyView(Backport(label: label(), item: value.map { .init(value: $0) }))
/Users/admin/builder/spi-builder-workspace/Sources/NavigationStackBackport/NavigationLink.swift:16:27: error: 'NavigationLink' is only available in macOS 10.15 or newer
1 | import SwiftUI
2 |
3 | public struct NavigationLink<Label: View>: View {
| `- note: add @available attribute to enclosing generic struct
4 | public let body: AnyView
5 |
:
12 | }
13 |
14 | public init<P: Hashable>(value: P?, @ViewBuilder label: () -> Label) where P: Codable {
| `- note: add @available attribute to enclosing initializer
15 | if #available(iOS 16.0, *) {
16 | body = AnyView(SwiftUI.NavigationLink(value: value, label: label))
| |- error: 'NavigationLink' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
17 | } else {
18 | body = AnyView(Backport(label: label(), item: value.map { .init(value: $0) }))
/Users/admin/builder/spi-builder-workspace/Sources/NavigationStackBackport/NavigationLink.swift:16:27: error: 'init(value:label:)' is only available in macOS 13.0 or newer
1 | import SwiftUI
2 |
3 | public struct NavigationLink<Label: View>: View {
| `- note: add @available attribute to enclosing generic struct
4 | public let body: AnyView
5 |
:
12 | }
13 |
14 | public init<P: Hashable>(value: P?, @ViewBuilder label: () -> Label) where P: Codable {
| `- note: add @available attribute to enclosing initializer
15 | if #available(iOS 16.0, *) {
16 | body = AnyView(SwiftUI.NavigationLink(value: value, label: label))
| |- error: 'init(value:label:)' is only available in macOS 13.0 or newer
| `- note: add 'if #available' version check
17 | } else {
18 | body = AnyView(Backport(label: label(), item: value.map { .init(value: $0) }))
/Users/admin/builder/spi-builder-workspace/Sources/NavigationStackBackport/NavigationLink.swift:24:4: warning: conformance of 'Text' to 'View' is only available in macOS 10.15 or newer; this is an error in the Swift 6 language mode
1 | import SwiftUI
2 |
3 | public struct NavigationLink<Label: View>: View {
| `- note: add @available attribute to enclosing generic struct
4 | public let body: AnyView
5 |
:
20 | }
21 |
22 | public init<P: Hashable>(_ titleKey: LocalizedStringKey, value: P?) where Label == Text {
| `- note: add @available attribute to enclosing initializer
23 | if #available(iOS 16.0, *) {
24 | body = AnyView(SwiftUI.NavigationLink(titleKey, value: value))
| |- warning: conformance of 'Text' 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
25 | } else {
26 | body = AnyView(Backport(label: Text(titleKey), item: value.map { .init(value: $0) }))
/Users/admin/builder/spi-builder-workspace/Sources/NavigationStackBackport/NavigationLink.swift:24:11: error: 'AnyView' is only available in macOS 10.15 or newer
1 | import SwiftUI
2 |
3 | public struct NavigationLink<Label: View>: View {
| `- note: add @available attribute to enclosing generic struct
4 | public let body: AnyView
5 |
:
20 | }
21 |
22 | public init<P: Hashable>(_ titleKey: LocalizedStringKey, value: P?) where Label == Text {
| `- note: add @available attribute to enclosing initializer
23 | if #available(iOS 16.0, *) {
24 | body = AnyView(SwiftUI.NavigationLink(titleKey, value: value))
| |- error: 'AnyView' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
25 | } else {
26 | body = AnyView(Backport(label: Text(titleKey), item: value.map { .init(value: $0) }))
/Users/admin/builder/spi-builder-workspace/Sources/NavigationStackBackport/NavigationLink.swift:24:11: warning: conformance of 'Text' to 'View' is only available in macOS 10.15 or newer; this is an error in the Swift 6 language mode
1 | import SwiftUI
2 |
3 | public struct NavigationLink<Label: View>: View {
| `- note: add @available attribute to enclosing generic struct
4 | public let body: AnyView
5 |
:
20 | }
21 |
22 | public init<P: Hashable>(_ titleKey: LocalizedStringKey, value: P?) where Label == Text {
| `- note: add @available attribute to enclosing initializer
23 | if #available(iOS 16.0, *) {
24 | body = AnyView(SwiftUI.NavigationLink(titleKey, value: value))
| |- warning: conformance of 'Text' 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
25 | } else {
26 | body = AnyView(Backport(label: Text(titleKey), item: value.map { .init(value: $0) }))
/Users/admin/builder/spi-builder-workspace/Sources/NavigationStackBackport/NavigationLink.swift:24:11: warning: conformance of 'Never' to 'View' is only available in macOS 10.15 or newer; this is an error in the Swift 6 language mode
1 | import SwiftUI
2 |
3 | public struct NavigationLink<Label: View>: View {
| `- note: add @available attribute to enclosing generic struct
4 | public let body: AnyView
5 |
:
20 | }
21 |
22 | public init<P: Hashable>(_ titleKey: LocalizedStringKey, value: P?) where Label == Text {
| `- note: add @available attribute to enclosing initializer
23 | if #available(iOS 16.0, *) {
24 | body = AnyView(SwiftUI.NavigationLink(titleKey, value: value))
| |- warning: conformance of 'Never' 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
25 | } else {
26 | body = AnyView(Backport(label: Text(titleKey), item: value.map { .init(value: $0) }))
/Users/admin/builder/spi-builder-workspace/Sources/NavigationStackBackport/NavigationLink.swift:24:27: error: 'NavigationLink' is only available in macOS 10.15 or newer
1 | import SwiftUI
2 |
3 | public struct NavigationLink<Label: View>: View {
| `- note: add @available attribute to enclosing generic struct
4 | public let body: AnyView
5 |
:
20 | }
21 |
22 | public init<P: Hashable>(_ titleKey: LocalizedStringKey, value: P?) where Label == Text {
| `- note: add @available attribute to enclosing initializer
23 | if #available(iOS 16.0, *) {
24 | body = AnyView(SwiftUI.NavigationLink(titleKey, value: value))
| |- error: 'NavigationLink' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
25 | } else {
26 | body = AnyView(Backport(label: Text(titleKey), item: value.map { .init(value: $0) }))
/Users/admin/builder/spi-builder-workspace/Sources/NavigationStackBackport/NavigationLink.swift:24:27: error: 'init(_:value:)' is only available in macOS 13.0 or newer
1 | import SwiftUI
2 |
3 | public struct NavigationLink<Label: View>: View {
| `- note: add @available attribute to enclosing generic struct
4 | public let body: AnyView
5 |
:
20 | }
21 |
22 | public init<P: Hashable>(_ titleKey: LocalizedStringKey, value: P?) where Label == Text {
| `- note: add @available attribute to enclosing initializer
23 | if #available(iOS 16.0, *) {
24 | body = AnyView(SwiftUI.NavigationLink(titleKey, value: value))
| |- error: 'init(_:value:)' is only available in macOS 13.0 or newer
| `- note: add 'if #available' version check
25 | } else {
26 | body = AnyView(Backport(label: Text(titleKey), item: value.map { .init(value: $0) }))
/Users/admin/builder/spi-builder-workspace/Sources/NavigationStackBackport/NavigationLink.swift:32:4: warning: conformance of 'Text' to 'View' is only available in macOS 10.15 or newer; this is an error in the Swift 6 language mode
1 | import SwiftUI
2 |
3 | public struct NavigationLink<Label: View>: View {
| `- note: add @available attribute to enclosing generic struct
4 | public let body: AnyView
5 |
:
28 | }
29 |
30 | public init<P: Hashable>(_ titleKey: LocalizedStringKey, value: P?) where Label == Text, P: Codable {
| `- note: add @available attribute to enclosing initializer
31 | if #available(iOS 16.0, *) {
32 | body = AnyView(SwiftUI.NavigationLink(titleKey, value: value))
| |- warning: conformance of 'Text' 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
33 | } else {
34 | body = AnyView(Backport(label: Text(titleKey), item: value.map { .init(value: $0) }))
/Users/admin/builder/spi-builder-workspace/Sources/NavigationStackBackport/NavigationLink.swift:32:11: error: 'AnyView' is only available in macOS 10.15 or newer
1 | import SwiftUI
2 |
3 | public struct NavigationLink<Label: View>: View {
| `- note: add @available attribute to enclosing generic struct
4 | public let body: AnyView
5 |
:
28 | }
29 |
30 | public init<P: Hashable>(_ titleKey: LocalizedStringKey, value: P?) where Label == Text, P: Codable {
| `- note: add @available attribute to enclosing initializer
31 | if #available(iOS 16.0, *) {
32 | body = AnyView(SwiftUI.NavigationLink(titleKey, value: value))
| |- error: 'AnyView' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
33 | } else {
34 | body = AnyView(Backport(label: Text(titleKey), item: value.map { .init(value: $0) }))
/Users/admin/builder/spi-builder-workspace/Sources/NavigationStackBackport/NavigationLink.swift:32:11: warning: conformance of 'Text' to 'View' is only available in macOS 10.15 or newer; this is an error in the Swift 6 language mode
1 | import SwiftUI
2 |
3 | public struct NavigationLink<Label: View>: View {
| `- note: add @available attribute to enclosing generic struct
4 | public let body: AnyView
5 |
:
28 | }
29 |
30 | public init<P: Hashable>(_ titleKey: LocalizedStringKey, value: P?) where Label == Text, P: Codable {
| `- note: add @available attribute to enclosing initializer
31 | if #available(iOS 16.0, *) {
32 | body = AnyView(SwiftUI.NavigationLink(titleKey, value: value))
| |- warning: conformance of 'Text' 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
33 | } else {
34 | body = AnyView(Backport(label: Text(titleKey), item: value.map { .init(value: $0) }))
/Users/admin/builder/spi-builder-workspace/Sources/NavigationStackBackport/NavigationLink.swift:32:11: warning: conformance of 'Never' to 'View' is only available in macOS 10.15 or newer; this is an error in the Swift 6 language mode
1 | import SwiftUI
2 |
3 | public struct NavigationLink<Label: View>: View {
| `- note: add @available attribute to enclosing generic struct
4 | public let body: AnyView
5 |
:
28 | }
29 |
30 | public init<P: Hashable>(_ titleKey: LocalizedStringKey, value: P?) where Label == Text, P: Codable {
| `- note: add @available attribute to enclosing initializer
31 | if #available(iOS 16.0, *) {
32 | body = AnyView(SwiftUI.NavigationLink(titleKey, value: value))
| |- warning: conformance of 'Never' 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
33 | } else {
34 | body = AnyView(Backport(label: Text(titleKey), item: value.map { .init(value: $0) }))
/Users/admin/builder/spi-builder-workspace/Sources/NavigationStackBackport/NavigationLink.swift:32:27: error: 'NavigationLink' is only available in macOS 10.15 or newer
1 | import SwiftUI
2 |
3 | public struct NavigationLink<Label: View>: View {
| `- note: add @available attribute to enclosing generic struct
4 | public let body: AnyView
5 |
:
28 | }
29 |
30 | public init<P: Hashable>(_ titleKey: LocalizedStringKey, value: P?) where Label == Text, P: Codable {
| `- note: add @available attribute to enclosing initializer
31 | if #available(iOS 16.0, *) {
32 | body = AnyView(SwiftUI.NavigationLink(titleKey, value: value))
| |- error: 'NavigationLink' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
33 | } else {
34 | body = AnyView(Backport(label: Text(titleKey), item: value.map { .init(value: $0) }))
/Users/admin/builder/spi-builder-workspace/Sources/NavigationStackBackport/NavigationLink.swift:32:27: error: 'init(_:value:)' is only available in macOS 13.0 or newer
1 | import SwiftUI
2 |
3 | public struct NavigationLink<Label: View>: View {
| `- note: add @available attribute to enclosing generic struct
4 | public let body: AnyView
5 |
:
28 | }
29 |
30 | public init<P: Hashable>(_ titleKey: LocalizedStringKey, value: P?) where Label == Text, P: Codable {
| `- note: add @available attribute to enclosing initializer
31 | if #available(iOS 16.0, *) {
32 | body = AnyView(SwiftUI.NavigationLink(titleKey, value: value))
| |- error: 'init(_:value:)' is only available in macOS 13.0 or newer
| `- note: add 'if #available' version check
33 | } else {
34 | body = AnyView(Backport(label: Text(titleKey), item: value.map { .init(value: $0) }))
/Users/admin/builder/spi-builder-workspace/Sources/NavigationStackBackport/NavigationLink.swift:40:4: warning: conformance of 'Text' to 'View' is only available in macOS 10.15 or newer; this is an error in the Swift 6 language mode
1 | import SwiftUI
2 |
3 | public struct NavigationLink<Label: View>: View {
| `- note: add @available attribute to enclosing generic struct
4 | public let body: AnyView
5 |
:
36 | }
37 |
38 | public init<P: Hashable, S>(_ title: S, value: P?) where Label == Text, S: StringProtocol {
| `- note: add @available attribute to enclosing initializer
39 | if #available(iOS 16.0, *) {
40 | body = AnyView(SwiftUI.NavigationLink(title, value: value))
| |- warning: conformance of 'Text' 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
41 | } else {
42 | body = AnyView(Backport(label: Text(title), item: value.map { .init(value: $0) }))
/Users/admin/builder/spi-builder-workspace/Sources/NavigationStackBackport/NavigationLink.swift:40:11: error: 'AnyView' is only available in macOS 10.15 or newer
1 | import SwiftUI
2 |
3 | public struct NavigationLink<Label: View>: View {
| `- note: add @available attribute to enclosing generic struct
4 | public let body: AnyView
5 |
:
36 | }
37 |
38 | public init<P: Hashable, S>(_ title: S, value: P?) where Label == Text, S: StringProtocol {
| `- note: add @available attribute to enclosing initializer
39 | if #available(iOS 16.0, *) {
40 | body = AnyView(SwiftUI.NavigationLink(title, value: value))
| |- error: 'AnyView' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
41 | } else {
42 | body = AnyView(Backport(label: Text(title), item: value.map { .init(value: $0) }))
/Users/admin/builder/spi-builder-workspace/Sources/NavigationStackBackport/NavigationLink.swift:40:11: warning: conformance of 'Text' to 'View' is only available in macOS 10.15 or newer; this is an error in the Swift 6 language mode
1 | import SwiftUI
2 |
3 | public struct NavigationLink<Label: View>: View {
| `- note: add @available attribute to enclosing generic struct
4 | public let body: AnyView
5 |
:
36 | }
37 |
38 | public init<P: Hashable, S>(_ title: S, value: P?) where Label == Text, S: StringProtocol {
| `- note: add @available attribute to enclosing initializer
39 | if #available(iOS 16.0, *) {
40 | body = AnyView(SwiftUI.NavigationLink(title, value: value))
| |- warning: conformance of 'Text' 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
41 | } else {
42 | body = AnyView(Backport(label: Text(title), item: value.map { .init(value: $0) }))
/Users/admin/builder/spi-builder-workspace/Sources/NavigationStackBackport/NavigationLink.swift:40:11: warning: conformance of 'Never' to 'View' is only available in macOS 10.15 or newer; this is an error in the Swift 6 language mode
1 | import SwiftUI
2 |
3 | public struct NavigationLink<Label: View>: View {
| `- note: add @available attribute to enclosing generic struct
4 | public let body: AnyView
5 |
:
36 | }
37 |
38 | public init<P: Hashable, S>(_ title: S, value: P?) where Label == Text, S: StringProtocol {
| `- note: add @available attribute to enclosing initializer
39 | if #available(iOS 16.0, *) {
40 | body = AnyView(SwiftUI.NavigationLink(title, value: value))
| |- warning: conformance of 'Never' 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
41 | } else {
42 | body = AnyView(Backport(label: Text(title), item: value.map { .init(value: $0) }))
/Users/admin/builder/spi-builder-workspace/Sources/NavigationStackBackport/NavigationLink.swift:40:27: error: 'NavigationLink' is only available in macOS 10.15 or newer
1 | import SwiftUI
2 |
3 | public struct NavigationLink<Label: View>: View {
| `- note: add @available attribute to enclosing generic struct
4 | public let body: AnyView
5 |
:
36 | }
37 |
38 | public init<P: Hashable, S>(_ title: S, value: P?) where Label == Text, S: StringProtocol {
| `- note: add @available attribute to enclosing initializer
39 | if #available(iOS 16.0, *) {
40 | body = AnyView(SwiftUI.NavigationLink(title, value: value))
| |- error: 'NavigationLink' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
41 | } else {
42 | body = AnyView(Backport(label: Text(title), item: value.map { .init(value: $0) }))
/Users/admin/builder/spi-builder-workspace/Sources/NavigationStackBackport/NavigationLink.swift:40:27: error: 'init(_:value:)' is only available in macOS 13.0 or newer
1 | import SwiftUI
2 |
3 | public struct NavigationLink<Label: View>: View {
| `- note: add @available attribute to enclosing generic struct
4 | public let body: AnyView
5 |
:
36 | }
37 |
38 | public init<P: Hashable, S>(_ title: S, value: P?) where Label == Text, S: StringProtocol {
| `- note: add @available attribute to enclosing initializer
39 | if #available(iOS 16.0, *) {
40 | body = AnyView(SwiftUI.NavigationLink(title, value: value))
| |- error: 'init(_:value:)' is only available in macOS 13.0 or newer
| `- note: add 'if #available' version check
41 | } else {
42 | body = AnyView(Backport(label: Text(title), item: value.map { .init(value: $0) }))
/Users/admin/builder/spi-builder-workspace/Sources/NavigationStackBackport/NavigationLink.swift:48:4: warning: conformance of 'Text' to 'View' is only available in macOS 10.15 or newer; this is an error in the Swift 6 language mode
1 | import SwiftUI
2 |
3 | public struct NavigationLink<Label: View>: View {
| `- note: add @available attribute to enclosing generic struct
4 | public let body: AnyView
5 |
:
44 | }
45 |
46 | public init<P: Hashable, S>(_ title: S, value: P?) where Label == Text, S: StringProtocol, P: Codable {
| `- note: add @available attribute to enclosing initializer
47 | if #available(iOS 16.0, *) {
48 | body = AnyView(SwiftUI.NavigationLink(title, value: value))
| |- warning: conformance of 'Text' 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
49 | } else {
50 | body = AnyView(Backport(label: Text(title), item: value.map { .init(value: $0) }))
/Users/admin/builder/spi-builder-workspace/Sources/NavigationStackBackport/NavigationLink.swift:48:11: error: 'AnyView' is only available in macOS 10.15 or newer
1 | import SwiftUI
2 |
3 | public struct NavigationLink<Label: View>: View {
| `- note: add @available attribute to enclosing generic struct
4 | public let body: AnyView
5 |
:
44 | }
45 |
46 | public init<P: Hashable, S>(_ title: S, value: P?) where Label == Text, S: StringProtocol, P: Codable {
| `- note: add @available attribute to enclosing initializer
47 | if #available(iOS 16.0, *) {
48 | body = AnyView(SwiftUI.NavigationLink(title, value: value))
| |- error: 'AnyView' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
49 | } else {
50 | body = AnyView(Backport(label: Text(title), item: value.map { .init(value: $0) }))
/Users/admin/builder/spi-builder-workspace/Sources/NavigationStackBackport/NavigationLink.swift:48:11: warning: conformance of 'Text' to 'View' is only available in macOS 10.15 or newer; this is an error in the Swift 6 language mode
1 | import SwiftUI
2 |
3 | public struct NavigationLink<Label: View>: View {
| `- note: add @available attribute to enclosing generic struct
4 | public let body: AnyView
5 |
:
44 | }
45 |
46 | public init<P: Hashable, S>(_ title: S, value: P?) where Label == Text, S: StringProtocol, P: Codable {
| `- note: add @available attribute to enclosing initializer
47 | if #available(iOS 16.0, *) {
48 | body = AnyView(SwiftUI.NavigationLink(title, value: value))
| |- warning: conformance of 'Text' 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
49 | } else {
50 | body = AnyView(Backport(label: Text(title), item: value.map { .init(value: $0) }))
/Users/admin/builder/spi-builder-workspace/Sources/NavigationStackBackport/NavigationLink.swift:48:11: warning: conformance of 'Never' to 'View' is only available in macOS 10.15 or newer; this is an error in the Swift 6 language mode
1 | import SwiftUI
2 |
3 | public struct NavigationLink<Label: View>: View {
| `- note: add @available attribute to enclosing generic struct
4 | public let body: AnyView
5 |
:
44 | }
45 |
46 | public init<P: Hashable, S>(_ title: S, value: P?) where Label == Text, S: StringProtocol, P: Codable {
| `- note: add @available attribute to enclosing initializer
47 | if #available(iOS 16.0, *) {
48 | body = AnyView(SwiftUI.NavigationLink(title, value: value))
| |- warning: conformance of 'Never' 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
49 | } else {
50 | body = AnyView(Backport(label: Text(title), item: value.map { .init(value: $0) }))
/Users/admin/builder/spi-builder-workspace/Sources/NavigationStackBackport/NavigationLink.swift:48:27: error: 'NavigationLink' is only available in macOS 10.15 or newer
1 | import SwiftUI
2 |
3 | public struct NavigationLink<Label: View>: View {
| `- note: add @available attribute to enclosing generic struct
4 | public let body: AnyView
5 |
:
44 | }
45 |
46 | public init<P: Hashable, S>(_ title: S, value: P?) where Label == Text, S: StringProtocol, P: Codable {
| `- note: add @available attribute to enclosing initializer
47 | if #available(iOS 16.0, *) {
48 | body = AnyView(SwiftUI.NavigationLink(title, value: value))
| |- error: 'NavigationLink' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
49 | } else {
50 | body = AnyView(Backport(label: Text(title), item: value.map { .init(value: $0) }))
/Users/admin/builder/spi-builder-workspace/Sources/NavigationStackBackport/NavigationLink.swift:48:27: error: 'init(_:value:)' is only available in macOS 13.0 or newer
1 | import SwiftUI
2 |
3 | public struct NavigationLink<Label: View>: View {
| `- note: add @available attribute to enclosing generic struct
4 | public let body: AnyView
5 |
:
44 | }
45 |
46 | public init<P: Hashable, S>(_ title: S, value: P?) where Label == Text, S: StringProtocol, P: Codable {
| `- note: add @available attribute to enclosing initializer
47 | if #available(iOS 16.0, *) {
48 | body = AnyView(SwiftUI.NavigationLink(title, value: value))
| |- error: 'init(_:value:)' is only available in macOS 13.0 or newer
| `- note: add 'if #available' version check
49 | } else {
50 | body = AnyView(Backport(label: Text(title), item: value.map { .init(value: $0) }))
/Users/admin/builder/spi-builder-workspace/Sources/NavigationStackBackport/NavigationAuthority.swift:23:26: error: 'PassthroughSubject' is only available in macOS 10.15 or newer
2 | import SwiftUI
3 |
4 | class NavigationAuthority: NSObject, ObservableObject {
| `- note: add @available attribute to enclosing class
5 | weak var navigationController: UINavigationController? {
6 | didSet { navigationController?.delegate = self }
:
21 |
22 | let pathPopPublisher = PassthroughSubject<Int, Never>()
23 | let pathPushPublisher = PassthroughSubject<NavigationPathItem, Never>()
| `- error: 'PassthroughSubject' is only available in macOS 10.15 or newer
24 | let presentationPopPublisher = PassthroughSubject<Namespace.ID, Never>()
25 | var canNavigate: Bool { navigationController != nil }
/Users/admin/builder/spi-builder-workspace/Sources/NavigationStackBackport/NavigationLink.swift:62:4: error: 'Button' is only available in macOS 10.15 or newer
54 |
55 | private extension NavigationLink {
56 | struct Backport: View {
| `- note: add @available attribute to enclosing struct
57 | let label: Label
58 | let item: NavigationPathItem?
59 | @Environment(\.navigationAuthority) private var authority
60 |
61 | var body: some View {
| `- note: add @available attribute to enclosing property
62 | Button {
| |- error: 'Button' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
63 | guard let item else { return }
64 | authority.pathPushPublisher.send(item)
/Users/admin/builder/spi-builder-workspace/Sources/NavigationStackBackport/NavigationLink.swift:68:5: error: 'disabled' is only available in macOS 10.15 or newer
54 |
55 | private extension NavigationLink {
56 | struct Backport: View {
| `- note: add @available attribute to enclosing struct
57 | let label: Label
58 | let item: NavigationPathItem?
59 | @Environment(\.navigationAuthority) private var authority
60 |
61 | var body: some View {
| `- note: add @available attribute to enclosing property
62 | Button {
63 | guard let item else { return }
:
66 | label
67 | }
68 | .disabled(item == nil || !authority.canNavigate)
| |- error: 'disabled' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
69 | }
70 | }
/Users/admin/builder/spi-builder-workspace/Sources/NavigationStackBackport/NavigationPath.swift:11:27: error: 'NavigationPath' is only available in macOS 13.0 or newer
1 | import SwiftUI
2 |
3 | public struct NavigationPath {
| `- note: add @available attribute to enclosing struct
4 | public var count: Int { box.count }
5 | public var isEmpty: Bool { box.isEmpty }
:
9 |
10 | @available(iOS 16.0, *)
11 | var swiftUIPath: SwiftUI.NavigationPath {
| | `- error: 'NavigationPath' is only available in macOS 13.0 or newer
| `- note: add @available attribute to enclosing property
12 | get { box as! SwiftUI.NavigationPath }
13 | set { box = newValue }
/Users/admin/builder/spi-builder-workspace/Sources/NavigationStackBackport/NavigationPath.swift:12:25: error: 'NavigationPath' is only available in macOS 13.0 or newer
1 | import SwiftUI
2 |
3 | public struct NavigationPath {
| `- note: add @available attribute to enclosing struct
4 | public var count: Int { box.count }
5 | public var isEmpty: Bool { box.isEmpty }
:
9 |
10 | @available(iOS 16.0, *)
11 | var swiftUIPath: SwiftUI.NavigationPath {
| `- note: add @available attribute to enclosing property
12 | get { box as! SwiftUI.NavigationPath }
| |- error: 'NavigationPath' is only available in macOS 13.0 or newer
| `- note: add 'if #available' version check
13 | set { box = newValue }
14 | }
/Users/admin/builder/spi-builder-workspace/Sources/NavigationStackBackport/NavigationPath.swift:23:18: error: 'NavigationPath' is only available in macOS 13.0 or newer
1 | import SwiftUI
2 |
3 | public struct NavigationPath {
| `- note: add @available attribute to enclosing struct
4 | public var count: Int { box.count }
5 | public var isEmpty: Bool { box.isEmpty }
:
19 | }
20 |
21 | public init() {
| `- note: add @available attribute to enclosing initializer
22 | if #available(iOS 16.0, *) {
23 | box = SwiftUI.NavigationPath()
| |- error: 'NavigationPath' is only available in macOS 13.0 or newer
| `- note: add 'if #available' version check
24 | } else {
25 | box = NavigationPathBackport(items: [])
/Users/admin/builder/spi-builder-workspace/Sources/NavigationStackBackport/NavigationPath.swift:31:18: error: 'NavigationPath' is only available in macOS 13.0 or newer
1 | import SwiftUI
2 |
3 | public struct NavigationPath {
| `- note: add @available attribute to enclosing struct
4 | public var count: Int { box.count }
5 | public var isEmpty: Bool { box.isEmpty }
:
27 | }
28 |
29 | public init<S: Sequence>(_ elements: S) where S.Element: Hashable {
| `- note: add @available attribute to enclosing initializer
30 | if #available(iOS 16.0, *) {
31 | box = SwiftUI.NavigationPath(elements)
| |- error: 'NavigationPath' is only available in macOS 13.0 or newer
| `- note: add 'if #available' version check
32 | } else {
33 | box = NavigationPathBackport(items: elements.map { .init(value: $0) })
/Users/admin/builder/spi-builder-workspace/Sources/NavigationStackBackport/NavigationPath.swift:39:18: error: 'NavigationPath' is only available in macOS 13.0 or newer
1 | import SwiftUI
2 |
3 | public struct NavigationPath {
| `- note: add @available attribute to enclosing struct
4 | public var count: Int { box.count }
5 | public var isEmpty: Bool { box.isEmpty }
:
35 | }
36 |
37 | public init<S: Sequence>(_ elements: S) where S.Element: Hashable, S.Element: Codable {
| `- note: add @available attribute to enclosing initializer
38 | if #available(iOS 16.0, *) {
39 | box = SwiftUI.NavigationPath(elements)
| |- error: 'NavigationPath' is only available in macOS 13.0 or newer
| `- note: add 'if #available' version check
40 | } else {
41 | box = NavigationPathBackport(items: elements.map { .init(value: $0) })
/Users/admin/builder/spi-builder-workspace/Sources/NavigationStackBackport/NavigationPath.swift:47:18: error: 'NavigationPath' is only available in macOS 13.0 or newer
1 | import SwiftUI
2 |
3 | public struct NavigationPath {
| `- note: add @available attribute to enclosing struct
4 | public var count: Int { box.count }
5 | public var isEmpty: Bool { box.isEmpty }
:
43 | }
44 |
45 | public init(_ codable: CodableRepresentation) {
| `- note: add @available attribute to enclosing initializer
46 | if #available(iOS 16.0, *) {
47 | box = SwiftUI.NavigationPath(codable.storage as! SwiftUI.NavigationPath.CodableRepresentation)
| |- error: 'NavigationPath' is only available in macOS 13.0 or newer
| `- note: add 'if #available' version check
48 | } else {
49 | box = NavigationPathBackport(items: codable.storage as! [NavigationPathItem])
/Users/admin/builder/spi-builder-workspace/Sources/NavigationStackBackport/NavigationPath.swift:47:61: error: 'NavigationPath' is only available in macOS 13.0 or newer
1 | import SwiftUI
2 |
3 | public struct NavigationPath {
| `- note: add @available attribute to enclosing struct
4 | public var count: Int { box.count }
5 | public var isEmpty: Bool { box.isEmpty }
:
43 | }
44 |
45 | public init(_ codable: CodableRepresentation) {
| `- note: add @available attribute to enclosing initializer
46 | if #available(iOS 16.0, *) {
47 | box = SwiftUI.NavigationPath(codable.storage as! SwiftUI.NavigationPath.CodableRepresentation)
| |- error: 'NavigationPath' is only available in macOS 13.0 or newer
| `- note: add 'if #available' version check
48 | } else {
49 | box = NavigationPathBackport(items: codable.storage as! [NavigationPathItem])
/Users/admin/builder/spi-builder-workspace/Sources/NavigationStackBackport/NavigationPath.swift:71:46: warning: conformance of 'NavigationPath' to 'Equatable' is only available in macOS 13.0 or newer; this is an error in the Swift 6 language mode
66 | }
67 |
68 | extension NavigationPath: Equatable {
| `- note: add @available attribute to enclosing extension
69 | public static func == (lhs: Self, rhs: Self) -> Bool {
| `- note: add @available attribute to enclosing operator function
70 | if #available(iOS 16.0, *) {
71 | return lhs.box as? SwiftUI.NavigationPath == rhs.box as? SwiftUI.NavigationPath
| |- warning: conformance of 'NavigationPath' to 'Equatable' is only available in macOS 13.0 or newer; this is an error in the Swift 6 language mode
| `- note: add 'if #available' version check
72 | } else {
73 | return lhs.box as? NavigationPathBackport == rhs.box as? NavigationPathBackport
/Users/admin/builder/spi-builder-workspace/Sources/NavigationStackBackport/NavigationPath.swift:71:31: error: 'NavigationPath' is only available in macOS 13.0 or newer
66 | }
67 |
68 | extension NavigationPath: Equatable {
| `- note: add @available attribute to enclosing extension
69 | public static func == (lhs: Self, rhs: Self) -> Bool {
| `- note: add @available attribute to enclosing operator function
70 | if #available(iOS 16.0, *) {
71 | return lhs.box as? SwiftUI.NavigationPath == rhs.box as? SwiftUI.NavigationPath
| |- error: 'NavigationPath' is only available in macOS 13.0 or newer
| `- note: add 'if #available' version check
72 | } else {
73 | return lhs.box as? NavigationPathBackport == rhs.box as? NavigationPathBackport
/Users/admin/builder/spi-builder-workspace/Sources/NavigationStackBackport/NavigationPath.swift:71:69: error: 'NavigationPath' is only available in macOS 13.0 or newer
66 | }
67 |
68 | extension NavigationPath: Equatable {
| `- note: add @available attribute to enclosing extension
69 | public static func == (lhs: Self, rhs: Self) -> Bool {
| `- note: add @available attribute to enclosing operator function
70 | if #available(iOS 16.0, *) {
71 | return lhs.box as? SwiftUI.NavigationPath == rhs.box as? SwiftUI.NavigationPath
| |- error: 'NavigationPath' is only available in macOS 13.0 or newer
| `- note: add 'if #available' version check
72 | } else {
73 | return lhs.box as? NavigationPathBackport == rhs.box as? NavigationPathBackport
[16/16] Compiling NavigationStackBackport UIKitNavigation.swift
/Users/admin/builder/spi-builder-workspace/Sources/NavigationStackBackport/UIKitNavigation.swift:6:3: error: 'Environment' is only available in macOS 10.15 or newer
1 | import SwiftUI
2 |
3 | struct UIKitNavigation<Root: View>: UIViewControllerRepresentable {
| `- note: add @available attribute to enclosing generic struct
4 | let root: Root
5 | let path: NavigationPathBackport
6 | @Environment(\.navigationAuthority) private var authority
| `- error: 'Environment' is only available in macOS 10.15 or newer
7 |
8 | func makeUIViewController(context: Context) -> UINavigationController {
/Users/admin/builder/spi-builder-workspace/Sources/NavigationStackBackport/UIKitNavigation.swift:8:49: error: cannot find type 'UINavigationController' in scope
6 | @Environment(\.navigationAuthority) private var authority
7 |
8 | func makeUIViewController(context: Context) -> UINavigationController {
| `- error: cannot find type 'UINavigationController' in scope
9 | let navigationController = UINavigationController()
10 | navigationController.navigationBar.prefersLargeTitles = true
/Users/admin/builder/spi-builder-workspace/Sources/NavigationStackBackport/UIKitNavigation.swift:8:37: error: cannot find type 'Context' in scope
6 | @Environment(\.navigationAuthority) private var authority
7 |
8 | func makeUIViewController(context: Context) -> UINavigationController {
| `- error: cannot find type 'Context' in scope
9 | let navigationController = UINavigationController()
10 | navigationController.navigationBar.prefersLargeTitles = true
/Users/admin/builder/spi-builder-workspace/Sources/NavigationStackBackport/UIKitNavigation.swift:17:54: error: cannot find type 'UINavigationController' in scope
15 | }
16 |
17 | func updateUIViewController(_ navigationController: UINavigationController, context: Context) {
| `- error: cannot find type 'UINavigationController' in scope
18 | if !navigationController.viewControllers.isEmpty, let hostingController = navigationController.viewControllers[0] as? UIHostingController<Root> {
19 | hostingController.rootView = root
/Users/admin/builder/spi-builder-workspace/Sources/NavigationStackBackport/UIKitNavigation.swift:17:87: error: cannot find type 'Context' in scope
15 | }
16 |
17 | func updateUIViewController(_ navigationController: UINavigationController, context: Context) {
| `- error: cannot find type 'Context' in scope
18 | if !navigationController.viewControllers.isEmpty, let hostingController = navigationController.viewControllers[0] as? UIHostingController<Root> {
19 | hostingController.rootView = root
/Users/admin/builder/spi-builder-workspace/Sources/NavigationStackBackport/UIKitNavigation.swift:3:37: error: cannot find type 'UIViewControllerRepresentable' in scope
1 | import SwiftUI
2 |
3 | struct UIKitNavigation<Root: View>: UIViewControllerRepresentable {
| `- error: cannot find type 'UIViewControllerRepresentable' in scope
4 | let root: Root
5 | let path: NavigationPathBackport
/Users/admin/builder/spi-builder-workspace/Sources/NavigationStackBackport/UIKitNavigation.swift:3:30: error: 'View' is only available in macOS 10.15 or newer
1 | import SwiftUI
2 |
3 | struct UIKitNavigation<Root: View>: UIViewControllerRepresentable {
| | `- error: 'View' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing generic struct
4 | let root: Root
5 | let path: NavigationPathBackport
/Users/admin/builder/spi-builder-workspace/Sources/NavigationStackBackport/UIKitNavigation.swift:31:37: error: cannot find type 'UIHostingController' in scope
29 |
30 | private extension UIKitNavigation {
31 | func prelayout(rootViewController: UIHostingController<Root>, navigationController: UINavigationController) {
| `- error: cannot find type 'UIHostingController' in scope
32 | navigationController.view.insertSubview(rootViewController.view, at: 0)
33 | navigationController.addChild(rootViewController)
/Users/admin/builder/spi-builder-workspace/Sources/NavigationStackBackport/UIKitNavigation.swift:31:86: error: cannot find type 'UINavigationController' in scope
29 |
30 | private extension UIKitNavigation {
31 | func prelayout(rootViewController: UIHostingController<Root>, navigationController: UINavigationController) {
| `- error: cannot find type 'UINavigationController' in scope
32 | navigationController.view.insertSubview(rootViewController.view, at: 0)
33 | navigationController.addChild(rootViewController)
/Users/admin/builder/spi-builder-workspace/Sources/NavigationStackBackport/UIKitNavigation.swift:9:30: error: cannot find 'UINavigationController' in scope
7 |
8 | func makeUIViewController(context: Context) -> UINavigationController {
9 | let navigationController = UINavigationController()
| `- error: cannot find 'UINavigationController' in scope
10 | navigationController.navigationBar.prefersLargeTitles = true
11 | navigationController.navigationBar.barStyle = .default
/Users/admin/builder/spi-builder-workspace/Sources/NavigationStackBackport/UIKitNavigation.swift:11:50: error: cannot infer contextual base in reference to member 'default'
9 | let navigationController = UINavigationController()
10 | navigationController.navigationBar.prefersLargeTitles = true
11 | navigationController.navigationBar.barStyle = .default
| `- error: cannot infer contextual base in reference to member 'default'
12 | navigationController.navigationBar.isTranslucent = true
13 | authority.navigationController = navigationController
/Users/admin/builder/spi-builder-workspace/Sources/NavigationStackBackport/NavigationAuthority.swift:5:33: error: cannot find type 'UINavigationController' in scope
3 |
4 | class NavigationAuthority: NSObject, ObservableObject {
5 | weak var navigationController: UINavigationController? {
| `- error: cannot find type 'UINavigationController' in scope
6 | didSet { navigationController?.delegate = self }
7 | }
/Users/admin/builder/spi-builder-workspace/Sources/NavigationStackBackport/NavigationAuthority.swift:97:52: error: cannot find type 'UINavigationController' in scope
95 |
96 | extension NavigationAuthority: UINavigationControllerDelegate {
97 | func navigationController(_ navigationController: UINavigationController, didShow viewController: UIViewController, animated: Bool) {
| `- error: cannot find type 'UINavigationController' in scope
98 | let count = navigationController.viewControllers.count
99 | defer { viewControllersCount = count }
/Users/admin/builder/spi-builder-workspace/Sources/NavigationStackBackport/NavigationAuthority.swift:97:100: error: cannot find type 'UIViewController' in scope
95 |
96 | extension NavigationAuthority: UINavigationControllerDelegate {
97 | func navigationController(_ navigationController: UINavigationController, didShow viewController: UIViewController, animated: Bool) {
| `- error: cannot find type 'UIViewController' in scope
98 | let count = navigationController.viewControllers.count
99 | defer { viewControllersCount = count }
/Users/admin/builder/spi-builder-workspace/Sources/NavigationStackBackport/UIKitNavigation.swift:18:121: error: cannot find type 'UIHostingController' in scope
16 |
17 | func updateUIViewController(_ navigationController: UINavigationController, context: Context) {
18 | if !navigationController.viewControllers.isEmpty, let hostingController = navigationController.viewControllers[0] as? UIHostingController<Root> {
| `- error: cannot find type 'UIHostingController' in scope
19 | hostingController.rootView = root
20 | } else {
/Users/admin/builder/spi-builder-workspace/Sources/NavigationStackBackport/UIKitNavigation.swift:21:29: error: cannot find 'UIHostingController' in scope
19 | hostingController.rootView = root
20 | } else {
21 | let rootViewController = UIHostingController(rootView: root)
| `- error: cannot find 'UIHostingController' in scope
22 | navigationController.viewControllers = [rootViewController]
23 | prelayout(rootViewController: rootViewController, navigationController: navigationController)
/Users/admin/builder/spi-builder-workspace/Sources/NavigationStackBackport/UIKitNavigation.swift:26:13: error: call to main actor-isolated instance method 'update(path:)' in a synchronous nonisolated context
15 | }
16 |
17 | func updateUIViewController(_ navigationController: UINavigationController, context: Context) {
| `- note: add '@MainActor' to make instance method 'updateUIViewController(_:context:)' part of global actor 'MainActor'
18 | if !navigationController.viewControllers.isEmpty, let hostingController = navigationController.viewControllers[0] as? UIHostingController<Root> {
19 | hostingController.rootView = root
:
24 | }
25 |
26 | authority.update(path: path)
| `- error: call to main actor-isolated instance method 'update(path:)' in a synchronous nonisolated context
27 | }
28 | }
/Users/admin/builder/spi-builder-workspace/Sources/NavigationStackBackport/NavigationAuthority.swift:80:18: note: calls to instance method 'update(path:)' from outside of its actor context are implicitly asynchronous
78 | }
79 |
80 | @MainActor func update(path: NavigationPathBackport) {
| `- note: calls to instance method 'update(path:)' from outside of its actor context are implicitly asynchronous
81 | guard path != self.path else { return }
82 | self.path = path
BUILD FAILURE 6.0 macosSpm