Build Information
Failed to build BarKit, reference main (620b89), with Swift 6.3 for macOS (SPM) on 28 Jun 2026 05:58:22 UTC.
Build Command
env DEVELOPER_DIR=/Applications/Xcode-26.4.0.app xcrun swift build --arch arm64Build Log
:
36 |
37 | /// Resolves the animation for use in view modifiers.
38 | public var resolvedAnimation: Animation? {
| | `- error: 'Animation' is only available in macOS 10.15 or newer
| `- note: add '@available' attribute to enclosing property
39 | scalingAnimation?.animation
40 | }
[44/54] Compiling BarKit BarIcon.swift
/Users/admin/builder/spi-builder-workspace/Sources/BarKit/BarConfiguration/SelectionIndicator/SelectionIndicatorConfiguration.swift:16:23: error: 'Color' is only available in macOS 10.15 or newer
9 |
10 | /// Defines the visual appearance and behavior of the selection indicator.
11 | public struct SelectionIndicatorConfiguration {
| `- note: add '@available' attribute to enclosing struct
12 |
13 | // MARK: - Appearance
14 |
15 | /// The fill color of the indicator.
16 | public var color: Color
| `- error: 'Color' is only available in macOS 10.15 or newer
17 |
18 | /// Optional border applied to the indicator.
/Users/admin/builder/spi-builder-workspace/Sources/BarKit/BarConfiguration/SelectionIndicator/SelectionIndicatorConfiguration.swift:23:23: error: 'EdgeInsets' is only available in macOS 10.15 or newer
9 |
10 | /// Defines the visual appearance and behavior of the selection indicator.
11 | public struct SelectionIndicatorConfiguration {
| `- note: add '@available' attribute to enclosing struct
12 |
13 | // MARK: - Appearance
:
21 | /// Inset between the indicator and the item frame.
22 | /// Positive values shrink the indicator, negative values expand it.
23 | public var inset: EdgeInsets
| `- error: 'EdgeInsets' is only available in macOS 10.15 or newer
24 |
25 | /// Corner radius of the indicator.
/Users/admin/builder/spi-builder-workspace/Sources/BarKit/BarConfiguration/SelectionIndicator/SelectionIndicatorConfiguration.swift:62:16: error: 'Color' is only available in macOS 10.15 or newer
9 |
10 | /// Defines the visual appearance and behavior of the selection indicator.
11 | public struct SelectionIndicatorConfiguration {
| `- note: add '@available' attribute to enclosing struct
12 |
13 | // MARK: - Appearance
:
59 | /// - isDragGestureEnabled: Whether the user can drag the indicator between items.
60 | /// - effects: Active visual effects at the indicator boundary. Duplicate effects are ignored — only the first occurrence of each effect type is applied.
61 | public init(
| `- note: add '@available' attribute to enclosing initializer
62 | color: Color = .secondary.opacity(0.2),
| `- error: 'Color' is only available in macOS 10.15 or newer
63 | border: BorderConfiguration? = nil,
64 | inset: EdgeInsets = .init(top: 2, leading: 2, bottom: 2, trailing: 2),
/Users/admin/builder/spi-builder-workspace/Sources/BarKit/BarConfiguration/SelectionIndicator/SelectionIndicatorConfiguration.swift:64:16: error: 'EdgeInsets' is only available in macOS 10.15 or newer
9 |
10 | /// Defines the visual appearance and behavior of the selection indicator.
11 | public struct SelectionIndicatorConfiguration {
| `- note: add '@available' attribute to enclosing struct
12 |
13 | // MARK: - Appearance
:
59 | /// - isDragGestureEnabled: Whether the user can drag the indicator between items.
60 | /// - effects: Active visual effects at the indicator boundary. Duplicate effects are ignored — only the first occurrence of each effect type is applied.
61 | public init(
| `- note: add '@available' attribute to enclosing initializer
62 | color: Color = .secondary.opacity(0.2),
63 | border: BorderConfiguration? = nil,
64 | inset: EdgeInsets = .init(top: 2, leading: 2, bottom: 2, trailing: 2),
| `- error: 'EdgeInsets' is only available in macOS 10.15 or newer
65 | cornerRadius: CGFloat = 24,
66 | transitionAnimation: BarAnimation? = .parameters(.init()),
/Users/admin/builder/spi-builder-workspace/Sources/BarKit/BarConfiguration/SelectionIndicator/SelectionIndicatorConfiguration.swift:62:25: error: 'secondary' is only available in macOS 10.15 or newer
9 |
10 | /// Defines the visual appearance and behavior of the selection indicator.
11 | public struct SelectionIndicatorConfiguration {
| `- note: add '@available' attribute to enclosing struct
12 |
13 | // MARK: - Appearance
:
59 | /// - isDragGestureEnabled: Whether the user can drag the indicator between items.
60 | /// - effects: Active visual effects at the indicator boundary. Duplicate effects are ignored — only the first occurrence of each effect type is applied.
61 | public init(
| `- note: add '@available' attribute to enclosing initializer
62 | color: Color = .secondary.opacity(0.2),
| `- error: 'secondary' is only available in macOS 10.15 or newer
63 | border: BorderConfiguration? = nil,
64 | inset: EdgeInsets = .init(top: 2, leading: 2, bottom: 2, trailing: 2),
/Users/admin/builder/spi-builder-workspace/Sources/BarKit/BarConfiguration/SelectionIndicator/SelectionIndicatorConfiguration.swift:62:35: error: 'opacity' is only available in macOS 10.15 or newer
9 |
10 | /// Defines the visual appearance and behavior of the selection indicator.
11 | public struct SelectionIndicatorConfiguration {
| `- note: add '@available' attribute to enclosing struct
12 |
13 | // MARK: - Appearance
:
59 | /// - isDragGestureEnabled: Whether the user can drag the indicator between items.
60 | /// - effects: Active visual effects at the indicator boundary. Duplicate effects are ignored — only the first occurrence of each effect type is applied.
61 | public init(
| `- note: add '@available' attribute to enclosing initializer
62 | color: Color = .secondary.opacity(0.2),
| `- error: 'opacity' is only available in macOS 10.15 or newer
63 | border: BorderConfiguration? = nil,
64 | inset: EdgeInsets = .init(top: 2, leading: 2, bottom: 2, trailing: 2),
/Users/admin/builder/spi-builder-workspace/Sources/BarKit/BarConfiguration/SelectionIndicator/SelectionIndicatorConfiguration.swift:84:45: error: 'Animation' is only available in macOS 10.15 or newer
9 |
10 | /// Defines the visual appearance and behavior of the selection indicator.
11 | public struct SelectionIndicatorConfiguration {
| `- note: add '@available' attribute to enclosing struct
12 |
13 | // MARK: - Appearance
:
82 |
83 | /// Resolves the transition animation for use in view modifiers.
84 | public var resolvedTransitionAnimation: Animation? {
| | `- error: 'Animation' is only available in macOS 10.15 or newer
| `- note: add '@available' attribute to enclosing property
85 | transitionAnimation?.animation
86 | }
/Users/admin/builder/spi-builder-workspace/Sources/BarKit/BarConfiguration/SelectionIndicator/SelectionScaleEffect.swift:38:35: error: 'Animation' is only available in macOS 10.15 or newer
9 |
10 | /// Defines the scaling effect for the selection indicator during tab transitions.
11 | public struct SelectionScaleEffect {
| `- note: add '@available' attribute to enclosing struct
12 |
13 | /// Animation applied specifically to the scaling effect.
:
36 |
37 | /// Resolves the animation for use in view modifiers.
38 | public var resolvedAnimation: Animation? {
| | `- error: 'Animation' is only available in macOS 10.15 or newer
| `- note: add '@available' attribute to enclosing property
39 | scalingAnimation?.animation
40 | }
[45/54] Compiling BarKit ItemConfiguration.swift
/Users/admin/builder/spi-builder-workspace/Sources/BarKit/BarConfiguration/Item/ItemConfiguration.swift:14:31: error: 'Color' is only available in macOS 10.15 or newer
9 |
10 | /// Defines the visual appearance of a single bar item in isolation.
11 | public struct ItemConfiguration: Equatable {
| `- note: add '@available' attribute to enclosing struct
12 |
13 | /// The color applied to the icon and title of a selected item.
14 | public var selectedColor: Color
| `- error: 'Color' is only available in macOS 10.15 or newer
15 |
16 | /// The color applied to the icon and title of an unselected item.
/Users/admin/builder/spi-builder-workspace/Sources/BarKit/BarConfiguration/Item/ItemConfiguration.swift:17:33: error: 'Color' is only available in macOS 10.15 or newer
9 |
10 | /// Defines the visual appearance of a single bar item in isolation.
11 | public struct ItemConfiguration: Equatable {
| `- note: add '@available' attribute to enclosing struct
12 |
13 | /// The color applied to the icon and title of a selected item.
:
15 |
16 | /// The color applied to the icon and title of an unselected item.
17 | public var unselectedColor: Color
| `- error: 'Color' is only available in macOS 10.15 or newer
18 |
19 | /// The typography style for the item title.
/Users/admin/builder/spi-builder-workspace/Sources/BarKit/BarConfiguration/Item/ItemConfiguration.swift:20:27: error: 'Font' is only available in macOS 10.15 or newer
9 |
10 | /// Defines the visual appearance of a single bar item in isolation.
11 | public struct ItemConfiguration: Equatable {
| `- note: add '@available' attribute to enclosing struct
12 |
13 | /// The color applied to the icon and title of a selected item.
:
18 |
19 | /// The typography style for the item title.
20 | public var textStyle: Font.TextStyle
| `- error: 'Font' is only available in macOS 10.15 or newer
21 |
22 | /// Side length of the square icon.
/Users/admin/builder/spi-builder-workspace/Sources/BarKit/BarConfiguration/Item/ItemConfiguration.swift:35:28: error: 'EdgeInsets' is only available in macOS 10.15 or newer
9 |
10 | /// Defines the visual appearance of a single bar item in isolation.
11 | public struct ItemConfiguration: Equatable {
| `- note: add '@available' attribute to enclosing struct
12 |
13 | /// The color applied to the icon and title of a selected item.
:
33 |
34 | /// Padding applied inside the item view in regular height mode.
35 | public var edgeInsets: EdgeInsets
| `- error: 'EdgeInsets' is only available in macOS 10.15 or newer
36 |
37 | /// Padding applied inside the item view in compact height mode (e.g., landscape).
/Users/admin/builder/spi-builder-workspace/Sources/BarKit/BarConfiguration/Item/ItemConfiguration.swift:38:35: error: 'EdgeInsets' is only available in macOS 10.15 or newer
9 |
10 | /// Defines the visual appearance of a single bar item in isolation.
11 | public struct ItemConfiguration: Equatable {
| `- note: add '@available' attribute to enclosing struct
12 |
13 | /// The color applied to the icon and title of a selected item.
:
36 |
37 | /// Padding applied inside the item view in compact height mode (e.g., landscape).
38 | public var edgeInsetsCompact: EdgeInsets
| `- error: 'EdgeInsets' is only available in macOS 10.15 or newer
39 |
40 | /// Creates a new item configuration.
/Users/admin/builder/spi-builder-workspace/Sources/BarKit/BarConfiguration/Item/ItemConfiguration.swift:53:24: error: 'Color' is only available in macOS 10.15 or newer
9 |
10 | /// Defines the visual appearance of a single bar item in isolation.
11 | public struct ItemConfiguration: Equatable {
| `- note: add '@available' attribute to enclosing struct
12 |
13 | /// The color applied to the icon and title of a selected item.
:
50 | /// - edgeInsets: Padding applied inside the item view in regular height mode.
51 | /// - edgeInsetsCompact: Padding applied inside the item view in compact height mode (e.g., landscape).
52 | public init(
| `- note: add '@available' attribute to enclosing initializer
53 | selectedColor: Color = .primary,
| `- error: 'Color' is only available in macOS 10.15 or newer
54 | unselectedColor: Color = .secondary,
55 | textStyle: Font.TextStyle = .caption2,
/Users/admin/builder/spi-builder-workspace/Sources/BarKit/BarConfiguration/Item/ItemConfiguration.swift:54:26: error: 'Color' is only available in macOS 10.15 or newer
9 |
10 | /// Defines the visual appearance of a single bar item in isolation.
11 | public struct ItemConfiguration: Equatable {
| `- note: add '@available' attribute to enclosing struct
12 |
13 | /// The color applied to the icon and title of a selected item.
:
50 | /// - edgeInsets: Padding applied inside the item view in regular height mode.
51 | /// - edgeInsetsCompact: Padding applied inside the item view in compact height mode (e.g., landscape).
52 | public init(
| `- note: add '@available' attribute to enclosing initializer
53 | selectedColor: Color = .primary,
54 | unselectedColor: Color = .secondary,
| `- error: 'Color' is only available in macOS 10.15 or newer
55 | textStyle: Font.TextStyle = .caption2,
56 | iconSideLength: CGFloat = 24,
/Users/admin/builder/spi-builder-workspace/Sources/BarKit/BarConfiguration/Item/ItemConfiguration.swift:55:20: error: 'Font' is only available in macOS 10.15 or newer
9 |
10 | /// Defines the visual appearance of a single bar item in isolation.
11 | public struct ItemConfiguration: Equatable {
| `- note: add '@available' attribute to enclosing struct
12 |
13 | /// The color applied to the icon and title of a selected item.
:
50 | /// - edgeInsets: Padding applied inside the item view in regular height mode.
51 | /// - edgeInsetsCompact: Padding applied inside the item view in compact height mode (e.g., landscape).
52 | public init(
| `- note: add '@available' attribute to enclosing initializer
53 | selectedColor: Color = .primary,
54 | unselectedColor: Color = .secondary,
55 | textStyle: Font.TextStyle = .caption2,
| `- error: 'Font' is only available in macOS 10.15 or newer
56 | iconSideLength: CGFloat = 24,
57 | selectedIconScale: CGFloat = 1.1,
/Users/admin/builder/spi-builder-workspace/Sources/BarKit/BarConfiguration/Item/ItemConfiguration.swift:60:21: error: 'EdgeInsets' is only available in macOS 10.15 or newer
9 |
10 | /// Defines the visual appearance of a single bar item in isolation.
11 | public struct ItemConfiguration: Equatable {
| `- note: add '@available' attribute to enclosing struct
12 |
13 | /// The color applied to the icon and title of a selected item.
:
50 | /// - edgeInsets: Padding applied inside the item view in regular height mode.
51 | /// - edgeInsetsCompact: Padding applied inside the item view in compact height mode (e.g., landscape).
52 | public init(
| `- note: add '@available' attribute to enclosing initializer
53 | selectedColor: Color = .primary,
54 | unselectedColor: Color = .secondary,
:
58 | compactIconScale: CGFloat = 0.8,
59 | iconTitleSpacing: CGFloat = 4,
60 | edgeInsets: EdgeInsets = .init(top: 8, leading: 8, bottom: 8, trailing: 8),
| `- error: 'EdgeInsets' is only available in macOS 10.15 or newer
61 | edgeInsetsCompact: EdgeInsets = .init(top: 4, leading: 4, bottom: 4, trailing: 4)
62 | ) {
/Users/admin/builder/spi-builder-workspace/Sources/BarKit/BarConfiguration/Item/ItemConfiguration.swift:61:28: error: 'EdgeInsets' is only available in macOS 10.15 or newer
9 |
10 | /// Defines the visual appearance of a single bar item in isolation.
11 | public struct ItemConfiguration: Equatable {
| `- note: add '@available' attribute to enclosing struct
12 |
13 | /// The color applied to the icon and title of a selected item.
:
50 | /// - edgeInsets: Padding applied inside the item view in regular height mode.
51 | /// - edgeInsetsCompact: Padding applied inside the item view in compact height mode (e.g., landscape).
52 | public init(
| `- note: add '@available' attribute to enclosing initializer
53 | selectedColor: Color = .primary,
54 | unselectedColor: Color = .secondary,
:
59 | iconTitleSpacing: CGFloat = 4,
60 | edgeInsets: EdgeInsets = .init(top: 8, leading: 8, bottom: 8, trailing: 8),
61 | edgeInsetsCompact: EdgeInsets = .init(top: 4, leading: 4, bottom: 4, trailing: 4)
| `- error: 'EdgeInsets' is only available in macOS 10.15 or newer
62 | ) {
63 | self.selectedColor = selectedColor
/Users/admin/builder/spi-builder-workspace/Sources/BarKit/BarConfiguration/Item/ItemConfiguration.swift:53:33: error: 'primary' is only available in macOS 10.15 or newer
9 |
10 | /// Defines the visual appearance of a single bar item in isolation.
11 | public struct ItemConfiguration: Equatable {
| `- note: add '@available' attribute to enclosing struct
12 |
13 | /// The color applied to the icon and title of a selected item.
:
50 | /// - edgeInsets: Padding applied inside the item view in regular height mode.
51 | /// - edgeInsetsCompact: Padding applied inside the item view in compact height mode (e.g., landscape).
52 | public init(
| `- note: add '@available' attribute to enclosing initializer
53 | selectedColor: Color = .primary,
| `- error: 'primary' is only available in macOS 10.15 or newer
54 | unselectedColor: Color = .secondary,
55 | textStyle: Font.TextStyle = .caption2,
/Users/admin/builder/spi-builder-workspace/Sources/BarKit/BarConfiguration/Item/ItemConfiguration.swift:54:35: error: 'secondary' is only available in macOS 10.15 or newer
9 |
10 | /// Defines the visual appearance of a single bar item in isolation.
11 | public struct ItemConfiguration: Equatable {
| `- note: add '@available' attribute to enclosing struct
12 |
13 | /// The color applied to the icon and title of a selected item.
:
50 | /// - edgeInsets: Padding applied inside the item view in regular height mode.
51 | /// - edgeInsetsCompact: Padding applied inside the item view in compact height mode (e.g., landscape).
52 | public init(
| `- note: add '@available' attribute to enclosing initializer
53 | selectedColor: Color = .primary,
54 | unselectedColor: Color = .secondary,
| `- error: 'secondary' is only available in macOS 10.15 or newer
55 | textStyle: Font.TextStyle = .caption2,
56 | iconSideLength: CGFloat = 24,
/Users/admin/builder/spi-builder-workspace/Sources/BarKit/BarConfiguration/Item/ItemConfiguration.swift:55:38: error: 'caption2' is only available in macOS 11.0 or newer
9 |
10 | /// Defines the visual appearance of a single bar item in isolation.
11 | public struct ItemConfiguration: Equatable {
| `- note: add '@available' attribute to enclosing struct
12 |
13 | /// The color applied to the icon and title of a selected item.
:
50 | /// - edgeInsets: Padding applied inside the item view in regular height mode.
51 | /// - edgeInsetsCompact: Padding applied inside the item view in compact height mode (e.g., landscape).
52 | public init(
| `- note: add '@available' attribute to enclosing initializer
53 | selectedColor: Color = .primary,
54 | unselectedColor: Color = .secondary,
55 | textStyle: Font.TextStyle = .caption2,
| `- error: 'caption2' is only available in macOS 11.0 or newer
56 | iconSideLength: CGFloat = 24,
57 | selectedIconScale: CGFloat = 1.1,
/Users/admin/builder/spi-builder-workspace/Sources/BarKit/BarConfiguration/Item/ItemConfiguration.swift:80:26: error: cannot find 'UIFont' in scope
78 | let scale = isVerticalCompact ? compactIconScale : 1.0
79 | let iconHeight = iconSideLength * scale
80 | let fontHeight = UIFont.preferredFont(forTextStyle: textStyle.uiTextStyle).lineHeight
| `- error: cannot find 'UIFont' in scope
81 |
82 | return isVerticalCompact
/Users/admin/builder/spi-builder-workspace/Sources/BarKit/Extensions/Font+UITextStyle.swift:12:22: error: cannot find type 'UIFont' in scope
10 | extension Font.TextStyle {
11 | /// UIKit text style for calculating tab title height.
12 | var uiTextStyle: UIFont.TextStyle {
| `- error: cannot find type 'UIFont' in scope
13 | switch self {
14 | case .largeTitle, .title: return .title1
/Users/admin/builder/spi-builder-workspace/Sources/BarKit/BarConfiguration/SelectionIndicator/BorderConfiguration.swift:13:23: error: 'Color' is only available in macOS 10.15 or newer
9 |
10 | /// Defines the optional border drawn around the selection indicator.
11 | public struct BorderConfiguration: Equatable, Sendable {
| `- note: add '@available' attribute to enclosing struct
12 | /// The color of the border.
13 | public var color: Color
| `- error: 'Color' is only available in macOS 10.15 or newer
14 | /// The thickness of the border in points.
15 | public var lineWidth: CGFloat
/Users/admin/builder/spi-builder-workspace/Sources/BarKit/BarConfiguration/SelectionIndicator/BorderConfiguration.swift:17:24: error: 'Color' is only available in macOS 10.15 or newer
9 |
10 | /// Defines the optional border drawn around the selection indicator.
11 | public struct BorderConfiguration: Equatable, Sendable {
| `- note: add '@available' attribute to enclosing struct
12 | /// The color of the border.
13 | public var color: Color
:
15 | public var lineWidth: CGFloat
16 |
17 | public init(color: Color = .white.opacity(0.3), lineWidth: CGFloat = 1) {
| | `- error: 'Color' is only available in macOS 10.15 or newer
| `- note: add '@available' attribute to enclosing initializer
18 | self.color = color
19 | self.lineWidth = lineWidth
/Users/admin/builder/spi-builder-workspace/Sources/BarKit/BarConfiguration/SelectionIndicator/BorderConfiguration.swift:17:33: error: 'white' is only available in macOS 10.15 or newer
9 |
10 | /// Defines the optional border drawn around the selection indicator.
11 | public struct BorderConfiguration: Equatable, Sendable {
| `- note: add '@available' attribute to enclosing struct
12 | /// The color of the border.
13 | public var color: Color
:
15 | public var lineWidth: CGFloat
16 |
17 | public init(color: Color = .white.opacity(0.3), lineWidth: CGFloat = 1) {
| | `- error: 'white' is only available in macOS 10.15 or newer
| `- note: add '@available' attribute to enclosing initializer
18 | self.color = color
19 | self.lineWidth = lineWidth
/Users/admin/builder/spi-builder-workspace/Sources/BarKit/BarConfiguration/SelectionIndicator/BorderConfiguration.swift:17:39: error: 'opacity' is only available in macOS 10.15 or newer
9 |
10 | /// Defines the optional border drawn around the selection indicator.
11 | public struct BorderConfiguration: Equatable, Sendable {
| `- note: add '@available' attribute to enclosing struct
12 | /// The color of the border.
13 | public var color: Color
:
15 | public var lineWidth: CGFloat
16 |
17 | public init(color: Color = .white.opacity(0.3), lineWidth: CGFloat = 1) {
| | `- error: 'opacity' is only available in macOS 10.15 or newer
| `- note: add '@available' attribute to enclosing initializer
18 | self.color = color
19 | self.lineWidth = lineWidth
[46/54] Compiling BarKit ItemContentAxis.swift
/Users/admin/builder/spi-builder-workspace/Sources/BarKit/BarConfiguration/Item/ItemConfiguration.swift:14:31: error: 'Color' is only available in macOS 10.15 or newer
9 |
10 | /// Defines the visual appearance of a single bar item in isolation.
11 | public struct ItemConfiguration: Equatable {
| `- note: add '@available' attribute to enclosing struct
12 |
13 | /// The color applied to the icon and title of a selected item.
14 | public var selectedColor: Color
| `- error: 'Color' is only available in macOS 10.15 or newer
15 |
16 | /// The color applied to the icon and title of an unselected item.
/Users/admin/builder/spi-builder-workspace/Sources/BarKit/BarConfiguration/Item/ItemConfiguration.swift:17:33: error: 'Color' is only available in macOS 10.15 or newer
9 |
10 | /// Defines the visual appearance of a single bar item in isolation.
11 | public struct ItemConfiguration: Equatable {
| `- note: add '@available' attribute to enclosing struct
12 |
13 | /// The color applied to the icon and title of a selected item.
:
15 |
16 | /// The color applied to the icon and title of an unselected item.
17 | public var unselectedColor: Color
| `- error: 'Color' is only available in macOS 10.15 or newer
18 |
19 | /// The typography style for the item title.
/Users/admin/builder/spi-builder-workspace/Sources/BarKit/BarConfiguration/Item/ItemConfiguration.swift:20:27: error: 'Font' is only available in macOS 10.15 or newer
9 |
10 | /// Defines the visual appearance of a single bar item in isolation.
11 | public struct ItemConfiguration: Equatable {
| `- note: add '@available' attribute to enclosing struct
12 |
13 | /// The color applied to the icon and title of a selected item.
:
18 |
19 | /// The typography style for the item title.
20 | public var textStyle: Font.TextStyle
| `- error: 'Font' is only available in macOS 10.15 or newer
21 |
22 | /// Side length of the square icon.
/Users/admin/builder/spi-builder-workspace/Sources/BarKit/BarConfiguration/Item/ItemConfiguration.swift:35:28: error: 'EdgeInsets' is only available in macOS 10.15 or newer
9 |
10 | /// Defines the visual appearance of a single bar item in isolation.
11 | public struct ItemConfiguration: Equatable {
| `- note: add '@available' attribute to enclosing struct
12 |
13 | /// The color applied to the icon and title of a selected item.
:
33 |
34 | /// Padding applied inside the item view in regular height mode.
35 | public var edgeInsets: EdgeInsets
| `- error: 'EdgeInsets' is only available in macOS 10.15 or newer
36 |
37 | /// Padding applied inside the item view in compact height mode (e.g., landscape).
/Users/admin/builder/spi-builder-workspace/Sources/BarKit/BarConfiguration/Item/ItemConfiguration.swift:38:35: error: 'EdgeInsets' is only available in macOS 10.15 or newer
9 |
10 | /// Defines the visual appearance of a single bar item in isolation.
11 | public struct ItemConfiguration: Equatable {
| `- note: add '@available' attribute to enclosing struct
12 |
13 | /// The color applied to the icon and title of a selected item.
:
36 |
37 | /// Padding applied inside the item view in compact height mode (e.g., landscape).
38 | public var edgeInsetsCompact: EdgeInsets
| `- error: 'EdgeInsets' is only available in macOS 10.15 or newer
39 |
40 | /// Creates a new item configuration.
/Users/admin/builder/spi-builder-workspace/Sources/BarKit/BarConfiguration/Item/ItemConfiguration.swift:53:24: error: 'Color' is only available in macOS 10.15 or newer
9 |
10 | /// Defines the visual appearance of a single bar item in isolation.
11 | public struct ItemConfiguration: Equatable {
| `- note: add '@available' attribute to enclosing struct
12 |
13 | /// The color applied to the icon and title of a selected item.
:
50 | /// - edgeInsets: Padding applied inside the item view in regular height mode.
51 | /// - edgeInsetsCompact: Padding applied inside the item view in compact height mode (e.g., landscape).
52 | public init(
| `- note: add '@available' attribute to enclosing initializer
53 | selectedColor: Color = .primary,
| `- error: 'Color' is only available in macOS 10.15 or newer
54 | unselectedColor: Color = .secondary,
55 | textStyle: Font.TextStyle = .caption2,
/Users/admin/builder/spi-builder-workspace/Sources/BarKit/BarConfiguration/Item/ItemConfiguration.swift:54:26: error: 'Color' is only available in macOS 10.15 or newer
9 |
10 | /// Defines the visual appearance of a single bar item in isolation.
11 | public struct ItemConfiguration: Equatable {
| `- note: add '@available' attribute to enclosing struct
12 |
13 | /// The color applied to the icon and title of a selected item.
:
50 | /// - edgeInsets: Padding applied inside the item view in regular height mode.
51 | /// - edgeInsetsCompact: Padding applied inside the item view in compact height mode (e.g., landscape).
52 | public init(
| `- note: add '@available' attribute to enclosing initializer
53 | selectedColor: Color = .primary,
54 | unselectedColor: Color = .secondary,
| `- error: 'Color' is only available in macOS 10.15 or newer
55 | textStyle: Font.TextStyle = .caption2,
56 | iconSideLength: CGFloat = 24,
/Users/admin/builder/spi-builder-workspace/Sources/BarKit/BarConfiguration/Item/ItemConfiguration.swift:55:20: error: 'Font' is only available in macOS 10.15 or newer
9 |
10 | /// Defines the visual appearance of a single bar item in isolation.
11 | public struct ItemConfiguration: Equatable {
| `- note: add '@available' attribute to enclosing struct
12 |
13 | /// The color applied to the icon and title of a selected item.
:
50 | /// - edgeInsets: Padding applied inside the item view in regular height mode.
51 | /// - edgeInsetsCompact: Padding applied inside the item view in compact height mode (e.g., landscape).
52 | public init(
| `- note: add '@available' attribute to enclosing initializer
53 | selectedColor: Color = .primary,
54 | unselectedColor: Color = .secondary,
55 | textStyle: Font.TextStyle = .caption2,
| `- error: 'Font' is only available in macOS 10.15 or newer
56 | iconSideLength: CGFloat = 24,
57 | selectedIconScale: CGFloat = 1.1,
/Users/admin/builder/spi-builder-workspace/Sources/BarKit/BarConfiguration/Item/ItemConfiguration.swift:60:21: error: 'EdgeInsets' is only available in macOS 10.15 or newer
9 |
10 | /// Defines the visual appearance of a single bar item in isolation.
11 | public struct ItemConfiguration: Equatable {
| `- note: add '@available' attribute to enclosing struct
12 |
13 | /// The color applied to the icon and title of a selected item.
:
50 | /// - edgeInsets: Padding applied inside the item view in regular height mode.
51 | /// - edgeInsetsCompact: Padding applied inside the item view in compact height mode (e.g., landscape).
52 | public init(
| `- note: add '@available' attribute to enclosing initializer
53 | selectedColor: Color = .primary,
54 | unselectedColor: Color = .secondary,
:
58 | compactIconScale: CGFloat = 0.8,
59 | iconTitleSpacing: CGFloat = 4,
60 | edgeInsets: EdgeInsets = .init(top: 8, leading: 8, bottom: 8, trailing: 8),
| `- error: 'EdgeInsets' is only available in macOS 10.15 or newer
61 | edgeInsetsCompact: EdgeInsets = .init(top: 4, leading: 4, bottom: 4, trailing: 4)
62 | ) {
/Users/admin/builder/spi-builder-workspace/Sources/BarKit/BarConfiguration/Item/ItemConfiguration.swift:61:28: error: 'EdgeInsets' is only available in macOS 10.15 or newer
9 |
10 | /// Defines the visual appearance of a single bar item in isolation.
11 | public struct ItemConfiguration: Equatable {
| `- note: add '@available' attribute to enclosing struct
12 |
13 | /// The color applied to the icon and title of a selected item.
:
50 | /// - edgeInsets: Padding applied inside the item view in regular height mode.
51 | /// - edgeInsetsCompact: Padding applied inside the item view in compact height mode (e.g., landscape).
52 | public init(
| `- note: add '@available' attribute to enclosing initializer
53 | selectedColor: Color = .primary,
54 | unselectedColor: Color = .secondary,
:
59 | iconTitleSpacing: CGFloat = 4,
60 | edgeInsets: EdgeInsets = .init(top: 8, leading: 8, bottom: 8, trailing: 8),
61 | edgeInsetsCompact: EdgeInsets = .init(top: 4, leading: 4, bottom: 4, trailing: 4)
| `- error: 'EdgeInsets' is only available in macOS 10.15 or newer
62 | ) {
63 | self.selectedColor = selectedColor
/Users/admin/builder/spi-builder-workspace/Sources/BarKit/BarConfiguration/Item/ItemConfiguration.swift:53:33: error: 'primary' is only available in macOS 10.15 or newer
9 |
10 | /// Defines the visual appearance of a single bar item in isolation.
11 | public struct ItemConfiguration: Equatable {
| `- note: add '@available' attribute to enclosing struct
12 |
13 | /// The color applied to the icon and title of a selected item.
:
50 | /// - edgeInsets: Padding applied inside the item view in regular height mode.
51 | /// - edgeInsetsCompact: Padding applied inside the item view in compact height mode (e.g., landscape).
52 | public init(
| `- note: add '@available' attribute to enclosing initializer
53 | selectedColor: Color = .primary,
| `- error: 'primary' is only available in macOS 10.15 or newer
54 | unselectedColor: Color = .secondary,
55 | textStyle: Font.TextStyle = .caption2,
/Users/admin/builder/spi-builder-workspace/Sources/BarKit/BarConfiguration/Item/ItemConfiguration.swift:54:35: error: 'secondary' is only available in macOS 10.15 or newer
9 |
10 | /// Defines the visual appearance of a single bar item in isolation.
11 | public struct ItemConfiguration: Equatable {
| `- note: add '@available' attribute to enclosing struct
12 |
13 | /// The color applied to the icon and title of a selected item.
:
50 | /// - edgeInsets: Padding applied inside the item view in regular height mode.
51 | /// - edgeInsetsCompact: Padding applied inside the item view in compact height mode (e.g., landscape).
52 | public init(
| `- note: add '@available' attribute to enclosing initializer
53 | selectedColor: Color = .primary,
54 | unselectedColor: Color = .secondary,
| `- error: 'secondary' is only available in macOS 10.15 or newer
55 | textStyle: Font.TextStyle = .caption2,
56 | iconSideLength: CGFloat = 24,
/Users/admin/builder/spi-builder-workspace/Sources/BarKit/BarConfiguration/Item/ItemConfiguration.swift:55:38: error: 'caption2' is only available in macOS 11.0 or newer
9 |
10 | /// Defines the visual appearance of a single bar item in isolation.
11 | public struct ItemConfiguration: Equatable {
| `- note: add '@available' attribute to enclosing struct
12 |
13 | /// The color applied to the icon and title of a selected item.
:
50 | /// - edgeInsets: Padding applied inside the item view in regular height mode.
51 | /// - edgeInsetsCompact: Padding applied inside the item view in compact height mode (e.g., landscape).
52 | public init(
| `- note: add '@available' attribute to enclosing initializer
53 | selectedColor: Color = .primary,
54 | unselectedColor: Color = .secondary,
55 | textStyle: Font.TextStyle = .caption2,
| `- error: 'caption2' is only available in macOS 11.0 or newer
56 | iconSideLength: CGFloat = 24,
57 | selectedIconScale: CGFloat = 1.1,
/Users/admin/builder/spi-builder-workspace/Sources/BarKit/BarConfiguration/Item/ItemConfiguration.swift:80:26: error: cannot find 'UIFont' in scope
78 | let scale = isVerticalCompact ? compactIconScale : 1.0
79 | let iconHeight = iconSideLength * scale
80 | let fontHeight = UIFont.preferredFont(forTextStyle: textStyle.uiTextStyle).lineHeight
| `- error: cannot find 'UIFont' in scope
81 |
82 | return isVerticalCompact
/Users/admin/builder/spi-builder-workspace/Sources/BarKit/Extensions/Font+UITextStyle.swift:12:22: error: cannot find type 'UIFont' in scope
10 | extension Font.TextStyle {
11 | /// UIKit text style for calculating tab title height.
12 | var uiTextStyle: UIFont.TextStyle {
| `- error: cannot find type 'UIFont' in scope
13 | switch self {
14 | case .largeTitle, .title: return .title1
/Users/admin/builder/spi-builder-workspace/Sources/BarKit/BarConfiguration/SelectionIndicator/BorderConfiguration.swift:13:23: error: 'Color' is only available in macOS 10.15 or newer
9 |
10 | /// Defines the optional border drawn around the selection indicator.
11 | public struct BorderConfiguration: Equatable, Sendable {
| `- note: add '@available' attribute to enclosing struct
12 | /// The color of the border.
13 | public var color: Color
| `- error: 'Color' is only available in macOS 10.15 or newer
14 | /// The thickness of the border in points.
15 | public var lineWidth: CGFloat
/Users/admin/builder/spi-builder-workspace/Sources/BarKit/BarConfiguration/SelectionIndicator/BorderConfiguration.swift:17:24: error: 'Color' is only available in macOS 10.15 or newer
9 |
10 | /// Defines the optional border drawn around the selection indicator.
11 | public struct BorderConfiguration: Equatable, Sendable {
| `- note: add '@available' attribute to enclosing struct
12 | /// The color of the border.
13 | public var color: Color
:
15 | public var lineWidth: CGFloat
16 |
17 | public init(color: Color = .white.opacity(0.3), lineWidth: CGFloat = 1) {
| | `- error: 'Color' is only available in macOS 10.15 or newer
| `- note: add '@available' attribute to enclosing initializer
18 | self.color = color
19 | self.lineWidth = lineWidth
/Users/admin/builder/spi-builder-workspace/Sources/BarKit/BarConfiguration/SelectionIndicator/BorderConfiguration.swift:17:33: error: 'white' is only available in macOS 10.15 or newer
9 |
10 | /// Defines the optional border drawn around the selection indicator.
11 | public struct BorderConfiguration: Equatable, Sendable {
| `- note: add '@available' attribute to enclosing struct
12 | /// The color of the border.
13 | public var color: Color
:
15 | public var lineWidth: CGFloat
16 |
17 | public init(color: Color = .white.opacity(0.3), lineWidth: CGFloat = 1) {
| | `- error: 'white' is only available in macOS 10.15 or newer
| `- note: add '@available' attribute to enclosing initializer
18 | self.color = color
19 | self.lineWidth = lineWidth
/Users/admin/builder/spi-builder-workspace/Sources/BarKit/BarConfiguration/SelectionIndicator/BorderConfiguration.swift:17:39: error: 'opacity' is only available in macOS 10.15 or newer
9 |
10 | /// Defines the optional border drawn around the selection indicator.
11 | public struct BorderConfiguration: Equatable, Sendable {
| `- note: add '@available' attribute to enclosing struct
12 | /// The color of the border.
13 | public var color: Color
:
15 | public var lineWidth: CGFloat
16 |
17 | public init(color: Color = .white.opacity(0.3), lineWidth: CGFloat = 1) {
| | `- error: 'opacity' is only available in macOS 10.15 or newer
| `- note: add '@available' attribute to enclosing initializer
18 | self.color = color
19 | self.lineWidth = lineWidth
[47/54] Compiling BarKit BorderConfiguration.swift
/Users/admin/builder/spi-builder-workspace/Sources/BarKit/BarConfiguration/Item/ItemConfiguration.swift:14:31: error: 'Color' is only available in macOS 10.15 or newer
9 |
10 | /// Defines the visual appearance of a single bar item in isolation.
11 | public struct ItemConfiguration: Equatable {
| `- note: add '@available' attribute to enclosing struct
12 |
13 | /// The color applied to the icon and title of a selected item.
14 | public var selectedColor: Color
| `- error: 'Color' is only available in macOS 10.15 or newer
15 |
16 | /// The color applied to the icon and title of an unselected item.
/Users/admin/builder/spi-builder-workspace/Sources/BarKit/BarConfiguration/Item/ItemConfiguration.swift:17:33: error: 'Color' is only available in macOS 10.15 or newer
9 |
10 | /// Defines the visual appearance of a single bar item in isolation.
11 | public struct ItemConfiguration: Equatable {
| `- note: add '@available' attribute to enclosing struct
12 |
13 | /// The color applied to the icon and title of a selected item.
:
15 |
16 | /// The color applied to the icon and title of an unselected item.
17 | public var unselectedColor: Color
| `- error: 'Color' is only available in macOS 10.15 or newer
18 |
19 | /// The typography style for the item title.
/Users/admin/builder/spi-builder-workspace/Sources/BarKit/BarConfiguration/Item/ItemConfiguration.swift:20:27: error: 'Font' is only available in macOS 10.15 or newer
9 |
10 | /// Defines the visual appearance of a single bar item in isolation.
11 | public struct ItemConfiguration: Equatable {
| `- note: add '@available' attribute to enclosing struct
12 |
13 | /// The color applied to the icon and title of a selected item.
:
18 |
19 | /// The typography style for the item title.
20 | public var textStyle: Font.TextStyle
| `- error: 'Font' is only available in macOS 10.15 or newer
21 |
22 | /// Side length of the square icon.
/Users/admin/builder/spi-builder-workspace/Sources/BarKit/BarConfiguration/Item/ItemConfiguration.swift:35:28: error: 'EdgeInsets' is only available in macOS 10.15 or newer
9 |
10 | /// Defines the visual appearance of a single bar item in isolation.
11 | public struct ItemConfiguration: Equatable {
| `- note: add '@available' attribute to enclosing struct
12 |
13 | /// The color applied to the icon and title of a selected item.
:
33 |
34 | /// Padding applied inside the item view in regular height mode.
35 | public var edgeInsets: EdgeInsets
| `- error: 'EdgeInsets' is only available in macOS 10.15 or newer
36 |
37 | /// Padding applied inside the item view in compact height mode (e.g., landscape).
/Users/admin/builder/spi-builder-workspace/Sources/BarKit/BarConfiguration/Item/ItemConfiguration.swift:38:35: error: 'EdgeInsets' is only available in macOS 10.15 or newer
9 |
10 | /// Defines the visual appearance of a single bar item in isolation.
11 | public struct ItemConfiguration: Equatable {
| `- note: add '@available' attribute to enclosing struct
12 |
13 | /// The color applied to the icon and title of a selected item.
:
36 |
37 | /// Padding applied inside the item view in compact height mode (e.g., landscape).
38 | public var edgeInsetsCompact: EdgeInsets
| `- error: 'EdgeInsets' is only available in macOS 10.15 or newer
39 |
40 | /// Creates a new item configuration.
/Users/admin/builder/spi-builder-workspace/Sources/BarKit/BarConfiguration/Item/ItemConfiguration.swift:53:24: error: 'Color' is only available in macOS 10.15 or newer
9 |
10 | /// Defines the visual appearance of a single bar item in isolation.
11 | public struct ItemConfiguration: Equatable {
| `- note: add '@available' attribute to enclosing struct
12 |
13 | /// The color applied to the icon and title of a selected item.
:
50 | /// - edgeInsets: Padding applied inside the item view in regular height mode.
51 | /// - edgeInsetsCompact: Padding applied inside the item view in compact height mode (e.g., landscape).
52 | public init(
| `- note: add '@available' attribute to enclosing initializer
53 | selectedColor: Color = .primary,
| `- error: 'Color' is only available in macOS 10.15 or newer
54 | unselectedColor: Color = .secondary,
55 | textStyle: Font.TextStyle = .caption2,
/Users/admin/builder/spi-builder-workspace/Sources/BarKit/BarConfiguration/Item/ItemConfiguration.swift:54:26: error: 'Color' is only available in macOS 10.15 or newer
9 |
10 | /// Defines the visual appearance of a single bar item in isolation.
11 | public struct ItemConfiguration: Equatable {
| `- note: add '@available' attribute to enclosing struct
12 |
13 | /// The color applied to the icon and title of a selected item.
:
50 | /// - edgeInsets: Padding applied inside the item view in regular height mode.
51 | /// - edgeInsetsCompact: Padding applied inside the item view in compact height mode (e.g., landscape).
52 | public init(
| `- note: add '@available' attribute to enclosing initializer
53 | selectedColor: Color = .primary,
54 | unselectedColor: Color = .secondary,
| `- error: 'Color' is only available in macOS 10.15 or newer
55 | textStyle: Font.TextStyle = .caption2,
56 | iconSideLength: CGFloat = 24,
/Users/admin/builder/spi-builder-workspace/Sources/BarKit/BarConfiguration/Item/ItemConfiguration.swift:55:20: error: 'Font' is only available in macOS 10.15 or newer
9 |
10 | /// Defines the visual appearance of a single bar item in isolation.
11 | public struct ItemConfiguration: Equatable {
| `- note: add '@available' attribute to enclosing struct
12 |
13 | /// The color applied to the icon and title of a selected item.
:
50 | /// - edgeInsets: Padding applied inside the item view in regular height mode.
51 | /// - edgeInsetsCompact: Padding applied inside the item view in compact height mode (e.g., landscape).
52 | public init(
| `- note: add '@available' attribute to enclosing initializer
53 | selectedColor: Color = .primary,
54 | unselectedColor: Color = .secondary,
55 | textStyle: Font.TextStyle = .caption2,
| `- error: 'Font' is only available in macOS 10.15 or newer
56 | iconSideLength: CGFloat = 24,
57 | selectedIconScale: CGFloat = 1.1,
/Users/admin/builder/spi-builder-workspace/Sources/BarKit/BarConfiguration/Item/ItemConfiguration.swift:60:21: error: 'EdgeInsets' is only available in macOS 10.15 or newer
9 |
10 | /// Defines the visual appearance of a single bar item in isolation.
11 | public struct ItemConfiguration: Equatable {
| `- note: add '@available' attribute to enclosing struct
12 |
13 | /// The color applied to the icon and title of a selected item.
:
50 | /// - edgeInsets: Padding applied inside the item view in regular height mode.
51 | /// - edgeInsetsCompact: Padding applied inside the item view in compact height mode (e.g., landscape).
52 | public init(
| `- note: add '@available' attribute to enclosing initializer
53 | selectedColor: Color = .primary,
54 | unselectedColor: Color = .secondary,
:
58 | compactIconScale: CGFloat = 0.8,
59 | iconTitleSpacing: CGFloat = 4,
60 | edgeInsets: EdgeInsets = .init(top: 8, leading: 8, bottom: 8, trailing: 8),
| `- error: 'EdgeInsets' is only available in macOS 10.15 or newer
61 | edgeInsetsCompact: EdgeInsets = .init(top: 4, leading: 4, bottom: 4, trailing: 4)
62 | ) {
/Users/admin/builder/spi-builder-workspace/Sources/BarKit/BarConfiguration/Item/ItemConfiguration.swift:61:28: error: 'EdgeInsets' is only available in macOS 10.15 or newer
9 |
10 | /// Defines the visual appearance of a single bar item in isolation.
11 | public struct ItemConfiguration: Equatable {
| `- note: add '@available' attribute to enclosing struct
12 |
13 | /// The color applied to the icon and title of a selected item.
:
50 | /// - edgeInsets: Padding applied inside the item view in regular height mode.
51 | /// - edgeInsetsCompact: Padding applied inside the item view in compact height mode (e.g., landscape).
52 | public init(
| `- note: add '@available' attribute to enclosing initializer
53 | selectedColor: Color = .primary,
54 | unselectedColor: Color = .secondary,
:
59 | iconTitleSpacing: CGFloat = 4,
60 | edgeInsets: EdgeInsets = .init(top: 8, leading: 8, bottom: 8, trailing: 8),
61 | edgeInsetsCompact: EdgeInsets = .init(top: 4, leading: 4, bottom: 4, trailing: 4)
| `- error: 'EdgeInsets' is only available in macOS 10.15 or newer
62 | ) {
63 | self.selectedColor = selectedColor
/Users/admin/builder/spi-builder-workspace/Sources/BarKit/BarConfiguration/Item/ItemConfiguration.swift:53:33: error: 'primary' is only available in macOS 10.15 or newer
9 |
10 | /// Defines the visual appearance of a single bar item in isolation.
11 | public struct ItemConfiguration: Equatable {
| `- note: add '@available' attribute to enclosing struct
12 |
13 | /// The color applied to the icon and title of a selected item.
:
50 | /// - edgeInsets: Padding applied inside the item view in regular height mode.
51 | /// - edgeInsetsCompact: Padding applied inside the item view in compact height mode (e.g., landscape).
52 | public init(
| `- note: add '@available' attribute to enclosing initializer
53 | selectedColor: Color = .primary,
| `- error: 'primary' is only available in macOS 10.15 or newer
54 | unselectedColor: Color = .secondary,
55 | textStyle: Font.TextStyle = .caption2,
/Users/admin/builder/spi-builder-workspace/Sources/BarKit/BarConfiguration/Item/ItemConfiguration.swift:54:35: error: 'secondary' is only available in macOS 10.15 or newer
9 |
10 | /// Defines the visual appearance of a single bar item in isolation.
11 | public struct ItemConfiguration: Equatable {
| `- note: add '@available' attribute to enclosing struct
12 |
13 | /// The color applied to the icon and title of a selected item.
:
50 | /// - edgeInsets: Padding applied inside the item view in regular height mode.
51 | /// - edgeInsetsCompact: Padding applied inside the item view in compact height mode (e.g., landscape).
52 | public init(
| `- note: add '@available' attribute to enclosing initializer
53 | selectedColor: Color = .primary,
54 | unselectedColor: Color = .secondary,
| `- error: 'secondary' is only available in macOS 10.15 or newer
55 | textStyle: Font.TextStyle = .caption2,
56 | iconSideLength: CGFloat = 24,
/Users/admin/builder/spi-builder-workspace/Sources/BarKit/BarConfiguration/Item/ItemConfiguration.swift:55:38: error: 'caption2' is only available in macOS 11.0 or newer
9 |
10 | /// Defines the visual appearance of a single bar item in isolation.
11 | public struct ItemConfiguration: Equatable {
| `- note: add '@available' attribute to enclosing struct
12 |
13 | /// The color applied to the icon and title of a selected item.
:
50 | /// - edgeInsets: Padding applied inside the item view in regular height mode.
51 | /// - edgeInsetsCompact: Padding applied inside the item view in compact height mode (e.g., landscape).
52 | public init(
| `- note: add '@available' attribute to enclosing initializer
53 | selectedColor: Color = .primary,
54 | unselectedColor: Color = .secondary,
55 | textStyle: Font.TextStyle = .caption2,
| `- error: 'caption2' is only available in macOS 11.0 or newer
56 | iconSideLength: CGFloat = 24,
57 | selectedIconScale: CGFloat = 1.1,
/Users/admin/builder/spi-builder-workspace/Sources/BarKit/BarConfiguration/Item/ItemConfiguration.swift:80:26: error: cannot find 'UIFont' in scope
78 | let scale = isVerticalCompact ? compactIconScale : 1.0
79 | let iconHeight = iconSideLength * scale
80 | let fontHeight = UIFont.preferredFont(forTextStyle: textStyle.uiTextStyle).lineHeight
| `- error: cannot find 'UIFont' in scope
81 |
82 | return isVerticalCompact
/Users/admin/builder/spi-builder-workspace/Sources/BarKit/Extensions/Font+UITextStyle.swift:12:22: error: cannot find type 'UIFont' in scope
10 | extension Font.TextStyle {
11 | /// UIKit text style for calculating tab title height.
12 | var uiTextStyle: UIFont.TextStyle {
| `- error: cannot find type 'UIFont' in scope
13 | switch self {
14 | case .largeTitle, .title: return .title1
/Users/admin/builder/spi-builder-workspace/Sources/BarKit/BarConfiguration/SelectionIndicator/BorderConfiguration.swift:13:23: error: 'Color' is only available in macOS 10.15 or newer
9 |
10 | /// Defines the optional border drawn around the selection indicator.
11 | public struct BorderConfiguration: Equatable, Sendable {
| `- note: add '@available' attribute to enclosing struct
12 | /// The color of the border.
13 | public var color: Color
| `- error: 'Color' is only available in macOS 10.15 or newer
14 | /// The thickness of the border in points.
15 | public var lineWidth: CGFloat
/Users/admin/builder/spi-builder-workspace/Sources/BarKit/BarConfiguration/SelectionIndicator/BorderConfiguration.swift:17:24: error: 'Color' is only available in macOS 10.15 or newer
9 |
10 | /// Defines the optional border drawn around the selection indicator.
11 | public struct BorderConfiguration: Equatable, Sendable {
| `- note: add '@available' attribute to enclosing struct
12 | /// The color of the border.
13 | public var color: Color
:
15 | public var lineWidth: CGFloat
16 |
17 | public init(color: Color = .white.opacity(0.3), lineWidth: CGFloat = 1) {
| | `- error: 'Color' is only available in macOS 10.15 or newer
| `- note: add '@available' attribute to enclosing initializer
18 | self.color = color
19 | self.lineWidth = lineWidth
/Users/admin/builder/spi-builder-workspace/Sources/BarKit/BarConfiguration/SelectionIndicator/BorderConfiguration.swift:17:33: error: 'white' is only available in macOS 10.15 or newer
9 |
10 | /// Defines the optional border drawn around the selection indicator.
11 | public struct BorderConfiguration: Equatable, Sendable {
| `- note: add '@available' attribute to enclosing struct
12 | /// The color of the border.
13 | public var color: Color
:
15 | public var lineWidth: CGFloat
16 |
17 | public init(color: Color = .white.opacity(0.3), lineWidth: CGFloat = 1) {
| | `- error: 'white' is only available in macOS 10.15 or newer
| `- note: add '@available' attribute to enclosing initializer
18 | self.color = color
19 | self.lineWidth = lineWidth
/Users/admin/builder/spi-builder-workspace/Sources/BarKit/BarConfiguration/SelectionIndicator/BorderConfiguration.swift:17:39: error: 'opacity' is only available in macOS 10.15 or newer
9 |
10 | /// Defines the optional border drawn around the selection indicator.
11 | public struct BorderConfiguration: Equatable, Sendable {
| `- note: add '@available' attribute to enclosing struct
12 | /// The color of the border.
13 | public var color: Color
:
15 | public var lineWidth: CGFloat
16 |
17 | public init(color: Color = .white.opacity(0.3), lineWidth: CGFloat = 1) {
| | `- error: 'opacity' is only available in macOS 10.15 or newer
| `- note: add '@available' attribute to enclosing initializer
18 | self.color = color
19 | self.lineWidth = lineWidth
[48/54] Compiling BarKit ChromaticAberrationConfiguration.swift
/Users/admin/builder/spi-builder-workspace/Sources/BarKit/BarConfiguration/Item/ItemConfiguration.swift:14:31: error: 'Color' is only available in macOS 10.15 or newer
9 |
10 | /// Defines the visual appearance of a single bar item in isolation.
11 | public struct ItemConfiguration: Equatable {
| `- note: add '@available' attribute to enclosing struct
12 |
13 | /// The color applied to the icon and title of a selected item.
14 | public var selectedColor: Color
| `- error: 'Color' is only available in macOS 10.15 or newer
15 |
16 | /// The color applied to the icon and title of an unselected item.
/Users/admin/builder/spi-builder-workspace/Sources/BarKit/BarConfiguration/Item/ItemConfiguration.swift:17:33: error: 'Color' is only available in macOS 10.15 or newer
9 |
10 | /// Defines the visual appearance of a single bar item in isolation.
11 | public struct ItemConfiguration: Equatable {
| `- note: add '@available' attribute to enclosing struct
12 |
13 | /// The color applied to the icon and title of a selected item.
:
15 |
16 | /// The color applied to the icon and title of an unselected item.
17 | public var unselectedColor: Color
| `- error: 'Color' is only available in macOS 10.15 or newer
18 |
19 | /// The typography style for the item title.
/Users/admin/builder/spi-builder-workspace/Sources/BarKit/BarConfiguration/Item/ItemConfiguration.swift:20:27: error: 'Font' is only available in macOS 10.15 or newer
9 |
10 | /// Defines the visual appearance of a single bar item in isolation.
11 | public struct ItemConfiguration: Equatable {
| `- note: add '@available' attribute to enclosing struct
12 |
13 | /// The color applied to the icon and title of a selected item.
:
18 |
19 | /// The typography style for the item title.
20 | public var textStyle: Font.TextStyle
| `- error: 'Font' is only available in macOS 10.15 or newer
21 |
22 | /// Side length of the square icon.
/Users/admin/builder/spi-builder-workspace/Sources/BarKit/BarConfiguration/Item/ItemConfiguration.swift:35:28: error: 'EdgeInsets' is only available in macOS 10.15 or newer
9 |
10 | /// Defines the visual appearance of a single bar item in isolation.
11 | public struct ItemConfiguration: Equatable {
| `- note: add '@available' attribute to enclosing struct
12 |
13 | /// The color applied to the icon and title of a selected item.
:
33 |
34 | /// Padding applied inside the item view in regular height mode.
35 | public var edgeInsets: EdgeInsets
| `- error: 'EdgeInsets' is only available in macOS 10.15 or newer
36 |
37 | /// Padding applied inside the item view in compact height mode (e.g., landscape).
/Users/admin/builder/spi-builder-workspace/Sources/BarKit/BarConfiguration/Item/ItemConfiguration.swift:38:35: error: 'EdgeInsets' is only available in macOS 10.15 or newer
9 |
10 | /// Defines the visual appearance of a single bar item in isolation.
11 | public struct ItemConfiguration: Equatable {
| `- note: add '@available' attribute to enclosing struct
12 |
13 | /// The color applied to the icon and title of a selected item.
:
36 |
37 | /// Padding applied inside the item view in compact height mode (e.g., landscape).
38 | public var edgeInsetsCompact: EdgeInsets
| `- error: 'EdgeInsets' is only available in macOS 10.15 or newer
39 |
40 | /// Creates a new item configuration.
/Users/admin/builder/spi-builder-workspace/Sources/BarKit/BarConfiguration/Item/ItemConfiguration.swift:53:24: error: 'Color' is only available in macOS 10.15 or newer
9 |
10 | /// Defines the visual appearance of a single bar item in isolation.
11 | public struct ItemConfiguration: Equatable {
| `- note: add '@available' attribute to enclosing struct
12 |
13 | /// The color applied to the icon and title of a selected item.
:
50 | /// - edgeInsets: Padding applied inside the item view in regular height mode.
51 | /// - edgeInsetsCompact: Padding applied inside the item view in compact height mode (e.g., landscape).
52 | public init(
| `- note: add '@available' attribute to enclosing initializer
53 | selectedColor: Color = .primary,
| `- error: 'Color' is only available in macOS 10.15 or newer
54 | unselectedColor: Color = .secondary,
55 | textStyle: Font.TextStyle = .caption2,
/Users/admin/builder/spi-builder-workspace/Sources/BarKit/BarConfiguration/Item/ItemConfiguration.swift:54:26: error: 'Color' is only available in macOS 10.15 or newer
9 |
10 | /// Defines the visual appearance of a single bar item in isolation.
11 | public struct ItemConfiguration: Equatable {
| `- note: add '@available' attribute to enclosing struct
12 |
13 | /// The color applied to the icon and title of a selected item.
:
50 | /// - edgeInsets: Padding applied inside the item view in regular height mode.
51 | /// - edgeInsetsCompact: Padding applied inside the item view in compact height mode (e.g., landscape).
52 | public init(
| `- note: add '@available' attribute to enclosing initializer
53 | selectedColor: Color = .primary,
54 | unselectedColor: Color = .secondary,
| `- error: 'Color' is only available in macOS 10.15 or newer
55 | textStyle: Font.TextStyle = .caption2,
56 | iconSideLength: CGFloat = 24,
/Users/admin/builder/spi-builder-workspace/Sources/BarKit/BarConfiguration/Item/ItemConfiguration.swift:55:20: error: 'Font' is only available in macOS 10.15 or newer
9 |
10 | /// Defines the visual appearance of a single bar item in isolation.
11 | public struct ItemConfiguration: Equatable {
| `- note: add '@available' attribute to enclosing struct
12 |
13 | /// The color applied to the icon and title of a selected item.
:
50 | /// - edgeInsets: Padding applied inside the item view in regular height mode.
51 | /// - edgeInsetsCompact: Padding applied inside the item view in compact height mode (e.g., landscape).
52 | public init(
| `- note: add '@available' attribute to enclosing initializer
53 | selectedColor: Color = .primary,
54 | unselectedColor: Color = .secondary,
55 | textStyle: Font.TextStyle = .caption2,
| `- error: 'Font' is only available in macOS 10.15 or newer
56 | iconSideLength: CGFloat = 24,
57 | selectedIconScale: CGFloat = 1.1,
/Users/admin/builder/spi-builder-workspace/Sources/BarKit/BarConfiguration/Item/ItemConfiguration.swift:60:21: error: 'EdgeInsets' is only available in macOS 10.15 or newer
9 |
10 | /// Defines the visual appearance of a single bar item in isolation.
11 | public struct ItemConfiguration: Equatable {
| `- note: add '@available' attribute to enclosing struct
12 |
13 | /// The color applied to the icon and title of a selected item.
:
50 | /// - edgeInsets: Padding applied inside the item view in regular height mode.
51 | /// - edgeInsetsCompact: Padding applied inside the item view in compact height mode (e.g., landscape).
52 | public init(
| `- note: add '@available' attribute to enclosing initializer
53 | selectedColor: Color = .primary,
54 | unselectedColor: Color = .secondary,
:
58 | compactIconScale: CGFloat = 0.8,
59 | iconTitleSpacing: CGFloat = 4,
60 | edgeInsets: EdgeInsets = .init(top: 8, leading: 8, bottom: 8, trailing: 8),
| `- error: 'EdgeInsets' is only available in macOS 10.15 or newer
61 | edgeInsetsCompact: EdgeInsets = .init(top: 4, leading: 4, bottom: 4, trailing: 4)
62 | ) {
/Users/admin/builder/spi-builder-workspace/Sources/BarKit/BarConfiguration/Item/ItemConfiguration.swift:61:28: error: 'EdgeInsets' is only available in macOS 10.15 or newer
9 |
10 | /// Defines the visual appearance of a single bar item in isolation.
11 | public struct ItemConfiguration: Equatable {
| `- note: add '@available' attribute to enclosing struct
12 |
13 | /// The color applied to the icon and title of a selected item.
:
50 | /// - edgeInsets: Padding applied inside the item view in regular height mode.
51 | /// - edgeInsetsCompact: Padding applied inside the item view in compact height mode (e.g., landscape).
52 | public init(
| `- note: add '@available' attribute to enclosing initializer
53 | selectedColor: Color = .primary,
54 | unselectedColor: Color = .secondary,
:
59 | iconTitleSpacing: CGFloat = 4,
60 | edgeInsets: EdgeInsets = .init(top: 8, leading: 8, bottom: 8, trailing: 8),
61 | edgeInsetsCompact: EdgeInsets = .init(top: 4, leading: 4, bottom: 4, trailing: 4)
| `- error: 'EdgeInsets' is only available in macOS 10.15 or newer
62 | ) {
63 | self.selectedColor = selectedColor
/Users/admin/builder/spi-builder-workspace/Sources/BarKit/BarConfiguration/Item/ItemConfiguration.swift:53:33: error: 'primary' is only available in macOS 10.15 or newer
9 |
10 | /// Defines the visual appearance of a single bar item in isolation.
11 | public struct ItemConfiguration: Equatable {
| `- note: add '@available' attribute to enclosing struct
12 |
13 | /// The color applied to the icon and title of a selected item.
:
50 | /// - edgeInsets: Padding applied inside the item view in regular height mode.
51 | /// - edgeInsetsCompact: Padding applied inside the item view in compact height mode (e.g., landscape).
52 | public init(
| `- note: add '@available' attribute to enclosing initializer
53 | selectedColor: Color = .primary,
| `- error: 'primary' is only available in macOS 10.15 or newer
54 | unselectedColor: Color = .secondary,
55 | textStyle: Font.TextStyle = .caption2,
/Users/admin/builder/spi-builder-workspace/Sources/BarKit/BarConfiguration/Item/ItemConfiguration.swift:54:35: error: 'secondary' is only available in macOS 10.15 or newer
9 |
10 | /// Defines the visual appearance of a single bar item in isolation.
11 | public struct ItemConfiguration: Equatable {
| `- note: add '@available' attribute to enclosing struct
12 |
13 | /// The color applied to the icon and title of a selected item.
:
50 | /// - edgeInsets: Padding applied inside the item view in regular height mode.
51 | /// - edgeInsetsCompact: Padding applied inside the item view in compact height mode (e.g., landscape).
52 | public init(
| `- note: add '@available' attribute to enclosing initializer
53 | selectedColor: Color = .primary,
54 | unselectedColor: Color = .secondary,
| `- error: 'secondary' is only available in macOS 10.15 or newer
55 | textStyle: Font.TextStyle = .caption2,
56 | iconSideLength: CGFloat = 24,
/Users/admin/builder/spi-builder-workspace/Sources/BarKit/BarConfiguration/Item/ItemConfiguration.swift:55:38: error: 'caption2' is only available in macOS 11.0 or newer
9 |
10 | /// Defines the visual appearance of a single bar item in isolation.
11 | public struct ItemConfiguration: Equatable {
| `- note: add '@available' attribute to enclosing struct
12 |
13 | /// The color applied to the icon and title of a selected item.
:
50 | /// - edgeInsets: Padding applied inside the item view in regular height mode.
51 | /// - edgeInsetsCompact: Padding applied inside the item view in compact height mode (e.g., landscape).
52 | public init(
| `- note: add '@available' attribute to enclosing initializer
53 | selectedColor: Color = .primary,
54 | unselectedColor: Color = .secondary,
55 | textStyle: Font.TextStyle = .caption2,
| `- error: 'caption2' is only available in macOS 11.0 or newer
56 | iconSideLength: CGFloat = 24,
57 | selectedIconScale: CGFloat = 1.1,
/Users/admin/builder/spi-builder-workspace/Sources/BarKit/BarConfiguration/Item/ItemConfiguration.swift:80:26: error: cannot find 'UIFont' in scope
78 | let scale = isVerticalCompact ? compactIconScale : 1.0
79 | let iconHeight = iconSideLength * scale
80 | let fontHeight = UIFont.preferredFont(forTextStyle: textStyle.uiTextStyle).lineHeight
| `- error: cannot find 'UIFont' in scope
81 |
82 | return isVerticalCompact
/Users/admin/builder/spi-builder-workspace/Sources/BarKit/Extensions/Font+UITextStyle.swift:12:22: error: cannot find type 'UIFont' in scope
10 | extension Font.TextStyle {
11 | /// UIKit text style for calculating tab title height.
12 | var uiTextStyle: UIFont.TextStyle {
| `- error: cannot find type 'UIFont' in scope
13 | switch self {
14 | case .largeTitle, .title: return .title1
/Users/admin/builder/spi-builder-workspace/Sources/BarKit/BarConfiguration/SelectionIndicator/BorderConfiguration.swift:13:23: error: 'Color' is only available in macOS 10.15 or newer
9 |
10 | /// Defines the optional border drawn around the selection indicator.
11 | public struct BorderConfiguration: Equatable, Sendable {
| `- note: add '@available' attribute to enclosing struct
12 | /// The color of the border.
13 | public var color: Color
| `- error: 'Color' is only available in macOS 10.15 or newer
14 | /// The thickness of the border in points.
15 | public var lineWidth: CGFloat
/Users/admin/builder/spi-builder-workspace/Sources/BarKit/BarConfiguration/SelectionIndicator/BorderConfiguration.swift:17:24: error: 'Color' is only available in macOS 10.15 or newer
9 |
10 | /// Defines the optional border drawn around the selection indicator.
11 | public struct BorderConfiguration: Equatable, Sendable {
| `- note: add '@available' attribute to enclosing struct
12 | /// The color of the border.
13 | public var color: Color
:
15 | public var lineWidth: CGFloat
16 |
17 | public init(color: Color = .white.opacity(0.3), lineWidth: CGFloat = 1) {
| | `- error: 'Color' is only available in macOS 10.15 or newer
| `- note: add '@available' attribute to enclosing initializer
18 | self.color = color
19 | self.lineWidth = lineWidth
/Users/admin/builder/spi-builder-workspace/Sources/BarKit/BarConfiguration/SelectionIndicator/BorderConfiguration.swift:17:33: error: 'white' is only available in macOS 10.15 or newer
9 |
10 | /// Defines the optional border drawn around the selection indicator.
11 | public struct BorderConfiguration: Equatable, Sendable {
| `- note: add '@available' attribute to enclosing struct
12 | /// The color of the border.
13 | public var color: Color
:
15 | public var lineWidth: CGFloat
16 |
17 | public init(color: Color = .white.opacity(0.3), lineWidth: CGFloat = 1) {
| | `- error: 'white' is only available in macOS 10.15 or newer
| `- note: add '@available' attribute to enclosing initializer
18 | self.color = color
19 | self.lineWidth = lineWidth
/Users/admin/builder/spi-builder-workspace/Sources/BarKit/BarConfiguration/SelectionIndicator/BorderConfiguration.swift:17:39: error: 'opacity' is only available in macOS 10.15 or newer
9 |
10 | /// Defines the optional border drawn around the selection indicator.
11 | public struct BorderConfiguration: Equatable, Sendable {
| `- note: add '@available' attribute to enclosing struct
12 | /// The color of the border.
13 | public var color: Color
:
15 | public var lineWidth: CGFloat
16 |
17 | public init(color: Color = .white.opacity(0.3), lineWidth: CGFloat = 1) {
| | `- error: 'opacity' is only available in macOS 10.15 or newer
| `- note: add '@available' attribute to enclosing initializer
18 | self.color = color
19 | self.lineWidth = lineWidth
[49/54] Compiling BarKit IndicatorEffect.swift
/Users/admin/builder/spi-builder-workspace/Sources/BarKit/BarConfiguration/Item/ItemConfiguration.swift:14:31: error: 'Color' is only available in macOS 10.15 or newer
9 |
10 | /// Defines the visual appearance of a single bar item in isolation.
11 | public struct ItemConfiguration: Equatable {
| `- note: add '@available' attribute to enclosing struct
12 |
13 | /// The color applied to the icon and title of a selected item.
14 | public var selectedColor: Color
| `- error: 'Color' is only available in macOS 10.15 or newer
15 |
16 | /// The color applied to the icon and title of an unselected item.
/Users/admin/builder/spi-builder-workspace/Sources/BarKit/BarConfiguration/Item/ItemConfiguration.swift:17:33: error: 'Color' is only available in macOS 10.15 or newer
9 |
10 | /// Defines the visual appearance of a single bar item in isolation.
11 | public struct ItemConfiguration: Equatable {
| `- note: add '@available' attribute to enclosing struct
12 |
13 | /// The color applied to the icon and title of a selected item.
:
15 |
16 | /// The color applied to the icon and title of an unselected item.
17 | public var unselectedColor: Color
| `- error: 'Color' is only available in macOS 10.15 or newer
18 |
19 | /// The typography style for the item title.
/Users/admin/builder/spi-builder-workspace/Sources/BarKit/BarConfiguration/Item/ItemConfiguration.swift:20:27: error: 'Font' is only available in macOS 10.15 or newer
9 |
10 | /// Defines the visual appearance of a single bar item in isolation.
11 | public struct ItemConfiguration: Equatable {
| `- note: add '@available' attribute to enclosing struct
12 |
13 | /// The color applied to the icon and title of a selected item.
:
18 |
19 | /// The typography style for the item title.
20 | public var textStyle: Font.TextStyle
| `- error: 'Font' is only available in macOS 10.15 or newer
21 |
22 | /// Side length of the square icon.
/Users/admin/builder/spi-builder-workspace/Sources/BarKit/BarConfiguration/Item/ItemConfiguration.swift:35:28: error: 'EdgeInsets' is only available in macOS 10.15 or newer
9 |
10 | /// Defines the visual appearance of a single bar item in isolation.
11 | public struct ItemConfiguration: Equatable {
| `- note: add '@available' attribute to enclosing struct
12 |
13 | /// The color applied to the icon and title of a selected item.
:
33 |
34 | /// Padding applied inside the item view in regular height mode.
35 | public var edgeInsets: EdgeInsets
| `- error: 'EdgeInsets' is only available in macOS 10.15 or newer
36 |
37 | /// Padding applied inside the item view in compact height mode (e.g., landscape).
/Users/admin/builder/spi-builder-workspace/Sources/BarKit/BarConfiguration/Item/ItemConfiguration.swift:38:35: error: 'EdgeInsets' is only available in macOS 10.15 or newer
9 |
10 | /// Defines the visual appearance of a single bar item in isolation.
11 | public struct ItemConfiguration: Equatable {
| `- note: add '@available' attribute to enclosing struct
12 |
13 | /// The color applied to the icon and title of a selected item.
:
36 |
37 | /// Padding applied inside the item view in compact height mode (e.g., landscape).
38 | public var edgeInsetsCompact: EdgeInsets
| `- error: 'EdgeInsets' is only available in macOS 10.15 or newer
39 |
40 | /// Creates a new item configuration.
/Users/admin/builder/spi-builder-workspace/Sources/BarKit/BarConfiguration/Item/ItemConfiguration.swift:53:24: error: 'Color' is only available in macOS 10.15 or newer
9 |
10 | /// Defines the visual appearance of a single bar item in isolation.
11 | public struct ItemConfiguration: Equatable {
| `- note: add '@available' attribute to enclosing struct
12 |
13 | /// The color applied to the icon and title of a selected item.
:
50 | /// - edgeInsets: Padding applied inside the item view in regular height mode.
51 | /// - edgeInsetsCompact: Padding applied inside the item view in compact height mode (e.g., landscape).
52 | public init(
| `- note: add '@available' attribute to enclosing initializer
53 | selectedColor: Color = .primary,
| `- error: 'Color' is only available in macOS 10.15 or newer
54 | unselectedColor: Color = .secondary,
55 | textStyle: Font.TextStyle = .caption2,
/Users/admin/builder/spi-builder-workspace/Sources/BarKit/BarConfiguration/Item/ItemConfiguration.swift:54:26: error: 'Color' is only available in macOS 10.15 or newer
9 |
10 | /// Defines the visual appearance of a single bar item in isolation.
11 | public struct ItemConfiguration: Equatable {
| `- note: add '@available' attribute to enclosing struct
12 |
13 | /// The color applied to the icon and title of a selected item.
:
50 | /// - edgeInsets: Padding applied inside the item view in regular height mode.
51 | /// - edgeInsetsCompact: Padding applied inside the item view in compact height mode (e.g., landscape).
52 | public init(
| `- note: add '@available' attribute to enclosing initializer
53 | selectedColor: Color = .primary,
54 | unselectedColor: Color = .secondary,
| `- error: 'Color' is only available in macOS 10.15 or newer
55 | textStyle: Font.TextStyle = .caption2,
56 | iconSideLength: CGFloat = 24,
/Users/admin/builder/spi-builder-workspace/Sources/BarKit/BarConfiguration/Item/ItemConfiguration.swift:55:20: error: 'Font' is only available in macOS 10.15 or newer
9 |
10 | /// Defines the visual appearance of a single bar item in isolation.
11 | public struct ItemConfiguration: Equatable {
| `- note: add '@available' attribute to enclosing struct
12 |
13 | /// The color applied to the icon and title of a selected item.
:
50 | /// - edgeInsets: Padding applied inside the item view in regular height mode.
51 | /// - edgeInsetsCompact: Padding applied inside the item view in compact height mode (e.g., landscape).
52 | public init(
| `- note: add '@available' attribute to enclosing initializer
53 | selectedColor: Color = .primary,
54 | unselectedColor: Color = .secondary,
55 | textStyle: Font.TextStyle = .caption2,
| `- error: 'Font' is only available in macOS 10.15 or newer
56 | iconSideLength: CGFloat = 24,
57 | selectedIconScale: CGFloat = 1.1,
/Users/admin/builder/spi-builder-workspace/Sources/BarKit/BarConfiguration/Item/ItemConfiguration.swift:60:21: error: 'EdgeInsets' is only available in macOS 10.15 or newer
9 |
10 | /// Defines the visual appearance of a single bar item in isolation.
11 | public struct ItemConfiguration: Equatable {
| `- note: add '@available' attribute to enclosing struct
12 |
13 | /// The color applied to the icon and title of a selected item.
:
50 | /// - edgeInsets: Padding applied inside the item view in regular height mode.
51 | /// - edgeInsetsCompact: Padding applied inside the item view in compact height mode (e.g., landscape).
52 | public init(
| `- note: add '@available' attribute to enclosing initializer
53 | selectedColor: Color = .primary,
54 | unselectedColor: Color = .secondary,
:
58 | compactIconScale: CGFloat = 0.8,
59 | iconTitleSpacing: CGFloat = 4,
60 | edgeInsets: EdgeInsets = .init(top: 8, leading: 8, bottom: 8, trailing: 8),
| `- error: 'EdgeInsets' is only available in macOS 10.15 or newer
61 | edgeInsetsCompact: EdgeInsets = .init(top: 4, leading: 4, bottom: 4, trailing: 4)
62 | ) {
/Users/admin/builder/spi-builder-workspace/Sources/BarKit/BarConfiguration/Item/ItemConfiguration.swift:61:28: error: 'EdgeInsets' is only available in macOS 10.15 or newer
9 |
10 | /// Defines the visual appearance of a single bar item in isolation.
11 | public struct ItemConfiguration: Equatable {
| `- note: add '@available' attribute to enclosing struct
12 |
13 | /// The color applied to the icon and title of a selected item.
:
50 | /// - edgeInsets: Padding applied inside the item view in regular height mode.
51 | /// - edgeInsetsCompact: Padding applied inside the item view in compact height mode (e.g., landscape).
52 | public init(
| `- note: add '@available' attribute to enclosing initializer
53 | selectedColor: Color = .primary,
54 | unselectedColor: Color = .secondary,
:
59 | iconTitleSpacing: CGFloat = 4,
60 | edgeInsets: EdgeInsets = .init(top: 8, leading: 8, bottom: 8, trailing: 8),
61 | edgeInsetsCompact: EdgeInsets = .init(top: 4, leading: 4, bottom: 4, trailing: 4)
| `- error: 'EdgeInsets' is only available in macOS 10.15 or newer
62 | ) {
63 | self.selectedColor = selectedColor
/Users/admin/builder/spi-builder-workspace/Sources/BarKit/BarConfiguration/Item/ItemConfiguration.swift:53:33: error: 'primary' is only available in macOS 10.15 or newer
9 |
10 | /// Defines the visual appearance of a single bar item in isolation.
11 | public struct ItemConfiguration: Equatable {
| `- note: add '@available' attribute to enclosing struct
12 |
13 | /// The color applied to the icon and title of a selected item.
:
50 | /// - edgeInsets: Padding applied inside the item view in regular height mode.
51 | /// - edgeInsetsCompact: Padding applied inside the item view in compact height mode (e.g., landscape).
52 | public init(
| `- note: add '@available' attribute to enclosing initializer
53 | selectedColor: Color = .primary,
| `- error: 'primary' is only available in macOS 10.15 or newer
54 | unselectedColor: Color = .secondary,
55 | textStyle: Font.TextStyle = .caption2,
/Users/admin/builder/spi-builder-workspace/Sources/BarKit/BarConfiguration/Item/ItemConfiguration.swift:54:35: error: 'secondary' is only available in macOS 10.15 or newer
9 |
10 | /// Defines the visual appearance of a single bar item in isolation.
11 | public struct ItemConfiguration: Equatable {
| `- note: add '@available' attribute to enclosing struct
12 |
13 | /// The color applied to the icon and title of a selected item.
:
50 | /// - edgeInsets: Padding applied inside the item view in regular height mode.
51 | /// - edgeInsetsCompact: Padding applied inside the item view in compact height mode (e.g., landscape).
52 | public init(
| `- note: add '@available' attribute to enclosing initializer
53 | selectedColor: Color = .primary,
54 | unselectedColor: Color = .secondary,
| `- error: 'secondary' is only available in macOS 10.15 or newer
55 | textStyle: Font.TextStyle = .caption2,
56 | iconSideLength: CGFloat = 24,
/Users/admin/builder/spi-builder-workspace/Sources/BarKit/BarConfiguration/Item/ItemConfiguration.swift:55:38: error: 'caption2' is only available in macOS 11.0 or newer
9 |
10 | /// Defines the visual appearance of a single bar item in isolation.
11 | public struct ItemConfiguration: Equatable {
| `- note: add '@available' attribute to enclosing struct
12 |
13 | /// The color applied to the icon and title of a selected item.
:
50 | /// - edgeInsets: Padding applied inside the item view in regular height mode.
51 | /// - edgeInsetsCompact: Padding applied inside the item view in compact height mode (e.g., landscape).
52 | public init(
| `- note: add '@available' attribute to enclosing initializer
53 | selectedColor: Color = .primary,
54 | unselectedColor: Color = .secondary,
55 | textStyle: Font.TextStyle = .caption2,
| `- error: 'caption2' is only available in macOS 11.0 or newer
56 | iconSideLength: CGFloat = 24,
57 | selectedIconScale: CGFloat = 1.1,
/Users/admin/builder/spi-builder-workspace/Sources/BarKit/BarConfiguration/Item/ItemConfiguration.swift:80:26: error: cannot find 'UIFont' in scope
78 | let scale = isVerticalCompact ? compactIconScale : 1.0
79 | let iconHeight = iconSideLength * scale
80 | let fontHeight = UIFont.preferredFont(forTextStyle: textStyle.uiTextStyle).lineHeight
| `- error: cannot find 'UIFont' in scope
81 |
82 | return isVerticalCompact
/Users/admin/builder/spi-builder-workspace/Sources/BarKit/Extensions/Font+UITextStyle.swift:12:22: error: cannot find type 'UIFont' in scope
10 | extension Font.TextStyle {
11 | /// UIKit text style for calculating tab title height.
12 | var uiTextStyle: UIFont.TextStyle {
| `- error: cannot find type 'UIFont' in scope
13 | switch self {
14 | case .largeTitle, .title: return .title1
/Users/admin/builder/spi-builder-workspace/Sources/BarKit/BarConfiguration/SelectionIndicator/BorderConfiguration.swift:13:23: error: 'Color' is only available in macOS 10.15 or newer
9 |
10 | /// Defines the optional border drawn around the selection indicator.
11 | public struct BorderConfiguration: Equatable, Sendable {
| `- note: add '@available' attribute to enclosing struct
12 | /// The color of the border.
13 | public var color: Color
| `- error: 'Color' is only available in macOS 10.15 or newer
14 | /// The thickness of the border in points.
15 | public var lineWidth: CGFloat
/Users/admin/builder/spi-builder-workspace/Sources/BarKit/BarConfiguration/SelectionIndicator/BorderConfiguration.swift:17:24: error: 'Color' is only available in macOS 10.15 or newer
9 |
10 | /// Defines the optional border drawn around the selection indicator.
11 | public struct BorderConfiguration: Equatable, Sendable {
| `- note: add '@available' attribute to enclosing struct
12 | /// The color of the border.
13 | public var color: Color
:
15 | public var lineWidth: CGFloat
16 |
17 | public init(color: Color = .white.opacity(0.3), lineWidth: CGFloat = 1) {
| | `- error: 'Color' is only available in macOS 10.15 or newer
| `- note: add '@available' attribute to enclosing initializer
18 | self.color = color
19 | self.lineWidth = lineWidth
/Users/admin/builder/spi-builder-workspace/Sources/BarKit/BarConfiguration/SelectionIndicator/BorderConfiguration.swift:17:33: error: 'white' is only available in macOS 10.15 or newer
9 |
10 | /// Defines the optional border drawn around the selection indicator.
11 | public struct BorderConfiguration: Equatable, Sendable {
| `- note: add '@available' attribute to enclosing struct
12 | /// The color of the border.
13 | public var color: Color
:
15 | public var lineWidth: CGFloat
16 |
17 | public init(color: Color = .white.opacity(0.3), lineWidth: CGFloat = 1) {
| | `- error: 'white' is only available in macOS 10.15 or newer
| `- note: add '@available' attribute to enclosing initializer
18 | self.color = color
19 | self.lineWidth = lineWidth
/Users/admin/builder/spi-builder-workspace/Sources/BarKit/BarConfiguration/SelectionIndicator/BorderConfiguration.swift:17:39: error: 'opacity' is only available in macOS 10.15 or newer
9 |
10 | /// Defines the optional border drawn around the selection indicator.
11 | public struct BorderConfiguration: Equatable, Sendable {
| `- note: add '@available' attribute to enclosing struct
12 | /// The color of the border.
13 | public var color: Color
:
15 | public var lineWidth: CGFloat
16 |
17 | public init(color: Color = .white.opacity(0.3), lineWidth: CGFloat = 1) {
| | `- error: 'opacity' is only available in macOS 10.15 or newer
| `- note: add '@available' attribute to enclosing initializer
18 | self.color = color
19 | self.lineWidth = lineWidth
[50/54] Compiling BarKit BadgeConfiguration.swift
/Users/admin/builder/spi-builder-workspace/Sources/BarKit/BarConfiguration/Bar/BadgeConfiguration.swift:20:33: error: 'Color' is only available in macOS 10.15 or newer
9 |
10 | /// Defines the visual appearance of a badge overlay on a bar item.
11 | public struct BadgeConfiguration: Equatable, Sendable {
| `- note: add '@available' attribute to enclosing struct
12 |
13 | /// Horizontal offset applied to the badge after alignment.
:
18 |
19 | /// The background color of the badge.
20 | public var backgroundColor: Color
| `- error: 'Color' is only available in macOS 10.15 or newer
21 |
22 | /// The foreground color applied to the badge text or dot.
/Users/admin/builder/spi-builder-workspace/Sources/BarKit/BarConfiguration/Bar/BadgeConfiguration.swift:23:33: error: 'Color' is only available in macOS 10.15 or newer
9 |
10 | /// Defines the visual appearance of a badge overlay on a bar item.
11 | public struct BadgeConfiguration: Equatable, Sendable {
| `- note: add '@available' attribute to enclosing struct
12 |
13 | /// Horizontal offset applied to the badge after alignment.
:
21 |
22 | /// The foreground color applied to the badge text or dot.
23 | public var foregroundColor: Color
| `- error: 'Color' is only available in macOS 10.15 or newer
24 |
25 | /// The typography style for `.count` and `.label` badges.
/Users/admin/builder/spi-builder-workspace/Sources/BarKit/BarConfiguration/Bar/BadgeConfiguration.swift:26:27: error: 'Font' is only available in macOS 10.15 or newer
9 |
10 | /// Defines the visual appearance of a badge overlay on a bar item.
11 | public struct BadgeConfiguration: Equatable, Sendable {
| `- note: add '@available' attribute to enclosing struct
12 |
13 | /// Horizontal offset applied to the badge after alignment.
:
24 |
25 | /// The typography style for `.count` and `.label` badges.
26 | public var textStyle: Font.TextStyle
| `- error: 'Font' is only available in macOS 10.15 or newer
27 |
28 | /// Horizontal padding inside `.count` and `.label` badges.
/Users/admin/builder/spi-builder-workspace/Sources/BarKit/BarConfiguration/Bar/BadgeConfiguration.swift:49:20: error: 'Alignment' is only available in macOS 10.15 or newer
9 |
10 | /// Defines the visual appearance of a badge overlay on a bar item.
11 | public struct BadgeConfiguration: Equatable, Sendable {
| `- note: add '@available' attribute to enclosing struct
12 |
13 | /// Horizontal offset applied to the badge after alignment.
:
46 | /// - verticalPadding: Vertical padding inside `.count` and `.label` badges.
47 | /// - dotDiameter: The diameter of the `.dot` badge.
48 | public init(
| `- note: add '@available' attribute to enclosing initializer
49 | alignment: Alignment = .topTrailing,
| `- error: 'Alignment' is only available in macOS 10.15 or newer
50 | offsetX: CGFloat = 0,
51 | offsetY: CGFloat = 0,
/Users/admin/builder/spi-builder-workspace/Sources/BarKit/BarConfiguration/Bar/BadgeConfiguration.swift:52:26: error: 'Color' is only available in macOS 10.15 or newer
9 |
10 | /// Defines the visual appearance of a badge overlay on a bar item.
11 | public struct BadgeConfiguration: Equatable, Sendable {
| `- note: add '@available' attribute to enclosing struct
12 |
13 | /// Horizontal offset applied to the badge after alignment.
:
46 | /// - verticalPadding: Vertical padding inside `.count` and `.label` badges.
47 | /// - dotDiameter: The diameter of the `.dot` badge.
48 | public init(
| `- note: add '@available' attribute to enclosing initializer
49 | alignment: Alignment = .topTrailing,
50 | offsetX: CGFloat = 0,
51 | offsetY: CGFloat = 0,
52 | backgroundColor: Color = .red,
| `- error: 'Color' is only available in macOS 10.15 or newer
53 | foregroundColor: Color = .white,
54 | textStyle: Font.TextStyle = .caption2,
/Users/admin/builder/spi-builder-workspace/Sources/BarKit/BarConfiguration/Bar/BadgeConfiguration.swift:53:26: error: 'Color' is only available in macOS 10.15 or newer
9 |
10 | /// Defines the visual appearance of a badge overlay on a bar item.
11 | public struct BadgeConfiguration: Equatable, Sendable {
| `- note: add '@available' attribute to enclosing struct
12 |
13 | /// Horizontal offset applied to the badge after alignment.
:
46 | /// - verticalPadding: Vertical padding inside `.count` and `.label` badges.
47 | /// - dotDiameter: The diameter of the `.dot` badge.
48 | public init(
| `- note: add '@available' attribute to enclosing initializer
49 | alignment: Alignment = .topTrailing,
50 | offsetX: CGFloat = 0,
51 | offsetY: CGFloat = 0,
52 | backgroundColor: Color = .red,
53 | foregroundColor: Color = .white,
| `- error: 'Color' is only available in macOS 10.15 or newer
54 | textStyle: Font.TextStyle = .caption2,
55 | horizontalPadding: CGFloat = 4,
/Users/admin/builder/spi-builder-workspace/Sources/BarKit/BarConfiguration/Bar/BadgeConfiguration.swift:54:20: error: 'Font' is only available in macOS 10.15 or newer
9 |
10 | /// Defines the visual appearance of a badge overlay on a bar item.
11 | public struct BadgeConfiguration: Equatable, Sendable {
| `- note: add '@available' attribute to enclosing struct
12 |
13 | /// Horizontal offset applied to the badge after alignment.
:
46 | /// - verticalPadding: Vertical padding inside `.count` and `.label` badges.
47 | /// - dotDiameter: The diameter of the `.dot` badge.
48 | public init(
| `- note: add '@available' attribute to enclosing initializer
49 | alignment: Alignment = .topTrailing,
50 | offsetX: CGFloat = 0,
:
52 | backgroundColor: Color = .red,
53 | foregroundColor: Color = .white,
54 | textStyle: Font.TextStyle = .caption2,
| `- error: 'Font' is only available in macOS 10.15 or newer
55 | horizontalPadding: CGFloat = 4,
56 | verticalPadding: CGFloat = 2,
/Users/admin/builder/spi-builder-workspace/Sources/BarKit/BarConfiguration/Bar/BadgeConfiguration.swift:49:33: error: 'topTrailing' is only available in macOS 10.15 or newer
9 |
10 | /// Defines the visual appearance of a badge overlay on a bar item.
11 | public struct BadgeConfiguration: Equatable, Sendable {
| `- note: add '@available' attribute to enclosing struct
12 |
13 | /// Horizontal offset applied to the badge after alignment.
:
46 | /// - verticalPadding: Vertical padding inside `.count` and `.label` badges.
47 | /// - dotDiameter: The diameter of the `.dot` badge.
48 | public init(
| `- note: add '@available' attribute to enclosing initializer
49 | alignment: Alignment = .topTrailing,
| `- error: 'topTrailing' is only available in macOS 10.15 or newer
50 | offsetX: CGFloat = 0,
51 | offsetY: CGFloat = 0,
/Users/admin/builder/spi-builder-workspace/Sources/BarKit/BarConfiguration/Bar/BadgeConfiguration.swift:52:35: error: 'red' is only available in macOS 10.15 or newer
9 |
10 | /// Defines the visual appearance of a badge overlay on a bar item.
11 | public struct BadgeConfiguration: Equatable, Sendable {
| `- note: add '@available' attribute to enclosing struct
12 |
13 | /// Horizontal offset applied to the badge after alignment.
:
46 | /// - verticalPadding: Vertical padding inside `.count` and `.label` badges.
47 | /// - dotDiameter: The diameter of the `.dot` badge.
48 | public init(
| `- note: add '@available' attribute to enclosing initializer
49 | alignment: Alignment = .topTrailing,
50 | offsetX: CGFloat = 0,
51 | offsetY: CGFloat = 0,
52 | backgroundColor: Color = .red,
| `- error: 'red' is only available in macOS 10.15 or newer
53 | foregroundColor: Color = .white,
54 | textStyle: Font.TextStyle = .caption2,
/Users/admin/builder/spi-builder-workspace/Sources/BarKit/BarConfiguration/Bar/BadgeConfiguration.swift:53:35: error: 'white' is only available in macOS 10.15 or newer
9 |
10 | /// Defines the visual appearance of a badge overlay on a bar item.
11 | public struct BadgeConfiguration: Equatable, Sendable {
| `- note: add '@available' attribute to enclosing struct
12 |
13 | /// Horizontal offset applied to the badge after alignment.
:
46 | /// - verticalPadding: Vertical padding inside `.count` and `.label` badges.
47 | /// - dotDiameter: The diameter of the `.dot` badge.
48 | public init(
| `- note: add '@available' attribute to enclosing initializer
49 | alignment: Alignment = .topTrailing,
50 | offsetX: CGFloat = 0,
51 | offsetY: CGFloat = 0,
52 | backgroundColor: Color = .red,
53 | foregroundColor: Color = .white,
| `- error: 'white' is only available in macOS 10.15 or newer
54 | textStyle: Font.TextStyle = .caption2,
55 | horizontalPadding: CGFloat = 4,
/Users/admin/builder/spi-builder-workspace/Sources/BarKit/BarConfiguration/Bar/BadgeConfiguration.swift:54:38: error: 'caption2' is only available in macOS 11.0 or newer
9 |
10 | /// Defines the visual appearance of a badge overlay on a bar item.
11 | public struct BadgeConfiguration: Equatable, Sendable {
| `- note: add '@available' attribute to enclosing struct
12 |
13 | /// Horizontal offset applied to the badge after alignment.
:
46 | /// - verticalPadding: Vertical padding inside `.count` and `.label` badges.
47 | /// - dotDiameter: The diameter of the `.dot` badge.
48 | public init(
| `- note: add '@available' attribute to enclosing initializer
49 | alignment: Alignment = .topTrailing,
50 | offsetX: CGFloat = 0,
:
52 | backgroundColor: Color = .red,
53 | foregroundColor: Color = .white,
54 | textStyle: Font.TextStyle = .caption2,
| `- error: 'caption2' is only available in macOS 11.0 or newer
55 | horizontalPadding: CGFloat = 4,
56 | verticalPadding: CGFloat = 2,
/Users/admin/builder/spi-builder-workspace/Sources/BarKit/BarConfiguration/Bar/ShadowConfiguration.swift:29:25: error: 'black' is only available in macOS 10.15 or newer
9 |
10 | /// Defines the shadow appearance of the bar capsule.
11 | public struct ShadowConfiguration: Equatable, Sendable {
| `- note: add '@available' attribute to enclosing struct
12 | /// The shadow color.
13 | public var color: Color
:
26 | /// - x: The horizontal offset of the shadow.
27 | /// - y: The vertical offset of the shadow.
28 | public init(
| `- note: add '@available' attribute to enclosing initializer
29 | color: Color = .black.opacity(0.2),
| `- error: 'black' is only available in macOS 10.15 or newer
30 | radius: CGFloat = 8,
31 | x: CGFloat = 0,
/Users/admin/builder/spi-builder-workspace/Sources/BarKit/BarConfiguration/Bar/ShadowConfiguration.swift:29:31: error: 'opacity' is only available in macOS 10.15 or newer
9 |
10 | /// Defines the shadow appearance of the bar capsule.
11 | public struct ShadowConfiguration: Equatable, Sendable {
| `- note: add '@available' attribute to enclosing struct
12 | /// The shadow color.
13 | public var color: Color
:
26 | /// - x: The horizontal offset of the shadow.
27 | /// - y: The vertical offset of the shadow.
28 | public init(
| `- note: add '@available' attribute to enclosing initializer
29 | color: Color = .black.opacity(0.2),
| `- error: 'opacity' is only available in macOS 10.15 or newer
30 | radius: CGFloat = 8,
31 | x: CGFloat = 0,
/Users/admin/builder/spi-builder-workspace/Sources/BarKit/BarConfiguration/Background/BarBackground.swift:15:47: error: 'clear' is only available in macOS 10.15 or newer
9 |
10 | /// Defines the background appearance of the bar.
11 | public enum BarBackground {
| `- note: add '@available' attribute to enclosing enum
12 | /// A solid color fill with no blur.
13 | case color(Color)
14 | /// A system material blur with an optional tint color layered on top.
15 | case material(BarMaterial, tint: Color = .clear)
| `- error: 'clear' is only available in macOS 10.15 or newer
16 | /// A custom shader-based blur with an optional tint color layered on top.
17 | case customBlur(CustomBlurConfiguration, tint: Color = .clear)
/Users/admin/builder/spi-builder-workspace/Sources/BarKit/BarConfiguration/Item/ItemConfiguration.swift:53:33: error: 'primary' is only available in macOS 10.15 or newer
9 |
10 | /// Defines the visual appearance of a single bar item in isolation.
11 | public struct ItemConfiguration: Equatable {
| `- note: add '@available' attribute to enclosing struct
12 |
13 | /// The color applied to the icon and title of a selected item.
:
50 | /// - edgeInsets: Padding applied inside the item view in regular height mode.
51 | /// - edgeInsetsCompact: Padding applied inside the item view in compact height mode (e.g., landscape).
52 | public init(
| `- note: add '@available' attribute to enclosing initializer
53 | selectedColor: Color = .primary,
| `- error: 'primary' is only available in macOS 10.15 or newer
54 | unselectedColor: Color = .secondary,
55 | textStyle: Font.TextStyle = .caption2,
/Users/admin/builder/spi-builder-workspace/Sources/BarKit/BarConfiguration/Item/ItemConfiguration.swift:54:35: error: 'secondary' is only available in macOS 10.15 or newer
9 |
10 | /// Defines the visual appearance of a single bar item in isolation.
11 | public struct ItemConfiguration: Equatable {
| `- note: add '@available' attribute to enclosing struct
12 |
13 | /// The color applied to the icon and title of a selected item.
:
50 | /// - edgeInsets: Padding applied inside the item view in regular height mode.
51 | /// - edgeInsetsCompact: Padding applied inside the item view in compact height mode (e.g., landscape).
52 | public init(
| `- note: add '@available' attribute to enclosing initializer
53 | selectedColor: Color = .primary,
54 | unselectedColor: Color = .secondary,
| `- error: 'secondary' is only available in macOS 10.15 or newer
55 | textStyle: Font.TextStyle = .caption2,
56 | iconSideLength: CGFloat = 24,
/Users/admin/builder/spi-builder-workspace/Sources/BarKit/BarConfiguration/Item/ItemConfiguration.swift:55:38: error: 'caption2' is only available in macOS 11.0 or newer
9 |
10 | /// Defines the visual appearance of a single bar item in isolation.
11 | public struct ItemConfiguration: Equatable {
| `- note: add '@available' attribute to enclosing struct
12 |
13 | /// The color applied to the icon and title of a selected item.
:
50 | /// - edgeInsets: Padding applied inside the item view in regular height mode.
51 | /// - edgeInsetsCompact: Padding applied inside the item view in compact height mode (e.g., landscape).
52 | public init(
| `- note: add '@available' attribute to enclosing initializer
53 | selectedColor: Color = .primary,
54 | unselectedColor: Color = .secondary,
55 | textStyle: Font.TextStyle = .caption2,
| `- error: 'caption2' is only available in macOS 11.0 or newer
56 | iconSideLength: CGFloat = 24,
57 | selectedIconScale: CGFloat = 1.1,
/Users/admin/builder/spi-builder-workspace/Sources/BarKit/BarConfiguration/SelectionIndicator/SelectionIndicatorConfiguration.swift:62:25: error: 'secondary' is only available in macOS 10.15 or newer
9 |
10 | /// Defines the visual appearance and behavior of the selection indicator.
11 | public struct SelectionIndicatorConfiguration {
| `- note: add '@available' attribute to enclosing struct
12 |
13 | // MARK: - Appearance
:
59 | /// - isDragGestureEnabled: Whether the user can drag the indicator between items.
60 | /// - effects: Active visual effects at the indicator boundary. Duplicate effects are ignored — only the first occurrence of each effect type is applied.
61 | public init(
| `- note: add '@available' attribute to enclosing initializer
62 | color: Color = .secondary.opacity(0.2),
| `- error: 'secondary' is only available in macOS 10.15 or newer
63 | border: BorderConfiguration? = nil,
64 | inset: EdgeInsets = .init(top: 2, leading: 2, bottom: 2, trailing: 2),
/Users/admin/builder/spi-builder-workspace/Sources/BarKit/BarConfiguration/SelectionIndicator/SelectionIndicatorConfiguration.swift:62:35: error: 'opacity' is only available in macOS 10.15 or newer
9 |
10 | /// Defines the visual appearance and behavior of the selection indicator.
11 | public struct SelectionIndicatorConfiguration {
| `- note: add '@available' attribute to enclosing struct
12 |
13 | // MARK: - Appearance
:
59 | /// - isDragGestureEnabled: Whether the user can drag the indicator between items.
60 | /// - effects: Active visual effects at the indicator boundary. Duplicate effects are ignored — only the first occurrence of each effect type is applied.
61 | public init(
| `- note: add '@available' attribute to enclosing initializer
62 | color: Color = .secondary.opacity(0.2),
| `- error: 'opacity' is only available in macOS 10.15 or newer
63 | border: BorderConfiguration? = nil,
64 | inset: EdgeInsets = .init(top: 2, leading: 2, bottom: 2, trailing: 2),
/Users/admin/builder/spi-builder-workspace/Sources/BarKit/BarConfiguration/Bar/BarConfiguration.swift:141:44: error: 'Animation' is only available in macOS 10.15 or newer
9 |
10 | /// A configuration object that defines the visual style, layout, and behavior of `BarView`.
11 | public struct BarConfiguration {
| `- note: add '@available' attribute to enclosing struct
12 |
13 | // MARK: - Layout
:
139 |
140 | /// Resolves the item state animation for use in view modifiers.
141 | public var resolvedItemStateAnimation: Animation? {
| | `- error: 'Animation' is only available in macOS 10.15 or newer
| `- note: add '@available' attribute to enclosing property
142 | itemStateAnimation?.animation
143 | }
/Users/admin/builder/spi-builder-workspace/Sources/BarKit/BarConfiguration/Bar/HapticFeedbackConfiguration.swift:31:26: error: 'SensoryFeedback' is only available in macOS 14.0 or newer
10 | /// Defines the haptic feedback style triggered when the selected bar item changes.
11 | /// Requires iOS 17 or later; has no effect on earlier versions.
12 | public enum HapticFeedbackConfiguration {
| `- note: add '@available' attribute to enclosing enum
13 |
14 | /// A feedback style that indicates a change in selection.
:
29 | /// Maps to the corresponding `SensoryFeedback` value.
30 | @available(iOS 17.0, *)
31 | var sensoryFeedback: SensoryFeedback {
| | `- error: 'SensoryFeedback' is only available in macOS 14.0 or newer
| `- note: add '@available' attribute to enclosing property
32 | switch self {
33 | case .selection: .selection
/Users/admin/builder/spi-builder-workspace/Sources/BarKit/BarConfiguration/Bar/ShadowConfiguration.swift:13:23: error: 'Color' is only available in macOS 10.15 or newer
9 |
10 | /// Defines the shadow appearance of the bar capsule.
11 | public struct ShadowConfiguration: Equatable, Sendable {
| `- note: add '@available' attribute to enclosing struct
12 | /// The shadow color.
13 | public var color: Color
| `- error: 'Color' is only available in macOS 10.15 or newer
14 | /// The shadow blur radius.
15 | public var radius: CGFloat
/Users/admin/builder/spi-builder-workspace/Sources/BarKit/BarConfiguration/Bar/ShadowConfiguration.swift:29:16: error: 'Color' is only available in macOS 10.15 or newer
9 |
10 | /// Defines the shadow appearance of the bar capsule.
11 | public struct ShadowConfiguration: Equatable, Sendable {
| `- note: add '@available' attribute to enclosing struct
12 | /// The shadow color.
13 | public var color: Color
:
26 | /// - x: The horizontal offset of the shadow.
27 | /// - y: The vertical offset of the shadow.
28 | public init(
| `- note: add '@available' attribute to enclosing initializer
29 | color: Color = .black.opacity(0.2),
| `- error: 'Color' is only available in macOS 10.15 or newer
30 | radius: CGFloat = 8,
31 | x: CGFloat = 0,
[51/54] Compiling BarKit BarConfiguration.swift
/Users/admin/builder/spi-builder-workspace/Sources/BarKit/BarConfiguration/Bar/BadgeConfiguration.swift:20:33: error: 'Color' is only available in macOS 10.15 or newer
9 |
10 | /// Defines the visual appearance of a badge overlay on a bar item.
11 | public struct BadgeConfiguration: Equatable, Sendable {
| `- note: add '@available' attribute to enclosing struct
12 |
13 | /// Horizontal offset applied to the badge after alignment.
:
18 |
19 | /// The background color of the badge.
20 | public var backgroundColor: Color
| `- error: 'Color' is only available in macOS 10.15 or newer
21 |
22 | /// The foreground color applied to the badge text or dot.
/Users/admin/builder/spi-builder-workspace/Sources/BarKit/BarConfiguration/Bar/BadgeConfiguration.swift:23:33: error: 'Color' is only available in macOS 10.15 or newer
9 |
10 | /// Defines the visual appearance of a badge overlay on a bar item.
11 | public struct BadgeConfiguration: Equatable, Sendable {
| `- note: add '@available' attribute to enclosing struct
12 |
13 | /// Horizontal offset applied to the badge after alignment.
:
21 |
22 | /// The foreground color applied to the badge text or dot.
23 | public var foregroundColor: Color
| `- error: 'Color' is only available in macOS 10.15 or newer
24 |
25 | /// The typography style for `.count` and `.label` badges.
/Users/admin/builder/spi-builder-workspace/Sources/BarKit/BarConfiguration/Bar/BadgeConfiguration.swift:26:27: error: 'Font' is only available in macOS 10.15 or newer
9 |
10 | /// Defines the visual appearance of a badge overlay on a bar item.
11 | public struct BadgeConfiguration: Equatable, Sendable {
| `- note: add '@available' attribute to enclosing struct
12 |
13 | /// Horizontal offset applied to the badge after alignment.
:
24 |
25 | /// The typography style for `.count` and `.label` badges.
26 | public var textStyle: Font.TextStyle
| `- error: 'Font' is only available in macOS 10.15 or newer
27 |
28 | /// Horizontal padding inside `.count` and `.label` badges.
/Users/admin/builder/spi-builder-workspace/Sources/BarKit/BarConfiguration/Bar/BadgeConfiguration.swift:49:20: error: 'Alignment' is only available in macOS 10.15 or newer
9 |
10 | /// Defines the visual appearance of a badge overlay on a bar item.
11 | public struct BadgeConfiguration: Equatable, Sendable {
| `- note: add '@available' attribute to enclosing struct
12 |
13 | /// Horizontal offset applied to the badge after alignment.
:
46 | /// - verticalPadding: Vertical padding inside `.count` and `.label` badges.
47 | /// - dotDiameter: The diameter of the `.dot` badge.
48 | public init(
| `- note: add '@available' attribute to enclosing initializer
49 | alignment: Alignment = .topTrailing,
| `- error: 'Alignment' is only available in macOS 10.15 or newer
50 | offsetX: CGFloat = 0,
51 | offsetY: CGFloat = 0,
/Users/admin/builder/spi-builder-workspace/Sources/BarKit/BarConfiguration/Bar/BadgeConfiguration.swift:52:26: error: 'Color' is only available in macOS 10.15 or newer
9 |
10 | /// Defines the visual appearance of a badge overlay on a bar item.
11 | public struct BadgeConfiguration: Equatable, Sendable {
| `- note: add '@available' attribute to enclosing struct
12 |
13 | /// Horizontal offset applied to the badge after alignment.
:
46 | /// - verticalPadding: Vertical padding inside `.count` and `.label` badges.
47 | /// - dotDiameter: The diameter of the `.dot` badge.
48 | public init(
| `- note: add '@available' attribute to enclosing initializer
49 | alignment: Alignment = .topTrailing,
50 | offsetX: CGFloat = 0,
51 | offsetY: CGFloat = 0,
52 | backgroundColor: Color = .red,
| `- error: 'Color' is only available in macOS 10.15 or newer
53 | foregroundColor: Color = .white,
54 | textStyle: Font.TextStyle = .caption2,
/Users/admin/builder/spi-builder-workspace/Sources/BarKit/BarConfiguration/Bar/BadgeConfiguration.swift:53:26: error: 'Color' is only available in macOS 10.15 or newer
9 |
10 | /// Defines the visual appearance of a badge overlay on a bar item.
11 | public struct BadgeConfiguration: Equatable, Sendable {
| `- note: add '@available' attribute to enclosing struct
12 |
13 | /// Horizontal offset applied to the badge after alignment.
:
46 | /// - verticalPadding: Vertical padding inside `.count` and `.label` badges.
47 | /// - dotDiameter: The diameter of the `.dot` badge.
48 | public init(
| `- note: add '@available' attribute to enclosing initializer
49 | alignment: Alignment = .topTrailing,
50 | offsetX: CGFloat = 0,
51 | offsetY: CGFloat = 0,
52 | backgroundColor: Color = .red,
53 | foregroundColor: Color = .white,
| `- error: 'Color' is only available in macOS 10.15 or newer
54 | textStyle: Font.TextStyle = .caption2,
55 | horizontalPadding: CGFloat = 4,
/Users/admin/builder/spi-builder-workspace/Sources/BarKit/BarConfiguration/Bar/BadgeConfiguration.swift:54:20: error: 'Font' is only available in macOS 10.15 or newer
9 |
10 | /// Defines the visual appearance of a badge overlay on a bar item.
11 | public struct BadgeConfiguration: Equatable, Sendable {
| `- note: add '@available' attribute to enclosing struct
12 |
13 | /// Horizontal offset applied to the badge after alignment.
:
46 | /// - verticalPadding: Vertical padding inside `.count` and `.label` badges.
47 | /// - dotDiameter: The diameter of the `.dot` badge.
48 | public init(
| `- note: add '@available' attribute to enclosing initializer
49 | alignment: Alignment = .topTrailing,
50 | offsetX: CGFloat = 0,
:
52 | backgroundColor: Color = .red,
53 | foregroundColor: Color = .white,
54 | textStyle: Font.TextStyle = .caption2,
| `- error: 'Font' is only available in macOS 10.15 or newer
55 | horizontalPadding: CGFloat = 4,
56 | verticalPadding: CGFloat = 2,
/Users/admin/builder/spi-builder-workspace/Sources/BarKit/BarConfiguration/Bar/BadgeConfiguration.swift:49:33: error: 'topTrailing' is only available in macOS 10.15 or newer
9 |
10 | /// Defines the visual appearance of a badge overlay on a bar item.
11 | public struct BadgeConfiguration: Equatable, Sendable {
| `- note: add '@available' attribute to enclosing struct
12 |
13 | /// Horizontal offset applied to the badge after alignment.
:
46 | /// - verticalPadding: Vertical padding inside `.count` and `.label` badges.
47 | /// - dotDiameter: The diameter of the `.dot` badge.
48 | public init(
| `- note: add '@available' attribute to enclosing initializer
49 | alignment: Alignment = .topTrailing,
| `- error: 'topTrailing' is only available in macOS 10.15 or newer
50 | offsetX: CGFloat = 0,
51 | offsetY: CGFloat = 0,
/Users/admin/builder/spi-builder-workspace/Sources/BarKit/BarConfiguration/Bar/BadgeConfiguration.swift:52:35: error: 'red' is only available in macOS 10.15 or newer
9 |
10 | /// Defines the visual appearance of a badge overlay on a bar item.
11 | public struct BadgeConfiguration: Equatable, Sendable {
| `- note: add '@available' attribute to enclosing struct
12 |
13 | /// Horizontal offset applied to the badge after alignment.
:
46 | /// - verticalPadding: Vertical padding inside `.count` and `.label` badges.
47 | /// - dotDiameter: The diameter of the `.dot` badge.
48 | public init(
| `- note: add '@available' attribute to enclosing initializer
49 | alignment: Alignment = .topTrailing,
50 | offsetX: CGFloat = 0,
51 | offsetY: CGFloat = 0,
52 | backgroundColor: Color = .red,
| `- error: 'red' is only available in macOS 10.15 or newer
53 | foregroundColor: Color = .white,
54 | textStyle: Font.TextStyle = .caption2,
/Users/admin/builder/spi-builder-workspace/Sources/BarKit/BarConfiguration/Bar/BadgeConfiguration.swift:53:35: error: 'white' is only available in macOS 10.15 or newer
9 |
10 | /// Defines the visual appearance of a badge overlay on a bar item.
11 | public struct BadgeConfiguration: Equatable, Sendable {
| `- note: add '@available' attribute to enclosing struct
12 |
13 | /// Horizontal offset applied to the badge after alignment.
:
46 | /// - verticalPadding: Vertical padding inside `.count` and `.label` badges.
47 | /// - dotDiameter: The diameter of the `.dot` badge.
48 | public init(
| `- note: add '@available' attribute to enclosing initializer
49 | alignment: Alignment = .topTrailing,
50 | offsetX: CGFloat = 0,
51 | offsetY: CGFloat = 0,
52 | backgroundColor: Color = .red,
53 | foregroundColor: Color = .white,
| `- error: 'white' is only available in macOS 10.15 or newer
54 | textStyle: Font.TextStyle = .caption2,
55 | horizontalPadding: CGFloat = 4,
/Users/admin/builder/spi-builder-workspace/Sources/BarKit/BarConfiguration/Bar/BadgeConfiguration.swift:54:38: error: 'caption2' is only available in macOS 11.0 or newer
9 |
10 | /// Defines the visual appearance of a badge overlay on a bar item.
11 | public struct BadgeConfiguration: Equatable, Sendable {
| `- note: add '@available' attribute to enclosing struct
12 |
13 | /// Horizontal offset applied to the badge after alignment.
:
46 | /// - verticalPadding: Vertical padding inside `.count` and `.label` badges.
47 | /// - dotDiameter: The diameter of the `.dot` badge.
48 | public init(
| `- note: add '@available' attribute to enclosing initializer
49 | alignment: Alignment = .topTrailing,
50 | offsetX: CGFloat = 0,
:
52 | backgroundColor: Color = .red,
53 | foregroundColor: Color = .white,
54 | textStyle: Font.TextStyle = .caption2,
| `- error: 'caption2' is only available in macOS 11.0 or newer
55 | horizontalPadding: CGFloat = 4,
56 | verticalPadding: CGFloat = 2,
/Users/admin/builder/spi-builder-workspace/Sources/BarKit/BarConfiguration/Bar/ShadowConfiguration.swift:29:25: error: 'black' is only available in macOS 10.15 or newer
9 |
10 | /// Defines the shadow appearance of the bar capsule.
11 | public struct ShadowConfiguration: Equatable, Sendable {
| `- note: add '@available' attribute to enclosing struct
12 | /// The shadow color.
13 | public var color: Color
:
26 | /// - x: The horizontal offset of the shadow.
27 | /// - y: The vertical offset of the shadow.
28 | public init(
| `- note: add '@available' attribute to enclosing initializer
29 | color: Color = .black.opacity(0.2),
| `- error: 'black' is only available in macOS 10.15 or newer
30 | radius: CGFloat = 8,
31 | x: CGFloat = 0,
/Users/admin/builder/spi-builder-workspace/Sources/BarKit/BarConfiguration/Bar/ShadowConfiguration.swift:29:31: error: 'opacity' is only available in macOS 10.15 or newer
9 |
10 | /// Defines the shadow appearance of the bar capsule.
11 | public struct ShadowConfiguration: Equatable, Sendable {
| `- note: add '@available' attribute to enclosing struct
12 | /// The shadow color.
13 | public var color: Color
:
26 | /// - x: The horizontal offset of the shadow.
27 | /// - y: The vertical offset of the shadow.
28 | public init(
| `- note: add '@available' attribute to enclosing initializer
29 | color: Color = .black.opacity(0.2),
| `- error: 'opacity' is only available in macOS 10.15 or newer
30 | radius: CGFloat = 8,
31 | x: CGFloat = 0,
/Users/admin/builder/spi-builder-workspace/Sources/BarKit/BarConfiguration/Background/BarBackground.swift:15:47: error: 'clear' is only available in macOS 10.15 or newer
9 |
10 | /// Defines the background appearance of the bar.
11 | public enum BarBackground {
| `- note: add '@available' attribute to enclosing enum
12 | /// A solid color fill with no blur.
13 | case color(Color)
14 | /// A system material blur with an optional tint color layered on top.
15 | case material(BarMaterial, tint: Color = .clear)
| `- error: 'clear' is only available in macOS 10.15 or newer
16 | /// A custom shader-based blur with an optional tint color layered on top.
17 | case customBlur(CustomBlurConfiguration, tint: Color = .clear)
/Users/admin/builder/spi-builder-workspace/Sources/BarKit/BarConfiguration/Item/ItemConfiguration.swift:53:33: error: 'primary' is only available in macOS 10.15 or newer
9 |
10 | /// Defines the visual appearance of a single bar item in isolation.
11 | public struct ItemConfiguration: Equatable {
| `- note: add '@available' attribute to enclosing struct
12 |
13 | /// The color applied to the icon and title of a selected item.
:
50 | /// - edgeInsets: Padding applied inside the item view in regular height mode.
51 | /// - edgeInsetsCompact: Padding applied inside the item view in compact height mode (e.g., landscape).
52 | public init(
| `- note: add '@available' attribute to enclosing initializer
53 | selectedColor: Color = .primary,
| `- error: 'primary' is only available in macOS 10.15 or newer
54 | unselectedColor: Color = .secondary,
55 | textStyle: Font.TextStyle = .caption2,
/Users/admin/builder/spi-builder-workspace/Sources/BarKit/BarConfiguration/Item/ItemConfiguration.swift:54:35: error: 'secondary' is only available in macOS 10.15 or newer
9 |
10 | /// Defines the visual appearance of a single bar item in isolation.
11 | public struct ItemConfiguration: Equatable {
| `- note: add '@available' attribute to enclosing struct
12 |
13 | /// The color applied to the icon and title of a selected item.
:
50 | /// - edgeInsets: Padding applied inside the item view in regular height mode.
51 | /// - edgeInsetsCompact: Padding applied inside the item view in compact height mode (e.g., landscape).
52 | public init(
| `- note: add '@available' attribute to enclosing initializer
53 | selectedColor: Color = .primary,
54 | unselectedColor: Color = .secondary,
| `- error: 'secondary' is only available in macOS 10.15 or newer
55 | textStyle: Font.TextStyle = .caption2,
56 | iconSideLength: CGFloat = 24,
/Users/admin/builder/spi-builder-workspace/Sources/BarKit/BarConfiguration/Item/ItemConfiguration.swift:55:38: error: 'caption2' is only available in macOS 11.0 or newer
9 |
10 | /// Defines the visual appearance of a single bar item in isolation.
11 | public struct ItemConfiguration: Equatable {
| `- note: add '@available' attribute to enclosing struct
12 |
13 | /// The color applied to the icon and title of a selected item.
:
50 | /// - edgeInsets: Padding applied inside the item view in regular height mode.
51 | /// - edgeInsetsCompact: Padding applied inside the item view in compact height mode (e.g., landscape).
52 | public init(
| `- note: add '@available' attribute to enclosing initializer
53 | selectedColor: Color = .primary,
54 | unselectedColor: Color = .secondary,
55 | textStyle: Font.TextStyle = .caption2,
| `- error: 'caption2' is only available in macOS 11.0 or newer
56 | iconSideLength: CGFloat = 24,
57 | selectedIconScale: CGFloat = 1.1,
/Users/admin/builder/spi-builder-workspace/Sources/BarKit/BarConfiguration/SelectionIndicator/SelectionIndicatorConfiguration.swift:62:25: error: 'secondary' is only available in macOS 10.15 or newer
9 |
10 | /// Defines the visual appearance and behavior of the selection indicator.
11 | public struct SelectionIndicatorConfiguration {
| `- note: add '@available' attribute to enclosing struct
12 |
13 | // MARK: - Appearance
:
59 | /// - isDragGestureEnabled: Whether the user can drag the indicator between items.
60 | /// - effects: Active visual effects at the indicator boundary. Duplicate effects are ignored — only the first occurrence of each effect type is applied.
61 | public init(
| `- note: add '@available' attribute to enclosing initializer
62 | color: Color = .secondary.opacity(0.2),
| `- error: 'secondary' is only available in macOS 10.15 or newer
63 | border: BorderConfiguration? = nil,
64 | inset: EdgeInsets = .init(top: 2, leading: 2, bottom: 2, trailing: 2),
/Users/admin/builder/spi-builder-workspace/Sources/BarKit/BarConfiguration/SelectionIndicator/SelectionIndicatorConfiguration.swift:62:35: error: 'opacity' is only available in macOS 10.15 or newer
9 |
10 | /// Defines the visual appearance and behavior of the selection indicator.
11 | public struct SelectionIndicatorConfiguration {
| `- note: add '@available' attribute to enclosing struct
12 |
13 | // MARK: - Appearance
:
59 | /// - isDragGestureEnabled: Whether the user can drag the indicator between items.
60 | /// - effects: Active visual effects at the indicator boundary. Duplicate effects are ignored — only the first occurrence of each effect type is applied.
61 | public init(
| `- note: add '@available' attribute to enclosing initializer
62 | color: Color = .secondary.opacity(0.2),
| `- error: 'opacity' is only available in macOS 10.15 or newer
63 | border: BorderConfiguration? = nil,
64 | inset: EdgeInsets = .init(top: 2, leading: 2, bottom: 2, trailing: 2),
/Users/admin/builder/spi-builder-workspace/Sources/BarKit/BarConfiguration/Bar/BarConfiguration.swift:141:44: error: 'Animation' is only available in macOS 10.15 or newer
9 |
10 | /// A configuration object that defines the visual style, layout, and behavior of `BarView`.
11 | public struct BarConfiguration {
| `- note: add '@available' attribute to enclosing struct
12 |
13 | // MARK: - Layout
:
139 |
140 | /// Resolves the item state animation for use in view modifiers.
141 | public var resolvedItemStateAnimation: Animation? {
| | `- error: 'Animation' is only available in macOS 10.15 or newer
| `- note: add '@available' attribute to enclosing property
142 | itemStateAnimation?.animation
143 | }
/Users/admin/builder/spi-builder-workspace/Sources/BarKit/BarConfiguration/Bar/HapticFeedbackConfiguration.swift:31:26: error: 'SensoryFeedback' is only available in macOS 14.0 or newer
10 | /// Defines the haptic feedback style triggered when the selected bar item changes.
11 | /// Requires iOS 17 or later; has no effect on earlier versions.
12 | public enum HapticFeedbackConfiguration {
| `- note: add '@available' attribute to enclosing enum
13 |
14 | /// A feedback style that indicates a change in selection.
:
29 | /// Maps to the corresponding `SensoryFeedback` value.
30 | @available(iOS 17.0, *)
31 | var sensoryFeedback: SensoryFeedback {
| | `- error: 'SensoryFeedback' is only available in macOS 14.0 or newer
| `- note: add '@available' attribute to enclosing property
32 | switch self {
33 | case .selection: .selection
/Users/admin/builder/spi-builder-workspace/Sources/BarKit/BarConfiguration/Bar/ShadowConfiguration.swift:13:23: error: 'Color' is only available in macOS 10.15 or newer
9 |
10 | /// Defines the shadow appearance of the bar capsule.
11 | public struct ShadowConfiguration: Equatable, Sendable {
| `- note: add '@available' attribute to enclosing struct
12 | /// The shadow color.
13 | public var color: Color
| `- error: 'Color' is only available in macOS 10.15 or newer
14 | /// The shadow blur radius.
15 | public var radius: CGFloat
/Users/admin/builder/spi-builder-workspace/Sources/BarKit/BarConfiguration/Bar/ShadowConfiguration.swift:29:16: error: 'Color' is only available in macOS 10.15 or newer
9 |
10 | /// Defines the shadow appearance of the bar capsule.
11 | public struct ShadowConfiguration: Equatable, Sendable {
| `- note: add '@available' attribute to enclosing struct
12 | /// The shadow color.
13 | public var color: Color
:
26 | /// - x: The horizontal offset of the shadow.
27 | /// - y: The vertical offset of the shadow.
28 | public init(
| `- note: add '@available' attribute to enclosing initializer
29 | color: Color = .black.opacity(0.2),
| `- error: 'Color' is only available in macOS 10.15 or newer
30 | radius: CGFloat = 8,
31 | x: CGFloat = 0,
[52/54] Compiling BarKit BarLayoutAxis.swift
/Users/admin/builder/spi-builder-workspace/Sources/BarKit/BarConfiguration/Bar/BadgeConfiguration.swift:20:33: error: 'Color' is only available in macOS 10.15 or newer
9 |
10 | /// Defines the visual appearance of a badge overlay on a bar item.
11 | public struct BadgeConfiguration: Equatable, Sendable {
| `- note: add '@available' attribute to enclosing struct
12 |
13 | /// Horizontal offset applied to the badge after alignment.
:
18 |
19 | /// The background color of the badge.
20 | public var backgroundColor: Color
| `- error: 'Color' is only available in macOS 10.15 or newer
21 |
22 | /// The foreground color applied to the badge text or dot.
/Users/admin/builder/spi-builder-workspace/Sources/BarKit/BarConfiguration/Bar/BadgeConfiguration.swift:23:33: error: 'Color' is only available in macOS 10.15 or newer
9 |
10 | /// Defines the visual appearance of a badge overlay on a bar item.
11 | public struct BadgeConfiguration: Equatable, Sendable {
| `- note: add '@available' attribute to enclosing struct
12 |
13 | /// Horizontal offset applied to the badge after alignment.
:
21 |
22 | /// The foreground color applied to the badge text or dot.
23 | public var foregroundColor: Color
| `- error: 'Color' is only available in macOS 10.15 or newer
24 |
25 | /// The typography style for `.count` and `.label` badges.
/Users/admin/builder/spi-builder-workspace/Sources/BarKit/BarConfiguration/Bar/BadgeConfiguration.swift:26:27: error: 'Font' is only available in macOS 10.15 or newer
9 |
10 | /// Defines the visual appearance of a badge overlay on a bar item.
11 | public struct BadgeConfiguration: Equatable, Sendable {
| `- note: add '@available' attribute to enclosing struct
12 |
13 | /// Horizontal offset applied to the badge after alignment.
:
24 |
25 | /// The typography style for `.count` and `.label` badges.
26 | public var textStyle: Font.TextStyle
| `- error: 'Font' is only available in macOS 10.15 or newer
27 |
28 | /// Horizontal padding inside `.count` and `.label` badges.
/Users/admin/builder/spi-builder-workspace/Sources/BarKit/BarConfiguration/Bar/BadgeConfiguration.swift:49:20: error: 'Alignment' is only available in macOS 10.15 or newer
9 |
10 | /// Defines the visual appearance of a badge overlay on a bar item.
11 | public struct BadgeConfiguration: Equatable, Sendable {
| `- note: add '@available' attribute to enclosing struct
12 |
13 | /// Horizontal offset applied to the badge after alignment.
:
46 | /// - verticalPadding: Vertical padding inside `.count` and `.label` badges.
47 | /// - dotDiameter: The diameter of the `.dot` badge.
48 | public init(
| `- note: add '@available' attribute to enclosing initializer
49 | alignment: Alignment = .topTrailing,
| `- error: 'Alignment' is only available in macOS 10.15 or newer
50 | offsetX: CGFloat = 0,
51 | offsetY: CGFloat = 0,
/Users/admin/builder/spi-builder-workspace/Sources/BarKit/BarConfiguration/Bar/BadgeConfiguration.swift:52:26: error: 'Color' is only available in macOS 10.15 or newer
9 |
10 | /// Defines the visual appearance of a badge overlay on a bar item.
11 | public struct BadgeConfiguration: Equatable, Sendable {
| `- note: add '@available' attribute to enclosing struct
12 |
13 | /// Horizontal offset applied to the badge after alignment.
:
46 | /// - verticalPadding: Vertical padding inside `.count` and `.label` badges.
47 | /// - dotDiameter: The diameter of the `.dot` badge.
48 | public init(
| `- note: add '@available' attribute to enclosing initializer
49 | alignment: Alignment = .topTrailing,
50 | offsetX: CGFloat = 0,
51 | offsetY: CGFloat = 0,
52 | backgroundColor: Color = .red,
| `- error: 'Color' is only available in macOS 10.15 or newer
53 | foregroundColor: Color = .white,
54 | textStyle: Font.TextStyle = .caption2,
/Users/admin/builder/spi-builder-workspace/Sources/BarKit/BarConfiguration/Bar/BadgeConfiguration.swift:53:26: error: 'Color' is only available in macOS 10.15 or newer
9 |
10 | /// Defines the visual appearance of a badge overlay on a bar item.
11 | public struct BadgeConfiguration: Equatable, Sendable {
| `- note: add '@available' attribute to enclosing struct
12 |
13 | /// Horizontal offset applied to the badge after alignment.
:
46 | /// - verticalPadding: Vertical padding inside `.count` and `.label` badges.
47 | /// - dotDiameter: The diameter of the `.dot` badge.
48 | public init(
| `- note: add '@available' attribute to enclosing initializer
49 | alignment: Alignment = .topTrailing,
50 | offsetX: CGFloat = 0,
51 | offsetY: CGFloat = 0,
52 | backgroundColor: Color = .red,
53 | foregroundColor: Color = .white,
| `- error: 'Color' is only available in macOS 10.15 or newer
54 | textStyle: Font.TextStyle = .caption2,
55 | horizontalPadding: CGFloat = 4,
/Users/admin/builder/spi-builder-workspace/Sources/BarKit/BarConfiguration/Bar/BadgeConfiguration.swift:54:20: error: 'Font' is only available in macOS 10.15 or newer
9 |
10 | /// Defines the visual appearance of a badge overlay on a bar item.
11 | public struct BadgeConfiguration: Equatable, Sendable {
| `- note: add '@available' attribute to enclosing struct
12 |
13 | /// Horizontal offset applied to the badge after alignment.
:
46 | /// - verticalPadding: Vertical padding inside `.count` and `.label` badges.
47 | /// - dotDiameter: The diameter of the `.dot` badge.
48 | public init(
| `- note: add '@available' attribute to enclosing initializer
49 | alignment: Alignment = .topTrailing,
50 | offsetX: CGFloat = 0,
:
52 | backgroundColor: Color = .red,
53 | foregroundColor: Color = .white,
54 | textStyle: Font.TextStyle = .caption2,
| `- error: 'Font' is only available in macOS 10.15 or newer
55 | horizontalPadding: CGFloat = 4,
56 | verticalPadding: CGFloat = 2,
/Users/admin/builder/spi-builder-workspace/Sources/BarKit/BarConfiguration/Bar/BadgeConfiguration.swift:49:33: error: 'topTrailing' is only available in macOS 10.15 or newer
9 |
10 | /// Defines the visual appearance of a badge overlay on a bar item.
11 | public struct BadgeConfiguration: Equatable, Sendable {
| `- note: add '@available' attribute to enclosing struct
12 |
13 | /// Horizontal offset applied to the badge after alignment.
:
46 | /// - verticalPadding: Vertical padding inside `.count` and `.label` badges.
47 | /// - dotDiameter: The diameter of the `.dot` badge.
48 | public init(
| `- note: add '@available' attribute to enclosing initializer
49 | alignment: Alignment = .topTrailing,
| `- error: 'topTrailing' is only available in macOS 10.15 or newer
50 | offsetX: CGFloat = 0,
51 | offsetY: CGFloat = 0,
/Users/admin/builder/spi-builder-workspace/Sources/BarKit/BarConfiguration/Bar/BadgeConfiguration.swift:52:35: error: 'red' is only available in macOS 10.15 or newer
9 |
10 | /// Defines the visual appearance of a badge overlay on a bar item.
11 | public struct BadgeConfiguration: Equatable, Sendable {
| `- note: add '@available' attribute to enclosing struct
12 |
13 | /// Horizontal offset applied to the badge after alignment.
:
46 | /// - verticalPadding: Vertical padding inside `.count` and `.label` badges.
47 | /// - dotDiameter: The diameter of the `.dot` badge.
48 | public init(
| `- note: add '@available' attribute to enclosing initializer
49 | alignment: Alignment = .topTrailing,
50 | offsetX: CGFloat = 0,
51 | offsetY: CGFloat = 0,
52 | backgroundColor: Color = .red,
| `- error: 'red' is only available in macOS 10.15 or newer
53 | foregroundColor: Color = .white,
54 | textStyle: Font.TextStyle = .caption2,
/Users/admin/builder/spi-builder-workspace/Sources/BarKit/BarConfiguration/Bar/BadgeConfiguration.swift:53:35: error: 'white' is only available in macOS 10.15 or newer
9 |
10 | /// Defines the visual appearance of a badge overlay on a bar item.
11 | public struct BadgeConfiguration: Equatable, Sendable {
| `- note: add '@available' attribute to enclosing struct
12 |
13 | /// Horizontal offset applied to the badge after alignment.
:
46 | /// - verticalPadding: Vertical padding inside `.count` and `.label` badges.
47 | /// - dotDiameter: The diameter of the `.dot` badge.
48 | public init(
| `- note: add '@available' attribute to enclosing initializer
49 | alignment: Alignment = .topTrailing,
50 | offsetX: CGFloat = 0,
51 | offsetY: CGFloat = 0,
52 | backgroundColor: Color = .red,
53 | foregroundColor: Color = .white,
| `- error: 'white' is only available in macOS 10.15 or newer
54 | textStyle: Font.TextStyle = .caption2,
55 | horizontalPadding: CGFloat = 4,
/Users/admin/builder/spi-builder-workspace/Sources/BarKit/BarConfiguration/Bar/BadgeConfiguration.swift:54:38: error: 'caption2' is only available in macOS 11.0 or newer
9 |
10 | /// Defines the visual appearance of a badge overlay on a bar item.
11 | public struct BadgeConfiguration: Equatable, Sendable {
| `- note: add '@available' attribute to enclosing struct
12 |
13 | /// Horizontal offset applied to the badge after alignment.
:
46 | /// - verticalPadding: Vertical padding inside `.count` and `.label` badges.
47 | /// - dotDiameter: The diameter of the `.dot` badge.
48 | public init(
| `- note: add '@available' attribute to enclosing initializer
49 | alignment: Alignment = .topTrailing,
50 | offsetX: CGFloat = 0,
:
52 | backgroundColor: Color = .red,
53 | foregroundColor: Color = .white,
54 | textStyle: Font.TextStyle = .caption2,
| `- error: 'caption2' is only available in macOS 11.0 or newer
55 | horizontalPadding: CGFloat = 4,
56 | verticalPadding: CGFloat = 2,
/Users/admin/builder/spi-builder-workspace/Sources/BarKit/BarConfiguration/Bar/ShadowConfiguration.swift:29:25: error: 'black' is only available in macOS 10.15 or newer
9 |
10 | /// Defines the shadow appearance of the bar capsule.
11 | public struct ShadowConfiguration: Equatable, Sendable {
| `- note: add '@available' attribute to enclosing struct
12 | /// The shadow color.
13 | public var color: Color
:
26 | /// - x: The horizontal offset of the shadow.
27 | /// - y: The vertical offset of the shadow.
28 | public init(
| `- note: add '@available' attribute to enclosing initializer
29 | color: Color = .black.opacity(0.2),
| `- error: 'black' is only available in macOS 10.15 or newer
30 | radius: CGFloat = 8,
31 | x: CGFloat = 0,
/Users/admin/builder/spi-builder-workspace/Sources/BarKit/BarConfiguration/Bar/ShadowConfiguration.swift:29:31: error: 'opacity' is only available in macOS 10.15 or newer
9 |
10 | /// Defines the shadow appearance of the bar capsule.
11 | public struct ShadowConfiguration: Equatable, Sendable {
| `- note: add '@available' attribute to enclosing struct
12 | /// The shadow color.
13 | public var color: Color
:
26 | /// - x: The horizontal offset of the shadow.
27 | /// - y: The vertical offset of the shadow.
28 | public init(
| `- note: add '@available' attribute to enclosing initializer
29 | color: Color = .black.opacity(0.2),
| `- error: 'opacity' is only available in macOS 10.15 or newer
30 | radius: CGFloat = 8,
31 | x: CGFloat = 0,
/Users/admin/builder/spi-builder-workspace/Sources/BarKit/BarConfiguration/Background/BarBackground.swift:15:47: error: 'clear' is only available in macOS 10.15 or newer
9 |
10 | /// Defines the background appearance of the bar.
11 | public enum BarBackground {
| `- note: add '@available' attribute to enclosing enum
12 | /// A solid color fill with no blur.
13 | case color(Color)
14 | /// A system material blur with an optional tint color layered on top.
15 | case material(BarMaterial, tint: Color = .clear)
| `- error: 'clear' is only available in macOS 10.15 or newer
16 | /// A custom shader-based blur with an optional tint color layered on top.
17 | case customBlur(CustomBlurConfiguration, tint: Color = .clear)
/Users/admin/builder/spi-builder-workspace/Sources/BarKit/BarConfiguration/Item/ItemConfiguration.swift:53:33: error: 'primary' is only available in macOS 10.15 or newer
9 |
10 | /// Defines the visual appearance of a single bar item in isolation.
11 | public struct ItemConfiguration: Equatable {
| `- note: add '@available' attribute to enclosing struct
12 |
13 | /// The color applied to the icon and title of a selected item.
:
50 | /// - edgeInsets: Padding applied inside the item view in regular height mode.
51 | /// - edgeInsetsCompact: Padding applied inside the item view in compact height mode (e.g., landscape).
52 | public init(
| `- note: add '@available' attribute to enclosing initializer
53 | selectedColor: Color = .primary,
| `- error: 'primary' is only available in macOS 10.15 or newer
54 | unselectedColor: Color = .secondary,
55 | textStyle: Font.TextStyle = .caption2,
/Users/admin/builder/spi-builder-workspace/Sources/BarKit/BarConfiguration/Item/ItemConfiguration.swift:54:35: error: 'secondary' is only available in macOS 10.15 or newer
9 |
10 | /// Defines the visual appearance of a single bar item in isolation.
11 | public struct ItemConfiguration: Equatable {
| `- note: add '@available' attribute to enclosing struct
12 |
13 | /// The color applied to the icon and title of a selected item.
:
50 | /// - edgeInsets: Padding applied inside the item view in regular height mode.
51 | /// - edgeInsetsCompact: Padding applied inside the item view in compact height mode (e.g., landscape).
52 | public init(
| `- note: add '@available' attribute to enclosing initializer
53 | selectedColor: Color = .primary,
54 | unselectedColor: Color = .secondary,
| `- error: 'secondary' is only available in macOS 10.15 or newer
55 | textStyle: Font.TextStyle = .caption2,
56 | iconSideLength: CGFloat = 24,
/Users/admin/builder/spi-builder-workspace/Sources/BarKit/BarConfiguration/Item/ItemConfiguration.swift:55:38: error: 'caption2' is only available in macOS 11.0 or newer
9 |
10 | /// Defines the visual appearance of a single bar item in isolation.
11 | public struct ItemConfiguration: Equatable {
| `- note: add '@available' attribute to enclosing struct
12 |
13 | /// The color applied to the icon and title of a selected item.
:
50 | /// - edgeInsets: Padding applied inside the item view in regular height mode.
51 | /// - edgeInsetsCompact: Padding applied inside the item view in compact height mode (e.g., landscape).
52 | public init(
| `- note: add '@available' attribute to enclosing initializer
53 | selectedColor: Color = .primary,
54 | unselectedColor: Color = .secondary,
55 | textStyle: Font.TextStyle = .caption2,
| `- error: 'caption2' is only available in macOS 11.0 or newer
56 | iconSideLength: CGFloat = 24,
57 | selectedIconScale: CGFloat = 1.1,
/Users/admin/builder/spi-builder-workspace/Sources/BarKit/BarConfiguration/SelectionIndicator/SelectionIndicatorConfiguration.swift:62:25: error: 'secondary' is only available in macOS 10.15 or newer
9 |
10 | /// Defines the visual appearance and behavior of the selection indicator.
11 | public struct SelectionIndicatorConfiguration {
| `- note: add '@available' attribute to enclosing struct
12 |
13 | // MARK: - Appearance
:
59 | /// - isDragGestureEnabled: Whether the user can drag the indicator between items.
60 | /// - effects: Active visual effects at the indicator boundary. Duplicate effects are ignored — only the first occurrence of each effect type is applied.
61 | public init(
| `- note: add '@available' attribute to enclosing initializer
62 | color: Color = .secondary.opacity(0.2),
| `- error: 'secondary' is only available in macOS 10.15 or newer
63 | border: BorderConfiguration? = nil,
64 | inset: EdgeInsets = .init(top: 2, leading: 2, bottom: 2, trailing: 2),
/Users/admin/builder/spi-builder-workspace/Sources/BarKit/BarConfiguration/SelectionIndicator/SelectionIndicatorConfiguration.swift:62:35: error: 'opacity' is only available in macOS 10.15 or newer
9 |
10 | /// Defines the visual appearance and behavior of the selection indicator.
11 | public struct SelectionIndicatorConfiguration {
| `- note: add '@available' attribute to enclosing struct
12 |
13 | // MARK: - Appearance
:
59 | /// - isDragGestureEnabled: Whether the user can drag the indicator between items.
60 | /// - effects: Active visual effects at the indicator boundary. Duplicate effects are ignored — only the first occurrence of each effect type is applied.
61 | public init(
| `- note: add '@available' attribute to enclosing initializer
62 | color: Color = .secondary.opacity(0.2),
| `- error: 'opacity' is only available in macOS 10.15 or newer
63 | border: BorderConfiguration? = nil,
64 | inset: EdgeInsets = .init(top: 2, leading: 2, bottom: 2, trailing: 2),
/Users/admin/builder/spi-builder-workspace/Sources/BarKit/BarConfiguration/Bar/BarConfiguration.swift:141:44: error: 'Animation' is only available in macOS 10.15 or newer
9 |
10 | /// A configuration object that defines the visual style, layout, and behavior of `BarView`.
11 | public struct BarConfiguration {
| `- note: add '@available' attribute to enclosing struct
12 |
13 | // MARK: - Layout
:
139 |
140 | /// Resolves the item state animation for use in view modifiers.
141 | public var resolvedItemStateAnimation: Animation? {
| | `- error: 'Animation' is only available in macOS 10.15 or newer
| `- note: add '@available' attribute to enclosing property
142 | itemStateAnimation?.animation
143 | }
/Users/admin/builder/spi-builder-workspace/Sources/BarKit/BarConfiguration/Bar/HapticFeedbackConfiguration.swift:31:26: error: 'SensoryFeedback' is only available in macOS 14.0 or newer
10 | /// Defines the haptic feedback style triggered when the selected bar item changes.
11 | /// Requires iOS 17 or later; has no effect on earlier versions.
12 | public enum HapticFeedbackConfiguration {
| `- note: add '@available' attribute to enclosing enum
13 |
14 | /// A feedback style that indicates a change in selection.
:
29 | /// Maps to the corresponding `SensoryFeedback` value.
30 | @available(iOS 17.0, *)
31 | var sensoryFeedback: SensoryFeedback {
| | `- error: 'SensoryFeedback' is only available in macOS 14.0 or newer
| `- note: add '@available' attribute to enclosing property
32 | switch self {
33 | case .selection: .selection
/Users/admin/builder/spi-builder-workspace/Sources/BarKit/BarConfiguration/Bar/ShadowConfiguration.swift:13:23: error: 'Color' is only available in macOS 10.15 or newer
9 |
10 | /// Defines the shadow appearance of the bar capsule.
11 | public struct ShadowConfiguration: Equatable, Sendable {
| `- note: add '@available' attribute to enclosing struct
12 | /// The shadow color.
13 | public var color: Color
| `- error: 'Color' is only available in macOS 10.15 or newer
14 | /// The shadow blur radius.
15 | public var radius: CGFloat
/Users/admin/builder/spi-builder-workspace/Sources/BarKit/BarConfiguration/Bar/ShadowConfiguration.swift:29:16: error: 'Color' is only available in macOS 10.15 or newer
9 |
10 | /// Defines the shadow appearance of the bar capsule.
11 | public struct ShadowConfiguration: Equatable, Sendable {
| `- note: add '@available' attribute to enclosing struct
12 | /// The shadow color.
13 | public var color: Color
:
26 | /// - x: The horizontal offset of the shadow.
27 | /// - y: The vertical offset of the shadow.
28 | public init(
| `- note: add '@available' attribute to enclosing initializer
29 | color: Color = .black.opacity(0.2),
| `- error: 'Color' is only available in macOS 10.15 or newer
30 | radius: CGFloat = 8,
31 | x: CGFloat = 0,
[53/54] Compiling BarKit HapticFeedbackConfiguration.swift
/Users/admin/builder/spi-builder-workspace/Sources/BarKit/BarConfiguration/Bar/BadgeConfiguration.swift:20:33: error: 'Color' is only available in macOS 10.15 or newer
9 |
10 | /// Defines the visual appearance of a badge overlay on a bar item.
11 | public struct BadgeConfiguration: Equatable, Sendable {
| `- note: add '@available' attribute to enclosing struct
12 |
13 | /// Horizontal offset applied to the badge after alignment.
:
18 |
19 | /// The background color of the badge.
20 | public var backgroundColor: Color
| `- error: 'Color' is only available in macOS 10.15 or newer
21 |
22 | /// The foreground color applied to the badge text or dot.
/Users/admin/builder/spi-builder-workspace/Sources/BarKit/BarConfiguration/Bar/BadgeConfiguration.swift:23:33: error: 'Color' is only available in macOS 10.15 or newer
9 |
10 | /// Defines the visual appearance of a badge overlay on a bar item.
11 | public struct BadgeConfiguration: Equatable, Sendable {
| `- note: add '@available' attribute to enclosing struct
12 |
13 | /// Horizontal offset applied to the badge after alignment.
:
21 |
22 | /// The foreground color applied to the badge text or dot.
23 | public var foregroundColor: Color
| `- error: 'Color' is only available in macOS 10.15 or newer
24 |
25 | /// The typography style for `.count` and `.label` badges.
/Users/admin/builder/spi-builder-workspace/Sources/BarKit/BarConfiguration/Bar/BadgeConfiguration.swift:26:27: error: 'Font' is only available in macOS 10.15 or newer
9 |
10 | /// Defines the visual appearance of a badge overlay on a bar item.
11 | public struct BadgeConfiguration: Equatable, Sendable {
| `- note: add '@available' attribute to enclosing struct
12 |
13 | /// Horizontal offset applied to the badge after alignment.
:
24 |
25 | /// The typography style for `.count` and `.label` badges.
26 | public var textStyle: Font.TextStyle
| `- error: 'Font' is only available in macOS 10.15 or newer
27 |
28 | /// Horizontal padding inside `.count` and `.label` badges.
/Users/admin/builder/spi-builder-workspace/Sources/BarKit/BarConfiguration/Bar/BadgeConfiguration.swift:49:20: error: 'Alignment' is only available in macOS 10.15 or newer
9 |
10 | /// Defines the visual appearance of a badge overlay on a bar item.
11 | public struct BadgeConfiguration: Equatable, Sendable {
| `- note: add '@available' attribute to enclosing struct
12 |
13 | /// Horizontal offset applied to the badge after alignment.
:
46 | /// - verticalPadding: Vertical padding inside `.count` and `.label` badges.
47 | /// - dotDiameter: The diameter of the `.dot` badge.
48 | public init(
| `- note: add '@available' attribute to enclosing initializer
49 | alignment: Alignment = .topTrailing,
| `- error: 'Alignment' is only available in macOS 10.15 or newer
50 | offsetX: CGFloat = 0,
51 | offsetY: CGFloat = 0,
/Users/admin/builder/spi-builder-workspace/Sources/BarKit/BarConfiguration/Bar/BadgeConfiguration.swift:52:26: error: 'Color' is only available in macOS 10.15 or newer
9 |
10 | /// Defines the visual appearance of a badge overlay on a bar item.
11 | public struct BadgeConfiguration: Equatable, Sendable {
| `- note: add '@available' attribute to enclosing struct
12 |
13 | /// Horizontal offset applied to the badge after alignment.
:
46 | /// - verticalPadding: Vertical padding inside `.count` and `.label` badges.
47 | /// - dotDiameter: The diameter of the `.dot` badge.
48 | public init(
| `- note: add '@available' attribute to enclosing initializer
49 | alignment: Alignment = .topTrailing,
50 | offsetX: CGFloat = 0,
51 | offsetY: CGFloat = 0,
52 | backgroundColor: Color = .red,
| `- error: 'Color' is only available in macOS 10.15 or newer
53 | foregroundColor: Color = .white,
54 | textStyle: Font.TextStyle = .caption2,
/Users/admin/builder/spi-builder-workspace/Sources/BarKit/BarConfiguration/Bar/BadgeConfiguration.swift:53:26: error: 'Color' is only available in macOS 10.15 or newer
9 |
10 | /// Defines the visual appearance of a badge overlay on a bar item.
11 | public struct BadgeConfiguration: Equatable, Sendable {
| `- note: add '@available' attribute to enclosing struct
12 |
13 | /// Horizontal offset applied to the badge after alignment.
:
46 | /// - verticalPadding: Vertical padding inside `.count` and `.label` badges.
47 | /// - dotDiameter: The diameter of the `.dot` badge.
48 | public init(
| `- note: add '@available' attribute to enclosing initializer
49 | alignment: Alignment = .topTrailing,
50 | offsetX: CGFloat = 0,
51 | offsetY: CGFloat = 0,
52 | backgroundColor: Color = .red,
53 | foregroundColor: Color = .white,
| `- error: 'Color' is only available in macOS 10.15 or newer
54 | textStyle: Font.TextStyle = .caption2,
55 | horizontalPadding: CGFloat = 4,
/Users/admin/builder/spi-builder-workspace/Sources/BarKit/BarConfiguration/Bar/BadgeConfiguration.swift:54:20: error: 'Font' is only available in macOS 10.15 or newer
9 |
10 | /// Defines the visual appearance of a badge overlay on a bar item.
11 | public struct BadgeConfiguration: Equatable, Sendable {
| `- note: add '@available' attribute to enclosing struct
12 |
13 | /// Horizontal offset applied to the badge after alignment.
:
46 | /// - verticalPadding: Vertical padding inside `.count` and `.label` badges.
47 | /// - dotDiameter: The diameter of the `.dot` badge.
48 | public init(
| `- note: add '@available' attribute to enclosing initializer
49 | alignment: Alignment = .topTrailing,
50 | offsetX: CGFloat = 0,
:
52 | backgroundColor: Color = .red,
53 | foregroundColor: Color = .white,
54 | textStyle: Font.TextStyle = .caption2,
| `- error: 'Font' is only available in macOS 10.15 or newer
55 | horizontalPadding: CGFloat = 4,
56 | verticalPadding: CGFloat = 2,
/Users/admin/builder/spi-builder-workspace/Sources/BarKit/BarConfiguration/Bar/BadgeConfiguration.swift:49:33: error: 'topTrailing' is only available in macOS 10.15 or newer
9 |
10 | /// Defines the visual appearance of a badge overlay on a bar item.
11 | public struct BadgeConfiguration: Equatable, Sendable {
| `- note: add '@available' attribute to enclosing struct
12 |
13 | /// Horizontal offset applied to the badge after alignment.
:
46 | /// - verticalPadding: Vertical padding inside `.count` and `.label` badges.
47 | /// - dotDiameter: The diameter of the `.dot` badge.
48 | public init(
| `- note: add '@available' attribute to enclosing initializer
49 | alignment: Alignment = .topTrailing,
| `- error: 'topTrailing' is only available in macOS 10.15 or newer
50 | offsetX: CGFloat = 0,
51 | offsetY: CGFloat = 0,
/Users/admin/builder/spi-builder-workspace/Sources/BarKit/BarConfiguration/Bar/BadgeConfiguration.swift:52:35: error: 'red' is only available in macOS 10.15 or newer
9 |
10 | /// Defines the visual appearance of a badge overlay on a bar item.
11 | public struct BadgeConfiguration: Equatable, Sendable {
| `- note: add '@available' attribute to enclosing struct
12 |
13 | /// Horizontal offset applied to the badge after alignment.
:
46 | /// - verticalPadding: Vertical padding inside `.count` and `.label` badges.
47 | /// - dotDiameter: The diameter of the `.dot` badge.
48 | public init(
| `- note: add '@available' attribute to enclosing initializer
49 | alignment: Alignment = .topTrailing,
50 | offsetX: CGFloat = 0,
51 | offsetY: CGFloat = 0,
52 | backgroundColor: Color = .red,
| `- error: 'red' is only available in macOS 10.15 or newer
53 | foregroundColor: Color = .white,
54 | textStyle: Font.TextStyle = .caption2,
/Users/admin/builder/spi-builder-workspace/Sources/BarKit/BarConfiguration/Bar/BadgeConfiguration.swift:53:35: error: 'white' is only available in macOS 10.15 or newer
9 |
10 | /// Defines the visual appearance of a badge overlay on a bar item.
11 | public struct BadgeConfiguration: Equatable, Sendable {
| `- note: add '@available' attribute to enclosing struct
12 |
13 | /// Horizontal offset applied to the badge after alignment.
:
46 | /// - verticalPadding: Vertical padding inside `.count` and `.label` badges.
47 | /// - dotDiameter: The diameter of the `.dot` badge.
48 | public init(
| `- note: add '@available' attribute to enclosing initializer
49 | alignment: Alignment = .topTrailing,
50 | offsetX: CGFloat = 0,
51 | offsetY: CGFloat = 0,
52 | backgroundColor: Color = .red,
53 | foregroundColor: Color = .white,
| `- error: 'white' is only available in macOS 10.15 or newer
54 | textStyle: Font.TextStyle = .caption2,
55 | horizontalPadding: CGFloat = 4,
/Users/admin/builder/spi-builder-workspace/Sources/BarKit/BarConfiguration/Bar/BadgeConfiguration.swift:54:38: error: 'caption2' is only available in macOS 11.0 or newer
9 |
10 | /// Defines the visual appearance of a badge overlay on a bar item.
11 | public struct BadgeConfiguration: Equatable, Sendable {
| `- note: add '@available' attribute to enclosing struct
12 |
13 | /// Horizontal offset applied to the badge after alignment.
:
46 | /// - verticalPadding: Vertical padding inside `.count` and `.label` badges.
47 | /// - dotDiameter: The diameter of the `.dot` badge.
48 | public init(
| `- note: add '@available' attribute to enclosing initializer
49 | alignment: Alignment = .topTrailing,
50 | offsetX: CGFloat = 0,
:
52 | backgroundColor: Color = .red,
53 | foregroundColor: Color = .white,
54 | textStyle: Font.TextStyle = .caption2,
| `- error: 'caption2' is only available in macOS 11.0 or newer
55 | horizontalPadding: CGFloat = 4,
56 | verticalPadding: CGFloat = 2,
/Users/admin/builder/spi-builder-workspace/Sources/BarKit/BarConfiguration/Bar/ShadowConfiguration.swift:29:25: error: 'black' is only available in macOS 10.15 or newer
9 |
10 | /// Defines the shadow appearance of the bar capsule.
11 | public struct ShadowConfiguration: Equatable, Sendable {
| `- note: add '@available' attribute to enclosing struct
12 | /// The shadow color.
13 | public var color: Color
:
26 | /// - x: The horizontal offset of the shadow.
27 | /// - y: The vertical offset of the shadow.
28 | public init(
| `- note: add '@available' attribute to enclosing initializer
29 | color: Color = .black.opacity(0.2),
| `- error: 'black' is only available in macOS 10.15 or newer
30 | radius: CGFloat = 8,
31 | x: CGFloat = 0,
/Users/admin/builder/spi-builder-workspace/Sources/BarKit/BarConfiguration/Bar/ShadowConfiguration.swift:29:31: error: 'opacity' is only available in macOS 10.15 or newer
9 |
10 | /// Defines the shadow appearance of the bar capsule.
11 | public struct ShadowConfiguration: Equatable, Sendable {
| `- note: add '@available' attribute to enclosing struct
12 | /// The shadow color.
13 | public var color: Color
:
26 | /// - x: The horizontal offset of the shadow.
27 | /// - y: The vertical offset of the shadow.
28 | public init(
| `- note: add '@available' attribute to enclosing initializer
29 | color: Color = .black.opacity(0.2),
| `- error: 'opacity' is only available in macOS 10.15 or newer
30 | radius: CGFloat = 8,
31 | x: CGFloat = 0,
/Users/admin/builder/spi-builder-workspace/Sources/BarKit/BarConfiguration/Background/BarBackground.swift:15:47: error: 'clear' is only available in macOS 10.15 or newer
9 |
10 | /// Defines the background appearance of the bar.
11 | public enum BarBackground {
| `- note: add '@available' attribute to enclosing enum
12 | /// A solid color fill with no blur.
13 | case color(Color)
14 | /// A system material blur with an optional tint color layered on top.
15 | case material(BarMaterial, tint: Color = .clear)
| `- error: 'clear' is only available in macOS 10.15 or newer
16 | /// A custom shader-based blur with an optional tint color layered on top.
17 | case customBlur(CustomBlurConfiguration, tint: Color = .clear)
/Users/admin/builder/spi-builder-workspace/Sources/BarKit/BarConfiguration/Item/ItemConfiguration.swift:53:33: error: 'primary' is only available in macOS 10.15 or newer
9 |
10 | /// Defines the visual appearance of a single bar item in isolation.
11 | public struct ItemConfiguration: Equatable {
| `- note: add '@available' attribute to enclosing struct
12 |
13 | /// The color applied to the icon and title of a selected item.
:
50 | /// - edgeInsets: Padding applied inside the item view in regular height mode.
51 | /// - edgeInsetsCompact: Padding applied inside the item view in compact height mode (e.g., landscape).
52 | public init(
| `- note: add '@available' attribute to enclosing initializer
53 | selectedColor: Color = .primary,
| `- error: 'primary' is only available in macOS 10.15 or newer
54 | unselectedColor: Color = .secondary,
55 | textStyle: Font.TextStyle = .caption2,
/Users/admin/builder/spi-builder-workspace/Sources/BarKit/BarConfiguration/Item/ItemConfiguration.swift:54:35: error: 'secondary' is only available in macOS 10.15 or newer
9 |
10 | /// Defines the visual appearance of a single bar item in isolation.
11 | public struct ItemConfiguration: Equatable {
| `- note: add '@available' attribute to enclosing struct
12 |
13 | /// The color applied to the icon and title of a selected item.
:
50 | /// - edgeInsets: Padding applied inside the item view in regular height mode.
51 | /// - edgeInsetsCompact: Padding applied inside the item view in compact height mode (e.g., landscape).
52 | public init(
| `- note: add '@available' attribute to enclosing initializer
53 | selectedColor: Color = .primary,
54 | unselectedColor: Color = .secondary,
| `- error: 'secondary' is only available in macOS 10.15 or newer
55 | textStyle: Font.TextStyle = .caption2,
56 | iconSideLength: CGFloat = 24,
/Users/admin/builder/spi-builder-workspace/Sources/BarKit/BarConfiguration/Item/ItemConfiguration.swift:55:38: error: 'caption2' is only available in macOS 11.0 or newer
9 |
10 | /// Defines the visual appearance of a single bar item in isolation.
11 | public struct ItemConfiguration: Equatable {
| `- note: add '@available' attribute to enclosing struct
12 |
13 | /// The color applied to the icon and title of a selected item.
:
50 | /// - edgeInsets: Padding applied inside the item view in regular height mode.
51 | /// - edgeInsetsCompact: Padding applied inside the item view in compact height mode (e.g., landscape).
52 | public init(
| `- note: add '@available' attribute to enclosing initializer
53 | selectedColor: Color = .primary,
54 | unselectedColor: Color = .secondary,
55 | textStyle: Font.TextStyle = .caption2,
| `- error: 'caption2' is only available in macOS 11.0 or newer
56 | iconSideLength: CGFloat = 24,
57 | selectedIconScale: CGFloat = 1.1,
/Users/admin/builder/spi-builder-workspace/Sources/BarKit/BarConfiguration/SelectionIndicator/SelectionIndicatorConfiguration.swift:62:25: error: 'secondary' is only available in macOS 10.15 or newer
9 |
10 | /// Defines the visual appearance and behavior of the selection indicator.
11 | public struct SelectionIndicatorConfiguration {
| `- note: add '@available' attribute to enclosing struct
12 |
13 | // MARK: - Appearance
:
59 | /// - isDragGestureEnabled: Whether the user can drag the indicator between items.
60 | /// - effects: Active visual effects at the indicator boundary. Duplicate effects are ignored — only the first occurrence of each effect type is applied.
61 | public init(
| `- note: add '@available' attribute to enclosing initializer
62 | color: Color = .secondary.opacity(0.2),
| `- error: 'secondary' is only available in macOS 10.15 or newer
63 | border: BorderConfiguration? = nil,
64 | inset: EdgeInsets = .init(top: 2, leading: 2, bottom: 2, trailing: 2),
/Users/admin/builder/spi-builder-workspace/Sources/BarKit/BarConfiguration/SelectionIndicator/SelectionIndicatorConfiguration.swift:62:35: error: 'opacity' is only available in macOS 10.15 or newer
9 |
10 | /// Defines the visual appearance and behavior of the selection indicator.
11 | public struct SelectionIndicatorConfiguration {
| `- note: add '@available' attribute to enclosing struct
12 |
13 | // MARK: - Appearance
:
59 | /// - isDragGestureEnabled: Whether the user can drag the indicator between items.
60 | /// - effects: Active visual effects at the indicator boundary. Duplicate effects are ignored — only the first occurrence of each effect type is applied.
61 | public init(
| `- note: add '@available' attribute to enclosing initializer
62 | color: Color = .secondary.opacity(0.2),
| `- error: 'opacity' is only available in macOS 10.15 or newer
63 | border: BorderConfiguration? = nil,
64 | inset: EdgeInsets = .init(top: 2, leading: 2, bottom: 2, trailing: 2),
/Users/admin/builder/spi-builder-workspace/Sources/BarKit/BarConfiguration/Bar/BarConfiguration.swift:141:44: error: 'Animation' is only available in macOS 10.15 or newer
9 |
10 | /// A configuration object that defines the visual style, layout, and behavior of `BarView`.
11 | public struct BarConfiguration {
| `- note: add '@available' attribute to enclosing struct
12 |
13 | // MARK: - Layout
:
139 |
140 | /// Resolves the item state animation for use in view modifiers.
141 | public var resolvedItemStateAnimation: Animation? {
| | `- error: 'Animation' is only available in macOS 10.15 or newer
| `- note: add '@available' attribute to enclosing property
142 | itemStateAnimation?.animation
143 | }
/Users/admin/builder/spi-builder-workspace/Sources/BarKit/BarConfiguration/Bar/HapticFeedbackConfiguration.swift:31:26: error: 'SensoryFeedback' is only available in macOS 14.0 or newer
10 | /// Defines the haptic feedback style triggered when the selected bar item changes.
11 | /// Requires iOS 17 or later; has no effect on earlier versions.
12 | public enum HapticFeedbackConfiguration {
| `- note: add '@available' attribute to enclosing enum
13 |
14 | /// A feedback style that indicates a change in selection.
:
29 | /// Maps to the corresponding `SensoryFeedback` value.
30 | @available(iOS 17.0, *)
31 | var sensoryFeedback: SensoryFeedback {
| | `- error: 'SensoryFeedback' is only available in macOS 14.0 or newer
| `- note: add '@available' attribute to enclosing property
32 | switch self {
33 | case .selection: .selection
/Users/admin/builder/spi-builder-workspace/Sources/BarKit/BarConfiguration/Bar/ShadowConfiguration.swift:13:23: error: 'Color' is only available in macOS 10.15 or newer
9 |
10 | /// Defines the shadow appearance of the bar capsule.
11 | public struct ShadowConfiguration: Equatable, Sendable {
| `- note: add '@available' attribute to enclosing struct
12 | /// The shadow color.
13 | public var color: Color
| `- error: 'Color' is only available in macOS 10.15 or newer
14 | /// The shadow blur radius.
15 | public var radius: CGFloat
/Users/admin/builder/spi-builder-workspace/Sources/BarKit/BarConfiguration/Bar/ShadowConfiguration.swift:29:16: error: 'Color' is only available in macOS 10.15 or newer
9 |
10 | /// Defines the shadow appearance of the bar capsule.
11 | public struct ShadowConfiguration: Equatable, Sendable {
| `- note: add '@available' attribute to enclosing struct
12 | /// The shadow color.
13 | public var color: Color
:
26 | /// - x: The horizontal offset of the shadow.
27 | /// - y: The vertical offset of the shadow.
28 | public init(
| `- note: add '@available' attribute to enclosing initializer
29 | color: Color = .black.opacity(0.2),
| `- error: 'Color' is only available in macOS 10.15 or newer
30 | radius: CGFloat = 8,
31 | x: CGFloat = 0,
[54/54] Compiling BarKit ShadowConfiguration.swift
/Users/admin/builder/spi-builder-workspace/Sources/BarKit/BarConfiguration/Bar/BadgeConfiguration.swift:20:33: error: 'Color' is only available in macOS 10.15 or newer
9 |
10 | /// Defines the visual appearance of a badge overlay on a bar item.
11 | public struct BadgeConfiguration: Equatable, Sendable {
| `- note: add '@available' attribute to enclosing struct
12 |
13 | /// Horizontal offset applied to the badge after alignment.
:
18 |
19 | /// The background color of the badge.
20 | public var backgroundColor: Color
| `- error: 'Color' is only available in macOS 10.15 or newer
21 |
22 | /// The foreground color applied to the badge text or dot.
/Users/admin/builder/spi-builder-workspace/Sources/BarKit/BarConfiguration/Bar/BadgeConfiguration.swift:23:33: error: 'Color' is only available in macOS 10.15 or newer
9 |
10 | /// Defines the visual appearance of a badge overlay on a bar item.
11 | public struct BadgeConfiguration: Equatable, Sendable {
| `- note: add '@available' attribute to enclosing struct
12 |
13 | /// Horizontal offset applied to the badge after alignment.
:
21 |
22 | /// The foreground color applied to the badge text or dot.
23 | public var foregroundColor: Color
| `- error: 'Color' is only available in macOS 10.15 or newer
24 |
25 | /// The typography style for `.count` and `.label` badges.
/Users/admin/builder/spi-builder-workspace/Sources/BarKit/BarConfiguration/Bar/BadgeConfiguration.swift:26:27: error: 'Font' is only available in macOS 10.15 or newer
9 |
10 | /// Defines the visual appearance of a badge overlay on a bar item.
11 | public struct BadgeConfiguration: Equatable, Sendable {
| `- note: add '@available' attribute to enclosing struct
12 |
13 | /// Horizontal offset applied to the badge after alignment.
:
24 |
25 | /// The typography style for `.count` and `.label` badges.
26 | public var textStyle: Font.TextStyle
| `- error: 'Font' is only available in macOS 10.15 or newer
27 |
28 | /// Horizontal padding inside `.count` and `.label` badges.
/Users/admin/builder/spi-builder-workspace/Sources/BarKit/BarConfiguration/Bar/BadgeConfiguration.swift:49:20: error: 'Alignment' is only available in macOS 10.15 or newer
9 |
10 | /// Defines the visual appearance of a badge overlay on a bar item.
11 | public struct BadgeConfiguration: Equatable, Sendable {
| `- note: add '@available' attribute to enclosing struct
12 |
13 | /// Horizontal offset applied to the badge after alignment.
:
46 | /// - verticalPadding: Vertical padding inside `.count` and `.label` badges.
47 | /// - dotDiameter: The diameter of the `.dot` badge.
48 | public init(
| `- note: add '@available' attribute to enclosing initializer
49 | alignment: Alignment = .topTrailing,
| `- error: 'Alignment' is only available in macOS 10.15 or newer
50 | offsetX: CGFloat = 0,
51 | offsetY: CGFloat = 0,
/Users/admin/builder/spi-builder-workspace/Sources/BarKit/BarConfiguration/Bar/BadgeConfiguration.swift:52:26: error: 'Color' is only available in macOS 10.15 or newer
9 |
10 | /// Defines the visual appearance of a badge overlay on a bar item.
11 | public struct BadgeConfiguration: Equatable, Sendable {
| `- note: add '@available' attribute to enclosing struct
12 |
13 | /// Horizontal offset applied to the badge after alignment.
:
46 | /// - verticalPadding: Vertical padding inside `.count` and `.label` badges.
47 | /// - dotDiameter: The diameter of the `.dot` badge.
48 | public init(
| `- note: add '@available' attribute to enclosing initializer
49 | alignment: Alignment = .topTrailing,
50 | offsetX: CGFloat = 0,
51 | offsetY: CGFloat = 0,
52 | backgroundColor: Color = .red,
| `- error: 'Color' is only available in macOS 10.15 or newer
53 | foregroundColor: Color = .white,
54 | textStyle: Font.TextStyle = .caption2,
/Users/admin/builder/spi-builder-workspace/Sources/BarKit/BarConfiguration/Bar/BadgeConfiguration.swift:53:26: error: 'Color' is only available in macOS 10.15 or newer
9 |
10 | /// Defines the visual appearance of a badge overlay on a bar item.
11 | public struct BadgeConfiguration: Equatable, Sendable {
| `- note: add '@available' attribute to enclosing struct
12 |
13 | /// Horizontal offset applied to the badge after alignment.
:
46 | /// - verticalPadding: Vertical padding inside `.count` and `.label` badges.
47 | /// - dotDiameter: The diameter of the `.dot` badge.
48 | public init(
| `- note: add '@available' attribute to enclosing initializer
49 | alignment: Alignment = .topTrailing,
50 | offsetX: CGFloat = 0,
51 | offsetY: CGFloat = 0,
52 | backgroundColor: Color = .red,
53 | foregroundColor: Color = .white,
| `- error: 'Color' is only available in macOS 10.15 or newer
54 | textStyle: Font.TextStyle = .caption2,
55 | horizontalPadding: CGFloat = 4,
/Users/admin/builder/spi-builder-workspace/Sources/BarKit/BarConfiguration/Bar/BadgeConfiguration.swift:54:20: error: 'Font' is only available in macOS 10.15 or newer
9 |
10 | /// Defines the visual appearance of a badge overlay on a bar item.
11 | public struct BadgeConfiguration: Equatable, Sendable {
| `- note: add '@available' attribute to enclosing struct
12 |
13 | /// Horizontal offset applied to the badge after alignment.
:
46 | /// - verticalPadding: Vertical padding inside `.count` and `.label` badges.
47 | /// - dotDiameter: The diameter of the `.dot` badge.
48 | public init(
| `- note: add '@available' attribute to enclosing initializer
49 | alignment: Alignment = .topTrailing,
50 | offsetX: CGFloat = 0,
:
52 | backgroundColor: Color = .red,
53 | foregroundColor: Color = .white,
54 | textStyle: Font.TextStyle = .caption2,
| `- error: 'Font' is only available in macOS 10.15 or newer
55 | horizontalPadding: CGFloat = 4,
56 | verticalPadding: CGFloat = 2,
/Users/admin/builder/spi-builder-workspace/Sources/BarKit/BarConfiguration/Bar/BadgeConfiguration.swift:49:33: error: 'topTrailing' is only available in macOS 10.15 or newer
9 |
10 | /// Defines the visual appearance of a badge overlay on a bar item.
11 | public struct BadgeConfiguration: Equatable, Sendable {
| `- note: add '@available' attribute to enclosing struct
12 |
13 | /// Horizontal offset applied to the badge after alignment.
:
46 | /// - verticalPadding: Vertical padding inside `.count` and `.label` badges.
47 | /// - dotDiameter: The diameter of the `.dot` badge.
48 | public init(
| `- note: add '@available' attribute to enclosing initializer
49 | alignment: Alignment = .topTrailing,
| `- error: 'topTrailing' is only available in macOS 10.15 or newer
50 | offsetX: CGFloat = 0,
51 | offsetY: CGFloat = 0,
/Users/admin/builder/spi-builder-workspace/Sources/BarKit/BarConfiguration/Bar/BadgeConfiguration.swift:52:35: error: 'red' is only available in macOS 10.15 or newer
9 |
10 | /// Defines the visual appearance of a badge overlay on a bar item.
11 | public struct BadgeConfiguration: Equatable, Sendable {
| `- note: add '@available' attribute to enclosing struct
12 |
13 | /// Horizontal offset applied to the badge after alignment.
:
46 | /// - verticalPadding: Vertical padding inside `.count` and `.label` badges.
47 | /// - dotDiameter: The diameter of the `.dot` badge.
48 | public init(
| `- note: add '@available' attribute to enclosing initializer
49 | alignment: Alignment = .topTrailing,
50 | offsetX: CGFloat = 0,
51 | offsetY: CGFloat = 0,
52 | backgroundColor: Color = .red,
| `- error: 'red' is only available in macOS 10.15 or newer
53 | foregroundColor: Color = .white,
54 | textStyle: Font.TextStyle = .caption2,
/Users/admin/builder/spi-builder-workspace/Sources/BarKit/BarConfiguration/Bar/BadgeConfiguration.swift:53:35: error: 'white' is only available in macOS 10.15 or newer
9 |
10 | /// Defines the visual appearance of a badge overlay on a bar item.
11 | public struct BadgeConfiguration: Equatable, Sendable {
| `- note: add '@available' attribute to enclosing struct
12 |
13 | /// Horizontal offset applied to the badge after alignment.
:
46 | /// - verticalPadding: Vertical padding inside `.count` and `.label` badges.
47 | /// - dotDiameter: The diameter of the `.dot` badge.
48 | public init(
| `- note: add '@available' attribute to enclosing initializer
49 | alignment: Alignment = .topTrailing,
50 | offsetX: CGFloat = 0,
51 | offsetY: CGFloat = 0,
52 | backgroundColor: Color = .red,
53 | foregroundColor: Color = .white,
| `- error: 'white' is only available in macOS 10.15 or newer
54 | textStyle: Font.TextStyle = .caption2,
55 | horizontalPadding: CGFloat = 4,
/Users/admin/builder/spi-builder-workspace/Sources/BarKit/BarConfiguration/Bar/BadgeConfiguration.swift:54:38: error: 'caption2' is only available in macOS 11.0 or newer
9 |
10 | /// Defines the visual appearance of a badge overlay on a bar item.
11 | public struct BadgeConfiguration: Equatable, Sendable {
| `- note: add '@available' attribute to enclosing struct
12 |
13 | /// Horizontal offset applied to the badge after alignment.
:
46 | /// - verticalPadding: Vertical padding inside `.count` and `.label` badges.
47 | /// - dotDiameter: The diameter of the `.dot` badge.
48 | public init(
| `- note: add '@available' attribute to enclosing initializer
49 | alignment: Alignment = .topTrailing,
50 | offsetX: CGFloat = 0,
:
52 | backgroundColor: Color = .red,
53 | foregroundColor: Color = .white,
54 | textStyle: Font.TextStyle = .caption2,
| `- error: 'caption2' is only available in macOS 11.0 or newer
55 | horizontalPadding: CGFloat = 4,
56 | verticalPadding: CGFloat = 2,
/Users/admin/builder/spi-builder-workspace/Sources/BarKit/BarConfiguration/Bar/ShadowConfiguration.swift:29:25: error: 'black' is only available in macOS 10.15 or newer
9 |
10 | /// Defines the shadow appearance of the bar capsule.
11 | public struct ShadowConfiguration: Equatable, Sendable {
| `- note: add '@available' attribute to enclosing struct
12 | /// The shadow color.
13 | public var color: Color
:
26 | /// - x: The horizontal offset of the shadow.
27 | /// - y: The vertical offset of the shadow.
28 | public init(
| `- note: add '@available' attribute to enclosing initializer
29 | color: Color = .black.opacity(0.2),
| `- error: 'black' is only available in macOS 10.15 or newer
30 | radius: CGFloat = 8,
31 | x: CGFloat = 0,
/Users/admin/builder/spi-builder-workspace/Sources/BarKit/BarConfiguration/Bar/ShadowConfiguration.swift:29:31: error: 'opacity' is only available in macOS 10.15 or newer
9 |
10 | /// Defines the shadow appearance of the bar capsule.
11 | public struct ShadowConfiguration: Equatable, Sendable {
| `- note: add '@available' attribute to enclosing struct
12 | /// The shadow color.
13 | public var color: Color
:
26 | /// - x: The horizontal offset of the shadow.
27 | /// - y: The vertical offset of the shadow.
28 | public init(
| `- note: add '@available' attribute to enclosing initializer
29 | color: Color = .black.opacity(0.2),
| `- error: 'opacity' is only available in macOS 10.15 or newer
30 | radius: CGFloat = 8,
31 | x: CGFloat = 0,
/Users/admin/builder/spi-builder-workspace/Sources/BarKit/BarConfiguration/Background/BarBackground.swift:15:47: error: 'clear' is only available in macOS 10.15 or newer
9 |
10 | /// Defines the background appearance of the bar.
11 | public enum BarBackground {
| `- note: add '@available' attribute to enclosing enum
12 | /// A solid color fill with no blur.
13 | case color(Color)
14 | /// A system material blur with an optional tint color layered on top.
15 | case material(BarMaterial, tint: Color = .clear)
| `- error: 'clear' is only available in macOS 10.15 or newer
16 | /// A custom shader-based blur with an optional tint color layered on top.
17 | case customBlur(CustomBlurConfiguration, tint: Color = .clear)
/Users/admin/builder/spi-builder-workspace/Sources/BarKit/BarConfiguration/Item/ItemConfiguration.swift:53:33: error: 'primary' is only available in macOS 10.15 or newer
9 |
10 | /// Defines the visual appearance of a single bar item in isolation.
11 | public struct ItemConfiguration: Equatable {
| `- note: add '@available' attribute to enclosing struct
12 |
13 | /// The color applied to the icon and title of a selected item.
:
50 | /// - edgeInsets: Padding applied inside the item view in regular height mode.
51 | /// - edgeInsetsCompact: Padding applied inside the item view in compact height mode (e.g., landscape).
52 | public init(
| `- note: add '@available' attribute to enclosing initializer
53 | selectedColor: Color = .primary,
| `- error: 'primary' is only available in macOS 10.15 or newer
54 | unselectedColor: Color = .secondary,
55 | textStyle: Font.TextStyle = .caption2,
/Users/admin/builder/spi-builder-workspace/Sources/BarKit/BarConfiguration/Item/ItemConfiguration.swift:54:35: error: 'secondary' is only available in macOS 10.15 or newer
9 |
10 | /// Defines the visual appearance of a single bar item in isolation.
11 | public struct ItemConfiguration: Equatable {
| `- note: add '@available' attribute to enclosing struct
12 |
13 | /// The color applied to the icon and title of a selected item.
:
50 | /// - edgeInsets: Padding applied inside the item view in regular height mode.
51 | /// - edgeInsetsCompact: Padding applied inside the item view in compact height mode (e.g., landscape).
52 | public init(
| `- note: add '@available' attribute to enclosing initializer
53 | selectedColor: Color = .primary,
54 | unselectedColor: Color = .secondary,
| `- error: 'secondary' is only available in macOS 10.15 or newer
55 | textStyle: Font.TextStyle = .caption2,
56 | iconSideLength: CGFloat = 24,
/Users/admin/builder/spi-builder-workspace/Sources/BarKit/BarConfiguration/Item/ItemConfiguration.swift:55:38: error: 'caption2' is only available in macOS 11.0 or newer
9 |
10 | /// Defines the visual appearance of a single bar item in isolation.
11 | public struct ItemConfiguration: Equatable {
| `- note: add '@available' attribute to enclosing struct
12 |
13 | /// The color applied to the icon and title of a selected item.
:
50 | /// - edgeInsets: Padding applied inside the item view in regular height mode.
51 | /// - edgeInsetsCompact: Padding applied inside the item view in compact height mode (e.g., landscape).
52 | public init(
| `- note: add '@available' attribute to enclosing initializer
53 | selectedColor: Color = .primary,
54 | unselectedColor: Color = .secondary,
55 | textStyle: Font.TextStyle = .caption2,
| `- error: 'caption2' is only available in macOS 11.0 or newer
56 | iconSideLength: CGFloat = 24,
57 | selectedIconScale: CGFloat = 1.1,
/Users/admin/builder/spi-builder-workspace/Sources/BarKit/BarConfiguration/SelectionIndicator/SelectionIndicatorConfiguration.swift:62:25: error: 'secondary' is only available in macOS 10.15 or newer
9 |
10 | /// Defines the visual appearance and behavior of the selection indicator.
11 | public struct SelectionIndicatorConfiguration {
| `- note: add '@available' attribute to enclosing struct
12 |
13 | // MARK: - Appearance
:
59 | /// - isDragGestureEnabled: Whether the user can drag the indicator between items.
60 | /// - effects: Active visual effects at the indicator boundary. Duplicate effects are ignored — only the first occurrence of each effect type is applied.
61 | public init(
| `- note: add '@available' attribute to enclosing initializer
62 | color: Color = .secondary.opacity(0.2),
| `- error: 'secondary' is only available in macOS 10.15 or newer
63 | border: BorderConfiguration? = nil,
64 | inset: EdgeInsets = .init(top: 2, leading: 2, bottom: 2, trailing: 2),
/Users/admin/builder/spi-builder-workspace/Sources/BarKit/BarConfiguration/SelectionIndicator/SelectionIndicatorConfiguration.swift:62:35: error: 'opacity' is only available in macOS 10.15 or newer
9 |
10 | /// Defines the visual appearance and behavior of the selection indicator.
11 | public struct SelectionIndicatorConfiguration {
| `- note: add '@available' attribute to enclosing struct
12 |
13 | // MARK: - Appearance
:
59 | /// - isDragGestureEnabled: Whether the user can drag the indicator between items.
60 | /// - effects: Active visual effects at the indicator boundary. Duplicate effects are ignored — only the first occurrence of each effect type is applied.
61 | public init(
| `- note: add '@available' attribute to enclosing initializer
62 | color: Color = .secondary.opacity(0.2),
| `- error: 'opacity' is only available in macOS 10.15 or newer
63 | border: BorderConfiguration? = nil,
64 | inset: EdgeInsets = .init(top: 2, leading: 2, bottom: 2, trailing: 2),
/Users/admin/builder/spi-builder-workspace/Sources/BarKit/BarConfiguration/Bar/BarConfiguration.swift:141:44: error: 'Animation' is only available in macOS 10.15 or newer
9 |
10 | /// A configuration object that defines the visual style, layout, and behavior of `BarView`.
11 | public struct BarConfiguration {
| `- note: add '@available' attribute to enclosing struct
12 |
13 | // MARK: - Layout
:
139 |
140 | /// Resolves the item state animation for use in view modifiers.
141 | public var resolvedItemStateAnimation: Animation? {
| | `- error: 'Animation' is only available in macOS 10.15 or newer
| `- note: add '@available' attribute to enclosing property
142 | itemStateAnimation?.animation
143 | }
/Users/admin/builder/spi-builder-workspace/Sources/BarKit/BarConfiguration/Bar/HapticFeedbackConfiguration.swift:31:26: error: 'SensoryFeedback' is only available in macOS 14.0 or newer
10 | /// Defines the haptic feedback style triggered when the selected bar item changes.
11 | /// Requires iOS 17 or later; has no effect on earlier versions.
12 | public enum HapticFeedbackConfiguration {
| `- note: add '@available' attribute to enclosing enum
13 |
14 | /// A feedback style that indicates a change in selection.
:
29 | /// Maps to the corresponding `SensoryFeedback` value.
30 | @available(iOS 17.0, *)
31 | var sensoryFeedback: SensoryFeedback {
| | `- error: 'SensoryFeedback' is only available in macOS 14.0 or newer
| `- note: add '@available' attribute to enclosing property
32 | switch self {
33 | case .selection: .selection
/Users/admin/builder/spi-builder-workspace/Sources/BarKit/BarConfiguration/Bar/ShadowConfiguration.swift:13:23: error: 'Color' is only available in macOS 10.15 or newer
9 |
10 | /// Defines the shadow appearance of the bar capsule.
11 | public struct ShadowConfiguration: Equatable, Sendable {
| `- note: add '@available' attribute to enclosing struct
12 | /// The shadow color.
13 | public var color: Color
| `- error: 'Color' is only available in macOS 10.15 or newer
14 | /// The shadow blur radius.
15 | public var radius: CGFloat
/Users/admin/builder/spi-builder-workspace/Sources/BarKit/BarConfiguration/Bar/ShadowConfiguration.swift:29:16: error: 'Color' is only available in macOS 10.15 or newer
9 |
10 | /// Defines the shadow appearance of the bar capsule.
11 | public struct ShadowConfiguration: Equatable, Sendable {
| `- note: add '@available' attribute to enclosing struct
12 | /// The shadow color.
13 | public var color: Color
:
26 | /// - x: The horizontal offset of the shadow.
27 | /// - y: The vertical offset of the shadow.
28 | public init(
| `- note: add '@available' attribute to enclosing initializer
29 | color: Color = .black.opacity(0.2),
| `- error: 'Color' is only available in macOS 10.15 or newer
30 | radius: CGFloat = 8,
31 | x: CGFloat = 0,
BUILD FAILURE 6.3 macosSpm