Build Information
Failed to build FABUI, reference 1.3.0 (aeef45
), with Swift 6.0 for macOS (SPM) on 2 Dec 2024 14:56:36 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 -Xswiftc -enable-upcoming-feature -Xswiftc StrictConcurrency -Xswiftc -enable-upcoming-feature -Xswiftc DisableOutwardActorInference -Xswiftc -enable-upcoming-feature -Xswiftc GlobalActorIsolatedTypesUsability -Xswiftc -enable-upcoming-feature -Xswiftc InferSendableFromCaptures
Build Log
========================================
RunAll
========================================
Builder version: 4.58.2
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/fatihdurmaz/FABUI.git
Reference: 1.3.0
Initialized empty Git repository in /Users/admin/builder/spi-builder-workspace/.git/
From https://github.com/fatihdurmaz/FABUI
* tag 1.3.0 -> FETCH_HEAD
HEAD is now at aeef45e Add support for multiple FABs
Cloned https://github.com/fatihdurmaz/FABUI.git
Revision (git rev-parse @):
aeef45e1e29c5237d443a4170d56e9ddbfc6b62c
SUCCESS checkout https://github.com/fatihdurmaz/FABUI.git at 1.3.0
========================================
ResolveProductDependencies
========================================
Resolving dependencies ...
{
"identity": ".resolve-product-dependencies",
"name": "resolve-dependencies",
"url": "/Users/admin/builder/spi-builder-workspace/.resolve-product-dependencies",
"version": "unspecified",
"path": "/Users/admin/builder/spi-builder-workspace/.resolve-product-dependencies",
"dependencies": [
{
"identity": "fabui",
"name": "FABUI",
"url": "https://github.com/fatihdurmaz/FABUI.git",
"version": "unspecified",
"path": "/Users/admin/builder/spi-builder-workspace/.resolve-product-dependencies/.build/checkouts/FABUI",
"dependencies": [
]
}
]
}
Fetching https://github.com/fatihdurmaz/FABUI.git
[1/107] Fetching fabui
Fetched https://github.com/fatihdurmaz/FABUI.git from cache (0.68s)
Creating working copy for https://github.com/fatihdurmaz/FABUI.git
Working copy of https://github.com/fatihdurmaz/FABUI.git resolved at 1.3.0 (aeef45e)
warning: '.resolve-product-dependencies': dependency 'fabui' 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/fatihdurmaz/FABUI.git
{
"dependencies" : [
],
"manifest_display_name" : "FABUI",
"name" : "FABUI",
"path" : "/Users/admin/builder/spi-builder-workspace",
"platforms" : [
{
"name" : "ios",
"version" : "17.0"
}
],
"products" : [
{
"name" : "FABUI",
"targets" : [
"FABUI"
],
"type" : {
"library" : [
"automatic"
]
}
}
],
"targets" : [
{
"c99name" : "FABUITests",
"module_type" : "SwiftTarget",
"name" : "FABUITests",
"path" : "Tests/FABUITests",
"sources" : [
"FABUITests.swift"
],
"target_dependencies" : [
"FABUI"
],
"type" : "test"
},
{
"c99name" : "FABUI",
"module_type" : "SwiftTarget",
"name" : "FABUI",
"path" : "Sources/FABUI",
"product_memberships" : [
"FABUI"
],
"sources" : [
"FABModifier.swift",
"ShapeStyle.swift",
"View+Extension.swift"
],
"type" : "library"
}
],
"tools_version" : "5.10"
}
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 -Xswiftc -enable-upcoming-feature -Xswiftc StrictConcurrency -Xswiftc -enable-upcoming-feature -Xswiftc DisableOutwardActorInference -Xswiftc -enable-upcoming-feature -Xswiftc GlobalActorIsolatedTypesUsability -Xswiftc -enable-upcoming-feature -Xswiftc InferSendableFromCaptures
Building for debugging...
[0/2] Write sources
[1/2] Write swift-version--7754E27361AE5C74.txt
[3/6] Compiling FABUI ShapeStyle.swift
[4/6] Compiling FABUI View+Extension.swift
/Users/admin/builder/spi-builder-workspace/Sources/FABUI/View+Extension.swift:12:17: error: 'Image' is only available in macOS 10.15 or newer
8 | import SwiftUI
9 |
10 | public extension View {
| `- note: add @available attribute to enclosing extension
11 | func fab(
| `- note: add @available attribute to enclosing instance method
12 | icons: [Image],
| `- error: 'Image' is only available in macOS 10.15 or newer
13 | iconColors: [Color?] = [.white],
14 | colors: [Color],
/Users/admin/builder/spi-builder-workspace/Sources/FABUI/View+Extension.swift:13:22: error: 'Color' is only available in macOS 10.15 or newer
8 | import SwiftUI
9 |
10 | public extension View {
| `- note: add @available attribute to enclosing extension
11 | func fab(
| `- note: add @available attribute to enclosing instance method
12 | icons: [Image],
13 | iconColors: [Color?] = [.white],
| `- error: 'Color' is only available in macOS 10.15 or newer
14 | colors: [Color],
15 | shapeStyles: [ShapeStyle?] = [.circle],
/Users/admin/builder/spi-builder-workspace/Sources/FABUI/View+Extension.swift:14:18: error: 'Color' is only available in macOS 10.15 or newer
8 | import SwiftUI
9 |
10 | public extension View {
| `- note: add @available attribute to enclosing extension
11 | func fab(
| `- note: add @available attribute to enclosing instance method
12 | icons: [Image],
13 | iconColors: [Color?] = [.white],
14 | colors: [Color],
| `- error: 'Color' is only available in macOS 10.15 or newer
15 | shapeStyles: [ShapeStyle?] = [.circle],
16 | radius: [CGFloat?] = [1],
/Users/admin/builder/spi-builder-workspace/Sources/FABUI/View+Extension.swift:18:15: error: 'View' is only available in macOS 10.15 or newer
8 | import SwiftUI
9 |
10 | public extension View {
| `- note: add @available attribute to enclosing extension
11 | func fab(
| `- note: add @available attribute to enclosing instance method
12 | icons: [Image],
13 | iconColors: [Color?] = [.white],
:
16 | radius: [CGFloat?] = [1],
17 | actions: [() -> Void]
18 | ) -> some View {
| `- error: 'View' is only available in macOS 10.15 or newer
19 | self.modifier(FABModifier(icons: icons, colors: colors, iconColors: iconColors, shapeStyles: shapeStyles, radii: radius, actions: actions))
20 | }
/Users/admin/builder/spi-builder-workspace/Sources/FABUI/View+Extension.swift:13:34: error: 'white' is only available in macOS 10.15 or newer
8 | import SwiftUI
9 |
10 | public extension View {
| `- note: add @available attribute to enclosing extension
11 | func fab(
| `- note: add @available attribute to enclosing instance method
12 | icons: [Image],
13 | iconColors: [Color?] = [.white],
| `- error: 'white' is only available in macOS 10.15 or newer
14 | colors: [Color],
15 | shapeStyles: [ShapeStyle?] = [.circle],
/Users/admin/builder/spi-builder-workspace/Sources/FABUI/View+Extension.swift:10:18: error: 'View' is only available in macOS 10.15 or newer
8 | import SwiftUI
9 |
10 | public extension View {
| | `- error: 'View' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing extension
11 | func fab(
12 | icons: [Image],
/Users/admin/builder/spi-builder-workspace/Sources/FABUI/View+Extension.swift:19:14: 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
8 | import SwiftUI
9 |
10 | public extension View {
| `- note: add @available attribute to enclosing extension
11 | func fab(
| `- note: add @available attribute to enclosing instance method
12 | icons: [Image],
13 | iconColors: [Color?] = [.white],
:
17 | actions: [() -> Void]
18 | ) -> some View {
19 | self.modifier(FABModifier(icons: icons, colors: colors, iconColors: iconColors, shapeStyles: shapeStyles, radii: radius, actions: actions))
| |- 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
20 | }
21 | }
/Users/admin/builder/spi-builder-workspace/Sources/FABUI/View+Extension.swift:19:14: error: 'modifier' is only available in macOS 10.15 or newer
8 | import SwiftUI
9 |
10 | public extension View {
| `- note: add @available attribute to enclosing extension
11 | func fab(
| `- note: add @available attribute to enclosing instance method
12 | icons: [Image],
13 | iconColors: [Color?] = [.white],
:
17 | actions: [() -> Void]
18 | ) -> some View {
19 | self.modifier(FABModifier(icons: icons, colors: colors, iconColors: iconColors, shapeStyles: shapeStyles, radii: radius, actions: actions))
| |- error: 'modifier' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
20 | }
21 | }
error: emit-module command failed with exit code 1 (use -v to see invocation)
[5/6] Emitting module FABUI
/Users/admin/builder/spi-builder-workspace/Sources/FABUI/FABModifier.swift:7:17: error: 'Image' is only available in macOS 10.15 or newer
4 | import SwiftUI
5 |
6 | public struct FABModifier: ViewModifier {
| `- note: add @available attribute to enclosing struct
7 | let icons: [Image]
| `- error: 'Image' is only available in macOS 10.15 or newer
8 | let colors: [Color]
9 | let iconColors: [Color?]
/Users/admin/builder/spi-builder-workspace/Sources/FABUI/FABModifier.swift:8:18: error: 'Color' is only available in macOS 10.15 or newer
4 | import SwiftUI
5 |
6 | public struct FABModifier: ViewModifier {
| `- note: add @available attribute to enclosing struct
7 | let icons: [Image]
8 | let colors: [Color]
| `- error: 'Color' is only available in macOS 10.15 or newer
9 | let iconColors: [Color?]
10 | let shapeStyles: [ShapeStyle?]
/Users/admin/builder/spi-builder-workspace/Sources/FABUI/FABModifier.swift:9:22: error: 'Color' is only available in macOS 10.15 or newer
4 | import SwiftUI
5 |
6 | public struct FABModifier: ViewModifier {
| `- note: add @available attribute to enclosing struct
7 | let icons: [Image]
8 | let colors: [Color]
9 | let iconColors: [Color?]
| `- error: 'Color' is only available in macOS 10.15 or newer
10 | let shapeStyles: [ShapeStyle?]
11 | let radii: [CGFloat?] // Çoğul isimlendirme
/Users/admin/builder/spi-builder-workspace/Sources/FABUI/FABModifier.swift:16:18: error: 'Image' is only available in macOS 10.15 or newer
4 | import SwiftUI
5 |
6 | public struct FABModifier: ViewModifier {
| `- note: add @available attribute to enclosing struct
7 | let icons: [Image]
8 | let colors: [Color]
:
14 | let actions: [() -> Void]
15 |
16 | init(icons: [Image], colors: [Color], iconColors: [Color?] = [.white], shapeStyles: [ShapeStyle?] = [.circle], radii: [CGFloat?] = [1], actions: [() -> Void]) {
| | `- error: 'Image' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing initializer
17 | self.icons = icons
18 | self.colors = colors
/Users/admin/builder/spi-builder-workspace/Sources/FABUI/FABModifier.swift:16:35: error: 'Color' is only available in macOS 10.15 or newer
4 | import SwiftUI
5 |
6 | public struct FABModifier: ViewModifier {
| `- note: add @available attribute to enclosing struct
7 | let icons: [Image]
8 | let colors: [Color]
:
14 | let actions: [() -> Void]
15 |
16 | init(icons: [Image], colors: [Color], iconColors: [Color?] = [.white], shapeStyles: [ShapeStyle?] = [.circle], radii: [CGFloat?] = [1], actions: [() -> Void]) {
| | `- error: 'Color' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing initializer
17 | self.icons = icons
18 | self.colors = colors
/Users/admin/builder/spi-builder-workspace/Sources/FABUI/FABModifier.swift:16:56: error: 'Color' is only available in macOS 10.15 or newer
4 | import SwiftUI
5 |
6 | public struct FABModifier: ViewModifier {
| `- note: add @available attribute to enclosing struct
7 | let icons: [Image]
8 | let colors: [Color]
:
14 | let actions: [() -> Void]
15 |
16 | init(icons: [Image], colors: [Color], iconColors: [Color?] = [.white], shapeStyles: [ShapeStyle?] = [.circle], radii: [CGFloat?] = [1], actions: [() -> Void]) {
| | `- error: 'Color' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing initializer
17 | self.icons = icons
18 | self.colors = colors
/Users/admin/builder/spi-builder-workspace/Sources/FABUI/FABModifier.swift:16:68: error: 'white' is only available in macOS 10.15 or newer
4 | import SwiftUI
5 |
6 | public struct FABModifier: ViewModifier {
| `- note: add @available attribute to enclosing struct
7 | let icons: [Image]
8 | let colors: [Color]
:
14 | let actions: [() -> Void]
15 |
16 | init(icons: [Image], colors: [Color], iconColors: [Color?] = [.white], shapeStyles: [ShapeStyle?] = [.circle], radii: [CGFloat?] = [1], actions: [() -> Void]) {
| | `- error: 'white' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing initializer
17 | self.icons = icons
18 | self.colors = colors
/Users/admin/builder/spi-builder-workspace/Sources/FABUI/FABModifier.swift:26:48: error: 'View' is only available in macOS 10.15 or newer
4 | import SwiftUI
5 |
6 | public struct FABModifier: ViewModifier {
| `- note: add @available attribute to enclosing struct
7 | let icons: [Image]
8 | let colors: [Color]
:
24 | }
25 |
26 | 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
27 | ZStack {
28 | content
/Users/admin/builder/spi-builder-workspace/Sources/FABUI/FABModifier.swift:44:31: error: 'Image' is only available in macOS 10.15 or newer
4 | import SwiftUI
5 |
6 | public struct FABModifier: ViewModifier {
| `- note: add @available attribute to enclosing struct
7 | let icons: [Image]
8 | let colors: [Color]
:
42 | }
43 |
44 | private func button(icon: Image, color: Color, iconColor: Color?, shapeStyle: ShapeStyle?, radius: CGFloat?, action: @escaping () -> Void) -> some View {
| | `- error: 'Image' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing instance method
45 | icon
46 | .imageScale(.large)
/Users/admin/builder/spi-builder-workspace/Sources/FABUI/FABModifier.swift:44:45: error: 'Color' is only available in macOS 10.15 or newer
4 | import SwiftUI
5 |
6 | public struct FABModifier: ViewModifier {
| `- note: add @available attribute to enclosing struct
7 | let icons: [Image]
8 | let colors: [Color]
:
42 | }
43 |
44 | private func button(icon: Image, color: Color, iconColor: Color?, shapeStyle: ShapeStyle?, radius: CGFloat?, action: @escaping () -> Void) -> some View {
| | `- error: 'Color' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing instance method
45 | icon
46 | .imageScale(.large)
/Users/admin/builder/spi-builder-workspace/Sources/FABUI/FABModifier.swift:44:63: error: 'Color' is only available in macOS 10.15 or newer
4 | import SwiftUI
5 |
6 | public struct FABModifier: ViewModifier {
| `- note: add @available attribute to enclosing struct
7 | let icons: [Image]
8 | let colors: [Color]
:
42 | }
43 |
44 | private func button(icon: Image, color: Color, iconColor: Color?, shapeStyle: ShapeStyle?, radius: CGFloat?, action: @escaping () -> Void) -> some View {
| | `- error: 'Color' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing instance method
45 | icon
46 | .imageScale(.large)
/Users/admin/builder/spi-builder-workspace/Sources/FABUI/FABModifier.swift:44:152: error: 'View' is only available in macOS 10.15 or newer
4 | import SwiftUI
5 |
6 | public struct FABModifier: ViewModifier {
| `- note: add @available attribute to enclosing struct
7 | let icons: [Image]
8 | let colors: [Color]
:
42 | }
43 |
44 | private func button(icon: Image, color: Color, iconColor: Color?, shapeStyle: ShapeStyle?, radius: CGFloat?, action: @escaping () -> Void) -> some View {
| | `- error: 'View' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing instance method
45 | icon
46 | .imageScale(.large)
/Users/admin/builder/spi-builder-workspace/Sources/FABUI/FABModifier.swift:55:66: error: 'AnyShape' is only available in macOS 13.0 or newer
4 | import SwiftUI
5 |
6 | public struct FABModifier: ViewModifier {
| `- note: add @available attribute to enclosing struct
7 | let icons: [Image]
8 | let colors: [Color]
:
53 | }
54 |
55 | private func backgroundShape(for shapeStyle: ShapeStyle?) -> AnyShape {
| | `- error: 'AnyShape' is only available in macOS 13.0 or newer
| `- note: add @available attribute to enclosing instance method
56 | switch shapeStyle {
57 | case .circle:
/Users/admin/builder/spi-builder-workspace/Sources/FABUI/View+Extension.swift:12:17: error: 'Image' is only available in macOS 10.15 or newer
8 | import SwiftUI
9 |
10 | public extension View {
| `- note: add @available attribute to enclosing extension
11 | func fab(
| `- note: add @available attribute to enclosing instance method
12 | icons: [Image],
| `- error: 'Image' is only available in macOS 10.15 or newer
13 | iconColors: [Color?] = [.white],
14 | colors: [Color],
/Users/admin/builder/spi-builder-workspace/Sources/FABUI/View+Extension.swift:13:22: error: 'Color' is only available in macOS 10.15 or newer
8 | import SwiftUI
9 |
10 | public extension View {
| `- note: add @available attribute to enclosing extension
11 | func fab(
| `- note: add @available attribute to enclosing instance method
12 | icons: [Image],
13 | iconColors: [Color?] = [.white],
| `- error: 'Color' is only available in macOS 10.15 or newer
14 | colors: [Color],
15 | shapeStyles: [ShapeStyle?] = [.circle],
/Users/admin/builder/spi-builder-workspace/Sources/FABUI/View+Extension.swift:14:18: error: 'Color' is only available in macOS 10.15 or newer
8 | import SwiftUI
9 |
10 | public extension View {
| `- note: add @available attribute to enclosing extension
11 | func fab(
| `- note: add @available attribute to enclosing instance method
12 | icons: [Image],
13 | iconColors: [Color?] = [.white],
14 | colors: [Color],
| `- error: 'Color' is only available in macOS 10.15 or newer
15 | shapeStyles: [ShapeStyle?] = [.circle],
16 | radius: [CGFloat?] = [1],
/Users/admin/builder/spi-builder-workspace/Sources/FABUI/View+Extension.swift:18:15: error: 'View' is only available in macOS 10.15 or newer
8 | import SwiftUI
9 |
10 | public extension View {
| `- note: add @available attribute to enclosing extension
11 | func fab(
| `- note: add @available attribute to enclosing instance method
12 | icons: [Image],
13 | iconColors: [Color?] = [.white],
:
16 | radius: [CGFloat?] = [1],
17 | actions: [() -> Void]
18 | ) -> some View {
| `- error: 'View' is only available in macOS 10.15 or newer
19 | self.modifier(FABModifier(icons: icons, colors: colors, iconColors: iconColors, shapeStyles: shapeStyles, radii: radius, actions: actions))
20 | }
/Users/admin/builder/spi-builder-workspace/Sources/FABUI/View+Extension.swift:13:34: error: 'white' is only available in macOS 10.15 or newer
8 | import SwiftUI
9 |
10 | public extension View {
| `- note: add @available attribute to enclosing extension
11 | func fab(
| `- note: add @available attribute to enclosing instance method
12 | icons: [Image],
13 | iconColors: [Color?] = [.white],
| `- error: 'white' is only available in macOS 10.15 or newer
14 | colors: [Color],
15 | shapeStyles: [ShapeStyle?] = [.circle],
/Users/admin/builder/spi-builder-workspace/Sources/FABUI/View+Extension.swift:10:18: error: 'View' is only available in macOS 10.15 or newer
8 | import SwiftUI
9 |
10 | public extension View {
| | `- error: 'View' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing extension
11 | func fab(
12 | icons: [Image],
[6/6] Compiling FABUI FABModifier.swift
/Users/admin/builder/spi-builder-workspace/Sources/FABUI/FABModifier.swift:7:17: error: 'Image' is only available in macOS 10.15 or newer
4 | import SwiftUI
5 |
6 | public struct FABModifier: ViewModifier {
| `- note: add @available attribute to enclosing struct
7 | let icons: [Image]
| `- error: 'Image' is only available in macOS 10.15 or newer
8 | let colors: [Color]
9 | let iconColors: [Color?]
/Users/admin/builder/spi-builder-workspace/Sources/FABUI/FABModifier.swift:8:18: error: 'Color' is only available in macOS 10.15 or newer
4 | import SwiftUI
5 |
6 | public struct FABModifier: ViewModifier {
| `- note: add @available attribute to enclosing struct
7 | let icons: [Image]
8 | let colors: [Color]
| `- error: 'Color' is only available in macOS 10.15 or newer
9 | let iconColors: [Color?]
10 | let shapeStyles: [ShapeStyle?]
/Users/admin/builder/spi-builder-workspace/Sources/FABUI/FABModifier.swift:9:22: error: 'Color' is only available in macOS 10.15 or newer
4 | import SwiftUI
5 |
6 | public struct FABModifier: ViewModifier {
| `- note: add @available attribute to enclosing struct
7 | let icons: [Image]
8 | let colors: [Color]
9 | let iconColors: [Color?]
| `- error: 'Color' is only available in macOS 10.15 or newer
10 | let shapeStyles: [ShapeStyle?]
11 | let radii: [CGFloat?] // Çoğul isimlendirme
/Users/admin/builder/spi-builder-workspace/Sources/FABUI/FABModifier.swift:16:18: error: 'Image' is only available in macOS 10.15 or newer
4 | import SwiftUI
5 |
6 | public struct FABModifier: ViewModifier {
| `- note: add @available attribute to enclosing struct
7 | let icons: [Image]
8 | let colors: [Color]
:
14 | let actions: [() -> Void]
15 |
16 | init(icons: [Image], colors: [Color], iconColors: [Color?] = [.white], shapeStyles: [ShapeStyle?] = [.circle], radii: [CGFloat?] = [1], actions: [() -> Void]) {
| | `- error: 'Image' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing initializer
17 | self.icons = icons
18 | self.colors = colors
/Users/admin/builder/spi-builder-workspace/Sources/FABUI/FABModifier.swift:16:35: error: 'Color' is only available in macOS 10.15 or newer
4 | import SwiftUI
5 |
6 | public struct FABModifier: ViewModifier {
| `- note: add @available attribute to enclosing struct
7 | let icons: [Image]
8 | let colors: [Color]
:
14 | let actions: [() -> Void]
15 |
16 | init(icons: [Image], colors: [Color], iconColors: [Color?] = [.white], shapeStyles: [ShapeStyle?] = [.circle], radii: [CGFloat?] = [1], actions: [() -> Void]) {
| | `- error: 'Color' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing initializer
17 | self.icons = icons
18 | self.colors = colors
/Users/admin/builder/spi-builder-workspace/Sources/FABUI/FABModifier.swift:16:56: error: 'Color' is only available in macOS 10.15 or newer
4 | import SwiftUI
5 |
6 | public struct FABModifier: ViewModifier {
| `- note: add @available attribute to enclosing struct
7 | let icons: [Image]
8 | let colors: [Color]
:
14 | let actions: [() -> Void]
15 |
16 | init(icons: [Image], colors: [Color], iconColors: [Color?] = [.white], shapeStyles: [ShapeStyle?] = [.circle], radii: [CGFloat?] = [1], actions: [() -> Void]) {
| | `- error: 'Color' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing initializer
17 | self.icons = icons
18 | self.colors = colors
/Users/admin/builder/spi-builder-workspace/Sources/FABUI/FABModifier.swift:16:68: error: 'white' is only available in macOS 10.15 or newer
4 | import SwiftUI
5 |
6 | public struct FABModifier: ViewModifier {
| `- note: add @available attribute to enclosing struct
7 | let icons: [Image]
8 | let colors: [Color]
:
14 | let actions: [() -> Void]
15 |
16 | init(icons: [Image], colors: [Color], iconColors: [Color?] = [.white], shapeStyles: [ShapeStyle?] = [.circle], radii: [CGFloat?] = [1], actions: [() -> Void]) {
| | `- error: 'white' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing initializer
17 | self.icons = icons
18 | self.colors = colors
/Users/admin/builder/spi-builder-workspace/Sources/FABUI/FABModifier.swift:26:48: error: 'View' is only available in macOS 10.15 or newer
4 | import SwiftUI
5 |
6 | public struct FABModifier: ViewModifier {
| `- note: add @available attribute to enclosing struct
7 | let icons: [Image]
8 | let colors: [Color]
:
24 | }
25 |
26 | 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
27 | ZStack {
28 | content
/Users/admin/builder/spi-builder-workspace/Sources/FABUI/FABModifier.swift:44:31: error: 'Image' is only available in macOS 10.15 or newer
4 | import SwiftUI
5 |
6 | public struct FABModifier: ViewModifier {
| `- note: add @available attribute to enclosing struct
7 | let icons: [Image]
8 | let colors: [Color]
:
42 | }
43 |
44 | private func button(icon: Image, color: Color, iconColor: Color?, shapeStyle: ShapeStyle?, radius: CGFloat?, action: @escaping () -> Void) -> some View {
| | `- error: 'Image' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing instance method
45 | icon
46 | .imageScale(.large)
/Users/admin/builder/spi-builder-workspace/Sources/FABUI/FABModifier.swift:44:45: error: 'Color' is only available in macOS 10.15 or newer
4 | import SwiftUI
5 |
6 | public struct FABModifier: ViewModifier {
| `- note: add @available attribute to enclosing struct
7 | let icons: [Image]
8 | let colors: [Color]
:
42 | }
43 |
44 | private func button(icon: Image, color: Color, iconColor: Color?, shapeStyle: ShapeStyle?, radius: CGFloat?, action: @escaping () -> Void) -> some View {
| | `- error: 'Color' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing instance method
45 | icon
46 | .imageScale(.large)
/Users/admin/builder/spi-builder-workspace/Sources/FABUI/FABModifier.swift:44:63: error: 'Color' is only available in macOS 10.15 or newer
4 | import SwiftUI
5 |
6 | public struct FABModifier: ViewModifier {
| `- note: add @available attribute to enclosing struct
7 | let icons: [Image]
8 | let colors: [Color]
:
42 | }
43 |
44 | private func button(icon: Image, color: Color, iconColor: Color?, shapeStyle: ShapeStyle?, radius: CGFloat?, action: @escaping () -> Void) -> some View {
| | `- error: 'Color' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing instance method
45 | icon
46 | .imageScale(.large)
/Users/admin/builder/spi-builder-workspace/Sources/FABUI/FABModifier.swift:44:152: error: 'View' is only available in macOS 10.15 or newer
4 | import SwiftUI
5 |
6 | public struct FABModifier: ViewModifier {
| `- note: add @available attribute to enclosing struct
7 | let icons: [Image]
8 | let colors: [Color]
:
42 | }
43 |
44 | private func button(icon: Image, color: Color, iconColor: Color?, shapeStyle: ShapeStyle?, radius: CGFloat?, action: @escaping () -> Void) -> some View {
| | `- error: 'View' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing instance method
45 | icon
46 | .imageScale(.large)
/Users/admin/builder/spi-builder-workspace/Sources/FABUI/FABModifier.swift:55:66: error: 'AnyShape' is only available in macOS 13.0 or newer
4 | import SwiftUI
5 |
6 | public struct FABModifier: ViewModifier {
| `- note: add @available attribute to enclosing struct
7 | let icons: [Image]
8 | let colors: [Color]
:
53 | }
54 |
55 | private func backgroundShape(for shapeStyle: ShapeStyle?) -> AnyShape {
| | `- error: 'AnyShape' is only available in macOS 13.0 or newer
| `- note: add @available attribute to enclosing instance method
56 | switch shapeStyle {
57 | case .circle:
/Users/admin/builder/spi-builder-workspace/Sources/FABUI/FABModifier.swift:19:58: error: 'white' is only available in macOS 10.15 or newer
4 | import SwiftUI
5 |
6 | public struct FABModifier: ViewModifier {
| `- note: add @available attribute to enclosing struct
7 | let icons: [Image]
8 | let colors: [Color]
:
14 | let actions: [() -> Void]
15 |
16 | init(icons: [Image], colors: [Color], iconColors: [Color?] = [.white], shapeStyles: [ShapeStyle?] = [.circle], radii: [CGFloat?] = [1], actions: [() -> Void]) {
| `- note: add @available attribute to enclosing initializer
17 | self.icons = icons
18 | self.colors = colors
19 | self.iconColors = iconColors + Array(repeating: .white, count: max(0, icons.count - iconColors.count))
| |- error: 'white' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
20 | self.shapeStyles = shapeStyles + Array(repeating: .circle, count: max(0, icons.count - shapeStyles.count))
21 | self.radii = radii + Array(repeating: 1, count: max(0, icons.count - radii.count))
/Users/admin/builder/spi-builder-workspace/Sources/FABUI/FABModifier.swift:27:9: error: 'ZStack' is only available in macOS 10.15 or newer
4 | import SwiftUI
5 |
6 | public struct FABModifier: ViewModifier {
| `- note: add @available attribute to enclosing struct
7 | let icons: [Image]
8 | let colors: [Color]
:
24 | }
25 |
26 | public func body(content: Content) -> some View {
| `- note: add @available attribute to enclosing instance method
27 | ZStack {
| |- error: 'ZStack' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
28 | content
29 | VStack {
/Users/admin/builder/spi-builder-workspace/Sources/FABUI/FABModifier.swift:27:16: warning: conformance of 'ForEach<Data, ID, Content>' to 'View' is only available in macOS 10.15 or newer; this is an error in the Swift 6 language mode
4 | import SwiftUI
5 |
6 | public struct FABModifier: ViewModifier {
| `- note: add @available attribute to enclosing struct
7 | let icons: [Image]
8 | let colors: [Color]
:
24 | }
25 |
26 | public func body(content: Content) -> some View {
| `- note: add @available attribute to enclosing instance method
27 | ZStack {
| |- warning: conformance of 'ForEach<Data, ID, Content>' 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
28 | content
29 | VStack {
/Users/admin/builder/spi-builder-workspace/Sources/FABUI/FABModifier.swift:29:13: error: 'VStack' is only available in macOS 10.15 or newer
4 | import SwiftUI
5 |
6 | public struct FABModifier: ViewModifier {
| `- note: add @available attribute to enclosing struct
7 | let icons: [Image]
8 | let colors: [Color]
:
24 | }
25 |
26 | public func body(content: Content) -> some View {
| `- note: add @available attribute to enclosing instance method
27 | ZStack {
28 | content
29 | VStack {
| |- error: 'VStack' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
30 | Spacer()
31 | HStack {
/Users/admin/builder/spi-builder-workspace/Sources/FABUI/FABModifier.swift:29:20: warning: conformance of 'ForEach<Data, ID, Content>' to 'View' is only available in macOS 10.15 or newer; this is an error in the Swift 6 language mode
4 | import SwiftUI
5 |
6 | public struct FABModifier: ViewModifier {
| `- note: add @available attribute to enclosing struct
7 | let icons: [Image]
8 | let colors: [Color]
:
24 | }
25 |
26 | public func body(content: Content) -> some View {
| `- note: add @available attribute to enclosing instance method
27 | ZStack {
28 | content
29 | VStack {
| |- warning: conformance of 'ForEach<Data, ID, Content>' 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
30 | Spacer()
31 | HStack {
/Users/admin/builder/spi-builder-workspace/Sources/FABUI/FABModifier.swift:30:17: warning: conformance of 'Spacer' to 'View' is only available in macOS 10.15 or newer; this is an error in the Swift 6 language mode
4 | import SwiftUI
5 |
6 | public struct FABModifier: ViewModifier {
| `- note: add @available attribute to enclosing struct
7 | let icons: [Image]
8 | let colors: [Color]
:
24 | }
25 |
26 | public func body(content: Content) -> some View {
| `- note: add @available attribute to enclosing instance method
27 | ZStack {
28 | content
29 | VStack {
30 | Spacer()
| |- warning: conformance of 'Spacer' 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
31 | HStack {
32 | Spacer()
/Users/admin/builder/spi-builder-workspace/Sources/FABUI/FABModifier.swift:30:17: error: 'Spacer' is only available in macOS 10.15 or newer
4 | import SwiftUI
5 |
6 | public struct FABModifier: ViewModifier {
| `- note: add @available attribute to enclosing struct
7 | let icons: [Image]
8 | let colors: [Color]
:
24 | }
25 |
26 | public func body(content: Content) -> some View {
| `- note: add @available attribute to enclosing instance method
27 | ZStack {
28 | content
29 | VStack {
30 | Spacer()
| |- error: 'Spacer' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
31 | HStack {
32 | Spacer()
/Users/admin/builder/spi-builder-workspace/Sources/FABUI/FABModifier.swift:31:17: error: 'HStack' is only available in macOS 10.15 or newer
4 | import SwiftUI
5 |
6 | public struct FABModifier: ViewModifier {
| `- note: add @available attribute to enclosing struct
7 | let icons: [Image]
8 | let colors: [Color]
:
24 | }
25 |
26 | public func body(content: Content) -> some View {
| `- note: add @available attribute to enclosing instance method
27 | ZStack {
28 | content
29 | VStack {
30 | Spacer()
31 | HStack {
| |- error: 'HStack' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
32 | Spacer()
33 | VStack {
/Users/admin/builder/spi-builder-workspace/Sources/FABUI/FABModifier.swift:31:24: warning: conformance of 'ForEach<Data, ID, Content>' to 'View' is only available in macOS 10.15 or newer; this is an error in the Swift 6 language mode
4 | import SwiftUI
5 |
6 | public struct FABModifier: ViewModifier {
| `- note: add @available attribute to enclosing struct
7 | let icons: [Image]
8 | let colors: [Color]
:
24 | }
25 |
26 | public func body(content: Content) -> some View {
| `- note: add @available attribute to enclosing instance method
27 | ZStack {
28 | content
29 | VStack {
30 | Spacer()
31 | HStack {
| |- warning: conformance of 'ForEach<Data, ID, Content>' 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 | Spacer()
33 | VStack {
/Users/admin/builder/spi-builder-workspace/Sources/FABUI/FABModifier.swift:32:21: warning: conformance of 'Spacer' to 'View' is only available in macOS 10.15 or newer; this is an error in the Swift 6 language mode
4 | import SwiftUI
5 |
6 | public struct FABModifier: ViewModifier {
| `- note: add @available attribute to enclosing struct
7 | let icons: [Image]
8 | let colors: [Color]
:
24 | }
25 |
26 | public func body(content: Content) -> some View {
| `- note: add @available attribute to enclosing instance method
27 | ZStack {
28 | content
:
30 | Spacer()
31 | HStack {
32 | Spacer()
| |- warning: conformance of 'Spacer' 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
33 | VStack {
34 | ForEach(0..<icons.count, id: \.self) { index in
/Users/admin/builder/spi-builder-workspace/Sources/FABUI/FABModifier.swift:32:21: error: 'Spacer' is only available in macOS 10.15 or newer
4 | import SwiftUI
5 |
6 | public struct FABModifier: ViewModifier {
| `- note: add @available attribute to enclosing struct
7 | let icons: [Image]
8 | let colors: [Color]
:
24 | }
25 |
26 | public func body(content: Content) -> some View {
| `- note: add @available attribute to enclosing instance method
27 | ZStack {
28 | content
:
30 | Spacer()
31 | HStack {
32 | Spacer()
| |- error: 'Spacer' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
33 | VStack {
34 | ForEach(0..<icons.count, id: \.self) { index in
/Users/admin/builder/spi-builder-workspace/Sources/FABUI/FABModifier.swift:33:21: error: 'VStack' is only available in macOS 10.15 or newer
4 | import SwiftUI
5 |
6 | public struct FABModifier: ViewModifier {
| `- note: add @available attribute to enclosing struct
7 | let icons: [Image]
8 | let colors: [Color]
:
24 | }
25 |
26 | public func body(content: Content) -> some View {
| `- note: add @available attribute to enclosing instance method
27 | ZStack {
28 | content
:
31 | HStack {
32 | Spacer()
33 | VStack {
| |- error: 'VStack' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
34 | ForEach(0..<icons.count, id: \.self) { index in
35 | button(icon: icons[index], color: colors[index], iconColor: iconColors[index], shapeStyle: shapeStyles[index], radius: radii[index], action: actions[index])
/Users/admin/builder/spi-builder-workspace/Sources/FABUI/FABModifier.swift:33:21: warning: conformance of 'ForEach<Data, ID, Content>' to 'View' is only available in macOS 10.15 or newer; this is an error in the Swift 6 language mode
4 | import SwiftUI
5 |
6 | public struct FABModifier: ViewModifier {
| `- note: add @available attribute to enclosing struct
7 | let icons: [Image]
8 | let colors: [Color]
:
24 | }
25 |
26 | public func body(content: Content) -> some View {
| `- note: add @available attribute to enclosing instance method
27 | ZStack {
28 | content
:
31 | HStack {
32 | Spacer()
33 | VStack {
| |- warning: conformance of 'ForEach<Data, ID, Content>' 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
34 | ForEach(0..<icons.count, id: \.self) { index in
35 | button(icon: icons[index], color: colors[index], iconColor: iconColors[index], shapeStyle: shapeStyles[index], radius: radii[index], action: actions[index])
/Users/admin/builder/spi-builder-workspace/Sources/FABUI/FABModifier.swift:34:25: warning: conformance of 'ForEach<Data, ID, Content>' to 'View' is only available in macOS 10.15 or newer; this is an error in the Swift 6 language mode
4 | import SwiftUI
5 |
6 | public struct FABModifier: ViewModifier {
| `- note: add @available attribute to enclosing struct
7 | let icons: [Image]
8 | let colors: [Color]
:
24 | }
25 |
26 | public func body(content: Content) -> some View {
| `- note: add @available attribute to enclosing instance method
27 | ZStack {
28 | content
:
32 | Spacer()
33 | VStack {
34 | ForEach(0..<icons.count, id: \.self) { index in
| |- warning: conformance of 'ForEach<Data, ID, Content>' 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
35 | button(icon: icons[index], color: colors[index], iconColor: iconColors[index], shapeStyle: shapeStyles[index], radius: radii[index], action: actions[index])
36 | }
/Users/admin/builder/spi-builder-workspace/Sources/FABUI/FABModifier.swift:34:25: error: 'ForEach' is only available in macOS 10.15 or newer
4 | import SwiftUI
5 |
6 | public struct FABModifier: ViewModifier {
| `- note: add @available attribute to enclosing struct
7 | let icons: [Image]
8 | let colors: [Color]
:
24 | }
25 |
26 | public func body(content: Content) -> some View {
| `- note: add @available attribute to enclosing instance method
27 | ZStack {
28 | content
:
32 | Spacer()
33 | VStack {
34 | ForEach(0..<icons.count, id: \.self) { index in
| |- error: 'ForEach' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
35 | button(icon: icons[index], color: colors[index], iconColor: iconColors[index], shapeStyle: shapeStyles[index], radius: radii[index], action: actions[index])
36 | }
/Users/admin/builder/spi-builder-workspace/Sources/FABUI/FABModifier.swift:34:25: error: 'init(_:id:content:)' is only available in macOS 10.15 or newer
4 | import SwiftUI
5 |
6 | public struct FABModifier: ViewModifier {
| `- note: add @available attribute to enclosing struct
7 | let icons: [Image]
8 | let colors: [Color]
:
24 | }
25 |
26 | public func body(content: Content) -> some View {
| `- note: add @available attribute to enclosing instance method
27 | ZStack {
28 | content
:
32 | Spacer()
33 | VStack {
34 | ForEach(0..<icons.count, id: \.self) { index in
| |- error: 'init(_:id:content:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
35 | button(icon: icons[index], color: colors[index], iconColor: iconColors[index], shapeStyle: shapeStyles[index], radius: radii[index], action: actions[index])
36 | }
/Users/admin/builder/spi-builder-workspace/Sources/FABUI/FABModifier.swift:33:28: warning: conformance of 'ForEach<Data, ID, Content>' to 'View' is only available in macOS 10.15 or newer; this is an error in the Swift 6 language mode
4 | import SwiftUI
5 |
6 | public struct FABModifier: ViewModifier {
| `- note: add @available attribute to enclosing struct
7 | let icons: [Image]
8 | let colors: [Color]
:
24 | }
25 |
26 | public func body(content: Content) -> some View {
| `- note: add @available attribute to enclosing instance method
27 | ZStack {
28 | content
:
31 | HStack {
32 | Spacer()
33 | VStack {
| |- warning: conformance of 'ForEach<Data, ID, Content>' 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
34 | ForEach(0..<icons.count, id: \.self) { index in
35 | button(icon: icons[index], color: colors[index], iconColor: iconColors[index], shapeStyle: shapeStyles[index], radius: radii[index], action: actions[index])
/Users/admin/builder/spi-builder-workspace/Sources/FABUI/FABModifier.swift:38:22: error: 'offset(x:y:)' is only available in macOS 10.15 or newer
4 | import SwiftUI
5 |
6 | public struct FABModifier: ViewModifier {
| `- note: add @available attribute to enclosing struct
7 | let icons: [Image]
8 | let colors: [Color]
:
24 | }
25 |
26 | public func body(content: Content) -> some View {
| `- note: add @available attribute to enclosing instance method
27 | ZStack {
28 | content
:
36 | }
37 | }
38 | .offset(x: -margin, y: -margin)
| |- error: 'offset(x:y:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
39 | }
40 | }
/Users/admin/builder/spi-builder-workspace/Sources/FABUI/FABModifier.swift:31:24: warning: conformance of 'Spacer' to 'View' is only available in macOS 10.15 or newer; this is an error in the Swift 6 language mode
4 | import SwiftUI
5 |
6 | public struct FABModifier: ViewModifier {
| `- note: add @available attribute to enclosing struct
7 | let icons: [Image]
8 | let colors: [Color]
:
24 | }
25 |
26 | public func body(content: Content) -> some View {
| `- note: add @available attribute to enclosing instance method
27 | ZStack {
28 | content
29 | VStack {
30 | Spacer()
31 | HStack {
| |- warning: conformance of 'Spacer' 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 | Spacer()
33 | VStack {
/Users/admin/builder/spi-builder-workspace/Sources/FABUI/FABModifier.swift:29:20: warning: conformance of 'Spacer' to 'View' is only available in macOS 10.15 or newer; this is an error in the Swift 6 language mode
4 | import SwiftUI
5 |
6 | public struct FABModifier: ViewModifier {
| `- note: add @available attribute to enclosing struct
7 | let icons: [Image]
8 | let colors: [Color]
:
24 | }
25 |
26 | public func body(content: Content) -> some View {
| `- note: add @available attribute to enclosing instance method
27 | ZStack {
28 | content
29 | VStack {
| |- warning: conformance of 'Spacer' 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
30 | Spacer()
31 | HStack {
/Users/admin/builder/spi-builder-workspace/Sources/FABUI/FABModifier.swift:46:14: error: 'imageScale' is only available in macOS 11.0 or newer
4 | import SwiftUI
5 |
6 | public struct FABModifier: ViewModifier {
| `- note: add @available attribute to enclosing struct
7 | let icons: [Image]
8 | let colors: [Color]
:
42 | }
43 |
44 | private func button(icon: Image, color: Color, iconColor: Color?, shapeStyle: ShapeStyle?, radius: CGFloat?, action: @escaping () -> Void) -> some View {
| `- note: add @available attribute to enclosing instance method
45 | icon
46 | .imageScale(.large)
| |- error: 'imageScale' is only available in macOS 11.0 or newer
| `- note: add 'if #available' version check
47 | .bold()
48 | .foregroundColor(iconColor)
/Users/admin/builder/spi-builder-workspace/Sources/FABUI/FABModifier.swift:47:14: error: 'bold' is only available in macOS 13.0 or newer
4 | import SwiftUI
5 |
6 | public struct FABModifier: ViewModifier {
| `- note: add @available attribute to enclosing struct
7 | let icons: [Image]
8 | let colors: [Color]
:
42 | }
43 |
44 | private func button(icon: Image, color: Color, iconColor: Color?, shapeStyle: ShapeStyle?, radius: CGFloat?, action: @escaping () -> Void) -> some View {
| `- note: add @available attribute to enclosing instance method
45 | icon
46 | .imageScale(.large)
47 | .bold()
| |- error: 'bold' is only available in macOS 13.0 or newer
| `- note: add 'if #available' version check
48 | .foregroundColor(iconColor)
49 | .frame(width: size, height: size)
/Users/admin/builder/spi-builder-workspace/Sources/FABUI/FABModifier.swift:48:14: error: 'foregroundColor' is only available in macOS 10.15 or newer
4 | import SwiftUI
5 |
6 | public struct FABModifier: ViewModifier {
| `- note: add @available attribute to enclosing struct
7 | let icons: [Image]
8 | let colors: [Color]
:
42 | }
43 |
44 | private func button(icon: Image, color: Color, iconColor: Color?, shapeStyle: ShapeStyle?, radius: CGFloat?, action: @escaping () -> Void) -> some View {
| `- note: add @available attribute to enclosing instance method
45 | icon
46 | .imageScale(.large)
47 | .bold()
48 | .foregroundColor(iconColor)
| |- error: 'foregroundColor' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
49 | .frame(width: size, height: size)
50 | .background(backgroundShape(for: shapeStyle).fill(color))
/Users/admin/builder/spi-builder-workspace/Sources/FABUI/FABModifier.swift:49:14: error: 'frame(width:height:alignment:)' is only available in macOS 10.15 or newer
4 | import SwiftUI
5 |
6 | public struct FABModifier: ViewModifier {
| `- note: add @available attribute to enclosing struct
7 | let icons: [Image]
8 | let colors: [Color]
:
42 | }
43 |
44 | private func button(icon: Image, color: Color, iconColor: Color?, shapeStyle: ShapeStyle?, radius: CGFloat?, action: @escaping () -> Void) -> some View {
| `- note: add @available attribute to enclosing instance method
45 | icon
46 | .imageScale(.large)
47 | .bold()
48 | .foregroundColor(iconColor)
49 | .frame(width: size, height: size)
| |- error: 'frame(width:height:alignment:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
50 | .background(backgroundShape(for: shapeStyle).fill(color))
51 | .shadow(radius: radius ?? 1)
/Users/admin/builder/spi-builder-workspace/Sources/FABUI/FABModifier.swift:50:14: error: 'background(_:alignment:)' is only available in macOS 10.15 or newer
4 | import SwiftUI
5 |
6 | public struct FABModifier: ViewModifier {
| `- note: add @available attribute to enclosing struct
7 | let icons: [Image]
8 | let colors: [Color]
:
42 | }
43 |
44 | private func button(icon: Image, color: Color, iconColor: Color?, shapeStyle: ShapeStyle?, radius: CGFloat?, action: @escaping () -> Void) -> some View {
| `- note: add @available attribute to enclosing instance method
45 | icon
46 | .imageScale(.large)
:
48 | .foregroundColor(iconColor)
49 | .frame(width: size, height: size)
50 | .background(backgroundShape(for: shapeStyle).fill(color))
| |- error: 'background(_:alignment:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
51 | .shadow(radius: radius ?? 1)
52 | .onTapGesture(perform: action)
/Users/admin/builder/spi-builder-workspace/Sources/FABUI/FABModifier.swift:50:58: error: 'fill(_:style:)' is only available in macOS 14.0 or newer
4 | import SwiftUI
5 |
6 | public struct FABModifier: ViewModifier {
| `- note: add @available attribute to enclosing struct
7 | let icons: [Image]
8 | let colors: [Color]
:
42 | }
43 |
44 | private func button(icon: Image, color: Color, iconColor: Color?, shapeStyle: ShapeStyle?, radius: CGFloat?, action: @escaping () -> Void) -> some View {
| `- note: add @available attribute to enclosing instance method
45 | icon
46 | .imageScale(.large)
:
48 | .foregroundColor(iconColor)
49 | .frame(width: size, height: size)
50 | .background(backgroundShape(for: shapeStyle).fill(color))
| |- error: 'fill(_:style:)' is only available in macOS 14.0 or newer
| `- note: add 'if #available' version check
51 | .shadow(radius: radius ?? 1)
52 | .onTapGesture(perform: action)
/Users/admin/builder/spi-builder-workspace/Sources/FABUI/FABModifier.swift:51:14: error: 'shadow(color:radius:x:y:)' is only available in macOS 10.15 or newer
4 | import SwiftUI
5 |
6 | public struct FABModifier: ViewModifier {
| `- note: add @available attribute to enclosing struct
7 | let icons: [Image]
8 | let colors: [Color]
:
42 | }
43 |
44 | private func button(icon: Image, color: Color, iconColor: Color?, shapeStyle: ShapeStyle?, radius: CGFloat?, action: @escaping () -> Void) -> some View {
| `- note: add @available attribute to enclosing instance method
45 | icon
46 | .imageScale(.large)
:
49 | .frame(width: size, height: size)
50 | .background(backgroundShape(for: shapeStyle).fill(color))
51 | .shadow(radius: radius ?? 1)
| |- error: 'shadow(color:radius:x:y:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
52 | .onTapGesture(perform: action)
53 | }
/Users/admin/builder/spi-builder-workspace/Sources/FABUI/FABModifier.swift:52:14: error: 'onTapGesture(count:perform:)' is only available in macOS 10.15 or newer
4 | import SwiftUI
5 |
6 | public struct FABModifier: ViewModifier {
| `- note: add @available attribute to enclosing struct
7 | let icons: [Image]
8 | let colors: [Color]
:
42 | }
43 |
44 | private func button(icon: Image, color: Color, iconColor: Color?, shapeStyle: ShapeStyle?, radius: CGFloat?, action: @escaping () -> Void) -> some View {
| `- note: add @available attribute to enclosing instance method
45 | icon
46 | .imageScale(.large)
:
50 | .background(backgroundShape(for: shapeStyle).fill(color))
51 | .shadow(radius: radius ?? 1)
52 | .onTapGesture(perform: action)
| |- error: 'onTapGesture(count:perform:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
53 | }
54 |
/Users/admin/builder/spi-builder-workspace/Sources/FABUI/FABModifier.swift:58:20: error: 'AnyShape' is only available in macOS 13.0 or newer
4 | import SwiftUI
5 |
6 | public struct FABModifier: ViewModifier {
| `- note: add @available attribute to enclosing struct
7 | let icons: [Image]
8 | let colors: [Color]
:
53 | }
54 |
55 | private func backgroundShape(for shapeStyle: ShapeStyle?) -> AnyShape {
| `- note: add @available attribute to enclosing instance method
56 | switch shapeStyle {
57 | case .circle:
58 | return AnyShape(Circle())
| |- error: 'AnyShape' is only available in macOS 13.0 or newer
| `- note: add 'if #available' version check
59 | case .roundedRectangle(let cornerRadius):
60 | return AnyShape(RoundedRectangle(cornerRadius: cornerRadius))
/Users/admin/builder/spi-builder-workspace/Sources/FABUI/FABModifier.swift:58:29: error: 'Circle' is only available in macOS 10.15 or newer
4 | import SwiftUI
5 |
6 | public struct FABModifier: ViewModifier {
| `- note: add @available attribute to enclosing struct
7 | let icons: [Image]
8 | let colors: [Color]
:
53 | }
54 |
55 | private func backgroundShape(for shapeStyle: ShapeStyle?) -> AnyShape {
| `- note: add @available attribute to enclosing instance method
56 | switch shapeStyle {
57 | case .circle:
58 | return AnyShape(Circle())
| |- error: 'Circle' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
59 | case .roundedRectangle(let cornerRadius):
60 | return AnyShape(RoundedRectangle(cornerRadius: cornerRadius))
/Users/admin/builder/spi-builder-workspace/Sources/FABUI/FABModifier.swift:60:20: error: 'AnyShape' is only available in macOS 13.0 or newer
4 | import SwiftUI
5 |
6 | public struct FABModifier: ViewModifier {
| `- note: add @available attribute to enclosing struct
7 | let icons: [Image]
8 | let colors: [Color]
:
53 | }
54 |
55 | private func backgroundShape(for shapeStyle: ShapeStyle?) -> AnyShape {
| `- note: add @available attribute to enclosing instance method
56 | switch shapeStyle {
57 | case .circle:
58 | return AnyShape(Circle())
59 | case .roundedRectangle(let cornerRadius):
60 | return AnyShape(RoundedRectangle(cornerRadius: cornerRadius))
| |- error: 'AnyShape' is only available in macOS 13.0 or newer
| `- note: add 'if #available' version check
61 | case .none:
62 | return AnyShape(Circle())
/Users/admin/builder/spi-builder-workspace/Sources/FABUI/FABModifier.swift:60:29: error: 'RoundedRectangle' is only available in macOS 10.15 or newer
4 | import SwiftUI
5 |
6 | public struct FABModifier: ViewModifier {
| `- note: add @available attribute to enclosing struct
7 | let icons: [Image]
8 | let colors: [Color]
:
53 | }
54 |
55 | private func backgroundShape(for shapeStyle: ShapeStyle?) -> AnyShape {
| `- note: add @available attribute to enclosing instance method
56 | switch shapeStyle {
57 | case .circle:
58 | return AnyShape(Circle())
59 | case .roundedRectangle(let cornerRadius):
60 | return AnyShape(RoundedRectangle(cornerRadius: cornerRadius))
| |- error: 'RoundedRectangle' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
61 | case .none:
62 | return AnyShape(Circle())
/Users/admin/builder/spi-builder-workspace/Sources/FABUI/FABModifier.swift:62:20: error: 'AnyShape' is only available in macOS 13.0 or newer
4 | import SwiftUI
5 |
6 | public struct FABModifier: ViewModifier {
| `- note: add @available attribute to enclosing struct
7 | let icons: [Image]
8 | let colors: [Color]
:
53 | }
54 |
55 | private func backgroundShape(for shapeStyle: ShapeStyle?) -> AnyShape {
| `- note: add @available attribute to enclosing instance method
56 | switch shapeStyle {
57 | case .circle:
:
60 | return AnyShape(RoundedRectangle(cornerRadius: cornerRadius))
61 | case .none:
62 | return AnyShape(Circle())
| |- error: 'AnyShape' is only available in macOS 13.0 or newer
| `- note: add 'if #available' version check
63 | }
64 | }
/Users/admin/builder/spi-builder-workspace/Sources/FABUI/FABModifier.swift:62:29: error: 'Circle' is only available in macOS 10.15 or newer
4 | import SwiftUI
5 |
6 | public struct FABModifier: ViewModifier {
| `- note: add @available attribute to enclosing struct
7 | let icons: [Image]
8 | let colors: [Color]
:
53 | }
54 |
55 | private func backgroundShape(for shapeStyle: ShapeStyle?) -> AnyShape {
| `- note: add @available attribute to enclosing instance method
56 | switch shapeStyle {
57 | case .circle:
:
60 | return AnyShape(RoundedRectangle(cornerRadius: cornerRadius))
61 | case .none:
62 | return AnyShape(Circle())
| |- error: 'Circle' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
63 | }
64 | }
BUILD FAILURE 6.0 macosSpm