Build Information
Failed to build ScreenNavigatorKit, reference 0.5.1 (2d063e
), with Swift 6.0 for macOS (SPM) on 30 Nov 2024 08:30:08 UTC.
Build Command
env DEVELOPER_DIR=/Applications/Xcode-16.1.0.app xcrun swift build --arch arm64 -Xswiftc -Xfrontend -Xswiftc -stats-output-dir -Xswiftc -Xfrontend -Xswiftc .stats -Xswiftc -strict-concurrency=complete -Xswiftc -enable-upcoming-feature -Xswiftc StrictConcurrency -Xswiftc -enable-upcoming-feature -Xswiftc DisableOutwardActorInference -Xswiftc -enable-upcoming-feature -Xswiftc GlobalActorIsolatedTypesUsability -Xswiftc -enable-upcoming-feature -Xswiftc InferSendableFromCaptures
Build Log
| `- error: 'Binding' is only available in macOS 10.15 or newer
13 | ) -> some View {
14 | fullScreenCover(
/Users/admin/builder/spi-builder-workspace/Sources/ScreenNavigatorKit/ModalStack/View+fullScreenCover.swift:13:15: error: 'View' is only available in macOS 10.15 or newer
8 | import SwiftUI
9 |
10 | extension View {
| `- note: add @available attribute to enclosing extension
11 | func fullScreenCover(
| `- note: add @available attribute to enclosing instance method
12 | _ destination: Binding<(some View)?>
13 | ) -> some View {
| `- error: 'View' is only available in macOS 10.15 or newer
14 | fullScreenCover(
15 | isPresented: destination.isNotNil().removeDublicates(),
/Users/admin/builder/spi-builder-workspace/Sources/ScreenNavigatorKit/ModalStack/View+fullScreenCover.swift:10:11: error: 'View' is only available in macOS 10.15 or newer
8 | import SwiftUI
9 |
10 | extension View {
| | `- error: 'View' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing extension
11 | func fullScreenCover(
12 | _ destination: Binding<(some View)?>
/Users/admin/builder/spi-builder-workspace/Sources/ScreenNavigatorKit/ModalStack/View+sheet.swift:12:38: error: 'View' is only available in macOS 10.15 or newer
8 | import SwiftUI
9 |
10 | extension View {
| `- note: add @available attribute to enclosing extension
11 | func sheet(
| `- note: add @available attribute to enclosing instance method
12 | _ destination: Binding<(some View)?>
| `- error: 'View' is only available in macOS 10.15 or newer
13 | ) -> some View {
14 | sheet(
/Users/admin/builder/spi-builder-workspace/Sources/ScreenNavigatorKit/ModalStack/View+sheet.swift:12:24: error: 'Binding' is only available in macOS 10.15 or newer
8 | import SwiftUI
9 |
10 | extension View {
| `- note: add @available attribute to enclosing extension
11 | func sheet(
| `- note: add @available attribute to enclosing instance method
12 | _ destination: Binding<(some View)?>
| `- error: 'Binding' is only available in macOS 10.15 or newer
13 | ) -> some View {
14 | sheet(
/Users/admin/builder/spi-builder-workspace/Sources/ScreenNavigatorKit/ModalStack/View+sheet.swift:13:15: error: 'View' is only available in macOS 10.15 or newer
8 | import SwiftUI
9 |
10 | extension View {
| `- note: add @available attribute to enclosing extension
11 | func sheet(
| `- note: add @available attribute to enclosing instance method
12 | _ destination: Binding<(some View)?>
13 | ) -> some View {
| `- error: 'View' is only available in macOS 10.15 or newer
14 | sheet(
15 | isPresented: destination.isNotNil().removeDublicates(),
/Users/admin/builder/spi-builder-workspace/Sources/ScreenNavigatorKit/ModalStack/View+sheet.swift:10:11: error: 'View' is only available in macOS 10.15 or newer
8 | import SwiftUI
9 |
10 | extension View {
| | `- error: 'View' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing extension
11 | func sheet(
12 | _ destination: Binding<(some View)?>
/Users/admin/builder/spi-builder-workspace/Sources/ScreenNavigatorKit/NavigationStack/NavigationStackController.swift:32:33: error: 'View' is only available in macOS 10.15 or newer
13 | /// - Should be binded in specific NavigationStackView
14 | /// - Can not be empty. It always has a root view even if it's a EmptyView
15 | public final class NavigationStackController: ObservableObject {
| `- note: add @available attribute to enclosing class
16 | // MARK: - Initializer
17 |
:
30 | // MARK: - Root View body
31 |
32 | func rootBody(content: some View) -> some View {
| | `- error: 'View' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing instance method
33 | content.modifier(
34 | PushToggleViewModifier(toggle: toggles[0])
/Users/admin/builder/spi-builder-workspace/Sources/ScreenNavigatorKit/NavigationStack/NavigationStackController.swift:32:33: error: 'View' is only available in macOS 10.15 or newer
13 | /// - Should be binded in specific NavigationStackView
14 | /// - Can not be empty. It always has a root view even if it's a EmptyView
15 | public final class NavigationStackController: ObservableObject {
| `- note: add @available attribute to enclosing class
16 | // MARK: - Initializer
17 |
:
30 | // MARK: - Root View body
31 |
32 | func rootBody(content: some View) -> some View {
| | `- error: 'View' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing instance method
33 | content.modifier(
34 | PushToggleViewModifier(toggle: toggles[0])
/Users/admin/builder/spi-builder-workspace/Sources/ScreenNavigatorKit/NavigationStack/NavigationStackController.swift:32:47: error: 'View' is only available in macOS 10.15 or newer
13 | /// - Should be binded in specific NavigationStackView
14 | /// - Can not be empty. It always has a root view even if it's a EmptyView
15 | public final class NavigationStackController: ObservableObject {
| `- note: add @available attribute to enclosing class
16 | // MARK: - Initializer
17 |
:
30 | // MARK: - Root View body
31 |
32 | func rootBody(content: some View) -> some View {
| | `- error: 'View' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing instance method
33 | content.modifier(
34 | PushToggleViewModifier(toggle: toggles[0])
/Users/admin/builder/spi-builder-workspace/Sources/ScreenNavigatorKit/NavigationStack/NavigationStackController.swift:41:42: error: 'View' is only available in macOS 10.15 or newer
13 | /// - Should be binded in specific NavigationStackView
14 | /// - Can not be empty. It always has a root view even if it's a EmptyView
15 | public final class NavigationStackController: ObservableObject {
| `- note: add @available attribute to enclosing class
16 | // MARK: - Initializer
17 |
:
39 |
40 | /// Push view in navigation stack view.
41 | public func push(_ destination: some View) {
| | `- error: 'View' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing instance method
42 | push(
43 | hashTag: .none,
/Users/admin/builder/spi-builder-workspace/Sources/ScreenNavigatorKit/NavigationStack/NavigationStackController.swift:41:42: error: 'View' is only available in macOS 10.15 or newer
13 | /// - Should be binded in specific NavigationStackView
14 | /// - Can not be empty. It always has a root view even if it's a EmptyView
15 | public final class NavigationStackController: ObservableObject {
| `- note: add @available attribute to enclosing class
16 | // MARK: - Initializer
17 |
:
39 |
40 | /// Push view in navigation stack view.
41 | public func push(_ destination: some View) {
| | `- error: 'View' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing instance method
42 | push(
43 | hashTag: .none,
/Users/admin/builder/spi-builder-workspace/Sources/ScreenNavigatorKit/NavigationStack/NavigationStackController.swift:53:29: error: 'View' is only available in macOS 10.15 or newer
13 | /// - Should be binded in specific NavigationStackView
14 | /// - Can not be empty. It always has a root view even if it's a EmptyView
15 | public final class NavigationStackController: ObservableObject {
| `- note: add @available attribute to enclosing class
16 | // MARK: - Initializer
17 |
:
49 | ///
50 | /// The tag will allow to pop(to:) or pop(from:) exactly to this view.
51 | public func push(
| `- note: add @available attribute to enclosing instance method
52 | tag: some Hashable,
53 | _ destination: some View
| `- error: 'View' is only available in macOS 10.15 or newer
54 | ) {
55 | push(
/Users/admin/builder/spi-builder-workspace/Sources/ScreenNavigatorKit/NavigationStack/NavigationStackController.swift:53:29: error: 'View' is only available in macOS 10.15 or newer
13 | /// - Should be binded in specific NavigationStackView
14 | /// - Can not be empty. It always has a root view even if it's a EmptyView
15 | public final class NavigationStackController: ObservableObject {
| `- note: add @available attribute to enclosing class
16 | // MARK: - Initializer
17 |
:
49 | ///
50 | /// The tag will allow to pop(to:) or pop(from:) exactly to this view.
51 | public func push(
| `- note: add @available attribute to enclosing instance method
52 | tag: some Hashable,
53 | _ destination: some View
| `- error: 'View' is only available in macOS 10.15 or newer
54 | ) {
55 | push(
/Users/admin/builder/spi-builder-workspace/Sources/ScreenNavigatorKit/NavigationStack/NavigationStackController.swift:63:38: error: 'View' is only available in macOS 10.15 or newer
13 | /// - Should be binded in specific NavigationStackView
14 | /// - Can not be empty. It always has a root view even if it's a EmptyView
15 | public final class NavigationStackController: ObservableObject {
| `- note: add @available attribute to enclosing class
16 | // MARK: - Initializer
17 |
:
59 | }
60 |
61 | private func push(
| `- note: add @available attribute to enclosing instance method
62 | hashTag: AnyHashable?,
63 | destination pushedView: some View
| `- error: 'View' is only available in macOS 10.15 or newer
64 | ) {
65 | let currentToggle = toggles.last!
/Users/admin/builder/spi-builder-workspace/Sources/ScreenNavigatorKit/NavigationStack/NavigationStackController.swift:63:38: error: 'View' is only available in macOS 10.15 or newer
13 | /// - Should be binded in specific NavigationStackView
14 | /// - Can not be empty. It always has a root view even if it's a EmptyView
15 | public final class NavigationStackController: ObservableObject {
| `- note: add @available attribute to enclosing class
16 | // MARK: - Initializer
17 |
:
59 | }
60 |
61 | private func push(
| `- note: add @available attribute to enclosing instance method
62 | hashTag: AnyHashable?,
63 | destination pushedView: some View
| `- error: 'View' is only available in macOS 10.15 or newer
64 | ) {
65 | let currentToggle = toggles.last!
/Users/admin/builder/spi-builder-workspace/Sources/ScreenNavigatorKit/NavigationStack/NavigationStackView.swift:15:10: error: 'ViewBuilder' is only available in macOS 10.15 or newer
10 | /// Under-the-hood it's a NavigationView binded to NavigationStackController state object
11 | /// that provides (as environment object) tools to change navigation stack (i.e. push/pop) in child views.
12 | public struct NavigationStackView<Content: View>: View {
| `- note: add @available attribute to enclosing generic struct
13 | public init(
| `- note: add @available attribute to enclosing initializer
14 | _ controller: NavigationStackController,
15 | @ViewBuilder content: () -> Content
| `- error: 'ViewBuilder' is only available in macOS 10.15 or newer
16 | ) {
17 | self.controller = controller
/Users/admin/builder/spi-builder-workspace/Sources/ScreenNavigatorKit/NavigationStack/NavigationStackView.swift:21:6: error: 'ObservedObject' is only available in macOS 10.15 or newer
10 | /// Under-the-hood it's a NavigationView binded to NavigationStackController state object
11 | /// that provides (as environment object) tools to change navigation stack (i.e. push/pop) in child views.
12 | public struct NavigationStackView<Content: View>: View {
| `- note: add @available attribute to enclosing generic struct
13 | public init(
14 | _ controller: NavigationStackController,
:
19 | }
20 |
21 | @ObservedObject var controller: NavigationStackController
| `- error: 'ObservedObject' is only available in macOS 10.15 or newer
22 | let content: Content
23 |
/Users/admin/builder/spi-builder-workspace/Sources/ScreenNavigatorKit/NavigationStack/NavigationStackView.swift:24:27: error: 'View' is only available in macOS 10.15 or newer
10 | /// Under-the-hood it's a NavigationView binded to NavigationStackController state object
11 | /// that provides (as environment object) tools to change navigation stack (i.e. push/pop) in child views.
12 | public struct NavigationStackView<Content: View>: View {
| `- note: add @available attribute to enclosing generic struct
13 | public init(
14 | _ controller: NavigationStackController,
:
22 | let content: Content
23 |
24 | public var body: some View {
| | `- error: 'View' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing property
25 | NavigationView {
26 | controller.rootBody(
/Users/admin/builder/spi-builder-workspace/Sources/ScreenNavigatorKit/NavigationStack/NavigationStackView.swift:12:44: error: 'View' is only available in macOS 10.15 or newer
10 | /// Under-the-hood it's a NavigationView binded to NavigationStackController state object
11 | /// that provides (as environment object) tools to change navigation stack (i.e. push/pop) in child views.
12 | public struct NavigationStackView<Content: View>: View {
| | `- error: 'View' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing generic struct
13 | public init(
14 | _ controller: NavigationStackController,
/Users/admin/builder/spi-builder-workspace/Sources/ScreenNavigatorKit/NavigationStack/PushToggle.swift:22:49: error: 'AnyView' is only available in macOS 10.15 or newer
9 | import Combine
10 |
11 | final class PushToggle: ObservableObject {
| `- note: add @available attribute to enclosing class
12 | static func root() -> PushToggle {
13 | let toggle = PushToggle()
:
20 | let tag: AnyHashable?
21 |
22 | @Published fileprivate(set) var pushedView: AnyView?
| `- error: 'AnyView' is only available in macOS 10.15 or newer
23 | @Published fileprivate(set) var isAppeared = false
24 | @Published fileprivate(set) var isDissapeared = false
/Users/admin/builder/spi-builder-workspace/Sources/ScreenNavigatorKit/NavigationStack/PushToggle.swift:22:6: error: 'Published' is only available in macOS 10.15 or newer
9 | import Combine
10 |
11 | final class PushToggle: ObservableObject {
| `- note: add @available attribute to enclosing class
12 | static func root() -> PushToggle {
13 | let toggle = PushToggle()
:
20 | let tag: AnyHashable?
21 |
22 | @Published fileprivate(set) var pushedView: AnyView?
| `- error: 'Published' is only available in macOS 10.15 or newer
23 | @Published fileprivate(set) var isAppeared = false
24 | @Published fileprivate(set) var isDissapeared = false
/Users/admin/builder/spi-builder-workspace/Sources/ScreenNavigatorKit/NavigationStack/PushToggle.swift:23:6: error: 'Published' is only available in macOS 10.15 or newer
9 | import Combine
10 |
11 | final class PushToggle: ObservableObject {
| `- note: add @available attribute to enclosing class
12 | static func root() -> PushToggle {
13 | let toggle = PushToggle()
:
21 |
22 | @Published fileprivate(set) var pushedView: AnyView?
23 | @Published fileprivate(set) var isAppeared = false
| `- error: 'Published' is only available in macOS 10.15 or newer
24 | @Published fileprivate(set) var isDissapeared = false
25 |
/Users/admin/builder/spi-builder-workspace/Sources/ScreenNavigatorKit/NavigationStack/PushToggle.swift:24:6: error: 'Published' is only available in macOS 10.15 or newer
9 | import Combine
10 |
11 | final class PushToggle: ObservableObject {
| `- note: add @available attribute to enclosing class
12 | static func root() -> PushToggle {
13 | let toggle = PushToggle()
:
22 | @Published fileprivate(set) var pushedView: AnyView?
23 | @Published fileprivate(set) var isAppeared = false
24 | @Published fileprivate(set) var isDissapeared = false
| `- error: 'Published' is only available in macOS 10.15 or newer
25 |
26 | private var cancellables: [AnyCancellable] = []
/Users/admin/builder/spi-builder-workspace/Sources/ScreenNavigatorKit/NavigationStack/PushToggle.swift:26:32: error: 'AnyCancellable' is only available in macOS 10.15 or newer
9 | import Combine
10 |
11 | final class PushToggle: ObservableObject {
| `- note: add @available attribute to enclosing class
12 | static func root() -> PushToggle {
13 | let toggle = PushToggle()
:
24 | @Published fileprivate(set) var isDissapeared = false
25 |
26 | private var cancellables: [AnyCancellable] = []
| `- error: 'AnyCancellable' is only available in macOS 10.15 or newer
27 |
28 | func push(
/Users/admin/builder/spi-builder-workspace/Sources/ScreenNavigatorKit/NavigationStack/PushToggle.swift:29:34: error: 'View' is only available in macOS 10.15 or newer
9 | import Combine
10 |
11 | final class PushToggle: ObservableObject {
| `- note: add @available attribute to enclosing class
12 | static func root() -> PushToggle {
13 | let toggle = PushToggle()
:
26 | private var cancellables: [AnyCancellable] = []
27 |
28 | func push(
| `- note: add @available attribute to enclosing instance method
29 | to destinationView: some View,
| `- error: 'View' is only available in macOS 10.15 or newer
30 | with destinationToggle: PushToggle,
31 | onComplete: @escaping () -> Void = {},
/Users/admin/builder/spi-builder-workspace/Sources/ScreenNavigatorKit/NavigationStack/PushToggle.swift:29:34: error: 'View' is only available in macOS 10.15 or newer
9 | import Combine
10 |
11 | final class PushToggle: ObservableObject {
| `- note: add @available attribute to enclosing class
12 | static func root() -> PushToggle {
13 | let toggle = PushToggle()
:
26 | private var cancellables: [AnyCancellable] = []
27 |
28 | func push(
| `- note: add @available attribute to enclosing instance method
29 | to destinationView: some View,
| `- error: 'View' is only available in macOS 10.15 or newer
30 | with destinationToggle: PushToggle,
31 | onComplete: @escaping () -> Void = {},
/Users/admin/builder/spi-builder-workspace/Sources/ScreenNavigatorKit/NavigationStack/PushToggle.swift:65:6: error: 'ObservedObject' is only available in macOS 10.15 or newer
62 | }
63 |
64 | struct PushToggleViewModifier: ViewModifier {
| `- note: add @available attribute to enclosing struct
65 | @ObservedObject var toggle: PushToggle
| `- error: 'ObservedObject' is only available in macOS 10.15 or newer
66 |
67 | func body(content: Content) -> some View {
/Users/admin/builder/spi-builder-workspace/Sources/ScreenNavigatorKit/NavigationStack/PushToggle.swift:67:41: error: 'View' is only available in macOS 10.15 or newer
62 | }
63 |
64 | struct PushToggleViewModifier: ViewModifier {
| `- note: add @available attribute to enclosing struct
65 | @ObservedObject var toggle: PushToggle
66 |
67 | 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
68 | content
69 | .push($toggle.pushedView)
/Users/admin/builder/spi-builder-workspace/Sources/ScreenNavigatorKit/NavigationStack/View+push.swift:12:38: error: 'View' is only available in macOS 10.15 or newer
8 | import SwiftUI
9 |
10 | extension View {
| `- note: add @available attribute to enclosing extension
11 | func push(
| `- note: add @available attribute to enclosing instance method
12 | _ destination: Binding<(some View)?>
| `- error: 'View' is only available in macOS 10.15 or newer
13 | ) -> some View {
14 | background(
/Users/admin/builder/spi-builder-workspace/Sources/ScreenNavigatorKit/NavigationStack/View+push.swift:12:24: error: 'Binding' is only available in macOS 10.15 or newer
8 | import SwiftUI
9 |
10 | extension View {
| `- note: add @available attribute to enclosing extension
11 | func push(
| `- note: add @available attribute to enclosing instance method
12 | _ destination: Binding<(some View)?>
| `- error: 'Binding' is only available in macOS 10.15 or newer
13 | ) -> some View {
14 | background(
/Users/admin/builder/spi-builder-workspace/Sources/ScreenNavigatorKit/NavigationStack/View+push.swift:13:15: error: 'View' is only available in macOS 10.15 or newer
8 | import SwiftUI
9 |
10 | extension View {
| `- note: add @available attribute to enclosing extension
11 | func push(
| `- note: add @available attribute to enclosing instance method
12 | _ destination: Binding<(some View)?>
13 | ) -> some View {
| `- error: 'View' is only available in macOS 10.15 or newer
14 | background(
15 | NavigationLink(
/Users/admin/builder/spi-builder-workspace/Sources/ScreenNavigatorKit/NavigationStack/View+push.swift:10:11: error: 'View' is only available in macOS 10.15 or newer
8 | import SwiftUI
9 |
10 | extension View {
| | `- error: 'View' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing extension
11 | func push(
12 | _ destination: Binding<(some View)?>
[4/19] Compiling ScreenNavigatorKit PushToggle.swift
/Users/admin/builder/spi-builder-workspace/Sources/ScreenNavigatorKit/NavigationStack/PushToggle.swift:22:49: error: 'AnyView' is only available in macOS 10.15 or newer
9 | import Combine
10 |
11 | final class PushToggle: ObservableObject {
| `- note: add @available attribute to enclosing class
12 | static func root() -> PushToggle {
13 | let toggle = PushToggle()
:
20 | let tag: AnyHashable?
21 |
22 | @Published fileprivate(set) var pushedView: AnyView?
| `- error: 'AnyView' is only available in macOS 10.15 or newer
23 | @Published fileprivate(set) var isAppeared = false
24 | @Published fileprivate(set) var isDissapeared = false
/Users/admin/builder/spi-builder-workspace/Sources/ScreenNavigatorKit/NavigationStack/PushToggle.swift:22:6: error: 'Published' is only available in macOS 10.15 or newer
9 | import Combine
10 |
11 | final class PushToggle: ObservableObject {
| `- note: add @available attribute to enclosing class
12 | static func root() -> PushToggle {
13 | let toggle = PushToggle()
:
20 | let tag: AnyHashable?
21 |
22 | @Published fileprivate(set) var pushedView: AnyView?
| `- error: 'Published' is only available in macOS 10.15 or newer
23 | @Published fileprivate(set) var isAppeared = false
24 | @Published fileprivate(set) var isDissapeared = false
/Users/admin/builder/spi-builder-workspace/Sources/ScreenNavigatorKit/NavigationStack/PushToggle.swift:23:6: error: 'Published' is only available in macOS 10.15 or newer
9 | import Combine
10 |
11 | final class PushToggle: ObservableObject {
| `- note: add @available attribute to enclosing class
12 | static func root() -> PushToggle {
13 | let toggle = PushToggle()
:
21 |
22 | @Published fileprivate(set) var pushedView: AnyView?
23 | @Published fileprivate(set) var isAppeared = false
| `- error: 'Published' is only available in macOS 10.15 or newer
24 | @Published fileprivate(set) var isDissapeared = false
25 |
/Users/admin/builder/spi-builder-workspace/Sources/ScreenNavigatorKit/NavigationStack/PushToggle.swift:24:6: error: 'Published' is only available in macOS 10.15 or newer
9 | import Combine
10 |
11 | final class PushToggle: ObservableObject {
| `- note: add @available attribute to enclosing class
12 | static func root() -> PushToggle {
13 | let toggle = PushToggle()
:
22 | @Published fileprivate(set) var pushedView: AnyView?
23 | @Published fileprivate(set) var isAppeared = false
24 | @Published fileprivate(set) var isDissapeared = false
| `- error: 'Published' is only available in macOS 10.15 or newer
25 |
26 | private var cancellables: [AnyCancellable] = []
/Users/admin/builder/spi-builder-workspace/Sources/ScreenNavigatorKit/NavigationStack/PushToggle.swift:26:32: error: 'AnyCancellable' is only available in macOS 10.15 or newer
9 | import Combine
10 |
11 | final class PushToggle: ObservableObject {
| `- note: add @available attribute to enclosing class
12 | static func root() -> PushToggle {
13 | let toggle = PushToggle()
:
24 | @Published fileprivate(set) var isDissapeared = false
25 |
26 | private var cancellables: [AnyCancellable] = []
| `- error: 'AnyCancellable' is only available in macOS 10.15 or newer
27 |
28 | func push(
/Users/admin/builder/spi-builder-workspace/Sources/ScreenNavigatorKit/NavigationStack/PushToggle.swift:29:34: error: 'View' is only available in macOS 10.15 or newer
9 | import Combine
10 |
11 | final class PushToggle: ObservableObject {
| `- note: add @available attribute to enclosing class
12 | static func root() -> PushToggle {
13 | let toggle = PushToggle()
:
26 | private var cancellables: [AnyCancellable] = []
27 |
28 | func push(
| `- note: add @available attribute to enclosing instance method
29 | to destinationView: some View,
| `- error: 'View' is only available in macOS 10.15 or newer
30 | with destinationToggle: PushToggle,
31 | onComplete: @escaping () -> Void = {},
/Users/admin/builder/spi-builder-workspace/Sources/ScreenNavigatorKit/NavigationStack/PushToggle.swift:29:34: error: 'View' is only available in macOS 10.15 or newer
9 | import Combine
10 |
11 | final class PushToggle: ObservableObject {
| `- note: add @available attribute to enclosing class
12 | static func root() -> PushToggle {
13 | let toggle = PushToggle()
:
26 | private var cancellables: [AnyCancellable] = []
27 |
28 | func push(
| `- note: add @available attribute to enclosing instance method
29 | to destinationView: some View,
| `- error: 'View' is only available in macOS 10.15 or newer
30 | with destinationToggle: PushToggle,
31 | onComplete: @escaping () -> Void = {},
/Users/admin/builder/spi-builder-workspace/Sources/ScreenNavigatorKit/NavigationStack/PushToggle.swift:65:6: error: 'ObservedObject' is only available in macOS 10.15 or newer
62 | }
63 |
64 | struct PushToggleViewModifier: ViewModifier {
| `- note: add @available attribute to enclosing struct
65 | @ObservedObject var toggle: PushToggle
| `- error: 'ObservedObject' is only available in macOS 10.15 or newer
66 |
67 | func body(content: Content) -> some View {
/Users/admin/builder/spi-builder-workspace/Sources/ScreenNavigatorKit/NavigationStack/PushToggle.swift:67:41: error: 'View' is only available in macOS 10.15 or newer
62 | }
63 |
64 | struct PushToggleViewModifier: ViewModifier {
| `- note: add @available attribute to enclosing struct
65 | @ObservedObject var toggle: PushToggle
66 |
67 | 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
68 | content
69 | .push($toggle.pushedView)
<unknown>:0: error: cannot convert value of type 'any KeyPath<PushToggle, AnyView?> & Sendable' to expected argument type 'ReferenceWritableKeyPath<PushToggle, AnyView?>'
<unknown>:0: error: cannot convert value of type 'any KeyPath<PushToggle, Bool> & Sendable' to expected argument type 'ReferenceWritableKeyPath<PushToggle, Bool>'
<unknown>:0: error: cannot convert value of type 'any KeyPath<PushToggle, Bool> & Sendable' to expected argument type 'ReferenceWritableKeyPath<PushToggle, Bool>'
/Users/admin/builder/spi-builder-workspace/Sources/ScreenNavigatorKit/NavigationStack/PushToggle.swift:14:9: error: setter for 'isAppeared' is only available in macOS 10.15 or newer
9 | import Combine
10 |
11 | final class PushToggle: ObservableObject {
| `- note: add @available attribute to enclosing class
12 | static func root() -> PushToggle {
| `- note: add @available attribute to enclosing static method
13 | let toggle = PushToggle()
14 | toggle.isAppeared = true
| |- error: setter for 'isAppeared' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
15 | return toggle
16 | }
/Users/admin/builder/spi-builder-workspace/Sources/ScreenNavigatorKit/NavigationStack/PushToggle.swift:34:24: error: 'dropFirst' is only available in macOS 10.15 or newer
9 | import Combine
10 |
11 | final class PushToggle: ObservableObject {
| `- note: add @available attribute to enclosing class
12 | static func root() -> PushToggle {
13 | let toggle = PushToggle()
:
26 | private var cancellables: [AnyCancellable] = []
27 |
28 | func push(
| `- note: add @available attribute to enclosing instance method
29 | to destinationView: some View,
30 | with destinationToggle: PushToggle,
:
32 | onDismiss: @escaping () -> Void = {}
33 | ) {
34 | $isDissapeared.dropFirst().assign(to: &destinationToggle.$isAppeared)
| |- error: 'dropFirst' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
35 | destinationToggle.$isDissapeared.dropFirst().assign(to: &$isAppeared)
36 |
/Users/admin/builder/spi-builder-workspace/Sources/ScreenNavigatorKit/NavigationStack/PushToggle.swift:34:36: error: 'assign(to:)' is only available in macOS 11.0 or newer
9 | import Combine
10 |
11 | final class PushToggle: ObservableObject {
| `- note: add @available attribute to enclosing class
12 | static func root() -> PushToggle {
13 | let toggle = PushToggle()
:
26 | private var cancellables: [AnyCancellable] = []
27 |
28 | func push(
| `- note: add @available attribute to enclosing instance method
29 | to destinationView: some View,
30 | with destinationToggle: PushToggle,
:
32 | onDismiss: @escaping () -> Void = {}
33 | ) {
34 | $isDissapeared.dropFirst().assign(to: &destinationToggle.$isAppeared)
| |- error: 'assign(to:)' is only available in macOS 11.0 or newer
| `- note: add 'if #available' version check
35 | destinationToggle.$isDissapeared.dropFirst().assign(to: &$isAppeared)
36 |
/Users/admin/builder/spi-builder-workspace/Sources/ScreenNavigatorKit/NavigationStack/PushToggle.swift:34:48: error: cannot pass as inout because setter for '$isAppeared' is only available in macOS 11.0 or newer
9 | import Combine
10 |
11 | final class PushToggle: ObservableObject {
| `- note: add @available attribute to enclosing class
12 | static func root() -> PushToggle {
13 | let toggle = PushToggle()
:
26 | private var cancellables: [AnyCancellable] = []
27 |
28 | func push(
| `- note: add @available attribute to enclosing instance method
29 | to destinationView: some View,
30 | with destinationToggle: PushToggle,
:
32 | onDismiss: @escaping () -> Void = {}
33 | ) {
34 | $isDissapeared.dropFirst().assign(to: &destinationToggle.$isAppeared)
| |- error: cannot pass as inout because setter for '$isAppeared' is only available in macOS 11.0 or newer
| `- note: add 'if #available' version check
35 | destinationToggle.$isDissapeared.dropFirst().assign(to: &$isAppeared)
36 |
/Users/admin/builder/spi-builder-workspace/Sources/ScreenNavigatorKit/NavigationStack/PushToggle.swift:35:42: error: 'dropFirst' is only available in macOS 10.15 or newer
9 | import Combine
10 |
11 | final class PushToggle: ObservableObject {
| `- note: add @available attribute to enclosing class
12 | static func root() -> PushToggle {
13 | let toggle = PushToggle()
:
26 | private var cancellables: [AnyCancellable] = []
27 |
28 | func push(
| `- note: add @available attribute to enclosing instance method
29 | to destinationView: some View,
30 | with destinationToggle: PushToggle,
:
33 | ) {
34 | $isDissapeared.dropFirst().assign(to: &destinationToggle.$isAppeared)
35 | destinationToggle.$isDissapeared.dropFirst().assign(to: &$isAppeared)
| |- error: 'dropFirst' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
36 |
37 | $isAppeared
/Users/admin/builder/spi-builder-workspace/Sources/ScreenNavigatorKit/NavigationStack/PushToggle.swift:35:54: error: 'assign(to:)' is only available in macOS 11.0 or newer
9 | import Combine
10 |
11 | final class PushToggle: ObservableObject {
| `- note: add @available attribute to enclosing class
12 | static func root() -> PushToggle {
13 | let toggle = PushToggle()
:
26 | private var cancellables: [AnyCancellable] = []
27 |
28 | func push(
| `- note: add @available attribute to enclosing instance method
29 | to destinationView: some View,
30 | with destinationToggle: PushToggle,
:
33 | ) {
34 | $isDissapeared.dropFirst().assign(to: &destinationToggle.$isAppeared)
35 | destinationToggle.$isDissapeared.dropFirst().assign(to: &$isAppeared)
| |- error: 'assign(to:)' is only available in macOS 11.0 or newer
| `- note: add 'if #available' version check
36 |
37 | $isAppeared
/Users/admin/builder/spi-builder-workspace/Sources/ScreenNavigatorKit/NavigationStack/PushToggle.swift:35:66: error: cannot pass as inout because setter for '$isAppeared' is only available in macOS 11.0 or newer
9 | import Combine
10 |
11 | final class PushToggle: ObservableObject {
| `- note: add @available attribute to enclosing class
12 | static func root() -> PushToggle {
13 | let toggle = PushToggle()
:
26 | private var cancellables: [AnyCancellable] = []
27 |
28 | func push(
| `- note: add @available attribute to enclosing instance method
29 | to destinationView: some View,
30 | with destinationToggle: PushToggle,
:
33 | ) {
34 | $isDissapeared.dropFirst().assign(to: &destinationToggle.$isAppeared)
35 | destinationToggle.$isDissapeared.dropFirst().assign(to: &$isAppeared)
| |- error: cannot pass as inout because setter for '$isAppeared' is only available in macOS 11.0 or newer
| `- note: add 'if #available' version check
36 |
37 | $isAppeared
/Users/admin/builder/spi-builder-workspace/Sources/ScreenNavigatorKit/NavigationStack/PushToggle.swift:38:14: error: 'first(where:)' is only available in macOS 10.15 or newer
9 | import Combine
10 |
11 | final class PushToggle: ObservableObject {
| `- note: add @available attribute to enclosing class
12 | static func root() -> PushToggle {
13 | let toggle = PushToggle()
:
26 | private var cancellables: [AnyCancellable] = []
27 |
28 | func push(
| `- note: add @available attribute to enclosing instance method
29 | to destinationView: some View,
30 | with destinationToggle: PushToggle,
:
36 |
37 | $isAppeared
38 | .first { $0 }
| |- error: 'first(where:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
39 | .sink { [unowned self] _ in
40 | pushedView = destinationView.modifier(
/Users/admin/builder/spi-builder-workspace/Sources/ScreenNavigatorKit/NavigationStack/PushToggle.swift:39:14: error: 'sink(receiveValue:)' is only available in macOS 10.15 or newer
9 | import Combine
10 |
11 | final class PushToggle: ObservableObject {
| `- note: add @available attribute to enclosing class
12 | static func root() -> PushToggle {
13 | let toggle = PushToggle()
:
26 | private var cancellables: [AnyCancellable] = []
27 |
28 | func push(
| `- note: add @available attribute to enclosing instance method
29 | to destinationView: some View,
30 | with destinationToggle: PushToggle,
:
37 | $isAppeared
38 | .first { $0 }
39 | .sink { [unowned self] _ in
| |- error: 'sink(receiveValue:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
40 | pushedView = destinationView.modifier(
41 | PushToggleViewModifier(toggle: destinationToggle)
/Users/admin/builder/spi-builder-workspace/Sources/ScreenNavigatorKit/NavigationStack/PushToggle.swift:40:17: error: setter for 'pushedView' is only available in macOS 10.15 or newer
9 | import Combine
10 |
11 | final class PushToggle: ObservableObject {
| `- note: add @available attribute to enclosing class
12 | static func root() -> PushToggle {
13 | let toggle = PushToggle()
:
26 | private var cancellables: [AnyCancellable] = []
27 |
28 | func push(
| `- note: add @available attribute to enclosing instance method
29 | to destinationView: some View,
30 | with destinationToggle: PushToggle,
:
38 | .first { $0 }
39 | .sink { [unowned self] _ in
40 | pushedView = destinationView.modifier(
| |- error: setter for 'pushedView' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
41 | PushToggleViewModifier(toggle: destinationToggle)
42 | ).asAny()
/Users/admin/builder/spi-builder-workspace/Sources/ScreenNavigatorKit/NavigationStack/PushToggle.swift:40:46: error: 'modifier' is only available in macOS 10.15 or newer
9 | import Combine
10 |
11 | final class PushToggle: ObservableObject {
| `- note: add @available attribute to enclosing class
12 | static func root() -> PushToggle {
13 | let toggle = PushToggle()
:
26 | private var cancellables: [AnyCancellable] = []
27 |
28 | func push(
| `- note: add @available attribute to enclosing instance method
29 | to destinationView: some View,
30 | with destinationToggle: PushToggle,
:
38 | .first { $0 }
39 | .sink { [unowned self] _ in
40 | pushedView = destinationView.modifier(
| |- error: 'modifier' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
41 | PushToggleViewModifier(toggle: destinationToggle)
42 | ).asAny()
/Users/admin/builder/spi-builder-workspace/Sources/ScreenNavigatorKit/NavigationStack/PushToggle.swift:42:19: 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
9 | import Combine
10 |
11 | final class PushToggle: ObservableObject {
| `- note: add @available attribute to enclosing class
12 | static func root() -> PushToggle {
13 | let toggle = PushToggle()
:
26 | private var cancellables: [AnyCancellable] = []
27 |
28 | func push(
| `- note: add @available attribute to enclosing instance method
29 | to destinationView: some View,
30 | with destinationToggle: PushToggle,
:
40 | pushedView = destinationView.modifier(
41 | PushToggleViewModifier(toggle: destinationToggle)
42 | ).asAny()
| |- 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
43 |
44 | onComplete()
/Users/admin/builder/spi-builder-workspace/Sources/ScreenNavigatorKit/NavigationStack/PushToggle.swift:46:14: error: 'store(in:)' is only available in macOS 10.15 or newer
9 | import Combine
10 |
11 | final class PushToggle: ObservableObject {
| `- note: add @available attribute to enclosing class
12 | static func root() -> PushToggle {
13 | let toggle = PushToggle()
:
26 | private var cancellables: [AnyCancellable] = []
27 |
28 | func push(
| `- note: add @available attribute to enclosing instance method
29 | to destinationView: some View,
30 | with destinationToggle: PushToggle,
:
44 | onComplete()
45 | }
46 | .store(in: &cancellables)
| |- error: 'store(in:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
47 |
48 | $pushedView
/Users/admin/builder/spi-builder-workspace/Sources/ScreenNavigatorKit/NavigationStack/PushToggle.swift:49:14: error: 'dropFirst' is only available in macOS 10.15 or newer
9 | import Combine
10 |
11 | final class PushToggle: ObservableObject {
| `- note: add @available attribute to enclosing class
12 | static func root() -> PushToggle {
13 | let toggle = PushToggle()
:
26 | private var cancellables: [AnyCancellable] = []
27 |
28 | func push(
| `- note: add @available attribute to enclosing instance method
29 | to destinationView: some View,
30 | with destinationToggle: PushToggle,
:
47 |
48 | $pushedView
49 | .dropFirst()
| |- error: 'dropFirst' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
50 | .first { view in
51 | view == nil
/Users/admin/builder/spi-builder-workspace/Sources/ScreenNavigatorKit/NavigationStack/PushToggle.swift:50:14: error: 'first(where:)' is only available in macOS 10.15 or newer
9 | import Combine
10 |
11 | final class PushToggle: ObservableObject {
| `- note: add @available attribute to enclosing class
12 | static func root() -> PushToggle {
13 | let toggle = PushToggle()
:
26 | private var cancellables: [AnyCancellable] = []
27 |
28 | func push(
| `- note: add @available attribute to enclosing instance method
29 | to destinationView: some View,
30 | with destinationToggle: PushToggle,
:
48 | $pushedView
49 | .dropFirst()
50 | .first { view in
| |- error: 'first(where:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
51 | view == nil
52 | }
/Users/admin/builder/spi-builder-workspace/Sources/ScreenNavigatorKit/NavigationStack/PushToggle.swift:53:14: error: 'sink(receiveValue:)' is only available in macOS 10.15 or newer
9 | import Combine
10 |
11 | final class PushToggle: ObservableObject {
| `- note: add @available attribute to enclosing class
12 | static func root() -> PushToggle {
13 | let toggle = PushToggle()
:
26 | private var cancellables: [AnyCancellable] = []
27 |
28 | func push(
| `- note: add @available attribute to enclosing instance method
29 | to destinationView: some View,
30 | with destinationToggle: PushToggle,
:
51 | view == nil
52 | }
53 | .sink { _ in
| |- error: 'sink(receiveValue:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
54 | onDismiss()
55 | }
/Users/admin/builder/spi-builder-workspace/Sources/ScreenNavigatorKit/NavigationStack/PushToggle.swift:56:14: error: 'store(in:)' is only available in macOS 10.15 or newer
9 | import Combine
10 |
11 | final class PushToggle: ObservableObject {
| `- note: add @available attribute to enclosing class
12 | static func root() -> PushToggle {
13 | let toggle = PushToggle()
:
26 | private var cancellables: [AnyCancellable] = []
27 |
28 | func push(
| `- note: add @available attribute to enclosing instance method
29 | to destinationView: some View,
30 | with destinationToggle: PushToggle,
:
54 | onDismiss()
55 | }
56 | .store(in: &cancellables)
| |- error: 'store(in:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
57 | }
58 |
/Users/admin/builder/spi-builder-workspace/Sources/ScreenNavigatorKit/NavigationStack/PushToggle.swift:42:19: warning: call to main actor-isolated instance method 'asAny()' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
40 | pushedView = destinationView.modifier(
41 | PushToggleViewModifier(toggle: destinationToggle)
42 | ).asAny()
| `- warning: call to main actor-isolated instance method 'asAny()' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
43 |
44 | onComplete()
/Users/admin/builder/spi-builder-workspace/Sources/ScreenNavigatorKit/Internal/Helpers/View+asAny.swift:11:10: note: calls to instance method 'asAny()' from outside of its actor context are implicitly asynchronous
9 |
10 | extension View {
11 | func asAny() -> AnyView {
| `- note: calls to instance method 'asAny()' from outside of its actor context are implicitly asynchronous
12 | AnyView(self)
13 | }
/Users/admin/builder/spi-builder-workspace/Sources/ScreenNavigatorKit/NavigationStack/PushToggle.swift:60:9: error: setter for 'pushedView' is only available in macOS 10.15 or newer
9 | import Combine
10 |
11 | final class PushToggle: ObservableObject {
| `- note: add @available attribute to enclosing class
12 | static func root() -> PushToggle {
13 | let toggle = PushToggle()
:
57 | }
58 |
59 | func pop() {
| `- note: add @available attribute to enclosing instance method
60 | pushedView = nil
| |- error: setter for 'pushedView' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
61 | }
62 | }
/Users/admin/builder/spi-builder-workspace/Sources/ScreenNavigatorKit/NavigationStack/PushToggle.swift:69:27: error: cannot assign to property: '$toggle' is immutable
67 | func body(content: Content) -> some View {
68 | content
69 | .push($toggle.pushedView)
| `- error: cannot assign to property: '$toggle' is immutable
70 | .onDisappear {
71 | toggle.isDissapeared = true
[5/19] Compiling ScreenNavigatorKit ModalStackController.swift
/Users/admin/builder/spi-builder-workspace/Sources/ScreenNavigatorKit/ModalStack/ModalStackController.swift:31:33: error: 'View' is only available in macOS 10.15 or newer
12 | ///
13 | /// - Should be binded in specific View that become root view.
14 | public final class ModalStackController: ObservableObject {
| `- note: add @available attribute to enclosing class
15 | // MARK: - Initializer
16 |
:
29 | // MARK: - Presenter View body
30 |
31 | func rootBody(content: some View) -> some View {
| | `- error: 'View' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing instance method
32 | content.modifier(
33 | ModalToggleViewModifier(toggle: toggles[0])
/Users/admin/builder/spi-builder-workspace/Sources/ScreenNavigatorKit/ModalStack/ModalStackController.swift:31:33: error: 'View' is only available in macOS 10.15 or newer
12 | ///
13 | /// - Should be binded in specific View that become root view.
14 | public final class ModalStackController: ObservableObject {
| `- note: add @available attribute to enclosing class
15 | // MARK: - Initializer
16 |
:
29 | // MARK: - Presenter View body
30 |
31 | func rootBody(content: some View) -> some View {
| | `- error: 'View' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing instance method
32 | content.modifier(
33 | ModalToggleViewModifier(toggle: toggles[0])
/Users/admin/builder/spi-builder-workspace/Sources/ScreenNavigatorKit/ModalStack/ModalStackController.swift:31:47: error: 'View' is only available in macOS 10.15 or newer
12 | ///
13 | /// - Should be binded in specific View that become root view.
14 | public final class ModalStackController: ObservableObject {
| `- note: add @available attribute to enclosing class
15 | // MARK: - Initializer
16 |
:
29 | // MARK: - Presenter View body
30 |
31 | func rootBody(content: some View) -> some View {
| | `- error: 'View' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing instance method
32 | content.modifier(
33 | ModalToggleViewModifier(toggle: toggles[0])
/Users/admin/builder/spi-builder-workspace/Sources/ScreenNavigatorKit/ModalStack/ModalStackController.swift:42:29: error: 'View' is only available in macOS 10.15 or newer
12 | ///
13 | /// - Should be binded in specific View that become root view.
14 | public final class ModalStackController: ObservableObject {
| `- note: add @available attribute to enclosing class
15 | // MARK: - Initializer
16 |
:
38 |
39 | /// Present view over last presented view.
40 | public func present(
| `- note: add @available attribute to enclosing instance method
41 | _ presentationStyle: PresentationStyle,
42 | _ destination: some View
| `- error: 'View' is only available in macOS 10.15 or newer
43 | ) {
44 | present(
/Users/admin/builder/spi-builder-workspace/Sources/ScreenNavigatorKit/ModalStack/ModalStackController.swift:42:29: error: 'View' is only available in macOS 10.15 or newer
12 | ///
13 | /// - Should be binded in specific View that become root view.
14 | public final class ModalStackController: ObservableObject {
| `- note: add @available attribute to enclosing class
15 | // MARK: - Initializer
16 |
:
38 |
39 | /// Present view over last presented view.
40 | public func present(
| `- note: add @available attribute to enclosing instance method
41 | _ presentationStyle: PresentationStyle,
42 | _ destination: some View
| `- error: 'View' is only available in macOS 10.15 or newer
43 | ) {
44 | present(
/Users/admin/builder/spi-builder-workspace/Sources/ScreenNavigatorKit/ModalStack/ModalStackController.swift:57:29: error: 'View' is only available in macOS 10.15 or newer
12 | ///
13 | /// - Should be binded in specific View that become root view.
14 | public final class ModalStackController: ObservableObject {
| `- note: add @available attribute to enclosing class
15 | // MARK: - Initializer
16 |
:
52 | ///
53 | /// The tag will allow to dismiss(to:) or dismiss(from:) exactly to this view.
54 | public func present(
| `- note: add @available attribute to enclosing instance method
55 | _ presentationStyle: PresentationStyle,
56 | tag: some Hashable,
57 | _ destination: some View
| `- error: 'View' is only available in macOS 10.15 or newer
58 | ) {
59 | present(
/Users/admin/builder/spi-builder-workspace/Sources/ScreenNavigatorKit/ModalStack/ModalStackController.swift:57:29: error: 'View' is only available in macOS 10.15 or newer
12 | ///
13 | /// - Should be binded in specific View that become root view.
14 | public final class ModalStackController: ObservableObject {
| `- note: add @available attribute to enclosing class
15 | // MARK: - Initializer
16 |
:
52 | ///
53 | /// The tag will allow to dismiss(to:) or dismiss(from:) exactly to this view.
54 | public func present(
| `- note: add @available attribute to enclosing instance method
55 | _ presentationStyle: PresentationStyle,
56 | tag: some Hashable,
57 | _ destination: some View
| `- error: 'View' is only available in macOS 10.15 or newer
58 | ) {
59 | present(
/Users/admin/builder/spi-builder-workspace/Sources/ScreenNavigatorKit/ModalStack/ModalStackController.swift:69:41: error: 'View' is only available in macOS 10.15 or newer
12 | ///
13 | /// - Should be binded in specific View that become root view.
14 | public final class ModalStackController: ObservableObject {
| `- note: add @available attribute to enclosing class
15 | // MARK: - Initializer
16 |
:
64 | }
65 |
66 | private func present(
| `- note: add @available attribute to enclosing instance method
67 | presentationStyle: PresentationStyle,
68 | hashTag: AnyHashable?,
69 | destination presentedView: some View
| `- error: 'View' is only available in macOS 10.15 or newer
70 | ) {
71 | let currentToggle = toggles.last!
/Users/admin/builder/spi-builder-workspace/Sources/ScreenNavigatorKit/ModalStack/ModalStackController.swift:69:41: error: 'View' is only available in macOS 10.15 or newer
12 | ///
13 | /// - Should be binded in specific View that become root view.
14 | public final class ModalStackController: ObservableObject {
| `- note: add @available attribute to enclosing class
15 | // MARK: - Initializer
16 |
:
64 | }
65 |
66 | private func present(
| `- note: add @available attribute to enclosing instance method
67 | presentationStyle: PresentationStyle,
68 | hashTag: AnyHashable?,
69 | destination presentedView: some View
| `- error: 'View' is only available in macOS 10.15 or newer
70 | ) {
71 | let currentToggle = toggles.last!
/Users/admin/builder/spi-builder-workspace/Sources/ScreenNavigatorKit/ModalStack/ModalStackController.swift:32:17: 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
12 | ///
13 | /// - Should be binded in specific View that become root view.
14 | public final class ModalStackController: ObservableObject {
| `- note: add @available attribute to enclosing class
15 | // MARK: - Initializer
16 |
:
29 | // MARK: - Presenter View body
30 |
31 | func rootBody(content: some View) -> some View {
| `- note: add @available attribute to enclosing instance method
32 | content.modifier(
| |- 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
33 | ModalToggleViewModifier(toggle: toggles[0])
34 | )
/Users/admin/builder/spi-builder-workspace/Sources/ScreenNavigatorKit/ModalStack/ModalStackController.swift:32:17: error: 'modifier' is only available in macOS 10.15 or newer
12 | ///
13 | /// - Should be binded in specific View that become root view.
14 | public final class ModalStackController: ObservableObject {
| `- note: add @available attribute to enclosing class
15 | // MARK: - Initializer
16 |
:
29 | // MARK: - Presenter View body
30 |
31 | func rootBody(content: some View) -> some View {
| `- note: add @available attribute to enclosing instance method
32 | content.modifier(
| |- error: 'modifier' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
33 | ModalToggleViewModifier(toggle: toggles[0])
34 | )
/Users/admin/builder/spi-builder-workspace/Sources/ScreenNavigatorKit/ModalStack/ModalStackView.swift:13:10: error: 'ViewBuilder' is only available in macOS 10.15 or newer
8 | import SwiftUI
9 |
10 | public struct ModalStackView<Content: View>: View {
| `- note: add @available attribute to enclosing generic struct
11 | public init(
| `- note: add @available attribute to enclosing initializer
12 | _ controller: ModalStackController,
13 | @ViewBuilder content: () -> Content
| `- error: 'ViewBuilder' is only available in macOS 10.15 or newer
14 | ) {
15 | self.controller = controller
/Users/admin/builder/spi-builder-workspace/Sources/ScreenNavigatorKit/ModalStack/ModalStackView.swift:19:6: error: 'ObservedObject' is only available in macOS 10.15 or newer
8 | import SwiftUI
9 |
10 | public struct ModalStackView<Content: View>: View {
| `- note: add @available attribute to enclosing generic struct
11 | public init(
12 | _ controller: ModalStackController,
:
17 | }
18 |
19 | @ObservedObject var controller: ModalStackController
| `- error: 'ObservedObject' is only available in macOS 10.15 or newer
20 | let content: Content
21 |
/Users/admin/builder/spi-builder-workspace/Sources/ScreenNavigatorKit/ModalStack/ModalStackView.swift:22:27: error: 'View' is only available in macOS 10.15 or newer
8 | import SwiftUI
9 |
10 | public struct ModalStackView<Content: View>: View {
| `- note: add @available attribute to enclosing generic struct
11 | public init(
12 | _ controller: ModalStackController,
:
20 | let content: Content
21 |
22 | public var body: some View {
| | `- error: 'View' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing property
23 | controller
24 | .rootBody(content: content)
/Users/admin/builder/spi-builder-workspace/Sources/ScreenNavigatorKit/ModalStack/ModalStackView.swift:10:39: error: 'View' is only available in macOS 10.15 or newer
8 | import SwiftUI
9 |
10 | public struct ModalStackView<Content: View>: View {
| | `- error: 'View' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing generic struct
11 | public init(
12 | _ controller: ModalStackController,
/Users/admin/builder/spi-builder-workspace/Sources/ScreenNavigatorKit/ModalStack/ModalStackView.swift:15:9: error: setter for 'controller' is only available in macOS 10.15 or newer
8 | import SwiftUI
9 |
10 | public struct ModalStackView<Content: View>: View {
| `- note: add @available attribute to enclosing generic struct
11 | public init(
| `- note: add @available attribute to enclosing initializer
12 | _ controller: ModalStackController,
13 | @ViewBuilder content: () -> Content
14 | ) {
15 | self.controller = controller
| |- error: setter for 'controller' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
16 | self.content = content()
17 | }
/Users/admin/builder/spi-builder-workspace/Sources/ScreenNavigatorKit/ModalStack/ModalStackView.swift:25:14: error: 'environmentObject' is only available in macOS 10.15 or newer
8 | import SwiftUI
9 |
10 | public struct ModalStackView<Content: View>: View {
| `- note: add @available attribute to enclosing generic struct
11 | public init(
12 | _ controller: ModalStackController,
:
20 | let content: Content
21 |
22 | public var body: some View {
| `- note: add @available attribute to enclosing property
23 | controller
24 | .rootBody(content: content)
25 | .environmentObject(controller)
| |- error: 'environmentObject' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
26 | }
27 | }
[6/19] Compiling ScreenNavigatorKit ModalStackView.swift
/Users/admin/builder/spi-builder-workspace/Sources/ScreenNavigatorKit/ModalStack/ModalStackController.swift:31:33: error: 'View' is only available in macOS 10.15 or newer
12 | ///
13 | /// - Should be binded in specific View that become root view.
14 | public final class ModalStackController: ObservableObject {
| `- note: add @available attribute to enclosing class
15 | // MARK: - Initializer
16 |
:
29 | // MARK: - Presenter View body
30 |
31 | func rootBody(content: some View) -> some View {
| | `- error: 'View' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing instance method
32 | content.modifier(
33 | ModalToggleViewModifier(toggle: toggles[0])
/Users/admin/builder/spi-builder-workspace/Sources/ScreenNavigatorKit/ModalStack/ModalStackController.swift:31:33: error: 'View' is only available in macOS 10.15 or newer
12 | ///
13 | /// - Should be binded in specific View that become root view.
14 | public final class ModalStackController: ObservableObject {
| `- note: add @available attribute to enclosing class
15 | // MARK: - Initializer
16 |
:
29 | // MARK: - Presenter View body
30 |
31 | func rootBody(content: some View) -> some View {
| | `- error: 'View' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing instance method
32 | content.modifier(
33 | ModalToggleViewModifier(toggle: toggles[0])
/Users/admin/builder/spi-builder-workspace/Sources/ScreenNavigatorKit/ModalStack/ModalStackController.swift:31:47: error: 'View' is only available in macOS 10.15 or newer
12 | ///
13 | /// - Should be binded in specific View that become root view.
14 | public final class ModalStackController: ObservableObject {
| `- note: add @available attribute to enclosing class
15 | // MARK: - Initializer
16 |
:
29 | // MARK: - Presenter View body
30 |
31 | func rootBody(content: some View) -> some View {
| | `- error: 'View' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing instance method
32 | content.modifier(
33 | ModalToggleViewModifier(toggle: toggles[0])
/Users/admin/builder/spi-builder-workspace/Sources/ScreenNavigatorKit/ModalStack/ModalStackController.swift:42:29: error: 'View' is only available in macOS 10.15 or newer
12 | ///
13 | /// - Should be binded in specific View that become root view.
14 | public final class ModalStackController: ObservableObject {
| `- note: add @available attribute to enclosing class
15 | // MARK: - Initializer
16 |
:
38 |
39 | /// Present view over last presented view.
40 | public func present(
| `- note: add @available attribute to enclosing instance method
41 | _ presentationStyle: PresentationStyle,
42 | _ destination: some View
| `- error: 'View' is only available in macOS 10.15 or newer
43 | ) {
44 | present(
/Users/admin/builder/spi-builder-workspace/Sources/ScreenNavigatorKit/ModalStack/ModalStackController.swift:42:29: error: 'View' is only available in macOS 10.15 or newer
12 | ///
13 | /// - Should be binded in specific View that become root view.
14 | public final class ModalStackController: ObservableObject {
| `- note: add @available attribute to enclosing class
15 | // MARK: - Initializer
16 |
:
38 |
39 | /// Present view over last presented view.
40 | public func present(
| `- note: add @available attribute to enclosing instance method
41 | _ presentationStyle: PresentationStyle,
42 | _ destination: some View
| `- error: 'View' is only available in macOS 10.15 or newer
43 | ) {
44 | present(
/Users/admin/builder/spi-builder-workspace/Sources/ScreenNavigatorKit/ModalStack/ModalStackController.swift:57:29: error: 'View' is only available in macOS 10.15 or newer
12 | ///
13 | /// - Should be binded in specific View that become root view.
14 | public final class ModalStackController: ObservableObject {
| `- note: add @available attribute to enclosing class
15 | // MARK: - Initializer
16 |
:
52 | ///
53 | /// The tag will allow to dismiss(to:) or dismiss(from:) exactly to this view.
54 | public func present(
| `- note: add @available attribute to enclosing instance method
55 | _ presentationStyle: PresentationStyle,
56 | tag: some Hashable,
57 | _ destination: some View
| `- error: 'View' is only available in macOS 10.15 or newer
58 | ) {
59 | present(
/Users/admin/builder/spi-builder-workspace/Sources/ScreenNavigatorKit/ModalStack/ModalStackController.swift:57:29: error: 'View' is only available in macOS 10.15 or newer
12 | ///
13 | /// - Should be binded in specific View that become root view.
14 | public final class ModalStackController: ObservableObject {
| `- note: add @available attribute to enclosing class
15 | // MARK: - Initializer
16 |
:
52 | ///
53 | /// The tag will allow to dismiss(to:) or dismiss(from:) exactly to this view.
54 | public func present(
| `- note: add @available attribute to enclosing instance method
55 | _ presentationStyle: PresentationStyle,
56 | tag: some Hashable,
57 | _ destination: some View
| `- error: 'View' is only available in macOS 10.15 or newer
58 | ) {
59 | present(
/Users/admin/builder/spi-builder-workspace/Sources/ScreenNavigatorKit/ModalStack/ModalStackController.swift:69:41: error: 'View' is only available in macOS 10.15 or newer
12 | ///
13 | /// - Should be binded in specific View that become root view.
14 | public final class ModalStackController: ObservableObject {
| `- note: add @available attribute to enclosing class
15 | // MARK: - Initializer
16 |
:
64 | }
65 |
66 | private func present(
| `- note: add @available attribute to enclosing instance method
67 | presentationStyle: PresentationStyle,
68 | hashTag: AnyHashable?,
69 | destination presentedView: some View
| `- error: 'View' is only available in macOS 10.15 or newer
70 | ) {
71 | let currentToggle = toggles.last!
/Users/admin/builder/spi-builder-workspace/Sources/ScreenNavigatorKit/ModalStack/ModalStackController.swift:69:41: error: 'View' is only available in macOS 10.15 or newer
12 | ///
13 | /// - Should be binded in specific View that become root view.
14 | public final class ModalStackController: ObservableObject {
| `- note: add @available attribute to enclosing class
15 | // MARK: - Initializer
16 |
:
64 | }
65 |
66 | private func present(
| `- note: add @available attribute to enclosing instance method
67 | presentationStyle: PresentationStyle,
68 | hashTag: AnyHashable?,
69 | destination presentedView: some View
| `- error: 'View' is only available in macOS 10.15 or newer
70 | ) {
71 | let currentToggle = toggles.last!
/Users/admin/builder/spi-builder-workspace/Sources/ScreenNavigatorKit/ModalStack/ModalStackController.swift:32:17: 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
12 | ///
13 | /// - Should be binded in specific View that become root view.
14 | public final class ModalStackController: ObservableObject {
| `- note: add @available attribute to enclosing class
15 | // MARK: - Initializer
16 |
:
29 | // MARK: - Presenter View body
30 |
31 | func rootBody(content: some View) -> some View {
| `- note: add @available attribute to enclosing instance method
32 | content.modifier(
| |- 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
33 | ModalToggleViewModifier(toggle: toggles[0])
34 | )
/Users/admin/builder/spi-builder-workspace/Sources/ScreenNavigatorKit/ModalStack/ModalStackController.swift:32:17: error: 'modifier' is only available in macOS 10.15 or newer
12 | ///
13 | /// - Should be binded in specific View that become root view.
14 | public final class ModalStackController: ObservableObject {
| `- note: add @available attribute to enclosing class
15 | // MARK: - Initializer
16 |
:
29 | // MARK: - Presenter View body
30 |
31 | func rootBody(content: some View) -> some View {
| `- note: add @available attribute to enclosing instance method
32 | content.modifier(
| |- error: 'modifier' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
33 | ModalToggleViewModifier(toggle: toggles[0])
34 | )
/Users/admin/builder/spi-builder-workspace/Sources/ScreenNavigatorKit/ModalStack/ModalStackView.swift:13:10: error: 'ViewBuilder' is only available in macOS 10.15 or newer
8 | import SwiftUI
9 |
10 | public struct ModalStackView<Content: View>: View {
| `- note: add @available attribute to enclosing generic struct
11 | public init(
| `- note: add @available attribute to enclosing initializer
12 | _ controller: ModalStackController,
13 | @ViewBuilder content: () -> Content
| `- error: 'ViewBuilder' is only available in macOS 10.15 or newer
14 | ) {
15 | self.controller = controller
/Users/admin/builder/spi-builder-workspace/Sources/ScreenNavigatorKit/ModalStack/ModalStackView.swift:19:6: error: 'ObservedObject' is only available in macOS 10.15 or newer
8 | import SwiftUI
9 |
10 | public struct ModalStackView<Content: View>: View {
| `- note: add @available attribute to enclosing generic struct
11 | public init(
12 | _ controller: ModalStackController,
:
17 | }
18 |
19 | @ObservedObject var controller: ModalStackController
| `- error: 'ObservedObject' is only available in macOS 10.15 or newer
20 | let content: Content
21 |
/Users/admin/builder/spi-builder-workspace/Sources/ScreenNavigatorKit/ModalStack/ModalStackView.swift:22:27: error: 'View' is only available in macOS 10.15 or newer
8 | import SwiftUI
9 |
10 | public struct ModalStackView<Content: View>: View {
| `- note: add @available attribute to enclosing generic struct
11 | public init(
12 | _ controller: ModalStackController,
:
20 | let content: Content
21 |
22 | public var body: some View {
| | `- error: 'View' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing property
23 | controller
24 | .rootBody(content: content)
/Users/admin/builder/spi-builder-workspace/Sources/ScreenNavigatorKit/ModalStack/ModalStackView.swift:10:39: error: 'View' is only available in macOS 10.15 or newer
8 | import SwiftUI
9 |
10 | public struct ModalStackView<Content: View>: View {
| | `- error: 'View' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing generic struct
11 | public init(
12 | _ controller: ModalStackController,
/Users/admin/builder/spi-builder-workspace/Sources/ScreenNavigatorKit/ModalStack/ModalStackView.swift:15:9: error: setter for 'controller' is only available in macOS 10.15 or newer
8 | import SwiftUI
9 |
10 | public struct ModalStackView<Content: View>: View {
| `- note: add @available attribute to enclosing generic struct
11 | public init(
| `- note: add @available attribute to enclosing initializer
12 | _ controller: ModalStackController,
13 | @ViewBuilder content: () -> Content
14 | ) {
15 | self.controller = controller
| |- error: setter for 'controller' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
16 | self.content = content()
17 | }
/Users/admin/builder/spi-builder-workspace/Sources/ScreenNavigatorKit/ModalStack/ModalStackView.swift:25:14: error: 'environmentObject' is only available in macOS 10.15 or newer
8 | import SwiftUI
9 |
10 | public struct ModalStackView<Content: View>: View {
| `- note: add @available attribute to enclosing generic struct
11 | public init(
12 | _ controller: ModalStackController,
:
20 | let content: Content
21 |
22 | public var body: some View {
| `- note: add @available attribute to enclosing property
23 | controller
24 | .rootBody(content: content)
25 | .environmentObject(controller)
| |- error: 'environmentObject' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
26 | }
27 | }
[7/19] Compiling ScreenNavigatorKit ModalToggle.swift
/Users/admin/builder/spi-builder-workspace/Sources/ScreenNavigatorKit/ModalStack/ModalToggle.swift:22:52: error: 'AnyView' is only available in macOS 10.15 or newer
9 | import Combine
10 |
11 | final class ModalToggle: ObservableObject {
| `- note: add @available attribute to enclosing class
12 | // MARK: - Initializer
13 |
:
20 | fileprivate(set) var presentationStyle: PresentationStyle?
21 |
22 | @Published fileprivate(set) var presentedView: AnyView?
| `- error: 'AnyView' is only available in macOS 10.15 or newer
23 |
24 | private weak var destinationToggle: ModalToggle?
/Users/admin/builder/spi-builder-workspace/Sources/ScreenNavigatorKit/ModalStack/ModalToggle.swift:22:6: error: 'Published' is only available in macOS 10.15 or newer
9 | import Combine
10 |
11 | final class ModalToggle: ObservableObject {
| `- note: add @available attribute to enclosing class
12 | // MARK: - Initializer
13 |
:
20 | fileprivate(set) var presentationStyle: PresentationStyle?
21 |
22 | @Published fileprivate(set) var presentedView: AnyView?
| `- error: 'Published' is only available in macOS 10.15 or newer
23 |
24 | private weak var destinationToggle: ModalToggle?
/Users/admin/builder/spi-builder-workspace/Sources/ScreenNavigatorKit/ModalStack/ModalToggle.swift:28:6: error: 'Published' is only available in macOS 10.15 or newer
9 | import Combine
10 |
11 | final class ModalToggle: ObservableObject {
| `- note: add @available attribute to enclosing class
12 | // MARK: - Initializer
13 |
:
26 | // MARK: - Properties
27 |
28 | @Published fileprivate(set) var isAppeared = false
| `- error: 'Published' is only available in macOS 10.15 or newer
29 | @Published fileprivate(set) var isDissapeared = false
30 |
/Users/admin/builder/spi-builder-workspace/Sources/ScreenNavigatorKit/ModalStack/ModalToggle.swift:29:6: error: 'Published' is only available in macOS 10.15 or newer
9 | import Combine
10 |
11 | final class ModalToggle: ObservableObject {
| `- note: add @available attribute to enclosing class
12 | // MARK: - Initializer
13 |
:
27 |
28 | @Published fileprivate(set) var isAppeared = false
29 | @Published fileprivate(set) var isDissapeared = false
| `- error: 'Published' is only available in macOS 10.15 or newer
30 |
31 | private var cancellables: [AnyCancellable] = []
/Users/admin/builder/spi-builder-workspace/Sources/ScreenNavigatorKit/ModalStack/ModalToggle.swift:31:32: error: 'AnyCancellable' is only available in macOS 10.15 or newer
9 | import Combine
10 |
11 | final class ModalToggle: ObservableObject {
| `- note: add @available attribute to enclosing class
12 | // MARK: - Initializer
13 |
:
29 | @Published fileprivate(set) var isDissapeared = false
30 |
31 | private var cancellables: [AnyCancellable] = []
| `- error: 'AnyCancellable' is only available in macOS 10.15 or newer
32 |
33 | // MARK: - Methods
/Users/admin/builder/spi-builder-workspace/Sources/ScreenNavigatorKit/ModalStack/ModalToggle.swift:37:33: error: 'View' is only available in macOS 10.15 or newer
9 | import Combine
10 |
11 | final class ModalToggle: ObservableObject {
| `- note: add @available attribute to enclosing class
12 | // MARK: - Initializer
13 |
:
33 | // MARK: - Methods
34 |
35 | func present(
| `- note: add @available attribute to enclosing instance method
36 | in presentationStyle: PresentationStyle,
37 | _ destinationView: some View,
| `- error: 'View' is only available in macOS 10.15 or newer
38 | with destinationToggle: ModalToggle,
39 | onDismiss: @escaping () -> Void = {}
/Users/admin/builder/spi-builder-workspace/Sources/ScreenNavigatorKit/ModalStack/ModalToggle.swift:37:33: error: 'View' is only available in macOS 10.15 or newer
9 | import Combine
10 |
11 | final class ModalToggle: ObservableObject {
| `- note: add @available attribute to enclosing class
12 | // MARK: - Initializer
13 |
:
33 | // MARK: - Methods
34 |
35 | func present(
| `- note: add @available attribute to enclosing instance method
36 | in presentationStyle: PresentationStyle,
37 | _ destinationView: some View,
| `- error: 'View' is only available in macOS 10.15 or newer
38 | with destinationToggle: ModalToggle,
39 | onDismiss: @escaping () -> Void = {}
/Users/admin/builder/spi-builder-workspace/Sources/ScreenNavigatorKit/ModalStack/ModalToggle.swift:74:6: error: 'ObservedObject' is only available in macOS 10.15 or newer
71 | }
72 |
73 | struct ModalToggleViewModifier: ViewModifier {
| `- note: add @available attribute to enclosing struct
74 | @ObservedObject var toggle: ModalToggle
| `- error: 'ObservedObject' is only available in macOS 10.15 or newer
75 |
76 | func body(content: Content) -> some View {
<unknown>:0: error: cannot convert value of type 'any KeyPath<ModalToggle, AnyView?> & Sendable' to expected argument type 'ReferenceWritableKeyPath<ModalToggle, AnyView?>'
<unknown>:0: error: cannot convert value of type 'any KeyPath<ModalToggle, Bool> & Sendable' to expected argument type 'ReferenceWritableKeyPath<ModalToggle, Bool>'
<unknown>:0: error: cannot convert value of type 'any KeyPath<ModalToggle, Bool> & Sendable' to expected argument type 'ReferenceWritableKeyPath<ModalToggle, Bool>'
/Users/admin/builder/spi-builder-workspace/Sources/ScreenNavigatorKit/ModalStack/ModalToggle.swift:76:41: error: 'View' is only available in macOS 10.15 or newer
71 | }
72 |
73 | struct ModalToggleViewModifier: ViewModifier {
| `- note: add @available attribute to enclosing struct
74 | @ObservedObject var toggle: ModalToggle
75 |
76 | 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
77 | Group {
78 | content.onDisappear {
/Users/admin/builder/spi-builder-workspace/Sources/ScreenNavigatorKit/ModalStack/ModalToggle.swift:41:24: error: 'dropFirst' is only available in macOS 10.15 or newer
9 | import Combine
10 |
11 | final class ModalToggle: ObservableObject {
| `- note: add @available attribute to enclosing class
12 | // MARK: - Initializer
13 |
:
33 | // MARK: - Methods
34 |
35 | func present(
| `- note: add @available attribute to enclosing instance method
36 | in presentationStyle: PresentationStyle,
37 | _ destinationView: some View,
:
39 | onDismiss: @escaping () -> Void = {}
40 | ) {
41 | $isDissapeared.dropFirst().assign(to: &destinationToggle.$isAppeared)
| |- error: 'dropFirst' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
42 | destinationToggle.$isDissapeared.dropFirst().assign(to: &$isAppeared)
43 |
/Users/admin/builder/spi-builder-workspace/Sources/ScreenNavigatorKit/ModalStack/ModalToggle.swift:41:36: error: 'assign(to:)' is only available in macOS 11.0 or newer
9 | import Combine
10 |
11 | final class ModalToggle: ObservableObject {
| `- note: add @available attribute to enclosing class
12 | // MARK: - Initializer
13 |
:
33 | // MARK: - Methods
34 |
35 | func present(
| `- note: add @available attribute to enclosing instance method
36 | in presentationStyle: PresentationStyle,
37 | _ destinationView: some View,
:
39 | onDismiss: @escaping () -> Void = {}
40 | ) {
41 | $isDissapeared.dropFirst().assign(to: &destinationToggle.$isAppeared)
| |- error: 'assign(to:)' is only available in macOS 11.0 or newer
| `- note: add 'if #available' version check
42 | destinationToggle.$isDissapeared.dropFirst().assign(to: &$isAppeared)
43 |
/Users/admin/builder/spi-builder-workspace/Sources/ScreenNavigatorKit/ModalStack/ModalToggle.swift:41:48: error: cannot pass as inout because setter for '$isAppeared' is only available in macOS 11.0 or newer
9 | import Combine
10 |
11 | final class ModalToggle: ObservableObject {
| `- note: add @available attribute to enclosing class
12 | // MARK: - Initializer
13 |
:
33 | // MARK: - Methods
34 |
35 | func present(
| `- note: add @available attribute to enclosing instance method
36 | in presentationStyle: PresentationStyle,
37 | _ destinationView: some View,
:
39 | onDismiss: @escaping () -> Void = {}
40 | ) {
41 | $isDissapeared.dropFirst().assign(to: &destinationToggle.$isAppeared)
| |- error: cannot pass as inout because setter for '$isAppeared' is only available in macOS 11.0 or newer
| `- note: add 'if #available' version check
42 | destinationToggle.$isDissapeared.dropFirst().assign(to: &$isAppeared)
43 |
/Users/admin/builder/spi-builder-workspace/Sources/ScreenNavigatorKit/ModalStack/ModalToggle.swift:42:42: error: 'dropFirst' is only available in macOS 10.15 or newer
9 | import Combine
10 |
11 | final class ModalToggle: ObservableObject {
| `- note: add @available attribute to enclosing class
12 | // MARK: - Initializer
13 |
:
33 | // MARK: - Methods
34 |
35 | func present(
| `- note: add @available attribute to enclosing instance method
36 | in presentationStyle: PresentationStyle,
37 | _ destinationView: some View,
:
40 | ) {
41 | $isDissapeared.dropFirst().assign(to: &destinationToggle.$isAppeared)
42 | destinationToggle.$isDissapeared.dropFirst().assign(to: &$isAppeared)
| |- error: 'dropFirst' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
43 |
44 | self.destinationToggle = destinationToggle
/Users/admin/builder/spi-builder-workspace/Sources/ScreenNavigatorKit/ModalStack/ModalToggle.swift:42:54: error: 'assign(to:)' is only available in macOS 11.0 or newer
9 | import Combine
10 |
11 | final class ModalToggle: ObservableObject {
| `- note: add @available attribute to enclosing class
12 | // MARK: - Initializer
13 |
:
33 | // MARK: - Methods
34 |
35 | func present(
| `- note: add @available attribute to enclosing instance method
36 | in presentationStyle: PresentationStyle,
37 | _ destinationView: some View,
:
40 | ) {
41 | $isDissapeared.dropFirst().assign(to: &destinationToggle.$isAppeared)
42 | destinationToggle.$isDissapeared.dropFirst().assign(to: &$isAppeared)
| |- error: 'assign(to:)' is only available in macOS 11.0 or newer
| `- note: add 'if #available' version check
43 |
44 | self.destinationToggle = destinationToggle
/Users/admin/builder/spi-builder-workspace/Sources/ScreenNavigatorKit/ModalStack/ModalToggle.swift:42:66: error: cannot pass as inout because setter for '$isAppeared' is only available in macOS 11.0 or newer
9 | import Combine
10 |
11 | final class ModalToggle: ObservableObject {
| `- note: add @available attribute to enclosing class
12 | // MARK: - Initializer
13 |
:
33 | // MARK: - Methods
34 |
35 | func present(
| `- note: add @available attribute to enclosing instance method
36 | in presentationStyle: PresentationStyle,
37 | _ destinationView: some View,
:
40 | ) {
41 | $isDissapeared.dropFirst().assign(to: &destinationToggle.$isAppeared)
42 | destinationToggle.$isDissapeared.dropFirst().assign(to: &$isAppeared)
| |- error: cannot pass as inout because setter for '$isAppeared' is only available in macOS 11.0 or newer
| `- note: add 'if #available' version check
43 |
44 | self.destinationToggle = destinationToggle
/Users/admin/builder/spi-builder-workspace/Sources/ScreenNavigatorKit/ModalStack/ModalToggle.swift:46:9: error: setter for 'presentedView' is only available in macOS 10.15 or newer
9 | import Combine
10 |
11 | final class ModalToggle: ObservableObject {
| `- note: add @available attribute to enclosing class
12 | // MARK: - Initializer
13 |
:
33 | // MARK: - Methods
34 |
35 | func present(
| `- note: add @available attribute to enclosing instance method
36 | in presentationStyle: PresentationStyle,
37 | _ destinationView: some View,
:
44 | self.destinationToggle = destinationToggle
45 | self.presentationStyle = presentationStyle
46 | self.presentedView = destinationView.modifier(
| |- error: setter for 'presentedView' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
47 | ModalToggleViewModifier(toggle: destinationToggle)
48 | ).asAny()
/Users/admin/builder/spi-builder-workspace/Sources/ScreenNavigatorKit/ModalStack/ModalToggle.swift:46:46: error: 'modifier' is only available in macOS 10.15 or newer
9 | import Combine
10 |
11 | final class ModalToggle: ObservableObject {
| `- note: add @available attribute to enclosing class
12 | // MARK: - Initializer
13 |
:
33 | // MARK: - Methods
34 |
35 | func present(
| `- note: add @available attribute to enclosing instance method
36 | in presentationStyle: PresentationStyle,
37 | _ destinationView: some View,
:
44 | self.destinationToggle = destinationToggle
45 | self.presentationStyle = presentationStyle
46 | self.presentedView = destinationView.modifier(
| |- error: 'modifier' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
47 | ModalToggleViewModifier(toggle: destinationToggle)
48 | ).asAny()
/Users/admin/builder/spi-builder-workspace/Sources/ScreenNavigatorKit/ModalStack/ModalToggle.swift:48:11: 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
9 | import Combine
10 |
11 | final class ModalToggle: ObservableObject {
| `- note: add @available attribute to enclosing class
12 | // MARK: - Initializer
13 |
:
33 | // MARK: - Methods
34 |
35 | func present(
| `- note: add @available attribute to enclosing instance method
36 | in presentationStyle: PresentationStyle,
37 | _ destinationView: some View,
:
46 | self.presentedView = destinationView.modifier(
47 | ModalToggleViewModifier(toggle: destinationToggle)
48 | ).asAny()
| |- 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
49 |
50 | destinationToggle.$isDissapeared
/Users/admin/builder/spi-builder-workspace/Sources/ScreenNavigatorKit/ModalStack/ModalToggle.swift:51:14: error: 'first(where:)' is only available in macOS 10.15 or newer
9 | import Combine
10 |
11 | final class ModalToggle: ObservableObject {
| `- note: add @available attribute to enclosing class
12 | // MARK: - Initializer
13 |
:
33 | // MARK: - Methods
34 |
35 | func present(
| `- note: add @available attribute to enclosing instance method
36 | in presentationStyle: PresentationStyle,
37 | _ destinationView: some View,
:
49 |
50 | destinationToggle.$isDissapeared
51 | .first { $0 }
| |- error: 'first(where:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
52 | .sink { _ in onDismiss() }
53 | .store(in: &self.cancellables)
/Users/admin/builder/spi-builder-workspace/Sources/ScreenNavigatorKit/ModalStack/ModalToggle.swift:52:14: error: 'sink(receiveValue:)' is only available in macOS 10.15 or newer
9 | import Combine
10 |
11 | final class ModalToggle: ObservableObject {
| `- note: add @available attribute to enclosing class
12 | // MARK: - Initializer
13 |
:
33 | // MARK: - Methods
34 |
35 | func present(
| `- note: add @available attribute to enclosing instance method
36 | in presentationStyle: PresentationStyle,
37 | _ destinationView: some View,
:
50 | destinationToggle.$isDissapeared
51 | .first { $0 }
52 | .sink { _ in onDismiss() }
| |- error: 'sink(receiveValue:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
53 | .store(in: &self.cancellables)
54 | }
/Users/admin/builder/spi-builder-workspace/Sources/ScreenNavigatorKit/ModalStack/ModalToggle.swift:53:14: error: 'store(in:)' is only available in macOS 10.15 or newer
9 | import Combine
10 |
11 | final class ModalToggle: ObservableObject {
| `- note: add @available attribute to enclosing class
12 | // MARK: - Initializer
13 |
:
33 | // MARK: - Methods
34 |
35 | func present(
| `- note: add @available attribute to enclosing instance method
36 | in presentationStyle: PresentationStyle,
37 | _ destinationView: some View,
:
51 | .first { $0 }
52 | .sink { _ in onDismiss() }
53 | .store(in: &self.cancellables)
| |- error: 'store(in:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
54 | }
55 |
/Users/admin/builder/spi-builder-workspace/Sources/ScreenNavigatorKit/ModalStack/ModalToggle.swift:48:11: warning: call to main actor-isolated instance method 'asAny()' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
33 | // MARK: - Methods
34 |
35 | func present(
| `- note: add '@MainActor' to make instance method 'present(in:_:with:onDismiss:)' part of global actor 'MainActor'
36 | in presentationStyle: PresentationStyle,
37 | _ destinationView: some View,
:
46 | self.presentedView = destinationView.modifier(
47 | ModalToggleViewModifier(toggle: destinationToggle)
48 | ).asAny()
| `- warning: call to main actor-isolated instance method 'asAny()' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
49 |
50 | destinationToggle.$isDissapeared
/Users/admin/builder/spi-builder-workspace/Sources/ScreenNavigatorKit/Internal/Helpers/View+asAny.swift:11:10: note: calls to instance method 'asAny()' from outside of its actor context are implicitly asynchronous
9 |
10 | extension View {
11 | func asAny() -> AnyView {
| `- note: calls to instance method 'asAny()' from outside of its actor context are implicitly asynchronous
12 | AnyView(self)
13 | }
/Users/admin/builder/spi-builder-workspace/Sources/ScreenNavigatorKit/ModalStack/ModalToggle.swift:63:22: error: 'first(where:)' is only available in macOS 10.15 or newer
9 | import Combine
10 |
11 | final class ModalToggle: ObservableObject {
| `- note: add @available attribute to enclosing class
12 | // MARK: - Initializer
13 |
:
54 | }
55 |
56 | func dismissPresentedView(onComplete: @escaping () -> Void = {}) {
| `- note: add @available attribute to enclosing instance method
57 | if presentedView == nil {
58 | onComplete()
:
61 | guard let self = self else { return }
62 | destinationToggle?.$isDissapeared
63 | .first { $0 }
| |- error: 'first(where:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
64 | .sink { _ in onComplete() }
65 | .store(in: &self.cancellables)
/Users/admin/builder/spi-builder-workspace/Sources/ScreenNavigatorKit/ModalStack/ModalToggle.swift:64:22: error: 'sink(receiveValue:)' is only available in macOS 10.15 or newer
9 | import Combine
10 |
11 | final class ModalToggle: ObservableObject {
| `- note: add @available attribute to enclosing class
12 | // MARK: - Initializer
13 |
:
54 | }
55 |
56 | func dismissPresentedView(onComplete: @escaping () -> Void = {}) {
| `- note: add @available attribute to enclosing instance method
57 | if presentedView == nil {
58 | onComplete()
:
62 | destinationToggle?.$isDissapeared
63 | .first { $0 }
64 | .sink { _ in onComplete() }
| |- error: 'sink(receiveValue:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
65 | .store(in: &self.cancellables)
66 |
/Users/admin/builder/spi-builder-workspace/Sources/ScreenNavigatorKit/ModalStack/ModalToggle.swift:65:22: error: 'store(in:)' is only available in macOS 10.15 or newer
9 | import Combine
10 |
11 | final class ModalToggle: ObservableObject {
| `- note: add @available attribute to enclosing class
12 | // MARK: - Initializer
13 |
:
54 | }
55 |
56 | func dismissPresentedView(onComplete: @escaping () -> Void = {}) {
| `- note: add @available attribute to enclosing instance method
57 | if presentedView == nil {
58 | onComplete()
:
63 | .first { $0 }
64 | .sink { _ in onComplete() }
65 | .store(in: &self.cancellables)
| |- error: 'store(in:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
66 |
67 | self.presentedView = nil
/Users/admin/builder/spi-builder-workspace/Sources/ScreenNavigatorKit/ModalStack/ModalToggle.swift:67:17: error: setter for 'presentedView' is only available in macOS 10.15 or newer
9 | import Combine
10 |
11 | final class ModalToggle: ObservableObject {
| `- note: add @available attribute to enclosing class
12 | // MARK: - Initializer
13 |
:
54 | }
55 |
56 | func dismissPresentedView(onComplete: @escaping () -> Void = {}) {
| `- note: add @available attribute to enclosing instance method
57 | if presentedView == nil {
58 | onComplete()
:
65 | .store(in: &self.cancellables)
66 |
67 | self.presentedView = nil
| |- error: setter for 'presentedView' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
68 | })
69 | }
/Users/admin/builder/spi-builder-workspace/Sources/ScreenNavigatorKit/ModalStack/ModalToggle.swift:82:32: error: cannot assign to property: '$toggle' is immutable
80 | }
81 | EmptyView()
82 | .sheet($toggle.presentedView.when(toggle.presentationStyle == .sheet))
| `- error: cannot assign to property: '$toggle' is immutable
83 | EmptyView()
84 | .fullScreenCover($toggle.presentedView.when(toggle.presentationStyle == .fullScreenCover))
[8/19] Compiling ScreenNavigatorKit PresentationStyle.swift
/Users/admin/builder/spi-builder-workspace/Sources/ScreenNavigatorKit/ModalStack/ModalToggle.swift:22:52: error: 'AnyView' is only available in macOS 10.15 or newer
9 | import Combine
10 |
11 | final class ModalToggle: ObservableObject {
| `- note: add @available attribute to enclosing class
12 | // MARK: - Initializer
13 |
:
20 | fileprivate(set) var presentationStyle: PresentationStyle?
21 |
22 | @Published fileprivate(set) var presentedView: AnyView?
| `- error: 'AnyView' is only available in macOS 10.15 or newer
23 |
24 | private weak var destinationToggle: ModalToggle?
/Users/admin/builder/spi-builder-workspace/Sources/ScreenNavigatorKit/ModalStack/ModalToggle.swift:22:6: error: 'Published' is only available in macOS 10.15 or newer
9 | import Combine
10 |
11 | final class ModalToggle: ObservableObject {
| `- note: add @available attribute to enclosing class
12 | // MARK: - Initializer
13 |
:
20 | fileprivate(set) var presentationStyle: PresentationStyle?
21 |
22 | @Published fileprivate(set) var presentedView: AnyView?
| `- error: 'Published' is only available in macOS 10.15 or newer
23 |
24 | private weak var destinationToggle: ModalToggle?
/Users/admin/builder/spi-builder-workspace/Sources/ScreenNavigatorKit/ModalStack/ModalToggle.swift:28:6: error: 'Published' is only available in macOS 10.15 or newer
9 | import Combine
10 |
11 | final class ModalToggle: ObservableObject {
| `- note: add @available attribute to enclosing class
12 | // MARK: - Initializer
13 |
:
26 | // MARK: - Properties
27 |
28 | @Published fileprivate(set) var isAppeared = false
| `- error: 'Published' is only available in macOS 10.15 or newer
29 | @Published fileprivate(set) var isDissapeared = false
30 |
/Users/admin/builder/spi-builder-workspace/Sources/ScreenNavigatorKit/ModalStack/ModalToggle.swift:29:6: error: 'Published' is only available in macOS 10.15 or newer
9 | import Combine
10 |
11 | final class ModalToggle: ObservableObject {
| `- note: add @available attribute to enclosing class
12 | // MARK: - Initializer
13 |
:
27 |
28 | @Published fileprivate(set) var isAppeared = false
29 | @Published fileprivate(set) var isDissapeared = false
| `- error: 'Published' is only available in macOS 10.15 or newer
30 |
31 | private var cancellables: [AnyCancellable] = []
/Users/admin/builder/spi-builder-workspace/Sources/ScreenNavigatorKit/ModalStack/ModalToggle.swift:31:32: error: 'AnyCancellable' is only available in macOS 10.15 or newer
9 | import Combine
10 |
11 | final class ModalToggle: ObservableObject {
| `- note: add @available attribute to enclosing class
12 | // MARK: - Initializer
13 |
:
29 | @Published fileprivate(set) var isDissapeared = false
30 |
31 | private var cancellables: [AnyCancellable] = []
| `- error: 'AnyCancellable' is only available in macOS 10.15 or newer
32 |
33 | // MARK: - Methods
/Users/admin/builder/spi-builder-workspace/Sources/ScreenNavigatorKit/ModalStack/ModalToggle.swift:37:33: error: 'View' is only available in macOS 10.15 or newer
9 | import Combine
10 |
11 | final class ModalToggle: ObservableObject {
| `- note: add @available attribute to enclosing class
12 | // MARK: - Initializer
13 |
:
33 | // MARK: - Methods
34 |
35 | func present(
| `- note: add @available attribute to enclosing instance method
36 | in presentationStyle: PresentationStyle,
37 | _ destinationView: some View,
| `- error: 'View' is only available in macOS 10.15 or newer
38 | with destinationToggle: ModalToggle,
39 | onDismiss: @escaping () -> Void = {}
/Users/admin/builder/spi-builder-workspace/Sources/ScreenNavigatorKit/ModalStack/ModalToggle.swift:37:33: error: 'View' is only available in macOS 10.15 or newer
9 | import Combine
10 |
11 | final class ModalToggle: ObservableObject {
| `- note: add @available attribute to enclosing class
12 | // MARK: - Initializer
13 |
:
33 | // MARK: - Methods
34 |
35 | func present(
| `- note: add @available attribute to enclosing instance method
36 | in presentationStyle: PresentationStyle,
37 | _ destinationView: some View,
| `- error: 'View' is only available in macOS 10.15 or newer
38 | with destinationToggle: ModalToggle,
39 | onDismiss: @escaping () -> Void = {}
/Users/admin/builder/spi-builder-workspace/Sources/ScreenNavigatorKit/ModalStack/ModalToggle.swift:74:6: error: 'ObservedObject' is only available in macOS 10.15 or newer
71 | }
72 |
73 | struct ModalToggleViewModifier: ViewModifier {
| `- note: add @available attribute to enclosing struct
74 | @ObservedObject var toggle: ModalToggle
| `- error: 'ObservedObject' is only available in macOS 10.15 or newer
75 |
76 | func body(content: Content) -> some View {
<unknown>:0: error: cannot convert value of type 'any KeyPath<ModalToggle, AnyView?> & Sendable' to expected argument type 'ReferenceWritableKeyPath<ModalToggle, AnyView?>'
<unknown>:0: error: cannot convert value of type 'any KeyPath<ModalToggle, Bool> & Sendable' to expected argument type 'ReferenceWritableKeyPath<ModalToggle, Bool>'
<unknown>:0: error: cannot convert value of type 'any KeyPath<ModalToggle, Bool> & Sendable' to expected argument type 'ReferenceWritableKeyPath<ModalToggle, Bool>'
/Users/admin/builder/spi-builder-workspace/Sources/ScreenNavigatorKit/ModalStack/ModalToggle.swift:76:41: error: 'View' is only available in macOS 10.15 or newer
71 | }
72 |
73 | struct ModalToggleViewModifier: ViewModifier {
| `- note: add @available attribute to enclosing struct
74 | @ObservedObject var toggle: ModalToggle
75 |
76 | 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
77 | Group {
78 | content.onDisappear {
/Users/admin/builder/spi-builder-workspace/Sources/ScreenNavigatorKit/ModalStack/ModalToggle.swift:41:24: error: 'dropFirst' is only available in macOS 10.15 or newer
9 | import Combine
10 |
11 | final class ModalToggle: ObservableObject {
| `- note: add @available attribute to enclosing class
12 | // MARK: - Initializer
13 |
:
33 | // MARK: - Methods
34 |
35 | func present(
| `- note: add @available attribute to enclosing instance method
36 | in presentationStyle: PresentationStyle,
37 | _ destinationView: some View,
:
39 | onDismiss: @escaping () -> Void = {}
40 | ) {
41 | $isDissapeared.dropFirst().assign(to: &destinationToggle.$isAppeared)
| |- error: 'dropFirst' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
42 | destinationToggle.$isDissapeared.dropFirst().assign(to: &$isAppeared)
43 |
/Users/admin/builder/spi-builder-workspace/Sources/ScreenNavigatorKit/ModalStack/ModalToggle.swift:41:36: error: 'assign(to:)' is only available in macOS 11.0 or newer
9 | import Combine
10 |
11 | final class ModalToggle: ObservableObject {
| `- note: add @available attribute to enclosing class
12 | // MARK: - Initializer
13 |
:
33 | // MARK: - Methods
34 |
35 | func present(
| `- note: add @available attribute to enclosing instance method
36 | in presentationStyle: PresentationStyle,
37 | _ destinationView: some View,
:
39 | onDismiss: @escaping () -> Void = {}
40 | ) {
41 | $isDissapeared.dropFirst().assign(to: &destinationToggle.$isAppeared)
| |- error: 'assign(to:)' is only available in macOS 11.0 or newer
| `- note: add 'if #available' version check
42 | destinationToggle.$isDissapeared.dropFirst().assign(to: &$isAppeared)
43 |
/Users/admin/builder/spi-builder-workspace/Sources/ScreenNavigatorKit/ModalStack/ModalToggle.swift:41:48: error: cannot pass as inout because setter for '$isAppeared' is only available in macOS 11.0 or newer
9 | import Combine
10 |
11 | final class ModalToggle: ObservableObject {
| `- note: add @available attribute to enclosing class
12 | // MARK: - Initializer
13 |
:
33 | // MARK: - Methods
34 |
35 | func present(
| `- note: add @available attribute to enclosing instance method
36 | in presentationStyle: PresentationStyle,
37 | _ destinationView: some View,
:
39 | onDismiss: @escaping () -> Void = {}
40 | ) {
41 | $isDissapeared.dropFirst().assign(to: &destinationToggle.$isAppeared)
| |- error: cannot pass as inout because setter for '$isAppeared' is only available in macOS 11.0 or newer
| `- note: add 'if #available' version check
42 | destinationToggle.$isDissapeared.dropFirst().assign(to: &$isAppeared)
43 |
/Users/admin/builder/spi-builder-workspace/Sources/ScreenNavigatorKit/ModalStack/ModalToggle.swift:42:42: error: 'dropFirst' is only available in macOS 10.15 or newer
9 | import Combine
10 |
11 | final class ModalToggle: ObservableObject {
| `- note: add @available attribute to enclosing class
12 | // MARK: - Initializer
13 |
:
33 | // MARK: - Methods
34 |
35 | func present(
| `- note: add @available attribute to enclosing instance method
36 | in presentationStyle: PresentationStyle,
37 | _ destinationView: some View,
:
40 | ) {
41 | $isDissapeared.dropFirst().assign(to: &destinationToggle.$isAppeared)
42 | destinationToggle.$isDissapeared.dropFirst().assign(to: &$isAppeared)
| |- error: 'dropFirst' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
43 |
44 | self.destinationToggle = destinationToggle
/Users/admin/builder/spi-builder-workspace/Sources/ScreenNavigatorKit/ModalStack/ModalToggle.swift:42:54: error: 'assign(to:)' is only available in macOS 11.0 or newer
9 | import Combine
10 |
11 | final class ModalToggle: ObservableObject {
| `- note: add @available attribute to enclosing class
12 | // MARK: - Initializer
13 |
:
33 | // MARK: - Methods
34 |
35 | func present(
| `- note: add @available attribute to enclosing instance method
36 | in presentationStyle: PresentationStyle,
37 | _ destinationView: some View,
:
40 | ) {
41 | $isDissapeared.dropFirst().assign(to: &destinationToggle.$isAppeared)
42 | destinationToggle.$isDissapeared.dropFirst().assign(to: &$isAppeared)
| |- error: 'assign(to:)' is only available in macOS 11.0 or newer
| `- note: add 'if #available' version check
43 |
44 | self.destinationToggle = destinationToggle
/Users/admin/builder/spi-builder-workspace/Sources/ScreenNavigatorKit/ModalStack/ModalToggle.swift:42:66: error: cannot pass as inout because setter for '$isAppeared' is only available in macOS 11.0 or newer
9 | import Combine
10 |
11 | final class ModalToggle: ObservableObject {
| `- note: add @available attribute to enclosing class
12 | // MARK: - Initializer
13 |
:
33 | // MARK: - Methods
34 |
35 | func present(
| `- note: add @available attribute to enclosing instance method
36 | in presentationStyle: PresentationStyle,
37 | _ destinationView: some View,
:
40 | ) {
41 | $isDissapeared.dropFirst().assign(to: &destinationToggle.$isAppeared)
42 | destinationToggle.$isDissapeared.dropFirst().assign(to: &$isAppeared)
| |- error: cannot pass as inout because setter for '$isAppeared' is only available in macOS 11.0 or newer
| `- note: add 'if #available' version check
43 |
44 | self.destinationToggle = destinationToggle
/Users/admin/builder/spi-builder-workspace/Sources/ScreenNavigatorKit/ModalStack/ModalToggle.swift:46:9: error: setter for 'presentedView' is only available in macOS 10.15 or newer
9 | import Combine
10 |
11 | final class ModalToggle: ObservableObject {
| `- note: add @available attribute to enclosing class
12 | // MARK: - Initializer
13 |
:
33 | // MARK: - Methods
34 |
35 | func present(
| `- note: add @available attribute to enclosing instance method
36 | in presentationStyle: PresentationStyle,
37 | _ destinationView: some View,
:
44 | self.destinationToggle = destinationToggle
45 | self.presentationStyle = presentationStyle
46 | self.presentedView = destinationView.modifier(
| |- error: setter for 'presentedView' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
47 | ModalToggleViewModifier(toggle: destinationToggle)
48 | ).asAny()
/Users/admin/builder/spi-builder-workspace/Sources/ScreenNavigatorKit/ModalStack/ModalToggle.swift:46:46: error: 'modifier' is only available in macOS 10.15 or newer
9 | import Combine
10 |
11 | final class ModalToggle: ObservableObject {
| `- note: add @available attribute to enclosing class
12 | // MARK: - Initializer
13 |
:
33 | // MARK: - Methods
34 |
35 | func present(
| `- note: add @available attribute to enclosing instance method
36 | in presentationStyle: PresentationStyle,
37 | _ destinationView: some View,
:
44 | self.destinationToggle = destinationToggle
45 | self.presentationStyle = presentationStyle
46 | self.presentedView = destinationView.modifier(
| |- error: 'modifier' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
47 | ModalToggleViewModifier(toggle: destinationToggle)
48 | ).asAny()
/Users/admin/builder/spi-builder-workspace/Sources/ScreenNavigatorKit/ModalStack/ModalToggle.swift:48:11: 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
9 | import Combine
10 |
11 | final class ModalToggle: ObservableObject {
| `- note: add @available attribute to enclosing class
12 | // MARK: - Initializer
13 |
:
33 | // MARK: - Methods
34 |
35 | func present(
| `- note: add @available attribute to enclosing instance method
36 | in presentationStyle: PresentationStyle,
37 | _ destinationView: some View,
:
46 | self.presentedView = destinationView.modifier(
47 | ModalToggleViewModifier(toggle: destinationToggle)
48 | ).asAny()
| |- 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
49 |
50 | destinationToggle.$isDissapeared
/Users/admin/builder/spi-builder-workspace/Sources/ScreenNavigatorKit/ModalStack/ModalToggle.swift:51:14: error: 'first(where:)' is only available in macOS 10.15 or newer
9 | import Combine
10 |
11 | final class ModalToggle: ObservableObject {
| `- note: add @available attribute to enclosing class
12 | // MARK: - Initializer
13 |
:
33 | // MARK: - Methods
34 |
35 | func present(
| `- note: add @available attribute to enclosing instance method
36 | in presentationStyle: PresentationStyle,
37 | _ destinationView: some View,
:
49 |
50 | destinationToggle.$isDissapeared
51 | .first { $0 }
| |- error: 'first(where:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
52 | .sink { _ in onDismiss() }
53 | .store(in: &self.cancellables)
/Users/admin/builder/spi-builder-workspace/Sources/ScreenNavigatorKit/ModalStack/ModalToggle.swift:52:14: error: 'sink(receiveValue:)' is only available in macOS 10.15 or newer
9 | import Combine
10 |
11 | final class ModalToggle: ObservableObject {
| `- note: add @available attribute to enclosing class
12 | // MARK: - Initializer
13 |
:
33 | // MARK: - Methods
34 |
35 | func present(
| `- note: add @available attribute to enclosing instance method
36 | in presentationStyle: PresentationStyle,
37 | _ destinationView: some View,
:
50 | destinationToggle.$isDissapeared
51 | .first { $0 }
52 | .sink { _ in onDismiss() }
| |- error: 'sink(receiveValue:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
53 | .store(in: &self.cancellables)
54 | }
/Users/admin/builder/spi-builder-workspace/Sources/ScreenNavigatorKit/ModalStack/ModalToggle.swift:53:14: error: 'store(in:)' is only available in macOS 10.15 or newer
9 | import Combine
10 |
11 | final class ModalToggle: ObservableObject {
| `- note: add @available attribute to enclosing class
12 | // MARK: - Initializer
13 |
:
33 | // MARK: - Methods
34 |
35 | func present(
| `- note: add @available attribute to enclosing instance method
36 | in presentationStyle: PresentationStyle,
37 | _ destinationView: some View,
:
51 | .first { $0 }
52 | .sink { _ in onDismiss() }
53 | .store(in: &self.cancellables)
| |- error: 'store(in:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
54 | }
55 |
/Users/admin/builder/spi-builder-workspace/Sources/ScreenNavigatorKit/ModalStack/ModalToggle.swift:48:11: warning: call to main actor-isolated instance method 'asAny()' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
33 | // MARK: - Methods
34 |
35 | func present(
| `- note: add '@MainActor' to make instance method 'present(in:_:with:onDismiss:)' part of global actor 'MainActor'
36 | in presentationStyle: PresentationStyle,
37 | _ destinationView: some View,
:
46 | self.presentedView = destinationView.modifier(
47 | ModalToggleViewModifier(toggle: destinationToggle)
48 | ).asAny()
| `- warning: call to main actor-isolated instance method 'asAny()' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
49 |
50 | destinationToggle.$isDissapeared
/Users/admin/builder/spi-builder-workspace/Sources/ScreenNavigatorKit/Internal/Helpers/View+asAny.swift:11:10: note: calls to instance method 'asAny()' from outside of its actor context are implicitly asynchronous
9 |
10 | extension View {
11 | func asAny() -> AnyView {
| `- note: calls to instance method 'asAny()' from outside of its actor context are implicitly asynchronous
12 | AnyView(self)
13 | }
/Users/admin/builder/spi-builder-workspace/Sources/ScreenNavigatorKit/ModalStack/ModalToggle.swift:63:22: error: 'first(where:)' is only available in macOS 10.15 or newer
9 | import Combine
10 |
11 | final class ModalToggle: ObservableObject {
| `- note: add @available attribute to enclosing class
12 | // MARK: - Initializer
13 |
:
54 | }
55 |
56 | func dismissPresentedView(onComplete: @escaping () -> Void = {}) {
| `- note: add @available attribute to enclosing instance method
57 | if presentedView == nil {
58 | onComplete()
:
61 | guard let self = self else { return }
62 | destinationToggle?.$isDissapeared
63 | .first { $0 }
| |- error: 'first(where:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
64 | .sink { _ in onComplete() }
65 | .store(in: &self.cancellables)
/Users/admin/builder/spi-builder-workspace/Sources/ScreenNavigatorKit/ModalStack/ModalToggle.swift:64:22: error: 'sink(receiveValue:)' is only available in macOS 10.15 or newer
9 | import Combine
10 |
11 | final class ModalToggle: ObservableObject {
| `- note: add @available attribute to enclosing class
12 | // MARK: - Initializer
13 |
:
54 | }
55 |
56 | func dismissPresentedView(onComplete: @escaping () -> Void = {}) {
| `- note: add @available attribute to enclosing instance method
57 | if presentedView == nil {
58 | onComplete()
:
62 | destinationToggle?.$isDissapeared
63 | .first { $0 }
64 | .sink { _ in onComplete() }
| |- error: 'sink(receiveValue:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
65 | .store(in: &self.cancellables)
66 |
/Users/admin/builder/spi-builder-workspace/Sources/ScreenNavigatorKit/ModalStack/ModalToggle.swift:65:22: error: 'store(in:)' is only available in macOS 10.15 or newer
9 | import Combine
10 |
11 | final class ModalToggle: ObservableObject {
| `- note: add @available attribute to enclosing class
12 | // MARK: - Initializer
13 |
:
54 | }
55 |
56 | func dismissPresentedView(onComplete: @escaping () -> Void = {}) {
| `- note: add @available attribute to enclosing instance method
57 | if presentedView == nil {
58 | onComplete()
:
63 | .first { $0 }
64 | .sink { _ in onComplete() }
65 | .store(in: &self.cancellables)
| |- error: 'store(in:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
66 |
67 | self.presentedView = nil
/Users/admin/builder/spi-builder-workspace/Sources/ScreenNavigatorKit/ModalStack/ModalToggle.swift:67:17: error: setter for 'presentedView' is only available in macOS 10.15 or newer
9 | import Combine
10 |
11 | final class ModalToggle: ObservableObject {
| `- note: add @available attribute to enclosing class
12 | // MARK: - Initializer
13 |
:
54 | }
55 |
56 | func dismissPresentedView(onComplete: @escaping () -> Void = {}) {
| `- note: add @available attribute to enclosing instance method
57 | if presentedView == nil {
58 | onComplete()
:
65 | .store(in: &self.cancellables)
66 |
67 | self.presentedView = nil
| |- error: setter for 'presentedView' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
68 | })
69 | }
/Users/admin/builder/spi-builder-workspace/Sources/ScreenNavigatorKit/ModalStack/ModalToggle.swift:82:32: error: cannot assign to property: '$toggle' is immutable
80 | }
81 | EmptyView()
82 | .sheet($toggle.presentedView.when(toggle.presentationStyle == .sheet))
| `- error: cannot assign to property: '$toggle' is immutable
83 | EmptyView()
84 | .fullScreenCover($toggle.presentedView.when(toggle.presentationStyle == .fullScreenCover))
[9/19] Compiling ScreenNavigatorKit NavigationStackController.swift
/Users/admin/builder/spi-builder-workspace/Sources/ScreenNavigatorKit/NavigationStack/NavigationStackController.swift:32:33: error: 'View' is only available in macOS 10.15 or newer
13 | /// - Should be binded in specific NavigationStackView
14 | /// - Can not be empty. It always has a root view even if it's a EmptyView
15 | public final class NavigationStackController: ObservableObject {
| `- note: add @available attribute to enclosing class
16 | // MARK: - Initializer
17 |
:
30 | // MARK: - Root View body
31 |
32 | func rootBody(content: some View) -> some View {
| | `- error: 'View' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing instance method
33 | content.modifier(
34 | PushToggleViewModifier(toggle: toggles[0])
/Users/admin/builder/spi-builder-workspace/Sources/ScreenNavigatorKit/NavigationStack/NavigationStackController.swift:32:33: error: 'View' is only available in macOS 10.15 or newer
13 | /// - Should be binded in specific NavigationStackView
14 | /// - Can not be empty. It always has a root view even if it's a EmptyView
15 | public final class NavigationStackController: ObservableObject {
| `- note: add @available attribute to enclosing class
16 | // MARK: - Initializer
17 |
:
30 | // MARK: - Root View body
31 |
32 | func rootBody(content: some View) -> some View {
| | `- error: 'View' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing instance method
33 | content.modifier(
34 | PushToggleViewModifier(toggle: toggles[0])
/Users/admin/builder/spi-builder-workspace/Sources/ScreenNavigatorKit/NavigationStack/NavigationStackController.swift:32:47: error: 'View' is only available in macOS 10.15 or newer
13 | /// - Should be binded in specific NavigationStackView
14 | /// - Can not be empty. It always has a root view even if it's a EmptyView
15 | public final class NavigationStackController: ObservableObject {
| `- note: add @available attribute to enclosing class
16 | // MARK: - Initializer
17 |
:
30 | // MARK: - Root View body
31 |
32 | func rootBody(content: some View) -> some View {
| | `- error: 'View' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing instance method
33 | content.modifier(
34 | PushToggleViewModifier(toggle: toggles[0])
/Users/admin/builder/spi-builder-workspace/Sources/ScreenNavigatorKit/NavigationStack/NavigationStackController.swift:41:42: error: 'View' is only available in macOS 10.15 or newer
13 | /// - Should be binded in specific NavigationStackView
14 | /// - Can not be empty. It always has a root view even if it's a EmptyView
15 | public final class NavigationStackController: ObservableObject {
| `- note: add @available attribute to enclosing class
16 | // MARK: - Initializer
17 |
:
39 |
40 | /// Push view in navigation stack view.
41 | public func push(_ destination: some View) {
| | `- error: 'View' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing instance method
42 | push(
43 | hashTag: .none,
/Users/admin/builder/spi-builder-workspace/Sources/ScreenNavigatorKit/NavigationStack/NavigationStackController.swift:41:42: error: 'View' is only available in macOS 10.15 or newer
13 | /// - Should be binded in specific NavigationStackView
14 | /// - Can not be empty. It always has a root view even if it's a EmptyView
15 | public final class NavigationStackController: ObservableObject {
| `- note: add @available attribute to enclosing class
16 | // MARK: - Initializer
17 |
:
39 |
40 | /// Push view in navigation stack view.
41 | public func push(_ destination: some View) {
| | `- error: 'View' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing instance method
42 | push(
43 | hashTag: .none,
/Users/admin/builder/spi-builder-workspace/Sources/ScreenNavigatorKit/NavigationStack/NavigationStackController.swift:53:29: error: 'View' is only available in macOS 10.15 or newer
13 | /// - Should be binded in specific NavigationStackView
14 | /// - Can not be empty. It always has a root view even if it's a EmptyView
15 | public final class NavigationStackController: ObservableObject {
| `- note: add @available attribute to enclosing class
16 | // MARK: - Initializer
17 |
:
49 | ///
50 | /// The tag will allow to pop(to:) or pop(from:) exactly to this view.
51 | public func push(
| `- note: add @available attribute to enclosing instance method
52 | tag: some Hashable,
53 | _ destination: some View
| `- error: 'View' is only available in macOS 10.15 or newer
54 | ) {
55 | push(
/Users/admin/builder/spi-builder-workspace/Sources/ScreenNavigatorKit/NavigationStack/NavigationStackController.swift:53:29: error: 'View' is only available in macOS 10.15 or newer
13 | /// - Should be binded in specific NavigationStackView
14 | /// - Can not be empty. It always has a root view even if it's a EmptyView
15 | public final class NavigationStackController: ObservableObject {
| `- note: add @available attribute to enclosing class
16 | // MARK: - Initializer
17 |
:
49 | ///
50 | /// The tag will allow to pop(to:) or pop(from:) exactly to this view.
51 | public func push(
| `- note: add @available attribute to enclosing instance method
52 | tag: some Hashable,
53 | _ destination: some View
| `- error: 'View' is only available in macOS 10.15 or newer
54 | ) {
55 | push(
/Users/admin/builder/spi-builder-workspace/Sources/ScreenNavigatorKit/NavigationStack/NavigationStackController.swift:63:38: error: 'View' is only available in macOS 10.15 or newer
13 | /// - Should be binded in specific NavigationStackView
14 | /// - Can not be empty. It always has a root view even if it's a EmptyView
15 | public final class NavigationStackController: ObservableObject {
| `- note: add @available attribute to enclosing class
16 | // MARK: - Initializer
17 |
:
59 | }
60 |
61 | private func push(
| `- note: add @available attribute to enclosing instance method
62 | hashTag: AnyHashable?,
63 | destination pushedView: some View
| `- error: 'View' is only available in macOS 10.15 or newer
64 | ) {
65 | let currentToggle = toggles.last!
/Users/admin/builder/spi-builder-workspace/Sources/ScreenNavigatorKit/NavigationStack/NavigationStackController.swift:63:38: error: 'View' is only available in macOS 10.15 or newer
13 | /// - Should be binded in specific NavigationStackView
14 | /// - Can not be empty. It always has a root view even if it's a EmptyView
15 | public final class NavigationStackController: ObservableObject {
| `- note: add @available attribute to enclosing class
16 | // MARK: - Initializer
17 |
:
59 | }
60 |
61 | private func push(
| `- note: add @available attribute to enclosing instance method
62 | hashTag: AnyHashable?,
63 | destination pushedView: some View
| `- error: 'View' is only available in macOS 10.15 or newer
64 | ) {
65 | let currentToggle = toggles.last!
/Users/admin/builder/spi-builder-workspace/Sources/ScreenNavigatorKit/NavigationStack/NavigationStackController.swift:33:17: 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
13 | /// - Should be binded in specific NavigationStackView
14 | /// - Can not be empty. It always has a root view even if it's a EmptyView
15 | public final class NavigationStackController: ObservableObject {
| `- note: add @available attribute to enclosing class
16 | // MARK: - Initializer
17 |
:
30 | // MARK: - Root View body
31 |
32 | func rootBody(content: some View) -> some View {
| `- note: add @available attribute to enclosing instance method
33 | content.modifier(
| |- 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
34 | PushToggleViewModifier(toggle: toggles[0])
35 | )
/Users/admin/builder/spi-builder-workspace/Sources/ScreenNavigatorKit/NavigationStack/NavigationStackController.swift:33:17: error: 'modifier' is only available in macOS 10.15 or newer
13 | /// - Should be binded in specific NavigationStackView
14 | /// - Can not be empty. It always has a root view even if it's a EmptyView
15 | public final class NavigationStackController: ObservableObject {
| `- note: add @available attribute to enclosing class
16 | // MARK: - Initializer
17 |
:
30 | // MARK: - Root View body
31 |
32 | func rootBody(content: some View) -> some View {
| `- note: add @available attribute to enclosing instance method
33 | content.modifier(
| |- error: 'modifier' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
34 | PushToggleViewModifier(toggle: toggles[0])
35 | )
[10/19] Compiling ScreenNavigatorKit View+fullScreenCover.swift
/Users/admin/builder/spi-builder-workspace/Sources/ScreenNavigatorKit/ModalStack/View+fullScreenCover.swift:12:38: error: 'View' is only available in macOS 10.15 or newer
8 | import SwiftUI
9 |
10 | extension View {
| `- note: add @available attribute to enclosing extension
11 | func fullScreenCover(
| `- note: add @available attribute to enclosing instance method
12 | _ destination: Binding<(some View)?>
| `- error: 'View' is only available in macOS 10.15 or newer
13 | ) -> some View {
14 | fullScreenCover(
/Users/admin/builder/spi-builder-workspace/Sources/ScreenNavigatorKit/ModalStack/View+fullScreenCover.swift:12:24: error: 'Binding' is only available in macOS 10.15 or newer
8 | import SwiftUI
9 |
10 | extension View {
| `- note: add @available attribute to enclosing extension
11 | func fullScreenCover(
| `- note: add @available attribute to enclosing instance method
12 | _ destination: Binding<(some View)?>
| `- error: 'Binding' is only available in macOS 10.15 or newer
13 | ) -> some View {
14 | fullScreenCover(
/Users/admin/builder/spi-builder-workspace/Sources/ScreenNavigatorKit/ModalStack/View+fullScreenCover.swift:13:15: error: 'View' is only available in macOS 10.15 or newer
8 | import SwiftUI
9 |
10 | extension View {
| `- note: add @available attribute to enclosing extension
11 | func fullScreenCover(
| `- note: add @available attribute to enclosing instance method
12 | _ destination: Binding<(some View)?>
13 | ) -> some View {
| `- error: 'View' is only available in macOS 10.15 or newer
14 | fullScreenCover(
15 | isPresented: destination.isNotNil().removeDublicates(),
/Users/admin/builder/spi-builder-workspace/Sources/ScreenNavigatorKit/ModalStack/View+fullScreenCover.swift:10:11: error: 'View' is only available in macOS 10.15 or newer
8 | import SwiftUI
9 |
10 | extension View {
| | `- error: 'View' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing extension
11 | func fullScreenCover(
12 | _ destination: Binding<(some View)?>
/Users/admin/builder/spi-builder-workspace/Sources/ScreenNavigatorKit/ModalStack/View+fullScreenCover.swift:14:9: error: 'fullScreenCover(isPresented:onDismiss:content:)' is unavailable in macOS
12 | _ destination: Binding<(some View)?>
13 | ) -> some View {
14 | fullScreenCover(
| `- error: 'fullScreenCover(isPresented:onDismiss:content:)' is unavailable in macOS
15 | isPresented: destination.isNotNil().removeDublicates(),
16 | content: { destination.wrappedValue }
SwiftUI.View:9:29: note: 'fullScreenCover(isPresented:onDismiss:content:)' has been explicitly marked unavailable here
7 | @MainActor @preconcurrency public func _cover<Item, Content>(item: Binding<Item?>, onDismiss: (() -> Void)? = nil, @ViewBuilder content: @escaping (Item) -> Content) -> some View where Item : Identifiable, Content : View
8 |
9 | nonisolated public func fullScreenCover<Content>(isPresented: Binding<Bool>, onDismiss: (() -> Void)? = nil, @ViewBuilder content: @escaping () -> Content) -> some View where Content : View
| `- note: 'fullScreenCover(isPresented:onDismiss:content:)' has been explicitly marked unavailable here
10 |
11 | @available(*, deprecated, renamed: "fullScreenCover(isPresented:onDismiss:content:)")
/Users/admin/builder/spi-builder-workspace/Sources/ScreenNavigatorKit/ModalStack/View+fullScreenCover.swift:16:24: warning: conformance of 'Optional<Wrapped>' to 'View' is only available in macOS 10.15 or newer; this is an error in the Swift 6 language mode
8 | import SwiftUI
9 |
10 | extension View {
| `- note: add @available attribute to enclosing extension
11 | func fullScreenCover(
| `- note: add @available attribute to enclosing instance method
12 | _ destination: Binding<(some View)?>
13 | ) -> some View {
14 | fullScreenCover(
15 | isPresented: destination.isNotNil().removeDublicates(),
16 | content: { destination.wrappedValue }
| |- warning: conformance of 'Optional<Wrapped>' to 'View' is only available in macOS 10.15 or newer; this is an error in the Swift 6 language mode
| `- note: add 'if #available' version check
17 | )
18 | }
/Users/admin/builder/spi-builder-workspace/Sources/ScreenNavigatorKit/ModalStack/View+fullScreenCover.swift:16:22: warning: conformance of 'Optional<Wrapped>' to 'View' is only available in macOS 10.15 or newer; this is an error in the Swift 6 language mode
8 | import SwiftUI
9 |
10 | extension View {
| `- note: add @available attribute to enclosing extension
11 | func fullScreenCover(
| `- note: add @available attribute to enclosing instance method
12 | _ destination: Binding<(some View)?>
13 | ) -> some View {
14 | fullScreenCover(
15 | isPresented: destination.isNotNil().removeDublicates(),
16 | content: { destination.wrappedValue }
| |- warning: conformance of 'Optional<Wrapped>' to 'View' is only available in macOS 10.15 or newer; this is an error in the Swift 6 language mode
| `- note: add 'if #available' version check
17 | )
18 | }
/Users/admin/builder/spi-builder-workspace/Sources/ScreenNavigatorKit/ModalStack/View+sheet.swift:12:38: error: 'View' is only available in macOS 10.15 or newer
8 | import SwiftUI
9 |
10 | extension View {
| `- note: add @available attribute to enclosing extension
11 | func sheet(
| `- note: add @available attribute to enclosing instance method
12 | _ destination: Binding<(some View)?>
| `- error: 'View' is only available in macOS 10.15 or newer
13 | ) -> some View {
14 | sheet(
/Users/admin/builder/spi-builder-workspace/Sources/ScreenNavigatorKit/ModalStack/View+sheet.swift:12:24: error: 'Binding' is only available in macOS 10.15 or newer
8 | import SwiftUI
9 |
10 | extension View {
| `- note: add @available attribute to enclosing extension
11 | func sheet(
| `- note: add @available attribute to enclosing instance method
12 | _ destination: Binding<(some View)?>
| `- error: 'Binding' is only available in macOS 10.15 or newer
13 | ) -> some View {
14 | sheet(
/Users/admin/builder/spi-builder-workspace/Sources/ScreenNavigatorKit/ModalStack/View+sheet.swift:13:15: error: 'View' is only available in macOS 10.15 or newer
8 | import SwiftUI
9 |
10 | extension View {
| `- note: add @available attribute to enclosing extension
11 | func sheet(
| `- note: add @available attribute to enclosing instance method
12 | _ destination: Binding<(some View)?>
13 | ) -> some View {
| `- error: 'View' is only available in macOS 10.15 or newer
14 | sheet(
15 | isPresented: destination.isNotNil().removeDublicates(),
/Users/admin/builder/spi-builder-workspace/Sources/ScreenNavigatorKit/ModalStack/View+sheet.swift:10:11: error: 'View' is only available in macOS 10.15 or newer
8 | import SwiftUI
9 |
10 | extension View {
| | `- error: 'View' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing extension
11 | func sheet(
12 | _ destination: Binding<(some View)?>
/Users/admin/builder/spi-builder-workspace/Sources/ScreenNavigatorKit/ModalStack/View+sheet.swift:14:9: error: 'sheet(isPresented:onDismiss:content:)' is only available in macOS 10.15 or newer
8 | import SwiftUI
9 |
10 | extension View {
| `- note: add @available attribute to enclosing extension
11 | func sheet(
| `- note: add @available attribute to enclosing instance method
12 | _ destination: Binding<(some View)?>
13 | ) -> some View {
14 | sheet(
| |- error: 'sheet(isPresented:onDismiss:content:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
15 | isPresented: destination.isNotNil().removeDublicates(),
16 | content: { destination.wrappedValue }
/Users/admin/builder/spi-builder-workspace/Sources/ScreenNavigatorKit/ModalStack/View+sheet.swift:16:24: warning: conformance of 'Optional<Wrapped>' to 'View' is only available in macOS 10.15 or newer; this is an error in the Swift 6 language mode
8 | import SwiftUI
9 |
10 | extension View {
| `- note: add @available attribute to enclosing extension
11 | func sheet(
| `- note: add @available attribute to enclosing instance method
12 | _ destination: Binding<(some View)?>
13 | ) -> some View {
14 | sheet(
15 | isPresented: destination.isNotNil().removeDublicates(),
16 | content: { destination.wrappedValue }
| |- warning: conformance of 'Optional<Wrapped>' to 'View' is only available in macOS 10.15 or newer; this is an error in the Swift 6 language mode
| `- note: add 'if #available' version check
17 | )
18 | }
/Users/admin/builder/spi-builder-workspace/Sources/ScreenNavigatorKit/ModalStack/View+sheet.swift:16:22: warning: conformance of 'Optional<Wrapped>' to 'View' is only available in macOS 10.15 or newer; this is an error in the Swift 6 language mode
8 | import SwiftUI
9 |
10 | extension View {
| `- note: add @available attribute to enclosing extension
11 | func sheet(
| `- note: add @available attribute to enclosing instance method
12 | _ destination: Binding<(some View)?>
13 | ) -> some View {
14 | sheet(
15 | isPresented: destination.isNotNil().removeDublicates(),
16 | content: { destination.wrappedValue }
| |- warning: conformance of 'Optional<Wrapped>' to 'View' is only available in macOS 10.15 or newer; this is an error in the Swift 6 language mode
| `- note: add 'if #available' version check
17 | )
18 | }
[11/19] Compiling ScreenNavigatorKit View+sheet.swift
/Users/admin/builder/spi-builder-workspace/Sources/ScreenNavigatorKit/ModalStack/View+fullScreenCover.swift:12:38: error: 'View' is only available in macOS 10.15 or newer
8 | import SwiftUI
9 |
10 | extension View {
| `- note: add @available attribute to enclosing extension
11 | func fullScreenCover(
| `- note: add @available attribute to enclosing instance method
12 | _ destination: Binding<(some View)?>
| `- error: 'View' is only available in macOS 10.15 or newer
13 | ) -> some View {
14 | fullScreenCover(
/Users/admin/builder/spi-builder-workspace/Sources/ScreenNavigatorKit/ModalStack/View+fullScreenCover.swift:12:24: error: 'Binding' is only available in macOS 10.15 or newer
8 | import SwiftUI
9 |
10 | extension View {
| `- note: add @available attribute to enclosing extension
11 | func fullScreenCover(
| `- note: add @available attribute to enclosing instance method
12 | _ destination: Binding<(some View)?>
| `- error: 'Binding' is only available in macOS 10.15 or newer
13 | ) -> some View {
14 | fullScreenCover(
/Users/admin/builder/spi-builder-workspace/Sources/ScreenNavigatorKit/ModalStack/View+fullScreenCover.swift:13:15: error: 'View' is only available in macOS 10.15 or newer
8 | import SwiftUI
9 |
10 | extension View {
| `- note: add @available attribute to enclosing extension
11 | func fullScreenCover(
| `- note: add @available attribute to enclosing instance method
12 | _ destination: Binding<(some View)?>
13 | ) -> some View {
| `- error: 'View' is only available in macOS 10.15 or newer
14 | fullScreenCover(
15 | isPresented: destination.isNotNil().removeDublicates(),
/Users/admin/builder/spi-builder-workspace/Sources/ScreenNavigatorKit/ModalStack/View+fullScreenCover.swift:10:11: error: 'View' is only available in macOS 10.15 or newer
8 | import SwiftUI
9 |
10 | extension View {
| | `- error: 'View' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing extension
11 | func fullScreenCover(
12 | _ destination: Binding<(some View)?>
/Users/admin/builder/spi-builder-workspace/Sources/ScreenNavigatorKit/ModalStack/View+fullScreenCover.swift:14:9: error: 'fullScreenCover(isPresented:onDismiss:content:)' is unavailable in macOS
12 | _ destination: Binding<(some View)?>
13 | ) -> some View {
14 | fullScreenCover(
| `- error: 'fullScreenCover(isPresented:onDismiss:content:)' is unavailable in macOS
15 | isPresented: destination.isNotNil().removeDublicates(),
16 | content: { destination.wrappedValue }
SwiftUI.View:9:29: note: 'fullScreenCover(isPresented:onDismiss:content:)' has been explicitly marked unavailable here
7 | @MainActor @preconcurrency public func _cover<Item, Content>(item: Binding<Item?>, onDismiss: (() -> Void)? = nil, @ViewBuilder content: @escaping (Item) -> Content) -> some View where Item : Identifiable, Content : View
8 |
9 | nonisolated public func fullScreenCover<Content>(isPresented: Binding<Bool>, onDismiss: (() -> Void)? = nil, @ViewBuilder content: @escaping () -> Content) -> some View where Content : View
| `- note: 'fullScreenCover(isPresented:onDismiss:content:)' has been explicitly marked unavailable here
10 |
11 | @available(*, deprecated, renamed: "fullScreenCover(isPresented:onDismiss:content:)")
/Users/admin/builder/spi-builder-workspace/Sources/ScreenNavigatorKit/ModalStack/View+fullScreenCover.swift:16:24: warning: conformance of 'Optional<Wrapped>' to 'View' is only available in macOS 10.15 or newer; this is an error in the Swift 6 language mode
8 | import SwiftUI
9 |
10 | extension View {
| `- note: add @available attribute to enclosing extension
11 | func fullScreenCover(
| `- note: add @available attribute to enclosing instance method
12 | _ destination: Binding<(some View)?>
13 | ) -> some View {
14 | fullScreenCover(
15 | isPresented: destination.isNotNil().removeDublicates(),
16 | content: { destination.wrappedValue }
| |- warning: conformance of 'Optional<Wrapped>' to 'View' is only available in macOS 10.15 or newer; this is an error in the Swift 6 language mode
| `- note: add 'if #available' version check
17 | )
18 | }
/Users/admin/builder/spi-builder-workspace/Sources/ScreenNavigatorKit/ModalStack/View+fullScreenCover.swift:16:22: warning: conformance of 'Optional<Wrapped>' to 'View' is only available in macOS 10.15 or newer; this is an error in the Swift 6 language mode
8 | import SwiftUI
9 |
10 | extension View {
| `- note: add @available attribute to enclosing extension
11 | func fullScreenCover(
| `- note: add @available attribute to enclosing instance method
12 | _ destination: Binding<(some View)?>
13 | ) -> some View {
14 | fullScreenCover(
15 | isPresented: destination.isNotNil().removeDublicates(),
16 | content: { destination.wrappedValue }
| |- warning: conformance of 'Optional<Wrapped>' to 'View' is only available in macOS 10.15 or newer; this is an error in the Swift 6 language mode
| `- note: add 'if #available' version check
17 | )
18 | }
/Users/admin/builder/spi-builder-workspace/Sources/ScreenNavigatorKit/ModalStack/View+sheet.swift:12:38: error: 'View' is only available in macOS 10.15 or newer
8 | import SwiftUI
9 |
10 | extension View {
| `- note: add @available attribute to enclosing extension
11 | func sheet(
| `- note: add @available attribute to enclosing instance method
12 | _ destination: Binding<(some View)?>
| `- error: 'View' is only available in macOS 10.15 or newer
13 | ) -> some View {
14 | sheet(
/Users/admin/builder/spi-builder-workspace/Sources/ScreenNavigatorKit/ModalStack/View+sheet.swift:12:24: error: 'Binding' is only available in macOS 10.15 or newer
8 | import SwiftUI
9 |
10 | extension View {
| `- note: add @available attribute to enclosing extension
11 | func sheet(
| `- note: add @available attribute to enclosing instance method
12 | _ destination: Binding<(some View)?>
| `- error: 'Binding' is only available in macOS 10.15 or newer
13 | ) -> some View {
14 | sheet(
/Users/admin/builder/spi-builder-workspace/Sources/ScreenNavigatorKit/ModalStack/View+sheet.swift:13:15: error: 'View' is only available in macOS 10.15 or newer
8 | import SwiftUI
9 |
10 | extension View {
| `- note: add @available attribute to enclosing extension
11 | func sheet(
| `- note: add @available attribute to enclosing instance method
12 | _ destination: Binding<(some View)?>
13 | ) -> some View {
| `- error: 'View' is only available in macOS 10.15 or newer
14 | sheet(
15 | isPresented: destination.isNotNil().removeDublicates(),
/Users/admin/builder/spi-builder-workspace/Sources/ScreenNavigatorKit/ModalStack/View+sheet.swift:10:11: error: 'View' is only available in macOS 10.15 or newer
8 | import SwiftUI
9 |
10 | extension View {
| | `- error: 'View' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing extension
11 | func sheet(
12 | _ destination: Binding<(some View)?>
/Users/admin/builder/spi-builder-workspace/Sources/ScreenNavigatorKit/ModalStack/View+sheet.swift:14:9: error: 'sheet(isPresented:onDismiss:content:)' is only available in macOS 10.15 or newer
8 | import SwiftUI
9 |
10 | extension View {
| `- note: add @available attribute to enclosing extension
11 | func sheet(
| `- note: add @available attribute to enclosing instance method
12 | _ destination: Binding<(some View)?>
13 | ) -> some View {
14 | sheet(
| |- error: 'sheet(isPresented:onDismiss:content:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
15 | isPresented: destination.isNotNil().removeDublicates(),
16 | content: { destination.wrappedValue }
/Users/admin/builder/spi-builder-workspace/Sources/ScreenNavigatorKit/ModalStack/View+sheet.swift:16:24: warning: conformance of 'Optional<Wrapped>' to 'View' is only available in macOS 10.15 or newer; this is an error in the Swift 6 language mode
8 | import SwiftUI
9 |
10 | extension View {
| `- note: add @available attribute to enclosing extension
11 | func sheet(
| `- note: add @available attribute to enclosing instance method
12 | _ destination: Binding<(some View)?>
13 | ) -> some View {
14 | sheet(
15 | isPresented: destination.isNotNil().removeDublicates(),
16 | content: { destination.wrappedValue }
| |- warning: conformance of 'Optional<Wrapped>' to 'View' is only available in macOS 10.15 or newer; this is an error in the Swift 6 language mode
| `- note: add 'if #available' version check
17 | )
18 | }
/Users/admin/builder/spi-builder-workspace/Sources/ScreenNavigatorKit/ModalStack/View+sheet.swift:16:22: warning: conformance of 'Optional<Wrapped>' to 'View' is only available in macOS 10.15 or newer; this is an error in the Swift 6 language mode
8 | import SwiftUI
9 |
10 | extension View {
| `- note: add @available attribute to enclosing extension
11 | func sheet(
| `- note: add @available attribute to enclosing instance method
12 | _ destination: Binding<(some View)?>
13 | ) -> some View {
14 | sheet(
15 | isPresented: destination.isNotNil().removeDublicates(),
16 | content: { destination.wrappedValue }
| |- warning: conformance of 'Optional<Wrapped>' to 'View' is only available in macOS 10.15 or newer; this is an error in the Swift 6 language mode
| `- note: add 'if #available' version check
17 | )
18 | }
[12/19] Compiling ScreenNavigatorKit NavigationStackView.swift
/Users/admin/builder/spi-builder-workspace/Sources/ScreenNavigatorKit/NavigationStack/NavigationStackView.swift:15:10: error: 'ViewBuilder' is only available in macOS 10.15 or newer
10 | /// Under-the-hood it's a NavigationView binded to NavigationStackController state object
11 | /// that provides (as environment object) tools to change navigation stack (i.e. push/pop) in child views.
12 | public struct NavigationStackView<Content: View>: View {
| `- note: add @available attribute to enclosing generic struct
13 | public init(
| `- note: add @available attribute to enclosing initializer
14 | _ controller: NavigationStackController,
15 | @ViewBuilder content: () -> Content
| `- error: 'ViewBuilder' is only available in macOS 10.15 or newer
16 | ) {
17 | self.controller = controller
/Users/admin/builder/spi-builder-workspace/Sources/ScreenNavigatorKit/NavigationStack/NavigationStackView.swift:21:6: error: 'ObservedObject' is only available in macOS 10.15 or newer
10 | /// Under-the-hood it's a NavigationView binded to NavigationStackController state object
11 | /// that provides (as environment object) tools to change navigation stack (i.e. push/pop) in child views.
12 | public struct NavigationStackView<Content: View>: View {
| `- note: add @available attribute to enclosing generic struct
13 | public init(
14 | _ controller: NavigationStackController,
:
19 | }
20 |
21 | @ObservedObject var controller: NavigationStackController
| `- error: 'ObservedObject' is only available in macOS 10.15 or newer
22 | let content: Content
23 |
/Users/admin/builder/spi-builder-workspace/Sources/ScreenNavigatorKit/NavigationStack/NavigationStackView.swift:24:27: error: 'View' is only available in macOS 10.15 or newer
10 | /// Under-the-hood it's a NavigationView binded to NavigationStackController state object
11 | /// that provides (as environment object) tools to change navigation stack (i.e. push/pop) in child views.
12 | public struct NavigationStackView<Content: View>: View {
| `- note: add @available attribute to enclosing generic struct
13 | public init(
14 | _ controller: NavigationStackController,
:
22 | let content: Content
23 |
24 | public var body: some View {
| | `- error: 'View' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing property
25 | NavigationView {
26 | controller.rootBody(
/Users/admin/builder/spi-builder-workspace/Sources/ScreenNavigatorKit/NavigationStack/NavigationStackView.swift:12:44: error: 'View' is only available in macOS 10.15 or newer
10 | /// Under-the-hood it's a NavigationView binded to NavigationStackController state object
11 | /// that provides (as environment object) tools to change navigation stack (i.e. push/pop) in child views.
12 | public struct NavigationStackView<Content: View>: View {
| | `- error: 'View' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing generic struct
13 | public init(
14 | _ controller: NavigationStackController,
/Users/admin/builder/spi-builder-workspace/Sources/ScreenNavigatorKit/NavigationStack/NavigationStackView.swift:17:9: error: setter for 'controller' is only available in macOS 10.15 or newer
10 | /// Under-the-hood it's a NavigationView binded to NavigationStackController state object
11 | /// that provides (as environment object) tools to change navigation stack (i.e. push/pop) in child views.
12 | public struct NavigationStackView<Content: View>: View {
| `- note: add @available attribute to enclosing generic struct
13 | public init(
| `- note: add @available attribute to enclosing initializer
14 | _ controller: NavigationStackController,
15 | @ViewBuilder content: () -> Content
16 | ) {
17 | self.controller = controller
| |- error: setter for 'controller' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
18 | self.content = content()
19 | }
/Users/admin/builder/spi-builder-workspace/Sources/ScreenNavigatorKit/NavigationStack/NavigationStackView.swift:25:9: error: 'NavigationView' is only available in macOS 10.15 or newer
10 | /// Under-the-hood it's a NavigationView binded to NavigationStackController state object
11 | /// that provides (as environment object) tools to change navigation stack (i.e. push/pop) in child views.
12 | public struct NavigationStackView<Content: View>: View {
| `- note: add @available attribute to enclosing generic struct
13 | public init(
14 | _ controller: NavigationStackController,
:
22 | let content: Content
23 |
24 | public var body: some View {
| `- note: add @available attribute to enclosing property
25 | NavigationView {
| |- error: 'NavigationView' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
26 | controller.rootBody(
27 | content: content
/Users/admin/builder/spi-builder-workspace/Sources/ScreenNavigatorKit/NavigationStack/NavigationStackView.swift:30:10: error: 'environmentObject' is only available in macOS 10.15 or newer
10 | /// Under-the-hood it's a NavigationView binded to NavigationStackController state object
11 | /// that provides (as environment object) tools to change navigation stack (i.e. push/pop) in child views.
12 | public struct NavigationStackView<Content: View>: View {
| `- note: add @available attribute to enclosing generic struct
13 | public init(
14 | _ controller: NavigationStackController,
:
22 | let content: Content
23 |
24 | public var body: some View {
| `- note: add @available attribute to enclosing property
25 | NavigationView {
26 | controller.rootBody(
:
28 | )
29 | }
30 | .environmentObject(controller)
| |- error: 'environmentObject' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
31 | }
32 | }
[13/19] Compiling ScreenNavigatorKit View+appear.swift
/Users/admin/builder/spi-builder-workspace/Sources/ScreenNavigatorKit/Internal/Helpers/View+asAny.swift:11:21: error: 'AnyView' is only available in macOS 10.15 or newer
8 | import SwiftUI
9 |
10 | extension View {
| `- note: add @available attribute to enclosing extension
11 | func asAny() -> AnyView {
| | `- error: 'AnyView' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing instance method
12 | AnyView(self)
13 | }
/Users/admin/builder/spi-builder-workspace/Sources/ScreenNavigatorKit/Internal/Helpers/View+asAny.swift:10:11: error: 'View' is only available in macOS 10.15 or newer
8 | import SwiftUI
9 |
10 | extension View {
| | `- error: 'View' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing extension
11 | func asAny() -> AnyView {
12 | AnyView(self)
/Users/admin/builder/spi-builder-workspace/Sources/ScreenNavigatorKit/Internal/Helpers/View+asAny.swift:12:9: error: 'AnyView' is only available in macOS 10.15 or newer
8 | import SwiftUI
9 |
10 | extension View {
| `- note: add @available attribute to enclosing extension
11 | func asAny() -> AnyView {
| `- note: add @available attribute to enclosing instance method
12 | AnyView(self)
| |- error: 'AnyView' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
13 | }
14 | }
[14/19] Compiling ScreenNavigatorKit View+asAny.swift
/Users/admin/builder/spi-builder-workspace/Sources/ScreenNavigatorKit/Internal/Helpers/View+asAny.swift:11:21: error: 'AnyView' is only available in macOS 10.15 or newer
8 | import SwiftUI
9 |
10 | extension View {
| `- note: add @available attribute to enclosing extension
11 | func asAny() -> AnyView {
| | `- error: 'AnyView' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing instance method
12 | AnyView(self)
13 | }
/Users/admin/builder/spi-builder-workspace/Sources/ScreenNavigatorKit/Internal/Helpers/View+asAny.swift:10:11: error: 'View' is only available in macOS 10.15 or newer
8 | import SwiftUI
9 |
10 | extension View {
| | `- error: 'View' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing extension
11 | func asAny() -> AnyView {
12 | AnyView(self)
/Users/admin/builder/spi-builder-workspace/Sources/ScreenNavigatorKit/Internal/Helpers/View+asAny.swift:12:9: error: 'AnyView' is only available in macOS 10.15 or newer
8 | import SwiftUI
9 |
10 | extension View {
| `- note: add @available attribute to enclosing extension
11 | func asAny() -> AnyView {
| `- note: add @available attribute to enclosing instance method
12 | AnyView(self)
| |- error: 'AnyView' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
13 | }
14 | }
[15/19] Compiling ScreenNavigatorKit Binding+removeDublicates.swift
/Users/admin/builder/spi-builder-workspace/Sources/ScreenNavigatorKit/Internal/Helpers/Binding+removeDublicates.swift:11:32: error: 'Binding' is only available in macOS 10.15 or newer
8 | import SwiftUI
9 |
10 | extension Binding where Value: Equatable {
| `- note: add @available attribute to enclosing extension
11 | func removeDublicates() -> Binding {
| | `- error: 'Binding' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing instance method
12 | Binding {
13 | self.wrappedValue
/Users/admin/builder/spi-builder-workspace/Sources/ScreenNavigatorKit/Internal/Helpers/Binding+removeDublicates.swift:10:11: error: 'Binding' is only available in macOS 10.15 or newer
8 | import SwiftUI
9 |
10 | extension Binding where Value: Equatable {
| | `- error: 'Binding' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing extension
11 | func removeDublicates() -> Binding {
12 | Binding {
/Users/admin/builder/spi-builder-workspace/Sources/ScreenNavigatorKit/Internal/Helpers/Binding+removeDublicates.swift:12:9: error: 'Binding' is only available in macOS 10.15 or newer
8 | import SwiftUI
9 |
10 | extension Binding where Value: Equatable {
| `- note: add @available attribute to enclosing extension
11 | func removeDublicates() -> Binding {
| `- note: add @available attribute to enclosing instance method
12 | Binding {
| |- error: 'Binding' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
13 | self.wrappedValue
14 | } set: { newValue, transaction in
/Users/admin/builder/spi-builder-workspace/Sources/ScreenNavigatorKit/Internal/Helpers/Binding+removeDublicates.swift:18:18: error: 'transaction' is only available in macOS 10.15 or newer
8 | import SwiftUI
9 |
10 | extension Binding where Value: Equatable {
| `- note: add @available attribute to enclosing extension
11 | func removeDublicates() -> Binding {
| `- note: add @available attribute to enclosing instance method
12 | Binding {
13 | self.wrappedValue
:
16 | return
17 | }
18 | self.transaction(transaction).wrappedValue = newValue
| |- error: 'transaction' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
19 | }
20 | }
/Users/admin/builder/spi-builder-workspace/Sources/ScreenNavigatorKit/Internal/Helpers/Binding+removeDublicates.swift:13:13: warning: capture of 'self' with non-sendable type 'Binding<Value>' in a `@Sendable` closure; this is an error in the Swift 6 language mode
11 | func removeDublicates() -> Binding {
12 | Binding {
13 | self.wrappedValue
| `- warning: capture of 'self' with non-sendable type 'Binding<Value>' in a `@Sendable` closure; this is an error in the Swift 6 language mode
14 | } set: { newValue, transaction in
15 | guard newValue != self.wrappedValue else {
/Users/admin/builder/spi-builder-workspace/Sources/ScreenNavigatorKit/Internal/Helpers/Binding+removeDublicates.swift:15:31: warning: capture of 'self' with non-sendable type 'Binding<Value>' in a `@Sendable` closure; this is an error in the Swift 6 language mode
13 | self.wrappedValue
14 | } set: { newValue, transaction in
15 | guard newValue != self.wrappedValue else {
| `- warning: capture of 'self' with non-sendable type 'Binding<Value>' in a `@Sendable` closure; this is an error in the Swift 6 language mode
16 | return
17 | }
/Users/admin/builder/spi-builder-workspace/Sources/ScreenNavigatorKit/Internal/Helpers/Binding+when.swift:11:43: error: 'Binding' is only available in macOS 10.15 or newer
8 | import SwiftUI
9 |
10 | extension Binding {
| `- note: add @available attribute to enclosing extension
11 | func when<Wrapped>(_ isTrue: Bool) -> Binding<Value> where Value == Wrapped? {
| | `- error: 'Binding' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing instance method
12 | Binding(
13 | get: {
/Users/admin/builder/spi-builder-workspace/Sources/ScreenNavigatorKit/Internal/Helpers/Binding+when.swift:10:11: error: 'Binding' is only available in macOS 10.15 or newer
8 | import SwiftUI
9 |
10 | extension Binding {
| | `- error: 'Binding' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing extension
11 | func when<Wrapped>(_ isTrue: Bool) -> Binding<Value> where Value == Wrapped? {
12 | Binding(
/Users/admin/builder/spi-builder-workspace/Sources/ScreenNavigatorKit/Internal/Helpers/Binding+when.swift:12:9: error: 'Binding' is only available in macOS 10.15 or newer
8 | import SwiftUI
9 |
10 | extension Binding {
| `- note: add @available attribute to enclosing extension
11 | func when<Wrapped>(_ isTrue: Bool) -> Binding<Value> where Value == Wrapped? {
| `- note: add @available attribute to enclosing instance method
12 | Binding(
| |- error: 'Binding' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
13 | get: {
14 | isTrue ? self.wrappedValue : nil
/Users/admin/builder/spi-builder-workspace/Sources/ScreenNavigatorKit/Internal/Helpers/Binding+when.swift:18:26: error: 'transaction' is only available in macOS 10.15 or newer
8 | import SwiftUI
9 |
10 | extension Binding {
| `- note: add @available attribute to enclosing extension
11 | func when<Wrapped>(_ isTrue: Bool) -> Binding<Value> where Value == Wrapped? {
| `- note: add @available attribute to enclosing instance method
12 | Binding(
13 | get: {
:
16 | set: { newValue, transaction in
17 | if isTrue {
18 | self.transaction(transaction).wrappedValue = newValue
| |- error: 'transaction' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
19 | }
20 | }
/Users/admin/builder/spi-builder-workspace/Sources/ScreenNavigatorKit/Internal/Helpers/Binding+when.swift:14:26: warning: capture of 'self' with non-sendable type 'Binding<Optional<Wrapped>>' in a `@Sendable` closure; this is an error in the Swift 6 language mode
9 |
10 | extension Binding {
11 | func when<Wrapped>(_ isTrue: Bool) -> Binding<Value> where Value == Wrapped? {
| `- note: consider making generic parameter 'Wrapped' conform to the 'Sendable' protocol
12 | Binding(
13 | get: {
14 | isTrue ? self.wrappedValue : nil
| `- warning: capture of 'self' with non-sendable type 'Binding<Optional<Wrapped>>' in a `@Sendable` closure; this is an error in the Swift 6 language mode
15 | },
16 | set: { newValue, transaction in
/Users/admin/builder/spi-builder-workspace/Sources/ScreenNavigatorKit/Internal/Helpers/Binding+when.swift:18:21: warning: capture of 'self' with non-sendable type 'Binding<Optional<Wrapped>>' in a `@Sendable` closure; this is an error in the Swift 6 language mode
9 |
10 | extension Binding {
11 | func when<Wrapped>(_ isTrue: Bool) -> Binding<Value> where Value == Wrapped? {
| `- note: consider making generic parameter 'Wrapped' conform to the 'Sendable' protocol
12 | Binding(
13 | get: {
:
16 | set: { newValue, transaction in
17 | if isTrue {
18 | self.transaction(transaction).wrappedValue = newValue
| `- warning: capture of 'self' with non-sendable type 'Binding<Optional<Wrapped>>' in a `@Sendable` closure; this is an error in the Swift 6 language mode
19 | }
20 | }
[16/19] Compiling ScreenNavigatorKit Binding+when.swift
/Users/admin/builder/spi-builder-workspace/Sources/ScreenNavigatorKit/Internal/Helpers/Binding+removeDublicates.swift:11:32: error: 'Binding' is only available in macOS 10.15 or newer
8 | import SwiftUI
9 |
10 | extension Binding where Value: Equatable {
| `- note: add @available attribute to enclosing extension
11 | func removeDublicates() -> Binding {
| | `- error: 'Binding' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing instance method
12 | Binding {
13 | self.wrappedValue
/Users/admin/builder/spi-builder-workspace/Sources/ScreenNavigatorKit/Internal/Helpers/Binding+removeDublicates.swift:10:11: error: 'Binding' is only available in macOS 10.15 or newer
8 | import SwiftUI
9 |
10 | extension Binding where Value: Equatable {
| | `- error: 'Binding' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing extension
11 | func removeDublicates() -> Binding {
12 | Binding {
/Users/admin/builder/spi-builder-workspace/Sources/ScreenNavigatorKit/Internal/Helpers/Binding+removeDublicates.swift:12:9: error: 'Binding' is only available in macOS 10.15 or newer
8 | import SwiftUI
9 |
10 | extension Binding where Value: Equatable {
| `- note: add @available attribute to enclosing extension
11 | func removeDublicates() -> Binding {
| `- note: add @available attribute to enclosing instance method
12 | Binding {
| |- error: 'Binding' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
13 | self.wrappedValue
14 | } set: { newValue, transaction in
/Users/admin/builder/spi-builder-workspace/Sources/ScreenNavigatorKit/Internal/Helpers/Binding+removeDublicates.swift:18:18: error: 'transaction' is only available in macOS 10.15 or newer
8 | import SwiftUI
9 |
10 | extension Binding where Value: Equatable {
| `- note: add @available attribute to enclosing extension
11 | func removeDublicates() -> Binding {
| `- note: add @available attribute to enclosing instance method
12 | Binding {
13 | self.wrappedValue
:
16 | return
17 | }
18 | self.transaction(transaction).wrappedValue = newValue
| |- error: 'transaction' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
19 | }
20 | }
/Users/admin/builder/spi-builder-workspace/Sources/ScreenNavigatorKit/Internal/Helpers/Binding+removeDublicates.swift:13:13: warning: capture of 'self' with non-sendable type 'Binding<Value>' in a `@Sendable` closure; this is an error in the Swift 6 language mode
11 | func removeDublicates() -> Binding {
12 | Binding {
13 | self.wrappedValue
| `- warning: capture of 'self' with non-sendable type 'Binding<Value>' in a `@Sendable` closure; this is an error in the Swift 6 language mode
14 | } set: { newValue, transaction in
15 | guard newValue != self.wrappedValue else {
/Users/admin/builder/spi-builder-workspace/Sources/ScreenNavigatorKit/Internal/Helpers/Binding+removeDublicates.swift:15:31: warning: capture of 'self' with non-sendable type 'Binding<Value>' in a `@Sendable` closure; this is an error in the Swift 6 language mode
13 | self.wrappedValue
14 | } set: { newValue, transaction in
15 | guard newValue != self.wrappedValue else {
| `- warning: capture of 'self' with non-sendable type 'Binding<Value>' in a `@Sendable` closure; this is an error in the Swift 6 language mode
16 | return
17 | }
/Users/admin/builder/spi-builder-workspace/Sources/ScreenNavigatorKit/Internal/Helpers/Binding+when.swift:11:43: error: 'Binding' is only available in macOS 10.15 or newer
8 | import SwiftUI
9 |
10 | extension Binding {
| `- note: add @available attribute to enclosing extension
11 | func when<Wrapped>(_ isTrue: Bool) -> Binding<Value> where Value == Wrapped? {
| | `- error: 'Binding' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing instance method
12 | Binding(
13 | get: {
/Users/admin/builder/spi-builder-workspace/Sources/ScreenNavigatorKit/Internal/Helpers/Binding+when.swift:10:11: error: 'Binding' is only available in macOS 10.15 or newer
8 | import SwiftUI
9 |
10 | extension Binding {
| | `- error: 'Binding' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing extension
11 | func when<Wrapped>(_ isTrue: Bool) -> Binding<Value> where Value == Wrapped? {
12 | Binding(
/Users/admin/builder/spi-builder-workspace/Sources/ScreenNavigatorKit/Internal/Helpers/Binding+when.swift:12:9: error: 'Binding' is only available in macOS 10.15 or newer
8 | import SwiftUI
9 |
10 | extension Binding {
| `- note: add @available attribute to enclosing extension
11 | func when<Wrapped>(_ isTrue: Bool) -> Binding<Value> where Value == Wrapped? {
| `- note: add @available attribute to enclosing instance method
12 | Binding(
| |- error: 'Binding' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
13 | get: {
14 | isTrue ? self.wrappedValue : nil
/Users/admin/builder/spi-builder-workspace/Sources/ScreenNavigatorKit/Internal/Helpers/Binding+when.swift:18:26: error: 'transaction' is only available in macOS 10.15 or newer
8 | import SwiftUI
9 |
10 | extension Binding {
| `- note: add @available attribute to enclosing extension
11 | func when<Wrapped>(_ isTrue: Bool) -> Binding<Value> where Value == Wrapped? {
| `- note: add @available attribute to enclosing instance method
12 | Binding(
13 | get: {
:
16 | set: { newValue, transaction in
17 | if isTrue {
18 | self.transaction(transaction).wrappedValue = newValue
| |- error: 'transaction' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
19 | }
20 | }
/Users/admin/builder/spi-builder-workspace/Sources/ScreenNavigatorKit/Internal/Helpers/Binding+when.swift:14:26: warning: capture of 'self' with non-sendable type 'Binding<Optional<Wrapped>>' in a `@Sendable` closure; this is an error in the Swift 6 language mode
9 |
10 | extension Binding {
11 | func when<Wrapped>(_ isTrue: Bool) -> Binding<Value> where Value == Wrapped? {
| `- note: consider making generic parameter 'Wrapped' conform to the 'Sendable' protocol
12 | Binding(
13 | get: {
14 | isTrue ? self.wrappedValue : nil
| `- warning: capture of 'self' with non-sendable type 'Binding<Optional<Wrapped>>' in a `@Sendable` closure; this is an error in the Swift 6 language mode
15 | },
16 | set: { newValue, transaction in
/Users/admin/builder/spi-builder-workspace/Sources/ScreenNavigatorKit/Internal/Helpers/Binding+when.swift:18:21: warning: capture of 'self' with non-sendable type 'Binding<Optional<Wrapped>>' in a `@Sendable` closure; this is an error in the Swift 6 language mode
9 |
10 | extension Binding {
11 | func when<Wrapped>(_ isTrue: Bool) -> Binding<Value> where Value == Wrapped? {
| `- note: consider making generic parameter 'Wrapped' conform to the 'Sendable' protocol
12 | Binding(
13 | get: {
:
16 | set: { newValue, transaction in
17 | if isTrue {
18 | self.transaction(transaction).wrappedValue = newValue
| `- warning: capture of 'self' with non-sendable type 'Binding<Optional<Wrapped>>' in a `@Sendable` closure; this is an error in the Swift 6 language mode
19 | }
20 | }
[17/19] Compiling ScreenNavigatorKit AnySequence+first.swift
/Users/admin/builder/spi-builder-workspace/Sources/ScreenNavigatorKit/Internal/Helpers/Binding+isNotNil.swift:11:33: error: 'Binding' is only available in macOS 10.15 or newer
8 | import SwiftUI
9 |
10 | extension Binding {
| `- note: add @available attribute to enclosing extension
11 | func isNotNil<Wrapped>() -> Binding<Bool> where Value == Wrapped? {
| | `- error: 'Binding' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing instance method
12 | Binding<Bool>(
13 | get: { self.wrappedValue != nil },
/Users/admin/builder/spi-builder-workspace/Sources/ScreenNavigatorKit/Internal/Helpers/Binding+isNotNil.swift:10:11: error: 'Binding' is only available in macOS 10.15 or newer
8 | import SwiftUI
9 |
10 | extension Binding {
| | `- error: 'Binding' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing extension
11 | func isNotNil<Wrapped>() -> Binding<Bool> where Value == Wrapped? {
12 | Binding<Bool>(
/Users/admin/builder/spi-builder-workspace/Sources/ScreenNavigatorKit/Internal/Helpers/Binding+isNotNil.swift:12:9: error: 'Binding' is only available in macOS 10.15 or newer
8 | import SwiftUI
9 |
10 | extension Binding {
| `- note: add @available attribute to enclosing extension
11 | func isNotNil<Wrapped>() -> Binding<Bool> where Value == Wrapped? {
| `- note: add @available attribute to enclosing instance method
12 | Binding<Bool>(
| |- error: 'Binding' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
13 | get: { self.wrappedValue != nil },
14 | set: { exists, transaction in
/Users/admin/builder/spi-builder-workspace/Sources/ScreenNavigatorKit/Internal/Helpers/Binding+isNotNil.swift:16:26: error: 'transaction' is only available in macOS 10.15 or newer
8 | import SwiftUI
9 |
10 | extension Binding {
| `- note: add @available attribute to enclosing extension
11 | func isNotNil<Wrapped>() -> Binding<Bool> where Value == Wrapped? {
| `- note: add @available attribute to enclosing instance method
12 | Binding<Bool>(
13 | get: { self.wrappedValue != nil },
14 | set: { exists, transaction in
15 | if !exists {
16 | self.transaction(transaction).wrappedValue = nil
| |- error: 'transaction' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
17 | }
18 | }
/Users/admin/builder/spi-builder-workspace/Sources/ScreenNavigatorKit/Internal/Helpers/Binding+isNotNil.swift:13:20: warning: capture of 'self' with non-sendable type 'Binding<Optional<Wrapped>>' in a `@Sendable` closure; this is an error in the Swift 6 language mode
9 |
10 | extension Binding {
11 | func isNotNil<Wrapped>() -> Binding<Bool> where Value == Wrapped? {
| `- note: consider making generic parameter 'Wrapped' conform to the 'Sendable' protocol
12 | Binding<Bool>(
13 | get: { self.wrappedValue != nil },
| `- warning: capture of 'self' with non-sendable type 'Binding<Optional<Wrapped>>' in a `@Sendable` closure; this is an error in the Swift 6 language mode
14 | set: { exists, transaction in
15 | if !exists {
/Users/admin/builder/spi-builder-workspace/Sources/ScreenNavigatorKit/Internal/Helpers/Binding+isNotNil.swift:16:21: warning: capture of 'self' with non-sendable type 'Binding<Optional<Wrapped>>' in a `@Sendable` closure; this is an error in the Swift 6 language mode
9 |
10 | extension Binding {
11 | func isNotNil<Wrapped>() -> Binding<Bool> where Value == Wrapped? {
| `- note: consider making generic parameter 'Wrapped' conform to the 'Sendable' protocol
12 | Binding<Bool>(
13 | get: { self.wrappedValue != nil },
14 | set: { exists, transaction in
15 | if !exists {
16 | self.transaction(transaction).wrappedValue = nil
| `- warning: capture of 'self' with non-sendable type 'Binding<Optional<Wrapped>>' in a `@Sendable` closure; this is an error in the Swift 6 language mode
17 | }
18 | }
[18/19] Compiling ScreenNavigatorKit Binding+isNotNil.swift
/Users/admin/builder/spi-builder-workspace/Sources/ScreenNavigatorKit/Internal/Helpers/Binding+isNotNil.swift:11:33: error: 'Binding' is only available in macOS 10.15 or newer
8 | import SwiftUI
9 |
10 | extension Binding {
| `- note: add @available attribute to enclosing extension
11 | func isNotNil<Wrapped>() -> Binding<Bool> where Value == Wrapped? {
| | `- error: 'Binding' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing instance method
12 | Binding<Bool>(
13 | get: { self.wrappedValue != nil },
/Users/admin/builder/spi-builder-workspace/Sources/ScreenNavigatorKit/Internal/Helpers/Binding+isNotNil.swift:10:11: error: 'Binding' is only available in macOS 10.15 or newer
8 | import SwiftUI
9 |
10 | extension Binding {
| | `- error: 'Binding' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing extension
11 | func isNotNil<Wrapped>() -> Binding<Bool> where Value == Wrapped? {
12 | Binding<Bool>(
/Users/admin/builder/spi-builder-workspace/Sources/ScreenNavigatorKit/Internal/Helpers/Binding+isNotNil.swift:12:9: error: 'Binding' is only available in macOS 10.15 or newer
8 | import SwiftUI
9 |
10 | extension Binding {
| `- note: add @available attribute to enclosing extension
11 | func isNotNil<Wrapped>() -> Binding<Bool> where Value == Wrapped? {
| `- note: add @available attribute to enclosing instance method
12 | Binding<Bool>(
| |- error: 'Binding' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
13 | get: { self.wrappedValue != nil },
14 | set: { exists, transaction in
/Users/admin/builder/spi-builder-workspace/Sources/ScreenNavigatorKit/Internal/Helpers/Binding+isNotNil.swift:16:26: error: 'transaction' is only available in macOS 10.15 or newer
8 | import SwiftUI
9 |
10 | extension Binding {
| `- note: add @available attribute to enclosing extension
11 | func isNotNil<Wrapped>() -> Binding<Bool> where Value == Wrapped? {
| `- note: add @available attribute to enclosing instance method
12 | Binding<Bool>(
13 | get: { self.wrappedValue != nil },
14 | set: { exists, transaction in
15 | if !exists {
16 | self.transaction(transaction).wrappedValue = nil
| |- error: 'transaction' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
17 | }
18 | }
/Users/admin/builder/spi-builder-workspace/Sources/ScreenNavigatorKit/Internal/Helpers/Binding+isNotNil.swift:13:20: warning: capture of 'self' with non-sendable type 'Binding<Optional<Wrapped>>' in a `@Sendable` closure; this is an error in the Swift 6 language mode
9 |
10 | extension Binding {
11 | func isNotNil<Wrapped>() -> Binding<Bool> where Value == Wrapped? {
| `- note: consider making generic parameter 'Wrapped' conform to the 'Sendable' protocol
12 | Binding<Bool>(
13 | get: { self.wrappedValue != nil },
| `- warning: capture of 'self' with non-sendable type 'Binding<Optional<Wrapped>>' in a `@Sendable` closure; this is an error in the Swift 6 language mode
14 | set: { exists, transaction in
15 | if !exists {
/Users/admin/builder/spi-builder-workspace/Sources/ScreenNavigatorKit/Internal/Helpers/Binding+isNotNil.swift:16:21: warning: capture of 'self' with non-sendable type 'Binding<Optional<Wrapped>>' in a `@Sendable` closure; this is an error in the Swift 6 language mode
9 |
10 | extension Binding {
11 | func isNotNil<Wrapped>() -> Binding<Bool> where Value == Wrapped? {
| `- note: consider making generic parameter 'Wrapped' conform to the 'Sendable' protocol
12 | Binding<Bool>(
13 | get: { self.wrappedValue != nil },
14 | set: { exists, transaction in
15 | if !exists {
16 | self.transaction(transaction).wrappedValue = nil
| `- warning: capture of 'self' with non-sendable type 'Binding<Optional<Wrapped>>' in a `@Sendable` closure; this is an error in the Swift 6 language mode
17 | }
18 | }
[19/19] Compiling ScreenNavigatorKit View+push.swift
/Users/admin/builder/spi-builder-workspace/Sources/ScreenNavigatorKit/NavigationStack/View+push.swift:12:38: error: 'View' is only available in macOS 10.15 or newer
8 | import SwiftUI
9 |
10 | extension View {
| `- note: add @available attribute to enclosing extension
11 | func push(
| `- note: add @available attribute to enclosing instance method
12 | _ destination: Binding<(some View)?>
| `- error: 'View' is only available in macOS 10.15 or newer
13 | ) -> some View {
14 | background(
/Users/admin/builder/spi-builder-workspace/Sources/ScreenNavigatorKit/NavigationStack/View+push.swift:12:24: error: 'Binding' is only available in macOS 10.15 or newer
8 | import SwiftUI
9 |
10 | extension View {
| `- note: add @available attribute to enclosing extension
11 | func push(
| `- note: add @available attribute to enclosing instance method
12 | _ destination: Binding<(some View)?>
| `- error: 'Binding' is only available in macOS 10.15 or newer
13 | ) -> some View {
14 | background(
/Users/admin/builder/spi-builder-workspace/Sources/ScreenNavigatorKit/NavigationStack/View+push.swift:13:15: error: 'View' is only available in macOS 10.15 or newer
8 | import SwiftUI
9 |
10 | extension View {
| `- note: add @available attribute to enclosing extension
11 | func push(
| `- note: add @available attribute to enclosing instance method
12 | _ destination: Binding<(some View)?>
13 | ) -> some View {
| `- error: 'View' is only available in macOS 10.15 or newer
14 | background(
15 | NavigationLink(
/Users/admin/builder/spi-builder-workspace/Sources/ScreenNavigatorKit/NavigationStack/View+push.swift:10:11: error: 'View' is only available in macOS 10.15 or newer
8 | import SwiftUI
9 |
10 | extension View {
| | `- error: 'View' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing extension
11 | func push(
12 | _ destination: Binding<(some View)?>
/Users/admin/builder/spi-builder-workspace/Sources/ScreenNavigatorKit/NavigationStack/View+push.swift:14:9: error: 'background(_:alignment:)' is only available in macOS 10.15 or newer
8 | import SwiftUI
9 |
10 | extension View {
| `- note: add @available attribute to enclosing extension
11 | func push(
| `- note: add @available attribute to enclosing instance method
12 | _ destination: Binding<(some View)?>
13 | ) -> some View {
14 | background(
| |- error: 'background(_:alignment:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
15 | NavigationLink(
16 | destination: destination.wrappedValue,
/Users/admin/builder/spi-builder-workspace/Sources/ScreenNavigatorKit/NavigationStack/View+push.swift:15:13: error: 'NavigationLink' is only available in macOS 10.15 or newer
8 | import SwiftUI
9 |
10 | extension View {
| `- note: add @available attribute to enclosing extension
11 | func push(
| `- note: add @available attribute to enclosing instance method
12 | _ destination: Binding<(some View)?>
13 | ) -> some View {
14 | background(
15 | NavigationLink(
| |- error: 'NavigationLink' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
16 | destination: destination.wrappedValue,
17 | isActive: destination.isNotNil().removeDublicates(),
/Users/admin/builder/spi-builder-workspace/Sources/ScreenNavigatorKit/NavigationStack/View+push.swift:15:13: error: 'init(destination:isActive:label:)' is only available in macOS 10.15 or newer
8 | import SwiftUI
9 |
10 | extension View {
| `- note: add @available attribute to enclosing extension
11 | func push(
| `- note: add @available attribute to enclosing instance method
12 | _ destination: Binding<(some View)?>
13 | ) -> some View {
14 | background(
15 | NavigationLink(
| |- error: 'init(destination:isActive:label:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
16 | destination: destination.wrappedValue,
17 | isActive: destination.isNotNil().removeDublicates(),
/Users/admin/builder/spi-builder-workspace/Sources/ScreenNavigatorKit/NavigationStack/View+push.swift:18:26: error: 'EmptyView' is only available in macOS 10.15 or newer
8 | import SwiftUI
9 |
10 | extension View {
| `- note: add @available attribute to enclosing extension
11 | func push(
| `- note: add @available attribute to enclosing instance method
12 | _ destination: Binding<(some View)?>
13 | ) -> some View {
:
16 | destination: destination.wrappedValue,
17 | isActive: destination.isNotNil().removeDublicates(),
18 | label: { EmptyView() }
| |- error: 'EmptyView' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
19 | )
20 | .isDetailLink(false)
/Users/admin/builder/spi-builder-workspace/Sources/ScreenNavigatorKit/NavigationStack/View+push.swift:20:14: error: 'isDetailLink' is unavailable in macOS
18 | label: { EmptyView() }
19 | )
20 | .isDetailLink(false)
| `- error: 'isDetailLink' is unavailable in macOS
21 | .hidden()
22 | .accessibilityHidden(true)
SwiftUI.NavigationLink:9:17: note: 'isDetailLink' has been explicitly marked unavailable here
7 | @available(tvOS, unavailable)
8 | @available(watchOS, unavailable)
9 | public func isDetailLink(_ isDetailLink: Bool) -> some View
| `- note: 'isDetailLink' has been explicitly marked unavailable here
10 |
11 | }
/Users/admin/builder/spi-builder-workspace/Sources/ScreenNavigatorKit/NavigationStack/View+push.swift:21:14: error: 'hidden()' is only available in macOS 10.15 or newer
8 | import SwiftUI
9 |
10 | extension View {
| `- note: add @available attribute to enclosing extension
11 | func push(
| `- note: add @available attribute to enclosing instance method
12 | _ destination: Binding<(some View)?>
13 | ) -> some View {
:
19 | )
20 | .isDetailLink(false)
21 | .hidden()
| |- error: 'hidden()' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
22 | .accessibilityHidden(true)
23 | )
/Users/admin/builder/spi-builder-workspace/Sources/ScreenNavigatorKit/NavigationStack/View+push.swift:22:14: error: 'accessibilityHidden' is only available in macOS 11.0 or newer
8 | import SwiftUI
9 |
10 | extension View {
| `- note: add @available attribute to enclosing extension
11 | func push(
| `- note: add @available attribute to enclosing instance method
12 | _ destination: Binding<(some View)?>
13 | ) -> some View {
:
20 | .isDetailLink(false)
21 | .hidden()
22 | .accessibilityHidden(true)
| |- error: 'accessibilityHidden' is only available in macOS 11.0 or newer
| `- note: add 'if #available' version check
23 | )
24 | }
BUILD FAILURE 6.0 macosSpm