Build Information
Failed to build adaptive-modal, reference main (11835e
), with Swift 6.2 (beta) for macOS (SPM) on 21 Jun 2025 02:57:30 UTC.
Build Command
env DEVELOPER_DIR=/Applications/Xcode-26.0.0-Beta.app xcrun swift build --arch arm64
Build Log
| `- 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/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
[16/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/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
[17/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,
[18/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,
[19/21] Compiling AdaptiveModal AdaptiveModal.swift
/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/AdaptiveModal.swift:21:9: error: 'modifier' 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 {
21 | modifier(AdaptiveModalViewModifier(
| |- error: 'modifier' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
22 | onDismiss: onDismiss,
23 | content: content
/Users/admin/builder/spi-builder-workspace/Sources/AdaptiveModal/AdaptiveModal.swift:25:10: error: 'environment' 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,
:
23 | content: content
24 | ))
25 | .environment(\.isModalPresented, isPresented)
| |- error: 'environment' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
26 | }
27 |
/Users/admin/builder/spi-builder-workspace/Sources/AdaptiveModal/AdaptiveModal.swift:42:9: warning: conformance of 'Optional<Wrapped>' to 'View' is only available in macOS 10.15 or newer; this is an error in the Swift 6 language mode
8 | import SwiftUI
9 |
10 | 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 {
42 | adaptiveModal(
| |- warning: conformance of 'Optional<Wrapped>' to 'View' is only available in macOS 10.15 or newer; this is an error in the Swift 6 language mode
| `- note: add 'if #available' version check
43 | isPresented: item.isPresent(),
44 | onDismiss: onDismiss,
/Users/admin/builder/spi-builder-workspace/Sources/AdaptiveModal/AdaptiveModal.swift:46:57: error: 'buildIf' 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,
:
44 | onDismiss: onDismiss,
45 | content: {
46 | if let wrappedValue = item.wrappedValue {
| |- error: 'buildIf' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
47 | content(wrappedValue)
48 | }
/Users/admin/builder/spi-builder-workspace/Sources/AdaptiveModal/AdaptiveModal.swift:48:17: error: 'buildIf' 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,
:
46 | if let wrappedValue = item.wrappedValue {
47 | content(wrappedValue)
48 | }
| |- error: 'buildIf' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
49 | }
50 | )
/Users/admin/builder/spi-builder-workspace/Sources/AdaptiveModal/AdaptiveModal.swift:45:22: warning: conformance of 'Optional<Wrapped>' to 'View' is only available in macOS 10.15 or newer; this is an error in the Swift 6 language mode
8 | import SwiftUI
9 |
10 | 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,
:
43 | isPresented: item.isPresent(),
44 | onDismiss: onDismiss,
45 | content: {
| |- warning: conformance of 'Optional<Wrapped>' to 'View' is only available in macOS 10.15 or newer; this is an error in the Swift 6 language mode
| `- note: add 'if #available' version check
46 | if let wrappedValue = item.wrappedValue {
47 | content(wrappedValue)
/Users/admin/builder/spi-builder-workspace/Sources/AdaptiveModal/AdaptiveModal.swift:59:9: error: 'preference(key:value:)' 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 {
| `- note: add @available attribute to enclosing instance method
59 | preference(key: ModalInteractiveDismissDisabled.self, value: isDisabled)
| |- error: 'preference(key:value:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
60 | }
61 |
/Users/admin/builder/spi-builder-workspace/Sources/AdaptiveModal/AdaptiveModal.swift:66:9: error: 'preference(key:value:)' 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 {
| `- note: add @available attribute to enclosing instance method
66 | preference(key: ModalDraggableDisabled.self, value: isDisabled)
| |- error: 'preference(key:value:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
67 | }
68 |
/Users/admin/builder/spi-builder-workspace/Sources/AdaptiveModal/AdaptiveModal.swift:73:9: error: 'preference(key:value:)' 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 {
| `- note: add @available attribute to enclosing instance method
73 | preference(key: ModalBackgroundColor.self, value: color)
| |- error: 'preference(key:value:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
74 | }
75 | }
/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/Content/ModalContent.swift:36: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
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) {
| |- 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
37 | if translation.height >= translatedHeight {
38 | dismiss()
/Users/admin/builder/spi-builder-workspace/Sources/AdaptiveModal/Content/ModalContent.swift:42:21: error: setter for 'opacity' 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) {
:
40 | } onValueChanged: { value in
41 | if !translation.height.isZero {
42 | opacity = min(
| |- error: setter for 'opacity' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
43 | opacity,
44 | ((contentHeight - value) / contentHeight) * maxOpacity
/Users/admin/builder/spi-builder-workspace/Sources/AdaptiveModal/Content/ModalContent.swift:48:14: error: 'onChange(of:perform:)' is only available in macOS 11.0 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) {
:
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 | }
[20/21] Compiling AdaptiveModal ModalContent.swift
/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/AdaptiveModal.swift:21:9: error: 'modifier' 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 {
21 | modifier(AdaptiveModalViewModifier(
| |- error: 'modifier' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
22 | onDismiss: onDismiss,
23 | content: content
/Users/admin/builder/spi-builder-workspace/Sources/AdaptiveModal/AdaptiveModal.swift:25:10: error: 'environment' 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,
:
23 | content: content
24 | ))
25 | .environment(\.isModalPresented, isPresented)
| |- error: 'environment' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
26 | }
27 |
/Users/admin/builder/spi-builder-workspace/Sources/AdaptiveModal/AdaptiveModal.swift:42:9: warning: conformance of 'Optional<Wrapped>' to 'View' is only available in macOS 10.15 or newer; this is an error in the Swift 6 language mode
8 | import SwiftUI
9 |
10 | 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 {
42 | adaptiveModal(
| |- warning: conformance of 'Optional<Wrapped>' to 'View' is only available in macOS 10.15 or newer; this is an error in the Swift 6 language mode
| `- note: add 'if #available' version check
43 | isPresented: item.isPresent(),
44 | onDismiss: onDismiss,
/Users/admin/builder/spi-builder-workspace/Sources/AdaptiveModal/AdaptiveModal.swift:46:57: error: 'buildIf' 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,
:
44 | onDismiss: onDismiss,
45 | content: {
46 | if let wrappedValue = item.wrappedValue {
| |- error: 'buildIf' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
47 | content(wrappedValue)
48 | }
/Users/admin/builder/spi-builder-workspace/Sources/AdaptiveModal/AdaptiveModal.swift:48:17: error: 'buildIf' 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,
:
46 | if let wrappedValue = item.wrappedValue {
47 | content(wrappedValue)
48 | }
| |- error: 'buildIf' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
49 | }
50 | )
/Users/admin/builder/spi-builder-workspace/Sources/AdaptiveModal/AdaptiveModal.swift:45:22: warning: conformance of 'Optional<Wrapped>' to 'View' is only available in macOS 10.15 or newer; this is an error in the Swift 6 language mode
8 | import SwiftUI
9 |
10 | 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,
:
43 | isPresented: item.isPresent(),
44 | onDismiss: onDismiss,
45 | content: {
| |- warning: conformance of 'Optional<Wrapped>' to 'View' is only available in macOS 10.15 or newer; this is an error in the Swift 6 language mode
| `- note: add 'if #available' version check
46 | if let wrappedValue = item.wrappedValue {
47 | content(wrappedValue)
/Users/admin/builder/spi-builder-workspace/Sources/AdaptiveModal/AdaptiveModal.swift:59:9: error: 'preference(key:value:)' 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 {
| `- note: add @available attribute to enclosing instance method
59 | preference(key: ModalInteractiveDismissDisabled.self, value: isDisabled)
| |- error: 'preference(key:value:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
60 | }
61 |
/Users/admin/builder/spi-builder-workspace/Sources/AdaptiveModal/AdaptiveModal.swift:66:9: error: 'preference(key:value:)' 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 {
| `- note: add @available attribute to enclosing instance method
66 | preference(key: ModalDraggableDisabled.self, value: isDisabled)
| |- error: 'preference(key:value:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
67 | }
68 |
/Users/admin/builder/spi-builder-workspace/Sources/AdaptiveModal/AdaptiveModal.swift:73:9: error: 'preference(key:value:)' 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 {
| `- note: add @available attribute to enclosing instance method
73 | preference(key: ModalBackgroundColor.self, value: color)
| |- error: 'preference(key:value:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
74 | }
75 | }
/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/Content/ModalContent.swift:36: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
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) {
| |- 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
37 | if translation.height >= translatedHeight {
38 | dismiss()
/Users/admin/builder/spi-builder-workspace/Sources/AdaptiveModal/Content/ModalContent.swift:42:21: error: setter for 'opacity' 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) {
:
40 | } onValueChanged: { value in
41 | if !translation.height.isZero {
42 | opacity = min(
| |- error: setter for 'opacity' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
43 | opacity,
44 | ((contentHeight - value) / contentHeight) * maxOpacity
/Users/admin/builder/spi-builder-workspace/Sources/AdaptiveModal/Content/ModalContent.swift:48:14: error: 'onChange(of:perform:)' is only available in macOS 11.0 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) {
:
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 | }
[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.2 macosSpm