This is a staging environment. For live and up-to-date package information, visit swiftpackageindex.com.

The Swift Package Index logo.Swift Package Index

Track the adoption of Swift 6 strict concurrency checks for data race safety. How many packages are Ready for Swift 6?

Build Information

Failed to build navigation-stack-backport with Swift 6.0 for macOS (SPM).

Build Command

env DEVELOPER_DIR=/Applications/Xcode-15.3.0.app xcrun --toolchain org.swift.600202405261a swift build --arch arm64 -Xswiftc -Xfrontend -Xswiftc -stats-output-dir -Xswiftc -Xfrontend -Xswiftc .stats -Xswiftc -strict-concurrency=complete

Build Log

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 non-isolated 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 non-isolated 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/Destination.swift:5:6: warning: result builder 'ViewBuilder' does not implement 'buildLimitedAvailability'; this code may crash on earlier versions of the OS
 3 | public extension Backport {
 4 | 	@ViewBuilder func navigationDestination<D: Hashable, C: View>(for data: D.Type, @ViewBuilder destination: @escaping (D) -> C) -> some View {
 5 | 		if #available(iOS 16.0, *) {
   |      `- warning: result builder 'ViewBuilder' does not implement 'buildLimitedAvailability'; this code may crash on earlier versions of the OS
 6 | 			content.navigationDestination(for: D.self, destination: destination)
 7 | 		} else {
/Users/admin/builder/spi-builder-workspace/Sources/NavigationStackBackport/Destination.swift:6:12: error: 'navigationDestination(for:destination:)' is only available in macOS 13.0 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
 5 | 		if #available(iOS 16.0, *) {
 6 | 			content.navigationDestination(for: D.self, destination: destination)
   |            |- error: 'navigationDestination(for:destination:)' is only available in macOS 13.0 or newer
   |            `- note: add 'if #available' version check
 7 | 		} else {
 8 | 			content.modifier(DestinationModifier(destination: destination))
/Users/admin/builder/spi-builder-workspace/Sources/NavigationStackBackport/Destination.swift:5:30: error: 'buildLimitedAvailability' is only available in macOS 11.0 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
 5 | 		if #available(iOS 16.0, *) {
   |                              |- error: 'buildLimitedAvailability' is only available in macOS 11.0 or newer
   |                              `- note: add 'if #available' version check
 6 | 			content.navigationDestination(for: D.self, destination: destination)
 7 | 		} else {
/Users/admin/builder/spi-builder-workspace/Sources/NavigationStackBackport/Destination.swift:5:30: error: 'buildEither(first:)' 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
 5 | 		if #available(iOS 16.0, *) {
   |                              |- error: 'buildEither(first:)' is only available in macOS 10.15 or newer
   |                              `- note: add 'if #available' version check
 6 | 			content.navigationDestination(for: D.self, destination: destination)
 7 | 		} else {
/Users/admin/builder/spi-builder-workspace/Sources/NavigationStackBackport/Destination.swift:7: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<D: Hashable, C: View>(for data: D.Type, @ViewBuilder destination: @escaping (D) -> C) -> some View {
   |                    `- note: add @available attribute to enclosing instance method
 5 | 		if #available(iOS 16.0, *) {
 6 | 			content.navigationDestination(for: D.self, destination: destination)
 7 | 		} else {
   |          |- error: 'buildEither(second:)' is only available in macOS 10.15 or newer
   |          `- note: add 'if #available' version check
 8 | 			content.modifier(DestinationModifier(destination: destination))
 9 | 		}
/Users/admin/builder/spi-builder-workspace/Sources/NavigationStackBackport/Destination.swift:7: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<D: Hashable, C: View>(for data: D.Type, @ViewBuilder destination: @escaping (D) -> C) -> some View {
   |                    `- note: add @available attribute to enclosing instance method
 5 | 		if #available(iOS 16.0, *) {
 6 | 			content.navigationDestination(for: D.self, destination: destination)
 7 | 		} 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
 8 | 			content.modifier(DestinationModifier(destination: destination))
 9 | 		}
/Users/admin/builder/spi-builder-workspace/Sources/NavigationStackBackport/Destination.swift:4:141: 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<D: Hashable, C: View>(for data: D.Type, @ViewBuilder destination: @escaping (D) -> C) -> some View {
   |                    |                                                                                                                        |- warning: conformance of '_ConditionalContent<TrueContent, FalseContent>' to 'View' is only available in macOS 10.15 or newer; this is an error in the Swift 6 language mode
   |                    |                                                                                                                        `- note: add 'if #available' version check
   |                    `- note: add @available attribute to enclosing instance method
 5 | 		if #available(iOS 16.0, *) {
 6 | 			content.navigationDestination(for: D.self, destination: destination)
/Users/admin/builder/spi-builder-workspace/Sources/NavigationStackBackport/Destination.swift:22:5: error: 'transformPreference' 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 {
   |       `- note: add @available attribute to enclosing instance method
19 | 		var updated = false
20 |
21 | 		content
22 | 			.transformPreference(DestinationIDsKey.self) { ids in
   |     |- error: 'transformPreference' is only available in macOS 10.15 or newer
   |     `- note: add 'if #available' version check
23 | 				ids.insert(id)
24 |
/Users/admin/builder/spi-builder-workspace/Sources/NavigationStackBackport/Destination.swift:39:11: 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?
34 | 	let accepts: (NavigationPathItem) -> Bool
35 |
36 | 	init<Data>(view: @escaping (Data) -> some View) {
   |  `- note: add @available attribute to enclosing initializer
37 | 		self.view = { data, contextId in
38 | 			guard let data = data.valueAs(Data.self) else { return nil }
39 | 			return AnyView(view(data).environment(\.navigationContextId, contextId))
   |           |- error: 'AnyView' is only available in macOS 10.15 or newer
   |           `- note: add 'if #available' version check
40 | 		}
41 | 		accepts = { $0.valueAs(Data.self) != nil }
/Users/admin/builder/spi-builder-workspace/Sources/NavigationStackBackport/Destination.swift:39:30: error: 'environment' 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) {
   |  `- note: add @available attribute to enclosing initializer
37 | 		self.view = { data, contextId in
38 | 			guard let data = data.valueAs(Data.self) else { return nil }
39 | 			return AnyView(view(data).environment(\.navigationContextId, contextId))
   |                              |- error: 'environment' is only available in macOS 10.15 or newer
   |                              `- note: add 'if #available' version check
40 | 		}
41 | 		accepts = { $0.valueAs(Data.self) != nil }
/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 non-isolated 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 non-isolated 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/NavigationAuthority.swift:55:53: error: cannot find type 'UIHostingController' in scope
 53 |
 54 | 		if presentation.isPresented && wasPresented && navigationController.viewControllers.indices.contains(index) {
 55 | 			(navigationController.viewControllers[index] as? UIHostingController<AnyView>)?.rootView = presentation.view
    |                                                     `- error: cannot find type 'UIHostingController' in scope
 56 | 			return
 57 | 		}
/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/NavigationAuthority.swift:121:10: 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 {
    |       `- note: add @available attribute to enclosing instance method
115 | 		for destination in destinations.values {
116 | 			if let view = destination.view(item, index) {
    :
119 | 		}
120 |
121 | 		return AnyView(Image(systemName: "exclamationmark.triangle.fill"))
    |          |- error: 'AnyView' is only available in macOS 10.15 or newer
    |          `- note: add 'if #available' version check
122 | 	}
123 |
/Users/admin/builder/spi-builder-workspace/Sources/NavigationStackBackport/NavigationAuthority.swift:121:10: warning: conformance of 'Image' to 'View' is only available in macOS 10.15 or newer; this is an error in the Swift 6 language mode
111 | }
112 |
113 | private extension NavigationAuthority {
    |         `- note: add @available attribute to enclosing extension
114 | 	func view(for item: NavigationPathItem, index: Int) -> AnyView {
    |       `- note: add @available attribute to enclosing instance method
115 | 		for destination in destinations.values {
116 | 			if let view = destination.view(item, index) {
    :
119 | 		}
120 |
121 | 		return AnyView(Image(systemName: "exclamationmark.triangle.fill"))
    |          |- warning: conformance of 'Image' 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
122 | 	}
123 |
/Users/admin/builder/spi-builder-workspace/Sources/NavigationStackBackport/NavigationAuthority.swift:121:18: error: 'Image' 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 {
    |       `- note: add @available attribute to enclosing instance method
115 | 		for destination in destinations.values {
116 | 			if let view = destination.view(item, index) {
    :
119 | 		}
120 |
121 | 		return AnyView(Image(systemName: "exclamationmark.triangle.fill"))
    |                  |- error: 'Image' is only available in macOS 10.15 or newer
    |                  `- note: add 'if #available' version check
122 | 	}
123 |
/Users/admin/builder/spi-builder-workspace/Sources/NavigationStackBackport/NavigationAuthority.swift:121:18: error: 'init(systemName:)' 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 {
    |       `- note: add @available attribute to enclosing instance method
115 | 		for destination in destinations.values {
116 | 			if let view = destination.view(item, index) {
    :
119 | 		}
120 |
121 | 		return AnyView(Image(systemName: "exclamationmark.triangle.fill"))
    |                  |- error: 'init(systemName:)' is only available in macOS 11.0 or newer
    |                  `- note: add 'if #available' version check
122 | 	}
123 |
[13/16] Compiling NavigationStackBackport NavigationAuthority.swift
/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 non-isolated 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 non-isolated 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 non-isolated 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 non-isolated 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/Destination.swift:5:6: warning: result builder 'ViewBuilder' does not implement 'buildLimitedAvailability'; this code may crash on earlier versions of the OS
 3 | public extension Backport {
 4 | 	@ViewBuilder func navigationDestination<D: Hashable, C: View>(for data: D.Type, @ViewBuilder destination: @escaping (D) -> C) -> some View {
 5 | 		if #available(iOS 16.0, *) {
   |      `- warning: result builder 'ViewBuilder' does not implement 'buildLimitedAvailability'; this code may crash on earlier versions of the OS
 6 | 			content.navigationDestination(for: D.self, destination: destination)
 7 | 		} else {
/Users/admin/builder/spi-builder-workspace/Sources/NavigationStackBackport/Destination.swift:6:12: error: 'navigationDestination(for:destination:)' is only available in macOS 13.0 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
 5 | 		if #available(iOS 16.0, *) {
 6 | 			content.navigationDestination(for: D.self, destination: destination)
   |            |- error: 'navigationDestination(for:destination:)' is only available in macOS 13.0 or newer
   |            `- note: add 'if #available' version check
 7 | 		} else {
 8 | 			content.modifier(DestinationModifier(destination: destination))
/Users/admin/builder/spi-builder-workspace/Sources/NavigationStackBackport/Destination.swift:5:30: error: 'buildLimitedAvailability' is only available in macOS 11.0 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
 5 | 		if #available(iOS 16.0, *) {
   |                              |- error: 'buildLimitedAvailability' is only available in macOS 11.0 or newer
   |                              `- note: add 'if #available' version check
 6 | 			content.navigationDestination(for: D.self, destination: destination)
 7 | 		} else {
/Users/admin/builder/spi-builder-workspace/Sources/NavigationStackBackport/Destination.swift:5:30: error: 'buildEither(first:)' 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
 5 | 		if #available(iOS 16.0, *) {
   |                              |- error: 'buildEither(first:)' is only available in macOS 10.15 or newer
   |                              `- note: add 'if #available' version check
 6 | 			content.navigationDestination(for: D.self, destination: destination)
 7 | 		} else {
/Users/admin/builder/spi-builder-workspace/Sources/NavigationStackBackport/Destination.swift:7: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<D: Hashable, C: View>(for data: D.Type, @ViewBuilder destination: @escaping (D) -> C) -> some View {
   |                    `- note: add @available attribute to enclosing instance method
 5 | 		if #available(iOS 16.0, *) {
 6 | 			content.navigationDestination(for: D.self, destination: destination)
 7 | 		} else {
   |          |- error: 'buildEither(second:)' is only available in macOS 10.15 or newer
   |          `- note: add 'if #available' version check
 8 | 			content.modifier(DestinationModifier(destination: destination))
 9 | 		}
/Users/admin/builder/spi-builder-workspace/Sources/NavigationStackBackport/Destination.swift:7: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<D: Hashable, C: View>(for data: D.Type, @ViewBuilder destination: @escaping (D) -> C) -> some View {
   |                    `- note: add @available attribute to enclosing instance method
 5 | 		if #available(iOS 16.0, *) {
 6 | 			content.navigationDestination(for: D.self, destination: destination)
 7 | 		} 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
 8 | 			content.modifier(DestinationModifier(destination: destination))
 9 | 		}
/Users/admin/builder/spi-builder-workspace/Sources/NavigationStackBackport/Destination.swift:4:141: 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<D: Hashable, C: View>(for data: D.Type, @ViewBuilder destination: @escaping (D) -> C) -> some View {
   |                    |                                                                                                                        |- warning: conformance of '_ConditionalContent<TrueContent, FalseContent>' to 'View' is only available in macOS 10.15 or newer; this is an error in the Swift 6 language mode
   |                    |                                                                                                                        `- note: add 'if #available' version check
   |                    `- note: add @available attribute to enclosing instance method
 5 | 		if #available(iOS 16.0, *) {
 6 | 			content.navigationDestination(for: D.self, destination: destination)
/Users/admin/builder/spi-builder-workspace/Sources/NavigationStackBackport/Destination.swift:22:5: error: 'transformPreference' 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 {
   |       `- note: add @available attribute to enclosing instance method
19 | 		var updated = false
20 |
21 | 		content
22 | 			.transformPreference(DestinationIDsKey.self) { ids in
   |     |- error: 'transformPreference' is only available in macOS 10.15 or newer
   |     `- note: add 'if #available' version check
23 | 				ids.insert(id)
24 |
/Users/admin/builder/spi-builder-workspace/Sources/NavigationStackBackport/Destination.swift:39:11: 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?
34 | 	let accepts: (NavigationPathItem) -> Bool
35 |
36 | 	init<Data>(view: @escaping (Data) -> some View) {
   |  `- note: add @available attribute to enclosing initializer
37 | 		self.view = { data, contextId in
38 | 			guard let data = data.valueAs(Data.self) else { return nil }
39 | 			return AnyView(view(data).environment(\.navigationContextId, contextId))
   |           |- error: 'AnyView' is only available in macOS 10.15 or newer
   |           `- note: add 'if #available' version check
40 | 		}
41 | 		accepts = { $0.valueAs(Data.self) != nil }
/Users/admin/builder/spi-builder-workspace/Sources/NavigationStackBackport/Destination.swift:39:30: error: 'environment' 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) {
   |  `- note: add @available attribute to enclosing initializer
37 | 		self.view = { data, contextId in
38 | 			guard let data = data.valueAs(Data.self) else { return nil }
39 | 			return AnyView(view(data).environment(\.navigationContextId, contextId))
   |                              |- error: 'environment' is only available in macOS 10.15 or newer
   |                              `- note: add 'if #available' version check
40 | 		}
41 | 		accepts = { $0.valueAs(Data.self) != nil }
/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 non-isolated 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 non-isolated 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/NavigationAuthority.swift:55:53: error: cannot find type 'UIHostingController' in scope
 53 |
 54 | 		if presentation.isPresented && wasPresented && navigationController.viewControllers.indices.contains(index) {
 55 | 			(navigationController.viewControllers[index] as? UIHostingController<AnyView>)?.rootView = presentation.view
    |                                                     `- error: cannot find type 'UIHostingController' in scope
 56 | 			return
 57 | 		}
/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/NavigationAuthority.swift:121:10: 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 {
    |       `- note: add @available attribute to enclosing instance method
115 | 		for destination in destinations.values {
116 | 			if let view = destination.view(item, index) {
    :
119 | 		}
120 |
121 | 		return AnyView(Image(systemName: "exclamationmark.triangle.fill"))
    |          |- error: 'AnyView' is only available in macOS 10.15 or newer
    |          `- note: add 'if #available' version check
122 | 	}
123 |
/Users/admin/builder/spi-builder-workspace/Sources/NavigationStackBackport/NavigationAuthority.swift:121:10: warning: conformance of 'Image' to 'View' is only available in macOS 10.15 or newer; this is an error in the Swift 6 language mode
111 | }
112 |
113 | private extension NavigationAuthority {
    |         `- note: add @available attribute to enclosing extension
114 | 	func view(for item: NavigationPathItem, index: Int) -> AnyView {
    |       `- note: add @available attribute to enclosing instance method
115 | 		for destination in destinations.values {
116 | 			if let view = destination.view(item, index) {
    :
119 | 		}
120 |
121 | 		return AnyView(Image(systemName: "exclamationmark.triangle.fill"))
    |          |- warning: conformance of 'Image' 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
122 | 	}
123 |
/Users/admin/builder/spi-builder-workspace/Sources/NavigationStackBackport/NavigationAuthority.swift:121:18: error: 'Image' 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 {
    |       `- note: add @available attribute to enclosing instance method
115 | 		for destination in destinations.values {
116 | 			if let view = destination.view(item, index) {
    :
119 | 		}
120 |
121 | 		return AnyView(Image(systemName: "exclamationmark.triangle.fill"))
    |                  |- error: 'Image' is only available in macOS 10.15 or newer
    |                  `- note: add 'if #available' version check
122 | 	}
123 |
/Users/admin/builder/spi-builder-workspace/Sources/NavigationStackBackport/NavigationAuthority.swift:121:18: error: 'init(systemName:)' 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 {
    |       `- note: add @available attribute to enclosing instance method
115 | 		for destination in destinations.values {
116 | 			if let view = destination.view(item, index) {
    :
119 | 		}
120 |
121 | 		return AnyView(Image(systemName: "exclamationmark.triangle.fill"))
    |                  |- error: 'init(systemName:)' is only available in macOS 11.0 or newer
    |                  `- note: add 'if #available' version check
122 | 	}
123 |
[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:8:4: warning: main actor-isolated property 'body' can not be mutated from a non-isolated context; this is an error in the Swift 6 language mode
 2 |
 3 | public struct NavigationLink<Label: View>: View {
 4 | 	public let body: AnyView
   |             `- note: mutation of this property is only permitted within the actor
 5 |
 6 | 	public init<P: Hashable>(value: P?, @ViewBuilder label: () -> Label) {
 7 | 		if #available(iOS 16.0, *) {
 8 | 			body = AnyView(SwiftUI.NavigationLink(value: value, label: label))
   |    `- warning: main actor-isolated property 'body' can not be mutated from a non-isolated context; this is an error in the Swift 6 language mode
 9 | 		} else {
10 | 			body = AnyView(Backport(label: label(), item: value.map { .init(value: $0) }))
/Users/admin/builder/spi-builder-workspace/Sources/NavigationStackBackport/NavigationLink.swift:10:4: warning: main actor-isolated property 'body' can not be mutated from a non-isolated context; this is an error in the Swift 6 language mode
 2 |
 3 | public struct NavigationLink<Label: View>: View {
 4 | 	public let body: AnyView
   |             `- note: mutation of this property is only permitted within the actor
 5 |
 6 | 	public init<P: Hashable>(value: P?, @ViewBuilder label: () -> Label) {
   :
 8 | 			body = AnyView(SwiftUI.NavigationLink(value: value, label: label))
 9 | 		} else {
10 | 			body = AnyView(Backport(label: label(), item: value.map { .init(value: $0) }))
   |    `- warning: main actor-isolated property 'body' can not be mutated from a non-isolated context; this is an error in the Swift 6 language mode
11 | 		}
12 | 	}
/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:16:4: warning: main actor-isolated property 'body' can not be mutated from a non-isolated context; this is an error in the Swift 6 language mode
 2 |
 3 | public struct NavigationLink<Label: View>: View {
 4 | 	public let body: AnyView
   |             `- note: mutation of this property is only permitted within the actor
 5 |
 6 | 	public init<P: Hashable>(value: P?, @ViewBuilder label: () -> Label) {
   :
14 | 	public init<P: Hashable>(value: P?, @ViewBuilder label: () -> Label) where P: Codable {
15 | 		if #available(iOS 16.0, *) {
16 | 			body = AnyView(SwiftUI.NavigationLink(value: value, label: label))
   |    `- warning: main actor-isolated property 'body' can not be mutated from a non-isolated context; this is an error in the Swift 6 language mode
17 | 		} else {
18 | 			body = AnyView(Backport(label: label(), item: value.map { .init(value: $0) }))
/Users/admin/builder/spi-builder-workspace/Sources/NavigationStackBackport/NavigationLink.swift:18:4: warning: main actor-isolated property 'body' can not be mutated from a non-isolated context; this is an error in the Swift 6 language mode
 2 |
 3 | public struct NavigationLink<Label: View>: View {
 4 | 	public let body: AnyView
   |             `- note: mutation of this property is only permitted within the actor
 5 |
 6 | 	public init<P: Hashable>(value: P?, @ViewBuilder label: () -> Label) {
   :
16 | 			body = AnyView(SwiftUI.NavigationLink(value: value, label: label))
17 | 		} else {
18 | 			body = AnyView(Backport(label: label(), item: value.map { .init(value: $0) }))
   |    `- warning: main actor-isolated property 'body' can not be mutated from a non-isolated context; this is an error in the Swift 6 language mode
19 | 		}
20 | 	}
/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:24:4: warning: main actor-isolated property 'body' can not be mutated from a non-isolated context; this is an error in the Swift 6 language mode
 2 |
 3 | public struct NavigationLink<Label: View>: View {
 4 | 	public let body: AnyView
   |             `- note: mutation of this property is only permitted within the actor
 5 |
 6 | 	public init<P: Hashable>(value: P?, @ViewBuilder label: () -> Label) {
   :
22 | 	public init<P: Hashable>(_ titleKey: LocalizedStringKey, value: P?) where Label == Text {
23 | 		if #available(iOS 16.0, *) {
24 | 			body = AnyView(SwiftUI.NavigationLink(titleKey, value: value))
   |    `- warning: main actor-isolated property 'body' can not be mutated from a non-isolated context; this is an error in the Swift 6 language mode
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:26:4: warning: main actor-isolated property 'body' can not be mutated from a non-isolated context; this is an error in the Swift 6 language mode
 2 |
 3 | public struct NavigationLink<Label: View>: View {
 4 | 	public let body: AnyView
   |             `- note: mutation of this property is only permitted within the actor
 5 |
 6 | 	public init<P: Hashable>(value: P?, @ViewBuilder label: () -> Label) {
   :
24 | 			body = AnyView(SwiftUI.NavigationLink(titleKey, value: value))
25 | 		} else {
26 | 			body = AnyView(Backport(label: Text(titleKey), item: value.map { .init(value: $0) }))
   |    `- warning: main actor-isolated property 'body' can not be mutated from a non-isolated context; this is an error in the Swift 6 language mode
27 | 		}
28 | 	}
/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:32:4: warning: main actor-isolated property 'body' can not be mutated from a non-isolated context; this is an error in the Swift 6 language mode
 2 |
 3 | public struct NavigationLink<Label: View>: View {
 4 | 	public let body: AnyView
   |             `- note: mutation of this property is only permitted within the actor
 5 |
 6 | 	public init<P: Hashable>(value: P?, @ViewBuilder label: () -> Label) {
   :
30 | 	public init<P: Hashable>(_ titleKey: LocalizedStringKey, value: P?) where Label == Text, P: Codable {
31 | 		if #available(iOS 16.0, *) {
32 | 			body = AnyView(SwiftUI.NavigationLink(titleKey, value: value))
   |    `- warning: main actor-isolated property 'body' can not be mutated from a non-isolated context; this is an error in the Swift 6 language mode
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:34:4: warning: main actor-isolated property 'body' can not be mutated from a non-isolated context; this is an error in the Swift 6 language mode
 2 |
 3 | public struct NavigationLink<Label: View>: View {
 4 | 	public let body: AnyView
   |             `- note: mutation of this property is only permitted within the actor
 5 |
 6 | 	public init<P: Hashable>(value: P?, @ViewBuilder label: () -> Label) {
   :
32 | 			body = AnyView(SwiftUI.NavigationLink(titleKey, value: value))
33 | 		} else {
34 | 			body = AnyView(Backport(label: Text(titleKey), item: value.map { .init(value: $0) }))
   |    `- warning: main actor-isolated property 'body' can not be mutated from a non-isolated context; this is an error in the Swift 6 language mode
35 | 		}
36 | 	}
/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:40:4: warning: main actor-isolated property 'body' can not be mutated from a non-isolated context; this is an error in the Swift 6 language mode
 2 |
 3 | public struct NavigationLink<Label: View>: View {
 4 | 	public let body: AnyView
   |             `- note: mutation of this property is only permitted within the actor
 5 |
 6 | 	public init<P: Hashable>(value: P?, @ViewBuilder label: () -> Label) {
   :
38 | 	public init<P: Hashable, S>(_ title: S, value: P?) where Label == Text, S: StringProtocol {
39 | 		if #available(iOS 16.0, *) {
40 | 			body = AnyView(SwiftUI.NavigationLink(title, value: value))
   |    `- warning: main actor-isolated property 'body' can not be mutated from a non-isolated context; this is an error in the Swift 6 language mode
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:42:4: warning: main actor-isolated property 'body' can not be mutated from a non-isolated context; this is an error in the Swift 6 language mode
 2 |
 3 | public struct NavigationLink<Label: View>: View {
 4 | 	public let body: AnyView
   |             `- note: mutation of this property is only permitted within the actor
 5 |
 6 | 	public init<P: Hashable>(value: P?, @ViewBuilder label: () -> Label) {
   :
40 | 			body = AnyView(SwiftUI.NavigationLink(title, value: value))
41 | 		} else {
42 | 			body = AnyView(Backport(label: Text(title), item: value.map { .init(value: $0) }))
   |    `- warning: main actor-isolated property 'body' can not be mutated from a non-isolated context; this is an error in the Swift 6 language mode
43 | 		}
44 | 	}
/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/NavigationLink.swift:48:4: warning: main actor-isolated property 'body' can not be mutated from a non-isolated context; this is an error in the Swift 6 language mode
 2 |
 3 | public struct NavigationLink<Label: View>: View {
 4 | 	public let body: AnyView
   |             `- note: mutation of this property is only permitted within the actor
 5 |
 6 | 	public init<P: Hashable>(value: P?, @ViewBuilder label: () -> Label) {
   :
46 | 	public init<P: Hashable, S>(_ title: S, value: P?) where Label == Text, S: StringProtocol, P: Codable {
47 | 		if #available(iOS 16.0, *) {
48 | 			body = AnyView(SwiftUI.NavigationLink(title, value: value))
   |    `- warning: main actor-isolated property 'body' can not be mutated from a non-isolated context; this is an error in the Swift 6 language mode
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:50:4: warning: main actor-isolated property 'body' can not be mutated from a non-isolated context; this is an error in the Swift 6 language mode
 2 |
 3 | public struct NavigationLink<Label: View>: View {
 4 | 	public let body: AnyView
   |             `- note: mutation of this property is only permitted within the actor
 5 |
 6 | 	public init<P: Hashable>(value: P?, @ViewBuilder label: () -> Label) {
   :
48 | 			body = AnyView(SwiftUI.NavigationLink(title, value: value))
49 | 		} else {
50 | 			body = AnyView(Backport(label: Text(title), item: value.map { .init(value: $0) }))
   |    `- warning: main actor-isolated property 'body' can not be mutated from a non-isolated context; this is an error in the Swift 6 language mode
51 | 		}
52 | 	}
/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:8:4: warning: main actor-isolated property 'body' can not be mutated from a non-isolated context; this is an error in the Swift 6 language mode
 2 |
 3 | public struct NavigationLink<Label: View>: View {
 4 | 	public let body: AnyView
   |             `- note: mutation of this property is only permitted within the actor
 5 |
 6 | 	public init<P: Hashable>(value: P?, @ViewBuilder label: () -> Label) {
 7 | 		if #available(iOS 16.0, *) {
 8 | 			body = AnyView(SwiftUI.NavigationLink(value: value, label: label))
   |    `- warning: main actor-isolated property 'body' can not be mutated from a non-isolated context; this is an error in the Swift 6 language mode
 9 | 		} else {
10 | 			body = AnyView(Backport(label: label(), item: value.map { .init(value: $0) }))
/Users/admin/builder/spi-builder-workspace/Sources/NavigationStackBackport/NavigationLink.swift:10:4: warning: main actor-isolated property 'body' can not be mutated from a non-isolated context; this is an error in the Swift 6 language mode
 2 |
 3 | public struct NavigationLink<Label: View>: View {
 4 | 	public let body: AnyView
   |             `- note: mutation of this property is only permitted within the actor
 5 |
 6 | 	public init<P: Hashable>(value: P?, @ViewBuilder label: () -> Label) {
   :
 8 | 			body = AnyView(SwiftUI.NavigationLink(value: value, label: label))
 9 | 		} else {
10 | 			body = AnyView(Backport(label: label(), item: value.map { .init(value: $0) }))
   |    `- warning: main actor-isolated property 'body' can not be mutated from a non-isolated context; this is an error in the Swift 6 language mode
11 | 		}
12 | 	}
/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:16:4: warning: main actor-isolated property 'body' can not be mutated from a non-isolated context; this is an error in the Swift 6 language mode
 2 |
 3 | public struct NavigationLink<Label: View>: View {
 4 | 	public let body: AnyView
   |             `- note: mutation of this property is only permitted within the actor
 5 |
 6 | 	public init<P: Hashable>(value: P?, @ViewBuilder label: () -> Label) {
   :
14 | 	public init<P: Hashable>(value: P?, @ViewBuilder label: () -> Label) where P: Codable {
15 | 		if #available(iOS 16.0, *) {
16 | 			body = AnyView(SwiftUI.NavigationLink(value: value, label: label))
   |    `- warning: main actor-isolated property 'body' can not be mutated from a non-isolated context; this is an error in the Swift 6 language mode
17 | 		} else {
18 | 			body = AnyView(Backport(label: label(), item: value.map { .init(value: $0) }))
/Users/admin/builder/spi-builder-workspace/Sources/NavigationStackBackport/NavigationLink.swift:18:4: warning: main actor-isolated property 'body' can not be mutated from a non-isolated context; this is an error in the Swift 6 language mode
 2 |
 3 | public struct NavigationLink<Label: View>: View {
 4 | 	public let body: AnyView
   |             `- note: mutation of this property is only permitted within the actor
 5 |
 6 | 	public init<P: Hashable>(value: P?, @ViewBuilder label: () -> Label) {
   :
16 | 			body = AnyView(SwiftUI.NavigationLink(value: value, label: label))
17 | 		} else {
18 | 			body = AnyView(Backport(label: label(), item: value.map { .init(value: $0) }))
   |    `- warning: main actor-isolated property 'body' can not be mutated from a non-isolated context; this is an error in the Swift 6 language mode
19 | 		}
20 | 	}
/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:24:4: warning: main actor-isolated property 'body' can not be mutated from a non-isolated context; this is an error in the Swift 6 language mode
 2 |
 3 | public struct NavigationLink<Label: View>: View {
 4 | 	public let body: AnyView
   |             `- note: mutation of this property is only permitted within the actor
 5 |
 6 | 	public init<P: Hashable>(value: P?, @ViewBuilder label: () -> Label) {
   :
22 | 	public init<P: Hashable>(_ titleKey: LocalizedStringKey, value: P?) where Label == Text {
23 | 		if #available(iOS 16.0, *) {
24 | 			body = AnyView(SwiftUI.NavigationLink(titleKey, value: value))
   |    `- warning: main actor-isolated property 'body' can not be mutated from a non-isolated context; this is an error in the Swift 6 language mode
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:26:4: warning: main actor-isolated property 'body' can not be mutated from a non-isolated context; this is an error in the Swift 6 language mode
 2 |
 3 | public struct NavigationLink<Label: View>: View {
 4 | 	public let body: AnyView
   |             `- note: mutation of this property is only permitted within the actor
 5 |
 6 | 	public init<P: Hashable>(value: P?, @ViewBuilder label: () -> Label) {
   :
24 | 			body = AnyView(SwiftUI.NavigationLink(titleKey, value: value))
25 | 		} else {
26 | 			body = AnyView(Backport(label: Text(titleKey), item: value.map { .init(value: $0) }))
   |    `- warning: main actor-isolated property 'body' can not be mutated from a non-isolated context; this is an error in the Swift 6 language mode
27 | 		}
28 | 	}
/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:32:4: warning: main actor-isolated property 'body' can not be mutated from a non-isolated context; this is an error in the Swift 6 language mode
 2 |
 3 | public struct NavigationLink<Label: View>: View {
 4 | 	public let body: AnyView
   |             `- note: mutation of this property is only permitted within the actor
 5 |
 6 | 	public init<P: Hashable>(value: P?, @ViewBuilder label: () -> Label) {
   :
30 | 	public init<P: Hashable>(_ titleKey: LocalizedStringKey, value: P?) where Label == Text, P: Codable {
31 | 		if #available(iOS 16.0, *) {
32 | 			body = AnyView(SwiftUI.NavigationLink(titleKey, value: value))
   |    `- warning: main actor-isolated property 'body' can not be mutated from a non-isolated context; this is an error in the Swift 6 language mode
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:34:4: warning: main actor-isolated property 'body' can not be mutated from a non-isolated context; this is an error in the Swift 6 language mode
 2 |
 3 | public struct NavigationLink<Label: View>: View {
 4 | 	public let body: AnyView
   |             `- note: mutation of this property is only permitted within the actor
 5 |
 6 | 	public init<P: Hashable>(value: P?, @ViewBuilder label: () -> Label) {
   :
32 | 			body = AnyView(SwiftUI.NavigationLink(titleKey, value: value))
33 | 		} else {
34 | 			body = AnyView(Backport(label: Text(titleKey), item: value.map { .init(value: $0) }))
   |    `- warning: main actor-isolated property 'body' can not be mutated from a non-isolated context; this is an error in the Swift 6 language mode
35 | 		}
36 | 	}
/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:40:4: warning: main actor-isolated property 'body' can not be mutated from a non-isolated context; this is an error in the Swift 6 language mode
 2 |
 3 | public struct NavigationLink<Label: View>: View {
 4 | 	public let body: AnyView
   |             `- note: mutation of this property is only permitted within the actor
 5 |
 6 | 	public init<P: Hashable>(value: P?, @ViewBuilder label: () -> Label) {
   :
38 | 	public init<P: Hashable, S>(_ title: S, value: P?) where Label == Text, S: StringProtocol {
39 | 		if #available(iOS 16.0, *) {
40 | 			body = AnyView(SwiftUI.NavigationLink(title, value: value))
   |    `- warning: main actor-isolated property 'body' can not be mutated from a non-isolated context; this is an error in the Swift 6 language mode
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:42:4: warning: main actor-isolated property 'body' can not be mutated from a non-isolated context; this is an error in the Swift 6 language mode
 2 |
 3 | public struct NavigationLink<Label: View>: View {
 4 | 	public let body: AnyView
   |             `- note: mutation of this property is only permitted within the actor
 5 |
 6 | 	public init<P: Hashable>(value: P?, @ViewBuilder label: () -> Label) {
   :
40 | 			body = AnyView(SwiftUI.NavigationLink(title, value: value))
41 | 		} else {
42 | 			body = AnyView(Backport(label: Text(title), item: value.map { .init(value: $0) }))
   |    `- warning: main actor-isolated property 'body' can not be mutated from a non-isolated context; this is an error in the Swift 6 language mode
43 | 		}
44 | 	}
/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/NavigationLink.swift:48:4: warning: main actor-isolated property 'body' can not be mutated from a non-isolated context; this is an error in the Swift 6 language mode
 2 |
 3 | public struct NavigationLink<Label: View>: View {
 4 | 	public let body: AnyView
   |             `- note: mutation of this property is only permitted within the actor
 5 |
 6 | 	public init<P: Hashable>(value: P?, @ViewBuilder label: () -> Label) {
   :
46 | 	public init<P: Hashable, S>(_ title: S, value: P?) where Label == Text, S: StringProtocol, P: Codable {
47 | 		if #available(iOS 16.0, *) {
48 | 			body = AnyView(SwiftUI.NavigationLink(title, value: value))
   |    `- warning: main actor-isolated property 'body' can not be mutated from a non-isolated context; this is an error in the Swift 6 language mode
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:50:4: warning: main actor-isolated property 'body' can not be mutated from a non-isolated context; this is an error in the Swift 6 language mode
 2 |
 3 | public struct NavigationLink<Label: View>: View {
 4 | 	public let body: AnyView
   |             `- note: mutation of this property is only permitted within the actor
 5 |
 6 | 	public init<P: Hashable>(value: P?, @ViewBuilder label: () -> Label) {
   :
48 | 			body = AnyView(SwiftUI.NavigationLink(title, value: value))
49 | 		} else {
50 | 			body = AnyView(Backport(label: Text(title), item: value.map { .init(value: $0) }))
   |    `- warning: main actor-isolated property 'body' can not be mutated from a non-isolated context; this is an error in the Swift 6 language mode
51 | 		}
52 | 	}
/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
This is a staging environment. For live and up-to-date package information, visit swiftpackageindex.com.