Build Information
Failed to build ModalPresentationView, reference 0.1.0 (c1e1ca
), with Swift 6.0 for macOS (SPM) on 31 Oct 2024 09:53:44 UTC.
Build Command
env DEVELOPER_DIR=/Applications/Xcode-16.1.0.app xcrun swift build --arch arm64 -Xswiftc -Xfrontend -Xswiftc -stats-output-dir -Xswiftc -Xfrontend -Xswiftc .stats -Xswiftc -strict-concurrency=complete
Build Log
========================================
RunAll
========================================
Builder version: 4.56.0
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/thoughtbot/modalpresentationview.git
Reference: 0.1.0
Initialized empty Git repository in /Users/admin/builder/spi-builder-workspace/.git/
From https://github.com/thoughtbot/modalpresentationview
* tag 0.1.0 -> FETCH_HEAD
HEAD is now at c1e1ca1 Add .swift-version
Cloned https://github.com/thoughtbot/modalpresentationview.git
Revision (git rev-parse @):
c1e1ca1fe990a667ca71c5e3cebeafaef038fcf6
SUCCESS checkout https://github.com/thoughtbot/modalpresentationview.git at 0.1.0
========================================
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",
"dependencies": [
{
"identity": "modalpresentationview",
"name": "ModalPresentationView",
"url": "https://github.com/thoughtbot/modalpresentationview.git",
"version": "unspecified",
"path": "/Users/admin/builder/spi-builder-workspace/.resolve-product-dependencies/.build/checkouts/modalpresentationview",
"dependencies": [
]
}
]
}
Fetching https://github.com/thoughtbot/modalpresentationview.git
[1/28] Fetching modalpresentationview
Fetched https://github.com/thoughtbot/modalpresentationview.git from cache (1.36s)
Creating working copy for https://github.com/thoughtbot/modalpresentationview.git
Working copy of https://github.com/thoughtbot/modalpresentationview.git resolved at 0.1.0 (c1e1ca1)
warning: '.resolve-product-dependencies': dependency 'modalpresentationview' is not used by any target
Found 0 product dependencies
========================================
Build
========================================
Selected platform: macosSpm
Swift version: 6.0
Building package at path: $PWD
https://github.com/thoughtbot/modalpresentationview.git
Running build ...
env DEVELOPER_DIR=/Applications/Xcode-16.1.0.app xcrun swift build --arch arm64 -Xswiftc -Xfrontend -Xswiftc -stats-output-dir -Xswiftc -Xfrontend -Xswiftc .stats -Xswiftc -strict-concurrency=complete
Building for debugging...
[0/2] Write sources
[1/2] Write swift-version--7754E27361AE5C74.txt
error: emit-module command failed with exit code 1 (use -v to see invocation)
[3/7] Emitting module ModalPresentationView
/Users/admin/builder/spi-builder-workspace/Sources/ModalPresentationView/EnvironmentKeys.swift:12:29: error: 'AnyView' is only available in macOS 10.15 or newer
9 | }
10 |
11 | enum ModalPresentationActionKey: EnvironmentKey {
| `- note: add @available attribute to enclosing enum
12 | static var defaultValue: (AnyView) -> Void {
| | `- error: 'AnyView' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing static property
13 | { _ in
14 | assertionFailure("ModalPresentationButton action triggered outside a ModalPresentationView")
/Users/admin/builder/spi-builder-workspace/Sources/ModalPresentationView/EnvironmentKeys.swift:25:33: error: 'AnyView' is only available in macOS 10.15 or newer
17 | }
18 |
19 | extension EnvironmentValues {
| `- note: add @available attribute to enclosing extension
20 | var modalDismissAction: () -> Void {
21 | get { self[ModalDismissActionKey.self] }
:
23 | }
24 |
25 | var modalPresentationAction: (AnyView) -> Void {
| | `- error: 'AnyView' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing property
26 | get { self[ModalPresentationActionKey.self] }
27 | set { self[ModalPresentationActionKey.self] = newValue }
/Users/admin/builder/spi-builder-workspace/Sources/ModalPresentationView/EnvironmentKeys.swift:19:11: error: 'EnvironmentValues' is only available in macOS 10.15 or newer
17 | }
18 |
19 | extension EnvironmentValues {
| | `- error: 'EnvironmentValues' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing extension
20 | var modalDismissAction: () -> Void {
21 | get { self[ModalDismissActionKey.self] }
/Users/admin/builder/spi-builder-workspace/Sources/ModalPresentationView/ModalDismissButton.swift:3:32: error: 'Modified' is not a member type of struct 'SwiftUICore.Image'
1 | import SwiftUI
2 |
3 | typealias _ScaledImage = Image.Modified<_EnvironmentKeyWritingModifier<Image.Scale>>
| `- error: 'Modified' is not a member type of struct 'SwiftUICore.Image'
4 |
5 | /// Use `ModalDismissButton` from within a modal presentation to provide a user
SwiftUICore.Image:2:23: note: 'Image' declared here
1 | @available(iOS 13.0, macOS 10.15, tvOS 13.0, watchOS 6.0, *)
2 | @frozen public struct Image : Equatable, Sendable {
| `- note: 'Image' declared here
3 | public static func == (lhs: Image, rhs: Image) -> Bool
4 | }
/Users/admin/builder/spi-builder-workspace/Sources/ModalPresentationView/ModalDismissButton.swift:16:4: error: 'Environment' is only available in macOS 10.15 or newer
13 | /// - Note: Interacting with a `ModalDismissButton` from outside a modal
14 | /// presentation triggers an assertion failure.
15 | public struct ModalDismissButton<Label: View>: View {
| `- note: add @available attribute to enclosing generic struct
16 | @Environment(\.modalDismissAction) private var dismiss
| `- error: 'Environment' is only available in macOS 10.15 or newer
17 |
18 | private let label: Label
/Users/admin/builder/spi-builder-workspace/Sources/ModalPresentationView/ModalDismissButton.swift:21:16: error: 'ViewBuilder' is only available in macOS 10.15 or newer
13 | /// - Note: Interacting with a `ModalDismissButton` from outside a modal
14 | /// presentation triggers an assertion failure.
15 | public struct ModalDismissButton<Label: View>: View {
| `- note: add @available attribute to enclosing generic struct
16 | @Environment(\.modalDismissAction) private var dismiss
17 |
:
19 |
20 | /// Create a `ModalDismissButton` with a custom label.
21 | public init(@ViewBuilder _ label: () -> Label) {
| | `- error: 'ViewBuilder' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing initializer
22 | self.label = label()
23 | }
/Users/admin/builder/spi-builder-workspace/Sources/ModalPresentationView/ModalDismissButton.swift:25:25: error: 'View' is only available in macOS 10.15 or newer
13 | /// - Note: Interacting with a `ModalDismissButton` from outside a modal
14 | /// presentation triggers an assertion failure.
15 | public struct ModalDismissButton<Label: View>: View {
| `- note: add @available attribute to enclosing generic struct
16 | @Environment(\.modalDismissAction) private var dismiss
17 |
:
23 | }
24 |
25 | public var body: some View {
| | `- error: 'View' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing property
26 | Button(action: dismiss) {
27 | label
/Users/admin/builder/spi-builder-workspace/Sources/ModalPresentationView/ModalDismissButton.swift:15:41: error: 'View' is only available in macOS 10.15 or newer
13 | /// - Note: Interacting with a `ModalDismissButton` from outside a modal
14 | /// presentation triggers an assertion failure.
15 | public struct ModalDismissButton<Label: View>: View {
| | `- error: 'View' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing generic struct
16 | @Environment(\.modalDismissAction) private var dismiss
17 |
/Users/admin/builder/spi-builder-workspace/Sources/ModalPresentationView/ModalPresentationButton.swift:7:4: error: 'Environment' is only available in macOS 10.15 or newer
4 | /// full-screen. Like `NavigationButton`, the modal presentation button also
5 | /// defines the destination content to be presented.
6 | public struct ModalPresentationButton<Destination: View, Label: View>: View {
| `- note: add @available attribute to enclosing generic struct
7 | @Environment(\.modalPresentationAction) private var _present
| `- error: 'Environment' is only available in macOS 10.15 or newer
8 |
9 | private let destination: Destination
/Users/admin/builder/spi-builder-workspace/Sources/ModalPresentationView/ModalPresentationButton.swift:18:42: error: 'ViewBuilder' is only available in macOS 10.15 or newer
4 | /// full-screen. Like `NavigationButton`, the modal presentation button also
5 | /// defines the destination content to be presented.
6 | public struct ModalPresentationButton<Destination: View, Label: View>: View {
| `- note: add @available attribute to enclosing generic struct
7 | @Environment(\.modalPresentationAction) private var _present
8 |
:
16 | /// - destination: The destination content to be presented full screen.
17 | /// - label: The content for the button's label.
18 | public init(destination: Destination, @ViewBuilder _ label: () -> Label) {
| | `- error: 'ViewBuilder' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing initializer
19 | self.destination = destination
20 | self.label = label()
/Users/admin/builder/spi-builder-workspace/Sources/ModalPresentationView/ModalPresentationButton.swift:23:25: error: 'View' is only available in macOS 10.15 or newer
4 | /// full-screen. Like `NavigationButton`, the modal presentation button also
5 | /// defines the destination content to be presented.
6 | public struct ModalPresentationButton<Destination: View, Label: View>: View {
| `- note: add @available attribute to enclosing generic struct
7 | @Environment(\.modalPresentationAction) private var _present
8 |
:
21 | }
22 |
23 | public var body: some View {
| | `- error: 'View' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing property
24 | Button(action: present) {
25 | label
/Users/admin/builder/spi-builder-workspace/Sources/ModalPresentationView/ModalPresentationButton.swift:6:52: error: 'View' is only available in macOS 10.15 or newer
4 | /// full-screen. Like `NavigationButton`, the modal presentation button also
5 | /// defines the destination content to be presented.
6 | public struct ModalPresentationButton<Destination: View, Label: View>: View {
| | `- error: 'View' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing generic struct
7 | @Environment(\.modalPresentationAction) private var _present
8 |
/Users/admin/builder/spi-builder-workspace/Sources/ModalPresentationView/ModalPresentationButton.swift:6:65: error: 'View' is only available in macOS 10.15 or newer
4 | /// full-screen. Like `NavigationButton`, the modal presentation button also
5 | /// defines the destination content to be presented.
6 | public struct ModalPresentationButton<Destination: View, Label: View>: View {
| | `- error: 'View' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing generic struct
7 | @Environment(\.modalPresentationAction) private var _present
8 |
/Users/admin/builder/spi-builder-workspace/Sources/ModalPresentationView/ModalPresentationView.swift:8:37: error: 'AnyView' is only available in macOS 10.15 or newer
5 | /// modal content. Use `ModalDismissButton` from inside the modal presentation
6 | /// in order to dismiss the full screen content.
7 | public struct ModalPresentationView<Content: View>: View {
| `- note: add @available attribute to enclosing generic struct
8 | @State private var presentedView: AnyView? = nil
| `- error: 'AnyView' is only available in macOS 10.15 or newer
9 |
10 | private let content: Content
/Users/admin/builder/spi-builder-workspace/Sources/ModalPresentationView/ModalPresentationView.swift:8:4: error: 'State' is only available in macOS 10.15 or newer
5 | /// modal content. Use `ModalDismissButton` from inside the modal presentation
6 | /// in order to dismiss the full screen content.
7 | public struct ModalPresentationView<Content: View>: View {
| `- note: add @available attribute to enclosing generic struct
8 | @State private var presentedView: AnyView? = nil
| `- error: 'State' is only available in macOS 10.15 or newer
9 |
10 | private let content: Content
/Users/admin/builder/spi-builder-workspace/Sources/ModalPresentationView/ModalPresentationView.swift:14:16: error: 'ViewBuilder' is only available in macOS 10.15 or newer
5 | /// modal content. Use `ModalDismissButton` from inside the modal presentation
6 | /// in order to dismiss the full screen content.
7 | public struct ModalPresentationView<Content: View>: View {
| `- note: add @available attribute to enclosing generic struct
8 | @State private var presentedView: AnyView? = nil
9 |
:
12 | /// Create a `ModalPresentationView` that defines the context for presenting
13 | /// content full-screen.
14 | public init(@ViewBuilder _ content: () -> Content) {
| | `- error: 'ViewBuilder' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing initializer
15 | self.content = content()
16 | }
/Users/admin/builder/spi-builder-workspace/Sources/ModalPresentationView/ModalPresentationView.swift:18:25: error: 'View' is only available in macOS 10.15 or newer
5 | /// modal content. Use `ModalDismissButton` from inside the modal presentation
6 | /// in order to dismiss the full screen content.
7 | public struct ModalPresentationView<Content: View>: View {
| `- note: add @available attribute to enclosing generic struct
8 | @State private var presentedView: AnyView? = nil
9 |
:
16 | }
17 |
18 | public var body: some View {
| | `- error: 'View' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing property
19 | content
20 | .environment(\.modalPresentationAction, present)
/Users/admin/builder/spi-builder-workspace/Sources/ModalPresentationView/ModalPresentationView.swift:24:22: error: cannot find type 'Modal' in scope
22 | }
23 |
24 | private var modal: Modal? {
| `- error: cannot find type 'Modal' in scope
25 | guard let presentedView = presentedView else { return nil }
26 | return Modal(
/Users/admin/builder/spi-builder-workspace/Sources/ModalPresentationView/ModalPresentationView.swift:32:32: error: 'AnyView' is only available in macOS 10.15 or newer
5 | /// modal content. Use `ModalDismissButton` from inside the modal presentation
6 | /// in order to dismiss the full screen content.
7 | public struct ModalPresentationView<Content: View>: View {
| `- note: add @available attribute to enclosing generic struct
8 | @State private var presentedView: AnyView? = nil
9 |
:
30 | }
31 |
32 | private func present(_ view: AnyView) {
| | `- error: 'AnyView' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing instance method
33 | presentedView = view
34 | }
/Users/admin/builder/spi-builder-workspace/Sources/ModalPresentationView/ModalPresentationView.swift:7:46: error: 'View' is only available in macOS 10.15 or newer
5 | /// modal content. Use `ModalDismissButton` from inside the modal presentation
6 | /// in order to dismiss the full screen content.
7 | public struct ModalPresentationView<Content: View>: View {
| | `- error: 'View' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing generic struct
8 | @State private var presentedView: AnyView? = nil
9 |
[4/7] Compiling ModalPresentationView ModalDismissButton.swift
/Users/admin/builder/spi-builder-workspace/Sources/ModalPresentationView/ModalDismissButton.swift:3:32: error: 'Modified' is not a member type of struct 'SwiftUICore.Image'
1 | import SwiftUI
2 |
3 | typealias _ScaledImage = Image.Modified<_EnvironmentKeyWritingModifier<Image.Scale>>
| `- error: 'Modified' is not a member type of struct 'SwiftUICore.Image'
4 |
5 | /// Use `ModalDismissButton` from within a modal presentation to provide a user
SwiftUICore.Image:2:23: note: 'Image' declared here
1 | @available(iOS 13.0, macOS 10.15, tvOS 13.0, watchOS 6.0, *)
2 | @frozen public struct Image : Equatable, Sendable {
| `- note: 'Image' declared here
3 | public static func == (lhs: Image, rhs: Image) -> Bool
4 | }
/Users/admin/builder/spi-builder-workspace/Sources/ModalPresentationView/ModalDismissButton.swift:16:4: error: 'Environment' is only available in macOS 10.15 or newer
13 | /// - Note: Interacting with a `ModalDismissButton` from outside a modal
14 | /// presentation triggers an assertion failure.
15 | public struct ModalDismissButton<Label: View>: View {
| `- note: add @available attribute to enclosing generic struct
16 | @Environment(\.modalDismissAction) private var dismiss
| `- error: 'Environment' is only available in macOS 10.15 or newer
17 |
18 | private let label: Label
/Users/admin/builder/spi-builder-workspace/Sources/ModalPresentationView/ModalDismissButton.swift:21:16: error: 'ViewBuilder' is only available in macOS 10.15 or newer
13 | /// - Note: Interacting with a `ModalDismissButton` from outside a modal
14 | /// presentation triggers an assertion failure.
15 | public struct ModalDismissButton<Label: View>: View {
| `- note: add @available attribute to enclosing generic struct
16 | @Environment(\.modalDismissAction) private var dismiss
17 |
:
19 |
20 | /// Create a `ModalDismissButton` with a custom label.
21 | public init(@ViewBuilder _ label: () -> Label) {
| | `- error: 'ViewBuilder' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing initializer
22 | self.label = label()
23 | }
/Users/admin/builder/spi-builder-workspace/Sources/ModalPresentationView/ModalDismissButton.swift:25:25: error: 'View' is only available in macOS 10.15 or newer
13 | /// - Note: Interacting with a `ModalDismissButton` from outside a modal
14 | /// presentation triggers an assertion failure.
15 | public struct ModalDismissButton<Label: View>: View {
| `- note: add @available attribute to enclosing generic struct
16 | @Environment(\.modalDismissAction) private var dismiss
17 |
:
23 | }
24 |
25 | public var body: some View {
| | `- error: 'View' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing property
26 | Button(action: dismiss) {
27 | label
/Users/admin/builder/spi-builder-workspace/Sources/ModalPresentationView/ModalDismissButton.swift:15:41: error: 'View' is only available in macOS 10.15 or newer
13 | /// - Note: Interacting with a `ModalDismissButton` from outside a modal
14 | /// presentation triggers an assertion failure.
15 | public struct ModalDismissButton<Label: View>: View {
| | `- error: 'View' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing generic struct
16 | @Environment(\.modalDismissAction) private var dismiss
17 |
/Users/admin/builder/spi-builder-workspace/Sources/ModalPresentationView/ModalDismissButton.swift:26:5: error: 'Button' is only available in macOS 10.15 or newer
13 | /// - Note: Interacting with a `ModalDismissButton` from outside a modal
14 | /// presentation triggers an assertion failure.
15 | public struct ModalDismissButton<Label: View>: View {
| `- note: add @available attribute to enclosing generic struct
16 | @Environment(\.modalDismissAction) private var dismiss
17 |
:
23 | }
24 |
25 | public var body: some View {
| `- note: add @available attribute to enclosing property
26 | Button(action: dismiss) {
| |- error: 'Button' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
27 | label
28 | }
[5/7] Compiling ModalPresentationView ModalPresentationView.swift
/Users/admin/builder/spi-builder-workspace/Sources/ModalPresentationView/ModalPresentationView.swift:8:37: error: 'AnyView' is only available in macOS 10.15 or newer
5 | /// modal content. Use `ModalDismissButton` from inside the modal presentation
6 | /// in order to dismiss the full screen content.
7 | public struct ModalPresentationView<Content: View>: View {
| `- note: add @available attribute to enclosing generic struct
8 | @State private var presentedView: AnyView? = nil
| `- error: 'AnyView' is only available in macOS 10.15 or newer
9 |
10 | private let content: Content
/Users/admin/builder/spi-builder-workspace/Sources/ModalPresentationView/ModalPresentationView.swift:8:4: error: 'State' is only available in macOS 10.15 or newer
5 | /// modal content. Use `ModalDismissButton` from inside the modal presentation
6 | /// in order to dismiss the full screen content.
7 | public struct ModalPresentationView<Content: View>: View {
| `- note: add @available attribute to enclosing generic struct
8 | @State private var presentedView: AnyView? = nil
| `- error: 'State' is only available in macOS 10.15 or newer
9 |
10 | private let content: Content
/Users/admin/builder/spi-builder-workspace/Sources/ModalPresentationView/ModalPresentationView.swift:14:16: error: 'ViewBuilder' is only available in macOS 10.15 or newer
5 | /// modal content. Use `ModalDismissButton` from inside the modal presentation
6 | /// in order to dismiss the full screen content.
7 | public struct ModalPresentationView<Content: View>: View {
| `- note: add @available attribute to enclosing generic struct
8 | @State private var presentedView: AnyView? = nil
9 |
:
12 | /// Create a `ModalPresentationView` that defines the context for presenting
13 | /// content full-screen.
14 | public init(@ViewBuilder _ content: () -> Content) {
| | `- error: 'ViewBuilder' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing initializer
15 | self.content = content()
16 | }
/Users/admin/builder/spi-builder-workspace/Sources/ModalPresentationView/ModalPresentationView.swift:18:25: error: 'View' is only available in macOS 10.15 or newer
5 | /// modal content. Use `ModalDismissButton` from inside the modal presentation
6 | /// in order to dismiss the full screen content.
7 | public struct ModalPresentationView<Content: View>: View {
| `- note: add @available attribute to enclosing generic struct
8 | @State private var presentedView: AnyView? = nil
9 |
:
16 | }
17 |
18 | public var body: some View {
| | `- error: 'View' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing property
19 | content
20 | .environment(\.modalPresentationAction, present)
/Users/admin/builder/spi-builder-workspace/Sources/ModalPresentationView/ModalPresentationView.swift:24:22: error: cannot find type 'Modal' in scope
22 | }
23 |
24 | private var modal: Modal? {
| `- error: cannot find type 'Modal' in scope
25 | guard let presentedView = presentedView else { return nil }
26 | return Modal(
/Users/admin/builder/spi-builder-workspace/Sources/ModalPresentationView/ModalPresentationView.swift:32:32: error: 'AnyView' is only available in macOS 10.15 or newer
5 | /// modal content. Use `ModalDismissButton` from inside the modal presentation
6 | /// in order to dismiss the full screen content.
7 | public struct ModalPresentationView<Content: View>: View {
| `- note: add @available attribute to enclosing generic struct
8 | @State private var presentedView: AnyView? = nil
9 |
:
30 | }
31 |
32 | private func present(_ view: AnyView) {
| | `- error: 'AnyView' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing instance method
33 | presentedView = view
34 | }
/Users/admin/builder/spi-builder-workspace/Sources/ModalPresentationView/ModalPresentationView.swift:7:46: error: 'View' is only available in macOS 10.15 or newer
5 | /// modal content. Use `ModalDismissButton` from inside the modal presentation
6 | /// in order to dismiss the full screen content.
7 | public struct ModalPresentationView<Content: View>: View {
| | `- error: 'View' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing generic struct
8 | @State private var presentedView: AnyView? = nil
9 |
/Users/admin/builder/spi-builder-workspace/Sources/ModalPresentationView/ModalPresentationView.swift:21:8: error: value of type 'some View' has no member 'presentation'
19 | content
20 | .environment(\.modalPresentationAction, present)
21 | .presentation(modal)
| `- error: value of type 'some View' has no member 'presentation'
22 | }
23 |
/Users/admin/builder/spi-builder-workspace/Sources/ModalPresentationView/ModalPresentationView.swift:33:5: error: setter for 'presentedView' is only available in macOS 10.15 or newer
5 | /// modal content. Use `ModalDismissButton` from inside the modal presentation
6 | /// in order to dismiss the full screen content.
7 | public struct ModalPresentationView<Content: View>: View {
| `- note: add @available attribute to enclosing generic struct
8 | @State private var presentedView: AnyView? = nil
9 |
:
30 | }
31 |
32 | private func present(_ view: AnyView) {
| `- note: add @available attribute to enclosing instance method
33 | presentedView = view
| |- error: setter for 'presentedView' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
34 | }
35 |
/Users/admin/builder/spi-builder-workspace/Sources/ModalPresentationView/ModalPresentationView.swift:37:5: error: setter for 'presentedView' is only available in macOS 10.15 or newer
5 | /// modal content. Use `ModalDismissButton` from inside the modal presentation
6 | /// in order to dismiss the full screen content.
7 | public struct ModalPresentationView<Content: View>: View {
| `- note: add @available attribute to enclosing generic struct
8 | @State private var presentedView: AnyView? = nil
9 |
:
34 | }
35 |
36 | private func dismiss() {
| `- note: add @available attribute to enclosing instance method
37 | presentedView = nil
| |- error: setter for 'presentedView' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
38 | }
39 | }
[6/7] Compiling ModalPresentationView ModalPresentationButton.swift
/Users/admin/builder/spi-builder-workspace/Sources/ModalPresentationView/ModalPresentationButton.swift:7:4: error: 'Environment' is only available in macOS 10.15 or newer
4 | /// full-screen. Like `NavigationButton`, the modal presentation button also
5 | /// defines the destination content to be presented.
6 | public struct ModalPresentationButton<Destination: View, Label: View>: View {
| `- note: add @available attribute to enclosing generic struct
7 | @Environment(\.modalPresentationAction) private var _present
| `- error: 'Environment' is only available in macOS 10.15 or newer
8 |
9 | private let destination: Destination
/Users/admin/builder/spi-builder-workspace/Sources/ModalPresentationView/ModalPresentationButton.swift:18:42: error: 'ViewBuilder' is only available in macOS 10.15 or newer
4 | /// full-screen. Like `NavigationButton`, the modal presentation button also
5 | /// defines the destination content to be presented.
6 | public struct ModalPresentationButton<Destination: View, Label: View>: View {
| `- note: add @available attribute to enclosing generic struct
7 | @Environment(\.modalPresentationAction) private var _present
8 |
:
16 | /// - destination: The destination content to be presented full screen.
17 | /// - label: The content for the button's label.
18 | public init(destination: Destination, @ViewBuilder _ label: () -> Label) {
| | `- error: 'ViewBuilder' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing initializer
19 | self.destination = destination
20 | self.label = label()
/Users/admin/builder/spi-builder-workspace/Sources/ModalPresentationView/ModalPresentationButton.swift:23:25: error: 'View' is only available in macOS 10.15 or newer
4 | /// full-screen. Like `NavigationButton`, the modal presentation button also
5 | /// defines the destination content to be presented.
6 | public struct ModalPresentationButton<Destination: View, Label: View>: View {
| `- note: add @available attribute to enclosing generic struct
7 | @Environment(\.modalPresentationAction) private var _present
8 |
:
21 | }
22 |
23 | public var body: some View {
| | `- error: 'View' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing property
24 | Button(action: present) {
25 | label
/Users/admin/builder/spi-builder-workspace/Sources/ModalPresentationView/ModalPresentationButton.swift:6:52: error: 'View' is only available in macOS 10.15 or newer
4 | /// full-screen. Like `NavigationButton`, the modal presentation button also
5 | /// defines the destination content to be presented.
6 | public struct ModalPresentationButton<Destination: View, Label: View>: View {
| | `- error: 'View' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing generic struct
7 | @Environment(\.modalPresentationAction) private var _present
8 |
/Users/admin/builder/spi-builder-workspace/Sources/ModalPresentationView/ModalPresentationButton.swift:6:65: error: 'View' is only available in macOS 10.15 or newer
4 | /// full-screen. Like `NavigationButton`, the modal presentation button also
5 | /// defines the destination content to be presented.
6 | public struct ModalPresentationButton<Destination: View, Label: View>: View {
| | `- error: 'View' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing generic struct
7 | @Environment(\.modalPresentationAction) private var _present
8 |
/Users/admin/builder/spi-builder-workspace/Sources/ModalPresentationView/ModalPresentationButton.swift:24:5: error: 'Button' is only available in macOS 10.15 or newer
4 | /// full-screen. Like `NavigationButton`, the modal presentation button also
5 | /// defines the destination content to be presented.
6 | public struct ModalPresentationButton<Destination: View, Label: View>: View {
| `- note: add @available attribute to enclosing generic struct
7 | @Environment(\.modalPresentationAction) private var _present
8 |
:
21 | }
22 |
23 | public var body: some View {
| `- note: add @available attribute to enclosing property
24 | Button(action: present) {
| |- error: 'Button' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
25 | label
26 | }
/Users/admin/builder/spi-builder-workspace/Sources/ModalPresentationView/ModalPresentationButton.swift:30:14: error: 'AnyView' is only available in macOS 10.15 or newer
4 | /// full-screen. Like `NavigationButton`, the modal presentation button also
5 | /// defines the destination content to be presented.
6 | public struct ModalPresentationButton<Destination: View, Label: View>: View {
| `- note: add @available attribute to enclosing generic struct
7 | @Environment(\.modalPresentationAction) private var _present
8 |
:
27 | }
28 |
29 | private func present() {
| `- note: add @available attribute to enclosing instance method
30 | _present(AnyView(destination))
| |- error: 'AnyView' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
31 | }
32 | }
[7/7] Compiling ModalPresentationView EnvironmentKeys.swift
/Users/admin/builder/spi-builder-workspace/Sources/ModalPresentationView/EnvironmentKeys.swift:12:29: error: 'AnyView' is only available in macOS 10.15 or newer
9 | }
10 |
11 | enum ModalPresentationActionKey: EnvironmentKey {
| `- note: add @available attribute to enclosing enum
12 | static var defaultValue: (AnyView) -> Void {
| | `- error: 'AnyView' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing static property
13 | { _ in
14 | assertionFailure("ModalPresentationButton action triggered outside a ModalPresentationView")
/Users/admin/builder/spi-builder-workspace/Sources/ModalPresentationView/EnvironmentKeys.swift:25:33: error: 'AnyView' is only available in macOS 10.15 or newer
17 | }
18 |
19 | extension EnvironmentValues {
| `- note: add @available attribute to enclosing extension
20 | var modalDismissAction: () -> Void {
21 | get { self[ModalDismissActionKey.self] }
:
23 | }
24 |
25 | var modalPresentationAction: (AnyView) -> Void {
| | `- error: 'AnyView' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing property
26 | get { self[ModalPresentationActionKey.self] }
27 | set { self[ModalPresentationActionKey.self] = newValue }
/Users/admin/builder/spi-builder-workspace/Sources/ModalPresentationView/EnvironmentKeys.swift:19:11: error: 'EnvironmentValues' is only available in macOS 10.15 or newer
17 | }
18 |
19 | extension EnvironmentValues {
| | `- error: 'EnvironmentValues' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing extension
20 | var modalDismissAction: () -> Void {
21 | get { self[ModalDismissActionKey.self] }
BUILD FAILURE 6.0 macosSpm