Build Information
Failed to build SwiftUI-VPSwitch, reference main (ae828d
), with Swift 6.0 for macOS (SPM) on 3 Nov 2024 08:58:39 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/VansonLeung/SwiftUI-VPSwitchToggle.git
Reference: main
Initialized empty Git repository in /Users/admin/builder/spi-builder-workspace/.git/
From https://github.com/VansonLeung/SwiftUI-VPSwitchToggle
* branch main -> FETCH_HEAD
* [new branch] main -> origin/main
HEAD is now at ae828d3 Create LICENSE
Cloned https://github.com/VansonLeung/SwiftUI-VPSwitchToggle.git
Revision (git rev-parse @):
ae828d398128eb054f4c48eb4ce9e88393115bfd
SUCCESS checkout https://github.com/VansonLeung/SwiftUI-VPSwitchToggle.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": "swiftui-vpswitchtoggle",
"name": "SwiftUI-VPSwitch",
"url": "https://github.com/VansonLeung/SwiftUI-VPSwitchToggle.git",
"version": "unspecified",
"path": "/Users/admin/builder/spi-builder-workspace/.resolve-product-dependencies/.build/checkouts/SwiftUI-VPSwitchToggle",
"dependencies": [
]
}
]
}
Fetching https://github.com/VansonLeung/SwiftUI-VPSwitchToggle.git
[2/156] Fetching swiftui-vpswitchtoggle
Fetched https://github.com/VansonLeung/SwiftUI-VPSwitchToggle.git from cache (0.76s)
Creating working copy for https://github.com/VansonLeung/SwiftUI-VPSwitchToggle.git
Working copy of https://github.com/VansonLeung/SwiftUI-VPSwitchToggle.git resolved at main (ae828d3)
warning: '.resolve-product-dependencies': dependency 'swiftui-vpswitchtoggle' 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/VansonLeung/SwiftUI-VPSwitchToggle.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/4] Write sources
[1/4] Copying f_switch_base_glow.png
[1/4] Copying foreground_overlay_bw.png
[3/4] Write swift-version--7754E27361AE5C74.txt
error: emit-module command failed with exit code 1 (use -v to see invocation)
[5/8] Emitting module SwiftUI_VPSwitch
/Users/admin/builder/spi-builder-workspace/Sources/SwiftUI-VPSwitch/SwiftUI_VPSwitch.swift:17:6: error: 'Binding' is only available in macOS 10.15 or newer
13 |
14 | @available(iOS 14.0, *)
15 | public struct SUIVPSwitch: View {
| `- note: add @available attribute to enclosing struct
16 |
17 | @Binding var isOn: Bool
| `- error: 'Binding' is only available in macOS 10.15 or newer
18 |
19 | public enum BackgroundImageOrder {
/Users/admin/builder/spi-builder-workspace/Sources/SwiftUI-VPSwitch/SwiftUI_VPSwitch.swift:29:30: error: 'Image' is only available in macOS 10.15 or newer
26 |
27 |
28 | public class SUIVPSwitchState {
| `- note: add @available attribute to enclosing class
29 | var backgroundImage: Image? = nil
| `- error: 'Image' is only available in macOS 10.15 or newer
30 | var backgroundColor: Color? = .gray
31 | var foregroundImage: Image? = nil
/Users/admin/builder/spi-builder-workspace/Sources/SwiftUI-VPSwitch/SwiftUI_VPSwitch.swift:30:30: error: 'Color' is only available in macOS 10.15 or newer
26 |
27 |
28 | public class SUIVPSwitchState {
| `- note: add @available attribute to enclosing class
29 | var backgroundImage: Image? = nil
30 | var backgroundColor: Color? = .gray
| `- error: 'Color' is only available in macOS 10.15 or newer
31 | var foregroundImage: Image? = nil
32 | var foregroundColor: Color? = .gray
/Users/admin/builder/spi-builder-workspace/Sources/SwiftUI-VPSwitch/SwiftUI_VPSwitch.swift:30:40: error: 'gray' is only available in macOS 10.15 or newer
26 |
27 |
28 | public class SUIVPSwitchState {
| `- note: add @available attribute to enclosing class
29 | var backgroundImage: Image? = nil
30 | var backgroundColor: Color? = .gray
| `- error: 'gray' is only available in macOS 10.15 or newer
31 | var foregroundImage: Image? = nil
32 | var foregroundColor: Color? = .gray
/Users/admin/builder/spi-builder-workspace/Sources/SwiftUI-VPSwitch/SwiftUI_VPSwitch.swift:31:30: error: 'Image' is only available in macOS 10.15 or newer
26 |
27 |
28 | public class SUIVPSwitchState {
| `- note: add @available attribute to enclosing class
29 | var backgroundImage: Image? = nil
30 | var backgroundColor: Color? = .gray
31 | var foregroundImage: Image? = nil
| `- error: 'Image' is only available in macOS 10.15 or newer
32 | var foregroundColor: Color? = .gray
33 |
/Users/admin/builder/spi-builder-workspace/Sources/SwiftUI-VPSwitch/SwiftUI_VPSwitch.swift:32:30: error: 'Color' is only available in macOS 10.15 or newer
26 |
27 |
28 | public class SUIVPSwitchState {
| `- note: add @available attribute to enclosing class
29 | var backgroundImage: Image? = nil
30 | var backgroundColor: Color? = .gray
31 | var foregroundImage: Image? = nil
32 | var foregroundColor: Color? = .gray
| `- error: 'Color' is only available in macOS 10.15 or newer
33 |
34 | public init(
/Users/admin/builder/spi-builder-workspace/Sources/SwiftUI-VPSwitch/SwiftUI_VPSwitch.swift:32:40: error: 'gray' is only available in macOS 10.15 or newer
26 |
27 |
28 | public class SUIVPSwitchState {
| `- note: add @available attribute to enclosing class
29 | var backgroundImage: Image? = nil
30 | var backgroundColor: Color? = .gray
31 | var foregroundImage: Image? = nil
32 | var foregroundColor: Color? = .gray
| `- error: 'gray' is only available in macOS 10.15 or newer
33 |
34 | public init(
/Users/admin/builder/spi-builder-workspace/Sources/SwiftUI-VPSwitch/SwiftUI_VPSwitch.swift:35:30: error: 'Image' is only available in macOS 10.15 or newer
26 |
27 |
28 | public class SUIVPSwitchState {
| `- note: add @available attribute to enclosing class
29 | var backgroundImage: Image? = nil
30 | var backgroundColor: Color? = .gray
:
32 | var foregroundColor: Color? = .gray
33 |
34 | public init(
| `- note: add @available attribute to enclosing initializer
35 | backgroundImage: Image?,
| `- error: 'Image' is only available in macOS 10.15 or newer
36 | backgroundColor: Color?,
37 | foregroundImage: Image?,
/Users/admin/builder/spi-builder-workspace/Sources/SwiftUI-VPSwitch/SwiftUI_VPSwitch.swift:36:30: error: 'Color' is only available in macOS 10.15 or newer
26 |
27 |
28 | public class SUIVPSwitchState {
| `- note: add @available attribute to enclosing class
29 | var backgroundImage: Image? = nil
30 | var backgroundColor: Color? = .gray
:
32 | var foregroundColor: Color? = .gray
33 |
34 | public init(
| `- note: add @available attribute to enclosing initializer
35 | backgroundImage: Image?,
36 | backgroundColor: Color?,
| `- error: 'Color' is only available in macOS 10.15 or newer
37 | foregroundImage: Image?,
38 | foregroundColor: Color?
/Users/admin/builder/spi-builder-workspace/Sources/SwiftUI-VPSwitch/SwiftUI_VPSwitch.swift:37:30: error: 'Image' is only available in macOS 10.15 or newer
26 |
27 |
28 | public class SUIVPSwitchState {
| `- note: add @available attribute to enclosing class
29 | var backgroundImage: Image? = nil
30 | var backgroundColor: Color? = .gray
:
32 | var foregroundColor: Color? = .gray
33 |
34 | public init(
| `- note: add @available attribute to enclosing initializer
35 | backgroundImage: Image?,
36 | backgroundColor: Color?,
37 | foregroundImage: Image?,
| `- error: 'Image' is only available in macOS 10.15 or newer
38 | foregroundColor: Color?
39 | ) {
/Users/admin/builder/spi-builder-workspace/Sources/SwiftUI-VPSwitch/SwiftUI_VPSwitch.swift:38:30: error: 'Color' is only available in macOS 10.15 or newer
26 |
27 |
28 | public class SUIVPSwitchState {
| `- note: add @available attribute to enclosing class
29 | var backgroundImage: Image? = nil
30 | var backgroundColor: Color? = .gray
:
32 | var foregroundColor: Color? = .gray
33 |
34 | public init(
| `- note: add @available attribute to enclosing initializer
35 | backgroundImage: Image?,
36 | backgroundColor: Color?,
37 | foregroundImage: Image?,
38 | foregroundColor: Color?
| `- error: 'Color' is only available in macOS 10.15 or newer
39 | ) {
40 | self.backgroundImage = backgroundImage
/Users/admin/builder/spi-builder-workspace/Sources/SwiftUI-VPSwitch/SwiftUI_VPSwitch.swift:54:26: error: 'Color' is only available in macOS 10.15 or newer
13 |
14 | @available(iOS 14.0, *)
15 | public struct SUIVPSwitch: View {
| `- note: add @available attribute to enclosing struct
16 |
17 | @Binding var isOn: Bool
:
52 | var state_on: SUIVPSwitchState = .init(
53 | backgroundImage: nil,
54 | backgroundColor: Color(red: 0.7, green: 0.7, blue: 0.7),
| `- error: 'Color' is only available in macOS 10.15 or newer
55 | foregroundImage: nil,
56 | foregroundColor: Color(red: 0.4, green: 1.0, blue: 0.4)
/Users/admin/builder/spi-builder-workspace/Sources/SwiftUI-VPSwitch/SwiftUI_VPSwitch.swift:54:26: error: 'init(_:red:green:blue:opacity:)' is only available in macOS 10.15 or newer
13 |
14 | @available(iOS 14.0, *)
15 | public struct SUIVPSwitch: View {
| `- note: add @available attribute to enclosing struct
16 |
17 | @Binding var isOn: Bool
:
52 | var state_on: SUIVPSwitchState = .init(
53 | backgroundImage: nil,
54 | backgroundColor: Color(red: 0.7, green: 0.7, blue: 0.7),
| `- error: 'init(_:red:green:blue:opacity:)' is only available in macOS 10.15 or newer
55 | foregroundImage: nil,
56 | foregroundColor: Color(red: 0.4, green: 1.0, blue: 0.4)
/Users/admin/builder/spi-builder-workspace/Sources/SwiftUI-VPSwitch/SwiftUI_VPSwitch.swift:56:26: error: 'Color' is only available in macOS 10.15 or newer
13 |
14 | @available(iOS 14.0, *)
15 | public struct SUIVPSwitch: View {
| `- note: add @available attribute to enclosing struct
16 |
17 | @Binding var isOn: Bool
:
54 | backgroundColor: Color(red: 0.7, green: 0.7, blue: 0.7),
55 | foregroundImage: nil,
56 | foregroundColor: Color(red: 0.4, green: 1.0, blue: 0.4)
| `- error: 'Color' is only available in macOS 10.15 or newer
57 | )
58 |
/Users/admin/builder/spi-builder-workspace/Sources/SwiftUI-VPSwitch/SwiftUI_VPSwitch.swift:56:26: error: 'init(_:red:green:blue:opacity:)' is only available in macOS 10.15 or newer
13 |
14 | @available(iOS 14.0, *)
15 | public struct SUIVPSwitch: View {
| `- note: add @available attribute to enclosing struct
16 |
17 | @Binding var isOn: Bool
:
54 | backgroundColor: Color(red: 0.7, green: 0.7, blue: 0.7),
55 | foregroundImage: nil,
56 | foregroundColor: Color(red: 0.4, green: 1.0, blue: 0.4)
| `- error: 'init(_:red:green:blue:opacity:)' is only available in macOS 10.15 or newer
57 | )
58 |
/Users/admin/builder/spi-builder-workspace/Sources/SwiftUI-VPSwitch/SwiftUI_VPSwitch.swift:61:26: error: 'Color' is only available in macOS 10.15 or newer
13 |
14 | @available(iOS 14.0, *)
15 | public struct SUIVPSwitch: View {
| `- note: add @available attribute to enclosing struct
16 |
17 | @Binding var isOn: Bool
:
59 | var state_off: SUIVPSwitchState = .init(
60 | backgroundImage: nil,
61 | backgroundColor: Color(red: 0.75, green: 0.75, blue: 0.75),
| `- error: 'Color' is only available in macOS 10.15 or newer
62 | foregroundImage: nil,
63 | foregroundColor: Color(red: 0.9, green: 0.9, blue: 0.9)
/Users/admin/builder/spi-builder-workspace/Sources/SwiftUI-VPSwitch/SwiftUI_VPSwitch.swift:61:26: error: 'init(_:red:green:blue:opacity:)' is only available in macOS 10.15 or newer
13 |
14 | @available(iOS 14.0, *)
15 | public struct SUIVPSwitch: View {
| `- note: add @available attribute to enclosing struct
16 |
17 | @Binding var isOn: Bool
:
59 | var state_off: SUIVPSwitchState = .init(
60 | backgroundImage: nil,
61 | backgroundColor: Color(red: 0.75, green: 0.75, blue: 0.75),
| `- error: 'init(_:red:green:blue:opacity:)' is only available in macOS 10.15 or newer
62 | foregroundImage: nil,
63 | foregroundColor: Color(red: 0.9, green: 0.9, blue: 0.9)
/Users/admin/builder/spi-builder-workspace/Sources/SwiftUI-VPSwitch/SwiftUI_VPSwitch.swift:63:26: error: 'Color' is only available in macOS 10.15 or newer
13 |
14 | @available(iOS 14.0, *)
15 | public struct SUIVPSwitch: View {
| `- note: add @available attribute to enclosing struct
16 |
17 | @Binding var isOn: Bool
:
61 | backgroundColor: Color(red: 0.75, green: 0.75, blue: 0.75),
62 | foregroundImage: nil,
63 | foregroundColor: Color(red: 0.9, green: 0.9, blue: 0.9)
| `- error: 'Color' is only available in macOS 10.15 or newer
64 | )
65 |
/Users/admin/builder/spi-builder-workspace/Sources/SwiftUI-VPSwitch/SwiftUI_VPSwitch.swift:63:26: error: 'init(_:red:green:blue:opacity:)' is only available in macOS 10.15 or newer
13 |
14 | @available(iOS 14.0, *)
15 | public struct SUIVPSwitch: View {
| `- note: add @available attribute to enclosing struct
16 |
17 | @Binding var isOn: Bool
:
61 | backgroundColor: Color(red: 0.75, green: 0.75, blue: 0.75),
62 | foregroundImage: nil,
63 | foregroundColor: Color(red: 0.9, green: 0.9, blue: 0.9)
| `- error: 'init(_:red:green:blue:opacity:)' is only available in macOS 10.15 or newer
64 | )
65 |
/Users/admin/builder/spi-builder-workspace/Sources/SwiftUI-VPSwitch/SwiftUI_VPSwitch.swift:71:31: error: 'View' is only available in macOS 10.15 or newer
67 |
68 | @available(iOS 14.0, *)
69 | public struct Background: View {
| `- note: add @available attribute to enclosing struct
70 |
71 | public var body: some View {
| | `- error: 'View' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing property
72 | ZStack {
73 |
/Users/admin/builder/spi-builder-workspace/Sources/SwiftUI-VPSwitch/SwiftUI_VPSwitch.swift:81:31: error: 'View' is only available in macOS 10.15 or newer
77 |
78 | @available(iOS 14.0, *)
79 | public struct Button: View {
| `- note: add @available attribute to enclosing struct
80 |
81 | public var body: some View {
| | `- error: 'View' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing property
82 | ZStack {
83 |
/Users/admin/builder/spi-builder-workspace/Sources/SwiftUI-VPSwitch/SwiftUI_VPSwitch.swift:93:15: error: 'Binding' is only available in macOS 10.15 or newer
13 |
14 | @available(iOS 14.0, *)
15 | public struct SUIVPSwitch: View {
| `- note: add @available attribute to enclosing struct
16 |
17 | @Binding var isOn: Bool
:
90 |
91 |
92 | public init(
| `- note: add @available attribute to enclosing initializer
93 | isOn: Binding<Bool>
| `- error: 'Binding' is only available in macOS 10.15 or newer
94 | ) {
95 | self._isOn = isOn
/Users/admin/builder/spi-builder-workspace/Sources/SwiftUI-VPSwitch/SwiftUI_VPSwitch.swift:99:15: error: 'Binding' is only available in macOS 10.15 or newer
13 |
14 | @available(iOS 14.0, *)
15 | public struct SUIVPSwitch: View {
| `- note: add @available attribute to enclosing struct
16 |
17 | @Binding var isOn: Bool
:
96 | }
97 |
98 | public init(
| `- note: add @available attribute to enclosing initializer
99 | isOn: Binding<Bool>,
| `- error: 'Binding' is only available in macOS 10.15 or newer
100 | widgetSize: CGSize?,
101 | widgetForegroundMargin: CGFloat?
/Users/admin/builder/spi-builder-workspace/Sources/SwiftUI-VPSwitch/SwiftUI_VPSwitch.swift:109:15: error: 'Binding' is only available in macOS 10.15 or newer
13 |
14 | @available(iOS 14.0, *)
15 | public struct SUIVPSwitch: View {
| `- note: add @available attribute to enclosing struct
16 |
17 | @Binding var isOn: Bool
:
106 | }
107 |
108 | public init(
| `- note: add @available attribute to enclosing initializer
109 | isOn: Binding<Bool>,
| `- error: 'Binding' is only available in macOS 10.15 or newer
110 | widgetSize: CGSize?,
111 | widgetForegroundMargin: CGFloat?,
/Users/admin/builder/spi-builder-workspace/Sources/SwiftUI-VPSwitch/SwiftUI_VPSwitch.swift:127:27: error: 'View' is only available in macOS 10.15 or newer
13 |
14 | @available(iOS 14.0, *)
15 | public struct SUIVPSwitch: View {
| `- note: add @available attribute to enclosing struct
16 |
17 | @Binding var isOn: Bool
:
125 |
126 |
127 | public var body: some View {
| | `- error: 'View' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing property
128 | ZStack {
129 | VStack(spacing: 0) {
/Users/admin/builder/spi-builder-workspace/Sources/SwiftUI-VPSwitch/SwiftUI_VPSwitch.swift:225:24: error: 'View' is only available in macOS 10.15 or newer
156 | struct SliderView: View {
157 |
158 | struct BackgroundView: View {
| `- note: add @available attribute to enclosing struct
159 |
160 | var position: CGFloat
:
223 |
224 |
225 | var body: some View {
| | `- error: 'View' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing property
226 | ZStack {
227 | RoundedRectangle(cornerRadius: width)
/Users/admin/builder/spi-builder-workspace/Sources/SwiftUI-VPSwitch/SwiftUI_VPSwitch.swift:338:29: error: cannot find type 'UIImage' in scope
336 | var backgroundImageOrder : SUIVPSwitch.BackgroundImageOrder
337 | // @State var imgRes: UIImage?
338 | @State var imgGlow: UIImage?
| `- error: cannot find type 'UIImage' in scope
339 |
340 | var body: some View {
/Users/admin/builder/spi-builder-workspace/Sources/SwiftUI-VPSwitch/SwiftUI_VPSwitch.swift:338:10: error: 'State' is only available in macOS 10.15 or newer
327 |
328 |
329 | struct ForegroundIconView: View {
| |- note: add @available attribute to enclosing struct
| `- note: add @available attribute to enclosing struct
330 |
331 | var position: CGFloat
:
336 | var backgroundImageOrder : SUIVPSwitch.BackgroundImageOrder
337 | // @State var imgRes: UIImage?
338 | @State var imgGlow: UIImage?
| `- error: 'State' is only available in macOS 10.15 or newer
339 |
340 | var body: some View {
/Users/admin/builder/spi-builder-workspace/Sources/SwiftUI-VPSwitch/SwiftUI_VPSwitch.swift:340:24: error: 'View' is only available in macOS 10.15 or newer
327 |
328 |
329 | struct ForegroundIconView: View {
| `- note: add @available attribute to enclosing struct
330 |
331 | var position: CGFloat
:
338 | @State var imgGlow: UIImage?
339 |
340 | var body: some View {
| | `- error: 'View' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing property
341 | ZStack {
342 |
/Users/admin/builder/spi-builder-workspace/Sources/SwiftUI-VPSwitch/SwiftUI_VPSwitch.swift:441:6: error: 'GestureState' is only available in macOS 10.15 or newer
154 |
155 | @available(iOS 14.0, *)
156 | struct SliderView: View {
| `- note: add @available attribute to enclosing struct
157 |
158 | struct BackgroundView: View {
:
439 |
440 |
441 | @GestureState private var dragOffset: CGSize = .zero
| `- error: 'GestureState' is only available in macOS 10.15 or newer
442 | @State private var position: CGFloat = 0
443 | @State private var isDragging = false
/Users/admin/builder/spi-builder-workspace/Sources/SwiftUI-VPSwitch/SwiftUI_VPSwitch.swift:442:6: error: 'State' is only available in macOS 10.15 or newer
154 |
155 | @available(iOS 14.0, *)
156 | struct SliderView: View {
| `- note: add @available attribute to enclosing struct
157 |
158 | struct BackgroundView: View {
:
440 |
441 | @GestureState private var dragOffset: CGSize = .zero
442 | @State private var position: CGFloat = 0
| `- error: 'State' is only available in macOS 10.15 or newer
443 | @State private var isDragging = false
444 |
/Users/admin/builder/spi-builder-workspace/Sources/SwiftUI-VPSwitch/SwiftUI_VPSwitch.swift:443:6: error: 'State' is only available in macOS 10.15 or newer
154 |
155 | @available(iOS 14.0, *)
156 | struct SliderView: View {
| `- note: add @available attribute to enclosing struct
157 |
158 | struct BackgroundView: View {
:
441 | @GestureState private var dragOffset: CGSize = .zero
442 | @State private var position: CGFloat = 0
443 | @State private var isDragging = false
| `- error: 'State' is only available in macOS 10.15 or newer
444 |
445 | @Binding var isOn: Bool
/Users/admin/builder/spi-builder-workspace/Sources/SwiftUI-VPSwitch/SwiftUI_VPSwitch.swift:445:6: error: 'Binding' is only available in macOS 10.15 or newer
154 |
155 | @available(iOS 14.0, *)
156 | struct SliderView: View {
| `- note: add @available attribute to enclosing struct
157 |
158 | struct BackgroundView: View {
:
443 | @State private var isDragging = false
444 |
445 | @Binding var isOn: Bool
| `- error: 'Binding' is only available in macOS 10.15 or newer
446 | var widgetSize: CGSize
447 | var widgetForegroundMargin: CGFloat
/Users/admin/builder/spi-builder-workspace/Sources/SwiftUI-VPSwitch/SwiftUI_VPSwitch.swift:453:20: error: 'View' is only available in macOS 10.15 or newer
154 |
155 | @available(iOS 14.0, *)
156 | struct SliderView: View {
| `- note: add @available attribute to enclosing struct
157 |
158 | struct BackgroundView: View {
:
451 |
452 |
453 | var body: some View {
| | `- error: 'View' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing property
454 | ZStack {
455 |
/Users/admin/builder/spi-builder-workspace/Sources/SwiftUI-VPSwitch/SwiftUI_VPSwitch.swift:564:6: error: 'State' is only available in macOS 10.15 or newer
560 |
561 | @available(iOS 14.0, *)
562 | struct ContentView: View {
| `- note: add @available attribute to enclosing struct
563 |
564 | @State var isOn: Bool = false
| `- error: 'State' is only available in macOS 10.15 or newer
565 |
566 | var body: some View {
/Users/admin/builder/spi-builder-workspace/Sources/SwiftUI-VPSwitch/SwiftUI_VPSwitch.swift:566:20: error: 'View' is only available in macOS 10.15 or newer
560 |
561 | @available(iOS 14.0, *)
562 | struct ContentView: View {
| `- note: add @available attribute to enclosing struct
563 |
564 | @State var isOn: Bool = false
565 |
566 | var body: some View {
| | `- error: 'View' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing property
567 | VStack {
568 | Text("Drag the slider")
/Users/admin/builder/spi-builder-workspace/Sources/SwiftUI-VPSwitch/SwiftUI_VPSwitch.swift:581:31: error: 'View' is only available in macOS 10.15 or newer
578 |
579 | @available(iOS 14.0, *)
580 | struct ContentView_Previews: PreviewProvider {
| `- note: add @available attribute to enclosing struct
581 | static var previews: some View {
| | `- error: 'View' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing static property
582 | ContentView()
583 | }
/Users/admin/builder/spi-builder-workspace/Sources/SwiftUI-VPSwitch/SwiftUI_VPSwitch.swift:589:27: error: 'Color' is only available in macOS 10.15 or newer
587 |
588 | @available(iOS 14.0, *)
589 | func lerpColor(fromColor: Color, toColor: Color, weight: CGFloat) -> Color {
| | `- error: 'Color' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing global function
590 | let fromComponents = fromColor.components()
591 | let toComponents = toColor.components()
/Users/admin/builder/spi-builder-workspace/Sources/SwiftUI-VPSwitch/SwiftUI_VPSwitch.swift:589:43: error: 'Color' is only available in macOS 10.15 or newer
587 |
588 | @available(iOS 14.0, *)
589 | func lerpColor(fromColor: Color, toColor: Color, weight: CGFloat) -> Color {
| | `- error: 'Color' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing global function
590 | let fromComponents = fromColor.components()
591 | let toComponents = toColor.components()
/Users/admin/builder/spi-builder-workspace/Sources/SwiftUI-VPSwitch/SwiftUI_VPSwitch.swift:589:70: error: 'Color' is only available in macOS 10.15 or newer
587 |
588 | @available(iOS 14.0, *)
589 | func lerpColor(fromColor: Color, toColor: Color, weight: CGFloat) -> Color {
| | `- error: 'Color' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing global function
590 | let fromComponents = fromColor.components()
591 | let toComponents = toColor.components()
/Users/admin/builder/spi-builder-workspace/Sources/SwiftUI-VPSwitch/SwiftUI_VPSwitch.swift:602:11: error: 'Color' is only available in macOS 10.15 or newer
600 |
601 | @available(iOS 14.0, *)
602 | extension Color {
| | `- error: 'Color' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing extension
603 | func components() -> (red: CGFloat, green: CGFloat, blue: CGFloat, alpha: CGFloat) {
604 | let uiColor = UIColor(self)
/Users/admin/builder/spi-builder-workspace/Sources/SwiftUI-VPSwitch/View+DebugFrameSize.swift:5:35: error: 'View' is only available in macOS 10.15 or newer
2 |
3 | @available(iOS 13.0, *)
4 | extension View {
| `- note: add @available attribute to enclosing extension
5 | func debugFrameSize() -> some View {
| | `- error: 'View' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing instance method
6 | modifier(FrameSize())
7 | }
/Users/admin/builder/spi-builder-workspace/Sources/SwiftUI-VPSwitch/View+DebugFrameSize.swift:8:46: error: 'View' is only available in macOS 10.15 or newer
2 |
3 | @available(iOS 13.0, *)
4 | extension View {
| `- note: add @available attribute to enclosing extension
5 | func debugFrameSize() -> some View {
6 | modifier(FrameSize())
7 | }
8 | func debugFrameSizeHighlighted() -> some View {
| | `- error: 'View' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing instance method
9 | modifier(FrameSize(color: .red, bold: true, lineWidth: 2))
10 | }
/Users/admin/builder/spi-builder-workspace/Sources/SwiftUI-VPSwitch/View+DebugFrameSize.swift:4:11: error: 'View' is only available in macOS 10.15 or newer
2 |
3 | @available(iOS 13.0, *)
4 | extension View {
| | `- error: 'View' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing extension
5 | func debugFrameSize() -> some View {
6 | modifier(FrameSize())
/Users/admin/builder/spi-builder-workspace/Sources/SwiftUI-VPSwitch/View+DebugFrameSize.swift:15:25: error: 'blue' is only available in macOS 10.15 or newer
12 |
13 | @available(iOS 13.0, *)
14 | private struct FrameSize: ViewModifier {
| `- note: add @available attribute to enclosing struct
15 | var color: Color = .blue
| `- error: 'blue' is only available in macOS 10.15 or newer
16 | var bold: Bool = false
17 | var lineWidth: CGFloat = 1
/Users/admin/builder/spi-builder-workspace/Sources/SwiftUI-VPSwitch/View+DebugFrameSize.swift:15:16: error: 'Color' is only available in macOS 10.15 or newer
12 |
13 | @available(iOS 13.0, *)
14 | private struct FrameSize: ViewModifier {
| `- note: add @available attribute to enclosing struct
15 | var color: Color = .blue
| `- error: 'Color' is only available in macOS 10.15 or newer
16 | var bold: Bool = false
17 | var lineWidth: CGFloat = 1
/Users/admin/builder/spi-builder-workspace/Sources/SwiftUI-VPSwitch/View+DebugFrameSize.swift:19:41: error: 'View' is only available in macOS 10.15 or newer
12 |
13 | @available(iOS 13.0, *)
14 | private struct FrameSize: ViewModifier {
| `- note: add @available attribute to enclosing struct
15 | var color: Color = .blue
16 | var bold: Bool = false
17 | var lineWidth: CGFloat = 1
18 |
19 | 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
20 | if false && true {
21 | content
/Users/admin/builder/spi-builder-workspace/Sources/SwiftUI-VPSwitch/View+DebugFrameSize.swift:28:32: error: 'GeometryProxy' is only available in macOS 10.15 or newer
12 |
13 | @available(iOS 13.0, *)
14 | private struct FrameSize: ViewModifier {
| `- note: add @available attribute to enclosing struct
15 | var color: Color = .blue
16 | var bold: Bool = false
:
26 | }
27 |
28 | func overlay(for geometry: GeometryProxy) -> some View {
| | `- error: 'GeometryProxy' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing instance method
29 | ZStack(
30 | alignment: Alignment(horizontal: .trailing, vertical: .top)
/Users/admin/builder/spi-builder-workspace/Sources/SwiftUI-VPSwitch/View+DebugFrameSize.swift:28:55: error: 'View' is only available in macOS 10.15 or newer
12 |
13 | @available(iOS 13.0, *)
14 | private struct FrameSize: ViewModifier {
| `- note: add @available attribute to enclosing struct
15 | var color: Color = .blue
16 | var bold: Bool = false
:
26 | }
27 |
28 | func overlay(for geometry: GeometryProxy) -> some View {
| | `- error: 'View' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing instance method
29 | ZStack(
30 | alignment: Alignment(horizontal: .trailing, vertical: .top)
[6/8] Compiling SwiftUI_VPSwitch resource_bundle_accessor.swift
[7/8] Compiling SwiftUI_VPSwitch View+DebugFrameSize.swift
/Users/admin/builder/spi-builder-workspace/Sources/SwiftUI-VPSwitch/View+DebugFrameSize.swift:5:35: error: 'View' is only available in macOS 10.15 or newer
2 |
3 | @available(iOS 13.0, *)
4 | extension View {
| `- note: add @available attribute to enclosing extension
5 | func debugFrameSize() -> some View {
| | `- error: 'View' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing instance method
6 | modifier(FrameSize())
7 | }
/Users/admin/builder/spi-builder-workspace/Sources/SwiftUI-VPSwitch/View+DebugFrameSize.swift:8:46: error: 'View' is only available in macOS 10.15 or newer
2 |
3 | @available(iOS 13.0, *)
4 | extension View {
| `- note: add @available attribute to enclosing extension
5 | func debugFrameSize() -> some View {
6 | modifier(FrameSize())
7 | }
8 | func debugFrameSizeHighlighted() -> some View {
| | `- error: 'View' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing instance method
9 | modifier(FrameSize(color: .red, bold: true, lineWidth: 2))
10 | }
/Users/admin/builder/spi-builder-workspace/Sources/SwiftUI-VPSwitch/View+DebugFrameSize.swift:4:11: error: 'View' is only available in macOS 10.15 or newer
2 |
3 | @available(iOS 13.0, *)
4 | extension View {
| | `- error: 'View' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing extension
5 | func debugFrameSize() -> some View {
6 | modifier(FrameSize())
/Users/admin/builder/spi-builder-workspace/Sources/SwiftUI-VPSwitch/View+DebugFrameSize.swift:15:25: error: 'blue' is only available in macOS 10.15 or newer
12 |
13 | @available(iOS 13.0, *)
14 | private struct FrameSize: ViewModifier {
| `- note: add @available attribute to enclosing struct
15 | var color: Color = .blue
| `- error: 'blue' is only available in macOS 10.15 or newer
16 | var bold: Bool = false
17 | var lineWidth: CGFloat = 1
/Users/admin/builder/spi-builder-workspace/Sources/SwiftUI-VPSwitch/View+DebugFrameSize.swift:15:16: error: 'Color' is only available in macOS 10.15 or newer
12 |
13 | @available(iOS 13.0, *)
14 | private struct FrameSize: ViewModifier {
| `- note: add @available attribute to enclosing struct
15 | var color: Color = .blue
| `- error: 'Color' is only available in macOS 10.15 or newer
16 | var bold: Bool = false
17 | var lineWidth: CGFloat = 1
/Users/admin/builder/spi-builder-workspace/Sources/SwiftUI-VPSwitch/View+DebugFrameSize.swift:19:41: error: 'View' is only available in macOS 10.15 or newer
12 |
13 | @available(iOS 13.0, *)
14 | private struct FrameSize: ViewModifier {
| `- note: add @available attribute to enclosing struct
15 | var color: Color = .blue
16 | var bold: Bool = false
17 | var lineWidth: CGFloat = 1
18 |
19 | 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
20 | if false && true {
21 | content
/Users/admin/builder/spi-builder-workspace/Sources/SwiftUI-VPSwitch/View+DebugFrameSize.swift:28:32: error: 'GeometryProxy' is only available in macOS 10.15 or newer
12 |
13 | @available(iOS 13.0, *)
14 | private struct FrameSize: ViewModifier {
| `- note: add @available attribute to enclosing struct
15 | var color: Color = .blue
16 | var bold: Bool = false
:
26 | }
27 |
28 | func overlay(for geometry: GeometryProxy) -> some View {
| | `- error: 'GeometryProxy' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing instance method
29 | ZStack(
30 | alignment: Alignment(horizontal: .trailing, vertical: .top)
/Users/admin/builder/spi-builder-workspace/Sources/SwiftUI-VPSwitch/View+DebugFrameSize.swift:28:55: error: 'View' is only available in macOS 10.15 or newer
12 |
13 | @available(iOS 13.0, *)
14 | private struct FrameSize: ViewModifier {
| `- note: add @available attribute to enclosing struct
15 | var color: Color = .blue
16 | var bold: Bool = false
:
26 | }
27 |
28 | func overlay(for geometry: GeometryProxy) -> some View {
| | `- error: 'View' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing instance method
29 | ZStack(
30 | alignment: Alignment(horizontal: .trailing, vertical: .top)
/Users/admin/builder/spi-builder-workspace/Sources/SwiftUI-VPSwitch/View+DebugFrameSize.swift:6: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
2 |
3 | @available(iOS 13.0, *)
4 | extension View {
| `- note: add @available attribute to enclosing extension
5 | func debugFrameSize() -> some View {
| `- note: add @available attribute to enclosing instance method
6 | modifier(FrameSize())
| |- 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
7 | }
8 | func debugFrameSizeHighlighted() -> some View {
/Users/admin/builder/spi-builder-workspace/Sources/SwiftUI-VPSwitch/View+DebugFrameSize.swift:6:9: error: 'modifier' is only available in macOS 10.15 or newer
2 |
3 | @available(iOS 13.0, *)
4 | extension View {
| `- note: add @available attribute to enclosing extension
5 | func debugFrameSize() -> some View {
| `- note: add @available attribute to enclosing instance method
6 | modifier(FrameSize())
| |- error: 'modifier' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
7 | }
8 | func debugFrameSizeHighlighted() -> some View {
/Users/admin/builder/spi-builder-workspace/Sources/SwiftUI-VPSwitch/View+DebugFrameSize.swift:9: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
2 |
3 | @available(iOS 13.0, *)
4 | extension View {
| `- note: add @available attribute to enclosing extension
5 | func debugFrameSize() -> some View {
6 | modifier(FrameSize())
7 | }
8 | func debugFrameSizeHighlighted() -> some View {
| `- note: add @available attribute to enclosing instance method
9 | modifier(FrameSize(color: .red, bold: true, lineWidth: 2))
| |- 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
10 | }
11 | }
/Users/admin/builder/spi-builder-workspace/Sources/SwiftUI-VPSwitch/View+DebugFrameSize.swift:9:9: error: 'modifier' is only available in macOS 10.15 or newer
2 |
3 | @available(iOS 13.0, *)
4 | extension View {
| `- note: add @available attribute to enclosing extension
5 | func debugFrameSize() -> some View {
6 | modifier(FrameSize())
7 | }
8 | func debugFrameSizeHighlighted() -> some View {
| `- note: add @available attribute to enclosing instance method
9 | modifier(FrameSize(color: .red, bold: true, lineWidth: 2))
| |- error: 'modifier' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
10 | }
11 | }
/Users/admin/builder/spi-builder-workspace/Sources/SwiftUI-VPSwitch/View+DebugFrameSize.swift:9:36: error: 'red' is only available in macOS 10.15 or newer
2 |
3 | @available(iOS 13.0, *)
4 | extension View {
| `- note: add @available attribute to enclosing extension
5 | func debugFrameSize() -> some View {
6 | modifier(FrameSize())
7 | }
8 | func debugFrameSizeHighlighted() -> some View {
| `- note: add @available attribute to enclosing instance method
9 | modifier(FrameSize(color: .red, bold: true, lineWidth: 2))
| |- error: 'red' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
10 | }
11 | }
/Users/admin/builder/spi-builder-workspace/Sources/SwiftUI-VPSwitch/View+DebugFrameSize.swift:22:18: error: 'overlay(_:alignment:)' is only available in macOS 10.15 or newer
12 |
13 | @available(iOS 13.0, *)
14 | private struct FrameSize: ViewModifier {
| `- note: add @available attribute to enclosing struct
15 | var color: Color = .blue
16 | var bold: Bool = false
17 | var lineWidth: CGFloat = 1
18 |
19 | func body(content: Content) -> some View {
| `- note: add @available attribute to enclosing instance method
20 | if false && true {
21 | content
22 | .overlay(GeometryReader(content: overlay(for:)))
| |- error: 'overlay(_:alignment:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
23 | } else {
24 | content
/Users/admin/builder/spi-builder-workspace/Sources/SwiftUI-VPSwitch/View+DebugFrameSize.swift:22:26: error: 'GeometryReader' is only available in macOS 10.15 or newer
12 |
13 | @available(iOS 13.0, *)
14 | private struct FrameSize: ViewModifier {
| `- note: add @available attribute to enclosing struct
15 | var color: Color = .blue
16 | var bold: Bool = false
17 | var lineWidth: CGFloat = 1
18 |
19 | func body(content: Content) -> some View {
| `- note: add @available attribute to enclosing instance method
20 | if false && true {
21 | content
22 | .overlay(GeometryReader(content: overlay(for:)))
| |- error: 'GeometryReader' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
23 | } else {
24 | content
/Users/admin/builder/spi-builder-workspace/Sources/SwiftUI-VPSwitch/View+DebugFrameSize.swift:20:26: error: 'buildEither(first:)' is only available in macOS 10.15 or newer
12 |
13 | @available(iOS 13.0, *)
14 | private struct FrameSize: ViewModifier {
| `- note: add @available attribute to enclosing struct
15 | var color: Color = .blue
16 | var bold: Bool = false
17 | var lineWidth: CGFloat = 1
18 |
19 | func body(content: Content) -> some View {
| `- note: add @available attribute to enclosing instance method
20 | if false && true {
| |- error: 'buildEither(first:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
21 | content
22 | .overlay(GeometryReader(content: overlay(for:)))
/Users/admin/builder/spi-builder-workspace/Sources/SwiftUI-VPSwitch/View+DebugFrameSize.swift:23:16: error: 'buildEither(second:)' is only available in macOS 10.15 or newer
12 |
13 | @available(iOS 13.0, *)
14 | private struct FrameSize: ViewModifier {
| `- note: add @available attribute to enclosing struct
15 | var color: Color = .blue
16 | var bold: Bool = false
17 | var lineWidth: CGFloat = 1
18 |
19 | func body(content: Content) -> some View {
| `- note: add @available attribute to enclosing instance method
20 | if false && true {
21 | content
22 | .overlay(GeometryReader(content: overlay(for:)))
23 | } else {
| |- error: 'buildEither(second:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
24 | content
25 | }
/Users/admin/builder/spi-builder-workspace/Sources/SwiftUI-VPSwitch/View+DebugFrameSize.swift:19:46: warning: conformance of '_ConditionalContent<TrueContent, FalseContent>' to 'View' is only available in macOS 10.15 or newer; this is an error in the Swift 6 language mode
12 |
13 | @available(iOS 13.0, *)
14 | private struct FrameSize: ViewModifier {
| `- note: add @available attribute to enclosing struct
15 | var color: Color = .blue
16 | var bold: Bool = false
17 | var lineWidth: CGFloat = 1
18 |
19 | func body(content: Content) -> some View {
| | |- warning: conformance of '_ConditionalContent<TrueContent, FalseContent>' 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 instance method
20 | if false && true {
21 | content
/Users/admin/builder/spi-builder-workspace/Sources/SwiftUI-VPSwitch/View+DebugFrameSize.swift:29:9: error: 'ZStack' is only available in macOS 10.15 or newer
12 |
13 | @available(iOS 13.0, *)
14 | private struct FrameSize: ViewModifier {
| `- note: add @available attribute to enclosing struct
15 | var color: Color = .blue
16 | var bold: Bool = false
:
26 | }
27 |
28 | func overlay(for geometry: GeometryProxy) -> some View {
| `- note: add @available attribute to enclosing instance method
29 | ZStack(
| |- error: 'ZStack' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
30 | alignment: Alignment(horizontal: .trailing, vertical: .top)
31 | ) {
/Users/admin/builder/spi-builder-workspace/Sources/SwiftUI-VPSwitch/View+DebugFrameSize.swift:30:24: error: 'Alignment' is only available in macOS 10.15 or newer
12 |
13 | @available(iOS 13.0, *)
14 | private struct FrameSize: ViewModifier {
| `- note: add @available attribute to enclosing struct
15 | var color: Color = .blue
16 | var bold: Bool = false
:
26 | }
27 |
28 | func overlay(for geometry: GeometryProxy) -> some View {
| `- note: add @available attribute to enclosing instance method
29 | ZStack(
30 | alignment: Alignment(horizontal: .trailing, vertical: .top)
| |- error: 'Alignment' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
31 | ) {
32 | Rectangle()
/Users/admin/builder/spi-builder-workspace/Sources/SwiftUI-VPSwitch/View+DebugFrameSize.swift:30:47: error: 'trailing' is only available in macOS 10.15 or newer
12 |
13 | @available(iOS 13.0, *)
14 | private struct FrameSize: ViewModifier {
| `- note: add @available attribute to enclosing struct
15 | var color: Color = .blue
16 | var bold: Bool = false
:
26 | }
27 |
28 | func overlay(for geometry: GeometryProxy) -> some View {
| `- note: add @available attribute to enclosing instance method
29 | ZStack(
30 | alignment: Alignment(horizontal: .trailing, vertical: .top)
| |- error: 'trailing' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
31 | ) {
32 | Rectangle()
/Users/admin/builder/spi-builder-workspace/Sources/SwiftUI-VPSwitch/View+DebugFrameSize.swift:30:68: error: 'top' is only available in macOS 10.15 or newer
12 |
13 | @available(iOS 13.0, *)
14 | private struct FrameSize: ViewModifier {
| `- note: add @available attribute to enclosing struct
15 | var color: Color = .blue
16 | var bold: Bool = false
:
26 | }
27 |
28 | func overlay(for geometry: GeometryProxy) -> some View {
| `- note: add @available attribute to enclosing instance method
29 | ZStack(
30 | alignment: Alignment(horizontal: .trailing, vertical: .top)
| |- error: 'top' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
31 | ) {
32 | Rectangle()
/Users/admin/builder/spi-builder-workspace/Sources/SwiftUI-VPSwitch/View+DebugFrameSize.swift:31:11: warning: conformance of 'Rectangle' to 'InsettableShape' is only available in macOS 10.15 or newer; this is an error in the Swift 6 language mode
12 |
13 | @available(iOS 13.0, *)
14 | private struct FrameSize: ViewModifier {
| `- note: add @available attribute to enclosing struct
15 | var color: Color = .blue
16 | var bold: Bool = false
:
26 | }
27 |
28 | func overlay(for geometry: GeometryProxy) -> some View {
| `- note: add @available attribute to enclosing instance method
29 | ZStack(
30 | alignment: Alignment(horizontal: .trailing, vertical: .top)
31 | ) {
| |- warning: conformance of 'Rectangle' to 'InsettableShape' 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 | Rectangle()
33 | .strokeBorder(
/Users/admin/builder/spi-builder-workspace/Sources/SwiftUI-VPSwitch/View+DebugFrameSize.swift:32:13: error: 'Rectangle' is only available in macOS 10.15 or newer
12 |
13 | @available(iOS 13.0, *)
14 | private struct FrameSize: ViewModifier {
| `- note: add @available attribute to enclosing struct
15 | var color: Color = .blue
16 | var bold: Bool = false
:
26 | }
27 |
28 | func overlay(for geometry: GeometryProxy) -> some View {
| `- note: add @available attribute to enclosing instance method
29 | ZStack(
30 | alignment: Alignment(horizontal: .trailing, vertical: .top)
31 | ) {
32 | Rectangle()
| |- error: 'Rectangle' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
33 | .strokeBorder(
34 | style: StrokeStyle(lineWidth: lineWidth, dash: [5])
/Users/admin/builder/spi-builder-workspace/Sources/SwiftUI-VPSwitch/View+DebugFrameSize.swift:33:18: error: 'strokeBorder(_:style:antialiased:)' is only available in macOS 14.0 or newer
12 |
13 | @available(iOS 13.0, *)
14 | private struct FrameSize: ViewModifier {
| `- note: add @available attribute to enclosing struct
15 | var color: Color = .blue
16 | var bold: Bool = false
:
26 | }
27 |
28 | func overlay(for geometry: GeometryProxy) -> some View {
| `- note: add @available attribute to enclosing instance method
29 | ZStack(
30 | alignment: Alignment(horizontal: .trailing, vertical: .top)
31 | ) {
32 | Rectangle()
33 | .strokeBorder(
| |- error: 'strokeBorder(_:style:antialiased:)' is only available in macOS 14.0 or newer
| `- note: add 'if #available' version check
34 | style: StrokeStyle(lineWidth: lineWidth, dash: [5])
35 | )
/Users/admin/builder/spi-builder-workspace/Sources/SwiftUI-VPSwitch/View+DebugFrameSize.swift:34:28: error: 'StrokeStyle' is only available in macOS 10.15 or newer
12 |
13 | @available(iOS 13.0, *)
14 | private struct FrameSize: ViewModifier {
| `- note: add @available attribute to enclosing struct
15 | var color: Color = .blue
16 | var bold: Bool = false
:
26 | }
27 |
28 | func overlay(for geometry: GeometryProxy) -> some View {
| `- note: add @available attribute to enclosing instance method
29 | ZStack(
30 | alignment: Alignment(horizontal: .trailing, vertical: .top)
:
32 | Rectangle()
33 | .strokeBorder(
34 | style: StrokeStyle(lineWidth: lineWidth, dash: [5])
| |- error: 'StrokeStyle' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
35 | )
36 | .foregroundColor(color)
/Users/admin/builder/spi-builder-workspace/Sources/SwiftUI-VPSwitch/View+DebugFrameSize.swift:36:18: error: 'foregroundColor' is only available in macOS 10.15 or newer
12 |
13 | @available(iOS 13.0, *)
14 | private struct FrameSize: ViewModifier {
| `- note: add @available attribute to enclosing struct
15 | var color: Color = .blue
16 | var bold: Bool = false
:
26 | }
27 |
28 | func overlay(for geometry: GeometryProxy) -> some View {
| `- note: add @available attribute to enclosing instance method
29 | ZStack(
30 | alignment: Alignment(horizontal: .trailing, vertical: .top)
:
34 | style: StrokeStyle(lineWidth: lineWidth, dash: [5])
35 | )
36 | .foregroundColor(color)
| |- error: 'foregroundColor' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
37 | Text("\(Int(geometry.size.width))x\(Int(geometry.size.height))")
38 | .font(bold ? .caption.bold() : .caption)
/Users/admin/builder/spi-builder-workspace/Sources/SwiftUI-VPSwitch/View+DebugFrameSize.swift:37:13: error: 'Text' is only available in macOS 10.15 or newer
12 |
13 | @available(iOS 13.0, *)
14 | private struct FrameSize: ViewModifier {
| `- note: add @available attribute to enclosing struct
15 | var color: Color = .blue
16 | var bold: Bool = false
:
26 | }
27 |
28 | func overlay(for geometry: GeometryProxy) -> some View {
| `- note: add @available attribute to enclosing instance method
29 | ZStack(
30 | alignment: Alignment(horizontal: .trailing, vertical: .top)
:
35 | )
36 | .foregroundColor(color)
37 | Text("\(Int(geometry.size.width))x\(Int(geometry.size.height))")
| |- error: 'Text' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
38 | .font(bold ? .caption.bold() : .caption)
39 | .foregroundColor(color)
/Users/admin/builder/spi-builder-workspace/Sources/SwiftUI-VPSwitch/View+DebugFrameSize.swift:38:18: error: 'font' is only available in macOS 10.15 or newer
12 |
13 | @available(iOS 13.0, *)
14 | private struct FrameSize: ViewModifier {
| `- note: add @available attribute to enclosing struct
15 | var color: Color = .blue
16 | var bold: Bool = false
:
26 | }
27 |
28 | func overlay(for geometry: GeometryProxy) -> some View {
| `- note: add @available attribute to enclosing instance method
29 | ZStack(
30 | alignment: Alignment(horizontal: .trailing, vertical: .top)
:
36 | .foregroundColor(color)
37 | Text("\(Int(geometry.size.width))x\(Int(geometry.size.height))")
38 | .font(bold ? .caption.bold() : .caption)
| |- error: 'font' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
39 | .foregroundColor(color)
40 | .padding(2)
/Users/admin/builder/spi-builder-workspace/Sources/SwiftUI-VPSwitch/View+DebugFrameSize.swift:38:31: error: 'caption' is only available in macOS 10.15 or newer
12 |
13 | @available(iOS 13.0, *)
14 | private struct FrameSize: ViewModifier {
| `- note: add @available attribute to enclosing struct
15 | var color: Color = .blue
16 | var bold: Bool = false
:
26 | }
27 |
28 | func overlay(for geometry: GeometryProxy) -> some View {
| `- note: add @available attribute to enclosing instance method
29 | ZStack(
30 | alignment: Alignment(horizontal: .trailing, vertical: .top)
:
36 | .foregroundColor(color)
37 | Text("\(Int(geometry.size.width))x\(Int(geometry.size.height))")
38 | .font(bold ? .caption.bold() : .caption)
| |- error: 'caption' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
39 | .foregroundColor(color)
40 | .padding(2)
/Users/admin/builder/spi-builder-workspace/Sources/SwiftUI-VPSwitch/View+DebugFrameSize.swift:38:39: error: 'bold()' is only available in macOS 10.15 or newer
12 |
13 | @available(iOS 13.0, *)
14 | private struct FrameSize: ViewModifier {
| `- note: add @available attribute to enclosing struct
15 | var color: Color = .blue
16 | var bold: Bool = false
:
26 | }
27 |
28 | func overlay(for geometry: GeometryProxy) -> some View {
| `- note: add @available attribute to enclosing instance method
29 | ZStack(
30 | alignment: Alignment(horizontal: .trailing, vertical: .top)
:
36 | .foregroundColor(color)
37 | Text("\(Int(geometry.size.width))x\(Int(geometry.size.height))")
38 | .font(bold ? .caption.bold() : .caption)
| |- error: 'bold()' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
39 | .foregroundColor(color)
40 | .padding(2)
/Users/admin/builder/spi-builder-workspace/Sources/SwiftUI-VPSwitch/View+DebugFrameSize.swift:38:49: error: 'caption' is only available in macOS 10.15 or newer
12 |
13 | @available(iOS 13.0, *)
14 | private struct FrameSize: ViewModifier {
| `- note: add @available attribute to enclosing struct
15 | var color: Color = .blue
16 | var bold: Bool = false
:
26 | }
27 |
28 | func overlay(for geometry: GeometryProxy) -> some View {
| `- note: add @available attribute to enclosing instance method
29 | ZStack(
30 | alignment: Alignment(horizontal: .trailing, vertical: .top)
:
36 | .foregroundColor(color)
37 | Text("\(Int(geometry.size.width))x\(Int(geometry.size.height))")
38 | .font(bold ? .caption.bold() : .caption)
| |- error: 'caption' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
39 | .foregroundColor(color)
40 | .padding(2)
/Users/admin/builder/spi-builder-workspace/Sources/SwiftUI-VPSwitch/View+DebugFrameSize.swift:39:18: error: 'foregroundColor' is only available in macOS 10.15 or newer
12 |
13 | @available(iOS 13.0, *)
14 | private struct FrameSize: ViewModifier {
| `- note: add @available attribute to enclosing struct
15 | var color: Color = .blue
16 | var bold: Bool = false
:
26 | }
27 |
28 | func overlay(for geometry: GeometryProxy) -> some View {
| `- note: add @available attribute to enclosing instance method
29 | ZStack(
30 | alignment: Alignment(horizontal: .trailing, vertical: .top)
:
37 | Text("\(Int(geometry.size.width))x\(Int(geometry.size.height))")
38 | .font(bold ? .caption.bold() : .caption)
39 | .foregroundColor(color)
| |- error: 'foregroundColor' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
40 | .padding(2)
41 | .zIndex(1000)
/Users/admin/builder/spi-builder-workspace/Sources/SwiftUI-VPSwitch/View+DebugFrameSize.swift:40:18: error: 'padding' is only available in macOS 10.15 or newer
12 |
13 | @available(iOS 13.0, *)
14 | private struct FrameSize: ViewModifier {
| `- note: add @available attribute to enclosing struct
15 | var color: Color = .blue
16 | var bold: Bool = false
:
26 | }
27 |
28 | func overlay(for geometry: GeometryProxy) -> some View {
| `- note: add @available attribute to enclosing instance method
29 | ZStack(
30 | alignment: Alignment(horizontal: .trailing, vertical: .top)
:
38 | .font(bold ? .caption.bold() : .caption)
39 | .foregroundColor(color)
40 | .padding(2)
| |- error: 'padding' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
41 | .zIndex(1000)
42 | }
/Users/admin/builder/spi-builder-workspace/Sources/SwiftUI-VPSwitch/View+DebugFrameSize.swift:41:18: error: 'zIndex' is only available in macOS 10.15 or newer
12 |
13 | @available(iOS 13.0, *)
14 | private struct FrameSize: ViewModifier {
| `- note: add @available attribute to enclosing struct
15 | var color: Color = .blue
16 | var bold: Bool = false
:
26 | }
27 |
28 | func overlay(for geometry: GeometryProxy) -> some View {
| `- note: add @available attribute to enclosing instance method
29 | ZStack(
30 | alignment: Alignment(horizontal: .trailing, vertical: .top)
:
39 | .foregroundColor(color)
40 | .padding(2)
41 | .zIndex(1000)
| |- error: 'zIndex' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
42 | }
43 | .allowsHitTesting(false)
/Users/admin/builder/spi-builder-workspace/Sources/SwiftUI-VPSwitch/View+DebugFrameSize.swift:43:10: error: 'allowsHitTesting' is only available in macOS 10.15 or newer
12 |
13 | @available(iOS 13.0, *)
14 | private struct FrameSize: ViewModifier {
| `- note: add @available attribute to enclosing struct
15 | var color: Color = .blue
16 | var bold: Bool = false
:
26 | }
27 |
28 | func overlay(for geometry: GeometryProxy) -> some View {
| `- note: add @available attribute to enclosing instance method
29 | ZStack(
30 | alignment: Alignment(horizontal: .trailing, vertical: .top)
:
41 | .zIndex(1000)
42 | }
43 | .allowsHitTesting(false)
| |- error: 'allowsHitTesting' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
44 | }
45 | }
[8/8] Compiling SwiftUI_VPSwitch SwiftUI_VPSwitch.swift
/Users/admin/builder/spi-builder-workspace/Sources/SwiftUI-VPSwitch/SwiftUI_VPSwitch.swift:17:6: error: 'Binding' is only available in macOS 10.15 or newer
13 |
14 | @available(iOS 14.0, *)
15 | public struct SUIVPSwitch: View {
| `- note: add @available attribute to enclosing struct
16 |
17 | @Binding var isOn: Bool
| `- error: 'Binding' is only available in macOS 10.15 or newer
18 |
19 | public enum BackgroundImageOrder {
/Users/admin/builder/spi-builder-workspace/Sources/SwiftUI-VPSwitch/SwiftUI_VPSwitch.swift:29:30: error: 'Image' is only available in macOS 10.15 or newer
26 |
27 |
28 | public class SUIVPSwitchState {
| `- note: add @available attribute to enclosing class
29 | var backgroundImage: Image? = nil
| `- error: 'Image' is only available in macOS 10.15 or newer
30 | var backgroundColor: Color? = .gray
31 | var foregroundImage: Image? = nil
/Users/admin/builder/spi-builder-workspace/Sources/SwiftUI-VPSwitch/SwiftUI_VPSwitch.swift:30:30: error: 'Color' is only available in macOS 10.15 or newer
26 |
27 |
28 | public class SUIVPSwitchState {
| `- note: add @available attribute to enclosing class
29 | var backgroundImage: Image? = nil
30 | var backgroundColor: Color? = .gray
| `- error: 'Color' is only available in macOS 10.15 or newer
31 | var foregroundImage: Image? = nil
32 | var foregroundColor: Color? = .gray
/Users/admin/builder/spi-builder-workspace/Sources/SwiftUI-VPSwitch/SwiftUI_VPSwitch.swift:30:40: error: 'gray' is only available in macOS 10.15 or newer
26 |
27 |
28 | public class SUIVPSwitchState {
| `- note: add @available attribute to enclosing class
29 | var backgroundImage: Image? = nil
30 | var backgroundColor: Color? = .gray
| `- error: 'gray' is only available in macOS 10.15 or newer
31 | var foregroundImage: Image? = nil
32 | var foregroundColor: Color? = .gray
/Users/admin/builder/spi-builder-workspace/Sources/SwiftUI-VPSwitch/SwiftUI_VPSwitch.swift:31:30: error: 'Image' is only available in macOS 10.15 or newer
26 |
27 |
28 | public class SUIVPSwitchState {
| `- note: add @available attribute to enclosing class
29 | var backgroundImage: Image? = nil
30 | var backgroundColor: Color? = .gray
31 | var foregroundImage: Image? = nil
| `- error: 'Image' is only available in macOS 10.15 or newer
32 | var foregroundColor: Color? = .gray
33 |
/Users/admin/builder/spi-builder-workspace/Sources/SwiftUI-VPSwitch/SwiftUI_VPSwitch.swift:32:30: error: 'Color' is only available in macOS 10.15 or newer
26 |
27 |
28 | public class SUIVPSwitchState {
| `- note: add @available attribute to enclosing class
29 | var backgroundImage: Image? = nil
30 | var backgroundColor: Color? = .gray
31 | var foregroundImage: Image? = nil
32 | var foregroundColor: Color? = .gray
| `- error: 'Color' is only available in macOS 10.15 or newer
33 |
34 | public init(
/Users/admin/builder/spi-builder-workspace/Sources/SwiftUI-VPSwitch/SwiftUI_VPSwitch.swift:32:40: error: 'gray' is only available in macOS 10.15 or newer
26 |
27 |
28 | public class SUIVPSwitchState {
| `- note: add @available attribute to enclosing class
29 | var backgroundImage: Image? = nil
30 | var backgroundColor: Color? = .gray
31 | var foregroundImage: Image? = nil
32 | var foregroundColor: Color? = .gray
| `- error: 'gray' is only available in macOS 10.15 or newer
33 |
34 | public init(
/Users/admin/builder/spi-builder-workspace/Sources/SwiftUI-VPSwitch/SwiftUI_VPSwitch.swift:35:30: error: 'Image' is only available in macOS 10.15 or newer
26 |
27 |
28 | public class SUIVPSwitchState {
| `- note: add @available attribute to enclosing class
29 | var backgroundImage: Image? = nil
30 | var backgroundColor: Color? = .gray
:
32 | var foregroundColor: Color? = .gray
33 |
34 | public init(
| `- note: add @available attribute to enclosing initializer
35 | backgroundImage: Image?,
| `- error: 'Image' is only available in macOS 10.15 or newer
36 | backgroundColor: Color?,
37 | foregroundImage: Image?,
/Users/admin/builder/spi-builder-workspace/Sources/SwiftUI-VPSwitch/SwiftUI_VPSwitch.swift:36:30: error: 'Color' is only available in macOS 10.15 or newer
26 |
27 |
28 | public class SUIVPSwitchState {
| `- note: add @available attribute to enclosing class
29 | var backgroundImage: Image? = nil
30 | var backgroundColor: Color? = .gray
:
32 | var foregroundColor: Color? = .gray
33 |
34 | public init(
| `- note: add @available attribute to enclosing initializer
35 | backgroundImage: Image?,
36 | backgroundColor: Color?,
| `- error: 'Color' is only available in macOS 10.15 or newer
37 | foregroundImage: Image?,
38 | foregroundColor: Color?
/Users/admin/builder/spi-builder-workspace/Sources/SwiftUI-VPSwitch/SwiftUI_VPSwitch.swift:37:30: error: 'Image' is only available in macOS 10.15 or newer
26 |
27 |
28 | public class SUIVPSwitchState {
| `- note: add @available attribute to enclosing class
29 | var backgroundImage: Image? = nil
30 | var backgroundColor: Color? = .gray
:
32 | var foregroundColor: Color? = .gray
33 |
34 | public init(
| `- note: add @available attribute to enclosing initializer
35 | backgroundImage: Image?,
36 | backgroundColor: Color?,
37 | foregroundImage: Image?,
| `- error: 'Image' is only available in macOS 10.15 or newer
38 | foregroundColor: Color?
39 | ) {
/Users/admin/builder/spi-builder-workspace/Sources/SwiftUI-VPSwitch/SwiftUI_VPSwitch.swift:38:30: error: 'Color' is only available in macOS 10.15 or newer
26 |
27 |
28 | public class SUIVPSwitchState {
| `- note: add @available attribute to enclosing class
29 | var backgroundImage: Image? = nil
30 | var backgroundColor: Color? = .gray
:
32 | var foregroundColor: Color? = .gray
33 |
34 | public init(
| `- note: add @available attribute to enclosing initializer
35 | backgroundImage: Image?,
36 | backgroundColor: Color?,
37 | foregroundImage: Image?,
38 | foregroundColor: Color?
| `- error: 'Color' is only available in macOS 10.15 or newer
39 | ) {
40 | self.backgroundImage = backgroundImage
/Users/admin/builder/spi-builder-workspace/Sources/SwiftUI-VPSwitch/SwiftUI_VPSwitch.swift:54:26: error: 'Color' is only available in macOS 10.15 or newer
13 |
14 | @available(iOS 14.0, *)
15 | public struct SUIVPSwitch: View {
| `- note: add @available attribute to enclosing struct
16 |
17 | @Binding var isOn: Bool
:
52 | var state_on: SUIVPSwitchState = .init(
53 | backgroundImage: nil,
54 | backgroundColor: Color(red: 0.7, green: 0.7, blue: 0.7),
| `- error: 'Color' is only available in macOS 10.15 or newer
55 | foregroundImage: nil,
56 | foregroundColor: Color(red: 0.4, green: 1.0, blue: 0.4)
/Users/admin/builder/spi-builder-workspace/Sources/SwiftUI-VPSwitch/SwiftUI_VPSwitch.swift:54:26: error: 'init(_:red:green:blue:opacity:)' is only available in macOS 10.15 or newer
13 |
14 | @available(iOS 14.0, *)
15 | public struct SUIVPSwitch: View {
| `- note: add @available attribute to enclosing struct
16 |
17 | @Binding var isOn: Bool
:
52 | var state_on: SUIVPSwitchState = .init(
53 | backgroundImage: nil,
54 | backgroundColor: Color(red: 0.7, green: 0.7, blue: 0.7),
| `- error: 'init(_:red:green:blue:opacity:)' is only available in macOS 10.15 or newer
55 | foregroundImage: nil,
56 | foregroundColor: Color(red: 0.4, green: 1.0, blue: 0.4)
/Users/admin/builder/spi-builder-workspace/Sources/SwiftUI-VPSwitch/SwiftUI_VPSwitch.swift:56:26: error: 'Color' is only available in macOS 10.15 or newer
13 |
14 | @available(iOS 14.0, *)
15 | public struct SUIVPSwitch: View {
| `- note: add @available attribute to enclosing struct
16 |
17 | @Binding var isOn: Bool
:
54 | backgroundColor: Color(red: 0.7, green: 0.7, blue: 0.7),
55 | foregroundImage: nil,
56 | foregroundColor: Color(red: 0.4, green: 1.0, blue: 0.4)
| `- error: 'Color' is only available in macOS 10.15 or newer
57 | )
58 |
/Users/admin/builder/spi-builder-workspace/Sources/SwiftUI-VPSwitch/SwiftUI_VPSwitch.swift:56:26: error: 'init(_:red:green:blue:opacity:)' is only available in macOS 10.15 or newer
13 |
14 | @available(iOS 14.0, *)
15 | public struct SUIVPSwitch: View {
| `- note: add @available attribute to enclosing struct
16 |
17 | @Binding var isOn: Bool
:
54 | backgroundColor: Color(red: 0.7, green: 0.7, blue: 0.7),
55 | foregroundImage: nil,
56 | foregroundColor: Color(red: 0.4, green: 1.0, blue: 0.4)
| `- error: 'init(_:red:green:blue:opacity:)' is only available in macOS 10.15 or newer
57 | )
58 |
/Users/admin/builder/spi-builder-workspace/Sources/SwiftUI-VPSwitch/SwiftUI_VPSwitch.swift:61:26: error: 'Color' is only available in macOS 10.15 or newer
13 |
14 | @available(iOS 14.0, *)
15 | public struct SUIVPSwitch: View {
| `- note: add @available attribute to enclosing struct
16 |
17 | @Binding var isOn: Bool
:
59 | var state_off: SUIVPSwitchState = .init(
60 | backgroundImage: nil,
61 | backgroundColor: Color(red: 0.75, green: 0.75, blue: 0.75),
| `- error: 'Color' is only available in macOS 10.15 or newer
62 | foregroundImage: nil,
63 | foregroundColor: Color(red: 0.9, green: 0.9, blue: 0.9)
/Users/admin/builder/spi-builder-workspace/Sources/SwiftUI-VPSwitch/SwiftUI_VPSwitch.swift:61:26: error: 'init(_:red:green:blue:opacity:)' is only available in macOS 10.15 or newer
13 |
14 | @available(iOS 14.0, *)
15 | public struct SUIVPSwitch: View {
| `- note: add @available attribute to enclosing struct
16 |
17 | @Binding var isOn: Bool
:
59 | var state_off: SUIVPSwitchState = .init(
60 | backgroundImage: nil,
61 | backgroundColor: Color(red: 0.75, green: 0.75, blue: 0.75),
| `- error: 'init(_:red:green:blue:opacity:)' is only available in macOS 10.15 or newer
62 | foregroundImage: nil,
63 | foregroundColor: Color(red: 0.9, green: 0.9, blue: 0.9)
/Users/admin/builder/spi-builder-workspace/Sources/SwiftUI-VPSwitch/SwiftUI_VPSwitch.swift:63:26: error: 'Color' is only available in macOS 10.15 or newer
13 |
14 | @available(iOS 14.0, *)
15 | public struct SUIVPSwitch: View {
| `- note: add @available attribute to enclosing struct
16 |
17 | @Binding var isOn: Bool
:
61 | backgroundColor: Color(red: 0.75, green: 0.75, blue: 0.75),
62 | foregroundImage: nil,
63 | foregroundColor: Color(red: 0.9, green: 0.9, blue: 0.9)
| `- error: 'Color' is only available in macOS 10.15 or newer
64 | )
65 |
/Users/admin/builder/spi-builder-workspace/Sources/SwiftUI-VPSwitch/SwiftUI_VPSwitch.swift:63:26: error: 'init(_:red:green:blue:opacity:)' is only available in macOS 10.15 or newer
13 |
14 | @available(iOS 14.0, *)
15 | public struct SUIVPSwitch: View {
| `- note: add @available attribute to enclosing struct
16 |
17 | @Binding var isOn: Bool
:
61 | backgroundColor: Color(red: 0.75, green: 0.75, blue: 0.75),
62 | foregroundImage: nil,
63 | foregroundColor: Color(red: 0.9, green: 0.9, blue: 0.9)
| `- error: 'init(_:red:green:blue:opacity:)' is only available in macOS 10.15 or newer
64 | )
65 |
/Users/admin/builder/spi-builder-workspace/Sources/SwiftUI-VPSwitch/SwiftUI_VPSwitch.swift:71:31: error: 'View' is only available in macOS 10.15 or newer
67 |
68 | @available(iOS 14.0, *)
69 | public struct Background: View {
| `- note: add @available attribute to enclosing struct
70 |
71 | public var body: some View {
| | `- error: 'View' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing property
72 | ZStack {
73 |
/Users/admin/builder/spi-builder-workspace/Sources/SwiftUI-VPSwitch/SwiftUI_VPSwitch.swift:81:31: error: 'View' is only available in macOS 10.15 or newer
77 |
78 | @available(iOS 14.0, *)
79 | public struct Button: View {
| `- note: add @available attribute to enclosing struct
80 |
81 | public var body: some View {
| | `- error: 'View' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing property
82 | ZStack {
83 |
/Users/admin/builder/spi-builder-workspace/Sources/SwiftUI-VPSwitch/SwiftUI_VPSwitch.swift:93:15: error: 'Binding' is only available in macOS 10.15 or newer
13 |
14 | @available(iOS 14.0, *)
15 | public struct SUIVPSwitch: View {
| `- note: add @available attribute to enclosing struct
16 |
17 | @Binding var isOn: Bool
:
90 |
91 |
92 | public init(
| `- note: add @available attribute to enclosing initializer
93 | isOn: Binding<Bool>
| `- error: 'Binding' is only available in macOS 10.15 or newer
94 | ) {
95 | self._isOn = isOn
/Users/admin/builder/spi-builder-workspace/Sources/SwiftUI-VPSwitch/SwiftUI_VPSwitch.swift:99:15: error: 'Binding' is only available in macOS 10.15 or newer
13 |
14 | @available(iOS 14.0, *)
15 | public struct SUIVPSwitch: View {
| `- note: add @available attribute to enclosing struct
16 |
17 | @Binding var isOn: Bool
:
96 | }
97 |
98 | public init(
| `- note: add @available attribute to enclosing initializer
99 | isOn: Binding<Bool>,
| `- error: 'Binding' is only available in macOS 10.15 or newer
100 | widgetSize: CGSize?,
101 | widgetForegroundMargin: CGFloat?
/Users/admin/builder/spi-builder-workspace/Sources/SwiftUI-VPSwitch/SwiftUI_VPSwitch.swift:109:15: error: 'Binding' is only available in macOS 10.15 or newer
13 |
14 | @available(iOS 14.0, *)
15 | public struct SUIVPSwitch: View {
| `- note: add @available attribute to enclosing struct
16 |
17 | @Binding var isOn: Bool
:
106 | }
107 |
108 | public init(
| `- note: add @available attribute to enclosing initializer
109 | isOn: Binding<Bool>,
| `- error: 'Binding' is only available in macOS 10.15 or newer
110 | widgetSize: CGSize?,
111 | widgetForegroundMargin: CGFloat?,
/Users/admin/builder/spi-builder-workspace/Sources/SwiftUI-VPSwitch/SwiftUI_VPSwitch.swift:127:27: error: 'View' is only available in macOS 10.15 or newer
13 |
14 | @available(iOS 14.0, *)
15 | public struct SUIVPSwitch: View {
| `- note: add @available attribute to enclosing struct
16 |
17 | @Binding var isOn: Bool
:
125 |
126 |
127 | public var body: some View {
| | `- error: 'View' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing property
128 | ZStack {
129 | VStack(spacing: 0) {
/Users/admin/builder/spi-builder-workspace/Sources/SwiftUI-VPSwitch/SwiftUI_VPSwitch.swift:225:24: error: 'View' is only available in macOS 10.15 or newer
156 | struct SliderView: View {
157 |
158 | struct BackgroundView: View {
| `- note: add @available attribute to enclosing struct
159 |
160 | var position: CGFloat
:
223 |
224 |
225 | var body: some View {
| | `- error: 'View' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing property
226 | ZStack {
227 | RoundedRectangle(cornerRadius: width)
/Users/admin/builder/spi-builder-workspace/Sources/SwiftUI-VPSwitch/SwiftUI_VPSwitch.swift:338:29: error: cannot find type 'UIImage' in scope
336 | var backgroundImageOrder : SUIVPSwitch.BackgroundImageOrder
337 | // @State var imgRes: UIImage?
338 | @State var imgGlow: UIImage?
| `- error: cannot find type 'UIImage' in scope
339 |
340 | var body: some View {
/Users/admin/builder/spi-builder-workspace/Sources/SwiftUI-VPSwitch/SwiftUI_VPSwitch.swift:338:10: error: 'State' is only available in macOS 10.15 or newer
327 |
328 |
329 | struct ForegroundIconView: View {
| |- note: add @available attribute to enclosing struct
| `- note: add @available attribute to enclosing struct
330 |
331 | var position: CGFloat
:
336 | var backgroundImageOrder : SUIVPSwitch.BackgroundImageOrder
337 | // @State var imgRes: UIImage?
338 | @State var imgGlow: UIImage?
| `- error: 'State' is only available in macOS 10.15 or newer
339 |
340 | var body: some View {
/Users/admin/builder/spi-builder-workspace/Sources/SwiftUI-VPSwitch/SwiftUI_VPSwitch.swift:340:24: error: 'View' is only available in macOS 10.15 or newer
327 |
328 |
329 | struct ForegroundIconView: View {
| `- note: add @available attribute to enclosing struct
330 |
331 | var position: CGFloat
:
338 | @State var imgGlow: UIImage?
339 |
340 | var body: some View {
| | `- error: 'View' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing property
341 | ZStack {
342 |
/Users/admin/builder/spi-builder-workspace/Sources/SwiftUI-VPSwitch/SwiftUI_VPSwitch.swift:441:6: error: 'GestureState' is only available in macOS 10.15 or newer
154 |
155 | @available(iOS 14.0, *)
156 | struct SliderView: View {
| `- note: add @available attribute to enclosing struct
157 |
158 | struct BackgroundView: View {
:
439 |
440 |
441 | @GestureState private var dragOffset: CGSize = .zero
| `- error: 'GestureState' is only available in macOS 10.15 or newer
442 | @State private var position: CGFloat = 0
443 | @State private var isDragging = false
/Users/admin/builder/spi-builder-workspace/Sources/SwiftUI-VPSwitch/SwiftUI_VPSwitch.swift:442:6: error: 'State' is only available in macOS 10.15 or newer
154 |
155 | @available(iOS 14.0, *)
156 | struct SliderView: View {
| `- note: add @available attribute to enclosing struct
157 |
158 | struct BackgroundView: View {
:
440 |
441 | @GestureState private var dragOffset: CGSize = .zero
442 | @State private var position: CGFloat = 0
| `- error: 'State' is only available in macOS 10.15 or newer
443 | @State private var isDragging = false
444 |
/Users/admin/builder/spi-builder-workspace/Sources/SwiftUI-VPSwitch/SwiftUI_VPSwitch.swift:443:6: error: 'State' is only available in macOS 10.15 or newer
154 |
155 | @available(iOS 14.0, *)
156 | struct SliderView: View {
| `- note: add @available attribute to enclosing struct
157 |
158 | struct BackgroundView: View {
:
441 | @GestureState private var dragOffset: CGSize = .zero
442 | @State private var position: CGFloat = 0
443 | @State private var isDragging = false
| `- error: 'State' is only available in macOS 10.15 or newer
444 |
445 | @Binding var isOn: Bool
/Users/admin/builder/spi-builder-workspace/Sources/SwiftUI-VPSwitch/SwiftUI_VPSwitch.swift:445:6: error: 'Binding' is only available in macOS 10.15 or newer
154 |
155 | @available(iOS 14.0, *)
156 | struct SliderView: View {
| `- note: add @available attribute to enclosing struct
157 |
158 | struct BackgroundView: View {
:
443 | @State private var isDragging = false
444 |
445 | @Binding var isOn: Bool
| `- error: 'Binding' is only available in macOS 10.15 or newer
446 | var widgetSize: CGSize
447 | var widgetForegroundMargin: CGFloat
/Users/admin/builder/spi-builder-workspace/Sources/SwiftUI-VPSwitch/SwiftUI_VPSwitch.swift:453:20: error: 'View' is only available in macOS 10.15 or newer
154 |
155 | @available(iOS 14.0, *)
156 | struct SliderView: View {
| `- note: add @available attribute to enclosing struct
157 |
158 | struct BackgroundView: View {
:
451 |
452 |
453 | var body: some View {
| | `- error: 'View' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing property
454 | ZStack {
455 |
/Users/admin/builder/spi-builder-workspace/Sources/SwiftUI-VPSwitch/SwiftUI_VPSwitch.swift:564:6: error: 'State' is only available in macOS 10.15 or newer
560 |
561 | @available(iOS 14.0, *)
562 | struct ContentView: View {
| `- note: add @available attribute to enclosing struct
563 |
564 | @State var isOn: Bool = false
| `- error: 'State' is only available in macOS 10.15 or newer
565 |
566 | var body: some View {
/Users/admin/builder/spi-builder-workspace/Sources/SwiftUI-VPSwitch/SwiftUI_VPSwitch.swift:566:20: error: 'View' is only available in macOS 10.15 or newer
560 |
561 | @available(iOS 14.0, *)
562 | struct ContentView: View {
| `- note: add @available attribute to enclosing struct
563 |
564 | @State var isOn: Bool = false
565 |
566 | var body: some View {
| | `- error: 'View' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing property
567 | VStack {
568 | Text("Drag the slider")
/Users/admin/builder/spi-builder-workspace/Sources/SwiftUI-VPSwitch/SwiftUI_VPSwitch.swift:581:31: error: 'View' is only available in macOS 10.15 or newer
578 |
579 | @available(iOS 14.0, *)
580 | struct ContentView_Previews: PreviewProvider {
| `- note: add @available attribute to enclosing struct
581 | static var previews: some View {
| | `- error: 'View' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing static property
582 | ContentView()
583 | }
/Users/admin/builder/spi-builder-workspace/Sources/SwiftUI-VPSwitch/SwiftUI_VPSwitch.swift:589:27: error: 'Color' is only available in macOS 10.15 or newer
587 |
588 | @available(iOS 14.0, *)
589 | func lerpColor(fromColor: Color, toColor: Color, weight: CGFloat) -> Color {
| | `- error: 'Color' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing global function
590 | let fromComponents = fromColor.components()
591 | let toComponents = toColor.components()
/Users/admin/builder/spi-builder-workspace/Sources/SwiftUI-VPSwitch/SwiftUI_VPSwitch.swift:589:43: error: 'Color' is only available in macOS 10.15 or newer
587 |
588 | @available(iOS 14.0, *)
589 | func lerpColor(fromColor: Color, toColor: Color, weight: CGFloat) -> Color {
| | `- error: 'Color' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing global function
590 | let fromComponents = fromColor.components()
591 | let toComponents = toColor.components()
/Users/admin/builder/spi-builder-workspace/Sources/SwiftUI-VPSwitch/SwiftUI_VPSwitch.swift:589:70: error: 'Color' is only available in macOS 10.15 or newer
587 |
588 | @available(iOS 14.0, *)
589 | func lerpColor(fromColor: Color, toColor: Color, weight: CGFloat) -> Color {
| | `- error: 'Color' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing global function
590 | let fromComponents = fromColor.components()
591 | let toComponents = toColor.components()
/Users/admin/builder/spi-builder-workspace/Sources/SwiftUI-VPSwitch/SwiftUI_VPSwitch.swift:602:11: error: 'Color' is only available in macOS 10.15 or newer
600 |
601 | @available(iOS 14.0, *)
602 | extension Color {
| | `- error: 'Color' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing extension
603 | func components() -> (red: CGFloat, green: CGFloat, blue: CGFloat, alpha: CGFloat) {
604 | let uiColor = UIColor(self)
/Users/admin/builder/spi-builder-workspace/Sources/SwiftUI-VPSwitch/SwiftUI_VPSwitch.swift:72:13: error: 'ZStack' is only available in macOS 10.15 or newer
67 |
68 | @available(iOS 14.0, *)
69 | public struct Background: View {
| `- note: add @available attribute to enclosing struct
70 |
71 | public var body: some View {
| `- note: add @available attribute to enclosing property
72 | ZStack {
| |- error: 'ZStack' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
73 |
74 | }
/Users/admin/builder/spi-builder-workspace/Sources/SwiftUI-VPSwitch/SwiftUI_VPSwitch.swift:82:13: error: 'ZStack' is only available in macOS 10.15 or newer
77 |
78 | @available(iOS 14.0, *)
79 | public struct Button: View {
| `- note: add @available attribute to enclosing struct
80 |
81 | public var body: some View {
| `- note: add @available attribute to enclosing property
82 | ZStack {
| |- error: 'ZStack' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
83 |
84 | }
/Users/admin/builder/spi-builder-workspace/Sources/SwiftUI-VPSwitch/SwiftUI_VPSwitch.swift:128:9: error: 'ZStack' is only available in macOS 10.15 or newer
13 |
14 | @available(iOS 14.0, *)
15 | public struct SUIVPSwitch: View {
| `- note: add @available attribute to enclosing struct
16 |
17 | @Binding var isOn: Bool
:
125 |
126 |
127 | public var body: some View {
| `- note: add @available attribute to enclosing property
128 | ZStack {
| |- error: 'ZStack' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
129 | VStack(spacing: 0) {
130 | SliderView(
/Users/admin/builder/spi-builder-workspace/Sources/SwiftUI-VPSwitch/SwiftUI_VPSwitch.swift:129:13: error: 'VStack' is only available in macOS 10.15 or newer
13 |
14 | @available(iOS 14.0, *)
15 | public struct SUIVPSwitch: View {
| `- note: add @available attribute to enclosing struct
16 |
17 | @Binding var isOn: Bool
:
125 |
126 |
127 | public var body: some View {
| `- note: add @available attribute to enclosing property
128 | ZStack {
129 | VStack(spacing: 0) {
| |- error: 'VStack' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
130 | SliderView(
131 | isOn: $isOn,
/Users/admin/builder/spi-builder-workspace/Sources/SwiftUI-VPSwitch/SwiftUI_VPSwitch.swift:141:10: error: 'onAppear(perform:)' is only available in macOS 10.15 or newer
13 |
14 | @available(iOS 14.0, *)
15 | public struct SUIVPSwitch: View {
| `- note: add @available attribute to enclosing struct
16 |
17 | @Binding var isOn: Bool
:
125 |
126 |
127 | public var body: some View {
| `- note: add @available attribute to enclosing property
128 | ZStack {
129 | VStack(spacing: 0) {
:
139 | }
140 | // .animation(.default, value: toastObs.items)
141 | .onAppear {
| |- error: 'onAppear(perform:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
142 | // toastObs.initialize()
143 | }
/Users/admin/builder/spi-builder-workspace/Sources/SwiftUI-VPSwitch/SwiftUI_VPSwitch.swift:144:10: error: 'onDisappear(perform:)' is only available in macOS 10.15 or newer
13 |
14 | @available(iOS 14.0, *)
15 | public struct SUIVPSwitch: View {
| `- note: add @available attribute to enclosing struct
16 |
17 | @Binding var isOn: Bool
:
125 |
126 |
127 | public var body: some View {
| `- note: add @available attribute to enclosing property
128 | ZStack {
129 | VStack(spacing: 0) {
:
142 | // toastObs.initialize()
143 | }
144 | .onDisappear {
| |- error: 'onDisappear(perform:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
145 | // toastObs.uninitialize()
146 | }
/Users/admin/builder/spi-builder-workspace/Sources/SwiftUI-VPSwitch/SwiftUI_VPSwitch.swift:226:13: error: 'ZStack' is only available in macOS 10.15 or newer
156 | struct SliderView: View {
157 |
158 | struct BackgroundView: View {
| `- note: add @available attribute to enclosing struct
159 |
160 | var position: CGFloat
:
223 |
224 |
225 | var body: some View {
| `- note: add @available attribute to enclosing property
226 | ZStack {
| |- error: 'ZStack' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
227 | RoundedRectangle(cornerRadius: width)
228 | .fill(.white.opacity(0.8))
/Users/admin/builder/spi-builder-workspace/Sources/SwiftUI-VPSwitch/SwiftUI_VPSwitch.swift:226:20: 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
156 | struct SliderView: View {
157 |
158 | struct BackgroundView: View {
| `- note: add @available attribute to enclosing struct
159 |
160 | var position: CGFloat
:
223 |
224 |
225 | var body: some View {
| `- note: add @available attribute to enclosing property
226 | ZStack {
| |- 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
227 | RoundedRectangle(cornerRadius: width)
228 | .fill(.white.opacity(0.8))
/Users/admin/builder/spi-builder-workspace/Sources/SwiftUI-VPSwitch/SwiftUI_VPSwitch.swift:226:20: warning: conformance of '_ConditionalContent<TrueContent, FalseContent>' to 'View' is only available in macOS 10.15 or newer; this is an error in the Swift 6 language mode
156 | struct SliderView: View {
157 |
158 | struct BackgroundView: View {
| `- note: add @available attribute to enclosing struct
159 |
160 | var position: CGFloat
:
223 |
224 |
225 | var body: some View {
| `- note: add @available attribute to enclosing property
226 | ZStack {
| |- warning: conformance of '_ConditionalContent<TrueContent, FalseContent>' 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
227 | RoundedRectangle(cornerRadius: width)
228 | .fill(.white.opacity(0.8))
/Users/admin/builder/spi-builder-workspace/Sources/SwiftUI-VPSwitch/SwiftUI_VPSwitch.swift:227:17: error: 'RoundedRectangle' is only available in macOS 10.15 or newer
156 | struct SliderView: View {
157 |
158 | struct BackgroundView: View {
| `- note: add @available attribute to enclosing struct
159 |
160 | var position: CGFloat
:
223 |
224 |
225 | var body: some View {
| `- note: add @available attribute to enclosing property
226 | ZStack {
227 | RoundedRectangle(cornerRadius: width)
| |- error: 'RoundedRectangle' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
228 | .fill(.white.opacity(0.8))
229 | .frame(minWidth: 0, maxWidth: .infinity,
/Users/admin/builder/spi-builder-workspace/Sources/SwiftUI-VPSwitch/SwiftUI_VPSwitch.swift:228:22: error: 'fill(_:style:)' is only available in macOS 14.0 or newer
156 | struct SliderView: View {
157 |
158 | struct BackgroundView: View {
| `- note: add @available attribute to enclosing struct
159 |
160 | var position: CGFloat
:
223 |
224 |
225 | var body: some View {
| `- note: add @available attribute to enclosing property
226 | ZStack {
227 | RoundedRectangle(cornerRadius: width)
228 | .fill(.white.opacity(0.8))
| |- error: 'fill(_:style:)' is only available in macOS 14.0 or newer
| `- note: add 'if #available' version check
229 | .frame(minWidth: 0, maxWidth: .infinity,
230 | minHeight: 0, maxHeight: .infinity)
/Users/admin/builder/spi-builder-workspace/Sources/SwiftUI-VPSwitch/SwiftUI_VPSwitch.swift:228:28: error: 'white' is only available in macOS 10.15 or newer
156 | struct SliderView: View {
157 |
158 | struct BackgroundView: View {
| `- note: add @available attribute to enclosing struct
159 |
160 | var position: CGFloat
:
223 |
224 |
225 | var body: some View {
| `- note: add @available attribute to enclosing property
226 | ZStack {
227 | RoundedRectangle(cornerRadius: width)
228 | .fill(.white.opacity(0.8))
| |- error: 'white' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
229 | .frame(minWidth: 0, maxWidth: .infinity,
230 | minHeight: 0, maxHeight: .infinity)
/Users/admin/builder/spi-builder-workspace/Sources/SwiftUI-VPSwitch/SwiftUI_VPSwitch.swift:228:34: error: 'opacity' is only available in macOS 12.0 or newer
156 | struct SliderView: View {
157 |
158 | struct BackgroundView: View {
| `- note: add @available attribute to enclosing struct
159 |
160 | var position: CGFloat
:
223 |
224 |
225 | var body: some View {
| `- note: add @available attribute to enclosing property
226 | ZStack {
227 | RoundedRectangle(cornerRadius: width)
228 | .fill(.white.opacity(0.8))
| |- error: 'opacity' is only available in macOS 12.0 or newer
| `- note: add 'if #available' version check
229 | .frame(minWidth: 0, maxWidth: .infinity,
230 | minHeight: 0, maxHeight: .infinity)
/Users/admin/builder/spi-builder-workspace/Sources/SwiftUI-VPSwitch/SwiftUI_VPSwitch.swift:229:22: error: 'frame(minWidth:idealWidth:maxWidth:minHeight:idealHeight:maxHeight:alignment:)' is only available in macOS 10.15 or newer
156 | struct SliderView: View {
157 |
158 | struct BackgroundView: View {
| `- note: add @available attribute to enclosing struct
159 |
160 | var position: CGFloat
:
223 |
224 |
225 | var body: some View {
| `- note: add @available attribute to enclosing property
226 | ZStack {
227 | RoundedRectangle(cornerRadius: width)
228 | .fill(.white.opacity(0.8))
229 | .frame(minWidth: 0, maxWidth: .infinity,
| |- error: 'frame(minWidth:idealWidth:maxWidth:minHeight:idealHeight:maxHeight:alignment:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
230 | minHeight: 0, maxHeight: .infinity)
231 | .offset(.init(width: 0, height: 2))
/Users/admin/builder/spi-builder-workspace/Sources/SwiftUI-VPSwitch/SwiftUI_VPSwitch.swift:231:22: error: 'offset' is only available in macOS 10.15 or newer
156 | struct SliderView: View {
157 |
158 | struct BackgroundView: View {
| `- note: add @available attribute to enclosing struct
159 |
160 | var position: CGFloat
:
223 |
224 |
225 | var body: some View {
| `- note: add @available attribute to enclosing property
226 | ZStack {
227 | RoundedRectangle(cornerRadius: width)
:
229 | .frame(minWidth: 0, maxWidth: .infinity,
230 | minHeight: 0, maxHeight: .infinity)
231 | .offset(.init(width: 0, height: 2))
| |- error: 'offset' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
232 |
233 | RoundedRectangle(cornerRadius: width)
/Users/admin/builder/spi-builder-workspace/Sources/SwiftUI-VPSwitch/SwiftUI_VPSwitch.swift:233:17: error: 'RoundedRectangle' is only available in macOS 10.15 or newer
156 | struct SliderView: View {
157 |
158 | struct BackgroundView: View {
| `- note: add @available attribute to enclosing struct
159 |
160 | var position: CGFloat
:
223 |
224 |
225 | var body: some View {
| `- note: add @available attribute to enclosing property
226 | ZStack {
227 | RoundedRectangle(cornerRadius: width)
:
231 | .offset(.init(width: 0, height: 2))
232 |
233 | RoundedRectangle(cornerRadius: width)
| |- error: 'RoundedRectangle' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
234 | .fill(.black.opacity(0.2))
235 | .frame(minWidth: 0, maxWidth: .infinity,
/Users/admin/builder/spi-builder-workspace/Sources/SwiftUI-VPSwitch/SwiftUI_VPSwitch.swift:234:22: error: 'fill(_:style:)' is only available in macOS 14.0 or newer
156 | struct SliderView: View {
157 |
158 | struct BackgroundView: View {
| `- note: add @available attribute to enclosing struct
159 |
160 | var position: CGFloat
:
223 |
224 |
225 | var body: some View {
| `- note: add @available attribute to enclosing property
226 | ZStack {
227 | RoundedRectangle(cornerRadius: width)
:
232 |
233 | RoundedRectangle(cornerRadius: width)
234 | .fill(.black.opacity(0.2))
| |- error: 'fill(_:style:)' is only available in macOS 14.0 or newer
| `- note: add 'if #available' version check
235 | .frame(minWidth: 0, maxWidth: .infinity,
236 | minHeight: 0, maxHeight: .infinity)
/Users/admin/builder/spi-builder-workspace/Sources/SwiftUI-VPSwitch/SwiftUI_VPSwitch.swift:234:28: error: 'black' is only available in macOS 10.15 or newer
156 | struct SliderView: View {
157 |
158 | struct BackgroundView: View {
| `- note: add @available attribute to enclosing struct
159 |
160 | var position: CGFloat
:
223 |
224 |
225 | var body: some View {
| `- note: add @available attribute to enclosing property
226 | ZStack {
227 | RoundedRectangle(cornerRadius: width)
:
232 |
233 | RoundedRectangle(cornerRadius: width)
234 | .fill(.black.opacity(0.2))
| |- error: 'black' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
235 | .frame(minWidth: 0, maxWidth: .infinity,
236 | minHeight: 0, maxHeight: .infinity)
/Users/admin/builder/spi-builder-workspace/Sources/SwiftUI-VPSwitch/SwiftUI_VPSwitch.swift:234:34: error: 'opacity' is only available in macOS 12.0 or newer
156 | struct SliderView: View {
157 |
158 | struct BackgroundView: View {
| `- note: add @available attribute to enclosing struct
159 |
160 | var position: CGFloat
:
223 |
224 |
225 | var body: some View {
| `- note: add @available attribute to enclosing property
226 | ZStack {
227 | RoundedRectangle(cornerRadius: width)
:
232 |
233 | RoundedRectangle(cornerRadius: width)
234 | .fill(.black.opacity(0.2))
| |- error: 'opacity' is only available in macOS 12.0 or newer
| `- note: add 'if #available' version check
235 | .frame(minWidth: 0, maxWidth: .infinity,
236 | minHeight: 0, maxHeight: .infinity)
/Users/admin/builder/spi-builder-workspace/Sources/SwiftUI-VPSwitch/SwiftUI_VPSwitch.swift:235:22: error: 'frame(minWidth:idealWidth:maxWidth:minHeight:idealHeight:maxHeight:alignment:)' is only available in macOS 10.15 or newer
156 | struct SliderView: View {
157 |
158 | struct BackgroundView: View {
| `- note: add @available attribute to enclosing struct
159 |
160 | var position: CGFloat
:
223 |
224 |
225 | var body: some View {
| `- note: add @available attribute to enclosing property
226 | ZStack {
227 | RoundedRectangle(cornerRadius: width)
:
233 | RoundedRectangle(cornerRadius: width)
234 | .fill(.black.opacity(0.2))
235 | .frame(minWidth: 0, maxWidth: .infinity,
| |- error: 'frame(minWidth:idealWidth:maxWidth:minHeight:idealHeight:maxHeight:alignment:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
236 | minHeight: 0, maxHeight: .infinity)
237 | .offset(.init(width: 0, height: -2))
/Users/admin/builder/spi-builder-workspace/Sources/SwiftUI-VPSwitch/SwiftUI_VPSwitch.swift:237:22: error: 'offset' is only available in macOS 10.15 or newer
156 | struct SliderView: View {
157 |
158 | struct BackgroundView: View {
| `- note: add @available attribute to enclosing struct
159 |
160 | var position: CGFloat
:
223 |
224 |
225 | var body: some View {
| `- note: add @available attribute to enclosing property
226 | ZStack {
227 | RoundedRectangle(cornerRadius: width)
:
235 | .frame(minWidth: 0, maxWidth: .infinity,
236 | minHeight: 0, maxHeight: .infinity)
237 | .offset(.init(width: 0, height: -2))
| |- error: 'offset' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
238 |
239 | RoundedRectangle(cornerRadius: width)
/Users/admin/builder/spi-builder-workspace/Sources/SwiftUI-VPSwitch/SwiftUI_VPSwitch.swift:239:17: error: 'RoundedRectangle' is only available in macOS 10.15 or newer
156 | struct SliderView: View {
157 |
158 | struct BackgroundView: View {
| `- note: add @available attribute to enclosing struct
159 |
160 | var position: CGFloat
:
223 |
224 |
225 | var body: some View {
| `- note: add @available attribute to enclosing property
226 | ZStack {
227 | RoundedRectangle(cornerRadius: width)
:
237 | .offset(.init(width: 0, height: -2))
238 |
239 | RoundedRectangle(cornerRadius: width)
| |- error: 'RoundedRectangle' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
240 | .fill(lerpColor(fromColor: state_off.backgroundColor ?? .gray, toColor: state_on.backgroundColor ?? .gray, weight: position))
241 | .frame(minWidth: 0, maxWidth: .infinity,
/Users/admin/builder/spi-builder-workspace/Sources/SwiftUI-VPSwitch/SwiftUI_VPSwitch.swift:240:22: error: 'fill(_:style:)' is only available in macOS 14.0 or newer
156 | struct SliderView: View {
157 |
158 | struct BackgroundView: View {
| `- note: add @available attribute to enclosing struct
159 |
160 | var position: CGFloat
:
223 |
224 |
225 | var body: some View {
| `- note: add @available attribute to enclosing property
226 | ZStack {
227 | RoundedRectangle(cornerRadius: width)
:
238 |
239 | RoundedRectangle(cornerRadius: width)
240 | .fill(lerpColor(fromColor: state_off.backgroundColor ?? .gray, toColor: state_on.backgroundColor ?? .gray, weight: position))
| |- error: 'fill(_:style:)' is only available in macOS 14.0 or newer
| `- note: add 'if #available' version check
241 | .frame(minWidth: 0, maxWidth: .infinity,
242 | minHeight: 0, maxHeight: .infinity)
/Users/admin/builder/spi-builder-workspace/Sources/SwiftUI-VPSwitch/SwiftUI_VPSwitch.swift:240:78: error: 'gray' is only available in macOS 10.15 or newer
156 | struct SliderView: View {
157 |
158 | struct BackgroundView: View {
| `- note: add @available attribute to enclosing struct
159 |
160 | var position: CGFloat
:
223 |
224 |
225 | var body: some View {
| `- note: add @available attribute to enclosing property
226 | ZStack {
227 | RoundedRectangle(cornerRadius: width)
:
238 |
239 | RoundedRectangle(cornerRadius: width)
240 | .fill(lerpColor(fromColor: state_off.backgroundColor ?? .gray, toColor: state_on.backgroundColor ?? .gray, weight: position))
| |- error: 'gray' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
241 | .frame(minWidth: 0, maxWidth: .infinity,
242 | minHeight: 0, maxHeight: .infinity)
/Users/admin/builder/spi-builder-workspace/Sources/SwiftUI-VPSwitch/SwiftUI_VPSwitch.swift:240:122: error: 'gray' is only available in macOS 10.15 or newer
156 | struct SliderView: View {
157 |
158 | struct BackgroundView: View {
| `- note: add @available attribute to enclosing struct
159 |
160 | var position: CGFloat
:
223 |
224 |
225 | var body: some View {
| `- note: add @available attribute to enclosing property
226 | ZStack {
227 | RoundedRectangle(cornerRadius: width)
:
238 |
239 | RoundedRectangle(cornerRadius: width)
240 | .fill(lerpColor(fromColor: state_off.backgroundColor ?? .gray, toColor: state_on.backgroundColor ?? .gray, weight: position))
| |- error: 'gray' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
241 | .frame(minWidth: 0, maxWidth: .infinity,
242 | minHeight: 0, maxHeight: .infinity)
/Users/admin/builder/spi-builder-workspace/Sources/SwiftUI-VPSwitch/SwiftUI_VPSwitch.swift:241:22: error: 'frame(minWidth:idealWidth:maxWidth:minHeight:idealHeight:maxHeight:alignment:)' is only available in macOS 10.15 or newer
156 | struct SliderView: View {
157 |
158 | struct BackgroundView: View {
| `- note: add @available attribute to enclosing struct
159 |
160 | var position: CGFloat
:
223 |
224 |
225 | var body: some View {
| `- note: add @available attribute to enclosing property
226 | ZStack {
227 | RoundedRectangle(cornerRadius: width)
:
239 | RoundedRectangle(cornerRadius: width)
240 | .fill(lerpColor(fromColor: state_off.backgroundColor ?? .gray, toColor: state_on.backgroundColor ?? .gray, weight: position))
241 | .frame(minWidth: 0, maxWidth: .infinity,
| |- error: 'frame(minWidth:idealWidth:maxWidth:minHeight:idealHeight:maxHeight:alignment:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
242 | minHeight: 0, maxHeight: .infinity)
243 | .overlay(
/Users/admin/builder/spi-builder-workspace/Sources/SwiftUI-VPSwitch/SwiftUI_VPSwitch.swift:243:22: error: 'overlay(_:alignment:)' is only available in macOS 10.15 or newer
156 | struct SliderView: View {
157 |
158 | struct BackgroundView: View {
| `- note: add @available attribute to enclosing struct
159 |
160 | var position: CGFloat
:
223 |
224 |
225 | var body: some View {
| `- note: add @available attribute to enclosing property
226 | ZStack {
227 | RoundedRectangle(cornerRadius: width)
:
241 | .frame(minWidth: 0, maxWidth: .infinity,
242 | minHeight: 0, maxHeight: .infinity)
243 | .overlay(
| |- error: 'overlay(_:alignment:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
244 | RoundedRectangle(cornerRadius: width)
245 | .stroke(.black.opacity(0.2))
/Users/admin/builder/spi-builder-workspace/Sources/SwiftUI-VPSwitch/SwiftUI_VPSwitch.swift:244:25: error: 'RoundedRectangle' is only available in macOS 10.15 or newer
156 | struct SliderView: View {
157 |
158 | struct BackgroundView: View {
| `- note: add @available attribute to enclosing struct
159 |
160 | var position: CGFloat
:
223 |
224 |
225 | var body: some View {
| `- note: add @available attribute to enclosing property
226 | ZStack {
227 | RoundedRectangle(cornerRadius: width)
:
242 | minHeight: 0, maxHeight: .infinity)
243 | .overlay(
244 | RoundedRectangle(cornerRadius: width)
| |- error: 'RoundedRectangle' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
245 | .stroke(.black.opacity(0.2))
246 | // .fill(.clear)
/Users/admin/builder/spi-builder-workspace/Sources/SwiftUI-VPSwitch/SwiftUI_VPSwitch.swift:245:30: error: 'stroke(_:lineWidth:antialiased:)' is only available in macOS 14.0 or newer
156 | struct SliderView: View {
157 |
158 | struct BackgroundView: View {
| `- note: add @available attribute to enclosing struct
159 |
160 | var position: CGFloat
:
223 |
224 |
225 | var body: some View {
| `- note: add @available attribute to enclosing property
226 | ZStack {
227 | RoundedRectangle(cornerRadius: width)
:
243 | .overlay(
244 | RoundedRectangle(cornerRadius: width)
245 | .stroke(.black.opacity(0.2))
| |- error: 'stroke(_:lineWidth:antialiased:)' is only available in macOS 14.0 or newer
| `- note: add 'if #available' version check
246 | // .fill(.clear)
247 | .shadow(color: Color(red: 0/255, green: 0/255, blue: 0/255),
/Users/admin/builder/spi-builder-workspace/Sources/SwiftUI-VPSwitch/SwiftUI_VPSwitch.swift:245:38: error: 'black' is only available in macOS 10.15 or newer
156 | struct SliderView: View {
157 |
158 | struct BackgroundView: View {
| `- note: add @available attribute to enclosing struct
159 |
160 | var position: CGFloat
:
223 |
224 |
225 | var body: some View {
| `- note: add @available attribute to enclosing property
226 | ZStack {
227 | RoundedRectangle(cornerRadius: width)
:
243 | .overlay(
244 | RoundedRectangle(cornerRadius: width)
245 | .stroke(.black.opacity(0.2))
| |- error: 'black' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
246 | // .fill(.clear)
247 | .shadow(color: Color(red: 0/255, green: 0/255, blue: 0/255),
/Users/admin/builder/spi-builder-workspace/Sources/SwiftUI-VPSwitch/SwiftUI_VPSwitch.swift:245:44: error: 'opacity' is only available in macOS 12.0 or newer
156 | struct SliderView: View {
157 |
158 | struct BackgroundView: View {
| `- note: add @available attribute to enclosing struct
159 |
160 | var position: CGFloat
:
223 |
224 |
225 | var body: some View {
| `- note: add @available attribute to enclosing property
226 | ZStack {
227 | RoundedRectangle(cornerRadius: width)
:
243 | .overlay(
244 | RoundedRectangle(cornerRadius: width)
245 | .stroke(.black.opacity(0.2))
| |- error: 'opacity' is only available in macOS 12.0 or newer
| `- note: add 'if #available' version check
246 | // .fill(.clear)
247 | .shadow(color: Color(red: 0/255, green: 0/255, blue: 0/255),
/Users/admin/builder/spi-builder-workspace/Sources/SwiftUI-VPSwitch/SwiftUI_VPSwitch.swift:247:30: error: 'shadow(color:radius:x:y:)' is only available in macOS 10.15 or newer
156 | struct SliderView: View {
157 |
158 | struct BackgroundView: View {
| `- note: add @available attribute to enclosing struct
159 |
160 | var position: CGFloat
:
223 |
224 |
225 | var body: some View {
| `- note: add @available attribute to enclosing property
226 | ZStack {
227 | RoundedRectangle(cornerRadius: width)
:
245 | .stroke(.black.opacity(0.2))
246 | // .fill(.clear)
247 | .shadow(color: Color(red: 0/255, green: 0/255, blue: 0/255),
| |- error: 'shadow(color:radius:x:y:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
248 | radius: width / 80, x: 0, y: 0)
249 | .shadow(color: Color(red: 0/255, green: 0/255, blue: 0/255),
/Users/admin/builder/spi-builder-workspace/Sources/SwiftUI-VPSwitch/SwiftUI_VPSwitch.swift:247:44: error: 'Color' is only available in macOS 10.15 or newer
156 | struct SliderView: View {
157 |
158 | struct BackgroundView: View {
| `- note: add @available attribute to enclosing struct
159 |
160 | var position: CGFloat
:
223 |
224 |
225 | var body: some View {
| `- note: add @available attribute to enclosing property
226 | ZStack {
227 | RoundedRectangle(cornerRadius: width)
:
245 | .stroke(.black.opacity(0.2))
246 | // .fill(.clear)
247 | .shadow(color: Color(red: 0/255, green: 0/255, blue: 0/255),
| |- error: 'Color' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
248 | radius: width / 80, x: 0, y: 0)
249 | .shadow(color: Color(red: 0/255, green: 0/255, blue: 0/255),
/Users/admin/builder/spi-builder-workspace/Sources/SwiftUI-VPSwitch/SwiftUI_VPSwitch.swift:247:44: error: 'init(_:red:green:blue:opacity:)' is only available in macOS 10.15 or newer
156 | struct SliderView: View {
157 |
158 | struct BackgroundView: View {
| `- note: add @available attribute to enclosing struct
159 |
160 | var position: CGFloat
:
223 |
224 |
225 | var body: some View {
| `- note: add @available attribute to enclosing property
226 | ZStack {
227 | RoundedRectangle(cornerRadius: width)
:
245 | .stroke(.black.opacity(0.2))
246 | // .fill(.clear)
247 | .shadow(color: Color(red: 0/255, green: 0/255, blue: 0/255),
| |- error: 'init(_:red:green:blue:opacity:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
248 | radius: width / 80, x: 0, y: 0)
249 | .shadow(color: Color(red: 0/255, green: 0/255, blue: 0/255),
/Users/admin/builder/spi-builder-workspace/Sources/SwiftUI-VPSwitch/SwiftUI_VPSwitch.swift:249:30: error: 'shadow(color:radius:x:y:)' is only available in macOS 10.15 or newer
156 | struct SliderView: View {
157 |
158 | struct BackgroundView: View {
| `- note: add @available attribute to enclosing struct
159 |
160 | var position: CGFloat
:
223 |
224 |
225 | var body: some View {
| `- note: add @available attribute to enclosing property
226 | ZStack {
227 | RoundedRectangle(cornerRadius: width)
:
247 | .shadow(color: Color(red: 0/255, green: 0/255, blue: 0/255),
248 | radius: width / 80, x: 0, y: 0)
249 | .shadow(color: Color(red: 0/255, green: 0/255, blue: 0/255),
| |- error: 'shadow(color:radius:x:y:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
250 | radius: width / 60, x: 0, y: 0)
251 | // .shadow(color: Color(red: 0/255, green: 0/255, blue: 0/255),
/Users/admin/builder/spi-builder-workspace/Sources/SwiftUI-VPSwitch/SwiftUI_VPSwitch.swift:249:44: error: 'Color' is only available in macOS 10.15 or newer
156 | struct SliderView: View {
157 |
158 | struct BackgroundView: View {
| `- note: add @available attribute to enclosing struct
159 |
160 | var position: CGFloat
:
223 |
224 |
225 | var body: some View {
| `- note: add @available attribute to enclosing property
226 | ZStack {
227 | RoundedRectangle(cornerRadius: width)
:
247 | .shadow(color: Color(red: 0/255, green: 0/255, blue: 0/255),
248 | radius: width / 80, x: 0, y: 0)
249 | .shadow(color: Color(red: 0/255, green: 0/255, blue: 0/255),
| |- error: 'Color' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
250 | radius: width / 60, x: 0, y: 0)
251 | // .shadow(color: Color(red: 0/255, green: 0/255, blue: 0/255),
/Users/admin/builder/spi-builder-workspace/Sources/SwiftUI-VPSwitch/SwiftUI_VPSwitch.swift:249:44: error: 'init(_:red:green:blue:opacity:)' is only available in macOS 10.15 or newer
156 | struct SliderView: View {
157 |
158 | struct BackgroundView: View {
| `- note: add @available attribute to enclosing struct
159 |
160 | var position: CGFloat
:
223 |
224 |
225 | var body: some View {
| `- note: add @available attribute to enclosing property
226 | ZStack {
227 | RoundedRectangle(cornerRadius: width)
:
247 | .shadow(color: Color(red: 0/255, green: 0/255, blue: 0/255),
248 | radius: width / 80, x: 0, y: 0)
249 | .shadow(color: Color(red: 0/255, green: 0/255, blue: 0/255),
| |- error: 'init(_:red:green:blue:opacity:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
250 | radius: width / 60, x: 0, y: 0)
251 | // .shadow(color: Color(red: 0/255, green: 0/255, blue: 0/255),
/Users/admin/builder/spi-builder-workspace/Sources/SwiftUI-VPSwitch/SwiftUI_VPSwitch.swift:253:30: error: 'clipShape(_:style:)' is only available in macOS 10.15 or newer
156 | struct SliderView: View {
157 |
158 | struct BackgroundView: View {
| `- note: add @available attribute to enclosing struct
159 |
160 | var position: CGFloat
:
223 |
224 |
225 | var body: some View {
| `- note: add @available attribute to enclosing property
226 | ZStack {
227 | RoundedRectangle(cornerRadius: width)
:
251 | // .shadow(color: Color(red: 0/255, green: 0/255, blue: 0/255),
252 | // radius: width / 40, x: 0, y: 0)
253 | .clipShape(
| |- error: 'clipShape(_:style:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
254 | RoundedRectangle(cornerRadius: width)
255 | )
/Users/admin/builder/spi-builder-workspace/Sources/SwiftUI-VPSwitch/SwiftUI_VPSwitch.swift:254:33: error: 'RoundedRectangle' is only available in macOS 10.15 or newer
156 | struct SliderView: View {
157 |
158 | struct BackgroundView: View {
| `- note: add @available attribute to enclosing struct
159 |
160 | var position: CGFloat
:
223 |
224 |
225 | var body: some View {
| `- note: add @available attribute to enclosing property
226 | ZStack {
227 | RoundedRectangle(cornerRadius: width)
:
252 | // radius: width / 40, x: 0, y: 0)
253 | .clipShape(
254 | RoundedRectangle(cornerRadius: width)
| |- error: 'RoundedRectangle' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
255 | )
256 | )
/Users/admin/builder/spi-builder-workspace/Sources/SwiftUI-VPSwitch/SwiftUI_VPSwitch.swift:258:17: error: 'ZStack' is only available in macOS 10.15 or newer
156 | struct SliderView: View {
157 |
158 | struct BackgroundView: View {
| `- note: add @available attribute to enclosing struct
159 |
160 | var position: CGFloat
:
223 |
224 |
225 | var body: some View {
| `- note: add @available attribute to enclosing property
226 | ZStack {
227 | RoundedRectangle(cornerRadius: width)
:
256 | )
257 |
258 | ZStack {
| |- error: 'ZStack' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
259 |
260 | if backgroundImageOrder == .fade {
/Users/admin/builder/spi-builder-workspace/Sources/SwiftUI-VPSwitch/SwiftUI_VPSwitch.swift:258:17: warning: conformance of '_ConditionalContent<TrueContent, FalseContent>' to 'View' is only available in macOS 10.15 or newer; this is an error in the Swift 6 language mode
156 | struct SliderView: View {
157 |
158 | struct BackgroundView: View {
| `- note: add @available attribute to enclosing struct
159 |
160 | var position: CGFloat
:
223 |
224 |
225 | var body: some View {
| `- note: add @available attribute to enclosing property
226 | ZStack {
227 | RoundedRectangle(cornerRadius: width)
:
256 | )
257 |
258 | ZStack {
| |- warning: conformance of '_ConditionalContent<TrueContent, FalseContent>' 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
259 |
260 | if backgroundImageOrder == .fade {
/Users/admin/builder/spi-builder-workspace/Sources/SwiftUI-VPSwitch/SwiftUI_VPSwitch.swift:263:33: error: 'resizable(capInsets:resizingMode:)' is only available in macOS 10.15 or newer
156 | struct SliderView: View {
157 |
158 | struct BackgroundView: View {
| `- note: add @available attribute to enclosing struct
159 |
160 | var position: CGFloat
:
223 |
224 |
225 | var body: some View {
| `- note: add @available attribute to enclosing property
226 | ZStack {
227 | RoundedRectangle(cornerRadius: width)
:
261 |
262 | if let img = state_off.backgroundImage {
263 | img.resizable(resizingMode: .stretch)
| |- error: 'resizable(capInsets:resizingMode:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
264 | .scaledToFill()
265 | .opacity(Double(1.0 - position))
/Users/admin/builder/spi-builder-workspace/Sources/SwiftUI-VPSwitch/SwiftUI_VPSwitch.swift:264:34: error: 'scaledToFill()' is only available in macOS 10.15 or newer
156 | struct SliderView: View {
157 |
158 | struct BackgroundView: View {
| `- note: add @available attribute to enclosing struct
159 |
160 | var position: CGFloat
:
223 |
224 |
225 | var body: some View {
| `- note: add @available attribute to enclosing property
226 | ZStack {
227 | RoundedRectangle(cornerRadius: width)
:
262 | if let img = state_off.backgroundImage {
263 | img.resizable(resizingMode: .stretch)
264 | .scaledToFill()
| |- error: 'scaledToFill()' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
265 | .opacity(Double(1.0 - position))
266 | .cornerRadius(width)
/Users/admin/builder/spi-builder-workspace/Sources/SwiftUI-VPSwitch/SwiftUI_VPSwitch.swift:265:34: error: 'opacity' is only available in macOS 10.15 or newer
156 | struct SliderView: View {
157 |
158 | struct BackgroundView: View {
| `- note: add @available attribute to enclosing struct
159 |
160 | var position: CGFloat
:
223 |
224 |
225 | var body: some View {
| `- note: add @available attribute to enclosing property
226 | ZStack {
227 | RoundedRectangle(cornerRadius: width)
:
263 | img.resizable(resizingMode: .stretch)
264 | .scaledToFill()
265 | .opacity(Double(1.0 - position))
| |- error: 'opacity' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
266 | .cornerRadius(width)
267 | .frame(minWidth: 0, maxWidth: .infinity,
/Users/admin/builder/spi-builder-workspace/Sources/SwiftUI-VPSwitch/SwiftUI_VPSwitch.swift:266:34: error: 'cornerRadius(_:antialiased:)' is only available in macOS 10.15 or newer
156 | struct SliderView: View {
157 |
158 | struct BackgroundView: View {
| `- note: add @available attribute to enclosing struct
159 |
160 | var position: CGFloat
:
223 |
224 |
225 | var body: some View {
| `- note: add @available attribute to enclosing property
226 | ZStack {
227 | RoundedRectangle(cornerRadius: width)
:
264 | .scaledToFill()
265 | .opacity(Double(1.0 - position))
266 | .cornerRadius(width)
| |- error: 'cornerRadius(_:antialiased:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
267 | .frame(minWidth: 0, maxWidth: .infinity,
268 | minHeight: 0, maxHeight: .infinity)
/Users/admin/builder/spi-builder-workspace/Sources/SwiftUI-VPSwitch/SwiftUI_VPSwitch.swift:267:34: error: 'frame(minWidth:idealWidth:maxWidth:minHeight:idealHeight:maxHeight:alignment:)' is only available in macOS 10.15 or newer
156 | struct SliderView: View {
157 |
158 | struct BackgroundView: View {
| `- note: add @available attribute to enclosing struct
159 |
160 | var position: CGFloat
:
223 |
224 |
225 | var body: some View {
| `- note: add @available attribute to enclosing property
226 | ZStack {
227 | RoundedRectangle(cornerRadius: width)
:
265 | .opacity(Double(1.0 - position))
266 | .cornerRadius(width)
267 | .frame(minWidth: 0, maxWidth: .infinity,
| |- error: 'frame(minWidth:idealWidth:maxWidth:minHeight:idealHeight:maxHeight:alignment:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
268 | minHeight: 0, maxHeight: .infinity)
269 | .clipShape(
/Users/admin/builder/spi-builder-workspace/Sources/SwiftUI-VPSwitch/SwiftUI_VPSwitch.swift:269:34: error: 'clipShape(_:style:)' is only available in macOS 10.15 or newer
156 | struct SliderView: View {
157 |
158 | struct BackgroundView: View {
| `- note: add @available attribute to enclosing struct
159 |
160 | var position: CGFloat
:
223 |
224 |
225 | var body: some View {
| `- note: add @available attribute to enclosing property
226 | ZStack {
227 | RoundedRectangle(cornerRadius: width)
:
267 | .frame(minWidth: 0, maxWidth: .infinity,
268 | minHeight: 0, maxHeight: .infinity)
269 | .clipShape(
| |- error: 'clipShape(_:style:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
270 | RoundedRectangle(cornerRadius: width)
271 | )
/Users/admin/builder/spi-builder-workspace/Sources/SwiftUI-VPSwitch/SwiftUI_VPSwitch.swift:270:37: error: 'RoundedRectangle' is only available in macOS 10.15 or newer
156 | struct SliderView: View {
157 |
158 | struct BackgroundView: View {
| `- note: add @available attribute to enclosing struct
159 |
160 | var position: CGFloat
:
223 |
224 |
225 | var body: some View {
| `- note: add @available attribute to enclosing property
226 | ZStack {
227 | RoundedRectangle(cornerRadius: width)
:
268 | minHeight: 0, maxHeight: .infinity)
269 | .clipShape(
270 | RoundedRectangle(cornerRadius: width)
| |- error: 'RoundedRectangle' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
271 | )
272 | .debugFrameSize()
/Users/admin/builder/spi-builder-workspace/Sources/SwiftUI-VPSwitch/SwiftUI_VPSwitch.swift:262:64: error: 'buildIf' is only available in macOS 10.15 or newer
156 | struct SliderView: View {
157 |
158 | struct BackgroundView: View {
| `- note: add @available attribute to enclosing struct
159 |
160 | var position: CGFloat
:
223 |
224 |
225 | var body: some View {
| `- note: add @available attribute to enclosing property
226 | ZStack {
227 | RoundedRectangle(cornerRadius: width)
:
260 | if backgroundImageOrder == .fade {
261 |
262 | if let img = state_off.backgroundImage {
| |- error: 'buildIf' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
263 | img.resizable(resizingMode: .stretch)
264 | .scaledToFill()
/Users/admin/builder/spi-builder-workspace/Sources/SwiftUI-VPSwitch/SwiftUI_VPSwitch.swift:273:25: error: 'buildIf' is only available in macOS 10.15 or newer
156 | struct SliderView: View {
157 |
158 | struct BackgroundView: View {
| `- note: add @available attribute to enclosing struct
159 |
160 | var position: CGFloat
:
223 |
224 |
225 | var body: some View {
| `- note: add @available attribute to enclosing property
226 | ZStack {
227 | RoundedRectangle(cornerRadius: width)
:
271 | )
272 | .debugFrameSize()
273 | }
| |- error: 'buildIf' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
274 |
275 | if let img = state_on.backgroundImage {
/Users/admin/builder/spi-builder-workspace/Sources/SwiftUI-VPSwitch/SwiftUI_VPSwitch.swift:276:33: error: 'resizable(capInsets:resizingMode:)' is only available in macOS 10.15 or newer
156 | struct SliderView: View {
157 |
158 | struct BackgroundView: View {
| `- note: add @available attribute to enclosing struct
159 |
160 | var position: CGFloat
:
223 |
224 |
225 | var body: some View {
| `- note: add @available attribute to enclosing property
226 | ZStack {
227 | RoundedRectangle(cornerRadius: width)
:
274 |
275 | if let img = state_on.backgroundImage {
276 | img.resizable(resizingMode: .stretch)
| |- error: 'resizable(capInsets:resizingMode:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
277 | .scaledToFill()
278 | .opacity(position)
/Users/admin/builder/spi-builder-workspace/Sources/SwiftUI-VPSwitch/SwiftUI_VPSwitch.swift:277:34: error: 'scaledToFill()' is only available in macOS 10.15 or newer
156 | struct SliderView: View {
157 |
158 | struct BackgroundView: View {
| `- note: add @available attribute to enclosing struct
159 |
160 | var position: CGFloat
:
223 |
224 |
225 | var body: some View {
| `- note: add @available attribute to enclosing property
226 | ZStack {
227 | RoundedRectangle(cornerRadius: width)
:
275 | if let img = state_on.backgroundImage {
276 | img.resizable(resizingMode: .stretch)
277 | .scaledToFill()
| |- error: 'scaledToFill()' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
278 | .opacity(position)
279 | .cornerRadius(width)
/Users/admin/builder/spi-builder-workspace/Sources/SwiftUI-VPSwitch/SwiftUI_VPSwitch.swift:278:34: error: 'opacity' is only available in macOS 10.15 or newer
156 | struct SliderView: View {
157 |
158 | struct BackgroundView: View {
| `- note: add @available attribute to enclosing struct
159 |
160 | var position: CGFloat
:
223 |
224 |
225 | var body: some View {
| `- note: add @available attribute to enclosing property
226 | ZStack {
227 | RoundedRectangle(cornerRadius: width)
:
276 | img.resizable(resizingMode: .stretch)
277 | .scaledToFill()
278 | .opacity(position)
| |- error: 'opacity' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
279 | .cornerRadius(width)
280 | .frame(minWidth: 0, maxWidth: .infinity,
/Users/admin/builder/spi-builder-workspace/Sources/SwiftUI-VPSwitch/SwiftUI_VPSwitch.swift:279:34: error: 'cornerRadius(_:antialiased:)' is only available in macOS 10.15 or newer
156 | struct SliderView: View {
157 |
158 | struct BackgroundView: View {
| `- note: add @available attribute to enclosing struct
159 |
160 | var position: CGFloat
:
223 |
224 |
225 | var body: some View {
| `- note: add @available attribute to enclosing property
226 | ZStack {
227 | RoundedRectangle(cornerRadius: width)
:
277 | .scaledToFill()
278 | .opacity(position)
279 | .cornerRadius(width)
| |- error: 'cornerRadius(_:antialiased:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
280 | .frame(minWidth: 0, maxWidth: .infinity,
281 | minHeight: 0, maxHeight: .infinity)
/Users/admin/builder/spi-builder-workspace/Sources/SwiftUI-VPSwitch/SwiftUI_VPSwitch.swift:280:34: error: 'frame(minWidth:idealWidth:maxWidth:minHeight:idealHeight:maxHeight:alignment:)' is only available in macOS 10.15 or newer
156 | struct SliderView: View {
157 |
158 | struct BackgroundView: View {
| `- note: add @available attribute to enclosing struct
159 |
160 | var position: CGFloat
:
223 |
224 |
225 | var body: some View {
| `- note: add @available attribute to enclosing property
226 | ZStack {
227 | RoundedRectangle(cornerRadius: width)
:
278 | .opacity(position)
279 | .cornerRadius(width)
280 | .frame(minWidth: 0, maxWidth: .infinity,
| |- error: 'frame(minWidth:idealWidth:maxWidth:minHeight:idealHeight:maxHeight:alignment:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
281 | minHeight: 0, maxHeight: .infinity)
282 | .clipShape(
/Users/admin/builder/spi-builder-workspace/Sources/SwiftUI-VPSwitch/SwiftUI_VPSwitch.swift:282:34: error: 'clipShape(_:style:)' is only available in macOS 10.15 or newer
156 | struct SliderView: View {
157 |
158 | struct BackgroundView: View {
| `- note: add @available attribute to enclosing struct
159 |
160 | var position: CGFloat
:
223 |
224 |
225 | var body: some View {
| `- note: add @available attribute to enclosing property
226 | ZStack {
227 | RoundedRectangle(cornerRadius: width)
:
280 | .frame(minWidth: 0, maxWidth: .infinity,
281 | minHeight: 0, maxHeight: .infinity)
282 | .clipShape(
| |- error: 'clipShape(_:style:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
283 | RoundedRectangle(cornerRadius: width)
284 | )
/Users/admin/builder/spi-builder-workspace/Sources/SwiftUI-VPSwitch/SwiftUI_VPSwitch.swift:283:37: error: 'RoundedRectangle' is only available in macOS 10.15 or newer
156 | struct SliderView: View {
157 |
158 | struct BackgroundView: View {
| `- note: add @available attribute to enclosing struct
159 |
160 | var position: CGFloat
:
223 |
224 |
225 | var body: some View {
| `- note: add @available attribute to enclosing property
226 | ZStack {
227 | RoundedRectangle(cornerRadius: width)
:
281 | minHeight: 0, maxHeight: .infinity)
282 | .clipShape(
283 | RoundedRectangle(cornerRadius: width)
| |- error: 'RoundedRectangle' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
284 | )
285 | }
/Users/admin/builder/spi-builder-workspace/Sources/SwiftUI-VPSwitch/SwiftUI_VPSwitch.swift:275:63: error: 'buildIf' is only available in macOS 10.15 or newer
156 | struct SliderView: View {
157 |
158 | struct BackgroundView: View {
| `- note: add @available attribute to enclosing struct
159 |
160 | var position: CGFloat
:
223 |
224 |
225 | var body: some View {
| `- note: add @available attribute to enclosing property
226 | ZStack {
227 | RoundedRectangle(cornerRadius: width)
:
273 | }
274 |
275 | if let img = state_on.backgroundImage {
| |- error: 'buildIf' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
276 | img.resizable(resizingMode: .stretch)
277 | .scaledToFill()
/Users/admin/builder/spi-builder-workspace/Sources/SwiftUI-VPSwitch/SwiftUI_VPSwitch.swift:285:25: error: 'buildIf' is only available in macOS 10.15 or newer
156 | struct SliderView: View {
157 |
158 | struct BackgroundView: View {
| `- note: add @available attribute to enclosing struct
159 |
160 | var position: CGFloat
:
223 |
224 |
225 | var body: some View {
| `- note: add @available attribute to enclosing property
226 | ZStack {
227 | RoundedRectangle(cornerRadius: width)
:
283 | RoundedRectangle(cornerRadius: width)
284 | )
285 | }
| |- error: 'buildIf' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
286 |
287 | } else {
/Users/admin/builder/spi-builder-workspace/Sources/SwiftUI-VPSwitch/SwiftUI_VPSwitch.swift:260:54: error: 'buildEither(first:)' is only available in macOS 10.15 or newer
156 | struct SliderView: View {
157 |
158 | struct BackgroundView: View {
| `- note: add @available attribute to enclosing struct
159 |
160 | var position: CGFloat
:
223 |
224 |
225 | var body: some View {
| `- note: add @available attribute to enclosing property
226 | ZStack {
227 | RoundedRectangle(cornerRadius: width)
:
258 | ZStack {
259 |
260 | if backgroundImageOrder == .fade {
| |- error: 'buildEither(first:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
261 |
262 | if let img = state_off.backgroundImage {
/Users/admin/builder/spi-builder-workspace/Sources/SwiftUI-VPSwitch/SwiftUI_VPSwitch.swift:260:54: warning: conformance of 'Optional<Wrapped>' to 'View' is only available in macOS 10.15 or newer; this is an error in the Swift 6 language mode
156 | struct SliderView: View {
157 |
158 | struct BackgroundView: View {
| `- note: add @available attribute to enclosing struct
159 |
160 | var position: CGFloat
:
223 |
224 |
225 | var body: some View {
| `- note: add @available attribute to enclosing property
226 | ZStack {
227 | RoundedRectangle(cornerRadius: width)
:
258 | ZStack {
259 |
260 | if backgroundImageOrder == .fade {
| |- warning: conformance of 'Optional<Wrapped>' 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
261 |
262 | if let img = state_off.backgroundImage {
/Users/admin/builder/spi-builder-workspace/Sources/SwiftUI-VPSwitch/SwiftUI_VPSwitch.swift:260:54: warning: conformance of 'Optional<Wrapped>' to 'View' is only available in macOS 10.15 or newer; this is an error in the Swift 6 language mode
156 | struct SliderView: View {
157 |
158 | struct BackgroundView: View {
| `- note: add @available attribute to enclosing struct
159 |
160 | var position: CGFloat
:
223 |
224 |
225 | var body: some View {
| `- note: add @available attribute to enclosing property
226 | ZStack {
227 | RoundedRectangle(cornerRadius: width)
:
258 | ZStack {
259 |
260 | if backgroundImageOrder == .fade {
| |- warning: conformance of 'Optional<Wrapped>' 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
261 |
262 | if let img = state_off.backgroundImage {
/Users/admin/builder/spi-builder-workspace/Sources/SwiftUI-VPSwitch/SwiftUI_VPSwitch.swift:290:33: error: 'resizable(capInsets:resizingMode:)' is only available in macOS 10.15 or newer
156 | struct SliderView: View {
157 |
158 | struct BackgroundView: View {
| `- note: add @available attribute to enclosing struct
159 |
160 | var position: CGFloat
:
223 |
224 |
225 | var body: some View {
| `- note: add @available attribute to enclosing property
226 | ZStack {
227 | RoundedRectangle(cornerRadius: width)
:
288 |
289 | if let img = state_off.backgroundImage {
290 | img.resizable(resizingMode: .stretch)
| |- error: 'resizable(capInsets:resizingMode:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
291 | .offset(getBgOffsetForOff())
292 | .cornerRadius(width)
/Users/admin/builder/spi-builder-workspace/Sources/SwiftUI-VPSwitch/SwiftUI_VPSwitch.swift:291:34: error: 'offset' is only available in macOS 10.15 or newer
156 | struct SliderView: View {
157 |
158 | struct BackgroundView: View {
| `- note: add @available attribute to enclosing struct
159 |
160 | var position: CGFloat
:
223 |
224 |
225 | var body: some View {
| `- note: add @available attribute to enclosing property
226 | ZStack {
227 | RoundedRectangle(cornerRadius: width)
:
289 | if let img = state_off.backgroundImage {
290 | img.resizable(resizingMode: .stretch)
291 | .offset(getBgOffsetForOff())
| |- error: 'offset' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
292 | .cornerRadius(width)
293 | .clipShape(
/Users/admin/builder/spi-builder-workspace/Sources/SwiftUI-VPSwitch/SwiftUI_VPSwitch.swift:292:34: error: 'cornerRadius(_:antialiased:)' is only available in macOS 10.15 or newer
156 | struct SliderView: View {
157 |
158 | struct BackgroundView: View {
| `- note: add @available attribute to enclosing struct
159 |
160 | var position: CGFloat
:
223 |
224 |
225 | var body: some View {
| `- note: add @available attribute to enclosing property
226 | ZStack {
227 | RoundedRectangle(cornerRadius: width)
:
290 | img.resizable(resizingMode: .stretch)
291 | .offset(getBgOffsetForOff())
292 | .cornerRadius(width)
| |- error: 'cornerRadius(_:antialiased:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
293 | .clipShape(
294 | RoundedRectangle(cornerRadius: width)
/Users/admin/builder/spi-builder-workspace/Sources/SwiftUI-VPSwitch/SwiftUI_VPSwitch.swift:293:34: error: 'clipShape(_:style:)' is only available in macOS 10.15 or newer
156 | struct SliderView: View {
157 |
158 | struct BackgroundView: View {
| `- note: add @available attribute to enclosing struct
159 |
160 | var position: CGFloat
:
223 |
224 |
225 | var body: some View {
| `- note: add @available attribute to enclosing property
226 | ZStack {
227 | RoundedRectangle(cornerRadius: width)
:
291 | .offset(getBgOffsetForOff())
292 | .cornerRadius(width)
293 | .clipShape(
| |- error: 'clipShape(_:style:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
294 | RoundedRectangle(cornerRadius: width)
295 | )
/Users/admin/builder/spi-builder-workspace/Sources/SwiftUI-VPSwitch/SwiftUI_VPSwitch.swift:294:37: error: 'RoundedRectangle' is only available in macOS 10.15 or newer
156 | struct SliderView: View {
157 |
158 | struct BackgroundView: View {
| `- note: add @available attribute to enclosing struct
159 |
160 | var position: CGFloat
:
223 |
224 |
225 | var body: some View {
| `- note: add @available attribute to enclosing property
226 | ZStack {
227 | RoundedRectangle(cornerRadius: width)
:
292 | .cornerRadius(width)
293 | .clipShape(
294 | RoundedRectangle(cornerRadius: width)
| |- error: 'RoundedRectangle' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
295 | )
296 | .frame(minWidth: 0, maxWidth: .infinity,
/Users/admin/builder/spi-builder-workspace/Sources/SwiftUI-VPSwitch/SwiftUI_VPSwitch.swift:296:34: error: 'frame(minWidth:idealWidth:maxWidth:minHeight:idealHeight:maxHeight:alignment:)' is only available in macOS 10.15 or newer
156 | struct SliderView: View {
157 |
158 | struct BackgroundView: View {
| `- note: add @available attribute to enclosing struct
159 |
160 | var position: CGFloat
:
223 |
224 |
225 | var body: some View {
| `- note: add @available attribute to enclosing property
226 | ZStack {
227 | RoundedRectangle(cornerRadius: width)
:
294 | RoundedRectangle(cornerRadius: width)
295 | )
296 | .frame(minWidth: 0, maxWidth: .infinity,
| |- error: 'frame(minWidth:idealWidth:maxWidth:minHeight:idealHeight:maxHeight:alignment:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
297 | minHeight: 0, maxHeight: .infinity)
298 | }
/Users/admin/builder/spi-builder-workspace/Sources/SwiftUI-VPSwitch/SwiftUI_VPSwitch.swift:289:64: error: 'buildIf' is only available in macOS 10.15 or newer
156 | struct SliderView: View {
157 |
158 | struct BackgroundView: View {
| `- note: add @available attribute to enclosing struct
159 |
160 | var position: CGFloat
:
223 |
224 |
225 | var body: some View {
| `- note: add @available attribute to enclosing property
226 | ZStack {
227 | RoundedRectangle(cornerRadius: width)
:
287 | } else {
288 |
289 | if let img = state_off.backgroundImage {
| |- error: 'buildIf' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
290 | img.resizable(resizingMode: .stretch)
291 | .offset(getBgOffsetForOff())
/Users/admin/builder/spi-builder-workspace/Sources/SwiftUI-VPSwitch/SwiftUI_VPSwitch.swift:298:25: error: 'buildIf' is only available in macOS 10.15 or newer
156 | struct SliderView: View {
157 |
158 | struct BackgroundView: View {
| `- note: add @available attribute to enclosing struct
159 |
160 | var position: CGFloat
:
223 |
224 |
225 | var body: some View {
| `- note: add @available attribute to enclosing property
226 | ZStack {
227 | RoundedRectangle(cornerRadius: width)
:
296 | .frame(minWidth: 0, maxWidth: .infinity,
297 | minHeight: 0, maxHeight: .infinity)
298 | }
| |- error: 'buildIf' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
299 |
300 | if let img = state_on.backgroundImage {
/Users/admin/builder/spi-builder-workspace/Sources/SwiftUI-VPSwitch/SwiftUI_VPSwitch.swift:301:33: error: 'resizable(capInsets:resizingMode:)' is only available in macOS 10.15 or newer
156 | struct SliderView: View {
157 |
158 | struct BackgroundView: View {
| `- note: add @available attribute to enclosing struct
159 |
160 | var position: CGFloat
:
223 |
224 |
225 | var body: some View {
| `- note: add @available attribute to enclosing property
226 | ZStack {
227 | RoundedRectangle(cornerRadius: width)
:
299 |
300 | if let img = state_on.backgroundImage {
301 | img.resizable(resizingMode: .stretch)
| |- error: 'resizable(capInsets:resizingMode:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
302 | .offset(getBgOffsetForOn())
303 | .cornerRadius(width)
/Users/admin/builder/spi-builder-workspace/Sources/SwiftUI-VPSwitch/SwiftUI_VPSwitch.swift:302:34: error: 'offset' is only available in macOS 10.15 or newer
156 | struct SliderView: View {
157 |
158 | struct BackgroundView: View {
| `- note: add @available attribute to enclosing struct
159 |
160 | var position: CGFloat
:
223 |
224 |
225 | var body: some View {
| `- note: add @available attribute to enclosing property
226 | ZStack {
227 | RoundedRectangle(cornerRadius: width)
:
300 | if let img = state_on.backgroundImage {
301 | img.resizable(resizingMode: .stretch)
302 | .offset(getBgOffsetForOn())
| |- error: 'offset' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
303 | .cornerRadius(width)
304 | .clipShape(
/Users/admin/builder/spi-builder-workspace/Sources/SwiftUI-VPSwitch/SwiftUI_VPSwitch.swift:303:34: error: 'cornerRadius(_:antialiased:)' is only available in macOS 10.15 or newer
156 | struct SliderView: View {
157 |
158 | struct BackgroundView: View {
| `- note: add @available attribute to enclosing struct
159 |
160 | var position: CGFloat
:
223 |
224 |
225 | var body: some View {
| `- note: add @available attribute to enclosing property
226 | ZStack {
227 | RoundedRectangle(cornerRadius: width)
:
301 | img.resizable(resizingMode: .stretch)
302 | .offset(getBgOffsetForOn())
303 | .cornerRadius(width)
| |- error: 'cornerRadius(_:antialiased:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
304 | .clipShape(
305 | RoundedRectangle(cornerRadius: width)
/Users/admin/builder/spi-builder-workspace/Sources/SwiftUI-VPSwitch/SwiftUI_VPSwitch.swift:304:34: error: 'clipShape(_:style:)' is only available in macOS 10.15 or newer
156 | struct SliderView: View {
157 |
158 | struct BackgroundView: View {
| `- note: add @available attribute to enclosing struct
159 |
160 | var position: CGFloat
:
223 |
224 |
225 | var body: some View {
| `- note: add @available attribute to enclosing property
226 | ZStack {
227 | RoundedRectangle(cornerRadius: width)
:
302 | .offset(getBgOffsetForOn())
303 | .cornerRadius(width)
304 | .clipShape(
| |- error: 'clipShape(_:style:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
305 | RoundedRectangle(cornerRadius: width)
306 | )
/Users/admin/builder/spi-builder-workspace/Sources/SwiftUI-VPSwitch/SwiftUI_VPSwitch.swift:305:37: error: 'RoundedRectangle' is only available in macOS 10.15 or newer
156 | struct SliderView: View {
157 |
158 | struct BackgroundView: View {
| `- note: add @available attribute to enclosing struct
159 |
160 | var position: CGFloat
:
223 |
224 |
225 | var body: some View {
| `- note: add @available attribute to enclosing property
226 | ZStack {
227 | RoundedRectangle(cornerRadius: width)
:
303 | .cornerRadius(width)
304 | .clipShape(
305 | RoundedRectangle(cornerRadius: width)
| |- error: 'RoundedRectangle' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
306 | )
307 | .frame(minWidth: 0, maxWidth: .infinity,
/Users/admin/builder/spi-builder-workspace/Sources/SwiftUI-VPSwitch/SwiftUI_VPSwitch.swift:307:34: error: 'frame(minWidth:idealWidth:maxWidth:minHeight:idealHeight:maxHeight:alignment:)' is only available in macOS 10.15 or newer
156 | struct SliderView: View {
157 |
158 | struct BackgroundView: View {
| `- note: add @available attribute to enclosing struct
159 |
160 | var position: CGFloat
:
223 |
224 |
225 | var body: some View {
| `- note: add @available attribute to enclosing property
226 | ZStack {
227 | RoundedRectangle(cornerRadius: width)
:
305 | RoundedRectangle(cornerRadius: width)
306 | )
307 | .frame(minWidth: 0, maxWidth: .infinity,
| |- error: 'frame(minWidth:idealWidth:maxWidth:minHeight:idealHeight:maxHeight:alignment:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
308 | minHeight: 0, maxHeight: .infinity)
309 | }
/Users/admin/builder/spi-builder-workspace/Sources/SwiftUI-VPSwitch/SwiftUI_VPSwitch.swift:300:63: error: 'buildIf' is only available in macOS 10.15 or newer
156 | struct SliderView: View {
157 |
158 | struct BackgroundView: View {
| `- note: add @available attribute to enclosing struct
159 |
160 | var position: CGFloat
:
223 |
224 |
225 | var body: some View {
| `- note: add @available attribute to enclosing property
226 | ZStack {
227 | RoundedRectangle(cornerRadius: width)
:
298 | }
299 |
300 | if let img = state_on.backgroundImage {
| |- error: 'buildIf' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
301 | img.resizable(resizingMode: .stretch)
302 | .offset(getBgOffsetForOn())
/Users/admin/builder/spi-builder-workspace/Sources/SwiftUI-VPSwitch/SwiftUI_VPSwitch.swift:309:25: error: 'buildIf' is only available in macOS 10.15 or newer
156 | struct SliderView: View {
157 |
158 | struct BackgroundView: View {
| `- note: add @available attribute to enclosing struct
159 |
160 | var position: CGFloat
:
223 |
224 |
225 | var body: some View {
| `- note: add @available attribute to enclosing property
226 | ZStack {
227 | RoundedRectangle(cornerRadius: width)
:
307 | .frame(minWidth: 0, maxWidth: .infinity,
308 | minHeight: 0, maxHeight: .infinity)
309 | }
| |- error: 'buildIf' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
310 |
311 | }
/Users/admin/builder/spi-builder-workspace/Sources/SwiftUI-VPSwitch/SwiftUI_VPSwitch.swift:287:28: error: 'buildEither(second:)' is only available in macOS 10.15 or newer
156 | struct SliderView: View {
157 |
158 | struct BackgroundView: View {
| `- note: add @available attribute to enclosing struct
159 |
160 | var position: CGFloat
:
223 |
224 |
225 | var body: some View {
| `- note: add @available attribute to enclosing property
226 | ZStack {
227 | RoundedRectangle(cornerRadius: width)
:
285 | }
286 |
287 | } else {
| |- error: 'buildEither(second:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
288 |
289 | if let img = state_off.backgroundImage {
/Users/admin/builder/spi-builder-workspace/Sources/SwiftUI-VPSwitch/SwiftUI_VPSwitch.swift:287:28: warning: conformance of 'Optional<Wrapped>' to 'View' is only available in macOS 10.15 or newer; this is an error in the Swift 6 language mode
156 | struct SliderView: View {
157 |
158 | struct BackgroundView: View {
| `- note: add @available attribute to enclosing struct
159 |
160 | var position: CGFloat
:
223 |
224 |
225 | var body: some View {
| `- note: add @available attribute to enclosing property
226 | ZStack {
227 | RoundedRectangle(cornerRadius: width)
:
285 | }
286 |
287 | } else {
| |- warning: conformance of 'Optional<Wrapped>' 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
288 |
289 | if let img = state_off.backgroundImage {
/Users/admin/builder/spi-builder-workspace/Sources/SwiftUI-VPSwitch/SwiftUI_VPSwitch.swift:287:28: warning: conformance of 'Optional<Wrapped>' to 'View' is only available in macOS 10.15 or newer; this is an error in the Swift 6 language mode
156 | struct SliderView: View {
157 |
158 | struct BackgroundView: View {
| `- note: add @available attribute to enclosing struct
159 |
160 | var position: CGFloat
:
223 |
224 |
225 | var body: some View {
| `- note: add @available attribute to enclosing property
226 | ZStack {
227 | RoundedRectangle(cornerRadius: width)
:
285 | }
286 |
287 | } else {
| |- warning: conformance of 'Optional<Wrapped>' 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
288 |
289 | if let img = state_off.backgroundImage {
/Users/admin/builder/spi-builder-workspace/Sources/SwiftUI-VPSwitch/SwiftUI_VPSwitch.swift:258:24: warning: conformance of '_ConditionalContent<TrueContent, FalseContent>' to 'View' is only available in macOS 10.15 or newer; this is an error in the Swift 6 language mode
156 | struct SliderView: View {
157 |
158 | struct BackgroundView: View {
| `- note: add @available attribute to enclosing struct
159 |
160 | var position: CGFloat
:
223 |
224 |
225 | var body: some View {
| `- note: add @available attribute to enclosing property
226 | ZStack {
227 | RoundedRectangle(cornerRadius: width)
:
256 | )
257 |
258 | ZStack {
| |- warning: conformance of '_ConditionalContent<TrueContent, FalseContent>' 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
259 |
260 | if backgroundImageOrder == .fade {
/Users/admin/builder/spi-builder-workspace/Sources/SwiftUI-VPSwitch/SwiftUI_VPSwitch.swift:314:18: error: 'cornerRadius(_:antialiased:)' is only available in macOS 10.15 or newer
156 | struct SliderView: View {
157 |
158 | struct BackgroundView: View {
| `- note: add @available attribute to enclosing struct
159 |
160 | var position: CGFloat
:
223 |
224 |
225 | var body: some View {
| `- note: add @available attribute to enclosing property
226 | ZStack {
227 | RoundedRectangle(cornerRadius: width)
:
312 |
313 | }
314 | .cornerRadius(width)
| |- error: 'cornerRadius(_:antialiased:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
315 | .clipShape(
316 | RoundedRectangle(cornerRadius: width)
/Users/admin/builder/spi-builder-workspace/Sources/SwiftUI-VPSwitch/SwiftUI_VPSwitch.swift:315:18: error: 'clipShape(_:style:)' is only available in macOS 10.15 or newer
156 | struct SliderView: View {
157 |
158 | struct BackgroundView: View {
| `- note: add @available attribute to enclosing struct
159 |
160 | var position: CGFloat
:
223 |
224 |
225 | var body: some View {
| `- note: add @available attribute to enclosing property
226 | ZStack {
227 | RoundedRectangle(cornerRadius: width)
:
313 | }
314 | .cornerRadius(width)
315 | .clipShape(
| |- error: 'clipShape(_:style:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
316 | RoundedRectangle(cornerRadius: width)
317 | )
/Users/admin/builder/spi-builder-workspace/Sources/SwiftUI-VPSwitch/SwiftUI_VPSwitch.swift:316:21: error: 'RoundedRectangle' is only available in macOS 10.15 or newer
156 | struct SliderView: View {
157 |
158 | struct BackgroundView: View {
| `- note: add @available attribute to enclosing struct
159 |
160 | var position: CGFloat
:
223 |
224 |
225 | var body: some View {
| `- note: add @available attribute to enclosing property
226 | ZStack {
227 | RoundedRectangle(cornerRadius: width)
:
314 | .cornerRadius(width)
315 | .clipShape(
316 | RoundedRectangle(cornerRadius: width)
| |- error: 'RoundedRectangle' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
317 | )
318 | .allowsHitTesting(false)
/Users/admin/builder/spi-builder-workspace/Sources/SwiftUI-VPSwitch/SwiftUI_VPSwitch.swift:318:18: error: 'allowsHitTesting' is only available in macOS 10.15 or newer
156 | struct SliderView: View {
157 |
158 | struct BackgroundView: View {
| `- note: add @available attribute to enclosing struct
159 |
160 | var position: CGFloat
:
223 |
224 |
225 | var body: some View {
| `- note: add @available attribute to enclosing property
226 | ZStack {
227 | RoundedRectangle(cornerRadius: width)
:
316 | RoundedRectangle(cornerRadius: width)
317 | )
318 | .allowsHitTesting(false)
| |- error: 'allowsHitTesting' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
319 |
320 |
/Users/admin/builder/spi-builder-workspace/Sources/SwiftUI-VPSwitch/SwiftUI_VPSwitch.swift:323:14: error: 'animation' is only available in macOS 10.15 or newer
156 | struct SliderView: View {
157 |
158 | struct BackgroundView: View {
| `- note: add @available attribute to enclosing struct
159 |
160 | var position: CGFloat
:
223 |
224 |
225 | var body: some View {
| `- note: add @available attribute to enclosing property
226 | ZStack {
227 | RoundedRectangle(cornerRadius: width)
:
321 |
322 | }
323 | .animation(.easeInOut)
| |- error: 'animation' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
324 | }
325 |
/Users/admin/builder/spi-builder-workspace/Sources/SwiftUI-VPSwitch/SwiftUI_VPSwitch.swift:323:25: error: 'easeInOut' is only available in macOS 10.15 or newer
156 | struct SliderView: View {
157 |
158 | struct BackgroundView: View {
| `- note: add @available attribute to enclosing struct
159 |
160 | var position: CGFloat
:
223 |
224 |
225 | var body: some View {
| `- note: add @available attribute to enclosing property
226 | ZStack {
227 | RoundedRectangle(cornerRadius: width)
:
321 |
322 | }
323 | .animation(.easeInOut)
| |- error: 'easeInOut' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
324 | }
325 |
/Users/admin/builder/spi-builder-workspace/Sources/SwiftUI-VPSwitch/SwiftUI_VPSwitch.swift:430:33: error: cannot find 'UIImage' in scope
428 |
429 | if let path = Bundle.module.path(forResource: "f_switch_base_glow", ofType: "png"),
430 | let image = UIImage(contentsOfFile: path)
| `- error: cannot find 'UIImage' in scope
431 | {
432 | imgGlow = image
/Users/admin/builder/spi-builder-workspace/Sources/SwiftUI-VPSwitch/SwiftUI_VPSwitch.swift:567:9: error: 'VStack' is only available in macOS 10.15 or newer
560 |
561 | @available(iOS 14.0, *)
562 | struct ContentView: View {
| `- note: add @available attribute to enclosing struct
563 |
564 | @State var isOn: Bool = false
565 |
566 | var body: some View {
| `- note: add @available attribute to enclosing property
567 | VStack {
| |- error: 'VStack' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
568 | Text("Drag the slider")
569 | .font(.title)
/Users/admin/builder/spi-builder-workspace/Sources/SwiftUI-VPSwitch/SwiftUI_VPSwitch.swift:568:13: error: 'Text' is only available in macOS 10.15 or newer
560 |
561 | @available(iOS 14.0, *)
562 | struct ContentView: View {
| `- note: add @available attribute to enclosing struct
563 |
564 | @State var isOn: Bool = false
565 |
566 | var body: some View {
| `- note: add @available attribute to enclosing property
567 | VStack {
568 | Text("Drag the slider")
| |- error: 'Text' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
569 | .font(.title)
570 | .padding()
/Users/admin/builder/spi-builder-workspace/Sources/SwiftUI-VPSwitch/SwiftUI_VPSwitch.swift:569:18: error: 'font' is only available in macOS 10.15 or newer
560 |
561 | @available(iOS 14.0, *)
562 | struct ContentView: View {
| `- note: add @available attribute to enclosing struct
563 |
564 | @State var isOn: Bool = false
565 |
566 | var body: some View {
| `- note: add @available attribute to enclosing property
567 | VStack {
568 | Text("Drag the slider")
569 | .font(.title)
| |- error: 'font' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
570 | .padding()
571 |
/Users/admin/builder/spi-builder-workspace/Sources/SwiftUI-VPSwitch/SwiftUI_VPSwitch.swift:569:24: error: 'title' is only available in macOS 10.15 or newer
560 |
561 | @available(iOS 14.0, *)
562 | struct ContentView: View {
| `- note: add @available attribute to enclosing struct
563 |
564 | @State var isOn: Bool = false
565 |
566 | var body: some View {
| `- note: add @available attribute to enclosing property
567 | VStack {
568 | Text("Drag the slider")
569 | .font(.title)
| |- error: 'title' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
570 | .padding()
571 |
/Users/admin/builder/spi-builder-workspace/Sources/SwiftUI-VPSwitch/SwiftUI_VPSwitch.swift:570:18: error: 'padding' is only available in macOS 10.15 or newer
560 |
561 | @available(iOS 14.0, *)
562 | struct ContentView: View {
| `- note: add @available attribute to enclosing struct
563 |
564 | @State var isOn: Bool = false
565 |
566 | var body: some View {
| `- note: add @available attribute to enclosing property
567 | VStack {
568 | Text("Drag the slider")
569 | .font(.title)
570 | .padding()
| |- error: 'padding' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
571 |
572 | SUIVPSwitch(
/Users/admin/builder/spi-builder-workspace/Sources/SwiftUI-VPSwitch/SwiftUI_VPSwitch.swift:598:12: error: 'Color' is only available in macOS 10.15 or newer
587 |
588 | @available(iOS 14.0, *)
589 | func lerpColor(fromColor: Color, toColor: Color, weight: CGFloat) -> Color {
| `- note: add @available attribute to enclosing global function
590 | let fromComponents = fromColor.components()
591 | let toComponents = toColor.components()
:
596 | let lerpedAlpha = (1 - weight) * fromComponents.alpha + weight * toComponents.alpha
597 |
598 | return Color(red: lerpedRed, green: lerpedGreen, blue: lerpedBlue, opacity: lerpedAlpha)
| |- error: 'Color' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
599 | }
600 |
/Users/admin/builder/spi-builder-workspace/Sources/SwiftUI-VPSwitch/SwiftUI_VPSwitch.swift:598:12: error: 'init(_:red:green:blue:opacity:)' is only available in macOS 10.15 or newer
587 |
588 | @available(iOS 14.0, *)
589 | func lerpColor(fromColor: Color, toColor: Color, weight: CGFloat) -> Color {
| `- note: add @available attribute to enclosing global function
590 | let fromComponents = fromColor.components()
591 | let toComponents = toColor.components()
:
596 | let lerpedAlpha = (1 - weight) * fromComponents.alpha + weight * toComponents.alpha
597 |
598 | return Color(red: lerpedRed, green: lerpedGreen, blue: lerpedBlue, opacity: lerpedAlpha)
| |- error: 'init(_:red:green:blue:opacity:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
599 | }
600 |
/Users/admin/builder/spi-builder-workspace/Sources/SwiftUI-VPSwitch/SwiftUI_VPSwitch.swift:604:23: error: cannot find 'UIColor' in scope
602 | extension Color {
603 | func components() -> (red: CGFloat, green: CGFloat, blue: CGFloat, alpha: CGFloat) {
604 | let uiColor = UIColor(self)
| `- error: cannot find 'UIColor' in scope
605 | var red: CGFloat = 0
606 | var green: CGFloat = 0
BUILD FAILURE 6.0 macosSpm