Build Information
Failed to build MaterialDesignUIComponents, reference main (d27a26
), with Swift 6.0 for macOS (SPM) on 2 Nov 2024 09:51:15 UTC.
Build Command
env DEVELOPER_DIR=/Applications/Xcode-16.1.0.app xcrun swift build --arch arm64 -Xswiftc -Xfrontend -Xswiftc -stats-output-dir -Xswiftc -Xfrontend -Xswiftc .stats -Xswiftc -strict-concurrency=complete
Build Log
========================================
RunAll
========================================
Builder version: 4.56.0
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/tichise/MaterialDesignUIComponents.git
Reference: main
Initialized empty Git repository in /Users/admin/builder/spi-builder-workspace/.git/
From https://github.com/tichise/MaterialDesignUIComponents
* branch main -> FETCH_HEAD
* [new branch] main -> origin/main
HEAD is now at d27a26b Update README.md
Cloned https://github.com/tichise/MaterialDesignUIComponents.git
Revision (git rev-parse @):
d27a26bd4ded19e67b80ae690ecf22ac2503c4e9
SUCCESS checkout https://github.com/tichise/MaterialDesignUIComponents.git at main
========================================
ResolveProductDependencies
========================================
Resolving dependencies ...
{
"identity": ".resolve-product-dependencies",
"name": "resolve-dependencies",
"url": "/Users/admin/builder/spi-builder-workspace/.resolve-product-dependencies",
"version": "unspecified",
"path": "/Users/admin/builder/spi-builder-workspace/.resolve-product-dependencies",
"dependencies": [
{
"identity": "materialdesignuicomponents",
"name": "MaterialDesignUIComponents",
"url": "https://github.com/tichise/MaterialDesignUIComponents.git",
"version": "unspecified",
"path": "/Users/admin/builder/spi-builder-workspace/.resolve-product-dependencies/.build/checkouts/MaterialDesignUIComponents",
"dependencies": [
]
}
]
}
Fetching https://github.com/tichise/MaterialDesignUIComponents.git
[1/125] Fetching materialdesignuicomponents
Fetched https://github.com/tichise/MaterialDesignUIComponents.git from cache (0.96s)
Creating working copy for https://github.com/tichise/MaterialDesignUIComponents.git
Working copy of https://github.com/tichise/MaterialDesignUIComponents.git resolved at main (d27a26b)
warning: '.resolve-product-dependencies': dependency 'materialdesignuicomponents' is not used by any target
Found 0 product dependencies
========================================
Build
========================================
Selected platform: macosSpm
Swift version: 6.0
Building package at path: $PWD
https://github.com/tichise/MaterialDesignUIComponents.git
Running build ...
env DEVELOPER_DIR=/Applications/Xcode-16.1.0.app xcrun swift build --arch arm64 -Xswiftc -Xfrontend -Xswiftc -stats-output-dir -Xswiftc -Xfrontend -Xswiftc .stats -Xswiftc -strict-concurrency=complete
Building for debugging...
[0/2] Write sources
[1/2] Write swift-version--7754E27361AE5C74.txt
[3/7] Compiling MaterialDesignUIComponents FilledCard.swift
/Users/admin/builder/spi-builder-workspace/Sources/MaterialDesignUIComponents/ViewModifier/Card/FilledCard.swift:14:57: error: 'Color' is only available in macOS 10.15 or newer
10 | /// MaterialデザインのCards(Filled)を表示するのに使うViewModifier
11 | /// https://m3.material.io/components/cards/overview
12 | public struct FilledCard: ViewModifier {
| `- note: add @available attribute to enclosing struct
13 |
14 | public init(cornerRadius: CGFloat, backgroundColor: Color) {
| | `- error: 'Color' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing initializer
15 | self.cornerRadius = cornerRadius
16 | self.backgroundColor = backgroundColor
/Users/admin/builder/spi-builder-workspace/Sources/MaterialDesignUIComponents/ViewModifier/Card/FilledCard.swift:20:33: error: 'Color' is only available in macOS 10.15 or newer
10 | /// MaterialデザインのCards(Filled)を表示するのに使うViewModifier
11 | /// https://m3.material.io/components/cards/overview
12 | public struct FilledCard: ViewModifier {
| `- note: add @available attribute to enclosing struct
13 |
14 | public init(cornerRadius: CGFloat, backgroundColor: Color) {
:
18 |
19 | public var cornerRadius: CGFloat // 角丸の半径
20 | public var backgroundColor: Color
| `- error: 'Color' is only available in macOS 10.15 or newer
21 |
22 | public func body(content: Content) -> some View {
/Users/admin/builder/spi-builder-workspace/Sources/MaterialDesignUIComponents/ViewModifier/Card/FilledCard.swift:22:48: error: 'View' is only available in macOS 10.15 or newer
10 | /// MaterialデザインのCards(Filled)を表示するのに使うViewModifier
11 | /// https://m3.material.io/components/cards/overview
12 | public struct FilledCard: ViewModifier {
| `- note: add @available attribute to enclosing struct
13 |
14 | public init(cornerRadius: CGFloat, backgroundColor: Color) {
:
20 | public var backgroundColor: Color
21 |
22 | 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
23 | content.background(backgroundColor)
24 | .cornerRadius(cornerRadius)
/Users/admin/builder/spi-builder-workspace/Sources/MaterialDesignUIComponents/ViewModifier/Card/FilledCard.swift:30:31: error: 'View' is only available in macOS 10.15 or newer
27 |
28 | @available(iOS 14, *)
29 | struct FilledCard_Previews: PreviewProvider {
| `- note: add @available attribute to enclosing struct
30 | static var previews: some View {
| | `- error: 'View' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing static property
31 | HStack {
32 | Text("text").padding(10)
/Users/admin/builder/spi-builder-workspace/Sources/MaterialDesignUIComponents/ViewModifier/Card/FilledCard.swift:23:17: error: 'background(_:ignoresSafeAreaEdges:)' is only available in macOS 12.0 or newer
10 | /// MaterialデザインのCards(Filled)を表示するのに使うViewModifier
11 | /// https://m3.material.io/components/cards/overview
12 | public struct FilledCard: ViewModifier {
| `- note: add @available attribute to enclosing struct
13 |
14 | public init(cornerRadius: CGFloat, backgroundColor: Color) {
:
20 | public var backgroundColor: Color
21 |
22 | public func body(content: Content) -> some View {
| `- note: add @available attribute to enclosing instance method
23 | content.background(backgroundColor)
| |- error: 'background(_:ignoresSafeAreaEdges:)' is only available in macOS 12.0 or newer
| `- note: add 'if #available' version check
24 | .cornerRadius(cornerRadius)
25 | }
/Users/admin/builder/spi-builder-workspace/Sources/MaterialDesignUIComponents/ViewModifier/Card/FilledCard.swift:24:14: error: 'cornerRadius(_:antialiased:)' is only available in macOS 10.15 or newer
10 | /// MaterialデザインのCards(Filled)を表示するのに使うViewModifier
11 | /// https://m3.material.io/components/cards/overview
12 | public struct FilledCard: ViewModifier {
| `- note: add @available attribute to enclosing struct
13 |
14 | public init(cornerRadius: CGFloat, backgroundColor: Color) {
:
20 | public var backgroundColor: Color
21 |
22 | public func body(content: Content) -> some View {
| `- note: add @available attribute to enclosing instance method
23 | content.background(backgroundColor)
24 | .cornerRadius(cornerRadius)
| |- error: 'cornerRadius(_:antialiased:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
25 | }
26 | }
/Users/admin/builder/spi-builder-workspace/Sources/MaterialDesignUIComponents/ViewModifier/Card/FilledCard.swift:31:9: warning: conformance of 'ModifiedContent<Content, Modifier>' to 'View' is only available in macOS 10.15 or newer; this is an error in the Swift 6 language mode
27 |
28 | @available(iOS 14, *)
29 | struct FilledCard_Previews: PreviewProvider {
| `- note: add @available attribute to enclosing struct
30 | static var previews: some View {
| `- note: add @available attribute to enclosing static property
31 | HStack {
| |- warning: conformance of 'ModifiedContent<Content, Modifier>' to 'View' is only available in macOS 10.15 or newer; this is an error in the Swift 6 language mode
| `- note: add 'if #available' version check
32 | Text("text").padding(10)
33 | }.modifier(FilledCard(cornerRadius: 5, backgroundColor: .yellow))
/Users/admin/builder/spi-builder-workspace/Sources/MaterialDesignUIComponents/ViewModifier/Card/FilledCard.swift:31:9: error: 'HStack' is only available in macOS 10.15 or newer
27 |
28 | @available(iOS 14, *)
29 | struct FilledCard_Previews: PreviewProvider {
| `- note: add @available attribute to enclosing struct
30 | static var previews: some View {
| `- note: add @available attribute to enclosing static property
31 | HStack {
| |- error: 'HStack' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
32 | Text("text").padding(10)
33 | }.modifier(FilledCard(cornerRadius: 5, backgroundColor: .yellow))
/Users/admin/builder/spi-builder-workspace/Sources/MaterialDesignUIComponents/ViewModifier/Card/FilledCard.swift:32:13: error: 'Text' is only available in macOS 10.15 or newer
27 |
28 | @available(iOS 14, *)
29 | struct FilledCard_Previews: PreviewProvider {
| `- note: add @available attribute to enclosing struct
30 | static var previews: some View {
| `- note: add @available attribute to enclosing static property
31 | HStack {
32 | Text("text").padding(10)
| |- error: 'Text' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
33 | }.modifier(FilledCard(cornerRadius: 5, backgroundColor: .yellow))
34 | }
/Users/admin/builder/spi-builder-workspace/Sources/MaterialDesignUIComponents/ViewModifier/Card/FilledCard.swift:32:26: error: 'padding' is only available in macOS 10.15 or newer
27 |
28 | @available(iOS 14, *)
29 | struct FilledCard_Previews: PreviewProvider {
| `- note: add @available attribute to enclosing struct
30 | static var previews: some View {
| `- note: add @available attribute to enclosing static property
31 | HStack {
32 | Text("text").padding(10)
| |- error: 'padding' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
33 | }.modifier(FilledCard(cornerRadius: 5, backgroundColor: .yellow))
34 | }
/Users/admin/builder/spi-builder-workspace/Sources/MaterialDesignUIComponents/ViewModifier/Card/FilledCard.swift:33:11: error: 'modifier' is only available in macOS 10.15 or newer
27 |
28 | @available(iOS 14, *)
29 | struct FilledCard_Previews: PreviewProvider {
| `- note: add @available attribute to enclosing struct
30 | static var previews: some View {
| `- note: add @available attribute to enclosing static property
31 | HStack {
32 | Text("text").padding(10)
33 | }.modifier(FilledCard(cornerRadius: 5, backgroundColor: .yellow))
| |- error: 'modifier' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
34 | }
35 | }
/Users/admin/builder/spi-builder-workspace/Sources/MaterialDesignUIComponents/ViewModifier/Card/FilledCard.swift:33:66: error: 'yellow' is only available in macOS 10.15 or newer
27 |
28 | @available(iOS 14, *)
29 | struct FilledCard_Previews: PreviewProvider {
| `- note: add @available attribute to enclosing struct
30 | static var previews: some View {
| `- note: add @available attribute to enclosing static property
31 | HStack {
32 | Text("text").padding(10)
33 | }.modifier(FilledCard(cornerRadius: 5, backgroundColor: .yellow))
| |- error: 'yellow' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
34 | }
35 | }
/Users/admin/builder/spi-builder-workspace/Sources/MaterialDesignUIComponents/ViewModifier/Card/FilledCard.swift:30:36: warning: conformance of 'ModifiedContent<Content, Modifier>' to 'View' is only available in macOS 10.15 or newer; this is an error in the Swift 6 language mode
27 |
28 | @available(iOS 14, *)
29 | struct FilledCard_Previews: PreviewProvider {
| `- note: add @available attribute to enclosing struct
30 | static var previews: some View {
| | |- warning: conformance of 'ModifiedContent<Content, Modifier>' to 'View' is only available in macOS 10.15 or newer; this is an error in the Swift 6 language mode
| | `- note: add 'if #available' version check
| `- note: add @available attribute to enclosing static property
31 | HStack {
32 | Text("text").padding(10)
error: emit-module command failed with exit code 1 (use -v to see invocation)
[4/7] Emitting module MaterialDesignUIComponents
/Users/admin/builder/spi-builder-workspace/Sources/MaterialDesignUIComponents/ButtonStyle/ButtonStyleContained.swift:8:23: error: 'Font' is only available in macOS 10.15 or newer
5 |
6 | /// 中が塗りつぶしになってる丸型のボタンスタイル
7 | public struct ButtonStyleContained: ButtonStyle {
| `- note: add @available attribute to enclosing struct
8 | public init(font: Font = .callout, forgroundColor: Color = .white, backgroundColor: Color = .blue,
| | `- error: 'Font' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing initializer
9 | shadowColor: Color = .gray,
10 | padding: CGFloat = 5, isInfinity: Bool = false) {
/Users/admin/builder/spi-builder-workspace/Sources/MaterialDesignUIComponents/ButtonStyle/ButtonStyleContained.swift:8:56: error: 'Color' is only available in macOS 10.15 or newer
5 |
6 | /// 中が塗りつぶしになってる丸型のボタンスタイル
7 | public struct ButtonStyleContained: ButtonStyle {
| `- note: add @available attribute to enclosing struct
8 | public init(font: Font = .callout, forgroundColor: Color = .white, backgroundColor: Color = .blue,
| | `- error: 'Color' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing initializer
9 | shadowColor: Color = .gray,
10 | padding: CGFloat = 5, isInfinity: Bool = false) {
/Users/admin/builder/spi-builder-workspace/Sources/MaterialDesignUIComponents/ButtonStyle/ButtonStyleContained.swift:8:89: error: 'Color' is only available in macOS 10.15 or newer
5 |
6 | /// 中が塗りつぶしになってる丸型のボタンスタイル
7 | public struct ButtonStyleContained: ButtonStyle {
| `- note: add @available attribute to enclosing struct
8 | public init(font: Font = .callout, forgroundColor: Color = .white, backgroundColor: Color = .blue,
| | `- error: 'Color' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing initializer
9 | shadowColor: Color = .gray,
10 | padding: CGFloat = 5, isInfinity: Bool = false) {
/Users/admin/builder/spi-builder-workspace/Sources/MaterialDesignUIComponents/ButtonStyle/ButtonStyleContained.swift:9:22: error: 'Color' is only available in macOS 10.15 or newer
5 |
6 | /// 中が塗りつぶしになってる丸型のボタンスタイル
7 | public struct ButtonStyleContained: ButtonStyle {
| `- note: add @available attribute to enclosing struct
8 | public init(font: Font = .callout, forgroundColor: Color = .white, backgroundColor: Color = .blue,
| `- note: add @available attribute to enclosing initializer
9 | shadowColor: Color = .gray,
| `- error: 'Color' is only available in macOS 10.15 or newer
10 | padding: CGFloat = 5, isInfinity: Bool = false) {
11 | self.font = font
/Users/admin/builder/spi-builder-workspace/Sources/MaterialDesignUIComponents/ButtonStyle/ButtonStyleContained.swift:8:31: error: 'callout' is only available in macOS 10.15 or newer
5 |
6 | /// 中が塗りつぶしになってる丸型のボタンスタイル
7 | public struct ButtonStyleContained: ButtonStyle {
| `- note: add @available attribute to enclosing struct
8 | public init(font: Font = .callout, forgroundColor: Color = .white, backgroundColor: Color = .blue,
| | `- error: 'callout' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing initializer
9 | shadowColor: Color = .gray,
10 | padding: CGFloat = 5, isInfinity: Bool = false) {
/Users/admin/builder/spi-builder-workspace/Sources/MaterialDesignUIComponents/ButtonStyle/ButtonStyleContained.swift:8:65: error: 'white' is only available in macOS 10.15 or newer
5 |
6 | /// 中が塗りつぶしになってる丸型のボタンスタイル
7 | public struct ButtonStyleContained: ButtonStyle {
| `- note: add @available attribute to enclosing struct
8 | public init(font: Font = .callout, forgroundColor: Color = .white, backgroundColor: Color = .blue,
| | `- error: 'white' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing initializer
9 | shadowColor: Color = .gray,
10 | padding: CGFloat = 5, isInfinity: Bool = false) {
/Users/admin/builder/spi-builder-workspace/Sources/MaterialDesignUIComponents/ButtonStyle/ButtonStyleContained.swift:8:98: error: 'blue' is only available in macOS 10.15 or newer
5 |
6 | /// 中が塗りつぶしになってる丸型のボタンスタイル
7 | public struct ButtonStyleContained: ButtonStyle {
| `- note: add @available attribute to enclosing struct
8 | public init(font: Font = .callout, forgroundColor: Color = .white, backgroundColor: Color = .blue,
| | `- error: 'blue' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing initializer
9 | shadowColor: Color = .gray,
10 | padding: CGFloat = 5, isInfinity: Bool = false) {
/Users/admin/builder/spi-builder-workspace/Sources/MaterialDesignUIComponents/ButtonStyle/ButtonStyleContained.swift:9:31: error: 'gray' is only available in macOS 10.15 or newer
5 |
6 | /// 中が塗りつぶしになってる丸型のボタンスタイル
7 | public struct ButtonStyleContained: ButtonStyle {
| `- note: add @available attribute to enclosing struct
8 | public init(font: Font = .callout, forgroundColor: Color = .white, backgroundColor: Color = .blue,
| `- note: add @available attribute to enclosing initializer
9 | shadowColor: Color = .gray,
| `- error: 'gray' is only available in macOS 10.15 or newer
10 | padding: CGFloat = 5, isInfinity: Bool = false) {
11 | self.font = font
/Users/admin/builder/spi-builder-workspace/Sources/MaterialDesignUIComponents/ButtonStyle/ButtonStyleContained.swift:19:15: error: 'Font' is only available in macOS 10.15 or newer
5 |
6 | /// 中が塗りつぶしになってる丸型のボタンスタイル
7 | public struct ButtonStyleContained: ButtonStyle {
| `- note: add @available attribute to enclosing struct
8 | public init(font: Font = .callout, forgroundColor: Color = .white, backgroundColor: Color = .blue,
9 | shadowColor: Color = .gray,
:
17 | }
18 |
19 | var font: Font = .callout
| `- error: 'Font' is only available in macOS 10.15 or newer
20 | var forgroundColor: Color = .white
21 | var backgroundColor: Color = .blue
/Users/admin/builder/spi-builder-workspace/Sources/MaterialDesignUIComponents/ButtonStyle/ButtonStyleContained.swift:19:23: error: 'callout' is only available in macOS 10.15 or newer
5 |
6 | /// 中が塗りつぶしになってる丸型のボタンスタイル
7 | public struct ButtonStyleContained: ButtonStyle {
| `- note: add @available attribute to enclosing struct
8 | public init(font: Font = .callout, forgroundColor: Color = .white, backgroundColor: Color = .blue,
9 | shadowColor: Color = .gray,
:
17 | }
18 |
19 | var font: Font = .callout
| `- error: 'callout' is only available in macOS 10.15 or newer
20 | var forgroundColor: Color = .white
21 | var backgroundColor: Color = .blue
/Users/admin/builder/spi-builder-workspace/Sources/MaterialDesignUIComponents/ButtonStyle/ButtonStyleContained.swift:20:25: error: 'Color' is only available in macOS 10.15 or newer
5 |
6 | /// 中が塗りつぶしになってる丸型のボタンスタイル
7 | public struct ButtonStyleContained: ButtonStyle {
| `- note: add @available attribute to enclosing struct
8 | public init(font: Font = .callout, forgroundColor: Color = .white, backgroundColor: Color = .blue,
9 | shadowColor: Color = .gray,
:
18 |
19 | var font: Font = .callout
20 | var forgroundColor: Color = .white
| `- error: 'Color' is only available in macOS 10.15 or newer
21 | var backgroundColor: Color = .blue
22 | var shadowColor: Color = .gray
/Users/admin/builder/spi-builder-workspace/Sources/MaterialDesignUIComponents/ButtonStyle/ButtonStyleContained.swift:20:34: error: 'white' is only available in macOS 10.15 or newer
5 |
6 | /// 中が塗りつぶしになってる丸型のボタンスタイル
7 | public struct ButtonStyleContained: ButtonStyle {
| `- note: add @available attribute to enclosing struct
8 | public init(font: Font = .callout, forgroundColor: Color = .white, backgroundColor: Color = .blue,
9 | shadowColor: Color = .gray,
:
18 |
19 | var font: Font = .callout
20 | var forgroundColor: Color = .white
| `- error: 'white' is only available in macOS 10.15 or newer
21 | var backgroundColor: Color = .blue
22 | var shadowColor: Color = .gray
/Users/admin/builder/spi-builder-workspace/Sources/MaterialDesignUIComponents/ButtonStyle/ButtonStyleContained.swift:21:26: error: 'Color' is only available in macOS 10.15 or newer
5 |
6 | /// 中が塗りつぶしになってる丸型のボタンスタイル
7 | public struct ButtonStyleContained: ButtonStyle {
| `- note: add @available attribute to enclosing struct
8 | public init(font: Font = .callout, forgroundColor: Color = .white, backgroundColor: Color = .blue,
9 | shadowColor: Color = .gray,
:
19 | var font: Font = .callout
20 | var forgroundColor: Color = .white
21 | var backgroundColor: Color = .blue
| `- error: 'Color' is only available in macOS 10.15 or newer
22 | var shadowColor: Color = .gray
23 | var padding: CGFloat = 5
/Users/admin/builder/spi-builder-workspace/Sources/MaterialDesignUIComponents/ButtonStyle/ButtonStyleContained.swift:21:35: error: 'blue' is only available in macOS 10.15 or newer
5 |
6 | /// 中が塗りつぶしになってる丸型のボタンスタイル
7 | public struct ButtonStyleContained: ButtonStyle {
| `- note: add @available attribute to enclosing struct
8 | public init(font: Font = .callout, forgroundColor: Color = .white, backgroundColor: Color = .blue,
9 | shadowColor: Color = .gray,
:
19 | var font: Font = .callout
20 | var forgroundColor: Color = .white
21 | var backgroundColor: Color = .blue
| `- error: 'blue' is only available in macOS 10.15 or newer
22 | var shadowColor: Color = .gray
23 | var padding: CGFloat = 5
/Users/admin/builder/spi-builder-workspace/Sources/MaterialDesignUIComponents/ButtonStyle/ButtonStyleContained.swift:22:22: error: 'Color' is only available in macOS 10.15 or newer
5 |
6 | /// 中が塗りつぶしになってる丸型のボタンスタイル
7 | public struct ButtonStyleContained: ButtonStyle {
| `- note: add @available attribute to enclosing struct
8 | public init(font: Font = .callout, forgroundColor: Color = .white, backgroundColor: Color = .blue,
9 | shadowColor: Color = .gray,
:
20 | var forgroundColor: Color = .white
21 | var backgroundColor: Color = .blue
22 | var shadowColor: Color = .gray
| `- error: 'Color' is only available in macOS 10.15 or newer
23 | var padding: CGFloat = 5
24 | var isInfinity: Bool = false
/Users/admin/builder/spi-builder-workspace/Sources/MaterialDesignUIComponents/ButtonStyle/ButtonStyleContained.swift:22:31: error: 'gray' is only available in macOS 10.15 or newer
5 |
6 | /// 中が塗りつぶしになってる丸型のボタンスタイル
7 | public struct ButtonStyleContained: ButtonStyle {
| `- note: add @available attribute to enclosing struct
8 | public init(font: Font = .callout, forgroundColor: Color = .white, backgroundColor: Color = .blue,
9 | shadowColor: Color = .gray,
:
20 | var forgroundColor: Color = .white
21 | var backgroundColor: Color = .blue
22 | var shadowColor: Color = .gray
| `- error: 'gray' is only available in macOS 10.15 or newer
23 | var padding: CGFloat = 5
24 | var isInfinity: Bool = false
/Users/admin/builder/spi-builder-workspace/Sources/MaterialDesignUIComponents/ButtonStyle/ButtonStyleContained.swift:26:64: error: 'View' is only available in macOS 10.15 or newer
5 |
6 | /// 中が塗りつぶしになってる丸型のボタンスタイル
7 | public struct ButtonStyleContained: ButtonStyle {
| `- note: add @available attribute to enclosing struct
8 | public init(font: Font = .callout, forgroundColor: Color = .white, backgroundColor: Color = .blue,
9 | shadowColor: Color = .gray,
:
24 | var isInfinity: Bool = false
25 |
26 | public func makeBody(configuration: Configuration) -> some View {
| | `- error: 'View' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing instance method
27 | ContainedButton(configuration: configuration, font: font, forgroundColor: forgroundColor, backgroundColor: backgroundColor,
28 | shadowColor: shadowColor,
/Users/admin/builder/spi-builder-workspace/Sources/MaterialDesignUIComponents/ButtonStyle/ButtonStyleContained.swift:33:24: error: 'isEnabled' is only available in macOS 10.15 or newer
30 | }
31 |
32 | struct ContainedButton: View {
| |- note: add @available attribute to enclosing struct
| `- note: add @available attribute to enclosing struct
33 | @Environment(\.isEnabled) var isEnabled
| `- error: 'isEnabled' is only available in macOS 10.15 or newer
34 | let configuration: ButtonStyleContained.Configuration
35 |
/Users/admin/builder/spi-builder-workspace/Sources/MaterialDesignUIComponents/ButtonStyle/ButtonStyleContained.swift:36:27: error: 'callout' is only available in macOS 10.15 or newer
30 | }
31 |
32 | struct ContainedButton: View {
| `- note: add @available attribute to enclosing struct
33 | @Environment(\.isEnabled) var isEnabled
34 | let configuration: ButtonStyleContained.Configuration
35 |
36 | var font: Font = .callout
| `- error: 'callout' is only available in macOS 10.15 or newer
37 | var forgroundColor: Color = .white
38 | var backgroundColor: Color = .blue
/Users/admin/builder/spi-builder-workspace/Sources/MaterialDesignUIComponents/ButtonStyle/ButtonStyleContained.swift:37:38: error: 'white' is only available in macOS 10.15 or newer
30 | }
31 |
32 | struct ContainedButton: View {
| `- note: add @available attribute to enclosing struct
33 | @Environment(\.isEnabled) var isEnabled
34 | let configuration: ButtonStyleContained.Configuration
35 |
36 | var font: Font = .callout
37 | var forgroundColor: Color = .white
| `- error: 'white' is only available in macOS 10.15 or newer
38 | var backgroundColor: Color = .blue
39 | var shadowColor: Color
/Users/admin/builder/spi-builder-workspace/Sources/MaterialDesignUIComponents/ButtonStyle/ButtonStyleContained.swift:38:39: error: 'blue' is only available in macOS 10.15 or newer
30 | }
31 |
32 | struct ContainedButton: View {
| `- note: add @available attribute to enclosing struct
33 | @Environment(\.isEnabled) var isEnabled
34 | let configuration: ButtonStyleContained.Configuration
:
36 | var font: Font = .callout
37 | var forgroundColor: Color = .white
38 | var backgroundColor: Color = .blue
| `- error: 'blue' is only available in macOS 10.15 or newer
39 | var shadowColor: Color
40 | var padding: CGFloat = 5
/Users/admin/builder/spi-builder-workspace/Sources/MaterialDesignUIComponents/ButtonStyle/ButtonStyleContained.swift:33:10: error: 'Environment' is only available in macOS 10.15 or newer
30 | }
31 |
32 | struct ContainedButton: View {
| |- note: add @available attribute to enclosing struct
| `- note: add @available attribute to enclosing struct
33 | @Environment(\.isEnabled) var isEnabled
| `- error: 'Environment' is only available in macOS 10.15 or newer
34 | let configuration: ButtonStyleContained.Configuration
35 |
/Users/admin/builder/spi-builder-workspace/Sources/MaterialDesignUIComponents/ButtonStyle/ButtonStyleContained.swift:36:19: error: 'Font' is only available in macOS 10.15 or newer
30 | }
31 |
32 | struct ContainedButton: View {
| `- note: add @available attribute to enclosing struct
33 | @Environment(\.isEnabled) var isEnabled
34 | let configuration: ButtonStyleContained.Configuration
35 |
36 | var font: Font = .callout
| `- error: 'Font' is only available in macOS 10.15 or newer
37 | var forgroundColor: Color = .white
38 | var backgroundColor: Color = .blue
/Users/admin/builder/spi-builder-workspace/Sources/MaterialDesignUIComponents/ButtonStyle/ButtonStyleContained.swift:37:29: error: 'Color' is only available in macOS 10.15 or newer
30 | }
31 |
32 | struct ContainedButton: View {
| `- note: add @available attribute to enclosing struct
33 | @Environment(\.isEnabled) var isEnabled
34 | let configuration: ButtonStyleContained.Configuration
35 |
36 | var font: Font = .callout
37 | var forgroundColor: Color = .white
| `- error: 'Color' is only available in macOS 10.15 or newer
38 | var backgroundColor: Color = .blue
39 | var shadowColor: Color
/Users/admin/builder/spi-builder-workspace/Sources/MaterialDesignUIComponents/ButtonStyle/ButtonStyleContained.swift:38:30: error: 'Color' is only available in macOS 10.15 or newer
30 | }
31 |
32 | struct ContainedButton: View {
| `- note: add @available attribute to enclosing struct
33 | @Environment(\.isEnabled) var isEnabled
34 | let configuration: ButtonStyleContained.Configuration
:
36 | var font: Font = .callout
37 | var forgroundColor: Color = .white
38 | var backgroundColor: Color = .blue
| `- error: 'Color' is only available in macOS 10.15 or newer
39 | var shadowColor: Color
40 | var padding: CGFloat = 5
/Users/admin/builder/spi-builder-workspace/Sources/MaterialDesignUIComponents/ButtonStyle/ButtonStyleContained.swift:39:26: error: 'Color' is only available in macOS 10.15 or newer
30 | }
31 |
32 | struct ContainedButton: View {
| `- note: add @available attribute to enclosing struct
33 | @Environment(\.isEnabled) var isEnabled
34 | let configuration: ButtonStyleContained.Configuration
:
37 | var forgroundColor: Color = .white
38 | var backgroundColor: Color = .blue
39 | var shadowColor: Color
| `- error: 'Color' is only available in macOS 10.15 or newer
40 | var padding: CGFloat = 5
41 | var isInfinity: Bool = false
/Users/admin/builder/spi-builder-workspace/Sources/MaterialDesignUIComponents/ButtonStyle/ButtonStyleContained.swift:43:24: error: 'View' is only available in macOS 10.15 or newer
30 | }
31 |
32 | struct ContainedButton: View {
| `- note: add @available attribute to enclosing struct
33 | @Environment(\.isEnabled) var isEnabled
34 | let configuration: ButtonStyleContained.Configuration
:
41 | var isInfinity: Bool = false
42 |
43 | var body: some View {
| | `- error: 'View' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing property
44 | configuration.label
45 | .frame(maxWidth: isInfinity ? .infinity : .none)
/Users/admin/builder/spi-builder-workspace/Sources/MaterialDesignUIComponents/ButtonStyle/ButtonStyleContained.swift:58:31: error: 'View' is only available in macOS 10.15 or newer
55 |
56 | @available(iOS 14, *)
57 | struct ButtonStyleContained_Previews: PreviewProvider {
| `- note: add @available attribute to enclosing struct
58 | static var previews: some View {
| | `- error: 'View' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing static property
59 | Button("Button") {
60 | }.buttonStyle(ButtonStyleContained())
/Users/admin/builder/spi-builder-workspace/Sources/MaterialDesignUIComponents/ButtonStyle/ButtonStyleOutlined.swift:8:23: error: 'Font' is only available in macOS 10.15 or newer
5 |
6 | /// 中が透過になってる丸型のボタンスタイル
7 | public struct ButtonStyleOutlined: ButtonStyle {
| `- note: add @available attribute to enclosing struct
8 | public init(font: Font = .callout, padding: CGFloat = 5, isInfinity: Bool = false, forgroundColor: Color = .black, backgroundColor: Color = .clear, strokeColor: Color, cornerRadius: CGFloat = 5) {
| | `- error: 'Font' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing initializer
9 | self.font = font
10 | self.padding = padding
/Users/admin/builder/spi-builder-workspace/Sources/MaterialDesignUIComponents/ButtonStyle/ButtonStyleOutlined.swift:8:104: error: 'Color' is only available in macOS 10.15 or newer
5 |
6 | /// 中が透過になってる丸型のボタンスタイル
7 | public struct ButtonStyleOutlined: ButtonStyle {
| `- note: add @available attribute to enclosing struct
8 | public init(font: Font = .callout, padding: CGFloat = 5, isInfinity: Bool = false, forgroundColor: Color = .black, backgroundColor: Color = .clear, strokeColor: Color, cornerRadius: CGFloat = 5) {
| | `- error: 'Color' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing initializer
9 | self.font = font
10 | self.padding = padding
/Users/admin/builder/spi-builder-workspace/Sources/MaterialDesignUIComponents/ButtonStyle/ButtonStyleOutlined.swift:8:137: error: 'Color' is only available in macOS 10.15 or newer
5 |
6 | /// 中が透過になってる丸型のボタンスタイル
7 | public struct ButtonStyleOutlined: ButtonStyle {
| `- note: add @available attribute to enclosing struct
8 | public init(font: Font = .callout, padding: CGFloat = 5, isInfinity: Bool = false, forgroundColor: Color = .black, backgroundColor: Color = .clear, strokeColor: Color, cornerRadius: CGFloat = 5) {
| | `- error: 'Color' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing initializer
9 | self.font = font
10 | self.padding = padding
/Users/admin/builder/spi-builder-workspace/Sources/MaterialDesignUIComponents/ButtonStyle/ButtonStyleOutlined.swift:8:166: error: 'Color' is only available in macOS 10.15 or newer
5 |
6 | /// 中が透過になってる丸型のボタンスタイル
7 | public struct ButtonStyleOutlined: ButtonStyle {
| `- note: add @available attribute to enclosing struct
8 | public init(font: Font = .callout, padding: CGFloat = 5, isInfinity: Bool = false, forgroundColor: Color = .black, backgroundColor: Color = .clear, strokeColor: Color, cornerRadius: CGFloat = 5) {
| | `- error: 'Color' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing initializer
9 | self.font = font
10 | self.padding = padding
/Users/admin/builder/spi-builder-workspace/Sources/MaterialDesignUIComponents/ButtonStyle/ButtonStyleOutlined.swift:8:31: error: 'callout' is only available in macOS 10.15 or newer
5 |
6 | /// 中が透過になってる丸型のボタンスタイル
7 | public struct ButtonStyleOutlined: ButtonStyle {
| `- note: add @available attribute to enclosing struct
8 | public init(font: Font = .callout, padding: CGFloat = 5, isInfinity: Bool = false, forgroundColor: Color = .black, backgroundColor: Color = .clear, strokeColor: Color, cornerRadius: CGFloat = 5) {
| | `- error: 'callout' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing initializer
9 | self.font = font
10 | self.padding = padding
/Users/admin/builder/spi-builder-workspace/Sources/MaterialDesignUIComponents/ButtonStyle/ButtonStyleOutlined.swift:8:113: error: 'black' is only available in macOS 10.15 or newer
5 |
6 | /// 中が透過になってる丸型のボタンスタイル
7 | public struct ButtonStyleOutlined: ButtonStyle {
| `- note: add @available attribute to enclosing struct
8 | public init(font: Font = .callout, padding: CGFloat = 5, isInfinity: Bool = false, forgroundColor: Color = .black, backgroundColor: Color = .clear, strokeColor: Color, cornerRadius: CGFloat = 5) {
| | `- error: 'black' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing initializer
9 | self.font = font
10 | self.padding = padding
/Users/admin/builder/spi-builder-workspace/Sources/MaterialDesignUIComponents/ButtonStyle/ButtonStyleOutlined.swift:8:146: error: 'clear' is only available in macOS 10.15 or newer
5 |
6 | /// 中が透過になってる丸型のボタンスタイル
7 | public struct ButtonStyleOutlined: ButtonStyle {
| `- note: add @available attribute to enclosing struct
8 | public init(font: Font = .callout, padding: CGFloat = 5, isInfinity: Bool = false, forgroundColor: Color = .black, backgroundColor: Color = .clear, strokeColor: Color, cornerRadius: CGFloat = 5) {
| | `- error: 'clear' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing initializer
9 | self.font = font
10 | self.padding = padding
/Users/admin/builder/spi-builder-workspace/Sources/MaterialDesignUIComponents/ButtonStyle/ButtonStyleOutlined.swift:18:15: error: 'Font' is only available in macOS 10.15 or newer
5 |
6 | /// 中が透過になってる丸型のボタンスタイル
7 | public struct ButtonStyleOutlined: ButtonStyle {
| `- note: add @available attribute to enclosing struct
8 | public init(font: Font = .callout, padding: CGFloat = 5, isInfinity: Bool = false, forgroundColor: Color = .black, backgroundColor: Color = .clear, strokeColor: Color, cornerRadius: CGFloat = 5) {
9 | self.font = font
:
16 | }
17 |
18 | var font: Font = .callout
| `- error: 'Font' is only available in macOS 10.15 or newer
19 | var strokeColor: Color = .blue
20 | var forgroundColor: Color = .black
/Users/admin/builder/spi-builder-workspace/Sources/MaterialDesignUIComponents/ButtonStyle/ButtonStyleOutlined.swift:18:23: error: 'callout' is only available in macOS 10.15 or newer
5 |
6 | /// 中が透過になってる丸型のボタンスタイル
7 | public struct ButtonStyleOutlined: ButtonStyle {
| `- note: add @available attribute to enclosing struct
8 | public init(font: Font = .callout, padding: CGFloat = 5, isInfinity: Bool = false, forgroundColor: Color = .black, backgroundColor: Color = .clear, strokeColor: Color, cornerRadius: CGFloat = 5) {
9 | self.font = font
:
16 | }
17 |
18 | var font: Font = .callout
| `- error: 'callout' is only available in macOS 10.15 or newer
19 | var strokeColor: Color = .blue
20 | var forgroundColor: Color = .black
/Users/admin/builder/spi-builder-workspace/Sources/MaterialDesignUIComponents/ButtonStyle/ButtonStyleOutlined.swift:19:22: error: 'Color' is only available in macOS 10.15 or newer
5 |
6 | /// 中が透過になってる丸型のボタンスタイル
7 | public struct ButtonStyleOutlined: ButtonStyle {
| `- note: add @available attribute to enclosing struct
8 | public init(font: Font = .callout, padding: CGFloat = 5, isInfinity: Bool = false, forgroundColor: Color = .black, backgroundColor: Color = .clear, strokeColor: Color, cornerRadius: CGFloat = 5) {
9 | self.font = font
:
17 |
18 | var font: Font = .callout
19 | var strokeColor: Color = .blue
| `- error: 'Color' is only available in macOS 10.15 or newer
20 | var forgroundColor: Color = .black
21 | var backgroundColor: Color = .clear
/Users/admin/builder/spi-builder-workspace/Sources/MaterialDesignUIComponents/ButtonStyle/ButtonStyleOutlined.swift:19:31: error: 'blue' is only available in macOS 10.15 or newer
5 |
6 | /// 中が透過になってる丸型のボタンスタイル
7 | public struct ButtonStyleOutlined: ButtonStyle {
| `- note: add @available attribute to enclosing struct
8 | public init(font: Font = .callout, padding: CGFloat = 5, isInfinity: Bool = false, forgroundColor: Color = .black, backgroundColor: Color = .clear, strokeColor: Color, cornerRadius: CGFloat = 5) {
9 | self.font = font
:
17 |
18 | var font: Font = .callout
19 | var strokeColor: Color = .blue
| `- error: 'blue' is only available in macOS 10.15 or newer
20 | var forgroundColor: Color = .black
21 | var backgroundColor: Color = .clear
/Users/admin/builder/spi-builder-workspace/Sources/MaterialDesignUIComponents/ButtonStyle/ButtonStyleOutlined.swift:20:25: error: 'Color' is only available in macOS 10.15 or newer
5 |
6 | /// 中が透過になってる丸型のボタンスタイル
7 | public struct ButtonStyleOutlined: ButtonStyle {
| `- note: add @available attribute to enclosing struct
8 | public init(font: Font = .callout, padding: CGFloat = 5, isInfinity: Bool = false, forgroundColor: Color = .black, backgroundColor: Color = .clear, strokeColor: Color, cornerRadius: CGFloat = 5) {
9 | self.font = font
:
18 | var font: Font = .callout
19 | var strokeColor: Color = .blue
20 | var forgroundColor: Color = .black
| `- error: 'Color' is only available in macOS 10.15 or newer
21 | var backgroundColor: Color = .clear
22 | var padding: CGFloat = 5
/Users/admin/builder/spi-builder-workspace/Sources/MaterialDesignUIComponents/ButtonStyle/ButtonStyleOutlined.swift:20:34: error: 'black' is only available in macOS 10.15 or newer
5 |
6 | /// 中が透過になってる丸型のボタンスタイル
7 | public struct ButtonStyleOutlined: ButtonStyle {
| `- note: add @available attribute to enclosing struct
8 | public init(font: Font = .callout, padding: CGFloat = 5, isInfinity: Bool = false, forgroundColor: Color = .black, backgroundColor: Color = .clear, strokeColor: Color, cornerRadius: CGFloat = 5) {
9 | self.font = font
:
18 | var font: Font = .callout
19 | var strokeColor: Color = .blue
20 | var forgroundColor: Color = .black
| `- error: 'black' is only available in macOS 10.15 or newer
21 | var backgroundColor: Color = .clear
22 | var padding: CGFloat = 5
/Users/admin/builder/spi-builder-workspace/Sources/MaterialDesignUIComponents/ButtonStyle/ButtonStyleOutlined.swift:21:26: error: 'Color' is only available in macOS 10.15 or newer
5 |
6 | /// 中が透過になってる丸型のボタンスタイル
7 | public struct ButtonStyleOutlined: ButtonStyle {
| `- note: add @available attribute to enclosing struct
8 | public init(font: Font = .callout, padding: CGFloat = 5, isInfinity: Bool = false, forgroundColor: Color = .black, backgroundColor: Color = .clear, strokeColor: Color, cornerRadius: CGFloat = 5) {
9 | self.font = font
:
19 | var strokeColor: Color = .blue
20 | var forgroundColor: Color = .black
21 | var backgroundColor: Color = .clear
| `- error: 'Color' is only available in macOS 10.15 or newer
22 | var padding: CGFloat = 5
23 | var isInfinity: Bool = false
/Users/admin/builder/spi-builder-workspace/Sources/MaterialDesignUIComponents/ButtonStyle/ButtonStyleOutlined.swift:21:35: error: 'clear' is only available in macOS 10.15 or newer
5 |
6 | /// 中が透過になってる丸型のボタンスタイル
7 | public struct ButtonStyleOutlined: ButtonStyle {
| `- note: add @available attribute to enclosing struct
8 | public init(font: Font = .callout, padding: CGFloat = 5, isInfinity: Bool = false, forgroundColor: Color = .black, backgroundColor: Color = .clear, strokeColor: Color, cornerRadius: CGFloat = 5) {
9 | self.font = font
:
19 | var strokeColor: Color = .blue
20 | var forgroundColor: Color = .black
21 | var backgroundColor: Color = .clear
| `- error: 'clear' is only available in macOS 10.15 or newer
22 | var padding: CGFloat = 5
23 | var isInfinity: Bool = false
/Users/admin/builder/spi-builder-workspace/Sources/MaterialDesignUIComponents/ButtonStyle/ButtonStyleOutlined.swift:26:64: error: 'View' is only available in macOS 10.15 or newer
5 |
6 | /// 中が透過になってる丸型のボタンスタイル
7 | public struct ButtonStyleOutlined: ButtonStyle {
| `- note: add @available attribute to enclosing struct
8 | public init(font: Font = .callout, padding: CGFloat = 5, isInfinity: Bool = false, forgroundColor: Color = .black, backgroundColor: Color = .clear, strokeColor: Color, cornerRadius: CGFloat = 5) {
9 | self.font = font
:
24 | var cornerRadius: CGFloat = 10 // 角丸の半径
25 |
26 | public func makeBody(configuration: Configuration) -> some View {
| | `- error: 'View' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing instance method
27 | OutlinedButton(configuration: configuration, font: font, padding: padding, isInfinity: isInfinity, cornerRadius: cornerRadius, strokeColor: strokeColor, forgroundColor: forgroundColor, backgroundColor: backgroundColor)
28 | }
/Users/admin/builder/spi-builder-workspace/Sources/MaterialDesignUIComponents/ButtonStyle/ButtonStyleOutlined.swift:31:24: error: 'isEnabled' is only available in macOS 10.15 or newer
28 | }
29 |
30 | struct OutlinedButton: View {
| |- note: add @available attribute to enclosing struct
| `- note: add @available attribute to enclosing struct
31 | @Environment(\.isEnabled) var isEnabled
| `- error: 'isEnabled' is only available in macOS 10.15 or newer
32 | let configuration: ButtonStyleOutlined.Configuration
33 |
/Users/admin/builder/spi-builder-workspace/Sources/MaterialDesignUIComponents/ButtonStyle/ButtonStyleOutlined.swift:34:27: error: 'callout' is only available in macOS 10.15 or newer
28 | }
29 |
30 | struct OutlinedButton: View {
| `- note: add @available attribute to enclosing struct
31 | @Environment(\.isEnabled) var isEnabled
32 | let configuration: ButtonStyleOutlined.Configuration
33 |
34 | var font: Font = .callout
| `- error: 'callout' is only available in macOS 10.15 or newer
35 | var padding: CGFloat = 5
36 | var isInfinity: Bool = false
/Users/admin/builder/spi-builder-workspace/Sources/MaterialDesignUIComponents/ButtonStyle/ButtonStyleOutlined.swift:38:35: error: 'blue' is only available in macOS 10.15 or newer
28 | }
29 |
30 | struct OutlinedButton: View {
| `- note: add @available attribute to enclosing struct
31 | @Environment(\.isEnabled) var isEnabled
32 | let configuration: ButtonStyleOutlined.Configuration
:
36 | var isInfinity: Bool = false
37 | var cornerRadius: CGFloat = 10 // 角丸の半径
38 | var strokeColor: Color = .blue
| `- error: 'blue' is only available in macOS 10.15 or newer
39 | var forgroundColor: Color = .black
40 | var backgroundColor: Color = .clear
/Users/admin/builder/spi-builder-workspace/Sources/MaterialDesignUIComponents/ButtonStyle/ButtonStyleOutlined.swift:39:38: error: 'black' is only available in macOS 10.15 or newer
28 | }
29 |
30 | struct OutlinedButton: View {
| `- note: add @available attribute to enclosing struct
31 | @Environment(\.isEnabled) var isEnabled
32 | let configuration: ButtonStyleOutlined.Configuration
:
37 | var cornerRadius: CGFloat = 10 // 角丸の半径
38 | var strokeColor: Color = .blue
39 | var forgroundColor: Color = .black
| `- error: 'black' is only available in macOS 10.15 or newer
40 | var backgroundColor: Color = .clear
41 |
/Users/admin/builder/spi-builder-workspace/Sources/MaterialDesignUIComponents/ButtonStyle/ButtonStyleOutlined.swift:40:39: error: 'clear' is only available in macOS 10.15 or newer
28 | }
29 |
30 | struct OutlinedButton: View {
| `- note: add @available attribute to enclosing struct
31 | @Environment(\.isEnabled) var isEnabled
32 | let configuration: ButtonStyleOutlined.Configuration
:
38 | var strokeColor: Color = .blue
39 | var forgroundColor: Color = .black
40 | var backgroundColor: Color = .clear
| `- error: 'clear' is only available in macOS 10.15 or newer
41 |
42 | var body: some View {
/Users/admin/builder/spi-builder-workspace/Sources/MaterialDesignUIComponents/ButtonStyle/ButtonStyleOutlined.swift:31:10: error: 'Environment' is only available in macOS 10.15 or newer
28 | }
29 |
30 | struct OutlinedButton: View {
| |- note: add @available attribute to enclosing struct
| `- note: add @available attribute to enclosing struct
31 | @Environment(\.isEnabled) var isEnabled
| `- error: 'Environment' is only available in macOS 10.15 or newer
32 | let configuration: ButtonStyleOutlined.Configuration
33 |
/Users/admin/builder/spi-builder-workspace/Sources/MaterialDesignUIComponents/ButtonStyle/ButtonStyleOutlined.swift:34:19: error: 'Font' is only available in macOS 10.15 or newer
28 | }
29 |
30 | struct OutlinedButton: View {
| `- note: add @available attribute to enclosing struct
31 | @Environment(\.isEnabled) var isEnabled
32 | let configuration: ButtonStyleOutlined.Configuration
33 |
34 | var font: Font = .callout
| `- error: 'Font' is only available in macOS 10.15 or newer
35 | var padding: CGFloat = 5
36 | var isInfinity: Bool = false
/Users/admin/builder/spi-builder-workspace/Sources/MaterialDesignUIComponents/ButtonStyle/ButtonStyleOutlined.swift:38:26: error: 'Color' is only available in macOS 10.15 or newer
28 | }
29 |
30 | struct OutlinedButton: View {
| `- note: add @available attribute to enclosing struct
31 | @Environment(\.isEnabled) var isEnabled
32 | let configuration: ButtonStyleOutlined.Configuration
:
36 | var isInfinity: Bool = false
37 | var cornerRadius: CGFloat = 10 // 角丸の半径
38 | var strokeColor: Color = .blue
| `- error: 'Color' is only available in macOS 10.15 or newer
39 | var forgroundColor: Color = .black
40 | var backgroundColor: Color = .clear
/Users/admin/builder/spi-builder-workspace/Sources/MaterialDesignUIComponents/ButtonStyle/ButtonStyleOutlined.swift:39:29: error: 'Color' is only available in macOS 10.15 or newer
28 | }
29 |
30 | struct OutlinedButton: View {
| `- note: add @available attribute to enclosing struct
31 | @Environment(\.isEnabled) var isEnabled
32 | let configuration: ButtonStyleOutlined.Configuration
:
37 | var cornerRadius: CGFloat = 10 // 角丸の半径
38 | var strokeColor: Color = .blue
39 | var forgroundColor: Color = .black
| `- error: 'Color' is only available in macOS 10.15 or newer
40 | var backgroundColor: Color = .clear
41 |
/Users/admin/builder/spi-builder-workspace/Sources/MaterialDesignUIComponents/ButtonStyle/ButtonStyleOutlined.swift:40:30: error: 'Color' is only available in macOS 10.15 or newer
28 | }
29 |
30 | struct OutlinedButton: View {
| `- note: add @available attribute to enclosing struct
31 | @Environment(\.isEnabled) var isEnabled
32 | let configuration: ButtonStyleOutlined.Configuration
:
38 | var strokeColor: Color = .blue
39 | var forgroundColor: Color = .black
40 | var backgroundColor: Color = .clear
| `- error: 'Color' is only available in macOS 10.15 or newer
41 |
42 | var body: some View {
/Users/admin/builder/spi-builder-workspace/Sources/MaterialDesignUIComponents/ButtonStyle/ButtonStyleOutlined.swift:42:24: error: 'View' is only available in macOS 10.15 or newer
28 | }
29 |
30 | struct OutlinedButton: View {
| `- note: add @available attribute to enclosing struct
31 | @Environment(\.isEnabled) var isEnabled
32 | let configuration: ButtonStyleOutlined.Configuration
:
40 | var backgroundColor: Color = .clear
41 |
42 | var body: some View {
| | `- error: 'View' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing property
43 | configuration.label
44 | .font(font)
/Users/admin/builder/spi-builder-workspace/Sources/MaterialDesignUIComponents/ButtonStyle/ButtonStyleOutlined.swift:62:24: error: 'Color' is only available in macOS 10.15 or newer
58 |
59 | /// 角丸の四角形
60 | private struct RoundedRectangleFill: View {
| `- note: add @available attribute to enclosing struct
61 | var cornerRadius: CGFloat // 角丸の半径
62 | var fillColor: Color // Fillする色
| `- error: 'Color' is only available in macOS 10.15 or newer
63 |
64 | var body: some View {
/Users/admin/builder/spi-builder-workspace/Sources/MaterialDesignUIComponents/ButtonStyle/ButtonStyleOutlined.swift:64:24: error: 'View' is only available in macOS 10.15 or newer
58 |
59 | /// 角丸の四角形
60 | private struct RoundedRectangleFill: View {
| `- note: add @available attribute to enclosing struct
61 | var cornerRadius: CGFloat // 角丸の半径
62 | var fillColor: Color // Fillする色
63 |
64 | var body: some View {
| | `- error: 'View' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing property
65 | return RoundedRectangle(cornerRadius: cornerRadius).fill(fillColor)
66 | }
/Users/admin/builder/spi-builder-workspace/Sources/MaterialDesignUIComponents/ButtonStyle/ButtonStyleOutlined.swift:72:31: error: 'View' is only available in macOS 10.15 or newer
69 |
70 | @available(iOS 14, *)
71 | struct ButtonStyleOutlined_Previews: PreviewProvider {
| `- note: add @available attribute to enclosing struct
72 | static var previews: some View {
| | `- error: 'View' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing static property
73 | Button("Button") {
74 | }.buttonStyle(ButtonStyleOutlined(strokeColor: .black))
/Users/admin/builder/spi-builder-workspace/Sources/MaterialDesignUIComponents/ViewModifier/Card/ElevatedCard.swift:14:53: error: 'Color' is only available in macOS 10.15 or newer
10 | /// MaterialデザインのCards(Elevated)を表示するのに使うViewModifier
11 | /// https://m3.material.io/components/cards/overview
12 | public struct ElevatedCard: ViewModifier {
| `- note: add @available attribute to enclosing struct
13 |
14 | public init(cornerRadius: CGFloat, shadowColor: Color) {
| | `- error: 'Color' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing initializer
15 | self.cornerRadius = cornerRadius
16 | self.shadowColor = shadowColor
/Users/admin/builder/spi-builder-workspace/Sources/MaterialDesignUIComponents/ViewModifier/Card/ElevatedCard.swift:20:29: error: 'Color' is only available in macOS 10.15 or newer
10 | /// MaterialデザインのCards(Elevated)を表示するのに使うViewModifier
11 | /// https://m3.material.io/components/cards/overview
12 | public struct ElevatedCard: ViewModifier {
| `- note: add @available attribute to enclosing struct
13 |
14 | public init(cornerRadius: CGFloat, shadowColor: Color) {
:
18 |
19 | public var cornerRadius: CGFloat // 角丸の半径
20 | public var shadowColor: Color
| `- error: 'Color' is only available in macOS 10.15 or newer
21 |
22 | public func body(content: Content) -> some View {
/Users/admin/builder/spi-builder-workspace/Sources/MaterialDesignUIComponents/ViewModifier/Card/ElevatedCard.swift:22:48: error: 'View' is only available in macOS 10.15 or newer
10 | /// MaterialデザインのCards(Elevated)を表示するのに使うViewModifier
11 | /// https://m3.material.io/components/cards/overview
12 | public struct ElevatedCard: ViewModifier {
| `- note: add @available attribute to enclosing struct
13 |
14 | public init(cornerRadius: CGFloat, shadowColor: Color) {
:
20 | public var shadowColor: Color
21 |
22 | 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
23 | content.background(RoundedRectangleFill.init(cornerRadius: cornerRadius, shadowColor: shadowColor))
24 | }
/Users/admin/builder/spi-builder-workspace/Sources/MaterialDesignUIComponents/ViewModifier/Card/ElevatedCard.swift:30:22: error: 'Color' is only available in macOS 10.15 or newer
26 |
27 | /// 角丸の四角形
28 | private struct RoundedRectangleFill: View {
| `- note: add @available attribute to enclosing struct
29 | var cornerRadius: CGFloat // 角丸の半径
30 | var shadowColor: Color
| `- error: 'Color' is only available in macOS 10.15 or newer
31 |
32 | var body: some View {
/Users/admin/builder/spi-builder-workspace/Sources/MaterialDesignUIComponents/ViewModifier/Card/ElevatedCard.swift:32:20: error: 'View' is only available in macOS 10.15 or newer
26 |
27 | /// 角丸の四角形
28 | private struct RoundedRectangleFill: View {
| `- note: add @available attribute to enclosing struct
29 | var cornerRadius: CGFloat // 角丸の半径
30 | var shadowColor: Color
31 |
32 | var body: some View {
| | `- error: 'View' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing property
33 | return RoundedRectangle(cornerRadius: cornerRadius).foregroundColor(.white).shadow(color: shadowColor, radius: 1, x: 1, y: 1)
34 | }
/Users/admin/builder/spi-builder-workspace/Sources/MaterialDesignUIComponents/ViewModifier/Card/ElevatedCard.swift:39:31: error: 'View' is only available in macOS 10.15 or newer
36 |
37 | @available(iOS 14, *)
38 | struct ElevatedCard_Previews: PreviewProvider {
| `- note: add @available attribute to enclosing struct
39 | static var previews: some View {
| | `- error: 'View' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing static property
40 | HStack {
41 | Text("text").padding(10)
/Users/admin/builder/spi-builder-workspace/Sources/MaterialDesignUIComponents/ViewModifier/Card/FilledCard.swift:14:57: error: 'Color' is only available in macOS 10.15 or newer
10 | /// MaterialデザインのCards(Filled)を表示するのに使うViewModifier
11 | /// https://m3.material.io/components/cards/overview
12 | public struct FilledCard: ViewModifier {
| `- note: add @available attribute to enclosing struct
13 |
14 | public init(cornerRadius: CGFloat, backgroundColor: Color) {
| | `- error: 'Color' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing initializer
15 | self.cornerRadius = cornerRadius
16 | self.backgroundColor = backgroundColor
/Users/admin/builder/spi-builder-workspace/Sources/MaterialDesignUIComponents/ViewModifier/Card/FilledCard.swift:20:33: error: 'Color' is only available in macOS 10.15 or newer
10 | /// MaterialデザインのCards(Filled)を表示するのに使うViewModifier
11 | /// https://m3.material.io/components/cards/overview
12 | public struct FilledCard: ViewModifier {
| `- note: add @available attribute to enclosing struct
13 |
14 | public init(cornerRadius: CGFloat, backgroundColor: Color) {
:
18 |
19 | public var cornerRadius: CGFloat // 角丸の半径
20 | public var backgroundColor: Color
| `- error: 'Color' is only available in macOS 10.15 or newer
21 |
22 | public func body(content: Content) -> some View {
/Users/admin/builder/spi-builder-workspace/Sources/MaterialDesignUIComponents/ViewModifier/Card/FilledCard.swift:22:48: error: 'View' is only available in macOS 10.15 or newer
10 | /// MaterialデザインのCards(Filled)を表示するのに使うViewModifier
11 | /// https://m3.material.io/components/cards/overview
12 | public struct FilledCard: ViewModifier {
| `- note: add @available attribute to enclosing struct
13 |
14 | public init(cornerRadius: CGFloat, backgroundColor: Color) {
:
20 | public var backgroundColor: Color
21 |
22 | 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
23 | content.background(backgroundColor)
24 | .cornerRadius(cornerRadius)
/Users/admin/builder/spi-builder-workspace/Sources/MaterialDesignUIComponents/ViewModifier/Card/FilledCard.swift:30:31: error: 'View' is only available in macOS 10.15 or newer
27 |
28 | @available(iOS 14, *)
29 | struct FilledCard_Previews: PreviewProvider {
| `- note: add @available attribute to enclosing struct
30 | static var previews: some View {
| | `- error: 'View' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing static property
31 | HStack {
32 | Text("text").padding(10)
[5/7] Compiling MaterialDesignUIComponents ElevatedCard.swift
/Users/admin/builder/spi-builder-workspace/Sources/MaterialDesignUIComponents/ViewModifier/Card/ElevatedCard.swift:14:53: error: 'Color' is only available in macOS 10.15 or newer
10 | /// MaterialデザインのCards(Elevated)を表示するのに使うViewModifier
11 | /// https://m3.material.io/components/cards/overview
12 | public struct ElevatedCard: ViewModifier {
| `- note: add @available attribute to enclosing struct
13 |
14 | public init(cornerRadius: CGFloat, shadowColor: Color) {
| | `- error: 'Color' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing initializer
15 | self.cornerRadius = cornerRadius
16 | self.shadowColor = shadowColor
/Users/admin/builder/spi-builder-workspace/Sources/MaterialDesignUIComponents/ViewModifier/Card/ElevatedCard.swift:20:29: error: 'Color' is only available in macOS 10.15 or newer
10 | /// MaterialデザインのCards(Elevated)を表示するのに使うViewModifier
11 | /// https://m3.material.io/components/cards/overview
12 | public struct ElevatedCard: ViewModifier {
| `- note: add @available attribute to enclosing struct
13 |
14 | public init(cornerRadius: CGFloat, shadowColor: Color) {
:
18 |
19 | public var cornerRadius: CGFloat // 角丸の半径
20 | public var shadowColor: Color
| `- error: 'Color' is only available in macOS 10.15 or newer
21 |
22 | public func body(content: Content) -> some View {
/Users/admin/builder/spi-builder-workspace/Sources/MaterialDesignUIComponents/ViewModifier/Card/ElevatedCard.swift:22:48: error: 'View' is only available in macOS 10.15 or newer
10 | /// MaterialデザインのCards(Elevated)を表示するのに使うViewModifier
11 | /// https://m3.material.io/components/cards/overview
12 | public struct ElevatedCard: ViewModifier {
| `- note: add @available attribute to enclosing struct
13 |
14 | public init(cornerRadius: CGFloat, shadowColor: Color) {
:
20 | public var shadowColor: Color
21 |
22 | 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
23 | content.background(RoundedRectangleFill.init(cornerRadius: cornerRadius, shadowColor: shadowColor))
24 | }
/Users/admin/builder/spi-builder-workspace/Sources/MaterialDesignUIComponents/ViewModifier/Card/ElevatedCard.swift:30:22: error: 'Color' is only available in macOS 10.15 or newer
26 |
27 | /// 角丸の四角形
28 | private struct RoundedRectangleFill: View {
| `- note: add @available attribute to enclosing struct
29 | var cornerRadius: CGFloat // 角丸の半径
30 | var shadowColor: Color
| `- error: 'Color' is only available in macOS 10.15 or newer
31 |
32 | var body: some View {
/Users/admin/builder/spi-builder-workspace/Sources/MaterialDesignUIComponents/ViewModifier/Card/ElevatedCard.swift:32:20: error: 'View' is only available in macOS 10.15 or newer
26 |
27 | /// 角丸の四角形
28 | private struct RoundedRectangleFill: View {
| `- note: add @available attribute to enclosing struct
29 | var cornerRadius: CGFloat // 角丸の半径
30 | var shadowColor: Color
31 |
32 | var body: some View {
| | `- error: 'View' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing property
33 | return RoundedRectangle(cornerRadius: cornerRadius).foregroundColor(.white).shadow(color: shadowColor, radius: 1, x: 1, y: 1)
34 | }
/Users/admin/builder/spi-builder-workspace/Sources/MaterialDesignUIComponents/ViewModifier/Card/ElevatedCard.swift:39:31: error: 'View' is only available in macOS 10.15 or newer
36 |
37 | @available(iOS 14, *)
38 | struct ElevatedCard_Previews: PreviewProvider {
| `- note: add @available attribute to enclosing struct
39 | static var previews: some View {
| | `- error: 'View' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing static property
40 | HStack {
41 | Text("text").padding(10)
/Users/admin/builder/spi-builder-workspace/Sources/MaterialDesignUIComponents/ViewModifier/Card/ElevatedCard.swift:23:17: error: 'background(_:alignment:)' is only available in macOS 10.15 or newer
10 | /// MaterialデザインのCards(Elevated)を表示するのに使うViewModifier
11 | /// https://m3.material.io/components/cards/overview
12 | public struct ElevatedCard: ViewModifier {
| `- note: add @available attribute to enclosing struct
13 |
14 | public init(cornerRadius: CGFloat, shadowColor: Color) {
:
20 | public var shadowColor: Color
21 |
22 | public func body(content: Content) -> some View {
| `- note: add @available attribute to enclosing instance method
23 | content.background(RoundedRectangleFill.init(cornerRadius: cornerRadius, shadowColor: shadowColor))
| |- error: 'background(_:alignment:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
24 | }
25 | }
/Users/admin/builder/spi-builder-workspace/Sources/MaterialDesignUIComponents/ViewModifier/Card/ElevatedCard.swift:33:16: error: 'RoundedRectangle' is only available in macOS 10.15 or newer
26 |
27 | /// 角丸の四角形
28 | private struct RoundedRectangleFill: View {
| `- note: add @available attribute to enclosing struct
29 | var cornerRadius: CGFloat // 角丸の半径
30 | var shadowColor: Color
31 |
32 | var body: some View {
| `- note: add @available attribute to enclosing property
33 | return RoundedRectangle(cornerRadius: cornerRadius).foregroundColor(.white).shadow(color: shadowColor, radius: 1, x: 1, y: 1)
| |- error: 'RoundedRectangle' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
34 | }
35 | }
/Users/admin/builder/spi-builder-workspace/Sources/MaterialDesignUIComponents/ViewModifier/Card/ElevatedCard.swift:33:61: error: 'foregroundColor' is only available in macOS 10.15 or newer
26 |
27 | /// 角丸の四角形
28 | private struct RoundedRectangleFill: View {
| `- note: add @available attribute to enclosing struct
29 | var cornerRadius: CGFloat // 角丸の半径
30 | var shadowColor: Color
31 |
32 | var body: some View {
| `- note: add @available attribute to enclosing property
33 | return RoundedRectangle(cornerRadius: cornerRadius).foregroundColor(.white).shadow(color: shadowColor, radius: 1, x: 1, y: 1)
| |- error: 'foregroundColor' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
34 | }
35 | }
/Users/admin/builder/spi-builder-workspace/Sources/MaterialDesignUIComponents/ViewModifier/Card/ElevatedCard.swift:33:78: error: 'white' is only available in macOS 10.15 or newer
26 |
27 | /// 角丸の四角形
28 | private struct RoundedRectangleFill: View {
| `- note: add @available attribute to enclosing struct
29 | var cornerRadius: CGFloat // 角丸の半径
30 | var shadowColor: Color
31 |
32 | var body: some View {
| `- note: add @available attribute to enclosing property
33 | return RoundedRectangle(cornerRadius: cornerRadius).foregroundColor(.white).shadow(color: shadowColor, radius: 1, x: 1, y: 1)
| |- error: 'white' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
34 | }
35 | }
/Users/admin/builder/spi-builder-workspace/Sources/MaterialDesignUIComponents/ViewModifier/Card/ElevatedCard.swift:33:85: error: 'shadow(color:radius:x:y:)' is only available in macOS 10.15 or newer
26 |
27 | /// 角丸の四角形
28 | private struct RoundedRectangleFill: View {
| `- note: add @available attribute to enclosing struct
29 | var cornerRadius: CGFloat // 角丸の半径
30 | var shadowColor: Color
31 |
32 | var body: some View {
| `- note: add @available attribute to enclosing property
33 | return RoundedRectangle(cornerRadius: cornerRadius).foregroundColor(.white).shadow(color: shadowColor, radius: 1, x: 1, y: 1)
| |- error: 'shadow(color:radius:x:y:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
34 | }
35 | }
/Users/admin/builder/spi-builder-workspace/Sources/MaterialDesignUIComponents/ViewModifier/Card/ElevatedCard.swift:40:9: warning: conformance of 'ModifiedContent<Content, Modifier>' to 'View' is only available in macOS 10.15 or newer; this is an error in the Swift 6 language mode
36 |
37 | @available(iOS 14, *)
38 | struct ElevatedCard_Previews: PreviewProvider {
| `- note: add @available attribute to enclosing struct
39 | static var previews: some View {
| `- note: add @available attribute to enclosing static property
40 | HStack {
| |- warning: conformance of 'ModifiedContent<Content, Modifier>' to 'View' is only available in macOS 10.15 or newer; this is an error in the Swift 6 language mode
| `- note: add 'if #available' version check
41 | Text("text").padding(10)
42 | }.modifier(ElevatedCard(cornerRadius: 5, shadowColor: .gray))
/Users/admin/builder/spi-builder-workspace/Sources/MaterialDesignUIComponents/ViewModifier/Card/ElevatedCard.swift:40:9: error: 'HStack' is only available in macOS 10.15 or newer
36 |
37 | @available(iOS 14, *)
38 | struct ElevatedCard_Previews: PreviewProvider {
| `- note: add @available attribute to enclosing struct
39 | static var previews: some View {
| `- note: add @available attribute to enclosing static property
40 | HStack {
| |- error: 'HStack' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
41 | Text("text").padding(10)
42 | }.modifier(ElevatedCard(cornerRadius: 5, shadowColor: .gray))
/Users/admin/builder/spi-builder-workspace/Sources/MaterialDesignUIComponents/ViewModifier/Card/ElevatedCard.swift:41:13: error: 'Text' is only available in macOS 10.15 or newer
36 |
37 | @available(iOS 14, *)
38 | struct ElevatedCard_Previews: PreviewProvider {
| `- note: add @available attribute to enclosing struct
39 | static var previews: some View {
| `- note: add @available attribute to enclosing static property
40 | HStack {
41 | Text("text").padding(10)
| |- error: 'Text' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
42 | }.modifier(ElevatedCard(cornerRadius: 5, shadowColor: .gray))
43 | }
/Users/admin/builder/spi-builder-workspace/Sources/MaterialDesignUIComponents/ViewModifier/Card/ElevatedCard.swift:41:26: error: 'padding' is only available in macOS 10.15 or newer
36 |
37 | @available(iOS 14, *)
38 | struct ElevatedCard_Previews: PreviewProvider {
| `- note: add @available attribute to enclosing struct
39 | static var previews: some View {
| `- note: add @available attribute to enclosing static property
40 | HStack {
41 | Text("text").padding(10)
| |- error: 'padding' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
42 | }.modifier(ElevatedCard(cornerRadius: 5, shadowColor: .gray))
43 | }
/Users/admin/builder/spi-builder-workspace/Sources/MaterialDesignUIComponents/ViewModifier/Card/ElevatedCard.swift:42:11: error: 'modifier' is only available in macOS 10.15 or newer
36 |
37 | @available(iOS 14, *)
38 | struct ElevatedCard_Previews: PreviewProvider {
| `- note: add @available attribute to enclosing struct
39 | static var previews: some View {
| `- note: add @available attribute to enclosing static property
40 | HStack {
41 | Text("text").padding(10)
42 | }.modifier(ElevatedCard(cornerRadius: 5, shadowColor: .gray))
| |- error: 'modifier' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
43 | }
44 | }
/Users/admin/builder/spi-builder-workspace/Sources/MaterialDesignUIComponents/ViewModifier/Card/ElevatedCard.swift:42:64: error: 'gray' is only available in macOS 10.15 or newer
36 |
37 | @available(iOS 14, *)
38 | struct ElevatedCard_Previews: PreviewProvider {
| `- note: add @available attribute to enclosing struct
39 | static var previews: some View {
| `- note: add @available attribute to enclosing static property
40 | HStack {
41 | Text("text").padding(10)
42 | }.modifier(ElevatedCard(cornerRadius: 5, shadowColor: .gray))
| |- error: 'gray' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
43 | }
44 | }
/Users/admin/builder/spi-builder-workspace/Sources/MaterialDesignUIComponents/ViewModifier/Card/ElevatedCard.swift:39:36: warning: conformance of 'ModifiedContent<Content, Modifier>' to 'View' is only available in macOS 10.15 or newer; this is an error in the Swift 6 language mode
36 |
37 | @available(iOS 14, *)
38 | struct ElevatedCard_Previews: PreviewProvider {
| `- note: add @available attribute to enclosing struct
39 | static var previews: some View {
| | |- warning: conformance of 'ModifiedContent<Content, Modifier>' to 'View' is only available in macOS 10.15 or newer; this is an error in the Swift 6 language mode
| | `- note: add 'if #available' version check
| `- note: add @available attribute to enclosing static property
40 | HStack {
41 | Text("text").padding(10)
[6/7] Compiling MaterialDesignUIComponents ButtonStyleContained.swift
/Users/admin/builder/spi-builder-workspace/Sources/MaterialDesignUIComponents/ButtonStyle/ButtonStyleContained.swift:8:23: error: 'Font' is only available in macOS 10.15 or newer
5 |
6 | /// 中が塗りつぶしになってる丸型のボタンスタイル
7 | public struct ButtonStyleContained: ButtonStyle {
| `- note: add @available attribute to enclosing struct
8 | public init(font: Font = .callout, forgroundColor: Color = .white, backgroundColor: Color = .blue,
| | `- error: 'Font' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing initializer
9 | shadowColor: Color = .gray,
10 | padding: CGFloat = 5, isInfinity: Bool = false) {
/Users/admin/builder/spi-builder-workspace/Sources/MaterialDesignUIComponents/ButtonStyle/ButtonStyleContained.swift:8:56: error: 'Color' is only available in macOS 10.15 or newer
5 |
6 | /// 中が塗りつぶしになってる丸型のボタンスタイル
7 | public struct ButtonStyleContained: ButtonStyle {
| `- note: add @available attribute to enclosing struct
8 | public init(font: Font = .callout, forgroundColor: Color = .white, backgroundColor: Color = .blue,
| | `- error: 'Color' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing initializer
9 | shadowColor: Color = .gray,
10 | padding: CGFloat = 5, isInfinity: Bool = false) {
/Users/admin/builder/spi-builder-workspace/Sources/MaterialDesignUIComponents/ButtonStyle/ButtonStyleContained.swift:8:89: error: 'Color' is only available in macOS 10.15 or newer
5 |
6 | /// 中が塗りつぶしになってる丸型のボタンスタイル
7 | public struct ButtonStyleContained: ButtonStyle {
| `- note: add @available attribute to enclosing struct
8 | public init(font: Font = .callout, forgroundColor: Color = .white, backgroundColor: Color = .blue,
| | `- error: 'Color' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing initializer
9 | shadowColor: Color = .gray,
10 | padding: CGFloat = 5, isInfinity: Bool = false) {
/Users/admin/builder/spi-builder-workspace/Sources/MaterialDesignUIComponents/ButtonStyle/ButtonStyleContained.swift:9:22: error: 'Color' is only available in macOS 10.15 or newer
5 |
6 | /// 中が塗りつぶしになってる丸型のボタンスタイル
7 | public struct ButtonStyleContained: ButtonStyle {
| `- note: add @available attribute to enclosing struct
8 | public init(font: Font = .callout, forgroundColor: Color = .white, backgroundColor: Color = .blue,
| `- note: add @available attribute to enclosing initializer
9 | shadowColor: Color = .gray,
| `- error: 'Color' is only available in macOS 10.15 or newer
10 | padding: CGFloat = 5, isInfinity: Bool = false) {
11 | self.font = font
/Users/admin/builder/spi-builder-workspace/Sources/MaterialDesignUIComponents/ButtonStyle/ButtonStyleContained.swift:8:31: error: 'callout' is only available in macOS 10.15 or newer
5 |
6 | /// 中が塗りつぶしになってる丸型のボタンスタイル
7 | public struct ButtonStyleContained: ButtonStyle {
| `- note: add @available attribute to enclosing struct
8 | public init(font: Font = .callout, forgroundColor: Color = .white, backgroundColor: Color = .blue,
| | `- error: 'callout' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing initializer
9 | shadowColor: Color = .gray,
10 | padding: CGFloat = 5, isInfinity: Bool = false) {
/Users/admin/builder/spi-builder-workspace/Sources/MaterialDesignUIComponents/ButtonStyle/ButtonStyleContained.swift:8:65: error: 'white' is only available in macOS 10.15 or newer
5 |
6 | /// 中が塗りつぶしになってる丸型のボタンスタイル
7 | public struct ButtonStyleContained: ButtonStyle {
| `- note: add @available attribute to enclosing struct
8 | public init(font: Font = .callout, forgroundColor: Color = .white, backgroundColor: Color = .blue,
| | `- error: 'white' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing initializer
9 | shadowColor: Color = .gray,
10 | padding: CGFloat = 5, isInfinity: Bool = false) {
/Users/admin/builder/spi-builder-workspace/Sources/MaterialDesignUIComponents/ButtonStyle/ButtonStyleContained.swift:8:98: error: 'blue' is only available in macOS 10.15 or newer
5 |
6 | /// 中が塗りつぶしになってる丸型のボタンスタイル
7 | public struct ButtonStyleContained: ButtonStyle {
| `- note: add @available attribute to enclosing struct
8 | public init(font: Font = .callout, forgroundColor: Color = .white, backgroundColor: Color = .blue,
| | `- error: 'blue' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing initializer
9 | shadowColor: Color = .gray,
10 | padding: CGFloat = 5, isInfinity: Bool = false) {
/Users/admin/builder/spi-builder-workspace/Sources/MaterialDesignUIComponents/ButtonStyle/ButtonStyleContained.swift:9:31: error: 'gray' is only available in macOS 10.15 or newer
5 |
6 | /// 中が塗りつぶしになってる丸型のボタンスタイル
7 | public struct ButtonStyleContained: ButtonStyle {
| `- note: add @available attribute to enclosing struct
8 | public init(font: Font = .callout, forgroundColor: Color = .white, backgroundColor: Color = .blue,
| `- note: add @available attribute to enclosing initializer
9 | shadowColor: Color = .gray,
| `- error: 'gray' is only available in macOS 10.15 or newer
10 | padding: CGFloat = 5, isInfinity: Bool = false) {
11 | self.font = font
/Users/admin/builder/spi-builder-workspace/Sources/MaterialDesignUIComponents/ButtonStyle/ButtonStyleContained.swift:19:15: error: 'Font' is only available in macOS 10.15 or newer
5 |
6 | /// 中が塗りつぶしになってる丸型のボタンスタイル
7 | public struct ButtonStyleContained: ButtonStyle {
| `- note: add @available attribute to enclosing struct
8 | public init(font: Font = .callout, forgroundColor: Color = .white, backgroundColor: Color = .blue,
9 | shadowColor: Color = .gray,
:
17 | }
18 |
19 | var font: Font = .callout
| `- error: 'Font' is only available in macOS 10.15 or newer
20 | var forgroundColor: Color = .white
21 | var backgroundColor: Color = .blue
/Users/admin/builder/spi-builder-workspace/Sources/MaterialDesignUIComponents/ButtonStyle/ButtonStyleContained.swift:19:23: error: 'callout' is only available in macOS 10.15 or newer
5 |
6 | /// 中が塗りつぶしになってる丸型のボタンスタイル
7 | public struct ButtonStyleContained: ButtonStyle {
| `- note: add @available attribute to enclosing struct
8 | public init(font: Font = .callout, forgroundColor: Color = .white, backgroundColor: Color = .blue,
9 | shadowColor: Color = .gray,
:
17 | }
18 |
19 | var font: Font = .callout
| `- error: 'callout' is only available in macOS 10.15 or newer
20 | var forgroundColor: Color = .white
21 | var backgroundColor: Color = .blue
/Users/admin/builder/spi-builder-workspace/Sources/MaterialDesignUIComponents/ButtonStyle/ButtonStyleContained.swift:20:25: error: 'Color' is only available in macOS 10.15 or newer
5 |
6 | /// 中が塗りつぶしになってる丸型のボタンスタイル
7 | public struct ButtonStyleContained: ButtonStyle {
| `- note: add @available attribute to enclosing struct
8 | public init(font: Font = .callout, forgroundColor: Color = .white, backgroundColor: Color = .blue,
9 | shadowColor: Color = .gray,
:
18 |
19 | var font: Font = .callout
20 | var forgroundColor: Color = .white
| `- error: 'Color' is only available in macOS 10.15 or newer
21 | var backgroundColor: Color = .blue
22 | var shadowColor: Color = .gray
/Users/admin/builder/spi-builder-workspace/Sources/MaterialDesignUIComponents/ButtonStyle/ButtonStyleContained.swift:20:34: error: 'white' is only available in macOS 10.15 or newer
5 |
6 | /// 中が塗りつぶしになってる丸型のボタンスタイル
7 | public struct ButtonStyleContained: ButtonStyle {
| `- note: add @available attribute to enclosing struct
8 | public init(font: Font = .callout, forgroundColor: Color = .white, backgroundColor: Color = .blue,
9 | shadowColor: Color = .gray,
:
18 |
19 | var font: Font = .callout
20 | var forgroundColor: Color = .white
| `- error: 'white' is only available in macOS 10.15 or newer
21 | var backgroundColor: Color = .blue
22 | var shadowColor: Color = .gray
/Users/admin/builder/spi-builder-workspace/Sources/MaterialDesignUIComponents/ButtonStyle/ButtonStyleContained.swift:21:26: error: 'Color' is only available in macOS 10.15 or newer
5 |
6 | /// 中が塗りつぶしになってる丸型のボタンスタイル
7 | public struct ButtonStyleContained: ButtonStyle {
| `- note: add @available attribute to enclosing struct
8 | public init(font: Font = .callout, forgroundColor: Color = .white, backgroundColor: Color = .blue,
9 | shadowColor: Color = .gray,
:
19 | var font: Font = .callout
20 | var forgroundColor: Color = .white
21 | var backgroundColor: Color = .blue
| `- error: 'Color' is only available in macOS 10.15 or newer
22 | var shadowColor: Color = .gray
23 | var padding: CGFloat = 5
/Users/admin/builder/spi-builder-workspace/Sources/MaterialDesignUIComponents/ButtonStyle/ButtonStyleContained.swift:21:35: error: 'blue' is only available in macOS 10.15 or newer
5 |
6 | /// 中が塗りつぶしになってる丸型のボタンスタイル
7 | public struct ButtonStyleContained: ButtonStyle {
| `- note: add @available attribute to enclosing struct
8 | public init(font: Font = .callout, forgroundColor: Color = .white, backgroundColor: Color = .blue,
9 | shadowColor: Color = .gray,
:
19 | var font: Font = .callout
20 | var forgroundColor: Color = .white
21 | var backgroundColor: Color = .blue
| `- error: 'blue' is only available in macOS 10.15 or newer
22 | var shadowColor: Color = .gray
23 | var padding: CGFloat = 5
/Users/admin/builder/spi-builder-workspace/Sources/MaterialDesignUIComponents/ButtonStyle/ButtonStyleContained.swift:22:22: error: 'Color' is only available in macOS 10.15 or newer
5 |
6 | /// 中が塗りつぶしになってる丸型のボタンスタイル
7 | public struct ButtonStyleContained: ButtonStyle {
| `- note: add @available attribute to enclosing struct
8 | public init(font: Font = .callout, forgroundColor: Color = .white, backgroundColor: Color = .blue,
9 | shadowColor: Color = .gray,
:
20 | var forgroundColor: Color = .white
21 | var backgroundColor: Color = .blue
22 | var shadowColor: Color = .gray
| `- error: 'Color' is only available in macOS 10.15 or newer
23 | var padding: CGFloat = 5
24 | var isInfinity: Bool = false
/Users/admin/builder/spi-builder-workspace/Sources/MaterialDesignUIComponents/ButtonStyle/ButtonStyleContained.swift:22:31: error: 'gray' is only available in macOS 10.15 or newer
5 |
6 | /// 中が塗りつぶしになってる丸型のボタンスタイル
7 | public struct ButtonStyleContained: ButtonStyle {
| `- note: add @available attribute to enclosing struct
8 | public init(font: Font = .callout, forgroundColor: Color = .white, backgroundColor: Color = .blue,
9 | shadowColor: Color = .gray,
:
20 | var forgroundColor: Color = .white
21 | var backgroundColor: Color = .blue
22 | var shadowColor: Color = .gray
| `- error: 'gray' is only available in macOS 10.15 or newer
23 | var padding: CGFloat = 5
24 | var isInfinity: Bool = false
/Users/admin/builder/spi-builder-workspace/Sources/MaterialDesignUIComponents/ButtonStyle/ButtonStyleContained.swift:26:64: error: 'View' is only available in macOS 10.15 or newer
5 |
6 | /// 中が塗りつぶしになってる丸型のボタンスタイル
7 | public struct ButtonStyleContained: ButtonStyle {
| `- note: add @available attribute to enclosing struct
8 | public init(font: Font = .callout, forgroundColor: Color = .white, backgroundColor: Color = .blue,
9 | shadowColor: Color = .gray,
:
24 | var isInfinity: Bool = false
25 |
26 | public func makeBody(configuration: Configuration) -> some View {
| | `- error: 'View' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing instance method
27 | ContainedButton(configuration: configuration, font: font, forgroundColor: forgroundColor, backgroundColor: backgroundColor,
28 | shadowColor: shadowColor,
/Users/admin/builder/spi-builder-workspace/Sources/MaterialDesignUIComponents/ButtonStyle/ButtonStyleContained.swift:33:24: error: 'isEnabled' is only available in macOS 10.15 or newer
30 | }
31 |
32 | struct ContainedButton: View {
| |- note: add @available attribute to enclosing struct
| `- note: add @available attribute to enclosing struct
33 | @Environment(\.isEnabled) var isEnabled
| `- error: 'isEnabled' is only available in macOS 10.15 or newer
34 | let configuration: ButtonStyleContained.Configuration
35 |
/Users/admin/builder/spi-builder-workspace/Sources/MaterialDesignUIComponents/ButtonStyle/ButtonStyleContained.swift:36:27: error: 'callout' is only available in macOS 10.15 or newer
30 | }
31 |
32 | struct ContainedButton: View {
| `- note: add @available attribute to enclosing struct
33 | @Environment(\.isEnabled) var isEnabled
34 | let configuration: ButtonStyleContained.Configuration
35 |
36 | var font: Font = .callout
| `- error: 'callout' is only available in macOS 10.15 or newer
37 | var forgroundColor: Color = .white
38 | var backgroundColor: Color = .blue
/Users/admin/builder/spi-builder-workspace/Sources/MaterialDesignUIComponents/ButtonStyle/ButtonStyleContained.swift:37:38: error: 'white' is only available in macOS 10.15 or newer
30 | }
31 |
32 | struct ContainedButton: View {
| `- note: add @available attribute to enclosing struct
33 | @Environment(\.isEnabled) var isEnabled
34 | let configuration: ButtonStyleContained.Configuration
35 |
36 | var font: Font = .callout
37 | var forgroundColor: Color = .white
| `- error: 'white' is only available in macOS 10.15 or newer
38 | var backgroundColor: Color = .blue
39 | var shadowColor: Color
/Users/admin/builder/spi-builder-workspace/Sources/MaterialDesignUIComponents/ButtonStyle/ButtonStyleContained.swift:38:39: error: 'blue' is only available in macOS 10.15 or newer
30 | }
31 |
32 | struct ContainedButton: View {
| `- note: add @available attribute to enclosing struct
33 | @Environment(\.isEnabled) var isEnabled
34 | let configuration: ButtonStyleContained.Configuration
:
36 | var font: Font = .callout
37 | var forgroundColor: Color = .white
38 | var backgroundColor: Color = .blue
| `- error: 'blue' is only available in macOS 10.15 or newer
39 | var shadowColor: Color
40 | var padding: CGFloat = 5
/Users/admin/builder/spi-builder-workspace/Sources/MaterialDesignUIComponents/ButtonStyle/ButtonStyleContained.swift:33:10: error: 'Environment' is only available in macOS 10.15 or newer
30 | }
31 |
32 | struct ContainedButton: View {
| |- note: add @available attribute to enclosing struct
| `- note: add @available attribute to enclosing struct
33 | @Environment(\.isEnabled) var isEnabled
| `- error: 'Environment' is only available in macOS 10.15 or newer
34 | let configuration: ButtonStyleContained.Configuration
35 |
/Users/admin/builder/spi-builder-workspace/Sources/MaterialDesignUIComponents/ButtonStyle/ButtonStyleContained.swift:36:19: error: 'Font' is only available in macOS 10.15 or newer
30 | }
31 |
32 | struct ContainedButton: View {
| `- note: add @available attribute to enclosing struct
33 | @Environment(\.isEnabled) var isEnabled
34 | let configuration: ButtonStyleContained.Configuration
35 |
36 | var font: Font = .callout
| `- error: 'Font' is only available in macOS 10.15 or newer
37 | var forgroundColor: Color = .white
38 | var backgroundColor: Color = .blue
/Users/admin/builder/spi-builder-workspace/Sources/MaterialDesignUIComponents/ButtonStyle/ButtonStyleContained.swift:37:29: error: 'Color' is only available in macOS 10.15 or newer
30 | }
31 |
32 | struct ContainedButton: View {
| `- note: add @available attribute to enclosing struct
33 | @Environment(\.isEnabled) var isEnabled
34 | let configuration: ButtonStyleContained.Configuration
35 |
36 | var font: Font = .callout
37 | var forgroundColor: Color = .white
| `- error: 'Color' is only available in macOS 10.15 or newer
38 | var backgroundColor: Color = .blue
39 | var shadowColor: Color
/Users/admin/builder/spi-builder-workspace/Sources/MaterialDesignUIComponents/ButtonStyle/ButtonStyleContained.swift:38:30: error: 'Color' is only available in macOS 10.15 or newer
30 | }
31 |
32 | struct ContainedButton: View {
| `- note: add @available attribute to enclosing struct
33 | @Environment(\.isEnabled) var isEnabled
34 | let configuration: ButtonStyleContained.Configuration
:
36 | var font: Font = .callout
37 | var forgroundColor: Color = .white
38 | var backgroundColor: Color = .blue
| `- error: 'Color' is only available in macOS 10.15 or newer
39 | var shadowColor: Color
40 | var padding: CGFloat = 5
/Users/admin/builder/spi-builder-workspace/Sources/MaterialDesignUIComponents/ButtonStyle/ButtonStyleContained.swift:39:26: error: 'Color' is only available in macOS 10.15 or newer
30 | }
31 |
32 | struct ContainedButton: View {
| `- note: add @available attribute to enclosing struct
33 | @Environment(\.isEnabled) var isEnabled
34 | let configuration: ButtonStyleContained.Configuration
:
37 | var forgroundColor: Color = .white
38 | var backgroundColor: Color = .blue
39 | var shadowColor: Color
| `- error: 'Color' is only available in macOS 10.15 or newer
40 | var padding: CGFloat = 5
41 | var isInfinity: Bool = false
/Users/admin/builder/spi-builder-workspace/Sources/MaterialDesignUIComponents/ButtonStyle/ButtonStyleContained.swift:43:24: error: 'View' is only available in macOS 10.15 or newer
30 | }
31 |
32 | struct ContainedButton: View {
| `- note: add @available attribute to enclosing struct
33 | @Environment(\.isEnabled) var isEnabled
34 | let configuration: ButtonStyleContained.Configuration
:
41 | var isInfinity: Bool = false
42 |
43 | var body: some View {
| | `- error: 'View' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing property
44 | configuration.label
45 | .frame(maxWidth: isInfinity ? .infinity : .none)
/Users/admin/builder/spi-builder-workspace/Sources/MaterialDesignUIComponents/ButtonStyle/ButtonStyleContained.swift:58:31: error: 'View' is only available in macOS 10.15 or newer
55 |
56 | @available(iOS 14, *)
57 | struct ButtonStyleContained_Previews: PreviewProvider {
| `- note: add @available attribute to enclosing struct
58 | static var previews: some View {
| | `- error: 'View' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing static property
59 | Button("Button") {
60 | }.buttonStyle(ButtonStyleContained())
/Users/admin/builder/spi-builder-workspace/Sources/MaterialDesignUIComponents/ButtonStyle/ButtonStyleContained.swift:45:18: error: 'frame(minWidth:idealWidth:maxWidth:minHeight:idealHeight:maxHeight:alignment:)' is only available in macOS 10.15 or newer
30 | }
31 |
32 | struct ContainedButton: View {
| `- note: add @available attribute to enclosing struct
33 | @Environment(\.isEnabled) var isEnabled
34 | let configuration: ButtonStyleContained.Configuration
:
41 | var isInfinity: Bool = false
42 |
43 | var body: some View {
| `- note: add @available attribute to enclosing property
44 | configuration.label
45 | .frame(maxWidth: isInfinity ? .infinity : .none)
| |- error: 'frame(minWidth:idealWidth:maxWidth:minHeight:idealHeight:maxHeight:alignment:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
46 | .foregroundColor(forgroundColor)
47 | .padding(padding)
/Users/admin/builder/spi-builder-workspace/Sources/MaterialDesignUIComponents/ButtonStyle/ButtonStyleContained.swift:46:18: error: 'foregroundColor' is only available in macOS 10.15 or newer
30 | }
31 |
32 | struct ContainedButton: View {
| `- note: add @available attribute to enclosing struct
33 | @Environment(\.isEnabled) var isEnabled
34 | let configuration: ButtonStyleContained.Configuration
:
41 | var isInfinity: Bool = false
42 |
43 | var body: some View {
| `- note: add @available attribute to enclosing property
44 | configuration.label
45 | .frame(maxWidth: isInfinity ? .infinity : .none)
46 | .foregroundColor(forgroundColor)
| |- error: 'foregroundColor' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
47 | .padding(padding)
48 | .font(font)
/Users/admin/builder/spi-builder-workspace/Sources/MaterialDesignUIComponents/ButtonStyle/ButtonStyleContained.swift:47:18: error: 'padding' is only available in macOS 10.15 or newer
30 | }
31 |
32 | struct ContainedButton: View {
| `- note: add @available attribute to enclosing struct
33 | @Environment(\.isEnabled) var isEnabled
34 | let configuration: ButtonStyleContained.Configuration
:
41 | var isInfinity: Bool = false
42 |
43 | var body: some View {
| `- note: add @available attribute to enclosing property
44 | configuration.label
45 | .frame(maxWidth: isInfinity ? .infinity : .none)
46 | .foregroundColor(forgroundColor)
47 | .padding(padding)
| |- error: 'padding' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
48 | .font(font)
49 | .background(isEnabled ? backgroundColor : backgroundColor.opacity(0.35))
/Users/admin/builder/spi-builder-workspace/Sources/MaterialDesignUIComponents/ButtonStyle/ButtonStyleContained.swift:48:18: error: 'font' is only available in macOS 10.15 or newer
30 | }
31 |
32 | struct ContainedButton: View {
| `- note: add @available attribute to enclosing struct
33 | @Environment(\.isEnabled) var isEnabled
34 | let configuration: ButtonStyleContained.Configuration
:
41 | var isInfinity: Bool = false
42 |
43 | var body: some View {
| `- note: add @available attribute to enclosing property
44 | configuration.label
45 | .frame(maxWidth: isInfinity ? .infinity : .none)
46 | .foregroundColor(forgroundColor)
47 | .padding(padding)
48 | .font(font)
| |- error: 'font' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
49 | .background(isEnabled ? backgroundColor : backgroundColor.opacity(0.35))
50 | .cornerRadius(5)
/Users/admin/builder/spi-builder-workspace/Sources/MaterialDesignUIComponents/ButtonStyle/ButtonStyleContained.swift:49:18: error: 'background(_:ignoresSafeAreaEdges:)' is only available in macOS 12.0 or newer
30 | }
31 |
32 | struct ContainedButton: View {
| `- note: add @available attribute to enclosing struct
33 | @Environment(\.isEnabled) var isEnabled
34 | let configuration: ButtonStyleContained.Configuration
:
41 | var isInfinity: Bool = false
42 |
43 | var body: some View {
| `- note: add @available attribute to enclosing property
44 | configuration.label
45 | .frame(maxWidth: isInfinity ? .infinity : .none)
:
47 | .padding(padding)
48 | .font(font)
49 | .background(isEnabled ? backgroundColor : backgroundColor.opacity(0.35))
| |- error: 'background(_:ignoresSafeAreaEdges:)' is only available in macOS 12.0 or newer
| `- note: add 'if #available' version check
50 | .cornerRadius(5)
51 | .shadow(color: shadowColor, radius: 1, x: 1, y: 1)
/Users/admin/builder/spi-builder-workspace/Sources/MaterialDesignUIComponents/ButtonStyle/ButtonStyleContained.swift:49:75: error: 'opacity' is only available in macOS 10.15 or newer
30 | }
31 |
32 | struct ContainedButton: View {
| `- note: add @available attribute to enclosing struct
33 | @Environment(\.isEnabled) var isEnabled
34 | let configuration: ButtonStyleContained.Configuration
:
41 | var isInfinity: Bool = false
42 |
43 | var body: some View {
| `- note: add @available attribute to enclosing property
44 | configuration.label
45 | .frame(maxWidth: isInfinity ? .infinity : .none)
:
47 | .padding(padding)
48 | .font(font)
49 | .background(isEnabled ? backgroundColor : backgroundColor.opacity(0.35))
| |- error: 'opacity' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
50 | .cornerRadius(5)
51 | .shadow(color: shadowColor, radius: 1, x: 1, y: 1)
/Users/admin/builder/spi-builder-workspace/Sources/MaterialDesignUIComponents/ButtonStyle/ButtonStyleContained.swift:50:18: error: 'cornerRadius(_:antialiased:)' is only available in macOS 10.15 or newer
30 | }
31 |
32 | struct ContainedButton: View {
| `- note: add @available attribute to enclosing struct
33 | @Environment(\.isEnabled) var isEnabled
34 | let configuration: ButtonStyleContained.Configuration
:
41 | var isInfinity: Bool = false
42 |
43 | var body: some View {
| `- note: add @available attribute to enclosing property
44 | configuration.label
45 | .frame(maxWidth: isInfinity ? .infinity : .none)
:
48 | .font(font)
49 | .background(isEnabled ? backgroundColor : backgroundColor.opacity(0.35))
50 | .cornerRadius(5)
| |- error: 'cornerRadius(_:antialiased:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
51 | .shadow(color: shadowColor, radius: 1, x: 1, y: 1)
52 | }
/Users/admin/builder/spi-builder-workspace/Sources/MaterialDesignUIComponents/ButtonStyle/ButtonStyleContained.swift:51:18: error: 'shadow(color:radius:x:y:)' is only available in macOS 10.15 or newer
30 | }
31 |
32 | struct ContainedButton: View {
| `- note: add @available attribute to enclosing struct
33 | @Environment(\.isEnabled) var isEnabled
34 | let configuration: ButtonStyleContained.Configuration
:
41 | var isInfinity: Bool = false
42 |
43 | var body: some View {
| `- note: add @available attribute to enclosing property
44 | configuration.label
45 | .frame(maxWidth: isInfinity ? .infinity : .none)
:
49 | .background(isEnabled ? backgroundColor : backgroundColor.opacity(0.35))
50 | .cornerRadius(5)
51 | .shadow(color: shadowColor, radius: 1, x: 1, y: 1)
| |- error: 'shadow(color:radius:x:y:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
52 | }
53 | }
/Users/admin/builder/spi-builder-workspace/Sources/MaterialDesignUIComponents/ButtonStyle/ButtonStyleContained.swift:59:9: error: 'Button' is only available in macOS 10.15 or newer
55 |
56 | @available(iOS 14, *)
57 | struct ButtonStyleContained_Previews: PreviewProvider {
| `- note: add @available attribute to enclosing struct
58 | static var previews: some View {
| `- note: add @available attribute to enclosing static property
59 | Button("Button") {
| |- error: 'Button' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
60 | }.buttonStyle(ButtonStyleContained())
61 | }
/Users/admin/builder/spi-builder-workspace/Sources/MaterialDesignUIComponents/ButtonStyle/ButtonStyleContained.swift:59:9: error: 'init(_:action:)' is only available in macOS 10.15 or newer
55 |
56 | @available(iOS 14, *)
57 | struct ButtonStyleContained_Previews: PreviewProvider {
| `- note: add @available attribute to enclosing struct
58 | static var previews: some View {
| `- note: add @available attribute to enclosing static property
59 | Button("Button") {
| |- error: 'init(_:action:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
60 | }.buttonStyle(ButtonStyleContained())
61 | }
/Users/admin/builder/spi-builder-workspace/Sources/MaterialDesignUIComponents/ButtonStyle/ButtonStyleContained.swift:59:16: error: 'LocalizedStringKey' is only available in macOS 10.15 or newer
55 |
56 | @available(iOS 14, *)
57 | struct ButtonStyleContained_Previews: PreviewProvider {
| `- note: add @available attribute to enclosing struct
58 | static var previews: some View {
| `- note: add @available attribute to enclosing static property
59 | Button("Button") {
| |- error: 'LocalizedStringKey' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
60 | }.buttonStyle(ButtonStyleContained())
61 | }
/Users/admin/builder/spi-builder-workspace/Sources/MaterialDesignUIComponents/ButtonStyle/ButtonStyleContained.swift:60:11: error: 'buttonStyle' is only available in macOS 10.15 or newer
55 |
56 | @available(iOS 14, *)
57 | struct ButtonStyleContained_Previews: PreviewProvider {
| `- note: add @available attribute to enclosing struct
58 | static var previews: some View {
| `- note: add @available attribute to enclosing static property
59 | Button("Button") {
60 | }.buttonStyle(ButtonStyleContained())
| |- error: 'buttonStyle' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
61 | }
62 | }
[7/7] Compiling MaterialDesignUIComponents ButtonStyleOutlined.swift
/Users/admin/builder/spi-builder-workspace/Sources/MaterialDesignUIComponents/ButtonStyle/ButtonStyleOutlined.swift:8:23: error: 'Font' is only available in macOS 10.15 or newer
5 |
6 | /// 中が透過になってる丸型のボタンスタイル
7 | public struct ButtonStyleOutlined: ButtonStyle {
| `- note: add @available attribute to enclosing struct
8 | public init(font: Font = .callout, padding: CGFloat = 5, isInfinity: Bool = false, forgroundColor: Color = .black, backgroundColor: Color = .clear, strokeColor: Color, cornerRadius: CGFloat = 5) {
| | `- error: 'Font' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing initializer
9 | self.font = font
10 | self.padding = padding
/Users/admin/builder/spi-builder-workspace/Sources/MaterialDesignUIComponents/ButtonStyle/ButtonStyleOutlined.swift:8:104: error: 'Color' is only available in macOS 10.15 or newer
5 |
6 | /// 中が透過になってる丸型のボタンスタイル
7 | public struct ButtonStyleOutlined: ButtonStyle {
| `- note: add @available attribute to enclosing struct
8 | public init(font: Font = .callout, padding: CGFloat = 5, isInfinity: Bool = false, forgroundColor: Color = .black, backgroundColor: Color = .clear, strokeColor: Color, cornerRadius: CGFloat = 5) {
| | `- error: 'Color' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing initializer
9 | self.font = font
10 | self.padding = padding
/Users/admin/builder/spi-builder-workspace/Sources/MaterialDesignUIComponents/ButtonStyle/ButtonStyleOutlined.swift:8:137: error: 'Color' is only available in macOS 10.15 or newer
5 |
6 | /// 中が透過になってる丸型のボタンスタイル
7 | public struct ButtonStyleOutlined: ButtonStyle {
| `- note: add @available attribute to enclosing struct
8 | public init(font: Font = .callout, padding: CGFloat = 5, isInfinity: Bool = false, forgroundColor: Color = .black, backgroundColor: Color = .clear, strokeColor: Color, cornerRadius: CGFloat = 5) {
| | `- error: 'Color' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing initializer
9 | self.font = font
10 | self.padding = padding
/Users/admin/builder/spi-builder-workspace/Sources/MaterialDesignUIComponents/ButtonStyle/ButtonStyleOutlined.swift:8:166: error: 'Color' is only available in macOS 10.15 or newer
5 |
6 | /// 中が透過になってる丸型のボタンスタイル
7 | public struct ButtonStyleOutlined: ButtonStyle {
| `- note: add @available attribute to enclosing struct
8 | public init(font: Font = .callout, padding: CGFloat = 5, isInfinity: Bool = false, forgroundColor: Color = .black, backgroundColor: Color = .clear, strokeColor: Color, cornerRadius: CGFloat = 5) {
| | `- error: 'Color' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing initializer
9 | self.font = font
10 | self.padding = padding
/Users/admin/builder/spi-builder-workspace/Sources/MaterialDesignUIComponents/ButtonStyle/ButtonStyleOutlined.swift:8:31: error: 'callout' is only available in macOS 10.15 or newer
5 |
6 | /// 中が透過になってる丸型のボタンスタイル
7 | public struct ButtonStyleOutlined: ButtonStyle {
| `- note: add @available attribute to enclosing struct
8 | public init(font: Font = .callout, padding: CGFloat = 5, isInfinity: Bool = false, forgroundColor: Color = .black, backgroundColor: Color = .clear, strokeColor: Color, cornerRadius: CGFloat = 5) {
| | `- error: 'callout' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing initializer
9 | self.font = font
10 | self.padding = padding
/Users/admin/builder/spi-builder-workspace/Sources/MaterialDesignUIComponents/ButtonStyle/ButtonStyleOutlined.swift:8:113: error: 'black' is only available in macOS 10.15 or newer
5 |
6 | /// 中が透過になってる丸型のボタンスタイル
7 | public struct ButtonStyleOutlined: ButtonStyle {
| `- note: add @available attribute to enclosing struct
8 | public init(font: Font = .callout, padding: CGFloat = 5, isInfinity: Bool = false, forgroundColor: Color = .black, backgroundColor: Color = .clear, strokeColor: Color, cornerRadius: CGFloat = 5) {
| | `- error: 'black' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing initializer
9 | self.font = font
10 | self.padding = padding
/Users/admin/builder/spi-builder-workspace/Sources/MaterialDesignUIComponents/ButtonStyle/ButtonStyleOutlined.swift:8:146: error: 'clear' is only available in macOS 10.15 or newer
5 |
6 | /// 中が透過になってる丸型のボタンスタイル
7 | public struct ButtonStyleOutlined: ButtonStyle {
| `- note: add @available attribute to enclosing struct
8 | public init(font: Font = .callout, padding: CGFloat = 5, isInfinity: Bool = false, forgroundColor: Color = .black, backgroundColor: Color = .clear, strokeColor: Color, cornerRadius: CGFloat = 5) {
| | `- error: 'clear' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing initializer
9 | self.font = font
10 | self.padding = padding
/Users/admin/builder/spi-builder-workspace/Sources/MaterialDesignUIComponents/ButtonStyle/ButtonStyleOutlined.swift:18:15: error: 'Font' is only available in macOS 10.15 or newer
5 |
6 | /// 中が透過になってる丸型のボタンスタイル
7 | public struct ButtonStyleOutlined: ButtonStyle {
| `- note: add @available attribute to enclosing struct
8 | public init(font: Font = .callout, padding: CGFloat = 5, isInfinity: Bool = false, forgroundColor: Color = .black, backgroundColor: Color = .clear, strokeColor: Color, cornerRadius: CGFloat = 5) {
9 | self.font = font
:
16 | }
17 |
18 | var font: Font = .callout
| `- error: 'Font' is only available in macOS 10.15 or newer
19 | var strokeColor: Color = .blue
20 | var forgroundColor: Color = .black
/Users/admin/builder/spi-builder-workspace/Sources/MaterialDesignUIComponents/ButtonStyle/ButtonStyleOutlined.swift:18:23: error: 'callout' is only available in macOS 10.15 or newer
5 |
6 | /// 中が透過になってる丸型のボタンスタイル
7 | public struct ButtonStyleOutlined: ButtonStyle {
| `- note: add @available attribute to enclosing struct
8 | public init(font: Font = .callout, padding: CGFloat = 5, isInfinity: Bool = false, forgroundColor: Color = .black, backgroundColor: Color = .clear, strokeColor: Color, cornerRadius: CGFloat = 5) {
9 | self.font = font
:
16 | }
17 |
18 | var font: Font = .callout
| `- error: 'callout' is only available in macOS 10.15 or newer
19 | var strokeColor: Color = .blue
20 | var forgroundColor: Color = .black
/Users/admin/builder/spi-builder-workspace/Sources/MaterialDesignUIComponents/ButtonStyle/ButtonStyleOutlined.swift:19:22: error: 'Color' is only available in macOS 10.15 or newer
5 |
6 | /// 中が透過になってる丸型のボタンスタイル
7 | public struct ButtonStyleOutlined: ButtonStyle {
| `- note: add @available attribute to enclosing struct
8 | public init(font: Font = .callout, padding: CGFloat = 5, isInfinity: Bool = false, forgroundColor: Color = .black, backgroundColor: Color = .clear, strokeColor: Color, cornerRadius: CGFloat = 5) {
9 | self.font = font
:
17 |
18 | var font: Font = .callout
19 | var strokeColor: Color = .blue
| `- error: 'Color' is only available in macOS 10.15 or newer
20 | var forgroundColor: Color = .black
21 | var backgroundColor: Color = .clear
/Users/admin/builder/spi-builder-workspace/Sources/MaterialDesignUIComponents/ButtonStyle/ButtonStyleOutlined.swift:19:31: error: 'blue' is only available in macOS 10.15 or newer
5 |
6 | /// 中が透過になってる丸型のボタンスタイル
7 | public struct ButtonStyleOutlined: ButtonStyle {
| `- note: add @available attribute to enclosing struct
8 | public init(font: Font = .callout, padding: CGFloat = 5, isInfinity: Bool = false, forgroundColor: Color = .black, backgroundColor: Color = .clear, strokeColor: Color, cornerRadius: CGFloat = 5) {
9 | self.font = font
:
17 |
18 | var font: Font = .callout
19 | var strokeColor: Color = .blue
| `- error: 'blue' is only available in macOS 10.15 or newer
20 | var forgroundColor: Color = .black
21 | var backgroundColor: Color = .clear
/Users/admin/builder/spi-builder-workspace/Sources/MaterialDesignUIComponents/ButtonStyle/ButtonStyleOutlined.swift:20:25: error: 'Color' is only available in macOS 10.15 or newer
5 |
6 | /// 中が透過になってる丸型のボタンスタイル
7 | public struct ButtonStyleOutlined: ButtonStyle {
| `- note: add @available attribute to enclosing struct
8 | public init(font: Font = .callout, padding: CGFloat = 5, isInfinity: Bool = false, forgroundColor: Color = .black, backgroundColor: Color = .clear, strokeColor: Color, cornerRadius: CGFloat = 5) {
9 | self.font = font
:
18 | var font: Font = .callout
19 | var strokeColor: Color = .blue
20 | var forgroundColor: Color = .black
| `- error: 'Color' is only available in macOS 10.15 or newer
21 | var backgroundColor: Color = .clear
22 | var padding: CGFloat = 5
/Users/admin/builder/spi-builder-workspace/Sources/MaterialDesignUIComponents/ButtonStyle/ButtonStyleOutlined.swift:20:34: error: 'black' is only available in macOS 10.15 or newer
5 |
6 | /// 中が透過になってる丸型のボタンスタイル
7 | public struct ButtonStyleOutlined: ButtonStyle {
| `- note: add @available attribute to enclosing struct
8 | public init(font: Font = .callout, padding: CGFloat = 5, isInfinity: Bool = false, forgroundColor: Color = .black, backgroundColor: Color = .clear, strokeColor: Color, cornerRadius: CGFloat = 5) {
9 | self.font = font
:
18 | var font: Font = .callout
19 | var strokeColor: Color = .blue
20 | var forgroundColor: Color = .black
| `- error: 'black' is only available in macOS 10.15 or newer
21 | var backgroundColor: Color = .clear
22 | var padding: CGFloat = 5
/Users/admin/builder/spi-builder-workspace/Sources/MaterialDesignUIComponents/ButtonStyle/ButtonStyleOutlined.swift:21:26: error: 'Color' is only available in macOS 10.15 or newer
5 |
6 | /// 中が透過になってる丸型のボタンスタイル
7 | public struct ButtonStyleOutlined: ButtonStyle {
| `- note: add @available attribute to enclosing struct
8 | public init(font: Font = .callout, padding: CGFloat = 5, isInfinity: Bool = false, forgroundColor: Color = .black, backgroundColor: Color = .clear, strokeColor: Color, cornerRadius: CGFloat = 5) {
9 | self.font = font
:
19 | var strokeColor: Color = .blue
20 | var forgroundColor: Color = .black
21 | var backgroundColor: Color = .clear
| `- error: 'Color' is only available in macOS 10.15 or newer
22 | var padding: CGFloat = 5
23 | var isInfinity: Bool = false
/Users/admin/builder/spi-builder-workspace/Sources/MaterialDesignUIComponents/ButtonStyle/ButtonStyleOutlined.swift:21:35: error: 'clear' is only available in macOS 10.15 or newer
5 |
6 | /// 中が透過になってる丸型のボタンスタイル
7 | public struct ButtonStyleOutlined: ButtonStyle {
| `- note: add @available attribute to enclosing struct
8 | public init(font: Font = .callout, padding: CGFloat = 5, isInfinity: Bool = false, forgroundColor: Color = .black, backgroundColor: Color = .clear, strokeColor: Color, cornerRadius: CGFloat = 5) {
9 | self.font = font
:
19 | var strokeColor: Color = .blue
20 | var forgroundColor: Color = .black
21 | var backgroundColor: Color = .clear
| `- error: 'clear' is only available in macOS 10.15 or newer
22 | var padding: CGFloat = 5
23 | var isInfinity: Bool = false
/Users/admin/builder/spi-builder-workspace/Sources/MaterialDesignUIComponents/ButtonStyle/ButtonStyleOutlined.swift:26:64: error: 'View' is only available in macOS 10.15 or newer
5 |
6 | /// 中が透過になってる丸型のボタンスタイル
7 | public struct ButtonStyleOutlined: ButtonStyle {
| `- note: add @available attribute to enclosing struct
8 | public init(font: Font = .callout, padding: CGFloat = 5, isInfinity: Bool = false, forgroundColor: Color = .black, backgroundColor: Color = .clear, strokeColor: Color, cornerRadius: CGFloat = 5) {
9 | self.font = font
:
24 | var cornerRadius: CGFloat = 10 // 角丸の半径
25 |
26 | public func makeBody(configuration: Configuration) -> some View {
| | `- error: 'View' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing instance method
27 | OutlinedButton(configuration: configuration, font: font, padding: padding, isInfinity: isInfinity, cornerRadius: cornerRadius, strokeColor: strokeColor, forgroundColor: forgroundColor, backgroundColor: backgroundColor)
28 | }
/Users/admin/builder/spi-builder-workspace/Sources/MaterialDesignUIComponents/ButtonStyle/ButtonStyleOutlined.swift:31:24: error: 'isEnabled' is only available in macOS 10.15 or newer
28 | }
29 |
30 | struct OutlinedButton: View {
| |- note: add @available attribute to enclosing struct
| `- note: add @available attribute to enclosing struct
31 | @Environment(\.isEnabled) var isEnabled
| `- error: 'isEnabled' is only available in macOS 10.15 or newer
32 | let configuration: ButtonStyleOutlined.Configuration
33 |
/Users/admin/builder/spi-builder-workspace/Sources/MaterialDesignUIComponents/ButtonStyle/ButtonStyleOutlined.swift:34:27: error: 'callout' is only available in macOS 10.15 or newer
28 | }
29 |
30 | struct OutlinedButton: View {
| `- note: add @available attribute to enclosing struct
31 | @Environment(\.isEnabled) var isEnabled
32 | let configuration: ButtonStyleOutlined.Configuration
33 |
34 | var font: Font = .callout
| `- error: 'callout' is only available in macOS 10.15 or newer
35 | var padding: CGFloat = 5
36 | var isInfinity: Bool = false
/Users/admin/builder/spi-builder-workspace/Sources/MaterialDesignUIComponents/ButtonStyle/ButtonStyleOutlined.swift:38:35: error: 'blue' is only available in macOS 10.15 or newer
28 | }
29 |
30 | struct OutlinedButton: View {
| `- note: add @available attribute to enclosing struct
31 | @Environment(\.isEnabled) var isEnabled
32 | let configuration: ButtonStyleOutlined.Configuration
:
36 | var isInfinity: Bool = false
37 | var cornerRadius: CGFloat = 10 // 角丸の半径
38 | var strokeColor: Color = .blue
| `- error: 'blue' is only available in macOS 10.15 or newer
39 | var forgroundColor: Color = .black
40 | var backgroundColor: Color = .clear
/Users/admin/builder/spi-builder-workspace/Sources/MaterialDesignUIComponents/ButtonStyle/ButtonStyleOutlined.swift:39:38: error: 'black' is only available in macOS 10.15 or newer
28 | }
29 |
30 | struct OutlinedButton: View {
| `- note: add @available attribute to enclosing struct
31 | @Environment(\.isEnabled) var isEnabled
32 | let configuration: ButtonStyleOutlined.Configuration
:
37 | var cornerRadius: CGFloat = 10 // 角丸の半径
38 | var strokeColor: Color = .blue
39 | var forgroundColor: Color = .black
| `- error: 'black' is only available in macOS 10.15 or newer
40 | var backgroundColor: Color = .clear
41 |
/Users/admin/builder/spi-builder-workspace/Sources/MaterialDesignUIComponents/ButtonStyle/ButtonStyleOutlined.swift:40:39: error: 'clear' is only available in macOS 10.15 or newer
28 | }
29 |
30 | struct OutlinedButton: View {
| `- note: add @available attribute to enclosing struct
31 | @Environment(\.isEnabled) var isEnabled
32 | let configuration: ButtonStyleOutlined.Configuration
:
38 | var strokeColor: Color = .blue
39 | var forgroundColor: Color = .black
40 | var backgroundColor: Color = .clear
| `- error: 'clear' is only available in macOS 10.15 or newer
41 |
42 | var body: some View {
/Users/admin/builder/spi-builder-workspace/Sources/MaterialDesignUIComponents/ButtonStyle/ButtonStyleOutlined.swift:31:10: error: 'Environment' is only available in macOS 10.15 or newer
28 | }
29 |
30 | struct OutlinedButton: View {
| |- note: add @available attribute to enclosing struct
| `- note: add @available attribute to enclosing struct
31 | @Environment(\.isEnabled) var isEnabled
| `- error: 'Environment' is only available in macOS 10.15 or newer
32 | let configuration: ButtonStyleOutlined.Configuration
33 |
/Users/admin/builder/spi-builder-workspace/Sources/MaterialDesignUIComponents/ButtonStyle/ButtonStyleOutlined.swift:34:19: error: 'Font' is only available in macOS 10.15 or newer
28 | }
29 |
30 | struct OutlinedButton: View {
| `- note: add @available attribute to enclosing struct
31 | @Environment(\.isEnabled) var isEnabled
32 | let configuration: ButtonStyleOutlined.Configuration
33 |
34 | var font: Font = .callout
| `- error: 'Font' is only available in macOS 10.15 or newer
35 | var padding: CGFloat = 5
36 | var isInfinity: Bool = false
/Users/admin/builder/spi-builder-workspace/Sources/MaterialDesignUIComponents/ButtonStyle/ButtonStyleOutlined.swift:38:26: error: 'Color' is only available in macOS 10.15 or newer
28 | }
29 |
30 | struct OutlinedButton: View {
| `- note: add @available attribute to enclosing struct
31 | @Environment(\.isEnabled) var isEnabled
32 | let configuration: ButtonStyleOutlined.Configuration
:
36 | var isInfinity: Bool = false
37 | var cornerRadius: CGFloat = 10 // 角丸の半径
38 | var strokeColor: Color = .blue
| `- error: 'Color' is only available in macOS 10.15 or newer
39 | var forgroundColor: Color = .black
40 | var backgroundColor: Color = .clear
/Users/admin/builder/spi-builder-workspace/Sources/MaterialDesignUIComponents/ButtonStyle/ButtonStyleOutlined.swift:39:29: error: 'Color' is only available in macOS 10.15 or newer
28 | }
29 |
30 | struct OutlinedButton: View {
| `- note: add @available attribute to enclosing struct
31 | @Environment(\.isEnabled) var isEnabled
32 | let configuration: ButtonStyleOutlined.Configuration
:
37 | var cornerRadius: CGFloat = 10 // 角丸の半径
38 | var strokeColor: Color = .blue
39 | var forgroundColor: Color = .black
| `- error: 'Color' is only available in macOS 10.15 or newer
40 | var backgroundColor: Color = .clear
41 |
/Users/admin/builder/spi-builder-workspace/Sources/MaterialDesignUIComponents/ButtonStyle/ButtonStyleOutlined.swift:40:30: error: 'Color' is only available in macOS 10.15 or newer
28 | }
29 |
30 | struct OutlinedButton: View {
| `- note: add @available attribute to enclosing struct
31 | @Environment(\.isEnabled) var isEnabled
32 | let configuration: ButtonStyleOutlined.Configuration
:
38 | var strokeColor: Color = .blue
39 | var forgroundColor: Color = .black
40 | var backgroundColor: Color = .clear
| `- error: 'Color' is only available in macOS 10.15 or newer
41 |
42 | var body: some View {
/Users/admin/builder/spi-builder-workspace/Sources/MaterialDesignUIComponents/ButtonStyle/ButtonStyleOutlined.swift:42:24: error: 'View' is only available in macOS 10.15 or newer
28 | }
29 |
30 | struct OutlinedButton: View {
| `- note: add @available attribute to enclosing struct
31 | @Environment(\.isEnabled) var isEnabled
32 | let configuration: ButtonStyleOutlined.Configuration
:
40 | var backgroundColor: Color = .clear
41 |
42 | var body: some View {
| | `- error: 'View' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing property
43 | configuration.label
44 | .font(font)
/Users/admin/builder/spi-builder-workspace/Sources/MaterialDesignUIComponents/ButtonStyle/ButtonStyleOutlined.swift:62:24: error: 'Color' is only available in macOS 10.15 or newer
58 |
59 | /// 角丸の四角形
60 | private struct RoundedRectangleFill: View {
| `- note: add @available attribute to enclosing struct
61 | var cornerRadius: CGFloat // 角丸の半径
62 | var fillColor: Color // Fillする色
| `- error: 'Color' is only available in macOS 10.15 or newer
63 |
64 | var body: some View {
/Users/admin/builder/spi-builder-workspace/Sources/MaterialDesignUIComponents/ButtonStyle/ButtonStyleOutlined.swift:64:24: error: 'View' is only available in macOS 10.15 or newer
58 |
59 | /// 角丸の四角形
60 | private struct RoundedRectangleFill: View {
| `- note: add @available attribute to enclosing struct
61 | var cornerRadius: CGFloat // 角丸の半径
62 | var fillColor: Color // Fillする色
63 |
64 | var body: some View {
| | `- error: 'View' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing property
65 | return RoundedRectangle(cornerRadius: cornerRadius).fill(fillColor)
66 | }
/Users/admin/builder/spi-builder-workspace/Sources/MaterialDesignUIComponents/ButtonStyle/ButtonStyleOutlined.swift:72:31: error: 'View' is only available in macOS 10.15 or newer
69 |
70 | @available(iOS 14, *)
71 | struct ButtonStyleOutlined_Previews: PreviewProvider {
| `- note: add @available attribute to enclosing struct
72 | static var previews: some View {
| | `- error: 'View' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing static property
73 | Button("Button") {
74 | }.buttonStyle(ButtonStyleOutlined(strokeColor: .black))
/Users/admin/builder/spi-builder-workspace/Sources/MaterialDesignUIComponents/ButtonStyle/ButtonStyleOutlined.swift:44:18: error: 'font' is only available in macOS 10.15 or newer
28 | }
29 |
30 | struct OutlinedButton: View {
| `- note: add @available attribute to enclosing struct
31 | @Environment(\.isEnabled) var isEnabled
32 | let configuration: ButtonStyleOutlined.Configuration
:
40 | var backgroundColor: Color = .clear
41 |
42 | var body: some View {
| `- note: add @available attribute to enclosing property
43 | configuration.label
44 | .font(font)
| |- error: 'font' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
45 | .opacity(configuration.isPressed ? 0.2 : 1.0)
46 | .padding(padding)
/Users/admin/builder/spi-builder-workspace/Sources/MaterialDesignUIComponents/ButtonStyle/ButtonStyleOutlined.swift:45:18: error: 'opacity' is only available in macOS 10.15 or newer
28 | }
29 |
30 | struct OutlinedButton: View {
| `- note: add @available attribute to enclosing struct
31 | @Environment(\.isEnabled) var isEnabled
32 | let configuration: ButtonStyleOutlined.Configuration
:
40 | var backgroundColor: Color = .clear
41 |
42 | var body: some View {
| `- note: add @available attribute to enclosing property
43 | configuration.label
44 | .font(font)
45 | .opacity(configuration.isPressed ? 0.2 : 1.0)
| |- error: 'opacity' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
46 | .padding(padding)
47 | .frame(maxWidth: isInfinity ? .infinity : .none)
/Users/admin/builder/spi-builder-workspace/Sources/MaterialDesignUIComponents/ButtonStyle/ButtonStyleOutlined.swift:46:18: error: 'padding' is only available in macOS 10.15 or newer
28 | }
29 |
30 | struct OutlinedButton: View {
| `- note: add @available attribute to enclosing struct
31 | @Environment(\.isEnabled) var isEnabled
32 | let configuration: ButtonStyleOutlined.Configuration
:
40 | var backgroundColor: Color = .clear
41 |
42 | var body: some View {
| `- note: add @available attribute to enclosing property
43 | configuration.label
44 | .font(font)
45 | .opacity(configuration.isPressed ? 0.2 : 1.0)
46 | .padding(padding)
| |- error: 'padding' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
47 | .frame(maxWidth: isInfinity ? .infinity : .none)
48 | .foregroundColor(forgroundColor)
/Users/admin/builder/spi-builder-workspace/Sources/MaterialDesignUIComponents/ButtonStyle/ButtonStyleOutlined.swift:47:18: error: 'frame(minWidth:idealWidth:maxWidth:minHeight:idealHeight:maxHeight:alignment:)' is only available in macOS 10.15 or newer
28 | }
29 |
30 | struct OutlinedButton: View {
| `- note: add @available attribute to enclosing struct
31 | @Environment(\.isEnabled) var isEnabled
32 | let configuration: ButtonStyleOutlined.Configuration
:
40 | var backgroundColor: Color = .clear
41 |
42 | var body: some View {
| `- note: add @available attribute to enclosing property
43 | configuration.label
44 | .font(font)
45 | .opacity(configuration.isPressed ? 0.2 : 1.0)
46 | .padding(padding)
47 | .frame(maxWidth: isInfinity ? .infinity : .none)
| |- error: 'frame(minWidth:idealWidth:maxWidth:minHeight:idealHeight:maxHeight:alignment:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
48 | .foregroundColor(forgroundColor)
49 | .background(RoundedRectangleFill.init(cornerRadius: cornerRadius, fillColor: backgroundColor))
/Users/admin/builder/spi-builder-workspace/Sources/MaterialDesignUIComponents/ButtonStyle/ButtonStyleOutlined.swift:48:18: error: 'foregroundColor' is only available in macOS 10.15 or newer
28 | }
29 |
30 | struct OutlinedButton: View {
| `- note: add @available attribute to enclosing struct
31 | @Environment(\.isEnabled) var isEnabled
32 | let configuration: ButtonStyleOutlined.Configuration
:
40 | var backgroundColor: Color = .clear
41 |
42 | var body: some View {
| `- note: add @available attribute to enclosing property
43 | configuration.label
44 | .font(font)
:
46 | .padding(padding)
47 | .frame(maxWidth: isInfinity ? .infinity : .none)
48 | .foregroundColor(forgroundColor)
| |- error: 'foregroundColor' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
49 | .background(RoundedRectangleFill.init(cornerRadius: cornerRadius, fillColor: backgroundColor))
50 | .overlay(
/Users/admin/builder/spi-builder-workspace/Sources/MaterialDesignUIComponents/ButtonStyle/ButtonStyleOutlined.swift:49:18: error: 'background(_:alignment:)' is only available in macOS 10.15 or newer
28 | }
29 |
30 | struct OutlinedButton: View {
| `- note: add @available attribute to enclosing struct
31 | @Environment(\.isEnabled) var isEnabled
32 | let configuration: ButtonStyleOutlined.Configuration
:
40 | var backgroundColor: Color = .clear
41 |
42 | var body: some View {
| `- note: add @available attribute to enclosing property
43 | configuration.label
44 | .font(font)
:
47 | .frame(maxWidth: isInfinity ? .infinity : .none)
48 | .foregroundColor(forgroundColor)
49 | .background(RoundedRectangleFill.init(cornerRadius: cornerRadius, fillColor: backgroundColor))
| |- error: 'background(_:alignment:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
50 | .overlay(
51 | RoundedRectangle(cornerRadius: cornerRadius)
/Users/admin/builder/spi-builder-workspace/Sources/MaterialDesignUIComponents/ButtonStyle/ButtonStyleOutlined.swift:50:18: error: 'overlay(_:alignment:)' is only available in macOS 10.15 or newer
28 | }
29 |
30 | struct OutlinedButton: View {
| `- note: add @available attribute to enclosing struct
31 | @Environment(\.isEnabled) var isEnabled
32 | let configuration: ButtonStyleOutlined.Configuration
:
40 | var backgroundColor: Color = .clear
41 |
42 | var body: some View {
| `- note: add @available attribute to enclosing property
43 | configuration.label
44 | .font(font)
:
48 | .foregroundColor(forgroundColor)
49 | .background(RoundedRectangleFill.init(cornerRadius: cornerRadius, fillColor: backgroundColor))
50 | .overlay(
| |- error: 'overlay(_:alignment:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
51 | RoundedRectangle(cornerRadius: cornerRadius)
52 | .stroke(strokeColor, lineWidth: 1)
/Users/admin/builder/spi-builder-workspace/Sources/MaterialDesignUIComponents/ButtonStyle/ButtonStyleOutlined.swift:51:25: error: 'RoundedRectangle' is only available in macOS 10.15 or newer
28 | }
29 |
30 | struct OutlinedButton: View {
| `- note: add @available attribute to enclosing struct
31 | @Environment(\.isEnabled) var isEnabled
32 | let configuration: ButtonStyleOutlined.Configuration
:
40 | var backgroundColor: Color = .clear
41 |
42 | var body: some View {
| `- note: add @available attribute to enclosing property
43 | configuration.label
44 | .font(font)
:
49 | .background(RoundedRectangleFill.init(cornerRadius: cornerRadius, fillColor: backgroundColor))
50 | .overlay(
51 | RoundedRectangle(cornerRadius: cornerRadius)
| |- error: 'RoundedRectangle' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
52 | .stroke(strokeColor, lineWidth: 1)
53 | )
/Users/admin/builder/spi-builder-workspace/Sources/MaterialDesignUIComponents/ButtonStyle/ButtonStyleOutlined.swift:52:30: error: 'stroke(_:lineWidth:antialiased:)' is only available in macOS 14.0 or newer
28 | }
29 |
30 | struct OutlinedButton: View {
| `- note: add @available attribute to enclosing struct
31 | @Environment(\.isEnabled) var isEnabled
32 | let configuration: ButtonStyleOutlined.Configuration
:
40 | var backgroundColor: Color = .clear
41 |
42 | var body: some View {
| `- note: add @available attribute to enclosing property
43 | configuration.label
44 | .font(font)
:
50 | .overlay(
51 | RoundedRectangle(cornerRadius: cornerRadius)
52 | .stroke(strokeColor, lineWidth: 1)
| |- error: 'stroke(_:lineWidth:antialiased:)' is only available in macOS 14.0 or newer
| `- note: add 'if #available' version check
53 | )
54 | .scaleEffect(x: 1, y: 1, anchor: .center)
/Users/admin/builder/spi-builder-workspace/Sources/MaterialDesignUIComponents/ButtonStyle/ButtonStyleOutlined.swift:54:18: error: 'scaleEffect(x:y:anchor:)' is only available in macOS 10.15 or newer
28 | }
29 |
30 | struct OutlinedButton: View {
| `- note: add @available attribute to enclosing struct
31 | @Environment(\.isEnabled) var isEnabled
32 | let configuration: ButtonStyleOutlined.Configuration
:
40 | var backgroundColor: Color = .clear
41 |
42 | var body: some View {
| `- note: add @available attribute to enclosing property
43 | configuration.label
44 | .font(font)
:
52 | .stroke(strokeColor, lineWidth: 1)
53 | )
54 | .scaleEffect(x: 1, y: 1, anchor: .center)
| |- error: 'scaleEffect(x:y:anchor:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
55 | .animation(.spring(response: 0.2, dampingFraction: 0.9, blendDuration: 0))
56 | }
/Users/admin/builder/spi-builder-workspace/Sources/MaterialDesignUIComponents/ButtonStyle/ButtonStyleOutlined.swift:55:18: error: 'animation' is only available in macOS 10.15 or newer
28 | }
29 |
30 | struct OutlinedButton: View {
| `- note: add @available attribute to enclosing struct
31 | @Environment(\.isEnabled) var isEnabled
32 | let configuration: ButtonStyleOutlined.Configuration
:
40 | var backgroundColor: Color = .clear
41 |
42 | var body: some View {
| `- note: add @available attribute to enclosing property
43 | configuration.label
44 | .font(font)
:
53 | )
54 | .scaleEffect(x: 1, y: 1, anchor: .center)
55 | .animation(.spring(response: 0.2, dampingFraction: 0.9, blendDuration: 0))
| |- error: 'animation' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
56 | }
57 | }
/Users/admin/builder/spi-builder-workspace/Sources/MaterialDesignUIComponents/ButtonStyle/ButtonStyleOutlined.swift:55:29: error: 'spring(response:dampingFraction:blendDuration:)' is only available in macOS 10.15 or newer
28 | }
29 |
30 | struct OutlinedButton: View {
| `- note: add @available attribute to enclosing struct
31 | @Environment(\.isEnabled) var isEnabled
32 | let configuration: ButtonStyleOutlined.Configuration
:
40 | var backgroundColor: Color = .clear
41 |
42 | var body: some View {
| `- note: add @available attribute to enclosing property
43 | configuration.label
44 | .font(font)
:
53 | )
54 | .scaleEffect(x: 1, y: 1, anchor: .center)
55 | .animation(.spring(response: 0.2, dampingFraction: 0.9, blendDuration: 0))
| |- error: 'spring(response:dampingFraction:blendDuration:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
56 | }
57 | }
/Users/admin/builder/spi-builder-workspace/Sources/MaterialDesignUIComponents/ButtonStyle/ButtonStyleOutlined.swift:65:65: warning: conformance of 'Color' to 'ShapeStyle' is only available in macOS 10.15 or newer; this is an error in the Swift 6 language mode
58 |
59 | /// 角丸の四角形
60 | private struct RoundedRectangleFill: View {
| `- note: add @available attribute to enclosing struct
61 | var cornerRadius: CGFloat // 角丸の半径
62 | var fillColor: Color // Fillする色
63 |
64 | var body: some View {
| `- note: add @available attribute to enclosing property
65 | return RoundedRectangle(cornerRadius: cornerRadius).fill(fillColor)
| |- warning: conformance of 'Color' to 'ShapeStyle' is only available in macOS 10.15 or newer; this is an error in the Swift 6 language mode
| `- note: add 'if #available' version check
66 | }
67 | }
/Users/admin/builder/spi-builder-workspace/Sources/MaterialDesignUIComponents/ButtonStyle/ButtonStyleOutlined.swift:65:20: error: 'RoundedRectangle' is only available in macOS 10.15 or newer
58 |
59 | /// 角丸の四角形
60 | private struct RoundedRectangleFill: View {
| `- note: add @available attribute to enclosing struct
61 | var cornerRadius: CGFloat // 角丸の半径
62 | var fillColor: Color // Fillする色
63 |
64 | var body: some View {
| `- note: add @available attribute to enclosing property
65 | return RoundedRectangle(cornerRadius: cornerRadius).fill(fillColor)
| |- error: 'RoundedRectangle' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
66 | }
67 | }
/Users/admin/builder/spi-builder-workspace/Sources/MaterialDesignUIComponents/ButtonStyle/ButtonStyleOutlined.swift:65:65: error: 'fill(_:style:)' is only available in macOS 14.0 or newer
58 |
59 | /// 角丸の四角形
60 | private struct RoundedRectangleFill: View {
| `- note: add @available attribute to enclosing struct
61 | var cornerRadius: CGFloat // 角丸の半径
62 | var fillColor: Color // Fillする色
63 |
64 | var body: some View {
| `- note: add @available attribute to enclosing property
65 | return RoundedRectangle(cornerRadius: cornerRadius).fill(fillColor)
| |- error: 'fill(_:style:)' is only available in macOS 14.0 or newer
| `- note: add 'if #available' version check
66 | }
67 | }
/Users/admin/builder/spi-builder-workspace/Sources/MaterialDesignUIComponents/ButtonStyle/ButtonStyleOutlined.swift:73:9: error: 'Button' is only available in macOS 10.15 or newer
69 |
70 | @available(iOS 14, *)
71 | struct ButtonStyleOutlined_Previews: PreviewProvider {
| `- note: add @available attribute to enclosing struct
72 | static var previews: some View {
| `- note: add @available attribute to enclosing static property
73 | Button("Button") {
| |- error: 'Button' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
74 | }.buttonStyle(ButtonStyleOutlined(strokeColor: .black))
75 | }
/Users/admin/builder/spi-builder-workspace/Sources/MaterialDesignUIComponents/ButtonStyle/ButtonStyleOutlined.swift:73:9: error: 'init(_:action:)' is only available in macOS 10.15 or newer
69 |
70 | @available(iOS 14, *)
71 | struct ButtonStyleOutlined_Previews: PreviewProvider {
| `- note: add @available attribute to enclosing struct
72 | static var previews: some View {
| `- note: add @available attribute to enclosing static property
73 | Button("Button") {
| |- error: 'init(_:action:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
74 | }.buttonStyle(ButtonStyleOutlined(strokeColor: .black))
75 | }
/Users/admin/builder/spi-builder-workspace/Sources/MaterialDesignUIComponents/ButtonStyle/ButtonStyleOutlined.swift:73:16: error: 'LocalizedStringKey' is only available in macOS 10.15 or newer
69 |
70 | @available(iOS 14, *)
71 | struct ButtonStyleOutlined_Previews: PreviewProvider {
| `- note: add @available attribute to enclosing struct
72 | static var previews: some View {
| `- note: add @available attribute to enclosing static property
73 | Button("Button") {
| |- error: 'LocalizedStringKey' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
74 | }.buttonStyle(ButtonStyleOutlined(strokeColor: .black))
75 | }
/Users/admin/builder/spi-builder-workspace/Sources/MaterialDesignUIComponents/ButtonStyle/ButtonStyleOutlined.swift:74:11: error: 'buttonStyle' is only available in macOS 10.15 or newer
69 |
70 | @available(iOS 14, *)
71 | struct ButtonStyleOutlined_Previews: PreviewProvider {
| `- note: add @available attribute to enclosing struct
72 | static var previews: some View {
| `- note: add @available attribute to enclosing static property
73 | Button("Button") {
74 | }.buttonStyle(ButtonStyleOutlined(strokeColor: .black))
| |- error: 'buttonStyle' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
75 | }
76 | }
/Users/admin/builder/spi-builder-workspace/Sources/MaterialDesignUIComponents/ButtonStyle/ButtonStyleOutlined.swift:74:57: error: 'black' is only available in macOS 10.15 or newer
69 |
70 | @available(iOS 14, *)
71 | struct ButtonStyleOutlined_Previews: PreviewProvider {
| `- note: add @available attribute to enclosing struct
72 | static var previews: some View {
| `- note: add @available attribute to enclosing static property
73 | Button("Button") {
74 | }.buttonStyle(ButtonStyleOutlined(strokeColor: .black))
| |- error: 'black' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
75 | }
76 | }
BUILD FAILURE 6.0 macosSpm