Build Information
Failed to build adaptive-modal, reference main (11835e
), with Swift 6.0 for macOS (SPM) on 4 Nov 2024 07:11: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
Build Log
12 | }
13 |
14 | struct ModalContent: View {
| `- note: add @available attribute to enclosing struct
15 | @Environment(\.presentationMode) @Binding var presentationMode
16 |
:
32 | private var translatedHeight: Double { max(contentHeight + safeAreaInsetBottom, 100) * 1.1 }
33 |
34 | var body: some View {
| `- note: add @available attribute to enclosing property
35 | contentView()
36 | .onAnimationCompleted(for: translation.height) {
:
46 | }
47 | }
48 | .onChange(of: opacity) { value in
| |- error: 'onChange(of:perform:)' is only available in macOS 11.0 or newer
| `- note: add 'if #available' version check
49 | delegate?.updateBackground(opacity: opacity)
50 | }
/Users/admin/builder/spi-builder-workspace/Sources/AdaptiveModal/Content/ModalContent.swift:51:14: error: 'onPreferenceChange(_:perform:)' is only available in macOS 10.15 or newer
12 | }
13 |
14 | struct ModalContent: View {
| `- note: add @available attribute to enclosing struct
15 | @Environment(\.presentationMode) @Binding var presentationMode
16 |
:
32 | private var translatedHeight: Double { max(contentHeight + safeAreaInsetBottom, 100) * 1.1 }
33 |
34 | var body: some View {
| `- note: add @available attribute to enclosing property
35 | contentView()
36 | .onAnimationCompleted(for: translation.height) {
:
49 | delegate?.updateBackground(opacity: opacity)
50 | }
51 | .onPreferenceChange(ModalInteractiveDismissDisabled.self) { value in
| |- error: 'onPreferenceChange(_:perform:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
52 | cancelable = !value
53 | }
/Users/admin/builder/spi-builder-workspace/Sources/AdaptiveModal/Content/ModalContent.swift:52:17: error: setter for 'cancelable' is only available in macOS 10.15 or newer
12 | }
13 |
14 | struct ModalContent: View {
| `- note: add @available attribute to enclosing struct
15 | @Environment(\.presentationMode) @Binding var presentationMode
16 |
:
32 | private var translatedHeight: Double { max(contentHeight + safeAreaInsetBottom, 100) * 1.1 }
33 |
34 | var body: some View {
| `- note: add @available attribute to enclosing property
35 | contentView()
36 | .onAnimationCompleted(for: translation.height) {
:
50 | }
51 | .onPreferenceChange(ModalInteractiveDismissDisabled.self) { value in
52 | cancelable = !value
| |- error: setter for 'cancelable' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
53 | }
54 | .onPreferenceChange(ModalDraggableDisabled.self) { value in
/Users/admin/builder/spi-builder-workspace/Sources/AdaptiveModal/Content/ModalContent.swift:54:14: error: 'onPreferenceChange(_:perform:)' is only available in macOS 10.15 or newer
12 | }
13 |
14 | struct ModalContent: View {
| `- note: add @available attribute to enclosing struct
15 | @Environment(\.presentationMode) @Binding var presentationMode
16 |
:
32 | private var translatedHeight: Double { max(contentHeight + safeAreaInsetBottom, 100) * 1.1 }
33 |
34 | var body: some View {
| `- note: add @available attribute to enclosing property
35 | contentView()
36 | .onAnimationCompleted(for: translation.height) {
:
52 | cancelable = !value
53 | }
54 | .onPreferenceChange(ModalDraggableDisabled.self) { value in
| |- error: 'onPreferenceChange(_:perform:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
55 | draggable = !value
56 | }
/Users/admin/builder/spi-builder-workspace/Sources/AdaptiveModal/Content/ModalContent.swift:55:17: error: setter for 'draggable' is only available in macOS 10.15 or newer
12 | }
13 |
14 | struct ModalContent: View {
| `- note: add @available attribute to enclosing struct
15 | @Environment(\.presentationMode) @Binding var presentationMode
16 |
:
32 | private var translatedHeight: Double { max(contentHeight + safeAreaInsetBottom, 100) * 1.1 }
33 |
34 | var body: some View {
| `- note: add @available attribute to enclosing property
35 | contentView()
36 | .onAnimationCompleted(for: translation.height) {
:
53 | }
54 | .onPreferenceChange(ModalDraggableDisabled.self) { value in
55 | draggable = !value
| |- error: setter for 'draggable' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
56 | }
57 | }
/Users/admin/builder/spi-builder-workspace/Sources/AdaptiveModal/Content/ModalContent.swift:64:24: error: 'AnyView' is only available in macOS 10.15 or newer
12 | }
13 |
14 | struct ModalContent: View {
| `- note: add @available attribute to enclosing struct
15 | @Environment(\.presentationMode) @Binding var presentationMode
16 |
:
57 | }
58 |
59 | init(
| `- note: add @available attribute to enclosing initializer
60 | onDismiss: @escaping () -> Void,
61 | content: @escaping () -> some View
62 | ) {
63 | self.onDismiss = onDismiss
64 | self.content = AnyView(content())
| |- error: 'AnyView' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
65 | }
66 | }
/Users/admin/builder/spi-builder-workspace/Sources/AdaptiveModal/Content/ModalContent.swift:70:9: error: 'ZStack' is only available in macOS 10.15 or newer
66 | }
67 |
68 | private extension ModalContent {
| `- note: add @available attribute to enclosing extension
69 | func contentView() -> some View {
| `- note: add @available attribute to enclosing instance method
70 | ZStack {
| |- error: 'ZStack' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
71 | Color.black
72 | .opacity(0.0001)
/Users/admin/builder/spi-builder-workspace/Sources/AdaptiveModal/Content/ModalContent.swift:71:13: error: 'Color' is only available in macOS 10.15 or newer
66 | }
67 |
68 | private extension ModalContent {
| `- note: add @available attribute to enclosing extension
69 | func contentView() -> some View {
| `- note: add @available attribute to enclosing instance method
70 | ZStack {
71 | Color.black
| |- error: 'Color' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
72 | .opacity(0.0001)
73 | .ignoresSafeArea()
/Users/admin/builder/spi-builder-workspace/Sources/AdaptiveModal/Content/ModalContent.swift:71:19: error: 'black' is only available in macOS 10.15 or newer
66 | }
67 |
68 | private extension ModalContent {
| `- note: add @available attribute to enclosing extension
69 | func contentView() -> some View {
| `- note: add @available attribute to enclosing instance method
70 | ZStack {
71 | Color.black
| |- error: 'black' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
72 | .opacity(0.0001)
73 | .ignoresSafeArea()
/Users/admin/builder/spi-builder-workspace/Sources/AdaptiveModal/Content/ModalContent.swift:72:18: error: 'opacity' is only available in macOS 10.15 or newer
66 | }
67 |
68 | private extension ModalContent {
| `- note: add @available attribute to enclosing extension
69 | func contentView() -> some View {
| `- note: add @available attribute to enclosing instance method
70 | ZStack {
71 | Color.black
72 | .opacity(0.0001)
| |- error: 'opacity' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
73 | .ignoresSafeArea()
74 | .onTapGesture {
/Users/admin/builder/spi-builder-workspace/Sources/AdaptiveModal/Content/ModalContent.swift:73:18: error: 'ignoresSafeArea(_:edges:)' is only available in macOS 11.0 or newer
66 | }
67 |
68 | private extension ModalContent {
| `- note: add @available attribute to enclosing extension
69 | func contentView() -> some View {
| `- note: add @available attribute to enclosing instance method
70 | ZStack {
71 | Color.black
72 | .opacity(0.0001)
73 | .ignoresSafeArea()
| |- error: 'ignoresSafeArea(_:edges:)' is only available in macOS 11.0 or newer
| `- note: add 'if #available' version check
74 | .onTapGesture {
75 | if cancelable {
/Users/admin/builder/spi-builder-workspace/Sources/AdaptiveModal/Content/ModalContent.swift:74:18: error: 'onTapGesture(count:perform:)' is only available in macOS 10.15 or newer
66 | }
67 |
68 | private extension ModalContent {
| `- note: add @available attribute to enclosing extension
69 | func contentView() -> some View {
| `- note: add @available attribute to enclosing instance method
70 | ZStack {
71 | Color.black
72 | .opacity(0.0001)
73 | .ignoresSafeArea()
74 | .onTapGesture {
| |- error: 'onTapGesture(count:perform:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
75 | if cancelable {
76 | dismiss()
/Users/admin/builder/spi-builder-workspace/Sources/AdaptiveModal/Content/ModalContent.swift:80:13: error: 'VStack' is only available in macOS 10.15 or newer
66 | }
67 |
68 | private extension ModalContent {
| `- note: add @available attribute to enclosing extension
69 | func contentView() -> some View {
| `- note: add @available attribute to enclosing instance method
70 | ZStack {
71 | Color.black
:
78 | }
79 |
80 | VStack {
| |- error: 'VStack' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
81 | Spacer()
82 | .frame(minHeight: minHeight())
/Users/admin/builder/spi-builder-workspace/Sources/AdaptiveModal/Content/ModalContent.swift:81:17: error: 'Spacer' is only available in macOS 10.15 or newer
66 | }
67 |
68 | private extension ModalContent {
| `- note: add @available attribute to enclosing extension
69 | func contentView() -> some View {
| `- note: add @available attribute to enclosing instance method
70 | ZStack {
71 | Color.black
:
79 |
80 | VStack {
81 | Spacer()
| |- error: 'Spacer' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
82 | .frame(minHeight: minHeight())
83 |
/Users/admin/builder/spi-builder-workspace/Sources/AdaptiveModal/Content/ModalContent.swift:82:22: error: 'frame(minWidth:idealWidth:maxWidth:minHeight:idealHeight:maxHeight:alignment:)' is only available in macOS 10.15 or newer
66 | }
67 |
68 | private extension ModalContent {
| `- note: add @available attribute to enclosing extension
69 | func contentView() -> some View {
| `- note: add @available attribute to enclosing instance method
70 | ZStack {
71 | Color.black
:
80 | VStack {
81 | Spacer()
82 | .frame(minHeight: minHeight())
| |- error: 'frame(minWidth:idealWidth:maxWidth:minHeight:idealHeight:maxHeight:alignment:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
83 |
84 | modalView()
/Users/admin/builder/spi-builder-workspace/Sources/AdaptiveModal/Content/ModalContent.swift:86:42: error: setter for 'contentHeight' is only available in macOS 10.15 or newer
66 | }
67 |
68 | private extension ModalContent {
| `- note: add @available attribute to enclosing extension
69 | func contentView() -> some View {
| `- note: add @available attribute to enclosing instance method
70 | ZStack {
71 | Color.black
:
84 | modalView()
85 | .contentHeight(
86 | contentHeight: { contentHeight = $0 },
| |- error: setter for 'contentHeight' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
87 | safeAreaInsetBottom: { safeAreaInsetBottom = $0 }
88 | )
/Users/admin/builder/spi-builder-workspace/Sources/AdaptiveModal/Content/ModalContent.swift:87:48: error: setter for 'safeAreaInsetBottom' is only available in macOS 10.15 or newer
66 | }
67 |
68 | private extension ModalContent {
| `- note: add @available attribute to enclosing extension
69 | func contentView() -> some View {
| `- note: add @available attribute to enclosing instance method
70 | ZStack {
71 | Color.black
:
85 | .contentHeight(
86 | contentHeight: { contentHeight = $0 },
87 | safeAreaInsetBottom: { safeAreaInsetBottom = $0 }
| |- error: setter for 'safeAreaInsetBottom' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
88 | )
89 | .offset(translation)
/Users/admin/builder/spi-builder-workspace/Sources/AdaptiveModal/Content/ModalContent.swift:89:22: error: 'offset' is only available in macOS 10.15 or newer
66 | }
67 |
68 | private extension ModalContent {
| `- note: add @available attribute to enclosing extension
69 | func contentView() -> some View {
| `- note: add @available attribute to enclosing instance method
70 | ZStack {
71 | Color.black
:
87 | safeAreaInsetBottom: { safeAreaInsetBottom = $0 }
88 | )
89 | .offset(translation)
| |- error: 'offset' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
90 | .layoutPriority(1)
91 | }
/Users/admin/builder/spi-builder-workspace/Sources/AdaptiveModal/Content/ModalContent.swift:90:22: error: 'layoutPriority' is only available in macOS 10.15 or newer
66 | }
67 |
68 | private extension ModalContent {
| `- note: add @available attribute to enclosing extension
69 | func contentView() -> some View {
| `- note: add @available attribute to enclosing instance method
70 | ZStack {
71 | Color.black
:
88 | )
89 | .offset(translation)
90 | .layoutPriority(1)
| |- error: 'layoutPriority' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
91 | }
92 | }
/Users/admin/builder/spi-builder-workspace/Sources/AdaptiveModal/Content/ModalContent.swift:102:21: error: setter for 'opacity' is only available in macOS 10.15 or newer
66 | }
67 |
68 | private extension ModalContent {
| `- note: add @available attribute to enclosing extension
69 | func contentView() -> some View {
70 | ZStack {
:
94 |
95 | @ViewBuilder
96 | func modalView() -> some View {
| `- note: add @available attribute to enclosing instance method
97 | if draggable {
98 | modalContent()
:
100 | dismiss()
101 | } onTranslationHeightChanged: { value in
102 | opacity = min(
| |- error: setter for 'opacity' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
103 | maxOpacity,
104 | ((translatedHeight - value) / translatedHeight) * maxOpacity
/Users/admin/builder/spi-builder-workspace/Sources/AdaptiveModal/Content/ModalContent.swift:97:22: error: 'buildEither(first:)' is only available in macOS 10.15 or newer
66 | }
67 |
68 | private extension ModalContent {
| `- note: add @available attribute to enclosing extension
69 | func contentView() -> some View {
70 | ZStack {
:
94 |
95 | @ViewBuilder
96 | func modalView() -> some View {
| `- note: add @available attribute to enclosing instance method
97 | if draggable {
| |- error: 'buildEither(first:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
98 | modalContent()
99 | .draggableBackground(cancelable: cancelable) {
/Users/admin/builder/spi-builder-workspace/Sources/AdaptiveModal/Content/ModalContent.swift:107:16: error: 'buildEither(second:)' is only available in macOS 10.15 or newer
66 | }
67 |
68 | private extension ModalContent {
| `- note: add @available attribute to enclosing extension
69 | func contentView() -> some View {
70 | ZStack {
:
94 |
95 | @ViewBuilder
96 | func modalView() -> some View {
| `- note: add @available attribute to enclosing instance method
97 | if draggable {
98 | modalContent()
:
105 | )
106 | }
107 | } else {
| |- error: 'buildEither(second:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
108 | modalContent()
109 | .upperRoundedBackground()
/Users/admin/builder/spi-builder-workspace/Sources/AdaptiveModal/Content/ModalContent.swift:96:35: warning: conformance of '_ConditionalContent<TrueContent, FalseContent>' to 'View' is only available in macOS 10.15 or newer; this is an error in the Swift 6 language mode
66 | }
67 |
68 | private extension ModalContent {
| `- note: add @available attribute to enclosing extension
69 | func contentView() -> some View {
70 | ZStack {
:
94 |
95 | @ViewBuilder
96 | func modalView() -> some View {
| | |- warning: conformance of '_ConditionalContent<TrueContent, FalseContent>' to 'View' is only available in macOS 10.15 or newer; this is an error in the Swift 6 language mode
| | `- note: add 'if #available' version check
| `- note: add @available attribute to enclosing instance method
97 | if draggable {
98 | modalContent()
/Users/admin/builder/spi-builder-workspace/Sources/AdaptiveModal/Content/ModalContent.swift:119:17: error: 'frame(minWidth:idealWidth:maxWidth:minHeight:idealHeight:maxHeight:alignment:)' is only available in macOS 10.15 or newer
66 | }
67 |
68 | private extension ModalContent {
| `- note: add @available attribute to enclosing extension
69 | func contentView() -> some View {
70 | ZStack {
:
116 | }
117 |
118 | func modalContent() -> some View {
| `- note: add @available attribute to enclosing instance method
119 | content.frame(maxWidth: .infinity)
| |- error: 'frame(minWidth:idealWidth:maxWidth:minHeight:idealHeight:maxHeight:alignment:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
120 | }
121 |
/Users/admin/builder/spi-builder-workspace/Sources/AdaptiveModal/Content/ModalContent.swift:123:9: error: cannot find 'UIScreen' in scope
121 |
122 | func maxHeight() -> CGFloat {
123 | UIScreen.main.bounds.height * fraction
| `- error: cannot find 'UIScreen' in scope
124 | }
125 |
/Users/admin/builder/spi-builder-workspace/Sources/AdaptiveModal/Content/ModalContent.swift:127:9: error: cannot find 'UIScreen' in scope
125 |
126 | func minHeight() -> CGFloat {
127 | UIScreen.main.bounds.height - maxHeight()
| `- error: cannot find 'UIScreen' in scope
128 | }
129 | }
[12/21] Compiling AdaptiveModal ContentHeightViewModifier.swift
/Users/admin/builder/spi-builder-workspace/Sources/AdaptiveModal/ViewModifier/ContentHeightViewModifier.swift:14:41: error: 'View' is only available in macOS 10.15 or newer
8 | import SwiftUI
9 |
10 | struct ContentHeightViewModifier: ViewModifier {
| `- note: add @available attribute to enclosing struct
11 | let contentHeight: (Double) -> Void
12 | let safeAreaInsetBottom: (Double) -> Void
13 |
14 | 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
15 | contentView(content)
16 | }
/Users/admin/builder/spi-builder-workspace/Sources/AdaptiveModal/ViewModifier/ContentHeightViewModifier.swift:32:15: error: 'View' is only available in macOS 10.15 or newer
26 |
27 | // MARK: - View Extension
28 | extension View {
| `- note: add @available attribute to enclosing extension
29 | func contentHeight(
| `- note: add @available attribute to enclosing instance method
30 | contentHeight: @escaping (Double) -> Void,
31 | safeAreaInsetBottom: @escaping (Double) -> Void
32 | ) -> some View {
| `- error: 'View' is only available in macOS 10.15 or newer
33 | modifier(ContentHeightViewModifier(
34 | contentHeight: contentHeight,
/Users/admin/builder/spi-builder-workspace/Sources/AdaptiveModal/ViewModifier/ContentHeightViewModifier.swift:28:11: error: 'View' is only available in macOS 10.15 or newer
26 |
27 | // MARK: - View Extension
28 | extension View {
| | `- error: 'View' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing extension
29 | func contentHeight(
30 | contentHeight: @escaping (Double) -> Void,
/Users/admin/builder/spi-builder-workspace/Sources/AdaptiveModal/ViewModifier/ContentHeightViewModifier.swift:41:50: error: 'View' is only available in macOS 10.15 or newer
38 | }
39 |
40 | private extension ContentHeightViewModifier {
| `- note: add @available attribute to enclosing extension
41 | func contentView(_ content: Content) -> some View {
| | `- error: 'View' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing instance method
42 | content
43 | .background(
/Users/admin/builder/spi-builder-workspace/Sources/AdaptiveModal/ViewModifier/ContentHeightViewModifier.swift:33:9: warning: conformance of 'ModifiedContent<Content, Modifier>' to 'View' is only available in macOS 10.15 or newer; this is an error in the Swift 6 language mode
26 |
27 | // MARK: - View Extension
28 | extension View {
| `- note: add @available attribute to enclosing extension
29 | func contentHeight(
| `- note: add @available attribute to enclosing instance method
30 | contentHeight: @escaping (Double) -> Void,
31 | safeAreaInsetBottom: @escaping (Double) -> Void
32 | ) -> some View {
33 | modifier(ContentHeightViewModifier(
| |- 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 | contentHeight: contentHeight,
35 | safeAreaInsetBottom: safeAreaInsetBottom
/Users/admin/builder/spi-builder-workspace/Sources/AdaptiveModal/ViewModifier/ContentHeightViewModifier.swift:33:9: error: 'modifier' is only available in macOS 10.15 or newer
26 |
27 | // MARK: - View Extension
28 | extension View {
| `- note: add @available attribute to enclosing extension
29 | func contentHeight(
| `- note: add @available attribute to enclosing instance method
30 | contentHeight: @escaping (Double) -> Void,
31 | safeAreaInsetBottom: @escaping (Double) -> Void
32 | ) -> some View {
33 | modifier(ContentHeightViewModifier(
| |- error: 'modifier' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
34 | contentHeight: contentHeight,
35 | safeAreaInsetBottom: safeAreaInsetBottom
/Users/admin/builder/spi-builder-workspace/Sources/AdaptiveModal/ViewModifier/ContentHeightViewModifier.swift:44:17: error: generic parameter 'Content' could not be inferred
42 | content
43 | .background(
44 | GeometryReader { proxy in
| |- error: generic parameter 'Content' could not be inferred
| `- note: explicitly specify the generic arguments to fix this issue
45 | DispatchQueue.main.async {
46 | contentHeight(proxy.size.height)
/Users/admin/builder/spi-builder-workspace/Sources/AdaptiveModal/ViewModifier/ContentHeightViewModifier.swift:49:21: error: cannot use explicit 'return' statement in the body of result builder 'ViewBuilder'
47 | safeAreaInsetBottom(proxy.safeAreaInsets.bottom)
48 | }
49 | return Color.clear
| |- error: cannot use explicit 'return' statement in the body of result builder 'ViewBuilder'
| `- note: remove 'return' statements to apply the result builder
50 | }
51 | )
/Users/admin/builder/spi-builder-workspace/Sources/AdaptiveModal/ViewModifier/DraggableBackgroundViewModifier.swift:11:6: error: 'State' is only available in macOS 10.15 or newer
8 | import SwiftUI
9 |
10 | struct DraggableBackgroundViewModifier: ViewModifier {
| `- note: add @available attribute to enclosing struct
11 | @State private var translation: CGSize = .zero
| `- error: 'State' is only available in macOS 10.15 or newer
12 | @State private var contentHeight: Double = .zero
13 | @State private var safeAreaInsetBottom: Double = .zero
/Users/admin/builder/spi-builder-workspace/Sources/AdaptiveModal/ViewModifier/DraggableBackgroundViewModifier.swift:12:6: error: 'State' is only available in macOS 10.15 or newer
8 | import SwiftUI
9 |
10 | struct DraggableBackgroundViewModifier: ViewModifier {
| `- note: add @available attribute to enclosing struct
11 | @State private var translation: CGSize = .zero
12 | @State private var contentHeight: Double = .zero
| `- error: 'State' is only available in macOS 10.15 or newer
13 | @State private var safeAreaInsetBottom: Double = .zero
14 |
/Users/admin/builder/spi-builder-workspace/Sources/AdaptiveModal/ViewModifier/DraggableBackgroundViewModifier.swift:13:6: error: 'State' is only available in macOS 10.15 or newer
8 | import SwiftUI
9 |
10 | struct DraggableBackgroundViewModifier: ViewModifier {
| `- note: add @available attribute to enclosing struct
11 | @State private var translation: CGSize = .zero
12 | @State private var contentHeight: Double = .zero
13 | @State private var safeAreaInsetBottom: Double = .zero
| `- error: 'State' is only available in macOS 10.15 or newer
14 |
15 | private let cancelable: Bool
/Users/admin/builder/spi-builder-workspace/Sources/AdaptiveModal/ViewModifier/DraggableBackgroundViewModifier.swift:20:41: error: 'View' is only available in macOS 10.15 or newer
8 | import SwiftUI
9 |
10 | struct DraggableBackgroundViewModifier: ViewModifier {
| `- note: add @available attribute to enclosing struct
11 | @State private var translation: CGSize = .zero
12 | @State private var contentHeight: Double = .zero
:
18 | private var translatedHeight: Double { max(contentHeight + safeAreaInsetBottom, 100) * 1.1 }
19 |
20 | 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
21 | content
22 | .contentHeight(
/Users/admin/builder/spi-builder-workspace/Sources/AdaptiveModal/ViewModifier/DraggableBackgroundViewModifier.swift:74:15: error: 'View' is only available in macOS 10.15 or newer
67 |
68 | // MARK: - View Extension
69 | extension View {
| `- note: add @available attribute to enclosing extension
70 | func draggableBackground(
| `- note: add @available attribute to enclosing instance method
71 | cancelable: Bool,
72 | onDismiss: @escaping () -> Void,
73 | onTranslationHeightChanged: @escaping (Double) -> Void
74 | ) -> some View {
| `- error: 'View' is only available in macOS 10.15 or newer
75 | modifier(DraggableBackgroundViewModifier(
76 | cancelable: cancelable,
/Users/admin/builder/spi-builder-workspace/Sources/AdaptiveModal/ViewModifier/DraggableBackgroundViewModifier.swift:69:11: error: 'View' is only available in macOS 10.15 or newer
67 |
68 | // MARK: - View Extension
69 | extension View {
| | `- error: 'View' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing extension
70 | func draggableBackground(
71 | cancelable: Bool,
/Users/admin/builder/spi-builder-workspace/Sources/AdaptiveModal/ViewModifier/DraggableBackgroundViewModifier.swift:84:19: error: 'DragGesture' is only available in macOS 10.15 or newer
82 |
83 | // MARK: - Private DragGesture.Value Extension
84 | private extension DragGesture.Value {
| | `- error: 'DragGesture' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing extension
85 | func calculationTranslation() -> CGSize {
86 | if translation.height < 0.0 {
/Users/admin/builder/spi-builder-workspace/Sources/AdaptiveModal/ViewModifier/DraggableBackgroundViewModifier.swift:21:9: warning: conformance of 'ModifiedContent<Content, Modifier>' to 'View' is only available in macOS 10.15 or newer; this is an error in the Swift 6 language mode
8 | import SwiftUI
9 |
10 | struct DraggableBackgroundViewModifier: ViewModifier {
| `- note: add @available attribute to enclosing struct
11 | @State private var translation: CGSize = .zero
12 | @State private var contentHeight: Double = .zero
:
18 | private var translatedHeight: Double { max(contentHeight + safeAreaInsetBottom, 100) * 1.1 }
19 |
20 | func body(content: Content) -> some View {
| `- note: add @available attribute to enclosing instance method
21 | content
| |- 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
22 | .contentHeight(
23 | contentHeight: { contentHeight = $0 },
/Users/admin/builder/spi-builder-workspace/Sources/AdaptiveModal/ViewModifier/DraggableBackgroundViewModifier.swift:23:34: error: setter for 'contentHeight' is only available in macOS 10.15 or newer
8 | import SwiftUI
9 |
10 | struct DraggableBackgroundViewModifier: ViewModifier {
| `- note: add @available attribute to enclosing struct
11 | @State private var translation: CGSize = .zero
12 | @State private var contentHeight: Double = .zero
:
18 | private var translatedHeight: Double { max(contentHeight + safeAreaInsetBottom, 100) * 1.1 }
19 |
20 | func body(content: Content) -> some View {
| `- note: add @available attribute to enclosing instance method
21 | content
22 | .contentHeight(
23 | contentHeight: { contentHeight = $0 },
| |- error: setter for 'contentHeight' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
24 | safeAreaInsetBottom: { safeAreaInsetBottom = $0 }
25 | )
/Users/admin/builder/spi-builder-workspace/Sources/AdaptiveModal/ViewModifier/DraggableBackgroundViewModifier.swift:24:40: error: setter for 'safeAreaInsetBottom' is only available in macOS 10.15 or newer
8 | import SwiftUI
9 |
10 | struct DraggableBackgroundViewModifier: ViewModifier {
| `- note: add @available attribute to enclosing struct
11 | @State private var translation: CGSize = .zero
12 | @State private var contentHeight: Double = .zero
:
18 | private var translatedHeight: Double { max(contentHeight + safeAreaInsetBottom, 100) * 1.1 }
19 |
20 | func body(content: Content) -> some View {
| `- note: add @available attribute to enclosing instance method
21 | content
22 | .contentHeight(
23 | contentHeight: { contentHeight = $0 },
24 | safeAreaInsetBottom: { safeAreaInsetBottom = $0 }
| |- error: setter for 'safeAreaInsetBottom' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
25 | )
26 | .offset(translation.height > 0 ? translation : .zero)
/Users/admin/builder/spi-builder-workspace/Sources/AdaptiveModal/ViewModifier/DraggableBackgroundViewModifier.swift:26:14: error: 'offset' is only available in macOS 10.15 or newer
8 | import SwiftUI
9 |
10 | struct DraggableBackgroundViewModifier: ViewModifier {
| `- note: add @available attribute to enclosing struct
11 | @State private var translation: CGSize = .zero
12 | @State private var contentHeight: Double = .zero
:
18 | private var translatedHeight: Double { max(contentHeight + safeAreaInsetBottom, 100) * 1.1 }
19 |
20 | func body(content: Content) -> some View {
| `- note: add @available attribute to enclosing instance method
21 | content
22 | .contentHeight(
:
24 | safeAreaInsetBottom: { safeAreaInsetBottom = $0 }
25 | )
26 | .offset(translation.height > 0 ? translation : .zero)
| |- error: 'offset' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
27 | .upperRoundedBackground(offset: $translation)
28 | .gesture(
/Users/admin/builder/spi-builder-workspace/Sources/AdaptiveModal/ViewModifier/DraggableBackgroundViewModifier.swift:28:14: error: 'gesture(_:including:)' is only available in macOS 10.15 or newer
8 | import SwiftUI
9 |
10 | struct DraggableBackgroundViewModifier: ViewModifier {
| `- note: add @available attribute to enclosing struct
11 | @State private var translation: CGSize = .zero
12 | @State private var contentHeight: Double = .zero
:
18 | private var translatedHeight: Double { max(contentHeight + safeAreaInsetBottom, 100) * 1.1 }
19 |
20 | func body(content: Content) -> some View {
| `- note: add @available attribute to enclosing instance method
21 | content
22 | .contentHeight(
:
26 | .offset(translation.height > 0 ? translation : .zero)
27 | .upperRoundedBackground(offset: $translation)
28 | .gesture(
| |- error: 'gesture(_:including:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
29 | DragGesture()
30 | .onChanged { gesture in
/Users/admin/builder/spi-builder-workspace/Sources/AdaptiveModal/ViewModifier/DraggableBackgroundViewModifier.swift:29:17: error: 'DragGesture' is only available in macOS 10.15 or newer
8 | import SwiftUI
9 |
10 | struct DraggableBackgroundViewModifier: ViewModifier {
| `- note: add @available attribute to enclosing struct
11 | @State private var translation: CGSize = .zero
12 | @State private var contentHeight: Double = .zero
:
18 | private var translatedHeight: Double { max(contentHeight + safeAreaInsetBottom, 100) * 1.1 }
19 |
20 | func body(content: Content) -> some View {
| `- note: add @available attribute to enclosing instance method
21 | content
22 | .contentHeight(
:
27 | .upperRoundedBackground(offset: $translation)
28 | .gesture(
29 | DragGesture()
| |- error: 'DragGesture' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
30 | .onChanged { gesture in
31 | translation = gesture.calculationTranslation()
/Users/admin/builder/spi-builder-workspace/Sources/AdaptiveModal/ViewModifier/DraggableBackgroundViewModifier.swift:29:17: error: 'init(minimumDistance:coordinateSpace:)' is only available in macOS 14.0 or newer
8 | import SwiftUI
9 |
10 | struct DraggableBackgroundViewModifier: ViewModifier {
| `- note: add @available attribute to enclosing struct
11 | @State private var translation: CGSize = .zero
12 | @State private var contentHeight: Double = .zero
:
18 | private var translatedHeight: Double { max(contentHeight + safeAreaInsetBottom, 100) * 1.1 }
19 |
20 | func body(content: Content) -> some View {
| `- note: add @available attribute to enclosing instance method
21 | content
22 | .contentHeight(
:
27 | .upperRoundedBackground(offset: $translation)
28 | .gesture(
29 | DragGesture()
| |- error: 'init(minimumDistance:coordinateSpace:)' is only available in macOS 14.0 or newer
| `- note: add 'if #available' version check
30 | .onChanged { gesture in
31 | translation = gesture.calculationTranslation()
/Users/admin/builder/spi-builder-workspace/Sources/AdaptiveModal/ViewModifier/DraggableBackgroundViewModifier.swift:30:22: error: 'onChanged' is only available in macOS 10.15 or newer
8 | import SwiftUI
9 |
10 | struct DraggableBackgroundViewModifier: ViewModifier {
| `- note: add @available attribute to enclosing struct
11 | @State private var translation: CGSize = .zero
12 | @State private var contentHeight: Double = .zero
:
18 | private var translatedHeight: Double { max(contentHeight + safeAreaInsetBottom, 100) * 1.1 }
19 |
20 | func body(content: Content) -> some View {
| `- note: add @available attribute to enclosing instance method
21 | content
22 | .contentHeight(
:
28 | .gesture(
29 | DragGesture()
30 | .onChanged { gesture in
| |- error: 'onChanged' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
31 | translation = gesture.calculationTranslation()
32 | }
/Users/admin/builder/spi-builder-workspace/Sources/AdaptiveModal/ViewModifier/DraggableBackgroundViewModifier.swift:31:25: error: setter for 'translation' is only available in macOS 10.15 or newer
8 | import SwiftUI
9 |
10 | struct DraggableBackgroundViewModifier: ViewModifier {
| `- note: add @available attribute to enclosing struct
11 | @State private var translation: CGSize = .zero
12 | @State private var contentHeight: Double = .zero
:
18 | private var translatedHeight: Double { max(contentHeight + safeAreaInsetBottom, 100) * 1.1 }
19 |
20 | func body(content: Content) -> some View {
| `- note: add @available attribute to enclosing instance method
21 | content
22 | .contentHeight(
:
29 | DragGesture()
30 | .onChanged { gesture in
31 | translation = gesture.calculationTranslation()
| |- error: setter for 'translation' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
32 | }
33 | .onEnded { gesture in
/Users/admin/builder/spi-builder-workspace/Sources/AdaptiveModal/ViewModifier/DraggableBackgroundViewModifier.swift:33:22: error: 'onEnded' is only available in macOS 10.15 or newer
8 | import SwiftUI
9 |
10 | struct DraggableBackgroundViewModifier: ViewModifier {
| `- note: add @available attribute to enclosing struct
11 | @State private var translation: CGSize = .zero
12 | @State private var contentHeight: Double = .zero
:
18 | private var translatedHeight: Double { max(contentHeight + safeAreaInsetBottom, 100) * 1.1 }
19 |
20 | func body(content: Content) -> some View {
| `- note: add @available attribute to enclosing instance method
21 | content
22 | .contentHeight(
:
31 | translation = gesture.calculationTranslation()
32 | }
33 | .onEnded { gesture in
| |- error: 'onEnded' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
34 | if cancelable && gesture.requireDismiss(contentHeight: contentHeight) {
35 | withAnimation(.easeOut) {
/Users/admin/builder/spi-builder-workspace/Sources/AdaptiveModal/ViewModifier/DraggableBackgroundViewModifier.swift:35:29: error: 'withAnimation' is only available in macOS 10.15 or newer
8 | import SwiftUI
9 |
10 | struct DraggableBackgroundViewModifier: ViewModifier {
| `- note: add @available attribute to enclosing struct
11 | @State private var translation: CGSize = .zero
12 | @State private var contentHeight: Double = .zero
:
18 | private var translatedHeight: Double { max(contentHeight + safeAreaInsetBottom, 100) * 1.1 }
19 |
20 | func body(content: Content) -> some View {
| `- note: add @available attribute to enclosing instance method
21 | content
22 | .contentHeight(
:
33 | .onEnded { gesture in
34 | if cancelable && gesture.requireDismiss(contentHeight: contentHeight) {
35 | withAnimation(.easeOut) {
| |- error: 'withAnimation' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
36 | translation = CGSize(
37 | width: .zero,
/Users/admin/builder/spi-builder-workspace/Sources/AdaptiveModal/ViewModifier/DraggableBackgroundViewModifier.swift:35:44: error: 'easeOut' is only available in macOS 10.15 or newer
8 | import SwiftUI
9 |
10 | struct DraggableBackgroundViewModifier: ViewModifier {
| `- note: add @available attribute to enclosing struct
11 | @State private var translation: CGSize = .zero
12 | @State private var contentHeight: Double = .zero
:
18 | private var translatedHeight: Double { max(contentHeight + safeAreaInsetBottom, 100) * 1.1 }
19 |
20 | func body(content: Content) -> some View {
| `- note: add @available attribute to enclosing instance method
21 | content
22 | .contentHeight(
:
33 | .onEnded { gesture in
34 | if cancelable && gesture.requireDismiss(contentHeight: contentHeight) {
35 | withAnimation(.easeOut) {
| |- error: 'easeOut' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
36 | translation = CGSize(
37 | width: .zero,
/Users/admin/builder/spi-builder-workspace/Sources/AdaptiveModal/ViewModifier/DraggableBackgroundViewModifier.swift:36:33: error: setter for 'translation' is only available in macOS 10.15 or newer
8 | import SwiftUI
9 |
10 | struct DraggableBackgroundViewModifier: ViewModifier {
| `- note: add @available attribute to enclosing struct
11 | @State private var translation: CGSize = .zero
12 | @State private var contentHeight: Double = .zero
:
18 | private var translatedHeight: Double { max(contentHeight + safeAreaInsetBottom, 100) * 1.1 }
19 |
20 | func body(content: Content) -> some View {
| `- note: add @available attribute to enclosing instance method
21 | content
22 | .contentHeight(
:
34 | if cancelable && gesture.requireDismiss(contentHeight: contentHeight) {
35 | withAnimation(.easeOut) {
36 | translation = CGSize(
| |- error: setter for 'translation' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
37 | width: .zero,
38 | height: translatedHeight
/Users/admin/builder/spi-builder-workspace/Sources/AdaptiveModal/ViewModifier/DraggableBackgroundViewModifier.swift:42:29: error: 'withAnimation' is only available in macOS 10.15 or newer
8 | import SwiftUI
9 |
10 | struct DraggableBackgroundViewModifier: ViewModifier {
| `- note: add @available attribute to enclosing struct
11 | @State private var translation: CGSize = .zero
12 | @State private var contentHeight: Double = .zero
:
18 | private var translatedHeight: Double { max(contentHeight + safeAreaInsetBottom, 100) * 1.1 }
19 |
20 | func body(content: Content) -> some View {
| `- note: add @available attribute to enclosing instance method
21 | content
22 | .contentHeight(
:
40 | }
41 | } else {
42 | withAnimation(.interpolatingSpring) {
| |- error: 'withAnimation' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
43 | translation = .zero
44 | }
/Users/admin/builder/spi-builder-workspace/Sources/AdaptiveModal/ViewModifier/DraggableBackgroundViewModifier.swift:42:44: error: 'interpolatingSpring' is only available in macOS 10.15 or newer
8 | import SwiftUI
9 |
10 | struct DraggableBackgroundViewModifier: ViewModifier {
| `- note: add @available attribute to enclosing struct
11 | @State private var translation: CGSize = .zero
12 | @State private var contentHeight: Double = .zero
:
18 | private var translatedHeight: Double { max(contentHeight + safeAreaInsetBottom, 100) * 1.1 }
19 |
20 | func body(content: Content) -> some View {
| `- note: add @available attribute to enclosing instance method
21 | content
22 | .contentHeight(
:
40 | }
41 | } else {
42 | withAnimation(.interpolatingSpring) {
| |- error: 'interpolatingSpring' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
43 | translation = .zero
44 | }
/Users/admin/builder/spi-builder-workspace/Sources/AdaptiveModal/ViewModifier/DraggableBackgroundViewModifier.swift:43:33: error: setter for 'translation' is only available in macOS 10.15 or newer
8 | import SwiftUI
9 |
10 | struct DraggableBackgroundViewModifier: ViewModifier {
| `- note: add @available attribute to enclosing struct
11 | @State private var translation: CGSize = .zero
12 | @State private var contentHeight: Double = .zero
:
18 | private var translatedHeight: Double { max(contentHeight + safeAreaInsetBottom, 100) * 1.1 }
19 |
20 | func body(content: Content) -> some View {
| `- note: add @available attribute to enclosing instance method
21 | content
22 | .contentHeight(
:
41 | } else {
42 | withAnimation(.interpolatingSpring) {
43 | translation = .zero
| |- error: setter for 'translation' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
44 | }
45 | }
/Users/admin/builder/spi-builder-workspace/Sources/AdaptiveModal/ViewModifier/DraggableBackgroundViewModifier.swift:48:14: warning: conformance of 'CGFloat' to 'VectorArithmetic' is only available in macOS 10.15 or newer; this is an error in the Swift 6 language mode
8 | import SwiftUI
9 |
10 | struct DraggableBackgroundViewModifier: ViewModifier {
| `- note: add @available attribute to enclosing struct
11 | @State private var translation: CGSize = .zero
12 | @State private var contentHeight: Double = .zero
:
18 | private var translatedHeight: Double { max(contentHeight + safeAreaInsetBottom, 100) * 1.1 }
19 |
20 | func body(content: Content) -> some View {
| `- note: add @available attribute to enclosing instance method
21 | content
22 | .contentHeight(
:
46 | }
47 | )
48 | .onAnimationCompleted(for: translation.height) {
| |- warning: conformance of 'CGFloat' to 'VectorArithmetic' 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 | if translation.height >= translatedHeight {
50 | onDismiss()
/Users/admin/builder/spi-builder-workspace/Sources/AdaptiveModal/ViewModifier/DraggableBackgroundViewModifier.swift:20:46: warning: conformance of 'ModifiedContent<Content, Modifier>' to 'View' is only available in macOS 10.15 or newer; this is an error in the Swift 6 language mode
8 | import SwiftUI
9 |
10 | struct DraggableBackgroundViewModifier: ViewModifier {
| `- note: add @available attribute to enclosing struct
11 | @State private var translation: CGSize = .zero
12 | @State private var contentHeight: Double = .zero
:
18 | private var translatedHeight: Double { max(contentHeight + safeAreaInsetBottom, 100) * 1.1 }
19 |
20 | func body(content: Content) -> some View {
| | |- warning: conformance of 'ModifiedContent<Content, Modifier>' to 'View' is only available in macOS 10.15 or newer; this is an error in the Swift 6 language mode
| | `- note: add 'if #available' version check
| `- note: add @available attribute to enclosing instance method
21 | content
22 | .contentHeight(
/Users/admin/builder/spi-builder-workspace/Sources/AdaptiveModal/ViewModifier/DraggableBackgroundViewModifier.swift:75:9: warning: conformance of 'ModifiedContent<Content, Modifier>' to 'View' is only available in macOS 10.15 or newer; this is an error in the Swift 6 language mode
67 |
68 | // MARK: - View Extension
69 | extension View {
| `- note: add @available attribute to enclosing extension
70 | func draggableBackground(
| `- note: add @available attribute to enclosing instance method
71 | cancelable: Bool,
72 | onDismiss: @escaping () -> Void,
73 | onTranslationHeightChanged: @escaping (Double) -> Void
74 | ) -> some View {
75 | modifier(DraggableBackgroundViewModifier(
| |- 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
76 | cancelable: cancelable,
77 | onDismiss: onDismiss,
/Users/admin/builder/spi-builder-workspace/Sources/AdaptiveModal/ViewModifier/DraggableBackgroundViewModifier.swift:75:9: error: 'modifier' is only available in macOS 10.15 or newer
67 |
68 | // MARK: - View Extension
69 | extension View {
| `- note: add @available attribute to enclosing extension
70 | func draggableBackground(
| `- note: add @available attribute to enclosing instance method
71 | cancelable: Bool,
72 | onDismiss: @escaping () -> Void,
73 | onTranslationHeightChanged: @escaping (Double) -> Void
74 | ) -> some View {
75 | modifier(DraggableBackgroundViewModifier(
| |- error: 'modifier' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
76 | cancelable: cancelable,
77 | onDismiss: onDismiss,
[13/21] Compiling AdaptiveModal DraggableBackgroundViewModifier.swift
/Users/admin/builder/spi-builder-workspace/Sources/AdaptiveModal/ViewModifier/ContentHeightViewModifier.swift:14:41: error: 'View' is only available in macOS 10.15 or newer
8 | import SwiftUI
9 |
10 | struct ContentHeightViewModifier: ViewModifier {
| `- note: add @available attribute to enclosing struct
11 | let contentHeight: (Double) -> Void
12 | let safeAreaInsetBottom: (Double) -> Void
13 |
14 | 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
15 | contentView(content)
16 | }
/Users/admin/builder/spi-builder-workspace/Sources/AdaptiveModal/ViewModifier/ContentHeightViewModifier.swift:32:15: error: 'View' is only available in macOS 10.15 or newer
26 |
27 | // MARK: - View Extension
28 | extension View {
| `- note: add @available attribute to enclosing extension
29 | func contentHeight(
| `- note: add @available attribute to enclosing instance method
30 | contentHeight: @escaping (Double) -> Void,
31 | safeAreaInsetBottom: @escaping (Double) -> Void
32 | ) -> some View {
| `- error: 'View' is only available in macOS 10.15 or newer
33 | modifier(ContentHeightViewModifier(
34 | contentHeight: contentHeight,
/Users/admin/builder/spi-builder-workspace/Sources/AdaptiveModal/ViewModifier/ContentHeightViewModifier.swift:28:11: error: 'View' is only available in macOS 10.15 or newer
26 |
27 | // MARK: - View Extension
28 | extension View {
| | `- error: 'View' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing extension
29 | func contentHeight(
30 | contentHeight: @escaping (Double) -> Void,
/Users/admin/builder/spi-builder-workspace/Sources/AdaptiveModal/ViewModifier/ContentHeightViewModifier.swift:41:50: error: 'View' is only available in macOS 10.15 or newer
38 | }
39 |
40 | private extension ContentHeightViewModifier {
| `- note: add @available attribute to enclosing extension
41 | func contentView(_ content: Content) -> some View {
| | `- error: 'View' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing instance method
42 | content
43 | .background(
/Users/admin/builder/spi-builder-workspace/Sources/AdaptiveModal/ViewModifier/ContentHeightViewModifier.swift:33:9: warning: conformance of 'ModifiedContent<Content, Modifier>' to 'View' is only available in macOS 10.15 or newer; this is an error in the Swift 6 language mode
26 |
27 | // MARK: - View Extension
28 | extension View {
| `- note: add @available attribute to enclosing extension
29 | func contentHeight(
| `- note: add @available attribute to enclosing instance method
30 | contentHeight: @escaping (Double) -> Void,
31 | safeAreaInsetBottom: @escaping (Double) -> Void
32 | ) -> some View {
33 | modifier(ContentHeightViewModifier(
| |- 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 | contentHeight: contentHeight,
35 | safeAreaInsetBottom: safeAreaInsetBottom
/Users/admin/builder/spi-builder-workspace/Sources/AdaptiveModal/ViewModifier/ContentHeightViewModifier.swift:33:9: error: 'modifier' is only available in macOS 10.15 or newer
26 |
27 | // MARK: - View Extension
28 | extension View {
| `- note: add @available attribute to enclosing extension
29 | func contentHeight(
| `- note: add @available attribute to enclosing instance method
30 | contentHeight: @escaping (Double) -> Void,
31 | safeAreaInsetBottom: @escaping (Double) -> Void
32 | ) -> some View {
33 | modifier(ContentHeightViewModifier(
| |- error: 'modifier' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
34 | contentHeight: contentHeight,
35 | safeAreaInsetBottom: safeAreaInsetBottom
/Users/admin/builder/spi-builder-workspace/Sources/AdaptiveModal/ViewModifier/ContentHeightViewModifier.swift:44:17: error: generic parameter 'Content' could not be inferred
42 | content
43 | .background(
44 | GeometryReader { proxy in
| |- error: generic parameter 'Content' could not be inferred
| `- note: explicitly specify the generic arguments to fix this issue
45 | DispatchQueue.main.async {
46 | contentHeight(proxy.size.height)
/Users/admin/builder/spi-builder-workspace/Sources/AdaptiveModal/ViewModifier/ContentHeightViewModifier.swift:49:21: error: cannot use explicit 'return' statement in the body of result builder 'ViewBuilder'
47 | safeAreaInsetBottom(proxy.safeAreaInsets.bottom)
48 | }
49 | return Color.clear
| |- error: cannot use explicit 'return' statement in the body of result builder 'ViewBuilder'
| `- note: remove 'return' statements to apply the result builder
50 | }
51 | )
/Users/admin/builder/spi-builder-workspace/Sources/AdaptiveModal/ViewModifier/DraggableBackgroundViewModifier.swift:11:6: error: 'State' is only available in macOS 10.15 or newer
8 | import SwiftUI
9 |
10 | struct DraggableBackgroundViewModifier: ViewModifier {
| `- note: add @available attribute to enclosing struct
11 | @State private var translation: CGSize = .zero
| `- error: 'State' is only available in macOS 10.15 or newer
12 | @State private var contentHeight: Double = .zero
13 | @State private var safeAreaInsetBottom: Double = .zero
/Users/admin/builder/spi-builder-workspace/Sources/AdaptiveModal/ViewModifier/DraggableBackgroundViewModifier.swift:12:6: error: 'State' is only available in macOS 10.15 or newer
8 | import SwiftUI
9 |
10 | struct DraggableBackgroundViewModifier: ViewModifier {
| `- note: add @available attribute to enclosing struct
11 | @State private var translation: CGSize = .zero
12 | @State private var contentHeight: Double = .zero
| `- error: 'State' is only available in macOS 10.15 or newer
13 | @State private var safeAreaInsetBottom: Double = .zero
14 |
/Users/admin/builder/spi-builder-workspace/Sources/AdaptiveModal/ViewModifier/DraggableBackgroundViewModifier.swift:13:6: error: 'State' is only available in macOS 10.15 or newer
8 | import SwiftUI
9 |
10 | struct DraggableBackgroundViewModifier: ViewModifier {
| `- note: add @available attribute to enclosing struct
11 | @State private var translation: CGSize = .zero
12 | @State private var contentHeight: Double = .zero
13 | @State private var safeAreaInsetBottom: Double = .zero
| `- error: 'State' is only available in macOS 10.15 or newer
14 |
15 | private let cancelable: Bool
/Users/admin/builder/spi-builder-workspace/Sources/AdaptiveModal/ViewModifier/DraggableBackgroundViewModifier.swift:20:41: error: 'View' is only available in macOS 10.15 or newer
8 | import SwiftUI
9 |
10 | struct DraggableBackgroundViewModifier: ViewModifier {
| `- note: add @available attribute to enclosing struct
11 | @State private var translation: CGSize = .zero
12 | @State private var contentHeight: Double = .zero
:
18 | private var translatedHeight: Double { max(contentHeight + safeAreaInsetBottom, 100) * 1.1 }
19 |
20 | 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
21 | content
22 | .contentHeight(
/Users/admin/builder/spi-builder-workspace/Sources/AdaptiveModal/ViewModifier/DraggableBackgroundViewModifier.swift:74:15: error: 'View' is only available in macOS 10.15 or newer
67 |
68 | // MARK: - View Extension
69 | extension View {
| `- note: add @available attribute to enclosing extension
70 | func draggableBackground(
| `- note: add @available attribute to enclosing instance method
71 | cancelable: Bool,
72 | onDismiss: @escaping () -> Void,
73 | onTranslationHeightChanged: @escaping (Double) -> Void
74 | ) -> some View {
| `- error: 'View' is only available in macOS 10.15 or newer
75 | modifier(DraggableBackgroundViewModifier(
76 | cancelable: cancelable,
/Users/admin/builder/spi-builder-workspace/Sources/AdaptiveModal/ViewModifier/DraggableBackgroundViewModifier.swift:69:11: error: 'View' is only available in macOS 10.15 or newer
67 |
68 | // MARK: - View Extension
69 | extension View {
| | `- error: 'View' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing extension
70 | func draggableBackground(
71 | cancelable: Bool,
/Users/admin/builder/spi-builder-workspace/Sources/AdaptiveModal/ViewModifier/DraggableBackgroundViewModifier.swift:84:19: error: 'DragGesture' is only available in macOS 10.15 or newer
82 |
83 | // MARK: - Private DragGesture.Value Extension
84 | private extension DragGesture.Value {
| | `- error: 'DragGesture' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing extension
85 | func calculationTranslation() -> CGSize {
86 | if translation.height < 0.0 {
/Users/admin/builder/spi-builder-workspace/Sources/AdaptiveModal/ViewModifier/DraggableBackgroundViewModifier.swift:21:9: warning: conformance of 'ModifiedContent<Content, Modifier>' to 'View' is only available in macOS 10.15 or newer; this is an error in the Swift 6 language mode
8 | import SwiftUI
9 |
10 | struct DraggableBackgroundViewModifier: ViewModifier {
| `- note: add @available attribute to enclosing struct
11 | @State private var translation: CGSize = .zero
12 | @State private var contentHeight: Double = .zero
:
18 | private var translatedHeight: Double { max(contentHeight + safeAreaInsetBottom, 100) * 1.1 }
19 |
20 | func body(content: Content) -> some View {
| `- note: add @available attribute to enclosing instance method
21 | content
| |- 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
22 | .contentHeight(
23 | contentHeight: { contentHeight = $0 },
/Users/admin/builder/spi-builder-workspace/Sources/AdaptiveModal/ViewModifier/DraggableBackgroundViewModifier.swift:23:34: error: setter for 'contentHeight' is only available in macOS 10.15 or newer
8 | import SwiftUI
9 |
10 | struct DraggableBackgroundViewModifier: ViewModifier {
| `- note: add @available attribute to enclosing struct
11 | @State private var translation: CGSize = .zero
12 | @State private var contentHeight: Double = .zero
:
18 | private var translatedHeight: Double { max(contentHeight + safeAreaInsetBottom, 100) * 1.1 }
19 |
20 | func body(content: Content) -> some View {
| `- note: add @available attribute to enclosing instance method
21 | content
22 | .contentHeight(
23 | contentHeight: { contentHeight = $0 },
| |- error: setter for 'contentHeight' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
24 | safeAreaInsetBottom: { safeAreaInsetBottom = $0 }
25 | )
/Users/admin/builder/spi-builder-workspace/Sources/AdaptiveModal/ViewModifier/DraggableBackgroundViewModifier.swift:24:40: error: setter for 'safeAreaInsetBottom' is only available in macOS 10.15 or newer
8 | import SwiftUI
9 |
10 | struct DraggableBackgroundViewModifier: ViewModifier {
| `- note: add @available attribute to enclosing struct
11 | @State private var translation: CGSize = .zero
12 | @State private var contentHeight: Double = .zero
:
18 | private var translatedHeight: Double { max(contentHeight + safeAreaInsetBottom, 100) * 1.1 }
19 |
20 | func body(content: Content) -> some View {
| `- note: add @available attribute to enclosing instance method
21 | content
22 | .contentHeight(
23 | contentHeight: { contentHeight = $0 },
24 | safeAreaInsetBottom: { safeAreaInsetBottom = $0 }
| |- error: setter for 'safeAreaInsetBottom' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
25 | )
26 | .offset(translation.height > 0 ? translation : .zero)
/Users/admin/builder/spi-builder-workspace/Sources/AdaptiveModal/ViewModifier/DraggableBackgroundViewModifier.swift:26:14: error: 'offset' is only available in macOS 10.15 or newer
8 | import SwiftUI
9 |
10 | struct DraggableBackgroundViewModifier: ViewModifier {
| `- note: add @available attribute to enclosing struct
11 | @State private var translation: CGSize = .zero
12 | @State private var contentHeight: Double = .zero
:
18 | private var translatedHeight: Double { max(contentHeight + safeAreaInsetBottom, 100) * 1.1 }
19 |
20 | func body(content: Content) -> some View {
| `- note: add @available attribute to enclosing instance method
21 | content
22 | .contentHeight(
:
24 | safeAreaInsetBottom: { safeAreaInsetBottom = $0 }
25 | )
26 | .offset(translation.height > 0 ? translation : .zero)
| |- error: 'offset' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
27 | .upperRoundedBackground(offset: $translation)
28 | .gesture(
/Users/admin/builder/spi-builder-workspace/Sources/AdaptiveModal/ViewModifier/DraggableBackgroundViewModifier.swift:28:14: error: 'gesture(_:including:)' is only available in macOS 10.15 or newer
8 | import SwiftUI
9 |
10 | struct DraggableBackgroundViewModifier: ViewModifier {
| `- note: add @available attribute to enclosing struct
11 | @State private var translation: CGSize = .zero
12 | @State private var contentHeight: Double = .zero
:
18 | private var translatedHeight: Double { max(contentHeight + safeAreaInsetBottom, 100) * 1.1 }
19 |
20 | func body(content: Content) -> some View {
| `- note: add @available attribute to enclosing instance method
21 | content
22 | .contentHeight(
:
26 | .offset(translation.height > 0 ? translation : .zero)
27 | .upperRoundedBackground(offset: $translation)
28 | .gesture(
| |- error: 'gesture(_:including:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
29 | DragGesture()
30 | .onChanged { gesture in
/Users/admin/builder/spi-builder-workspace/Sources/AdaptiveModal/ViewModifier/DraggableBackgroundViewModifier.swift:29:17: error: 'DragGesture' is only available in macOS 10.15 or newer
8 | import SwiftUI
9 |
10 | struct DraggableBackgroundViewModifier: ViewModifier {
| `- note: add @available attribute to enclosing struct
11 | @State private var translation: CGSize = .zero
12 | @State private var contentHeight: Double = .zero
:
18 | private var translatedHeight: Double { max(contentHeight + safeAreaInsetBottom, 100) * 1.1 }
19 |
20 | func body(content: Content) -> some View {
| `- note: add @available attribute to enclosing instance method
21 | content
22 | .contentHeight(
:
27 | .upperRoundedBackground(offset: $translation)
28 | .gesture(
29 | DragGesture()
| |- error: 'DragGesture' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
30 | .onChanged { gesture in
31 | translation = gesture.calculationTranslation()
/Users/admin/builder/spi-builder-workspace/Sources/AdaptiveModal/ViewModifier/DraggableBackgroundViewModifier.swift:29:17: error: 'init(minimumDistance:coordinateSpace:)' is only available in macOS 14.0 or newer
8 | import SwiftUI
9 |
10 | struct DraggableBackgroundViewModifier: ViewModifier {
| `- note: add @available attribute to enclosing struct
11 | @State private var translation: CGSize = .zero
12 | @State private var contentHeight: Double = .zero
:
18 | private var translatedHeight: Double { max(contentHeight + safeAreaInsetBottom, 100) * 1.1 }
19 |
20 | func body(content: Content) -> some View {
| `- note: add @available attribute to enclosing instance method
21 | content
22 | .contentHeight(
:
27 | .upperRoundedBackground(offset: $translation)
28 | .gesture(
29 | DragGesture()
| |- error: 'init(minimumDistance:coordinateSpace:)' is only available in macOS 14.0 or newer
| `- note: add 'if #available' version check
30 | .onChanged { gesture in
31 | translation = gesture.calculationTranslation()
/Users/admin/builder/spi-builder-workspace/Sources/AdaptiveModal/ViewModifier/DraggableBackgroundViewModifier.swift:30:22: error: 'onChanged' is only available in macOS 10.15 or newer
8 | import SwiftUI
9 |
10 | struct DraggableBackgroundViewModifier: ViewModifier {
| `- note: add @available attribute to enclosing struct
11 | @State private var translation: CGSize = .zero
12 | @State private var contentHeight: Double = .zero
:
18 | private var translatedHeight: Double { max(contentHeight + safeAreaInsetBottom, 100) * 1.1 }
19 |
20 | func body(content: Content) -> some View {
| `- note: add @available attribute to enclosing instance method
21 | content
22 | .contentHeight(
:
28 | .gesture(
29 | DragGesture()
30 | .onChanged { gesture in
| |- error: 'onChanged' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
31 | translation = gesture.calculationTranslation()
32 | }
/Users/admin/builder/spi-builder-workspace/Sources/AdaptiveModal/ViewModifier/DraggableBackgroundViewModifier.swift:31:25: error: setter for 'translation' is only available in macOS 10.15 or newer
8 | import SwiftUI
9 |
10 | struct DraggableBackgroundViewModifier: ViewModifier {
| `- note: add @available attribute to enclosing struct
11 | @State private var translation: CGSize = .zero
12 | @State private var contentHeight: Double = .zero
:
18 | private var translatedHeight: Double { max(contentHeight + safeAreaInsetBottom, 100) * 1.1 }
19 |
20 | func body(content: Content) -> some View {
| `- note: add @available attribute to enclosing instance method
21 | content
22 | .contentHeight(
:
29 | DragGesture()
30 | .onChanged { gesture in
31 | translation = gesture.calculationTranslation()
| |- error: setter for 'translation' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
32 | }
33 | .onEnded { gesture in
/Users/admin/builder/spi-builder-workspace/Sources/AdaptiveModal/ViewModifier/DraggableBackgroundViewModifier.swift:33:22: error: 'onEnded' is only available in macOS 10.15 or newer
8 | import SwiftUI
9 |
10 | struct DraggableBackgroundViewModifier: ViewModifier {
| `- note: add @available attribute to enclosing struct
11 | @State private var translation: CGSize = .zero
12 | @State private var contentHeight: Double = .zero
:
18 | private var translatedHeight: Double { max(contentHeight + safeAreaInsetBottom, 100) * 1.1 }
19 |
20 | func body(content: Content) -> some View {
| `- note: add @available attribute to enclosing instance method
21 | content
22 | .contentHeight(
:
31 | translation = gesture.calculationTranslation()
32 | }
33 | .onEnded { gesture in
| |- error: 'onEnded' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
34 | if cancelable && gesture.requireDismiss(contentHeight: contentHeight) {
35 | withAnimation(.easeOut) {
/Users/admin/builder/spi-builder-workspace/Sources/AdaptiveModal/ViewModifier/DraggableBackgroundViewModifier.swift:35:29: error: 'withAnimation' is only available in macOS 10.15 or newer
8 | import SwiftUI
9 |
10 | struct DraggableBackgroundViewModifier: ViewModifier {
| `- note: add @available attribute to enclosing struct
11 | @State private var translation: CGSize = .zero
12 | @State private var contentHeight: Double = .zero
:
18 | private var translatedHeight: Double { max(contentHeight + safeAreaInsetBottom, 100) * 1.1 }
19 |
20 | func body(content: Content) -> some View {
| `- note: add @available attribute to enclosing instance method
21 | content
22 | .contentHeight(
:
33 | .onEnded { gesture in
34 | if cancelable && gesture.requireDismiss(contentHeight: contentHeight) {
35 | withAnimation(.easeOut) {
| |- error: 'withAnimation' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
36 | translation = CGSize(
37 | width: .zero,
/Users/admin/builder/spi-builder-workspace/Sources/AdaptiveModal/ViewModifier/DraggableBackgroundViewModifier.swift:35:44: error: 'easeOut' is only available in macOS 10.15 or newer
8 | import SwiftUI
9 |
10 | struct DraggableBackgroundViewModifier: ViewModifier {
| `- note: add @available attribute to enclosing struct
11 | @State private var translation: CGSize = .zero
12 | @State private var contentHeight: Double = .zero
:
18 | private var translatedHeight: Double { max(contentHeight + safeAreaInsetBottom, 100) * 1.1 }
19 |
20 | func body(content: Content) -> some View {
| `- note: add @available attribute to enclosing instance method
21 | content
22 | .contentHeight(
:
33 | .onEnded { gesture in
34 | if cancelable && gesture.requireDismiss(contentHeight: contentHeight) {
35 | withAnimation(.easeOut) {
| |- error: 'easeOut' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
36 | translation = CGSize(
37 | width: .zero,
/Users/admin/builder/spi-builder-workspace/Sources/AdaptiveModal/ViewModifier/DraggableBackgroundViewModifier.swift:36:33: error: setter for 'translation' is only available in macOS 10.15 or newer
8 | import SwiftUI
9 |
10 | struct DraggableBackgroundViewModifier: ViewModifier {
| `- note: add @available attribute to enclosing struct
11 | @State private var translation: CGSize = .zero
12 | @State private var contentHeight: Double = .zero
:
18 | private var translatedHeight: Double { max(contentHeight + safeAreaInsetBottom, 100) * 1.1 }
19 |
20 | func body(content: Content) -> some View {
| `- note: add @available attribute to enclosing instance method
21 | content
22 | .contentHeight(
:
34 | if cancelable && gesture.requireDismiss(contentHeight: contentHeight) {
35 | withAnimation(.easeOut) {
36 | translation = CGSize(
| |- error: setter for 'translation' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
37 | width: .zero,
38 | height: translatedHeight
/Users/admin/builder/spi-builder-workspace/Sources/AdaptiveModal/ViewModifier/DraggableBackgroundViewModifier.swift:42:29: error: 'withAnimation' is only available in macOS 10.15 or newer
8 | import SwiftUI
9 |
10 | struct DraggableBackgroundViewModifier: ViewModifier {
| `- note: add @available attribute to enclosing struct
11 | @State private var translation: CGSize = .zero
12 | @State private var contentHeight: Double = .zero
:
18 | private var translatedHeight: Double { max(contentHeight + safeAreaInsetBottom, 100) * 1.1 }
19 |
20 | func body(content: Content) -> some View {
| `- note: add @available attribute to enclosing instance method
21 | content
22 | .contentHeight(
:
40 | }
41 | } else {
42 | withAnimation(.interpolatingSpring) {
| |- error: 'withAnimation' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
43 | translation = .zero
44 | }
/Users/admin/builder/spi-builder-workspace/Sources/AdaptiveModal/ViewModifier/DraggableBackgroundViewModifier.swift:42:44: error: 'interpolatingSpring' is only available in macOS 10.15 or newer
8 | import SwiftUI
9 |
10 | struct DraggableBackgroundViewModifier: ViewModifier {
| `- note: add @available attribute to enclosing struct
11 | @State private var translation: CGSize = .zero
12 | @State private var contentHeight: Double = .zero
:
18 | private var translatedHeight: Double { max(contentHeight + safeAreaInsetBottom, 100) * 1.1 }
19 |
20 | func body(content: Content) -> some View {
| `- note: add @available attribute to enclosing instance method
21 | content
22 | .contentHeight(
:
40 | }
41 | } else {
42 | withAnimation(.interpolatingSpring) {
| |- error: 'interpolatingSpring' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
43 | translation = .zero
44 | }
/Users/admin/builder/spi-builder-workspace/Sources/AdaptiveModal/ViewModifier/DraggableBackgroundViewModifier.swift:43:33: error: setter for 'translation' is only available in macOS 10.15 or newer
8 | import SwiftUI
9 |
10 | struct DraggableBackgroundViewModifier: ViewModifier {
| `- note: add @available attribute to enclosing struct
11 | @State private var translation: CGSize = .zero
12 | @State private var contentHeight: Double = .zero
:
18 | private var translatedHeight: Double { max(contentHeight + safeAreaInsetBottom, 100) * 1.1 }
19 |
20 | func body(content: Content) -> some View {
| `- note: add @available attribute to enclosing instance method
21 | content
22 | .contentHeight(
:
41 | } else {
42 | withAnimation(.interpolatingSpring) {
43 | translation = .zero
| |- error: setter for 'translation' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
44 | }
45 | }
/Users/admin/builder/spi-builder-workspace/Sources/AdaptiveModal/ViewModifier/DraggableBackgroundViewModifier.swift:48:14: warning: conformance of 'CGFloat' to 'VectorArithmetic' is only available in macOS 10.15 or newer; this is an error in the Swift 6 language mode
8 | import SwiftUI
9 |
10 | struct DraggableBackgroundViewModifier: ViewModifier {
| `- note: add @available attribute to enclosing struct
11 | @State private var translation: CGSize = .zero
12 | @State private var contentHeight: Double = .zero
:
18 | private var translatedHeight: Double { max(contentHeight + safeAreaInsetBottom, 100) * 1.1 }
19 |
20 | func body(content: Content) -> some View {
| `- note: add @available attribute to enclosing instance method
21 | content
22 | .contentHeight(
:
46 | }
47 | )
48 | .onAnimationCompleted(for: translation.height) {
| |- warning: conformance of 'CGFloat' to 'VectorArithmetic' 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 | if translation.height >= translatedHeight {
50 | onDismiss()
/Users/admin/builder/spi-builder-workspace/Sources/AdaptiveModal/ViewModifier/DraggableBackgroundViewModifier.swift:20:46: warning: conformance of 'ModifiedContent<Content, Modifier>' to 'View' is only available in macOS 10.15 or newer; this is an error in the Swift 6 language mode
8 | import SwiftUI
9 |
10 | struct DraggableBackgroundViewModifier: ViewModifier {
| `- note: add @available attribute to enclosing struct
11 | @State private var translation: CGSize = .zero
12 | @State private var contentHeight: Double = .zero
:
18 | private var translatedHeight: Double { max(contentHeight + safeAreaInsetBottom, 100) * 1.1 }
19 |
20 | func body(content: Content) -> some View {
| | |- warning: conformance of 'ModifiedContent<Content, Modifier>' to 'View' is only available in macOS 10.15 or newer; this is an error in the Swift 6 language mode
| | `- note: add 'if #available' version check
| `- note: add @available attribute to enclosing instance method
21 | content
22 | .contentHeight(
/Users/admin/builder/spi-builder-workspace/Sources/AdaptiveModal/ViewModifier/DraggableBackgroundViewModifier.swift:75:9: warning: conformance of 'ModifiedContent<Content, Modifier>' to 'View' is only available in macOS 10.15 or newer; this is an error in the Swift 6 language mode
67 |
68 | // MARK: - View Extension
69 | extension View {
| `- note: add @available attribute to enclosing extension
70 | func draggableBackground(
| `- note: add @available attribute to enclosing instance method
71 | cancelable: Bool,
72 | onDismiss: @escaping () -> Void,
73 | onTranslationHeightChanged: @escaping (Double) -> Void
74 | ) -> some View {
75 | modifier(DraggableBackgroundViewModifier(
| |- 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
76 | cancelable: cancelable,
77 | onDismiss: onDismiss,
/Users/admin/builder/spi-builder-workspace/Sources/AdaptiveModal/ViewModifier/DraggableBackgroundViewModifier.swift:75:9: error: 'modifier' is only available in macOS 10.15 or newer
67 |
68 | // MARK: - View Extension
69 | extension View {
| `- note: add @available attribute to enclosing extension
70 | func draggableBackground(
| `- note: add @available attribute to enclosing instance method
71 | cancelable: Bool,
72 | onDismiss: @escaping () -> Void,
73 | onTranslationHeightChanged: @escaping (Double) -> Void
74 | ) -> some View {
75 | modifier(DraggableBackgroundViewModifier(
| |- error: 'modifier' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
76 | cancelable: cancelable,
77 | onDismiss: onDismiss,
[14/21] Compiling AdaptiveModal Binding.swift
/Users/admin/builder/spi-builder-workspace/Sources/AdaptiveModal/Extension/Binding.swift:11:34: 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 isPresent<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 | .init(
13 | get: { self.wrappedValue != nil },
/Users/admin/builder/spi-builder-workspace/Sources/AdaptiveModal/Extension/Binding.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 isPresent<Wrapped>() -> Binding<Bool> where Value == Wrapped? {
12 | .init(
/Users/admin/builder/spi-builder-workspace/Sources/AdaptiveModal/Extension/Binding.swift:18:22: 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 isPresent<Wrapped>() -> Binding<Bool> where Value == Wrapped? {
| `- note: add @available attribute to enclosing instance method
12 | .init(
13 | get: { self.wrappedValue != nil },
:
16 | return
17 | }
18 | self.transaction(transaction).wrappedValue = nil
| |- 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/AdaptiveModal/Extension/Binding.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 isPresent<Wrapped>() -> Binding<Bool> where Value == Wrapped? {
| `- note: consider making generic parameter 'Wrapped' conform to the 'Sendable' protocol
12 | .init(
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: { isPresent, transaction in
15 | guard !isPresent else {
/Users/admin/builder/spi-builder-workspace/Sources/AdaptiveModal/Extension/Binding.swift:18:17: 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 isPresent<Wrapped>() -> Binding<Bool> where Value == Wrapped? {
| `- note: consider making generic parameter 'Wrapped' conform to the 'Sendable' protocol
12 | .init(
13 | get: { self.wrappedValue != nil },
:
16 | return
17 | }
18 | 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
19 | }
20 | )
/Users/admin/builder/spi-builder-workspace/Sources/AdaptiveModal/PreferenceKey/ModalBackgroundColor.swift:11:23: error: 'Color' is only available in macOS 10.15 or newer
8 | import SwiftUI
9 |
10 | struct ModalBackgroundColor: PreferenceKey {
| `- note: add @available attribute to enclosing struct
11 | typealias Value = Color?
| | `- error: 'Color' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing type alias
12 |
13 | static let defaultValue: Value = Color(UIColor.secondarySystemBackground)
/Users/admin/builder/spi-builder-workspace/Sources/AdaptiveModal/PreferenceKey/ModalBackgroundColor.swift:13:44: error: cannot find 'UIColor' in scope
11 | typealias Value = Color?
12 |
13 | static let defaultValue: Value = Color(UIColor.secondarySystemBackground)
| `- error: cannot find 'UIColor' in scope
14 | static func reduce(value: inout Value, nextValue: () -> Value) {
15 | value = nextValue() ?? defaultValue
[15/21] Compiling AdaptiveModal ModalBackgroundColor.swift
/Users/admin/builder/spi-builder-workspace/Sources/AdaptiveModal/Extension/Binding.swift:11:34: 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 isPresent<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 | .init(
13 | get: { self.wrappedValue != nil },
/Users/admin/builder/spi-builder-workspace/Sources/AdaptiveModal/Extension/Binding.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 isPresent<Wrapped>() -> Binding<Bool> where Value == Wrapped? {
12 | .init(
/Users/admin/builder/spi-builder-workspace/Sources/AdaptiveModal/Extension/Binding.swift:18:22: 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 isPresent<Wrapped>() -> Binding<Bool> where Value == Wrapped? {
| `- note: add @available attribute to enclosing instance method
12 | .init(
13 | get: { self.wrappedValue != nil },
:
16 | return
17 | }
18 | self.transaction(transaction).wrappedValue = nil
| |- 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/AdaptiveModal/Extension/Binding.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 isPresent<Wrapped>() -> Binding<Bool> where Value == Wrapped? {
| `- note: consider making generic parameter 'Wrapped' conform to the 'Sendable' protocol
12 | .init(
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: { isPresent, transaction in
15 | guard !isPresent else {
/Users/admin/builder/spi-builder-workspace/Sources/AdaptiveModal/Extension/Binding.swift:18:17: 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 isPresent<Wrapped>() -> Binding<Bool> where Value == Wrapped? {
| `- note: consider making generic parameter 'Wrapped' conform to the 'Sendable' protocol
12 | .init(
13 | get: { self.wrappedValue != nil },
:
16 | return
17 | }
18 | 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
19 | }
20 | )
/Users/admin/builder/spi-builder-workspace/Sources/AdaptiveModal/PreferenceKey/ModalBackgroundColor.swift:11:23: error: 'Color' is only available in macOS 10.15 or newer
8 | import SwiftUI
9 |
10 | struct ModalBackgroundColor: PreferenceKey {
| `- note: add @available attribute to enclosing struct
11 | typealias Value = Color?
| | `- error: 'Color' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing type alias
12 |
13 | static let defaultValue: Value = Color(UIColor.secondarySystemBackground)
/Users/admin/builder/spi-builder-workspace/Sources/AdaptiveModal/PreferenceKey/ModalBackgroundColor.swift:13:44: error: cannot find 'UIColor' in scope
11 | typealias Value = Color?
12 |
13 | static let defaultValue: Value = Color(UIColor.secondarySystemBackground)
| `- error: cannot find 'UIColor' in scope
14 | static func reduce(value: inout Value, nextValue: () -> Value) {
15 | value = nextValue() ?? defaultValue
error: emit-module command failed with exit code 1 (use -v to see invocation)
[16/21] Emitting module AdaptiveModal
/Users/admin/builder/spi-builder-workspace/Sources/AdaptiveModal/AdaptiveModal.swift:19:52: error: 'View' is only available in macOS 10.15 or newer
8 | import SwiftUI
9 |
10 | public extension View {
| `- note: add @available attribute to enclosing extension
11 | /// - Parameters:
12 | /// - isPresented: A binding to a Boolean value that determines whether
:
14 | /// - onDismiss: The closure to execute when dismissing the modal view.
15 | /// - content: A closure that returns the content of the modal view.
16 | func adaptiveModal(
| `- note: add @available attribute to enclosing instance method
17 | isPresented: Binding<Bool>,
18 | onDismiss: (() -> Void)? = nil,
19 | @ViewBuilder content: @escaping () -> some View
| `- error: 'View' is only available in macOS 10.15 or newer
20 | ) -> some View {
21 | modifier(AdaptiveModalViewModifier(
/Users/admin/builder/spi-builder-workspace/Sources/AdaptiveModal/AdaptiveModal.swift:17:22: error: 'Binding' is only available in macOS 10.15 or newer
8 | import SwiftUI
9 |
10 | public extension View {
| `- note: add @available attribute to enclosing extension
11 | /// - Parameters:
12 | /// - isPresented: A binding to a Boolean value that determines whether
:
14 | /// - onDismiss: The closure to execute when dismissing the modal view.
15 | /// - content: A closure that returns the content of the modal view.
16 | func adaptiveModal(
| `- note: add @available attribute to enclosing instance method
17 | isPresented: Binding<Bool>,
| `- error: 'Binding' is only available in macOS 10.15 or newer
18 | onDismiss: (() -> Void)? = nil,
19 | @ViewBuilder content: @escaping () -> some View
/Users/admin/builder/spi-builder-workspace/Sources/AdaptiveModal/AdaptiveModal.swift:19:10: error: 'ViewBuilder' is only available in macOS 10.15 or newer
8 | import SwiftUI
9 |
10 | public extension View {
| `- note: add @available attribute to enclosing extension
11 | /// - Parameters:
12 | /// - isPresented: A binding to a Boolean value that determines whether
:
14 | /// - onDismiss: The closure to execute when dismissing the modal view.
15 | /// - content: A closure that returns the content of the modal view.
16 | func adaptiveModal(
| `- note: add @available attribute to enclosing instance method
17 | isPresented: Binding<Bool>,
18 | onDismiss: (() -> Void)? = nil,
19 | @ViewBuilder content: @escaping () -> some View
| `- error: 'ViewBuilder' is only available in macOS 10.15 or newer
20 | ) -> some View {
21 | modifier(AdaptiveModalViewModifier(
/Users/admin/builder/spi-builder-workspace/Sources/AdaptiveModal/AdaptiveModal.swift:19:52: error: 'View' is only available in macOS 10.15 or newer
8 | import SwiftUI
9 |
10 | public extension View {
| `- note: add @available attribute to enclosing extension
11 | /// - Parameters:
12 | /// - isPresented: A binding to a Boolean value that determines whether
:
14 | /// - onDismiss: The closure to execute when dismissing the modal view.
15 | /// - content: A closure that returns the content of the modal view.
16 | func adaptiveModal(
| `- note: add @available attribute to enclosing instance method
17 | isPresented: Binding<Bool>,
18 | onDismiss: (() -> Void)? = nil,
19 | @ViewBuilder content: @escaping () -> some View
| `- error: 'View' is only available in macOS 10.15 or newer
20 | ) -> some View {
21 | modifier(AdaptiveModalViewModifier(
/Users/admin/builder/spi-builder-workspace/Sources/AdaptiveModal/AdaptiveModal.swift:20:15: error: 'View' is only available in macOS 10.15 or newer
8 | import SwiftUI
9 |
10 | public extension View {
| `- note: add @available attribute to enclosing extension
11 | /// - Parameters:
12 | /// - isPresented: A binding to a Boolean value that determines whether
:
14 | /// - onDismiss: The closure to execute when dismissing the modal view.
15 | /// - content: A closure that returns the content of the modal view.
16 | func adaptiveModal(
| `- note: add @available attribute to enclosing instance method
17 | isPresented: Binding<Bool>,
18 | onDismiss: (() -> Void)? = nil,
19 | @ViewBuilder content: @escaping () -> some View
20 | ) -> some View {
| `- error: 'View' is only available in macOS 10.15 or newer
21 | modifier(AdaptiveModalViewModifier(
22 | onDismiss: onDismiss,
/Users/admin/builder/spi-builder-workspace/Sources/AdaptiveModal/AdaptiveModal.swift:37:30: error: 'Identifiable' is only available in macOS 10.15 or newer
8 | import SwiftUI
9 |
10 | public extension View {
| `- note: add @available attribute to enclosing extension
11 | /// - Parameters:
12 | /// - isPresented: A binding to a Boolean value that determines whether
:
35 | /// - onDismiss: The closure to execute when dismissing the modal view.
36 | /// - content: A closure that returns the content of the modal view.
37 | func adaptiveModal<Item: Identifiable>(
| | `- error: 'Identifiable' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing instance method
38 | item: Binding<Item?>,
39 | onDismiss: (() -> Void)? = nil,
/Users/admin/builder/spi-builder-workspace/Sources/AdaptiveModal/AdaptiveModal.swift:40:56: error: 'View' is only available in macOS 10.15 or newer
8 | import SwiftUI
9 |
10 | public extension View {
| `- note: add @available attribute to enclosing extension
11 | /// - Parameters:
12 | /// - isPresented: A binding to a Boolean value that determines whether
:
35 | /// - onDismiss: The closure to execute when dismissing the modal view.
36 | /// - content: A closure that returns the content of the modal view.
37 | func adaptiveModal<Item: Identifiable>(
| `- note: add @available attribute to enclosing instance method
38 | item: Binding<Item?>,
39 | onDismiss: (() -> Void)? = nil,
40 | @ViewBuilder content: @escaping (Item) -> some View
| `- error: 'View' is only available in macOS 10.15 or newer
41 | ) -> some View {
42 | adaptiveModal(
/Users/admin/builder/spi-builder-workspace/Sources/AdaptiveModal/AdaptiveModal.swift:38:15: error: 'Binding' is only available in macOS 10.15 or newer
8 | import SwiftUI
9 |
10 | public extension View {
| `- note: add @available attribute to enclosing extension
11 | /// - Parameters:
12 | /// - isPresented: A binding to a Boolean value that determines whether
:
35 | /// - onDismiss: The closure to execute when dismissing the modal view.
36 | /// - content: A closure that returns the content of the modal view.
37 | func adaptiveModal<Item: Identifiable>(
| `- note: add @available attribute to enclosing instance method
38 | item: Binding<Item?>,
| `- error: 'Binding' is only available in macOS 10.15 or newer
39 | onDismiss: (() -> Void)? = nil,
40 | @ViewBuilder content: @escaping (Item) -> some View
/Users/admin/builder/spi-builder-workspace/Sources/AdaptiveModal/AdaptiveModal.swift:40:10: error: 'ViewBuilder' is only available in macOS 10.15 or newer
8 | import SwiftUI
9 |
10 | public extension View {
| `- note: add @available attribute to enclosing extension
11 | /// - Parameters:
12 | /// - isPresented: A binding to a Boolean value that determines whether
:
35 | /// - onDismiss: The closure to execute when dismissing the modal view.
36 | /// - content: A closure that returns the content of the modal view.
37 | func adaptiveModal<Item: Identifiable>(
| `- note: add @available attribute to enclosing instance method
38 | item: Binding<Item?>,
39 | onDismiss: (() -> Void)? = nil,
40 | @ViewBuilder content: @escaping (Item) -> some View
| `- error: 'ViewBuilder' is only available in macOS 10.15 or newer
41 | ) -> some View {
42 | adaptiveModal(
/Users/admin/builder/spi-builder-workspace/Sources/AdaptiveModal/AdaptiveModal.swift:40:56: error: 'View' is only available in macOS 10.15 or newer
8 | import SwiftUI
9 |
10 | public extension View {
| `- note: add @available attribute to enclosing extension
11 | /// - Parameters:
12 | /// - isPresented: A binding to a Boolean value that determines whether
:
35 | /// - onDismiss: The closure to execute when dismissing the modal view.
36 | /// - content: A closure that returns the content of the modal view.
37 | func adaptiveModal<Item: Identifiable>(
| `- note: add @available attribute to enclosing instance method
38 | item: Binding<Item?>,
39 | onDismiss: (() -> Void)? = nil,
40 | @ViewBuilder content: @escaping (Item) -> some View
| `- error: 'View' is only available in macOS 10.15 or newer
41 | ) -> some View {
42 | adaptiveModal(
/Users/admin/builder/spi-builder-workspace/Sources/AdaptiveModal/AdaptiveModal.swift:41:15: error: 'View' is only available in macOS 10.15 or newer
8 | import SwiftUI
9 |
10 | public extension View {
| `- note: add @available attribute to enclosing extension
11 | /// - Parameters:
12 | /// - isPresented: A binding to a Boolean value that determines whether
:
35 | /// - onDismiss: The closure to execute when dismissing the modal view.
36 | /// - content: A closure that returns the content of the modal view.
37 | func adaptiveModal<Item: Identifiable>(
| `- note: add @available attribute to enclosing instance method
38 | item: Binding<Item?>,
39 | onDismiss: (() -> Void)? = nil,
40 | @ViewBuilder content: @escaping (Item) -> some View
41 | ) -> some View {
| `- error: 'View' is only available in macOS 10.15 or newer
42 | adaptiveModal(
43 | isPresented: item.isPresent(),
/Users/admin/builder/spi-builder-workspace/Sources/AdaptiveModal/AdaptiveModal.swift:10:18: error: 'View' is only available in macOS 10.15 or newer
8 | import SwiftUI
9 |
10 | public extension View {
| | `- error: 'View' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing extension
11 | /// - Parameters:
12 | /// - isPresented: A binding to a Boolean value that determines whether
/Users/admin/builder/spi-builder-workspace/Sources/AdaptiveModal/AdaptiveModal.swift:58:77: error: 'View' is only available in macOS 10.15 or newer
52 | }
53 |
54 | public extension View {
| `- note: add @available attribute to enclosing extension
55 | /// - Parameter isDisabled: A Boolean value that indicates whether to
56 | /// prevent nonprogrammatic dismissal of the containing view hierarchy
57 | /// when presented in a adaptive modal.
58 | func modalInteractiveDismissDisabled(_ isDisabled: Bool = true) -> some View {
| | `- error: 'View' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing instance method
59 | preference(key: ModalInteractiveDismissDisabled.self, value: isDisabled)
60 | }
/Users/admin/builder/spi-builder-workspace/Sources/AdaptiveModal/AdaptiveModal.swift:65:68: error: 'View' is only available in macOS 10.15 or newer
52 | }
53 |
54 | public extension View {
| `- note: add @available attribute to enclosing extension
55 | /// - Parameter isDisabled: A Boolean value that indicates whether to
56 | /// prevent nonprogrammatic dismissal of the containing view hierarchy
:
63 | /// prevent nonprogrammatic dismissal of the containing view hierarchy
64 | /// when presented in a adaptive modal.
65 | func modalDraggableDisabled(_ isDisabled: Bool = true) -> some View {
| | `- error: 'View' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing instance method
66 | preference(key: ModalDraggableDisabled.self, value: isDisabled)
67 | }
/Users/admin/builder/spi-builder-workspace/Sources/AdaptiveModal/AdaptiveModal.swift:72:40: error: 'Color' is only available in macOS 10.15 or newer
52 | }
53 |
54 | public extension View {
| `- note: add @available attribute to enclosing extension
55 | /// - Parameter isDisabled: A Boolean value that indicates whether to
56 | /// prevent nonprogrammatic dismissal of the containing view hierarchy
:
70 | /// view. Pass `nil` to remove any custom background color and to allow
71 | /// the system or the container to provide its own foreground color.
72 | func modalBackgroundColor(_ color: Color?) -> some View {
| | `- error: 'Color' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing instance method
73 | preference(key: ModalBackgroundColor.self, value: color)
74 | }
/Users/admin/builder/spi-builder-workspace/Sources/AdaptiveModal/AdaptiveModal.swift:72:56: error: 'View' is only available in macOS 10.15 or newer
52 | }
53 |
54 | public extension View {
| `- note: add @available attribute to enclosing extension
55 | /// - Parameter isDisabled: A Boolean value that indicates whether to
56 | /// prevent nonprogrammatic dismissal of the containing view hierarchy
:
70 | /// view. Pass `nil` to remove any custom background color and to allow
71 | /// the system or the container to provide its own foreground color.
72 | func modalBackgroundColor(_ color: Color?) -> some View {
| | `- error: 'View' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing instance method
73 | preference(key: ModalBackgroundColor.self, value: color)
74 | }
/Users/admin/builder/spi-builder-workspace/Sources/AdaptiveModal/AdaptiveModal.swift:54:18: error: 'View' is only available in macOS 10.15 or newer
52 | }
53 |
54 | public extension View {
| | `- error: 'View' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing extension
55 | /// - Parameter isDisabled: A Boolean value that indicates whether to
56 | /// prevent nonprogrammatic dismissal of the containing view hierarchy
/Users/admin/builder/spi-builder-workspace/Sources/AdaptiveModal/Content/ModalContent.swift:15:20: error: 'presentationMode' is only available in macOS 10.15 or newer
12 | }
13 |
14 | struct ModalContent: View {
| `- note: add @available attribute to enclosing struct
15 | @Environment(\.presentationMode) @Binding var presentationMode
| `- error: 'presentationMode' is only available in macOS 10.15 or newer
16 |
17 | @State var cancelable = ModalInteractiveDismissDisabled.defaultValue
/Users/admin/builder/spi-builder-workspace/Sources/AdaptiveModal/Content/ModalContent.swift:15:6: error: 'Environment' is only available in macOS 10.15 or newer
12 | }
13 |
14 | struct ModalContent: View {
| `- note: add @available attribute to enclosing struct
15 | @Environment(\.presentationMode) @Binding var presentationMode
| `- error: 'Environment' is only available in macOS 10.15 or newer
16 |
17 | @State var cancelable = ModalInteractiveDismissDisabled.defaultValue
/Users/admin/builder/spi-builder-workspace/Sources/AdaptiveModal/Content/ModalContent.swift:15:39: error: 'Binding' is only available in macOS 10.15 or newer
12 | }
13 |
14 | struct ModalContent: View {
| `- note: add @available attribute to enclosing struct
15 | @Environment(\.presentationMode) @Binding var presentationMode
| `- error: 'Binding' is only available in macOS 10.15 or newer
16 |
17 | @State var cancelable = ModalInteractiveDismissDisabled.defaultValue
/Users/admin/builder/spi-builder-workspace/Sources/AdaptiveModal/Content/ModalContent.swift:17:6: error: 'State' is only available in macOS 10.15 or newer
12 | }
13 |
14 | struct ModalContent: View {
| `- note: add @available attribute to enclosing struct
15 | @Environment(\.presentationMode) @Binding var presentationMode
16 |
17 | @State var cancelable = ModalInteractiveDismissDisabled.defaultValue
| `- error: 'State' is only available in macOS 10.15 or newer
18 | @State var draggable = ModalDraggableDisabled.defaultValue
19 |
/Users/admin/builder/spi-builder-workspace/Sources/AdaptiveModal/Content/ModalContent.swift:18:6: error: 'State' is only available in macOS 10.15 or newer
12 | }
13 |
14 | struct ModalContent: View {
| `- note: add @available attribute to enclosing struct
15 | @Environment(\.presentationMode) @Binding var presentationMode
16 |
17 | @State var cancelable = ModalInteractiveDismissDisabled.defaultValue
18 | @State var draggable = ModalDraggableDisabled.defaultValue
| `- error: 'State' is only available in macOS 10.15 or newer
19 |
20 | @State var opacity = 0.0
/Users/admin/builder/spi-builder-workspace/Sources/AdaptiveModal/Content/ModalContent.swift:20:6: error: 'State' is only available in macOS 10.15 or newer
12 | }
13 |
14 | struct ModalContent: View {
| `- note: add @available attribute to enclosing struct
15 | @Environment(\.presentationMode) @Binding var presentationMode
16 |
:
18 | @State var draggable = ModalDraggableDisabled.defaultValue
19 |
20 | @State var opacity = 0.0
| `- error: 'State' is only available in macOS 10.15 or newer
21 | @State var translation: CGSize = .zero
22 | @State var contentHeight: Double = .zero
/Users/admin/builder/spi-builder-workspace/Sources/AdaptiveModal/Content/ModalContent.swift:21:6: error: 'State' is only available in macOS 10.15 or newer
12 | }
13 |
14 | struct ModalContent: View {
| `- note: add @available attribute to enclosing struct
15 | @Environment(\.presentationMode) @Binding var presentationMode
16 |
:
19 |
20 | @State var opacity = 0.0
21 | @State var translation: CGSize = .zero
| `- error: 'State' is only available in macOS 10.15 or newer
22 | @State var contentHeight: Double = .zero
23 | @State var safeAreaInsetBottom: Double = .zero
/Users/admin/builder/spi-builder-workspace/Sources/AdaptiveModal/Content/ModalContent.swift:22:6: error: 'State' is only available in macOS 10.15 or newer
12 | }
13 |
14 | struct ModalContent: View {
| `- note: add @available attribute to enclosing struct
15 | @Environment(\.presentationMode) @Binding var presentationMode
16 |
:
20 | @State var opacity = 0.0
21 | @State var translation: CGSize = .zero
22 | @State var contentHeight: Double = .zero
| `- error: 'State' is only available in macOS 10.15 or newer
23 | @State var safeAreaInsetBottom: Double = .zero
24 |
/Users/admin/builder/spi-builder-workspace/Sources/AdaptiveModal/Content/ModalContent.swift:23:6: error: 'State' is only available in macOS 10.15 or newer
12 | }
13 |
14 | struct ModalContent: View {
| `- note: add @available attribute to enclosing struct
15 | @Environment(\.presentationMode) @Binding var presentationMode
16 |
:
21 | @State var translation: CGSize = .zero
22 | @State var contentHeight: Double = .zero
23 | @State var safeAreaInsetBottom: Double = .zero
| `- error: 'State' is only available in macOS 10.15 or newer
24 |
25 | var delegate: ModalContentDelegate?
/Users/admin/builder/spi-builder-workspace/Sources/AdaptiveModal/Content/ModalContent.swift:28:26: error: 'AnyView' is only available in macOS 10.15 or newer
12 | }
13 |
14 | struct ModalContent: View {
| `- note: add @available attribute to enclosing struct
15 | @Environment(\.presentationMode) @Binding var presentationMode
16 |
:
26 |
27 | private let onDismiss: () -> Void
28 | private let content: AnyView
| `- error: 'AnyView' is only available in macOS 10.15 or newer
29 |
30 | private let fraction: CGFloat = 0.95
/Users/admin/builder/spi-builder-workspace/Sources/AdaptiveModal/Content/ModalContent.swift:34:20: error: 'View' is only available in macOS 10.15 or newer
12 | }
13 |
14 | struct ModalContent: View {
| `- note: add @available attribute to enclosing struct
15 | @Environment(\.presentationMode) @Binding var presentationMode
16 |
:
32 | private var translatedHeight: Double { max(contentHeight + safeAreaInsetBottom, 100) * 1.1 }
33 |
34 | var body: some View {
| | `- error: 'View' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing property
35 | contentView()
36 | .onAnimationCompleted(for: translation.height) {
/Users/admin/builder/spi-builder-workspace/Sources/AdaptiveModal/Content/ModalContent.swift:61:39: error: 'View' is only available in macOS 10.15 or newer
12 | }
13 |
14 | struct ModalContent: View {
| `- note: add @available attribute to enclosing struct
15 | @Environment(\.presentationMode) @Binding var presentationMode
16 |
:
57 | }
58 |
59 | init(
| `- note: add @available attribute to enclosing initializer
60 | onDismiss: @escaping () -> Void,
61 | content: @escaping () -> some View
| `- error: 'View' is only available in macOS 10.15 or newer
62 | ) {
63 | self.onDismiss = onDismiss
/Users/admin/builder/spi-builder-workspace/Sources/AdaptiveModal/Content/ModalContent.swift:61:39: error: 'View' is only available in macOS 10.15 or newer
12 | }
13 |
14 | struct ModalContent: View {
| `- note: add @available attribute to enclosing struct
15 | @Environment(\.presentationMode) @Binding var presentationMode
16 |
:
57 | }
58 |
59 | init(
| `- note: add @available attribute to enclosing initializer
60 | onDismiss: @escaping () -> Void,
61 | content: @escaping () -> some View
| `- error: 'View' is only available in macOS 10.15 or newer
62 | ) {
63 | self.onDismiss = onDismiss
/Users/admin/builder/spi-builder-workspace/Sources/AdaptiveModal/Content/ModalContent.swift:69:32: error: 'View' is only available in macOS 10.15 or newer
66 | }
67 |
68 | private extension ModalContent {
| `- note: add @available attribute to enclosing extension
69 | func contentView() -> some View {
| | `- error: 'View' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing instance method
70 | ZStack {
71 | Color.black
/Users/admin/builder/spi-builder-workspace/Sources/AdaptiveModal/Content/ModalContent.swift:96:30: error: 'View' is only available in macOS 10.15 or newer
66 | }
67 |
68 | private extension ModalContent {
| `- note: add @available attribute to enclosing extension
69 | func contentView() -> some View {
70 | ZStack {
:
94 |
95 | @ViewBuilder
96 | func modalView() -> some View {
| | `- error: 'View' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing instance method
97 | if draggable {
98 | modalContent()
/Users/admin/builder/spi-builder-workspace/Sources/AdaptiveModal/Content/ModalContent.swift:95:6: error: 'ViewBuilder' is only available in macOS 10.15 or newer
66 | }
67 |
68 | private extension ModalContent {
| `- note: add @available attribute to enclosing extension
69 | func contentView() -> some View {
70 | ZStack {
:
93 | }
94 |
95 | @ViewBuilder
| `- error: 'ViewBuilder' is only available in macOS 10.15 or newer
96 | func modalView() -> some View {
| `- note: add @available attribute to enclosing instance method
97 | if draggable {
98 | modalContent()
/Users/admin/builder/spi-builder-workspace/Sources/AdaptiveModal/Content/ModalContent.swift:118:33: error: 'View' is only available in macOS 10.15 or newer
66 | }
67 |
68 | private extension ModalContent {
| `- note: add @available attribute to enclosing extension
69 | func contentView() -> some View {
70 | ZStack {
:
116 | }
117 |
118 | func modalContent() -> some View {
| | `- error: 'View' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing instance method
119 | content.frame(maxWidth: .infinity)
120 | }
/Users/admin/builder/spi-builder-workspace/Sources/AdaptiveModal/Controller/ModalHostingController.swift:10:46: error: cannot find type 'UIHostingController' in scope
8 | import SwiftUI
9 |
10 | class ModalHostingController<Content: View>: UIHostingController<Content> {
| `- error: cannot find type 'UIHostingController' in scope
11 | override init(rootView: Content) {
12 | super.init(rootView: rootView)
/Users/admin/builder/spi-builder-workspace/Sources/AdaptiveModal/Controller/ModalHostingController.swift:11:14: error: initializer does not override a designated initializer from its superclass
9 |
10 | class ModalHostingController<Content: View>: UIHostingController<Content> {
11 | override init(rootView: Content) {
| `- error: initializer does not override a designated initializer from its superclass
12 | super.init(rootView: rootView)
13 | modalPresentationStyle = .custom
/Users/admin/builder/spi-builder-workspace/Sources/AdaptiveModal/Controller/ModalHostingController.swift:10:39: error: 'View' is only available in macOS 10.15 or newer
8 | import SwiftUI
9 |
10 | class ModalHostingController<Content: View>: UIHostingController<Content> {
| | `- error: 'View' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing generic class
11 | override init(rootView: Content) {
12 | super.init(rootView: rootView)
/Users/admin/builder/spi-builder-workspace/Sources/AdaptiveModal/Controller/ModalPresentationController.swift:11:29: error: cannot find type 'UIView' in scope
9 |
10 | class ModalPresentationController: UIPresentationController {
11 | private let dimmedView: UIView = {
| `- error: cannot find type 'UIView' in scope
12 | let view = UIView()
13 | view.backgroundColor = .black
/Users/admin/builder/spi-builder-workspace/Sources/AdaptiveModal/Controller/ModalPresentationController.swift:10:36: error: cannot find type 'UIPresentationController' in scope
8 | import SwiftUI
9 |
10 | class ModalPresentationController: UIPresentationController {
| `- error: cannot find type 'UIPresentationController' in scope
11 | private let dimmedView: UIView = {
12 | let view = UIView()
/Users/admin/builder/spi-builder-workspace/Sources/AdaptiveModal/Controller/ModalPresentationController.swift:18:19: error: method does not override any method from its superclass
16 | }()
17 |
18 | override func presentationTransitionWillBegin() {
| `- error: method does not override any method from its superclass
19 | guard let containerView else { return }
20 |
/Users/admin/builder/spi-builder-workspace/Sources/AdaptiveModal/Controller/ModalPresentationController.swift:36:19: error: method does not override any method from its superclass
34 | }
35 |
36 | override func dismissalTransitionWillBegin() {
| `- error: method does not override any method from its superclass
37 | presentedViewController.transitionCoordinator?.animate { [weak self] _ in
38 | self?.dimmedView.alpha = 0
/Users/admin/builder/spi-builder-workspace/Sources/AdaptiveModal/Controller/ModalPresentationController.swift:42:19: error: method does not override any method from its superclass
40 | }
41 |
42 | override func dismissalTransitionDidEnd(_ completed: Bool) {
| `- error: method does not override any method from its superclass
43 | if completed {
44 | dimmedView.removeFromSuperview()
/Users/admin/builder/spi-builder-workspace/Sources/AdaptiveModal/Controller/ModalViewController.swift:10:28: error: cannot find type 'UIViewController' in scope
8 | import SwiftUI
9 |
10 | class ModalViewController: UIViewController {
| `- error: cannot find type 'UIViewController' in scope
11 | private var modalPresentationController: ModalPresentationController?
12 | }
/Users/admin/builder/spi-builder-workspace/Sources/AdaptiveModal/Controller/ModalViewController.swift:15:32: error: cannot find type 'UIViewControllerTransitioningDelegate' in scope
13 |
14 | // MARK: - UIViewControllerTransitioningDelegate
15 | extension ModalViewController: UIViewControllerTransitioningDelegate {
| `- error: cannot find type 'UIViewControllerTransitioningDelegate' in scope
16 | func presentationController(
17 | forPresented presented: UIViewController,
/Users/admin/builder/spi-builder-workspace/Sources/AdaptiveModal/Controller/ModalViewController.swift:20:10: error: cannot find type 'UIPresentationController' in scope
18 | presenting: UIViewController?,
19 | source: UIViewController
20 | ) -> UIPresentationController? {
| `- error: cannot find type 'UIPresentationController' in scope
21 | let controller = ModalPresentationController(
22 | presentedViewController: presented,
/Users/admin/builder/spi-builder-workspace/Sources/AdaptiveModal/Controller/ModalViewController.swift:17:33: error: cannot find type 'UIViewController' in scope
15 | extension ModalViewController: UIViewControllerTransitioningDelegate {
16 | func presentationController(
17 | forPresented presented: UIViewController,
| `- error: cannot find type 'UIViewController' in scope
18 | presenting: UIViewController?,
19 | source: UIViewController
/Users/admin/builder/spi-builder-workspace/Sources/AdaptiveModal/Controller/ModalViewController.swift:18:21: error: cannot find type 'UIViewController' in scope
16 | func presentationController(
17 | forPresented presented: UIViewController,
18 | presenting: UIViewController?,
| `- error: cannot find type 'UIViewController' in scope
19 | source: UIViewController
20 | ) -> UIPresentationController? {
/Users/admin/builder/spi-builder-workspace/Sources/AdaptiveModal/Controller/ModalViewController.swift:19:17: error: cannot find type 'UIViewController' in scope
17 | forPresented presented: UIViewController,
18 | presenting: UIViewController?,
19 | source: UIViewController
| `- error: cannot find type 'UIViewController' in scope
20 | ) -> UIPresentationController? {
21 | let controller = ModalPresentationController(
/Users/admin/builder/spi-builder-workspace/Sources/AdaptiveModal/EnvironmentKey/ModalPresentedKey.swift:11:30: error: 'Binding' is only available in macOS 10.15 or newer
8 | import SwiftUI
9 |
10 | struct ModalPresentedKey: EnvironmentKey {
| `- note: add @available attribute to enclosing struct
11 | static let defaultValue: Binding<Bool> = .constant(false)
| | `- error: 'Binding' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing static property
12 | }
13 |
/Users/admin/builder/spi-builder-workspace/Sources/AdaptiveModal/EnvironmentKey/ModalPresentedKey.swift:15:27: error: 'Binding' is only available in macOS 10.15 or newer
12 | }
13 |
14 | extension EnvironmentValues {
| `- note: add @available attribute to enclosing extension
15 | var isModalPresented: Binding<Bool> {
| | `- error: 'Binding' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing property
16 | get{ self[ModalPresentedKey.self] }
17 | set{ self[ModalPresentedKey.self] = newValue }
/Users/admin/builder/spi-builder-workspace/Sources/AdaptiveModal/EnvironmentKey/ModalPresentedKey.swift:14:11: error: 'EnvironmentValues' is only available in macOS 10.15 or newer
12 | }
13 |
14 | extension EnvironmentValues {
| | `- error: 'EnvironmentValues' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing extension
15 | var isModalPresented: Binding<Bool> {
16 | get{ self[ModalPresentedKey.self] }
/Users/admin/builder/spi-builder-workspace/Sources/AdaptiveModal/Extension/Binding.swift:11:34: 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 isPresent<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 | .init(
13 | get: { self.wrappedValue != nil },
/Users/admin/builder/spi-builder-workspace/Sources/AdaptiveModal/Extension/Binding.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 isPresent<Wrapped>() -> Binding<Bool> where Value == Wrapped? {
12 | .init(
/Users/admin/builder/spi-builder-workspace/Sources/AdaptiveModal/PreferenceKey/ModalBackgroundColor.swift:11:23: error: 'Color' is only available in macOS 10.15 or newer
8 | import SwiftUI
9 |
10 | struct ModalBackgroundColor: PreferenceKey {
| `- note: add @available attribute to enclosing struct
11 | typealias Value = Color?
| | `- error: 'Color' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing type alias
12 |
13 | static let defaultValue: Value = Color(UIColor.secondarySystemBackground)
/Users/admin/builder/spi-builder-workspace/Sources/AdaptiveModal/PreferenceKey/ModalBackgroundColor.swift:13:44: error: cannot find 'UIColor' in scope
11 | typealias Value = Color?
12 |
13 | static let defaultValue: Value = Color(UIColor.secondarySystemBackground)
| `- error: cannot find 'UIColor' in scope
14 | static func reduce(value: inout Value, nextValue: () -> Value) {
15 | value = nextValue() ?? defaultValue
/Users/admin/builder/spi-builder-workspace/Sources/AdaptiveModal/Representable/ModalRepresentable.swift:11:6: error: 'Environment' is only available in macOS 10.15 or newer
8 | import SwiftUI
9 |
10 | struct ModalRepresentable<Content: View> {
| `- note: add @available attribute to enclosing generic struct
11 | @Environment(\.isModalPresented) @Binding var isPresented
| `- error: 'Environment' is only available in macOS 10.15 or newer
12 |
13 | let onDismiss: () -> Void
/Users/admin/builder/spi-builder-workspace/Sources/AdaptiveModal/Representable/ModalRepresentable.swift:11:39: error: 'Binding' is only available in macOS 10.15 or newer
8 | import SwiftUI
9 |
10 | struct ModalRepresentable<Content: View> {
| `- note: add @available attribute to enclosing generic struct
11 | @Environment(\.isModalPresented) @Binding var isPresented
| `- error: 'Binding' is only available in macOS 10.15 or newer
12 |
13 | let onDismiss: () -> Void
/Users/admin/builder/spi-builder-workspace/Sources/AdaptiveModal/Representable/ModalRepresentable.swift:10:36: error: 'View' is only available in macOS 10.15 or newer
8 | import SwiftUI
9 |
10 | struct ModalRepresentable<Content: View> {
| | `- error: 'View' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing generic struct
11 | @Environment(\.isModalPresented) @Binding var isPresented
12 |
/Users/admin/builder/spi-builder-workspace/Sources/AdaptiveModal/Representable/ModalRepresentable.swift:26:31: error: cannot find type 'UIViewControllerRepresentable' in scope
24 |
25 | // MARK: - UIViewControllerRepresentable
26 | extension ModalRepresentable: UIViewControllerRepresentable {
| `- error: cannot find type 'UIViewControllerRepresentable' in scope
27 | typealias UIViewControllerType = ModalViewController
28 |
/Users/admin/builder/spi-builder-workspace/Sources/AdaptiveModal/Representable/ModalRepresentable.swift:29:40: error: cannot find type 'Context' in scope
27 | typealias UIViewControllerType = ModalViewController
28 |
29 | func makeUIViewController(context: Context) -> UIViewControllerType {
| `- error: cannot find type 'Context' in scope
30 | ModalViewController()
31 | }
/Users/admin/builder/spi-builder-workspace/Sources/AdaptiveModal/Representable/ModalRepresentable.swift:35:18: error: cannot find type 'Context' in scope
33 | func updateUIViewController(
34 | _ uiViewController: UIViewControllerType,
35 | context: Context
| `- error: cannot find type 'Context' in scope
36 | ) {
37 | if isPresented {
/Users/admin/builder/spi-builder-workspace/Sources/AdaptiveModal/Representable/ModalRepresentable.swift:50:18: error: cannot find type 'Context' in scope
48 | func present(
49 | _ uiViewController: UIViewControllerType,
50 | context: Context
| `- error: cannot find type 'Context' in scope
51 | ) {
52 | if isHostingControllerPresented(uiViewController) { return }
/Users/admin/builder/spi-builder-workspace/Sources/AdaptiveModal/Style/RoundedRectangleShape.swift:12:26: error: cannot find type 'UIRectCorner' in scope
10 | struct RoundedRectangleShape: Shape {
11 | private let radius: CGFloat
12 | private let corners: UIRectCorner
| `- error: cannot find type 'UIRectCorner' in scope
13 |
14 | init(
/Users/admin/builder/spi-builder-workspace/Sources/AdaptiveModal/Style/RoundedRectangleShape.swift:16:18: error: cannot find type 'UIRectCorner' in scope
14 | init(
15 | cornerRadius: CGFloat,
16 | corners: UIRectCorner
| `- error: cannot find type 'UIRectCorner' in scope
17 | ) {
18 | radius = cornerRadius
/Users/admin/builder/spi-builder-workspace/Sources/AdaptiveModal/Style/RoundedRectangleShape.swift:22:35: error: 'Path' is only available in macOS 10.15 or newer
8 | import SwiftUI
9 |
10 | struct RoundedRectangleShape: Shape {
| `- note: add @available attribute to enclosing struct
11 | private let radius: CGFloat
12 | private let corners: UIRectCorner
:
20 | }
21 |
22 | func path(in rect: CGRect) -> Path {
| | `- error: 'Path' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing instance method
23 | let path = UIBezierPath(
24 | roundedRect: .init(
/Users/admin/builder/spi-builder-workspace/Sources/AdaptiveModal/ViewModifier/AdaptiveModalViewModifier.swift:11:6: error: 'Environment' is only available in macOS 10.15 or newer
8 | import SwiftUI
9 |
10 | struct AdaptiveModalViewModifier<Body: View>: ViewModifier {
| `- note: add @available attribute to enclosing generic struct
11 | @Environment(\.isModalPresented) @Binding var isPresented
| `- error: 'Environment' is only available in macOS 10.15 or newer
12 |
13 | let body: () -> Body
/Users/admin/builder/spi-builder-workspace/Sources/AdaptiveModal/ViewModifier/AdaptiveModalViewModifier.swift:11:39: error: 'Binding' is only available in macOS 10.15 or newer
8 | import SwiftUI
9 |
10 | struct AdaptiveModalViewModifier<Body: View>: ViewModifier {
| `- note: add @available attribute to enclosing generic struct
11 | @Environment(\.isModalPresented) @Binding var isPresented
| `- error: 'Binding' is only available in macOS 10.15 or newer
12 |
13 | let body: () -> Body
/Users/admin/builder/spi-builder-workspace/Sources/AdaptiveModal/ViewModifier/AdaptiveModalViewModifier.swift:24:41: error: 'View' is only available in macOS 10.15 or newer
8 | import SwiftUI
9 |
10 | struct AdaptiveModalViewModifier<Body: View>: ViewModifier {
| `- note: add @available attribute to enclosing generic struct
11 | @Environment(\.isModalPresented) @Binding var isPresented
12 |
:
22 | }
23 |
24 | 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
25 | content
26 | .modal {
/Users/admin/builder/spi-builder-workspace/Sources/AdaptiveModal/ViewModifier/AdaptiveModalViewModifier.swift:10:40: error: 'View' is only available in macOS 10.15 or newer
8 | import SwiftUI
9 |
10 | struct AdaptiveModalViewModifier<Body: View>: ViewModifier {
| | `- error: 'View' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing generic struct
11 | @Environment(\.isModalPresented) @Binding var isPresented
12 |
/Users/admin/builder/spi-builder-workspace/Sources/AdaptiveModal/ViewModifier/AnimationCompletionObserverModifier.swift:54:41: error: 'View' is only available in macOS 10.15 or newer
10 | /// ref.) https://www.avanderlee.com/swiftui/withanimation-completion-callback/
11 | /// An animatable modifier that is used for observing animations for a given animatable value.
12 | struct AnimationCompletionObserverModifier<Value>: AnimatableModifier where Value: VectorArithmetic {
| `- note: add @available attribute to enclosing generic struct
13 | /// While animating, SwiftUI changes the old input value to the new target value using this property. This value is set to the old value until the animation completes.
14 | var animatableData: Value {
:
52 | }
53 |
54 | func body(content: Content) -> some View {
| | `- error: 'View' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing instance method
55 | /// We're not really modifying the view so we can directly return the original input value.
56 | return content
/Users/admin/builder/spi-builder-workspace/Sources/AdaptiveModal/ViewModifier/AnimationCompletionObserverModifier.swift:12:84: error: 'VectorArithmetic' is only available in macOS 10.15 or newer
10 | /// ref.) https://www.avanderlee.com/swiftui/withanimation-completion-callback/
11 | /// An animatable modifier that is used for observing animations for a given animatable value.
12 | struct AnimationCompletionObserverModifier<Value>: AnimatableModifier where Value: VectorArithmetic {
| | `- error: 'VectorArithmetic' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing generic struct
13 | /// While animating, SwiftUI changes the old input value to the new target value using this property. This value is set to the old value until the animation completes.
14 | var animatableData: Value {
/Users/admin/builder/spi-builder-workspace/Sources/AdaptiveModal/ViewModifier/AnimationCompletionObserverModifier.swift:14:9: warning: main actor-isolated property 'animatableData' cannot be used to satisfy nonisolated protocol requirement; this is an error in the Swift 6 language mode
12 | struct AnimationCompletionObserverModifier<Value>: AnimatableModifier where Value: VectorArithmetic {
13 | /// While animating, SwiftUI changes the old input value to the new target value using this property. This value is set to the old value until the animation completes.
14 | var animatableData: Value {
| `- warning: main actor-isolated property 'animatableData' cannot be used to satisfy nonisolated protocol requirement; this is an error in the Swift 6 language mode
15 | didSet {
16 | notifyCompletionIfFinished()
SwiftUICore.Animatable:4:9: note: 'animatableData' declared here
2 | public protocol Animatable {
3 | associatedtype AnimatableData : VectorArithmetic
4 | var animatableData: Self.AnimatableData { get set }
| `- note: 'animatableData' declared here
5 | static func _makeAnimatable(value: inout _GraphValue<Self>, inputs: _GraphInputs)
6 | }
/Users/admin/builder/spi-builder-workspace/Sources/AdaptiveModal/ViewModifier/AnimationCompletionObserverModifier.swift:66:38: error: 'VectorArithmetic' is only available in macOS 10.15 or newer
58 | }
59 |
60 | extension View {
| `- note: add @available attribute to enclosing extension
61 | /// Calls the completion handler whenever an animation on the given value completes.
62 | /// - Parameters:
:
64 | /// - completion: The completion callback to call once the animation completes.
65 | /// - Returns: A modified `View` instance with the observer attached.
66 | func onAnimationCompleted<Value: VectorArithmetic>(
| | `- error: 'VectorArithmetic' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing instance method
67 | for value: Value,
68 | completion: @escaping () -> Void
/Users/admin/builder/spi-builder-workspace/Sources/AdaptiveModal/ViewModifier/AnimationCompletionObserverModifier.swift:69:10: error: 'ModifiedContent' is only available in macOS 10.15 or newer
58 | }
59 |
60 | extension View {
| `- note: add @available attribute to enclosing extension
61 | /// Calls the completion handler whenever an animation on the given value completes.
62 | /// - Parameters:
:
64 | /// - completion: The completion callback to call once the animation completes.
65 | /// - Returns: A modified `View` instance with the observer attached.
66 | func onAnimationCompleted<Value: VectorArithmetic>(
| `- note: add @available attribute to enclosing instance method
67 | for value: Value,
68 | completion: @escaping () -> Void
69 | ) -> ModifiedContent<Self, AnimationCompletionObserverModifier<Value>> {
| `- error: 'ModifiedContent' is only available in macOS 10.15 or newer
70 | modifier(AnimationCompletionObserverModifier(
71 | observedValue: value,
/Users/admin/builder/spi-builder-workspace/Sources/AdaptiveModal/ViewModifier/AnimationCompletionObserverModifier.swift:83:38: error: 'VectorArithmetic' is only available in macOS 10.15 or newer
58 | }
59 |
60 | extension View {
| `- note: add @available attribute to enclosing extension
61 | /// Calls the completion handler whenever an animation on the given value completes.
62 | /// - Parameters:
:
81 | /// - onValueChanged: The callback to call the animation value changed.
82 | /// - Returns: A modified `View` instance with the observer attached.
83 | func onAnimationCompleted<Value: VectorArithmetic>(
| | `- error: 'VectorArithmetic' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing instance method
84 | for value: Value,
85 | completion: @escaping () -> Void,
/Users/admin/builder/spi-builder-workspace/Sources/AdaptiveModal/ViewModifier/AnimationCompletionObserverModifier.swift:87:10: error: 'ModifiedContent' is only available in macOS 10.15 or newer
58 | }
59 |
60 | extension View {
| `- note: add @available attribute to enclosing extension
61 | /// Calls the completion handler whenever an animation on the given value completes.
62 | /// - Parameters:
:
81 | /// - onValueChanged: The callback to call the animation value changed.
82 | /// - Returns: A modified `View` instance with the observer attached.
83 | func onAnimationCompleted<Value: VectorArithmetic>(
| `- note: add @available attribute to enclosing instance method
84 | for value: Value,
85 | completion: @escaping () -> Void,
86 | onValueChanged: @escaping (Value) -> Void
87 | ) -> ModifiedContent<Self, AnimationCompletionObserverModifier<Value>> {
| `- error: 'ModifiedContent' is only available in macOS 10.15 or newer
88 | modifier(AnimationCompletionObserverModifier(
89 | observedValue: value,
/Users/admin/builder/spi-builder-workspace/Sources/AdaptiveModal/ViewModifier/AnimationCompletionObserverModifier.swift:60:11: error: 'View' is only available in macOS 10.15 or newer
58 | }
59 |
60 | extension View {
| | `- error: 'View' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing extension
61 | /// Calls the completion handler whenever an animation on the given value completes.
62 | /// - Parameters:
/Users/admin/builder/spi-builder-workspace/Sources/AdaptiveModal/ViewModifier/ContentHeightViewModifier.swift:14:41: error: 'View' is only available in macOS 10.15 or newer
8 | import SwiftUI
9 |
10 | struct ContentHeightViewModifier: ViewModifier {
| `- note: add @available attribute to enclosing struct
11 | let contentHeight: (Double) -> Void
12 | let safeAreaInsetBottom: (Double) -> Void
13 |
14 | 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
15 | contentView(content)
16 | }
/Users/admin/builder/spi-builder-workspace/Sources/AdaptiveModal/ViewModifier/ContentHeightViewModifier.swift:32:15: error: 'View' is only available in macOS 10.15 or newer
26 |
27 | // MARK: - View Extension
28 | extension View {
| `- note: add @available attribute to enclosing extension
29 | func contentHeight(
| `- note: add @available attribute to enclosing instance method
30 | contentHeight: @escaping (Double) -> Void,
31 | safeAreaInsetBottom: @escaping (Double) -> Void
32 | ) -> some View {
| `- error: 'View' is only available in macOS 10.15 or newer
33 | modifier(ContentHeightViewModifier(
34 | contentHeight: contentHeight,
/Users/admin/builder/spi-builder-workspace/Sources/AdaptiveModal/ViewModifier/ContentHeightViewModifier.swift:28:11: error: 'View' is only available in macOS 10.15 or newer
26 |
27 | // MARK: - View Extension
28 | extension View {
| | `- error: 'View' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing extension
29 | func contentHeight(
30 | contentHeight: @escaping (Double) -> Void,
/Users/admin/builder/spi-builder-workspace/Sources/AdaptiveModal/ViewModifier/ContentHeightViewModifier.swift:41:50: error: 'View' is only available in macOS 10.15 or newer
38 | }
39 |
40 | private extension ContentHeightViewModifier {
| `- note: add @available attribute to enclosing extension
41 | func contentView(_ content: Content) -> some View {
| | `- error: 'View' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing instance method
42 | content
43 | .background(
/Users/admin/builder/spi-builder-workspace/Sources/AdaptiveModal/ViewModifier/DraggableBackgroundViewModifier.swift:11:6: error: 'State' is only available in macOS 10.15 or newer
8 | import SwiftUI
9 |
10 | struct DraggableBackgroundViewModifier: ViewModifier {
| `- note: add @available attribute to enclosing struct
11 | @State private var translation: CGSize = .zero
| `- error: 'State' is only available in macOS 10.15 or newer
12 | @State private var contentHeight: Double = .zero
13 | @State private var safeAreaInsetBottom: Double = .zero
/Users/admin/builder/spi-builder-workspace/Sources/AdaptiveModal/ViewModifier/DraggableBackgroundViewModifier.swift:12:6: error: 'State' is only available in macOS 10.15 or newer
8 | import SwiftUI
9 |
10 | struct DraggableBackgroundViewModifier: ViewModifier {
| `- note: add @available attribute to enclosing struct
11 | @State private var translation: CGSize = .zero
12 | @State private var contentHeight: Double = .zero
| `- error: 'State' is only available in macOS 10.15 or newer
13 | @State private var safeAreaInsetBottom: Double = .zero
14 |
/Users/admin/builder/spi-builder-workspace/Sources/AdaptiveModal/ViewModifier/DraggableBackgroundViewModifier.swift:13:6: error: 'State' is only available in macOS 10.15 or newer
8 | import SwiftUI
9 |
10 | struct DraggableBackgroundViewModifier: ViewModifier {
| `- note: add @available attribute to enclosing struct
11 | @State private var translation: CGSize = .zero
12 | @State private var contentHeight: Double = .zero
13 | @State private var safeAreaInsetBottom: Double = .zero
| `- error: 'State' is only available in macOS 10.15 or newer
14 |
15 | private let cancelable: Bool
/Users/admin/builder/spi-builder-workspace/Sources/AdaptiveModal/ViewModifier/DraggableBackgroundViewModifier.swift:20:41: error: 'View' is only available in macOS 10.15 or newer
8 | import SwiftUI
9 |
10 | struct DraggableBackgroundViewModifier: ViewModifier {
| `- note: add @available attribute to enclosing struct
11 | @State private var translation: CGSize = .zero
12 | @State private var contentHeight: Double = .zero
:
18 | private var translatedHeight: Double { max(contentHeight + safeAreaInsetBottom, 100) * 1.1 }
19 |
20 | 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
21 | content
22 | .contentHeight(
/Users/admin/builder/spi-builder-workspace/Sources/AdaptiveModal/ViewModifier/DraggableBackgroundViewModifier.swift:74:15: error: 'View' is only available in macOS 10.15 or newer
67 |
68 | // MARK: - View Extension
69 | extension View {
| `- note: add @available attribute to enclosing extension
70 | func draggableBackground(
| `- note: add @available attribute to enclosing instance method
71 | cancelable: Bool,
72 | onDismiss: @escaping () -> Void,
73 | onTranslationHeightChanged: @escaping (Double) -> Void
74 | ) -> some View {
| `- error: 'View' is only available in macOS 10.15 or newer
75 | modifier(DraggableBackgroundViewModifier(
76 | cancelable: cancelable,
/Users/admin/builder/spi-builder-workspace/Sources/AdaptiveModal/ViewModifier/DraggableBackgroundViewModifier.swift:69:11: error: 'View' is only available in macOS 10.15 or newer
67 |
68 | // MARK: - View Extension
69 | extension View {
| | `- error: 'View' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing extension
70 | func draggableBackground(
71 | cancelable: Bool,
/Users/admin/builder/spi-builder-workspace/Sources/AdaptiveModal/ViewModifier/DraggableBackgroundViewModifier.swift:84:19: error: 'DragGesture' is only available in macOS 10.15 or newer
82 |
83 | // MARK: - Private DragGesture.Value Extension
84 | private extension DragGesture.Value {
| | `- error: 'DragGesture' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing extension
85 | func calculationTranslation() -> CGSize {
86 | if translation.height < 0.0 {
/Users/admin/builder/spi-builder-workspace/Sources/AdaptiveModal/ViewModifier/ModalViewModifier.swift:22:41: error: 'View' is only available in macOS 10.15 or newer
8 | import SwiftUI
9 |
10 | struct ModalViewModifier<Body: View>: ViewModifier {
| `- note: add @available attribute to enclosing generic struct
11 | private let onDismiss: (() -> Void)?
12 | private let body: () -> Body
:
20 | }
21 |
22 | 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
23 | content
24 | .background(
/Users/admin/builder/spi-builder-workspace/Sources/AdaptiveModal/ViewModifier/ModalViewModifier.swift:10:32: error: 'View' is only available in macOS 10.15 or newer
8 | import SwiftUI
9 |
10 | struct ModalViewModifier<Body: View>: ViewModifier {
| | `- error: 'View' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing generic struct
11 | private let onDismiss: (() -> Void)?
12 | private let body: () -> Body
/Users/admin/builder/spi-builder-workspace/Sources/AdaptiveModal/ViewModifier/ModalViewModifier.swift:37:52: error: 'View' is only available in macOS 10.15 or newer
32 |
33 | // MARK: - View Extension
34 | extension View {
| `- note: add @available attribute to enclosing extension
35 | func modal(
| `- note: add @available attribute to enclosing instance method
36 | onDismiss: (() -> Void)? = nil,
37 | @ViewBuilder content: @escaping () -> some View
| `- error: 'View' is only available in macOS 10.15 or newer
38 | ) -> some View {
39 | modifier(ModalViewModifier(
/Users/admin/builder/spi-builder-workspace/Sources/AdaptiveModal/ViewModifier/ModalViewModifier.swift:37:10: error: 'ViewBuilder' is only available in macOS 10.15 or newer
32 |
33 | // MARK: - View Extension
34 | extension View {
| `- note: add @available attribute to enclosing extension
35 | func modal(
| `- note: add @available attribute to enclosing instance method
36 | onDismiss: (() -> Void)? = nil,
37 | @ViewBuilder content: @escaping () -> some View
| `- error: 'ViewBuilder' is only available in macOS 10.15 or newer
38 | ) -> some View {
39 | modifier(ModalViewModifier(
/Users/admin/builder/spi-builder-workspace/Sources/AdaptiveModal/ViewModifier/ModalViewModifier.swift:37:52: error: 'View' is only available in macOS 10.15 or newer
32 |
33 | // MARK: - View Extension
34 | extension View {
| `- note: add @available attribute to enclosing extension
35 | func modal(
| `- note: add @available attribute to enclosing instance method
36 | onDismiss: (() -> Void)? = nil,
37 | @ViewBuilder content: @escaping () -> some View
| `- error: 'View' is only available in macOS 10.15 or newer
38 | ) -> some View {
39 | modifier(ModalViewModifier(
/Users/admin/builder/spi-builder-workspace/Sources/AdaptiveModal/ViewModifier/ModalViewModifier.swift:38:15: error: 'View' is only available in macOS 10.15 or newer
32 |
33 | // MARK: - View Extension
34 | extension View {
| `- note: add @available attribute to enclosing extension
35 | func modal(
| `- note: add @available attribute to enclosing instance method
36 | onDismiss: (() -> Void)? = nil,
37 | @ViewBuilder content: @escaping () -> some View
38 | ) -> some View {
| `- error: 'View' is only available in macOS 10.15 or newer
39 | modifier(ModalViewModifier(
40 | onDismiss: onDismiss,
/Users/admin/builder/spi-builder-workspace/Sources/AdaptiveModal/ViewModifier/ModalViewModifier.swift:34:11: error: 'View' is only available in macOS 10.15 or newer
32 |
33 | // MARK: - View Extension
34 | extension View {
| | `- error: 'View' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing extension
35 | func modal(
36 | onDismiss: (() -> Void)? = nil,
/Users/admin/builder/spi-builder-workspace/Sources/AdaptiveModal/ViewModifier/UpperRoundedRectangleViewModifier.swift:11:41: error: 'Color' is only available in macOS 10.15 or newer
8 | import SwiftUI
9 |
10 | struct UpperRoundedRectangleViewModifier: ViewModifier {
| `- note: add @available attribute to enclosing struct
11 | @State private var backgroundColor: Color = {
| `- error: 'Color' is only available in macOS 10.15 or newer
12 | guard let defaultValue = ModalBackgroundColor.defaultValue else {
13 | fatalError("Require default value.")
/Users/admin/builder/spi-builder-workspace/Sources/AdaptiveModal/ViewModifier/UpperRoundedRectangleViewModifier.swift:11:6: error: 'State' is only available in macOS 10.15 or newer
8 | import SwiftUI
9 |
10 | struct UpperRoundedRectangleViewModifier: ViewModifier {
| `- note: add @available attribute to enclosing struct
11 | @State private var backgroundColor: Color = {
| `- error: 'State' is only available in macOS 10.15 or newer
12 | guard let defaultValue = ModalBackgroundColor.defaultValue else {
13 | fatalError("Require default value.")
/Users/admin/builder/spi-builder-workspace/Sources/AdaptiveModal/ViewModifier/UpperRoundedRectangleViewModifier.swift:18:6: error: 'Binding' is only available in macOS 10.15 or newer
8 | import SwiftUI
9 |
10 | struct UpperRoundedRectangleViewModifier: ViewModifier {
| `- note: add @available attribute to enclosing struct
11 | @State private var backgroundColor: Color = {
12 | guard let defaultValue = ModalBackgroundColor.defaultValue else {
:
16 | }()
17 |
18 | @Binding private var offset: CGSize
| `- error: 'Binding' is only available in macOS 10.15 or newer
19 |
20 | private let cornerRadius: CGFloat
/Users/admin/builder/spi-builder-workspace/Sources/AdaptiveModal/ViewModifier/UpperRoundedRectangleViewModifier.swift:22:41: error: 'View' is only available in macOS 10.15 or newer
8 | import SwiftUI
9 |
10 | struct UpperRoundedRectangleViewModifier: ViewModifier {
| `- note: add @available attribute to enclosing struct
11 | @State private var backgroundColor: Color = {
12 | guard let defaultValue = ModalBackgroundColor.defaultValue else {
:
20 | private let cornerRadius: CGFloat
21 |
22 | 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
23 | content
24 | .background(
/Users/admin/builder/spi-builder-workspace/Sources/AdaptiveModal/ViewModifier/UpperRoundedRectangleViewModifier.swift:41:17: error: 'Binding' is only available in macOS 10.15 or newer
8 | import SwiftUI
9 |
10 | struct UpperRoundedRectangleViewModifier: ViewModifier {
| `- note: add @available attribute to enclosing struct
11 | @State private var backgroundColor: Color = {
12 | guard let defaultValue = ModalBackgroundColor.defaultValue else {
:
38 | }
39 |
40 | init(
| `- note: add @available attribute to enclosing initializer
41 | offset: Binding<CGSize>,
| `- error: 'Binding' is only available in macOS 10.15 or newer
42 | cornerRadius: CGFloat
43 | ) {
/Users/admin/builder/spi-builder-workspace/Sources/AdaptiveModal/ViewModifier/UpperRoundedRectangleViewModifier.swift:52:17: error: 'Binding' is only available in macOS 10.15 or newer
48 |
49 | // MARK: - View Extension
50 | extension View {
| `- note: add @available attribute to enclosing extension
51 | func upperRoundedBackground(
| `- note: add @available attribute to enclosing instance method
52 | offset: Binding<CGSize> = .constant(.zero),
| `- error: 'Binding' is only available in macOS 10.15 or newer
53 | cornerRadius: CGFloat = 16
54 | ) -> some View {
/Users/admin/builder/spi-builder-workspace/Sources/AdaptiveModal/ViewModifier/UpperRoundedRectangleViewModifier.swift:54:15: error: 'View' is only available in macOS 10.15 or newer
48 |
49 | // MARK: - View Extension
50 | extension View {
| `- note: add @available attribute to enclosing extension
51 | func upperRoundedBackground(
| `- note: add @available attribute to enclosing instance method
52 | offset: Binding<CGSize> = .constant(.zero),
53 | cornerRadius: CGFloat = 16
54 | ) -> some View {
| `- error: 'View' is only available in macOS 10.15 or newer
55 | modifier(UpperRoundedRectangleViewModifier(
56 | offset: offset,
/Users/admin/builder/spi-builder-workspace/Sources/AdaptiveModal/ViewModifier/UpperRoundedRectangleViewModifier.swift:50:11: error: 'View' is only available in macOS 10.15 or newer
48 |
49 | // MARK: - View Extension
50 | extension View {
| | `- error: 'View' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing extension
51 | func upperRoundedBackground(
52 | offset: Binding<CGSize> = .constant(.zero),
[17/21] Compiling AdaptiveModal ModalViewController.swift
/Users/admin/builder/spi-builder-workspace/Sources/AdaptiveModal/Controller/ModalViewController.swift:10:28: error: cannot find type 'UIViewController' in scope
8 | import SwiftUI
9 |
10 | class ModalViewController: UIViewController {
| `- error: cannot find type 'UIViewController' in scope
11 | private var modalPresentationController: ModalPresentationController?
12 | }
/Users/admin/builder/spi-builder-workspace/Sources/AdaptiveModal/Controller/ModalViewController.swift:15:32: error: cannot find type 'UIViewControllerTransitioningDelegate' in scope
13 |
14 | // MARK: - UIViewControllerTransitioningDelegate
15 | extension ModalViewController: UIViewControllerTransitioningDelegate {
| `- error: cannot find type 'UIViewControllerTransitioningDelegate' in scope
16 | func presentationController(
17 | forPresented presented: UIViewController,
/Users/admin/builder/spi-builder-workspace/Sources/AdaptiveModal/Controller/ModalViewController.swift:20:10: error: cannot find type 'UIPresentationController' in scope
18 | presenting: UIViewController?,
19 | source: UIViewController
20 | ) -> UIPresentationController? {
| `- error: cannot find type 'UIPresentationController' in scope
21 | let controller = ModalPresentationController(
22 | presentedViewController: presented,
/Users/admin/builder/spi-builder-workspace/Sources/AdaptiveModal/Controller/ModalViewController.swift:17:33: error: cannot find type 'UIViewController' in scope
15 | extension ModalViewController: UIViewControllerTransitioningDelegate {
16 | func presentationController(
17 | forPresented presented: UIViewController,
| `- error: cannot find type 'UIViewController' in scope
18 | presenting: UIViewController?,
19 | source: UIViewController
/Users/admin/builder/spi-builder-workspace/Sources/AdaptiveModal/Controller/ModalViewController.swift:18:21: error: cannot find type 'UIViewController' in scope
16 | func presentationController(
17 | forPresented presented: UIViewController,
18 | presenting: UIViewController?,
| `- error: cannot find type 'UIViewController' in scope
19 | source: UIViewController
20 | ) -> UIPresentationController? {
/Users/admin/builder/spi-builder-workspace/Sources/AdaptiveModal/Controller/ModalViewController.swift:19:17: error: cannot find type 'UIViewController' in scope
17 | forPresented presented: UIViewController,
18 | presenting: UIViewController?,
19 | source: UIViewController
| `- error: cannot find type 'UIViewController' in scope
20 | ) -> UIPresentationController? {
21 | let controller = ModalPresentationController(
/Users/admin/builder/spi-builder-workspace/Sources/AdaptiveModal/Controller/ModalPresentationController.swift:11:29: error: cannot find type 'UIView' in scope
9 |
10 | class ModalPresentationController: UIPresentationController {
11 | private let dimmedView: UIView = {
| `- error: cannot find type 'UIView' in scope
12 | let view = UIView()
13 | view.backgroundColor = .black
/Users/admin/builder/spi-builder-workspace/Sources/AdaptiveModal/Controller/ModalViewController.swift:21:53: error: argument passed to call that takes no arguments
19 | source: UIViewController
20 | ) -> UIPresentationController? {
21 | let controller = ModalPresentationController(
| `- error: argument passed to call that takes no arguments
22 | presentedViewController: presented,
23 | presenting: presenting
/Users/admin/builder/spi-builder-workspace/Sources/AdaptiveModal/EnvironmentKey/ModalPresentedKey.swift:11:30: error: 'Binding' is only available in macOS 10.15 or newer
8 | import SwiftUI
9 |
10 | struct ModalPresentedKey: EnvironmentKey {
| `- note: add @available attribute to enclosing struct
11 | static let defaultValue: Binding<Bool> = .constant(false)
| | `- error: 'Binding' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing static property
12 | }
13 |
/Users/admin/builder/spi-builder-workspace/Sources/AdaptiveModal/EnvironmentKey/ModalPresentedKey.swift:15:27: error: 'Binding' is only available in macOS 10.15 or newer
12 | }
13 |
14 | extension EnvironmentValues {
| `- note: add @available attribute to enclosing extension
15 | var isModalPresented: Binding<Bool> {
| | `- error: 'Binding' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing property
16 | get{ self[ModalPresentedKey.self] }
17 | set{ self[ModalPresentedKey.self] = newValue }
/Users/admin/builder/spi-builder-workspace/Sources/AdaptiveModal/EnvironmentKey/ModalPresentedKey.swift:14:11: error: 'EnvironmentValues' is only available in macOS 10.15 or newer
12 | }
13 |
14 | extension EnvironmentValues {
| | `- error: 'EnvironmentValues' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing extension
15 | var isModalPresented: Binding<Bool> {
16 | get{ self[ModalPresentedKey.self] }
[18/21] Compiling AdaptiveModal ModalPresentedKey.swift
/Users/admin/builder/spi-builder-workspace/Sources/AdaptiveModal/Controller/ModalViewController.swift:10:28: error: cannot find type 'UIViewController' in scope
8 | import SwiftUI
9 |
10 | class ModalViewController: UIViewController {
| `- error: cannot find type 'UIViewController' in scope
11 | private var modalPresentationController: ModalPresentationController?
12 | }
/Users/admin/builder/spi-builder-workspace/Sources/AdaptiveModal/Controller/ModalViewController.swift:15:32: error: cannot find type 'UIViewControllerTransitioningDelegate' in scope
13 |
14 | // MARK: - UIViewControllerTransitioningDelegate
15 | extension ModalViewController: UIViewControllerTransitioningDelegate {
| `- error: cannot find type 'UIViewControllerTransitioningDelegate' in scope
16 | func presentationController(
17 | forPresented presented: UIViewController,
/Users/admin/builder/spi-builder-workspace/Sources/AdaptiveModal/Controller/ModalViewController.swift:20:10: error: cannot find type 'UIPresentationController' in scope
18 | presenting: UIViewController?,
19 | source: UIViewController
20 | ) -> UIPresentationController? {
| `- error: cannot find type 'UIPresentationController' in scope
21 | let controller = ModalPresentationController(
22 | presentedViewController: presented,
/Users/admin/builder/spi-builder-workspace/Sources/AdaptiveModal/Controller/ModalViewController.swift:17:33: error: cannot find type 'UIViewController' in scope
15 | extension ModalViewController: UIViewControllerTransitioningDelegate {
16 | func presentationController(
17 | forPresented presented: UIViewController,
| `- error: cannot find type 'UIViewController' in scope
18 | presenting: UIViewController?,
19 | source: UIViewController
/Users/admin/builder/spi-builder-workspace/Sources/AdaptiveModal/Controller/ModalViewController.swift:18:21: error: cannot find type 'UIViewController' in scope
16 | func presentationController(
17 | forPresented presented: UIViewController,
18 | presenting: UIViewController?,
| `- error: cannot find type 'UIViewController' in scope
19 | source: UIViewController
20 | ) -> UIPresentationController? {
/Users/admin/builder/spi-builder-workspace/Sources/AdaptiveModal/Controller/ModalViewController.swift:19:17: error: cannot find type 'UIViewController' in scope
17 | forPresented presented: UIViewController,
18 | presenting: UIViewController?,
19 | source: UIViewController
| `- error: cannot find type 'UIViewController' in scope
20 | ) -> UIPresentationController? {
21 | let controller = ModalPresentationController(
/Users/admin/builder/spi-builder-workspace/Sources/AdaptiveModal/Controller/ModalPresentationController.swift:11:29: error: cannot find type 'UIView' in scope
9 |
10 | class ModalPresentationController: UIPresentationController {
11 | private let dimmedView: UIView = {
| `- error: cannot find type 'UIView' in scope
12 | let view = UIView()
13 | view.backgroundColor = .black
/Users/admin/builder/spi-builder-workspace/Sources/AdaptiveModal/Controller/ModalViewController.swift:21:53: error: argument passed to call that takes no arguments
19 | source: UIViewController
20 | ) -> UIPresentationController? {
21 | let controller = ModalPresentationController(
| `- error: argument passed to call that takes no arguments
22 | presentedViewController: presented,
23 | presenting: presenting
/Users/admin/builder/spi-builder-workspace/Sources/AdaptiveModal/EnvironmentKey/ModalPresentedKey.swift:11:30: error: 'Binding' is only available in macOS 10.15 or newer
8 | import SwiftUI
9 |
10 | struct ModalPresentedKey: EnvironmentKey {
| `- note: add @available attribute to enclosing struct
11 | static let defaultValue: Binding<Bool> = .constant(false)
| | `- error: 'Binding' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing static property
12 | }
13 |
/Users/admin/builder/spi-builder-workspace/Sources/AdaptiveModal/EnvironmentKey/ModalPresentedKey.swift:15:27: error: 'Binding' is only available in macOS 10.15 or newer
12 | }
13 |
14 | extension EnvironmentValues {
| `- note: add @available attribute to enclosing extension
15 | var isModalPresented: Binding<Bool> {
| | `- error: 'Binding' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing property
16 | get{ self[ModalPresentedKey.self] }
17 | set{ self[ModalPresentedKey.self] = newValue }
/Users/admin/builder/spi-builder-workspace/Sources/AdaptiveModal/EnvironmentKey/ModalPresentedKey.swift:14:11: error: 'EnvironmentValues' is only available in macOS 10.15 or newer
12 | }
13 |
14 | extension EnvironmentValues {
| | `- error: 'EnvironmentValues' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing extension
15 | var isModalPresented: Binding<Bool> {
16 | get{ self[ModalPresentedKey.self] }
[19/21] Compiling AdaptiveModal ModalHostingController.swift
/Users/admin/builder/spi-builder-workspace/Sources/AdaptiveModal/Controller/ModalHostingController.swift:10:46: error: cannot find type 'UIHostingController' in scope
8 | import SwiftUI
9 |
10 | class ModalHostingController<Content: View>: UIHostingController<Content> {
| `- error: cannot find type 'UIHostingController' in scope
11 | override init(rootView: Content) {
12 | super.init(rootView: rootView)
/Users/admin/builder/spi-builder-workspace/Sources/AdaptiveModal/Controller/ModalHostingController.swift:11:14: error: initializer does not override a designated initializer from its superclass
9 |
10 | class ModalHostingController<Content: View>: UIHostingController<Content> {
11 | override init(rootView: Content) {
| `- error: initializer does not override a designated initializer from its superclass
12 | super.init(rootView: rootView)
13 | modalPresentationStyle = .custom
/Users/admin/builder/spi-builder-workspace/Sources/AdaptiveModal/Controller/ModalHostingController.swift:10:39: error: 'View' is only available in macOS 10.15 or newer
8 | import SwiftUI
9 |
10 | class ModalHostingController<Content: View>: UIHostingController<Content> {
| | `- error: 'View' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing generic class
11 | override init(rootView: Content) {
12 | super.init(rootView: rootView)
/Users/admin/builder/spi-builder-workspace/Sources/AdaptiveModal/Controller/ModalHostingController.swift:12:9: error: 'super' members cannot be referenced in a root class
10 | class ModalHostingController<Content: View>: UIHostingController<Content> {
11 | override init(rootView: Content) {
12 | super.init(rootView: rootView)
| `- error: 'super' members cannot be referenced in a root class
13 | modalPresentationStyle = .custom
14 | view.backgroundColor = .clear
/Users/admin/builder/spi-builder-workspace/Sources/AdaptiveModal/Controller/ModalHostingController.swift:13:9: error: cannot find 'modalPresentationStyle' in scope
11 | override init(rootView: Content) {
12 | super.init(rootView: rootView)
13 | modalPresentationStyle = .custom
| `- error: cannot find 'modalPresentationStyle' in scope
14 | view.backgroundColor = .clear
15 | }
/Users/admin/builder/spi-builder-workspace/Sources/AdaptiveModal/Controller/ModalHostingController.swift:14:9: error: cannot find 'view' in scope
12 | super.init(rootView: rootView)
13 | modalPresentationStyle = .custom
14 | view.backgroundColor = .clear
| `- error: cannot find 'view' in scope
15 | }
16 |
/Users/admin/builder/spi-builder-workspace/Sources/AdaptiveModal/Controller/ModalPresentationController.swift:11:29: error: cannot find type 'UIView' in scope
9 |
10 | class ModalPresentationController: UIPresentationController {
11 | private let dimmedView: UIView = {
| `- error: cannot find type 'UIView' in scope
12 | let view = UIView()
13 | view.backgroundColor = .black
/Users/admin/builder/spi-builder-workspace/Sources/AdaptiveModal/Controller/ModalPresentationController.swift:10:36: error: cannot find type 'UIPresentationController' in scope
8 | import SwiftUI
9 |
10 | class ModalPresentationController: UIPresentationController {
| `- error: cannot find type 'UIPresentationController' in scope
11 | private let dimmedView: UIView = {
12 | let view = UIView()
/Users/admin/builder/spi-builder-workspace/Sources/AdaptiveModal/Controller/ModalPresentationController.swift:18:19: error: method does not override any method from its superclass
16 | }()
17 |
18 | override func presentationTransitionWillBegin() {
| `- error: method does not override any method from its superclass
19 | guard let containerView else { return }
20 |
/Users/admin/builder/spi-builder-workspace/Sources/AdaptiveModal/Controller/ModalPresentationController.swift:36:19: error: method does not override any method from its superclass
34 | }
35 |
36 | override func dismissalTransitionWillBegin() {
| `- error: method does not override any method from its superclass
37 | presentedViewController.transitionCoordinator?.animate { [weak self] _ in
38 | self?.dimmedView.alpha = 0
/Users/admin/builder/spi-builder-workspace/Sources/AdaptiveModal/Controller/ModalPresentationController.swift:42:19: error: method does not override any method from its superclass
40 | }
41 |
42 | override func dismissalTransitionDidEnd(_ completed: Bool) {
| `- error: method does not override any method from its superclass
43 | if completed {
44 | dimmedView.removeFromSuperview()
/Users/admin/builder/spi-builder-workspace/Sources/AdaptiveModal/Controller/ModalPresentationController.swift:19:19: error: cannot find 'containerView' in scope
17 |
18 | override func presentationTransitionWillBegin() {
19 | guard let containerView else { return }
| `- error: cannot find 'containerView' in scope
20 |
21 | dimmedView.alpha = 0
/Users/admin/builder/spi-builder-workspace/Sources/AdaptiveModal/Controller/ModalPresentationController.swift:31:9: error: cannot find 'presentedViewController' in scope
29 | ])
30 |
31 | presentedViewController.transitionCoordinator?.animate { [weak self] _ in
| `- error: cannot find 'presentedViewController' in scope
32 | self?.dimmedView.alpha = 0.6
33 | }
/Users/admin/builder/spi-builder-workspace/Sources/AdaptiveModal/Controller/ModalPresentationController.swift:31:78: error: cannot infer type of closure parameter '_' without a type annotation
29 | ])
30 |
31 | presentedViewController.transitionCoordinator?.animate { [weak self] _ in
| `- error: cannot infer type of closure parameter '_' without a type annotation
32 | self?.dimmedView.alpha = 0.6
33 | }
/Users/admin/builder/spi-builder-workspace/Sources/AdaptiveModal/Controller/ModalPresentationController.swift:37:9: error: cannot find 'presentedViewController' in scope
35 |
36 | override func dismissalTransitionWillBegin() {
37 | presentedViewController.transitionCoordinator?.animate { [weak self] _ in
| `- error: cannot find 'presentedViewController' in scope
38 | self?.dimmedView.alpha = 0
39 | }
/Users/admin/builder/spi-builder-workspace/Sources/AdaptiveModal/Controller/ModalPresentationController.swift:37:78: error: cannot infer type of closure parameter '_' without a type annotation
35 |
36 | override func dismissalTransitionWillBegin() {
37 | presentedViewController.transitionCoordinator?.animate { [weak self] _ in
| `- error: cannot infer type of closure parameter '_' without a type annotation
38 | self?.dimmedView.alpha = 0
39 | }
[20/21] Compiling AdaptiveModal ModalPresentationController.swift
/Users/admin/builder/spi-builder-workspace/Sources/AdaptiveModal/Controller/ModalHostingController.swift:10:46: error: cannot find type 'UIHostingController' in scope
8 | import SwiftUI
9 |
10 | class ModalHostingController<Content: View>: UIHostingController<Content> {
| `- error: cannot find type 'UIHostingController' in scope
11 | override init(rootView: Content) {
12 | super.init(rootView: rootView)
/Users/admin/builder/spi-builder-workspace/Sources/AdaptiveModal/Controller/ModalHostingController.swift:11:14: error: initializer does not override a designated initializer from its superclass
9 |
10 | class ModalHostingController<Content: View>: UIHostingController<Content> {
11 | override init(rootView: Content) {
| `- error: initializer does not override a designated initializer from its superclass
12 | super.init(rootView: rootView)
13 | modalPresentationStyle = .custom
/Users/admin/builder/spi-builder-workspace/Sources/AdaptiveModal/Controller/ModalHostingController.swift:10:39: error: 'View' is only available in macOS 10.15 or newer
8 | import SwiftUI
9 |
10 | class ModalHostingController<Content: View>: UIHostingController<Content> {
| | `- error: 'View' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing generic class
11 | override init(rootView: Content) {
12 | super.init(rootView: rootView)
/Users/admin/builder/spi-builder-workspace/Sources/AdaptiveModal/Controller/ModalHostingController.swift:12:9: error: 'super' members cannot be referenced in a root class
10 | class ModalHostingController<Content: View>: UIHostingController<Content> {
11 | override init(rootView: Content) {
12 | super.init(rootView: rootView)
| `- error: 'super' members cannot be referenced in a root class
13 | modalPresentationStyle = .custom
14 | view.backgroundColor = .clear
/Users/admin/builder/spi-builder-workspace/Sources/AdaptiveModal/Controller/ModalHostingController.swift:13:9: error: cannot find 'modalPresentationStyle' in scope
11 | override init(rootView: Content) {
12 | super.init(rootView: rootView)
13 | modalPresentationStyle = .custom
| `- error: cannot find 'modalPresentationStyle' in scope
14 | view.backgroundColor = .clear
15 | }
/Users/admin/builder/spi-builder-workspace/Sources/AdaptiveModal/Controller/ModalHostingController.swift:14:9: error: cannot find 'view' in scope
12 | super.init(rootView: rootView)
13 | modalPresentationStyle = .custom
14 | view.backgroundColor = .clear
| `- error: cannot find 'view' in scope
15 | }
16 |
/Users/admin/builder/spi-builder-workspace/Sources/AdaptiveModal/Controller/ModalPresentationController.swift:11:29: error: cannot find type 'UIView' in scope
9 |
10 | class ModalPresentationController: UIPresentationController {
11 | private let dimmedView: UIView = {
| `- error: cannot find type 'UIView' in scope
12 | let view = UIView()
13 | view.backgroundColor = .black
/Users/admin/builder/spi-builder-workspace/Sources/AdaptiveModal/Controller/ModalPresentationController.swift:10:36: error: cannot find type 'UIPresentationController' in scope
8 | import SwiftUI
9 |
10 | class ModalPresentationController: UIPresentationController {
| `- error: cannot find type 'UIPresentationController' in scope
11 | private let dimmedView: UIView = {
12 | let view = UIView()
/Users/admin/builder/spi-builder-workspace/Sources/AdaptiveModal/Controller/ModalPresentationController.swift:18:19: error: method does not override any method from its superclass
16 | }()
17 |
18 | override func presentationTransitionWillBegin() {
| `- error: method does not override any method from its superclass
19 | guard let containerView else { return }
20 |
/Users/admin/builder/spi-builder-workspace/Sources/AdaptiveModal/Controller/ModalPresentationController.swift:36:19: error: method does not override any method from its superclass
34 | }
35 |
36 | override func dismissalTransitionWillBegin() {
| `- error: method does not override any method from its superclass
37 | presentedViewController.transitionCoordinator?.animate { [weak self] _ in
38 | self?.dimmedView.alpha = 0
/Users/admin/builder/spi-builder-workspace/Sources/AdaptiveModal/Controller/ModalPresentationController.swift:42:19: error: method does not override any method from its superclass
40 | }
41 |
42 | override func dismissalTransitionDidEnd(_ completed: Bool) {
| `- error: method does not override any method from its superclass
43 | if completed {
44 | dimmedView.removeFromSuperview()
/Users/admin/builder/spi-builder-workspace/Sources/AdaptiveModal/Controller/ModalPresentationController.swift:19:19: error: cannot find 'containerView' in scope
17 |
18 | override func presentationTransitionWillBegin() {
19 | guard let containerView else { return }
| `- error: cannot find 'containerView' in scope
20 |
21 | dimmedView.alpha = 0
/Users/admin/builder/spi-builder-workspace/Sources/AdaptiveModal/Controller/ModalPresentationController.swift:31:9: error: cannot find 'presentedViewController' in scope
29 | ])
30 |
31 | presentedViewController.transitionCoordinator?.animate { [weak self] _ in
| `- error: cannot find 'presentedViewController' in scope
32 | self?.dimmedView.alpha = 0.6
33 | }
/Users/admin/builder/spi-builder-workspace/Sources/AdaptiveModal/Controller/ModalPresentationController.swift:31:78: error: cannot infer type of closure parameter '_' without a type annotation
29 | ])
30 |
31 | presentedViewController.transitionCoordinator?.animate { [weak self] _ in
| `- error: cannot infer type of closure parameter '_' without a type annotation
32 | self?.dimmedView.alpha = 0.6
33 | }
/Users/admin/builder/spi-builder-workspace/Sources/AdaptiveModal/Controller/ModalPresentationController.swift:37:9: error: cannot find 'presentedViewController' in scope
35 |
36 | override func dismissalTransitionWillBegin() {
37 | presentedViewController.transitionCoordinator?.animate { [weak self] _ in
| `- error: cannot find 'presentedViewController' in scope
38 | self?.dimmedView.alpha = 0
39 | }
/Users/admin/builder/spi-builder-workspace/Sources/AdaptiveModal/Controller/ModalPresentationController.swift:37:78: error: cannot infer type of closure parameter '_' without a type annotation
35 |
36 | override func dismissalTransitionWillBegin() {
37 | presentedViewController.transitionCoordinator?.animate { [weak self] _ in
| `- error: cannot infer type of closure parameter '_' without a type annotation
38 | self?.dimmedView.alpha = 0
39 | }
[21/21] Compiling AdaptiveModal UpperRoundedRectangleViewModifier.swift
/Users/admin/builder/spi-builder-workspace/Sources/AdaptiveModal/ViewModifier/UpperRoundedRectangleViewModifier.swift:11:41: error: 'Color' is only available in macOS 10.15 or newer
8 | import SwiftUI
9 |
10 | struct UpperRoundedRectangleViewModifier: ViewModifier {
| `- note: add @available attribute to enclosing struct
11 | @State private var backgroundColor: Color = {
| `- error: 'Color' is only available in macOS 10.15 or newer
12 | guard let defaultValue = ModalBackgroundColor.defaultValue else {
13 | fatalError("Require default value.")
/Users/admin/builder/spi-builder-workspace/Sources/AdaptiveModal/ViewModifier/UpperRoundedRectangleViewModifier.swift:11:6: error: 'State' is only available in macOS 10.15 or newer
8 | import SwiftUI
9 |
10 | struct UpperRoundedRectangleViewModifier: ViewModifier {
| `- note: add @available attribute to enclosing struct
11 | @State private var backgroundColor: Color = {
| `- error: 'State' is only available in macOS 10.15 or newer
12 | guard let defaultValue = ModalBackgroundColor.defaultValue else {
13 | fatalError("Require default value.")
/Users/admin/builder/spi-builder-workspace/Sources/AdaptiveModal/ViewModifier/UpperRoundedRectangleViewModifier.swift:18:6: error: 'Binding' is only available in macOS 10.15 or newer
8 | import SwiftUI
9 |
10 | struct UpperRoundedRectangleViewModifier: ViewModifier {
| `- note: add @available attribute to enclosing struct
11 | @State private var backgroundColor: Color = {
12 | guard let defaultValue = ModalBackgroundColor.defaultValue else {
:
16 | }()
17 |
18 | @Binding private var offset: CGSize
| `- error: 'Binding' is only available in macOS 10.15 or newer
19 |
20 | private let cornerRadius: CGFloat
/Users/admin/builder/spi-builder-workspace/Sources/AdaptiveModal/ViewModifier/UpperRoundedRectangleViewModifier.swift:22:41: error: 'View' is only available in macOS 10.15 or newer
8 | import SwiftUI
9 |
10 | struct UpperRoundedRectangleViewModifier: ViewModifier {
| `- note: add @available attribute to enclosing struct
11 | @State private var backgroundColor: Color = {
12 | guard let defaultValue = ModalBackgroundColor.defaultValue else {
:
20 | private let cornerRadius: CGFloat
21 |
22 | 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
23 | content
24 | .background(
/Users/admin/builder/spi-builder-workspace/Sources/AdaptiveModal/ViewModifier/UpperRoundedRectangleViewModifier.swift:41:17: error: 'Binding' is only available in macOS 10.15 or newer
8 | import SwiftUI
9 |
10 | struct UpperRoundedRectangleViewModifier: ViewModifier {
| `- note: add @available attribute to enclosing struct
11 | @State private var backgroundColor: Color = {
12 | guard let defaultValue = ModalBackgroundColor.defaultValue else {
:
38 | }
39 |
40 | init(
| `- note: add @available attribute to enclosing initializer
41 | offset: Binding<CGSize>,
| `- error: 'Binding' is only available in macOS 10.15 or newer
42 | cornerRadius: CGFloat
43 | ) {
/Users/admin/builder/spi-builder-workspace/Sources/AdaptiveModal/ViewModifier/UpperRoundedRectangleViewModifier.swift:52:17: error: 'Binding' is only available in macOS 10.15 or newer
48 |
49 | // MARK: - View Extension
50 | extension View {
| `- note: add @available attribute to enclosing extension
51 | func upperRoundedBackground(
| `- note: add @available attribute to enclosing instance method
52 | offset: Binding<CGSize> = .constant(.zero),
| `- error: 'Binding' is only available in macOS 10.15 or newer
53 | cornerRadius: CGFloat = 16
54 | ) -> some View {
/Users/admin/builder/spi-builder-workspace/Sources/AdaptiveModal/ViewModifier/UpperRoundedRectangleViewModifier.swift:54:15: error: 'View' is only available in macOS 10.15 or newer
48 |
49 | // MARK: - View Extension
50 | extension View {
| `- note: add @available attribute to enclosing extension
51 | func upperRoundedBackground(
| `- note: add @available attribute to enclosing instance method
52 | offset: Binding<CGSize> = .constant(.zero),
53 | cornerRadius: CGFloat = 16
54 | ) -> some View {
| `- error: 'View' is only available in macOS 10.15 or newer
55 | modifier(UpperRoundedRectangleViewModifier(
56 | offset: offset,
/Users/admin/builder/spi-builder-workspace/Sources/AdaptiveModal/ViewModifier/UpperRoundedRectangleViewModifier.swift:50:11: error: 'View' is only available in macOS 10.15 or newer
48 |
49 | // MARK: - View Extension
50 | extension View {
| | `- error: 'View' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing extension
51 | func upperRoundedBackground(
52 | offset: Binding<CGSize> = .constant(.zero),
/Users/admin/builder/spi-builder-workspace/Sources/AdaptiveModal/Style/RoundedRectangleShape.swift:16:18: error: cannot find type 'UIRectCorner' in scope
14 | init(
15 | cornerRadius: CGFloat,
16 | corners: UIRectCorner
| `- error: cannot find type 'UIRectCorner' in scope
17 | ) {
18 | radius = cornerRadius
/Users/admin/builder/spi-builder-workspace/Sources/AdaptiveModal/ViewModifier/UpperRoundedRectangleViewModifier.swift:27:32: error: reference to member 'topLeft' cannot be resolved without a contextual type
25 | RoundedRectangleShape(
26 | cornerRadius: cornerRadius,
27 | corners: [.topLeft, .topRight]
| `- error: reference to member 'topLeft' cannot be resolved without a contextual type
28 | )
29 | .offset(offset)
/Users/admin/builder/spi-builder-workspace/Sources/AdaptiveModal/ViewModifier/UpperRoundedRectangleViewModifier.swift:27:42: error: reference to member 'topRight' cannot be resolved without a contextual type
25 | RoundedRectangleShape(
26 | cornerRadius: cornerRadius,
27 | corners: [.topLeft, .topRight]
| `- error: reference to member 'topRight' cannot be resolved without a contextual type
28 | )
29 | .offset(offset)
/Users/admin/builder/spi-builder-workspace/Sources/AdaptiveModal/ViewModifier/UpperRoundedRectangleViewModifier.swift:55:9: warning: conformance of 'ModifiedContent<Content, Modifier>' to 'View' is only available in macOS 10.15 or newer; this is an error in the Swift 6 language mode
48 |
49 | // MARK: - View Extension
50 | extension View {
| `- note: add @available attribute to enclosing extension
51 | func upperRoundedBackground(
| `- note: add @available attribute to enclosing instance method
52 | offset: Binding<CGSize> = .constant(.zero),
53 | cornerRadius: CGFloat = 16
54 | ) -> some View {
55 | modifier(UpperRoundedRectangleViewModifier(
| |- 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
56 | offset: offset,
57 | cornerRadius: cornerRadius
/Users/admin/builder/spi-builder-workspace/Sources/AdaptiveModal/ViewModifier/UpperRoundedRectangleViewModifier.swift:55:9: error: 'modifier' is only available in macOS 10.15 or newer
48 |
49 | // MARK: - View Extension
50 | extension View {
| `- note: add @available attribute to enclosing extension
51 | func upperRoundedBackground(
| `- note: add @available attribute to enclosing instance method
52 | offset: Binding<CGSize> = .constant(.zero),
53 | cornerRadius: CGFloat = 16
54 | ) -> some View {
55 | modifier(UpperRoundedRectangleViewModifier(
| |- error: 'modifier' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
56 | offset: offset,
57 | cornerRadius: cornerRadius
BUILD FAILURE 6.0 macosSpm