Build Information
Failed to build Dialoggy, reference 1.0.4 (9f2594), with Swift 6.0 for macOS (SPM) on 8 Jun 2025 11:44:38 UTC.
Build Command
env DEVELOPER_DIR=/Applications/Xcode-16.2.0.app xcrun swift build --arch arm64Build Log
| `- note: add @available attribute to enclosing extension
24 |
25 | func dialog(_ presentedDialog: Binding<DialogModel?>) -> some View {
/Users/admin/builder/spi-builder-workspace/Sources/Dialoggy/DialogButton.swift:11:16: error: 'LocalizedStringKey' is only available in macOS 10.15 or newer
8 | import SwiftUI
9 |
10 | struct DialogButton: View {
| `- note: add @available attribute to enclosing struct
11 | let title: LocalizedStringKey
| `- error: 'LocalizedStringKey' is only available in macOS 10.15 or newer
12 | let style: DialogButtonStyle
13 | let action: () -> Void
/Users/admin/builder/spi-builder-workspace/Sources/Dialoggy/DialogButton.swift:15:20: error: 'View' is only available in macOS 10.15 or newer
8 | import SwiftUI
9 |
10 | struct DialogButton: View {
| `- note: add @available attribute to enclosing struct
11 | let title: LocalizedStringKey
12 | let style: DialogButtonStyle
13 | let action: () -> Void
14 |
15 | var body: some View {
| | `- error: 'View' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing property
16 | Button(action: action) {
17 | Text(title)
/Users/admin/builder/spi-builder-workspace/Sources/Dialoggy/DialogView.swift:13:6: error: 'Environment' is only available in macOS 10.15 or newer
8 | import SwiftUI
9 |
10 | struct DialogView: View {
| `- note: add @available attribute to enclosing struct
11 | let dialog: DialogModel
12 | let dismiss: () -> Void
13 | @Environment(\.dialogStyle) private var style
| `- error: 'Environment' is only available in macOS 10.15 or newer
14 |
15 | var body: some View {
/Users/admin/builder/spi-builder-workspace/Sources/Dialoggy/DialogView.swift:15:20: error: 'View' is only available in macOS 10.15 or newer
8 | import SwiftUI
9 |
10 | struct DialogView: View {
| `- note: add @available attribute to enclosing struct
11 | let dialog: DialogModel
12 | let dismiss: () -> Void
13 | @Environment(\.dialogStyle) private var style
14 |
15 | var body: some View {
| | `- error: 'View' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing property
16 | VStack(spacing: 12) {
17 | if let image = dialog.image {
/Users/admin/builder/spi-builder-workspace/Sources/Dialoggy/DialogView.swift:59:59: error: 'View' is only available in macOS 10.15 or newer
8 | import SwiftUI
9 |
10 | struct DialogView: View {
| `- note: add @available attribute to enclosing struct
11 | let dialog: DialogModel
12 | let dismiss: () -> Void
:
57 |
58 | @ViewBuilder
59 | private func button(for action: DialogAction) -> some View {
| | `- error: 'View' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing instance method
60 | Button(action: {
61 | dismiss()
/Users/admin/builder/spi-builder-workspace/Sources/Dialoggy/DialogView.swift:58:6: error: 'ViewBuilder' is only available in macOS 10.15 or newer
8 | import SwiftUI
9 |
10 | struct DialogView: View {
| `- note: add @available attribute to enclosing struct
11 | let dialog: DialogModel
12 | let dismiss: () -> Void
:
56 | }
57 |
58 | @ViewBuilder
| `- error: 'ViewBuilder' is only available in macOS 10.15 or newer
59 | private func button(for action: DialogAction) -> some View {
| `- note: add @available attribute to enclosing instance method
60 | Button(action: {
61 | dismiss()
/Users/admin/builder/spi-builder-workspace/Sources/Dialoggy/DialogableViewModifier.swift:13:71: error: 'View' is only available in macOS 10.15 or newer
9 | import Foundation
10 |
11 | public extension View {
| `- note: add @available attribute to enclosing extension
12 |
13 | func dialogable(style: DialogStyleConfig = .defaultValue) -> some View {
| | `- error: 'View' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing instance method
14 | self.modifier(DialogableViewModifier())
15 | .environment(\.dialogStyle, style)
/Users/admin/builder/spi-builder-workspace/Sources/Dialoggy/Style/DialogButtonStyle.swift:40:26: error: 'Color' is only available in macOS 10.15 or newer
8 | import SwiftUI
9 |
10 | public struct DialogButtonStyle {
| `- note: add @available attribute to enclosing struct
11 |
12 | let backgroundColor: Color
:
37 |
38 |
39 | nonisolated(unsafe) public static let primary = DialogButtonStyle(
| `- note: add @available attribute to enclosing static property
40 | backgroundColor: Color.accentColor,
| `- error: 'Color' is only available in macOS 10.15 or newer
41 | foregroundColor: Color.white,
42 | cornerRadius: 12,
/Users/admin/builder/spi-builder-workspace/Sources/Dialoggy/Style/DialogButtonStyle.swift:40:32: error: 'accentColor' is only available in macOS 10.15 or newer
8 | import SwiftUI
9 |
10 | public struct DialogButtonStyle {
| `- note: add @available attribute to enclosing struct
11 |
12 | let backgroundColor: Color
:
37 |
38 |
39 | nonisolated(unsafe) public static let primary = DialogButtonStyle(
| `- note: add @available attribute to enclosing static property
40 | backgroundColor: Color.accentColor,
| `- error: 'accentColor' is only available in macOS 10.15 or newer
41 | foregroundColor: Color.white,
42 | cornerRadius: 12,
/Users/admin/builder/spi-builder-workspace/Sources/Dialoggy/Style/DialogButtonStyle.swift:41:26: error: 'Color' is only available in macOS 10.15 or newer
8 | import SwiftUI
9 |
10 | public struct DialogButtonStyle {
| `- note: add @available attribute to enclosing struct
11 |
12 | let backgroundColor: Color
:
37 |
38 |
39 | nonisolated(unsafe) public static let primary = DialogButtonStyle(
| `- note: add @available attribute to enclosing static property
40 | backgroundColor: Color.accentColor,
41 | foregroundColor: Color.white,
| `- error: 'Color' is only available in macOS 10.15 or newer
42 | cornerRadius: 12,
43 | font: .headline,
/Users/admin/builder/spi-builder-workspace/Sources/Dialoggy/Style/DialogButtonStyle.swift:41:32: error: 'white' is only available in macOS 10.15 or newer
8 | import SwiftUI
9 |
10 | public struct DialogButtonStyle {
| `- note: add @available attribute to enclosing struct
11 |
12 | let backgroundColor: Color
:
37 |
38 |
39 | nonisolated(unsafe) public static let primary = DialogButtonStyle(
| `- note: add @available attribute to enclosing static property
40 | backgroundColor: Color.accentColor,
41 | foregroundColor: Color.white,
| `- error: 'white' is only available in macOS 10.15 or newer
42 | cornerRadius: 12,
43 | font: .headline,
/Users/admin/builder/spi-builder-workspace/Sources/Dialoggy/Style/DialogButtonStyle.swift:43:16: error: 'headline' is only available in macOS 10.15 or newer
8 | import SwiftUI
9 |
10 | public struct DialogButtonStyle {
| `- note: add @available attribute to enclosing struct
11 |
12 | let backgroundColor: Color
:
37 |
38 |
39 | nonisolated(unsafe) public static let primary = DialogButtonStyle(
| `- note: add @available attribute to enclosing static property
40 | backgroundColor: Color.accentColor,
41 | foregroundColor: Color.white,
42 | cornerRadius: 12,
43 | font: .headline,
| `- error: 'headline' is only available in macOS 10.15 or newer
44 | horizontalPadding: 16,
45 | verticalPadding: 10
/Users/admin/builder/spi-builder-workspace/Sources/Dialoggy/Style/DialogButtonStyle.swift:49:26: error: 'Color' is only available in macOS 10.15 or newer
8 | import SwiftUI
9 |
10 | public struct DialogButtonStyle {
| `- note: add @available attribute to enclosing struct
11 |
12 | let backgroundColor: Color
:
46 | )
47 |
48 | nonisolated(unsafe) public static let secondary = DialogButtonStyle(
| `- note: add @available attribute to enclosing static property
49 | backgroundColor: Color.clear,
| `- error: 'Color' is only available in macOS 10.15 or newer
50 | foregroundColor: Color.accentColor,
51 | cornerRadius: 12,
/Users/admin/builder/spi-builder-workspace/Sources/Dialoggy/Style/DialogButtonStyle.swift:49:32: error: 'clear' is only available in macOS 10.15 or newer
8 | import SwiftUI
9 |
10 | public struct DialogButtonStyle {
| `- note: add @available attribute to enclosing struct
11 |
12 | let backgroundColor: Color
:
46 | )
47 |
48 | nonisolated(unsafe) public static let secondary = DialogButtonStyle(
| `- note: add @available attribute to enclosing static property
49 | backgroundColor: Color.clear,
| `- error: 'clear' is only available in macOS 10.15 or newer
50 | foregroundColor: Color.accentColor,
51 | cornerRadius: 12,
/Users/admin/builder/spi-builder-workspace/Sources/Dialoggy/Style/DialogButtonStyle.swift:50:26: error: 'Color' is only available in macOS 10.15 or newer
8 | import SwiftUI
9 |
10 | public struct DialogButtonStyle {
| `- note: add @available attribute to enclosing struct
11 |
12 | let backgroundColor: Color
:
46 | )
47 |
48 | nonisolated(unsafe) public static let secondary = DialogButtonStyle(
| `- note: add @available attribute to enclosing static property
49 | backgroundColor: Color.clear,
50 | foregroundColor: Color.accentColor,
| `- error: 'Color' is only available in macOS 10.15 or newer
51 | cornerRadius: 12,
52 | font: .subheadline,
/Users/admin/builder/spi-builder-workspace/Sources/Dialoggy/Style/DialogButtonStyle.swift:50:32: error: 'accentColor' is only available in macOS 10.15 or newer
8 | import SwiftUI
9 |
10 | public struct DialogButtonStyle {
| `- note: add @available attribute to enclosing struct
11 |
12 | let backgroundColor: Color
:
46 | )
47 |
48 | nonisolated(unsafe) public static let secondary = DialogButtonStyle(
| `- note: add @available attribute to enclosing static property
49 | backgroundColor: Color.clear,
50 | foregroundColor: Color.accentColor,
| `- error: 'accentColor' is only available in macOS 10.15 or newer
51 | cornerRadius: 12,
52 | font: .subheadline,
/Users/admin/builder/spi-builder-workspace/Sources/Dialoggy/Style/DialogButtonStyle.swift:52:16: error: 'subheadline' is only available in macOS 10.15 or newer
8 | import SwiftUI
9 |
10 | public struct DialogButtonStyle {
| `- note: add @available attribute to enclosing struct
11 |
12 | let backgroundColor: Color
:
46 | )
47 |
48 | nonisolated(unsafe) public static let secondary = DialogButtonStyle(
| `- note: add @available attribute to enclosing static property
49 | backgroundColor: Color.clear,
50 | foregroundColor: Color.accentColor,
51 | cornerRadius: 12,
52 | font: .subheadline,
| `- error: 'subheadline' is only available in macOS 10.15 or newer
53 | horizontalPadding: 16,
54 | verticalPadding: 10
/Users/admin/builder/spi-builder-workspace/Sources/Dialoggy/Model/DialogStyleConfig.swift:47:21: error: 'title2' is only available in macOS 11.0 or newer
40 | }
41 |
42 | public extension DialogStyleConfig {
| `- note: add @available attribute to enclosing extension
43 |
44 | static let defaultValue = DialogStyleConfig(
| `- note: add @available attribute to enclosing static property
45 | primaryButtonStyle: DialogButtonStyle.primary,
46 | secondaryButtonStyle: DialogButtonStyle.secondary,
47 | titleFont: .title2.bold(),
| `- error: 'title2' is only available in macOS 11.0 or newer
48 | titleForegroundColor: .primary,
49 | messageFont: .body,
/Users/admin/builder/spi-builder-workspace/Sources/Dialoggy/Model/DialogStyleConfig.swift:47:28: error: 'bold()' is only available in macOS 10.15 or newer
40 | }
41 |
42 | public extension DialogStyleConfig {
| `- note: add @available attribute to enclosing extension
43 |
44 | static let defaultValue = DialogStyleConfig(
| `- note: add @available attribute to enclosing static property
45 | primaryButtonStyle: DialogButtonStyle.primary,
46 | secondaryButtonStyle: DialogButtonStyle.secondary,
47 | titleFont: .title2.bold(),
| `- error: 'bold()' is only available in macOS 10.15 or newer
48 | titleForegroundColor: .primary,
49 | messageFont: .body,
/Users/admin/builder/spi-builder-workspace/Sources/Dialoggy/Model/DialogStyleConfig.swift:48:32: error: 'primary' is only available in macOS 10.15 or newer
40 | }
41 |
42 | public extension DialogStyleConfig {
| `- note: add @available attribute to enclosing extension
43 |
44 | static let defaultValue = DialogStyleConfig(
| `- note: add @available attribute to enclosing static property
45 | primaryButtonStyle: DialogButtonStyle.primary,
46 | secondaryButtonStyle: DialogButtonStyle.secondary,
47 | titleFont: .title2.bold(),
48 | titleForegroundColor: .primary,
| `- error: 'primary' is only available in macOS 10.15 or newer
49 | messageFont: .body,
50 | messageForegroundColor: .secondary,
/Users/admin/builder/spi-builder-workspace/Sources/Dialoggy/Model/DialogStyleConfig.swift:49:23: error: 'body' is only available in macOS 10.15 or newer
40 | }
41 |
42 | public extension DialogStyleConfig {
| `- note: add @available attribute to enclosing extension
43 |
44 | static let defaultValue = DialogStyleConfig(
| `- note: add @available attribute to enclosing static property
45 | primaryButtonStyle: DialogButtonStyle.primary,
46 | secondaryButtonStyle: DialogButtonStyle.secondary,
47 | titleFont: .title2.bold(),
48 | titleForegroundColor: .primary,
49 | messageFont: .body,
| `- error: 'body' is only available in macOS 10.15 or newer
50 | messageForegroundColor: .secondary,
51 | imageSize: CGSize(width: 72, height: 72)
/Users/admin/builder/spi-builder-workspace/Sources/Dialoggy/Model/DialogStyleConfig.swift:50:34: error: 'secondary' is only available in macOS 10.15 or newer
40 | }
41 |
42 | public extension DialogStyleConfig {
| `- note: add @available attribute to enclosing extension
43 |
44 | static let defaultValue = DialogStyleConfig(
| `- note: add @available attribute to enclosing static property
45 | primaryButtonStyle: DialogButtonStyle.primary,
46 | secondaryButtonStyle: DialogButtonStyle.secondary,
:
48 | titleForegroundColor: .primary,
49 | messageFont: .body,
50 | messageForegroundColor: .secondary,
| `- error: 'secondary' is only available in macOS 10.15 or newer
51 | imageSize: CGSize(width: 72, height: 72)
52 | )
/Users/admin/builder/spi-builder-workspace/Sources/Dialoggy/DialogableViewModifier.swift:11:18: error: 'View' is only available in macOS 10.15 or newer
9 | import Foundation
10 |
11 | public extension View {
| | `- error: 'View' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing extension
12 |
13 | func dialogable(style: DialogStyleConfig = .defaultValue) -> some View {
/Users/admin/builder/spi-builder-workspace/Sources/Dialoggy/DialogableViewModifier.swift:20:6: error: 'State' is only available in macOS 10.15 or newer
17 | }
18 |
19 | struct DialogableViewModifier: ViewModifier {
| `- note: add @available attribute to enclosing struct
20 | @State private var currentDialog: DialogModel?
| `- error: 'State' is only available in macOS 10.15 or newer
21 | @Environment(\.dialogStyle) private var style
22 |
/Users/admin/builder/spi-builder-workspace/Sources/Dialoggy/DialogableViewModifier.swift:21:6: error: 'Environment' is only available in macOS 10.15 or newer
17 | }
18 |
19 | struct DialogableViewModifier: ViewModifier {
| `- note: add @available attribute to enclosing struct
20 | @State private var currentDialog: DialogModel?
21 | @Environment(\.dialogStyle) private var style
| `- error: 'Environment' is only available in macOS 10.15 or newer
22 |
23 | var isPresented: Bool {
/Users/admin/builder/spi-builder-workspace/Sources/Dialoggy/DialogableViewModifier.swift:27:41: error: 'View' is only available in macOS 10.15 or newer
17 | }
18 |
19 | struct DialogableViewModifier: ViewModifier {
| `- note: add @available attribute to enclosing struct
20 | @State private var currentDialog: DialogModel?
21 | @Environment(\.dialogStyle) private var style
:
25 | }
26 |
27 | func body(content: Content) -> some View {
| | `- error: 'View' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing instance method
28 | ZStack {
29 | content
/Users/admin/builder/spi-builder-workspace/Sources/Dialoggy/Model/DialogAction.swift:13:16: error: 'LocalizedStringKey' is only available in macOS 10.15 or newer
9 | import SwiftUI
10 |
11 | public struct DialogAction: Identifiable {
| `- note: add @available attribute to enclosing struct
12 | public let id: String
13 | let title: LocalizedStringKey
| `- error: 'LocalizedStringKey' is only available in macOS 10.15 or newer
14 | let style: DialogActionStyle
15 | let completion: (() -> Void)?
/Users/admin/builder/spi-builder-workspace/Sources/Dialoggy/Model/DialogAction.swift:17:24: error: 'LocalizedStringKey' is only available in macOS 10.15 or newer
9 | import SwiftUI
10 |
11 | public struct DialogAction: Identifiable {
| `- note: add @available attribute to enclosing struct
12 | public let id: String
13 | let title: LocalizedStringKey
:
15 | let completion: (() -> Void)?
16 |
17 | public init(title: LocalizedStringKey, style: DialogActionStyle, completion: (() -> Void)?) {
| | `- error: 'LocalizedStringKey' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing initializer
18 | self.id = UUID().uuidString
19 | self.title = title
/Users/admin/builder/spi-builder-workspace/Sources/Dialoggy/Model/DialogModel.swift:13:16: error: 'Image' is only available in macOS 10.15 or newer
9 | import SwiftUI
10 |
11 | public struct DialogModel: Identifiable, Equatable {
| `- note: add @available attribute to enclosing struct
12 | public let id: String
13 | let image: Image?
| `- error: 'Image' is only available in macOS 10.15 or newer
14 | let title: LocalizedStringKey
15 | let message: LocalizedStringKey?
/Users/admin/builder/spi-builder-workspace/Sources/Dialoggy/Model/DialogModel.swift:14:16: error: 'LocalizedStringKey' is only available in macOS 10.15 or newer
9 | import SwiftUI
10 |
11 | public struct DialogModel: Identifiable, Equatable {
| `- note: add @available attribute to enclosing struct
12 | public let id: String
13 | let image: Image?
14 | let title: LocalizedStringKey
| `- error: 'LocalizedStringKey' is only available in macOS 10.15 or newer
15 | let message: LocalizedStringKey?
16 | let actions: [DialogAction]
/Users/admin/builder/spi-builder-workspace/Sources/Dialoggy/Model/DialogModel.swift:15:18: error: 'LocalizedStringKey' is only available in macOS 10.15 or newer
9 | import SwiftUI
10 |
11 | public struct DialogModel: Identifiable, Equatable {
| `- note: add @available attribute to enclosing struct
12 | public let id: String
13 | let image: Image?
14 | let title: LocalizedStringKey
15 | let message: LocalizedStringKey?
| `- error: 'LocalizedStringKey' is only available in macOS 10.15 or newer
16 | let actions: [DialogAction]
17 |
/Users/admin/builder/spi-builder-workspace/Sources/Dialoggy/Model/DialogModel.swift:19:19: error: 'ImageResource' is only available in macOS 14.0 or newer
9 | import SwiftUI
10 |
11 | public struct DialogModel: Identifiable, Equatable {
| `- note: add @available attribute to enclosing struct
12 | public let id: String
13 | let image: Image?
:
16 | let actions: [DialogAction]
17 |
18 | public init(
| `- note: add @available attribute to enclosing initializer
19 | resource: ImageResource?,
| `- error: 'ImageResource' is only available in macOS 14.0 or newer
20 | title: LocalizedStringKey,
21 | message: LocalizedStringKey? = nil,
/Users/admin/builder/spi-builder-workspace/Sources/Dialoggy/Model/DialogModel.swift:20:16: error: 'LocalizedStringKey' is only available in macOS 10.15 or newer
9 | import SwiftUI
10 |
11 | public struct DialogModel: Identifiable, Equatable {
| `- note: add @available attribute to enclosing struct
12 | public let id: String
13 | let image: Image?
:
16 | let actions: [DialogAction]
17 |
18 | public init(
| `- note: add @available attribute to enclosing initializer
19 | resource: ImageResource?,
20 | title: LocalizedStringKey,
| `- error: 'LocalizedStringKey' is only available in macOS 10.15 or newer
21 | message: LocalizedStringKey? = nil,
22 | actions: [DialogAction]
/Users/admin/builder/spi-builder-workspace/Sources/Dialoggy/Model/DialogModel.swift:21:18: error: 'LocalizedStringKey' is only available in macOS 10.15 or newer
9 | import SwiftUI
10 |
11 | public struct DialogModel: Identifiable, Equatable {
| `- note: add @available attribute to enclosing struct
12 | public let id: String
13 | let image: Image?
:
16 | let actions: [DialogAction]
17 |
18 | public init(
| `- note: add @available attribute to enclosing initializer
19 | resource: ImageResource?,
20 | title: LocalizedStringKey,
21 | message: LocalizedStringKey? = nil,
| `- error: 'LocalizedStringKey' is only available in macOS 10.15 or newer
22 | actions: [DialogAction]
23 | ) {
/Users/admin/builder/spi-builder-workspace/Sources/Dialoggy/Model/DialogModel.swift:31:24: error: 'Image' is only available in macOS 10.15 or newer
9 | import SwiftUI
10 |
11 | public struct DialogModel: Identifiable, Equatable {
| `- note: add @available attribute to enclosing struct
12 | public let id: String
13 | let image: Image?
:
29 | }
30 |
31 | public init(image: Image?, title: LocalizedStringKey, message: LocalizedStringKey? = nil, actions: [DialogAction]) {
| | `- error: 'Image' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing initializer
32 | self.id = UUID().uuidString
33 | self.image = image
/Users/admin/builder/spi-builder-workspace/Sources/Dialoggy/Model/DialogModel.swift:31:39: error: 'LocalizedStringKey' is only available in macOS 10.15 or newer
9 | import SwiftUI
10 |
11 | public struct DialogModel: Identifiable, Equatable {
| `- note: add @available attribute to enclosing struct
12 | public let id: String
13 | let image: Image?
:
29 | }
30 |
31 | public init(image: Image?, title: LocalizedStringKey, message: LocalizedStringKey? = nil, actions: [DialogAction]) {
| | `- error: 'LocalizedStringKey' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing initializer
32 | self.id = UUID().uuidString
33 | self.image = image
/Users/admin/builder/spi-builder-workspace/Sources/Dialoggy/Model/DialogModel.swift:31:68: error: 'LocalizedStringKey' is only available in macOS 10.15 or newer
9 | import SwiftUI
10 |
11 | public struct DialogModel: Identifiable, Equatable {
| `- note: add @available attribute to enclosing struct
12 | public let id: String
13 | let image: Image?
:
29 | }
30 |
31 | public init(image: Image?, title: LocalizedStringKey, message: LocalizedStringKey? = nil, actions: [DialogAction]) {
| | `- error: 'LocalizedStringKey' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing initializer
32 | self.id = UUID().uuidString
33 | self.image = image
/Users/admin/builder/spi-builder-workspace/Sources/Dialoggy/Model/DialogStyleConfig.swift:16:20: error: 'Font' is only available in macOS 10.15 or newer
10 |
11 | @MainActor
12 | public struct DialogStyleConfig : Sendable{
| `- note: add @available attribute to enclosing struct
13 |
14 | let primaryButtonStyle: DialogButtonStyle
15 | let secondaryButtonStyle: DialogButtonStyle
16 | let titleFont: Font
| `- error: 'Font' is only available in macOS 10.15 or newer
17 | let titleForegroundColor: Color
18 | let messageFont: Font
/Users/admin/builder/spi-builder-workspace/Sources/Dialoggy/Model/DialogStyleConfig.swift:17:31: error: 'Color' is only available in macOS 10.15 or newer
10 |
11 | @MainActor
12 | public struct DialogStyleConfig : Sendable{
| `- note: add @available attribute to enclosing struct
13 |
14 | let primaryButtonStyle: DialogButtonStyle
15 | let secondaryButtonStyle: DialogButtonStyle
16 | let titleFont: Font
17 | let titleForegroundColor: Color
| `- error: 'Color' is only available in macOS 10.15 or newer
18 | let messageFont: Font
19 | let messageForegroundColor: Color
/Users/admin/builder/spi-builder-workspace/Sources/Dialoggy/Model/DialogStyleConfig.swift:18:22: error: 'Font' is only available in macOS 10.15 or newer
10 |
11 | @MainActor
12 | public struct DialogStyleConfig : Sendable{
| `- note: add @available attribute to enclosing struct
13 |
14 | let primaryButtonStyle: DialogButtonStyle
:
16 | let titleFont: Font
17 | let titleForegroundColor: Color
18 | let messageFont: Font
| `- error: 'Font' is only available in macOS 10.15 or newer
19 | let messageForegroundColor: Color
20 | let imageSize: CGSize
/Users/admin/builder/spi-builder-workspace/Sources/Dialoggy/Model/DialogStyleConfig.swift:19:33: error: 'Color' is only available in macOS 10.15 or newer
10 |
11 | @MainActor
12 | public struct DialogStyleConfig : Sendable{
| `- note: add @available attribute to enclosing struct
13 |
14 | let primaryButtonStyle: DialogButtonStyle
:
17 | let titleForegroundColor: Color
18 | let messageFont: Font
19 | let messageForegroundColor: Color
| `- error: 'Color' is only available in macOS 10.15 or newer
20 | let imageSize: CGSize
21 |
/Users/admin/builder/spi-builder-workspace/Sources/Dialoggy/Model/DialogStyleConfig.swift:25:20: error: 'Font' is only available in macOS 10.15 or newer
10 |
11 | @MainActor
12 | public struct DialogStyleConfig : Sendable{
| `- note: add @available attribute to enclosing struct
13 |
14 | let primaryButtonStyle: DialogButtonStyle
:
20 | let imageSize: CGSize
21 |
22 | public init(
| `- note: add @available attribute to enclosing initializer
23 | primaryButtonStyle: DialogButtonStyle,
24 | secondaryButtonStyle: DialogButtonStyle,
25 | titleFont: Font,
| `- error: 'Font' is only available in macOS 10.15 or newer
26 | titleForegroundColor: Color,
27 | messageFont: Font,
/Users/admin/builder/spi-builder-workspace/Sources/Dialoggy/Model/DialogStyleConfig.swift:26:31: error: 'Color' is only available in macOS 10.15 or newer
10 |
11 | @MainActor
12 | public struct DialogStyleConfig : Sendable{
| `- note: add @available attribute to enclosing struct
13 |
14 | let primaryButtonStyle: DialogButtonStyle
:
20 | let imageSize: CGSize
21 |
22 | public init(
| `- note: add @available attribute to enclosing initializer
23 | primaryButtonStyle: DialogButtonStyle,
24 | secondaryButtonStyle: DialogButtonStyle,
25 | titleFont: Font,
26 | titleForegroundColor: Color,
| `- error: 'Color' is only available in macOS 10.15 or newer
27 | messageFont: Font,
28 | messageForegroundColor: Color,
/Users/admin/builder/spi-builder-workspace/Sources/Dialoggy/Model/DialogStyleConfig.swift:27:22: error: 'Font' is only available in macOS 10.15 or newer
10 |
11 | @MainActor
12 | public struct DialogStyleConfig : Sendable{
| `- note: add @available attribute to enclosing struct
13 |
14 | let primaryButtonStyle: DialogButtonStyle
:
20 | let imageSize: CGSize
21 |
22 | public init(
| `- note: add @available attribute to enclosing initializer
23 | primaryButtonStyle: DialogButtonStyle,
24 | secondaryButtonStyle: DialogButtonStyle,
25 | titleFont: Font,
26 | titleForegroundColor: Color,
27 | messageFont: Font,
| `- error: 'Font' is only available in macOS 10.15 or newer
28 | messageForegroundColor: Color,
29 | imageSize: CGSize
/Users/admin/builder/spi-builder-workspace/Sources/Dialoggy/Model/DialogStyleConfig.swift:28:33: error: 'Color' is only available in macOS 10.15 or newer
10 |
11 | @MainActor
12 | public struct DialogStyleConfig : Sendable{
| `- note: add @available attribute to enclosing struct
13 |
14 | let primaryButtonStyle: DialogButtonStyle
:
20 | let imageSize: CGSize
21 |
22 | public init(
| `- note: add @available attribute to enclosing initializer
23 | primaryButtonStyle: DialogButtonStyle,
24 | secondaryButtonStyle: DialogButtonStyle,
:
26 | titleForegroundColor: Color,
27 | messageFont: Font,
28 | messageForegroundColor: Color,
| `- error: 'Color' is only available in macOS 10.15 or newer
29 | imageSize: CGSize
30 | ) {
/Users/admin/builder/spi-builder-workspace/Sources/Dialoggy/ShowDialogKey.swift:13:37: error: 'Binding' is only available in macOS 10.15 or newer
8 | import SwiftUI
9 |
10 | public struct ShowDialogKey: @preconcurrency EnvironmentKey {
| `- note: add @available attribute to enclosing struct
11 |
12 | @MainActor
13 | public static let defaultValue: Binding<DialogModel?> = .constant(nil)
| | `- error: 'Binding' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing static property
14 | }
15 |
/Users/admin/builder/spi-builder-workspace/Sources/Dialoggy/ShowDialogKey.swift:18:21: error: 'Binding' is only available in macOS 10.15 or newer
14 | }
15 |
16 | extension EnvironmentValues {
| `- note: add @available attribute to enclosing extension
17 |
18 | var showDialog: Binding<DialogModel?> {
| | `- error: 'Binding' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing property
19 | get { self[ShowDialogKey.self] }
20 | set { self[ShowDialogKey.self] = newValue }
/Users/admin/builder/spi-builder-workspace/Sources/Dialoggy/ShowDialogKey.swift:16:11: error: 'EnvironmentValues' is only available in macOS 10.15 or newer
14 | }
15 |
16 | extension EnvironmentValues {
| | `- error: 'EnvironmentValues' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing extension
17 |
18 | var showDialog: Binding<DialogModel?> {
/Users/admin/builder/spi-builder-workspace/Sources/Dialoggy/Style/DialogButtonStyle.swift:12:26: error: 'Color' is only available in macOS 10.15 or newer
8 | import SwiftUI
9 |
10 | public struct DialogButtonStyle {
| `- note: add @available attribute to enclosing struct
11 |
12 | let backgroundColor: Color
| `- error: 'Color' is only available in macOS 10.15 or newer
13 | let borderColor: Color
14 | let foregroundColor: Color
/Users/admin/builder/spi-builder-workspace/Sources/Dialoggy/Style/DialogButtonStyle.swift:13:22: error: 'Color' is only available in macOS 10.15 or newer
8 | import SwiftUI
9 |
10 | public struct DialogButtonStyle {
| `- note: add @available attribute to enclosing struct
11 |
12 | let backgroundColor: Color
13 | let borderColor: Color
| `- error: 'Color' is only available in macOS 10.15 or newer
14 | let foregroundColor: Color
15 | let cornerRadius: CGFloat
/Users/admin/builder/spi-builder-workspace/Sources/Dialoggy/Style/DialogButtonStyle.swift:14:26: error: 'Color' is only available in macOS 10.15 or newer
8 | import SwiftUI
9 |
10 | public struct DialogButtonStyle {
| `- note: add @available attribute to enclosing struct
11 |
12 | let backgroundColor: Color
13 | let borderColor: Color
14 | let foregroundColor: Color
| `- error: 'Color' is only available in macOS 10.15 or newer
15 | let cornerRadius: CGFloat
16 | let font: Font
/Users/admin/builder/spi-builder-workspace/Sources/Dialoggy/Style/DialogButtonStyle.swift:16:15: error: 'Font' is only available in macOS 10.15 or newer
8 | import SwiftUI
9 |
10 | public struct DialogButtonStyle {
| `- note: add @available attribute to enclosing struct
11 |
12 | let backgroundColor: Color
:
14 | let foregroundColor: Color
15 | let cornerRadius: CGFloat
16 | let font: Font
| `- error: 'Font' is only available in macOS 10.15 or newer
17 | let horizontalPadding: CGFloat
18 | let verticalPadding: CGFloat
/Users/admin/builder/spi-builder-workspace/Sources/Dialoggy/Style/DialogButtonStyle.swift:21:26: error: 'Color' is only available in macOS 10.15 or newer
8 | import SwiftUI
9 |
10 | public struct DialogButtonStyle {
| `- note: add @available attribute to enclosing struct
11 |
12 | let backgroundColor: Color
:
18 | let verticalPadding: CGFloat
19 |
20 | public init(
| `- note: add @available attribute to enclosing initializer
21 | backgroundColor: Color,
| `- error: 'Color' is only available in macOS 10.15 or newer
22 | foregroundColor: Color,
23 | borderColor: Color = .clear,
/Users/admin/builder/spi-builder-workspace/Sources/Dialoggy/Style/DialogButtonStyle.swift:22:26: error: 'Color' is only available in macOS 10.15 or newer
8 | import SwiftUI
9 |
10 | public struct DialogButtonStyle {
| `- note: add @available attribute to enclosing struct
11 |
12 | let backgroundColor: Color
:
18 | let verticalPadding: CGFloat
19 |
20 | public init(
| `- note: add @available attribute to enclosing initializer
21 | backgroundColor: Color,
22 | foregroundColor: Color,
| `- error: 'Color' is only available in macOS 10.15 or newer
23 | borderColor: Color = .clear,
24 | cornerRadius: CGFloat,
/Users/admin/builder/spi-builder-workspace/Sources/Dialoggy/Style/DialogButtonStyle.swift:23:22: error: 'Color' is only available in macOS 10.15 or newer
8 | import SwiftUI
9 |
10 | public struct DialogButtonStyle {
| `- note: add @available attribute to enclosing struct
11 |
12 | let backgroundColor: Color
:
18 | let verticalPadding: CGFloat
19 |
20 | public init(
| `- note: add @available attribute to enclosing initializer
21 | backgroundColor: Color,
22 | foregroundColor: Color,
23 | borderColor: Color = .clear,
| `- error: 'Color' is only available in macOS 10.15 or newer
24 | cornerRadius: CGFloat,
25 | font: Font,
/Users/admin/builder/spi-builder-workspace/Sources/Dialoggy/Style/DialogButtonStyle.swift:25:15: error: 'Font' is only available in macOS 10.15 or newer
8 | import SwiftUI
9 |
10 | public struct DialogButtonStyle {
| `- note: add @available attribute to enclosing struct
11 |
12 | let backgroundColor: Color
:
18 | let verticalPadding: CGFloat
19 |
20 | public init(
| `- note: add @available attribute to enclosing initializer
21 | backgroundColor: Color,
22 | foregroundColor: Color,
23 | borderColor: Color = .clear,
24 | cornerRadius: CGFloat,
25 | font: Font,
| `- error: 'Font' is only available in macOS 10.15 or newer
26 | horizontalPadding: CGFloat,
27 | verticalPadding: CGFloat
/Users/admin/builder/spi-builder-workspace/Sources/Dialoggy/Style/DialogButtonStyle.swift:23:31: error: 'clear' is only available in macOS 10.15 or newer
8 | import SwiftUI
9 |
10 | public struct DialogButtonStyle {
| `- note: add @available attribute to enclosing struct
11 |
12 | let backgroundColor: Color
:
18 | let verticalPadding: CGFloat
19 |
20 | public init(
| `- note: add @available attribute to enclosing initializer
21 | backgroundColor: Color,
22 | foregroundColor: Color,
23 | borderColor: Color = .clear,
| `- error: 'clear' is only available in macOS 10.15 or newer
24 | cornerRadius: CGFloat,
25 | font: Font,
/Users/admin/builder/spi-builder-workspace/Sources/Dialoggy/Style/DialogStyleKey.swift:16:11: error: 'EnvironmentValues' is only available in macOS 10.15 or newer
14 | }
15 |
16 | extension EnvironmentValues {
| | `- error: 'EnvironmentValues' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing extension
17 |
18 | var dialogStyle: DialogStyleConfig {
[4/13] Compiling Dialoggy DialogAction.swift
/Users/admin/builder/spi-builder-workspace/Sources/Dialoggy/Model/DialogAction.swift:13:16: error: 'LocalizedStringKey' is only available in macOS 10.15 or newer
9 | import SwiftUI
10 |
11 | public struct DialogAction: Identifiable {
| `- note: add @available attribute to enclosing struct
12 | public let id: String
13 | let title: LocalizedStringKey
| `- error: 'LocalizedStringKey' is only available in macOS 10.15 or newer
14 | let style: DialogActionStyle
15 | let completion: (() -> Void)?
/Users/admin/builder/spi-builder-workspace/Sources/Dialoggy/Model/DialogAction.swift:17:24: error: 'LocalizedStringKey' is only available in macOS 10.15 or newer
9 | import SwiftUI
10 |
11 | public struct DialogAction: Identifiable {
| `- note: add @available attribute to enclosing struct
12 | public let id: String
13 | let title: LocalizedStringKey
:
15 | let completion: (() -> Void)?
16 |
17 | public init(title: LocalizedStringKey, style: DialogActionStyle, completion: (() -> Void)?) {
| | `- error: 'LocalizedStringKey' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing initializer
18 | self.id = UUID().uuidString
19 | self.title = title
[5/13] Compiling Dialoggy DialogView.swift
/Users/admin/builder/spi-builder-workspace/Sources/Dialoggy/DialogView.swift:13:6: error: 'Environment' is only available in macOS 10.15 or newer
8 | import SwiftUI
9 |
10 | struct DialogView: View {
| `- note: add @available attribute to enclosing struct
11 | let dialog: DialogModel
12 | let dismiss: () -> Void
13 | @Environment(\.dialogStyle) private var style
| `- error: 'Environment' is only available in macOS 10.15 or newer
14 |
15 | var body: some View {
/Users/admin/builder/spi-builder-workspace/Sources/Dialoggy/DialogView.swift:15:20: error: 'View' is only available in macOS 10.15 or newer
8 | import SwiftUI
9 |
10 | struct DialogView: View {
| `- note: add @available attribute to enclosing struct
11 | let dialog: DialogModel
12 | let dismiss: () -> Void
13 | @Environment(\.dialogStyle) private var style
14 |
15 | var body: some View {
| | `- error: 'View' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing property
16 | VStack(spacing: 12) {
17 | if let image = dialog.image {
/Users/admin/builder/spi-builder-workspace/Sources/Dialoggy/DialogView.swift:59:59: error: 'View' is only available in macOS 10.15 or newer
8 | import SwiftUI
9 |
10 | struct DialogView: View {
| `- note: add @available attribute to enclosing struct
11 | let dialog: DialogModel
12 | let dismiss: () -> Void
:
57 |
58 | @ViewBuilder
59 | private func button(for action: DialogAction) -> some View {
| | `- error: 'View' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing instance method
60 | Button(action: {
61 | dismiss()
/Users/admin/builder/spi-builder-workspace/Sources/Dialoggy/DialogView.swift:58:6: error: 'ViewBuilder' is only available in macOS 10.15 or newer
8 | import SwiftUI
9 |
10 | struct DialogView: View {
| `- note: add @available attribute to enclosing struct
11 | let dialog: DialogModel
12 | let dismiss: () -> Void
:
56 | }
57 |
58 | @ViewBuilder
| `- error: 'ViewBuilder' is only available in macOS 10.15 or newer
59 | private func button(for action: DialogAction) -> some View {
| `- note: add @available attribute to enclosing instance method
60 | Button(action: {
61 | dismiss()
/Users/admin/builder/spi-builder-workspace/Sources/Dialoggy/DialogView.swift:16:9: error: 'VStack' is only available in macOS 10.15 or newer
8 | import SwiftUI
9 |
10 | struct DialogView: View {
| `- note: add @available attribute to enclosing struct
11 | let dialog: DialogModel
12 | let dismiss: () -> Void
13 | @Environment(\.dialogStyle) private var style
14 |
15 | var body: some View {
| `- note: add @available attribute to enclosing property
16 | VStack(spacing: 12) {
| |- error: 'VStack' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
17 | if let image = dialog.image {
18 | image
/Users/admin/builder/spi-builder-workspace/Sources/Dialoggy/DialogView.swift:16:29: error: conformance of 'ForEach<Data, ID, Content>' to 'View' is only available in macOS 10.15 or newer
8 | import SwiftUI
9 |
10 | struct DialogView: View {
| `- note: add @available attribute to enclosing struct
11 | let dialog: DialogModel
12 | let dismiss: () -> Void
13 | @Environment(\.dialogStyle) private var style
14 |
15 | var body: some View {
| `- note: add @available attribute to enclosing property
16 | VStack(spacing: 12) {
| |- error: conformance of 'ForEach<Data, ID, Content>' to 'View' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
17 | if let image = dialog.image {
18 | image
/Users/admin/builder/spi-builder-workspace/Sources/Dialoggy/DialogView.swift:19:22: error: 'resizable(capInsets:resizingMode:)' is only available in macOS 10.15 or newer
8 | import SwiftUI
9 |
10 | struct DialogView: View {
| `- note: add @available attribute to enclosing struct
11 | let dialog: DialogModel
12 | let dismiss: () -> Void
13 | @Environment(\.dialogStyle) private var style
14 |
15 | var body: some View {
| `- note: add @available attribute to enclosing property
16 | VStack(spacing: 12) {
17 | if let image = dialog.image {
18 | image
19 | .resizable()
| |- error: 'resizable(capInsets:resizingMode:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
20 | .scaledToFit()
21 | .frame(width: style.imageSize.width, height: style.imageSize.height)
/Users/admin/builder/spi-builder-workspace/Sources/Dialoggy/DialogView.swift:20:22: error: 'scaledToFit()' is only available in macOS 10.15 or newer
8 | import SwiftUI
9 |
10 | struct DialogView: View {
| `- note: add @available attribute to enclosing struct
11 | let dialog: DialogModel
12 | let dismiss: () -> Void
13 | @Environment(\.dialogStyle) private var style
14 |
15 | var body: some View {
| `- note: add @available attribute to enclosing property
16 | VStack(spacing: 12) {
17 | if let image = dialog.image {
18 | image
19 | .resizable()
20 | .scaledToFit()
| |- error: 'scaledToFit()' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
21 | .frame(width: style.imageSize.width, height: style.imageSize.height)
22 | }
/Users/admin/builder/spi-builder-workspace/Sources/Dialoggy/DialogView.swift:21:22: error: 'frame(width:height:alignment:)' is only available in macOS 10.15 or newer
8 | import SwiftUI
9 |
10 | struct DialogView: View {
| `- note: add @available attribute to enclosing struct
11 | let dialog: DialogModel
12 | let dismiss: () -> Void
13 | @Environment(\.dialogStyle) private var style
14 |
15 | var body: some View {
| `- note: add @available attribute to enclosing property
16 | VStack(spacing: 12) {
17 | if let image = dialog.image {
:
19 | .resizable()
20 | .scaledToFit()
21 | .frame(width: style.imageSize.width, height: style.imageSize.height)
| |- error: 'frame(width:height:alignment:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
22 | }
23 |
/Users/admin/builder/spi-builder-workspace/Sources/Dialoggy/DialogView.swift:17:41: error: 'buildIf' is only available in macOS 10.15 or newer
8 | import SwiftUI
9 |
10 | struct DialogView: View {
| `- note: add @available attribute to enclosing struct
11 | let dialog: DialogModel
12 | let dismiss: () -> Void
13 | @Environment(\.dialogStyle) private var style
14 |
15 | var body: some View {
| `- note: add @available attribute to enclosing property
16 | VStack(spacing: 12) {
17 | if let image = dialog.image {
| |- error: 'buildIf' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
18 | image
19 | .resizable()
/Users/admin/builder/spi-builder-workspace/Sources/Dialoggy/DialogView.swift:22:13: error: 'buildIf' is only available in macOS 10.15 or newer
8 | import SwiftUI
9 |
10 | struct DialogView: View {
| `- note: add @available attribute to enclosing struct
11 | let dialog: DialogModel
12 | let dismiss: () -> Void
13 | @Environment(\.dialogStyle) private var style
14 |
15 | var body: some View {
| `- note: add @available attribute to enclosing property
16 | VStack(spacing: 12) {
17 | if let image = dialog.image {
:
20 | .scaledToFit()
21 | .frame(width: style.imageSize.width, height: style.imageSize.height)
22 | }
| |- error: 'buildIf' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
23 |
24 | VStack(spacing: 8) {
/Users/admin/builder/spi-builder-workspace/Sources/Dialoggy/DialogView.swift:24:13: error: 'VStack' is only available in macOS 10.15 or newer
8 | import SwiftUI
9 |
10 | struct DialogView: View {
| `- note: add @available attribute to enclosing struct
11 | let dialog: DialogModel
12 | let dismiss: () -> Void
13 | @Environment(\.dialogStyle) private var style
14 |
15 | var body: some View {
| `- note: add @available attribute to enclosing property
16 | VStack(spacing: 12) {
17 | if let image = dialog.image {
:
22 | }
23 |
24 | VStack(spacing: 8) {
| |- error: 'VStack' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
25 | Text(dialog.title)
26 | .font(style.titleFont)
/Users/admin/builder/spi-builder-workspace/Sources/Dialoggy/DialogView.swift:25:17: error: 'Text' is only available in macOS 10.15 or newer
8 | import SwiftUI
9 |
10 | struct DialogView: View {
| `- note: add @available attribute to enclosing struct
11 | let dialog: DialogModel
12 | let dismiss: () -> Void
13 | @Environment(\.dialogStyle) private var style
14 |
15 | var body: some View {
| `- note: add @available attribute to enclosing property
16 | VStack(spacing: 12) {
17 | if let image = dialog.image {
:
23 |
24 | VStack(spacing: 8) {
25 | Text(dialog.title)
| |- error: 'Text' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
26 | .font(style.titleFont)
27 | .foregroundStyle(style.titleForegroundColor)
/Users/admin/builder/spi-builder-workspace/Sources/Dialoggy/DialogView.swift:25:17: error: 'init(_:tableName:bundle:comment:)' is only available in macOS 10.15 or newer
8 | import SwiftUI
9 |
10 | struct DialogView: View {
| `- note: add @available attribute to enclosing struct
11 | let dialog: DialogModel
12 | let dismiss: () -> Void
13 | @Environment(\.dialogStyle) private var style
14 |
15 | var body: some View {
| `- note: add @available attribute to enclosing property
16 | VStack(spacing: 12) {
17 | if let image = dialog.image {
:
23 |
24 | VStack(spacing: 8) {
25 | Text(dialog.title)
| |- error: 'init(_:tableName:bundle:comment:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
26 | .font(style.titleFont)
27 | .foregroundStyle(style.titleForegroundColor)
/Users/admin/builder/spi-builder-workspace/Sources/Dialoggy/DialogView.swift:26:22: error: 'font' is only available in macOS 10.15 or newer
8 | import SwiftUI
9 |
10 | struct DialogView: View {
| `- note: add @available attribute to enclosing struct
11 | let dialog: DialogModel
12 | let dismiss: () -> Void
13 | @Environment(\.dialogStyle) private var style
14 |
15 | var body: some View {
| `- note: add @available attribute to enclosing property
16 | VStack(spacing: 12) {
17 | if let image = dialog.image {
:
24 | VStack(spacing: 8) {
25 | Text(dialog.title)
26 | .font(style.titleFont)
| |- error: 'font' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
27 | .foregroundStyle(style.titleForegroundColor)
28 | .multilineTextAlignment(.center)
/Users/admin/builder/spi-builder-workspace/Sources/Dialoggy/DialogView.swift:27:22: error: 'foregroundStyle' is only available in macOS 14.0 or newer
8 | import SwiftUI
9 |
10 | struct DialogView: View {
| `- note: add @available attribute to enclosing struct
11 | let dialog: DialogModel
12 | let dismiss: () -> Void
13 | @Environment(\.dialogStyle) private var style
14 |
15 | var body: some View {
| `- note: add @available attribute to enclosing property
16 | VStack(spacing: 12) {
17 | if let image = dialog.image {
:
25 | Text(dialog.title)
26 | .font(style.titleFont)
27 | .foregroundStyle(style.titleForegroundColor)
| |- error: 'foregroundStyle' is only available in macOS 14.0 or newer
| `- note: add 'if #available' version check
28 | .multilineTextAlignment(.center)
29 |
/Users/admin/builder/spi-builder-workspace/Sources/Dialoggy/DialogView.swift:28:22: error: 'multilineTextAlignment' is only available in macOS 10.15 or newer
8 | import SwiftUI
9 |
10 | struct DialogView: View {
| `- note: add @available attribute to enclosing struct
11 | let dialog: DialogModel
12 | let dismiss: () -> Void
13 | @Environment(\.dialogStyle) private var style
14 |
15 | var body: some View {
| `- note: add @available attribute to enclosing property
16 | VStack(spacing: 12) {
17 | if let image = dialog.image {
:
26 | .font(style.titleFont)
27 | .foregroundStyle(style.titleForegroundColor)
28 | .multilineTextAlignment(.center)
| |- error: 'multilineTextAlignment' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
29 |
30 | if let message = dialog.message {
/Users/admin/builder/spi-builder-workspace/Sources/Dialoggy/DialogView.swift:31:21: error: 'Text' is only available in macOS 10.15 or newer
8 | import SwiftUI
9 |
10 | struct DialogView: View {
| `- note: add @available attribute to enclosing struct
11 | let dialog: DialogModel
12 | let dismiss: () -> Void
13 | @Environment(\.dialogStyle) private var style
14 |
15 | var body: some View {
| `- note: add @available attribute to enclosing property
16 | VStack(spacing: 12) {
17 | if let image = dialog.image {
:
29 |
30 | if let message = dialog.message {
31 | Text(message)
| |- error: 'Text' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
32 | .font(style.messageFont)
33 | .foregroundStyle(style.messageForegroundColor)
/Users/admin/builder/spi-builder-workspace/Sources/Dialoggy/DialogView.swift:31:21: error: 'init(_:tableName:bundle:comment:)' is only available in macOS 10.15 or newer
8 | import SwiftUI
9 |
10 | struct DialogView: View {
| `- note: add @available attribute to enclosing struct
11 | let dialog: DialogModel
12 | let dismiss: () -> Void
13 | @Environment(\.dialogStyle) private var style
14 |
15 | var body: some View {
| `- note: add @available attribute to enclosing property
16 | VStack(spacing: 12) {
17 | if let image = dialog.image {
:
29 |
30 | if let message = dialog.message {
31 | Text(message)
| |- error: 'init(_:tableName:bundle:comment:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
32 | .font(style.messageFont)
33 | .foregroundStyle(style.messageForegroundColor)
/Users/admin/builder/spi-builder-workspace/Sources/Dialoggy/DialogView.swift:32:26: error: 'font' is only available in macOS 10.15 or newer
8 | import SwiftUI
9 |
10 | struct DialogView: View {
| `- note: add @available attribute to enclosing struct
11 | let dialog: DialogModel
12 | let dismiss: () -> Void
13 | @Environment(\.dialogStyle) private var style
14 |
15 | var body: some View {
| `- note: add @available attribute to enclosing property
16 | VStack(spacing: 12) {
17 | if let image = dialog.image {
:
30 | if let message = dialog.message {
31 | Text(message)
32 | .font(style.messageFont)
| |- error: 'font' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
33 | .foregroundStyle(style.messageForegroundColor)
34 | .multilineTextAlignment(.center)
/Users/admin/builder/spi-builder-workspace/Sources/Dialoggy/DialogView.swift:33:26: error: 'foregroundStyle' is only available in macOS 14.0 or newer
8 | import SwiftUI
9 |
10 | struct DialogView: View {
| `- note: add @available attribute to enclosing struct
11 | let dialog: DialogModel
12 | let dismiss: () -> Void
13 | @Environment(\.dialogStyle) private var style
14 |
15 | var body: some View {
| `- note: add @available attribute to enclosing property
16 | VStack(spacing: 12) {
17 | if let image = dialog.image {
:
31 | Text(message)
32 | .font(style.messageFont)
33 | .foregroundStyle(style.messageForegroundColor)
| |- error: 'foregroundStyle' is only available in macOS 14.0 or newer
| `- note: add 'if #available' version check
34 | .multilineTextAlignment(.center)
35 | }
/Users/admin/builder/spi-builder-workspace/Sources/Dialoggy/DialogView.swift:34:26: error: 'multilineTextAlignment' is only available in macOS 10.15 or newer
8 | import SwiftUI
9 |
10 | struct DialogView: View {
| `- note: add @available attribute to enclosing struct
11 | let dialog: DialogModel
12 | let dismiss: () -> Void
13 | @Environment(\.dialogStyle) private var style
14 |
15 | var body: some View {
| `- note: add @available attribute to enclosing property
16 | VStack(spacing: 12) {
17 | if let image = dialog.image {
:
32 | .font(style.messageFont)
33 | .foregroundStyle(style.messageForegroundColor)
34 | .multilineTextAlignment(.center)
| |- error: 'multilineTextAlignment' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
35 | }
36 |
/Users/admin/builder/spi-builder-workspace/Sources/Dialoggy/DialogView.swift:30:49: error: 'buildIf' is only available in macOS 10.15 or newer
8 | import SwiftUI
9 |
10 | struct DialogView: View {
| `- note: add @available attribute to enclosing struct
11 | let dialog: DialogModel
12 | let dismiss: () -> Void
13 | @Environment(\.dialogStyle) private var style
14 |
15 | var body: some View {
| `- note: add @available attribute to enclosing property
16 | VStack(spacing: 12) {
17 | if let image = dialog.image {
:
28 | .multilineTextAlignment(.center)
29 |
30 | if let message = dialog.message {
| |- error: 'buildIf' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
31 | Text(message)
32 | .font(style.messageFont)
/Users/admin/builder/spi-builder-workspace/Sources/Dialoggy/DialogView.swift:35:17: error: 'buildIf' is only available in macOS 10.15 or newer
8 | import SwiftUI
9 |
10 | struct DialogView: View {
| `- note: add @available attribute to enclosing struct
11 | let dialog: DialogModel
12 | let dismiss: () -> Void
13 | @Environment(\.dialogStyle) private var style
14 |
15 | var body: some View {
| `- note: add @available attribute to enclosing property
16 | VStack(spacing: 12) {
17 | if let image = dialog.image {
:
33 | .foregroundStyle(style.messageForegroundColor)
34 | .multilineTextAlignment(.center)
35 | }
| |- error: 'buildIf' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
36 |
37 | }
/Users/admin/builder/spi-builder-workspace/Sources/Dialoggy/DialogView.swift:24:32: error: conformance of 'Optional<Wrapped>' to 'View' is only available in macOS 10.15 or newer
8 | import SwiftUI
9 |
10 | struct DialogView: View {
| `- note: add @available attribute to enclosing struct
11 | let dialog: DialogModel
12 | let dismiss: () -> Void
13 | @Environment(\.dialogStyle) private var style
14 |
15 | var body: some View {
| `- note: add @available attribute to enclosing property
16 | VStack(spacing: 12) {
17 | if let image = dialog.image {
:
22 | }
23 |
24 | VStack(spacing: 8) {
| |- error: conformance of 'Optional<Wrapped>' to 'View' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
25 | Text(dialog.title)
26 | .font(style.titleFont)
/Users/admin/builder/spi-builder-workspace/Sources/Dialoggy/DialogView.swift:39:13: error: 'VStack' is only available in macOS 10.15 or newer
8 | import SwiftUI
9 |
10 | struct DialogView: View {
| `- note: add @available attribute to enclosing struct
11 | let dialog: DialogModel
12 | let dismiss: () -> Void
13 | @Environment(\.dialogStyle) private var style
14 |
15 | var body: some View {
| `- note: add @available attribute to enclosing property
16 | VStack(spacing: 12) {
17 | if let image = dialog.image {
:
37 | }
38 |
39 | VStack(spacing: 18) {
| |- error: 'VStack' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
40 | ForEach(dialog.actions) { action in
41 | DialogButton(
/Users/admin/builder/spi-builder-workspace/Sources/Dialoggy/DialogView.swift:39:13: error: conformance of 'ForEach<Data, ID, Content>' to 'View' is only available in macOS 10.15 or newer
8 | import SwiftUI
9 |
10 | struct DialogView: View {
| `- note: add @available attribute to enclosing struct
11 | let dialog: DialogModel
12 | let dismiss: () -> Void
13 | @Environment(\.dialogStyle) private var style
14 |
15 | var body: some View {
| `- note: add @available attribute to enclosing property
16 | VStack(spacing: 12) {
17 | if let image = dialog.image {
:
37 | }
38 |
39 | VStack(spacing: 18) {
| |- error: conformance of 'ForEach<Data, ID, Content>' to 'View' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
40 | ForEach(dialog.actions) { action in
41 | DialogButton(
/Users/admin/builder/spi-builder-workspace/Sources/Dialoggy/DialogView.swift:40:17: error: conformance of 'ForEach<Data, ID, Content>' to 'View' is only available in macOS 10.15 or newer
8 | import SwiftUI
9 |
10 | struct DialogView: View {
| `- note: add @available attribute to enclosing struct
11 | let dialog: DialogModel
12 | let dismiss: () -> Void
13 | @Environment(\.dialogStyle) private var style
14 |
15 | var body: some View {
| `- note: add @available attribute to enclosing property
16 | VStack(spacing: 12) {
17 | if let image = dialog.image {
:
38 |
39 | VStack(spacing: 18) {
40 | ForEach(dialog.actions) { action in
| |- error: conformance of 'ForEach<Data, ID, Content>' to 'View' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
41 | DialogButton(
42 | title: action.title,
/Users/admin/builder/spi-builder-workspace/Sources/Dialoggy/DialogView.swift:40:17: error: 'ForEach' is only available in macOS 10.15 or newer
8 | import SwiftUI
9 |
10 | struct DialogView: View {
| `- note: add @available attribute to enclosing struct
11 | let dialog: DialogModel
12 | let dismiss: () -> Void
13 | @Environment(\.dialogStyle) private var style
14 |
15 | var body: some View {
| `- note: add @available attribute to enclosing property
16 | VStack(spacing: 12) {
17 | if let image = dialog.image {
:
38 |
39 | VStack(spacing: 18) {
40 | ForEach(dialog.actions) { action in
| |- error: 'ForEach' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
41 | DialogButton(
42 | title: action.title,
/Users/admin/builder/spi-builder-workspace/Sources/Dialoggy/DialogView.swift:40:17: error: 'init(_:content:)' is only available in macOS 10.15 or newer
8 | import SwiftUI
9 |
10 | struct DialogView: View {
| `- note: add @available attribute to enclosing struct
11 | let dialog: DialogModel
12 | let dismiss: () -> Void
13 | @Environment(\.dialogStyle) private var style
14 |
15 | var body: some View {
| `- note: add @available attribute to enclosing property
16 | VStack(spacing: 12) {
17 | if let image = dialog.image {
:
38 |
39 | VStack(spacing: 18) {
40 | ForEach(dialog.actions) { action in
| |- error: 'init(_:content:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
41 | DialogButton(
42 | title: action.title,
/Users/admin/builder/spi-builder-workspace/Sources/Dialoggy/DialogView.swift:39:33: error: conformance of 'ForEach<Data, ID, Content>' to 'View' is only available in macOS 10.15 or newer
8 | import SwiftUI
9 |
10 | struct DialogView: View {
| `- note: add @available attribute to enclosing struct
11 | let dialog: DialogModel
12 | let dismiss: () -> Void
13 | @Environment(\.dialogStyle) private var style
14 |
15 | var body: some View {
| `- note: add @available attribute to enclosing property
16 | VStack(spacing: 12) {
17 | if let image = dialog.image {
:
37 | }
38 |
39 | VStack(spacing: 18) {
| |- error: conformance of 'ForEach<Data, ID, Content>' to 'View' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
40 | ForEach(dialog.actions) { action in
41 | DialogButton(
/Users/admin/builder/spi-builder-workspace/Sources/Dialoggy/DialogView.swift:50:14: error: 'padding' is only available in macOS 10.15 or newer
8 | import SwiftUI
9 |
10 | struct DialogView: View {
| `- note: add @available attribute to enclosing struct
11 | let dialog: DialogModel
12 | let dismiss: () -> Void
13 | @Environment(\.dialogStyle) private var style
14 |
15 | var body: some View {
| `- note: add @available attribute to enclosing property
16 | VStack(spacing: 12) {
17 | if let image = dialog.image {
:
48 | }
49 | }
50 | .padding(.top, 16)
| |- error: 'padding' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
51 | }
52 | .padding(.horizontal, 20)
/Users/admin/builder/spi-builder-workspace/Sources/Dialoggy/DialogView.swift:16:29: error: conformance of 'Optional<Wrapped>' to 'View' is only available in macOS 10.15 or newer
8 | import SwiftUI
9 |
10 | struct DialogView: View {
| `- note: add @available attribute to enclosing struct
11 | let dialog: DialogModel
12 | let dismiss: () -> Void
13 | @Environment(\.dialogStyle) private var style
14 |
15 | var body: some View {
| `- note: add @available attribute to enclosing property
16 | VStack(spacing: 12) {
| |- error: conformance of 'Optional<Wrapped>' to 'View' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
17 | if let image = dialog.image {
18 | image
/Users/admin/builder/spi-builder-workspace/Sources/Dialoggy/DialogView.swift:52:10: error: 'padding' is only available in macOS 10.15 or newer
8 | import SwiftUI
9 |
10 | struct DialogView: View {
| `- note: add @available attribute to enclosing struct
11 | let dialog: DialogModel
12 | let dismiss: () -> Void
13 | @Environment(\.dialogStyle) private var style
14 |
15 | var body: some View {
| `- note: add @available attribute to enclosing property
16 | VStack(spacing: 12) {
17 | if let image = dialog.image {
:
50 | .padding(.top, 16)
51 | }
52 | .padding(.horizontal, 20)
| |- error: 'padding' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
53 | .padding(.vertical, 16)
54 | .background(Color.white)
/Users/admin/builder/spi-builder-workspace/Sources/Dialoggy/DialogView.swift:53:10: error: 'padding' is only available in macOS 10.15 or newer
8 | import SwiftUI
9 |
10 | struct DialogView: View {
| `- note: add @available attribute to enclosing struct
11 | let dialog: DialogModel
12 | let dismiss: () -> Void
13 | @Environment(\.dialogStyle) private var style
14 |
15 | var body: some View {
| `- note: add @available attribute to enclosing property
16 | VStack(spacing: 12) {
17 | if let image = dialog.image {
:
51 | }
52 | .padding(.horizontal, 20)
53 | .padding(.vertical, 16)
| |- error: 'padding' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
54 | .background(Color.white)
55 | .cornerRadius(24)
/Users/admin/builder/spi-builder-workspace/Sources/Dialoggy/DialogView.swift:54:10: error: 'background(_:ignoresSafeAreaEdges:)' is only available in macOS 12.0 or newer
8 | import SwiftUI
9 |
10 | struct DialogView: View {
| `- note: add @available attribute to enclosing struct
11 | let dialog: DialogModel
12 | let dismiss: () -> Void
13 | @Environment(\.dialogStyle) private var style
14 |
15 | var body: some View {
| `- note: add @available attribute to enclosing property
16 | VStack(spacing: 12) {
17 | if let image = dialog.image {
:
52 | .padding(.horizontal, 20)
53 | .padding(.vertical, 16)
54 | .background(Color.white)
| |- error: 'background(_:ignoresSafeAreaEdges:)' is only available in macOS 12.0 or newer
| `- note: add 'if #available' version check
55 | .cornerRadius(24)
56 | }
/Users/admin/builder/spi-builder-workspace/Sources/Dialoggy/DialogView.swift:54:21: error: 'Color' is only available in macOS 10.15 or newer
8 | import SwiftUI
9 |
10 | struct DialogView: View {
| `- note: add @available attribute to enclosing struct
11 | let dialog: DialogModel
12 | let dismiss: () -> Void
13 | @Environment(\.dialogStyle) private var style
14 |
15 | var body: some View {
| `- note: add @available attribute to enclosing property
16 | VStack(spacing: 12) {
17 | if let image = dialog.image {
:
52 | .padding(.horizontal, 20)
53 | .padding(.vertical, 16)
54 | .background(Color.white)
| |- error: 'Color' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
55 | .cornerRadius(24)
56 | }
/Users/admin/builder/spi-builder-workspace/Sources/Dialoggy/DialogView.swift:54:27: error: 'white' is only available in macOS 10.15 or newer
8 | import SwiftUI
9 |
10 | struct DialogView: View {
| `- note: add @available attribute to enclosing struct
11 | let dialog: DialogModel
12 | let dismiss: () -> Void
13 | @Environment(\.dialogStyle) private var style
14 |
15 | var body: some View {
| `- note: add @available attribute to enclosing property
16 | VStack(spacing: 12) {
17 | if let image = dialog.image {
:
52 | .padding(.horizontal, 20)
53 | .padding(.vertical, 16)
54 | .background(Color.white)
| |- error: 'white' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
55 | .cornerRadius(24)
56 | }
/Users/admin/builder/spi-builder-workspace/Sources/Dialoggy/DialogView.swift:55:10: error: 'cornerRadius(_:antialiased:)' is only available in macOS 10.15 or newer
8 | import SwiftUI
9 |
10 | struct DialogView: View {
| `- note: add @available attribute to enclosing struct
11 | let dialog: DialogModel
12 | let dismiss: () -> Void
13 | @Environment(\.dialogStyle) private var style
14 |
15 | var body: some View {
| `- note: add @available attribute to enclosing property
16 | VStack(spacing: 12) {
17 | if let image = dialog.image {
:
53 | .padding(.vertical, 16)
54 | .background(Color.white)
55 | .cornerRadius(24)
| |- error: 'cornerRadius(_:antialiased:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
56 | }
57 |
/Users/admin/builder/spi-builder-workspace/Sources/Dialoggy/DialogView.swift:60:9: error: 'Button' is only available in macOS 10.15 or newer
8 | import SwiftUI
9 |
10 | struct DialogView: View {
| `- note: add @available attribute to enclosing struct
11 | let dialog: DialogModel
12 | let dismiss: () -> Void
:
57 |
58 | @ViewBuilder
59 | private func button(for action: DialogAction) -> some View {
| `- note: add @available attribute to enclosing instance method
60 | Button(action: {
| |- error: 'Button' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
61 | dismiss()
62 | action.completion?()
/Users/admin/builder/spi-builder-workspace/Sources/Dialoggy/DialogView.swift:60:9: error: conformance of 'Text' to 'View' is only available in macOS 10.15 or newer
8 | import SwiftUI
9 |
10 | struct DialogView: View {
| `- note: add @available attribute to enclosing struct
11 | let dialog: DialogModel
12 | let dismiss: () -> Void
:
57 |
58 | @ViewBuilder
59 | private func button(for action: DialogAction) -> some View {
| `- note: add @available attribute to enclosing instance method
60 | Button(action: {
| |- error: conformance of 'Text' to 'View' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
61 | dismiss()
62 | action.completion?()
/Users/admin/builder/spi-builder-workspace/Sources/Dialoggy/DialogView.swift:64:13: error: conformance of 'Text' to 'View' is only available in macOS 10.15 or newer
8 | import SwiftUI
9 |
10 | struct DialogView: View {
| `- note: add @available attribute to enclosing struct
11 | let dialog: DialogModel
12 | let dismiss: () -> Void
:
57 |
58 | @ViewBuilder
59 | private func button(for action: DialogAction) -> some View {
| `- note: add @available attribute to enclosing instance method
60 | Button(action: {
61 | dismiss()
62 | action.completion?()
63 | }, label: {
64 | Text(action.title)
| |- error: conformance of 'Text' to 'View' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
65 | })
66 | .buttonStyle(.automatic)
/Users/admin/builder/spi-builder-workspace/Sources/Dialoggy/DialogView.swift:64:13: error: 'Text' is only available in macOS 10.15 or newer
8 | import SwiftUI
9 |
10 | struct DialogView: View {
| `- note: add @available attribute to enclosing struct
11 | let dialog: DialogModel
12 | let dismiss: () -> Void
:
57 |
58 | @ViewBuilder
59 | private func button(for action: DialogAction) -> some View {
| `- note: add @available attribute to enclosing instance method
60 | Button(action: {
61 | dismiss()
62 | action.completion?()
63 | }, label: {
64 | Text(action.title)
| |- error: 'Text' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
65 | })
66 | .buttonStyle(.automatic)
/Users/admin/builder/spi-builder-workspace/Sources/Dialoggy/DialogView.swift:64:13: error: 'init(_:tableName:bundle:comment:)' is only available in macOS 10.15 or newer
8 | import SwiftUI
9 |
10 | struct DialogView: View {
| `- note: add @available attribute to enclosing struct
11 | let dialog: DialogModel
12 | let dismiss: () -> Void
:
57 |
58 | @ViewBuilder
59 | private func button(for action: DialogAction) -> some View {
| `- note: add @available attribute to enclosing instance method
60 | Button(action: {
61 | dismiss()
62 | action.completion?()
63 | }, label: {
64 | Text(action.title)
| |- error: 'init(_:tableName:bundle:comment:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
65 | })
66 | .buttonStyle(.automatic)
/Users/admin/builder/spi-builder-workspace/Sources/Dialoggy/DialogView.swift:63:19: error: conformance of 'Text' to 'View' is only available in macOS 10.15 or newer
8 | import SwiftUI
9 |
10 | struct DialogView: View {
| `- note: add @available attribute to enclosing struct
11 | let dialog: DialogModel
12 | let dismiss: () -> Void
:
57 |
58 | @ViewBuilder
59 | private func button(for action: DialogAction) -> some View {
| `- note: add @available attribute to enclosing instance method
60 | Button(action: {
61 | dismiss()
62 | action.completion?()
63 | }, label: {
| |- error: conformance of 'Text' to 'View' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
64 | Text(action.title)
65 | })
/Users/admin/builder/spi-builder-workspace/Sources/Dialoggy/DialogView.swift:66:10: error: 'buttonStyle' is only available in macOS 10.15 or newer
8 | import SwiftUI
9 |
10 | struct DialogView: View {
| `- note: add @available attribute to enclosing struct
11 | let dialog: DialogModel
12 | let dismiss: () -> Void
:
57 |
58 | @ViewBuilder
59 | private func button(for action: DialogAction) -> some View {
| `- note: add @available attribute to enclosing instance method
60 | Button(action: {
61 | dismiss()
:
64 | Text(action.title)
65 | })
66 | .buttonStyle(.automatic)
| |- error: 'buttonStyle' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
67 | }
68 | }
/Users/admin/builder/spi-builder-workspace/Sources/Dialoggy/DialogView.swift:66:23: error: 'automatic' is only available in macOS 10.15 or newer
8 | import SwiftUI
9 |
10 | struct DialogView: View {
| `- note: add @available attribute to enclosing struct
11 | let dialog: DialogModel
12 | let dismiss: () -> Void
:
57 |
58 | @ViewBuilder
59 | private func button(for action: DialogAction) -> some View {
| `- note: add @available attribute to enclosing instance method
60 | Button(action: {
61 | dismiss()
:
64 | Text(action.title)
65 | })
66 | .buttonStyle(.automatic)
| |- error: 'automatic' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
67 | }
68 | }
[6/13] Compiling Dialoggy DialogButtonStyle.swift
/Users/admin/builder/spi-builder-workspace/Sources/Dialoggy/Style/DialogButtonStyle.swift:12:26: error: 'Color' is only available in macOS 10.15 or newer
8 | import SwiftUI
9 |
10 | public struct DialogButtonStyle {
| `- note: add @available attribute to enclosing struct
11 |
12 | let backgroundColor: Color
| `- error: 'Color' is only available in macOS 10.15 or newer
13 | let borderColor: Color
14 | let foregroundColor: Color
/Users/admin/builder/spi-builder-workspace/Sources/Dialoggy/Style/DialogButtonStyle.swift:13:22: error: 'Color' is only available in macOS 10.15 or newer
8 | import SwiftUI
9 |
10 | public struct DialogButtonStyle {
| `- note: add @available attribute to enclosing struct
11 |
12 | let backgroundColor: Color
13 | let borderColor: Color
| `- error: 'Color' is only available in macOS 10.15 or newer
14 | let foregroundColor: Color
15 | let cornerRadius: CGFloat
/Users/admin/builder/spi-builder-workspace/Sources/Dialoggy/Style/DialogButtonStyle.swift:14:26: error: 'Color' is only available in macOS 10.15 or newer
8 | import SwiftUI
9 |
10 | public struct DialogButtonStyle {
| `- note: add @available attribute to enclosing struct
11 |
12 | let backgroundColor: Color
13 | let borderColor: Color
14 | let foregroundColor: Color
| `- error: 'Color' is only available in macOS 10.15 or newer
15 | let cornerRadius: CGFloat
16 | let font: Font
/Users/admin/builder/spi-builder-workspace/Sources/Dialoggy/Style/DialogButtonStyle.swift:16:15: error: 'Font' is only available in macOS 10.15 or newer
8 | import SwiftUI
9 |
10 | public struct DialogButtonStyle {
| `- note: add @available attribute to enclosing struct
11 |
12 | let backgroundColor: Color
:
14 | let foregroundColor: Color
15 | let cornerRadius: CGFloat
16 | let font: Font
| `- error: 'Font' is only available in macOS 10.15 or newer
17 | let horizontalPadding: CGFloat
18 | let verticalPadding: CGFloat
/Users/admin/builder/spi-builder-workspace/Sources/Dialoggy/Style/DialogButtonStyle.swift:21:26: error: 'Color' is only available in macOS 10.15 or newer
8 | import SwiftUI
9 |
10 | public struct DialogButtonStyle {
| `- note: add @available attribute to enclosing struct
11 |
12 | let backgroundColor: Color
:
18 | let verticalPadding: CGFloat
19 |
20 | public init(
| `- note: add @available attribute to enclosing initializer
21 | backgroundColor: Color,
| `- error: 'Color' is only available in macOS 10.15 or newer
22 | foregroundColor: Color,
23 | borderColor: Color = .clear,
/Users/admin/builder/spi-builder-workspace/Sources/Dialoggy/Style/DialogButtonStyle.swift:22:26: error: 'Color' is only available in macOS 10.15 or newer
8 | import SwiftUI
9 |
10 | public struct DialogButtonStyle {
| `- note: add @available attribute to enclosing struct
11 |
12 | let backgroundColor: Color
:
18 | let verticalPadding: CGFloat
19 |
20 | public init(
| `- note: add @available attribute to enclosing initializer
21 | backgroundColor: Color,
22 | foregroundColor: Color,
| `- error: 'Color' is only available in macOS 10.15 or newer
23 | borderColor: Color = .clear,
24 | cornerRadius: CGFloat,
/Users/admin/builder/spi-builder-workspace/Sources/Dialoggy/Style/DialogButtonStyle.swift:23:22: error: 'Color' is only available in macOS 10.15 or newer
8 | import SwiftUI
9 |
10 | public struct DialogButtonStyle {
| `- note: add @available attribute to enclosing struct
11 |
12 | let backgroundColor: Color
:
18 | let verticalPadding: CGFloat
19 |
20 | public init(
| `- note: add @available attribute to enclosing initializer
21 | backgroundColor: Color,
22 | foregroundColor: Color,
23 | borderColor: Color = .clear,
| `- error: 'Color' is only available in macOS 10.15 or newer
24 | cornerRadius: CGFloat,
25 | font: Font,
/Users/admin/builder/spi-builder-workspace/Sources/Dialoggy/Style/DialogButtonStyle.swift:25:15: error: 'Font' is only available in macOS 10.15 or newer
8 | import SwiftUI
9 |
10 | public struct DialogButtonStyle {
| `- note: add @available attribute to enclosing struct
11 |
12 | let backgroundColor: Color
:
18 | let verticalPadding: CGFloat
19 |
20 | public init(
| `- note: add @available attribute to enclosing initializer
21 | backgroundColor: Color,
22 | foregroundColor: Color,
23 | borderColor: Color = .clear,
24 | cornerRadius: CGFloat,
25 | font: Font,
| `- error: 'Font' is only available in macOS 10.15 or newer
26 | horizontalPadding: CGFloat,
27 | verticalPadding: CGFloat
/Users/admin/builder/spi-builder-workspace/Sources/Dialoggy/Style/DialogButtonStyle.swift:23:31: error: 'clear' is only available in macOS 10.15 or newer
8 | import SwiftUI
9 |
10 | public struct DialogButtonStyle {
| `- note: add @available attribute to enclosing struct
11 |
12 | let backgroundColor: Color
:
18 | let verticalPadding: CGFloat
19 |
20 | public init(
| `- note: add @available attribute to enclosing initializer
21 | backgroundColor: Color,
22 | foregroundColor: Color,
23 | borderColor: Color = .clear,
| `- error: 'clear' is only available in macOS 10.15 or newer
24 | cornerRadius: CGFloat,
25 | font: Font,
/Users/admin/builder/spi-builder-workspace/Sources/Dialoggy/Style/DialogButtonStyle.swift:40:26: error: 'Color' is only available in macOS 10.15 or newer
8 | import SwiftUI
9 |
10 | public struct DialogButtonStyle {
| `- note: add @available attribute to enclosing struct
11 |
12 | let backgroundColor: Color
:
37 |
38 |
39 | nonisolated(unsafe) public static let primary = DialogButtonStyle(
| `- note: add @available attribute to enclosing static property
40 | backgroundColor: Color.accentColor,
| `- error: 'Color' is only available in macOS 10.15 or newer
41 | foregroundColor: Color.white,
42 | cornerRadius: 12,
/Users/admin/builder/spi-builder-workspace/Sources/Dialoggy/Style/DialogButtonStyle.swift:40:32: error: 'accentColor' is only available in macOS 10.15 or newer
8 | import SwiftUI
9 |
10 | public struct DialogButtonStyle {
| `- note: add @available attribute to enclosing struct
11 |
12 | let backgroundColor: Color
:
37 |
38 |
39 | nonisolated(unsafe) public static let primary = DialogButtonStyle(
| `- note: add @available attribute to enclosing static property
40 | backgroundColor: Color.accentColor,
| `- error: 'accentColor' is only available in macOS 10.15 or newer
41 | foregroundColor: Color.white,
42 | cornerRadius: 12,
/Users/admin/builder/spi-builder-workspace/Sources/Dialoggy/Style/DialogButtonStyle.swift:41:26: error: 'Color' is only available in macOS 10.15 or newer
8 | import SwiftUI
9 |
10 | public struct DialogButtonStyle {
| `- note: add @available attribute to enclosing struct
11 |
12 | let backgroundColor: Color
:
37 |
38 |
39 | nonisolated(unsafe) public static let primary = DialogButtonStyle(
| `- note: add @available attribute to enclosing static property
40 | backgroundColor: Color.accentColor,
41 | foregroundColor: Color.white,
| `- error: 'Color' is only available in macOS 10.15 or newer
42 | cornerRadius: 12,
43 | font: .headline,
/Users/admin/builder/spi-builder-workspace/Sources/Dialoggy/Style/DialogButtonStyle.swift:41:32: error: 'white' is only available in macOS 10.15 or newer
8 | import SwiftUI
9 |
10 | public struct DialogButtonStyle {
| `- note: add @available attribute to enclosing struct
11 |
12 | let backgroundColor: Color
:
37 |
38 |
39 | nonisolated(unsafe) public static let primary = DialogButtonStyle(
| `- note: add @available attribute to enclosing static property
40 | backgroundColor: Color.accentColor,
41 | foregroundColor: Color.white,
| `- error: 'white' is only available in macOS 10.15 or newer
42 | cornerRadius: 12,
43 | font: .headline,
/Users/admin/builder/spi-builder-workspace/Sources/Dialoggy/Style/DialogButtonStyle.swift:43:16: error: 'headline' is only available in macOS 10.15 or newer
8 | import SwiftUI
9 |
10 | public struct DialogButtonStyle {
| `- note: add @available attribute to enclosing struct
11 |
12 | let backgroundColor: Color
:
37 |
38 |
39 | nonisolated(unsafe) public static let primary = DialogButtonStyle(
| `- note: add @available attribute to enclosing static property
40 | backgroundColor: Color.accentColor,
41 | foregroundColor: Color.white,
42 | cornerRadius: 12,
43 | font: .headline,
| `- error: 'headline' is only available in macOS 10.15 or newer
44 | horizontalPadding: 16,
45 | verticalPadding: 10
/Users/admin/builder/spi-builder-workspace/Sources/Dialoggy/Style/DialogButtonStyle.swift:49:26: error: 'Color' is only available in macOS 10.15 or newer
8 | import SwiftUI
9 |
10 | public struct DialogButtonStyle {
| `- note: add @available attribute to enclosing struct
11 |
12 | let backgroundColor: Color
:
46 | )
47 |
48 | nonisolated(unsafe) public static let secondary = DialogButtonStyle(
| `- note: add @available attribute to enclosing static property
49 | backgroundColor: Color.clear,
| `- error: 'Color' is only available in macOS 10.15 or newer
50 | foregroundColor: Color.accentColor,
51 | cornerRadius: 12,
/Users/admin/builder/spi-builder-workspace/Sources/Dialoggy/Style/DialogButtonStyle.swift:49:32: error: 'clear' is only available in macOS 10.15 or newer
8 | import SwiftUI
9 |
10 | public struct DialogButtonStyle {
| `- note: add @available attribute to enclosing struct
11 |
12 | let backgroundColor: Color
:
46 | )
47 |
48 | nonisolated(unsafe) public static let secondary = DialogButtonStyle(
| `- note: add @available attribute to enclosing static property
49 | backgroundColor: Color.clear,
| `- error: 'clear' is only available in macOS 10.15 or newer
50 | foregroundColor: Color.accentColor,
51 | cornerRadius: 12,
/Users/admin/builder/spi-builder-workspace/Sources/Dialoggy/Style/DialogButtonStyle.swift:50:26: error: 'Color' is only available in macOS 10.15 or newer
8 | import SwiftUI
9 |
10 | public struct DialogButtonStyle {
| `- note: add @available attribute to enclosing struct
11 |
12 | let backgroundColor: Color
:
46 | )
47 |
48 | nonisolated(unsafe) public static let secondary = DialogButtonStyle(
| `- note: add @available attribute to enclosing static property
49 | backgroundColor: Color.clear,
50 | foregroundColor: Color.accentColor,
| `- error: 'Color' is only available in macOS 10.15 or newer
51 | cornerRadius: 12,
52 | font: .subheadline,
/Users/admin/builder/spi-builder-workspace/Sources/Dialoggy/Style/DialogButtonStyle.swift:50:32: error: 'accentColor' is only available in macOS 10.15 or newer
8 | import SwiftUI
9 |
10 | public struct DialogButtonStyle {
| `- note: add @available attribute to enclosing struct
11 |
12 | let backgroundColor: Color
:
46 | )
47 |
48 | nonisolated(unsafe) public static let secondary = DialogButtonStyle(
| `- note: add @available attribute to enclosing static property
49 | backgroundColor: Color.clear,
50 | foregroundColor: Color.accentColor,
| `- error: 'accentColor' is only available in macOS 10.15 or newer
51 | cornerRadius: 12,
52 | font: .subheadline,
/Users/admin/builder/spi-builder-workspace/Sources/Dialoggy/Style/DialogButtonStyle.swift:52:16: error: 'subheadline' is only available in macOS 10.15 or newer
8 | import SwiftUI
9 |
10 | public struct DialogButtonStyle {
| `- note: add @available attribute to enclosing struct
11 |
12 | let backgroundColor: Color
:
46 | )
47 |
48 | nonisolated(unsafe) public static let secondary = DialogButtonStyle(
| `- note: add @available attribute to enclosing static property
49 | backgroundColor: Color.clear,
50 | foregroundColor: Color.accentColor,
51 | cornerRadius: 12,
52 | font: .subheadline,
| `- error: 'subheadline' is only available in macOS 10.15 or newer
53 | horizontalPadding: 16,
54 | verticalPadding: 10
[7/13] Compiling Dialoggy DialogStyleConfig.swift
/Users/admin/builder/spi-builder-workspace/Sources/Dialoggy/Model/DialogStyleConfig.swift:16:20: error: 'Font' is only available in macOS 10.15 or newer
10 |
11 | @MainActor
12 | public struct DialogStyleConfig : Sendable{
| `- note: add @available attribute to enclosing struct
13 |
14 | let primaryButtonStyle: DialogButtonStyle
15 | let secondaryButtonStyle: DialogButtonStyle
16 | let titleFont: Font
| `- error: 'Font' is only available in macOS 10.15 or newer
17 | let titleForegroundColor: Color
18 | let messageFont: Font
/Users/admin/builder/spi-builder-workspace/Sources/Dialoggy/Model/DialogStyleConfig.swift:17:31: error: 'Color' is only available in macOS 10.15 or newer
10 |
11 | @MainActor
12 | public struct DialogStyleConfig : Sendable{
| `- note: add @available attribute to enclosing struct
13 |
14 | let primaryButtonStyle: DialogButtonStyle
15 | let secondaryButtonStyle: DialogButtonStyle
16 | let titleFont: Font
17 | let titleForegroundColor: Color
| `- error: 'Color' is only available in macOS 10.15 or newer
18 | let messageFont: Font
19 | let messageForegroundColor: Color
/Users/admin/builder/spi-builder-workspace/Sources/Dialoggy/Model/DialogStyleConfig.swift:18:22: error: 'Font' is only available in macOS 10.15 or newer
10 |
11 | @MainActor
12 | public struct DialogStyleConfig : Sendable{
| `- note: add @available attribute to enclosing struct
13 |
14 | let primaryButtonStyle: DialogButtonStyle
:
16 | let titleFont: Font
17 | let titleForegroundColor: Color
18 | let messageFont: Font
| `- error: 'Font' is only available in macOS 10.15 or newer
19 | let messageForegroundColor: Color
20 | let imageSize: CGSize
/Users/admin/builder/spi-builder-workspace/Sources/Dialoggy/Model/DialogStyleConfig.swift:19:33: error: 'Color' is only available in macOS 10.15 or newer
10 |
11 | @MainActor
12 | public struct DialogStyleConfig : Sendable{
| `- note: add @available attribute to enclosing struct
13 |
14 | let primaryButtonStyle: DialogButtonStyle
:
17 | let titleForegroundColor: Color
18 | let messageFont: Font
19 | let messageForegroundColor: Color
| `- error: 'Color' is only available in macOS 10.15 or newer
20 | let imageSize: CGSize
21 |
/Users/admin/builder/spi-builder-workspace/Sources/Dialoggy/Model/DialogStyleConfig.swift:25:20: error: 'Font' is only available in macOS 10.15 or newer
10 |
11 | @MainActor
12 | public struct DialogStyleConfig : Sendable{
| `- note: add @available attribute to enclosing struct
13 |
14 | let primaryButtonStyle: DialogButtonStyle
:
20 | let imageSize: CGSize
21 |
22 | public init(
| `- note: add @available attribute to enclosing initializer
23 | primaryButtonStyle: DialogButtonStyle,
24 | secondaryButtonStyle: DialogButtonStyle,
25 | titleFont: Font,
| `- error: 'Font' is only available in macOS 10.15 or newer
26 | titleForegroundColor: Color,
27 | messageFont: Font,
/Users/admin/builder/spi-builder-workspace/Sources/Dialoggy/Model/DialogStyleConfig.swift:26:31: error: 'Color' is only available in macOS 10.15 or newer
10 |
11 | @MainActor
12 | public struct DialogStyleConfig : Sendable{
| `- note: add @available attribute to enclosing struct
13 |
14 | let primaryButtonStyle: DialogButtonStyle
:
20 | let imageSize: CGSize
21 |
22 | public init(
| `- note: add @available attribute to enclosing initializer
23 | primaryButtonStyle: DialogButtonStyle,
24 | secondaryButtonStyle: DialogButtonStyle,
25 | titleFont: Font,
26 | titleForegroundColor: Color,
| `- error: 'Color' is only available in macOS 10.15 or newer
27 | messageFont: Font,
28 | messageForegroundColor: Color,
/Users/admin/builder/spi-builder-workspace/Sources/Dialoggy/Model/DialogStyleConfig.swift:27:22: error: 'Font' is only available in macOS 10.15 or newer
10 |
11 | @MainActor
12 | public struct DialogStyleConfig : Sendable{
| `- note: add @available attribute to enclosing struct
13 |
14 | let primaryButtonStyle: DialogButtonStyle
:
20 | let imageSize: CGSize
21 |
22 | public init(
| `- note: add @available attribute to enclosing initializer
23 | primaryButtonStyle: DialogButtonStyle,
24 | secondaryButtonStyle: DialogButtonStyle,
25 | titleFont: Font,
26 | titleForegroundColor: Color,
27 | messageFont: Font,
| `- error: 'Font' is only available in macOS 10.15 or newer
28 | messageForegroundColor: Color,
29 | imageSize: CGSize
/Users/admin/builder/spi-builder-workspace/Sources/Dialoggy/Model/DialogStyleConfig.swift:28:33: error: 'Color' is only available in macOS 10.15 or newer
10 |
11 | @MainActor
12 | public struct DialogStyleConfig : Sendable{
| `- note: add @available attribute to enclosing struct
13 |
14 | let primaryButtonStyle: DialogButtonStyle
:
20 | let imageSize: CGSize
21 |
22 | public init(
| `- note: add @available attribute to enclosing initializer
23 | primaryButtonStyle: DialogButtonStyle,
24 | secondaryButtonStyle: DialogButtonStyle,
:
26 | titleForegroundColor: Color,
27 | messageFont: Font,
28 | messageForegroundColor: Color,
| `- error: 'Color' is only available in macOS 10.15 or newer
29 | imageSize: CGSize
30 | ) {
/Users/admin/builder/spi-builder-workspace/Sources/Dialoggy/Style/DialogButtonStyle.swift:40:26: error: 'Color' is only available in macOS 10.15 or newer
8 | import SwiftUI
9 |
10 | public struct DialogButtonStyle {
| `- note: add @available attribute to enclosing struct
11 |
12 | let backgroundColor: Color
:
37 |
38 |
39 | nonisolated(unsafe) public static let primary = DialogButtonStyle(
| `- note: add @available attribute to enclosing static property
40 | backgroundColor: Color.accentColor,
| `- error: 'Color' is only available in macOS 10.15 or newer
41 | foregroundColor: Color.white,
42 | cornerRadius: 12,
/Users/admin/builder/spi-builder-workspace/Sources/Dialoggy/Style/DialogButtonStyle.swift:40:32: error: 'accentColor' is only available in macOS 10.15 or newer
8 | import SwiftUI
9 |
10 | public struct DialogButtonStyle {
| `- note: add @available attribute to enclosing struct
11 |
12 | let backgroundColor: Color
:
37 |
38 |
39 | nonisolated(unsafe) public static let primary = DialogButtonStyle(
| `- note: add @available attribute to enclosing static property
40 | backgroundColor: Color.accentColor,
| `- error: 'accentColor' is only available in macOS 10.15 or newer
41 | foregroundColor: Color.white,
42 | cornerRadius: 12,
/Users/admin/builder/spi-builder-workspace/Sources/Dialoggy/Style/DialogButtonStyle.swift:41:26: error: 'Color' is only available in macOS 10.15 or newer
8 | import SwiftUI
9 |
10 | public struct DialogButtonStyle {
| `- note: add @available attribute to enclosing struct
11 |
12 | let backgroundColor: Color
:
37 |
38 |
39 | nonisolated(unsafe) public static let primary = DialogButtonStyle(
| `- note: add @available attribute to enclosing static property
40 | backgroundColor: Color.accentColor,
41 | foregroundColor: Color.white,
| `- error: 'Color' is only available in macOS 10.15 or newer
42 | cornerRadius: 12,
43 | font: .headline,
/Users/admin/builder/spi-builder-workspace/Sources/Dialoggy/Style/DialogButtonStyle.swift:41:32: error: 'white' is only available in macOS 10.15 or newer
8 | import SwiftUI
9 |
10 | public struct DialogButtonStyle {
| `- note: add @available attribute to enclosing struct
11 |
12 | let backgroundColor: Color
:
37 |
38 |
39 | nonisolated(unsafe) public static let primary = DialogButtonStyle(
| `- note: add @available attribute to enclosing static property
40 | backgroundColor: Color.accentColor,
41 | foregroundColor: Color.white,
| `- error: 'white' is only available in macOS 10.15 or newer
42 | cornerRadius: 12,
43 | font: .headline,
/Users/admin/builder/spi-builder-workspace/Sources/Dialoggy/Style/DialogButtonStyle.swift:43:16: error: 'headline' is only available in macOS 10.15 or newer
8 | import SwiftUI
9 |
10 | public struct DialogButtonStyle {
| `- note: add @available attribute to enclosing struct
11 |
12 | let backgroundColor: Color
:
37 |
38 |
39 | nonisolated(unsafe) public static let primary = DialogButtonStyle(
| `- note: add @available attribute to enclosing static property
40 | backgroundColor: Color.accentColor,
41 | foregroundColor: Color.white,
42 | cornerRadius: 12,
43 | font: .headline,
| `- error: 'headline' is only available in macOS 10.15 or newer
44 | horizontalPadding: 16,
45 | verticalPadding: 10
/Users/admin/builder/spi-builder-workspace/Sources/Dialoggy/Style/DialogButtonStyle.swift:49:26: error: 'Color' is only available in macOS 10.15 or newer
8 | import SwiftUI
9 |
10 | public struct DialogButtonStyle {
| `- note: add @available attribute to enclosing struct
11 |
12 | let backgroundColor: Color
:
46 | )
47 |
48 | nonisolated(unsafe) public static let secondary = DialogButtonStyle(
| `- note: add @available attribute to enclosing static property
49 | backgroundColor: Color.clear,
| `- error: 'Color' is only available in macOS 10.15 or newer
50 | foregroundColor: Color.accentColor,
51 | cornerRadius: 12,
/Users/admin/builder/spi-builder-workspace/Sources/Dialoggy/Style/DialogButtonStyle.swift:49:32: error: 'clear' is only available in macOS 10.15 or newer
8 | import SwiftUI
9 |
10 | public struct DialogButtonStyle {
| `- note: add @available attribute to enclosing struct
11 |
12 | let backgroundColor: Color
:
46 | )
47 |
48 | nonisolated(unsafe) public static let secondary = DialogButtonStyle(
| `- note: add @available attribute to enclosing static property
49 | backgroundColor: Color.clear,
| `- error: 'clear' is only available in macOS 10.15 or newer
50 | foregroundColor: Color.accentColor,
51 | cornerRadius: 12,
/Users/admin/builder/spi-builder-workspace/Sources/Dialoggy/Style/DialogButtonStyle.swift:50:26: error: 'Color' is only available in macOS 10.15 or newer
8 | import SwiftUI
9 |
10 | public struct DialogButtonStyle {
| `- note: add @available attribute to enclosing struct
11 |
12 | let backgroundColor: Color
:
46 | )
47 |
48 | nonisolated(unsafe) public static let secondary = DialogButtonStyle(
| `- note: add @available attribute to enclosing static property
49 | backgroundColor: Color.clear,
50 | foregroundColor: Color.accentColor,
| `- error: 'Color' is only available in macOS 10.15 or newer
51 | cornerRadius: 12,
52 | font: .subheadline,
/Users/admin/builder/spi-builder-workspace/Sources/Dialoggy/Style/DialogButtonStyle.swift:50:32: error: 'accentColor' is only available in macOS 10.15 or newer
8 | import SwiftUI
9 |
10 | public struct DialogButtonStyle {
| `- note: add @available attribute to enclosing struct
11 |
12 | let backgroundColor: Color
:
46 | )
47 |
48 | nonisolated(unsafe) public static let secondary = DialogButtonStyle(
| `- note: add @available attribute to enclosing static property
49 | backgroundColor: Color.clear,
50 | foregroundColor: Color.accentColor,
| `- error: 'accentColor' is only available in macOS 10.15 or newer
51 | cornerRadius: 12,
52 | font: .subheadline,
/Users/admin/builder/spi-builder-workspace/Sources/Dialoggy/Style/DialogButtonStyle.swift:52:16: error: 'subheadline' is only available in macOS 10.15 or newer
8 | import SwiftUI
9 |
10 | public struct DialogButtonStyle {
| `- note: add @available attribute to enclosing struct
11 |
12 | let backgroundColor: Color
:
46 | )
47 |
48 | nonisolated(unsafe) public static let secondary = DialogButtonStyle(
| `- note: add @available attribute to enclosing static property
49 | backgroundColor: Color.clear,
50 | foregroundColor: Color.accentColor,
51 | cornerRadius: 12,
52 | font: .subheadline,
| `- error: 'subheadline' is only available in macOS 10.15 or newer
53 | horizontalPadding: 16,
54 | verticalPadding: 10
/Users/admin/builder/spi-builder-workspace/Sources/Dialoggy/Model/DialogStyleConfig.swift:47:21: error: 'title2' is only available in macOS 11.0 or newer
40 | }
41 |
42 | public extension DialogStyleConfig {
| `- note: add @available attribute to enclosing extension
43 |
44 | static let defaultValue = DialogStyleConfig(
| `- note: add @available attribute to enclosing static property
45 | primaryButtonStyle: DialogButtonStyle.primary,
46 | secondaryButtonStyle: DialogButtonStyle.secondary,
47 | titleFont: .title2.bold(),
| `- error: 'title2' is only available in macOS 11.0 or newer
48 | titleForegroundColor: .primary,
49 | messageFont: .body,
/Users/admin/builder/spi-builder-workspace/Sources/Dialoggy/Model/DialogStyleConfig.swift:47:28: error: 'bold()' is only available in macOS 10.15 or newer
40 | }
41 |
42 | public extension DialogStyleConfig {
| `- note: add @available attribute to enclosing extension
43 |
44 | static let defaultValue = DialogStyleConfig(
| `- note: add @available attribute to enclosing static property
45 | primaryButtonStyle: DialogButtonStyle.primary,
46 | secondaryButtonStyle: DialogButtonStyle.secondary,
47 | titleFont: .title2.bold(),
| `- error: 'bold()' is only available in macOS 10.15 or newer
48 | titleForegroundColor: .primary,
49 | messageFont: .body,
/Users/admin/builder/spi-builder-workspace/Sources/Dialoggy/Model/DialogStyleConfig.swift:48:32: error: 'primary' is only available in macOS 10.15 or newer
40 | }
41 |
42 | public extension DialogStyleConfig {
| `- note: add @available attribute to enclosing extension
43 |
44 | static let defaultValue = DialogStyleConfig(
| `- note: add @available attribute to enclosing static property
45 | primaryButtonStyle: DialogButtonStyle.primary,
46 | secondaryButtonStyle: DialogButtonStyle.secondary,
47 | titleFont: .title2.bold(),
48 | titleForegroundColor: .primary,
| `- error: 'primary' is only available in macOS 10.15 or newer
49 | messageFont: .body,
50 | messageForegroundColor: .secondary,
/Users/admin/builder/spi-builder-workspace/Sources/Dialoggy/Model/DialogStyleConfig.swift:49:23: error: 'body' is only available in macOS 10.15 or newer
40 | }
41 |
42 | public extension DialogStyleConfig {
| `- note: add @available attribute to enclosing extension
43 |
44 | static let defaultValue = DialogStyleConfig(
| `- note: add @available attribute to enclosing static property
45 | primaryButtonStyle: DialogButtonStyle.primary,
46 | secondaryButtonStyle: DialogButtonStyle.secondary,
47 | titleFont: .title2.bold(),
48 | titleForegroundColor: .primary,
49 | messageFont: .body,
| `- error: 'body' is only available in macOS 10.15 or newer
50 | messageForegroundColor: .secondary,
51 | imageSize: CGSize(width: 72, height: 72)
/Users/admin/builder/spi-builder-workspace/Sources/Dialoggy/Model/DialogStyleConfig.swift:50:34: error: 'secondary' is only available in macOS 10.15 or newer
40 | }
41 |
42 | public extension DialogStyleConfig {
| `- note: add @available attribute to enclosing extension
43 |
44 | static let defaultValue = DialogStyleConfig(
| `- note: add @available attribute to enclosing static property
45 | primaryButtonStyle: DialogButtonStyle.primary,
46 | secondaryButtonStyle: DialogButtonStyle.secondary,
:
48 | titleForegroundColor: .primary,
49 | messageFont: .body,
50 | messageForegroundColor: .secondary,
| `- error: 'secondary' is only available in macOS 10.15 or newer
51 | imageSize: CGSize(width: 72, height: 72)
52 | )
[8/14] Compiling Dialoggy DialogActionStyle.swift
[9/14] Compiling Dialoggy DialogBridgeModifier.swift
/Users/admin/builder/spi-builder-workspace/Sources/Dialoggy/DialogBridgeModifier.swift:12:6: error: 'Environment' is only available in macOS 10.15 or newer
8 | import SwiftUI
9 |
10 | public struct DialogBridgeModifier: ViewModifier {
| `- note: add @available attribute to enclosing struct
11 |
12 | @Environment(\.showDialog) var showDialog
| `- error: 'Environment' is only available in macOS 10.15 or newer
13 | @Binding var presentedDialog: DialogModel?
14 |
/Users/admin/builder/spi-builder-workspace/Sources/Dialoggy/DialogBridgeModifier.swift:13:6: error: 'Binding' is only available in macOS 10.15 or newer
8 | import SwiftUI
9 |
10 | public struct DialogBridgeModifier: ViewModifier {
| `- note: add @available attribute to enclosing struct
11 |
12 | @Environment(\.showDialog) var showDialog
13 | @Binding var presentedDialog: DialogModel?
| `- error: 'Binding' is only available in macOS 10.15 or newer
14 |
15 | public func body(content: Content) -> some View {
/Users/admin/builder/spi-builder-workspace/Sources/Dialoggy/DialogBridgeModifier.swift:15:48: error: 'View' is only available in macOS 10.15 or newer
8 | import SwiftUI
9 |
10 | public struct DialogBridgeModifier: ViewModifier {
| `- note: add @available attribute to enclosing struct
11 |
12 | @Environment(\.showDialog) var showDialog
13 | @Binding var presentedDialog: DialogModel?
14 |
15 | public func body(content: Content) -> some View {
| | `- error: 'View' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing instance method
16 | content
17 | .onChange(of: presentedDialog) { _, newValue in
/Users/admin/builder/spi-builder-workspace/Sources/Dialoggy/DialogBridgeModifier.swift:25:36: error: 'Binding' is only available in macOS 10.15 or newer
21 | }
22 |
23 | public extension View {
| `- note: add @available attribute to enclosing extension
24 |
25 | func dialog(_ presentedDialog: Binding<DialogModel?>) -> some View {
| | `- error: 'Binding' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing instance method
26 | self.modifier(DialogBridgeModifier(presentedDialog: presentedDialog))
27 | }
/Users/admin/builder/spi-builder-workspace/Sources/Dialoggy/DialogBridgeModifier.swift:25:67: error: 'View' is only available in macOS 10.15 or newer
21 | }
22 |
23 | public extension View {
| `- note: add @available attribute to enclosing extension
24 |
25 | func dialog(_ presentedDialog: Binding<DialogModel?>) -> some View {
| | `- error: 'View' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing instance method
26 | self.modifier(DialogBridgeModifier(presentedDialog: presentedDialog))
27 | }
/Users/admin/builder/spi-builder-workspace/Sources/Dialoggy/DialogBridgeModifier.swift:23:18: error: 'View' is only available in macOS 10.15 or newer
21 | }
22 |
23 | public extension View {
| | `- error: 'View' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing extension
24 |
25 | func dialog(_ presentedDialog: Binding<DialogModel?>) -> some View {
/Users/admin/builder/spi-builder-workspace/Sources/Dialoggy/DialogBridgeModifier.swift:17:14: error: 'onChange(of:initial:_:)' is only available in macOS 14.0 or newer
8 | import SwiftUI
9 |
10 | public struct DialogBridgeModifier: ViewModifier {
| `- note: add @available attribute to enclosing struct
11 |
12 | @Environment(\.showDialog) var showDialog
13 | @Binding var presentedDialog: DialogModel?
14 |
15 | public func body(content: Content) -> some View {
| `- note: add @available attribute to enclosing instance method
16 | content
17 | .onChange(of: presentedDialog) { _, newValue in
| |- error: 'onChange(of:initial:_:)' is only available in macOS 14.0 or newer
| `- note: add 'if #available' version check
18 | showDialog.wrappedValue = newValue
19 | }
/Users/admin/builder/spi-builder-workspace/Sources/Dialoggy/DialogBridgeModifier.swift:26:14: error: conformance of 'ModifiedContent<Content, Modifier>' to 'View' is only available in macOS 10.15 or newer
21 | }
22 |
23 | public extension View {
| `- note: add @available attribute to enclosing extension
24 |
25 | func dialog(_ presentedDialog: Binding<DialogModel?>) -> some View {
| `- note: add @available attribute to enclosing instance method
26 | self.modifier(DialogBridgeModifier(presentedDialog: presentedDialog))
| |- error: conformance of 'ModifiedContent<Content, Modifier>' to 'View' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
27 | }
28 | }
/Users/admin/builder/spi-builder-workspace/Sources/Dialoggy/DialogBridgeModifier.swift:26:14: error: 'modifier' is only available in macOS 10.15 or newer
21 | }
22 |
23 | public extension View {
| `- note: add @available attribute to enclosing extension
24 |
25 | func dialog(_ presentedDialog: Binding<DialogModel?>) -> some View {
| `- note: add @available attribute to enclosing instance method
26 | self.modifier(DialogBridgeModifier(presentedDialog: presentedDialog))
| |- error: 'modifier' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
27 | }
28 | }
/Users/admin/builder/spi-builder-workspace/Sources/Dialoggy/DialogButton.swift:11:16: error: 'LocalizedStringKey' is only available in macOS 10.15 or newer
8 | import SwiftUI
9 |
10 | struct DialogButton: View {
| `- note: add @available attribute to enclosing struct
11 | let title: LocalizedStringKey
| `- error: 'LocalizedStringKey' is only available in macOS 10.15 or newer
12 | let style: DialogButtonStyle
13 | let action: () -> Void
/Users/admin/builder/spi-builder-workspace/Sources/Dialoggy/DialogButton.swift:15:20: error: 'View' is only available in macOS 10.15 or newer
8 | import SwiftUI
9 |
10 | struct DialogButton: View {
| `- note: add @available attribute to enclosing struct
11 | let title: LocalizedStringKey
12 | let style: DialogButtonStyle
13 | let action: () -> Void
14 |
15 | var body: some View {
| | `- error: 'View' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing property
16 | Button(action: action) {
17 | Text(title)
/Users/admin/builder/spi-builder-workspace/Sources/Dialoggy/DialogButton.swift:16:9: error: 'Button' is only available in macOS 10.15 or newer
8 | import SwiftUI
9 |
10 | struct DialogButton: View {
| `- note: add @available attribute to enclosing struct
11 | let title: LocalizedStringKey
12 | let style: DialogButtonStyle
13 | let action: () -> Void
14 |
15 | var body: some View {
| `- note: add @available attribute to enclosing property
16 | Button(action: action) {
| |- error: 'Button' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
17 | Text(title)
18 | .font(style.font)
/Users/admin/builder/spi-builder-workspace/Sources/Dialoggy/DialogButton.swift:16:32: error: conformance of 'Color' to 'ShapeStyle' is only available in macOS 10.15 or newer
8 | import SwiftUI
9 |
10 | struct DialogButton: View {
| `- note: add @available attribute to enclosing struct
11 | let title: LocalizedStringKey
12 | let style: DialogButtonStyle
13 | let action: () -> Void
14 |
15 | var body: some View {
| `- note: add @available attribute to enclosing property
16 | Button(action: action) {
| |- error: conformance of 'Color' to 'ShapeStyle' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
17 | Text(title)
18 | .font(style.font)
/Users/admin/builder/spi-builder-workspace/Sources/Dialoggy/DialogButton.swift:17:13: error: 'Text' is only available in macOS 10.15 or newer
8 | import SwiftUI
9 |
10 | struct DialogButton: View {
| `- note: add @available attribute to enclosing struct
11 | let title: LocalizedStringKey
12 | let style: DialogButtonStyle
13 | let action: () -> Void
14 |
15 | var body: some View {
| `- note: add @available attribute to enclosing property
16 | Button(action: action) {
17 | Text(title)
| |- error: 'Text' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
18 | .font(style.font)
19 | .foregroundColor(style.foregroundColor)
/Users/admin/builder/spi-builder-workspace/Sources/Dialoggy/DialogButton.swift:17:13: error: 'init(_:tableName:bundle:comment:)' is only available in macOS 10.15 or newer
8 | import SwiftUI
9 |
10 | struct DialogButton: View {
| `- note: add @available attribute to enclosing struct
11 | let title: LocalizedStringKey
12 | let style: DialogButtonStyle
13 | let action: () -> Void
14 |
15 | var body: some View {
| `- note: add @available attribute to enclosing property
16 | Button(action: action) {
17 | Text(title)
| |- error: 'init(_:tableName:bundle:comment:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
18 | .font(style.font)
19 | .foregroundColor(style.foregroundColor)
/Users/admin/builder/spi-builder-workspace/Sources/Dialoggy/DialogButton.swift:18:18: error: 'font' is only available in macOS 10.15 or newer
8 | import SwiftUI
9 |
10 | struct DialogButton: View {
| `- note: add @available attribute to enclosing struct
11 | let title: LocalizedStringKey
12 | let style: DialogButtonStyle
13 | let action: () -> Void
14 |
15 | var body: some View {
| `- note: add @available attribute to enclosing property
16 | Button(action: action) {
17 | Text(title)
18 | .font(style.font)
| |- error: 'font' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
19 | .foregroundColor(style.foregroundColor)
20 | .padding(.horizontal, style.horizontalPadding)
/Users/admin/builder/spi-builder-workspace/Sources/Dialoggy/DialogButton.swift:19:18: error: 'foregroundColor' is only available in macOS 10.15 or newer
8 | import SwiftUI
9 |
10 | struct DialogButton: View {
| `- note: add @available attribute to enclosing struct
11 | let title: LocalizedStringKey
12 | let style: DialogButtonStyle
13 | let action: () -> Void
14 |
15 | var body: some View {
| `- note: add @available attribute to enclosing property
16 | Button(action: action) {
17 | Text(title)
18 | .font(style.font)
19 | .foregroundColor(style.foregroundColor)
| |- error: 'foregroundColor' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
20 | .padding(.horizontal, style.horizontalPadding)
21 | .padding(.vertical, style.verticalPadding)
/Users/admin/builder/spi-builder-workspace/Sources/Dialoggy/DialogButton.swift:20:18: error: 'padding' is only available in macOS 10.15 or newer
8 | import SwiftUI
9 |
10 | struct DialogButton: View {
| `- note: add @available attribute to enclosing struct
11 | let title: LocalizedStringKey
12 | let style: DialogButtonStyle
13 | let action: () -> Void
14 |
15 | var body: some View {
| `- note: add @available attribute to enclosing property
16 | Button(action: action) {
17 | Text(title)
18 | .font(style.font)
19 | .foregroundColor(style.foregroundColor)
20 | .padding(.horizontal, style.horizontalPadding)
| |- error: 'padding' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
21 | .padding(.vertical, style.verticalPadding)
22 | .frame(maxWidth: .infinity)
/Users/admin/builder/spi-builder-workspace/Sources/Dialoggy/DialogButton.swift:21:18: error: 'padding' is only available in macOS 10.15 or newer
8 | import SwiftUI
9 |
10 | struct DialogButton: View {
| `- note: add @available attribute to enclosing struct
11 | let title: LocalizedStringKey
12 | let style: DialogButtonStyle
13 | let action: () -> Void
14 |
15 | var body: some View {
| `- note: add @available attribute to enclosing property
16 | Button(action: action) {
17 | Text(title)
:
19 | .foregroundColor(style.foregroundColor)
20 | .padding(.horizontal, style.horizontalPadding)
21 | .padding(.vertical, style.verticalPadding)
| |- error: 'padding' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
22 | .frame(maxWidth: .infinity)
23 | .background(style.backgroundColor)
/Users/admin/builder/spi-builder-workspace/Sources/Dialoggy/DialogButton.swift:22:18: error: 'frame(minWidth:idealWidth:maxWidth:minHeight:idealHeight:maxHeight:alignment:)' is only available in macOS 10.15 or newer
8 | import SwiftUI
9 |
10 | struct DialogButton: View {
| `- note: add @available attribute to enclosing struct
11 | let title: LocalizedStringKey
12 | let style: DialogButtonStyle
13 | let action: () -> Void
14 |
15 | var body: some View {
| `- note: add @available attribute to enclosing property
16 | Button(action: action) {
17 | Text(title)
:
20 | .padding(.horizontal, style.horizontalPadding)
21 | .padding(.vertical, style.verticalPadding)
22 | .frame(maxWidth: .infinity)
| |- error: 'frame(minWidth:idealWidth:maxWidth:minHeight:idealHeight:maxHeight:alignment:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
23 | .background(style.backgroundColor)
24 | .cornerRadius(style.cornerRadius)
/Users/admin/builder/spi-builder-workspace/Sources/Dialoggy/DialogButton.swift:23:18: error: 'background(_:ignoresSafeAreaEdges:)' is only available in macOS 12.0 or newer
8 | import SwiftUI
9 |
10 | struct DialogButton: View {
| `- note: add @available attribute to enclosing struct
11 | let title: LocalizedStringKey
12 | let style: DialogButtonStyle
13 | let action: () -> Void
14 |
15 | var body: some View {
| `- note: add @available attribute to enclosing property
16 | Button(action: action) {
17 | Text(title)
:
21 | .padding(.vertical, style.verticalPadding)
22 | .frame(maxWidth: .infinity)
23 | .background(style.backgroundColor)
| |- error: 'background(_:ignoresSafeAreaEdges:)' is only available in macOS 12.0 or newer
| `- note: add 'if #available' version check
24 | .cornerRadius(style.cornerRadius)
25 | .overlay{
/Users/admin/builder/spi-builder-workspace/Sources/Dialoggy/DialogButton.swift:24:18: error: 'cornerRadius(_:antialiased:)' is only available in macOS 10.15 or newer
8 | import SwiftUI
9 |
10 | struct DialogButton: View {
| `- note: add @available attribute to enclosing struct
11 | let title: LocalizedStringKey
12 | let style: DialogButtonStyle
13 | let action: () -> Void
14 |
15 | var body: some View {
| `- note: add @available attribute to enclosing property
16 | Button(action: action) {
17 | Text(title)
:
22 | .frame(maxWidth: .infinity)
23 | .background(style.backgroundColor)
24 | .cornerRadius(style.cornerRadius)
| |- error: 'cornerRadius(_:antialiased:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
25 | .overlay{
26 | RoundedRectangle(cornerRadius: style.cornerRadius)
/Users/admin/builder/spi-builder-workspace/Sources/Dialoggy/DialogButton.swift:25:18: error: 'overlay(alignment:content:)' is only available in macOS 12.0 or newer
8 | import SwiftUI
9 |
10 | struct DialogButton: View {
| `- note: add @available attribute to enclosing struct
11 | let title: LocalizedStringKey
12 | let style: DialogButtonStyle
13 | let action: () -> Void
14 |
15 | var body: some View {
| `- note: add @available attribute to enclosing property
16 | Button(action: action) {
17 | Text(title)
:
23 | .background(style.backgroundColor)
24 | .cornerRadius(style.cornerRadius)
25 | .overlay{
| |- error: 'overlay(alignment:content:)' is only available in macOS 12.0 or newer
| `- note: add 'if #available' version check
26 | RoundedRectangle(cornerRadius: style.cornerRadius)
27 | .stroke(style.borderColor)
/Users/admin/builder/spi-builder-workspace/Sources/Dialoggy/DialogButton.swift:25:25: error: conformance of 'Color' to 'ShapeStyle' is only available in macOS 10.15 or newer
8 | import SwiftUI
9 |
10 | struct DialogButton: View {
| `- note: add @available attribute to enclosing struct
11 | let title: LocalizedStringKey
12 | let style: DialogButtonStyle
13 | let action: () -> Void
14 |
15 | var body: some View {
| `- note: add @available attribute to enclosing property
16 | Button(action: action) {
17 | Text(title)
:
23 | .background(style.backgroundColor)
24 | .cornerRadius(style.cornerRadius)
25 | .overlay{
| |- error: conformance of 'Color' to 'ShapeStyle' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
26 | RoundedRectangle(cornerRadius: style.cornerRadius)
27 | .stroke(style.borderColor)
/Users/admin/builder/spi-builder-workspace/Sources/Dialoggy/DialogButton.swift:26:21: error: conformance of 'Color' to 'ShapeStyle' is only available in macOS 10.15 or newer
8 | import SwiftUI
9 |
10 | struct DialogButton: View {
| `- note: add @available attribute to enclosing struct
11 | let title: LocalizedStringKey
12 | let style: DialogButtonStyle
13 | let action: () -> Void
14 |
15 | var body: some View {
| `- note: add @available attribute to enclosing property
16 | Button(action: action) {
17 | Text(title)
:
24 | .cornerRadius(style.cornerRadius)
25 | .overlay{
26 | RoundedRectangle(cornerRadius: style.cornerRadius)
| |- error: conformance of 'Color' to 'ShapeStyle' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
27 | .stroke(style.borderColor)
28 | }
/Users/admin/builder/spi-builder-workspace/Sources/Dialoggy/DialogButton.swift:26:21: error: 'RoundedRectangle' is only available in macOS 10.15 or newer
8 | import SwiftUI
9 |
10 | struct DialogButton: View {
| `- note: add @available attribute to enclosing struct
11 | let title: LocalizedStringKey
12 | let style: DialogButtonStyle
13 | let action: () -> Void
14 |
15 | var body: some View {
| `- note: add @available attribute to enclosing property
16 | Button(action: action) {
17 | Text(title)
:
24 | .cornerRadius(style.cornerRadius)
25 | .overlay{
26 | RoundedRectangle(cornerRadius: style.cornerRadius)
| |- error: 'RoundedRectangle' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
27 | .stroke(style.borderColor)
28 | }
/Users/admin/builder/spi-builder-workspace/Sources/Dialoggy/DialogButton.swift:27:26: error: 'stroke(_:lineWidth:antialiased:)' is only available in macOS 14.0 or newer
8 | import SwiftUI
9 |
10 | struct DialogButton: View {
| `- note: add @available attribute to enclosing struct
11 | let title: LocalizedStringKey
12 | let style: DialogButtonStyle
13 | let action: () -> Void
14 |
15 | var body: some View {
| `- note: add @available attribute to enclosing property
16 | Button(action: action) {
17 | Text(title)
:
25 | .overlay{
26 | RoundedRectangle(cornerRadius: style.cornerRadius)
27 | .stroke(style.borderColor)
| |- error: 'stroke(_:lineWidth:antialiased:)' is only available in macOS 14.0 or newer
| `- note: add 'if #available' version check
28 | }
29 | }
/Users/admin/builder/spi-builder-workspace/Sources/Dialoggy/DialogButton.swift:25:25: error: conformance of 'Color' to 'ShapeStyle' is only available in macOS 10.15 or newer
8 | import SwiftUI
9 |
10 | struct DialogButton: View {
| `- note: add @available attribute to enclosing struct
11 | let title: LocalizedStringKey
12 | let style: DialogButtonStyle
13 | let action: () -> Void
14 |
15 | var body: some View {
| `- note: add @available attribute to enclosing property
16 | Button(action: action) {
17 | Text(title)
:
23 | .background(style.backgroundColor)
24 | .cornerRadius(style.cornerRadius)
25 | .overlay{
| |- error: conformance of 'Color' to 'ShapeStyle' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
26 | RoundedRectangle(cornerRadius: style.cornerRadius)
27 | .stroke(style.borderColor)
[10/14] Compiling Dialoggy DialogButton.swift
/Users/admin/builder/spi-builder-workspace/Sources/Dialoggy/DialogBridgeModifier.swift:12:6: error: 'Environment' is only available in macOS 10.15 or newer
8 | import SwiftUI
9 |
10 | public struct DialogBridgeModifier: ViewModifier {
| `- note: add @available attribute to enclosing struct
11 |
12 | @Environment(\.showDialog) var showDialog
| `- error: 'Environment' is only available in macOS 10.15 or newer
13 | @Binding var presentedDialog: DialogModel?
14 |
/Users/admin/builder/spi-builder-workspace/Sources/Dialoggy/DialogBridgeModifier.swift:13:6: error: 'Binding' is only available in macOS 10.15 or newer
8 | import SwiftUI
9 |
10 | public struct DialogBridgeModifier: ViewModifier {
| `- note: add @available attribute to enclosing struct
11 |
12 | @Environment(\.showDialog) var showDialog
13 | @Binding var presentedDialog: DialogModel?
| `- error: 'Binding' is only available in macOS 10.15 or newer
14 |
15 | public func body(content: Content) -> some View {
/Users/admin/builder/spi-builder-workspace/Sources/Dialoggy/DialogBridgeModifier.swift:15:48: error: 'View' is only available in macOS 10.15 or newer
8 | import SwiftUI
9 |
10 | public struct DialogBridgeModifier: ViewModifier {
| `- note: add @available attribute to enclosing struct
11 |
12 | @Environment(\.showDialog) var showDialog
13 | @Binding var presentedDialog: DialogModel?
14 |
15 | public func body(content: Content) -> some View {
| | `- error: 'View' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing instance method
16 | content
17 | .onChange(of: presentedDialog) { _, newValue in
/Users/admin/builder/spi-builder-workspace/Sources/Dialoggy/DialogBridgeModifier.swift:25:36: error: 'Binding' is only available in macOS 10.15 or newer
21 | }
22 |
23 | public extension View {
| `- note: add @available attribute to enclosing extension
24 |
25 | func dialog(_ presentedDialog: Binding<DialogModel?>) -> some View {
| | `- error: 'Binding' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing instance method
26 | self.modifier(DialogBridgeModifier(presentedDialog: presentedDialog))
27 | }
/Users/admin/builder/spi-builder-workspace/Sources/Dialoggy/DialogBridgeModifier.swift:25:67: error: 'View' is only available in macOS 10.15 or newer
21 | }
22 |
23 | public extension View {
| `- note: add @available attribute to enclosing extension
24 |
25 | func dialog(_ presentedDialog: Binding<DialogModel?>) -> some View {
| | `- error: 'View' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing instance method
26 | self.modifier(DialogBridgeModifier(presentedDialog: presentedDialog))
27 | }
/Users/admin/builder/spi-builder-workspace/Sources/Dialoggy/DialogBridgeModifier.swift:23:18: error: 'View' is only available in macOS 10.15 or newer
21 | }
22 |
23 | public extension View {
| | `- error: 'View' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing extension
24 |
25 | func dialog(_ presentedDialog: Binding<DialogModel?>) -> some View {
/Users/admin/builder/spi-builder-workspace/Sources/Dialoggy/DialogBridgeModifier.swift:17:14: error: 'onChange(of:initial:_:)' is only available in macOS 14.0 or newer
8 | import SwiftUI
9 |
10 | public struct DialogBridgeModifier: ViewModifier {
| `- note: add @available attribute to enclosing struct
11 |
12 | @Environment(\.showDialog) var showDialog
13 | @Binding var presentedDialog: DialogModel?
14 |
15 | public func body(content: Content) -> some View {
| `- note: add @available attribute to enclosing instance method
16 | content
17 | .onChange(of: presentedDialog) { _, newValue in
| |- error: 'onChange(of:initial:_:)' is only available in macOS 14.0 or newer
| `- note: add 'if #available' version check
18 | showDialog.wrappedValue = newValue
19 | }
/Users/admin/builder/spi-builder-workspace/Sources/Dialoggy/DialogBridgeModifier.swift:26:14: error: conformance of 'ModifiedContent<Content, Modifier>' to 'View' is only available in macOS 10.15 or newer
21 | }
22 |
23 | public extension View {
| `- note: add @available attribute to enclosing extension
24 |
25 | func dialog(_ presentedDialog: Binding<DialogModel?>) -> some View {
| `- note: add @available attribute to enclosing instance method
26 | self.modifier(DialogBridgeModifier(presentedDialog: presentedDialog))
| |- error: conformance of 'ModifiedContent<Content, Modifier>' to 'View' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
27 | }
28 | }
/Users/admin/builder/spi-builder-workspace/Sources/Dialoggy/DialogBridgeModifier.swift:26:14: error: 'modifier' is only available in macOS 10.15 or newer
21 | }
22 |
23 | public extension View {
| `- note: add @available attribute to enclosing extension
24 |
25 | func dialog(_ presentedDialog: Binding<DialogModel?>) -> some View {
| `- note: add @available attribute to enclosing instance method
26 | self.modifier(DialogBridgeModifier(presentedDialog: presentedDialog))
| |- error: 'modifier' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
27 | }
28 | }
/Users/admin/builder/spi-builder-workspace/Sources/Dialoggy/DialogButton.swift:11:16: error: 'LocalizedStringKey' is only available in macOS 10.15 or newer
8 | import SwiftUI
9 |
10 | struct DialogButton: View {
| `- note: add @available attribute to enclosing struct
11 | let title: LocalizedStringKey
| `- error: 'LocalizedStringKey' is only available in macOS 10.15 or newer
12 | let style: DialogButtonStyle
13 | let action: () -> Void
/Users/admin/builder/spi-builder-workspace/Sources/Dialoggy/DialogButton.swift:15:20: error: 'View' is only available in macOS 10.15 or newer
8 | import SwiftUI
9 |
10 | struct DialogButton: View {
| `- note: add @available attribute to enclosing struct
11 | let title: LocalizedStringKey
12 | let style: DialogButtonStyle
13 | let action: () -> Void
14 |
15 | var body: some View {
| | `- error: 'View' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing property
16 | Button(action: action) {
17 | Text(title)
/Users/admin/builder/spi-builder-workspace/Sources/Dialoggy/DialogButton.swift:16:9: error: 'Button' is only available in macOS 10.15 or newer
8 | import SwiftUI
9 |
10 | struct DialogButton: View {
| `- note: add @available attribute to enclosing struct
11 | let title: LocalizedStringKey
12 | let style: DialogButtonStyle
13 | let action: () -> Void
14 |
15 | var body: some View {
| `- note: add @available attribute to enclosing property
16 | Button(action: action) {
| |- error: 'Button' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
17 | Text(title)
18 | .font(style.font)
/Users/admin/builder/spi-builder-workspace/Sources/Dialoggy/DialogButton.swift:16:32: error: conformance of 'Color' to 'ShapeStyle' is only available in macOS 10.15 or newer
8 | import SwiftUI
9 |
10 | struct DialogButton: View {
| `- note: add @available attribute to enclosing struct
11 | let title: LocalizedStringKey
12 | let style: DialogButtonStyle
13 | let action: () -> Void
14 |
15 | var body: some View {
| `- note: add @available attribute to enclosing property
16 | Button(action: action) {
| |- error: conformance of 'Color' to 'ShapeStyle' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
17 | Text(title)
18 | .font(style.font)
/Users/admin/builder/spi-builder-workspace/Sources/Dialoggy/DialogButton.swift:17:13: error: 'Text' is only available in macOS 10.15 or newer
8 | import SwiftUI
9 |
10 | struct DialogButton: View {
| `- note: add @available attribute to enclosing struct
11 | let title: LocalizedStringKey
12 | let style: DialogButtonStyle
13 | let action: () -> Void
14 |
15 | var body: some View {
| `- note: add @available attribute to enclosing property
16 | Button(action: action) {
17 | Text(title)
| |- error: 'Text' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
18 | .font(style.font)
19 | .foregroundColor(style.foregroundColor)
/Users/admin/builder/spi-builder-workspace/Sources/Dialoggy/DialogButton.swift:17:13: error: 'init(_:tableName:bundle:comment:)' is only available in macOS 10.15 or newer
8 | import SwiftUI
9 |
10 | struct DialogButton: View {
| `- note: add @available attribute to enclosing struct
11 | let title: LocalizedStringKey
12 | let style: DialogButtonStyle
13 | let action: () -> Void
14 |
15 | var body: some View {
| `- note: add @available attribute to enclosing property
16 | Button(action: action) {
17 | Text(title)
| |- error: 'init(_:tableName:bundle:comment:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
18 | .font(style.font)
19 | .foregroundColor(style.foregroundColor)
/Users/admin/builder/spi-builder-workspace/Sources/Dialoggy/DialogButton.swift:18:18: error: 'font' is only available in macOS 10.15 or newer
8 | import SwiftUI
9 |
10 | struct DialogButton: View {
| `- note: add @available attribute to enclosing struct
11 | let title: LocalizedStringKey
12 | let style: DialogButtonStyle
13 | let action: () -> Void
14 |
15 | var body: some View {
| `- note: add @available attribute to enclosing property
16 | Button(action: action) {
17 | Text(title)
18 | .font(style.font)
| |- error: 'font' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
19 | .foregroundColor(style.foregroundColor)
20 | .padding(.horizontal, style.horizontalPadding)
/Users/admin/builder/spi-builder-workspace/Sources/Dialoggy/DialogButton.swift:19:18: error: 'foregroundColor' is only available in macOS 10.15 or newer
8 | import SwiftUI
9 |
10 | struct DialogButton: View {
| `- note: add @available attribute to enclosing struct
11 | let title: LocalizedStringKey
12 | let style: DialogButtonStyle
13 | let action: () -> Void
14 |
15 | var body: some View {
| `- note: add @available attribute to enclosing property
16 | Button(action: action) {
17 | Text(title)
18 | .font(style.font)
19 | .foregroundColor(style.foregroundColor)
| |- error: 'foregroundColor' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
20 | .padding(.horizontal, style.horizontalPadding)
21 | .padding(.vertical, style.verticalPadding)
/Users/admin/builder/spi-builder-workspace/Sources/Dialoggy/DialogButton.swift:20:18: error: 'padding' is only available in macOS 10.15 or newer
8 | import SwiftUI
9 |
10 | struct DialogButton: View {
| `- note: add @available attribute to enclosing struct
11 | let title: LocalizedStringKey
12 | let style: DialogButtonStyle
13 | let action: () -> Void
14 |
15 | var body: some View {
| `- note: add @available attribute to enclosing property
16 | Button(action: action) {
17 | Text(title)
18 | .font(style.font)
19 | .foregroundColor(style.foregroundColor)
20 | .padding(.horizontal, style.horizontalPadding)
| |- error: 'padding' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
21 | .padding(.vertical, style.verticalPadding)
22 | .frame(maxWidth: .infinity)
/Users/admin/builder/spi-builder-workspace/Sources/Dialoggy/DialogButton.swift:21:18: error: 'padding' is only available in macOS 10.15 or newer
8 | import SwiftUI
9 |
10 | struct DialogButton: View {
| `- note: add @available attribute to enclosing struct
11 | let title: LocalizedStringKey
12 | let style: DialogButtonStyle
13 | let action: () -> Void
14 |
15 | var body: some View {
| `- note: add @available attribute to enclosing property
16 | Button(action: action) {
17 | Text(title)
:
19 | .foregroundColor(style.foregroundColor)
20 | .padding(.horizontal, style.horizontalPadding)
21 | .padding(.vertical, style.verticalPadding)
| |- error: 'padding' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
22 | .frame(maxWidth: .infinity)
23 | .background(style.backgroundColor)
/Users/admin/builder/spi-builder-workspace/Sources/Dialoggy/DialogButton.swift:22:18: error: 'frame(minWidth:idealWidth:maxWidth:minHeight:idealHeight:maxHeight:alignment:)' is only available in macOS 10.15 or newer
8 | import SwiftUI
9 |
10 | struct DialogButton: View {
| `- note: add @available attribute to enclosing struct
11 | let title: LocalizedStringKey
12 | let style: DialogButtonStyle
13 | let action: () -> Void
14 |
15 | var body: some View {
| `- note: add @available attribute to enclosing property
16 | Button(action: action) {
17 | Text(title)
:
20 | .padding(.horizontal, style.horizontalPadding)
21 | .padding(.vertical, style.verticalPadding)
22 | .frame(maxWidth: .infinity)
| |- error: 'frame(minWidth:idealWidth:maxWidth:minHeight:idealHeight:maxHeight:alignment:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
23 | .background(style.backgroundColor)
24 | .cornerRadius(style.cornerRadius)
/Users/admin/builder/spi-builder-workspace/Sources/Dialoggy/DialogButton.swift:23:18: error: 'background(_:ignoresSafeAreaEdges:)' is only available in macOS 12.0 or newer
8 | import SwiftUI
9 |
10 | struct DialogButton: View {
| `- note: add @available attribute to enclosing struct
11 | let title: LocalizedStringKey
12 | let style: DialogButtonStyle
13 | let action: () -> Void
14 |
15 | var body: some View {
| `- note: add @available attribute to enclosing property
16 | Button(action: action) {
17 | Text(title)
:
21 | .padding(.vertical, style.verticalPadding)
22 | .frame(maxWidth: .infinity)
23 | .background(style.backgroundColor)
| |- error: 'background(_:ignoresSafeAreaEdges:)' is only available in macOS 12.0 or newer
| `- note: add 'if #available' version check
24 | .cornerRadius(style.cornerRadius)
25 | .overlay{
/Users/admin/builder/spi-builder-workspace/Sources/Dialoggy/DialogButton.swift:24:18: error: 'cornerRadius(_:antialiased:)' is only available in macOS 10.15 or newer
8 | import SwiftUI
9 |
10 | struct DialogButton: View {
| `- note: add @available attribute to enclosing struct
11 | let title: LocalizedStringKey
12 | let style: DialogButtonStyle
13 | let action: () -> Void
14 |
15 | var body: some View {
| `- note: add @available attribute to enclosing property
16 | Button(action: action) {
17 | Text(title)
:
22 | .frame(maxWidth: .infinity)
23 | .background(style.backgroundColor)
24 | .cornerRadius(style.cornerRadius)
| |- error: 'cornerRadius(_:antialiased:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
25 | .overlay{
26 | RoundedRectangle(cornerRadius: style.cornerRadius)
/Users/admin/builder/spi-builder-workspace/Sources/Dialoggy/DialogButton.swift:25:18: error: 'overlay(alignment:content:)' is only available in macOS 12.0 or newer
8 | import SwiftUI
9 |
10 | struct DialogButton: View {
| `- note: add @available attribute to enclosing struct
11 | let title: LocalizedStringKey
12 | let style: DialogButtonStyle
13 | let action: () -> Void
14 |
15 | var body: some View {
| `- note: add @available attribute to enclosing property
16 | Button(action: action) {
17 | Text(title)
:
23 | .background(style.backgroundColor)
24 | .cornerRadius(style.cornerRadius)
25 | .overlay{
| |- error: 'overlay(alignment:content:)' is only available in macOS 12.0 or newer
| `- note: add 'if #available' version check
26 | RoundedRectangle(cornerRadius: style.cornerRadius)
27 | .stroke(style.borderColor)
/Users/admin/builder/spi-builder-workspace/Sources/Dialoggy/DialogButton.swift:25:25: error: conformance of 'Color' to 'ShapeStyle' is only available in macOS 10.15 or newer
8 | import SwiftUI
9 |
10 | struct DialogButton: View {
| `- note: add @available attribute to enclosing struct
11 | let title: LocalizedStringKey
12 | let style: DialogButtonStyle
13 | let action: () -> Void
14 |
15 | var body: some View {
| `- note: add @available attribute to enclosing property
16 | Button(action: action) {
17 | Text(title)
:
23 | .background(style.backgroundColor)
24 | .cornerRadius(style.cornerRadius)
25 | .overlay{
| |- error: conformance of 'Color' to 'ShapeStyle' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
26 | RoundedRectangle(cornerRadius: style.cornerRadius)
27 | .stroke(style.borderColor)
/Users/admin/builder/spi-builder-workspace/Sources/Dialoggy/DialogButton.swift:26:21: error: conformance of 'Color' to 'ShapeStyle' is only available in macOS 10.15 or newer
8 | import SwiftUI
9 |
10 | struct DialogButton: View {
| `- note: add @available attribute to enclosing struct
11 | let title: LocalizedStringKey
12 | let style: DialogButtonStyle
13 | let action: () -> Void
14 |
15 | var body: some View {
| `- note: add @available attribute to enclosing property
16 | Button(action: action) {
17 | Text(title)
:
24 | .cornerRadius(style.cornerRadius)
25 | .overlay{
26 | RoundedRectangle(cornerRadius: style.cornerRadius)
| |- error: conformance of 'Color' to 'ShapeStyle' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
27 | .stroke(style.borderColor)
28 | }
/Users/admin/builder/spi-builder-workspace/Sources/Dialoggy/DialogButton.swift:26:21: error: 'RoundedRectangle' is only available in macOS 10.15 or newer
8 | import SwiftUI
9 |
10 | struct DialogButton: View {
| `- note: add @available attribute to enclosing struct
11 | let title: LocalizedStringKey
12 | let style: DialogButtonStyle
13 | let action: () -> Void
14 |
15 | var body: some View {
| `- note: add @available attribute to enclosing property
16 | Button(action: action) {
17 | Text(title)
:
24 | .cornerRadius(style.cornerRadius)
25 | .overlay{
26 | RoundedRectangle(cornerRadius: style.cornerRadius)
| |- error: 'RoundedRectangle' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
27 | .stroke(style.borderColor)
28 | }
/Users/admin/builder/spi-builder-workspace/Sources/Dialoggy/DialogButton.swift:27:26: error: 'stroke(_:lineWidth:antialiased:)' is only available in macOS 14.0 or newer
8 | import SwiftUI
9 |
10 | struct DialogButton: View {
| `- note: add @available attribute to enclosing struct
11 | let title: LocalizedStringKey
12 | let style: DialogButtonStyle
13 | let action: () -> Void
14 |
15 | var body: some View {
| `- note: add @available attribute to enclosing property
16 | Button(action: action) {
17 | Text(title)
:
25 | .overlay{
26 | RoundedRectangle(cornerRadius: style.cornerRadius)
27 | .stroke(style.borderColor)
| |- error: 'stroke(_:lineWidth:antialiased:)' is only available in macOS 14.0 or newer
| `- note: add 'if #available' version check
28 | }
29 | }
/Users/admin/builder/spi-builder-workspace/Sources/Dialoggy/DialogButton.swift:25:25: error: conformance of 'Color' to 'ShapeStyle' is only available in macOS 10.15 or newer
8 | import SwiftUI
9 |
10 | struct DialogButton: View {
| `- note: add @available attribute to enclosing struct
11 | let title: LocalizedStringKey
12 | let style: DialogButtonStyle
13 | let action: () -> Void
14 |
15 | var body: some View {
| `- note: add @available attribute to enclosing property
16 | Button(action: action) {
17 | Text(title)
:
23 | .background(style.backgroundColor)
24 | .cornerRadius(style.cornerRadius)
25 | .overlay{
| |- error: conformance of 'Color' to 'ShapeStyle' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
26 | RoundedRectangle(cornerRadius: style.cornerRadius)
27 | .stroke(style.borderColor)
[11/14] Compiling Dialoggy ShowDialogKey.swift
/Users/admin/builder/spi-builder-workspace/Sources/Dialoggy/ShowDialogKey.swift:13:37: error: 'Binding' is only available in macOS 10.15 or newer
8 | import SwiftUI
9 |
10 | public struct ShowDialogKey: @preconcurrency EnvironmentKey {
| `- note: add @available attribute to enclosing struct
11 |
12 | @MainActor
13 | public static let defaultValue: Binding<DialogModel?> = .constant(nil)
| | `- error: 'Binding' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing static property
14 | }
15 |
/Users/admin/builder/spi-builder-workspace/Sources/Dialoggy/ShowDialogKey.swift:18:21: error: 'Binding' is only available in macOS 10.15 or newer
14 | }
15 |
16 | extension EnvironmentValues {
| `- note: add @available attribute to enclosing extension
17 |
18 | var showDialog: Binding<DialogModel?> {
| | `- error: 'Binding' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing property
19 | get { self[ShowDialogKey.self] }
20 | set { self[ShowDialogKey.self] = newValue }
/Users/admin/builder/spi-builder-workspace/Sources/Dialoggy/ShowDialogKey.swift:16:11: error: 'EnvironmentValues' is only available in macOS 10.15 or newer
14 | }
15 |
16 | extension EnvironmentValues {
| | `- error: 'EnvironmentValues' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing extension
17 |
18 | var showDialog: Binding<DialogModel?> {
[12/14] Compiling Dialoggy DialogableViewModifier.swift
/Users/admin/builder/spi-builder-workspace/Sources/Dialoggy/DialogableViewModifier.swift:13:71: error: 'View' is only available in macOS 10.15 or newer
9 | import Foundation
10 |
11 | public extension View {
| `- note: add @available attribute to enclosing extension
12 |
13 | func dialogable(style: DialogStyleConfig = .defaultValue) -> some View {
| | `- error: 'View' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing instance method
14 | self.modifier(DialogableViewModifier())
15 | .environment(\.dialogStyle, style)
/Users/admin/builder/spi-builder-workspace/Sources/Dialoggy/Style/DialogButtonStyle.swift:40:26: error: 'Color' is only available in macOS 10.15 or newer
8 | import SwiftUI
9 |
10 | public struct DialogButtonStyle {
| `- note: add @available attribute to enclosing struct
11 |
12 | let backgroundColor: Color
:
37 |
38 |
39 | nonisolated(unsafe) public static let primary = DialogButtonStyle(
| `- note: add @available attribute to enclosing static property
40 | backgroundColor: Color.accentColor,
| `- error: 'Color' is only available in macOS 10.15 or newer
41 | foregroundColor: Color.white,
42 | cornerRadius: 12,
/Users/admin/builder/spi-builder-workspace/Sources/Dialoggy/Style/DialogButtonStyle.swift:40:32: error: 'accentColor' is only available in macOS 10.15 or newer
8 | import SwiftUI
9 |
10 | public struct DialogButtonStyle {
| `- note: add @available attribute to enclosing struct
11 |
12 | let backgroundColor: Color
:
37 |
38 |
39 | nonisolated(unsafe) public static let primary = DialogButtonStyle(
| `- note: add @available attribute to enclosing static property
40 | backgroundColor: Color.accentColor,
| `- error: 'accentColor' is only available in macOS 10.15 or newer
41 | foregroundColor: Color.white,
42 | cornerRadius: 12,
/Users/admin/builder/spi-builder-workspace/Sources/Dialoggy/Style/DialogButtonStyle.swift:41:26: error: 'Color' is only available in macOS 10.15 or newer
8 | import SwiftUI
9 |
10 | public struct DialogButtonStyle {
| `- note: add @available attribute to enclosing struct
11 |
12 | let backgroundColor: Color
:
37 |
38 |
39 | nonisolated(unsafe) public static let primary = DialogButtonStyle(
| `- note: add @available attribute to enclosing static property
40 | backgroundColor: Color.accentColor,
41 | foregroundColor: Color.white,
| `- error: 'Color' is only available in macOS 10.15 or newer
42 | cornerRadius: 12,
43 | font: .headline,
/Users/admin/builder/spi-builder-workspace/Sources/Dialoggy/Style/DialogButtonStyle.swift:41:32: error: 'white' is only available in macOS 10.15 or newer
8 | import SwiftUI
9 |
10 | public struct DialogButtonStyle {
| `- note: add @available attribute to enclosing struct
11 |
12 | let backgroundColor: Color
:
37 |
38 |
39 | nonisolated(unsafe) public static let primary = DialogButtonStyle(
| `- note: add @available attribute to enclosing static property
40 | backgroundColor: Color.accentColor,
41 | foregroundColor: Color.white,
| `- error: 'white' is only available in macOS 10.15 or newer
42 | cornerRadius: 12,
43 | font: .headline,
/Users/admin/builder/spi-builder-workspace/Sources/Dialoggy/Style/DialogButtonStyle.swift:43:16: error: 'headline' is only available in macOS 10.15 or newer
8 | import SwiftUI
9 |
10 | public struct DialogButtonStyle {
| `- note: add @available attribute to enclosing struct
11 |
12 | let backgroundColor: Color
:
37 |
38 |
39 | nonisolated(unsafe) public static let primary = DialogButtonStyle(
| `- note: add @available attribute to enclosing static property
40 | backgroundColor: Color.accentColor,
41 | foregroundColor: Color.white,
42 | cornerRadius: 12,
43 | font: .headline,
| `- error: 'headline' is only available in macOS 10.15 or newer
44 | horizontalPadding: 16,
45 | verticalPadding: 10
/Users/admin/builder/spi-builder-workspace/Sources/Dialoggy/Style/DialogButtonStyle.swift:49:26: error: 'Color' is only available in macOS 10.15 or newer
8 | import SwiftUI
9 |
10 | public struct DialogButtonStyle {
| `- note: add @available attribute to enclosing struct
11 |
12 | let backgroundColor: Color
:
46 | )
47 |
48 | nonisolated(unsafe) public static let secondary = DialogButtonStyle(
| `- note: add @available attribute to enclosing static property
49 | backgroundColor: Color.clear,
| `- error: 'Color' is only available in macOS 10.15 or newer
50 | foregroundColor: Color.accentColor,
51 | cornerRadius: 12,
/Users/admin/builder/spi-builder-workspace/Sources/Dialoggy/Style/DialogButtonStyle.swift:49:32: error: 'clear' is only available in macOS 10.15 or newer
8 | import SwiftUI
9 |
10 | public struct DialogButtonStyle {
| `- note: add @available attribute to enclosing struct
11 |
12 | let backgroundColor: Color
:
46 | )
47 |
48 | nonisolated(unsafe) public static let secondary = DialogButtonStyle(
| `- note: add @available attribute to enclosing static property
49 | backgroundColor: Color.clear,
| `- error: 'clear' is only available in macOS 10.15 or newer
50 | foregroundColor: Color.accentColor,
51 | cornerRadius: 12,
/Users/admin/builder/spi-builder-workspace/Sources/Dialoggy/Style/DialogButtonStyle.swift:50:26: error: 'Color' is only available in macOS 10.15 or newer
8 | import SwiftUI
9 |
10 | public struct DialogButtonStyle {
| `- note: add @available attribute to enclosing struct
11 |
12 | let backgroundColor: Color
:
46 | )
47 |
48 | nonisolated(unsafe) public static let secondary = DialogButtonStyle(
| `- note: add @available attribute to enclosing static property
49 | backgroundColor: Color.clear,
50 | foregroundColor: Color.accentColor,
| `- error: 'Color' is only available in macOS 10.15 or newer
51 | cornerRadius: 12,
52 | font: .subheadline,
/Users/admin/builder/spi-builder-workspace/Sources/Dialoggy/Style/DialogButtonStyle.swift:50:32: error: 'accentColor' is only available in macOS 10.15 or newer
8 | import SwiftUI
9 |
10 | public struct DialogButtonStyle {
| `- note: add @available attribute to enclosing struct
11 |
12 | let backgroundColor: Color
:
46 | )
47 |
48 | nonisolated(unsafe) public static let secondary = DialogButtonStyle(
| `- note: add @available attribute to enclosing static property
49 | backgroundColor: Color.clear,
50 | foregroundColor: Color.accentColor,
| `- error: 'accentColor' is only available in macOS 10.15 or newer
51 | cornerRadius: 12,
52 | font: .subheadline,
/Users/admin/builder/spi-builder-workspace/Sources/Dialoggy/Style/DialogButtonStyle.swift:52:16: error: 'subheadline' is only available in macOS 10.15 or newer
8 | import SwiftUI
9 |
10 | public struct DialogButtonStyle {
| `- note: add @available attribute to enclosing struct
11 |
12 | let backgroundColor: Color
:
46 | )
47 |
48 | nonisolated(unsafe) public static let secondary = DialogButtonStyle(
| `- note: add @available attribute to enclosing static property
49 | backgroundColor: Color.clear,
50 | foregroundColor: Color.accentColor,
51 | cornerRadius: 12,
52 | font: .subheadline,
| `- error: 'subheadline' is only available in macOS 10.15 or newer
53 | horizontalPadding: 16,
54 | verticalPadding: 10
/Users/admin/builder/spi-builder-workspace/Sources/Dialoggy/Model/DialogStyleConfig.swift:47:21: error: 'title2' is only available in macOS 11.0 or newer
40 | }
41 |
42 | public extension DialogStyleConfig {
| `- note: add @available attribute to enclosing extension
43 |
44 | static let defaultValue = DialogStyleConfig(
| `- note: add @available attribute to enclosing static property
45 | primaryButtonStyle: DialogButtonStyle.primary,
46 | secondaryButtonStyle: DialogButtonStyle.secondary,
47 | titleFont: .title2.bold(),
| `- error: 'title2' is only available in macOS 11.0 or newer
48 | titleForegroundColor: .primary,
49 | messageFont: .body,
/Users/admin/builder/spi-builder-workspace/Sources/Dialoggy/Model/DialogStyleConfig.swift:47:28: error: 'bold()' is only available in macOS 10.15 or newer
40 | }
41 |
42 | public extension DialogStyleConfig {
| `- note: add @available attribute to enclosing extension
43 |
44 | static let defaultValue = DialogStyleConfig(
| `- note: add @available attribute to enclosing static property
45 | primaryButtonStyle: DialogButtonStyle.primary,
46 | secondaryButtonStyle: DialogButtonStyle.secondary,
47 | titleFont: .title2.bold(),
| `- error: 'bold()' is only available in macOS 10.15 or newer
48 | titleForegroundColor: .primary,
49 | messageFont: .body,
/Users/admin/builder/spi-builder-workspace/Sources/Dialoggy/Model/DialogStyleConfig.swift:48:32: error: 'primary' is only available in macOS 10.15 or newer
40 | }
41 |
42 | public extension DialogStyleConfig {
| `- note: add @available attribute to enclosing extension
43 |
44 | static let defaultValue = DialogStyleConfig(
| `- note: add @available attribute to enclosing static property
45 | primaryButtonStyle: DialogButtonStyle.primary,
46 | secondaryButtonStyle: DialogButtonStyle.secondary,
47 | titleFont: .title2.bold(),
48 | titleForegroundColor: .primary,
| `- error: 'primary' is only available in macOS 10.15 or newer
49 | messageFont: .body,
50 | messageForegroundColor: .secondary,
/Users/admin/builder/spi-builder-workspace/Sources/Dialoggy/Model/DialogStyleConfig.swift:49:23: error: 'body' is only available in macOS 10.15 or newer
40 | }
41 |
42 | public extension DialogStyleConfig {
| `- note: add @available attribute to enclosing extension
43 |
44 | static let defaultValue = DialogStyleConfig(
| `- note: add @available attribute to enclosing static property
45 | primaryButtonStyle: DialogButtonStyle.primary,
46 | secondaryButtonStyle: DialogButtonStyle.secondary,
47 | titleFont: .title2.bold(),
48 | titleForegroundColor: .primary,
49 | messageFont: .body,
| `- error: 'body' is only available in macOS 10.15 or newer
50 | messageForegroundColor: .secondary,
51 | imageSize: CGSize(width: 72, height: 72)
/Users/admin/builder/spi-builder-workspace/Sources/Dialoggy/Model/DialogStyleConfig.swift:50:34: error: 'secondary' is only available in macOS 10.15 or newer
40 | }
41 |
42 | public extension DialogStyleConfig {
| `- note: add @available attribute to enclosing extension
43 |
44 | static let defaultValue = DialogStyleConfig(
| `- note: add @available attribute to enclosing static property
45 | primaryButtonStyle: DialogButtonStyle.primary,
46 | secondaryButtonStyle: DialogButtonStyle.secondary,
:
48 | titleForegroundColor: .primary,
49 | messageFont: .body,
50 | messageForegroundColor: .secondary,
| `- error: 'secondary' is only available in macOS 10.15 or newer
51 | imageSize: CGSize(width: 72, height: 72)
52 | )
/Users/admin/builder/spi-builder-workspace/Sources/Dialoggy/DialogableViewModifier.swift:11:18: error: 'View' is only available in macOS 10.15 or newer
9 | import Foundation
10 |
11 | public extension View {
| | `- error: 'View' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing extension
12 |
13 | func dialogable(style: DialogStyleConfig = .defaultValue) -> some View {
/Users/admin/builder/spi-builder-workspace/Sources/Dialoggy/DialogableViewModifier.swift:20:6: error: 'State' is only available in macOS 10.15 or newer
17 | }
18 |
19 | struct DialogableViewModifier: ViewModifier {
| `- note: add @available attribute to enclosing struct
20 | @State private var currentDialog: DialogModel?
| `- error: 'State' is only available in macOS 10.15 or newer
21 | @Environment(\.dialogStyle) private var style
22 |
/Users/admin/builder/spi-builder-workspace/Sources/Dialoggy/DialogableViewModifier.swift:21:6: error: 'Environment' is only available in macOS 10.15 or newer
17 | }
18 |
19 | struct DialogableViewModifier: ViewModifier {
| `- note: add @available attribute to enclosing struct
20 | @State private var currentDialog: DialogModel?
21 | @Environment(\.dialogStyle) private var style
| `- error: 'Environment' is only available in macOS 10.15 or newer
22 |
23 | var isPresented: Bool {
/Users/admin/builder/spi-builder-workspace/Sources/Dialoggy/DialogableViewModifier.swift:27:41: error: 'View' is only available in macOS 10.15 or newer
17 | }
18 |
19 | struct DialogableViewModifier: ViewModifier {
| `- note: add @available attribute to enclosing struct
20 | @State private var currentDialog: DialogModel?
21 | @Environment(\.dialogStyle) private var style
:
25 | }
26 |
27 | func body(content: Content) -> some View {
| | `- error: 'View' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing instance method
28 | ZStack {
29 | content
/Users/admin/builder/spi-builder-workspace/Sources/Dialoggy/DialogableViewModifier.swift:14:14: error: 'modifier' is only available in macOS 10.15 or newer
9 | import Foundation
10 |
11 | public extension View {
| `- note: add @available attribute to enclosing extension
12 |
13 | func dialogable(style: DialogStyleConfig = .defaultValue) -> some View {
| `- note: add @available attribute to enclosing instance method
14 | self.modifier(DialogableViewModifier())
| |- error: 'modifier' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
15 | .environment(\.dialogStyle, style)
16 | }
/Users/admin/builder/spi-builder-workspace/Sources/Dialoggy/DialogableViewModifier.swift:15:14: error: 'environment' is only available in macOS 10.15 or newer
9 | import Foundation
10 |
11 | public extension View {
| `- note: add @available attribute to enclosing extension
12 |
13 | func dialogable(style: DialogStyleConfig = .defaultValue) -> some View {
| `- note: add @available attribute to enclosing instance method
14 | self.modifier(DialogableViewModifier())
15 | .environment(\.dialogStyle, style)
| |- error: 'environment' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
16 | }
17 | }
/Users/admin/builder/spi-builder-workspace/Sources/Dialoggy/DialogableViewModifier.swift:41:29: error: cannot find 'UINotificationFeedbackGenerator' in scope
39 | .transition(.asymmetric(insertion: .push(from: .bottom), removal: .opacity))
40 | .onAppear {
41 | UINotificationFeedbackGenerator().notificationOccurred(.warning)
| `- error: cannot find 'UINotificationFeedbackGenerator' in scope
42 | }
43 | .zIndex(1000)
[13/14] Compiling Dialoggy DialogModel.swift
/Users/admin/builder/spi-builder-workspace/Sources/Dialoggy/Model/DialogModel.swift:13:16: error: 'Image' is only available in macOS 10.15 or newer
9 | import SwiftUI
10 |
11 | public struct DialogModel: Identifiable, Equatable {
| `- note: add @available attribute to enclosing struct
12 | public let id: String
13 | let image: Image?
| `- error: 'Image' is only available in macOS 10.15 or newer
14 | let title: LocalizedStringKey
15 | let message: LocalizedStringKey?
/Users/admin/builder/spi-builder-workspace/Sources/Dialoggy/Model/DialogModel.swift:14:16: error: 'LocalizedStringKey' is only available in macOS 10.15 or newer
9 | import SwiftUI
10 |
11 | public struct DialogModel: Identifiable, Equatable {
| `- note: add @available attribute to enclosing struct
12 | public let id: String
13 | let image: Image?
14 | let title: LocalizedStringKey
| `- error: 'LocalizedStringKey' is only available in macOS 10.15 or newer
15 | let message: LocalizedStringKey?
16 | let actions: [DialogAction]
/Users/admin/builder/spi-builder-workspace/Sources/Dialoggy/Model/DialogModel.swift:15:18: error: 'LocalizedStringKey' is only available in macOS 10.15 or newer
9 | import SwiftUI
10 |
11 | public struct DialogModel: Identifiable, Equatable {
| `- note: add @available attribute to enclosing struct
12 | public let id: String
13 | let image: Image?
14 | let title: LocalizedStringKey
15 | let message: LocalizedStringKey?
| `- error: 'LocalizedStringKey' is only available in macOS 10.15 or newer
16 | let actions: [DialogAction]
17 |
/Users/admin/builder/spi-builder-workspace/Sources/Dialoggy/Model/DialogModel.swift:19:19: error: 'ImageResource' is only available in macOS 14.0 or newer
9 | import SwiftUI
10 |
11 | public struct DialogModel: Identifiable, Equatable {
| `- note: add @available attribute to enclosing struct
12 | public let id: String
13 | let image: Image?
:
16 | let actions: [DialogAction]
17 |
18 | public init(
| `- note: add @available attribute to enclosing initializer
19 | resource: ImageResource?,
| `- error: 'ImageResource' is only available in macOS 14.0 or newer
20 | title: LocalizedStringKey,
21 | message: LocalizedStringKey? = nil,
/Users/admin/builder/spi-builder-workspace/Sources/Dialoggy/Model/DialogModel.swift:20:16: error: 'LocalizedStringKey' is only available in macOS 10.15 or newer
9 | import SwiftUI
10 |
11 | public struct DialogModel: Identifiable, Equatable {
| `- note: add @available attribute to enclosing struct
12 | public let id: String
13 | let image: Image?
:
16 | let actions: [DialogAction]
17 |
18 | public init(
| `- note: add @available attribute to enclosing initializer
19 | resource: ImageResource?,
20 | title: LocalizedStringKey,
| `- error: 'LocalizedStringKey' is only available in macOS 10.15 or newer
21 | message: LocalizedStringKey? = nil,
22 | actions: [DialogAction]
/Users/admin/builder/spi-builder-workspace/Sources/Dialoggy/Model/DialogModel.swift:21:18: error: 'LocalizedStringKey' is only available in macOS 10.15 or newer
9 | import SwiftUI
10 |
11 | public struct DialogModel: Identifiable, Equatable {
| `- note: add @available attribute to enclosing struct
12 | public let id: String
13 | let image: Image?
:
16 | let actions: [DialogAction]
17 |
18 | public init(
| `- note: add @available attribute to enclosing initializer
19 | resource: ImageResource?,
20 | title: LocalizedStringKey,
21 | message: LocalizedStringKey? = nil,
| `- error: 'LocalizedStringKey' is only available in macOS 10.15 or newer
22 | actions: [DialogAction]
23 | ) {
/Users/admin/builder/spi-builder-workspace/Sources/Dialoggy/Model/DialogModel.swift:31:24: error: 'Image' is only available in macOS 10.15 or newer
9 | import SwiftUI
10 |
11 | public struct DialogModel: Identifiable, Equatable {
| `- note: add @available attribute to enclosing struct
12 | public let id: String
13 | let image: Image?
:
29 | }
30 |
31 | public init(image: Image?, title: LocalizedStringKey, message: LocalizedStringKey? = nil, actions: [DialogAction]) {
| | `- error: 'Image' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing initializer
32 | self.id = UUID().uuidString
33 | self.image = image
/Users/admin/builder/spi-builder-workspace/Sources/Dialoggy/Model/DialogModel.swift:31:39: error: 'LocalizedStringKey' is only available in macOS 10.15 or newer
9 | import SwiftUI
10 |
11 | public struct DialogModel: Identifiable, Equatable {
| `- note: add @available attribute to enclosing struct
12 | public let id: String
13 | let image: Image?
:
29 | }
30 |
31 | public init(image: Image?, title: LocalizedStringKey, message: LocalizedStringKey? = nil, actions: [DialogAction]) {
| | `- error: 'LocalizedStringKey' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing initializer
32 | self.id = UUID().uuidString
33 | self.image = image
/Users/admin/builder/spi-builder-workspace/Sources/Dialoggy/Model/DialogModel.swift:31:68: error: 'LocalizedStringKey' is only available in macOS 10.15 or newer
9 | import SwiftUI
10 |
11 | public struct DialogModel: Identifiable, Equatable {
| `- note: add @available attribute to enclosing struct
12 | public let id: String
13 | let image: Image?
:
29 | }
30 |
31 | public init(image: Image?, title: LocalizedStringKey, message: LocalizedStringKey? = nil, actions: [DialogAction]) {
| | `- error: 'LocalizedStringKey' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing initializer
32 | self.id = UUID().uuidString
33 | self.image = image
/Users/admin/builder/spi-builder-workspace/Sources/Dialoggy/Model/DialogModel.swift:25:37: error: 'Image' is only available in macOS 10.15 or newer
9 | import SwiftUI
10 |
11 | public struct DialogModel: Identifiable, Equatable {
| `- note: add @available attribute to enclosing struct
12 | public let id: String
13 | let image: Image?
:
16 | let actions: [DialogAction]
17 |
18 | public init(
| `- note: add @available attribute to enclosing initializer
19 | resource: ImageResource?,
20 | title: LocalizedStringKey,
:
23 | ) {
24 | self.id = UUID().uuidString
25 | self.image = resource.map { Image($0) }
| |- error: 'Image' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
26 | self.title = title
27 | self.message = message
/Users/admin/builder/spi-builder-workspace/Sources/Dialoggy/Model/DialogModel.swift:25:37: error: 'init(_:)' is only available in macOS 14.0 or newer
9 | import SwiftUI
10 |
11 | public struct DialogModel: Identifiable, Equatable {
| `- note: add @available attribute to enclosing struct
12 | public let id: String
13 | let image: Image?
:
16 | let actions: [DialogAction]
17 |
18 | public init(
| `- note: add @available attribute to enclosing initializer
19 | resource: ImageResource?,
20 | title: LocalizedStringKey,
:
23 | ) {
24 | self.id = UUID().uuidString
25 | self.image = resource.map { Image($0) }
| |- error: 'init(_:)' is only available in macOS 14.0 or newer
| `- note: add 'if #available' version check
26 | self.title = title
27 | self.message = message
[14/14] Compiling Dialoggy DialogStyleKey.swift
/Users/admin/builder/spi-builder-workspace/Sources/Dialoggy/Style/DialogButtonStyle.swift:40:26: error: 'Color' is only available in macOS 10.15 or newer
8 | import SwiftUI
9 |
10 | public struct DialogButtonStyle {
| `- note: add @available attribute to enclosing struct
11 |
12 | let backgroundColor: Color
:
37 |
38 |
39 | nonisolated(unsafe) public static let primary = DialogButtonStyle(
| `- note: add @available attribute to enclosing static property
40 | backgroundColor: Color.accentColor,
| `- error: 'Color' is only available in macOS 10.15 or newer
41 | foregroundColor: Color.white,
42 | cornerRadius: 12,
/Users/admin/builder/spi-builder-workspace/Sources/Dialoggy/Style/DialogButtonStyle.swift:40:32: error: 'accentColor' is only available in macOS 10.15 or newer
8 | import SwiftUI
9 |
10 | public struct DialogButtonStyle {
| `- note: add @available attribute to enclosing struct
11 |
12 | let backgroundColor: Color
:
37 |
38 |
39 | nonisolated(unsafe) public static let primary = DialogButtonStyle(
| `- note: add @available attribute to enclosing static property
40 | backgroundColor: Color.accentColor,
| `- error: 'accentColor' is only available in macOS 10.15 or newer
41 | foregroundColor: Color.white,
42 | cornerRadius: 12,
/Users/admin/builder/spi-builder-workspace/Sources/Dialoggy/Style/DialogButtonStyle.swift:41:26: error: 'Color' is only available in macOS 10.15 or newer
8 | import SwiftUI
9 |
10 | public struct DialogButtonStyle {
| `- note: add @available attribute to enclosing struct
11 |
12 | let backgroundColor: Color
:
37 |
38 |
39 | nonisolated(unsafe) public static let primary = DialogButtonStyle(
| `- note: add @available attribute to enclosing static property
40 | backgroundColor: Color.accentColor,
41 | foregroundColor: Color.white,
| `- error: 'Color' is only available in macOS 10.15 or newer
42 | cornerRadius: 12,
43 | font: .headline,
/Users/admin/builder/spi-builder-workspace/Sources/Dialoggy/Style/DialogButtonStyle.swift:41:32: error: 'white' is only available in macOS 10.15 or newer
8 | import SwiftUI
9 |
10 | public struct DialogButtonStyle {
| `- note: add @available attribute to enclosing struct
11 |
12 | let backgroundColor: Color
:
37 |
38 |
39 | nonisolated(unsafe) public static let primary = DialogButtonStyle(
| `- note: add @available attribute to enclosing static property
40 | backgroundColor: Color.accentColor,
41 | foregroundColor: Color.white,
| `- error: 'white' is only available in macOS 10.15 or newer
42 | cornerRadius: 12,
43 | font: .headline,
/Users/admin/builder/spi-builder-workspace/Sources/Dialoggy/Style/DialogButtonStyle.swift:43:16: error: 'headline' is only available in macOS 10.15 or newer
8 | import SwiftUI
9 |
10 | public struct DialogButtonStyle {
| `- note: add @available attribute to enclosing struct
11 |
12 | let backgroundColor: Color
:
37 |
38 |
39 | nonisolated(unsafe) public static let primary = DialogButtonStyle(
| `- note: add @available attribute to enclosing static property
40 | backgroundColor: Color.accentColor,
41 | foregroundColor: Color.white,
42 | cornerRadius: 12,
43 | font: .headline,
| `- error: 'headline' is only available in macOS 10.15 or newer
44 | horizontalPadding: 16,
45 | verticalPadding: 10
/Users/admin/builder/spi-builder-workspace/Sources/Dialoggy/Style/DialogButtonStyle.swift:49:26: error: 'Color' is only available in macOS 10.15 or newer
8 | import SwiftUI
9 |
10 | public struct DialogButtonStyle {
| `- note: add @available attribute to enclosing struct
11 |
12 | let backgroundColor: Color
:
46 | )
47 |
48 | nonisolated(unsafe) public static let secondary = DialogButtonStyle(
| `- note: add @available attribute to enclosing static property
49 | backgroundColor: Color.clear,
| `- error: 'Color' is only available in macOS 10.15 or newer
50 | foregroundColor: Color.accentColor,
51 | cornerRadius: 12,
/Users/admin/builder/spi-builder-workspace/Sources/Dialoggy/Style/DialogButtonStyle.swift:49:32: error: 'clear' is only available in macOS 10.15 or newer
8 | import SwiftUI
9 |
10 | public struct DialogButtonStyle {
| `- note: add @available attribute to enclosing struct
11 |
12 | let backgroundColor: Color
:
46 | )
47 |
48 | nonisolated(unsafe) public static let secondary = DialogButtonStyle(
| `- note: add @available attribute to enclosing static property
49 | backgroundColor: Color.clear,
| `- error: 'clear' is only available in macOS 10.15 or newer
50 | foregroundColor: Color.accentColor,
51 | cornerRadius: 12,
/Users/admin/builder/spi-builder-workspace/Sources/Dialoggy/Style/DialogButtonStyle.swift:50:26: error: 'Color' is only available in macOS 10.15 or newer
8 | import SwiftUI
9 |
10 | public struct DialogButtonStyle {
| `- note: add @available attribute to enclosing struct
11 |
12 | let backgroundColor: Color
:
46 | )
47 |
48 | nonisolated(unsafe) public static let secondary = DialogButtonStyle(
| `- note: add @available attribute to enclosing static property
49 | backgroundColor: Color.clear,
50 | foregroundColor: Color.accentColor,
| `- error: 'Color' is only available in macOS 10.15 or newer
51 | cornerRadius: 12,
52 | font: .subheadline,
/Users/admin/builder/spi-builder-workspace/Sources/Dialoggy/Style/DialogButtonStyle.swift:50:32: error: 'accentColor' is only available in macOS 10.15 or newer
8 | import SwiftUI
9 |
10 | public struct DialogButtonStyle {
| `- note: add @available attribute to enclosing struct
11 |
12 | let backgroundColor: Color
:
46 | )
47 |
48 | nonisolated(unsafe) public static let secondary = DialogButtonStyle(
| `- note: add @available attribute to enclosing static property
49 | backgroundColor: Color.clear,
50 | foregroundColor: Color.accentColor,
| `- error: 'accentColor' is only available in macOS 10.15 or newer
51 | cornerRadius: 12,
52 | font: .subheadline,
/Users/admin/builder/spi-builder-workspace/Sources/Dialoggy/Style/DialogButtonStyle.swift:52:16: error: 'subheadline' is only available in macOS 10.15 or newer
8 | import SwiftUI
9 |
10 | public struct DialogButtonStyle {
| `- note: add @available attribute to enclosing struct
11 |
12 | let backgroundColor: Color
:
46 | )
47 |
48 | nonisolated(unsafe) public static let secondary = DialogButtonStyle(
| `- note: add @available attribute to enclosing static property
49 | backgroundColor: Color.clear,
50 | foregroundColor: Color.accentColor,
51 | cornerRadius: 12,
52 | font: .subheadline,
| `- error: 'subheadline' is only available in macOS 10.15 or newer
53 | horizontalPadding: 16,
54 | verticalPadding: 10
/Users/admin/builder/spi-builder-workspace/Sources/Dialoggy/Model/DialogStyleConfig.swift:47:21: error: 'title2' is only available in macOS 11.0 or newer
40 | }
41 |
42 | public extension DialogStyleConfig {
| `- note: add @available attribute to enclosing extension
43 |
44 | static let defaultValue = DialogStyleConfig(
| `- note: add @available attribute to enclosing static property
45 | primaryButtonStyle: DialogButtonStyle.primary,
46 | secondaryButtonStyle: DialogButtonStyle.secondary,
47 | titleFont: .title2.bold(),
| `- error: 'title2' is only available in macOS 11.0 or newer
48 | titleForegroundColor: .primary,
49 | messageFont: .body,
/Users/admin/builder/spi-builder-workspace/Sources/Dialoggy/Model/DialogStyleConfig.swift:47:28: error: 'bold()' is only available in macOS 10.15 or newer
40 | }
41 |
42 | public extension DialogStyleConfig {
| `- note: add @available attribute to enclosing extension
43 |
44 | static let defaultValue = DialogStyleConfig(
| `- note: add @available attribute to enclosing static property
45 | primaryButtonStyle: DialogButtonStyle.primary,
46 | secondaryButtonStyle: DialogButtonStyle.secondary,
47 | titleFont: .title2.bold(),
| `- error: 'bold()' is only available in macOS 10.15 or newer
48 | titleForegroundColor: .primary,
49 | messageFont: .body,
/Users/admin/builder/spi-builder-workspace/Sources/Dialoggy/Model/DialogStyleConfig.swift:48:32: error: 'primary' is only available in macOS 10.15 or newer
40 | }
41 |
42 | public extension DialogStyleConfig {
| `- note: add @available attribute to enclosing extension
43 |
44 | static let defaultValue = DialogStyleConfig(
| `- note: add @available attribute to enclosing static property
45 | primaryButtonStyle: DialogButtonStyle.primary,
46 | secondaryButtonStyle: DialogButtonStyle.secondary,
47 | titleFont: .title2.bold(),
48 | titleForegroundColor: .primary,
| `- error: 'primary' is only available in macOS 10.15 or newer
49 | messageFont: .body,
50 | messageForegroundColor: .secondary,
/Users/admin/builder/spi-builder-workspace/Sources/Dialoggy/Model/DialogStyleConfig.swift:49:23: error: 'body' is only available in macOS 10.15 or newer
40 | }
41 |
42 | public extension DialogStyleConfig {
| `- note: add @available attribute to enclosing extension
43 |
44 | static let defaultValue = DialogStyleConfig(
| `- note: add @available attribute to enclosing static property
45 | primaryButtonStyle: DialogButtonStyle.primary,
46 | secondaryButtonStyle: DialogButtonStyle.secondary,
47 | titleFont: .title2.bold(),
48 | titleForegroundColor: .primary,
49 | messageFont: .body,
| `- error: 'body' is only available in macOS 10.15 or newer
50 | messageForegroundColor: .secondary,
51 | imageSize: CGSize(width: 72, height: 72)
/Users/admin/builder/spi-builder-workspace/Sources/Dialoggy/Model/DialogStyleConfig.swift:50:34: error: 'secondary' is only available in macOS 10.15 or newer
40 | }
41 |
42 | public extension DialogStyleConfig {
| `- note: add @available attribute to enclosing extension
43 |
44 | static let defaultValue = DialogStyleConfig(
| `- note: add @available attribute to enclosing static property
45 | primaryButtonStyle: DialogButtonStyle.primary,
46 | secondaryButtonStyle: DialogButtonStyle.secondary,
:
48 | titleForegroundColor: .primary,
49 | messageFont: .body,
50 | messageForegroundColor: .secondary,
| `- error: 'secondary' is only available in macOS 10.15 or newer
51 | imageSize: CGSize(width: 72, height: 72)
52 | )
/Users/admin/builder/spi-builder-workspace/Sources/Dialoggy/Style/DialogStyleKey.swift:16:11: error: 'EnvironmentValues' is only available in macOS 10.15 or newer
14 | }
15 |
16 | extension EnvironmentValues {
| | `- error: 'EnvironmentValues' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing extension
17 |
18 | var dialogStyle: DialogStyleConfig {
BUILD FAILURE 6.0 macosSpm