Build Information
Failed to build FullScreenCover, reference 2.0.5 (da516a), with Swift 6.3 for macOS (SPM) on 19 Apr 2026 02:29:36 UTC.
Build Command
env DEVELOPER_DIR=/Applications/Xcode-26.4.0.app xcrun swift build --arch arm64Build Log
========================================
RunAll
========================================
Builder version: 4.70.0
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/wiedem/fullscreen-cover.git
Reference: 2.0.5
Initialized empty Git repository in /Users/admin/builder/spi-builder-workspace/.git/
From https://github.com/wiedem/fullscreen-cover
* tag 2.0.5 -> FETCH_HEAD
HEAD is now at da516a2 Add missing privacy manifest keys to fix Xcode privacy report warning.
Cloned https://github.com/wiedem/fullscreen-cover.git
Revision (git rev-parse @):
da516a24907926ebe08c1c6589ac4aef0f283b0e
SUCCESS checkout https://github.com/wiedem/fullscreen-cover.git at 2.0.5
========================================
ResolveProductDependencies
========================================
Resolving dependencies ...
{
"identity": ".resolve-product-dependencies",
"name": "resolve-dependencies",
"url": "/Users/admin/builder/spi-builder-workspace/.resolve-product-dependencies",
"version": "unspecified",
"path": "/Users/admin/builder/spi-builder-workspace/.resolve-product-dependencies",
"traits": [
"default"
],
"dependencies": [
{
"identity": "fullscreen-cover",
"name": "FullScreenCover",
"url": "https://github.com/wiedem/fullscreen-cover.git",
"version": "unspecified",
"path": "/Users/admin/builder/spi-builder-workspace/.resolve-product-dependencies/.build/checkouts/fullscreen-cover",
"traits": [
"default"
],
"dependencies": [
]
}
]
}
Fetching https://github.com/wiedem/fullscreen-cover.git
[1/103] Fetching fullscreen-cover
Fetched https://github.com/wiedem/fullscreen-cover.git from cache (0.96s)
Creating working copy for https://github.com/wiedem/fullscreen-cover.git
Working copy of https://github.com/wiedem/fullscreen-cover.git resolved at 2.0.5 (da516a2)
warning: '.resolve-product-dependencies': dependency 'fullscreen-cover' is not used by any target
Found 0 product dependencies
========================================
Build
========================================
Selected platform: macosSpm
Swift version: 6.3
Building package at path: $PWD
https://github.com/wiedem/fullscreen-cover.git
Running build ...
env DEVELOPER_DIR=/Applications/Xcode-26.4.0.app xcrun swift build --arch arm64
Building for debugging...
[0/3] Copying PrivacyInfo.xcprivacy
[1/3] Write sources
[2/3] Write swift-version--6988338F2F200930.txt
error: emit-module command failed with exit code 1 (use -v to see invocation)
[4/10] Compiling FullScreenCover resource_bundle_accessor.swift
[5/10] Compiling FullScreenCover PresentationPhase.swift
[6/10] Emitting module FullScreenCover
/Users/admin/builder/spi-builder-workspace/Sources/FullScreenCover/AsyncBroadcast.swift:10:39: error: 'CheckedContinuation' is only available in macOS 10.15 or newer
7 | /// are handled automatically. Only the cancelled task is removed.
8 | @MainActor
9 | final class AsyncBroadcast: Sendable {
| `- note: add '@available' attribute to enclosing class
10 | private var continuations: [UUID: CheckedContinuation<Void, any Error>] = [:]
| `- error: 'CheckedContinuation' is only available in macOS 10.15 or newer
11 |
12 | /// Whether there are any tasks currently waiting.
/Users/admin/builder/spi-builder-workspace/Sources/FullScreenCover/FullScreenCoverModifier.swift:4:6: error: 'State' is only available in macOS 10.15 or newer
1 | public import SwiftUI
2 |
3 | struct FullScreenCoverModifier<ModalContent: View>: ViewModifier {
| `- note: add '@available' attribute to enclosing generic struct
4 | @State private var isSheetPresented: Bool
| `- error: 'State' is only available in macOS 10.15 or newer
5 | @State private var showModalContent = false
6 | @ObservedObject private var presentationProxy: PresentationProxy
/Users/admin/builder/spi-builder-workspace/Sources/FullScreenCover/FullScreenCoverModifier.swift:5:6: error: 'State' is only available in macOS 10.15 or newer
1 | public import SwiftUI
2 |
3 | struct FullScreenCoverModifier<ModalContent: View>: ViewModifier {
| `- note: add '@available' attribute to enclosing generic struct
4 | @State private var isSheetPresented: Bool
5 | @State private var showModalContent = false
| `- error: 'State' is only available in macOS 10.15 or newer
6 | @ObservedObject private var presentationProxy: PresentationProxy
7 |
/Users/admin/builder/spi-builder-workspace/Sources/FullScreenCover/FullScreenCoverModifier.swift:6:6: error: 'ObservedObject' is only available in macOS 10.15 or newer
1 | public import SwiftUI
2 |
3 | struct FullScreenCoverModifier<ModalContent: View>: ViewModifier {
| `- note: add '@available' attribute to enclosing generic struct
4 | @State private var isSheetPresented: Bool
5 | @State private var showModalContent = false
6 | @ObservedObject private var presentationProxy: PresentationProxy
| `- error: 'ObservedObject' is only available in macOS 10.15 or newer
7 |
8 | @ViewBuilder private let modalContent: () -> ModalContent
/Users/admin/builder/spi-builder-workspace/Sources/FullScreenCover/FullScreenCoverModifier.swift:8:6: error: 'ViewBuilder' is only available in macOS 10.15 or newer
1 | public import SwiftUI
2 |
3 | struct FullScreenCoverModifier<ModalContent: View>: ViewModifier {
| `- note: add '@available' attribute to enclosing generic struct
4 | @State private var isSheetPresented: Bool
5 | @State private var showModalContent = false
6 | @ObservedObject private var presentationProxy: PresentationProxy
7 |
8 | @ViewBuilder private let modalContent: () -> ModalContent
| `- error: 'ViewBuilder' is only available in macOS 10.15 or newer
9 |
10 | private let animation: Animation?
/Users/admin/builder/spi-builder-workspace/Sources/FullScreenCover/FullScreenCoverModifier.swift:10:28: error: 'Animation' is only available in macOS 10.15 or newer
1 | public import SwiftUI
2 |
3 | struct FullScreenCoverModifier<ModalContent: View>: ViewModifier {
| `- note: add '@available' attribute to enclosing generic struct
4 | @State private var isSheetPresented: Bool
5 | @State private var showModalContent = false
:
8 | @ViewBuilder private let modalContent: () -> ModalContent
9 |
10 | private let animation: Animation?
| `- error: 'Animation' is only available in macOS 10.15 or newer
11 |
12 | func body(content: Content) -> some View {
/Users/admin/builder/spi-builder-workspace/Sources/FullScreenCover/FullScreenCoverModifier.swift:12:41: error: 'View' is only available in macOS 10.15 or newer
1 | public import SwiftUI
2 |
3 | struct FullScreenCoverModifier<ModalContent: View>: ViewModifier {
| `- note: add '@available' attribute to enclosing generic struct
4 | @State private var isSheetPresented: Bool
5 | @State private var showModalContent = false
:
10 | private let animation: Animation?
11 |
12 | 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
13 | // A ZStack isolates the .fullScreenCover trigger from the content view,
14 | // preventing safe area insets from propagating to the content.
/Users/admin/builder/spi-builder-workspace/Sources/FullScreenCover/FullScreenCoverModifier.swift:80:20: error: 'Animation' is only available in macOS 10.15 or newer
1 | public import SwiftUI
2 |
3 | struct FullScreenCoverModifier<ModalContent: View>: ViewModifier {
| `- note: add '@available' attribute to enclosing generic struct
4 | @State private var isSheetPresented: Bool
5 | @State private var showModalContent = false
:
76 | }
77 |
78 | init(
| `- note: add '@available' attribute to enclosing initializer
79 | presentationProxy: PresentationProxy,
80 | animation: Animation? = .default,
| `- error: 'Animation' is only available in macOS 10.15 or newer
81 | @ViewBuilder modalContent: @escaping () -> ModalContent
82 | ) {
/Users/admin/builder/spi-builder-workspace/Sources/FullScreenCover/FullScreenCoverModifier.swift:81:10: error: 'ViewBuilder' is only available in macOS 10.15 or newer
1 | public import SwiftUI
2 |
3 | struct FullScreenCoverModifier<ModalContent: View>: ViewModifier {
| `- note: add '@available' attribute to enclosing generic struct
4 | @State private var isSheetPresented: Bool
5 | @State private var showModalContent = false
:
76 | }
77 |
78 | init(
| `- note: add '@available' attribute to enclosing initializer
79 | presentationProxy: PresentationProxy,
80 | animation: Animation? = .default,
81 | @ViewBuilder modalContent: @escaping () -> ModalContent
| `- error: 'ViewBuilder' is only available in macOS 10.15 or newer
82 | ) {
83 | _isSheetPresented = .init(initialValue: presentationProxy.isPresented)
/Users/admin/builder/spi-builder-workspace/Sources/FullScreenCover/FullScreenCoverModifier.swift:80:34: error: 'default' is only available in macOS 10.15 or newer
1 | public import SwiftUI
2 |
3 | struct FullScreenCoverModifier<ModalContent: View>: ViewModifier {
| `- note: add '@available' attribute to enclosing generic struct
4 | @State private var isSheetPresented: Bool
5 | @State private var showModalContent = false
:
76 | }
77 |
78 | init(
| `- note: add '@available' attribute to enclosing initializer
79 | presentationProxy: PresentationProxy,
80 | animation: Animation? = .default,
| `- error: 'default' is only available in macOS 10.15 or newer
81 | @ViewBuilder modalContent: @escaping () -> ModalContent
82 | ) {
/Users/admin/builder/spi-builder-workspace/Sources/FullScreenCover/FullScreenCoverModifier.swift:3:46: error: 'View' is only available in macOS 10.15 or newer
1 | public import SwiftUI
2 |
3 | struct FullScreenCoverModifier<ModalContent: View>: ViewModifier {
| | `- error: 'View' is only available in macOS 10.15 or newer
| `- note: add '@available' attribute to enclosing generic struct
4 | @State private var isSheetPresented: Bool
5 | @State private var showModalContent = false
/Users/admin/builder/spi-builder-workspace/Sources/FullScreenCover/FullScreenCoverModifier.swift:101:52: error: 'View' is only available in macOS 10.15 or newer
89 | }
90 |
91 | public extension View {
| `- note: add '@available' attribute to enclosing extension
92 | /// Uses a ``PresentationProxy`` to present a modal view that covers as much of the screen as possible.
93 | ///
:
96 | /// - animation: An optional animation for the modal transitions.
97 | /// - content: A closure that returns the content of the modal view.
98 | func fullScreenCover(
| `- note: add '@available' attribute to enclosing instance method
99 | presentation: PresentationProxy,
100 | animation: Animation? = .default,
101 | @ViewBuilder content: @escaping () -> some View
| `- error: 'View' is only available in macOS 10.15 or newer
102 | ) -> some View {
103 | modifier(
/Users/admin/builder/spi-builder-workspace/Sources/FullScreenCover/FullScreenCoverModifier.swift:100:20: error: 'Animation' is only available in macOS 10.15 or newer
89 | }
90 |
91 | public extension View {
| `- note: add '@available' attribute to enclosing extension
92 | /// Uses a ``PresentationProxy`` to present a modal view that covers as much of the screen as possible.
93 | ///
:
96 | /// - animation: An optional animation for the modal transitions.
97 | /// - content: A closure that returns the content of the modal view.
98 | func fullScreenCover(
| `- note: add '@available' attribute to enclosing instance method
99 | presentation: PresentationProxy,
100 | animation: Animation? = .default,
| `- error: 'Animation' is only available in macOS 10.15 or newer
101 | @ViewBuilder content: @escaping () -> some View
102 | ) -> some View {
/Users/admin/builder/spi-builder-workspace/Sources/FullScreenCover/FullScreenCoverModifier.swift:101:10: error: 'ViewBuilder' is only available in macOS 10.15 or newer
89 | }
90 |
91 | public extension View {
| `- note: add '@available' attribute to enclosing extension
92 | /// Uses a ``PresentationProxy`` to present a modal view that covers as much of the screen as possible.
93 | ///
:
96 | /// - animation: An optional animation for the modal transitions.
97 | /// - content: A closure that returns the content of the modal view.
98 | func fullScreenCover(
| `- note: add '@available' attribute to enclosing instance method
99 | presentation: PresentationProxy,
100 | animation: Animation? = .default,
101 | @ViewBuilder content: @escaping () -> some View
| `- error: 'ViewBuilder' is only available in macOS 10.15 or newer
102 | ) -> some View {
103 | modifier(
/Users/admin/builder/spi-builder-workspace/Sources/FullScreenCover/FullScreenCoverModifier.swift:101:52: error: 'View' is only available in macOS 10.15 or newer
89 | }
90 |
91 | public extension View {
| `- note: add '@available' attribute to enclosing extension
92 | /// Uses a ``PresentationProxy`` to present a modal view that covers as much of the screen as possible.
93 | ///
:
96 | /// - animation: An optional animation for the modal transitions.
97 | /// - content: A closure that returns the content of the modal view.
98 | func fullScreenCover(
| `- note: add '@available' attribute to enclosing instance method
99 | presentation: PresentationProxy,
100 | animation: Animation? = .default,
101 | @ViewBuilder content: @escaping () -> some View
| `- error: 'View' is only available in macOS 10.15 or newer
102 | ) -> some View {
103 | modifier(
/Users/admin/builder/spi-builder-workspace/Sources/FullScreenCover/FullScreenCoverModifier.swift:102:15: error: 'View' is only available in macOS 10.15 or newer
89 | }
90 |
91 | public extension View {
| `- note: add '@available' attribute to enclosing extension
92 | /// Uses a ``PresentationProxy`` to present a modal view that covers as much of the screen as possible.
93 | ///
:
96 | /// - animation: An optional animation for the modal transitions.
97 | /// - content: A closure that returns the content of the modal view.
98 | func fullScreenCover(
| `- note: add '@available' attribute to enclosing instance method
99 | presentation: PresentationProxy,
100 | animation: Animation? = .default,
101 | @ViewBuilder content: @escaping () -> some View
102 | ) -> some View {
| `- error: 'View' is only available in macOS 10.15 or newer
103 | modifier(
104 | FullScreenCoverModifier(
/Users/admin/builder/spi-builder-workspace/Sources/FullScreenCover/FullScreenCoverModifier.swift:100:34: error: 'default' is only available in macOS 10.15 or newer
89 | }
90 |
91 | public extension View {
| `- note: add '@available' attribute to enclosing extension
92 | /// Uses a ``PresentationProxy`` to present a modal view that covers as much of the screen as possible.
93 | ///
:
96 | /// - animation: An optional animation for the modal transitions.
97 | /// - content: A closure that returns the content of the modal view.
98 | func fullScreenCover(
| `- note: add '@available' attribute to enclosing instance method
99 | presentation: PresentationProxy,
100 | animation: Animation? = .default,
| `- error: 'default' is only available in macOS 10.15 or newer
101 | @ViewBuilder content: @escaping () -> some View
102 | ) -> some View {
/Users/admin/builder/spi-builder-workspace/Sources/FullScreenCover/FullScreenCoverModifier.swift:91:18: error: 'View' is only available in macOS 10.15 or newer
89 | }
90 |
91 | public extension View {
| | `- error: 'View' is only available in macOS 10.15 or newer
| `- note: add '@available' attribute to enclosing extension
92 | /// Uses a ``PresentationProxy`` to present a modal view that covers as much of the screen as possible.
93 | ///
/Users/admin/builder/spi-builder-workspace/Sources/FullScreenCover/PresentationCoordinator.swift:31:6: error: 'StateObject' is only available in macOS 11.0 or newer
28 | /// - Note: The ``PresentationProxy`` instance is automatically made available to the subviews of the content view and can be accessed with an [EnvironmentObject](https://developer.apple.com/documentation/swiftui/environmentobject) property wrapper.
29 | @MainActor
30 | public struct PresentationCoordinator<Content: View>: View {
| `- note: add '@available' attribute to enclosing generic struct
31 | @StateObject private var presentationProxy = PresentationProxy()
| `- error: 'StateObject' is only available in macOS 11.0 or newer
32 |
33 | private let content: (PresentationProxy) -> Content
/Users/admin/builder/spi-builder-workspace/Sources/FullScreenCover/PresentationCoordinator.swift:35:27: error: 'View' is only available in macOS 10.15 or newer
28 | /// - Note: The ``PresentationProxy`` instance is automatically made available to the subviews of the content view and can be accessed with an [EnvironmentObject](https://developer.apple.com/documentation/swiftui/environmentobject) property wrapper.
29 | @MainActor
30 | public struct PresentationCoordinator<Content: View>: View {
| `- note: add '@available' attribute to enclosing generic struct
31 | @StateObject private var presentationProxy = PresentationProxy()
32 |
33 | private let content: (PresentationProxy) -> Content
34 |
35 | public var body: some View {
| | `- error: 'View' is only available in macOS 10.15 or newer
| `- note: add '@available' attribute to enclosing property
36 | content(presentationProxy)
37 | .environmentObject(presentationProxy)
/Users/admin/builder/spi-builder-workspace/Sources/FullScreenCover/PresentationCoordinator.swift:46:18: error: 'ViewBuilder' is only available in macOS 10.15 or newer
28 | /// - Note: The ``PresentationProxy`` instance is automatically made available to the subviews of the content view and can be accessed with an [EnvironmentObject](https://developer.apple.com/documentation/swiftui/environmentobject) property wrapper.
29 | @MainActor
30 | public struct PresentationCoordinator<Content: View>: View {
| `- note: add '@available' attribute to enclosing generic struct
31 | @StateObject private var presentationProxy = PresentationProxy()
32 |
:
44 | ///
45 | /// - Parameter content: The content from which a full-screen modal transition can be triggered.
46 | public init(@ViewBuilder content: @escaping (PresentationProxy) -> Content) {
| | `- error: 'ViewBuilder' is only available in macOS 10.15 or newer
| `- note: add '@available' attribute to enclosing initializer
47 | self.content = content
48 | }
/Users/admin/builder/spi-builder-workspace/Sources/FullScreenCover/PresentationCoordinator.swift:30:48: error: 'View' is only available in macOS 10.15 or newer
28 | /// - Note: The ``PresentationProxy`` instance is automatically made available to the subviews of the content view and can be accessed with an [EnvironmentObject](https://developer.apple.com/documentation/swiftui/environmentobject) property wrapper.
29 | @MainActor
30 | public struct PresentationCoordinator<Content: View>: View {
| | `- error: 'View' is only available in macOS 10.15 or newer
| `- note: add '@available' attribute to enclosing generic struct
31 | @StateObject private var presentationProxy = PresentationProxy()
32 |
/Users/admin/builder/spi-builder-workspace/Sources/FullScreenCover/PresentationCoordinator.swift:53:2: error: 'Preview(_:body:)' is only available in macOS 10.15 or newer
51 | // MARK: - Preview
52 |
53 | #Preview("Custom Transition") {
| `- error: 'Preview(_:body:)' is only available in macOS 10.15 or newer
54 | PresentationCoordinator { proxy in
55 | VStack(spacing: 20) {
/Users/admin/builder/spi-builder-workspace/Sources/FullScreenCover/PresentationCoordinator.swift:54:5: error: conformance of 'Text' to 'View' is only available in macOS 10.15 or newer
52 |
53 | #Preview("Custom Transition") {
54 | PresentationCoordinator { proxy in
| |- error: conformance of 'Text' to 'View' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
55 | VStack(spacing: 20) {
56 | Text("Custom Scale + Fade Transition")
/Users/admin/builder/spi-builder-workspace/Sources/FullScreenCover/PresentationCoordinator.swift:54:5: error: conformance of 'Text' to 'View' is only available in macOS 10.15 or newer
52 |
53 | #Preview("Custom Transition") {
54 | PresentationCoordinator { proxy in
| |- error: conformance of 'Text' to 'View' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
55 | VStack(spacing: 20) {
56 | Text("Custom Scale + Fade Transition")
/Users/admin/builder/spi-builder-workspace/Sources/FullScreenCover/PresentationCoordinator.swift:54:29: error: conformance of 'Text' to 'View' is only available in macOS 10.15 or newer
52 |
53 | #Preview("Custom Transition") {
54 | PresentationCoordinator { proxy in
| |- error: conformance of 'Text' to 'View' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
55 | VStack(spacing: 20) {
56 | Text("Custom Scale + Fade Transition")
/Users/admin/builder/spi-builder-workspace/Sources/FullScreenCover/PresentationCoordinator.swift:54:29: error: conformance of 'Text' to 'View' is only available in macOS 10.15 or newer
52 |
53 | #Preview("Custom Transition") {
54 | PresentationCoordinator { proxy in
| |- error: conformance of 'Text' to 'View' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
55 | VStack(spacing: 20) {
56 | Text("Custom Scale + Fade Transition")
/Users/admin/builder/spi-builder-workspace/Sources/FullScreenCover/PresentationCoordinator.swift:55:9: error: 'VStack' is only available in macOS 10.15 or newer
53 | #Preview("Custom Transition") {
54 | PresentationCoordinator { proxy in
55 | VStack(spacing: 20) {
| |- error: 'VStack' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
56 | Text("Custom Scale + Fade Transition")
57 | .font(.headline)
/Users/admin/builder/spi-builder-workspace/Sources/FullScreenCover/PresentationCoordinator.swift:55:29: error: conformance of 'Text' to 'View' is only available in macOS 10.15 or newer
53 | #Preview("Custom Transition") {
54 | PresentationCoordinator { proxy in
55 | VStack(spacing: 20) {
| |- error: conformance of 'Text' to 'View' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
56 | Text("Custom Scale + Fade Transition")
57 | .font(.headline)
/Users/admin/builder/spi-builder-workspace/Sources/FullScreenCover/PresentationCoordinator.swift:56:13: error: conformance of 'Text' to 'View' is only available in macOS 10.15 or newer
54 | PresentationCoordinator { proxy in
55 | VStack(spacing: 20) {
56 | Text("Custom Scale + Fade Transition")
| |- error: conformance of 'Text' to 'View' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
57 | .font(.headline)
58 |
/Users/admin/builder/spi-builder-workspace/Sources/FullScreenCover/PresentationCoordinator.swift:56:13: error: 'Text' is only available in macOS 10.15 or newer
54 | PresentationCoordinator { proxy in
55 | VStack(spacing: 20) {
56 | Text("Custom Scale + Fade Transition")
| |- error: 'Text' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
57 | .font(.headline)
58 |
/Users/admin/builder/spi-builder-workspace/Sources/FullScreenCover/PresentationCoordinator.swift:57:18: error: 'font' is only available in macOS 10.15 or newer
55 | VStack(spacing: 20) {
56 | Text("Custom Scale + Fade Transition")
57 | .font(.headline)
| |- error: 'font' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
58 |
59 | Button("Present Modal") {
/Users/admin/builder/spi-builder-workspace/Sources/FullScreenCover/PresentationCoordinator.swift:57:24: error: 'headline' is only available in macOS 10.15 or newer
55 | VStack(spacing: 20) {
56 | Text("Custom Scale + Fade Transition")
57 | .font(.headline)
| |- error: 'headline' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
58 |
59 | Button("Present Modal") {
/Users/admin/builder/spi-builder-workspace/Sources/FullScreenCover/PresentationCoordinator.swift:59:13: error: 'Button' is only available in macOS 10.15 or newer
57 | .font(.headline)
58 |
59 | Button("Present Modal") {
| |- error: 'Button' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
60 | Task {
61 | try await proxy.present()
/Users/admin/builder/spi-builder-workspace/Sources/FullScreenCover/PresentationCoordinator.swift:59:13: error: 'init(_:action:)' is only available in macOS 10.15 or newer
57 | .font(.headline)
58 |
59 | Button("Present Modal") {
| |- error: 'init(_:action:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
60 | Task {
61 | try await proxy.present()
/Users/admin/builder/spi-builder-workspace/Sources/FullScreenCover/PresentationCoordinator.swift:59:20: error: 'LocalizedStringKey' is only available in macOS 10.15 or newer
57 | .font(.headline)
58 |
59 | Button("Present Modal") {
| |- error: 'LocalizedStringKey' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
60 | Task {
61 | try await proxy.present()
/Users/admin/builder/spi-builder-workspace/Sources/FullScreenCover/PresentationCoordinator.swift:60:17: error: 'Task' is only available in macOS 10.15 or newer
58 |
59 | Button("Present Modal") {
60 | Task {
| |- error: 'Task' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
61 | try await proxy.present()
62 | }
/Users/admin/builder/spi-builder-workspace/Sources/FullScreenCover/PresentationCoordinator.swift:60:17: error: 'init(name:priority:operation:)' is only available in macOS 10.15 or newer
58 |
59 | Button("Present Modal") {
60 | Task {
| |- error: 'init(name:priority:operation:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
61 | try await proxy.present()
62 | }
/Users/admin/builder/spi-builder-workspace/Sources/FullScreenCover/PresentationCoordinator.swift:64:14: error: 'buttonStyle' is only available in macOS 10.15 or newer
62 | }
63 | }
64 | .buttonStyle(.borderedProminent)
| |- error: 'buttonStyle' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
65 | }
66 | .fullScreenCover(presentation: proxy, animation: .spring(duration: 0.5, bounce: 0.2)) {
/Users/admin/builder/spi-builder-workspace/Sources/FullScreenCover/PresentationCoordinator.swift:64:27: error: 'borderedProminent' is only available in macOS 12.0 or newer
62 | }
63 | }
64 | .buttonStyle(.borderedProminent)
| |- error: 'borderedProminent' is only available in macOS 12.0 or newer
| `- note: add 'if #available' version check
65 | }
66 | .fullScreenCover(presentation: proxy, animation: .spring(duration: 0.5, bounce: 0.2)) {
/Users/admin/builder/spi-builder-workspace/Sources/FullScreenCover/PresentationCoordinator.swift:55:29: error: conformance of 'Text' to 'View' is only available in macOS 10.15 or newer
53 | #Preview("Custom Transition") {
54 | PresentationCoordinator { proxy in
55 | VStack(spacing: 20) {
| |- error: conformance of 'Text' to 'View' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
56 | Text("Custom Scale + Fade Transition")
57 | .font(.headline)
/Users/admin/builder/spi-builder-workspace/Sources/FullScreenCover/PresentationCoordinator.swift:66:59: error: 'spring(duration:bounce:blendDuration:)' is only available in macOS 10.15 or newer
64 | .buttonStyle(.borderedProminent)
65 | }
66 | .fullScreenCover(presentation: proxy, animation: .spring(duration: 0.5, bounce: 0.2)) {
| |- error: 'spring(duration:bounce:blendDuration:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
67 | ZStack {
68 | Color.black.opacity(0.5)
/Users/admin/builder/spi-builder-workspace/Sources/FullScreenCover/PresentationCoordinator.swift:66:95: error: conformance of 'Text' to 'View' is only available in macOS 10.15 or newer
64 | .buttonStyle(.borderedProminent)
65 | }
66 | .fullScreenCover(presentation: proxy, animation: .spring(duration: 0.5, bounce: 0.2)) {
| |- error: conformance of 'Text' to 'View' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
67 | ZStack {
68 | Color.black.opacity(0.5)
/Users/admin/builder/spi-builder-workspace/Sources/FullScreenCover/PresentationCoordinator.swift:67:13: error: 'ZStack' is only available in macOS 10.15 or newer
65 | }
66 | .fullScreenCover(presentation: proxy, animation: .spring(duration: 0.5, bounce: 0.2)) {
67 | ZStack {
| |- error: 'ZStack' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
68 | Color.black.opacity(0.5)
69 | .ignoresSafeArea()
/Users/admin/builder/spi-builder-workspace/Sources/FullScreenCover/PresentationCoordinator.swift:67:20: error: conformance of 'Text' to 'View' is only available in macOS 10.15 or newer
65 | }
66 | .fullScreenCover(presentation: proxy, animation: .spring(duration: 0.5, bounce: 0.2)) {
67 | ZStack {
| |- error: conformance of 'Text' to 'View' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
68 | Color.black.opacity(0.5)
69 | .ignoresSafeArea()
/Users/admin/builder/spi-builder-workspace/Sources/FullScreenCover/PresentationCoordinator.swift:68:17: error: 'Color' is only available in macOS 10.15 or newer
66 | .fullScreenCover(presentation: proxy, animation: .spring(duration: 0.5, bounce: 0.2)) {
67 | ZStack {
68 | Color.black.opacity(0.5)
| |- error: 'Color' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
69 | .ignoresSafeArea()
70 |
/Users/admin/builder/spi-builder-workspace/Sources/FullScreenCover/PresentationCoordinator.swift:68:23: error: 'black' is only available in macOS 10.15 or newer
66 | .fullScreenCover(presentation: proxy, animation: .spring(duration: 0.5, bounce: 0.2)) {
67 | ZStack {
68 | Color.black.opacity(0.5)
| |- error: 'black' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
69 | .ignoresSafeArea()
70 |
/Users/admin/builder/spi-builder-workspace/Sources/FullScreenCover/PresentationCoordinator.swift:68:29: error: 'opacity' is only available in macOS 10.15 or newer
66 | .fullScreenCover(presentation: proxy, animation: .spring(duration: 0.5, bounce: 0.2)) {
67 | ZStack {
68 | Color.black.opacity(0.5)
| |- error: 'opacity' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
69 | .ignoresSafeArea()
70 |
/Users/admin/builder/spi-builder-workspace/Sources/FullScreenCover/PresentationCoordinator.swift:69:22: error: 'ignoresSafeArea(_:edges:)' is only available in macOS 11.0 or newer
67 | ZStack {
68 | Color.black.opacity(0.5)
69 | .ignoresSafeArea()
| |- error: 'ignoresSafeArea(_:edges:)' is only available in macOS 11.0 or newer
| `- note: add 'if #available' version check
70 |
71 | VStack(spacing: 24) {
/Users/admin/builder/spi-builder-workspace/Sources/FullScreenCover/PresentationCoordinator.swift:71:17: error: 'VStack' is only available in macOS 10.15 or newer
69 | .ignoresSafeArea()
70 |
71 | VStack(spacing: 24) {
| |- error: 'VStack' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
72 | Image(systemName: "checkmark.seal.fill")
73 | .font(.system(size: 60))
/Users/admin/builder/spi-builder-workspace/Sources/FullScreenCover/PresentationCoordinator.swift:71:37: error: conformance of 'Text' to 'View' is only available in macOS 10.15 or newer
69 | .ignoresSafeArea()
70 |
71 | VStack(spacing: 24) {
| |- error: conformance of 'Text' to 'View' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
72 | Image(systemName: "checkmark.seal.fill")
73 | .font(.system(size: 60))
/Users/admin/builder/spi-builder-workspace/Sources/FullScreenCover/PresentationCoordinator.swift:72:21: error: 'Image' is only available in macOS 10.15 or newer
70 |
71 | VStack(spacing: 24) {
72 | Image(systemName: "checkmark.seal.fill")
| |- error: 'Image' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
73 | .font(.system(size: 60))
74 | .foregroundStyle(.green)
/Users/admin/builder/spi-builder-workspace/Sources/FullScreenCover/PresentationCoordinator.swift:72:21: error: 'init(systemName:)' is only available in macOS 11.0 or newer
70 |
71 | VStack(spacing: 24) {
72 | Image(systemName: "checkmark.seal.fill")
| |- error: 'init(systemName:)' is only available in macOS 11.0 or newer
| `- note: add 'if #available' version check
73 | .font(.system(size: 60))
74 | .foregroundStyle(.green)
/Users/admin/builder/spi-builder-workspace/Sources/FullScreenCover/PresentationCoordinator.swift:73:26: error: 'font' is only available in macOS 10.15 or newer
71 | VStack(spacing: 24) {
72 | Image(systemName: "checkmark.seal.fill")
73 | .font(.system(size: 60))
| |- error: 'font' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
74 | .foregroundStyle(.green)
75 |
/Users/admin/builder/spi-builder-workspace/Sources/FullScreenCover/PresentationCoordinator.swift:73:32: error: 'system(size:weight:design:)' is only available in macOS 13.0 or newer
71 | VStack(spacing: 24) {
72 | Image(systemName: "checkmark.seal.fill")
73 | .font(.system(size: 60))
| |- error: 'system(size:weight:design:)' is only available in macOS 13.0 or newer
| `- note: add 'if #available' version check
74 | .foregroundStyle(.green)
75 |
/Users/admin/builder/spi-builder-workspace/Sources/FullScreenCover/PresentationCoordinator.swift:74:26: error: 'foregroundStyle' is only available in macOS 12.0 or newer
72 | Image(systemName: "checkmark.seal.fill")
73 | .font(.system(size: 60))
74 | .foregroundStyle(.green)
| |- error: 'foregroundStyle' is only available in macOS 12.0 or newer
| `- note: add 'if #available' version check
75 |
76 | Text("Success!")
/Users/admin/builder/spi-builder-workspace/Sources/FullScreenCover/PresentationCoordinator.swift:74:43: error: 'green' is only available in macOS 10.15 or newer
72 | Image(systemName: "checkmark.seal.fill")
73 | .font(.system(size: 60))
74 | .foregroundStyle(.green)
| |- error: 'green' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
75 |
76 | Text("Success!")
/Users/admin/builder/spi-builder-workspace/Sources/FullScreenCover/PresentationCoordinator.swift:76:21: error: conformance of 'Text' to 'View' is only available in macOS 10.15 or newer
74 | .foregroundStyle(.green)
75 |
76 | Text("Success!")
| |- error: conformance of 'Text' to 'View' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
77 | .font(.largeTitle.bold())
78 | .foregroundStyle(.white)
/Users/admin/builder/spi-builder-workspace/Sources/FullScreenCover/PresentationCoordinator.swift:76:21: error: 'Text' is only available in macOS 10.15 or newer
74 | .foregroundStyle(.green)
75 |
76 | Text("Success!")
| |- error: 'Text' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
77 | .font(.largeTitle.bold())
78 | .foregroundStyle(.white)
/Users/admin/builder/spi-builder-workspace/Sources/FullScreenCover/PresentationCoordinator.swift:77:26: error: 'font' is only available in macOS 10.15 or newer
75 |
76 | Text("Success!")
77 | .font(.largeTitle.bold())
| |- error: 'font' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
78 | .foregroundStyle(.white)
79 |
/Users/admin/builder/spi-builder-workspace/Sources/FullScreenCover/PresentationCoordinator.swift:77:32: error: 'largeTitle' is only available in macOS 10.15 or newer
75 |
76 | Text("Success!")
77 | .font(.largeTitle.bold())
| |- error: 'largeTitle' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
78 | .foregroundStyle(.white)
79 |
/Users/admin/builder/spi-builder-workspace/Sources/FullScreenCover/PresentationCoordinator.swift:77:43: error: 'bold()' is only available in macOS 10.15 or newer
75 |
76 | Text("Success!")
77 | .font(.largeTitle.bold())
| |- error: 'bold()' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
78 | .foregroundStyle(.white)
79 |
/Users/admin/builder/spi-builder-workspace/Sources/FullScreenCover/PresentationCoordinator.swift:78:26: error: 'foregroundStyle' is only available in macOS 14.0 or newer
76 | Text("Success!")
77 | .font(.largeTitle.bold())
78 | .foregroundStyle(.white)
| |- error: 'foregroundStyle' is only available in macOS 14.0 or newer
| `- note: add 'if #available' version check
79 |
80 | Text("This modal uses a custom scale + fade transition\ninstead of the default slide-up animation.")
/Users/admin/builder/spi-builder-workspace/Sources/FullScreenCover/PresentationCoordinator.swift:78:43: error: 'white' is only available in macOS 10.15 or newer
76 | Text("Success!")
77 | .font(.largeTitle.bold())
78 | .foregroundStyle(.white)
| |- error: 'white' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
79 |
80 | Text("This modal uses a custom scale + fade transition\ninstead of the default slide-up animation.")
/Users/admin/builder/spi-builder-workspace/Sources/FullScreenCover/PresentationCoordinator.swift:80:21: error: 'Text' is only available in macOS 10.15 or newer
78 | .foregroundStyle(.white)
79 |
80 | Text("This modal uses a custom scale + fade transition\ninstead of the default slide-up animation.")
| |- error: 'Text' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
81 | .multilineTextAlignment(.center)
82 | .foregroundStyle(.white.opacity(0.7))
/Users/admin/builder/spi-builder-workspace/Sources/FullScreenCover/PresentationCoordinator.swift:81:26: error: 'multilineTextAlignment' is only available in macOS 10.15 or newer
79 |
80 | Text("This modal uses a custom scale + fade transition\ninstead of the default slide-up animation.")
81 | .multilineTextAlignment(.center)
| |- error: 'multilineTextAlignment' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
82 | .foregroundStyle(.white.opacity(0.7))
83 |
/Users/admin/builder/spi-builder-workspace/Sources/FullScreenCover/PresentationCoordinator.swift:82:26: error: 'foregroundStyle' is only available in macOS 12.0 or newer
80 | Text("This modal uses a custom scale + fade transition\ninstead of the default slide-up animation.")
81 | .multilineTextAlignment(.center)
82 | .foregroundStyle(.white.opacity(0.7))
| |- error: 'foregroundStyle' is only available in macOS 12.0 or newer
| `- note: add 'if #available' version check
83 |
84 | Button("Dismiss") {
/Users/admin/builder/spi-builder-workspace/Sources/FullScreenCover/PresentationCoordinator.swift:82:43: error: 'white' is only available in macOS 10.15 or newer
80 | Text("This modal uses a custom scale + fade transition\ninstead of the default slide-up animation.")
81 | .multilineTextAlignment(.center)
82 | .foregroundStyle(.white.opacity(0.7))
| |- error: 'white' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
83 |
84 | Button("Dismiss") {
/Users/admin/builder/spi-builder-workspace/Sources/FullScreenCover/PresentationCoordinator.swift:82:49: error: 'opacity' is only available in macOS 12.0 or newer
80 | Text("This modal uses a custom scale + fade transition\ninstead of the default slide-up animation.")
81 | .multilineTextAlignment(.center)
82 | .foregroundStyle(.white.opacity(0.7))
| |- error: 'opacity' is only available in macOS 12.0 or newer
| `- note: add 'if #available' version check
83 |
84 | Button("Dismiss") {
/Users/admin/builder/spi-builder-workspace/Sources/FullScreenCover/PresentationCoordinator.swift:84:21: error: 'Button' is only available in macOS 10.15 or newer
82 | .foregroundStyle(.white.opacity(0.7))
83 |
84 | Button("Dismiss") {
| |- error: 'Button' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
85 | Task {
86 | try await proxy.dismiss()
/Users/admin/builder/spi-builder-workspace/Sources/FullScreenCover/PresentationCoordinator.swift:84:21: error: 'init(_:action:)' is only available in macOS 10.15 or newer
82 | .foregroundStyle(.white.opacity(0.7))
83 |
84 | Button("Dismiss") {
| |- error: 'init(_:action:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
85 | Task {
86 | try await proxy.dismiss()
/Users/admin/builder/spi-builder-workspace/Sources/FullScreenCover/PresentationCoordinator.swift:84:28: error: 'LocalizedStringKey' is only available in macOS 10.15 or newer
82 | .foregroundStyle(.white.opacity(0.7))
83 |
84 | Button("Dismiss") {
| |- error: 'LocalizedStringKey' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
85 | Task {
86 | try await proxy.dismiss()
/Users/admin/builder/spi-builder-workspace/Sources/FullScreenCover/PresentationCoordinator.swift:85:25: error: 'Task' is only available in macOS 10.15 or newer
83 |
84 | Button("Dismiss") {
85 | Task {
| |- error: 'Task' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
86 | try await proxy.dismiss()
87 | }
/Users/admin/builder/spi-builder-workspace/Sources/FullScreenCover/PresentationCoordinator.swift:85:25: error: 'init(name:priority:operation:)' is only available in macOS 10.15 or newer
83 |
84 | Button("Dismiss") {
85 | Task {
| |- error: 'init(name:priority:operation:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
86 | try await proxy.dismiss()
87 | }
/Users/admin/builder/spi-builder-workspace/Sources/FullScreenCover/PresentationCoordinator.swift:89:22: error: 'buttonStyle' is only available in macOS 10.15 or newer
87 | }
88 | }
89 | .buttonStyle(.bordered)
| |- error: 'buttonStyle' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
90 | .tint(.white)
91 | }
/Users/admin/builder/spi-builder-workspace/Sources/FullScreenCover/PresentationCoordinator.swift:89:35: error: 'bordered' is only available in macOS 10.15 or newer
87 | }
88 | }
89 | .buttonStyle(.bordered)
| |- error: 'bordered' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
90 | .tint(.white)
91 | }
/Users/admin/builder/spi-builder-workspace/Sources/FullScreenCover/PresentationCoordinator.swift:90:22: error: 'tint' is only available in macOS 12.0 or newer
88 | }
89 | .buttonStyle(.bordered)
90 | .tint(.white)
| |- error: 'tint' is only available in macOS 12.0 or newer
| `- note: add 'if #available' version check
91 | }
92 | .padding()
/Users/admin/builder/spi-builder-workspace/Sources/FullScreenCover/PresentationCoordinator.swift:90:28: error: 'white' is only available in macOS 10.15 or newer
88 | }
89 | .buttonStyle(.bordered)
90 | .tint(.white)
| |- error: 'white' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
91 | }
92 | .padding()
/Users/admin/builder/spi-builder-workspace/Sources/FullScreenCover/PresentationCoordinator.swift:71:37: error: conformance of 'Text' to 'View' is only available in macOS 10.15 or newer
69 | .ignoresSafeArea()
70 |
71 | VStack(spacing: 24) {
| |- error: conformance of 'Text' to 'View' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
72 | Image(systemName: "checkmark.seal.fill")
73 | .font(.system(size: 60))
/Users/admin/builder/spi-builder-workspace/Sources/FullScreenCover/PresentationCoordinator.swift:92:18: error: 'padding' is only available in macOS 10.15 or newer
90 | .tint(.white)
91 | }
92 | .padding()
| |- error: 'padding' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
93 | }
94 | .transition(.scale(scale: 0.8).combined(with: .opacity))
/Users/admin/builder/spi-builder-workspace/Sources/FullScreenCover/PresentationCoordinator.swift:94:14: error: 'transition' is only available in macOS 10.15 or newer
92 | .padding()
93 | }
94 | .transition(.scale(scale: 0.8).combined(with: .opacity))
| |- error: 'transition' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
95 | }
96 | }
/Users/admin/builder/spi-builder-workspace/Sources/FullScreenCover/PresentationCoordinator.swift:94:26: error: 'scale(scale:anchor:)' is only available in macOS 10.15 or newer
92 | .padding()
93 | }
94 | .transition(.scale(scale: 0.8).combined(with: .opacity))
| |- error: 'scale(scale:anchor:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
95 | }
96 | }
/Users/admin/builder/spi-builder-workspace/Sources/FullScreenCover/PresentationCoordinator.swift:94:44: error: 'combined(with:)' is only available in macOS 10.15 or newer
92 | .padding()
93 | }
94 | .transition(.scale(scale: 0.8).combined(with: .opacity))
| |- error: 'combined(with:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
95 | }
96 | }
/Users/admin/builder/spi-builder-workspace/Sources/FullScreenCover/PresentationCoordinator.swift:94:60: error: 'opacity' is only available in macOS 10.15 or newer
92 | .padding()
93 | }
94 | .transition(.scale(scale: 0.8).combined(with: .opacity))
| |- error: 'opacity' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
95 | }
96 | }
/Users/admin/builder/spi-builder-workspace/Sources/FullScreenCover/PresentationCoordinator.swift:154:5: error: cannot use explicit 'return' statement in the body of result builder 'ViewBuilder'
152 | }
153 |
154 | return ChainedPresentationDemo()
| |- error: cannot use explicit 'return' statement in the body of result builder 'ViewBuilder'
| `- note: remove 'return' statements to apply the result builder
155 | }
156 |
/Users/admin/builder/spi-builder-workspace/Sources/FullScreenCover/PresentationProxy.swift:10:6: error: 'Published' is only available in macOS 10.15 or newer
6 | /// Instead, use a ``PresentationCoordinator`` in your view hierarchy to get an instance and pass it to a ``FullScreenCoverModifier`` or the ``SwiftUICore/View/fullScreenCover(presentation:animation:content:)`` method.
7 | @MainActor
8 | public final class PresentationProxy: ObservableObject, Sendable {
| `- note: add '@available' attribute to enclosing class
9 | /// The current phase of the presentation lifecycle.
10 | @Published public private(set) var phase: PresentationPhase = .idle
| `- error: 'Published' is only available in macOS 10.15 or newer
11 |
12 | private let broadcast = AsyncBroadcast()
/Users/admin/builder/spi-builder-workspace/Sources/FullScreenCover/PresentationProxy.swift:8:39: error: 'ObservableObject' is only available in macOS 10.15 or newer
6 | /// Instead, use a ``PresentationCoordinator`` in your view hierarchy to get an instance and pass it to a ``FullScreenCoverModifier`` or the ``SwiftUICore/View/fullScreenCover(presentation:animation:content:)`` method.
7 | @MainActor
8 | public final class PresentationProxy: ObservableObject, Sendable {
| | `- error: 'ObservableObject' is only available in macOS 10.15 or newer
| `- note: add '@available' attribute to enclosing class
9 | /// The current phase of the presentation lifecycle.
10 | @Published public private(set) var phase: PresentationPhase = .idle
[7/10] Compiling FullScreenCover PresentationProxy.swift
/Users/admin/builder/spi-builder-workspace/Sources/FullScreenCover/PresentationProxy.swift:10:6: error: 'Published' is only available in macOS 10.15 or newer
6 | /// Instead, use a ``PresentationCoordinator`` in your view hierarchy to get an instance and pass it to a ``FullScreenCoverModifier`` or the ``SwiftUICore/View/fullScreenCover(presentation:animation:content:)`` method.
7 | @MainActor
8 | public final class PresentationProxy: ObservableObject, Sendable {
| `- note: add '@available' attribute to enclosing class
9 | /// The current phase of the presentation lifecycle.
10 | @Published public private(set) var phase: PresentationPhase = .idle
| `- error: 'Published' is only available in macOS 10.15 or newer
11 |
12 | private let broadcast = AsyncBroadcast()
/Users/admin/builder/spi-builder-workspace/Sources/FullScreenCover/PresentationProxy.swift:8:39: error: 'ObservableObject' is only available in macOS 10.15 or newer
6 | /// Instead, use a ``PresentationCoordinator`` in your view hierarchy to get an instance and pass it to a ``FullScreenCoverModifier`` or the ``SwiftUICore/View/fullScreenCover(presentation:animation:content:)`` method.
7 | @MainActor
8 | public final class PresentationProxy: ObservableObject, Sendable {
| | `- error: 'ObservableObject' is only available in macOS 10.15 or newer
| `- note: add '@available' attribute to enclosing class
9 | /// The current phase of the presentation lifecycle.
10 | @Published public private(set) var phase: PresentationPhase = .idle
<unknown>:0: error: cannot convert value of type 'KeyPath<PresentationProxy, PresentationPhase>' to expected argument type 'ReferenceWritableKeyPath<PresentationProxy, PresentationPhase>'
/Users/admin/builder/spi-builder-workspace/Sources/FullScreenCover/PresentationProxy.swift:38:17: error: setter for 'phase' is only available in macOS 10.15 or newer
6 | /// Instead, use a ``PresentationCoordinator`` in your view hierarchy to get an instance and pass it to a ``FullScreenCoverModifier`` or the ``SwiftUICore/View/fullScreenCover(presentation:animation:content:)`` method.
7 | @MainActor
8 | public final class PresentationProxy: ObservableObject, Sendable {
| `- note: add '@available' attribute to enclosing class
9 | /// The current phase of the presentation lifecycle.
10 | @Published public private(set) var phase: PresentationPhase = .idle
:
32 | /// - Note: If the calling task is cancelled, this method throws `CancellationError`,
33 | /// but the transition itself continues unaffected.
34 | public func present() async throws {
| `- note: add '@available' attribute to enclosing instance method
35 | while true {
36 | switch phase {
37 | case .idle:
38 | phase = .presenting
| |- error: setter for 'phase' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
39 | try await broadcast.wait()
40 | return
/Users/admin/builder/spi-builder-workspace/Sources/FullScreenCover/PresentationProxy.swift:65:17: error: setter for 'phase' is only available in macOS 10.15 or newer
6 | /// Instead, use a ``PresentationCoordinator`` in your view hierarchy to get an instance and pass it to a ``FullScreenCoverModifier`` or the ``SwiftUICore/View/fullScreenCover(presentation:animation:content:)`` method.
7 | @MainActor
8 | public final class PresentationProxy: ObservableObject, Sendable {
| `- note: add '@available' attribute to enclosing class
9 | /// The current phase of the presentation lifecycle.
10 | @Published public private(set) var phase: PresentationPhase = .idle
:
59 | /// - Note: If the calling task is cancelled, this method throws `CancellationError`,
60 | /// but the transition itself continues unaffected.
61 | public func dismiss() async throws {
| `- note: add '@available' attribute to enclosing instance method
62 | while true {
63 | switch phase {
64 | case .presented:
65 | phase = .dismissing
| |- error: setter for 'phase' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
66 | try await broadcast.wait()
67 | return
/Users/admin/builder/spi-builder-workspace/Sources/FullScreenCover/PresentationProxy.swift:98:9: error: setter for 'phase' is only available in macOS 10.15 or newer
93 | }
94 |
95 | extension PresentationProxy {
| `- note: add '@available' attribute to enclosing extension
96 | func cancelAll() {
| `- note: add '@available' attribute to enclosing instance method
97 | broadcast.cancelAll()
98 | phase = .idle
| |- error: setter for 'phase' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
99 | }
100 |
/Users/admin/builder/spi-builder-workspace/Sources/FullScreenCover/PresentationProxy.swift:103:9: error: setter for 'phase' is only available in macOS 10.15 or newer
93 | }
94 |
95 | extension PresentationProxy {
| `- note: add '@available' attribute to enclosing extension
96 | func cancelAll() {
97 | broadcast.cancelAll()
:
99 | }
100 |
101 | func onWillPresent() {
| `- note: add '@available' attribute to enclosing instance method
102 | guard phase == .presenting else { return }
103 | phase = .presented
| |- error: setter for 'phase' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
104 | broadcast.resumeAll()
105 | }
/Users/admin/builder/spi-builder-workspace/Sources/FullScreenCover/PresentationProxy.swift:109:9: error: setter for 'phase' is only available in macOS 10.15 or newer
93 | }
94 |
95 | extension PresentationProxy {
| `- note: add '@available' attribute to enclosing extension
96 | func cancelAll() {
97 | broadcast.cancelAll()
:
105 | }
106 |
107 | func onDidDismiss() {
| `- note: add '@available' attribute to enclosing instance method
108 | guard phase == .dismissing else { return }
109 | phase = .idle
| |- error: setter for 'phase' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
110 | broadcast.resumeAll()
111 | }
/Users/admin/builder/spi-builder-workspace/Sources/FullScreenCover/PresentationProxy.swift:119:9: error: setter for 'phase' is only available in macOS 10.15 or newer
114 | // MARK: - Private
115 |
116 | private extension PresentationProxy {
| `- note: add '@available' attribute to enclosing extension
117 | func cancelPresentation() {
| `- note: add '@available' attribute to enclosing instance method
118 | broadcast.cancelAll()
119 | phase = .idle
| |- error: setter for 'phase' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
120 | }
121 | }
[8/10] Compiling FullScreenCover PresentationCoordinator.swift
/Users/admin/builder/spi-builder-workspace/Sources/FullScreenCover/PresentationCoordinator.swift:31:6: error: 'StateObject' is only available in macOS 11.0 or newer
28 | /// - Note: The ``PresentationProxy`` instance is automatically made available to the subviews of the content view and can be accessed with an [EnvironmentObject](https://developer.apple.com/documentation/swiftui/environmentobject) property wrapper.
29 | @MainActor
30 | public struct PresentationCoordinator<Content: View>: View {
| `- note: add '@available' attribute to enclosing generic struct
31 | @StateObject private var presentationProxy = PresentationProxy()
| `- error: 'StateObject' is only available in macOS 11.0 or newer
32 |
33 | private let content: (PresentationProxy) -> Content
/Users/admin/builder/spi-builder-workspace/Sources/FullScreenCover/PresentationCoordinator.swift:35:27: error: 'View' is only available in macOS 10.15 or newer
28 | /// - Note: The ``PresentationProxy`` instance is automatically made available to the subviews of the content view and can be accessed with an [EnvironmentObject](https://developer.apple.com/documentation/swiftui/environmentobject) property wrapper.
29 | @MainActor
30 | public struct PresentationCoordinator<Content: View>: View {
| `- note: add '@available' attribute to enclosing generic struct
31 | @StateObject private var presentationProxy = PresentationProxy()
32 |
33 | private let content: (PresentationProxy) -> Content
34 |
35 | public var body: some View {
| | `- error: 'View' is only available in macOS 10.15 or newer
| `- note: add '@available' attribute to enclosing property
36 | content(presentationProxy)
37 | .environmentObject(presentationProxy)
/Users/admin/builder/spi-builder-workspace/Sources/FullScreenCover/PresentationCoordinator.swift:46:18: error: 'ViewBuilder' is only available in macOS 10.15 or newer
28 | /// - Note: The ``PresentationProxy`` instance is automatically made available to the subviews of the content view and can be accessed with an [EnvironmentObject](https://developer.apple.com/documentation/swiftui/environmentobject) property wrapper.
29 | @MainActor
30 | public struct PresentationCoordinator<Content: View>: View {
| `- note: add '@available' attribute to enclosing generic struct
31 | @StateObject private var presentationProxy = PresentationProxy()
32 |
:
44 | ///
45 | /// - Parameter content: The content from which a full-screen modal transition can be triggered.
46 | public init(@ViewBuilder content: @escaping (PresentationProxy) -> Content) {
| | `- error: 'ViewBuilder' is only available in macOS 10.15 or newer
| `- note: add '@available' attribute to enclosing initializer
47 | self.content = content
48 | }
/Users/admin/builder/spi-builder-workspace/Sources/FullScreenCover/PresentationCoordinator.swift:30:48: error: 'View' is only available in macOS 10.15 or newer
28 | /// - Note: The ``PresentationProxy`` instance is automatically made available to the subviews of the content view and can be accessed with an [EnvironmentObject](https://developer.apple.com/documentation/swiftui/environmentobject) property wrapper.
29 | @MainActor
30 | public struct PresentationCoordinator<Content: View>: View {
| | `- error: 'View' is only available in macOS 10.15 or newer
| `- note: add '@available' attribute to enclosing generic struct
31 | @StateObject private var presentationProxy = PresentationProxy()
32 |
/Users/admin/builder/spi-builder-workspace/Sources/FullScreenCover/PresentationCoordinator.swift:53:2: error: 'Preview(_:body:)' is only available in macOS 10.15 or newer
51 | // MARK: - Preview
52 |
53 | #Preview("Custom Transition") {
| `- error: 'Preview(_:body:)' is only available in macOS 10.15 or newer
54 | PresentationCoordinator { proxy in
55 | VStack(spacing: 20) {
/Users/admin/builder/spi-builder-workspace/Sources/FullScreenCover/PresentationCoordinator.swift:54:5: error: conformance of 'Text' to 'View' is only available in macOS 10.15 or newer
52 |
53 | #Preview("Custom Transition") {
54 | PresentationCoordinator { proxy in
| |- error: conformance of 'Text' to 'View' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
55 | VStack(spacing: 20) {
56 | Text("Custom Scale + Fade Transition")
/Users/admin/builder/spi-builder-workspace/Sources/FullScreenCover/PresentationCoordinator.swift:54:5: error: conformance of 'Text' to 'View' is only available in macOS 10.15 or newer
52 |
53 | #Preview("Custom Transition") {
54 | PresentationCoordinator { proxy in
| |- error: conformance of 'Text' to 'View' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
55 | VStack(spacing: 20) {
56 | Text("Custom Scale + Fade Transition")
/Users/admin/builder/spi-builder-workspace/Sources/FullScreenCover/PresentationCoordinator.swift:54:29: error: conformance of 'Text' to 'View' is only available in macOS 10.15 or newer
52 |
53 | #Preview("Custom Transition") {
54 | PresentationCoordinator { proxy in
| |- error: conformance of 'Text' to 'View' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
55 | VStack(spacing: 20) {
56 | Text("Custom Scale + Fade Transition")
/Users/admin/builder/spi-builder-workspace/Sources/FullScreenCover/PresentationCoordinator.swift:54:29: error: conformance of 'Text' to 'View' is only available in macOS 10.15 or newer
52 |
53 | #Preview("Custom Transition") {
54 | PresentationCoordinator { proxy in
| |- error: conformance of 'Text' to 'View' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
55 | VStack(spacing: 20) {
56 | Text("Custom Scale + Fade Transition")
/Users/admin/builder/spi-builder-workspace/Sources/FullScreenCover/PresentationCoordinator.swift:55:9: error: 'VStack' is only available in macOS 10.15 or newer
53 | #Preview("Custom Transition") {
54 | PresentationCoordinator { proxy in
55 | VStack(spacing: 20) {
| |- error: 'VStack' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
56 | Text("Custom Scale + Fade Transition")
57 | .font(.headline)
/Users/admin/builder/spi-builder-workspace/Sources/FullScreenCover/PresentationCoordinator.swift:55:29: error: conformance of 'Text' to 'View' is only available in macOS 10.15 or newer
53 | #Preview("Custom Transition") {
54 | PresentationCoordinator { proxy in
55 | VStack(spacing: 20) {
| |- error: conformance of 'Text' to 'View' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
56 | Text("Custom Scale + Fade Transition")
57 | .font(.headline)
/Users/admin/builder/spi-builder-workspace/Sources/FullScreenCover/PresentationCoordinator.swift:56:13: error: conformance of 'Text' to 'View' is only available in macOS 10.15 or newer
54 | PresentationCoordinator { proxy in
55 | VStack(spacing: 20) {
56 | Text("Custom Scale + Fade Transition")
| |- error: conformance of 'Text' to 'View' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
57 | .font(.headline)
58 |
/Users/admin/builder/spi-builder-workspace/Sources/FullScreenCover/PresentationCoordinator.swift:56:13: error: 'Text' is only available in macOS 10.15 or newer
54 | PresentationCoordinator { proxy in
55 | VStack(spacing: 20) {
56 | Text("Custom Scale + Fade Transition")
| |- error: 'Text' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
57 | .font(.headline)
58 |
/Users/admin/builder/spi-builder-workspace/Sources/FullScreenCover/PresentationCoordinator.swift:57:18: error: 'font' is only available in macOS 10.15 or newer
55 | VStack(spacing: 20) {
56 | Text("Custom Scale + Fade Transition")
57 | .font(.headline)
| |- error: 'font' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
58 |
59 | Button("Present Modal") {
/Users/admin/builder/spi-builder-workspace/Sources/FullScreenCover/PresentationCoordinator.swift:57:24: error: 'headline' is only available in macOS 10.15 or newer
55 | VStack(spacing: 20) {
56 | Text("Custom Scale + Fade Transition")
57 | .font(.headline)
| |- error: 'headline' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
58 |
59 | Button("Present Modal") {
/Users/admin/builder/spi-builder-workspace/Sources/FullScreenCover/PresentationCoordinator.swift:59:13: error: 'Button' is only available in macOS 10.15 or newer
57 | .font(.headline)
58 |
59 | Button("Present Modal") {
| |- error: 'Button' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
60 | Task {
61 | try await proxy.present()
/Users/admin/builder/spi-builder-workspace/Sources/FullScreenCover/PresentationCoordinator.swift:59:13: error: 'init(_:action:)' is only available in macOS 10.15 or newer
57 | .font(.headline)
58 |
59 | Button("Present Modal") {
| |- error: 'init(_:action:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
60 | Task {
61 | try await proxy.present()
/Users/admin/builder/spi-builder-workspace/Sources/FullScreenCover/PresentationCoordinator.swift:59:20: error: 'LocalizedStringKey' is only available in macOS 10.15 or newer
57 | .font(.headline)
58 |
59 | Button("Present Modal") {
| |- error: 'LocalizedStringKey' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
60 | Task {
61 | try await proxy.present()
/Users/admin/builder/spi-builder-workspace/Sources/FullScreenCover/PresentationCoordinator.swift:60:17: error: 'Task' is only available in macOS 10.15 or newer
58 |
59 | Button("Present Modal") {
60 | Task {
| |- error: 'Task' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
61 | try await proxy.present()
62 | }
/Users/admin/builder/spi-builder-workspace/Sources/FullScreenCover/PresentationCoordinator.swift:60:17: error: 'init(name:priority:operation:)' is only available in macOS 10.15 or newer
58 |
59 | Button("Present Modal") {
60 | Task {
| |- error: 'init(name:priority:operation:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
61 | try await proxy.present()
62 | }
/Users/admin/builder/spi-builder-workspace/Sources/FullScreenCover/PresentationCoordinator.swift:64:14: error: 'buttonStyle' is only available in macOS 10.15 or newer
62 | }
63 | }
64 | .buttonStyle(.borderedProminent)
| |- error: 'buttonStyle' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
65 | }
66 | .fullScreenCover(presentation: proxy, animation: .spring(duration: 0.5, bounce: 0.2)) {
/Users/admin/builder/spi-builder-workspace/Sources/FullScreenCover/PresentationCoordinator.swift:64:27: error: 'borderedProminent' is only available in macOS 12.0 or newer
62 | }
63 | }
64 | .buttonStyle(.borderedProminent)
| |- error: 'borderedProminent' is only available in macOS 12.0 or newer
| `- note: add 'if #available' version check
65 | }
66 | .fullScreenCover(presentation: proxy, animation: .spring(duration: 0.5, bounce: 0.2)) {
/Users/admin/builder/spi-builder-workspace/Sources/FullScreenCover/PresentationCoordinator.swift:55:29: error: conformance of 'Text' to 'View' is only available in macOS 10.15 or newer
53 | #Preview("Custom Transition") {
54 | PresentationCoordinator { proxy in
55 | VStack(spacing: 20) {
| |- error: conformance of 'Text' to 'View' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
56 | Text("Custom Scale + Fade Transition")
57 | .font(.headline)
/Users/admin/builder/spi-builder-workspace/Sources/FullScreenCover/PresentationCoordinator.swift:66:59: error: 'spring(duration:bounce:blendDuration:)' is only available in macOS 10.15 or newer
64 | .buttonStyle(.borderedProminent)
65 | }
66 | .fullScreenCover(presentation: proxy, animation: .spring(duration: 0.5, bounce: 0.2)) {
| |- error: 'spring(duration:bounce:blendDuration:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
67 | ZStack {
68 | Color.black.opacity(0.5)
/Users/admin/builder/spi-builder-workspace/Sources/FullScreenCover/PresentationCoordinator.swift:66:95: error: conformance of 'Text' to 'View' is only available in macOS 10.15 or newer
64 | .buttonStyle(.borderedProminent)
65 | }
66 | .fullScreenCover(presentation: proxy, animation: .spring(duration: 0.5, bounce: 0.2)) {
| |- error: conformance of 'Text' to 'View' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
67 | ZStack {
68 | Color.black.opacity(0.5)
/Users/admin/builder/spi-builder-workspace/Sources/FullScreenCover/PresentationCoordinator.swift:67:13: error: 'ZStack' is only available in macOS 10.15 or newer
65 | }
66 | .fullScreenCover(presentation: proxy, animation: .spring(duration: 0.5, bounce: 0.2)) {
67 | ZStack {
| |- error: 'ZStack' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
68 | Color.black.opacity(0.5)
69 | .ignoresSafeArea()
/Users/admin/builder/spi-builder-workspace/Sources/FullScreenCover/PresentationCoordinator.swift:67:20: error: conformance of 'Text' to 'View' is only available in macOS 10.15 or newer
65 | }
66 | .fullScreenCover(presentation: proxy, animation: .spring(duration: 0.5, bounce: 0.2)) {
67 | ZStack {
| |- error: conformance of 'Text' to 'View' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
68 | Color.black.opacity(0.5)
69 | .ignoresSafeArea()
/Users/admin/builder/spi-builder-workspace/Sources/FullScreenCover/PresentationCoordinator.swift:68:17: error: 'Color' is only available in macOS 10.15 or newer
66 | .fullScreenCover(presentation: proxy, animation: .spring(duration: 0.5, bounce: 0.2)) {
67 | ZStack {
68 | Color.black.opacity(0.5)
| |- error: 'Color' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
69 | .ignoresSafeArea()
70 |
/Users/admin/builder/spi-builder-workspace/Sources/FullScreenCover/PresentationCoordinator.swift:68:23: error: 'black' is only available in macOS 10.15 or newer
66 | .fullScreenCover(presentation: proxy, animation: .spring(duration: 0.5, bounce: 0.2)) {
67 | ZStack {
68 | Color.black.opacity(0.5)
| |- error: 'black' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
69 | .ignoresSafeArea()
70 |
/Users/admin/builder/spi-builder-workspace/Sources/FullScreenCover/PresentationCoordinator.swift:68:29: error: 'opacity' is only available in macOS 10.15 or newer
66 | .fullScreenCover(presentation: proxy, animation: .spring(duration: 0.5, bounce: 0.2)) {
67 | ZStack {
68 | Color.black.opacity(0.5)
| |- error: 'opacity' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
69 | .ignoresSafeArea()
70 |
/Users/admin/builder/spi-builder-workspace/Sources/FullScreenCover/PresentationCoordinator.swift:69:22: error: 'ignoresSafeArea(_:edges:)' is only available in macOS 11.0 or newer
67 | ZStack {
68 | Color.black.opacity(0.5)
69 | .ignoresSafeArea()
| |- error: 'ignoresSafeArea(_:edges:)' is only available in macOS 11.0 or newer
| `- note: add 'if #available' version check
70 |
71 | VStack(spacing: 24) {
/Users/admin/builder/spi-builder-workspace/Sources/FullScreenCover/PresentationCoordinator.swift:71:17: error: 'VStack' is only available in macOS 10.15 or newer
69 | .ignoresSafeArea()
70 |
71 | VStack(spacing: 24) {
| |- error: 'VStack' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
72 | Image(systemName: "checkmark.seal.fill")
73 | .font(.system(size: 60))
/Users/admin/builder/spi-builder-workspace/Sources/FullScreenCover/PresentationCoordinator.swift:71:37: error: conformance of 'Text' to 'View' is only available in macOS 10.15 or newer
69 | .ignoresSafeArea()
70 |
71 | VStack(spacing: 24) {
| |- error: conformance of 'Text' to 'View' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
72 | Image(systemName: "checkmark.seal.fill")
73 | .font(.system(size: 60))
/Users/admin/builder/spi-builder-workspace/Sources/FullScreenCover/PresentationCoordinator.swift:72:21: error: 'Image' is only available in macOS 10.15 or newer
70 |
71 | VStack(spacing: 24) {
72 | Image(systemName: "checkmark.seal.fill")
| |- error: 'Image' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
73 | .font(.system(size: 60))
74 | .foregroundStyle(.green)
/Users/admin/builder/spi-builder-workspace/Sources/FullScreenCover/PresentationCoordinator.swift:72:21: error: 'init(systemName:)' is only available in macOS 11.0 or newer
70 |
71 | VStack(spacing: 24) {
72 | Image(systemName: "checkmark.seal.fill")
| |- error: 'init(systemName:)' is only available in macOS 11.0 or newer
| `- note: add 'if #available' version check
73 | .font(.system(size: 60))
74 | .foregroundStyle(.green)
/Users/admin/builder/spi-builder-workspace/Sources/FullScreenCover/PresentationCoordinator.swift:73:26: error: 'font' is only available in macOS 10.15 or newer
71 | VStack(spacing: 24) {
72 | Image(systemName: "checkmark.seal.fill")
73 | .font(.system(size: 60))
| |- error: 'font' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
74 | .foregroundStyle(.green)
75 |
/Users/admin/builder/spi-builder-workspace/Sources/FullScreenCover/PresentationCoordinator.swift:73:32: error: 'system(size:weight:design:)' is only available in macOS 13.0 or newer
71 | VStack(spacing: 24) {
72 | Image(systemName: "checkmark.seal.fill")
73 | .font(.system(size: 60))
| |- error: 'system(size:weight:design:)' is only available in macOS 13.0 or newer
| `- note: add 'if #available' version check
74 | .foregroundStyle(.green)
75 |
/Users/admin/builder/spi-builder-workspace/Sources/FullScreenCover/PresentationCoordinator.swift:74:26: error: 'foregroundStyle' is only available in macOS 12.0 or newer
72 | Image(systemName: "checkmark.seal.fill")
73 | .font(.system(size: 60))
74 | .foregroundStyle(.green)
| |- error: 'foregroundStyle' is only available in macOS 12.0 or newer
| `- note: add 'if #available' version check
75 |
76 | Text("Success!")
/Users/admin/builder/spi-builder-workspace/Sources/FullScreenCover/PresentationCoordinator.swift:74:43: error: 'green' is only available in macOS 10.15 or newer
72 | Image(systemName: "checkmark.seal.fill")
73 | .font(.system(size: 60))
74 | .foregroundStyle(.green)
| |- error: 'green' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
75 |
76 | Text("Success!")
/Users/admin/builder/spi-builder-workspace/Sources/FullScreenCover/PresentationCoordinator.swift:76:21: error: conformance of 'Text' to 'View' is only available in macOS 10.15 or newer
74 | .foregroundStyle(.green)
75 |
76 | Text("Success!")
| |- error: conformance of 'Text' to 'View' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
77 | .font(.largeTitle.bold())
78 | .foregroundStyle(.white)
/Users/admin/builder/spi-builder-workspace/Sources/FullScreenCover/PresentationCoordinator.swift:76:21: error: 'Text' is only available in macOS 10.15 or newer
74 | .foregroundStyle(.green)
75 |
76 | Text("Success!")
| |- error: 'Text' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
77 | .font(.largeTitle.bold())
78 | .foregroundStyle(.white)
/Users/admin/builder/spi-builder-workspace/Sources/FullScreenCover/PresentationCoordinator.swift:77:26: error: 'font' is only available in macOS 10.15 or newer
75 |
76 | Text("Success!")
77 | .font(.largeTitle.bold())
| |- error: 'font' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
78 | .foregroundStyle(.white)
79 |
/Users/admin/builder/spi-builder-workspace/Sources/FullScreenCover/PresentationCoordinator.swift:77:32: error: 'largeTitle' is only available in macOS 10.15 or newer
75 |
76 | Text("Success!")
77 | .font(.largeTitle.bold())
| |- error: 'largeTitle' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
78 | .foregroundStyle(.white)
79 |
/Users/admin/builder/spi-builder-workspace/Sources/FullScreenCover/PresentationCoordinator.swift:77:43: error: 'bold()' is only available in macOS 10.15 or newer
75 |
76 | Text("Success!")
77 | .font(.largeTitle.bold())
| |- error: 'bold()' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
78 | .foregroundStyle(.white)
79 |
/Users/admin/builder/spi-builder-workspace/Sources/FullScreenCover/PresentationCoordinator.swift:78:26: error: 'foregroundStyle' is only available in macOS 14.0 or newer
76 | Text("Success!")
77 | .font(.largeTitle.bold())
78 | .foregroundStyle(.white)
| |- error: 'foregroundStyle' is only available in macOS 14.0 or newer
| `- note: add 'if #available' version check
79 |
80 | Text("This modal uses a custom scale + fade transition\ninstead of the default slide-up animation.")
/Users/admin/builder/spi-builder-workspace/Sources/FullScreenCover/PresentationCoordinator.swift:78:43: error: 'white' is only available in macOS 10.15 or newer
76 | Text("Success!")
77 | .font(.largeTitle.bold())
78 | .foregroundStyle(.white)
| |- error: 'white' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
79 |
80 | Text("This modal uses a custom scale + fade transition\ninstead of the default slide-up animation.")
/Users/admin/builder/spi-builder-workspace/Sources/FullScreenCover/PresentationCoordinator.swift:80:21: error: 'Text' is only available in macOS 10.15 or newer
78 | .foregroundStyle(.white)
79 |
80 | Text("This modal uses a custom scale + fade transition\ninstead of the default slide-up animation.")
| |- error: 'Text' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
81 | .multilineTextAlignment(.center)
82 | .foregroundStyle(.white.opacity(0.7))
/Users/admin/builder/spi-builder-workspace/Sources/FullScreenCover/PresentationCoordinator.swift:81:26: error: 'multilineTextAlignment' is only available in macOS 10.15 or newer
79 |
80 | Text("This modal uses a custom scale + fade transition\ninstead of the default slide-up animation.")
81 | .multilineTextAlignment(.center)
| |- error: 'multilineTextAlignment' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
82 | .foregroundStyle(.white.opacity(0.7))
83 |
/Users/admin/builder/spi-builder-workspace/Sources/FullScreenCover/PresentationCoordinator.swift:82:26: error: 'foregroundStyle' is only available in macOS 12.0 or newer
80 | Text("This modal uses a custom scale + fade transition\ninstead of the default slide-up animation.")
81 | .multilineTextAlignment(.center)
82 | .foregroundStyle(.white.opacity(0.7))
| |- error: 'foregroundStyle' is only available in macOS 12.0 or newer
| `- note: add 'if #available' version check
83 |
84 | Button("Dismiss") {
/Users/admin/builder/spi-builder-workspace/Sources/FullScreenCover/PresentationCoordinator.swift:82:43: error: 'white' is only available in macOS 10.15 or newer
80 | Text("This modal uses a custom scale + fade transition\ninstead of the default slide-up animation.")
81 | .multilineTextAlignment(.center)
82 | .foregroundStyle(.white.opacity(0.7))
| |- error: 'white' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
83 |
84 | Button("Dismiss") {
/Users/admin/builder/spi-builder-workspace/Sources/FullScreenCover/PresentationCoordinator.swift:82:49: error: 'opacity' is only available in macOS 12.0 or newer
80 | Text("This modal uses a custom scale + fade transition\ninstead of the default slide-up animation.")
81 | .multilineTextAlignment(.center)
82 | .foregroundStyle(.white.opacity(0.7))
| |- error: 'opacity' is only available in macOS 12.0 or newer
| `- note: add 'if #available' version check
83 |
84 | Button("Dismiss") {
/Users/admin/builder/spi-builder-workspace/Sources/FullScreenCover/PresentationCoordinator.swift:84:21: error: 'Button' is only available in macOS 10.15 or newer
82 | .foregroundStyle(.white.opacity(0.7))
83 |
84 | Button("Dismiss") {
| |- error: 'Button' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
85 | Task {
86 | try await proxy.dismiss()
/Users/admin/builder/spi-builder-workspace/Sources/FullScreenCover/PresentationCoordinator.swift:84:21: error: 'init(_:action:)' is only available in macOS 10.15 or newer
82 | .foregroundStyle(.white.opacity(0.7))
83 |
84 | Button("Dismiss") {
| |- error: 'init(_:action:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
85 | Task {
86 | try await proxy.dismiss()
/Users/admin/builder/spi-builder-workspace/Sources/FullScreenCover/PresentationCoordinator.swift:84:28: error: 'LocalizedStringKey' is only available in macOS 10.15 or newer
82 | .foregroundStyle(.white.opacity(0.7))
83 |
84 | Button("Dismiss") {
| |- error: 'LocalizedStringKey' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
85 | Task {
86 | try await proxy.dismiss()
/Users/admin/builder/spi-builder-workspace/Sources/FullScreenCover/PresentationCoordinator.swift:85:25: error: 'Task' is only available in macOS 10.15 or newer
83 |
84 | Button("Dismiss") {
85 | Task {
| |- error: 'Task' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
86 | try await proxy.dismiss()
87 | }
/Users/admin/builder/spi-builder-workspace/Sources/FullScreenCover/PresentationCoordinator.swift:85:25: error: 'init(name:priority:operation:)' is only available in macOS 10.15 or newer
83 |
84 | Button("Dismiss") {
85 | Task {
| |- error: 'init(name:priority:operation:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
86 | try await proxy.dismiss()
87 | }
/Users/admin/builder/spi-builder-workspace/Sources/FullScreenCover/PresentationCoordinator.swift:89:22: error: 'buttonStyle' is only available in macOS 10.15 or newer
87 | }
88 | }
89 | .buttonStyle(.bordered)
| |- error: 'buttonStyle' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
90 | .tint(.white)
91 | }
/Users/admin/builder/spi-builder-workspace/Sources/FullScreenCover/PresentationCoordinator.swift:89:35: error: 'bordered' is only available in macOS 10.15 or newer
87 | }
88 | }
89 | .buttonStyle(.bordered)
| |- error: 'bordered' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
90 | .tint(.white)
91 | }
/Users/admin/builder/spi-builder-workspace/Sources/FullScreenCover/PresentationCoordinator.swift:90:22: error: 'tint' is only available in macOS 12.0 or newer
88 | }
89 | .buttonStyle(.bordered)
90 | .tint(.white)
| |- error: 'tint' is only available in macOS 12.0 or newer
| `- note: add 'if #available' version check
91 | }
92 | .padding()
/Users/admin/builder/spi-builder-workspace/Sources/FullScreenCover/PresentationCoordinator.swift:90:28: error: 'white' is only available in macOS 10.15 or newer
88 | }
89 | .buttonStyle(.bordered)
90 | .tint(.white)
| |- error: 'white' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
91 | }
92 | .padding()
/Users/admin/builder/spi-builder-workspace/Sources/FullScreenCover/PresentationCoordinator.swift:71:37: error: conformance of 'Text' to 'View' is only available in macOS 10.15 or newer
69 | .ignoresSafeArea()
70 |
71 | VStack(spacing: 24) {
| |- error: conformance of 'Text' to 'View' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
72 | Image(systemName: "checkmark.seal.fill")
73 | .font(.system(size: 60))
/Users/admin/builder/spi-builder-workspace/Sources/FullScreenCover/PresentationCoordinator.swift:92:18: error: 'padding' is only available in macOS 10.15 or newer
90 | .tint(.white)
91 | }
92 | .padding()
| |- error: 'padding' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
93 | }
94 | .transition(.scale(scale: 0.8).combined(with: .opacity))
/Users/admin/builder/spi-builder-workspace/Sources/FullScreenCover/PresentationCoordinator.swift:94:14: error: 'transition' is only available in macOS 10.15 or newer
92 | .padding()
93 | }
94 | .transition(.scale(scale: 0.8).combined(with: .opacity))
| |- error: 'transition' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
95 | }
96 | }
/Users/admin/builder/spi-builder-workspace/Sources/FullScreenCover/PresentationCoordinator.swift:94:26: error: 'scale(scale:anchor:)' is only available in macOS 10.15 or newer
92 | .padding()
93 | }
94 | .transition(.scale(scale: 0.8).combined(with: .opacity))
| |- error: 'scale(scale:anchor:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
95 | }
96 | }
/Users/admin/builder/spi-builder-workspace/Sources/FullScreenCover/PresentationCoordinator.swift:94:44: error: 'combined(with:)' is only available in macOS 10.15 or newer
92 | .padding()
93 | }
94 | .transition(.scale(scale: 0.8).combined(with: .opacity))
| |- error: 'combined(with:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
95 | }
96 | }
/Users/admin/builder/spi-builder-workspace/Sources/FullScreenCover/PresentationCoordinator.swift:94:60: error: 'opacity' is only available in macOS 10.15 or newer
92 | .padding()
93 | }
94 | .transition(.scale(scale: 0.8).combined(with: .opacity))
| |- error: 'opacity' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
95 | }
96 | }
/Users/admin/builder/spi-builder-workspace/Sources/FullScreenCover/PresentationCoordinator.swift:154:5: error: cannot use explicit 'return' statement in the body of result builder 'ViewBuilder'
152 | }
153 |
154 | return ChainedPresentationDemo()
| |- error: cannot use explicit 'return' statement in the body of result builder 'ViewBuilder'
| `- note: remove 'return' statements to apply the result builder
155 | }
156 |
/Users/admin/builder/spi-builder-workspace/Sources/FullScreenCover/PresentationCoordinator.swift:37:14: error: 'environmentObject' is only available in macOS 10.15 or newer
28 | /// - Note: The ``PresentationProxy`` instance is automatically made available to the subviews of the content view and can be accessed with an [EnvironmentObject](https://developer.apple.com/documentation/swiftui/environmentobject) property wrapper.
29 | @MainActor
30 | public struct PresentationCoordinator<Content: View>: View {
| `- note: add '@available' attribute to enclosing generic struct
31 | @StateObject private var presentationProxy = PresentationProxy()
32 |
33 | private let content: (PresentationProxy) -> Content
34 |
35 | public var body: some View {
| `- note: add '@available' attribute to enclosing property
36 | content(presentationProxy)
37 | .environmentObject(presentationProxy)
| |- error: 'environmentObject' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
38 | .onDisappear {
39 | presentationProxy.cancelAll()
/Users/admin/builder/spi-builder-workspace/Sources/FullScreenCover/PresentationCoordinator.swift:38:14: error: 'onDisappear(perform:)' is only available in macOS 10.15 or newer
28 | /// - Note: The ``PresentationProxy`` instance is automatically made available to the subviews of the content view and can be accessed with an [EnvironmentObject](https://developer.apple.com/documentation/swiftui/environmentobject) property wrapper.
29 | @MainActor
30 | public struct PresentationCoordinator<Content: View>: View {
| `- note: add '@available' attribute to enclosing generic struct
31 | @StateObject private var presentationProxy = PresentationProxy()
32 |
33 | private let content: (PresentationProxy) -> Content
34 |
35 | public var body: some View {
| `- note: add '@available' attribute to enclosing property
36 | content(presentationProxy)
37 | .environmentObject(presentationProxy)
38 | .onDisappear {
| |- error: 'onDisappear(perform:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
39 | presentationProxy.cancelAll()
40 | }
[9/10] Compiling FullScreenCover FullScreenCoverModifier.swift
/Users/admin/builder/spi-builder-workspace/Sources/FullScreenCover/FullScreenCoverModifier.swift:4:6: error: 'State' is only available in macOS 10.15 or newer
1 | public import SwiftUI
2 |
3 | struct FullScreenCoverModifier<ModalContent: View>: ViewModifier {
| `- note: add '@available' attribute to enclosing generic struct
4 | @State private var isSheetPresented: Bool
| `- error: 'State' is only available in macOS 10.15 or newer
5 | @State private var showModalContent = false
6 | @ObservedObject private var presentationProxy: PresentationProxy
/Users/admin/builder/spi-builder-workspace/Sources/FullScreenCover/FullScreenCoverModifier.swift:5:6: error: 'State' is only available in macOS 10.15 or newer
1 | public import SwiftUI
2 |
3 | struct FullScreenCoverModifier<ModalContent: View>: ViewModifier {
| `- note: add '@available' attribute to enclosing generic struct
4 | @State private var isSheetPresented: Bool
5 | @State private var showModalContent = false
| `- error: 'State' is only available in macOS 10.15 or newer
6 | @ObservedObject private var presentationProxy: PresentationProxy
7 |
/Users/admin/builder/spi-builder-workspace/Sources/FullScreenCover/FullScreenCoverModifier.swift:6:6: error: 'ObservedObject' is only available in macOS 10.15 or newer
1 | public import SwiftUI
2 |
3 | struct FullScreenCoverModifier<ModalContent: View>: ViewModifier {
| `- note: add '@available' attribute to enclosing generic struct
4 | @State private var isSheetPresented: Bool
5 | @State private var showModalContent = false
6 | @ObservedObject private var presentationProxy: PresentationProxy
| `- error: 'ObservedObject' is only available in macOS 10.15 or newer
7 |
8 | @ViewBuilder private let modalContent: () -> ModalContent
/Users/admin/builder/spi-builder-workspace/Sources/FullScreenCover/FullScreenCoverModifier.swift:8:6: error: 'ViewBuilder' is only available in macOS 10.15 or newer
1 | public import SwiftUI
2 |
3 | struct FullScreenCoverModifier<ModalContent: View>: ViewModifier {
| `- note: add '@available' attribute to enclosing generic struct
4 | @State private var isSheetPresented: Bool
5 | @State private var showModalContent = false
6 | @ObservedObject private var presentationProxy: PresentationProxy
7 |
8 | @ViewBuilder private let modalContent: () -> ModalContent
| `- error: 'ViewBuilder' is only available in macOS 10.15 or newer
9 |
10 | private let animation: Animation?
/Users/admin/builder/spi-builder-workspace/Sources/FullScreenCover/FullScreenCoverModifier.swift:10:28: error: 'Animation' is only available in macOS 10.15 or newer
1 | public import SwiftUI
2 |
3 | struct FullScreenCoverModifier<ModalContent: View>: ViewModifier {
| `- note: add '@available' attribute to enclosing generic struct
4 | @State private var isSheetPresented: Bool
5 | @State private var showModalContent = false
:
8 | @ViewBuilder private let modalContent: () -> ModalContent
9 |
10 | private let animation: Animation?
| `- error: 'Animation' is only available in macOS 10.15 or newer
11 |
12 | func body(content: Content) -> some View {
/Users/admin/builder/spi-builder-workspace/Sources/FullScreenCover/FullScreenCoverModifier.swift:12:41: error: 'View' is only available in macOS 10.15 or newer
1 | public import SwiftUI
2 |
3 | struct FullScreenCoverModifier<ModalContent: View>: ViewModifier {
| `- note: add '@available' attribute to enclosing generic struct
4 | @State private var isSheetPresented: Bool
5 | @State private var showModalContent = false
:
10 | private let animation: Animation?
11 |
12 | 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
13 | // A ZStack isolates the .fullScreenCover trigger from the content view,
14 | // preventing safe area insets from propagating to the content.
/Users/admin/builder/spi-builder-workspace/Sources/FullScreenCover/FullScreenCoverModifier.swift:80:20: error: 'Animation' is only available in macOS 10.15 or newer
1 | public import SwiftUI
2 |
3 | struct FullScreenCoverModifier<ModalContent: View>: ViewModifier {
| `- note: add '@available' attribute to enclosing generic struct
4 | @State private var isSheetPresented: Bool
5 | @State private var showModalContent = false
:
76 | }
77 |
78 | init(
| `- note: add '@available' attribute to enclosing initializer
79 | presentationProxy: PresentationProxy,
80 | animation: Animation? = .default,
| `- error: 'Animation' is only available in macOS 10.15 or newer
81 | @ViewBuilder modalContent: @escaping () -> ModalContent
82 | ) {
/Users/admin/builder/spi-builder-workspace/Sources/FullScreenCover/FullScreenCoverModifier.swift:81:10: error: 'ViewBuilder' is only available in macOS 10.15 or newer
1 | public import SwiftUI
2 |
3 | struct FullScreenCoverModifier<ModalContent: View>: ViewModifier {
| `- note: add '@available' attribute to enclosing generic struct
4 | @State private var isSheetPresented: Bool
5 | @State private var showModalContent = false
:
76 | }
77 |
78 | init(
| `- note: add '@available' attribute to enclosing initializer
79 | presentationProxy: PresentationProxy,
80 | animation: Animation? = .default,
81 | @ViewBuilder modalContent: @escaping () -> ModalContent
| `- error: 'ViewBuilder' is only available in macOS 10.15 or newer
82 | ) {
83 | _isSheetPresented = .init(initialValue: presentationProxy.isPresented)
/Users/admin/builder/spi-builder-workspace/Sources/FullScreenCover/FullScreenCoverModifier.swift:80:34: error: 'default' is only available in macOS 10.15 or newer
1 | public import SwiftUI
2 |
3 | struct FullScreenCoverModifier<ModalContent: View>: ViewModifier {
| `- note: add '@available' attribute to enclosing generic struct
4 | @State private var isSheetPresented: Bool
5 | @State private var showModalContent = false
:
76 | }
77 |
78 | init(
| `- note: add '@available' attribute to enclosing initializer
79 | presentationProxy: PresentationProxy,
80 | animation: Animation? = .default,
| `- error: 'default' is only available in macOS 10.15 or newer
81 | @ViewBuilder modalContent: @escaping () -> ModalContent
82 | ) {
/Users/admin/builder/spi-builder-workspace/Sources/FullScreenCover/FullScreenCoverModifier.swift:3:46: error: 'View' is only available in macOS 10.15 or newer
1 | public import SwiftUI
2 |
3 | struct FullScreenCoverModifier<ModalContent: View>: ViewModifier {
| | `- error: 'View' is only available in macOS 10.15 or newer
| `- note: add '@available' attribute to enclosing generic struct
4 | @State private var isSheetPresented: Bool
5 | @State private var showModalContent = false
/Users/admin/builder/spi-builder-workspace/Sources/FullScreenCover/FullScreenCoverModifier.swift:101:52: error: 'View' is only available in macOS 10.15 or newer
89 | }
90 |
91 | public extension View {
| `- note: add '@available' attribute to enclosing extension
92 | /// Uses a ``PresentationProxy`` to present a modal view that covers as much of the screen as possible.
93 | ///
:
96 | /// - animation: An optional animation for the modal transitions.
97 | /// - content: A closure that returns the content of the modal view.
98 | func fullScreenCover(
| `- note: add '@available' attribute to enclosing instance method
99 | presentation: PresentationProxy,
100 | animation: Animation? = .default,
101 | @ViewBuilder content: @escaping () -> some View
| `- error: 'View' is only available in macOS 10.15 or newer
102 | ) -> some View {
103 | modifier(
/Users/admin/builder/spi-builder-workspace/Sources/FullScreenCover/FullScreenCoverModifier.swift:100:20: error: 'Animation' is only available in macOS 10.15 or newer
89 | }
90 |
91 | public extension View {
| `- note: add '@available' attribute to enclosing extension
92 | /// Uses a ``PresentationProxy`` to present a modal view that covers as much of the screen as possible.
93 | ///
:
96 | /// - animation: An optional animation for the modal transitions.
97 | /// - content: A closure that returns the content of the modal view.
98 | func fullScreenCover(
| `- note: add '@available' attribute to enclosing instance method
99 | presentation: PresentationProxy,
100 | animation: Animation? = .default,
| `- error: 'Animation' is only available in macOS 10.15 or newer
101 | @ViewBuilder content: @escaping () -> some View
102 | ) -> some View {
/Users/admin/builder/spi-builder-workspace/Sources/FullScreenCover/FullScreenCoverModifier.swift:101:10: error: 'ViewBuilder' is only available in macOS 10.15 or newer
89 | }
90 |
91 | public extension View {
| `- note: add '@available' attribute to enclosing extension
92 | /// Uses a ``PresentationProxy`` to present a modal view that covers as much of the screen as possible.
93 | ///
:
96 | /// - animation: An optional animation for the modal transitions.
97 | /// - content: A closure that returns the content of the modal view.
98 | func fullScreenCover(
| `- note: add '@available' attribute to enclosing instance method
99 | presentation: PresentationProxy,
100 | animation: Animation? = .default,
101 | @ViewBuilder content: @escaping () -> some View
| `- error: 'ViewBuilder' is only available in macOS 10.15 or newer
102 | ) -> some View {
103 | modifier(
/Users/admin/builder/spi-builder-workspace/Sources/FullScreenCover/FullScreenCoverModifier.swift:101:52: error: 'View' is only available in macOS 10.15 or newer
89 | }
90 |
91 | public extension View {
| `- note: add '@available' attribute to enclosing extension
92 | /// Uses a ``PresentationProxy`` to present a modal view that covers as much of the screen as possible.
93 | ///
:
96 | /// - animation: An optional animation for the modal transitions.
97 | /// - content: A closure that returns the content of the modal view.
98 | func fullScreenCover(
| `- note: add '@available' attribute to enclosing instance method
99 | presentation: PresentationProxy,
100 | animation: Animation? = .default,
101 | @ViewBuilder content: @escaping () -> some View
| `- error: 'View' is only available in macOS 10.15 or newer
102 | ) -> some View {
103 | modifier(
/Users/admin/builder/spi-builder-workspace/Sources/FullScreenCover/FullScreenCoverModifier.swift:102:15: error: 'View' is only available in macOS 10.15 or newer
89 | }
90 |
91 | public extension View {
| `- note: add '@available' attribute to enclosing extension
92 | /// Uses a ``PresentationProxy`` to present a modal view that covers as much of the screen as possible.
93 | ///
:
96 | /// - animation: An optional animation for the modal transitions.
97 | /// - content: A closure that returns the content of the modal view.
98 | func fullScreenCover(
| `- note: add '@available' attribute to enclosing instance method
99 | presentation: PresentationProxy,
100 | animation: Animation? = .default,
101 | @ViewBuilder content: @escaping () -> some View
102 | ) -> some View {
| `- error: 'View' is only available in macOS 10.15 or newer
103 | modifier(
104 | FullScreenCoverModifier(
/Users/admin/builder/spi-builder-workspace/Sources/FullScreenCover/FullScreenCoverModifier.swift:100:34: error: 'default' is only available in macOS 10.15 or newer
89 | }
90 |
91 | public extension View {
| `- note: add '@available' attribute to enclosing extension
92 | /// Uses a ``PresentationProxy`` to present a modal view that covers as much of the screen as possible.
93 | ///
:
96 | /// - animation: An optional animation for the modal transitions.
97 | /// - content: A closure that returns the content of the modal view.
98 | func fullScreenCover(
| `- note: add '@available' attribute to enclosing instance method
99 | presentation: PresentationProxy,
100 | animation: Animation? = .default,
| `- error: 'default' is only available in macOS 10.15 or newer
101 | @ViewBuilder content: @escaping () -> some View
102 | ) -> some View {
/Users/admin/builder/spi-builder-workspace/Sources/FullScreenCover/FullScreenCoverModifier.swift:91:18: error: 'View' is only available in macOS 10.15 or newer
89 | }
90 |
91 | public extension View {
| | `- error: 'View' is only available in macOS 10.15 or newer
| `- note: add '@available' attribute to enclosing extension
92 | /// Uses a ``PresentationProxy`` to present a modal view that covers as much of the screen as possible.
93 | ///
/Users/admin/builder/spi-builder-workspace/Sources/FullScreenCover/FullScreenCoverModifier.swift:15:9: error: 'ZStack' is only available in macOS 10.15 or newer
1 | public import SwiftUI
2 |
3 | struct FullScreenCoverModifier<ModalContent: View>: ViewModifier {
| `- note: add '@available' attribute to enclosing generic struct
4 | @State private var isSheetPresented: Bool
5 | @State private var showModalContent = false
:
10 | private let animation: Animation?
11 |
12 | func body(content: Content) -> some View {
| `- note: add '@available' attribute to enclosing instance method
13 | // A ZStack isolates the .fullScreenCover trigger from the content view,
14 | // preventing safe area insets from propagating to the content.
15 | ZStack {
| |- error: 'ZStack' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
16 | Color.clear
17 | .frame(width: 0, height: 0)
/Users/admin/builder/spi-builder-workspace/Sources/FullScreenCover/FullScreenCoverModifier.swift:16:13: error: 'Color' is only available in macOS 10.15 or newer
1 | public import SwiftUI
2 |
3 | struct FullScreenCoverModifier<ModalContent: View>: ViewModifier {
| `- note: add '@available' attribute to enclosing generic struct
4 | @State private var isSheetPresented: Bool
5 | @State private var showModalContent = false
:
10 | private let animation: Animation?
11 |
12 | func body(content: Content) -> some View {
| `- note: add '@available' attribute to enclosing instance method
13 | // A ZStack isolates the .fullScreenCover trigger from the content view,
14 | // preventing safe area insets from propagating to the content.
15 | ZStack {
16 | Color.clear
| |- error: 'Color' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
17 | .frame(width: 0, height: 0)
18 | .fullScreenCover(
/Users/admin/builder/spi-builder-workspace/Sources/FullScreenCover/FullScreenCoverModifier.swift:16:19: error: 'clear' is only available in macOS 10.15 or newer
1 | public import SwiftUI
2 |
3 | struct FullScreenCoverModifier<ModalContent: View>: ViewModifier {
| `- note: add '@available' attribute to enclosing generic struct
4 | @State private var isSheetPresented: Bool
5 | @State private var showModalContent = false
:
10 | private let animation: Animation?
11 |
12 | func body(content: Content) -> some View {
| `- note: add '@available' attribute to enclosing instance method
13 | // A ZStack isolates the .fullScreenCover trigger from the content view,
14 | // preventing safe area insets from propagating to the content.
15 | ZStack {
16 | Color.clear
| |- error: 'clear' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
17 | .frame(width: 0, height: 0)
18 | .fullScreenCover(
/Users/admin/builder/spi-builder-workspace/Sources/FullScreenCover/FullScreenCoverModifier.swift:17:18: error: 'frame(width:height:alignment:)' is only available in macOS 10.15 or newer
1 | public import SwiftUI
2 |
3 | struct FullScreenCoverModifier<ModalContent: View>: ViewModifier {
| `- note: add '@available' attribute to enclosing generic struct
4 | @State private var isSheetPresented: Bool
5 | @State private var showModalContent = false
:
10 | private let animation: Animation?
11 |
12 | func body(content: Content) -> some View {
| `- note: add '@available' attribute to enclosing instance method
13 | // A ZStack isolates the .fullScreenCover trigger from the content view,
14 | // preventing safe area insets from propagating to the content.
15 | ZStack {
16 | Color.clear
17 | .frame(width: 0, height: 0)
| |- error: 'frame(width:height:alignment:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
18 | .fullScreenCover(
19 | isPresented: $isSheetPresented,
/Users/admin/builder/spi-builder-workspace/Sources/FullScreenCover/FullScreenCoverModifier.swift:18:18: error: 'fullScreenCover(isPresented:onDismiss:content:)' is unavailable in macOS
16 | Color.clear
17 | .frame(width: 0, height: 0)
18 | .fullScreenCover(
| `- error: 'fullScreenCover(isPresented:onDismiss:content:)' is unavailable in macOS
19 | isPresented: $isSheetPresented,
20 | onDismiss: {
SwiftUI.View.fullScreenCover:2:25: note: 'fullScreenCover(isPresented:onDismiss:content:)' has been explicitly marked unavailable here
1 | protocol View {
2 | nonisolated public func fullScreenCover<Content>(isPresented: Binding<Bool>, onDismiss: (() -> Void)? = nil, @ViewBuilder content: @escaping () -> Content) -> some View where Content : View
| `- note: 'fullScreenCover(isPresented:onDismiss:content:)' has been explicitly marked unavailable here
3 | }
4 |
/Users/admin/builder/spi-builder-workspace/Sources/FullScreenCover/FullScreenCoverModifier.swift:24:21: error: 'Group' is only available in macOS 10.15 or newer
1 | public import SwiftUI
2 |
3 | struct FullScreenCoverModifier<ModalContent: View>: ViewModifier {
| `- note: add '@available' attribute to enclosing generic struct
4 | @State private var isSheetPresented: Bool
5 | @State private var showModalContent = false
:
10 | private let animation: Animation?
11 |
12 | func body(content: Content) -> some View {
| `- note: add '@available' attribute to enclosing instance method
13 | // A ZStack isolates the .fullScreenCover trigger from the content view,
14 | // preventing safe area insets from propagating to the content.
:
22 | }
23 | ) {
24 | Group {
| |- error: 'Group' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
25 | if showModalContent {
26 | modalContent()
/Users/admin/builder/spi-builder-workspace/Sources/FullScreenCover/FullScreenCoverModifier.swift:24:21: error: 'init(content:)' is only available in macOS 10.15 or newer
1 | public import SwiftUI
2 |
3 | struct FullScreenCoverModifier<ModalContent: View>: ViewModifier {
| `- note: add '@available' attribute to enclosing generic struct
4 | @State private var isSheetPresented: Bool
5 | @State private var showModalContent = false
:
10 | private let animation: Animation?
11 |
12 | func body(content: Content) -> some View {
| `- note: add '@available' attribute to enclosing instance method
13 | // A ZStack isolates the .fullScreenCover trigger from the content view,
14 | // preventing safe area insets from propagating to the content.
:
22 | }
23 | ) {
24 | Group {
| |- error: 'init(content:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
25 | if showModalContent {
26 | modalContent()
/Users/admin/builder/spi-builder-workspace/Sources/FullScreenCover/FullScreenCoverModifier.swift:27:34: error: 'task(name:priority:file:line:_:)' is only available in macOS 12.0 or newer
1 | public import SwiftUI
2 |
3 | struct FullScreenCoverModifier<ModalContent: View>: ViewModifier {
| `- note: add '@available' attribute to enclosing generic struct
4 | @State private var isSheetPresented: Bool
5 | @State private var showModalContent = false
:
10 | private let animation: Animation?
11 |
12 | func body(content: Content) -> some View {
| `- note: add '@available' attribute to enclosing instance method
13 | // A ZStack isolates the .fullScreenCover trigger from the content view,
14 | // preventing safe area insets from propagating to the content.
:
25 | if showModalContent {
26 | modalContent()
27 | .task {
| |- error: 'task(name:priority:file:line:_:)' is only available in macOS 12.0 or newer
| `- note: add 'if #available' version check
28 | // The modal content has appeared. Notify the proxy so that present() callers are resumed.
29 | presentationProxy.onWillPresent()
/Users/admin/builder/spi-builder-workspace/Sources/FullScreenCover/FullScreenCoverModifier.swift:31:34: error: 'onDisappear(perform:)' is only available in macOS 10.15 or newer
1 | public import SwiftUI
2 |
3 | struct FullScreenCoverModifier<ModalContent: View>: ViewModifier {
| `- note: add '@available' attribute to enclosing generic struct
4 | @State private var isSheetPresented: Bool
5 | @State private var showModalContent = false
:
10 | private let animation: Animation?
11 |
12 | func body(content: Content) -> some View {
| `- note: add '@available' attribute to enclosing instance method
13 | // A ZStack isolates the .fullScreenCover trigger from the content view,
14 | // preventing safe area insets from propagating to the content.
:
29 | presentationProxy.onWillPresent()
30 | }
31 | .onDisappear {
| |- error: 'onDisappear(perform:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
32 | // The custom dismiss animation has finished. Close the native container so that onDismiss fires.
33 | guard isSheetPresented else { return }
/Users/admin/builder/spi-builder-workspace/Sources/FullScreenCover/FullScreenCoverModifier.swift:34:37: error: setter for 'isSheetPresented' is only available in macOS 10.15 or newer
1 | public import SwiftUI
2 |
3 | struct FullScreenCoverModifier<ModalContent: View>: ViewModifier {
| `- note: add '@available' attribute to enclosing generic struct
4 | @State private var isSheetPresented: Bool
5 | @State private var showModalContent = false
:
10 | private let animation: Animation?
11 |
12 | func body(content: Content) -> some View {
| `- note: add '@available' attribute to enclosing instance method
13 | // A ZStack isolates the .fullScreenCover trigger from the content view,
14 | // preventing safe area insets from propagating to the content.
:
32 | // The custom dismiss animation has finished. Close the native container so that onDismiss fires.
33 | guard isSheetPresented else { return }
34 | isSheetPresented = false
| |- error: setter for 'isSheetPresented' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
35 | }
36 | }
/Users/admin/builder/spi-builder-workspace/Sources/FullScreenCover/FullScreenCoverModifier.swift:25:45: error: 'buildIf' is only available in macOS 10.15 or newer
1 | public import SwiftUI
2 |
3 | struct FullScreenCoverModifier<ModalContent: View>: ViewModifier {
| `- note: add '@available' attribute to enclosing generic struct
4 | @State private var isSheetPresented: Bool
5 | @State private var showModalContent = false
:
10 | private let animation: Animation?
11 |
12 | func body(content: Content) -> some View {
| `- note: add '@available' attribute to enclosing instance method
13 | // A ZStack isolates the .fullScreenCover trigger from the content view,
14 | // preventing safe area insets from propagating to the content.
:
23 | ) {
24 | Group {
25 | if showModalContent {
| |- error: 'buildIf' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
26 | modalContent()
27 | .task {
/Users/admin/builder/spi-builder-workspace/Sources/FullScreenCover/FullScreenCoverModifier.swift:36:25: error: 'buildIf' is only available in macOS 10.15 or newer
1 | public import SwiftUI
2 |
3 | struct FullScreenCoverModifier<ModalContent: View>: ViewModifier {
| `- note: add '@available' attribute to enclosing generic struct
4 | @State private var isSheetPresented: Bool
5 | @State private var showModalContent = false
:
10 | private let animation: Animation?
11 |
12 | func body(content: Content) -> some View {
| `- note: add '@available' attribute to enclosing instance method
13 | // A ZStack isolates the .fullScreenCover trigger from the content view,
14 | // preventing safe area insets from propagating to the content.
:
34 | isSheetPresented = false
35 | }
36 | }
| |- error: 'buildIf' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
37 | }
38 | .presentationBackground(Color.clear)
/Users/admin/builder/spi-builder-workspace/Sources/FullScreenCover/FullScreenCoverModifier.swift:24:27: error: conformance of 'Optional<Wrapped>' to 'View' is only available in macOS 10.15 or newer
1 | public import SwiftUI
2 |
3 | struct FullScreenCoverModifier<ModalContent: View>: ViewModifier {
| `- note: add '@available' attribute to enclosing generic struct
4 | @State private var isSheetPresented: Bool
5 | @State private var showModalContent = false
:
10 | private let animation: Animation?
11 |
12 | func body(content: Content) -> some View {
| `- note: add '@available' attribute to enclosing instance method
13 | // A ZStack isolates the .fullScreenCover trigger from the content view,
14 | // preventing safe area insets from propagating to the content.
:
22 | }
23 | ) {
24 | Group {
| |- error: conformance of 'Optional<Wrapped>' to 'View' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
25 | if showModalContent {
26 | modalContent()
/Users/admin/builder/spi-builder-workspace/Sources/FullScreenCover/FullScreenCoverModifier.swift:38:22: error: 'presentationBackground' is only available in macOS 13.3 or newer
1 | public import SwiftUI
2 |
3 | struct FullScreenCoverModifier<ModalContent: View>: ViewModifier {
| `- note: add '@available' attribute to enclosing generic struct
4 | @State private var isSheetPresented: Bool
5 | @State private var showModalContent = false
:
10 | private let animation: Animation?
11 |
12 | func body(content: Content) -> some View {
| `- note: add '@available' attribute to enclosing instance method
13 | // A ZStack isolates the .fullScreenCover trigger from the content view,
14 | // preventing safe area insets from propagating to the content.
:
36 | }
37 | }
38 | .presentationBackground(Color.clear)
| |- error: 'presentationBackground' is only available in macOS 13.3 or newer
| `- note: add 'if #available' version check
39 | .task {
40 | // The native container has appeared. Check whether the proxy still wants to present.
/Users/admin/builder/spi-builder-workspace/Sources/FullScreenCover/FullScreenCoverModifier.swift:38:45: error: 'Color' is only available in macOS 10.15 or newer
1 | public import SwiftUI
2 |
3 | struct FullScreenCoverModifier<ModalContent: View>: ViewModifier {
| `- note: add '@available' attribute to enclosing generic struct
4 | @State private var isSheetPresented: Bool
5 | @State private var showModalContent = false
:
10 | private let animation: Animation?
11 |
12 | func body(content: Content) -> some View {
| `- note: add '@available' attribute to enclosing instance method
13 | // A ZStack isolates the .fullScreenCover trigger from the content view,
14 | // preventing safe area insets from propagating to the content.
:
36 | }
37 | }
38 | .presentationBackground(Color.clear)
| |- error: 'Color' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
39 | .task {
40 | // The native container has appeared. Check whether the proxy still wants to present.
/Users/admin/builder/spi-builder-workspace/Sources/FullScreenCover/FullScreenCoverModifier.swift:38:51: error: 'clear' is only available in macOS 10.15 or newer
1 | public import SwiftUI
2 |
3 | struct FullScreenCoverModifier<ModalContent: View>: ViewModifier {
| `- note: add '@available' attribute to enclosing generic struct
4 | @State private var isSheetPresented: Bool
5 | @State private var showModalContent = false
:
10 | private let animation: Animation?
11 |
12 | func body(content: Content) -> some View {
| `- note: add '@available' attribute to enclosing instance method
13 | // A ZStack isolates the .fullScreenCover trigger from the content view,
14 | // preventing safe area insets from propagating to the content.
:
36 | }
37 | }
38 | .presentationBackground(Color.clear)
| |- error: 'clear' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
39 | .task {
40 | // The native container has appeared. Check whether the proxy still wants to present.
/Users/admin/builder/spi-builder-workspace/Sources/FullScreenCover/FullScreenCoverModifier.swift:39:22: error: 'task(name:priority:file:line:_:)' is only available in macOS 12.0 or newer
1 | public import SwiftUI
2 |
3 | struct FullScreenCoverModifier<ModalContent: View>: ViewModifier {
| `- note: add '@available' attribute to enclosing generic struct
4 | @State private var isSheetPresented: Bool
5 | @State private var showModalContent = false
:
10 | private let animation: Animation?
11 |
12 | func body(content: Content) -> some View {
| `- note: add '@available' attribute to enclosing instance method
13 | // A ZStack isolates the .fullScreenCover trigger from the content view,
14 | // preventing safe area insets from propagating to the content.
:
37 | }
38 | .presentationBackground(Color.clear)
39 | .task {
| |- error: 'task(name:priority:file:line:_:)' is only available in macOS 12.0 or newer
| `- note: add 'if #available' version check
40 | // The native container has appeared. Check whether the proxy still wants to present.
41 | // A rapid present/dismiss could have changed the state before the container was ready.
/Users/admin/builder/spi-builder-workspace/Sources/FullScreenCover/FullScreenCoverModifier.swift:44:29: error: setter for 'isSheetPresented' is only available in macOS 10.15 or newer
1 | public import SwiftUI
2 |
3 | struct FullScreenCoverModifier<ModalContent: View>: ViewModifier {
| `- note: add '@available' attribute to enclosing generic struct
4 | @State private var isSheetPresented: Bool
5 | @State private var showModalContent = false
:
10 | private let animation: Animation?
11 |
12 | func body(content: Content) -> some View {
| `- note: add '@available' attribute to enclosing instance method
13 | // A ZStack isolates the .fullScreenCover trigger from the content view,
14 | // preventing safe area insets from propagating to the content.
:
42 | guard !showModalContent else { return }
43 | guard presentationProxy.isPresented else {
44 | isSheetPresented = false
| |- error: setter for 'isSheetPresented' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
45 | return
46 | }
/Users/admin/builder/spi-builder-workspace/Sources/FullScreenCover/FullScreenCoverModifier.swift:48:25: error: setter for 'showModalContent' is only available in macOS 10.15 or newer
1 | public import SwiftUI
2 |
3 | struct FullScreenCoverModifier<ModalContent: View>: ViewModifier {
| `- note: add '@available' attribute to enclosing generic struct
4 | @State private var isSheetPresented: Bool
5 | @State private var showModalContent = false
:
10 | private let animation: Animation?
11 |
12 | func body(content: Content) -> some View {
| `- note: add '@available' attribute to enclosing instance method
13 | // A ZStack isolates the .fullScreenCover trigger from the content view,
14 | // preventing safe area insets from propagating to the content.
:
46 | }
47 |
48 | showModalContent = true
| |- error: setter for 'showModalContent' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
49 | }
50 | }
/Users/admin/builder/spi-builder-workspace/Sources/FullScreenCover/FullScreenCoverModifier.swift:51:18: error: 'onChange(of:perform:)' is only available in macOS 11.0 or newer
1 | public import SwiftUI
2 |
3 | struct FullScreenCoverModifier<ModalContent: View>: ViewModifier {
| `- note: add '@available' attribute to enclosing generic struct
4 | @State private var isSheetPresented: Bool
5 | @State private var showModalContent = false
:
10 | private let animation: Animation?
11 |
12 | func body(content: Content) -> some View {
| `- note: add '@available' attribute to enclosing instance method
13 | // A ZStack isolates the .fullScreenCover trigger from the content view,
14 | // preventing safe area insets from propagating to the content.
:
49 | }
50 | }
51 | .onChange(of: presentationProxy.isPresented) { newValue in
| |- error: 'onChange(of:perform:)' is only available in macOS 11.0 or newer
| `- note: add 'if #available' version check
52 | if newValue {
53 | // Suppress the native slide-up animation. The custom transition is driven by showModalContent.
/Users/admin/builder/spi-builder-workspace/Sources/FullScreenCover/FullScreenCoverModifier.swift:54:43: error: 'Transaction' is only available in macOS 10.15 or newer
1 | public import SwiftUI
2 |
3 | struct FullScreenCoverModifier<ModalContent: View>: ViewModifier {
| `- note: add '@available' attribute to enclosing generic struct
4 | @State private var isSheetPresented: Bool
5 | @State private var showModalContent = false
:
10 | private let animation: Animation?
11 |
12 | func body(content: Content) -> some View {
| `- note: add '@available' attribute to enclosing instance method
13 | // A ZStack isolates the .fullScreenCover trigger from the content view,
14 | // preventing safe area insets from propagating to the content.
:
52 | if newValue {
53 | // Suppress the native slide-up animation. The custom transition is driven by showModalContent.
54 | var transaction = Transaction()
| |- error: 'Transaction' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
55 | transaction.disablesAnimations = true
56 | withTransaction(transaction) {
/Users/admin/builder/spi-builder-workspace/Sources/FullScreenCover/FullScreenCoverModifier.swift:55:37: error: 'disablesAnimations' is only available in macOS 10.15 or newer
1 | public import SwiftUI
2 |
3 | struct FullScreenCoverModifier<ModalContent: View>: ViewModifier {
| `- note: add '@available' attribute to enclosing generic struct
4 | @State private var isSheetPresented: Bool
5 | @State private var showModalContent = false
:
10 | private let animation: Animation?
11 |
12 | func body(content: Content) -> some View {
| `- note: add '@available' attribute to enclosing instance method
13 | // A ZStack isolates the .fullScreenCover trigger from the content view,
14 | // preventing safe area insets from propagating to the content.
:
53 | // Suppress the native slide-up animation. The custom transition is driven by showModalContent.
54 | var transaction = Transaction()
55 | transaction.disablesAnimations = true
| |- error: 'disablesAnimations' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
56 | withTransaction(transaction) {
57 | isSheetPresented = true
/Users/admin/builder/spi-builder-workspace/Sources/FullScreenCover/FullScreenCoverModifier.swift:56:25: error: 'withTransaction' is only available in macOS 10.15 or newer
1 | public import SwiftUI
2 |
3 | struct FullScreenCoverModifier<ModalContent: View>: ViewModifier {
| `- note: add '@available' attribute to enclosing generic struct
4 | @State private var isSheetPresented: Bool
5 | @State private var showModalContent = false
:
10 | private let animation: Animation?
11 |
12 | func body(content: Content) -> some View {
| `- note: add '@available' attribute to enclosing instance method
13 | // A ZStack isolates the .fullScreenCover trigger from the content view,
14 | // preventing safe area insets from propagating to the content.
:
54 | var transaction = Transaction()
55 | transaction.disablesAnimations = true
56 | withTransaction(transaction) {
| |- error: 'withTransaction' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
57 | isSheetPresented = true
58 | }
/Users/admin/builder/spi-builder-workspace/Sources/FullScreenCover/FullScreenCoverModifier.swift:57:29: error: setter for 'isSheetPresented' is only available in macOS 10.15 or newer
1 | public import SwiftUI
2 |
3 | struct FullScreenCoverModifier<ModalContent: View>: ViewModifier {
| `- note: add '@available' attribute to enclosing generic struct
4 | @State private var isSheetPresented: Bool
5 | @State private var showModalContent = false
:
10 | private let animation: Animation?
11 |
12 | func body(content: Content) -> some View {
| `- note: add '@available' attribute to enclosing instance method
13 | // A ZStack isolates the .fullScreenCover trigger from the content view,
14 | // preventing safe area insets from propagating to the content.
:
55 | transaction.disablesAnimations = true
56 | withTransaction(transaction) {
57 | isSheetPresented = true
| |- error: setter for 'isSheetPresented' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
58 | }
59 | } else {
/Users/admin/builder/spi-builder-workspace/Sources/FullScreenCover/FullScreenCoverModifier.swift:62:29: error: setter for 'isSheetPresented' is only available in macOS 10.15 or newer
1 | public import SwiftUI
2 |
3 | struct FullScreenCoverModifier<ModalContent: View>: ViewModifier {
| `- note: add '@available' attribute to enclosing generic struct
4 | @State private var isSheetPresented: Bool
5 | @State private var showModalContent = false
:
10 | private let animation: Animation?
11 |
12 | func body(content: Content) -> some View {
| `- note: add '@available' attribute to enclosing instance method
13 | // A ZStack isolates the .fullScreenCover trigger from the content view,
14 | // preventing safe area insets from propagating to the content.
:
60 | guard showModalContent else {
61 | // Content never appeared. Close the container directly.
62 | isSheetPresented = false
| |- error: setter for 'isSheetPresented' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
63 | return
64 | }
/Users/admin/builder/spi-builder-workspace/Sources/FullScreenCover/FullScreenCoverModifier.swift:68:25: error: setter for 'showModalContent' is only available in macOS 10.15 or newer
1 | public import SwiftUI
2 |
3 | struct FullScreenCoverModifier<ModalContent: View>: ViewModifier {
| `- note: add '@available' attribute to enclosing generic struct
4 | @State private var isSheetPresented: Bool
5 | @State private var showModalContent = false
:
10 | private let animation: Animation?
11 |
12 | func body(content: Content) -> some View {
| `- note: add '@available' attribute to enclosing instance method
13 | // A ZStack isolates the .fullScreenCover trigger from the content view,
14 | // preventing safe area insets from propagating to the content.
:
66 | // Hide the content first to trigger the custom dismiss animation. Once it finishes,
67 | // onDisappear closes the native container.
68 | showModalContent = false
| |- error: setter for 'showModalContent' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
69 | }
70 | }
/Users/admin/builder/spi-builder-workspace/Sources/FullScreenCover/FullScreenCoverModifier.swift:72:18: error: 'animation(_:value:)' is only available in macOS 10.15 or newer
1 | public import SwiftUI
2 |
3 | struct FullScreenCoverModifier<ModalContent: View>: ViewModifier {
| `- note: add '@available' attribute to enclosing generic struct
4 | @State private var isSheetPresented: Bool
5 | @State private var showModalContent = false
:
10 | private let animation: Animation?
11 |
12 | func body(content: Content) -> some View {
| `- note: add '@available' attribute to enclosing instance method
13 | // A ZStack isolates the .fullScreenCover trigger from the content view,
14 | // preventing safe area insets from propagating to the content.
:
70 | }
71 | // Drives the custom present/dismiss transition inside the fullscreen cover.
72 | .animation(animation, value: showModalContent)
| |- error: 'animation(_:value:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
73 |
74 | content
/Users/admin/builder/spi-builder-workspace/Sources/FullScreenCover/FullScreenCoverModifier.swift:85:9: error: setter for 'presentationProxy' is only available in macOS 10.15 or newer
1 | public import SwiftUI
2 |
3 | struct FullScreenCoverModifier<ModalContent: View>: ViewModifier {
| `- note: add '@available' attribute to enclosing generic struct
4 | @State private var isSheetPresented: Bool
5 | @State private var showModalContent = false
:
76 | }
77 |
78 | init(
| `- note: add '@available' attribute to enclosing initializer
79 | presentationProxy: PresentationProxy,
80 | animation: Animation? = .default,
:
83 | _isSheetPresented = .init(initialValue: presentationProxy.isPresented)
84 |
85 | self.presentationProxy = presentationProxy
| |- error: setter for 'presentationProxy' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
86 | self.animation = animation
87 | self.modalContent = modalContent
/Users/admin/builder/spi-builder-workspace/Sources/FullScreenCover/FullScreenCoverModifier.swift:103:9: error: conformance of 'ModifiedContent<Content, Modifier>' to 'View' is only available in macOS 10.15 or newer
89 | }
90 |
91 | public extension View {
| `- note: add '@available' attribute to enclosing extension
92 | /// Uses a ``PresentationProxy`` to present a modal view that covers as much of the screen as possible.
93 | ///
:
96 | /// - animation: An optional animation for the modal transitions.
97 | /// - content: A closure that returns the content of the modal view.
98 | func fullScreenCover(
| `- note: add '@available' attribute to enclosing instance method
99 | presentation: PresentationProxy,
100 | animation: Animation? = .default,
101 | @ViewBuilder content: @escaping () -> some View
102 | ) -> some View {
103 | modifier(
| |- error: conformance of 'ModifiedContent<Content, Modifier>' to 'View' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
104 | FullScreenCoverModifier(
105 | presentationProxy: presentation,
/Users/admin/builder/spi-builder-workspace/Sources/FullScreenCover/FullScreenCoverModifier.swift:103:9: error: 'modifier' is only available in macOS 10.15 or newer
89 | }
90 |
91 | public extension View {
| `- note: add '@available' attribute to enclosing extension
92 | /// Uses a ``PresentationProxy`` to present a modal view that covers as much of the screen as possible.
93 | ///
:
96 | /// - animation: An optional animation for the modal transitions.
97 | /// - content: A closure that returns the content of the modal view.
98 | func fullScreenCover(
| `- note: add '@available' attribute to enclosing instance method
99 | presentation: PresentationProxy,
100 | animation: Animation? = .default,
101 | @ViewBuilder content: @escaping () -> some View
102 | ) -> some View {
103 | modifier(
| |- error: 'modifier' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
104 | FullScreenCoverModifier(
105 | presentationProxy: presentation,
[10/10] Compiling FullScreenCover AsyncBroadcast.swift
/Users/admin/builder/spi-builder-workspace/Sources/FullScreenCover/AsyncBroadcast.swift:10:39: error: 'CheckedContinuation' is only available in macOS 10.15 or newer
7 | /// are handled automatically. Only the cancelled task is removed.
8 | @MainActor
9 | final class AsyncBroadcast: Sendable {
| `- note: add '@available' attribute to enclosing class
10 | private var continuations: [UUID: CheckedContinuation<Void, any Error>] = [:]
| `- error: 'CheckedContinuation' is only available in macOS 10.15 or newer
11 |
12 | /// Whether there are any tasks currently waiting.
/Users/admin/builder/spi-builder-workspace/Sources/FullScreenCover/AsyncBroadcast.swift:19:43: error: 'CancellationError' is only available in macOS 10.15 or newer
7 | /// are handled automatically. Only the cancelled task is removed.
8 | @MainActor
9 | final class AsyncBroadcast: Sendable {
| `- note: add '@available' attribute to enclosing class
10 | private var continuations: [UUID: CheckedContinuation<Void, any Error>] = [:]
11 |
:
17 | deinit {
18 | for continuation in continuations.values {
19 | continuation.resume(throwing: CancellationError())
| |- error: 'CancellationError' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
20 | }
21 | }
/Users/admin/builder/spi-builder-workspace/Sources/FullScreenCover/AsyncBroadcast.swift:29:19: error: 'withTaskCancellationHandler(operation:onCancel:isolation:)' is only available in macOS 10.15 or newer
7 | /// are handled automatically. Only the cancelled task is removed.
8 | @MainActor
9 | final class AsyncBroadcast: Sendable {
| `- note: add '@available' attribute to enclosing class
10 | private var continuations: [UUID: CheckedContinuation<Void, any Error>] = [:]
11 |
:
25 | /// If the calling task is cancelled while waiting, it is automatically removed
26 | /// and resumed with a `CancellationError`. The transition itself is not affected.
27 | func wait() async throws {
| `- note: add '@available' attribute to enclosing instance method
28 | let id = UUID()
29 | try await withTaskCancellationHandler {
| |- error: 'withTaskCancellationHandler(operation:onCancel:isolation:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
30 | try await withCheckedThrowingContinuation { continuation in
31 | self.continuations[id] = continuation
/Users/admin/builder/spi-builder-workspace/Sources/FullScreenCover/AsyncBroadcast.swift:30:23: error: 'withCheckedThrowingContinuation(isolation:function:_:)' is only available in macOS 10.15 or newer
7 | /// are handled automatically. Only the cancelled task is removed.
8 | @MainActor
9 | final class AsyncBroadcast: Sendable {
| `- note: add '@available' attribute to enclosing class
10 | private var continuations: [UUID: CheckedContinuation<Void, any Error>] = [:]
11 |
:
25 | /// If the calling task is cancelled while waiting, it is automatically removed
26 | /// and resumed with a `CancellationError`. The transition itself is not affected.
27 | func wait() async throws {
| `- note: add '@available' attribute to enclosing instance method
28 | let id = UUID()
29 | try await withTaskCancellationHandler {
30 | try await withCheckedThrowingContinuation { continuation in
| |- error: 'withCheckedThrowingContinuation(isolation:function:_:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
31 | self.continuations[id] = continuation
32 | }
/Users/admin/builder/spi-builder-workspace/Sources/FullScreenCover/AsyncBroadcast.swift:34:13: error: 'Task' is only available in macOS 10.15 or newer
7 | /// are handled automatically. Only the cancelled task is removed.
8 | @MainActor
9 | final class AsyncBroadcast: Sendable {
| `- note: add '@available' attribute to enclosing class
10 | private var continuations: [UUID: CheckedContinuation<Void, any Error>] = [:]
11 |
:
25 | /// If the calling task is cancelled while waiting, it is automatically removed
26 | /// and resumed with a `CancellationError`. The transition itself is not affected.
27 | func wait() async throws {
| `- note: add '@available' attribute to enclosing instance method
28 | let id = UUID()
29 | try await withTaskCancellationHandler {
:
32 | }
33 | } onCancel: {
34 | Task { @MainActor in
| |- error: 'Task' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
35 | cancelContinuation(id: id)
36 | }
/Users/admin/builder/spi-builder-workspace/Sources/FullScreenCover/AsyncBroadcast.swift:34:13: error: 'init(name:priority:operation:)' is only available in macOS 10.15 or newer
7 | /// are handled automatically. Only the cancelled task is removed.
8 | @MainActor
9 | final class AsyncBroadcast: Sendable {
| `- note: add '@available' attribute to enclosing class
10 | private var continuations: [UUID: CheckedContinuation<Void, any Error>] = [:]
11 |
:
25 | /// If the calling task is cancelled while waiting, it is automatically removed
26 | /// and resumed with a `CancellationError`. The transition itself is not affected.
27 | func wait() async throws {
| `- note: add '@available' attribute to enclosing instance method
28 | let id = UUID()
29 | try await withTaskCancellationHandler {
:
32 | }
33 | } onCancel: {
34 | Task { @MainActor in
| |- error: 'init(name:priority:operation:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
35 | cancelContinuation(id: id)
36 | }
/Users/admin/builder/spi-builder-workspace/Sources/FullScreenCover/AsyncBroadcast.swift:30:56: error: 'isolation()' is only available in macOS 10.15 or newer
`- /Users/admin/builder/spi-builder-workspace/Sources/FullScreenCover/AsyncBroadcast.swift:30:55: note: expanded code originates here
7 | /// are handled automatically. Only the cancelled task is removed.
8 | @MainActor
9 | final class AsyncBroadcast: Sendable {
| `- note: add '@available' attribute to enclosing class
10 | private var continuations: [UUID: CheckedContinuation<Void, any Error>] = [:]
11 |
:
25 | /// If the calling task is cancelled while waiting, it is automatically removed
26 | /// and resumed with a `CancellationError`. The transition itself is not affected.
27 | func wait() async throws {
| `- note: add '@available' attribute to enclosing instance method
28 | let id = UUID()
29 | try await withTaskCancellationHandler {
30 | try await withCheckedThrowingContinuation { continuation in
+--- /Users/admin/builder/spi-builder-workspace/Sources/FullScreenCover/AsyncBroadcast.swift
|28 |
|29 |
|30 | #isolation
| | `- error: 'isolation()' is only available in macOS 10.15 or newer
+--------------------------------------------------------------------------------------------
31 | self.continuations[id] = continuation
32 | }
/Users/admin/builder/spi-builder-workspace/Sources/FullScreenCover/AsyncBroadcast.swift:29:48: error: 'isolation()' is only available in macOS 10.15 or newer
`- /Users/admin/builder/spi-builder-workspace/Sources/FullScreenCover/AsyncBroadcast.swift:29:47: note: expanded code originates here
7 | /// are handled automatically. Only the cancelled task is removed.
8 | @MainActor
9 | final class AsyncBroadcast: Sendable {
| `- note: add '@available' attribute to enclosing class
10 | private var continuations: [UUID: CheckedContinuation<Void, any Error>] = [:]
11 |
:
25 | /// If the calling task is cancelled while waiting, it is automatically removed
26 | /// and resumed with a `CancellationError`. The transition itself is not affected.
27 | func wait() async throws {
| `- note: add '@available' attribute to enclosing instance method
28 | let id = UUID()
29 | try await withTaskCancellationHandler {
+--- /Users/admin/builder/spi-builder-workspace/Sources/FullScreenCover/AsyncBroadcast.swift
|27 |
|28 |
|29 | #isolation
| | `- error: 'isolation()' is only available in macOS 10.15 or newer
+--------------------------------------------------------------------------------------------
30 | try await withCheckedThrowingContinuation { continuation in
31 | self.continuations[id] = continuation
/Users/admin/builder/spi-builder-workspace/Sources/FullScreenCover/AsyncBroadcast.swift:46:26: error: 'resume()' is only available in macOS 10.15 or newer
7 | /// are handled automatically. Only the cancelled task is removed.
8 | @MainActor
9 | final class AsyncBroadcast: Sendable {
| `- note: add '@available' attribute to enclosing class
10 | private var continuations: [UUID: CheckedContinuation<Void, any Error>] = [:]
11 |
:
39 |
40 | /// Resumes all waiting tasks successfully.
41 | func resumeAll() {
| `- note: add '@available' attribute to enclosing instance method
42 | let snapshot = continuations
43 | continuations = [:]
44 |
45 | for continuation in snapshot.values {
46 | continuation.resume()
| |- error: 'resume()' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
47 | }
48 | }
/Users/admin/builder/spi-builder-workspace/Sources/FullScreenCover/AsyncBroadcast.swift:56:43: error: 'CancellationError' is only available in macOS 10.15 or newer
7 | /// are handled automatically. Only the cancelled task is removed.
8 | @MainActor
9 | final class AsyncBroadcast: Sendable {
| `- note: add '@available' attribute to enclosing class
10 | private var continuations: [UUID: CheckedContinuation<Void, any Error>] = [:]
11 |
:
49 |
50 | /// Cancels all waiting tasks with a `CancellationError`.
51 | func cancelAll() {
| `- note: add '@available' attribute to enclosing instance method
52 | let snapshot = continuations
53 | continuations = [:]
54 |
55 | for continuation in snapshot.values {
56 | continuation.resume(throwing: CancellationError())
| |- error: 'CancellationError' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
57 | }
58 | }
/Users/admin/builder/spi-builder-workspace/Sources/FullScreenCover/AsyncBroadcast.swift:66:39: error: 'CancellationError' is only available in macOS 10.15 or newer
59 | }
60 |
61 | private extension AsyncBroadcast {
| `- note: add '@available' attribute to enclosing extension
62 | func cancelContinuation(id: UUID) {
| `- note: add '@available' attribute to enclosing instance method
63 | guard let continuation = continuations.removeValue(forKey: id) else {
64 | return
65 | }
66 | continuation.resume(throwing: CancellationError())
| |- error: 'CancellationError' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
67 | }
68 | }
BUILD FAILURE 6.3 macosSpm