Build Information
Failed to build BarKit, reference 1.1.1 (620b89), with Swift 6.2 for macOS (SPM) on 28 Jun 2026 06:01:25 UTC.
Build Command
env DEVELOPER_DIR=/Applications/Xcode-26.3.0.app xcrun swift build --arch arm64Build Log
19 | self.lineWidth = lineWidth
[47/50] 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
[48/50] 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
[49/50] 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
[50/50] 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
[51/54] Compiling BarKit BarContainerAccessibilityModifier.swift
/Users/admin/builder/spi-builder-workspace/Sources/BarKit/ViewModifiers/BarContainerAccessibilityModifier.swift:21:41: error: 'View' is only available in macOS 10.15 or newer
11 | /// On iOS 17+, adds the `.isTabBar` trait so VoiceOver announces
12 | /// items as tabs and automatically provides "X of Y" position hints.
13 | struct BarContainerAccessibilityModifier: ViewModifier {
| `- note: add '@available' attribute to enclosing struct
14 |
15 | /// Accessibility label for the entire bar container.
:
19 | let sortPriority: Double
20 |
21 | func body(content: Content) -> some View {
| | `- error: 'View' is only available in macOS 10.15 or newer
| `- note: add '@available' attribute to enclosing instance method
22 | if #available(iOS 17.0, *) {
23 | content
/Users/admin/builder/spi-builder-workspace/Sources/BarKit/ViewModifiers/BarContainerAccessibilityModifier.swift:22:12: warning: result builder 'ViewBuilder' does not implement 'buildLimitedAvailability'; this code may crash on earlier versions of the OS [#ResultBuilderMethods]
20 |
21 | func body(content: Content) -> some View {
22 | if #available(iOS 17.0, *) {
| `- warning: result builder 'ViewBuilder' does not implement 'buildLimitedAvailability'; this code may crash on earlier versions of the OS [#ResultBuilderMethods]
23 | content
24 | .accessibilityElement(children: .contain)
/Users/admin/builder/spi-builder-workspace/Sources/BarKit/ViewModifiers/BarContainerAccessibilityModifier.swift:23:13: error: conformance of 'ModifiedContent<Content, Modifier>' to 'View' is only available in macOS 10.15 or newer
11 | /// On iOS 17+, adds the `.isTabBar` trait so VoiceOver announces
12 | /// items as tabs and automatically provides "X of Y" position hints.
13 | struct BarContainerAccessibilityModifier: ViewModifier {
| `- note: add '@available' attribute to enclosing struct
14 |
15 | /// Accessibility label for the entire bar container.
:
19 | let sortPriority: Double
20 |
21 | func body(content: Content) -> some View {
| `- note: add '@available' attribute to enclosing instance method
22 | if #available(iOS 17.0, *) {
23 | content
| |- error: conformance of 'ModifiedContent<Content, Modifier>' to 'View' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
24 | .accessibilityElement(children: .contain)
25 | .accessibilityLabel(label)
/Users/admin/builder/spi-builder-workspace/Sources/BarKit/ViewModifiers/BarContainerAccessibilityModifier.swift:24:18: error: 'accessibilityElement(children:)' is only available in macOS 10.15 or newer
11 | /// On iOS 17+, adds the `.isTabBar` trait so VoiceOver announces
12 | /// items as tabs and automatically provides "X of Y" position hints.
13 | struct BarContainerAccessibilityModifier: ViewModifier {
| `- note: add '@available' attribute to enclosing struct
14 |
15 | /// Accessibility label for the entire bar container.
:
19 | let sortPriority: Double
20 |
21 | func body(content: Content) -> some View {
| `- note: add '@available' attribute to enclosing instance method
22 | if #available(iOS 17.0, *) {
23 | content
24 | .accessibilityElement(children: .contain)
| |- error: 'accessibilityElement(children:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
25 | .accessibilityLabel(label)
26 | .accessibilityAddTraits(.isTabBar)
/Users/admin/builder/spi-builder-workspace/Sources/BarKit/ViewModifiers/BarContainerAccessibilityModifier.swift:24:50: error: 'contain' is only available in macOS 10.15 or newer
11 | /// On iOS 17+, adds the `.isTabBar` trait so VoiceOver announces
12 | /// items as tabs and automatically provides "X of Y" position hints.
13 | struct BarContainerAccessibilityModifier: ViewModifier {
| `- note: add '@available' attribute to enclosing struct
14 |
15 | /// Accessibility label for the entire bar container.
:
19 | let sortPriority: Double
20 |
21 | func body(content: Content) -> some View {
| `- note: add '@available' attribute to enclosing instance method
22 | if #available(iOS 17.0, *) {
23 | content
24 | .accessibilityElement(children: .contain)
| |- error: 'contain' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
25 | .accessibilityLabel(label)
26 | .accessibilityAddTraits(.isTabBar)
/Users/admin/builder/spi-builder-workspace/Sources/BarKit/ViewModifiers/BarContainerAccessibilityModifier.swift:25:18: error: 'accessibilityLabel' is only available in macOS 11.0 or newer
11 | /// On iOS 17+, adds the `.isTabBar` trait so VoiceOver announces
12 | /// items as tabs and automatically provides "X of Y" position hints.
13 | struct BarContainerAccessibilityModifier: ViewModifier {
| `- note: add '@available' attribute to enclosing struct
14 |
15 | /// Accessibility label for the entire bar container.
:
19 | let sortPriority: Double
20 |
21 | func body(content: Content) -> some View {
| `- note: add '@available' attribute to enclosing instance method
22 | if #available(iOS 17.0, *) {
23 | content
24 | .accessibilityElement(children: .contain)
25 | .accessibilityLabel(label)
| |- error: 'accessibilityLabel' is only available in macOS 11.0 or newer
| `- note: add 'if #available' version check
26 | .accessibilityAddTraits(.isTabBar)
27 | .accessibilitySortPriority(sortPriority)
/Users/admin/builder/spi-builder-workspace/Sources/BarKit/ViewModifiers/BarContainerAccessibilityModifier.swift:26:18: error: 'accessibilityAddTraits' is only available in macOS 11.0 or newer
11 | /// On iOS 17+, adds the `.isTabBar` trait so VoiceOver announces
12 | /// items as tabs and automatically provides "X of Y" position hints.
13 | struct BarContainerAccessibilityModifier: ViewModifier {
| `- note: add '@available' attribute to enclosing struct
14 |
15 | /// Accessibility label for the entire bar container.
:
19 | let sortPriority: Double
20 |
21 | func body(content: Content) -> some View {
| `- note: add '@available' attribute to enclosing instance method
22 | if #available(iOS 17.0, *) {
23 | content
24 | .accessibilityElement(children: .contain)
25 | .accessibilityLabel(label)
26 | .accessibilityAddTraits(.isTabBar)
| |- error: 'accessibilityAddTraits' is only available in macOS 11.0 or newer
| `- note: add 'if #available' version check
27 | .accessibilitySortPriority(sortPriority)
28 | } else {
/Users/admin/builder/spi-builder-workspace/Sources/BarKit/ViewModifiers/BarContainerAccessibilityModifier.swift:26:42: error: 'isTabBar' is only available in macOS 14.0 or newer
11 | /// On iOS 17+, adds the `.isTabBar` trait so VoiceOver announces
12 | /// items as tabs and automatically provides "X of Y" position hints.
13 | struct BarContainerAccessibilityModifier: ViewModifier {
| `- note: add '@available' attribute to enclosing struct
14 |
15 | /// Accessibility label for the entire bar container.
:
19 | let sortPriority: Double
20 |
21 | func body(content: Content) -> some View {
| `- note: add '@available' attribute to enclosing instance method
22 | if #available(iOS 17.0, *) {
23 | content
24 | .accessibilityElement(children: .contain)
25 | .accessibilityLabel(label)
26 | .accessibilityAddTraits(.isTabBar)
| |- error: 'isTabBar' is only available in macOS 14.0 or newer
| `- note: add 'if #available' version check
27 | .accessibilitySortPriority(sortPriority)
28 | } else {
/Users/admin/builder/spi-builder-workspace/Sources/BarKit/ViewModifiers/BarContainerAccessibilityModifier.swift:27:18: error: 'accessibilitySortPriority' is only available in macOS 11.0 or newer
11 | /// On iOS 17+, adds the `.isTabBar` trait so VoiceOver announces
12 | /// items as tabs and automatically provides "X of Y" position hints.
13 | struct BarContainerAccessibilityModifier: ViewModifier {
| `- note: add '@available' attribute to enclosing struct
14 |
15 | /// Accessibility label for the entire bar container.
:
19 | let sortPriority: Double
20 |
21 | func body(content: Content) -> some View {
| `- note: add '@available' attribute to enclosing instance method
22 | if #available(iOS 17.0, *) {
23 | content
:
25 | .accessibilityLabel(label)
26 | .accessibilityAddTraits(.isTabBar)
27 | .accessibilitySortPriority(sortPriority)
| |- error: 'accessibilitySortPriority' is only available in macOS 11.0 or newer
| `- note: add 'if #available' version check
28 | } else {
29 | content
/Users/admin/builder/spi-builder-workspace/Sources/BarKit/ViewModifiers/BarContainerAccessibilityModifier.swift:22:36: error: conformance of 'ModifiedContent<Content, Modifier>' to 'View' is only available in macOS 10.15 or newer
11 | /// On iOS 17+, adds the `.isTabBar` trait so VoiceOver announces
12 | /// items as tabs and automatically provides "X of Y" position hints.
13 | struct BarContainerAccessibilityModifier: ViewModifier {
| `- note: add '@available' attribute to enclosing struct
14 |
15 | /// Accessibility label for the entire bar container.
:
19 | let sortPriority: Double
20 |
21 | func body(content: Content) -> some View {
| `- note: add '@available' attribute to enclosing instance method
22 | if #available(iOS 17.0, *) {
| |- error: conformance of 'ModifiedContent<Content, Modifier>' to 'View' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
23 | content
24 | .accessibilityElement(children: .contain)
/Users/admin/builder/spi-builder-workspace/Sources/BarKit/ViewModifiers/BarContainerAccessibilityModifier.swift:22:36: error: 'buildLimitedAvailability' is only available in macOS 11.0 or newer
11 | /// On iOS 17+, adds the `.isTabBar` trait so VoiceOver announces
12 | /// items as tabs and automatically provides "X of Y" position hints.
13 | struct BarContainerAccessibilityModifier: ViewModifier {
| `- note: add '@available' attribute to enclosing struct
14 |
15 | /// Accessibility label for the entire bar container.
:
19 | let sortPriority: Double
20 |
21 | func body(content: Content) -> some View {
| `- note: add '@available' attribute to enclosing instance method
22 | if #available(iOS 17.0, *) {
| |- error: 'buildLimitedAvailability' is only available in macOS 11.0 or newer
| `- note: add 'if #available' version check
23 | content
24 | .accessibilityElement(children: .contain)
/Users/admin/builder/spi-builder-workspace/Sources/BarKit/ViewModifiers/BarContainerAccessibilityModifier.swift:22:36: error: 'buildEither(first:)' is only available in macOS 10.15 or newer
11 | /// On iOS 17+, adds the `.isTabBar` trait so VoiceOver announces
12 | /// items as tabs and automatically provides "X of Y" position hints.
13 | struct BarContainerAccessibilityModifier: ViewModifier {
| `- note: add '@available' attribute to enclosing struct
14 |
15 | /// Accessibility label for the entire bar container.
:
19 | let sortPriority: Double
20 |
21 | func body(content: Content) -> some View {
| `- note: add '@available' attribute to enclosing instance method
22 | if #available(iOS 17.0, *) {
| |- error: 'buildEither(first:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
23 | content
24 | .accessibilityElement(children: .contain)
/Users/admin/builder/spi-builder-workspace/Sources/BarKit/ViewModifiers/BarContainerAccessibilityModifier.swift:28:16: error: 'buildEither(second:)' is only available in macOS 10.15 or newer
11 | /// On iOS 17+, adds the `.isTabBar` trait so VoiceOver announces
12 | /// items as tabs and automatically provides "X of Y" position hints.
13 | struct BarContainerAccessibilityModifier: ViewModifier {
| `- note: add '@available' attribute to enclosing struct
14 |
15 | /// Accessibility label for the entire bar container.
:
19 | let sortPriority: Double
20 |
21 | func body(content: Content) -> some View {
| `- note: add '@available' attribute to enclosing instance method
22 | if #available(iOS 17.0, *) {
23 | content
:
26 | .accessibilityAddTraits(.isTabBar)
27 | .accessibilitySortPriority(sortPriority)
28 | } else {
| |- error: 'buildEither(second:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
29 | content
30 | .accessibilityElement(children: .contain)
/Users/admin/builder/spi-builder-workspace/Sources/BarKit/ViewModifiers/BarContainerAccessibilityModifier.swift:21:46: error: conformance of '_ConditionalContent<TrueContent, FalseContent>' to 'View' is only available in macOS 10.15 or newer
11 | /// On iOS 17+, adds the `.isTabBar` trait so VoiceOver announces
12 | /// items as tabs and automatically provides "X of Y" position hints.
13 | struct BarContainerAccessibilityModifier: ViewModifier {
| `- note: add '@available' attribute to enclosing struct
14 |
15 | /// Accessibility label for the entire bar container.
:
19 | let sortPriority: Double
20 |
21 | func body(content: Content) -> some View {
| | |- error: conformance of '_ConditionalContent<TrueContent, FalseContent>' to 'View' is only available in macOS 10.15 or newer
| | `- note: add 'if #available' version check
| `- note: add '@available' attribute to enclosing instance method
22 | if #available(iOS 17.0, *) {
23 | content
/Users/admin/builder/spi-builder-workspace/Sources/BarKit/ViewModifiers/BarItemAccessibilityModifier.swift:21:41: error: 'View' is only available in macOS 10.15 or newer
11 | /// The item is presented as an atomic element — its icon and title
12 | /// are hidden from VoiceOver and replaced by a single label.
13 | struct BarItemAccessibilityModifier<Item: BarItemProtocol>: ViewModifier {
| `- note: add '@available' attribute to enclosing generic struct
14 |
15 | /// The data model for this bar item.
:
19 | let isSelected: Bool
20 |
21 | func body(content: Content) -> some View {
| | `- error: 'View' is only available in macOS 10.15 or newer
| `- note: add '@available' attribute to enclosing instance method
22 | content
23 | .accessibilityElement(children: .ignore)
/Users/admin/builder/spi-builder-workspace/Sources/BarKit/ViewModifiers/BarItemAccessibilityModifier.swift:22:9: error: conformance of 'ModifiedContent<Content, Modifier>' to 'View' is only available in macOS 10.15 or newer
11 | /// The item is presented as an atomic element — its icon and title
12 | /// are hidden from VoiceOver and replaced by a single label.
13 | struct BarItemAccessibilityModifier<Item: BarItemProtocol>: ViewModifier {
| `- note: add '@available' attribute to enclosing generic struct
14 |
15 | /// The data model for this bar item.
:
19 | let isSelected: Bool
20 |
21 | func body(content: Content) -> some View {
| `- note: add '@available' attribute to enclosing instance method
22 | content
| |- error: conformance of 'ModifiedContent<Content, Modifier>' to 'View' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
23 | .accessibilityElement(children: .ignore)
24 | .accessibilityLabel(item.accessibilityLabel ?? item.title)
/Users/admin/builder/spi-builder-workspace/Sources/BarKit/ViewModifiers/BarItemAccessibilityModifier.swift:23:14: error: 'accessibilityElement(children:)' is only available in macOS 10.15 or newer
11 | /// The item is presented as an atomic element — its icon and title
12 | /// are hidden from VoiceOver and replaced by a single label.
13 | struct BarItemAccessibilityModifier<Item: BarItemProtocol>: ViewModifier {
| `- note: add '@available' attribute to enclosing generic struct
14 |
15 | /// The data model for this bar item.
:
19 | let isSelected: Bool
20 |
21 | func body(content: Content) -> some View {
| `- note: add '@available' attribute to enclosing instance method
22 | content
23 | .accessibilityElement(children: .ignore)
| |- error: 'accessibilityElement(children:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
24 | .accessibilityLabel(item.accessibilityLabel ?? item.title)
25 | .accessibilityAddTraits(isSelected ? .isSelected : [])
/Users/admin/builder/spi-builder-workspace/Sources/BarKit/ViewModifiers/BarItemAccessibilityModifier.swift:23:46: error: 'ignore' is only available in macOS 10.15 or newer
11 | /// The item is presented as an atomic element — its icon and title
12 | /// are hidden from VoiceOver and replaced by a single label.
13 | struct BarItemAccessibilityModifier<Item: BarItemProtocol>: ViewModifier {
| `- note: add '@available' attribute to enclosing generic struct
14 |
15 | /// The data model for this bar item.
:
19 | let isSelected: Bool
20 |
21 | func body(content: Content) -> some View {
| `- note: add '@available' attribute to enclosing instance method
22 | content
23 | .accessibilityElement(children: .ignore)
| |- error: 'ignore' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
24 | .accessibilityLabel(item.accessibilityLabel ?? item.title)
25 | .accessibilityAddTraits(isSelected ? .isSelected : [])
/Users/admin/builder/spi-builder-workspace/Sources/BarKit/ViewModifiers/BarItemAccessibilityModifier.swift:24:14: error: 'accessibilityLabel' is only available in macOS 11.0 or newer
11 | /// The item is presented as an atomic element — its icon and title
12 | /// are hidden from VoiceOver and replaced by a single label.
13 | struct BarItemAccessibilityModifier<Item: BarItemProtocol>: ViewModifier {
| `- note: add '@available' attribute to enclosing generic struct
14 |
15 | /// The data model for this bar item.
:
19 | let isSelected: Bool
20 |
21 | func body(content: Content) -> some View {
| `- note: add '@available' attribute to enclosing instance method
22 | content
23 | .accessibilityElement(children: .ignore)
24 | .accessibilityLabel(item.accessibilityLabel ?? item.title)
| |- error: 'accessibilityLabel' is only available in macOS 11.0 or newer
| `- note: add 'if #available' version check
25 | .accessibilityAddTraits(isSelected ? .isSelected : [])
26 | }
/Users/admin/builder/spi-builder-workspace/Sources/BarKit/ViewModifiers/BarItemAccessibilityModifier.swift:25:14: error: 'accessibilityAddTraits' is only available in macOS 11.0 or newer
11 | /// The item is presented as an atomic element — its icon and title
12 | /// are hidden from VoiceOver and replaced by a single label.
13 | struct BarItemAccessibilityModifier<Item: BarItemProtocol>: ViewModifier {
| `- note: add '@available' attribute to enclosing generic struct
14 |
15 | /// The data model for this bar item.
:
19 | let isSelected: Bool
20 |
21 | func body(content: Content) -> some View {
| `- note: add '@available' attribute to enclosing instance method
22 | content
23 | .accessibilityElement(children: .ignore)
24 | .accessibilityLabel(item.accessibilityLabel ?? item.title)
25 | .accessibilityAddTraits(isSelected ? .isSelected : [])
| |- error: 'accessibilityAddTraits' is only available in macOS 11.0 or newer
| `- note: add 'if #available' version check
26 | }
27 | }
/Users/admin/builder/spi-builder-workspace/Sources/BarKit/ViewModifiers/BarItemAccessibilityModifier.swift:21:46: error: conformance of 'ModifiedContent<Content, Modifier>' to 'View' is only available in macOS 10.15 or newer
11 | /// The item is presented as an atomic element — its icon and title
12 | /// are hidden from VoiceOver and replaced by a single label.
13 | struct BarItemAccessibilityModifier<Item: BarItemProtocol>: ViewModifier {
| `- note: add '@available' attribute to enclosing generic struct
14 |
15 | /// The data model for this bar item.
:
19 | let isSelected: Bool
20 |
21 | func body(content: Content) -> some View {
| | |- error: conformance of 'ModifiedContent<Content, Modifier>' to 'View' is only available in macOS 10.15 or newer
| | `- note: add 'if #available' version check
| `- note: add '@available' attribute to enclosing instance method
22 | content
23 | .accessibilityElement(children: .ignore)
/Users/admin/builder/spi-builder-workspace/Sources/BarKit/ViewModifiers/DebugVisualsModifier.swift:15:6: error: 'Environment' is only available in macOS 10.15 or newer
11 | /// Overlays a colored border and background tint to visualize the view's frame.
12 | /// Only active when `debugLayoutEnabled` is `true` in the environment.
13 | struct DebugVisualsModifier: ViewModifier {
| `- note: add '@available' attribute to enclosing struct
14 | /// Current debug layout state from the environment.
15 | @Environment(\.bkDebugLayoutEnabled) var isDebugEnabled
| `- error: 'Environment' is only available in macOS 10.15 or newer
16 | /// The color used for the border and background tint.
17 | let color: Color
/Users/admin/builder/spi-builder-workspace/Sources/BarKit/ViewModifiers/DebugVisualsModifier.swift:17:16: error: 'Color' is only available in macOS 10.15 or newer
11 | /// Overlays a colored border and background tint to visualize the view's frame.
12 | /// Only active when `debugLayoutEnabled` is `true` in the environment.
13 | struct DebugVisualsModifier: ViewModifier {
| `- note: add '@available' attribute to enclosing struct
14 | /// Current debug layout state from the environment.
15 | @Environment(\.bkDebugLayoutEnabled) var isDebugEnabled
16 | /// The color used for the border and background tint.
17 | let color: Color
| `- error: 'Color' is only available in macOS 10.15 or newer
18 |
19 | func body(content: Content) -> some View {
/Users/admin/builder/spi-builder-workspace/Sources/BarKit/ViewModifiers/DebugVisualsModifier.swift:19:45: error: 'View' is only available in macOS 10.15 or newer
11 | /// Overlays a colored border and background tint to visualize the view's frame.
12 | /// Only active when `debugLayoutEnabled` is `true` in the environment.
13 | struct DebugVisualsModifier: ViewModifier {
| `- note: add '@available' attribute to enclosing struct
14 | /// Current debug layout state from the environment.
15 | @Environment(\.bkDebugLayoutEnabled) var isDebugEnabled
:
17 | let color: Color
18 |
19 | func body(content: Content) -> some View {
| | `- error: 'View' is only available in macOS 10.15 or newer
| `- note: add '@available' attribute to enclosing instance method
20 | if isDebugEnabled {
21 | content
/Users/admin/builder/spi-builder-workspace/Sources/BarKit/ViewModifiers/DebugVisualsModifier.swift:22:22: error: 'background(_:ignoresSafeAreaEdges:)' is only available in macOS 12.0 or newer
11 | /// Overlays a colored border and background tint to visualize the view's frame.
12 | /// Only active when `debugLayoutEnabled` is `true` in the environment.
13 | struct DebugVisualsModifier: ViewModifier {
| `- note: add '@available' attribute to enclosing struct
14 | /// Current debug layout state from the environment.
15 | @Environment(\.bkDebugLayoutEnabled) var isDebugEnabled
:
17 | let color: Color
18 |
19 | func body(content: Content) -> some View {
| `- note: add '@available' attribute to enclosing instance method
20 | if isDebugEnabled {
21 | content
22 | .background(color.opacity(0.2), ignoresSafeAreaEdges: [])
| |- error: 'background(_:ignoresSafeAreaEdges:)' is only available in macOS 12.0 or newer
| `- note: add 'if #available' version check
23 | .border(color.opacity(0.5), width: 1)
24 | } else {
/Users/admin/builder/spi-builder-workspace/Sources/BarKit/ViewModifiers/DebugVisualsModifier.swift:22:39: error: 'opacity' is only available in macOS 10.15 or newer
11 | /// Overlays a colored border and background tint to visualize the view's frame.
12 | /// Only active when `debugLayoutEnabled` is `true` in the environment.
13 | struct DebugVisualsModifier: ViewModifier {
| `- note: add '@available' attribute to enclosing struct
14 | /// Current debug layout state from the environment.
15 | @Environment(\.bkDebugLayoutEnabled) var isDebugEnabled
:
17 | let color: Color
18 |
19 | func body(content: Content) -> some View {
| `- note: add '@available' attribute to enclosing instance method
20 | if isDebugEnabled {
21 | content
22 | .background(color.opacity(0.2), ignoresSafeAreaEdges: [])
| |- error: 'opacity' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
23 | .border(color.opacity(0.5), width: 1)
24 | } else {
/Users/admin/builder/spi-builder-workspace/Sources/BarKit/ViewModifiers/DebugVisualsModifier.swift:23:22: error: 'border(_:width:)' is only available in macOS 10.15 or newer
11 | /// Overlays a colored border and background tint to visualize the view's frame.
12 | /// Only active when `debugLayoutEnabled` is `true` in the environment.
13 | struct DebugVisualsModifier: ViewModifier {
| `- note: add '@available' attribute to enclosing struct
14 | /// Current debug layout state from the environment.
15 | @Environment(\.bkDebugLayoutEnabled) var isDebugEnabled
:
17 | let color: Color
18 |
19 | func body(content: Content) -> some View {
| `- note: add '@available' attribute to enclosing instance method
20 | if isDebugEnabled {
21 | content
22 | .background(color.opacity(0.2), ignoresSafeAreaEdges: [])
23 | .border(color.opacity(0.5), width: 1)
| |- error: 'border(_:width:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
24 | } else {
25 | content
/Users/admin/builder/spi-builder-workspace/Sources/BarKit/ViewModifiers/DebugVisualsModifier.swift:23:35: error: 'opacity' is only available in macOS 10.15 or newer
11 | /// Overlays a colored border and background tint to visualize the view's frame.
12 | /// Only active when `debugLayoutEnabled` is `true` in the environment.
13 | struct DebugVisualsModifier: ViewModifier {
| `- note: add '@available' attribute to enclosing struct
14 | /// Current debug layout state from the environment.
15 | @Environment(\.bkDebugLayoutEnabled) var isDebugEnabled
:
17 | let color: Color
18 |
19 | func body(content: Content) -> some View {
| `- note: add '@available' attribute to enclosing instance method
20 | if isDebugEnabled {
21 | content
22 | .background(color.opacity(0.2), ignoresSafeAreaEdges: [])
23 | .border(color.opacity(0.5), width: 1)
| |- error: 'opacity' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
24 | } else {
25 | content
/Users/admin/builder/spi-builder-workspace/Sources/BarKit/ViewModifiers/DebugVisualsModifier.swift:20:31: error: 'buildEither(first:)' is only available in macOS 10.15 or newer
11 | /// Overlays a colored border and background tint to visualize the view's frame.
12 | /// Only active when `debugLayoutEnabled` is `true` in the environment.
13 | struct DebugVisualsModifier: ViewModifier {
| `- note: add '@available' attribute to enclosing struct
14 | /// Current debug layout state from the environment.
15 | @Environment(\.bkDebugLayoutEnabled) var isDebugEnabled
:
17 | let color: Color
18 |
19 | func body(content: Content) -> some View {
| `- note: add '@available' attribute to enclosing instance method
20 | if isDebugEnabled {
| |- error: 'buildEither(first:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
21 | content
22 | .background(color.opacity(0.2), ignoresSafeAreaEdges: [])
/Users/admin/builder/spi-builder-workspace/Sources/BarKit/ViewModifiers/DebugVisualsModifier.swift:24:20: error: 'buildEither(second:)' is only available in macOS 10.15 or newer
11 | /// Overlays a colored border and background tint to visualize the view's frame.
12 | /// Only active when `debugLayoutEnabled` is `true` in the environment.
13 | struct DebugVisualsModifier: ViewModifier {
| `- note: add '@available' attribute to enclosing struct
14 | /// Current debug layout state from the environment.
15 | @Environment(\.bkDebugLayoutEnabled) var isDebugEnabled
:
17 | let color: Color
18 |
19 | func body(content: Content) -> some View {
| `- note: add '@available' attribute to enclosing instance method
20 | if isDebugEnabled {
21 | content
22 | .background(color.opacity(0.2), ignoresSafeAreaEdges: [])
23 | .border(color.opacity(0.5), width: 1)
24 | } else {
| |- error: 'buildEither(second:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
25 | content
26 | }
/Users/admin/builder/spi-builder-workspace/Sources/BarKit/ViewModifiers/DebugVisualsModifier.swift:19:50: error: conformance of '_ConditionalContent<TrueContent, FalseContent>' to 'View' is only available in macOS 10.15 or newer
11 | /// Overlays a colored border and background tint to visualize the view's frame.
12 | /// Only active when `debugLayoutEnabled` is `true` in the environment.
13 | struct DebugVisualsModifier: ViewModifier {
| `- note: add '@available' attribute to enclosing struct
14 | /// Current debug layout state from the environment.
15 | @Environment(\.bkDebugLayoutEnabled) var isDebugEnabled
:
17 | let color: Color
18 |
19 | func body(content: Content) -> some View {
| | |- error: conformance of '_ConditionalContent<TrueContent, FalseContent>' to 'View' is only available in macOS 10.15 or newer
| | `- note: add 'if #available' version check
| `- note: add '@available' attribute to enclosing instance method
20 | if isDebugEnabled {
21 | content
[#ResultBuilderMethods]: <https://docs.swift.org/compiler/documentation/diagnostics/result-builder-methods>
[52/54] Compiling BarKit BarItemAccessibilityModifier.swift
/Users/admin/builder/spi-builder-workspace/Sources/BarKit/ViewModifiers/BarContainerAccessibilityModifier.swift:21:41: error: 'View' is only available in macOS 10.15 or newer
11 | /// On iOS 17+, adds the `.isTabBar` trait so VoiceOver announces
12 | /// items as tabs and automatically provides "X of Y" position hints.
13 | struct BarContainerAccessibilityModifier: ViewModifier {
| `- note: add '@available' attribute to enclosing struct
14 |
15 | /// Accessibility label for the entire bar container.
:
19 | let sortPriority: Double
20 |
21 | func body(content: Content) -> some View {
| | `- error: 'View' is only available in macOS 10.15 or newer
| `- note: add '@available' attribute to enclosing instance method
22 | if #available(iOS 17.0, *) {
23 | content
/Users/admin/builder/spi-builder-workspace/Sources/BarKit/ViewModifiers/BarContainerAccessibilityModifier.swift:22:12: warning: result builder 'ViewBuilder' does not implement 'buildLimitedAvailability'; this code may crash on earlier versions of the OS [#ResultBuilderMethods]
20 |
21 | func body(content: Content) -> some View {
22 | if #available(iOS 17.0, *) {
| `- warning: result builder 'ViewBuilder' does not implement 'buildLimitedAvailability'; this code may crash on earlier versions of the OS [#ResultBuilderMethods]
23 | content
24 | .accessibilityElement(children: .contain)
/Users/admin/builder/spi-builder-workspace/Sources/BarKit/ViewModifiers/BarContainerAccessibilityModifier.swift:23:13: error: conformance of 'ModifiedContent<Content, Modifier>' to 'View' is only available in macOS 10.15 or newer
11 | /// On iOS 17+, adds the `.isTabBar` trait so VoiceOver announces
12 | /// items as tabs and automatically provides "X of Y" position hints.
13 | struct BarContainerAccessibilityModifier: ViewModifier {
| `- note: add '@available' attribute to enclosing struct
14 |
15 | /// Accessibility label for the entire bar container.
:
19 | let sortPriority: Double
20 |
21 | func body(content: Content) -> some View {
| `- note: add '@available' attribute to enclosing instance method
22 | if #available(iOS 17.0, *) {
23 | content
| |- error: conformance of 'ModifiedContent<Content, Modifier>' to 'View' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
24 | .accessibilityElement(children: .contain)
25 | .accessibilityLabel(label)
/Users/admin/builder/spi-builder-workspace/Sources/BarKit/ViewModifiers/BarContainerAccessibilityModifier.swift:24:18: error: 'accessibilityElement(children:)' is only available in macOS 10.15 or newer
11 | /// On iOS 17+, adds the `.isTabBar` trait so VoiceOver announces
12 | /// items as tabs and automatically provides "X of Y" position hints.
13 | struct BarContainerAccessibilityModifier: ViewModifier {
| `- note: add '@available' attribute to enclosing struct
14 |
15 | /// Accessibility label for the entire bar container.
:
19 | let sortPriority: Double
20 |
21 | func body(content: Content) -> some View {
| `- note: add '@available' attribute to enclosing instance method
22 | if #available(iOS 17.0, *) {
23 | content
24 | .accessibilityElement(children: .contain)
| |- error: 'accessibilityElement(children:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
25 | .accessibilityLabel(label)
26 | .accessibilityAddTraits(.isTabBar)
/Users/admin/builder/spi-builder-workspace/Sources/BarKit/ViewModifiers/BarContainerAccessibilityModifier.swift:24:50: error: 'contain' is only available in macOS 10.15 or newer
11 | /// On iOS 17+, adds the `.isTabBar` trait so VoiceOver announces
12 | /// items as tabs and automatically provides "X of Y" position hints.
13 | struct BarContainerAccessibilityModifier: ViewModifier {
| `- note: add '@available' attribute to enclosing struct
14 |
15 | /// Accessibility label for the entire bar container.
:
19 | let sortPriority: Double
20 |
21 | func body(content: Content) -> some View {
| `- note: add '@available' attribute to enclosing instance method
22 | if #available(iOS 17.0, *) {
23 | content
24 | .accessibilityElement(children: .contain)
| |- error: 'contain' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
25 | .accessibilityLabel(label)
26 | .accessibilityAddTraits(.isTabBar)
/Users/admin/builder/spi-builder-workspace/Sources/BarKit/ViewModifiers/BarContainerAccessibilityModifier.swift:25:18: error: 'accessibilityLabel' is only available in macOS 11.0 or newer
11 | /// On iOS 17+, adds the `.isTabBar` trait so VoiceOver announces
12 | /// items as tabs and automatically provides "X of Y" position hints.
13 | struct BarContainerAccessibilityModifier: ViewModifier {
| `- note: add '@available' attribute to enclosing struct
14 |
15 | /// Accessibility label for the entire bar container.
:
19 | let sortPriority: Double
20 |
21 | func body(content: Content) -> some View {
| `- note: add '@available' attribute to enclosing instance method
22 | if #available(iOS 17.0, *) {
23 | content
24 | .accessibilityElement(children: .contain)
25 | .accessibilityLabel(label)
| |- error: 'accessibilityLabel' is only available in macOS 11.0 or newer
| `- note: add 'if #available' version check
26 | .accessibilityAddTraits(.isTabBar)
27 | .accessibilitySortPriority(sortPriority)
/Users/admin/builder/spi-builder-workspace/Sources/BarKit/ViewModifiers/BarContainerAccessibilityModifier.swift:26:18: error: 'accessibilityAddTraits' is only available in macOS 11.0 or newer
11 | /// On iOS 17+, adds the `.isTabBar` trait so VoiceOver announces
12 | /// items as tabs and automatically provides "X of Y" position hints.
13 | struct BarContainerAccessibilityModifier: ViewModifier {
| `- note: add '@available' attribute to enclosing struct
14 |
15 | /// Accessibility label for the entire bar container.
:
19 | let sortPriority: Double
20 |
21 | func body(content: Content) -> some View {
| `- note: add '@available' attribute to enclosing instance method
22 | if #available(iOS 17.0, *) {
23 | content
24 | .accessibilityElement(children: .contain)
25 | .accessibilityLabel(label)
26 | .accessibilityAddTraits(.isTabBar)
| |- error: 'accessibilityAddTraits' is only available in macOS 11.0 or newer
| `- note: add 'if #available' version check
27 | .accessibilitySortPriority(sortPriority)
28 | } else {
/Users/admin/builder/spi-builder-workspace/Sources/BarKit/ViewModifiers/BarContainerAccessibilityModifier.swift:26:42: error: 'isTabBar' is only available in macOS 14.0 or newer
11 | /// On iOS 17+, adds the `.isTabBar` trait so VoiceOver announces
12 | /// items as tabs and automatically provides "X of Y" position hints.
13 | struct BarContainerAccessibilityModifier: ViewModifier {
| `- note: add '@available' attribute to enclosing struct
14 |
15 | /// Accessibility label for the entire bar container.
:
19 | let sortPriority: Double
20 |
21 | func body(content: Content) -> some View {
| `- note: add '@available' attribute to enclosing instance method
22 | if #available(iOS 17.0, *) {
23 | content
24 | .accessibilityElement(children: .contain)
25 | .accessibilityLabel(label)
26 | .accessibilityAddTraits(.isTabBar)
| |- error: 'isTabBar' is only available in macOS 14.0 or newer
| `- note: add 'if #available' version check
27 | .accessibilitySortPriority(sortPriority)
28 | } else {
/Users/admin/builder/spi-builder-workspace/Sources/BarKit/ViewModifiers/BarContainerAccessibilityModifier.swift:27:18: error: 'accessibilitySortPriority' is only available in macOS 11.0 or newer
11 | /// On iOS 17+, adds the `.isTabBar` trait so VoiceOver announces
12 | /// items as tabs and automatically provides "X of Y" position hints.
13 | struct BarContainerAccessibilityModifier: ViewModifier {
| `- note: add '@available' attribute to enclosing struct
14 |
15 | /// Accessibility label for the entire bar container.
:
19 | let sortPriority: Double
20 |
21 | func body(content: Content) -> some View {
| `- note: add '@available' attribute to enclosing instance method
22 | if #available(iOS 17.0, *) {
23 | content
:
25 | .accessibilityLabel(label)
26 | .accessibilityAddTraits(.isTabBar)
27 | .accessibilitySortPriority(sortPriority)
| |- error: 'accessibilitySortPriority' is only available in macOS 11.0 or newer
| `- note: add 'if #available' version check
28 | } else {
29 | content
/Users/admin/builder/spi-builder-workspace/Sources/BarKit/ViewModifiers/BarContainerAccessibilityModifier.swift:22:36: error: conformance of 'ModifiedContent<Content, Modifier>' to 'View' is only available in macOS 10.15 or newer
11 | /// On iOS 17+, adds the `.isTabBar` trait so VoiceOver announces
12 | /// items as tabs and automatically provides "X of Y" position hints.
13 | struct BarContainerAccessibilityModifier: ViewModifier {
| `- note: add '@available' attribute to enclosing struct
14 |
15 | /// Accessibility label for the entire bar container.
:
19 | let sortPriority: Double
20 |
21 | func body(content: Content) -> some View {
| `- note: add '@available' attribute to enclosing instance method
22 | if #available(iOS 17.0, *) {
| |- error: conformance of 'ModifiedContent<Content, Modifier>' to 'View' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
23 | content
24 | .accessibilityElement(children: .contain)
/Users/admin/builder/spi-builder-workspace/Sources/BarKit/ViewModifiers/BarContainerAccessibilityModifier.swift:22:36: error: 'buildLimitedAvailability' is only available in macOS 11.0 or newer
11 | /// On iOS 17+, adds the `.isTabBar` trait so VoiceOver announces
12 | /// items as tabs and automatically provides "X of Y" position hints.
13 | struct BarContainerAccessibilityModifier: ViewModifier {
| `- note: add '@available' attribute to enclosing struct
14 |
15 | /// Accessibility label for the entire bar container.
:
19 | let sortPriority: Double
20 |
21 | func body(content: Content) -> some View {
| `- note: add '@available' attribute to enclosing instance method
22 | if #available(iOS 17.0, *) {
| |- error: 'buildLimitedAvailability' is only available in macOS 11.0 or newer
| `- note: add 'if #available' version check
23 | content
24 | .accessibilityElement(children: .contain)
/Users/admin/builder/spi-builder-workspace/Sources/BarKit/ViewModifiers/BarContainerAccessibilityModifier.swift:22:36: error: 'buildEither(first:)' is only available in macOS 10.15 or newer
11 | /// On iOS 17+, adds the `.isTabBar` trait so VoiceOver announces
12 | /// items as tabs and automatically provides "X of Y" position hints.
13 | struct BarContainerAccessibilityModifier: ViewModifier {
| `- note: add '@available' attribute to enclosing struct
14 |
15 | /// Accessibility label for the entire bar container.
:
19 | let sortPriority: Double
20 |
21 | func body(content: Content) -> some View {
| `- note: add '@available' attribute to enclosing instance method
22 | if #available(iOS 17.0, *) {
| |- error: 'buildEither(first:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
23 | content
24 | .accessibilityElement(children: .contain)
/Users/admin/builder/spi-builder-workspace/Sources/BarKit/ViewModifiers/BarContainerAccessibilityModifier.swift:28:16: error: 'buildEither(second:)' is only available in macOS 10.15 or newer
11 | /// On iOS 17+, adds the `.isTabBar` trait so VoiceOver announces
12 | /// items as tabs and automatically provides "X of Y" position hints.
13 | struct BarContainerAccessibilityModifier: ViewModifier {
| `- note: add '@available' attribute to enclosing struct
14 |
15 | /// Accessibility label for the entire bar container.
:
19 | let sortPriority: Double
20 |
21 | func body(content: Content) -> some View {
| `- note: add '@available' attribute to enclosing instance method
22 | if #available(iOS 17.0, *) {
23 | content
:
26 | .accessibilityAddTraits(.isTabBar)
27 | .accessibilitySortPriority(sortPriority)
28 | } else {
| |- error: 'buildEither(second:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
29 | content
30 | .accessibilityElement(children: .contain)
/Users/admin/builder/spi-builder-workspace/Sources/BarKit/ViewModifiers/BarContainerAccessibilityModifier.swift:21:46: error: conformance of '_ConditionalContent<TrueContent, FalseContent>' to 'View' is only available in macOS 10.15 or newer
11 | /// On iOS 17+, adds the `.isTabBar` trait so VoiceOver announces
12 | /// items as tabs and automatically provides "X of Y" position hints.
13 | struct BarContainerAccessibilityModifier: ViewModifier {
| `- note: add '@available' attribute to enclosing struct
14 |
15 | /// Accessibility label for the entire bar container.
:
19 | let sortPriority: Double
20 |
21 | func body(content: Content) -> some View {
| | |- error: conformance of '_ConditionalContent<TrueContent, FalseContent>' to 'View' is only available in macOS 10.15 or newer
| | `- note: add 'if #available' version check
| `- note: add '@available' attribute to enclosing instance method
22 | if #available(iOS 17.0, *) {
23 | content
/Users/admin/builder/spi-builder-workspace/Sources/BarKit/ViewModifiers/BarItemAccessibilityModifier.swift:21:41: error: 'View' is only available in macOS 10.15 or newer
11 | /// The item is presented as an atomic element — its icon and title
12 | /// are hidden from VoiceOver and replaced by a single label.
13 | struct BarItemAccessibilityModifier<Item: BarItemProtocol>: ViewModifier {
| `- note: add '@available' attribute to enclosing generic struct
14 |
15 | /// The data model for this bar item.
:
19 | let isSelected: Bool
20 |
21 | func body(content: Content) -> some View {
| | `- error: 'View' is only available in macOS 10.15 or newer
| `- note: add '@available' attribute to enclosing instance method
22 | content
23 | .accessibilityElement(children: .ignore)
/Users/admin/builder/spi-builder-workspace/Sources/BarKit/ViewModifiers/BarItemAccessibilityModifier.swift:22:9: error: conformance of 'ModifiedContent<Content, Modifier>' to 'View' is only available in macOS 10.15 or newer
11 | /// The item is presented as an atomic element — its icon and title
12 | /// are hidden from VoiceOver and replaced by a single label.
13 | struct BarItemAccessibilityModifier<Item: BarItemProtocol>: ViewModifier {
| `- note: add '@available' attribute to enclosing generic struct
14 |
15 | /// The data model for this bar item.
:
19 | let isSelected: Bool
20 |
21 | func body(content: Content) -> some View {
| `- note: add '@available' attribute to enclosing instance method
22 | content
| |- error: conformance of 'ModifiedContent<Content, Modifier>' to 'View' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
23 | .accessibilityElement(children: .ignore)
24 | .accessibilityLabel(item.accessibilityLabel ?? item.title)
/Users/admin/builder/spi-builder-workspace/Sources/BarKit/ViewModifiers/BarItemAccessibilityModifier.swift:23:14: error: 'accessibilityElement(children:)' is only available in macOS 10.15 or newer
11 | /// The item is presented as an atomic element — its icon and title
12 | /// are hidden from VoiceOver and replaced by a single label.
13 | struct BarItemAccessibilityModifier<Item: BarItemProtocol>: ViewModifier {
| `- note: add '@available' attribute to enclosing generic struct
14 |
15 | /// The data model for this bar item.
:
19 | let isSelected: Bool
20 |
21 | func body(content: Content) -> some View {
| `- note: add '@available' attribute to enclosing instance method
22 | content
23 | .accessibilityElement(children: .ignore)
| |- error: 'accessibilityElement(children:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
24 | .accessibilityLabel(item.accessibilityLabel ?? item.title)
25 | .accessibilityAddTraits(isSelected ? .isSelected : [])
/Users/admin/builder/spi-builder-workspace/Sources/BarKit/ViewModifiers/BarItemAccessibilityModifier.swift:23:46: error: 'ignore' is only available in macOS 10.15 or newer
11 | /// The item is presented as an atomic element — its icon and title
12 | /// are hidden from VoiceOver and replaced by a single label.
13 | struct BarItemAccessibilityModifier<Item: BarItemProtocol>: ViewModifier {
| `- note: add '@available' attribute to enclosing generic struct
14 |
15 | /// The data model for this bar item.
:
19 | let isSelected: Bool
20 |
21 | func body(content: Content) -> some View {
| `- note: add '@available' attribute to enclosing instance method
22 | content
23 | .accessibilityElement(children: .ignore)
| |- error: 'ignore' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
24 | .accessibilityLabel(item.accessibilityLabel ?? item.title)
25 | .accessibilityAddTraits(isSelected ? .isSelected : [])
/Users/admin/builder/spi-builder-workspace/Sources/BarKit/ViewModifiers/BarItemAccessibilityModifier.swift:24:14: error: 'accessibilityLabel' is only available in macOS 11.0 or newer
11 | /// The item is presented as an atomic element — its icon and title
12 | /// are hidden from VoiceOver and replaced by a single label.
13 | struct BarItemAccessibilityModifier<Item: BarItemProtocol>: ViewModifier {
| `- note: add '@available' attribute to enclosing generic struct
14 |
15 | /// The data model for this bar item.
:
19 | let isSelected: Bool
20 |
21 | func body(content: Content) -> some View {
| `- note: add '@available' attribute to enclosing instance method
22 | content
23 | .accessibilityElement(children: .ignore)
24 | .accessibilityLabel(item.accessibilityLabel ?? item.title)
| |- error: 'accessibilityLabel' is only available in macOS 11.0 or newer
| `- note: add 'if #available' version check
25 | .accessibilityAddTraits(isSelected ? .isSelected : [])
26 | }
/Users/admin/builder/spi-builder-workspace/Sources/BarKit/ViewModifiers/BarItemAccessibilityModifier.swift:25:14: error: 'accessibilityAddTraits' is only available in macOS 11.0 or newer
11 | /// The item is presented as an atomic element — its icon and title
12 | /// are hidden from VoiceOver and replaced by a single label.
13 | struct BarItemAccessibilityModifier<Item: BarItemProtocol>: ViewModifier {
| `- note: add '@available' attribute to enclosing generic struct
14 |
15 | /// The data model for this bar item.
:
19 | let isSelected: Bool
20 |
21 | func body(content: Content) -> some View {
| `- note: add '@available' attribute to enclosing instance method
22 | content
23 | .accessibilityElement(children: .ignore)
24 | .accessibilityLabel(item.accessibilityLabel ?? item.title)
25 | .accessibilityAddTraits(isSelected ? .isSelected : [])
| |- error: 'accessibilityAddTraits' is only available in macOS 11.0 or newer
| `- note: add 'if #available' version check
26 | }
27 | }
/Users/admin/builder/spi-builder-workspace/Sources/BarKit/ViewModifiers/BarItemAccessibilityModifier.swift:21:46: error: conformance of 'ModifiedContent<Content, Modifier>' to 'View' is only available in macOS 10.15 or newer
11 | /// The item is presented as an atomic element — its icon and title
12 | /// are hidden from VoiceOver and replaced by a single label.
13 | struct BarItemAccessibilityModifier<Item: BarItemProtocol>: ViewModifier {
| `- note: add '@available' attribute to enclosing generic struct
14 |
15 | /// The data model for this bar item.
:
19 | let isSelected: Bool
20 |
21 | func body(content: Content) -> some View {
| | |- error: conformance of 'ModifiedContent<Content, Modifier>' to 'View' is only available in macOS 10.15 or newer
| | `- note: add 'if #available' version check
| `- note: add '@available' attribute to enclosing instance method
22 | content
23 | .accessibilityElement(children: .ignore)
/Users/admin/builder/spi-builder-workspace/Sources/BarKit/ViewModifiers/DebugVisualsModifier.swift:15:6: error: 'Environment' is only available in macOS 10.15 or newer
11 | /// Overlays a colored border and background tint to visualize the view's frame.
12 | /// Only active when `debugLayoutEnabled` is `true` in the environment.
13 | struct DebugVisualsModifier: ViewModifier {
| `- note: add '@available' attribute to enclosing struct
14 | /// Current debug layout state from the environment.
15 | @Environment(\.bkDebugLayoutEnabled) var isDebugEnabled
| `- error: 'Environment' is only available in macOS 10.15 or newer
16 | /// The color used for the border and background tint.
17 | let color: Color
/Users/admin/builder/spi-builder-workspace/Sources/BarKit/ViewModifiers/DebugVisualsModifier.swift:17:16: error: 'Color' is only available in macOS 10.15 or newer
11 | /// Overlays a colored border and background tint to visualize the view's frame.
12 | /// Only active when `debugLayoutEnabled` is `true` in the environment.
13 | struct DebugVisualsModifier: ViewModifier {
| `- note: add '@available' attribute to enclosing struct
14 | /// Current debug layout state from the environment.
15 | @Environment(\.bkDebugLayoutEnabled) var isDebugEnabled
16 | /// The color used for the border and background tint.
17 | let color: Color
| `- error: 'Color' is only available in macOS 10.15 or newer
18 |
19 | func body(content: Content) -> some View {
/Users/admin/builder/spi-builder-workspace/Sources/BarKit/ViewModifiers/DebugVisualsModifier.swift:19:45: error: 'View' is only available in macOS 10.15 or newer
11 | /// Overlays a colored border and background tint to visualize the view's frame.
12 | /// Only active when `debugLayoutEnabled` is `true` in the environment.
13 | struct DebugVisualsModifier: ViewModifier {
| `- note: add '@available' attribute to enclosing struct
14 | /// Current debug layout state from the environment.
15 | @Environment(\.bkDebugLayoutEnabled) var isDebugEnabled
:
17 | let color: Color
18 |
19 | func body(content: Content) -> some View {
| | `- error: 'View' is only available in macOS 10.15 or newer
| `- note: add '@available' attribute to enclosing instance method
20 | if isDebugEnabled {
21 | content
/Users/admin/builder/spi-builder-workspace/Sources/BarKit/ViewModifiers/DebugVisualsModifier.swift:22:22: error: 'background(_:ignoresSafeAreaEdges:)' is only available in macOS 12.0 or newer
11 | /// Overlays a colored border and background tint to visualize the view's frame.
12 | /// Only active when `debugLayoutEnabled` is `true` in the environment.
13 | struct DebugVisualsModifier: ViewModifier {
| `- note: add '@available' attribute to enclosing struct
14 | /// Current debug layout state from the environment.
15 | @Environment(\.bkDebugLayoutEnabled) var isDebugEnabled
:
17 | let color: Color
18 |
19 | func body(content: Content) -> some View {
| `- note: add '@available' attribute to enclosing instance method
20 | if isDebugEnabled {
21 | content
22 | .background(color.opacity(0.2), ignoresSafeAreaEdges: [])
| |- error: 'background(_:ignoresSafeAreaEdges:)' is only available in macOS 12.0 or newer
| `- note: add 'if #available' version check
23 | .border(color.opacity(0.5), width: 1)
24 | } else {
/Users/admin/builder/spi-builder-workspace/Sources/BarKit/ViewModifiers/DebugVisualsModifier.swift:22:39: error: 'opacity' is only available in macOS 10.15 or newer
11 | /// Overlays a colored border and background tint to visualize the view's frame.
12 | /// Only active when `debugLayoutEnabled` is `true` in the environment.
13 | struct DebugVisualsModifier: ViewModifier {
| `- note: add '@available' attribute to enclosing struct
14 | /// Current debug layout state from the environment.
15 | @Environment(\.bkDebugLayoutEnabled) var isDebugEnabled
:
17 | let color: Color
18 |
19 | func body(content: Content) -> some View {
| `- note: add '@available' attribute to enclosing instance method
20 | if isDebugEnabled {
21 | content
22 | .background(color.opacity(0.2), ignoresSafeAreaEdges: [])
| |- error: 'opacity' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
23 | .border(color.opacity(0.5), width: 1)
24 | } else {
/Users/admin/builder/spi-builder-workspace/Sources/BarKit/ViewModifiers/DebugVisualsModifier.swift:23:22: error: 'border(_:width:)' is only available in macOS 10.15 or newer
11 | /// Overlays a colored border and background tint to visualize the view's frame.
12 | /// Only active when `debugLayoutEnabled` is `true` in the environment.
13 | struct DebugVisualsModifier: ViewModifier {
| `- note: add '@available' attribute to enclosing struct
14 | /// Current debug layout state from the environment.
15 | @Environment(\.bkDebugLayoutEnabled) var isDebugEnabled
:
17 | let color: Color
18 |
19 | func body(content: Content) -> some View {
| `- note: add '@available' attribute to enclosing instance method
20 | if isDebugEnabled {
21 | content
22 | .background(color.opacity(0.2), ignoresSafeAreaEdges: [])
23 | .border(color.opacity(0.5), width: 1)
| |- error: 'border(_:width:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
24 | } else {
25 | content
/Users/admin/builder/spi-builder-workspace/Sources/BarKit/ViewModifiers/DebugVisualsModifier.swift:23:35: error: 'opacity' is only available in macOS 10.15 or newer
11 | /// Overlays a colored border and background tint to visualize the view's frame.
12 | /// Only active when `debugLayoutEnabled` is `true` in the environment.
13 | struct DebugVisualsModifier: ViewModifier {
| `- note: add '@available' attribute to enclosing struct
14 | /// Current debug layout state from the environment.
15 | @Environment(\.bkDebugLayoutEnabled) var isDebugEnabled
:
17 | let color: Color
18 |
19 | func body(content: Content) -> some View {
| `- note: add '@available' attribute to enclosing instance method
20 | if isDebugEnabled {
21 | content
22 | .background(color.opacity(0.2), ignoresSafeAreaEdges: [])
23 | .border(color.opacity(0.5), width: 1)
| |- error: 'opacity' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
24 | } else {
25 | content
/Users/admin/builder/spi-builder-workspace/Sources/BarKit/ViewModifiers/DebugVisualsModifier.swift:20:31: error: 'buildEither(first:)' is only available in macOS 10.15 or newer
11 | /// Overlays a colored border and background tint to visualize the view's frame.
12 | /// Only active when `debugLayoutEnabled` is `true` in the environment.
13 | struct DebugVisualsModifier: ViewModifier {
| `- note: add '@available' attribute to enclosing struct
14 | /// Current debug layout state from the environment.
15 | @Environment(\.bkDebugLayoutEnabled) var isDebugEnabled
:
17 | let color: Color
18 |
19 | func body(content: Content) -> some View {
| `- note: add '@available' attribute to enclosing instance method
20 | if isDebugEnabled {
| |- error: 'buildEither(first:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
21 | content
22 | .background(color.opacity(0.2), ignoresSafeAreaEdges: [])
/Users/admin/builder/spi-builder-workspace/Sources/BarKit/ViewModifiers/DebugVisualsModifier.swift:24:20: error: 'buildEither(second:)' is only available in macOS 10.15 or newer
11 | /// Overlays a colored border and background tint to visualize the view's frame.
12 | /// Only active when `debugLayoutEnabled` is `true` in the environment.
13 | struct DebugVisualsModifier: ViewModifier {
| `- note: add '@available' attribute to enclosing struct
14 | /// Current debug layout state from the environment.
15 | @Environment(\.bkDebugLayoutEnabled) var isDebugEnabled
:
17 | let color: Color
18 |
19 | func body(content: Content) -> some View {
| `- note: add '@available' attribute to enclosing instance method
20 | if isDebugEnabled {
21 | content
22 | .background(color.opacity(0.2), ignoresSafeAreaEdges: [])
23 | .border(color.opacity(0.5), width: 1)
24 | } else {
| |- error: 'buildEither(second:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
25 | content
26 | }
/Users/admin/builder/spi-builder-workspace/Sources/BarKit/ViewModifiers/DebugVisualsModifier.swift:19:50: error: conformance of '_ConditionalContent<TrueContent, FalseContent>' to 'View' is only available in macOS 10.15 or newer
11 | /// Overlays a colored border and background tint to visualize the view's frame.
12 | /// Only active when `debugLayoutEnabled` is `true` in the environment.
13 | struct DebugVisualsModifier: ViewModifier {
| `- note: add '@available' attribute to enclosing struct
14 | /// Current debug layout state from the environment.
15 | @Environment(\.bkDebugLayoutEnabled) var isDebugEnabled
:
17 | let color: Color
18 |
19 | func body(content: Content) -> some View {
| | |- error: conformance of '_ConditionalContent<TrueContent, FalseContent>' to 'View' is only available in macOS 10.15 or newer
| | `- note: add 'if #available' version check
| `- note: add '@available' attribute to enclosing instance method
20 | if isDebugEnabled {
21 | content
[#ResultBuilderMethods]: <https://docs.swift.org/compiler/documentation/diagnostics/result-builder-methods>
[53/54] Compiling BarKit DebugVisualsModifier.swift
/Users/admin/builder/spi-builder-workspace/Sources/BarKit/ViewModifiers/BarContainerAccessibilityModifier.swift:21:41: error: 'View' is only available in macOS 10.15 or newer
11 | /// On iOS 17+, adds the `.isTabBar` trait so VoiceOver announces
12 | /// items as tabs and automatically provides "X of Y" position hints.
13 | struct BarContainerAccessibilityModifier: ViewModifier {
| `- note: add '@available' attribute to enclosing struct
14 |
15 | /// Accessibility label for the entire bar container.
:
19 | let sortPriority: Double
20 |
21 | func body(content: Content) -> some View {
| | `- error: 'View' is only available in macOS 10.15 or newer
| `- note: add '@available' attribute to enclosing instance method
22 | if #available(iOS 17.0, *) {
23 | content
/Users/admin/builder/spi-builder-workspace/Sources/BarKit/ViewModifiers/BarContainerAccessibilityModifier.swift:22:12: warning: result builder 'ViewBuilder' does not implement 'buildLimitedAvailability'; this code may crash on earlier versions of the OS [#ResultBuilderMethods]
20 |
21 | func body(content: Content) -> some View {
22 | if #available(iOS 17.0, *) {
| `- warning: result builder 'ViewBuilder' does not implement 'buildLimitedAvailability'; this code may crash on earlier versions of the OS [#ResultBuilderMethods]
23 | content
24 | .accessibilityElement(children: .contain)
/Users/admin/builder/spi-builder-workspace/Sources/BarKit/ViewModifiers/BarContainerAccessibilityModifier.swift:23:13: error: conformance of 'ModifiedContent<Content, Modifier>' to 'View' is only available in macOS 10.15 or newer
11 | /// On iOS 17+, adds the `.isTabBar` trait so VoiceOver announces
12 | /// items as tabs and automatically provides "X of Y" position hints.
13 | struct BarContainerAccessibilityModifier: ViewModifier {
| `- note: add '@available' attribute to enclosing struct
14 |
15 | /// Accessibility label for the entire bar container.
:
19 | let sortPriority: Double
20 |
21 | func body(content: Content) -> some View {
| `- note: add '@available' attribute to enclosing instance method
22 | if #available(iOS 17.0, *) {
23 | content
| |- error: conformance of 'ModifiedContent<Content, Modifier>' to 'View' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
24 | .accessibilityElement(children: .contain)
25 | .accessibilityLabel(label)
/Users/admin/builder/spi-builder-workspace/Sources/BarKit/ViewModifiers/BarContainerAccessibilityModifier.swift:24:18: error: 'accessibilityElement(children:)' is only available in macOS 10.15 or newer
11 | /// On iOS 17+, adds the `.isTabBar` trait so VoiceOver announces
12 | /// items as tabs and automatically provides "X of Y" position hints.
13 | struct BarContainerAccessibilityModifier: ViewModifier {
| `- note: add '@available' attribute to enclosing struct
14 |
15 | /// Accessibility label for the entire bar container.
:
19 | let sortPriority: Double
20 |
21 | func body(content: Content) -> some View {
| `- note: add '@available' attribute to enclosing instance method
22 | if #available(iOS 17.0, *) {
23 | content
24 | .accessibilityElement(children: .contain)
| |- error: 'accessibilityElement(children:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
25 | .accessibilityLabel(label)
26 | .accessibilityAddTraits(.isTabBar)
/Users/admin/builder/spi-builder-workspace/Sources/BarKit/ViewModifiers/BarContainerAccessibilityModifier.swift:24:50: error: 'contain' is only available in macOS 10.15 or newer
11 | /// On iOS 17+, adds the `.isTabBar` trait so VoiceOver announces
12 | /// items as tabs and automatically provides "X of Y" position hints.
13 | struct BarContainerAccessibilityModifier: ViewModifier {
| `- note: add '@available' attribute to enclosing struct
14 |
15 | /// Accessibility label for the entire bar container.
:
19 | let sortPriority: Double
20 |
21 | func body(content: Content) -> some View {
| `- note: add '@available' attribute to enclosing instance method
22 | if #available(iOS 17.0, *) {
23 | content
24 | .accessibilityElement(children: .contain)
| |- error: 'contain' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
25 | .accessibilityLabel(label)
26 | .accessibilityAddTraits(.isTabBar)
/Users/admin/builder/spi-builder-workspace/Sources/BarKit/ViewModifiers/BarContainerAccessibilityModifier.swift:25:18: error: 'accessibilityLabel' is only available in macOS 11.0 or newer
11 | /// On iOS 17+, adds the `.isTabBar` trait so VoiceOver announces
12 | /// items as tabs and automatically provides "X of Y" position hints.
13 | struct BarContainerAccessibilityModifier: ViewModifier {
| `- note: add '@available' attribute to enclosing struct
14 |
15 | /// Accessibility label for the entire bar container.
:
19 | let sortPriority: Double
20 |
21 | func body(content: Content) -> some View {
| `- note: add '@available' attribute to enclosing instance method
22 | if #available(iOS 17.0, *) {
23 | content
24 | .accessibilityElement(children: .contain)
25 | .accessibilityLabel(label)
| |- error: 'accessibilityLabel' is only available in macOS 11.0 or newer
| `- note: add 'if #available' version check
26 | .accessibilityAddTraits(.isTabBar)
27 | .accessibilitySortPriority(sortPriority)
/Users/admin/builder/spi-builder-workspace/Sources/BarKit/ViewModifiers/BarContainerAccessibilityModifier.swift:26:18: error: 'accessibilityAddTraits' is only available in macOS 11.0 or newer
11 | /// On iOS 17+, adds the `.isTabBar` trait so VoiceOver announces
12 | /// items as tabs and automatically provides "X of Y" position hints.
13 | struct BarContainerAccessibilityModifier: ViewModifier {
| `- note: add '@available' attribute to enclosing struct
14 |
15 | /// Accessibility label for the entire bar container.
:
19 | let sortPriority: Double
20 |
21 | func body(content: Content) -> some View {
| `- note: add '@available' attribute to enclosing instance method
22 | if #available(iOS 17.0, *) {
23 | content
24 | .accessibilityElement(children: .contain)
25 | .accessibilityLabel(label)
26 | .accessibilityAddTraits(.isTabBar)
| |- error: 'accessibilityAddTraits' is only available in macOS 11.0 or newer
| `- note: add 'if #available' version check
27 | .accessibilitySortPriority(sortPriority)
28 | } else {
/Users/admin/builder/spi-builder-workspace/Sources/BarKit/ViewModifiers/BarContainerAccessibilityModifier.swift:26:42: error: 'isTabBar' is only available in macOS 14.0 or newer
11 | /// On iOS 17+, adds the `.isTabBar` trait so VoiceOver announces
12 | /// items as tabs and automatically provides "X of Y" position hints.
13 | struct BarContainerAccessibilityModifier: ViewModifier {
| `- note: add '@available' attribute to enclosing struct
14 |
15 | /// Accessibility label for the entire bar container.
:
19 | let sortPriority: Double
20 |
21 | func body(content: Content) -> some View {
| `- note: add '@available' attribute to enclosing instance method
22 | if #available(iOS 17.0, *) {
23 | content
24 | .accessibilityElement(children: .contain)
25 | .accessibilityLabel(label)
26 | .accessibilityAddTraits(.isTabBar)
| |- error: 'isTabBar' is only available in macOS 14.0 or newer
| `- note: add 'if #available' version check
27 | .accessibilitySortPriority(sortPriority)
28 | } else {
/Users/admin/builder/spi-builder-workspace/Sources/BarKit/ViewModifiers/BarContainerAccessibilityModifier.swift:27:18: error: 'accessibilitySortPriority' is only available in macOS 11.0 or newer
11 | /// On iOS 17+, adds the `.isTabBar` trait so VoiceOver announces
12 | /// items as tabs and automatically provides "X of Y" position hints.
13 | struct BarContainerAccessibilityModifier: ViewModifier {
| `- note: add '@available' attribute to enclosing struct
14 |
15 | /// Accessibility label for the entire bar container.
:
19 | let sortPriority: Double
20 |
21 | func body(content: Content) -> some View {
| `- note: add '@available' attribute to enclosing instance method
22 | if #available(iOS 17.0, *) {
23 | content
:
25 | .accessibilityLabel(label)
26 | .accessibilityAddTraits(.isTabBar)
27 | .accessibilitySortPriority(sortPriority)
| |- error: 'accessibilitySortPriority' is only available in macOS 11.0 or newer
| `- note: add 'if #available' version check
28 | } else {
29 | content
/Users/admin/builder/spi-builder-workspace/Sources/BarKit/ViewModifiers/BarContainerAccessibilityModifier.swift:22:36: error: conformance of 'ModifiedContent<Content, Modifier>' to 'View' is only available in macOS 10.15 or newer
11 | /// On iOS 17+, adds the `.isTabBar` trait so VoiceOver announces
12 | /// items as tabs and automatically provides "X of Y" position hints.
13 | struct BarContainerAccessibilityModifier: ViewModifier {
| `- note: add '@available' attribute to enclosing struct
14 |
15 | /// Accessibility label for the entire bar container.
:
19 | let sortPriority: Double
20 |
21 | func body(content: Content) -> some View {
| `- note: add '@available' attribute to enclosing instance method
22 | if #available(iOS 17.0, *) {
| |- error: conformance of 'ModifiedContent<Content, Modifier>' to 'View' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
23 | content
24 | .accessibilityElement(children: .contain)
/Users/admin/builder/spi-builder-workspace/Sources/BarKit/ViewModifiers/BarContainerAccessibilityModifier.swift:22:36: error: 'buildLimitedAvailability' is only available in macOS 11.0 or newer
11 | /// On iOS 17+, adds the `.isTabBar` trait so VoiceOver announces
12 | /// items as tabs and automatically provides "X of Y" position hints.
13 | struct BarContainerAccessibilityModifier: ViewModifier {
| `- note: add '@available' attribute to enclosing struct
14 |
15 | /// Accessibility label for the entire bar container.
:
19 | let sortPriority: Double
20 |
21 | func body(content: Content) -> some View {
| `- note: add '@available' attribute to enclosing instance method
22 | if #available(iOS 17.0, *) {
| |- error: 'buildLimitedAvailability' is only available in macOS 11.0 or newer
| `- note: add 'if #available' version check
23 | content
24 | .accessibilityElement(children: .contain)
/Users/admin/builder/spi-builder-workspace/Sources/BarKit/ViewModifiers/BarContainerAccessibilityModifier.swift:22:36: error: 'buildEither(first:)' is only available in macOS 10.15 or newer
11 | /// On iOS 17+, adds the `.isTabBar` trait so VoiceOver announces
12 | /// items as tabs and automatically provides "X of Y" position hints.
13 | struct BarContainerAccessibilityModifier: ViewModifier {
| `- note: add '@available' attribute to enclosing struct
14 |
15 | /// Accessibility label for the entire bar container.
:
19 | let sortPriority: Double
20 |
21 | func body(content: Content) -> some View {
| `- note: add '@available' attribute to enclosing instance method
22 | if #available(iOS 17.0, *) {
| |- error: 'buildEither(first:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
23 | content
24 | .accessibilityElement(children: .contain)
/Users/admin/builder/spi-builder-workspace/Sources/BarKit/ViewModifiers/BarContainerAccessibilityModifier.swift:28:16: error: 'buildEither(second:)' is only available in macOS 10.15 or newer
11 | /// On iOS 17+, adds the `.isTabBar` trait so VoiceOver announces
12 | /// items as tabs and automatically provides "X of Y" position hints.
13 | struct BarContainerAccessibilityModifier: ViewModifier {
| `- note: add '@available' attribute to enclosing struct
14 |
15 | /// Accessibility label for the entire bar container.
:
19 | let sortPriority: Double
20 |
21 | func body(content: Content) -> some View {
| `- note: add '@available' attribute to enclosing instance method
22 | if #available(iOS 17.0, *) {
23 | content
:
26 | .accessibilityAddTraits(.isTabBar)
27 | .accessibilitySortPriority(sortPriority)
28 | } else {
| |- error: 'buildEither(second:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
29 | content
30 | .accessibilityElement(children: .contain)
/Users/admin/builder/spi-builder-workspace/Sources/BarKit/ViewModifiers/BarContainerAccessibilityModifier.swift:21:46: error: conformance of '_ConditionalContent<TrueContent, FalseContent>' to 'View' is only available in macOS 10.15 or newer
11 | /// On iOS 17+, adds the `.isTabBar` trait so VoiceOver announces
12 | /// items as tabs and automatically provides "X of Y" position hints.
13 | struct BarContainerAccessibilityModifier: ViewModifier {
| `- note: add '@available' attribute to enclosing struct
14 |
15 | /// Accessibility label for the entire bar container.
:
19 | let sortPriority: Double
20 |
21 | func body(content: Content) -> some View {
| | |- error: conformance of '_ConditionalContent<TrueContent, FalseContent>' to 'View' is only available in macOS 10.15 or newer
| | `- note: add 'if #available' version check
| `- note: add '@available' attribute to enclosing instance method
22 | if #available(iOS 17.0, *) {
23 | content
/Users/admin/builder/spi-builder-workspace/Sources/BarKit/ViewModifiers/BarItemAccessibilityModifier.swift:21:41: error: 'View' is only available in macOS 10.15 or newer
11 | /// The item is presented as an atomic element — its icon and title
12 | /// are hidden from VoiceOver and replaced by a single label.
13 | struct BarItemAccessibilityModifier<Item: BarItemProtocol>: ViewModifier {
| `- note: add '@available' attribute to enclosing generic struct
14 |
15 | /// The data model for this bar item.
:
19 | let isSelected: Bool
20 |
21 | func body(content: Content) -> some View {
| | `- error: 'View' is only available in macOS 10.15 or newer
| `- note: add '@available' attribute to enclosing instance method
22 | content
23 | .accessibilityElement(children: .ignore)
/Users/admin/builder/spi-builder-workspace/Sources/BarKit/ViewModifiers/BarItemAccessibilityModifier.swift:22:9: error: conformance of 'ModifiedContent<Content, Modifier>' to 'View' is only available in macOS 10.15 or newer
11 | /// The item is presented as an atomic element — its icon and title
12 | /// are hidden from VoiceOver and replaced by a single label.
13 | struct BarItemAccessibilityModifier<Item: BarItemProtocol>: ViewModifier {
| `- note: add '@available' attribute to enclosing generic struct
14 |
15 | /// The data model for this bar item.
:
19 | let isSelected: Bool
20 |
21 | func body(content: Content) -> some View {
| `- note: add '@available' attribute to enclosing instance method
22 | content
| |- error: conformance of 'ModifiedContent<Content, Modifier>' to 'View' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
23 | .accessibilityElement(children: .ignore)
24 | .accessibilityLabel(item.accessibilityLabel ?? item.title)
/Users/admin/builder/spi-builder-workspace/Sources/BarKit/ViewModifiers/BarItemAccessibilityModifier.swift:23:14: error: 'accessibilityElement(children:)' is only available in macOS 10.15 or newer
11 | /// The item is presented as an atomic element — its icon and title
12 | /// are hidden from VoiceOver and replaced by a single label.
13 | struct BarItemAccessibilityModifier<Item: BarItemProtocol>: ViewModifier {
| `- note: add '@available' attribute to enclosing generic struct
14 |
15 | /// The data model for this bar item.
:
19 | let isSelected: Bool
20 |
21 | func body(content: Content) -> some View {
| `- note: add '@available' attribute to enclosing instance method
22 | content
23 | .accessibilityElement(children: .ignore)
| |- error: 'accessibilityElement(children:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
24 | .accessibilityLabel(item.accessibilityLabel ?? item.title)
25 | .accessibilityAddTraits(isSelected ? .isSelected : [])
/Users/admin/builder/spi-builder-workspace/Sources/BarKit/ViewModifiers/BarItemAccessibilityModifier.swift:23:46: error: 'ignore' is only available in macOS 10.15 or newer
11 | /// The item is presented as an atomic element — its icon and title
12 | /// are hidden from VoiceOver and replaced by a single label.
13 | struct BarItemAccessibilityModifier<Item: BarItemProtocol>: ViewModifier {
| `- note: add '@available' attribute to enclosing generic struct
14 |
15 | /// The data model for this bar item.
:
19 | let isSelected: Bool
20 |
21 | func body(content: Content) -> some View {
| `- note: add '@available' attribute to enclosing instance method
22 | content
23 | .accessibilityElement(children: .ignore)
| |- error: 'ignore' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
24 | .accessibilityLabel(item.accessibilityLabel ?? item.title)
25 | .accessibilityAddTraits(isSelected ? .isSelected : [])
/Users/admin/builder/spi-builder-workspace/Sources/BarKit/ViewModifiers/BarItemAccessibilityModifier.swift:24:14: error: 'accessibilityLabel' is only available in macOS 11.0 or newer
11 | /// The item is presented as an atomic element — its icon and title
12 | /// are hidden from VoiceOver and replaced by a single label.
13 | struct BarItemAccessibilityModifier<Item: BarItemProtocol>: ViewModifier {
| `- note: add '@available' attribute to enclosing generic struct
14 |
15 | /// The data model for this bar item.
:
19 | let isSelected: Bool
20 |
21 | func body(content: Content) -> some View {
| `- note: add '@available' attribute to enclosing instance method
22 | content
23 | .accessibilityElement(children: .ignore)
24 | .accessibilityLabel(item.accessibilityLabel ?? item.title)
| |- error: 'accessibilityLabel' is only available in macOS 11.0 or newer
| `- note: add 'if #available' version check
25 | .accessibilityAddTraits(isSelected ? .isSelected : [])
26 | }
/Users/admin/builder/spi-builder-workspace/Sources/BarKit/ViewModifiers/BarItemAccessibilityModifier.swift:25:14: error: 'accessibilityAddTraits' is only available in macOS 11.0 or newer
11 | /// The item is presented as an atomic element — its icon and title
12 | /// are hidden from VoiceOver and replaced by a single label.
13 | struct BarItemAccessibilityModifier<Item: BarItemProtocol>: ViewModifier {
| `- note: add '@available' attribute to enclosing generic struct
14 |
15 | /// The data model for this bar item.
:
19 | let isSelected: Bool
20 |
21 | func body(content: Content) -> some View {
| `- note: add '@available' attribute to enclosing instance method
22 | content
23 | .accessibilityElement(children: .ignore)
24 | .accessibilityLabel(item.accessibilityLabel ?? item.title)
25 | .accessibilityAddTraits(isSelected ? .isSelected : [])
| |- error: 'accessibilityAddTraits' is only available in macOS 11.0 or newer
| `- note: add 'if #available' version check
26 | }
27 | }
/Users/admin/builder/spi-builder-workspace/Sources/BarKit/ViewModifiers/BarItemAccessibilityModifier.swift:21:46: error: conformance of 'ModifiedContent<Content, Modifier>' to 'View' is only available in macOS 10.15 or newer
11 | /// The item is presented as an atomic element — its icon and title
12 | /// are hidden from VoiceOver and replaced by a single label.
13 | struct BarItemAccessibilityModifier<Item: BarItemProtocol>: ViewModifier {
| `- note: add '@available' attribute to enclosing generic struct
14 |
15 | /// The data model for this bar item.
:
19 | let isSelected: Bool
20 |
21 | func body(content: Content) -> some View {
| | |- error: conformance of 'ModifiedContent<Content, Modifier>' to 'View' is only available in macOS 10.15 or newer
| | `- note: add 'if #available' version check
| `- note: add '@available' attribute to enclosing instance method
22 | content
23 | .accessibilityElement(children: .ignore)
/Users/admin/builder/spi-builder-workspace/Sources/BarKit/ViewModifiers/DebugVisualsModifier.swift:15:6: error: 'Environment' is only available in macOS 10.15 or newer
11 | /// Overlays a colored border and background tint to visualize the view's frame.
12 | /// Only active when `debugLayoutEnabled` is `true` in the environment.
13 | struct DebugVisualsModifier: ViewModifier {
| `- note: add '@available' attribute to enclosing struct
14 | /// Current debug layout state from the environment.
15 | @Environment(\.bkDebugLayoutEnabled) var isDebugEnabled
| `- error: 'Environment' is only available in macOS 10.15 or newer
16 | /// The color used for the border and background tint.
17 | let color: Color
/Users/admin/builder/spi-builder-workspace/Sources/BarKit/ViewModifiers/DebugVisualsModifier.swift:17:16: error: 'Color' is only available in macOS 10.15 or newer
11 | /// Overlays a colored border and background tint to visualize the view's frame.
12 | /// Only active when `debugLayoutEnabled` is `true` in the environment.
13 | struct DebugVisualsModifier: ViewModifier {
| `- note: add '@available' attribute to enclosing struct
14 | /// Current debug layout state from the environment.
15 | @Environment(\.bkDebugLayoutEnabled) var isDebugEnabled
16 | /// The color used for the border and background tint.
17 | let color: Color
| `- error: 'Color' is only available in macOS 10.15 or newer
18 |
19 | func body(content: Content) -> some View {
/Users/admin/builder/spi-builder-workspace/Sources/BarKit/ViewModifiers/DebugVisualsModifier.swift:19:45: error: 'View' is only available in macOS 10.15 or newer
11 | /// Overlays a colored border and background tint to visualize the view's frame.
12 | /// Only active when `debugLayoutEnabled` is `true` in the environment.
13 | struct DebugVisualsModifier: ViewModifier {
| `- note: add '@available' attribute to enclosing struct
14 | /// Current debug layout state from the environment.
15 | @Environment(\.bkDebugLayoutEnabled) var isDebugEnabled
:
17 | let color: Color
18 |
19 | func body(content: Content) -> some View {
| | `- error: 'View' is only available in macOS 10.15 or newer
| `- note: add '@available' attribute to enclosing instance method
20 | if isDebugEnabled {
21 | content
/Users/admin/builder/spi-builder-workspace/Sources/BarKit/ViewModifiers/DebugVisualsModifier.swift:22:22: error: 'background(_:ignoresSafeAreaEdges:)' is only available in macOS 12.0 or newer
11 | /// Overlays a colored border and background tint to visualize the view's frame.
12 | /// Only active when `debugLayoutEnabled` is `true` in the environment.
13 | struct DebugVisualsModifier: ViewModifier {
| `- note: add '@available' attribute to enclosing struct
14 | /// Current debug layout state from the environment.
15 | @Environment(\.bkDebugLayoutEnabled) var isDebugEnabled
:
17 | let color: Color
18 |
19 | func body(content: Content) -> some View {
| `- note: add '@available' attribute to enclosing instance method
20 | if isDebugEnabled {
21 | content
22 | .background(color.opacity(0.2), ignoresSafeAreaEdges: [])
| |- error: 'background(_:ignoresSafeAreaEdges:)' is only available in macOS 12.0 or newer
| `- note: add 'if #available' version check
23 | .border(color.opacity(0.5), width: 1)
24 | } else {
/Users/admin/builder/spi-builder-workspace/Sources/BarKit/ViewModifiers/DebugVisualsModifier.swift:22:39: error: 'opacity' is only available in macOS 10.15 or newer
11 | /// Overlays a colored border and background tint to visualize the view's frame.
12 | /// Only active when `debugLayoutEnabled` is `true` in the environment.
13 | struct DebugVisualsModifier: ViewModifier {
| `- note: add '@available' attribute to enclosing struct
14 | /// Current debug layout state from the environment.
15 | @Environment(\.bkDebugLayoutEnabled) var isDebugEnabled
:
17 | let color: Color
18 |
19 | func body(content: Content) -> some View {
| `- note: add '@available' attribute to enclosing instance method
20 | if isDebugEnabled {
21 | content
22 | .background(color.opacity(0.2), ignoresSafeAreaEdges: [])
| |- error: 'opacity' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
23 | .border(color.opacity(0.5), width: 1)
24 | } else {
/Users/admin/builder/spi-builder-workspace/Sources/BarKit/ViewModifiers/DebugVisualsModifier.swift:23:22: error: 'border(_:width:)' is only available in macOS 10.15 or newer
11 | /// Overlays a colored border and background tint to visualize the view's frame.
12 | /// Only active when `debugLayoutEnabled` is `true` in the environment.
13 | struct DebugVisualsModifier: ViewModifier {
| `- note: add '@available' attribute to enclosing struct
14 | /// Current debug layout state from the environment.
15 | @Environment(\.bkDebugLayoutEnabled) var isDebugEnabled
:
17 | let color: Color
18 |
19 | func body(content: Content) -> some View {
| `- note: add '@available' attribute to enclosing instance method
20 | if isDebugEnabled {
21 | content
22 | .background(color.opacity(0.2), ignoresSafeAreaEdges: [])
23 | .border(color.opacity(0.5), width: 1)
| |- error: 'border(_:width:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
24 | } else {
25 | content
/Users/admin/builder/spi-builder-workspace/Sources/BarKit/ViewModifiers/DebugVisualsModifier.swift:23:35: error: 'opacity' is only available in macOS 10.15 or newer
11 | /// Overlays a colored border and background tint to visualize the view's frame.
12 | /// Only active when `debugLayoutEnabled` is `true` in the environment.
13 | struct DebugVisualsModifier: ViewModifier {
| `- note: add '@available' attribute to enclosing struct
14 | /// Current debug layout state from the environment.
15 | @Environment(\.bkDebugLayoutEnabled) var isDebugEnabled
:
17 | let color: Color
18 |
19 | func body(content: Content) -> some View {
| `- note: add '@available' attribute to enclosing instance method
20 | if isDebugEnabled {
21 | content
22 | .background(color.opacity(0.2), ignoresSafeAreaEdges: [])
23 | .border(color.opacity(0.5), width: 1)
| |- error: 'opacity' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
24 | } else {
25 | content
/Users/admin/builder/spi-builder-workspace/Sources/BarKit/ViewModifiers/DebugVisualsModifier.swift:20:31: error: 'buildEither(first:)' is only available in macOS 10.15 or newer
11 | /// Overlays a colored border and background tint to visualize the view's frame.
12 | /// Only active when `debugLayoutEnabled` is `true` in the environment.
13 | struct DebugVisualsModifier: ViewModifier {
| `- note: add '@available' attribute to enclosing struct
14 | /// Current debug layout state from the environment.
15 | @Environment(\.bkDebugLayoutEnabled) var isDebugEnabled
:
17 | let color: Color
18 |
19 | func body(content: Content) -> some View {
| `- note: add '@available' attribute to enclosing instance method
20 | if isDebugEnabled {
| |- error: 'buildEither(first:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
21 | content
22 | .background(color.opacity(0.2), ignoresSafeAreaEdges: [])
/Users/admin/builder/spi-builder-workspace/Sources/BarKit/ViewModifiers/DebugVisualsModifier.swift:24:20: error: 'buildEither(second:)' is only available in macOS 10.15 or newer
11 | /// Overlays a colored border and background tint to visualize the view's frame.
12 | /// Only active when `debugLayoutEnabled` is `true` in the environment.
13 | struct DebugVisualsModifier: ViewModifier {
| `- note: add '@available' attribute to enclosing struct
14 | /// Current debug layout state from the environment.
15 | @Environment(\.bkDebugLayoutEnabled) var isDebugEnabled
:
17 | let color: Color
18 |
19 | func body(content: Content) -> some View {
| `- note: add '@available' attribute to enclosing instance method
20 | if isDebugEnabled {
21 | content
22 | .background(color.opacity(0.2), ignoresSafeAreaEdges: [])
23 | .border(color.opacity(0.5), width: 1)
24 | } else {
| |- error: 'buildEither(second:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
25 | content
26 | }
/Users/admin/builder/spi-builder-workspace/Sources/BarKit/ViewModifiers/DebugVisualsModifier.swift:19:50: error: conformance of '_ConditionalContent<TrueContent, FalseContent>' to 'View' is only available in macOS 10.15 or newer
11 | /// Overlays a colored border and background tint to visualize the view's frame.
12 | /// Only active when `debugLayoutEnabled` is `true` in the environment.
13 | struct DebugVisualsModifier: ViewModifier {
| `- note: add '@available' attribute to enclosing struct
14 | /// Current debug layout state from the environment.
15 | @Environment(\.bkDebugLayoutEnabled) var isDebugEnabled
:
17 | let color: Color
18 |
19 | func body(content: Content) -> some View {
| | |- error: conformance of '_ConditionalContent<TrueContent, FalseContent>' to 'View' is only available in macOS 10.15 or newer
| | `- note: add 'if #available' version check
| `- note: add '@available' attribute to enclosing instance method
20 | if isDebugEnabled {
21 | content
[#ResultBuilderMethods]: <https://docs.swift.org/compiler/documentation/diagnostics/result-builder-methods>
[54/54] Compiling BarKit resource_bundle_accessor.swift
/Users/admin/builder/spi-builder-workspace/Sources/BarKit/ViewModifiers/BarContainerAccessibilityModifier.swift:21:41: error: 'View' is only available in macOS 10.15 or newer
11 | /// On iOS 17+, adds the `.isTabBar` trait so VoiceOver announces
12 | /// items as tabs and automatically provides "X of Y" position hints.
13 | struct BarContainerAccessibilityModifier: ViewModifier {
| `- note: add '@available' attribute to enclosing struct
14 |
15 | /// Accessibility label for the entire bar container.
:
19 | let sortPriority: Double
20 |
21 | func body(content: Content) -> some View {
| | `- error: 'View' is only available in macOS 10.15 or newer
| `- note: add '@available' attribute to enclosing instance method
22 | if #available(iOS 17.0, *) {
23 | content
/Users/admin/builder/spi-builder-workspace/Sources/BarKit/ViewModifiers/BarContainerAccessibilityModifier.swift:22:12: warning: result builder 'ViewBuilder' does not implement 'buildLimitedAvailability'; this code may crash on earlier versions of the OS [#ResultBuilderMethods]
20 |
21 | func body(content: Content) -> some View {
22 | if #available(iOS 17.0, *) {
| `- warning: result builder 'ViewBuilder' does not implement 'buildLimitedAvailability'; this code may crash on earlier versions of the OS [#ResultBuilderMethods]
23 | content
24 | .accessibilityElement(children: .contain)
/Users/admin/builder/spi-builder-workspace/Sources/BarKit/ViewModifiers/BarContainerAccessibilityModifier.swift:23:13: error: conformance of 'ModifiedContent<Content, Modifier>' to 'View' is only available in macOS 10.15 or newer
11 | /// On iOS 17+, adds the `.isTabBar` trait so VoiceOver announces
12 | /// items as tabs and automatically provides "X of Y" position hints.
13 | struct BarContainerAccessibilityModifier: ViewModifier {
| `- note: add '@available' attribute to enclosing struct
14 |
15 | /// Accessibility label for the entire bar container.
:
19 | let sortPriority: Double
20 |
21 | func body(content: Content) -> some View {
| `- note: add '@available' attribute to enclosing instance method
22 | if #available(iOS 17.0, *) {
23 | content
| |- error: conformance of 'ModifiedContent<Content, Modifier>' to 'View' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
24 | .accessibilityElement(children: .contain)
25 | .accessibilityLabel(label)
/Users/admin/builder/spi-builder-workspace/Sources/BarKit/ViewModifiers/BarContainerAccessibilityModifier.swift:24:18: error: 'accessibilityElement(children:)' is only available in macOS 10.15 or newer
11 | /// On iOS 17+, adds the `.isTabBar` trait so VoiceOver announces
12 | /// items as tabs and automatically provides "X of Y" position hints.
13 | struct BarContainerAccessibilityModifier: ViewModifier {
| `- note: add '@available' attribute to enclosing struct
14 |
15 | /// Accessibility label for the entire bar container.
:
19 | let sortPriority: Double
20 |
21 | func body(content: Content) -> some View {
| `- note: add '@available' attribute to enclosing instance method
22 | if #available(iOS 17.0, *) {
23 | content
24 | .accessibilityElement(children: .contain)
| |- error: 'accessibilityElement(children:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
25 | .accessibilityLabel(label)
26 | .accessibilityAddTraits(.isTabBar)
/Users/admin/builder/spi-builder-workspace/Sources/BarKit/ViewModifiers/BarContainerAccessibilityModifier.swift:24:50: error: 'contain' is only available in macOS 10.15 or newer
11 | /// On iOS 17+, adds the `.isTabBar` trait so VoiceOver announces
12 | /// items as tabs and automatically provides "X of Y" position hints.
13 | struct BarContainerAccessibilityModifier: ViewModifier {
| `- note: add '@available' attribute to enclosing struct
14 |
15 | /// Accessibility label for the entire bar container.
:
19 | let sortPriority: Double
20 |
21 | func body(content: Content) -> some View {
| `- note: add '@available' attribute to enclosing instance method
22 | if #available(iOS 17.0, *) {
23 | content
24 | .accessibilityElement(children: .contain)
| |- error: 'contain' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
25 | .accessibilityLabel(label)
26 | .accessibilityAddTraits(.isTabBar)
/Users/admin/builder/spi-builder-workspace/Sources/BarKit/ViewModifiers/BarContainerAccessibilityModifier.swift:25:18: error: 'accessibilityLabel' is only available in macOS 11.0 or newer
11 | /// On iOS 17+, adds the `.isTabBar` trait so VoiceOver announces
12 | /// items as tabs and automatically provides "X of Y" position hints.
13 | struct BarContainerAccessibilityModifier: ViewModifier {
| `- note: add '@available' attribute to enclosing struct
14 |
15 | /// Accessibility label for the entire bar container.
:
19 | let sortPriority: Double
20 |
21 | func body(content: Content) -> some View {
| `- note: add '@available' attribute to enclosing instance method
22 | if #available(iOS 17.0, *) {
23 | content
24 | .accessibilityElement(children: .contain)
25 | .accessibilityLabel(label)
| |- error: 'accessibilityLabel' is only available in macOS 11.0 or newer
| `- note: add 'if #available' version check
26 | .accessibilityAddTraits(.isTabBar)
27 | .accessibilitySortPriority(sortPriority)
/Users/admin/builder/spi-builder-workspace/Sources/BarKit/ViewModifiers/BarContainerAccessibilityModifier.swift:26:18: error: 'accessibilityAddTraits' is only available in macOS 11.0 or newer
11 | /// On iOS 17+, adds the `.isTabBar` trait so VoiceOver announces
12 | /// items as tabs and automatically provides "X of Y" position hints.
13 | struct BarContainerAccessibilityModifier: ViewModifier {
| `- note: add '@available' attribute to enclosing struct
14 |
15 | /// Accessibility label for the entire bar container.
:
19 | let sortPriority: Double
20 |
21 | func body(content: Content) -> some View {
| `- note: add '@available' attribute to enclosing instance method
22 | if #available(iOS 17.0, *) {
23 | content
24 | .accessibilityElement(children: .contain)
25 | .accessibilityLabel(label)
26 | .accessibilityAddTraits(.isTabBar)
| |- error: 'accessibilityAddTraits' is only available in macOS 11.0 or newer
| `- note: add 'if #available' version check
27 | .accessibilitySortPriority(sortPriority)
28 | } else {
/Users/admin/builder/spi-builder-workspace/Sources/BarKit/ViewModifiers/BarContainerAccessibilityModifier.swift:26:42: error: 'isTabBar' is only available in macOS 14.0 or newer
11 | /// On iOS 17+, adds the `.isTabBar` trait so VoiceOver announces
12 | /// items as tabs and automatically provides "X of Y" position hints.
13 | struct BarContainerAccessibilityModifier: ViewModifier {
| `- note: add '@available' attribute to enclosing struct
14 |
15 | /// Accessibility label for the entire bar container.
:
19 | let sortPriority: Double
20 |
21 | func body(content: Content) -> some View {
| `- note: add '@available' attribute to enclosing instance method
22 | if #available(iOS 17.0, *) {
23 | content
24 | .accessibilityElement(children: .contain)
25 | .accessibilityLabel(label)
26 | .accessibilityAddTraits(.isTabBar)
| |- error: 'isTabBar' is only available in macOS 14.0 or newer
| `- note: add 'if #available' version check
27 | .accessibilitySortPriority(sortPriority)
28 | } else {
/Users/admin/builder/spi-builder-workspace/Sources/BarKit/ViewModifiers/BarContainerAccessibilityModifier.swift:27:18: error: 'accessibilitySortPriority' is only available in macOS 11.0 or newer
11 | /// On iOS 17+, adds the `.isTabBar` trait so VoiceOver announces
12 | /// items as tabs and automatically provides "X of Y" position hints.
13 | struct BarContainerAccessibilityModifier: ViewModifier {
| `- note: add '@available' attribute to enclosing struct
14 |
15 | /// Accessibility label for the entire bar container.
:
19 | let sortPriority: Double
20 |
21 | func body(content: Content) -> some View {
| `- note: add '@available' attribute to enclosing instance method
22 | if #available(iOS 17.0, *) {
23 | content
:
25 | .accessibilityLabel(label)
26 | .accessibilityAddTraits(.isTabBar)
27 | .accessibilitySortPriority(sortPriority)
| |- error: 'accessibilitySortPriority' is only available in macOS 11.0 or newer
| `- note: add 'if #available' version check
28 | } else {
29 | content
/Users/admin/builder/spi-builder-workspace/Sources/BarKit/ViewModifiers/BarContainerAccessibilityModifier.swift:22:36: error: conformance of 'ModifiedContent<Content, Modifier>' to 'View' is only available in macOS 10.15 or newer
11 | /// On iOS 17+, adds the `.isTabBar` trait so VoiceOver announces
12 | /// items as tabs and automatically provides "X of Y" position hints.
13 | struct BarContainerAccessibilityModifier: ViewModifier {
| `- note: add '@available' attribute to enclosing struct
14 |
15 | /// Accessibility label for the entire bar container.
:
19 | let sortPriority: Double
20 |
21 | func body(content: Content) -> some View {
| `- note: add '@available' attribute to enclosing instance method
22 | if #available(iOS 17.0, *) {
| |- error: conformance of 'ModifiedContent<Content, Modifier>' to 'View' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
23 | content
24 | .accessibilityElement(children: .contain)
/Users/admin/builder/spi-builder-workspace/Sources/BarKit/ViewModifiers/BarContainerAccessibilityModifier.swift:22:36: error: 'buildLimitedAvailability' is only available in macOS 11.0 or newer
11 | /// On iOS 17+, adds the `.isTabBar` trait so VoiceOver announces
12 | /// items as tabs and automatically provides "X of Y" position hints.
13 | struct BarContainerAccessibilityModifier: ViewModifier {
| `- note: add '@available' attribute to enclosing struct
14 |
15 | /// Accessibility label for the entire bar container.
:
19 | let sortPriority: Double
20 |
21 | func body(content: Content) -> some View {
| `- note: add '@available' attribute to enclosing instance method
22 | if #available(iOS 17.0, *) {
| |- error: 'buildLimitedAvailability' is only available in macOS 11.0 or newer
| `- note: add 'if #available' version check
23 | content
24 | .accessibilityElement(children: .contain)
/Users/admin/builder/spi-builder-workspace/Sources/BarKit/ViewModifiers/BarContainerAccessibilityModifier.swift:22:36: error: 'buildEither(first:)' is only available in macOS 10.15 or newer
11 | /// On iOS 17+, adds the `.isTabBar` trait so VoiceOver announces
12 | /// items as tabs and automatically provides "X of Y" position hints.
13 | struct BarContainerAccessibilityModifier: ViewModifier {
| `- note: add '@available' attribute to enclosing struct
14 |
15 | /// Accessibility label for the entire bar container.
:
19 | let sortPriority: Double
20 |
21 | func body(content: Content) -> some View {
| `- note: add '@available' attribute to enclosing instance method
22 | if #available(iOS 17.0, *) {
| |- error: 'buildEither(first:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
23 | content
24 | .accessibilityElement(children: .contain)
/Users/admin/builder/spi-builder-workspace/Sources/BarKit/ViewModifiers/BarContainerAccessibilityModifier.swift:28:16: error: 'buildEither(second:)' is only available in macOS 10.15 or newer
11 | /// On iOS 17+, adds the `.isTabBar` trait so VoiceOver announces
12 | /// items as tabs and automatically provides "X of Y" position hints.
13 | struct BarContainerAccessibilityModifier: ViewModifier {
| `- note: add '@available' attribute to enclosing struct
14 |
15 | /// Accessibility label for the entire bar container.
:
19 | let sortPriority: Double
20 |
21 | func body(content: Content) -> some View {
| `- note: add '@available' attribute to enclosing instance method
22 | if #available(iOS 17.0, *) {
23 | content
:
26 | .accessibilityAddTraits(.isTabBar)
27 | .accessibilitySortPriority(sortPriority)
28 | } else {
| |- error: 'buildEither(second:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
29 | content
30 | .accessibilityElement(children: .contain)
/Users/admin/builder/spi-builder-workspace/Sources/BarKit/ViewModifiers/BarContainerAccessibilityModifier.swift:21:46: error: conformance of '_ConditionalContent<TrueContent, FalseContent>' to 'View' is only available in macOS 10.15 or newer
11 | /// On iOS 17+, adds the `.isTabBar` trait so VoiceOver announces
12 | /// items as tabs and automatically provides "X of Y" position hints.
13 | struct BarContainerAccessibilityModifier: ViewModifier {
| `- note: add '@available' attribute to enclosing struct
14 |
15 | /// Accessibility label for the entire bar container.
:
19 | let sortPriority: Double
20 |
21 | func body(content: Content) -> some View {
| | |- error: conformance of '_ConditionalContent<TrueContent, FalseContent>' to 'View' is only available in macOS 10.15 or newer
| | `- note: add 'if #available' version check
| `- note: add '@available' attribute to enclosing instance method
22 | if #available(iOS 17.0, *) {
23 | content
/Users/admin/builder/spi-builder-workspace/Sources/BarKit/ViewModifiers/BarItemAccessibilityModifier.swift:21:41: error: 'View' is only available in macOS 10.15 or newer
11 | /// The item is presented as an atomic element — its icon and title
12 | /// are hidden from VoiceOver and replaced by a single label.
13 | struct BarItemAccessibilityModifier<Item: BarItemProtocol>: ViewModifier {
| `- note: add '@available' attribute to enclosing generic struct
14 |
15 | /// The data model for this bar item.
:
19 | let isSelected: Bool
20 |
21 | func body(content: Content) -> some View {
| | `- error: 'View' is only available in macOS 10.15 or newer
| `- note: add '@available' attribute to enclosing instance method
22 | content
23 | .accessibilityElement(children: .ignore)
/Users/admin/builder/spi-builder-workspace/Sources/BarKit/ViewModifiers/BarItemAccessibilityModifier.swift:22:9: error: conformance of 'ModifiedContent<Content, Modifier>' to 'View' is only available in macOS 10.15 or newer
11 | /// The item is presented as an atomic element — its icon and title
12 | /// are hidden from VoiceOver and replaced by a single label.
13 | struct BarItemAccessibilityModifier<Item: BarItemProtocol>: ViewModifier {
| `- note: add '@available' attribute to enclosing generic struct
14 |
15 | /// The data model for this bar item.
:
19 | let isSelected: Bool
20 |
21 | func body(content: Content) -> some View {
| `- note: add '@available' attribute to enclosing instance method
22 | content
| |- error: conformance of 'ModifiedContent<Content, Modifier>' to 'View' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
23 | .accessibilityElement(children: .ignore)
24 | .accessibilityLabel(item.accessibilityLabel ?? item.title)
/Users/admin/builder/spi-builder-workspace/Sources/BarKit/ViewModifiers/BarItemAccessibilityModifier.swift:23:14: error: 'accessibilityElement(children:)' is only available in macOS 10.15 or newer
11 | /// The item is presented as an atomic element — its icon and title
12 | /// are hidden from VoiceOver and replaced by a single label.
13 | struct BarItemAccessibilityModifier<Item: BarItemProtocol>: ViewModifier {
| `- note: add '@available' attribute to enclosing generic struct
14 |
15 | /// The data model for this bar item.
:
19 | let isSelected: Bool
20 |
21 | func body(content: Content) -> some View {
| `- note: add '@available' attribute to enclosing instance method
22 | content
23 | .accessibilityElement(children: .ignore)
| |- error: 'accessibilityElement(children:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
24 | .accessibilityLabel(item.accessibilityLabel ?? item.title)
25 | .accessibilityAddTraits(isSelected ? .isSelected : [])
/Users/admin/builder/spi-builder-workspace/Sources/BarKit/ViewModifiers/BarItemAccessibilityModifier.swift:23:46: error: 'ignore' is only available in macOS 10.15 or newer
11 | /// The item is presented as an atomic element — its icon and title
12 | /// are hidden from VoiceOver and replaced by a single label.
13 | struct BarItemAccessibilityModifier<Item: BarItemProtocol>: ViewModifier {
| `- note: add '@available' attribute to enclosing generic struct
14 |
15 | /// The data model for this bar item.
:
19 | let isSelected: Bool
20 |
21 | func body(content: Content) -> some View {
| `- note: add '@available' attribute to enclosing instance method
22 | content
23 | .accessibilityElement(children: .ignore)
| |- error: 'ignore' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
24 | .accessibilityLabel(item.accessibilityLabel ?? item.title)
25 | .accessibilityAddTraits(isSelected ? .isSelected : [])
/Users/admin/builder/spi-builder-workspace/Sources/BarKit/ViewModifiers/BarItemAccessibilityModifier.swift:24:14: error: 'accessibilityLabel' is only available in macOS 11.0 or newer
11 | /// The item is presented as an atomic element — its icon and title
12 | /// are hidden from VoiceOver and replaced by a single label.
13 | struct BarItemAccessibilityModifier<Item: BarItemProtocol>: ViewModifier {
| `- note: add '@available' attribute to enclosing generic struct
14 |
15 | /// The data model for this bar item.
:
19 | let isSelected: Bool
20 |
21 | func body(content: Content) -> some View {
| `- note: add '@available' attribute to enclosing instance method
22 | content
23 | .accessibilityElement(children: .ignore)
24 | .accessibilityLabel(item.accessibilityLabel ?? item.title)
| |- error: 'accessibilityLabel' is only available in macOS 11.0 or newer
| `- note: add 'if #available' version check
25 | .accessibilityAddTraits(isSelected ? .isSelected : [])
26 | }
/Users/admin/builder/spi-builder-workspace/Sources/BarKit/ViewModifiers/BarItemAccessibilityModifier.swift:25:14: error: 'accessibilityAddTraits' is only available in macOS 11.0 or newer
11 | /// The item is presented as an atomic element — its icon and title
12 | /// are hidden from VoiceOver and replaced by a single label.
13 | struct BarItemAccessibilityModifier<Item: BarItemProtocol>: ViewModifier {
| `- note: add '@available' attribute to enclosing generic struct
14 |
15 | /// The data model for this bar item.
:
19 | let isSelected: Bool
20 |
21 | func body(content: Content) -> some View {
| `- note: add '@available' attribute to enclosing instance method
22 | content
23 | .accessibilityElement(children: .ignore)
24 | .accessibilityLabel(item.accessibilityLabel ?? item.title)
25 | .accessibilityAddTraits(isSelected ? .isSelected : [])
| |- error: 'accessibilityAddTraits' is only available in macOS 11.0 or newer
| `- note: add 'if #available' version check
26 | }
27 | }
/Users/admin/builder/spi-builder-workspace/Sources/BarKit/ViewModifiers/BarItemAccessibilityModifier.swift:21:46: error: conformance of 'ModifiedContent<Content, Modifier>' to 'View' is only available in macOS 10.15 or newer
11 | /// The item is presented as an atomic element — its icon and title
12 | /// are hidden from VoiceOver and replaced by a single label.
13 | struct BarItemAccessibilityModifier<Item: BarItemProtocol>: ViewModifier {
| `- note: add '@available' attribute to enclosing generic struct
14 |
15 | /// The data model for this bar item.
:
19 | let isSelected: Bool
20 |
21 | func body(content: Content) -> some View {
| | |- error: conformance of 'ModifiedContent<Content, Modifier>' to 'View' is only available in macOS 10.15 or newer
| | `- note: add 'if #available' version check
| `- note: add '@available' attribute to enclosing instance method
22 | content
23 | .accessibilityElement(children: .ignore)
/Users/admin/builder/spi-builder-workspace/Sources/BarKit/ViewModifiers/DebugVisualsModifier.swift:15:6: error: 'Environment' is only available in macOS 10.15 or newer
11 | /// Overlays a colored border and background tint to visualize the view's frame.
12 | /// Only active when `debugLayoutEnabled` is `true` in the environment.
13 | struct DebugVisualsModifier: ViewModifier {
| `- note: add '@available' attribute to enclosing struct
14 | /// Current debug layout state from the environment.
15 | @Environment(\.bkDebugLayoutEnabled) var isDebugEnabled
| `- error: 'Environment' is only available in macOS 10.15 or newer
16 | /// The color used for the border and background tint.
17 | let color: Color
/Users/admin/builder/spi-builder-workspace/Sources/BarKit/ViewModifiers/DebugVisualsModifier.swift:17:16: error: 'Color' is only available in macOS 10.15 or newer
11 | /// Overlays a colored border and background tint to visualize the view's frame.
12 | /// Only active when `debugLayoutEnabled` is `true` in the environment.
13 | struct DebugVisualsModifier: ViewModifier {
| `- note: add '@available' attribute to enclosing struct
14 | /// Current debug layout state from the environment.
15 | @Environment(\.bkDebugLayoutEnabled) var isDebugEnabled
16 | /// The color used for the border and background tint.
17 | let color: Color
| `- error: 'Color' is only available in macOS 10.15 or newer
18 |
19 | func body(content: Content) -> some View {
/Users/admin/builder/spi-builder-workspace/Sources/BarKit/ViewModifiers/DebugVisualsModifier.swift:19:45: error: 'View' is only available in macOS 10.15 or newer
11 | /// Overlays a colored border and background tint to visualize the view's frame.
12 | /// Only active when `debugLayoutEnabled` is `true` in the environment.
13 | struct DebugVisualsModifier: ViewModifier {
| `- note: add '@available' attribute to enclosing struct
14 | /// Current debug layout state from the environment.
15 | @Environment(\.bkDebugLayoutEnabled) var isDebugEnabled
:
17 | let color: Color
18 |
19 | func body(content: Content) -> some View {
| | `- error: 'View' is only available in macOS 10.15 or newer
| `- note: add '@available' attribute to enclosing instance method
20 | if isDebugEnabled {
21 | content
/Users/admin/builder/spi-builder-workspace/Sources/BarKit/ViewModifiers/DebugVisualsModifier.swift:22:22: error: 'background(_:ignoresSafeAreaEdges:)' is only available in macOS 12.0 or newer
11 | /// Overlays a colored border and background tint to visualize the view's frame.
12 | /// Only active when `debugLayoutEnabled` is `true` in the environment.
13 | struct DebugVisualsModifier: ViewModifier {
| `- note: add '@available' attribute to enclosing struct
14 | /// Current debug layout state from the environment.
15 | @Environment(\.bkDebugLayoutEnabled) var isDebugEnabled
:
17 | let color: Color
18 |
19 | func body(content: Content) -> some View {
| `- note: add '@available' attribute to enclosing instance method
20 | if isDebugEnabled {
21 | content
22 | .background(color.opacity(0.2), ignoresSafeAreaEdges: [])
| |- error: 'background(_:ignoresSafeAreaEdges:)' is only available in macOS 12.0 or newer
| `- note: add 'if #available' version check
23 | .border(color.opacity(0.5), width: 1)
24 | } else {
/Users/admin/builder/spi-builder-workspace/Sources/BarKit/ViewModifiers/DebugVisualsModifier.swift:22:39: error: 'opacity' is only available in macOS 10.15 or newer
11 | /// Overlays a colored border and background tint to visualize the view's frame.
12 | /// Only active when `debugLayoutEnabled` is `true` in the environment.
13 | struct DebugVisualsModifier: ViewModifier {
| `- note: add '@available' attribute to enclosing struct
14 | /// Current debug layout state from the environment.
15 | @Environment(\.bkDebugLayoutEnabled) var isDebugEnabled
:
17 | let color: Color
18 |
19 | func body(content: Content) -> some View {
| `- note: add '@available' attribute to enclosing instance method
20 | if isDebugEnabled {
21 | content
22 | .background(color.opacity(0.2), ignoresSafeAreaEdges: [])
| |- error: 'opacity' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
23 | .border(color.opacity(0.5), width: 1)
24 | } else {
/Users/admin/builder/spi-builder-workspace/Sources/BarKit/ViewModifiers/DebugVisualsModifier.swift:23:22: error: 'border(_:width:)' is only available in macOS 10.15 or newer
11 | /// Overlays a colored border and background tint to visualize the view's frame.
12 | /// Only active when `debugLayoutEnabled` is `true` in the environment.
13 | struct DebugVisualsModifier: ViewModifier {
| `- note: add '@available' attribute to enclosing struct
14 | /// Current debug layout state from the environment.
15 | @Environment(\.bkDebugLayoutEnabled) var isDebugEnabled
:
17 | let color: Color
18 |
19 | func body(content: Content) -> some View {
| `- note: add '@available' attribute to enclosing instance method
20 | if isDebugEnabled {
21 | content
22 | .background(color.opacity(0.2), ignoresSafeAreaEdges: [])
23 | .border(color.opacity(0.5), width: 1)
| |- error: 'border(_:width:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
24 | } else {
25 | content
/Users/admin/builder/spi-builder-workspace/Sources/BarKit/ViewModifiers/DebugVisualsModifier.swift:23:35: error: 'opacity' is only available in macOS 10.15 or newer
11 | /// Overlays a colored border and background tint to visualize the view's frame.
12 | /// Only active when `debugLayoutEnabled` is `true` in the environment.
13 | struct DebugVisualsModifier: ViewModifier {
| `- note: add '@available' attribute to enclosing struct
14 | /// Current debug layout state from the environment.
15 | @Environment(\.bkDebugLayoutEnabled) var isDebugEnabled
:
17 | let color: Color
18 |
19 | func body(content: Content) -> some View {
| `- note: add '@available' attribute to enclosing instance method
20 | if isDebugEnabled {
21 | content
22 | .background(color.opacity(0.2), ignoresSafeAreaEdges: [])
23 | .border(color.opacity(0.5), width: 1)
| |- error: 'opacity' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
24 | } else {
25 | content
/Users/admin/builder/spi-builder-workspace/Sources/BarKit/ViewModifiers/DebugVisualsModifier.swift:20:31: error: 'buildEither(first:)' is only available in macOS 10.15 or newer
11 | /// Overlays a colored border and background tint to visualize the view's frame.
12 | /// Only active when `debugLayoutEnabled` is `true` in the environment.
13 | struct DebugVisualsModifier: ViewModifier {
| `- note: add '@available' attribute to enclosing struct
14 | /// Current debug layout state from the environment.
15 | @Environment(\.bkDebugLayoutEnabled) var isDebugEnabled
:
17 | let color: Color
18 |
19 | func body(content: Content) -> some View {
| `- note: add '@available' attribute to enclosing instance method
20 | if isDebugEnabled {
| |- error: 'buildEither(first:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
21 | content
22 | .background(color.opacity(0.2), ignoresSafeAreaEdges: [])
/Users/admin/builder/spi-builder-workspace/Sources/BarKit/ViewModifiers/DebugVisualsModifier.swift:24:20: error: 'buildEither(second:)' is only available in macOS 10.15 or newer
11 | /// Overlays a colored border and background tint to visualize the view's frame.
12 | /// Only active when `debugLayoutEnabled` is `true` in the environment.
13 | struct DebugVisualsModifier: ViewModifier {
| `- note: add '@available' attribute to enclosing struct
14 | /// Current debug layout state from the environment.
15 | @Environment(\.bkDebugLayoutEnabled) var isDebugEnabled
:
17 | let color: Color
18 |
19 | func body(content: Content) -> some View {
| `- note: add '@available' attribute to enclosing instance method
20 | if isDebugEnabled {
21 | content
22 | .background(color.opacity(0.2), ignoresSafeAreaEdges: [])
23 | .border(color.opacity(0.5), width: 1)
24 | } else {
| |- error: 'buildEither(second:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
25 | content
26 | }
/Users/admin/builder/spi-builder-workspace/Sources/BarKit/ViewModifiers/DebugVisualsModifier.swift:19:50: error: conformance of '_ConditionalContent<TrueContent, FalseContent>' to 'View' is only available in macOS 10.15 or newer
11 | /// Overlays a colored border and background tint to visualize the view's frame.
12 | /// Only active when `debugLayoutEnabled` is `true` in the environment.
13 | struct DebugVisualsModifier: ViewModifier {
| `- note: add '@available' attribute to enclosing struct
14 | /// Current debug layout state from the environment.
15 | @Environment(\.bkDebugLayoutEnabled) var isDebugEnabled
:
17 | let color: Color
18 |
19 | func body(content: Content) -> some View {
| | |- error: conformance of '_ConditionalContent<TrueContent, FalseContent>' to 'View' is only available in macOS 10.15 or newer
| | `- note: add 'if #available' version check
| `- note: add '@available' attribute to enclosing instance method
20 | if isDebugEnabled {
21 | content
[#ResultBuilderMethods]: <https://docs.swift.org/compiler/documentation/diagnostics/result-builder-methods>
BUILD FAILURE 6.2 macosSpm