Build Information
Failed to build ModalPresentationView with Swift 5.9 for macOS (SPM).
Build Command
Build command unavailable
Build Log
========================================
RunAll
========================================
Builder version: 4.27.1
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/thoughtbot/modalpresentationview.git
Reference: master
Initialized empty Git repository in /Users/admin/builds/h8344Zi3/1/finestructure/swiftpackageindex-builder/spi-builder-workspace/.git/
From https://github.com/thoughtbot/modalpresentationview
* branch master -> FETCH_HEAD
* [new branch] master -> origin/master
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 master
========================================
ResolveProductDependencies
========================================
Resolving dependencies ...
{
"identity": ".resolve-product-dependencies",
"name": "resolve-dependencies",
"url": "/Users/admin/builds/h8344Zi3/1/finestructure/swiftpackageindex-builder/spi-builder-workspace/.resolve-product-dependencies",
"version": "unspecified",
"path": "/Users/admin/builds/h8344Zi3/1/finestructure/swiftpackageindex-builder/spi-builder-workspace/.resolve-product-dependencies",
"dependencies": [
{
"identity": "modalpresentationview",
"name": "ModalPresentationView",
"url": "https://github.com/thoughtbot/modalpresentationview.git",
"version": "unspecified",
"path": "/Users/admin/builds/h8344Zi3/1/finestructure/swiftpackageindex-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 (1.83s)
Creating working copy for https://github.com/thoughtbot/modalpresentationview.git
Working copy of https://github.com/thoughtbot/modalpresentationview.git resolved at master
warning: '.resolve-product-dependencies': dependency 'modalpresentationview' is not used by any target
Found 0 product dependencies
========================================
Build
========================================
Selected platform: macosSpm
Swift version: 5.9
Building package at path: $PWD/checkout
Running build ...
env DEVELOPER_DIR=/Applications/Xcode-15.0.0.app xcrun swift build --arch arm64
Building for debugging...
[1/5] Compiling ModalPresentationView ModalPresentationView.swift
/Users/admin/builds/h8344Zi3/1/finestructure/swiftpackageindex-builder/spi-builder-workspace/Sources/ModalPresentationView/ModalPresentationView.swift:8:37: error: 'AnyView' is only available in macOS 10.15 or newer
@State private var presentedView: AnyView? = nil
^
/Users/admin/builds/h8344Zi3/1/finestructure/swiftpackageindex-builder/spi-builder-workspace/Sources/ModalPresentationView/ModalPresentationView.swift:7:15: note: add @available attribute to enclosing generic struct
public struct ModalPresentationView<Content: View>: View {
^
/Users/admin/builds/h8344Zi3/1/finestructure/swiftpackageindex-builder/spi-builder-workspace/Sources/ModalPresentationView/ModalPresentationView.swift:8:4: error: 'State' is only available in macOS 10.15 or newer
@State private var presentedView: AnyView? = nil
^
/Users/admin/builds/h8344Zi3/1/finestructure/swiftpackageindex-builder/spi-builder-workspace/Sources/ModalPresentationView/ModalPresentationView.swift:7:15: note: add @available attribute to enclosing generic struct
public struct ModalPresentationView<Content: View>: View {
^
/Users/admin/builds/h8344Zi3/1/finestructure/swiftpackageindex-builder/spi-builder-workspace/Sources/ModalPresentationView/ModalPresentationView.swift:14:16: error: 'ViewBuilder' is only available in macOS 10.15 or newer
public init(@ViewBuilder _ content: () -> Content) {
^
/Users/admin/builds/h8344Zi3/1/finestructure/swiftpackageindex-builder/spi-builder-workspace/Sources/ModalPresentationView/ModalPresentationView.swift:14:10: note: add @available attribute to enclosing initializer
public init(@ViewBuilder _ content: () -> Content) {
^
/Users/admin/builds/h8344Zi3/1/finestructure/swiftpackageindex-builder/spi-builder-workspace/Sources/ModalPresentationView/ModalPresentationView.swift:7:15: note: add @available attribute to enclosing generic struct
public struct ModalPresentationView<Content: View>: View {
^
/Users/admin/builds/h8344Zi3/1/finestructure/swiftpackageindex-builder/spi-builder-workspace/Sources/ModalPresentationView/ModalPresentationView.swift:18:25: error: 'View' is only available in macOS 10.15 or newer
public var body: some View {
^
/Users/admin/builds/h8344Zi3/1/finestructure/swiftpackageindex-builder/spi-builder-workspace/Sources/ModalPresentationView/ModalPresentationView.swift:18:14: note: add @available attribute to enclosing property
public var body: some View {
^
/Users/admin/builds/h8344Zi3/1/finestructure/swiftpackageindex-builder/spi-builder-workspace/Sources/ModalPresentationView/ModalPresentationView.swift:7:15: note: add @available attribute to enclosing generic struct
public struct ModalPresentationView<Content: View>: View {
^
/Users/admin/builds/h8344Zi3/1/finestructure/swiftpackageindex-builder/spi-builder-workspace/Sources/ModalPresentationView/ModalPresentationView.swift:24:22: error: cannot find type 'Modal' in scope
private var modal: Modal? {
^~~~~
/Users/admin/builds/h8344Zi3/1/finestructure/swiftpackageindex-builder/spi-builder-workspace/Sources/ModalPresentationView/ModalPresentationView.swift:32:32: error: 'AnyView' is only available in macOS 10.15 or newer
private func present(_ view: AnyView) {
^
/Users/admin/builds/h8344Zi3/1/finestructure/swiftpackageindex-builder/spi-builder-workspace/Sources/ModalPresentationView/ModalPresentationView.swift:32:16: note: add @available attribute to enclosing instance method
private func present(_ view: AnyView) {
^
/Users/admin/builds/h8344Zi3/1/finestructure/swiftpackageindex-builder/spi-builder-workspace/Sources/ModalPresentationView/ModalPresentationView.swift:7:15: note: add @available attribute to enclosing generic struct
public struct ModalPresentationView<Content: View>: View {
^
/Users/admin/builds/h8344Zi3/1/finestructure/swiftpackageindex-builder/spi-builder-workspace/Sources/ModalPresentationView/ModalPresentationView.swift:7:46: error: 'View' is only available in macOS 10.15 or newer
public struct ModalPresentationView<Content: View>: View {
^
/Users/admin/builds/h8344Zi3/1/finestructure/swiftpackageindex-builder/spi-builder-workspace/Sources/ModalPresentationView/ModalPresentationView.swift:7:15: note: add @available attribute to enclosing generic struct
public struct ModalPresentationView<Content: View>: View {
^
/Users/admin/builds/h8344Zi3/1/finestructure/swiftpackageindex-builder/spi-builder-workspace/Sources/ModalPresentationView/ModalPresentationView.swift:21:8: error: value of type 'some View' has no member 'presentation'
.presentation(modal)
^~~~~~~~~~~~
/Users/admin/builds/h8344Zi3/1/finestructure/swiftpackageindex-builder/spi-builder-workspace/Sources/ModalPresentationView/ModalPresentationView.swift:33:5: error: setter for 'presentedView' is only available in macOS 10.15 or newer
presentedView = view
^
/Users/admin/builds/h8344Zi3/1/finestructure/swiftpackageindex-builder/spi-builder-workspace/Sources/ModalPresentationView/ModalPresentationView.swift:33:5: note: add 'if #available' version check
presentedView = view
^
/Users/admin/builds/h8344Zi3/1/finestructure/swiftpackageindex-builder/spi-builder-workspace/Sources/ModalPresentationView/ModalPresentationView.swift:32:16: note: add @available attribute to enclosing instance method
private func present(_ view: AnyView) {
^
/Users/admin/builds/h8344Zi3/1/finestructure/swiftpackageindex-builder/spi-builder-workspace/Sources/ModalPresentationView/ModalPresentationView.swift:7:15: note: add @available attribute to enclosing generic struct
public struct ModalPresentationView<Content: View>: View {
^
/Users/admin/builds/h8344Zi3/1/finestructure/swiftpackageindex-builder/spi-builder-workspace/Sources/ModalPresentationView/ModalPresentationView.swift:37:5: error: setter for 'presentedView' is only available in macOS 10.15 or newer
presentedView = nil
^
/Users/admin/builds/h8344Zi3/1/finestructure/swiftpackageindex-builder/spi-builder-workspace/Sources/ModalPresentationView/ModalPresentationView.swift:37:5: note: add 'if #available' version check
presentedView = nil
^
/Users/admin/builds/h8344Zi3/1/finestructure/swiftpackageindex-builder/spi-builder-workspace/Sources/ModalPresentationView/ModalPresentationView.swift:36:16: note: add @available attribute to enclosing instance method
private func dismiss() {
^
/Users/admin/builds/h8344Zi3/1/finestructure/swiftpackageindex-builder/spi-builder-workspace/Sources/ModalPresentationView/ModalPresentationView.swift:7:15: note: add @available attribute to enclosing generic struct
public struct ModalPresentationView<Content: View>: View {
^
error: emit-module command failed with exit code 1 (use -v to see invocation)
[2/5] Emitting module ModalPresentationView
/Users/admin/builds/h8344Zi3/1/finestructure/swiftpackageindex-builder/spi-builder-workspace/Sources/ModalPresentationView/EnvironmentKeys.swift:12:29: error: 'AnyView' is only available in macOS 10.15 or newer
static var defaultValue: (AnyView) -> Void {
^
/Users/admin/builds/h8344Zi3/1/finestructure/swiftpackageindex-builder/spi-builder-workspace/Sources/ModalPresentationView/EnvironmentKeys.swift:12:14: note: add @available attribute to enclosing static property
static var defaultValue: (AnyView) -> Void {
^
/Users/admin/builds/h8344Zi3/1/finestructure/swiftpackageindex-builder/spi-builder-workspace/Sources/ModalPresentationView/EnvironmentKeys.swift:11:6: note: add @available attribute to enclosing enum
enum ModalPresentationActionKey: EnvironmentKey {
^
/Users/admin/builds/h8344Zi3/1/finestructure/swiftpackageindex-builder/spi-builder-workspace/Sources/ModalPresentationView/EnvironmentKeys.swift:25:33: error: 'AnyView' is only available in macOS 10.15 or newer
var modalPresentationAction: (AnyView) -> Void {
^
/Users/admin/builds/h8344Zi3/1/finestructure/swiftpackageindex-builder/spi-builder-workspace/Sources/ModalPresentationView/EnvironmentKeys.swift:25:7: note: add @available attribute to enclosing property
var modalPresentationAction: (AnyView) -> Void {
^
/Users/admin/builds/h8344Zi3/1/finestructure/swiftpackageindex-builder/spi-builder-workspace/Sources/ModalPresentationView/EnvironmentKeys.swift:19:1: note: add @available attribute to enclosing extension
extension EnvironmentValues {
^
/Users/admin/builds/h8344Zi3/1/finestructure/swiftpackageindex-builder/spi-builder-workspace/Sources/ModalPresentationView/EnvironmentKeys.swift:19:11: error: 'EnvironmentValues' is only available in macOS 10.15 or newer
extension EnvironmentValues {
^
/Users/admin/builds/h8344Zi3/1/finestructure/swiftpackageindex-builder/spi-builder-workspace/Sources/ModalPresentationView/EnvironmentKeys.swift:19:1: note: add @available attribute to enclosing extension
extension EnvironmentValues {
^
/Users/admin/builds/h8344Zi3/1/finestructure/swiftpackageindex-builder/spi-builder-workspace/Sources/ModalPresentationView/ModalDismissButton.swift:3:32: error: 'Modified' is not a member type of struct 'SwiftUI.Image'
typealias _ScaledImage = Image.Modified<_EnvironmentKeyWritingModifier<Image.Scale>>
~~~~~ ^
SwiftUI.Image:2:23: note: 'Image' declared here
@frozen public struct Image : Equatable, Sendable {
^
/Users/admin/builds/h8344Zi3/1/finestructure/swiftpackageindex-builder/spi-builder-workspace/Sources/ModalPresentationView/ModalDismissButton.swift:16:4: error: 'Environment' is only available in macOS 10.15 or newer
@Environment(\.modalDismissAction) private var dismiss
^
/Users/admin/builds/h8344Zi3/1/finestructure/swiftpackageindex-builder/spi-builder-workspace/Sources/ModalPresentationView/ModalDismissButton.swift:15:15: note: add @available attribute to enclosing generic struct
public struct ModalDismissButton<Label: View>: View {
^
/Users/admin/builds/h8344Zi3/1/finestructure/swiftpackageindex-builder/spi-builder-workspace/Sources/ModalPresentationView/ModalDismissButton.swift:21:16: error: 'ViewBuilder' is only available in macOS 10.15 or newer
public init(@ViewBuilder _ label: () -> Label) {
^
/Users/admin/builds/h8344Zi3/1/finestructure/swiftpackageindex-builder/spi-builder-workspace/Sources/ModalPresentationView/ModalDismissButton.swift:21:10: note: add @available attribute to enclosing initializer
public init(@ViewBuilder _ label: () -> Label) {
^
/Users/admin/builds/h8344Zi3/1/finestructure/swiftpackageindex-builder/spi-builder-workspace/Sources/ModalPresentationView/ModalDismissButton.swift:15:15: note: add @available attribute to enclosing generic struct
public struct ModalDismissButton<Label: View>: View {
^
/Users/admin/builds/h8344Zi3/1/finestructure/swiftpackageindex-builder/spi-builder-workspace/Sources/ModalPresentationView/ModalDismissButton.swift:25:25: error: 'View' is only available in macOS 10.15 or newer
public var body: some View {
^
/Users/admin/builds/h8344Zi3/1/finestructure/swiftpackageindex-builder/spi-builder-workspace/Sources/ModalPresentationView/ModalDismissButton.swift:25:14: note: add @available attribute to enclosing property
public var body: some View {
^
/Users/admin/builds/h8344Zi3/1/finestructure/swiftpackageindex-builder/spi-builder-workspace/Sources/ModalPresentationView/ModalDismissButton.swift:15:15: note: add @available attribute to enclosing generic struct
public struct ModalDismissButton<Label: View>: View {
^
/Users/admin/builds/h8344Zi3/1/finestructure/swiftpackageindex-builder/spi-builder-workspace/Sources/ModalPresentationView/ModalDismissButton.swift:15:41: error: 'View' is only available in macOS 10.15 or newer
public struct ModalDismissButton<Label: View>: View {
^
/Users/admin/builds/h8344Zi3/1/finestructure/swiftpackageindex-builder/spi-builder-workspace/Sources/ModalPresentationView/ModalDismissButton.swift:15:15: note: add @available attribute to enclosing generic struct
public struct ModalDismissButton<Label: View>: View {
^
/Users/admin/builds/h8344Zi3/1/finestructure/swiftpackageindex-builder/spi-builder-workspace/Sources/ModalPresentationView/ModalPresentationButton.swift:7:4: error: 'Environment' is only available in macOS 10.15 or newer
@Environment(\.modalPresentationAction) private var _present
^
/Users/admin/builds/h8344Zi3/1/finestructure/swiftpackageindex-builder/spi-builder-workspace/Sources/ModalPresentationView/ModalPresentationButton.swift:6:15: note: add @available attribute to enclosing generic struct
public struct ModalPresentationButton<Destination: View, Label: View>: View {
^
/Users/admin/builds/h8344Zi3/1/finestructure/swiftpackageindex-builder/spi-builder-workspace/Sources/ModalPresentationView/ModalPresentationButton.swift:18:42: error: 'ViewBuilder' is only available in macOS 10.15 or newer
public init(destination: Destination, @ViewBuilder _ label: () -> Label) {
^
/Users/admin/builds/h8344Zi3/1/finestructure/swiftpackageindex-builder/spi-builder-workspace/Sources/ModalPresentationView/ModalPresentationButton.swift:18:10: note: add @available attribute to enclosing initializer
public init(destination: Destination, @ViewBuilder _ label: () -> Label) {
^
/Users/admin/builds/h8344Zi3/1/finestructure/swiftpackageindex-builder/spi-builder-workspace/Sources/ModalPresentationView/ModalPresentationButton.swift:6:15: note: add @available attribute to enclosing generic struct
public struct ModalPresentationButton<Destination: View, Label: View>: View {
^
/Users/admin/builds/h8344Zi3/1/finestructure/swiftpackageindex-builder/spi-builder-workspace/Sources/ModalPresentationView/ModalPresentationButton.swift:23:25: error: 'View' is only available in macOS 10.15 or newer
public var body: some View {
^
/Users/admin/builds/h8344Zi3/1/finestructure/swiftpackageindex-builder/spi-builder-workspace/Sources/ModalPresentationView/ModalPresentationButton.swift:23:14: note: add @available attribute to enclosing property
public var body: some View {
^
/Users/admin/builds/h8344Zi3/1/finestructure/swiftpackageindex-builder/spi-builder-workspace/Sources/ModalPresentationView/ModalPresentationButton.swift:6:15: note: add @available attribute to enclosing generic struct
public struct ModalPresentationButton<Destination: View, Label: View>: View {
^
/Users/admin/builds/h8344Zi3/1/finestructure/swiftpackageindex-builder/spi-builder-workspace/Sources/ModalPresentationView/ModalPresentationButton.swift:6:52: error: 'View' is only available in macOS 10.15 or newer
public struct ModalPresentationButton<Destination: View, Label: View>: View {
^
/Users/admin/builds/h8344Zi3/1/finestructure/swiftpackageindex-builder/spi-builder-workspace/Sources/ModalPresentationView/ModalPresentationButton.swift:6:15: note: add @available attribute to enclosing generic struct
public struct ModalPresentationButton<Destination: View, Label: View>: View {
^
/Users/admin/builds/h8344Zi3/1/finestructure/swiftpackageindex-builder/spi-builder-workspace/Sources/ModalPresentationView/ModalPresentationButton.swift:6:65: error: 'View' is only available in macOS 10.15 or newer
public struct ModalPresentationButton<Destination: View, Label: View>: View {
^
/Users/admin/builds/h8344Zi3/1/finestructure/swiftpackageindex-builder/spi-builder-workspace/Sources/ModalPresentationView/ModalPresentationButton.swift:6:15: note: add @available attribute to enclosing generic struct
public struct ModalPresentationButton<Destination: View, Label: View>: View {
^
/Users/admin/builds/h8344Zi3/1/finestructure/swiftpackageindex-builder/spi-builder-workspace/Sources/ModalPresentationView/ModalPresentationView.swift:8:37: error: 'AnyView' is only available in macOS 10.15 or newer
@State private var presentedView: AnyView? = nil
^
/Users/admin/builds/h8344Zi3/1/finestructure/swiftpackageindex-builder/spi-builder-workspace/Sources/ModalPresentationView/ModalPresentationView.swift:7:15: note: add @available attribute to enclosing generic struct
public struct ModalPresentationView<Content: View>: View {
^
/Users/admin/builds/h8344Zi3/1/finestructure/swiftpackageindex-builder/spi-builder-workspace/Sources/ModalPresentationView/ModalPresentationView.swift:8:4: error: 'State' is only available in macOS 10.15 or newer
@State private var presentedView: AnyView? = nil
^
/Users/admin/builds/h8344Zi3/1/finestructure/swiftpackageindex-builder/spi-builder-workspace/Sources/ModalPresentationView/ModalPresentationView.swift:7:15: note: add @available attribute to enclosing generic struct
public struct ModalPresentationView<Content: View>: View {
^
/Users/admin/builds/h8344Zi3/1/finestructure/swiftpackageindex-builder/spi-builder-workspace/Sources/ModalPresentationView/ModalPresentationView.swift:14:16: error: 'ViewBuilder' is only available in macOS 10.15 or newer
public init(@ViewBuilder _ content: () -> Content) {
^
/Users/admin/builds/h8344Zi3/1/finestructure/swiftpackageindex-builder/spi-builder-workspace/Sources/ModalPresentationView/ModalPresentationView.swift:14:10: note: add @available attribute to enclosing initializer
public init(@ViewBuilder _ content: () -> Content) {
^
/Users/admin/builds/h8344Zi3/1/finestructure/swiftpackageindex-builder/spi-builder-workspace/Sources/ModalPresentationView/ModalPresentationView.swift:7:15: note: add @available attribute to enclosing generic struct
public struct ModalPresentationView<Content: View>: View {
^
/Users/admin/builds/h8344Zi3/1/finestructure/swiftpackageindex-builder/spi-builder-workspace/Sources/ModalPresentationView/ModalPresentationView.swift:18:25: error: 'View' is only available in macOS 10.15 or newer
public var body: some View {
^
/Users/admin/builds/h8344Zi3/1/finestructure/swiftpackageindex-builder/spi-builder-workspace/Sources/ModalPresentationView/ModalPresentationView.swift:18:14: note: add @available attribute to enclosing property
public var body: some View {
^
/Users/admin/builds/h8344Zi3/1/finestructure/swiftpackageindex-builder/spi-builder-workspace/Sources/ModalPresentationView/ModalPresentationView.swift:7:15: note: add @available attribute to enclosing generic struct
public struct ModalPresentationView<Content: View>: View {
^
/Users/admin/builds/h8344Zi3/1/finestructure/swiftpackageindex-builder/spi-builder-workspace/Sources/ModalPresentationView/ModalPresentationView.swift:24:22: error: cannot find type 'Modal' in scope
private var modal: Modal? {
^~~~~
/Users/admin/builds/h8344Zi3/1/finestructure/swiftpackageindex-builder/spi-builder-workspace/Sources/ModalPresentationView/ModalPresentationView.swift:32:32: error: 'AnyView' is only available in macOS 10.15 or newer
private func present(_ view: AnyView) {
^
/Users/admin/builds/h8344Zi3/1/finestructure/swiftpackageindex-builder/spi-builder-workspace/Sources/ModalPresentationView/ModalPresentationView.swift:32:16: note: add @available attribute to enclosing instance method
private func present(_ view: AnyView) {
^
/Users/admin/builds/h8344Zi3/1/finestructure/swiftpackageindex-builder/spi-builder-workspace/Sources/ModalPresentationView/ModalPresentationView.swift:7:15: note: add @available attribute to enclosing generic struct
public struct ModalPresentationView<Content: View>: View {
^
/Users/admin/builds/h8344Zi3/1/finestructure/swiftpackageindex-builder/spi-builder-workspace/Sources/ModalPresentationView/ModalPresentationView.swift:7:46: error: 'View' is only available in macOS 10.15 or newer
public struct ModalPresentationView<Content: View>: View {
^
/Users/admin/builds/h8344Zi3/1/finestructure/swiftpackageindex-builder/spi-builder-workspace/Sources/ModalPresentationView/ModalPresentationView.swift:7:15: note: add @available attribute to enclosing generic struct
public struct ModalPresentationView<Content: View>: View {
^
[3/5] Compiling ModalPresentationView ModalPresentationButton.swift
/Users/admin/builds/h8344Zi3/1/finestructure/swiftpackageindex-builder/spi-builder-workspace/Sources/ModalPresentationView/ModalPresentationButton.swift:7:4: error: 'Environment' is only available in macOS 10.15 or newer
@Environment(\.modalPresentationAction) private var _present
^
/Users/admin/builds/h8344Zi3/1/finestructure/swiftpackageindex-builder/spi-builder-workspace/Sources/ModalPresentationView/ModalPresentationButton.swift:6:15: note: add @available attribute to enclosing generic struct
public struct ModalPresentationButton<Destination: View, Label: View>: View {
^
/Users/admin/builds/h8344Zi3/1/finestructure/swiftpackageindex-builder/spi-builder-workspace/Sources/ModalPresentationView/ModalPresentationButton.swift:18:42: error: 'ViewBuilder' is only available in macOS 10.15 or newer
public init(destination: Destination, @ViewBuilder _ label: () -> Label) {
^
/Users/admin/builds/h8344Zi3/1/finestructure/swiftpackageindex-builder/spi-builder-workspace/Sources/ModalPresentationView/ModalPresentationButton.swift:18:10: note: add @available attribute to enclosing initializer
public init(destination: Destination, @ViewBuilder _ label: () -> Label) {
^
/Users/admin/builds/h8344Zi3/1/finestructure/swiftpackageindex-builder/spi-builder-workspace/Sources/ModalPresentationView/ModalPresentationButton.swift:6:15: note: add @available attribute to enclosing generic struct
public struct ModalPresentationButton<Destination: View, Label: View>: View {
^
/Users/admin/builds/h8344Zi3/1/finestructure/swiftpackageindex-builder/spi-builder-workspace/Sources/ModalPresentationView/ModalPresentationButton.swift:23:25: error: 'View' is only available in macOS 10.15 or newer
public var body: some View {
^
/Users/admin/builds/h8344Zi3/1/finestructure/swiftpackageindex-builder/spi-builder-workspace/Sources/ModalPresentationView/ModalPresentationButton.swift:23:14: note: add @available attribute to enclosing property
public var body: some View {
^
/Users/admin/builds/h8344Zi3/1/finestructure/swiftpackageindex-builder/spi-builder-workspace/Sources/ModalPresentationView/ModalPresentationButton.swift:6:15: note: add @available attribute to enclosing generic struct
public struct ModalPresentationButton<Destination: View, Label: View>: View {
^
/Users/admin/builds/h8344Zi3/1/finestructure/swiftpackageindex-builder/spi-builder-workspace/Sources/ModalPresentationView/ModalPresentationButton.swift:6:52: error: 'View' is only available in macOS 10.15 or newer
public struct ModalPresentationButton<Destination: View, Label: View>: View {
^
/Users/admin/builds/h8344Zi3/1/finestructure/swiftpackageindex-builder/spi-builder-workspace/Sources/ModalPresentationView/ModalPresentationButton.swift:6:15: note: add @available attribute to enclosing generic struct
public struct ModalPresentationButton<Destination: View, Label: View>: View {
^
/Users/admin/builds/h8344Zi3/1/finestructure/swiftpackageindex-builder/spi-builder-workspace/Sources/ModalPresentationView/ModalPresentationButton.swift:6:65: error: 'View' is only available in macOS 10.15 or newer
public struct ModalPresentationButton<Destination: View, Label: View>: View {
^
/Users/admin/builds/h8344Zi3/1/finestructure/swiftpackageindex-builder/spi-builder-workspace/Sources/ModalPresentationView/ModalPresentationButton.swift:6:15: note: add @available attribute to enclosing generic struct
public struct ModalPresentationButton<Destination: View, Label: View>: View {
^
/Users/admin/builds/h8344Zi3/1/finestructure/swiftpackageindex-builder/spi-builder-workspace/Sources/ModalPresentationView/ModalPresentationButton.swift:24:5: error: 'Button' is only available in macOS 10.15 or newer
Button(action: present) {
^
/Users/admin/builds/h8344Zi3/1/finestructure/swiftpackageindex-builder/spi-builder-workspace/Sources/ModalPresentationView/ModalPresentationButton.swift:24:5: note: add 'if #available' version check
Button(action: present) {
^
/Users/admin/builds/h8344Zi3/1/finestructure/swiftpackageindex-builder/spi-builder-workspace/Sources/ModalPresentationView/ModalPresentationButton.swift:23:14: note: add @available attribute to enclosing property
public var body: some View {
^
/Users/admin/builds/h8344Zi3/1/finestructure/swiftpackageindex-builder/spi-builder-workspace/Sources/ModalPresentationView/ModalPresentationButton.swift:6:15: note: add @available attribute to enclosing generic struct
public struct ModalPresentationButton<Destination: View, Label: View>: View {
^
/Users/admin/builds/h8344Zi3/1/finestructure/swiftpackageindex-builder/spi-builder-workspace/Sources/ModalPresentationView/ModalPresentationButton.swift:30:14: error: 'AnyView' is only available in macOS 10.15 or newer
_present(AnyView(destination))
^
/Users/admin/builds/h8344Zi3/1/finestructure/swiftpackageindex-builder/spi-builder-workspace/Sources/ModalPresentationView/ModalPresentationButton.swift:30:14: note: add 'if #available' version check
_present(AnyView(destination))
^
/Users/admin/builds/h8344Zi3/1/finestructure/swiftpackageindex-builder/spi-builder-workspace/Sources/ModalPresentationView/ModalPresentationButton.swift:29:16: note: add @available attribute to enclosing instance method
private func present() {
^
/Users/admin/builds/h8344Zi3/1/finestructure/swiftpackageindex-builder/spi-builder-workspace/Sources/ModalPresentationView/ModalPresentationButton.swift:6:15: note: add @available attribute to enclosing generic struct
public struct ModalPresentationButton<Destination: View, Label: View>: View {
^
[4/5] Compiling ModalPresentationView ModalDismissButton.swift
/Users/admin/builds/h8344Zi3/1/finestructure/swiftpackageindex-builder/spi-builder-workspace/Sources/ModalPresentationView/ModalDismissButton.swift:3:32: error: 'Modified' is not a member type of struct 'SwiftUI.Image'
typealias _ScaledImage = Image.Modified<_EnvironmentKeyWritingModifier<Image.Scale>>
~~~~~ ^
SwiftUI.Image:2:23: note: 'Image' declared here
@frozen public struct Image : Equatable, Sendable {
^
/Users/admin/builds/h8344Zi3/1/finestructure/swiftpackageindex-builder/spi-builder-workspace/Sources/ModalPresentationView/ModalDismissButton.swift:16:4: error: 'Environment' is only available in macOS 10.15 or newer
@Environment(\.modalDismissAction) private var dismiss
^
/Users/admin/builds/h8344Zi3/1/finestructure/swiftpackageindex-builder/spi-builder-workspace/Sources/ModalPresentationView/ModalDismissButton.swift:15:15: note: add @available attribute to enclosing generic struct
public struct ModalDismissButton<Label: View>: View {
^
/Users/admin/builds/h8344Zi3/1/finestructure/swiftpackageindex-builder/spi-builder-workspace/Sources/ModalPresentationView/ModalDismissButton.swift:21:16: error: 'ViewBuilder' is only available in macOS 10.15 or newer
public init(@ViewBuilder _ label: () -> Label) {
^
/Users/admin/builds/h8344Zi3/1/finestructure/swiftpackageindex-builder/spi-builder-workspace/Sources/ModalPresentationView/ModalDismissButton.swift:21:10: note: add @available attribute to enclosing initializer
public init(@ViewBuilder _ label: () -> Label) {
^
/Users/admin/builds/h8344Zi3/1/finestructure/swiftpackageindex-builder/spi-builder-workspace/Sources/ModalPresentationView/ModalDismissButton.swift:15:15: note: add @available attribute to enclosing generic struct
public struct ModalDismissButton<Label: View>: View {
^
/Users/admin/builds/h8344Zi3/1/finestructure/swiftpackageindex-builder/spi-builder-workspace/Sources/ModalPresentationView/ModalDismissButton.swift:25:25: error: 'View' is only available in macOS 10.15 or newer
public var body: some View {
^
/Users/admin/builds/h8344Zi3/1/finestructure/swiftpackageindex-builder/spi-builder-workspace/Sources/ModalPresentationView/ModalDismissButton.swift:25:14: note: add @available attribute to enclosing property
public var body: some View {
^
/Users/admin/builds/h8344Zi3/1/finestructure/swiftpackageindex-builder/spi-builder-workspace/Sources/ModalPresentationView/ModalDismissButton.swift:15:15: note: add @available attribute to enclosing generic struct
public struct ModalDismissButton<Label: View>: View {
^
/Users/admin/builds/h8344Zi3/1/finestructure/swiftpackageindex-builder/spi-builder-workspace/Sources/ModalPresentationView/ModalDismissButton.swift:15:41: error: 'View' is only available in macOS 10.15 or newer
public struct ModalDismissButton<Label: View>: View {
^
/Users/admin/builds/h8344Zi3/1/finestructure/swiftpackageindex-builder/spi-builder-workspace/Sources/ModalPresentationView/ModalDismissButton.swift:15:15: note: add @available attribute to enclosing generic struct
public struct ModalDismissButton<Label: View>: View {
^
/Users/admin/builds/h8344Zi3/1/finestructure/swiftpackageindex-builder/spi-builder-workspace/Sources/ModalPresentationView/ModalDismissButton.swift:26:5: error: 'Button' is only available in macOS 10.15 or newer
Button(action: dismiss) {
^
/Users/admin/builds/h8344Zi3/1/finestructure/swiftpackageindex-builder/spi-builder-workspace/Sources/ModalPresentationView/ModalDismissButton.swift:26:5: note: add 'if #available' version check
Button(action: dismiss) {
^
/Users/admin/builds/h8344Zi3/1/finestructure/swiftpackageindex-builder/spi-builder-workspace/Sources/ModalPresentationView/ModalDismissButton.swift:25:14: note: add @available attribute to enclosing property
public var body: some View {
^
/Users/admin/builds/h8344Zi3/1/finestructure/swiftpackageindex-builder/spi-builder-workspace/Sources/ModalPresentationView/ModalDismissButton.swift:15:15: note: add @available attribute to enclosing generic struct
public struct ModalDismissButton<Label: View>: View {
^
/Users/admin/builds/h8344Zi3/1/finestructure/swiftpackageindex-builder/spi-builder-workspace/Sources/ModalPresentationView/ModalDismissButton.swift:36:10: error: generic struct 'ModalDismissButton' requires that 'Label' conform to 'View'
self.init {
^
/Users/admin/builds/h8344Zi3/1/finestructure/swiftpackageindex-builder/spi-builder-workspace/Sources/ModalPresentationView/ModalDismissButton.swift:15:15: note: where 'Label' = 'Label'
public struct ModalDismissButton<Label: View>: View {
^
/Users/admin/builds/h8344Zi3/1/finestructure/swiftpackageindex-builder/spi-builder-workspace/Sources/ModalPresentationView/ModalDismissButton.swift:36:15: error: cannot convert return expression of type 'ModifiedContent<some View, AccessibilityAttachmentModifier>' to return type 'Label'
self.init {
^
[5/5] Compiling ModalPresentationView EnvironmentKeys.swift
/Users/admin/builds/h8344Zi3/1/finestructure/swiftpackageindex-builder/spi-builder-workspace/Sources/ModalPresentationView/EnvironmentKeys.swift:12:29: error: 'AnyView' is only available in macOS 10.15 or newer
static var defaultValue: (AnyView) -> Void {
^
/Users/admin/builds/h8344Zi3/1/finestructure/swiftpackageindex-builder/spi-builder-workspace/Sources/ModalPresentationView/EnvironmentKeys.swift:12:14: note: add @available attribute to enclosing static property
static var defaultValue: (AnyView) -> Void {
^
/Users/admin/builds/h8344Zi3/1/finestructure/swiftpackageindex-builder/spi-builder-workspace/Sources/ModalPresentationView/EnvironmentKeys.swift:11:6: note: add @available attribute to enclosing enum
enum ModalPresentationActionKey: EnvironmentKey {
^
/Users/admin/builds/h8344Zi3/1/finestructure/swiftpackageindex-builder/spi-builder-workspace/Sources/ModalPresentationView/EnvironmentKeys.swift:25:33: error: 'AnyView' is only available in macOS 10.15 or newer
var modalPresentationAction: (AnyView) -> Void {
^
/Users/admin/builds/h8344Zi3/1/finestructure/swiftpackageindex-builder/spi-builder-workspace/Sources/ModalPresentationView/EnvironmentKeys.swift:25:7: note: add @available attribute to enclosing property
var modalPresentationAction: (AnyView) -> Void {
^
/Users/admin/builds/h8344Zi3/1/finestructure/swiftpackageindex-builder/spi-builder-workspace/Sources/ModalPresentationView/EnvironmentKeys.swift:19:1: note: add @available attribute to enclosing extension
extension EnvironmentValues {
^
/Users/admin/builds/h8344Zi3/1/finestructure/swiftpackageindex-builder/spi-builder-workspace/Sources/ModalPresentationView/EnvironmentKeys.swift:19:11: error: 'EnvironmentValues' is only available in macOS 10.15 or newer
extension EnvironmentValues {
^
/Users/admin/builds/h8344Zi3/1/finestructure/swiftpackageindex-builder/spi-builder-workspace/Sources/ModalPresentationView/EnvironmentKeys.swift:19:1: note: add @available attribute to enclosing extension
extension EnvironmentValues {
^
error: fatalError
[0/1] Planning build
Building for debugging...
error: emit-module command failed with exit code 1 (use -v to see invocation)
[1/5] Emitting module ModalPresentationView
/Users/admin/builds/h8344Zi3/1/finestructure/swiftpackageindex-builder/spi-builder-workspace/Sources/ModalPresentationView/EnvironmentKeys.swift:12:29: error: 'AnyView' is only available in macOS 10.15 or newer
static var defaultValue: (AnyView) -> Void {
^
/Users/admin/builds/h8344Zi3/1/finestructure/swiftpackageindex-builder/spi-builder-workspace/Sources/ModalPresentationView/EnvironmentKeys.swift:12:14: note: add @available attribute to enclosing static property
static var defaultValue: (AnyView) -> Void {
^
/Users/admin/builds/h8344Zi3/1/finestructure/swiftpackageindex-builder/spi-builder-workspace/Sources/ModalPresentationView/EnvironmentKeys.swift:11:6: note: add @available attribute to enclosing enum
enum ModalPresentationActionKey: EnvironmentKey {
^
/Users/admin/builds/h8344Zi3/1/finestructure/swiftpackageindex-builder/spi-builder-workspace/Sources/ModalPresentationView/EnvironmentKeys.swift:25:33: error: 'AnyView' is only available in macOS 10.15 or newer
var modalPresentationAction: (AnyView) -> Void {
^
/Users/admin/builds/h8344Zi3/1/finestructure/swiftpackageindex-builder/spi-builder-workspace/Sources/ModalPresentationView/EnvironmentKeys.swift:25:7: note: add @available attribute to enclosing property
var modalPresentationAction: (AnyView) -> Void {
^
/Users/admin/builds/h8344Zi3/1/finestructure/swiftpackageindex-builder/spi-builder-workspace/Sources/ModalPresentationView/EnvironmentKeys.swift:19:1: note: add @available attribute to enclosing extension
extension EnvironmentValues {
^
/Users/admin/builds/h8344Zi3/1/finestructure/swiftpackageindex-builder/spi-builder-workspace/Sources/ModalPresentationView/EnvironmentKeys.swift:19:11: error: 'EnvironmentValues' is only available in macOS 10.15 or newer
extension EnvironmentValues {
^
/Users/admin/builds/h8344Zi3/1/finestructure/swiftpackageindex-builder/spi-builder-workspace/Sources/ModalPresentationView/EnvironmentKeys.swift:19:1: note: add @available attribute to enclosing extension
extension EnvironmentValues {
^
/Users/admin/builds/h8344Zi3/1/finestructure/swiftpackageindex-builder/spi-builder-workspace/Sources/ModalPresentationView/ModalDismissButton.swift:3:32: error: 'Modified' is not a member type of struct 'SwiftUI.Image'
typealias _ScaledImage = Image.Modified<_EnvironmentKeyWritingModifier<Image.Scale>>
~~~~~ ^
SwiftUI.Image:2:23: note: 'Image' declared here
@frozen public struct Image : Equatable, Sendable {
^
/Users/admin/builds/h8344Zi3/1/finestructure/swiftpackageindex-builder/spi-builder-workspace/Sources/ModalPresentationView/ModalDismissButton.swift:16:4: error: 'Environment' is only available in macOS 10.15 or newer
@Environment(\.modalDismissAction) private var dismiss
^
/Users/admin/builds/h8344Zi3/1/finestructure/swiftpackageindex-builder/spi-builder-workspace/Sources/ModalPresentationView/ModalDismissButton.swift:15:15: note: add @available attribute to enclosing generic struct
public struct ModalDismissButton<Label: View>: View {
^
/Users/admin/builds/h8344Zi3/1/finestructure/swiftpackageindex-builder/spi-builder-workspace/Sources/ModalPresentationView/ModalDismissButton.swift:21:16: error: 'ViewBuilder' is only available in macOS 10.15 or newer
public init(@ViewBuilder _ label: () -> Label) {
^
/Users/admin/builds/h8344Zi3/1/finestructure/swiftpackageindex-builder/spi-builder-workspace/Sources/ModalPresentationView/ModalDismissButton.swift:21:10: note: add @available attribute to enclosing initializer
public init(@ViewBuilder _ label: () -> Label) {
^
/Users/admin/builds/h8344Zi3/1/finestructure/swiftpackageindex-builder/spi-builder-workspace/Sources/ModalPresentationView/ModalDismissButton.swift:15:15: note: add @available attribute to enclosing generic struct
public struct ModalDismissButton<Label: View>: View {
^
/Users/admin/builds/h8344Zi3/1/finestructure/swiftpackageindex-builder/spi-builder-workspace/Sources/ModalPresentationView/ModalDismissButton.swift:25:25: error: 'View' is only available in macOS 10.15 or newer
public var body: some View {
^
/Users/admin/builds/h8344Zi3/1/finestructure/swiftpackageindex-builder/spi-builder-workspace/Sources/ModalPresentationView/ModalDismissButton.swift:25:14: note: add @available attribute to enclosing property
public var body: some View {
^
/Users/admin/builds/h8344Zi3/1/finestructure/swiftpackageindex-builder/spi-builder-workspace/Sources/ModalPresentationView/ModalDismissButton.swift:15:15: note: add @available attribute to enclosing generic struct
public struct ModalDismissButton<Label: View>: View {
^
/Users/admin/builds/h8344Zi3/1/finestructure/swiftpackageindex-builder/spi-builder-workspace/Sources/ModalPresentationView/ModalDismissButton.swift:15:41: error: 'View' is only available in macOS 10.15 or newer
public struct ModalDismissButton<Label: View>: View {
^
/Users/admin/builds/h8344Zi3/1/finestructure/swiftpackageindex-builder/spi-builder-workspace/Sources/ModalPresentationView/ModalDismissButton.swift:15:15: note: add @available attribute to enclosing generic struct
public struct ModalDismissButton<Label: View>: View {
^
/Users/admin/builds/h8344Zi3/1/finestructure/swiftpackageindex-builder/spi-builder-workspace/Sources/ModalPresentationView/ModalPresentationButton.swift:7:4: error: 'Environment' is only available in macOS 10.15 or newer
@Environment(\.modalPresentationAction) private var _present
^
/Users/admin/builds/h8344Zi3/1/finestructure/swiftpackageindex-builder/spi-builder-workspace/Sources/ModalPresentationView/ModalPresentationButton.swift:6:15: note: add @available attribute to enclosing generic struct
public struct ModalPresentationButton<Destination: View, Label: View>: View {
^
/Users/admin/builds/h8344Zi3/1/finestructure/swiftpackageindex-builder/spi-builder-workspace/Sources/ModalPresentationView/ModalPresentationButton.swift:18:42: error: 'ViewBuilder' is only available in macOS 10.15 or newer
public init(destination: Destination, @ViewBuilder _ label: () -> Label) {
^
/Users/admin/builds/h8344Zi3/1/finestructure/swiftpackageindex-builder/spi-builder-workspace/Sources/ModalPresentationView/ModalPresentationButton.swift:18:10: note: add @available attribute to enclosing initializer
public init(destination: Destination, @ViewBuilder _ label: () -> Label) {
^
/Users/admin/builds/h8344Zi3/1/finestructure/swiftpackageindex-builder/spi-builder-workspace/Sources/ModalPresentationView/ModalPresentationButton.swift:6:15: note: add @available attribute to enclosing generic struct
public struct ModalPresentationButton<Destination: View, Label: View>: View {
^
/Users/admin/builds/h8344Zi3/1/finestructure/swiftpackageindex-builder/spi-builder-workspace/Sources/ModalPresentationView/ModalPresentationButton.swift:23:25: error: 'View' is only available in macOS 10.15 or newer
public var body: some View {
^
/Users/admin/builds/h8344Zi3/1/finestructure/swiftpackageindex-builder/spi-builder-workspace/Sources/ModalPresentationView/ModalPresentationButton.swift:23:14: note: add @available attribute to enclosing property
public var body: some View {
^
/Users/admin/builds/h8344Zi3/1/finestructure/swiftpackageindex-builder/spi-builder-workspace/Sources/ModalPresentationView/ModalPresentationButton.swift:6:15: note: add @available attribute to enclosing generic struct
public struct ModalPresentationButton<Destination: View, Label: View>: View {
^
/Users/admin/builds/h8344Zi3/1/finestructure/swiftpackageindex-builder/spi-builder-workspace/Sources/ModalPresentationView/ModalPresentationButton.swift:6:52: error: 'View' is only available in macOS 10.15 or newer
public struct ModalPresentationButton<Destination: View, Label: View>: View {
^
/Users/admin/builds/h8344Zi3/1/finestructure/swiftpackageindex-builder/spi-builder-workspace/Sources/ModalPresentationView/ModalPresentationButton.swift:6:15: note: add @available attribute to enclosing generic struct
public struct ModalPresentationButton<Destination: View, Label: View>: View {
^
/Users/admin/builds/h8344Zi3/1/finestructure/swiftpackageindex-builder/spi-builder-workspace/Sources/ModalPresentationView/ModalPresentationButton.swift:6:65: error: 'View' is only available in macOS 10.15 or newer
public struct ModalPresentationButton<Destination: View, Label: View>: View {
^
/Users/admin/builds/h8344Zi3/1/finestructure/swiftpackageindex-builder/spi-builder-workspace/Sources/ModalPresentationView/ModalPresentationButton.swift:6:15: note: add @available attribute to enclosing generic struct
public struct ModalPresentationButton<Destination: View, Label: View>: View {
^
/Users/admin/builds/h8344Zi3/1/finestructure/swiftpackageindex-builder/spi-builder-workspace/Sources/ModalPresentationView/ModalPresentationView.swift:8:37: error: 'AnyView' is only available in macOS 10.15 or newer
@State private var presentedView: AnyView? = nil
^
/Users/admin/builds/h8344Zi3/1/finestructure/swiftpackageindex-builder/spi-builder-workspace/Sources/ModalPresentationView/ModalPresentationView.swift:7:15: note: add @available attribute to enclosing generic struct
public struct ModalPresentationView<Content: View>: View {
^
/Users/admin/builds/h8344Zi3/1/finestructure/swiftpackageindex-builder/spi-builder-workspace/Sources/ModalPresentationView/ModalPresentationView.swift:8:4: error: 'State' is only available in macOS 10.15 or newer
@State private var presentedView: AnyView? = nil
^
/Users/admin/builds/h8344Zi3/1/finestructure/swiftpackageindex-builder/spi-builder-workspace/Sources/ModalPresentationView/ModalPresentationView.swift:7:15: note: add @available attribute to enclosing generic struct
public struct ModalPresentationView<Content: View>: View {
^
/Users/admin/builds/h8344Zi3/1/finestructure/swiftpackageindex-builder/spi-builder-workspace/Sources/ModalPresentationView/ModalPresentationView.swift:14:16: error: 'ViewBuilder' is only available in macOS 10.15 or newer
public init(@ViewBuilder _ content: () -> Content) {
^
/Users/admin/builds/h8344Zi3/1/finestructure/swiftpackageindex-builder/spi-builder-workspace/Sources/ModalPresentationView/ModalPresentationView.swift:14:10: note: add @available attribute to enclosing initializer
public init(@ViewBuilder _ content: () -> Content) {
^
/Users/admin/builds/h8344Zi3/1/finestructure/swiftpackageindex-builder/spi-builder-workspace/Sources/ModalPresentationView/ModalPresentationView.swift:7:15: note: add @available attribute to enclosing generic struct
public struct ModalPresentationView<Content: View>: View {
^
/Users/admin/builds/h8344Zi3/1/finestructure/swiftpackageindex-builder/spi-builder-workspace/Sources/ModalPresentationView/ModalPresentationView.swift:18:25: error: 'View' is only available in macOS 10.15 or newer
public var body: some View {
^
/Users/admin/builds/h8344Zi3/1/finestructure/swiftpackageindex-builder/spi-builder-workspace/Sources/ModalPresentationView/ModalPresentationView.swift:18:14: note: add @available attribute to enclosing property
public var body: some View {
^
/Users/admin/builds/h8344Zi3/1/finestructure/swiftpackageindex-builder/spi-builder-workspace/Sources/ModalPresentationView/ModalPresentationView.swift:7:15: note: add @available attribute to enclosing generic struct
public struct ModalPresentationView<Content: View>: View {
^
/Users/admin/builds/h8344Zi3/1/finestructure/swiftpackageindex-builder/spi-builder-workspace/Sources/ModalPresentationView/ModalPresentationView.swift:24:22: error: cannot find type 'Modal' in scope
private var modal: Modal? {
^~~~~
/Users/admin/builds/h8344Zi3/1/finestructure/swiftpackageindex-builder/spi-builder-workspace/Sources/ModalPresentationView/ModalPresentationView.swift:32:32: error: 'AnyView' is only available in macOS 10.15 or newer
private func present(_ view: AnyView) {
^
/Users/admin/builds/h8344Zi3/1/finestructure/swiftpackageindex-builder/spi-builder-workspace/Sources/ModalPresentationView/ModalPresentationView.swift:32:16: note: add @available attribute to enclosing instance method
private func present(_ view: AnyView) {
^
/Users/admin/builds/h8344Zi3/1/finestructure/swiftpackageindex-builder/spi-builder-workspace/Sources/ModalPresentationView/ModalPresentationView.swift:7:15: note: add @available attribute to enclosing generic struct
public struct ModalPresentationView<Content: View>: View {
^
/Users/admin/builds/h8344Zi3/1/finestructure/swiftpackageindex-builder/spi-builder-workspace/Sources/ModalPresentationView/ModalPresentationView.swift:7:46: error: 'View' is only available in macOS 10.15 or newer
public struct ModalPresentationView<Content: View>: View {
^
/Users/admin/builds/h8344Zi3/1/finestructure/swiftpackageindex-builder/spi-builder-workspace/Sources/ModalPresentationView/ModalPresentationView.swift:7:15: note: add @available attribute to enclosing generic struct
public struct ModalPresentationView<Content: View>: View {
^
[2/5] Compiling ModalPresentationView EnvironmentKeys.swift
/Users/admin/builds/h8344Zi3/1/finestructure/swiftpackageindex-builder/spi-builder-workspace/Sources/ModalPresentationView/EnvironmentKeys.swift:12:29: error: 'AnyView' is only available in macOS 10.15 or newer
static var defaultValue: (AnyView) -> Void {
^
/Users/admin/builds/h8344Zi3/1/finestructure/swiftpackageindex-builder/spi-builder-workspace/Sources/ModalPresentationView/EnvironmentKeys.swift:12:14: note: add @available attribute to enclosing static property
static var defaultValue: (AnyView) -> Void {
^
/Users/admin/builds/h8344Zi3/1/finestructure/swiftpackageindex-builder/spi-builder-workspace/Sources/ModalPresentationView/EnvironmentKeys.swift:11:6: note: add @available attribute to enclosing enum
enum ModalPresentationActionKey: EnvironmentKey {
^
/Users/admin/builds/h8344Zi3/1/finestructure/swiftpackageindex-builder/spi-builder-workspace/Sources/ModalPresentationView/EnvironmentKeys.swift:25:33: error: 'AnyView' is only available in macOS 10.15 or newer
var modalPresentationAction: (AnyView) -> Void {
^
/Users/admin/builds/h8344Zi3/1/finestructure/swiftpackageindex-builder/spi-builder-workspace/Sources/ModalPresentationView/EnvironmentKeys.swift:25:7: note: add @available attribute to enclosing property
var modalPresentationAction: (AnyView) -> Void {
^
/Users/admin/builds/h8344Zi3/1/finestructure/swiftpackageindex-builder/spi-builder-workspace/Sources/ModalPresentationView/EnvironmentKeys.swift:19:1: note: add @available attribute to enclosing extension
extension EnvironmentValues {
^
/Users/admin/builds/h8344Zi3/1/finestructure/swiftpackageindex-builder/spi-builder-workspace/Sources/ModalPresentationView/EnvironmentKeys.swift:19:11: error: 'EnvironmentValues' is only available in macOS 10.15 or newer
extension EnvironmentValues {
^
/Users/admin/builds/h8344Zi3/1/finestructure/swiftpackageindex-builder/spi-builder-workspace/Sources/ModalPresentationView/EnvironmentKeys.swift:19:1: note: add @available attribute to enclosing extension
extension EnvironmentValues {
^
[3/5] Compiling ModalPresentationView ModalPresentationButton.swift
/Users/admin/builds/h8344Zi3/1/finestructure/swiftpackageindex-builder/spi-builder-workspace/Sources/ModalPresentationView/ModalPresentationButton.swift:7:4: error: 'Environment' is only available in macOS 10.15 or newer
@Environment(\.modalPresentationAction) private var _present
^
/Users/admin/builds/h8344Zi3/1/finestructure/swiftpackageindex-builder/spi-builder-workspace/Sources/ModalPresentationView/ModalPresentationButton.swift:6:15: note: add @available attribute to enclosing generic struct
public struct ModalPresentationButton<Destination: View, Label: View>: View {
^
/Users/admin/builds/h8344Zi3/1/finestructure/swiftpackageindex-builder/spi-builder-workspace/Sources/ModalPresentationView/ModalPresentationButton.swift:18:42: error: 'ViewBuilder' is only available in macOS 10.15 or newer
public init(destination: Destination, @ViewBuilder _ label: () -> Label) {
^
/Users/admin/builds/h8344Zi3/1/finestructure/swiftpackageindex-builder/spi-builder-workspace/Sources/ModalPresentationView/ModalPresentationButton.swift:18:10: note: add @available attribute to enclosing initializer
public init(destination: Destination, @ViewBuilder _ label: () -> Label) {
^
/Users/admin/builds/h8344Zi3/1/finestructure/swiftpackageindex-builder/spi-builder-workspace/Sources/ModalPresentationView/ModalPresentationButton.swift:6:15: note: add @available attribute to enclosing generic struct
public struct ModalPresentationButton<Destination: View, Label: View>: View {
^
/Users/admin/builds/h8344Zi3/1/finestructure/swiftpackageindex-builder/spi-builder-workspace/Sources/ModalPresentationView/ModalPresentationButton.swift:23:25: error: 'View' is only available in macOS 10.15 or newer
public var body: some View {
^
/Users/admin/builds/h8344Zi3/1/finestructure/swiftpackageindex-builder/spi-builder-workspace/Sources/ModalPresentationView/ModalPresentationButton.swift:23:14: note: add @available attribute to enclosing property
public var body: some View {
^
/Users/admin/builds/h8344Zi3/1/finestructure/swiftpackageindex-builder/spi-builder-workspace/Sources/ModalPresentationView/ModalPresentationButton.swift:6:15: note: add @available attribute to enclosing generic struct
public struct ModalPresentationButton<Destination: View, Label: View>: View {
^
/Users/admin/builds/h8344Zi3/1/finestructure/swiftpackageindex-builder/spi-builder-workspace/Sources/ModalPresentationView/ModalPresentationButton.swift:6:52: error: 'View' is only available in macOS 10.15 or newer
public struct ModalPresentationButton<Destination: View, Label: View>: View {
^
/Users/admin/builds/h8344Zi3/1/finestructure/swiftpackageindex-builder/spi-builder-workspace/Sources/ModalPresentationView/ModalPresentationButton.swift:6:15: note: add @available attribute to enclosing generic struct
public struct ModalPresentationButton<Destination: View, Label: View>: View {
^
/Users/admin/builds/h8344Zi3/1/finestructure/swiftpackageindex-builder/spi-builder-workspace/Sources/ModalPresentationView/ModalPresentationButton.swift:6:65: error: 'View' is only available in macOS 10.15 or newer
public struct ModalPresentationButton<Destination: View, Label: View>: View {
^
/Users/admin/builds/h8344Zi3/1/finestructure/swiftpackageindex-builder/spi-builder-workspace/Sources/ModalPresentationView/ModalPresentationButton.swift:6:15: note: add @available attribute to enclosing generic struct
public struct ModalPresentationButton<Destination: View, Label: View>: View {
^
/Users/admin/builds/h8344Zi3/1/finestructure/swiftpackageindex-builder/spi-builder-workspace/Sources/ModalPresentationView/ModalPresentationButton.swift:24:5: error: 'Button' is only available in macOS 10.15 or newer
Button(action: present) {
^
/Users/admin/builds/h8344Zi3/1/finestructure/swiftpackageindex-builder/spi-builder-workspace/Sources/ModalPresentationView/ModalPresentationButton.swift:24:5: note: add 'if #available' version check
Button(action: present) {
^
/Users/admin/builds/h8344Zi3/1/finestructure/swiftpackageindex-builder/spi-builder-workspace/Sources/ModalPresentationView/ModalPresentationButton.swift:23:14: note: add @available attribute to enclosing property
public var body: some View {
^
/Users/admin/builds/h8344Zi3/1/finestructure/swiftpackageindex-builder/spi-builder-workspace/Sources/ModalPresentationView/ModalPresentationButton.swift:6:15: note: add @available attribute to enclosing generic struct
public struct ModalPresentationButton<Destination: View, Label: View>: View {
^
/Users/admin/builds/h8344Zi3/1/finestructure/swiftpackageindex-builder/spi-builder-workspace/Sources/ModalPresentationView/ModalPresentationButton.swift:30:14: error: 'AnyView' is only available in macOS 10.15 or newer
_present(AnyView(destination))
^
/Users/admin/builds/h8344Zi3/1/finestructure/swiftpackageindex-builder/spi-builder-workspace/Sources/ModalPresentationView/ModalPresentationButton.swift:30:14: note: add 'if #available' version check
_present(AnyView(destination))
^
/Users/admin/builds/h8344Zi3/1/finestructure/swiftpackageindex-builder/spi-builder-workspace/Sources/ModalPresentationView/ModalPresentationButton.swift:29:16: note: add @available attribute to enclosing instance method
private func present() {
^
/Users/admin/builds/h8344Zi3/1/finestructure/swiftpackageindex-builder/spi-builder-workspace/Sources/ModalPresentationView/ModalPresentationButton.swift:6:15: note: add @available attribute to enclosing generic struct
public struct ModalPresentationButton<Destination: View, Label: View>: View {
^
[4/5] Compiling ModalPresentationView ModalDismissButton.swift
/Users/admin/builds/h8344Zi3/1/finestructure/swiftpackageindex-builder/spi-builder-workspace/Sources/ModalPresentationView/ModalDismissButton.swift:3:32: error: 'Modified' is not a member type of struct 'SwiftUI.Image'
typealias _ScaledImage = Image.Modified<_EnvironmentKeyWritingModifier<Image.Scale>>
~~~~~ ^
SwiftUI.Image:2:23: note: 'Image' declared here
@frozen public struct Image : Equatable, Sendable {
^
/Users/admin/builds/h8344Zi3/1/finestructure/swiftpackageindex-builder/spi-builder-workspace/Sources/ModalPresentationView/ModalDismissButton.swift:16:4: error: 'Environment' is only available in macOS 10.15 or newer
@Environment(\.modalDismissAction) private var dismiss
^
/Users/admin/builds/h8344Zi3/1/finestructure/swiftpackageindex-builder/spi-builder-workspace/Sources/ModalPresentationView/ModalDismissButton.swift:15:15: note: add @available attribute to enclosing generic struct
public struct ModalDismissButton<Label: View>: View {
^
/Users/admin/builds/h8344Zi3/1/finestructure/swiftpackageindex-builder/spi-builder-workspace/Sources/ModalPresentationView/ModalDismissButton.swift:21:16: error: 'ViewBuilder' is only available in macOS 10.15 or newer
public init(@ViewBuilder _ label: () -> Label) {
^
/Users/admin/builds/h8344Zi3/1/finestructure/swiftpackageindex-builder/spi-builder-workspace/Sources/ModalPresentationView/ModalDismissButton.swift:21:10: note: add @available attribute to enclosing initializer
public init(@ViewBuilder _ label: () -> Label) {
^
/Users/admin/builds/h8344Zi3/1/finestructure/swiftpackageindex-builder/spi-builder-workspace/Sources/ModalPresentationView/ModalDismissButton.swift:15:15: note: add @available attribute to enclosing generic struct
public struct ModalDismissButton<Label: View>: View {
^
/Users/admin/builds/h8344Zi3/1/finestructure/swiftpackageindex-builder/spi-builder-workspace/Sources/ModalPresentationView/ModalDismissButton.swift:25:25: error: 'View' is only available in macOS 10.15 or newer
public var body: some View {
^
/Users/admin/builds/h8344Zi3/1/finestructure/swiftpackageindex-builder/spi-builder-workspace/Sources/ModalPresentationView/ModalDismissButton.swift:25:14: note: add @available attribute to enclosing property
public var body: some View {
^
/Users/admin/builds/h8344Zi3/1/finestructure/swiftpackageindex-builder/spi-builder-workspace/Sources/ModalPresentationView/ModalDismissButton.swift:15:15: note: add @available attribute to enclosing generic struct
public struct ModalDismissButton<Label: View>: View {
^
/Users/admin/builds/h8344Zi3/1/finestructure/swiftpackageindex-builder/spi-builder-workspace/Sources/ModalPresentationView/ModalDismissButton.swift:15:41: error: 'View' is only available in macOS 10.15 or newer
public struct ModalDismissButton<Label: View>: View {
^
/Users/admin/builds/h8344Zi3/1/finestructure/swiftpackageindex-builder/spi-builder-workspace/Sources/ModalPresentationView/ModalDismissButton.swift:15:15: note: add @available attribute to enclosing generic struct
public struct ModalDismissButton<Label: View>: View {
^
/Users/admin/builds/h8344Zi3/1/finestructure/swiftpackageindex-builder/spi-builder-workspace/Sources/ModalPresentationView/ModalDismissButton.swift:26:5: error: 'Button' is only available in macOS 10.15 or newer
Button(action: dismiss) {
^
/Users/admin/builds/h8344Zi3/1/finestructure/swiftpackageindex-builder/spi-builder-workspace/Sources/ModalPresentationView/ModalDismissButton.swift:26:5: note: add 'if #available' version check
Button(action: dismiss) {
^
/Users/admin/builds/h8344Zi3/1/finestructure/swiftpackageindex-builder/spi-builder-workspace/Sources/ModalPresentationView/ModalDismissButton.swift:25:14: note: add @available attribute to enclosing property
public var body: some View {
^
/Users/admin/builds/h8344Zi3/1/finestructure/swiftpackageindex-builder/spi-builder-workspace/Sources/ModalPresentationView/ModalDismissButton.swift:15:15: note: add @available attribute to enclosing generic struct
public struct ModalDismissButton<Label: View>: View {
^
/Users/admin/builds/h8344Zi3/1/finestructure/swiftpackageindex-builder/spi-builder-workspace/Sources/ModalPresentationView/ModalDismissButton.swift:36:10: error: generic struct 'ModalDismissButton' requires that 'Label' conform to 'View'
self.init {
^
/Users/admin/builds/h8344Zi3/1/finestructure/swiftpackageindex-builder/spi-builder-workspace/Sources/ModalPresentationView/ModalDismissButton.swift:15:15: note: where 'Label' = 'Label'
public struct ModalDismissButton<Label: View>: View {
^
/Users/admin/builds/h8344Zi3/1/finestructure/swiftpackageindex-builder/spi-builder-workspace/Sources/ModalPresentationView/ModalDismissButton.swift:36:15: error: cannot convert return expression of type 'ModifiedContent<some View, AccessibilityAttachmentModifier>' to return type 'Label'
self.init {
^
[5/5] Compiling ModalPresentationView ModalPresentationView.swift
/Users/admin/builds/h8344Zi3/1/finestructure/swiftpackageindex-builder/spi-builder-workspace/Sources/ModalPresentationView/ModalPresentationView.swift:8:37: error: 'AnyView' is only available in macOS 10.15 or newer
@State private var presentedView: AnyView? = nil
^
/Users/admin/builds/h8344Zi3/1/finestructure/swiftpackageindex-builder/spi-builder-workspace/Sources/ModalPresentationView/ModalPresentationView.swift:7:15: note: add @available attribute to enclosing generic struct
public struct ModalPresentationView<Content: View>: View {
^
/Users/admin/builds/h8344Zi3/1/finestructure/swiftpackageindex-builder/spi-builder-workspace/Sources/ModalPresentationView/ModalPresentationView.swift:8:4: error: 'State' is only available in macOS 10.15 or newer
@State private var presentedView: AnyView? = nil
^
/Users/admin/builds/h8344Zi3/1/finestructure/swiftpackageindex-builder/spi-builder-workspace/Sources/ModalPresentationView/ModalPresentationView.swift:7:15: note: add @available attribute to enclosing generic struct
public struct ModalPresentationView<Content: View>: View {
^
/Users/admin/builds/h8344Zi3/1/finestructure/swiftpackageindex-builder/spi-builder-workspace/Sources/ModalPresentationView/ModalPresentationView.swift:14:16: error: 'ViewBuilder' is only available in macOS 10.15 or newer
public init(@ViewBuilder _ content: () -> Content) {
^
/Users/admin/builds/h8344Zi3/1/finestructure/swiftpackageindex-builder/spi-builder-workspace/Sources/ModalPresentationView/ModalPresentationView.swift:14:10: note: add @available attribute to enclosing initializer
public init(@ViewBuilder _ content: () -> Content) {
^
/Users/admin/builds/h8344Zi3/1/finestructure/swiftpackageindex-builder/spi-builder-workspace/Sources/ModalPresentationView/ModalPresentationView.swift:7:15: note: add @available attribute to enclosing generic struct
public struct ModalPresentationView<Content: View>: View {
^
/Users/admin/builds/h8344Zi3/1/finestructure/swiftpackageindex-builder/spi-builder-workspace/Sources/ModalPresentationView/ModalPresentationView.swift:18:25: error: 'View' is only available in macOS 10.15 or newer
public var body: some View {
^
/Users/admin/builds/h8344Zi3/1/finestructure/swiftpackageindex-builder/spi-builder-workspace/Sources/ModalPresentationView/ModalPresentationView.swift:18:14: note: add @available attribute to enclosing property
public var body: some View {
^
/Users/admin/builds/h8344Zi3/1/finestructure/swiftpackageindex-builder/spi-builder-workspace/Sources/ModalPresentationView/ModalPresentationView.swift:7:15: note: add @available attribute to enclosing generic struct
public struct ModalPresentationView<Content: View>: View {
^
/Users/admin/builds/h8344Zi3/1/finestructure/swiftpackageindex-builder/spi-builder-workspace/Sources/ModalPresentationView/ModalPresentationView.swift:24:22: error: cannot find type 'Modal' in scope
private var modal: Modal? {
^~~~~
/Users/admin/builds/h8344Zi3/1/finestructure/swiftpackageindex-builder/spi-builder-workspace/Sources/ModalPresentationView/ModalPresentationView.swift:32:32: error: 'AnyView' is only available in macOS 10.15 or newer
private func present(_ view: AnyView) {
^
/Users/admin/builds/h8344Zi3/1/finestructure/swiftpackageindex-builder/spi-builder-workspace/Sources/ModalPresentationView/ModalPresentationView.swift:32:16: note: add @available attribute to enclosing instance method
private func present(_ view: AnyView) {
^
/Users/admin/builds/h8344Zi3/1/finestructure/swiftpackageindex-builder/spi-builder-workspace/Sources/ModalPresentationView/ModalPresentationView.swift:7:15: note: add @available attribute to enclosing generic struct
public struct ModalPresentationView<Content: View>: View {
^
/Users/admin/builds/h8344Zi3/1/finestructure/swiftpackageindex-builder/spi-builder-workspace/Sources/ModalPresentationView/ModalPresentationView.swift:7:46: error: 'View' is only available in macOS 10.15 or newer
public struct ModalPresentationView<Content: View>: View {
^
/Users/admin/builds/h8344Zi3/1/finestructure/swiftpackageindex-builder/spi-builder-workspace/Sources/ModalPresentationView/ModalPresentationView.swift:7:15: note: add @available attribute to enclosing generic struct
public struct ModalPresentationView<Content: View>: View {
^
/Users/admin/builds/h8344Zi3/1/finestructure/swiftpackageindex-builder/spi-builder-workspace/Sources/ModalPresentationView/ModalPresentationView.swift:21:8: error: value of type 'some View' has no member 'presentation'
.presentation(modal)
^~~~~~~~~~~~
/Users/admin/builds/h8344Zi3/1/finestructure/swiftpackageindex-builder/spi-builder-workspace/Sources/ModalPresentationView/ModalPresentationView.swift:33:5: error: setter for 'presentedView' is only available in macOS 10.15 or newer
presentedView = view
^
/Users/admin/builds/h8344Zi3/1/finestructure/swiftpackageindex-builder/spi-builder-workspace/Sources/ModalPresentationView/ModalPresentationView.swift:33:5: note: add 'if #available' version check
presentedView = view
^
/Users/admin/builds/h8344Zi3/1/finestructure/swiftpackageindex-builder/spi-builder-workspace/Sources/ModalPresentationView/ModalPresentationView.swift:32:16: note: add @available attribute to enclosing instance method
private func present(_ view: AnyView) {
^
/Users/admin/builds/h8344Zi3/1/finestructure/swiftpackageindex-builder/spi-builder-workspace/Sources/ModalPresentationView/ModalPresentationView.swift:7:15: note: add @available attribute to enclosing generic struct
public struct ModalPresentationView<Content: View>: View {
^
/Users/admin/builds/h8344Zi3/1/finestructure/swiftpackageindex-builder/spi-builder-workspace/Sources/ModalPresentationView/ModalPresentationView.swift:37:5: error: setter for 'presentedView' is only available in macOS 10.15 or newer
presentedView = nil
^
/Users/admin/builds/h8344Zi3/1/finestructure/swiftpackageindex-builder/spi-builder-workspace/Sources/ModalPresentationView/ModalPresentationView.swift:37:5: note: add 'if #available' version check
presentedView = nil
^
/Users/admin/builds/h8344Zi3/1/finestructure/swiftpackageindex-builder/spi-builder-workspace/Sources/ModalPresentationView/ModalPresentationView.swift:36:16: note: add @available attribute to enclosing instance method
private func dismiss() {
^
/Users/admin/builds/h8344Zi3/1/finestructure/swiftpackageindex-builder/spi-builder-workspace/Sources/ModalPresentationView/ModalPresentationView.swift:7:15: note: add @available attribute to enclosing generic struct
public struct ModalPresentationView<Content: View>: View {
^
error: fatalError
BUILD FAILURE 5.9 macosSpm