Build Information
Failed to build CustomizableSegmentedControl, reference 1.1.0 (484a35
), with Swift 6.0 for macOS (SPM) on 3 Nov 2024 22:50:17 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/Inxel/CustomizableSegmentedControl.git
Reference: 1.1.0
Initialized empty Git repository in /Users/admin/builder/spi-builder-workspace/.git/
From https://github.com/Inxel/CustomizableSegmentedControl
* tag 1.1.0 -> FETCH_HEAD
HEAD is now at 484a358 Merge pull request #7 from Inxel/update_segmented_control
Cloned https://github.com/Inxel/CustomizableSegmentedControl.git
Revision (git rev-parse @):
484a358c1b9dcb7fe5fe14db6a6a709125257ed4
SUCCESS checkout https://github.com/Inxel/CustomizableSegmentedControl.git at 1.1.0
========================================
ResolveProductDependencies
========================================
Resolving dependencies ...
{
"identity": ".resolve-product-dependencies",
"name": "resolve-dependencies",
"url": "/Users/admin/builder/spi-builder-workspace/.resolve-product-dependencies",
"version": "unspecified",
"path": "/Users/admin/builder/spi-builder-workspace/.resolve-product-dependencies",
"dependencies": [
{
"identity": "customizablesegmentedcontrol",
"name": "CustomizableSegmentedControl",
"url": "https://github.com/Inxel/CustomizableSegmentedControl.git",
"version": "unspecified",
"path": "/Users/admin/builder/spi-builder-workspace/.resolve-product-dependencies/.build/checkouts/CustomizableSegmentedControl",
"dependencies": [
]
}
]
}
Fetching https://github.com/Inxel/CustomizableSegmentedControl.git
[1/219] Fetching customizablesegmentedcontrol
Fetched https://github.com/Inxel/CustomizableSegmentedControl.git from cache (0.69s)
Creating working copy for https://github.com/Inxel/CustomizableSegmentedControl.git
Working copy of https://github.com/Inxel/CustomizableSegmentedControl.git resolved at 1.1.0 (484a358)
warning: '.resolve-product-dependencies': dependency 'customizablesegmentedcontrol' 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/Inxel/CustomizableSegmentedControl.git
Running build ...
env DEVELOPER_DIR=/Applications/Xcode-16.1.0.app xcrun swift build --arch arm64 -Xswiftc -Xfrontend -Xswiftc -stats-output-dir -Xswiftc -Xfrontend -Xswiftc .stats -Xswiftc -strict-concurrency=complete
Building for debugging...
[0/2] Write sources
[1/2] Write swift-version--7754E27361AE5C74.txt
[3/6] Compiling CustomizableSegmentedControl CustomizableSegmentedControlContentStyle.swift
/Users/admin/builder/spi-builder-workspace/Sources/CustomizableSegmentedControl/CustomizableSegmentedControlContentStyle.swift:20:27: error: 'BlendMode' is only available in macOS 10.15 or newer
9 |
10 | /// Style of segment content
11 | public enum CustomizableSegmentedControlContentStyle {
| `- note: add @available attribute to enclosing enum
12 | /// Default style. You configure color for all states of content.
13 | case `default`
:
18 | /// - highestLevelOverlayBlendMode: Blend mode applies to highest level overlay. Default is overlay..
19 | case blendMode(
20 | contentBlendMode: BlendMode = .difference,
| `- error: 'BlendMode' is only available in macOS 10.15 or newer
21 | firstLevelOverlayBlendMode: BlendMode = .hue,
22 | highestLevelOverlayBlendMode: BlendMode = .overlay
/Users/admin/builder/spi-builder-workspace/Sources/CustomizableSegmentedControl/CustomizableSegmentedControlContentStyle.swift:21:37: error: 'BlendMode' is only available in macOS 10.15 or newer
9 |
10 | /// Style of segment content
11 | public enum CustomizableSegmentedControlContentStyle {
| `- note: add @available attribute to enclosing enum
12 | /// Default style. You configure color for all states of content.
13 | case `default`
:
19 | case blendMode(
20 | contentBlendMode: BlendMode = .difference,
21 | firstLevelOverlayBlendMode: BlendMode = .hue,
| `- error: 'BlendMode' is only available in macOS 10.15 or newer
22 | highestLevelOverlayBlendMode: BlendMode = .overlay
23 | )
/Users/admin/builder/spi-builder-workspace/Sources/CustomizableSegmentedControl/CustomizableSegmentedControlContentStyle.swift:22:39: error: 'BlendMode' is only available in macOS 10.15 or newer
9 |
10 | /// Style of segment content
11 | public enum CustomizableSegmentedControlContentStyle {
| `- note: add @available attribute to enclosing enum
12 | /// Default style. You configure color for all states of content.
13 | case `default`
:
20 | contentBlendMode: BlendMode = .difference,
21 | firstLevelOverlayBlendMode: BlendMode = .hue,
22 | highestLevelOverlayBlendMode: BlendMode = .overlay
| `- error: 'BlendMode' is only available in macOS 10.15 or newer
23 | )
24 | }
error: emit-module command failed with exit code 1 (use -v to see invocation)
[4/6] Emitting module CustomizableSegmentedControl
/Users/admin/builder/spi-builder-workspace/Sources/CustomizableSegmentedControl/CustomizableSegmentedControl+EnvironmentValues.swift:11:16: warning: static property 'defaultValue' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
9 |
10 | private struct SegmentedControlInsetsKey: EnvironmentKey {
11 | static var defaultValue: EdgeInsets = .init(top: 0, leading: 0, bottom: 0, trailing: 0)
| |- warning: static property 'defaultValue' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'defaultValue' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'defaultValue' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
12 | }
13 |
/Users/admin/builder/spi-builder-workspace/Sources/CustomizableSegmentedControl/CustomizableSegmentedControl+EnvironmentValues.swift:11:30: error: 'EdgeInsets' is only available in macOS 10.15 or newer
8 | import SwiftUI
9 |
10 | private struct SegmentedControlInsetsKey: EnvironmentKey {
| `- note: add @available attribute to enclosing struct
11 | static var defaultValue: EdgeInsets = .init(top: 0, leading: 0, bottom: 0, trailing: 0)
| | `- error: 'EdgeInsets' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing static property
12 | }
13 |
/Users/admin/builder/spi-builder-workspace/Sources/CustomizableSegmentedControl/CustomizableSegmentedControl+EnvironmentValues.swift:15:16: warning: static property 'defaultValue' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
13 |
14 | private struct SegmentedControlInterSegmentSpacingKey: EnvironmentKey {
15 | static var defaultValue: CGFloat = .zero
| |- warning: static property 'defaultValue' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'defaultValue' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'defaultValue' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
16 | }
17 |
/Users/admin/builder/spi-builder-workspace/Sources/CustomizableSegmentedControl/CustomizableSegmentedControl+EnvironmentValues.swift:19:16: warning: static property 'defaultValue' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
17 |
18 | private struct SegmentedControlContentStyleKey: EnvironmentKey {
19 | static var defaultValue: CustomizableSegmentedControlContentStyle = .default
| |- warning: static property 'defaultValue' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'defaultValue' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'defaultValue' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
20 | }
21 |
/Users/admin/builder/spi-builder-workspace/Sources/CustomizableSegmentedControl/CustomizableSegmentedControl+EnvironmentValues.swift:23:16: warning: static property 'defaultValue' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
21 |
22 | private struct SegmentedControlSlidingAnimationKey: EnvironmentKey {
23 | static var defaultValue: Animation = .default
| |- warning: static property 'defaultValue' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'defaultValue' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'defaultValue' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
24 | }
25 |
/Users/admin/builder/spi-builder-workspace/Sources/CustomizableSegmentedControl/CustomizableSegmentedControl+EnvironmentValues.swift:23:30: error: 'Animation' is only available in macOS 10.15 or newer
20 | }
21 |
22 | private struct SegmentedControlSlidingAnimationKey: EnvironmentKey {
| `- note: add @available attribute to enclosing struct
23 | static var defaultValue: Animation = .default
| | `- error: 'Animation' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing static property
24 | }
25 |
/Users/admin/builder/spi-builder-workspace/Sources/CustomizableSegmentedControl/CustomizableSegmentedControl+EnvironmentValues.swift:23:43: error: 'default' is only available in macOS 10.15 or newer
20 | }
21 |
22 | private struct SegmentedControlSlidingAnimationKey: EnvironmentKey {
| `- note: add @available attribute to enclosing struct
23 | static var defaultValue: Animation = .default
| | `- error: 'default' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing static property
24 | }
25 |
/Users/admin/builder/spi-builder-workspace/Sources/CustomizableSegmentedControl/CustomizableSegmentedControl+EnvironmentValues.swift:28:33: error: 'EdgeInsets' is only available in macOS 10.15 or newer
24 | }
25 |
26 | extension EnvironmentValues {
| `- note: add @available attribute to enclosing extension
27 |
28 | var segmentedControlInsets: EdgeInsets {
| | `- error: 'EdgeInsets' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing property
29 | get { self[SegmentedControlInsetsKey.self] }
30 | set { self[SegmentedControlInsetsKey.self] = newValue }
/Users/admin/builder/spi-builder-workspace/Sources/CustomizableSegmentedControl/CustomizableSegmentedControl+EnvironmentValues.swift:43:43: error: 'Animation' is only available in macOS 10.15 or newer
24 | }
25 |
26 | extension EnvironmentValues {
| `- note: add @available attribute to enclosing extension
27 |
28 | var segmentedControlInsets: EdgeInsets {
:
41 | }
42 |
43 | var segmentedControlSlidingAnimation: Animation {
| | `- error: 'Animation' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing property
44 | get { self[SegmentedControlSlidingAnimationKey.self] }
45 | set { self[SegmentedControlSlidingAnimationKey.self] = newValue }
/Users/admin/builder/spi-builder-workspace/Sources/CustomizableSegmentedControl/CustomizableSegmentedControl+EnvironmentValues.swift:26:11: error: 'EnvironmentValues' is only available in macOS 10.15 or newer
24 | }
25 |
26 | extension EnvironmentValues {
| | `- error: 'EnvironmentValues' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing extension
27 |
28 | var segmentedControlInsets: EdgeInsets {
/Users/admin/builder/spi-builder-workspace/Sources/CustomizableSegmentedControl/CustomizableSegmentedControl+EnvironmentValues.swift:52:27: error: 'EdgeInsets' is only available in macOS 10.15 or newer
48 | }
49 |
50 | public extension CustomizableSegmentedControl {
| `- note: add @available attribute to enclosing extension
51 |
52 | func insets(_ insets: EdgeInsets) -> some View {
| | `- error: 'EdgeInsets' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing instance method
53 | environment(\.segmentedControlInsets, insets)
54 | }
/Users/admin/builder/spi-builder-workspace/Sources/CustomizableSegmentedControl/CustomizableSegmentedControl+EnvironmentValues.swift:52:47: error: 'View' is only available in macOS 10.15 or newer
48 | }
49 |
50 | public extension CustomizableSegmentedControl {
| `- note: add @available attribute to enclosing extension
51 |
52 | func insets(_ insets: EdgeInsets) -> some View {
| | `- error: 'View' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing instance method
53 | environment(\.segmentedControlInsets, insets)
54 | }
/Users/admin/builder/spi-builder-workspace/Sources/CustomizableSegmentedControl/CustomizableSegmentedControl+EnvironmentValues.swift:56:121: error: 'View' is only available in macOS 10.15 or newer
48 | }
49 |
50 | public extension CustomizableSegmentedControl {
| `- note: add @available attribute to enclosing extension
51 |
52 | func insets(_ insets: EdgeInsets) -> some View {
:
54 | }
55 |
56 | func insets(top: CGFloat? = nil, leading: CGFloat? = nil, bottom: CGFloat? = nil, trailing: CGFloat? = nil) -> some View {
| | `- error: 'View' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing instance method
57 | environment(\.segmentedControlInsets, .init(
58 | top: top ?? segmentedControlInsets.top,
/Users/admin/builder/spi-builder-workspace/Sources/CustomizableSegmentedControl/CustomizableSegmentedControl+EnvironmentValues.swift:65:26: error: 'Edge' is only available in macOS 10.15 or newer
48 | }
49 |
50 | public extension CustomizableSegmentedControl {
| `- note: add @available attribute to enclosing extension
51 |
52 | func insets(_ insets: EdgeInsets) -> some View {
:
63 | }
64 |
65 | func insets(_ edges: Edge.Set = .all, _ length: CGFloat? = nil) -> some View {
| | `- error: 'Edge' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing instance method
66 | switch edges {
67 | case .vertical:
/Users/admin/builder/spi-builder-workspace/Sources/CustomizableSegmentedControl/CustomizableSegmentedControl+EnvironmentValues.swift:65:77: error: 'View' is only available in macOS 10.15 or newer
48 | }
49 |
50 | public extension CustomizableSegmentedControl {
| `- note: add @available attribute to enclosing extension
51 |
52 | func insets(_ insets: EdgeInsets) -> some View {
:
63 | }
64 |
65 | func insets(_ edges: Edge.Set = .all, _ length: CGFloat? = nil) -> some View {
| | `- error: 'View' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing instance method
66 | switch edges {
67 | case .vertical:
/Users/admin/builder/spi-builder-workspace/Sources/CustomizableSegmentedControl/CustomizableSegmentedControl+EnvironmentValues.swift:96:65: error: 'View' is only available in macOS 10.15 or newer
92 | }
93 |
94 | public extension View {
| `- note: add @available attribute to enclosing extension
95 |
96 | func segmentedControl(interSegmentSpacing: CGFloat) -> some View {
| | `- error: 'View' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing instance method
97 | environment(\.segmentedControlInterSegmentSpacing, interSegmentSpacing)
98 | }
/Users/admin/builder/spi-builder-workspace/Sources/CustomizableSegmentedControl/CustomizableSegmentedControl+EnvironmentValues.swift:100:98: error: 'View' is only available in macOS 10.15 or newer
92 | }
93 |
94 | public extension View {
| `- note: add @available attribute to enclosing extension
95 |
96 | func segmentedControl(interSegmentSpacing: CGFloat) -> some View {
:
98 | }
99 |
100 | func segmentedControlContentStyle(_ style: CustomizableSegmentedControlContentStyle) -> some View {
| | `- error: 'View' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing instance method
101 | environment(\.segmentedControlContentStyle, style)
102 | }
/Users/admin/builder/spi-builder-workspace/Sources/CustomizableSegmentedControl/CustomizableSegmentedControl+EnvironmentValues.swift:104:56: error: 'Animation' is only available in macOS 10.15 or newer
92 | }
93 |
94 | public extension View {
| `- note: add @available attribute to enclosing extension
95 |
96 | func segmentedControl(interSegmentSpacing: CGFloat) -> some View {
:
102 | }
103 |
104 | func segmentedControlSlidingAnimation(_ animation: Animation) -> some View {
| | `- error: 'Animation' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing instance method
105 | environment(\.segmentedControlSlidingAnimation, animation)
106 | }
/Users/admin/builder/spi-builder-workspace/Sources/CustomizableSegmentedControl/CustomizableSegmentedControl+EnvironmentValues.swift:104:75: error: 'View' is only available in macOS 10.15 or newer
92 | }
93 |
94 | public extension View {
| `- note: add @available attribute to enclosing extension
95 |
96 | func segmentedControl(interSegmentSpacing: CGFloat) -> some View {
:
102 | }
103 |
104 | func segmentedControlSlidingAnimation(_ animation: Animation) -> some View {
| | `- error: 'View' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing instance method
105 | environment(\.segmentedControlSlidingAnimation, animation)
106 | }
/Users/admin/builder/spi-builder-workspace/Sources/CustomizableSegmentedControl/CustomizableSegmentedControl+EnvironmentValues.swift:94:18: error: 'View' is only available in macOS 10.15 or newer
92 | }
93 |
94 | public extension View {
| | `- error: 'View' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing extension
95 |
96 | func segmentedControl(interSegmentSpacing: CGFloat) -> some View {
/Users/admin/builder/spi-builder-workspace/Sources/CustomizableSegmentedControl/CustomizableSegmentedControl.swift:9:6: error: 'Environment' is only available in macOS 10.15 or newer
3 | // MARK: - Segmented Control
4 |
5 | public struct CustomizableSegmentedControl<Option: Hashable & Identifiable, SelectionView: View, SegmentContent: View>: View {
| `- note: add @available attribute to enclosing generic struct
6 |
7 | // MARK: - Properties
8 |
9 | @Environment(\.segmentedControlInsets) var segmentedControlInsets
| `- error: 'Environment' is only available in macOS 10.15 or newer
10 | @Environment(\.segmentedControlInterSegmentSpacing) var interSegmentSpacing
11 | @Environment(\.segmentedControlSlidingAnimation) var slidingAnimation
/Users/admin/builder/spi-builder-workspace/Sources/CustomizableSegmentedControl/CustomizableSegmentedControl.swift:10:6: error: 'Environment' is only available in macOS 10.15 or newer
3 | // MARK: - Segmented Control
4 |
5 | public struct CustomizableSegmentedControl<Option: Hashable & Identifiable, SelectionView: View, SegmentContent: View>: View {
| `- note: add @available attribute to enclosing generic struct
6 |
7 | // MARK: - Properties
8 |
9 | @Environment(\.segmentedControlInsets) var segmentedControlInsets
10 | @Environment(\.segmentedControlInterSegmentSpacing) var interSegmentSpacing
| `- error: 'Environment' is only available in macOS 10.15 or newer
11 | @Environment(\.segmentedControlSlidingAnimation) var slidingAnimation
12 | @Environment(\.segmentedControlContentStyle) var contentStyle
/Users/admin/builder/spi-builder-workspace/Sources/CustomizableSegmentedControl/CustomizableSegmentedControl.swift:11:6: error: 'Environment' is only available in macOS 10.15 or newer
3 | // MARK: - Segmented Control
4 |
5 | public struct CustomizableSegmentedControl<Option: Hashable & Identifiable, SelectionView: View, SegmentContent: View>: View {
| `- note: add @available attribute to enclosing generic struct
6 |
7 | // MARK: - Properties
:
9 | @Environment(\.segmentedControlInsets) var segmentedControlInsets
10 | @Environment(\.segmentedControlInterSegmentSpacing) var interSegmentSpacing
11 | @Environment(\.segmentedControlSlidingAnimation) var slidingAnimation
| `- error: 'Environment' is only available in macOS 10.15 or newer
12 | @Environment(\.segmentedControlContentStyle) var contentStyle
13 |
/Users/admin/builder/spi-builder-workspace/Sources/CustomizableSegmentedControl/CustomizableSegmentedControl.swift:12:6: error: 'Environment' is only available in macOS 10.15 or newer
3 | // MARK: - Segmented Control
4 |
5 | public struct CustomizableSegmentedControl<Option: Hashable & Identifiable, SelectionView: View, SegmentContent: View>: View {
| `- note: add @available attribute to enclosing generic struct
6 |
7 | // MARK: - Properties
:
10 | @Environment(\.segmentedControlInterSegmentSpacing) var interSegmentSpacing
11 | @Environment(\.segmentedControlSlidingAnimation) var slidingAnimation
12 | @Environment(\.segmentedControlContentStyle) var contentStyle
| `- error: 'Environment' is only available in macOS 10.15 or newer
13 |
14 | @Binding private var selection: Option
/Users/admin/builder/spi-builder-workspace/Sources/CustomizableSegmentedControl/CustomizableSegmentedControl.swift:14:6: error: 'Binding' is only available in macOS 10.15 or newer
3 | // MARK: - Segmented Control
4 |
5 | public struct CustomizableSegmentedControl<Option: Hashable & Identifiable, SelectionView: View, SegmentContent: View>: View {
| `- note: add @available attribute to enclosing generic struct
6 |
7 | // MARK: - Properties
:
12 | @Environment(\.segmentedControlContentStyle) var contentStyle
13 |
14 | @Binding private var selection: Option
| `- error: 'Binding' is only available in macOS 10.15 or newer
15 | private let options: [Option]
16 | private let selectionView: () -> SelectionView
/Users/admin/builder/spi-builder-workspace/Sources/CustomizableSegmentedControl/CustomizableSegmentedControl.swift:19:6: error: 'State' is only available in macOS 10.15 or newer
3 | // MARK: - Segmented Control
4 |
5 | public struct CustomizableSegmentedControl<Option: Hashable & Identifiable, SelectionView: View, SegmentContent: View>: View {
| `- note: add @available attribute to enclosing generic struct
6 |
7 | // MARK: - Properties
:
17 | private let segmentContent: (Option, Bool) -> SegmentContent
18 |
19 | @State private var optionIsPressed: [Option.ID: Bool] = [:]
| `- error: 'State' is only available in macOS 10.15 or newer
20 |
21 | private var segmentAccessibilityValueCompletion: (Int, Int) -> String = { index, count in
/Users/admin/builder/spi-builder-workspace/Sources/CustomizableSegmentedControl/CustomizableSegmentedControl.swift:25:6: error: 'Namespace' is only available in macOS 11.0 or newer
3 | // MARK: - Segmented Control
4 |
5 | public struct CustomizableSegmentedControl<Option: Hashable & Identifiable, SelectionView: View, SegmentContent: View>: View {
| `- note: add @available attribute to enclosing generic struct
6 |
7 | // MARK: - Properties
:
23 | }
24 |
25 | @Namespace private var namespaceID
| `- error: 'Namespace' is only available in macOS 11.0 or newer
26 | private let buttonBackgroundID: String = "buttonOverlayID"
27 |
/Users/admin/builder/spi-builder-workspace/Sources/CustomizableSegmentedControl/CustomizableSegmentedControl.swift:41:20: error: 'Binding' is only available in macOS 10.15 or newer
3 | // MARK: - Segmented Control
4 |
5 | public struct CustomizableSegmentedControl<Option: Hashable & Identifiable, SelectionView: View, SegmentContent: View>: View {
| `- note: add @available attribute to enclosing generic struct
6 |
7 | // MARK: - Properties
:
38 | /// - selectionView: Selected option background.
39 | /// - segmentContent: Content of segment. Returns related option and isPressed parameters.
40 | public init(
| `- note: add @available attribute to enclosing initializer
41 | selection: Binding<Option>,
| `- error: 'Binding' is only available in macOS 10.15 or newer
42 | options: [Option],
43 | selectionView: @escaping () -> SelectionView,
/Users/admin/builder/spi-builder-workspace/Sources/CustomizableSegmentedControl/CustomizableSegmentedControl.swift:44:10: error: 'ViewBuilder' is only available in macOS 10.15 or newer
3 | // MARK: - Segmented Control
4 |
5 | public struct CustomizableSegmentedControl<Option: Hashable & Identifiable, SelectionView: View, SegmentContent: View>: View {
| `- note: add @available attribute to enclosing generic struct
6 |
7 | // MARK: - Properties
:
38 | /// - selectionView: Selected option background.
39 | /// - segmentContent: Content of segment. Returns related option and isPressed parameters.
40 | public init(
| `- note: add @available attribute to enclosing initializer
41 | selection: Binding<Option>,
42 | options: [Option],
43 | selectionView: @escaping () -> SelectionView,
44 | @ViewBuilder segmentContent: @escaping (Option, Bool) -> SegmentContent
| `- error: 'ViewBuilder' is only available in macOS 10.15 or newer
45 | ) {
46 | self._selection = selection
/Users/admin/builder/spi-builder-workspace/Sources/CustomizableSegmentedControl/CustomizableSegmentedControl.swift:55:27: error: 'View' is only available in macOS 10.15 or newer
3 | // MARK: - Segmented Control
4 |
5 | public struct CustomizableSegmentedControl<Option: Hashable & Identifiable, SelectionView: View, SegmentContent: View>: View {
| `- note: add @available attribute to enclosing generic struct
6 |
7 | // MARK: - Properties
:
53 | // MARK: - UI
54 |
55 | public var body: some View {
| | `- error: 'View' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing property
56 | HStack(spacing: interSegmentSpacing) {
57 | ForEach(Array(zip(options.indices, options)), id: \.1.id) { index, option in
/Users/admin/builder/spi-builder-workspace/Sources/CustomizableSegmentedControl/CustomizableSegmentedControl.swift:5:63: error: 'Identifiable' is only available in macOS 10.15 or newer
3 | // MARK: - Segmented Control
4 |
5 | public struct CustomizableSegmentedControl<Option: Hashable & Identifiable, SelectionView: View, SegmentContent: View>: View {
| | `- error: 'Identifiable' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing generic struct
6 |
7 | // MARK: - Properties
/Users/admin/builder/spi-builder-workspace/Sources/CustomizableSegmentedControl/CustomizableSegmentedControl.swift:5:92: error: 'View' is only available in macOS 10.15 or newer
3 | // MARK: - Segmented Control
4 |
5 | public struct CustomizableSegmentedControl<Option: Hashable & Identifiable, SelectionView: View, SegmentContent: View>: View {
| | `- error: 'View' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing generic struct
6 |
7 | // MARK: - Properties
/Users/admin/builder/spi-builder-workspace/Sources/CustomizableSegmentedControl/CustomizableSegmentedControl.swift:5:114: error: 'View' is only available in macOS 10.15 or newer
3 | // MARK: - Segmented Control
4 |
5 | public struct CustomizableSegmentedControl<Option: Hashable & Identifiable, SelectionView: View, SegmentContent: View>: View {
| | `- error: 'View' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing generic struct
6 |
7 | // MARK: - Properties
/Users/admin/builder/spi-builder-workspace/Sources/CustomizableSegmentedControl/CustomizableSegmentedControl.swift:94:24: error: 'Animation' is only available in macOS 10.15 or newer
85 | extension CustomizableSegmentedControl {
86 |
87 | fileprivate struct Segment<SegmentSelectionView: View, Content: View>: View {
| `- note: add @available attribute to enclosing generic struct
88 |
89 | // MARK: - Properties
:
92 | let selectionView: SegmentSelectionView
93 | let isSelected: Bool
94 | let animation: Animation
| `- error: 'Animation' is only available in macOS 10.15 or newer
95 | let contentBlendMode: BlendMode?
96 | let firstLevelOverlayBlendMode: BlendMode?
/Users/admin/builder/spi-builder-workspace/Sources/CustomizableSegmentedControl/CustomizableSegmentedControl.swift:95:31: error: 'BlendMode' is only available in macOS 10.15 or newer
85 | extension CustomizableSegmentedControl {
86 |
87 | fileprivate struct Segment<SegmentSelectionView: View, Content: View>: View {
| `- note: add @available attribute to enclosing generic struct
88 |
89 | // MARK: - Properties
:
93 | let isSelected: Bool
94 | let animation: Animation
95 | let contentBlendMode: BlendMode?
| `- error: 'BlendMode' is only available in macOS 10.15 or newer
96 | let firstLevelOverlayBlendMode: BlendMode?
97 | let highestLevelOverlayBlendMode: BlendMode?
/Users/admin/builder/spi-builder-workspace/Sources/CustomizableSegmentedControl/CustomizableSegmentedControl.swift:96:41: error: 'BlendMode' is only available in macOS 10.15 or newer
85 | extension CustomizableSegmentedControl {
86 |
87 | fileprivate struct Segment<SegmentSelectionView: View, Content: View>: View {
| `- note: add @available attribute to enclosing generic struct
88 |
89 | // MARK: - Properties
:
94 | let animation: Animation
95 | let contentBlendMode: BlendMode?
96 | let firstLevelOverlayBlendMode: BlendMode?
| `- error: 'BlendMode' is only available in macOS 10.15 or newer
97 | let highestLevelOverlayBlendMode: BlendMode?
98 | @Binding var isPressed: Bool
/Users/admin/builder/spi-builder-workspace/Sources/CustomizableSegmentedControl/CustomizableSegmentedControl.swift:97:43: error: 'BlendMode' is only available in macOS 10.15 or newer
85 | extension CustomizableSegmentedControl {
86 |
87 | fileprivate struct Segment<SegmentSelectionView: View, Content: View>: View {
| `- note: add @available attribute to enclosing generic struct
88 |
89 | // MARK: - Properties
:
95 | let contentBlendMode: BlendMode?
96 | let firstLevelOverlayBlendMode: BlendMode?
97 | let highestLevelOverlayBlendMode: BlendMode?
| `- error: 'BlendMode' is only available in macOS 10.15 or newer
98 | @Binding var isPressed: Bool
99 | let backgroundID: String
/Users/admin/builder/spi-builder-workspace/Sources/CustomizableSegmentedControl/CustomizableSegmentedControl.swift:98:10: error: 'Binding' is only available in macOS 10.15 or newer
85 | extension CustomizableSegmentedControl {
86 |
87 | fileprivate struct Segment<SegmentSelectionView: View, Content: View>: View {
| |- note: add @available attribute to enclosing generic struct
| `- note: add @available attribute to enclosing generic struct
88 |
89 | // MARK: - Properties
:
96 | let firstLevelOverlayBlendMode: BlendMode?
97 | let highestLevelOverlayBlendMode: BlendMode?
98 | @Binding var isPressed: Bool
| `- error: 'Binding' is only available in macOS 10.15 or newer
99 | let backgroundID: String
100 | let namespaceID: Namespace.ID
/Users/admin/builder/spi-builder-workspace/Sources/CustomizableSegmentedControl/CustomizableSegmentedControl.swift:100:26: error: 'Namespace' is only available in macOS 11.0 or newer
85 | extension CustomizableSegmentedControl {
86 |
87 | fileprivate struct Segment<SegmentSelectionView: View, Content: View>: View {
| `- note: add @available attribute to enclosing generic struct
88 |
89 | // MARK: - Properties
:
98 | @Binding var isPressed: Bool
99 | let backgroundID: String
100 | let namespaceID: Namespace.ID
| `- error: 'Namespace' is only available in macOS 11.0 or newer
101 | let accessibiltyValue: String
102 | let action: () -> Void
/Users/admin/builder/spi-builder-workspace/Sources/CustomizableSegmentedControl/CustomizableSegmentedControl.swift:106:24: error: 'View' is only available in macOS 10.15 or newer
85 | extension CustomizableSegmentedControl {
86 |
87 | fileprivate struct Segment<SegmentSelectionView: View, Content: View>: View {
| `- note: add @available attribute to enclosing generic struct
88 |
89 | // MARK: - Properties
:
104 | // MARK: - UI
105 |
106 | var body: some View {
| | `- error: 'View' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing property
107 | Button(action: action) {
108 | content
/Users/admin/builder/spi-builder-workspace/Sources/CustomizableSegmentedControl/CustomizableSegmentedControl.swift:87:54: error: 'View' is only available in macOS 10.15 or newer
85 | extension CustomizableSegmentedControl {
86 |
87 | fileprivate struct Segment<SegmentSelectionView: View, Content: View>: View {
| | `- error: 'View' is only available in macOS 10.15 or newer
| |- note: add @available attribute to enclosing generic struct
| `- note: add @available attribute to enclosing generic struct
88 |
89 | // MARK: - Properties
/Users/admin/builder/spi-builder-workspace/Sources/CustomizableSegmentedControl/CustomizableSegmentedControl.swift:87:69: error: 'View' is only available in macOS 10.15 or newer
85 | extension CustomizableSegmentedControl {
86 |
87 | fileprivate struct Segment<SegmentSelectionView: View, Content: View>: View {
| | `- error: 'View' is only available in macOS 10.15 or newer
| |- note: add @available attribute to enclosing generic struct
| `- note: add @available attribute to enclosing generic struct
88 |
89 | // MARK: - Properties
/Users/admin/builder/spi-builder-workspace/Sources/CustomizableSegmentedControl/CustomizableSegmentedControl.swift:159:20: error: 'Binding' is only available in macOS 10.15 or newer
144 | // MARK: - CustomizableSegmentedControl + Custom Inits
145 |
146 | extension CustomizableSegmentedControl {
| `- note: add @available attribute to enclosing extension
147 |
148 | /// - parameters:
:
156 | /// - selectionView: Selected option background.
157 | /// - segmentContent: Content of segment. Returns related option and isPressed parameter.s
158 | public init(
| `- note: add @available attribute to enclosing initializer
159 | selection: Binding<Option>,
| `- error: 'Binding' is only available in macOS 10.15 or newer
160 | options: [Option],
161 | selectionView: SelectionView,
/Users/admin/builder/spi-builder-workspace/Sources/CustomizableSegmentedControl/CustomizableSegmentedControl.swift:162:10: error: 'ViewBuilder' is only available in macOS 10.15 or newer
144 | // MARK: - CustomizableSegmentedControl + Custom Inits
145 |
146 | extension CustomizableSegmentedControl {
| `- note: add @available attribute to enclosing extension
147 |
148 | /// - parameters:
:
156 | /// - selectionView: Selected option background.
157 | /// - segmentContent: Content of segment. Returns related option and isPressed parameter.s
158 | public init(
| `- note: add @available attribute to enclosing initializer
159 | selection: Binding<Option>,
160 | options: [Option],
161 | selectionView: SelectionView,
162 | @ViewBuilder segmentContent: @escaping (Option, Bool) -> SegmentContent
| `- error: 'ViewBuilder' is only available in macOS 10.15 or newer
163 | ) {
164 | self.init(
/Users/admin/builder/spi-builder-workspace/Sources/CustomizableSegmentedControl/CustomizableSegmentedControl.swift:180:10: error: 'Binding' is only available in macOS 10.15 or newer
176 | extension CustomizableSegmentedControl.Segment {
177 |
178 | private struct SegmentButtonStyle: ButtonStyle {
| |- note: add @available attribute to enclosing struct
| `- note: add @available attribute to enclosing struct
179 |
180 | @Binding var isPressed: Bool
| `- error: 'Binding' is only available in macOS 10.15 or newer
181 |
182 | func makeBody(configuration: Configuration) -> some View {
/Users/admin/builder/spi-builder-workspace/Sources/CustomizableSegmentedControl/CustomizableSegmentedControl.swift:182:61: error: 'View' is only available in macOS 10.15 or newer
176 | extension CustomizableSegmentedControl.Segment {
177 |
178 | private struct SegmentButtonStyle: ButtonStyle {
| `- note: add @available attribute to enclosing struct
179 |
180 | @Binding var isPressed: Bool
181 |
182 | func makeBody(configuration: Configuration) -> some View {
| | `- error: 'View' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing instance method
183 | configuration.label
184 | .contentShape(Rectangle())
/Users/admin/builder/spi-builder-workspace/Sources/CustomizableSegmentedControl/CustomizableSegmentedControl.swift:198:27: error: 'BlendMode' is only available in macOS 10.15 or newer
194 | // MARK: - CustomizableSegmentedControlContentStyle + Properties
195 |
196 | private extension CustomizableSegmentedControlContentStyle {
| `- note: add @available attribute to enclosing extension
197 |
198 | var contentBlendMode: BlendMode? {
| | `- error: 'BlendMode' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing property
199 | switch self {
200 | case .default:
/Users/admin/builder/spi-builder-workspace/Sources/CustomizableSegmentedControl/CustomizableSegmentedControl.swift:207:37: error: 'BlendMode' is only available in macOS 10.15 or newer
194 | // MARK: - CustomizableSegmentedControlContentStyle + Properties
195 |
196 | private extension CustomizableSegmentedControlContentStyle {
| `- note: add @available attribute to enclosing extension
197 |
198 | var contentBlendMode: BlendMode? {
:
205 | }
206 |
207 | var firstLevelOverlayBlendMode: BlendMode? {
| | `- error: 'BlendMode' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing property
208 | switch self {
209 | case .default:
/Users/admin/builder/spi-builder-workspace/Sources/CustomizableSegmentedControl/CustomizableSegmentedControl.swift:216:39: error: 'BlendMode' is only available in macOS 10.15 or newer
194 | // MARK: - CustomizableSegmentedControlContentStyle + Properties
195 |
196 | private extension CustomizableSegmentedControlContentStyle {
| `- note: add @available attribute to enclosing extension
197 |
198 | var contentBlendMode: BlendMode? {
:
214 | }
215 |
216 | var highestLevelOverlayBlendMode: BlendMode? {
| | `- error: 'BlendMode' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing property
217 | switch self {
218 | case .default:
/Users/admin/builder/spi-builder-workspace/Sources/CustomizableSegmentedControl/CustomizableSegmentedControl.swift:248:36: error: 'BlendMode' is only available in macOS 10.15 or newer
243 | // MARK: - View + Extensions
244 |
245 | private extension View {
| `- note: add @available attribute to enclosing extension
246 |
247 | @ViewBuilder
248 | func blendModeIfNotNil(_ mode: BlendMode?) -> some View {
| | `- error: 'BlendMode' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing instance method
249 | if let mode {
250 | blendMode(mode)
/Users/admin/builder/spi-builder-workspace/Sources/CustomizableSegmentedControl/CustomizableSegmentedControl.swift:248:56: error: 'View' is only available in macOS 10.15 or newer
243 | // MARK: - View + Extensions
244 |
245 | private extension View {
| `- note: add @available attribute to enclosing extension
246 |
247 | @ViewBuilder
248 | func blendModeIfNotNil(_ mode: BlendMode?) -> some View {
| | `- error: 'View' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing instance method
249 | if let mode {
250 | blendMode(mode)
/Users/admin/builder/spi-builder-workspace/Sources/CustomizableSegmentedControl/CustomizableSegmentedControl.swift:247:6: error: 'ViewBuilder' is only available in macOS 10.15 or newer
243 | // MARK: - View + Extensions
244 |
245 | private extension View {
| `- note: add @available attribute to enclosing extension
246 |
247 | @ViewBuilder
| `- error: 'ViewBuilder' is only available in macOS 10.15 or newer
248 | func blendModeIfNotNil(_ mode: BlendMode?) -> some View {
| `- note: add @available attribute to enclosing instance method
249 | if let mode {
250 | blendMode(mode)
/Users/admin/builder/spi-builder-workspace/Sources/CustomizableSegmentedControl/CustomizableSegmentedControl.swift:257:24: error: 'View' is only available in macOS 10.15 or newer
243 | // MARK: - View + Extensions
244 |
245 | private extension View {
| `- note: add @available attribute to enclosing extension
246 |
247 | @ViewBuilder
:
255 |
256 | @ViewBuilder
257 | func background<T: View>(
| | `- error: 'View' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing instance method
258 | alignment: Alignment = .center,
259 | @ViewBuilder _ content: () -> T
/Users/admin/builder/spi-builder-workspace/Sources/CustomizableSegmentedControl/CustomizableSegmentedControl.swift:258:20: error: 'Alignment' is only available in macOS 10.15 or newer
243 | // MARK: - View + Extensions
244 |
245 | private extension View {
| `- note: add @available attribute to enclosing extension
246 |
247 | @ViewBuilder
:
255 |
256 | @ViewBuilder
257 | func background<T: View>(
| `- note: add @available attribute to enclosing instance method
258 | alignment: Alignment = .center,
| `- error: 'Alignment' is only available in macOS 10.15 or newer
259 | @ViewBuilder _ content: () -> T
260 | ) -> some View {
/Users/admin/builder/spi-builder-workspace/Sources/CustomizableSegmentedControl/CustomizableSegmentedControl.swift:259:10: error: 'ViewBuilder' is only available in macOS 10.15 or newer
243 | // MARK: - View + Extensions
244 |
245 | private extension View {
| `- note: add @available attribute to enclosing extension
246 |
247 | @ViewBuilder
:
255 |
256 | @ViewBuilder
257 | func background<T: View>(
| `- note: add @available attribute to enclosing instance method
258 | alignment: Alignment = .center,
259 | @ViewBuilder _ content: () -> T
| `- error: 'ViewBuilder' is only available in macOS 10.15 or newer
260 | ) -> some View {
261 | if #available(iOS 15.0, *) {
/Users/admin/builder/spi-builder-workspace/Sources/CustomizableSegmentedControl/CustomizableSegmentedControl.swift:260:15: error: 'View' is only available in macOS 10.15 or newer
243 | // MARK: - View + Extensions
244 |
245 | private extension View {
| `- note: add @available attribute to enclosing extension
246 |
247 | @ViewBuilder
:
255 |
256 | @ViewBuilder
257 | func background<T: View>(
| `- note: add @available attribute to enclosing instance method
258 | alignment: Alignment = .center,
259 | @ViewBuilder _ content: () -> T
260 | ) -> some View {
| `- error: 'View' is only available in macOS 10.15 or newer
261 | if #available(iOS 15.0, *) {
262 | background(alignment: alignment, content: content)
/Users/admin/builder/spi-builder-workspace/Sources/CustomizableSegmentedControl/CustomizableSegmentedControl.swift:256:6: error: 'ViewBuilder' is only available in macOS 10.15 or newer
243 | // MARK: - View + Extensions
244 |
245 | private extension View {
| `- note: add @available attribute to enclosing extension
246 |
247 | @ViewBuilder
:
254 | }
255 |
256 | @ViewBuilder
| `- error: 'ViewBuilder' is only available in macOS 10.15 or newer
257 | func background<T: View>(
| `- note: add @available attribute to enclosing instance method
258 | alignment: Alignment = .center,
259 | @ViewBuilder _ content: () -> T
/Users/admin/builder/spi-builder-workspace/Sources/CustomizableSegmentedControl/CustomizableSegmentedControl.swift:258:33: error: 'center' is only available in macOS 10.15 or newer
243 | // MARK: - View + Extensions
244 |
245 | private extension View {
| `- note: add @available attribute to enclosing extension
246 |
247 | @ViewBuilder
:
255 |
256 | @ViewBuilder
257 | func background<T: View>(
| `- note: add @available attribute to enclosing instance method
258 | alignment: Alignment = .center,
| `- error: 'center' is only available in macOS 10.15 or newer
259 | @ViewBuilder _ content: () -> T
260 | ) -> some View {
/Users/admin/builder/spi-builder-workspace/Sources/CustomizableSegmentedControl/CustomizableSegmentedControl.swift:269:21: error: 'View' is only available in macOS 10.15 or newer
243 | // MARK: - View + Extensions
244 |
245 | private extension View {
| `- note: add @available attribute to enclosing extension
246 |
247 | @ViewBuilder
:
267 |
268 | @ViewBuilder
269 | func overlay<T: View>(
| | `- error: 'View' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing instance method
270 | alignment: Alignment = .center,
271 | @ViewBuilder _ content: () -> T
/Users/admin/builder/spi-builder-workspace/Sources/CustomizableSegmentedControl/CustomizableSegmentedControl.swift:270:20: error: 'Alignment' is only available in macOS 10.15 or newer
243 | // MARK: - View + Extensions
244 |
245 | private extension View {
| `- note: add @available attribute to enclosing extension
246 |
247 | @ViewBuilder
:
267 |
268 | @ViewBuilder
269 | func overlay<T: View>(
| `- note: add @available attribute to enclosing instance method
270 | alignment: Alignment = .center,
| `- error: 'Alignment' is only available in macOS 10.15 or newer
271 | @ViewBuilder _ content: () -> T
272 | ) -> some View {
/Users/admin/builder/spi-builder-workspace/Sources/CustomizableSegmentedControl/CustomizableSegmentedControl.swift:271:10: error: 'ViewBuilder' is only available in macOS 10.15 or newer
243 | // MARK: - View + Extensions
244 |
245 | private extension View {
| `- note: add @available attribute to enclosing extension
246 |
247 | @ViewBuilder
:
267 |
268 | @ViewBuilder
269 | func overlay<T: View>(
| `- note: add @available attribute to enclosing instance method
270 | alignment: Alignment = .center,
271 | @ViewBuilder _ content: () -> T
| `- error: 'ViewBuilder' is only available in macOS 10.15 or newer
272 | ) -> some View {
273 | if #available(iOS 15.0, *) {
/Users/admin/builder/spi-builder-workspace/Sources/CustomizableSegmentedControl/CustomizableSegmentedControl.swift:272:15: error: 'View' is only available in macOS 10.15 or newer
243 | // MARK: - View + Extensions
244 |
245 | private extension View {
| `- note: add @available attribute to enclosing extension
246 |
247 | @ViewBuilder
:
267 |
268 | @ViewBuilder
269 | func overlay<T: View>(
| `- note: add @available attribute to enclosing instance method
270 | alignment: Alignment = .center,
271 | @ViewBuilder _ content: () -> T
272 | ) -> some View {
| `- error: 'View' is only available in macOS 10.15 or newer
273 | if #available(iOS 15.0, *) {
274 | overlay(alignment: alignment, content: content)
/Users/admin/builder/spi-builder-workspace/Sources/CustomizableSegmentedControl/CustomizableSegmentedControl.swift:268:6: error: 'ViewBuilder' is only available in macOS 10.15 or newer
243 | // MARK: - View + Extensions
244 |
245 | private extension View {
| `- note: add @available attribute to enclosing extension
246 |
247 | @ViewBuilder
:
266 | }
267 |
268 | @ViewBuilder
| `- error: 'ViewBuilder' is only available in macOS 10.15 or newer
269 | func overlay<T: View>(
| `- note: add @available attribute to enclosing instance method
270 | alignment: Alignment = .center,
271 | @ViewBuilder _ content: () -> T
/Users/admin/builder/spi-builder-workspace/Sources/CustomizableSegmentedControl/CustomizableSegmentedControl.swift:270:33: error: 'center' is only available in macOS 10.15 or newer
243 | // MARK: - View + Extensions
244 |
245 | private extension View {
| `- note: add @available attribute to enclosing extension
246 |
247 | @ViewBuilder
:
267 |
268 | @ViewBuilder
269 | func overlay<T: View>(
| `- note: add @available attribute to enclosing instance method
270 | alignment: Alignment = .center,
| `- error: 'center' is only available in macOS 10.15 or newer
271 | @ViewBuilder _ content: () -> T
272 | ) -> some View {
/Users/admin/builder/spi-builder-workspace/Sources/CustomizableSegmentedControl/CustomizableSegmentedControl.swift:245:19: error: 'View' is only available in macOS 10.15 or newer
243 | // MARK: - View + Extensions
244 |
245 | private extension View {
| | `- error: 'View' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing extension
246 |
247 | @ViewBuilder
/Users/admin/builder/spi-builder-workspace/Sources/CustomizableSegmentedControl/CustomizableSegmentedControlContentStyle.swift:20:27: error: 'BlendMode' is only available in macOS 10.15 or newer
9 |
10 | /// Style of segment content
11 | public enum CustomizableSegmentedControlContentStyle {
| `- note: add @available attribute to enclosing enum
12 | /// Default style. You configure color for all states of content.
13 | case `default`
:
18 | /// - highestLevelOverlayBlendMode: Blend mode applies to highest level overlay. Default is overlay..
19 | case blendMode(
20 | contentBlendMode: BlendMode = .difference,
| `- error: 'BlendMode' is only available in macOS 10.15 or newer
21 | firstLevelOverlayBlendMode: BlendMode = .hue,
22 | highestLevelOverlayBlendMode: BlendMode = .overlay
/Users/admin/builder/spi-builder-workspace/Sources/CustomizableSegmentedControl/CustomizableSegmentedControlContentStyle.swift:21:37: error: 'BlendMode' is only available in macOS 10.15 or newer
9 |
10 | /// Style of segment content
11 | public enum CustomizableSegmentedControlContentStyle {
| `- note: add @available attribute to enclosing enum
12 | /// Default style. You configure color for all states of content.
13 | case `default`
:
19 | case blendMode(
20 | contentBlendMode: BlendMode = .difference,
21 | firstLevelOverlayBlendMode: BlendMode = .hue,
| `- error: 'BlendMode' is only available in macOS 10.15 or newer
22 | highestLevelOverlayBlendMode: BlendMode = .overlay
23 | )
/Users/admin/builder/spi-builder-workspace/Sources/CustomizableSegmentedControl/CustomizableSegmentedControlContentStyle.swift:22:39: error: 'BlendMode' is only available in macOS 10.15 or newer
9 |
10 | /// Style of segment content
11 | public enum CustomizableSegmentedControlContentStyle {
| `- note: add @available attribute to enclosing enum
12 | /// Default style. You configure color for all states of content.
13 | case `default`
:
20 | contentBlendMode: BlendMode = .difference,
21 | firstLevelOverlayBlendMode: BlendMode = .hue,
22 | highestLevelOverlayBlendMode: BlendMode = .overlay
| `- error: 'BlendMode' is only available in macOS 10.15 or newer
23 | )
24 | }
[5/6] Compiling CustomizableSegmentedControl CustomizableSegmentedControl.swift
/Users/admin/builder/spi-builder-workspace/Sources/CustomizableSegmentedControl/CustomizableSegmentedControl.swift:9:6: error: 'Environment' is only available in macOS 10.15 or newer
3 | // MARK: - Segmented Control
4 |
5 | public struct CustomizableSegmentedControl<Option: Hashable & Identifiable, SelectionView: View, SegmentContent: View>: View {
| `- note: add @available attribute to enclosing generic struct
6 |
7 | // MARK: - Properties
8 |
9 | @Environment(\.segmentedControlInsets) var segmentedControlInsets
| `- error: 'Environment' is only available in macOS 10.15 or newer
10 | @Environment(\.segmentedControlInterSegmentSpacing) var interSegmentSpacing
11 | @Environment(\.segmentedControlSlidingAnimation) var slidingAnimation
/Users/admin/builder/spi-builder-workspace/Sources/CustomizableSegmentedControl/CustomizableSegmentedControl.swift:10:6: error: 'Environment' is only available in macOS 10.15 or newer
3 | // MARK: - Segmented Control
4 |
5 | public struct CustomizableSegmentedControl<Option: Hashable & Identifiable, SelectionView: View, SegmentContent: View>: View {
| `- note: add @available attribute to enclosing generic struct
6 |
7 | // MARK: - Properties
8 |
9 | @Environment(\.segmentedControlInsets) var segmentedControlInsets
10 | @Environment(\.segmentedControlInterSegmentSpacing) var interSegmentSpacing
| `- error: 'Environment' is only available in macOS 10.15 or newer
11 | @Environment(\.segmentedControlSlidingAnimation) var slidingAnimation
12 | @Environment(\.segmentedControlContentStyle) var contentStyle
/Users/admin/builder/spi-builder-workspace/Sources/CustomizableSegmentedControl/CustomizableSegmentedControl.swift:11:6: error: 'Environment' is only available in macOS 10.15 or newer
3 | // MARK: - Segmented Control
4 |
5 | public struct CustomizableSegmentedControl<Option: Hashable & Identifiable, SelectionView: View, SegmentContent: View>: View {
| `- note: add @available attribute to enclosing generic struct
6 |
7 | // MARK: - Properties
:
9 | @Environment(\.segmentedControlInsets) var segmentedControlInsets
10 | @Environment(\.segmentedControlInterSegmentSpacing) var interSegmentSpacing
11 | @Environment(\.segmentedControlSlidingAnimation) var slidingAnimation
| `- error: 'Environment' is only available in macOS 10.15 or newer
12 | @Environment(\.segmentedControlContentStyle) var contentStyle
13 |
/Users/admin/builder/spi-builder-workspace/Sources/CustomizableSegmentedControl/CustomizableSegmentedControl.swift:12:6: error: 'Environment' is only available in macOS 10.15 or newer
3 | // MARK: - Segmented Control
4 |
5 | public struct CustomizableSegmentedControl<Option: Hashable & Identifiable, SelectionView: View, SegmentContent: View>: View {
| `- note: add @available attribute to enclosing generic struct
6 |
7 | // MARK: - Properties
:
10 | @Environment(\.segmentedControlInterSegmentSpacing) var interSegmentSpacing
11 | @Environment(\.segmentedControlSlidingAnimation) var slidingAnimation
12 | @Environment(\.segmentedControlContentStyle) var contentStyle
| `- error: 'Environment' is only available in macOS 10.15 or newer
13 |
14 | @Binding private var selection: Option
/Users/admin/builder/spi-builder-workspace/Sources/CustomizableSegmentedControl/CustomizableSegmentedControl.swift:14:6: error: 'Binding' is only available in macOS 10.15 or newer
3 | // MARK: - Segmented Control
4 |
5 | public struct CustomizableSegmentedControl<Option: Hashable & Identifiable, SelectionView: View, SegmentContent: View>: View {
| `- note: add @available attribute to enclosing generic struct
6 |
7 | // MARK: - Properties
:
12 | @Environment(\.segmentedControlContentStyle) var contentStyle
13 |
14 | @Binding private var selection: Option
| `- error: 'Binding' is only available in macOS 10.15 or newer
15 | private let options: [Option]
16 | private let selectionView: () -> SelectionView
/Users/admin/builder/spi-builder-workspace/Sources/CustomizableSegmentedControl/CustomizableSegmentedControl.swift:19:6: error: 'State' is only available in macOS 10.15 or newer
3 | // MARK: - Segmented Control
4 |
5 | public struct CustomizableSegmentedControl<Option: Hashable & Identifiable, SelectionView: View, SegmentContent: View>: View {
| `- note: add @available attribute to enclosing generic struct
6 |
7 | // MARK: - Properties
:
17 | private let segmentContent: (Option, Bool) -> SegmentContent
18 |
19 | @State private var optionIsPressed: [Option.ID: Bool] = [:]
| `- error: 'State' is only available in macOS 10.15 or newer
20 |
21 | private var segmentAccessibilityValueCompletion: (Int, Int) -> String = { index, count in
/Users/admin/builder/spi-builder-workspace/Sources/CustomizableSegmentedControl/CustomizableSegmentedControl.swift:25:6: error: 'Namespace' is only available in macOS 11.0 or newer
3 | // MARK: - Segmented Control
4 |
5 | public struct CustomizableSegmentedControl<Option: Hashable & Identifiable, SelectionView: View, SegmentContent: View>: View {
| `- note: add @available attribute to enclosing generic struct
6 |
7 | // MARK: - Properties
:
23 | }
24 |
25 | @Namespace private var namespaceID
| `- error: 'Namespace' is only available in macOS 11.0 or newer
26 | private let buttonBackgroundID: String = "buttonOverlayID"
27 |
/Users/admin/builder/spi-builder-workspace/Sources/CustomizableSegmentedControl/CustomizableSegmentedControl.swift:41:20: error: 'Binding' is only available in macOS 10.15 or newer
3 | // MARK: - Segmented Control
4 |
5 | public struct CustomizableSegmentedControl<Option: Hashable & Identifiable, SelectionView: View, SegmentContent: View>: View {
| `- note: add @available attribute to enclosing generic struct
6 |
7 | // MARK: - Properties
:
38 | /// - selectionView: Selected option background.
39 | /// - segmentContent: Content of segment. Returns related option and isPressed parameters.
40 | public init(
| `- note: add @available attribute to enclosing initializer
41 | selection: Binding<Option>,
| `- error: 'Binding' is only available in macOS 10.15 or newer
42 | options: [Option],
43 | selectionView: @escaping () -> SelectionView,
/Users/admin/builder/spi-builder-workspace/Sources/CustomizableSegmentedControl/CustomizableSegmentedControl.swift:44:10: error: 'ViewBuilder' is only available in macOS 10.15 or newer
3 | // MARK: - Segmented Control
4 |
5 | public struct CustomizableSegmentedControl<Option: Hashable & Identifiable, SelectionView: View, SegmentContent: View>: View {
| `- note: add @available attribute to enclosing generic struct
6 |
7 | // MARK: - Properties
:
38 | /// - selectionView: Selected option background.
39 | /// - segmentContent: Content of segment. Returns related option and isPressed parameters.
40 | public init(
| `- note: add @available attribute to enclosing initializer
41 | selection: Binding<Option>,
42 | options: [Option],
43 | selectionView: @escaping () -> SelectionView,
44 | @ViewBuilder segmentContent: @escaping (Option, Bool) -> SegmentContent
| `- error: 'ViewBuilder' is only available in macOS 10.15 or newer
45 | ) {
46 | self._selection = selection
/Users/admin/builder/spi-builder-workspace/Sources/CustomizableSegmentedControl/CustomizableSegmentedControl.swift:55:27: error: 'View' is only available in macOS 10.15 or newer
3 | // MARK: - Segmented Control
4 |
5 | public struct CustomizableSegmentedControl<Option: Hashable & Identifiable, SelectionView: View, SegmentContent: View>: View {
| `- note: add @available attribute to enclosing generic struct
6 |
7 | // MARK: - Properties
:
53 | // MARK: - UI
54 |
55 | public var body: some View {
| | `- error: 'View' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing property
56 | HStack(spacing: interSegmentSpacing) {
57 | ForEach(Array(zip(options.indices, options)), id: \.1.id) { index, option in
/Users/admin/builder/spi-builder-workspace/Sources/CustomizableSegmentedControl/CustomizableSegmentedControl.swift:5:63: error: 'Identifiable' is only available in macOS 10.15 or newer
3 | // MARK: - Segmented Control
4 |
5 | public struct CustomizableSegmentedControl<Option: Hashable & Identifiable, SelectionView: View, SegmentContent: View>: View {
| | `- error: 'Identifiable' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing generic struct
6 |
7 | // MARK: - Properties
/Users/admin/builder/spi-builder-workspace/Sources/CustomizableSegmentedControl/CustomizableSegmentedControl.swift:5:92: error: 'View' is only available in macOS 10.15 or newer
3 | // MARK: - Segmented Control
4 |
5 | public struct CustomizableSegmentedControl<Option: Hashable & Identifiable, SelectionView: View, SegmentContent: View>: View {
| | `- error: 'View' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing generic struct
6 |
7 | // MARK: - Properties
/Users/admin/builder/spi-builder-workspace/Sources/CustomizableSegmentedControl/CustomizableSegmentedControl.swift:5:114: error: 'View' is only available in macOS 10.15 or newer
3 | // MARK: - Segmented Control
4 |
5 | public struct CustomizableSegmentedControl<Option: Hashable & Identifiable, SelectionView: View, SegmentContent: View>: View {
| | `- error: 'View' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing generic struct
6 |
7 | // MARK: - Properties
/Users/admin/builder/spi-builder-workspace/Sources/CustomizableSegmentedControl/CustomizableSegmentedControl.swift:94:24: error: 'Animation' is only available in macOS 10.15 or newer
85 | extension CustomizableSegmentedControl {
86 |
87 | fileprivate struct Segment<SegmentSelectionView: View, Content: View>: View {
| `- note: add @available attribute to enclosing generic struct
88 |
89 | // MARK: - Properties
:
92 | let selectionView: SegmentSelectionView
93 | let isSelected: Bool
94 | let animation: Animation
| `- error: 'Animation' is only available in macOS 10.15 or newer
95 | let contentBlendMode: BlendMode?
96 | let firstLevelOverlayBlendMode: BlendMode?
/Users/admin/builder/spi-builder-workspace/Sources/CustomizableSegmentedControl/CustomizableSegmentedControl.swift:95:31: error: 'BlendMode' is only available in macOS 10.15 or newer
85 | extension CustomizableSegmentedControl {
86 |
87 | fileprivate struct Segment<SegmentSelectionView: View, Content: View>: View {
| `- note: add @available attribute to enclosing generic struct
88 |
89 | // MARK: - Properties
:
93 | let isSelected: Bool
94 | let animation: Animation
95 | let contentBlendMode: BlendMode?
| `- error: 'BlendMode' is only available in macOS 10.15 or newer
96 | let firstLevelOverlayBlendMode: BlendMode?
97 | let highestLevelOverlayBlendMode: BlendMode?
/Users/admin/builder/spi-builder-workspace/Sources/CustomizableSegmentedControl/CustomizableSegmentedControl.swift:96:41: error: 'BlendMode' is only available in macOS 10.15 or newer
85 | extension CustomizableSegmentedControl {
86 |
87 | fileprivate struct Segment<SegmentSelectionView: View, Content: View>: View {
| `- note: add @available attribute to enclosing generic struct
88 |
89 | // MARK: - Properties
:
94 | let animation: Animation
95 | let contentBlendMode: BlendMode?
96 | let firstLevelOverlayBlendMode: BlendMode?
| `- error: 'BlendMode' is only available in macOS 10.15 or newer
97 | let highestLevelOverlayBlendMode: BlendMode?
98 | @Binding var isPressed: Bool
/Users/admin/builder/spi-builder-workspace/Sources/CustomizableSegmentedControl/CustomizableSegmentedControl.swift:97:43: error: 'BlendMode' is only available in macOS 10.15 or newer
85 | extension CustomizableSegmentedControl {
86 |
87 | fileprivate struct Segment<SegmentSelectionView: View, Content: View>: View {
| `- note: add @available attribute to enclosing generic struct
88 |
89 | // MARK: - Properties
:
95 | let contentBlendMode: BlendMode?
96 | let firstLevelOverlayBlendMode: BlendMode?
97 | let highestLevelOverlayBlendMode: BlendMode?
| `- error: 'BlendMode' is only available in macOS 10.15 or newer
98 | @Binding var isPressed: Bool
99 | let backgroundID: String
/Users/admin/builder/spi-builder-workspace/Sources/CustomizableSegmentedControl/CustomizableSegmentedControl.swift:98:10: error: 'Binding' is only available in macOS 10.15 or newer
85 | extension CustomizableSegmentedControl {
86 |
87 | fileprivate struct Segment<SegmentSelectionView: View, Content: View>: View {
| |- note: add @available attribute to enclosing generic struct
| `- note: add @available attribute to enclosing generic struct
88 |
89 | // MARK: - Properties
:
96 | let firstLevelOverlayBlendMode: BlendMode?
97 | let highestLevelOverlayBlendMode: BlendMode?
98 | @Binding var isPressed: Bool
| `- error: 'Binding' is only available in macOS 10.15 or newer
99 | let backgroundID: String
100 | let namespaceID: Namespace.ID
/Users/admin/builder/spi-builder-workspace/Sources/CustomizableSegmentedControl/CustomizableSegmentedControl.swift:100:26: error: 'Namespace' is only available in macOS 11.0 or newer
85 | extension CustomizableSegmentedControl {
86 |
87 | fileprivate struct Segment<SegmentSelectionView: View, Content: View>: View {
| `- note: add @available attribute to enclosing generic struct
88 |
89 | // MARK: - Properties
:
98 | @Binding var isPressed: Bool
99 | let backgroundID: String
100 | let namespaceID: Namespace.ID
| `- error: 'Namespace' is only available in macOS 11.0 or newer
101 | let accessibiltyValue: String
102 | let action: () -> Void
/Users/admin/builder/spi-builder-workspace/Sources/CustomizableSegmentedControl/CustomizableSegmentedControl.swift:106:24: error: 'View' is only available in macOS 10.15 or newer
85 | extension CustomizableSegmentedControl {
86 |
87 | fileprivate struct Segment<SegmentSelectionView: View, Content: View>: View {
| `- note: add @available attribute to enclosing generic struct
88 |
89 | // MARK: - Properties
:
104 | // MARK: - UI
105 |
106 | var body: some View {
| | `- error: 'View' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing property
107 | Button(action: action) {
108 | content
/Users/admin/builder/spi-builder-workspace/Sources/CustomizableSegmentedControl/CustomizableSegmentedControl.swift:87:54: error: 'View' is only available in macOS 10.15 or newer
85 | extension CustomizableSegmentedControl {
86 |
87 | fileprivate struct Segment<SegmentSelectionView: View, Content: View>: View {
| | `- error: 'View' is only available in macOS 10.15 or newer
| |- note: add @available attribute to enclosing generic struct
| `- note: add @available attribute to enclosing generic struct
88 |
89 | // MARK: - Properties
/Users/admin/builder/spi-builder-workspace/Sources/CustomizableSegmentedControl/CustomizableSegmentedControl.swift:87:69: error: 'View' is only available in macOS 10.15 or newer
85 | extension CustomizableSegmentedControl {
86 |
87 | fileprivate struct Segment<SegmentSelectionView: View, Content: View>: View {
| | `- error: 'View' is only available in macOS 10.15 or newer
| |- note: add @available attribute to enclosing generic struct
| `- note: add @available attribute to enclosing generic struct
88 |
89 | // MARK: - Properties
/Users/admin/builder/spi-builder-workspace/Sources/CustomizableSegmentedControl/CustomizableSegmentedControl.swift:159:20: error: 'Binding' is only available in macOS 10.15 or newer
144 | // MARK: - CustomizableSegmentedControl + Custom Inits
145 |
146 | extension CustomizableSegmentedControl {
| `- note: add @available attribute to enclosing extension
147 |
148 | /// - parameters:
:
156 | /// - selectionView: Selected option background.
157 | /// - segmentContent: Content of segment. Returns related option and isPressed parameter.s
158 | public init(
| `- note: add @available attribute to enclosing initializer
159 | selection: Binding<Option>,
| `- error: 'Binding' is only available in macOS 10.15 or newer
160 | options: [Option],
161 | selectionView: SelectionView,
/Users/admin/builder/spi-builder-workspace/Sources/CustomizableSegmentedControl/CustomizableSegmentedControl.swift:162:10: error: 'ViewBuilder' is only available in macOS 10.15 or newer
144 | // MARK: - CustomizableSegmentedControl + Custom Inits
145 |
146 | extension CustomizableSegmentedControl {
| `- note: add @available attribute to enclosing extension
147 |
148 | /// - parameters:
:
156 | /// - selectionView: Selected option background.
157 | /// - segmentContent: Content of segment. Returns related option and isPressed parameter.s
158 | public init(
| `- note: add @available attribute to enclosing initializer
159 | selection: Binding<Option>,
160 | options: [Option],
161 | selectionView: SelectionView,
162 | @ViewBuilder segmentContent: @escaping (Option, Bool) -> SegmentContent
| `- error: 'ViewBuilder' is only available in macOS 10.15 or newer
163 | ) {
164 | self.init(
/Users/admin/builder/spi-builder-workspace/Sources/CustomizableSegmentedControl/CustomizableSegmentedControl.swift:180:10: error: 'Binding' is only available in macOS 10.15 or newer
176 | extension CustomizableSegmentedControl.Segment {
177 |
178 | private struct SegmentButtonStyle: ButtonStyle {
| |- note: add @available attribute to enclosing struct
| `- note: add @available attribute to enclosing struct
179 |
180 | @Binding var isPressed: Bool
| `- error: 'Binding' is only available in macOS 10.15 or newer
181 |
182 | func makeBody(configuration: Configuration) -> some View {
/Users/admin/builder/spi-builder-workspace/Sources/CustomizableSegmentedControl/CustomizableSegmentedControl.swift:182:61: error: 'View' is only available in macOS 10.15 or newer
176 | extension CustomizableSegmentedControl.Segment {
177 |
178 | private struct SegmentButtonStyle: ButtonStyle {
| `- note: add @available attribute to enclosing struct
179 |
180 | @Binding var isPressed: Bool
181 |
182 | func makeBody(configuration: Configuration) -> some View {
| | `- error: 'View' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing instance method
183 | configuration.label
184 | .contentShape(Rectangle())
/Users/admin/builder/spi-builder-workspace/Sources/CustomizableSegmentedControl/CustomizableSegmentedControl.swift:198:27: error: 'BlendMode' is only available in macOS 10.15 or newer
194 | // MARK: - CustomizableSegmentedControlContentStyle + Properties
195 |
196 | private extension CustomizableSegmentedControlContentStyle {
| `- note: add @available attribute to enclosing extension
197 |
198 | var contentBlendMode: BlendMode? {
| | `- error: 'BlendMode' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing property
199 | switch self {
200 | case .default:
/Users/admin/builder/spi-builder-workspace/Sources/CustomizableSegmentedControl/CustomizableSegmentedControl.swift:207:37: error: 'BlendMode' is only available in macOS 10.15 or newer
194 | // MARK: - CustomizableSegmentedControlContentStyle + Properties
195 |
196 | private extension CustomizableSegmentedControlContentStyle {
| `- note: add @available attribute to enclosing extension
197 |
198 | var contentBlendMode: BlendMode? {
:
205 | }
206 |
207 | var firstLevelOverlayBlendMode: BlendMode? {
| | `- error: 'BlendMode' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing property
208 | switch self {
209 | case .default:
/Users/admin/builder/spi-builder-workspace/Sources/CustomizableSegmentedControl/CustomizableSegmentedControl.swift:216:39: error: 'BlendMode' is only available in macOS 10.15 or newer
194 | // MARK: - CustomizableSegmentedControlContentStyle + Properties
195 |
196 | private extension CustomizableSegmentedControlContentStyle {
| `- note: add @available attribute to enclosing extension
197 |
198 | var contentBlendMode: BlendMode? {
:
214 | }
215 |
216 | var highestLevelOverlayBlendMode: BlendMode? {
| | `- error: 'BlendMode' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing property
217 | switch self {
218 | case .default:
/Users/admin/builder/spi-builder-workspace/Sources/CustomizableSegmentedControl/CustomizableSegmentedControl.swift:248:36: error: 'BlendMode' is only available in macOS 10.15 or newer
243 | // MARK: - View + Extensions
244 |
245 | private extension View {
| `- note: add @available attribute to enclosing extension
246 |
247 | @ViewBuilder
248 | func blendModeIfNotNil(_ mode: BlendMode?) -> some View {
| | `- error: 'BlendMode' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing instance method
249 | if let mode {
250 | blendMode(mode)
/Users/admin/builder/spi-builder-workspace/Sources/CustomizableSegmentedControl/CustomizableSegmentedControl.swift:248:56: error: 'View' is only available in macOS 10.15 or newer
243 | // MARK: - View + Extensions
244 |
245 | private extension View {
| `- note: add @available attribute to enclosing extension
246 |
247 | @ViewBuilder
248 | func blendModeIfNotNil(_ mode: BlendMode?) -> some View {
| | `- error: 'View' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing instance method
249 | if let mode {
250 | blendMode(mode)
/Users/admin/builder/spi-builder-workspace/Sources/CustomizableSegmentedControl/CustomizableSegmentedControl.swift:247:6: error: 'ViewBuilder' is only available in macOS 10.15 or newer
243 | // MARK: - View + Extensions
244 |
245 | private extension View {
| `- note: add @available attribute to enclosing extension
246 |
247 | @ViewBuilder
| `- error: 'ViewBuilder' is only available in macOS 10.15 or newer
248 | func blendModeIfNotNil(_ mode: BlendMode?) -> some View {
| `- note: add @available attribute to enclosing instance method
249 | if let mode {
250 | blendMode(mode)
/Users/admin/builder/spi-builder-workspace/Sources/CustomizableSegmentedControl/CustomizableSegmentedControl.swift:257:24: error: 'View' is only available in macOS 10.15 or newer
243 | // MARK: - View + Extensions
244 |
245 | private extension View {
| `- note: add @available attribute to enclosing extension
246 |
247 | @ViewBuilder
:
255 |
256 | @ViewBuilder
257 | func background<T: View>(
| | `- error: 'View' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing instance method
258 | alignment: Alignment = .center,
259 | @ViewBuilder _ content: () -> T
/Users/admin/builder/spi-builder-workspace/Sources/CustomizableSegmentedControl/CustomizableSegmentedControl.swift:258:20: error: 'Alignment' is only available in macOS 10.15 or newer
243 | // MARK: - View + Extensions
244 |
245 | private extension View {
| `- note: add @available attribute to enclosing extension
246 |
247 | @ViewBuilder
:
255 |
256 | @ViewBuilder
257 | func background<T: View>(
| `- note: add @available attribute to enclosing instance method
258 | alignment: Alignment = .center,
| `- error: 'Alignment' is only available in macOS 10.15 or newer
259 | @ViewBuilder _ content: () -> T
260 | ) -> some View {
/Users/admin/builder/spi-builder-workspace/Sources/CustomizableSegmentedControl/CustomizableSegmentedControl.swift:259:10: error: 'ViewBuilder' is only available in macOS 10.15 or newer
243 | // MARK: - View + Extensions
244 |
245 | private extension View {
| `- note: add @available attribute to enclosing extension
246 |
247 | @ViewBuilder
:
255 |
256 | @ViewBuilder
257 | func background<T: View>(
| `- note: add @available attribute to enclosing instance method
258 | alignment: Alignment = .center,
259 | @ViewBuilder _ content: () -> T
| `- error: 'ViewBuilder' is only available in macOS 10.15 or newer
260 | ) -> some View {
261 | if #available(iOS 15.0, *) {
/Users/admin/builder/spi-builder-workspace/Sources/CustomizableSegmentedControl/CustomizableSegmentedControl.swift:260:15: error: 'View' is only available in macOS 10.15 or newer
243 | // MARK: - View + Extensions
244 |
245 | private extension View {
| `- note: add @available attribute to enclosing extension
246 |
247 | @ViewBuilder
:
255 |
256 | @ViewBuilder
257 | func background<T: View>(
| `- note: add @available attribute to enclosing instance method
258 | alignment: Alignment = .center,
259 | @ViewBuilder _ content: () -> T
260 | ) -> some View {
| `- error: 'View' is only available in macOS 10.15 or newer
261 | if #available(iOS 15.0, *) {
262 | background(alignment: alignment, content: content)
/Users/admin/builder/spi-builder-workspace/Sources/CustomizableSegmentedControl/CustomizableSegmentedControl.swift:256:6: error: 'ViewBuilder' is only available in macOS 10.15 or newer
243 | // MARK: - View + Extensions
244 |
245 | private extension View {
| `- note: add @available attribute to enclosing extension
246 |
247 | @ViewBuilder
:
254 | }
255 |
256 | @ViewBuilder
| `- error: 'ViewBuilder' is only available in macOS 10.15 or newer
257 | func background<T: View>(
| `- note: add @available attribute to enclosing instance method
258 | alignment: Alignment = .center,
259 | @ViewBuilder _ content: () -> T
/Users/admin/builder/spi-builder-workspace/Sources/CustomizableSegmentedControl/CustomizableSegmentedControl.swift:258:33: error: 'center' is only available in macOS 10.15 or newer
243 | // MARK: - View + Extensions
244 |
245 | private extension View {
| `- note: add @available attribute to enclosing extension
246 |
247 | @ViewBuilder
:
255 |
256 | @ViewBuilder
257 | func background<T: View>(
| `- note: add @available attribute to enclosing instance method
258 | alignment: Alignment = .center,
| `- error: 'center' is only available in macOS 10.15 or newer
259 | @ViewBuilder _ content: () -> T
260 | ) -> some View {
/Users/admin/builder/spi-builder-workspace/Sources/CustomizableSegmentedControl/CustomizableSegmentedControl.swift:269:21: error: 'View' is only available in macOS 10.15 or newer
243 | // MARK: - View + Extensions
244 |
245 | private extension View {
| `- note: add @available attribute to enclosing extension
246 |
247 | @ViewBuilder
:
267 |
268 | @ViewBuilder
269 | func overlay<T: View>(
| | `- error: 'View' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing instance method
270 | alignment: Alignment = .center,
271 | @ViewBuilder _ content: () -> T
/Users/admin/builder/spi-builder-workspace/Sources/CustomizableSegmentedControl/CustomizableSegmentedControl.swift:270:20: error: 'Alignment' is only available in macOS 10.15 or newer
243 | // MARK: - View + Extensions
244 |
245 | private extension View {
| `- note: add @available attribute to enclosing extension
246 |
247 | @ViewBuilder
:
267 |
268 | @ViewBuilder
269 | func overlay<T: View>(
| `- note: add @available attribute to enclosing instance method
270 | alignment: Alignment = .center,
| `- error: 'Alignment' is only available in macOS 10.15 or newer
271 | @ViewBuilder _ content: () -> T
272 | ) -> some View {
/Users/admin/builder/spi-builder-workspace/Sources/CustomizableSegmentedControl/CustomizableSegmentedControl.swift:271:10: error: 'ViewBuilder' is only available in macOS 10.15 or newer
243 | // MARK: - View + Extensions
244 |
245 | private extension View {
| `- note: add @available attribute to enclosing extension
246 |
247 | @ViewBuilder
:
267 |
268 | @ViewBuilder
269 | func overlay<T: View>(
| `- note: add @available attribute to enclosing instance method
270 | alignment: Alignment = .center,
271 | @ViewBuilder _ content: () -> T
| `- error: 'ViewBuilder' is only available in macOS 10.15 or newer
272 | ) -> some View {
273 | if #available(iOS 15.0, *) {
/Users/admin/builder/spi-builder-workspace/Sources/CustomizableSegmentedControl/CustomizableSegmentedControl.swift:272:15: error: 'View' is only available in macOS 10.15 or newer
243 | // MARK: - View + Extensions
244 |
245 | private extension View {
| `- note: add @available attribute to enclosing extension
246 |
247 | @ViewBuilder
:
267 |
268 | @ViewBuilder
269 | func overlay<T: View>(
| `- note: add @available attribute to enclosing instance method
270 | alignment: Alignment = .center,
271 | @ViewBuilder _ content: () -> T
272 | ) -> some View {
| `- error: 'View' is only available in macOS 10.15 or newer
273 | if #available(iOS 15.0, *) {
274 | overlay(alignment: alignment, content: content)
/Users/admin/builder/spi-builder-workspace/Sources/CustomizableSegmentedControl/CustomizableSegmentedControl.swift:268:6: error: 'ViewBuilder' is only available in macOS 10.15 or newer
243 | // MARK: - View + Extensions
244 |
245 | private extension View {
| `- note: add @available attribute to enclosing extension
246 |
247 | @ViewBuilder
:
266 | }
267 |
268 | @ViewBuilder
| `- error: 'ViewBuilder' is only available in macOS 10.15 or newer
269 | func overlay<T: View>(
| `- note: add @available attribute to enclosing instance method
270 | alignment: Alignment = .center,
271 | @ViewBuilder _ content: () -> T
/Users/admin/builder/spi-builder-workspace/Sources/CustomizableSegmentedControl/CustomizableSegmentedControl.swift:270:33: error: 'center' is only available in macOS 10.15 or newer
243 | // MARK: - View + Extensions
244 |
245 | private extension View {
| `- note: add @available attribute to enclosing extension
246 |
247 | @ViewBuilder
:
267 |
268 | @ViewBuilder
269 | func overlay<T: View>(
| `- note: add @available attribute to enclosing instance method
270 | alignment: Alignment = .center,
| `- error: 'center' is only available in macOS 10.15 or newer
271 | @ViewBuilder _ content: () -> T
272 | ) -> some View {
/Users/admin/builder/spi-builder-workspace/Sources/CustomizableSegmentedControl/CustomizableSegmentedControl.swift:245:19: error: 'View' is only available in macOS 10.15 or newer
243 | // MARK: - View + Extensions
244 |
245 | private extension View {
| | `- error: 'View' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing extension
246 |
247 | @ViewBuilder
/Users/admin/builder/spi-builder-workspace/Sources/CustomizableSegmentedControl/CustomizableSegmentedControl.swift:50:9: error: setter for 'optionIsPressed' is only available in macOS 10.15 or newer
3 | // MARK: - Segmented Control
4 |
5 | public struct CustomizableSegmentedControl<Option: Hashable & Identifiable, SelectionView: View, SegmentContent: View>: View {
| `- note: add @available attribute to enclosing generic struct
6 |
7 | // MARK: - Properties
:
38 | /// - selectionView: Selected option background.
39 | /// - segmentContent: Content of segment. Returns related option and isPressed parameters.
40 | public init(
| `- note: add @available attribute to enclosing initializer
41 | selection: Binding<Option>,
42 | options: [Option],
:
48 | self.selectionView = selectionView
49 | self.segmentContent = segmentContent
50 | self.optionIsPressed = Dictionary(uniqueKeysWithValues: options.lazy.map { ($0.id, false) })
| |- error: setter for 'optionIsPressed' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
51 | }
52 |
/Users/admin/builder/spi-builder-workspace/Sources/CustomizableSegmentedControl/CustomizableSegmentedControl.swift:56:9: error: 'HStack' is only available in macOS 10.15 or newer
3 | // MARK: - Segmented Control
4 |
5 | public struct CustomizableSegmentedControl<Option: Hashable & Identifiable, SelectionView: View, SegmentContent: View>: View {
| `- note: add @available attribute to enclosing generic struct
6 |
7 | // MARK: - Properties
:
53 | // MARK: - UI
54 |
55 | public var body: some View {
| `- note: add @available attribute to enclosing property
56 | HStack(spacing: interSegmentSpacing) {
| |- error: 'HStack' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
57 | ForEach(Array(zip(options.indices, options)), id: \.1.id) { index, option in
58 | Segment(
/Users/admin/builder/spi-builder-workspace/Sources/CustomizableSegmentedControl/CustomizableSegmentedControl.swift:56:9: warning: conformance of 'ForEach<Data, ID, Content>' to 'View' is only available in macOS 10.15 or newer; this is an error in the Swift 6 language mode
3 | // MARK: - Segmented Control
4 |
5 | public struct CustomizableSegmentedControl<Option: Hashable & Identifiable, SelectionView: View, SegmentContent: View>: View {
| `- note: add @available attribute to enclosing generic struct
6 |
7 | // MARK: - Properties
:
53 | // MARK: - UI
54 |
55 | public var body: some View {
| `- note: add @available attribute to enclosing property
56 | HStack(spacing: interSegmentSpacing) {
| |- warning: conformance of 'ForEach<Data, ID, Content>' to 'View' is only available in macOS 10.15 or newer; this is an error in the Swift 6 language mode
| `- note: add 'if #available' version check
57 | ForEach(Array(zip(options.indices, options)), id: \.1.id) { index, option in
58 | Segment(
/Users/admin/builder/spi-builder-workspace/Sources/CustomizableSegmentedControl/CustomizableSegmentedControl.swift:57:13: warning: conformance of 'ForEach<Data, ID, Content>' to 'View' is only available in macOS 10.15 or newer; this is an error in the Swift 6 language mode
3 | // MARK: - Segmented Control
4 |
5 | public struct CustomizableSegmentedControl<Option: Hashable & Identifiable, SelectionView: View, SegmentContent: View>: View {
| `- note: add @available attribute to enclosing generic struct
6 |
7 | // MARK: - Properties
:
53 | // MARK: - UI
54 |
55 | public var body: some View {
| `- note: add @available attribute to enclosing property
56 | HStack(spacing: interSegmentSpacing) {
57 | ForEach(Array(zip(options.indices, options)), id: \.1.id) { index, option in
| |- warning: conformance of 'ForEach<Data, ID, Content>' to 'View' is only available in macOS 10.15 or newer; this is an error in the Swift 6 language mode
| `- note: add 'if #available' version check
58 | Segment(
59 | content: segmentContent(option, optionIsPressed[option.id, default: false]),
/Users/admin/builder/spi-builder-workspace/Sources/CustomizableSegmentedControl/CustomizableSegmentedControl.swift:57:13: error: 'ForEach' is only available in macOS 10.15 or newer
3 | // MARK: - Segmented Control
4 |
5 | public struct CustomizableSegmentedControl<Option: Hashable & Identifiable, SelectionView: View, SegmentContent: View>: View {
| `- note: add @available attribute to enclosing generic struct
6 |
7 | // MARK: - Properties
:
53 | // MARK: - UI
54 |
55 | public var body: some View {
| `- note: add @available attribute to enclosing property
56 | HStack(spacing: interSegmentSpacing) {
57 | ForEach(Array(zip(options.indices, options)), id: \.1.id) { index, option in
| |- error: 'ForEach' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
58 | Segment(
59 | content: segmentContent(option, optionIsPressed[option.id, default: false]),
/Users/admin/builder/spi-builder-workspace/Sources/CustomizableSegmentedControl/CustomizableSegmentedControl.swift:57:13: error: 'init(_:id:content:)' is only available in macOS 10.15 or newer
3 | // MARK: - Segmented Control
4 |
5 | public struct CustomizableSegmentedControl<Option: Hashable & Identifiable, SelectionView: View, SegmentContent: View>: View {
| `- note: add @available attribute to enclosing generic struct
6 |
7 | // MARK: - Properties
:
53 | // MARK: - UI
54 |
55 | public var body: some View {
| `- note: add @available attribute to enclosing property
56 | HStack(spacing: interSegmentSpacing) {
57 | ForEach(Array(zip(options.indices, options)), id: \.1.id) { index, option in
| |- error: 'init(_:id:content:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
58 | Segment(
59 | content: segmentContent(option, optionIsPressed[option.id, default: false]),
/Users/admin/builder/spi-builder-workspace/Sources/CustomizableSegmentedControl/CustomizableSegmentedControl.swift:68:32: error: cannot pass as inout because setter for 'optionIsPressed' is only available in macOS 10.15 or newer
3 | // MARK: - Segmented Control
4 |
5 | public struct CustomizableSegmentedControl<Option: Hashable & Identifiable, SelectionView: View, SegmentContent: View>: View {
| `- note: add @available attribute to enclosing generic struct
6 |
7 | // MARK: - Properties
:
53 | // MARK: - UI
54 |
55 | public var body: some View {
| `- note: add @available attribute to enclosing property
56 | HStack(spacing: interSegmentSpacing) {
57 | ForEach(Array(zip(options.indices, options)), id: \.1.id) { index, option in
:
66 | isPressed: .init(
67 | get: { optionIsPressed[option.id, default: false] },
68 | set: { optionIsPressed[option.id] = $0 }
| |- error: cannot pass as inout because setter for 'optionIsPressed' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
69 | ),
70 | backgroundID: buttonBackgroundID,
/Users/admin/builder/spi-builder-workspace/Sources/CustomizableSegmentedControl/CustomizableSegmentedControl.swift:73:31: error: setter for 'selection' is only available in macOS 10.15 or newer
3 | // MARK: - Segmented Control
4 |
5 | public struct CustomizableSegmentedControl<Option: Hashable & Identifiable, SelectionView: View, SegmentContent: View>: View {
| `- note: add @available attribute to enclosing generic struct
6 |
7 | // MARK: - Properties
:
53 | // MARK: - UI
54 |
55 | public var body: some View {
| `- note: add @available attribute to enclosing property
56 | HStack(spacing: interSegmentSpacing) {
57 | ForEach(Array(zip(options.indices, options)), id: \.1.id) { index, option in
:
71 | namespaceID: namespaceID,
72 | accessibiltyValue: segmentAccessibilityValueCompletion(index + 1, options.count),
73 | action: { selection = option }
| |- error: setter for 'selection' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
74 | )
75 | .zIndex(selection == option ? 0 : 1)
/Users/admin/builder/spi-builder-workspace/Sources/CustomizableSegmentedControl/CustomizableSegmentedControl.swift:75:18: error: 'zIndex' is only available in macOS 10.15 or newer
3 | // MARK: - Segmented Control
4 |
5 | public struct CustomizableSegmentedControl<Option: Hashable & Identifiable, SelectionView: View, SegmentContent: View>: View {
| `- note: add @available attribute to enclosing generic struct
6 |
7 | // MARK: - Properties
:
53 | // MARK: - UI
54 |
55 | public var body: some View {
| `- note: add @available attribute to enclosing property
56 | HStack(spacing: interSegmentSpacing) {
57 | ForEach(Array(zip(options.indices, options)), id: \.1.id) { index, option in
:
73 | action: { selection = option }
74 | )
75 | .zIndex(selection == option ? 0 : 1)
| |- error: 'zIndex' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
76 | }
77 | }
/Users/admin/builder/spi-builder-workspace/Sources/CustomizableSegmentedControl/CustomizableSegmentedControl.swift:56:46: warning: conformance of 'ForEach<Data, ID, Content>' to 'View' is only available in macOS 10.15 or newer; this is an error in the Swift 6 language mode
3 | // MARK: - Segmented Control
4 |
5 | public struct CustomizableSegmentedControl<Option: Hashable & Identifiable, SelectionView: View, SegmentContent: View>: View {
| `- note: add @available attribute to enclosing generic struct
6 |
7 | // MARK: - Properties
:
53 | // MARK: - UI
54 |
55 | public var body: some View {
| `- note: add @available attribute to enclosing property
56 | HStack(spacing: interSegmentSpacing) {
| |- warning: conformance of 'ForEach<Data, ID, Content>' to 'View' is only available in macOS 10.15 or newer; this is an error in the Swift 6 language mode
| `- note: add 'if #available' version check
57 | ForEach(Array(zip(options.indices, options)), id: \.1.id) { index, option in
58 | Segment(
/Users/admin/builder/spi-builder-workspace/Sources/CustomizableSegmentedControl/CustomizableSegmentedControl.swift:78:10: error: 'padding' is only available in macOS 10.15 or newer
3 | // MARK: - Segmented Control
4 |
5 | public struct CustomizableSegmentedControl<Option: Hashable & Identifiable, SelectionView: View, SegmentContent: View>: View {
| `- note: add @available attribute to enclosing generic struct
6 |
7 | // MARK: - Properties
:
53 | // MARK: - UI
54 |
55 | public var body: some View {
| `- note: add @available attribute to enclosing property
56 | HStack(spacing: interSegmentSpacing) {
57 | ForEach(Array(zip(options.indices, options)), id: \.1.id) { index, option in
:
76 | }
77 | }
78 | .padding(segmentedControlInsets)
| |- error: 'padding' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
79 | }
80 |
/Users/admin/builder/spi-builder-workspace/Sources/CustomizableSegmentedControl/CustomizableSegmentedControl.swift:107:13: 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
85 | extension CustomizableSegmentedControl {
86 |
87 | fileprivate struct Segment<SegmentSelectionView: View, Content: View>: View {
| `- note: add @available attribute to enclosing generic struct
88 |
89 | // MARK: - Properties
:
104 | // MARK: - UI
105 |
106 | var body: some View {
| `- note: add @available attribute to enclosing property
107 | Button(action: action) {
| |- 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
108 | content
109 | .blendModeIfNotNil(contentBlendMode)
/Users/admin/builder/spi-builder-workspace/Sources/CustomizableSegmentedControl/CustomizableSegmentedControl.swift:107:13: error: 'Button' is only available in macOS 10.15 or newer
85 | extension CustomizableSegmentedControl {
86 |
87 | fileprivate struct Segment<SegmentSelectionView: View, Content: View>: View {
| `- note: add @available attribute to enclosing generic struct
88 |
89 | // MARK: - Properties
:
104 | // MARK: - UI
105 |
106 | var body: some View {
| `- note: add @available attribute to enclosing property
107 | Button(action: action) {
| |- error: 'Button' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
108 | content
109 | .blendModeIfNotNil(contentBlendMode)
/Users/admin/builder/spi-builder-workspace/Sources/CustomizableSegmentedControl/CustomizableSegmentedControl.swift:110:22: 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
85 | extension CustomizableSegmentedControl {
86 |
87 | fileprivate struct Segment<SegmentSelectionView: View, Content: View>: View {
| `- note: add @available attribute to enclosing generic struct
88 |
89 | // MARK: - Properties
:
104 | // MARK: - UI
105 |
106 | var body: some View {
| `- note: add @available attribute to enclosing property
107 | Button(action: action) {
108 | content
109 | .blendModeIfNotNil(contentBlendMode)
110 | .overlay {
| |- 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
111 | if let firstLevelOverlayBlendMode {
112 | content
/Users/admin/builder/spi-builder-workspace/Sources/CustomizableSegmentedControl/CustomizableSegmentedControl.swift:112:29: 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
85 | extension CustomizableSegmentedControl {
86 |
87 | fileprivate struct Segment<SegmentSelectionView: View, Content: View>: View {
| `- note: add @available attribute to enclosing generic struct
88 |
89 | // MARK: - Properties
:
104 | // MARK: - UI
105 |
106 | var body: some View {
| `- note: add @available attribute to enclosing property
107 | Button(action: action) {
108 | content
:
110 | .overlay {
111 | if let firstLevelOverlayBlendMode {
112 | content
| |- 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
113 | .blendMode(firstLevelOverlayBlendMode)
114 | .accessibilityHidden(true)
/Users/admin/builder/spi-builder-workspace/Sources/CustomizableSegmentedControl/CustomizableSegmentedControl.swift:113:34: error: 'blendMode' is only available in macOS 10.15 or newer
85 | extension CustomizableSegmentedControl {
86 |
87 | fileprivate struct Segment<SegmentSelectionView: View, Content: View>: View {
| `- note: add @available attribute to enclosing generic struct
88 |
89 | // MARK: - Properties
:
104 | // MARK: - UI
105 |
106 | var body: some View {
| `- note: add @available attribute to enclosing property
107 | Button(action: action) {
108 | content
:
111 | if let firstLevelOverlayBlendMode {
112 | content
113 | .blendMode(firstLevelOverlayBlendMode)
| |- error: 'blendMode' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
114 | .accessibilityHidden(true)
115 | }
/Users/admin/builder/spi-builder-workspace/Sources/CustomizableSegmentedControl/CustomizableSegmentedControl.swift:114:34: error: 'accessibilityHidden' is only available in macOS 11.0 or newer
85 | extension CustomizableSegmentedControl {
86 |
87 | fileprivate struct Segment<SegmentSelectionView: View, Content: View>: View {
| `- note: add @available attribute to enclosing generic struct
88 |
89 | // MARK: - Properties
:
104 | // MARK: - UI
105 |
106 | var body: some View {
| `- note: add @available attribute to enclosing property
107 | Button(action: action) {
108 | content
:
112 | content
113 | .blendMode(firstLevelOverlayBlendMode)
114 | .accessibilityHidden(true)
| |- error: 'accessibilityHidden' is only available in macOS 11.0 or newer
| `- note: add 'if #available' version check
115 | }
116 | }
/Users/admin/builder/spi-builder-workspace/Sources/CustomizableSegmentedControl/CustomizableSegmentedControl.swift:111:59: error: 'buildIf' is only available in macOS 10.15 or newer
85 | extension CustomizableSegmentedControl {
86 |
87 | fileprivate struct Segment<SegmentSelectionView: View, Content: View>: View {
| `- note: add @available attribute to enclosing generic struct
88 |
89 | // MARK: - Properties
:
104 | // MARK: - UI
105 |
106 | var body: some View {
| `- note: add @available attribute to enclosing property
107 | Button(action: action) {
108 | content
109 | .blendModeIfNotNil(contentBlendMode)
110 | .overlay {
111 | if let firstLevelOverlayBlendMode {
| |- error: 'buildIf' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
112 | content
113 | .blendMode(firstLevelOverlayBlendMode)
/Users/admin/builder/spi-builder-workspace/Sources/CustomizableSegmentedControl/CustomizableSegmentedControl.swift:111:59: 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
85 | extension CustomizableSegmentedControl {
86 |
87 | fileprivate struct Segment<SegmentSelectionView: View, Content: View>: View {
| `- note: add @available attribute to enclosing generic struct
88 |
89 | // MARK: - Properties
:
104 | // MARK: - UI
105 |
106 | var body: some View {
| `- note: add @available attribute to enclosing property
107 | Button(action: action) {
108 | content
109 | .blendModeIfNotNil(contentBlendMode)
110 | .overlay {
111 | if let firstLevelOverlayBlendMode {
| |- 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
112 | content
113 | .blendMode(firstLevelOverlayBlendMode)
/Users/admin/builder/spi-builder-workspace/Sources/CustomizableSegmentedControl/CustomizableSegmentedControl.swift:115:25: error: 'buildIf' is only available in macOS 10.15 or newer
85 | extension CustomizableSegmentedControl {
86 |
87 | fileprivate struct Segment<SegmentSelectionView: View, Content: View>: View {
| `- note: add @available attribute to enclosing generic struct
88 |
89 | // MARK: - Properties
:
104 | // MARK: - UI
105 |
106 | var body: some View {
| `- note: add @available attribute to enclosing property
107 | Button(action: action) {
108 | content
:
113 | .blendMode(firstLevelOverlayBlendMode)
114 | .accessibilityHidden(true)
115 | }
| |- error: 'buildIf' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
116 | }
117 | .overlay {
/Users/admin/builder/spi-builder-workspace/Sources/CustomizableSegmentedControl/CustomizableSegmentedControl.swift:110:30: 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
85 | extension CustomizableSegmentedControl {
86 |
87 | fileprivate struct Segment<SegmentSelectionView: View, Content: View>: View {
| `- note: add @available attribute to enclosing generic struct
88 |
89 | // MARK: - Properties
:
104 | // MARK: - UI
105 |
106 | var body: some View {
| `- note: add @available attribute to enclosing property
107 | Button(action: action) {
108 | content
109 | .blendModeIfNotNil(contentBlendMode)
110 | .overlay {
| |- 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
111 | if let firstLevelOverlayBlendMode {
112 | content
/Users/admin/builder/spi-builder-workspace/Sources/CustomizableSegmentedControl/CustomizableSegmentedControl.swift:117:22: 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
85 | extension CustomizableSegmentedControl {
86 |
87 | fileprivate struct Segment<SegmentSelectionView: View, Content: View>: View {
| `- note: add @available attribute to enclosing generic struct
88 |
89 | // MARK: - Properties
:
104 | // MARK: - UI
105 |
106 | var body: some View {
| `- note: add @available attribute to enclosing property
107 | Button(action: action) {
108 | content
:
115 | }
116 | }
117 | .overlay {
| |- 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
118 | if let highestLevelOverlayBlendMode {
119 | content
/Users/admin/builder/spi-builder-workspace/Sources/CustomizableSegmentedControl/CustomizableSegmentedControl.swift:119:29: 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
85 | extension CustomizableSegmentedControl {
86 |
87 | fileprivate struct Segment<SegmentSelectionView: View, Content: View>: View {
| `- note: add @available attribute to enclosing generic struct
88 |
89 | // MARK: - Properties
:
104 | // MARK: - UI
105 |
106 | var body: some View {
| `- note: add @available attribute to enclosing property
107 | Button(action: action) {
108 | content
:
117 | .overlay {
118 | if let highestLevelOverlayBlendMode {
119 | content
| |- 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
120 | .blendMode(highestLevelOverlayBlendMode)
121 | .accessibilityHidden(true)
/Users/admin/builder/spi-builder-workspace/Sources/CustomizableSegmentedControl/CustomizableSegmentedControl.swift:120:34: error: 'blendMode' is only available in macOS 10.15 or newer
85 | extension CustomizableSegmentedControl {
86 |
87 | fileprivate struct Segment<SegmentSelectionView: View, Content: View>: View {
| `- note: add @available attribute to enclosing generic struct
88 |
89 | // MARK: - Properties
:
104 | // MARK: - UI
105 |
106 | var body: some View {
| `- note: add @available attribute to enclosing property
107 | Button(action: action) {
108 | content
:
118 | if let highestLevelOverlayBlendMode {
119 | content
120 | .blendMode(highestLevelOverlayBlendMode)
| |- error: 'blendMode' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
121 | .accessibilityHidden(true)
122 | }
/Users/admin/builder/spi-builder-workspace/Sources/CustomizableSegmentedControl/CustomizableSegmentedControl.swift:121:34: error: 'accessibilityHidden' is only available in macOS 11.0 or newer
85 | extension CustomizableSegmentedControl {
86 |
87 | fileprivate struct Segment<SegmentSelectionView: View, Content: View>: View {
| `- note: add @available attribute to enclosing generic struct
88 |
89 | // MARK: - Properties
:
104 | // MARK: - UI
105 |
106 | var body: some View {
| `- note: add @available attribute to enclosing property
107 | Button(action: action) {
108 | content
:
119 | content
120 | .blendMode(highestLevelOverlayBlendMode)
121 | .accessibilityHidden(true)
| |- error: 'accessibilityHidden' is only available in macOS 11.0 or newer
| `- note: add 'if #available' version check
122 | }
123 | }
/Users/admin/builder/spi-builder-workspace/Sources/CustomizableSegmentedControl/CustomizableSegmentedControl.swift:118:61: error: 'buildIf' is only available in macOS 10.15 or newer
85 | extension CustomizableSegmentedControl {
86 |
87 | fileprivate struct Segment<SegmentSelectionView: View, Content: View>: View {
| `- note: add @available attribute to enclosing generic struct
88 |
89 | // MARK: - Properties
:
104 | // MARK: - UI
105 |
106 | var body: some View {
| `- note: add @available attribute to enclosing property
107 | Button(action: action) {
108 | content
:
116 | }
117 | .overlay {
118 | if let highestLevelOverlayBlendMode {
| |- error: 'buildIf' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
119 | content
120 | .blendMode(highestLevelOverlayBlendMode)
/Users/admin/builder/spi-builder-workspace/Sources/CustomizableSegmentedControl/CustomizableSegmentedControl.swift:118:61: 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
85 | extension CustomizableSegmentedControl {
86 |
87 | fileprivate struct Segment<SegmentSelectionView: View, Content: View>: View {
| `- note: add @available attribute to enclosing generic struct
88 |
89 | // MARK: - Properties
:
104 | // MARK: - UI
105 |
106 | var body: some View {
| `- note: add @available attribute to enclosing property
107 | Button(action: action) {
108 | content
:
116 | }
117 | .overlay {
118 | if let highestLevelOverlayBlendMode {
| |- 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
119 | content
120 | .blendMode(highestLevelOverlayBlendMode)
/Users/admin/builder/spi-builder-workspace/Sources/CustomizableSegmentedControl/CustomizableSegmentedControl.swift:122:25: error: 'buildIf' is only available in macOS 10.15 or newer
85 | extension CustomizableSegmentedControl {
86 |
87 | fileprivate struct Segment<SegmentSelectionView: View, Content: View>: View {
| `- note: add @available attribute to enclosing generic struct
88 |
89 | // MARK: - Properties
:
104 | // MARK: - UI
105 |
106 | var body: some View {
| `- note: add @available attribute to enclosing property
107 | Button(action: action) {
108 | content
:
120 | .blendMode(highestLevelOverlayBlendMode)
121 | .accessibilityHidden(true)
122 | }
| |- error: 'buildIf' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
123 | }
124 | .background {
/Users/admin/builder/spi-builder-workspace/Sources/CustomizableSegmentedControl/CustomizableSegmentedControl.swift:117:30: 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
85 | extension CustomizableSegmentedControl {
86 |
87 | fileprivate struct Segment<SegmentSelectionView: View, Content: View>: View {
| `- note: add @available attribute to enclosing generic struct
88 |
89 | // MARK: - Properties
:
104 | // MARK: - UI
105 |
106 | var body: some View {
| `- note: add @available attribute to enclosing property
107 | Button(action: action) {
108 | content
:
115 | }
116 | }
117 | .overlay {
| |- 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
118 | if let highestLevelOverlayBlendMode {
119 | content
/Users/admin/builder/spi-builder-workspace/Sources/CustomizableSegmentedControl/CustomizableSegmentedControl.swift:124:22: 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
85 | extension CustomizableSegmentedControl {
86 |
87 | fileprivate struct Segment<SegmentSelectionView: View, Content: View>: View {
| `- note: add @available attribute to enclosing generic struct
88 |
89 | // MARK: - Properties
:
104 | // MARK: - UI
105 |
106 | var body: some View {
| `- note: add @available attribute to enclosing property
107 | Button(action: action) {
108 | content
:
122 | }
123 | }
124 | .background {
| |- 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
125 | if isSelected {
126 | selectionView
/Users/admin/builder/spi-builder-workspace/Sources/CustomizableSegmentedControl/CustomizableSegmentedControl.swift:127:34: error: 'transition' is only available in macOS 14.0 or newer
85 | extension CustomizableSegmentedControl {
86 |
87 | fileprivate struct Segment<SegmentSelectionView: View, Content: View>: View {
| `- note: add @available attribute to enclosing generic struct
88 |
89 | // MARK: - Properties
:
104 | // MARK: - UI
105 |
106 | var body: some View {
| `- note: add @available attribute to enclosing property
107 | Button(action: action) {
108 | content
:
125 | if isSelected {
126 | selectionView
127 | .transition(.offset())
| |- error: 'transition' is only available in macOS 14.0 or newer
| `- note: add 'if #available' version check
128 | .matchedGeometryEffect(id: backgroundID, in: namespaceID)
129 | }
/Users/admin/builder/spi-builder-workspace/Sources/CustomizableSegmentedControl/CustomizableSegmentedControl.swift:127:46: error: 'offset(x:y:)' is only available in macOS 14.0 or newer
85 | extension CustomizableSegmentedControl {
86 |
87 | fileprivate struct Segment<SegmentSelectionView: View, Content: View>: View {
| `- note: add @available attribute to enclosing generic struct
88 |
89 | // MARK: - Properties
:
104 | // MARK: - UI
105 |
106 | var body: some View {
| `- note: add @available attribute to enclosing property
107 | Button(action: action) {
108 | content
:
125 | if isSelected {
126 | selectionView
127 | .transition(.offset())
| |- error: 'offset(x:y:)' is only available in macOS 14.0 or newer
| `- note: add 'if #available' version check
128 | .matchedGeometryEffect(id: backgroundID, in: namespaceID)
129 | }
/Users/admin/builder/spi-builder-workspace/Sources/CustomizableSegmentedControl/CustomizableSegmentedControl.swift:128:34: error: 'matchedGeometryEffect(id:in:properties:anchor:isSource:)' is only available in macOS 11.0 or newer
85 | extension CustomizableSegmentedControl {
86 |
87 | fileprivate struct Segment<SegmentSelectionView: View, Content: View>: View {
| `- note: add @available attribute to enclosing generic struct
88 |
89 | // MARK: - Properties
:
104 | // MARK: - UI
105 |
106 | var body: some View {
| `- note: add @available attribute to enclosing property
107 | Button(action: action) {
108 | content
:
126 | selectionView
127 | .transition(.offset())
128 | .matchedGeometryEffect(id: backgroundID, in: namespaceID)
| |- error: 'matchedGeometryEffect(id:in:properties:anchor:isSource:)' is only available in macOS 11.0 or newer
| `- note: add 'if #available' version check
129 | }
130 | }
/Users/admin/builder/spi-builder-workspace/Sources/CustomizableSegmentedControl/CustomizableSegmentedControl.swift:125:39: error: 'buildIf' is only available in macOS 10.15 or newer
85 | extension CustomizableSegmentedControl {
86 |
87 | fileprivate struct Segment<SegmentSelectionView: View, Content: View>: View {
| `- note: add @available attribute to enclosing generic struct
88 |
89 | // MARK: - Properties
:
104 | // MARK: - UI
105 |
106 | var body: some View {
| `- note: add @available attribute to enclosing property
107 | Button(action: action) {
108 | content
:
123 | }
124 | .background {
125 | if isSelected {
| |- error: 'buildIf' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
126 | selectionView
127 | .transition(.offset())
/Users/admin/builder/spi-builder-workspace/Sources/CustomizableSegmentedControl/CustomizableSegmentedControl.swift:129:25: error: 'buildIf' is only available in macOS 10.15 or newer
85 | extension CustomizableSegmentedControl {
86 |
87 | fileprivate struct Segment<SegmentSelectionView: View, Content: View>: View {
| `- note: add @available attribute to enclosing generic struct
88 |
89 | // MARK: - Properties
:
104 | // MARK: - UI
105 |
106 | var body: some View {
| `- note: add @available attribute to enclosing property
107 | Button(action: action) {
108 | content
:
127 | .transition(.offset())
128 | .matchedGeometryEffect(id: backgroundID, in: namespaceID)
129 | }
| |- error: 'buildIf' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
130 | }
131 | .animation(animation, value: isSelected)
/Users/admin/builder/spi-builder-workspace/Sources/CustomizableSegmentedControl/CustomizableSegmentedControl.swift:124:33: 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
85 | extension CustomizableSegmentedControl {
86 |
87 | fileprivate struct Segment<SegmentSelectionView: View, Content: View>: View {
| `- note: add @available attribute to enclosing generic struct
88 |
89 | // MARK: - Properties
:
104 | // MARK: - UI
105 |
106 | var body: some View {
| `- note: add @available attribute to enclosing property
107 | Button(action: action) {
108 | content
:
122 | }
123 | }
124 | .background {
| |- 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
125 | if isSelected {
126 | selectionView
/Users/admin/builder/spi-builder-workspace/Sources/CustomizableSegmentedControl/CustomizableSegmentedControl.swift:131:22: error: 'animation(_:value:)' is only available in macOS 10.15 or newer
85 | extension CustomizableSegmentedControl {
86 |
87 | fileprivate struct Segment<SegmentSelectionView: View, Content: View>: View {
| `- note: add @available attribute to enclosing generic struct
88 |
89 | // MARK: - Properties
:
104 | // MARK: - UI
105 |
106 | var body: some View {
| `- note: add @available attribute to enclosing property
107 | Button(action: action) {
108 | content
:
129 | }
130 | }
131 | .animation(animation, value: isSelected)
| |- error: 'animation(_:value:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
132 | }
133 | .buttonStyle(SegmentButtonStyle(isPressed: $isPressed))
/Users/admin/builder/spi-builder-workspace/Sources/CustomizableSegmentedControl/CustomizableSegmentedControl.swift:133:14: error: 'buttonStyle' is only available in macOS 10.15 or newer
85 | extension CustomizableSegmentedControl {
86 |
87 | fileprivate struct Segment<SegmentSelectionView: View, Content: View>: View {
| `- note: add @available attribute to enclosing generic struct
88 |
89 | // MARK: - Properties
:
104 | // MARK: - UI
105 |
106 | var body: some View {
| `- note: add @available attribute to enclosing property
107 | Button(action: action) {
108 | content
:
131 | .animation(animation, value: isSelected)
132 | }
133 | .buttonStyle(SegmentButtonStyle(isPressed: $isPressed))
| |- error: 'buttonStyle' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
134 | .accessibilityElement(children: .combine)
135 | .accessibilityAddTraits(isSelected ? .isSelected : [])
/Users/admin/builder/spi-builder-workspace/Sources/CustomizableSegmentedControl/CustomizableSegmentedControl.swift:134:14: error: 'accessibilityElement(children:)' is only available in macOS 10.15 or newer
85 | extension CustomizableSegmentedControl {
86 |
87 | fileprivate struct Segment<SegmentSelectionView: View, Content: View>: View {
| `- note: add @available attribute to enclosing generic struct
88 |
89 | // MARK: - Properties
:
104 | // MARK: - UI
105 |
106 | var body: some View {
| `- note: add @available attribute to enclosing property
107 | Button(action: action) {
108 | content
:
132 | }
133 | .buttonStyle(SegmentButtonStyle(isPressed: $isPressed))
134 | .accessibilityElement(children: .combine)
| |- error: 'accessibilityElement(children:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
135 | .accessibilityAddTraits(isSelected ? .isSelected : [])
136 | .accessibilityRemoveTraits(isSelected ? [] : .isSelected)
/Users/admin/builder/spi-builder-workspace/Sources/CustomizableSegmentedControl/CustomizableSegmentedControl.swift:134:46: error: 'combine' is only available in macOS 10.15 or newer
85 | extension CustomizableSegmentedControl {
86 |
87 | fileprivate struct Segment<SegmentSelectionView: View, Content: View>: View {
| `- note: add @available attribute to enclosing generic struct
88 |
89 | // MARK: - Properties
:
104 | // MARK: - UI
105 |
106 | var body: some View {
| `- note: add @available attribute to enclosing property
107 | Button(action: action) {
108 | content
:
132 | }
133 | .buttonStyle(SegmentButtonStyle(isPressed: $isPressed))
134 | .accessibilityElement(children: .combine)
| |- error: 'combine' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
135 | .accessibilityAddTraits(isSelected ? .isSelected : [])
136 | .accessibilityRemoveTraits(isSelected ? [] : .isSelected)
/Users/admin/builder/spi-builder-workspace/Sources/CustomizableSegmentedControl/CustomizableSegmentedControl.swift:135:14: error: 'accessibilityAddTraits' is only available in macOS 11.0 or newer
85 | extension CustomizableSegmentedControl {
86 |
87 | fileprivate struct Segment<SegmentSelectionView: View, Content: View>: View {
| `- note: add @available attribute to enclosing generic struct
88 |
89 | // MARK: - Properties
:
104 | // MARK: - UI
105 |
106 | var body: some View {
| `- note: add @available attribute to enclosing property
107 | Button(action: action) {
108 | content
:
133 | .buttonStyle(SegmentButtonStyle(isPressed: $isPressed))
134 | .accessibilityElement(children: .combine)
135 | .accessibilityAddTraits(isSelected ? .isSelected : [])
| |- error: 'accessibilityAddTraits' is only available in macOS 11.0 or newer
| `- note: add 'if #available' version check
136 | .accessibilityRemoveTraits(isSelected ? [] : .isSelected)
137 | .accessibilityValue(accessibiltyValue)
/Users/admin/builder/spi-builder-workspace/Sources/CustomizableSegmentedControl/CustomizableSegmentedControl.swift:136:14: error: 'accessibilityRemoveTraits' is only available in macOS 11.0 or newer
85 | extension CustomizableSegmentedControl {
86 |
87 | fileprivate struct Segment<SegmentSelectionView: View, Content: View>: View {
| `- note: add @available attribute to enclosing generic struct
88 |
89 | // MARK: - Properties
:
104 | // MARK: - UI
105 |
106 | var body: some View {
| `- note: add @available attribute to enclosing property
107 | Button(action: action) {
108 | content
:
134 | .accessibilityElement(children: .combine)
135 | .accessibilityAddTraits(isSelected ? .isSelected : [])
136 | .accessibilityRemoveTraits(isSelected ? [] : .isSelected)
| |- error: 'accessibilityRemoveTraits' is only available in macOS 11.0 or newer
| `- note: add 'if #available' version check
137 | .accessibilityValue(accessibiltyValue)
138 | }
/Users/admin/builder/spi-builder-workspace/Sources/CustomizableSegmentedControl/CustomizableSegmentedControl.swift:137:14: error: 'accessibilityValue' is only available in macOS 11.0 or newer
85 | extension CustomizableSegmentedControl {
86 |
87 | fileprivate struct Segment<SegmentSelectionView: View, Content: View>: View {
| `- note: add @available attribute to enclosing generic struct
88 |
89 | // MARK: - Properties
:
104 | // MARK: - UI
105 |
106 | var body: some View {
| `- note: add @available attribute to enclosing property
107 | Button(action: action) {
108 | content
:
135 | .accessibilityAddTraits(isSelected ? .isSelected : [])
136 | .accessibilityRemoveTraits(isSelected ? [] : .isSelected)
137 | .accessibilityValue(accessibiltyValue)
| |- error: 'accessibilityValue' is only available in macOS 11.0 or newer
| `- note: add 'if #available' version check
138 | }
139 |
/Users/admin/builder/spi-builder-workspace/Sources/CustomizableSegmentedControl/CustomizableSegmentedControl.swift:106:29: 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
85 | extension CustomizableSegmentedControl {
86 |
87 | fileprivate struct Segment<SegmentSelectionView: View, Content: View>: View {
| `- note: add @available attribute to enclosing generic struct
88 |
89 | // MARK: - Properties
:
104 | // MARK: - UI
105 |
106 | var body: some View {
| | |- warning: conformance of 'ModifiedContent<Content, Modifier>' to 'View' is only available in macOS 10.15 or newer; this is an error in the Swift 6 language mode
| | `- note: add 'if #available' version check
| `- note: add @available attribute to enclosing property
107 | Button(action: action) {
108 | content
/Users/admin/builder/spi-builder-workspace/Sources/CustomizableSegmentedControl/CustomizableSegmentedControl.swift:184:18: error: 'contentShape(_:eoFill:)' is only available in macOS 10.15 or newer
176 | extension CustomizableSegmentedControl.Segment {
177 |
178 | private struct SegmentButtonStyle: ButtonStyle {
| `- note: add @available attribute to enclosing struct
179 |
180 | @Binding var isPressed: Bool
181 |
182 | func makeBody(configuration: Configuration) -> some View {
| `- note: add @available attribute to enclosing instance method
183 | configuration.label
184 | .contentShape(Rectangle())
| |- error: 'contentShape(_:eoFill:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
185 | .onChange(of: configuration.isPressed) { newValue in
186 | isPressed = newValue
/Users/admin/builder/spi-builder-workspace/Sources/CustomizableSegmentedControl/CustomizableSegmentedControl.swift:184:31: error: 'Rectangle' is only available in macOS 10.15 or newer
176 | extension CustomizableSegmentedControl.Segment {
177 |
178 | private struct SegmentButtonStyle: ButtonStyle {
| `- note: add @available attribute to enclosing struct
179 |
180 | @Binding var isPressed: Bool
181 |
182 | func makeBody(configuration: Configuration) -> some View {
| `- note: add @available attribute to enclosing instance method
183 | configuration.label
184 | .contentShape(Rectangle())
| |- error: 'Rectangle' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
185 | .onChange(of: configuration.isPressed) { newValue in
186 | isPressed = newValue
/Users/admin/builder/spi-builder-workspace/Sources/CustomizableSegmentedControl/CustomizableSegmentedControl.swift:185:18: error: 'onChange(of:perform:)' is only available in macOS 11.0 or newer
176 | extension CustomizableSegmentedControl.Segment {
177 |
178 | private struct SegmentButtonStyle: ButtonStyle {
| `- note: add @available attribute to enclosing struct
179 |
180 | @Binding var isPressed: Bool
181 |
182 | func makeBody(configuration: Configuration) -> some View {
| `- note: add @available attribute to enclosing instance method
183 | configuration.label
184 | .contentShape(Rectangle())
185 | .onChange(of: configuration.isPressed) { newValue in
| |- error: 'onChange(of:perform:)' is only available in macOS 11.0 or newer
| `- note: add 'if #available' version check
186 | isPressed = newValue
187 | }
/Users/admin/builder/spi-builder-workspace/Sources/CustomizableSegmentedControl/CustomizableSegmentedControl.swift:186:21: error: setter for 'isPressed' is only available in macOS 10.15 or newer
176 | extension CustomizableSegmentedControl.Segment {
177 |
178 | private struct SegmentButtonStyle: ButtonStyle {
| `- note: add @available attribute to enclosing struct
179 |
180 | @Binding var isPressed: Bool
181 |
182 | func makeBody(configuration: Configuration) -> some View {
| `- note: add @available attribute to enclosing instance method
183 | configuration.label
184 | .contentShape(Rectangle())
185 | .onChange(of: configuration.isPressed) { newValue in
186 | isPressed = newValue
| |- error: setter for 'isPressed' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
187 | }
188 | }
/Users/admin/builder/spi-builder-workspace/Sources/CustomizableSegmentedControl/CustomizableSegmentedControl.swift:250:13: error: 'blendMode' is only available in macOS 10.15 or newer
243 | // MARK: - View + Extensions
244 |
245 | private extension View {
| `- note: add @available attribute to enclosing extension
246 |
247 | @ViewBuilder
248 | func blendModeIfNotNil(_ mode: BlendMode?) -> some View {
| `- note: add @available attribute to enclosing instance method
249 | if let mode {
250 | blendMode(mode)
| |- error: 'blendMode' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
251 | } else {
252 | self
/Users/admin/builder/spi-builder-workspace/Sources/CustomizableSegmentedControl/CustomizableSegmentedControl.swift:249:21: error: 'buildEither(first:)' is only available in macOS 10.15 or newer
243 | // MARK: - View + Extensions
244 |
245 | private extension View {
| `- note: add @available attribute to enclosing extension
246 |
247 | @ViewBuilder
248 | func blendModeIfNotNil(_ mode: BlendMode?) -> some View {
| `- note: add @available attribute to enclosing instance method
249 | if let mode {
| |- error: 'buildEither(first:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
250 | blendMode(mode)
251 | } else {
/Users/admin/builder/spi-builder-workspace/Sources/CustomizableSegmentedControl/CustomizableSegmentedControl.swift:251:16: error: 'buildEither(second:)' is only available in macOS 10.15 or newer
243 | // MARK: - View + Extensions
244 |
245 | private extension View {
| `- note: add @available attribute to enclosing extension
246 |
247 | @ViewBuilder
248 | func blendModeIfNotNil(_ mode: BlendMode?) -> some View {
| `- note: add @available attribute to enclosing instance method
249 | if let mode {
250 | blendMode(mode)
251 | } else {
| |- error: 'buildEither(second:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
252 | self
253 | }
/Users/admin/builder/spi-builder-workspace/Sources/CustomizableSegmentedControl/CustomizableSegmentedControl.swift:248:61: 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
243 | // MARK: - View + Extensions
244 |
245 | private extension View {
| `- note: add @available attribute to enclosing extension
246 |
247 | @ViewBuilder
248 | func blendModeIfNotNil(_ mode: BlendMode?) -> 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
249 | if let mode {
250 | blendMode(mode)
/Users/admin/builder/spi-builder-workspace/Sources/CustomizableSegmentedControl/CustomizableSegmentedControl.swift:261:12: warning: result builder 'ViewBuilder' does not implement 'buildLimitedAvailability'; this code may crash on earlier versions of the OS
259 | @ViewBuilder _ content: () -> T
260 | ) -> some View {
261 | if #available(iOS 15.0, *) {
| `- warning: result builder 'ViewBuilder' does not implement 'buildLimitedAvailability'; this code may crash on earlier versions of the OS
262 | background(alignment: alignment, content: content)
263 | } else {
/Users/admin/builder/spi-builder-workspace/Sources/CustomizableSegmentedControl/CustomizableSegmentedControl.swift:262:13: error: 'background(alignment:content:)' is only available in macOS 12.0 or newer
243 | // MARK: - View + Extensions
244 |
245 | private extension View {
| `- note: add @available attribute to enclosing extension
246 |
247 | @ViewBuilder
:
255 |
256 | @ViewBuilder
257 | func background<T: View>(
| `- note: add @available attribute to enclosing instance method
258 | alignment: Alignment = .center,
259 | @ViewBuilder _ content: () -> T
260 | ) -> some View {
261 | if #available(iOS 15.0, *) {
262 | background(alignment: alignment, content: content)
| |- error: 'background(alignment:content:)' is only available in macOS 12.0 or newer
| `- note: add 'if #available' version check
263 | } else {
264 | background(content(), alignment: alignment)
/Users/admin/builder/spi-builder-workspace/Sources/CustomizableSegmentedControl/CustomizableSegmentedControl.swift:261:36: error: 'buildLimitedAvailability' is only available in macOS 11.0 or newer
243 | // MARK: - View + Extensions
244 |
245 | private extension View {
| `- note: add @available attribute to enclosing extension
246 |
247 | @ViewBuilder
:
255 |
256 | @ViewBuilder
257 | func background<T: View>(
| `- note: add @available attribute to enclosing instance method
258 | alignment: Alignment = .center,
259 | @ViewBuilder _ content: () -> T
260 | ) -> some View {
261 | if #available(iOS 15.0, *) {
| |- error: 'buildLimitedAvailability' is only available in macOS 11.0 or newer
| `- note: add 'if #available' version check
262 | background(alignment: alignment, content: content)
263 | } else {
/Users/admin/builder/spi-builder-workspace/Sources/CustomizableSegmentedControl/CustomizableSegmentedControl.swift:261:36: error: 'buildEither(first:)' is only available in macOS 10.15 or newer
243 | // MARK: - View + Extensions
244 |
245 | private extension View {
| `- note: add @available attribute to enclosing extension
246 |
247 | @ViewBuilder
:
255 |
256 | @ViewBuilder
257 | func background<T: View>(
| `- note: add @available attribute to enclosing instance method
258 | alignment: Alignment = .center,
259 | @ViewBuilder _ content: () -> T
260 | ) -> some View {
261 | if #available(iOS 15.0, *) {
| |- error: 'buildEither(first:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
262 | background(alignment: alignment, content: content)
263 | } else {
/Users/admin/builder/spi-builder-workspace/Sources/CustomizableSegmentedControl/CustomizableSegmentedControl.swift:263:16: error: 'buildEither(second:)' is only available in macOS 10.15 or newer
243 | // MARK: - View + Extensions
244 |
245 | private extension View {
| `- note: add @available attribute to enclosing extension
246 |
247 | @ViewBuilder
:
255 |
256 | @ViewBuilder
257 | func background<T: View>(
| `- note: add @available attribute to enclosing instance method
258 | alignment: Alignment = .center,
259 | @ViewBuilder _ content: () -> T
:
261 | if #available(iOS 15.0, *) {
262 | background(alignment: alignment, content: content)
263 | } else {
| |- error: 'buildEither(second:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
264 | background(content(), alignment: alignment)
265 | }
/Users/admin/builder/spi-builder-workspace/Sources/CustomizableSegmentedControl/CustomizableSegmentedControl.swift:260: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
243 | // MARK: - View + Extensions
244 |
245 | private extension View {
| `- note: add @available attribute to enclosing extension
246 |
247 | @ViewBuilder
:
255 |
256 | @ViewBuilder
257 | func background<T: View>(
| `- note: add @available attribute to enclosing instance method
258 | alignment: Alignment = .center,
259 | @ViewBuilder _ content: () -> T
260 | ) -> 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
261 | if #available(iOS 15.0, *) {
262 | background(alignment: alignment, content: content)
/Users/admin/builder/spi-builder-workspace/Sources/CustomizableSegmentedControl/CustomizableSegmentedControl.swift:273:12: warning: result builder 'ViewBuilder' does not implement 'buildLimitedAvailability'; this code may crash on earlier versions of the OS
271 | @ViewBuilder _ content: () -> T
272 | ) -> some View {
273 | if #available(iOS 15.0, *) {
| `- warning: result builder 'ViewBuilder' does not implement 'buildLimitedAvailability'; this code may crash on earlier versions of the OS
274 | overlay(alignment: alignment, content: content)
275 | } else {
/Users/admin/builder/spi-builder-workspace/Sources/CustomizableSegmentedControl/CustomizableSegmentedControl.swift:274:13: error: 'overlay(alignment:content:)' is only available in macOS 12.0 or newer
243 | // MARK: - View + Extensions
244 |
245 | private extension View {
| `- note: add @available attribute to enclosing extension
246 |
247 | @ViewBuilder
:
267 |
268 | @ViewBuilder
269 | func overlay<T: View>(
| `- note: add @available attribute to enclosing instance method
270 | alignment: Alignment = .center,
271 | @ViewBuilder _ content: () -> T
272 | ) -> some View {
273 | if #available(iOS 15.0, *) {
274 | overlay(alignment: alignment, content: content)
| |- error: 'overlay(alignment:content:)' is only available in macOS 12.0 or newer
| `- note: add 'if #available' version check
275 | } else {
276 | overlay(content(), alignment: alignment)
/Users/admin/builder/spi-builder-workspace/Sources/CustomizableSegmentedControl/CustomizableSegmentedControl.swift:273:36: error: 'buildLimitedAvailability' is only available in macOS 11.0 or newer
243 | // MARK: - View + Extensions
244 |
245 | private extension View {
| `- note: add @available attribute to enclosing extension
246 |
247 | @ViewBuilder
:
267 |
268 | @ViewBuilder
269 | func overlay<T: View>(
| `- note: add @available attribute to enclosing instance method
270 | alignment: Alignment = .center,
271 | @ViewBuilder _ content: () -> T
272 | ) -> some View {
273 | if #available(iOS 15.0, *) {
| |- error: 'buildLimitedAvailability' is only available in macOS 11.0 or newer
| `- note: add 'if #available' version check
274 | overlay(alignment: alignment, content: content)
275 | } else {
/Users/admin/builder/spi-builder-workspace/Sources/CustomizableSegmentedControl/CustomizableSegmentedControl.swift:273:36: error: 'buildEither(first:)' is only available in macOS 10.15 or newer
243 | // MARK: - View + Extensions
244 |
245 | private extension View {
| `- note: add @available attribute to enclosing extension
246 |
247 | @ViewBuilder
:
267 |
268 | @ViewBuilder
269 | func overlay<T: View>(
| `- note: add @available attribute to enclosing instance method
270 | alignment: Alignment = .center,
271 | @ViewBuilder _ content: () -> T
272 | ) -> some View {
273 | if #available(iOS 15.0, *) {
| |- error: 'buildEither(first:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
274 | overlay(alignment: alignment, content: content)
275 | } else {
/Users/admin/builder/spi-builder-workspace/Sources/CustomizableSegmentedControl/CustomizableSegmentedControl.swift:275:16: error: 'buildEither(second:)' is only available in macOS 10.15 or newer
243 | // MARK: - View + Extensions
244 |
245 | private extension View {
| `- note: add @available attribute to enclosing extension
246 |
247 | @ViewBuilder
:
267 |
268 | @ViewBuilder
269 | func overlay<T: View>(
| `- note: add @available attribute to enclosing instance method
270 | alignment: Alignment = .center,
271 | @ViewBuilder _ content: () -> T
:
273 | if #available(iOS 15.0, *) {
274 | overlay(alignment: alignment, content: content)
275 | } else {
| |- error: 'buildEither(second:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
276 | overlay(content(), alignment: alignment)
277 | }
/Users/admin/builder/spi-builder-workspace/Sources/CustomizableSegmentedControl/CustomizableSegmentedControl.swift:272: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
243 | // MARK: - View + Extensions
244 |
245 | private extension View {
| `- note: add @available attribute to enclosing extension
246 |
247 | @ViewBuilder
:
267 |
268 | @ViewBuilder
269 | func overlay<T: View>(
| `- note: add @available attribute to enclosing instance method
270 | alignment: Alignment = .center,
271 | @ViewBuilder _ content: () -> T
272 | ) -> 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
273 | if #available(iOS 15.0, *) {
274 | overlay(alignment: alignment, content: content)
[6/6] Compiling CustomizableSegmentedControl CustomizableSegmentedControl+EnvironmentValues.swift
/Users/admin/builder/spi-builder-workspace/Sources/CustomizableSegmentedControl/CustomizableSegmentedControl+EnvironmentValues.swift:11:16: warning: static property 'defaultValue' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
9 |
10 | private struct SegmentedControlInsetsKey: EnvironmentKey {
11 | static var defaultValue: EdgeInsets = .init(top: 0, leading: 0, bottom: 0, trailing: 0)
| |- warning: static property 'defaultValue' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'defaultValue' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'defaultValue' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
12 | }
13 |
/Users/admin/builder/spi-builder-workspace/Sources/CustomizableSegmentedControl/CustomizableSegmentedControl+EnvironmentValues.swift:11:30: error: 'EdgeInsets' is only available in macOS 10.15 or newer
8 | import SwiftUI
9 |
10 | private struct SegmentedControlInsetsKey: EnvironmentKey {
| `- note: add @available attribute to enclosing struct
11 | static var defaultValue: EdgeInsets = .init(top: 0, leading: 0, bottom: 0, trailing: 0)
| | `- error: 'EdgeInsets' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing static property
12 | }
13 |
/Users/admin/builder/spi-builder-workspace/Sources/CustomizableSegmentedControl/CustomizableSegmentedControl+EnvironmentValues.swift:15:16: warning: static property 'defaultValue' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
13 |
14 | private struct SegmentedControlInterSegmentSpacingKey: EnvironmentKey {
15 | static var defaultValue: CGFloat = .zero
| |- warning: static property 'defaultValue' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'defaultValue' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'defaultValue' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
16 | }
17 |
/Users/admin/builder/spi-builder-workspace/Sources/CustomizableSegmentedControl/CustomizableSegmentedControl+EnvironmentValues.swift:19:16: warning: static property 'defaultValue' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
17 |
18 | private struct SegmentedControlContentStyleKey: EnvironmentKey {
19 | static var defaultValue: CustomizableSegmentedControlContentStyle = .default
| |- warning: static property 'defaultValue' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'defaultValue' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'defaultValue' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
20 | }
21 |
/Users/admin/builder/spi-builder-workspace/Sources/CustomizableSegmentedControl/CustomizableSegmentedControl+EnvironmentValues.swift:23:16: warning: static property 'defaultValue' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
21 |
22 | private struct SegmentedControlSlidingAnimationKey: EnvironmentKey {
23 | static var defaultValue: Animation = .default
| |- warning: static property 'defaultValue' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'defaultValue' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'defaultValue' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
24 | }
25 |
/Users/admin/builder/spi-builder-workspace/Sources/CustomizableSegmentedControl/CustomizableSegmentedControl+EnvironmentValues.swift:23:30: error: 'Animation' is only available in macOS 10.15 or newer
20 | }
21 |
22 | private struct SegmentedControlSlidingAnimationKey: EnvironmentKey {
| `- note: add @available attribute to enclosing struct
23 | static var defaultValue: Animation = .default
| | `- error: 'Animation' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing static property
24 | }
25 |
/Users/admin/builder/spi-builder-workspace/Sources/CustomizableSegmentedControl/CustomizableSegmentedControl+EnvironmentValues.swift:23:43: error: 'default' is only available in macOS 10.15 or newer
20 | }
21 |
22 | private struct SegmentedControlSlidingAnimationKey: EnvironmentKey {
| `- note: add @available attribute to enclosing struct
23 | static var defaultValue: Animation = .default
| | `- error: 'default' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing static property
24 | }
25 |
/Users/admin/builder/spi-builder-workspace/Sources/CustomizableSegmentedControl/CustomizableSegmentedControl+EnvironmentValues.swift:28:33: error: 'EdgeInsets' is only available in macOS 10.15 or newer
24 | }
25 |
26 | extension EnvironmentValues {
| `- note: add @available attribute to enclosing extension
27 |
28 | var segmentedControlInsets: EdgeInsets {
| | `- error: 'EdgeInsets' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing property
29 | get { self[SegmentedControlInsetsKey.self] }
30 | set { self[SegmentedControlInsetsKey.self] = newValue }
/Users/admin/builder/spi-builder-workspace/Sources/CustomizableSegmentedControl/CustomizableSegmentedControl+EnvironmentValues.swift:43:43: error: 'Animation' is only available in macOS 10.15 or newer
24 | }
25 |
26 | extension EnvironmentValues {
| `- note: add @available attribute to enclosing extension
27 |
28 | var segmentedControlInsets: EdgeInsets {
:
41 | }
42 |
43 | var segmentedControlSlidingAnimation: Animation {
| | `- error: 'Animation' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing property
44 | get { self[SegmentedControlSlidingAnimationKey.self] }
45 | set { self[SegmentedControlSlidingAnimationKey.self] = newValue }
/Users/admin/builder/spi-builder-workspace/Sources/CustomizableSegmentedControl/CustomizableSegmentedControl+EnvironmentValues.swift:26:11: error: 'EnvironmentValues' is only available in macOS 10.15 or newer
24 | }
25 |
26 | extension EnvironmentValues {
| | `- error: 'EnvironmentValues' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing extension
27 |
28 | var segmentedControlInsets: EdgeInsets {
/Users/admin/builder/spi-builder-workspace/Sources/CustomizableSegmentedControl/CustomizableSegmentedControl+EnvironmentValues.swift:52:27: error: 'EdgeInsets' is only available in macOS 10.15 or newer
48 | }
49 |
50 | public extension CustomizableSegmentedControl {
| `- note: add @available attribute to enclosing extension
51 |
52 | func insets(_ insets: EdgeInsets) -> some View {
| | `- error: 'EdgeInsets' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing instance method
53 | environment(\.segmentedControlInsets, insets)
54 | }
/Users/admin/builder/spi-builder-workspace/Sources/CustomizableSegmentedControl/CustomizableSegmentedControl+EnvironmentValues.swift:52:47: error: 'View' is only available in macOS 10.15 or newer
48 | }
49 |
50 | public extension CustomizableSegmentedControl {
| `- note: add @available attribute to enclosing extension
51 |
52 | func insets(_ insets: EdgeInsets) -> some View {
| | `- error: 'View' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing instance method
53 | environment(\.segmentedControlInsets, insets)
54 | }
/Users/admin/builder/spi-builder-workspace/Sources/CustomizableSegmentedControl/CustomizableSegmentedControl+EnvironmentValues.swift:56:121: error: 'View' is only available in macOS 10.15 or newer
48 | }
49 |
50 | public extension CustomizableSegmentedControl {
| `- note: add @available attribute to enclosing extension
51 |
52 | func insets(_ insets: EdgeInsets) -> some View {
:
54 | }
55 |
56 | func insets(top: CGFloat? = nil, leading: CGFloat? = nil, bottom: CGFloat? = nil, trailing: CGFloat? = nil) -> some View {
| | `- error: 'View' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing instance method
57 | environment(\.segmentedControlInsets, .init(
58 | top: top ?? segmentedControlInsets.top,
/Users/admin/builder/spi-builder-workspace/Sources/CustomizableSegmentedControl/CustomizableSegmentedControl+EnvironmentValues.swift:65:26: error: 'Edge' is only available in macOS 10.15 or newer
48 | }
49 |
50 | public extension CustomizableSegmentedControl {
| `- note: add @available attribute to enclosing extension
51 |
52 | func insets(_ insets: EdgeInsets) -> some View {
:
63 | }
64 |
65 | func insets(_ edges: Edge.Set = .all, _ length: CGFloat? = nil) -> some View {
| | `- error: 'Edge' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing instance method
66 | switch edges {
67 | case .vertical:
/Users/admin/builder/spi-builder-workspace/Sources/CustomizableSegmentedControl/CustomizableSegmentedControl+EnvironmentValues.swift:65:77: error: 'View' is only available in macOS 10.15 or newer
48 | }
49 |
50 | public extension CustomizableSegmentedControl {
| `- note: add @available attribute to enclosing extension
51 |
52 | func insets(_ insets: EdgeInsets) -> some View {
:
63 | }
64 |
65 | func insets(_ edges: Edge.Set = .all, _ length: CGFloat? = nil) -> some View {
| | `- error: 'View' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing instance method
66 | switch edges {
67 | case .vertical:
/Users/admin/builder/spi-builder-workspace/Sources/CustomizableSegmentedControl/CustomizableSegmentedControl+EnvironmentValues.swift:96:65: error: 'View' is only available in macOS 10.15 or newer
92 | }
93 |
94 | public extension View {
| `- note: add @available attribute to enclosing extension
95 |
96 | func segmentedControl(interSegmentSpacing: CGFloat) -> some View {
| | `- error: 'View' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing instance method
97 | environment(\.segmentedControlInterSegmentSpacing, interSegmentSpacing)
98 | }
/Users/admin/builder/spi-builder-workspace/Sources/CustomizableSegmentedControl/CustomizableSegmentedControl+EnvironmentValues.swift:100:98: error: 'View' is only available in macOS 10.15 or newer
92 | }
93 |
94 | public extension View {
| `- note: add @available attribute to enclosing extension
95 |
96 | func segmentedControl(interSegmentSpacing: CGFloat) -> some View {
:
98 | }
99 |
100 | func segmentedControlContentStyle(_ style: CustomizableSegmentedControlContentStyle) -> some View {
| | `- error: 'View' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing instance method
101 | environment(\.segmentedControlContentStyle, style)
102 | }
/Users/admin/builder/spi-builder-workspace/Sources/CustomizableSegmentedControl/CustomizableSegmentedControl+EnvironmentValues.swift:104:56: error: 'Animation' is only available in macOS 10.15 or newer
92 | }
93 |
94 | public extension View {
| `- note: add @available attribute to enclosing extension
95 |
96 | func segmentedControl(interSegmentSpacing: CGFloat) -> some View {
:
102 | }
103 |
104 | func segmentedControlSlidingAnimation(_ animation: Animation) -> some View {
| | `- error: 'Animation' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing instance method
105 | environment(\.segmentedControlSlidingAnimation, animation)
106 | }
/Users/admin/builder/spi-builder-workspace/Sources/CustomizableSegmentedControl/CustomizableSegmentedControl+EnvironmentValues.swift:104:75: error: 'View' is only available in macOS 10.15 or newer
92 | }
93 |
94 | public extension View {
| `- note: add @available attribute to enclosing extension
95 |
96 | func segmentedControl(interSegmentSpacing: CGFloat) -> some View {
:
102 | }
103 |
104 | func segmentedControlSlidingAnimation(_ animation: Animation) -> some View {
| | `- error: 'View' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing instance method
105 | environment(\.segmentedControlSlidingAnimation, animation)
106 | }
/Users/admin/builder/spi-builder-workspace/Sources/CustomizableSegmentedControl/CustomizableSegmentedControl+EnvironmentValues.swift:94:18: error: 'View' is only available in macOS 10.15 or newer
92 | }
93 |
94 | public extension View {
| | `- error: 'View' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing extension
95 |
96 | func segmentedControl(interSegmentSpacing: CGFloat) -> some View {
/Users/admin/builder/spi-builder-workspace/Sources/CustomizableSegmentedControl/CustomizableSegmentedControl+EnvironmentValues.swift:53:9: error: 'environment' is only available in macOS 10.15 or newer
48 | }
49 |
50 | public extension CustomizableSegmentedControl {
| `- note: add @available attribute to enclosing extension
51 |
52 | func insets(_ insets: EdgeInsets) -> some View {
| `- note: add @available attribute to enclosing instance method
53 | environment(\.segmentedControlInsets, insets)
| |- error: 'environment' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
54 | }
55 |
/Users/admin/builder/spi-builder-workspace/Sources/CustomizableSegmentedControl/CustomizableSegmentedControl+EnvironmentValues.swift:57:9: error: 'environment' is only available in macOS 10.15 or newer
48 | }
49 |
50 | public extension CustomizableSegmentedControl {
| `- note: add @available attribute to enclosing extension
51 |
52 | func insets(_ insets: EdgeInsets) -> some View {
:
54 | }
55 |
56 | func insets(top: CGFloat? = nil, leading: CGFloat? = nil, bottom: CGFloat? = nil, trailing: CGFloat? = nil) -> some View {
| `- note: add @available attribute to enclosing instance method
57 | environment(\.segmentedControlInsets, .init(
| |- error: 'environment' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
58 | top: top ?? segmentedControlInsets.top,
59 | leading: leading ?? segmentedControlInsets.leading,
/Users/admin/builder/spi-builder-workspace/Sources/CustomizableSegmentedControl/CustomizableSegmentedControl+EnvironmentValues.swift:97:9: error: 'environment' is only available in macOS 10.15 or newer
92 | }
93 |
94 | public extension View {
| `- note: add @available attribute to enclosing extension
95 |
96 | func segmentedControl(interSegmentSpacing: CGFloat) -> some View {
| `- note: add @available attribute to enclosing instance method
97 | environment(\.segmentedControlInterSegmentSpacing, interSegmentSpacing)
| |- error: 'environment' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
98 | }
99 |
/Users/admin/builder/spi-builder-workspace/Sources/CustomizableSegmentedControl/CustomizableSegmentedControl+EnvironmentValues.swift:101:9: error: 'environment' is only available in macOS 10.15 or newer
92 | }
93 |
94 | public extension View {
| `- note: add @available attribute to enclosing extension
95 |
96 | func segmentedControl(interSegmentSpacing: CGFloat) -> some View {
:
98 | }
99 |
100 | func segmentedControlContentStyle(_ style: CustomizableSegmentedControlContentStyle) -> some View {
| `- note: add @available attribute to enclosing instance method
101 | environment(\.segmentedControlContentStyle, style)
| |- error: 'environment' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
102 | }
103 |
/Users/admin/builder/spi-builder-workspace/Sources/CustomizableSegmentedControl/CustomizableSegmentedControl+EnvironmentValues.swift:105:9: error: 'environment' is only available in macOS 10.15 or newer
92 | }
93 |
94 | public extension View {
| `- note: add @available attribute to enclosing extension
95 |
96 | func segmentedControl(interSegmentSpacing: CGFloat) -> some View {
:
102 | }
103 |
104 | func segmentedControlSlidingAnimation(_ animation: Animation) -> some View {
| `- note: add @available attribute to enclosing instance method
105 | environment(\.segmentedControlSlidingAnimation, animation)
| |- error: 'environment' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
106 | }
107 |
BUILD FAILURE 6.0 macosSpm