Build Information
Failed to build Sheetify, reference main (6845dd), with Swift 6.2 for macOS (SPM) on 23 Jun 2025 19:56:14 UTC.
Build Command
env DEVELOPER_DIR=/Applications/Xcode-26.0.0-Beta.app xcrun swift build --arch arm64Build Log
========================================
RunAll
========================================
Builder version: 4.64.0
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/Isiguenza/Sheetify.git
Reference: main
Initialized empty Git repository in /Users/admin/builder/spi-builder-workspace/.git/
From https://github.com/Isiguenza/Sheetify
* branch main -> FETCH_HEAD
* [new branch] main -> origin/main
HEAD is now at 6845ddd Update Readme.md
Cloned https://github.com/Isiguenza/Sheetify.git
Revision (git rev-parse @):
6845dddef4c29e92ccdd5f8920f3c092c7c17e2c
SUCCESS checkout https://github.com/Isiguenza/Sheetify.git at main
========================================
Build
========================================
Selected platform: macosSpm
Swift version: 6.2
Building package at path: $PWD
https://github.com/Isiguenza/Sheetify.git
Running build ...
env DEVELOPER_DIR=/Applications/Xcode-26.0.0-Beta.app xcrun swift build --arch arm64
Building for debugging...
[0/2] Write sources
[1/2] Write swift-version-1EA4D86E10B52AF.txt
[3/7] Compiling Sheetify sheetify.swift
error: emit-module command failed with exit code 1 (use -v to see invocation)
[4/7] Emitting module Sheetify
/Users/admin/builder/spi-builder-workspace/Sources/Sheetify/Helpers.swift:43:25: error: cannot find type 'UIRectCorner' in scope
41 | public struct RoundedCorner: Shape {
42 | public var radius: CGFloat
43 | public var corners: UIRectCorner
| `- error: cannot find type 'UIRectCorner' in scope
44 |
45 | public func path(in rect: CGRect) -> Path {
/Users/admin/builder/spi-builder-workspace/Sources/Sheetify/Helpers.swift:45:42: error: 'Path' is only available in macOS 10.15 or newer
39 |
40 | /// Shape for rounded corners on specified edges
41 | public struct RoundedCorner: Shape {
| `- note: add @available attribute to enclosing struct
42 | public var radius: CGFloat
43 | public var corners: UIRectCorner
44 |
45 | public func path(in rect: CGRect) -> Path {
| | `- error: 'Path' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing instance method
46 | #if canImport(UIKit)
47 | let path = UIBezierPath(
/Users/admin/builder/spi-builder-workspace/Sources/Sheetify/TrayConfig.swift:13:27: error: 'PresentationDetent' is only available in macOS 13.0 or newer
9 |
10 | /// Configuration for the styled sheet
11 | public struct TrayConfig {
| `- note: add @available attribute to enclosing struct
12 | /// The stopping detent for the sheet (e.g., .fraction(0.5), .large)
13 | public var maxDetent: PresentationDetent
| `- error: 'PresentationDetent' is only available in macOS 13.0 or newer
14 | /// Corner radius for the sheet background
15 | public var cornerRadius: CGFloat = 30
/Users/admin/builder/spi-builder-workspace/Sources/Sheetify/TrayConfig.swift:22:20: error: 'PresentationDetent' is only available in macOS 13.0 or newer
9 |
10 | /// Configuration for the styled sheet
11 | public struct TrayConfig {
| `- note: add @available attribute to enclosing struct
12 | /// The stopping detent for the sheet (e.g., .fraction(0.5), .large)
13 | public var maxDetent: PresentationDetent
:
19 | public var appearanceAnimationDuration: Double = 0.1
20 |
21 | public init(
| `- note: add @available attribute to enclosing initializer
22 | maxDetent: PresentationDetent,
| `- error: 'PresentationDetent' is only available in macOS 13.0 or newer
23 | cornerRadius: CGFloat = 30,
24 | isInteractiveDismissDisabled: Bool = false,
/Users/admin/builder/spi-builder-workspace/Sources/Sheetify/View+Sheetify.swift:18:6: error: 'Binding' is only available in macOS 10.15 or newer
15 | /// 2. Shows a close/back button: tapping X goes to the previous step if available, otherwise dismisses the sheet.
16 | /// 3. Renders arbitrary content provided by the user, bound to the `Binding<Step>` to navigate between steps.
17 | public struct FlowContainer<Step: Hashable & CaseIterable, Content: View>: View {
| `- note: add @available attribute to enclosing generic struct
18 | @Binding private var isPresented: Bool
| `- error: 'Binding' is only available in macOS 10.15 or newer
19 | @State private var currentStep: Step
20 | @State private var config: TrayConfig = .init(maxDetent: .fraction(0.99))
/Users/admin/builder/spi-builder-workspace/Sources/Sheetify/View+Sheetify.swift:19:6: error: 'State' is only available in macOS 10.15 or newer
15 | /// 2. Shows a close/back button: tapping X goes to the previous step if available, otherwise dismisses the sheet.
16 | /// 3. Renders arbitrary content provided by the user, bound to the `Binding<Step>` to navigate between steps.
17 | public struct FlowContainer<Step: Hashable & CaseIterable, Content: View>: View {
| `- note: add @available attribute to enclosing generic struct
18 | @Binding private var isPresented: Bool
19 | @State private var currentStep: Step
| `- error: 'State' is only available in macOS 10.15 or newer
20 | @State private var config: TrayConfig = .init(maxDetent: .fraction(0.99))
21 | private let steps: [Step]
/Users/admin/builder/spi-builder-workspace/Sources/Sheetify/View+Sheetify.swift:20:6: error: 'State' is only available in macOS 10.15 or newer
15 | /// 2. Shows a close/back button: tapping X goes to the previous step if available, otherwise dismisses the sheet.
16 | /// 3. Renders arbitrary content provided by the user, bound to the `Binding<Step>` to navigate between steps.
17 | public struct FlowContainer<Step: Hashable & CaseIterable, Content: View>: View {
| `- note: add @available attribute to enclosing generic struct
18 | @Binding private var isPresented: Bool
19 | @State private var currentStep: Step
20 | @State private var config: TrayConfig = .init(maxDetent: .fraction(0.99))
| `- error: 'State' is only available in macOS 10.15 or newer
21 | private let steps: [Step]
22 | private let content: (Binding<Step>) -> Content
/Users/admin/builder/spi-builder-workspace/Sources/Sheetify/View+Sheetify.swift:22:27: error: 'Binding' is only available in macOS 10.15 or newer
15 | /// 2. Shows a close/back button: tapping X goes to the previous step if available, otherwise dismisses the sheet.
16 | /// 3. Renders arbitrary content provided by the user, bound to the `Binding<Step>` to navigate between steps.
17 | public struct FlowContainer<Step: Hashable & CaseIterable, Content: View>: View {
| `- note: add @available attribute to enclosing generic struct
18 | @Binding private var isPresented: Bool
19 | @State private var currentStep: Step
20 | @State private var config: TrayConfig = .init(maxDetent: .fraction(0.99))
21 | private let steps: [Step]
22 | private let content: (Binding<Step>) -> Content
| `- error: 'Binding' is only available in macOS 10.15 or newer
23 |
24 | /// Initialize the flow container.
/Users/admin/builder/spi-builder-workspace/Sources/Sheetify/View+Sheetify.swift:29:30: error: 'Binding' is only available in macOS 10.15 or newer
15 | /// 2. Shows a close/back button: tapping X goes to the previous step if available, otherwise dismisses the sheet.
16 | /// 3. Renders arbitrary content provided by the user, bound to the `Binding<Step>` to navigate between steps.
17 | public struct FlowContainer<Step: Hashable & CaseIterable, Content: View>: View {
| `- note: add @available attribute to enclosing generic struct
18 | @Binding private var isPresented: Bool
19 | @State private var currentStep: Step
:
27 | /// - startStep: The initial step of the flow.
28 | /// - content: Closure providing the view for the current step, receiving a `Binding<Step>`.
29 | public init(isPresented: Binding<Bool>, startStep: Step, @ViewBuilder content: @escaping (Binding<Step>) -> Content) {
| | `- error: 'Binding' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing initializer
30 | self._isPresented = isPresented
31 | self._currentStep = State(initialValue: startStep)
/Users/admin/builder/spi-builder-workspace/Sources/Sheetify/View+Sheetify.swift:29:63: error: 'ViewBuilder' is only available in macOS 10.15 or newer
15 | /// 2. Shows a close/back button: tapping X goes to the previous step if available, otherwise dismisses the sheet.
16 | /// 3. Renders arbitrary content provided by the user, bound to the `Binding<Step>` to navigate between steps.
17 | public struct FlowContainer<Step: Hashable & CaseIterable, Content: View>: View {
| `- note: add @available attribute to enclosing generic struct
18 | @Binding private var isPresented: Bool
19 | @State private var currentStep: Step
:
27 | /// - startStep: The initial step of the flow.
28 | /// - content: Closure providing the view for the current step, receiving a `Binding<Step>`.
29 | public init(isPresented: Binding<Bool>, startStep: Step, @ViewBuilder content: @escaping (Binding<Step>) -> Content) {
| | `- error: 'ViewBuilder' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing initializer
30 | self._isPresented = isPresented
31 | self._currentStep = State(initialValue: startStep)
/Users/admin/builder/spi-builder-workspace/Sources/Sheetify/View+Sheetify.swift:29:95: error: 'Binding' is only available in macOS 10.15 or newer
15 | /// 2. Shows a close/back button: tapping X goes to the previous step if available, otherwise dismisses the sheet.
16 | /// 3. Renders arbitrary content provided by the user, bound to the `Binding<Step>` to navigate between steps.
17 | public struct FlowContainer<Step: Hashable & CaseIterable, Content: View>: View {
| `- note: add @available attribute to enclosing generic struct
18 | @Binding private var isPresented: Bool
19 | @State private var currentStep: Step
:
27 | /// - startStep: The initial step of the flow.
28 | /// - content: Closure providing the view for the current step, receiving a `Binding<Step>`.
29 | public init(isPresented: Binding<Bool>, startStep: Step, @ViewBuilder content: @escaping (Binding<Step>) -> Content) {
| | `- error: 'Binding' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing initializer
30 | self._isPresented = isPresented
31 | self._currentStep = State(initialValue: startStep)
/Users/admin/builder/spi-builder-workspace/Sources/Sheetify/View+Sheetify.swift:39:27: error: 'View' is only available in macOS 10.15 or newer
15 | /// 2. Shows a close/back button: tapping X goes to the previous step if available, otherwise dismisses the sheet.
16 | /// 3. Renders arbitrary content provided by the user, bound to the `Binding<Step>` to navigate between steps.
17 | public struct FlowContainer<Step: Hashable & CaseIterable, Content: View>: View {
| `- note: add @available attribute to enclosing generic struct
18 | @Binding private var isPresented: Bool
19 | @State private var currentStep: Step
:
37 | private var previousStep: Step? { currentIndex > 0 ? steps[currentIndex - 1] : nil }
38 |
39 | public var body: some View {
| | `- error: 'View' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing property
40 |
41 |
/Users/admin/builder/spi-builder-workspace/Sources/Sheetify/View+Sheetify.swift:17:69: error: 'View' is only available in macOS 10.15 or newer
15 | /// 2. Shows a close/back button: tapping X goes to the previous step if available, otherwise dismisses the sheet.
16 | /// 3. Renders arbitrary content provided by the user, bound to the `Binding<Step>` to navigate between steps.
17 | public struct FlowContainer<Step: Hashable & CaseIterable, Content: View>: View {
| | `- error: 'View' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing generic struct
18 | @Binding private var isPresented: Bool
19 | @State private var currentStep: Step
/Users/admin/builder/spi-builder-workspace/Sources/Sheetify/View+Sheetify.swift:89:41: error: 'View' is only available in macOS 10.15 or newer
84 | }
85 |
86 | public extension View {
| `- note: add @available attribute to enclosing extension
87 | /// Conditionally apply corner radius and clear background on iOS 16.4+.
88 | @ViewBuilder
89 | func sheetBackgroundStyle() -> some View {
| | `- error: 'View' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing instance method
90 | if #available(iOS 16.4, macCatalyst 16.4, *) {
91 | self.presentationCornerRadius(0)
/Users/admin/builder/spi-builder-workspace/Sources/Sheetify/View+Sheetify.swift:88:6: error: 'ViewBuilder' is only available in macOS 10.15 or newer
84 | }
85 |
86 | public extension View {
| `- note: add @available attribute to enclosing extension
87 | /// Conditionally apply corner radius and clear background on iOS 16.4+.
88 | @ViewBuilder
| `- error: 'ViewBuilder' is only available in macOS 10.15 or newer
89 | func sheetBackgroundStyle() -> some View {
| `- note: add @available attribute to enclosing instance method
90 | if #available(iOS 16.4, macCatalyst 16.4, *) {
91 | self.presentationCornerRadius(0)
/Users/admin/builder/spi-builder-workspace/Sources/Sheetify/View+Sheetify.swift:99:28: error: 'View' is only available in macOS 10.15 or newer
84 | }
85 |
86 | public extension View {
| `- note: add @available attribute to enclosing extension
87 | /// Conditionally apply corner radius and clear background on iOS 16.4+.
88 | @ViewBuilder
:
97 |
98 | /// Presents a styled sheet with optional header and custom content.
99 | func sheetify<Content: View>(
| | `- error: 'View' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing instance method
100 | _ isPresented: Binding<Bool>,
101 | title: String? = nil,
/Users/admin/builder/spi-builder-workspace/Sources/Sheetify/View+Sheetify.swift:100:24: error: 'Binding' is only available in macOS 10.15 or newer
84 | }
85 |
86 | public extension View {
| `- note: add @available attribute to enclosing extension
87 | /// Conditionally apply corner radius and clear background on iOS 16.4+.
88 | @ViewBuilder
:
97 |
98 | /// Presents a styled sheet with optional header and custom content.
99 | func sheetify<Content: View>(
| `- note: add @available attribute to enclosing instance method
100 | _ isPresented: Binding<Bool>,
| `- error: 'Binding' is only available in macOS 10.15 or newer
101 | title: String? = nil,
102 | config: TrayConfig = .init(maxDetent: .fraction(0.99)),
/Users/admin/builder/spi-builder-workspace/Sources/Sheetify/View+Sheetify.swift:103:10: error: 'ViewBuilder' is only available in macOS 10.15 or newer
84 | }
85 |
86 | public extension View {
| `- note: add @available attribute to enclosing extension
87 | /// Conditionally apply corner radius and clear background on iOS 16.4+.
88 | @ViewBuilder
:
97 |
98 | /// Presents a styled sheet with optional header and custom content.
99 | func sheetify<Content: View>(
| `- note: add @available attribute to enclosing instance method
100 | _ isPresented: Binding<Bool>,
101 | title: String? = nil,
102 | config: TrayConfig = .init(maxDetent: .fraction(0.99)),
103 | @ViewBuilder content: @escaping () -> Content
| `- error: 'ViewBuilder' is only available in macOS 10.15 or newer
104 | ) -> some View {
105 | self.sheet(isPresented: isPresented) {
/Users/admin/builder/spi-builder-workspace/Sources/Sheetify/View+Sheetify.swift:104:15: error: 'View' is only available in macOS 10.15 or newer
84 | }
85 |
86 | public extension View {
| `- note: add @available attribute to enclosing extension
87 | /// Conditionally apply corner radius and clear background on iOS 16.4+.
88 | @ViewBuilder
:
97 |
98 | /// Presents a styled sheet with optional header and custom content.
99 | func sheetify<Content: View>(
| `- note: add @available attribute to enclosing instance method
100 | _ isPresented: Binding<Bool>,
101 | title: String? = nil,
102 | config: TrayConfig = .init(maxDetent: .fraction(0.99)),
103 | @ViewBuilder content: @escaping () -> Content
104 | ) -> some View {
| `- error: 'View' is only available in macOS 10.15 or newer
105 | self.sheet(isPresented: isPresented) {
106 | ZStack(alignment: .bottom) {
/Users/admin/builder/spi-builder-workspace/Sources/Sheetify/View+Sheetify.swift:158:63: error: 'View' is only available in macOS 10.15 or newer
84 | }
85 |
86 | public extension View {
| `- note: add @available attribute to enclosing extension
87 | /// Conditionally apply corner radius and clear background on iOS 16.4+.
88 | @ViewBuilder
:
156 | /// - config: `TrayConfig` customizing sheet appearance.
157 | /// - content: Closure providing content for the current step, given a `Binding<Step>`.
158 | func sheetifyFlow<Step: Hashable & CaseIterable, Content: View>(
| | `- error: 'View' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing instance method
159 | _ isPresented: Binding<Bool>,
160 | startStep: Step,
/Users/admin/builder/spi-builder-workspace/Sources/Sheetify/View+Sheetify.swift:159:24: error: 'Binding' is only available in macOS 10.15 or newer
84 | }
85 |
86 | public extension View {
| `- note: add @available attribute to enclosing extension
87 | /// Conditionally apply corner radius and clear background on iOS 16.4+.
88 | @ViewBuilder
:
156 | /// - config: `TrayConfig` customizing sheet appearance.
157 | /// - content: Closure providing content for the current step, given a `Binding<Step>`.
158 | func sheetifyFlow<Step: Hashable & CaseIterable, Content: View>(
| `- note: add @available attribute to enclosing instance method
159 | _ isPresented: Binding<Bool>,
| `- error: 'Binding' is only available in macOS 10.15 or newer
160 | startStep: Step,
161 | config: TrayConfig = .init(maxDetent: .fraction(0.99)),
/Users/admin/builder/spi-builder-workspace/Sources/Sheetify/View+Sheetify.swift:162:10: error: 'ViewBuilder' is only available in macOS 10.15 or newer
84 | }
85 |
86 | public extension View {
| `- note: add @available attribute to enclosing extension
87 | /// Conditionally apply corner radius and clear background on iOS 16.4+.
88 | @ViewBuilder
:
156 | /// - config: `TrayConfig` customizing sheet appearance.
157 | /// - content: Closure providing content for the current step, given a `Binding<Step>`.
158 | func sheetifyFlow<Step: Hashable & CaseIterable, Content: View>(
| `- note: add @available attribute to enclosing instance method
159 | _ isPresented: Binding<Bool>,
160 | startStep: Step,
161 | config: TrayConfig = .init(maxDetent: .fraction(0.99)),
162 | @ViewBuilder content: @escaping (Binding<Step>) -> Content
| `- error: 'ViewBuilder' is only available in macOS 10.15 or newer
163 | ) -> some View {
164 | self.sheet(isPresented: isPresented) {
/Users/admin/builder/spi-builder-workspace/Sources/Sheetify/View+Sheetify.swift:162:42: error: 'Binding' is only available in macOS 10.15 or newer
84 | }
85 |
86 | public extension View {
| `- note: add @available attribute to enclosing extension
87 | /// Conditionally apply corner radius and clear background on iOS 16.4+.
88 | @ViewBuilder
:
156 | /// - config: `TrayConfig` customizing sheet appearance.
157 | /// - content: Closure providing content for the current step, given a `Binding<Step>`.
158 | func sheetifyFlow<Step: Hashable & CaseIterable, Content: View>(
| `- note: add @available attribute to enclosing instance method
159 | _ isPresented: Binding<Bool>,
160 | startStep: Step,
161 | config: TrayConfig = .init(maxDetent: .fraction(0.99)),
162 | @ViewBuilder content: @escaping (Binding<Step>) -> Content
| `- error: 'Binding' is only available in macOS 10.15 or newer
163 | ) -> some View {
164 | self.sheet(isPresented: isPresented) {
/Users/admin/builder/spi-builder-workspace/Sources/Sheetify/View+Sheetify.swift:163:15: error: 'View' is only available in macOS 10.15 or newer
84 | }
85 |
86 | public extension View {
| `- note: add @available attribute to enclosing extension
87 | /// Conditionally apply corner radius and clear background on iOS 16.4+.
88 | @ViewBuilder
:
156 | /// - config: `TrayConfig` customizing sheet appearance.
157 | /// - content: Closure providing content for the current step, given a `Binding<Step>`.
158 | func sheetifyFlow<Step: Hashable & CaseIterable, Content: View>(
| `- note: add @available attribute to enclosing instance method
159 | _ isPresented: Binding<Bool>,
160 | startStep: Step,
161 | config: TrayConfig = .init(maxDetent: .fraction(0.99)),
162 | @ViewBuilder content: @escaping (Binding<Step>) -> Content
163 | ) -> some View {
| `- error: 'View' is only available in macOS 10.15 or newer
164 | self.sheet(isPresented: isPresented) {
165 | FlowContainer(isPresented: isPresented, startStep: startStep, content: content)
/Users/admin/builder/spi-builder-workspace/Sources/Sheetify/View+Sheetify.swift:86:18: error: 'View' is only available in macOS 10.15 or newer
84 | }
85 |
86 | public extension View {
| | `- error: 'View' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing extension
87 | /// Conditionally apply corner radius and clear background on iOS 16.4+.
88 | @ViewBuilder
[5/7] Compiling Sheetify Helpers.swift
/Users/admin/builder/spi-builder-workspace/Sources/Sheetify/Helpers.swift:43:25: error: cannot find type 'UIRectCorner' in scope
41 | public struct RoundedCorner: Shape {
42 | public var radius: CGFloat
43 | public var corners: UIRectCorner
| `- error: cannot find type 'UIRectCorner' in scope
44 |
45 | public func path(in rect: CGRect) -> Path {
/Users/admin/builder/spi-builder-workspace/Sources/Sheetify/Helpers.swift:45:42: error: 'Path' is only available in macOS 10.15 or newer
39 |
40 | /// Shape for rounded corners on specified edges
41 | public struct RoundedCorner: Shape {
| `- note: add @available attribute to enclosing struct
42 | public var radius: CGFloat
43 | public var corners: UIRectCorner
44 |
45 | public func path(in rect: CGRect) -> Path {
| | `- error: 'Path' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing instance method
46 | #if canImport(UIKit)
47 | let path = UIBezierPath(
/Users/admin/builder/spi-builder-workspace/Sources/Sheetify/Helpers.swift:54:16: error: 'Path' is only available in macOS 10.15 or newer
39 |
40 | /// Shape for rounded corners on specified edges
41 | public struct RoundedCorner: Shape {
| `- note: add @available attribute to enclosing struct
42 | public var radius: CGFloat
43 | public var corners: UIRectCorner
44 |
45 | public func path(in rect: CGRect) -> Path {
| `- note: add @available attribute to enclosing instance method
46 | #if canImport(UIKit)
47 | let path = UIBezierPath(
:
52 | return Path(path.cgPath)
53 | #else
54 | return Path(rect)
| |- error: 'Path' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
55 | #endif
56 | }
[6/7] Compiling Sheetify View+Sheetify.swift
/Users/admin/builder/spi-builder-workspace/Sources/Sheetify/View+Sheetify.swift:18:6: error: 'Binding' is only available in macOS 10.15 or newer
15 | /// 2. Shows a close/back button: tapping X goes to the previous step if available, otherwise dismisses the sheet.
16 | /// 3. Renders arbitrary content provided by the user, bound to the `Binding<Step>` to navigate between steps.
17 | public struct FlowContainer<Step: Hashable & CaseIterable, Content: View>: View {
| `- note: add @available attribute to enclosing generic struct
18 | @Binding private var isPresented: Bool
| `- error: 'Binding' is only available in macOS 10.15 or newer
19 | @State private var currentStep: Step
20 | @State private var config: TrayConfig = .init(maxDetent: .fraction(0.99))
/Users/admin/builder/spi-builder-workspace/Sources/Sheetify/View+Sheetify.swift:19:6: error: 'State' is only available in macOS 10.15 or newer
15 | /// 2. Shows a close/back button: tapping X goes to the previous step if available, otherwise dismisses the sheet.
16 | /// 3. Renders arbitrary content provided by the user, bound to the `Binding<Step>` to navigate between steps.
17 | public struct FlowContainer<Step: Hashable & CaseIterable, Content: View>: View {
| `- note: add @available attribute to enclosing generic struct
18 | @Binding private var isPresented: Bool
19 | @State private var currentStep: Step
| `- error: 'State' is only available in macOS 10.15 or newer
20 | @State private var config: TrayConfig = .init(maxDetent: .fraction(0.99))
21 | private let steps: [Step]
/Users/admin/builder/spi-builder-workspace/Sources/Sheetify/View+Sheetify.swift:20:6: error: 'State' is only available in macOS 10.15 or newer
15 | /// 2. Shows a close/back button: tapping X goes to the previous step if available, otherwise dismisses the sheet.
16 | /// 3. Renders arbitrary content provided by the user, bound to the `Binding<Step>` to navigate between steps.
17 | public struct FlowContainer<Step: Hashable & CaseIterable, Content: View>: View {
| `- note: add @available attribute to enclosing generic struct
18 | @Binding private var isPresented: Bool
19 | @State private var currentStep: Step
20 | @State private var config: TrayConfig = .init(maxDetent: .fraction(0.99))
| `- error: 'State' is only available in macOS 10.15 or newer
21 | private let steps: [Step]
22 | private let content: (Binding<Step>) -> Content
/Users/admin/builder/spi-builder-workspace/Sources/Sheetify/View+Sheetify.swift:22:27: error: 'Binding' is only available in macOS 10.15 or newer
15 | /// 2. Shows a close/back button: tapping X goes to the previous step if available, otherwise dismisses the sheet.
16 | /// 3. Renders arbitrary content provided by the user, bound to the `Binding<Step>` to navigate between steps.
17 | public struct FlowContainer<Step: Hashable & CaseIterable, Content: View>: View {
| `- note: add @available attribute to enclosing generic struct
18 | @Binding private var isPresented: Bool
19 | @State private var currentStep: Step
20 | @State private var config: TrayConfig = .init(maxDetent: .fraction(0.99))
21 | private let steps: [Step]
22 | private let content: (Binding<Step>) -> Content
| `- error: 'Binding' is only available in macOS 10.15 or newer
23 |
24 | /// Initialize the flow container.
/Users/admin/builder/spi-builder-workspace/Sources/Sheetify/View+Sheetify.swift:29:30: error: 'Binding' is only available in macOS 10.15 or newer
15 | /// 2. Shows a close/back button: tapping X goes to the previous step if available, otherwise dismisses the sheet.
16 | /// 3. Renders arbitrary content provided by the user, bound to the `Binding<Step>` to navigate between steps.
17 | public struct FlowContainer<Step: Hashable & CaseIterable, Content: View>: View {
| `- note: add @available attribute to enclosing generic struct
18 | @Binding private var isPresented: Bool
19 | @State private var currentStep: Step
:
27 | /// - startStep: The initial step of the flow.
28 | /// - content: Closure providing the view for the current step, receiving a `Binding<Step>`.
29 | public init(isPresented: Binding<Bool>, startStep: Step, @ViewBuilder content: @escaping (Binding<Step>) -> Content) {
| | `- error: 'Binding' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing initializer
30 | self._isPresented = isPresented
31 | self._currentStep = State(initialValue: startStep)
/Users/admin/builder/spi-builder-workspace/Sources/Sheetify/View+Sheetify.swift:29:63: error: 'ViewBuilder' is only available in macOS 10.15 or newer
15 | /// 2. Shows a close/back button: tapping X goes to the previous step if available, otherwise dismisses the sheet.
16 | /// 3. Renders arbitrary content provided by the user, bound to the `Binding<Step>` to navigate between steps.
17 | public struct FlowContainer<Step: Hashable & CaseIterable, Content: View>: View {
| `- note: add @available attribute to enclosing generic struct
18 | @Binding private var isPresented: Bool
19 | @State private var currentStep: Step
:
27 | /// - startStep: The initial step of the flow.
28 | /// - content: Closure providing the view for the current step, receiving a `Binding<Step>`.
29 | public init(isPresented: Binding<Bool>, startStep: Step, @ViewBuilder content: @escaping (Binding<Step>) -> Content) {
| | `- error: 'ViewBuilder' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing initializer
30 | self._isPresented = isPresented
31 | self._currentStep = State(initialValue: startStep)
/Users/admin/builder/spi-builder-workspace/Sources/Sheetify/View+Sheetify.swift:29:95: error: 'Binding' is only available in macOS 10.15 or newer
15 | /// 2. Shows a close/back button: tapping X goes to the previous step if available, otherwise dismisses the sheet.
16 | /// 3. Renders arbitrary content provided by the user, bound to the `Binding<Step>` to navigate between steps.
17 | public struct FlowContainer<Step: Hashable & CaseIterable, Content: View>: View {
| `- note: add @available attribute to enclosing generic struct
18 | @Binding private var isPresented: Bool
19 | @State private var currentStep: Step
:
27 | /// - startStep: The initial step of the flow.
28 | /// - content: Closure providing the view for the current step, receiving a `Binding<Step>`.
29 | public init(isPresented: Binding<Bool>, startStep: Step, @ViewBuilder content: @escaping (Binding<Step>) -> Content) {
| | `- error: 'Binding' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing initializer
30 | self._isPresented = isPresented
31 | self._currentStep = State(initialValue: startStep)
/Users/admin/builder/spi-builder-workspace/Sources/Sheetify/View+Sheetify.swift:39:27: error: 'View' is only available in macOS 10.15 or newer
15 | /// 2. Shows a close/back button: tapping X goes to the previous step if available, otherwise dismisses the sheet.
16 | /// 3. Renders arbitrary content provided by the user, bound to the `Binding<Step>` to navigate between steps.
17 | public struct FlowContainer<Step: Hashable & CaseIterable, Content: View>: View {
| `- note: add @available attribute to enclosing generic struct
18 | @Binding private var isPresented: Bool
19 | @State private var currentStep: Step
:
37 | private var previousStep: Step? { currentIndex > 0 ? steps[currentIndex - 1] : nil }
38 |
39 | public var body: some View {
| | `- error: 'View' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing property
40 |
41 |
/Users/admin/builder/spi-builder-workspace/Sources/Sheetify/View+Sheetify.swift:17:69: error: 'View' is only available in macOS 10.15 or newer
15 | /// 2. Shows a close/back button: tapping X goes to the previous step if available, otherwise dismisses the sheet.
16 | /// 3. Renders arbitrary content provided by the user, bound to the `Binding<Step>` to navigate between steps.
17 | public struct FlowContainer<Step: Hashable & CaseIterable, Content: View>: View {
| | `- error: 'View' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing generic struct
18 | @Binding private var isPresented: Bool
19 | @State private var currentStep: Step
/Users/admin/builder/spi-builder-workspace/Sources/Sheetify/View+Sheetify.swift:89:41: error: 'View' is only available in macOS 10.15 or newer
84 | }
85 |
86 | public extension View {
| `- note: add @available attribute to enclosing extension
87 | /// Conditionally apply corner radius and clear background on iOS 16.4+.
88 | @ViewBuilder
89 | func sheetBackgroundStyle() -> some View {
| | `- error: 'View' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing instance method
90 | if #available(iOS 16.4, macCatalyst 16.4, *) {
91 | self.presentationCornerRadius(0)
/Users/admin/builder/spi-builder-workspace/Sources/Sheetify/View+Sheetify.swift:88:6: error: 'ViewBuilder' is only available in macOS 10.15 or newer
84 | }
85 |
86 | public extension View {
| `- note: add @available attribute to enclosing extension
87 | /// Conditionally apply corner radius and clear background on iOS 16.4+.
88 | @ViewBuilder
| `- error: 'ViewBuilder' is only available in macOS 10.15 or newer
89 | func sheetBackgroundStyle() -> some View {
| `- note: add @available attribute to enclosing instance method
90 | if #available(iOS 16.4, macCatalyst 16.4, *) {
91 | self.presentationCornerRadius(0)
/Users/admin/builder/spi-builder-workspace/Sources/Sheetify/View+Sheetify.swift:99:28: error: 'View' is only available in macOS 10.15 or newer
84 | }
85 |
86 | public extension View {
| `- note: add @available attribute to enclosing extension
87 | /// Conditionally apply corner radius and clear background on iOS 16.4+.
88 | @ViewBuilder
:
97 |
98 | /// Presents a styled sheet with optional header and custom content.
99 | func sheetify<Content: View>(
| | `- error: 'View' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing instance method
100 | _ isPresented: Binding<Bool>,
101 | title: String? = nil,
/Users/admin/builder/spi-builder-workspace/Sources/Sheetify/View+Sheetify.swift:100:24: error: 'Binding' is only available in macOS 10.15 or newer
84 | }
85 |
86 | public extension View {
| `- note: add @available attribute to enclosing extension
87 | /// Conditionally apply corner radius and clear background on iOS 16.4+.
88 | @ViewBuilder
:
97 |
98 | /// Presents a styled sheet with optional header and custom content.
99 | func sheetify<Content: View>(
| `- note: add @available attribute to enclosing instance method
100 | _ isPresented: Binding<Bool>,
| `- error: 'Binding' is only available in macOS 10.15 or newer
101 | title: String? = nil,
102 | config: TrayConfig = .init(maxDetent: .fraction(0.99)),
/Users/admin/builder/spi-builder-workspace/Sources/Sheetify/View+Sheetify.swift:103:10: error: 'ViewBuilder' is only available in macOS 10.15 or newer
84 | }
85 |
86 | public extension View {
| `- note: add @available attribute to enclosing extension
87 | /// Conditionally apply corner radius and clear background on iOS 16.4+.
88 | @ViewBuilder
:
97 |
98 | /// Presents a styled sheet with optional header and custom content.
99 | func sheetify<Content: View>(
| `- note: add @available attribute to enclosing instance method
100 | _ isPresented: Binding<Bool>,
101 | title: String? = nil,
102 | config: TrayConfig = .init(maxDetent: .fraction(0.99)),
103 | @ViewBuilder content: @escaping () -> Content
| `- error: 'ViewBuilder' is only available in macOS 10.15 or newer
104 | ) -> some View {
105 | self.sheet(isPresented: isPresented) {
/Users/admin/builder/spi-builder-workspace/Sources/Sheetify/View+Sheetify.swift:104:15: error: 'View' is only available in macOS 10.15 or newer
84 | }
85 |
86 | public extension View {
| `- note: add @available attribute to enclosing extension
87 | /// Conditionally apply corner radius and clear background on iOS 16.4+.
88 | @ViewBuilder
:
97 |
98 | /// Presents a styled sheet with optional header and custom content.
99 | func sheetify<Content: View>(
| `- note: add @available attribute to enclosing instance method
100 | _ isPresented: Binding<Bool>,
101 | title: String? = nil,
102 | config: TrayConfig = .init(maxDetent: .fraction(0.99)),
103 | @ViewBuilder content: @escaping () -> Content
104 | ) -> some View {
| `- error: 'View' is only available in macOS 10.15 or newer
105 | self.sheet(isPresented: isPresented) {
106 | ZStack(alignment: .bottom) {
/Users/admin/builder/spi-builder-workspace/Sources/Sheetify/View+Sheetify.swift:158:63: error: 'View' is only available in macOS 10.15 or newer
84 | }
85 |
86 | public extension View {
| `- note: add @available attribute to enclosing extension
87 | /// Conditionally apply corner radius and clear background on iOS 16.4+.
88 | @ViewBuilder
:
156 | /// - config: `TrayConfig` customizing sheet appearance.
157 | /// - content: Closure providing content for the current step, given a `Binding<Step>`.
158 | func sheetifyFlow<Step: Hashable & CaseIterable, Content: View>(
| | `- error: 'View' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing instance method
159 | _ isPresented: Binding<Bool>,
160 | startStep: Step,
/Users/admin/builder/spi-builder-workspace/Sources/Sheetify/View+Sheetify.swift:159:24: error: 'Binding' is only available in macOS 10.15 or newer
84 | }
85 |
86 | public extension View {
| `- note: add @available attribute to enclosing extension
87 | /// Conditionally apply corner radius and clear background on iOS 16.4+.
88 | @ViewBuilder
:
156 | /// - config: `TrayConfig` customizing sheet appearance.
157 | /// - content: Closure providing content for the current step, given a `Binding<Step>`.
158 | func sheetifyFlow<Step: Hashable & CaseIterable, Content: View>(
| `- note: add @available attribute to enclosing instance method
159 | _ isPresented: Binding<Bool>,
| `- error: 'Binding' is only available in macOS 10.15 or newer
160 | startStep: Step,
161 | config: TrayConfig = .init(maxDetent: .fraction(0.99)),
/Users/admin/builder/spi-builder-workspace/Sources/Sheetify/View+Sheetify.swift:162:10: error: 'ViewBuilder' is only available in macOS 10.15 or newer
84 | }
85 |
86 | public extension View {
| `- note: add @available attribute to enclosing extension
87 | /// Conditionally apply corner radius and clear background on iOS 16.4+.
88 | @ViewBuilder
:
156 | /// - config: `TrayConfig` customizing sheet appearance.
157 | /// - content: Closure providing content for the current step, given a `Binding<Step>`.
158 | func sheetifyFlow<Step: Hashable & CaseIterable, Content: View>(
| `- note: add @available attribute to enclosing instance method
159 | _ isPresented: Binding<Bool>,
160 | startStep: Step,
161 | config: TrayConfig = .init(maxDetent: .fraction(0.99)),
162 | @ViewBuilder content: @escaping (Binding<Step>) -> Content
| `- error: 'ViewBuilder' is only available in macOS 10.15 or newer
163 | ) -> some View {
164 | self.sheet(isPresented: isPresented) {
/Users/admin/builder/spi-builder-workspace/Sources/Sheetify/View+Sheetify.swift:162:42: error: 'Binding' is only available in macOS 10.15 or newer
84 | }
85 |
86 | public extension View {
| `- note: add @available attribute to enclosing extension
87 | /// Conditionally apply corner radius and clear background on iOS 16.4+.
88 | @ViewBuilder
:
156 | /// - config: `TrayConfig` customizing sheet appearance.
157 | /// - content: Closure providing content for the current step, given a `Binding<Step>`.
158 | func sheetifyFlow<Step: Hashable & CaseIterable, Content: View>(
| `- note: add @available attribute to enclosing instance method
159 | _ isPresented: Binding<Bool>,
160 | startStep: Step,
161 | config: TrayConfig = .init(maxDetent: .fraction(0.99)),
162 | @ViewBuilder content: @escaping (Binding<Step>) -> Content
| `- error: 'Binding' is only available in macOS 10.15 or newer
163 | ) -> some View {
164 | self.sheet(isPresented: isPresented) {
/Users/admin/builder/spi-builder-workspace/Sources/Sheetify/View+Sheetify.swift:163:15: error: 'View' is only available in macOS 10.15 or newer
84 | }
85 |
86 | public extension View {
| `- note: add @available attribute to enclosing extension
87 | /// Conditionally apply corner radius and clear background on iOS 16.4+.
88 | @ViewBuilder
:
156 | /// - config: `TrayConfig` customizing sheet appearance.
157 | /// - content: Closure providing content for the current step, given a `Binding<Step>`.
158 | func sheetifyFlow<Step: Hashable & CaseIterable, Content: View>(
| `- note: add @available attribute to enclosing instance method
159 | _ isPresented: Binding<Bool>,
160 | startStep: Step,
161 | config: TrayConfig = .init(maxDetent: .fraction(0.99)),
162 | @ViewBuilder content: @escaping (Binding<Step>) -> Content
163 | ) -> some View {
| `- error: 'View' is only available in macOS 10.15 or newer
164 | self.sheet(isPresented: isPresented) {
165 | FlowContainer(isPresented: isPresented, startStep: startStep, content: content)
/Users/admin/builder/spi-builder-workspace/Sources/Sheetify/View+Sheetify.swift:86:18: error: 'View' is only available in macOS 10.15 or newer
84 | }
85 |
86 | public extension View {
| | `- error: 'View' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing extension
87 | /// Conditionally apply corner radius and clear background on iOS 16.4+.
88 | @ViewBuilder
/Users/admin/builder/spi-builder-workspace/Sources/Sheetify/View+Sheetify.swift:31:29: error: 'State' is only available in macOS 10.15 or newer
15 | /// 2. Shows a close/back button: tapping X goes to the previous step if available, otherwise dismisses the sheet.
16 | /// 3. Renders arbitrary content provided by the user, bound to the `Binding<Step>` to navigate between steps.
17 | public struct FlowContainer<Step: Hashable & CaseIterable, Content: View>: View {
| `- note: add @available attribute to enclosing generic struct
18 | @Binding private var isPresented: Bool
19 | @State private var currentStep: Step
:
27 | /// - startStep: The initial step of the flow.
28 | /// - content: Closure providing the view for the current step, receiving a `Binding<Step>`.
29 | public init(isPresented: Binding<Bool>, startStep: Step, @ViewBuilder content: @escaping (Binding<Step>) -> Content) {
| `- note: add @available attribute to enclosing initializer
30 | self._isPresented = isPresented
31 | self._currentStep = State(initialValue: startStep)
| |- error: 'State' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
32 | self.steps = Array(Step.allCases)
33 | self.content = content
/Users/admin/builder/spi-builder-workspace/Sources/Sheetify/View+Sheetify.swift:68:31: error: cannot find 'UIColor' in scope
66 | .frame(maxWidth: .infinity)
67 | }
68 | .background(Color(UIColor.systemBackground))
| `- error: cannot find 'UIColor' in scope
69 | .clipShape(RoundedRectangle(cornerRadius: config.cornerRadius))
70 | .padding(.horizontal)
/Users/admin/builder/spi-builder-workspace/Sources/Sheetify/View+Sheetify.swift:73:21: error: cannot find 'RemoveSheetShadow' in scope
71 | .frame(maxHeight: .infinity, alignment: .bottom)
72 | }
73 | .background(RemoveSheetShadow())
| `- error: cannot find 'RemoveSheetShadow' in scope
74 | .presentationDetents([config.maxDetent])
75 | .sheetBackgroundStyle()
/Users/admin/builder/spi-builder-workspace/Sources/Sheetify/View+Sheetify.swift:90:12: warning: result builder 'ViewBuilder' does not implement 'buildLimitedAvailability'; this code may crash on earlier versions of the OS [#ResultBuilderMethods]
88 | @ViewBuilder
89 | func sheetBackgroundStyle() -> some View {
90 | if #available(iOS 16.4, macCatalyst 16.4, *) {
| `- warning: result builder 'ViewBuilder' does not implement 'buildLimitedAvailability'; this code may crash on earlier versions of the OS [#ResultBuilderMethods]
91 | self.presentationCornerRadius(0)
92 | .presentationBackground(.clear)
/Users/admin/builder/spi-builder-workspace/Sources/Sheetify/View+Sheetify.swift:91:18: error: 'presentationCornerRadius' is only available in macOS 13.3 or newer
84 | }
85 |
86 | public extension View {
| `- note: add @available attribute to enclosing extension
87 | /// Conditionally apply corner radius and clear background on iOS 16.4+.
88 | @ViewBuilder
89 | func sheetBackgroundStyle() -> some View {
| `- note: add @available attribute to enclosing instance method
90 | if #available(iOS 16.4, macCatalyst 16.4, *) {
91 | self.presentationCornerRadius(0)
| |- error: 'presentationCornerRadius' is only available in macOS 13.3 or newer
| `- note: add 'if #available' version check
92 | .presentationBackground(.clear)
93 | } else {
/Users/admin/builder/spi-builder-workspace/Sources/Sheetify/View+Sheetify.swift:92:18: error: 'presentationBackground' is only available in macOS 13.3 or newer
84 | }
85 |
86 | public extension View {
| `- note: add @available attribute to enclosing extension
87 | /// Conditionally apply corner radius and clear background on iOS 16.4+.
88 | @ViewBuilder
89 | func sheetBackgroundStyle() -> some View {
| `- note: add @available attribute to enclosing instance method
90 | if #available(iOS 16.4, macCatalyst 16.4, *) {
91 | self.presentationCornerRadius(0)
92 | .presentationBackground(.clear)
| |- error: 'presentationBackground' is only available in macOS 13.3 or newer
| `- note: add 'if #available' version check
93 | } else {
94 | self
/Users/admin/builder/spi-builder-workspace/Sources/Sheetify/View+Sheetify.swift:92:42: error: 'clear' is only available in macOS 10.15 or newer
84 | }
85 |
86 | public extension View {
| `- note: add @available attribute to enclosing extension
87 | /// Conditionally apply corner radius and clear background on iOS 16.4+.
88 | @ViewBuilder
89 | func sheetBackgroundStyle() -> some View {
| `- note: add @available attribute to enclosing instance method
90 | if #available(iOS 16.4, macCatalyst 16.4, *) {
91 | self.presentationCornerRadius(0)
92 | .presentationBackground(.clear)
| |- error: 'clear' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
93 | } else {
94 | self
/Users/admin/builder/spi-builder-workspace/Sources/Sheetify/View+Sheetify.swift:90:54: error: 'buildLimitedAvailability' is only available in macOS 11.0 or newer
84 | }
85 |
86 | public extension View {
| `- note: add @available attribute to enclosing extension
87 | /// Conditionally apply corner radius and clear background on iOS 16.4+.
88 | @ViewBuilder
89 | func sheetBackgroundStyle() -> some View {
| `- note: add @available attribute to enclosing instance method
90 | if #available(iOS 16.4, macCatalyst 16.4, *) {
| |- error: 'buildLimitedAvailability' is only available in macOS 11.0 or newer
| `- note: add 'if #available' version check
91 | self.presentationCornerRadius(0)
92 | .presentationBackground(.clear)
/Users/admin/builder/spi-builder-workspace/Sources/Sheetify/View+Sheetify.swift:90:54: error: 'buildEither(first:)' is only available in macOS 10.15 or newer
84 | }
85 |
86 | public extension View {
| `- note: add @available attribute to enclosing extension
87 | /// Conditionally apply corner radius and clear background on iOS 16.4+.
88 | @ViewBuilder
89 | func sheetBackgroundStyle() -> some View {
| `- note: add @available attribute to enclosing instance method
90 | if #available(iOS 16.4, macCatalyst 16.4, *) {
| |- error: 'buildEither(first:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
91 | self.presentationCornerRadius(0)
92 | .presentationBackground(.clear)
/Users/admin/builder/spi-builder-workspace/Sources/Sheetify/View+Sheetify.swift:93:16: error: 'buildEither(second:)' is only available in macOS 10.15 or newer
84 | }
85 |
86 | public extension View {
| `- note: add @available attribute to enclosing extension
87 | /// Conditionally apply corner radius and clear background on iOS 16.4+.
88 | @ViewBuilder
89 | func sheetBackgroundStyle() -> some View {
| `- note: add @available attribute to enclosing instance method
90 | if #available(iOS 16.4, macCatalyst 16.4, *) {
91 | self.presentationCornerRadius(0)
92 | .presentationBackground(.clear)
93 | } else {
| |- error: 'buildEither(second:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
94 | self
95 | }
/Users/admin/builder/spi-builder-workspace/Sources/Sheetify/View+Sheetify.swift:89:46: 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
84 | }
85 |
86 | public extension View {
| `- note: add @available attribute to enclosing extension
87 | /// Conditionally apply corner radius and clear background on iOS 16.4+.
88 | @ViewBuilder
89 | func sheetBackgroundStyle() -> 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
90 | if #available(iOS 16.4, macCatalyst 16.4, *) {
91 | self.presentationCornerRadius(0)
/Users/admin/builder/spi-builder-workspace/Sources/Sheetify/View+Sheetify.swift:132:35: error: cannot find 'UIColor' in scope
130 | .frame(maxWidth: .infinity)
131 | }
132 | .background(Color(UIColor.systemBackground))
| `- error: cannot find 'UIColor' in scope
133 | .clipShape(RoundedRectangle(cornerRadius: config.cornerRadius))
134 | .padding(.horizontal)
/Users/admin/builder/spi-builder-workspace/Sources/Sheetify/View+Sheetify.swift:137:25: error: cannot find 'RemoveSheetShadow' in scope
135 | .frame(maxHeight: .infinity, alignment: .bottom)
136 | }
137 | .background(RemoveSheetShadow())
| `- error: cannot find 'RemoveSheetShadow' in scope
138 | .presentationDetents([config.maxDetent])
139 | .sheetBackgroundStyle()
/Users/admin/builder/spi-builder-workspace/Sources/Sheetify/View+Sheetify.swift:164:14: error: 'sheet(isPresented:onDismiss:content:)' is only available in macOS 10.15 or newer
84 | }
85 |
86 | public extension View {
| `- note: add @available attribute to enclosing extension
87 | /// Conditionally apply corner radius and clear background on iOS 16.4+.
88 | @ViewBuilder
:
156 | /// - config: `TrayConfig` customizing sheet appearance.
157 | /// - content: Closure providing content for the current step, given a `Binding<Step>`.
158 | func sheetifyFlow<Step: Hashable & CaseIterable, Content: View>(
| `- note: add @available attribute to enclosing instance method
159 | _ isPresented: Binding<Bool>,
160 | startStep: Step,
:
162 | @ViewBuilder content: @escaping (Binding<Step>) -> Content
163 | ) -> some View {
164 | self.sheet(isPresented: isPresented) {
| |- error: 'sheet(isPresented:onDismiss:content:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
165 | FlowContainer(isPresented: isPresented, startStep: startStep, content: content)
166 | }
[#ResultBuilderMethods]: <https://docs.swift.org/compiler/documentation/diagnostics/result-builder-methods>
[7/7] Compiling Sheetify TrayConfig.swift
/Users/admin/builder/spi-builder-workspace/Sources/Sheetify/TrayConfig.swift:13:27: error: 'PresentationDetent' is only available in macOS 13.0 or newer
9 |
10 | /// Configuration for the styled sheet
11 | public struct TrayConfig {
| `- note: add @available attribute to enclosing struct
12 | /// The stopping detent for the sheet (e.g., .fraction(0.5), .large)
13 | public var maxDetent: PresentationDetent
| `- error: 'PresentationDetent' is only available in macOS 13.0 or newer
14 | /// Corner radius for the sheet background
15 | public var cornerRadius: CGFloat = 30
/Users/admin/builder/spi-builder-workspace/Sources/Sheetify/TrayConfig.swift:22:20: error: 'PresentationDetent' is only available in macOS 13.0 or newer
9 |
10 | /// Configuration for the styled sheet
11 | public struct TrayConfig {
| `- note: add @available attribute to enclosing struct
12 | /// The stopping detent for the sheet (e.g., .fraction(0.5), .large)
13 | public var maxDetent: PresentationDetent
:
19 | public var appearanceAnimationDuration: Double = 0.1
20 |
21 | public init(
| `- note: add @available attribute to enclosing initializer
22 | maxDetent: PresentationDetent,
| `- error: 'PresentationDetent' is only available in macOS 13.0 or newer
23 | cornerRadius: CGFloat = 30,
24 | isInteractiveDismissDisabled: Bool = false,
Fetching https://github.com/nalexn/ViewInspector.git
[1/12415] Fetching viewinspector
Fetched https://github.com/nalexn/ViewInspector.git from cache (1.22s)
Computing version for https://github.com/nalexn/ViewInspector.git
Computed https://github.com/nalexn/ViewInspector.git at 0.10.2 (1.66s)
Creating working copy for https://github.com/nalexn/ViewInspector.git
Working copy of https://github.com/nalexn/ViewInspector.git resolved at 0.10.2
warning: 'spi-builder-workspace': the target name SheetifyTests has different case on the filesystem and the Package.swift manifest file
BUILD FAILURE 6.2 macosSpm