Build Information
Failed to build TabBar, reference master (995e6b
), with Swift 6.0 for macOS (SPM) on 6 Nov 2024 17:18:19 UTC.
Build Command
env DEVELOPER_DIR=/Applications/Xcode-16.1.0.app xcrun swift build --arch arm64 -Xswiftc -Xfrontend -Xswiftc -stats-output-dir -Xswiftc -Xfrontend -Xswiftc .stats -Xswiftc -strict-concurrency=complete
Build Log
========================================
RunAll
========================================
Builder version: 4.56.0
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/onl1ner/TabBar.git
Reference: master
Initialized empty Git repository in /Users/admin/builder/spi-builder-workspace/.git/
From https://github.com/onl1ner/TabBar
* branch master -> FETCH_HEAD
* [new branch] master -> origin/master
HEAD is now at 995e6bc Merge pull request #14 from onl1ner/feature/tab-item-selected-icon
Cloned https://github.com/onl1ner/TabBar.git
Revision (git rev-parse @):
995e6bc32829d0a0f5300d6f49b654412068dbbe
SUCCESS checkout https://github.com/onl1ner/TabBar.git at master
========================================
ResolveProductDependencies
========================================
Resolving dependencies ...
{
"identity": ".resolve-product-dependencies",
"name": "resolve-dependencies",
"url": "/Users/admin/builder/spi-builder-workspace/.resolve-product-dependencies",
"version": "unspecified",
"path": "/Users/admin/builder/spi-builder-workspace/.resolve-product-dependencies",
"dependencies": [
{
"identity": "tabbar",
"name": "TabBar",
"url": "https://github.com/onl1ner/TabBar.git",
"version": "unspecified",
"path": "/Users/admin/builder/spi-builder-workspace/.resolve-product-dependencies/.build/checkouts/TabBar",
"dependencies": [
]
}
]
}
Fetching https://github.com/onl1ner/TabBar.git
[1/429] Fetching tabbar
Fetched https://github.com/onl1ner/TabBar.git from cache (0.79s)
Creating working copy for https://github.com/onl1ner/TabBar.git
Working copy of https://github.com/onl1ner/TabBar.git resolved at master (995e6bc)
warning: '.resolve-product-dependencies': dependency 'tabbar' is not used by any target
Found 0 product dependencies
========================================
Build
========================================
Selected platform: macosSpm
Swift version: 6.0
Building package at path: $PWD
https://github.com/onl1ner/TabBar.git
Running build ...
env DEVELOPER_DIR=/Applications/Xcode-16.1.0.app xcrun swift build --arch arm64 -Xswiftc -Xfrontend -Xswiftc -stats-output-dir -Xswiftc -Xfrontend -Xswiftc .stats -Xswiftc -strict-concurrency=complete
Building for debugging...
[0/2] Write sources
[1/2] Write swift-version--7754E27361AE5C74.txt
error: emit-module command failed with exit code 1 (use -v to see invocation)
[3/15] Compiling TabBar TabBarVisibility.swift
[4/15] Compiling TabBar Tabbable.swift
[5/15] Emitting module TabBar
/Users/admin/builder/spi-builder-workspace/Sources/TabBar/Common/Extensions/View.swift:27:74: error: 'View' is only available in macOS 10.15 or newer
24 | import SwiftUI
25 |
26 | extension View {
| `- note: add @available attribute to enclosing extension
27 | @ViewBuilder func visibility(_ visibility: TabBarVisibility) -> some View {
| | `- error: 'View' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing instance method
28 | switch visibility {
29 | case .visible:
/Users/admin/builder/spi-builder-workspace/Sources/TabBar/Common/Extensions/View.swift:27:6: error: 'ViewBuilder' is only available in macOS 10.15 or newer
24 | import SwiftUI
25 |
26 | extension View {
| `- note: add @available attribute to enclosing extension
27 | @ViewBuilder func visibility(_ visibility: TabBarVisibility) -> some View {
| | `- note: add @available attribute to enclosing instance method
| `- error: 'ViewBuilder' is only available in macOS 10.15 or newer
28 | switch visibility {
29 | case .visible:
/Users/admin/builder/spi-builder-workspace/Sources/TabBar/Common/Extensions/View.swift:26:11: error: 'View' is only available in macOS 10.15 or newer
24 | import SwiftUI
25 |
26 | extension View {
| | `- error: 'View' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing extension
27 | @ViewBuilder func visibility(_ visibility: TabBarVisibility) -> some View {
28 | switch visibility {
/Users/admin/builder/spi-builder-workspace/Sources/TabBar/Common/Preferences/TabBarSelection.swift:27:6: error: 'Binding' is only available in macOS 10.15 or newer
24 | import SwiftUI
25 |
26 | class TabBarSelection<TabItem: Tabbable>: ObservableObject {
| `- note: add @available attribute to enclosing generic class
27 | @Binding var selection: TabItem
| `- error: 'Binding' is only available in macOS 10.15 or newer
28 |
29 | init(selection: Binding<TabItem>) {
/Users/admin/builder/spi-builder-workspace/Sources/TabBar/Common/Preferences/TabBarSelection.swift:29:21: error: 'Binding' is only available in macOS 10.15 or newer
24 | import SwiftUI
25 |
26 | class TabBarSelection<TabItem: Tabbable>: ObservableObject {
| `- note: add @available attribute to enclosing generic class
27 | @Binding var selection: TabItem
28 |
29 | init(selection: Binding<TabItem>) {
| | `- error: 'Binding' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing initializer
30 | self._selection = selection
31 | }
/Users/admin/builder/spi-builder-workspace/Sources/TabBar/Common/Preferences/TabBarSelection.swift:26:43: error: 'ObservableObject' is only available in macOS 10.15 or newer
24 | import SwiftUI
25 |
26 | class TabBarSelection<TabItem: Tabbable>: ObservableObject {
| | `- error: 'ObservableObject' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing generic class
27 | @Binding var selection: TabItem
28 |
/Users/admin/builder/spi-builder-workspace/Sources/TabBar/Common/Preferences/TabBarViewModifier.swift:27:6: error: 'EnvironmentObject' is only available in macOS 10.15 or newer
24 | import SwiftUI
25 |
26 | struct TabBarViewModifier<TabItem: Tabbable>: ViewModifier {
| `- note: add @available attribute to enclosing generic struct
27 | @EnvironmentObject private var selectionObject: TabBarSelection<TabItem>
| `- error: 'EnvironmentObject' is only available in macOS 10.15 or newer
28 |
29 | let item: TabItem
/Users/admin/builder/spi-builder-workspace/Sources/TabBar/Common/Preferences/TabBarViewModifier.swift:31:41: error: 'View' is only available in macOS 10.15 or newer
24 | import SwiftUI
25 |
26 | struct TabBarViewModifier<TabItem: Tabbable>: ViewModifier {
| `- note: add @available attribute to enclosing generic struct
27 | @EnvironmentObject private var selectionObject: TabBarSelection<TabItem>
28 |
29 | let item: TabItem
30 |
31 | 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
32 | Group {
33 | if self.item == self.selectionObject.selection {
/Users/admin/builder/spi-builder-workspace/Sources/TabBar/Common/Preferences/TabBarViewModifier.swift:50:71: error: 'View' is only available in macOS 10.15 or newer
41 | }
42 |
43 | extension View {
| `- note: add @available attribute to enclosing extension
44 | /**
45 | A function that is used to associated view with the passed item.
:
48 | of the `TabBar`.
49 | */
50 | public func tabItem<TabItem: Tabbable>(for item: TabItem) -> some View {
| | `- error: 'View' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing instance method
51 | return self.modifier(TabBarViewModifier(item: item))
52 | }
/Users/admin/builder/spi-builder-workspace/Sources/TabBar/Common/Preferences/TabBarViewModifier.swift:43:11: error: 'View' is only available in macOS 10.15 or newer
41 | }
42 |
43 | extension View {
| | `- error: 'View' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing extension
44 | /**
45 | A function that is used to associated view with the passed item.
/Users/admin/builder/spi-builder-workspace/Sources/TabBar/Common/Styles/TabBar/AnyTabBarStyle.swift:34:31: error: 'GeometryProxy' is only available in macOS 10.15 or newer
31 | to represent any bar style.
32 | */
33 | public struct AnyTabBarStyle: TabBarStyle {
| `- note: add @available attribute to enclosing struct
34 | private let _makeTabBar: (GeometryProxy, @escaping () -> AnyView) -> AnyView
| `- error: 'GeometryProxy' is only available in macOS 10.15 or newer
35 |
36 | public init<BarStyle: TabBarStyle>(barStyle: BarStyle) {
/Users/admin/builder/spi-builder-workspace/Sources/TabBar/Common/Styles/TabBar/AnyTabBarStyle.swift:34:62: error: 'AnyView' is only available in macOS 10.15 or newer
31 | to represent any bar style.
32 | */
33 | public struct AnyTabBarStyle: TabBarStyle {
| `- note: add @available attribute to enclosing struct
34 | private let _makeTabBar: (GeometryProxy, @escaping () -> AnyView) -> AnyView
| `- error: 'AnyView' is only available in macOS 10.15 or newer
35 |
36 | public init<BarStyle: TabBarStyle>(barStyle: BarStyle) {
/Users/admin/builder/spi-builder-workspace/Sources/TabBar/Common/Styles/TabBar/AnyTabBarStyle.swift:34:74: error: 'AnyView' is only available in macOS 10.15 or newer
31 | to represent any bar style.
32 | */
33 | public struct AnyTabBarStyle: TabBarStyle {
| `- note: add @available attribute to enclosing struct
34 | private let _makeTabBar: (GeometryProxy, @escaping () -> AnyView) -> AnyView
| `- error: 'AnyView' is only available in macOS 10.15 or newer
35 |
36 | public init<BarStyle: TabBarStyle>(barStyle: BarStyle) {
/Users/admin/builder/spi-builder-workspace/Sources/TabBar/Common/Styles/TabBar/AnyTabBarStyle.swift:40:39: error: 'GeometryProxy' is only available in macOS 10.15 or newer
31 | to represent any bar style.
32 | */
33 | public struct AnyTabBarStyle: TabBarStyle {
| `- note: add @available attribute to enclosing struct
34 | private let _makeTabBar: (GeometryProxy, @escaping () -> AnyView) -> AnyView
35 |
:
38 | }
39 |
40 | public func tabBar(with geometry: GeometryProxy, itemsContainer: @escaping () -> AnyView) -> some View {
| | `- error: 'GeometryProxy' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing instance method
41 | return self._makeTabBar(geometry, itemsContainer)
42 | }
/Users/admin/builder/spi-builder-workspace/Sources/TabBar/Common/Styles/TabBar/AnyTabBarStyle.swift:40:86: error: 'AnyView' is only available in macOS 10.15 or newer
31 | to represent any bar style.
32 | */
33 | public struct AnyTabBarStyle: TabBarStyle {
| `- note: add @available attribute to enclosing struct
34 | private let _makeTabBar: (GeometryProxy, @escaping () -> AnyView) -> AnyView
35 |
:
38 | }
39 |
40 | public func tabBar(with geometry: GeometryProxy, itemsContainer: @escaping () -> AnyView) -> some View {
| | `- error: 'AnyView' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing instance method
41 | return self._makeTabBar(geometry, itemsContainer)
42 | }
/Users/admin/builder/spi-builder-workspace/Sources/TabBar/Common/Styles/TabBar/AnyTabBarStyle.swift:40:103: error: 'View' is only available in macOS 10.15 or newer
31 | to represent any bar style.
32 | */
33 | public struct AnyTabBarStyle: TabBarStyle {
| `- note: add @available attribute to enclosing struct
34 | private let _makeTabBar: (GeometryProxy, @escaping () -> AnyView) -> AnyView
35 |
:
38 | }
39 |
40 | public func tabBar(with geometry: GeometryProxy, itemsContainer: @escaping () -> AnyView) -> some View {
| | `- error: 'View' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing instance method
41 | return self._makeTabBar(geometry, itemsContainer)
42 | }
/Users/admin/builder/spi-builder-workspace/Sources/TabBar/Common/Styles/TabBar/DefaultTabBarStyle.swift:34:39: error: 'GeometryProxy' is only available in macOS 10.15 or newer
30 | bar of `UITabBar` and used in `TabBar` by default.
31 | */
32 | public struct DefaultTabBarStyle: TabBarStyle {
| `- note: add @available attribute to enclosing struct
33 |
34 | public func tabBar(with geometry: GeometryProxy, itemsContainer: @escaping () -> AnyView) -> some View {
| | `- error: 'GeometryProxy' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing instance method
35 | VStack(spacing: 0.0) {
36 | Divider()
/Users/admin/builder/spi-builder-workspace/Sources/TabBar/Common/Styles/TabBar/DefaultTabBarStyle.swift:34:86: error: 'AnyView' is only available in macOS 10.15 or newer
30 | bar of `UITabBar` and used in `TabBar` by default.
31 | */
32 | public struct DefaultTabBarStyle: TabBarStyle {
| `- note: add @available attribute to enclosing struct
33 |
34 | public func tabBar(with geometry: GeometryProxy, itemsContainer: @escaping () -> AnyView) -> some View {
| | `- error: 'AnyView' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing instance method
35 | VStack(spacing: 0.0) {
36 | Divider()
/Users/admin/builder/spi-builder-workspace/Sources/TabBar/Common/Styles/TabBar/DefaultTabBarStyle.swift:34:103: error: 'View' is only available in macOS 10.15 or newer
30 | bar of `UITabBar` and used in `TabBar` by default.
31 | */
32 | public struct DefaultTabBarStyle: TabBarStyle {
| `- note: add @available attribute to enclosing struct
33 |
34 | public func tabBar(with geometry: GeometryProxy, itemsContainer: @escaping () -> AnyView) -> some View {
| | `- error: 'View' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing instance method
35 | VStack(spacing: 0.0) {
36 | Divider()
/Users/admin/builder/spi-builder-workspace/Sources/TabBar/Common/Styles/TabBar/TabBarStyle.swift:35:29: error: 'View' is only available in macOS 10.15 or newer
32 | using `tabBar(style:)` function.
33 | */
34 | public protocol TabBarStyle {
| `- note: add @available attribute to enclosing protocol
35 | associatedtype Content: View
| | `- error: 'View' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing associated type
36 |
37 | func tabBar(with geometry: GeometryProxy, itemsContainer: @escaping () -> AnyView) -> Content
/Users/admin/builder/spi-builder-workspace/Sources/TabBar/Common/Styles/TabBar/TabBarStyle.swift:37:32: error: 'GeometryProxy' is only available in macOS 10.15 or newer
32 | using `tabBar(style:)` function.
33 | */
34 | public protocol TabBarStyle {
| `- note: add @available attribute to enclosing protocol
35 | associatedtype Content: View
36 |
37 | func tabBar(with geometry: GeometryProxy, itemsContainer: @escaping () -> AnyView) -> Content
| | `- error: 'GeometryProxy' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing instance method
38 | }
39 |
/Users/admin/builder/spi-builder-workspace/Sources/TabBar/Common/Styles/TabBar/TabBarStyle.swift:37:79: error: 'AnyView' is only available in macOS 10.15 or newer
32 | using `tabBar(style:)` function.
33 | */
34 | public protocol TabBarStyle {
| `- note: add @available attribute to enclosing protocol
35 | associatedtype Content: View
36 |
37 | func tabBar(with geometry: GeometryProxy, itemsContainer: @escaping () -> AnyView) -> Content
| | `- error: 'AnyView' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing instance method
38 | }
39 |
/Users/admin/builder/spi-builder-workspace/Sources/TabBar/Common/Styles/TabBar/TabBarStyle.swift:41:38: error: 'GeometryProxy' is only available in macOS 10.15 or newer
38 | }
39 |
40 | extension TabBarStyle {
| `- note: add @available attribute to enclosing extension
41 | func tabBarErased(with geometry: GeometryProxy, itemsContainer: @escaping () -> AnyView) -> AnyView {
| | `- error: 'GeometryProxy' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing instance method
42 | return .init(self.tabBar(with: geometry, itemsContainer: itemsContainer))
43 | }
/Users/admin/builder/spi-builder-workspace/Sources/TabBar/Common/Styles/TabBar/TabBarStyle.swift:41:85: error: 'AnyView' is only available in macOS 10.15 or newer
38 | }
39 |
40 | extension TabBarStyle {
| `- note: add @available attribute to enclosing extension
41 | func tabBarErased(with geometry: GeometryProxy, itemsContainer: @escaping () -> AnyView) -> AnyView {
| | `- error: 'AnyView' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing instance method
42 | return .init(self.tabBar(with: geometry, itemsContainer: itemsContainer))
43 | }
/Users/admin/builder/spi-builder-workspace/Sources/TabBar/Common/Styles/TabBar/TabBarStyle.swift:41:97: error: 'AnyView' is only available in macOS 10.15 or newer
38 | }
39 |
40 | extension TabBarStyle {
| `- note: add @available attribute to enclosing extension
41 | func tabBarErased(with geometry: GeometryProxy, itemsContainer: @escaping () -> AnyView) -> AnyView {
| | `- error: 'AnyView' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing instance method
42 | return .init(self.tabBar(with: geometry, itemsContainer: itemsContainer))
43 | }
/Users/admin/builder/spi-builder-workspace/Sources/TabBar/Common/Styles/TabItem/AnyTabItemStyle.swift:34:65: error: 'AnyView' is only available in macOS 10.15 or newer
31 | to represent any item style.
32 | */
33 | public struct AnyTabItemStyle: TabItemStyle {
| `- note: add @available attribute to enclosing struct
34 | private let _makeTabItem: (String, String, String, Bool) -> AnyView
| `- error: 'AnyView' is only available in macOS 10.15 or newer
35 |
36 | public init<TabItem: TabItemStyle>(itemStyle: TabItem) {
/Users/admin/builder/spi-builder-workspace/Sources/TabBar/Common/Styles/TabItem/AnyTabItemStyle.swift:40:102: error: 'View' is only available in macOS 10.15 or newer
31 | to represent any item style.
32 | */
33 | public struct AnyTabItemStyle: TabItemStyle {
| `- note: add @available attribute to enclosing struct
34 | private let _makeTabItem: (String, String, String, Bool) -> AnyView
35 |
:
38 | }
39 |
40 | public func tabItem(icon: String, selectedIcon: String, title: String, isSelected: Bool) -> some View {
| | `- error: 'View' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing instance method
41 | return self._makeTabItem(icon, selectedIcon, title, isSelected)
42 | }
/Users/admin/builder/spi-builder-workspace/Sources/TabBar/Common/Styles/TabItem/DefaultTabItem.swift:33:102: error: 'View' is only available in macOS 10.15 or newer
30 | items of `UITabBar` and used in `TabBar` by default.
31 | */
32 | public struct DefaultTabItemStyle: TabItemStyle {
| `- note: add @available attribute to enclosing struct
33 | public func tabItem(icon: String, selectedIcon: String, title: String, isSelected: Bool) -> some View {
| | `- error: 'View' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing instance method
34 | VStack(spacing: 5.0) {
35 | Image(systemName: icon)
/Users/admin/builder/spi-builder-workspace/Sources/TabBar/Common/Styles/TabItem/TabItemStyle.swift:34:30: error: 'View' is only available in macOS 10.15 or newer
31 | using `tabItem(style:)` function.
32 | */
33 | public protocol TabItemStyle {
| `- note: add @available attribute to enclosing protocol
34 | associatedtype Content : View
| | `- error: 'View' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing associated type
35 |
36 | func tabItem(icon: String, title: String, isSelected: Bool) -> Content
/Users/admin/builder/spi-builder-workspace/Sources/TabBar/Common/Styles/TabItem/TabItemStyle.swift:49:96: error: 'AnyView' is only available in macOS 10.15 or newer
38 | }
39 |
40 | extension TabItemStyle {
| `- note: add @available attribute to enclosing extension
41 | public func tabItem(icon: String, title: String, isSelected: Bool) -> Content {
42 | return self.tabItem(icon: icon, selectedIcon: icon, title: title, isSelected: isSelected)
:
47 | }
48 |
49 | func tabItemErased(icon: String, selectedIcon: String, title: String, isSelected: Bool) -> AnyView {
| | `- error: 'AnyView' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing instance method
50 | return .init(self.tabItem(icon: icon, selectedIcon: selectedIcon, title: title, isSelected: isSelected))
51 | }
/Users/admin/builder/spi-builder-workspace/Sources/TabBar/View/TabBar.swift:55:6: error: 'State' is only available in macOS 10.15 or newer
45 | ```
46 | */
47 | public struct TabBar<TabItem: Tabbable, Content: View>: View {
| `- note: add @available attribute to enclosing generic struct
48 |
49 | private let selectedItem: TabBarSelection<TabItem>
:
53 | private var tabBarStyle : AnyTabBarStyle
54 |
55 | @State private var items: [TabItem]
| `- error: 'State' is only available in macOS 10.15 or newer
56 |
57 | @Binding private var visibility: TabBarVisibility
/Users/admin/builder/spi-builder-workspace/Sources/TabBar/View/TabBar.swift:57:6: error: 'Binding' is only available in macOS 10.15 or newer
45 | ```
46 | */
47 | public struct TabBar<TabItem: Tabbable, Content: View>: View {
| `- note: add @available attribute to enclosing generic struct
48 |
49 | private let selectedItem: TabBarSelection<TabItem>
:
55 | @State private var items: [TabItem]
56 |
57 | @Binding private var visibility: TabBarVisibility
| `- error: 'Binding' is only available in macOS 10.15 or newer
58 |
59 | /**
/Users/admin/builder/spi-builder-workspace/Sources/TabBar/View/TabBar.swift:68:20: error: 'Binding' is only available in macOS 10.15 or newer
45 | ```
46 | */
47 | public struct TabBar<TabItem: Tabbable, Content: View>: View {
| `- note: add @available attribute to enclosing generic struct
48 |
49 | private let selectedItem: TabBarSelection<TabItem>
:
65 | if they have `tabItem(for:)` applied on them.
66 | */
67 | public init(
| `- note: add @available attribute to enclosing initializer
68 | selection: Binding<TabItem>,
| `- error: 'Binding' is only available in macOS 10.15 or newer
69 | visibility: Binding<TabBarVisibility> = .constant(.visible),
70 | @ViewBuilder content: () -> Content
/Users/admin/builder/spi-builder-workspace/Sources/TabBar/View/TabBar.swift:69:21: error: 'Binding' is only available in macOS 10.15 or newer
45 | ```
46 | */
47 | public struct TabBar<TabItem: Tabbable, Content: View>: View {
| `- note: add @available attribute to enclosing generic struct
48 |
49 | private let selectedItem: TabBarSelection<TabItem>
:
65 | if they have `tabItem(for:)` applied on them.
66 | */
67 | public init(
| `- note: add @available attribute to enclosing initializer
68 | selection: Binding<TabItem>,
69 | visibility: Binding<TabBarVisibility> = .constant(.visible),
| `- error: 'Binding' is only available in macOS 10.15 or newer
70 | @ViewBuilder content: () -> Content
71 | ) {
/Users/admin/builder/spi-builder-workspace/Sources/TabBar/View/TabBar.swift:70:10: error: 'ViewBuilder' is only available in macOS 10.15 or newer
45 | ```
46 | */
47 | public struct TabBar<TabItem: Tabbable, Content: View>: View {
| `- note: add @available attribute to enclosing generic struct
48 |
49 | private let selectedItem: TabBarSelection<TabItem>
:
65 | if they have `tabItem(for:)` applied on them.
66 | */
67 | public init(
| `- note: add @available attribute to enclosing initializer
68 | selection: Binding<TabItem>,
69 | visibility: Binding<TabBarVisibility> = .constant(.visible),
70 | @ViewBuilder content: () -> Content
| `- error: 'ViewBuilder' is only available in macOS 10.15 or newer
71 | ) {
72 | self.tabItemStyle = .init(itemStyle: DefaultTabItemStyle())
/Users/admin/builder/spi-builder-workspace/Sources/TabBar/View/TabBar.swift:82:32: error: 'View' is only available in macOS 10.15 or newer
45 | ```
46 | */
47 | public struct TabBar<TabItem: Tabbable, Content: View>: View {
| `- note: add @available attribute to enclosing generic struct
48 |
49 | private let selectedItem: TabBarSelection<TabItem>
:
80 | }
81 |
82 | private var tabItems: some View {
| | `- error: 'View' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing property
83 | HStack {
84 | ForEach(self.items, id: \.self) { item in
/Users/admin/builder/spi-builder-workspace/Sources/TabBar/View/TabBar.swift:100:27: error: 'View' is only available in macOS 10.15 or newer
45 | ```
46 | */
47 | public struct TabBar<TabItem: Tabbable, Content: View>: View {
| `- note: add @available attribute to enclosing generic struct
48 |
49 | private let selectedItem: TabBarSelection<TabItem>
:
98 | }
99 |
100 | public var body: some View {
| | `- error: 'View' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing property
101 | ZStack {
102 | self.content
/Users/admin/builder/spi-builder-workspace/Sources/TabBar/View/TabBar.swift:47:50: error: 'View' is only available in macOS 10.15 or newer
45 | ```
46 | */
47 | public struct TabBar<TabItem: Tabbable, Content: View>: View {
| | `- error: 'View' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing generic struct
48 |
49 | private let selectedItem: TabBarSelection<TabItem>
[6/15] Compiling TabBar DefaultTabBarStyle.swift
/Users/admin/builder/spi-builder-workspace/Sources/TabBar/Common/Styles/TabBar/DefaultTabBarStyle.swift:34:39: error: 'GeometryProxy' is only available in macOS 10.15 or newer
30 | bar of `UITabBar` and used in `TabBar` by default.
31 | */
32 | public struct DefaultTabBarStyle: TabBarStyle {
| `- note: add @available attribute to enclosing struct
33 |
34 | public func tabBar(with geometry: GeometryProxy, itemsContainer: @escaping () -> AnyView) -> some View {
| | `- error: 'GeometryProxy' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing instance method
35 | VStack(spacing: 0.0) {
36 | Divider()
/Users/admin/builder/spi-builder-workspace/Sources/TabBar/Common/Styles/TabBar/DefaultTabBarStyle.swift:34:86: error: 'AnyView' is only available in macOS 10.15 or newer
30 | bar of `UITabBar` and used in `TabBar` by default.
31 | */
32 | public struct DefaultTabBarStyle: TabBarStyle {
| `- note: add @available attribute to enclosing struct
33 |
34 | public func tabBar(with geometry: GeometryProxy, itemsContainer: @escaping () -> AnyView) -> some View {
| | `- error: 'AnyView' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing instance method
35 | VStack(spacing: 0.0) {
36 | Divider()
/Users/admin/builder/spi-builder-workspace/Sources/TabBar/Common/Styles/TabBar/DefaultTabBarStyle.swift:34:103: error: 'View' is only available in macOS 10.15 or newer
30 | bar of `UITabBar` and used in `TabBar` by default.
31 | */
32 | public struct DefaultTabBarStyle: TabBarStyle {
| `- note: add @available attribute to enclosing struct
33 |
34 | public func tabBar(with geometry: GeometryProxy, itemsContainer: @escaping () -> AnyView) -> some View {
| | `- error: 'View' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing instance method
35 | VStack(spacing: 0.0) {
36 | Divider()
/Users/admin/builder/spi-builder-workspace/Sources/TabBar/Common/Styles/TabBar/DefaultTabBarStyle.swift:35:9: error: 'VStack' is only available in macOS 10.15 or newer
30 | bar of `UITabBar` and used in `TabBar` by default.
31 | */
32 | public struct DefaultTabBarStyle: TabBarStyle {
| `- note: add @available attribute to enclosing struct
33 |
34 | public func tabBar(with geometry: GeometryProxy, itemsContainer: @escaping () -> AnyView) -> some View {
| `- note: add @available attribute to enclosing instance method
35 | VStack(spacing: 0.0) {
| |- error: 'VStack' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
36 | Divider()
37 |
/Users/admin/builder/spi-builder-workspace/Sources/TabBar/Common/Styles/TabBar/DefaultTabBarStyle.swift:36:13: error: 'Divider' is only available in macOS 10.15 or newer
30 | bar of `UITabBar` and used in `TabBar` by default.
31 | */
32 | public struct DefaultTabBarStyle: TabBarStyle {
| `- note: add @available attribute to enclosing struct
33 |
34 | public func tabBar(with geometry: GeometryProxy, itemsContainer: @escaping () -> AnyView) -> some View {
| `- note: add @available attribute to enclosing instance method
35 | VStack(spacing: 0.0) {
36 | Divider()
| |- error: 'Divider' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
37 |
38 | VStack {
/Users/admin/builder/spi-builder-workspace/Sources/TabBar/Common/Styles/TabBar/DefaultTabBarStyle.swift:38:13: error: 'VStack' is only available in macOS 10.15 or newer
30 | bar of `UITabBar` and used in `TabBar` by default.
31 | */
32 | public struct DefaultTabBarStyle: TabBarStyle {
| `- note: add @available attribute to enclosing struct
33 |
34 | public func tabBar(with geometry: GeometryProxy, itemsContainer: @escaping () -> AnyView) -> some View {
| `- note: add @available attribute to enclosing instance method
35 | VStack(spacing: 0.0) {
36 | Divider()
37 |
38 | VStack {
| |- error: 'VStack' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
39 | itemsContainer()
40 | .frame(height: 50.0)
/Users/admin/builder/spi-builder-workspace/Sources/TabBar/Common/Styles/TabBar/DefaultTabBarStyle.swift:40:22: error: 'frame(width:height:alignment:)' is only available in macOS 10.15 or newer
30 | bar of `UITabBar` and used in `TabBar` by default.
31 | */
32 | public struct DefaultTabBarStyle: TabBarStyle {
| `- note: add @available attribute to enclosing struct
33 |
34 | public func tabBar(with geometry: GeometryProxy, itemsContainer: @escaping () -> AnyView) -> some View {
| `- note: add @available attribute to enclosing instance method
35 | VStack(spacing: 0.0) {
36 | Divider()
:
38 | VStack {
39 | itemsContainer()
40 | .frame(height: 50.0)
| |- error: 'frame(width:height:alignment:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
41 | .padding(.bottom, geometry.safeAreaInsets.bottom)
42 | }
/Users/admin/builder/spi-builder-workspace/Sources/TabBar/Common/Styles/TabBar/DefaultTabBarStyle.swift:41:22: error: 'padding' is only available in macOS 10.15 or newer
30 | bar of `UITabBar` and used in `TabBar` by default.
31 | */
32 | public struct DefaultTabBarStyle: TabBarStyle {
| `- note: add @available attribute to enclosing struct
33 |
34 | public func tabBar(with geometry: GeometryProxy, itemsContainer: @escaping () -> AnyView) -> some View {
| `- note: add @available attribute to enclosing instance method
35 | VStack(spacing: 0.0) {
36 | Divider()
:
39 | itemsContainer()
40 | .frame(height: 50.0)
41 | .padding(.bottom, geometry.safeAreaInsets.bottom)
| |- error: 'padding' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
42 | }
43 | .background(
/Users/admin/builder/spi-builder-workspace/Sources/TabBar/Common/Styles/TabBar/DefaultTabBarStyle.swift:43:14: error: 'background(_:ignoresSafeAreaEdges:)' is only available in macOS 12.0 or newer
30 | bar of `UITabBar` and used in `TabBar` by default.
31 | */
32 | public struct DefaultTabBarStyle: TabBarStyle {
| `- note: add @available attribute to enclosing struct
33 |
34 | public func tabBar(with geometry: GeometryProxy, itemsContainer: @escaping () -> AnyView) -> some View {
| `- note: add @available attribute to enclosing instance method
35 | VStack(spacing: 0.0) {
36 | Divider()
:
41 | .padding(.bottom, geometry.safeAreaInsets.bottom)
42 | }
43 | .background(
| |- error: 'background(_:ignoresSafeAreaEdges:)' is only available in macOS 12.0 or newer
| `- note: add 'if #available' version check
44 | Color(
45 | red: 249 / 255,
/Users/admin/builder/spi-builder-workspace/Sources/TabBar/Common/Styles/TabBar/DefaultTabBarStyle.swift:44:17: error: 'Color' is only available in macOS 10.15 or newer
30 | bar of `UITabBar` and used in `TabBar` by default.
31 | */
32 | public struct DefaultTabBarStyle: TabBarStyle {
| `- note: add @available attribute to enclosing struct
33 |
34 | public func tabBar(with geometry: GeometryProxy, itemsContainer: @escaping () -> AnyView) -> some View {
| `- note: add @available attribute to enclosing instance method
35 | VStack(spacing: 0.0) {
36 | Divider()
:
42 | }
43 | .background(
44 | Color(
| |- error: 'Color' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
45 | red: 249 / 255,
46 | green: 249 / 255,
/Users/admin/builder/spi-builder-workspace/Sources/TabBar/Common/Styles/TabBar/DefaultTabBarStyle.swift:44:17: error: 'init(_:red:green:blue:opacity:)' is only available in macOS 10.15 or newer
30 | bar of `UITabBar` and used in `TabBar` by default.
31 | */
32 | public struct DefaultTabBarStyle: TabBarStyle {
| `- note: add @available attribute to enclosing struct
33 |
34 | public func tabBar(with geometry: GeometryProxy, itemsContainer: @escaping () -> AnyView) -> some View {
| `- note: add @available attribute to enclosing instance method
35 | VStack(spacing: 0.0) {
36 | Divider()
:
42 | }
43 | .background(
44 | Color(
| |- error: 'init(_:red:green:blue:opacity:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
45 | red: 249 / 255,
46 | green: 249 / 255,
/Users/admin/builder/spi-builder-workspace/Sources/TabBar/Common/Styles/TabBar/DefaultTabBarStyle.swift:51:14: error: 'frame(width:height:alignment:)' is only available in macOS 10.15 or newer
30 | bar of `UITabBar` and used in `TabBar` by default.
31 | */
32 | public struct DefaultTabBarStyle: TabBarStyle {
| `- note: add @available attribute to enclosing struct
33 |
34 | public func tabBar(with geometry: GeometryProxy, itemsContainer: @escaping () -> AnyView) -> some View {
| `- note: add @available attribute to enclosing instance method
35 | VStack(spacing: 0.0) {
36 | Divider()
:
49 | )
50 | )
51 | .frame(height: 50.0 + geometry.safeAreaInsets.bottom)
| |- error: 'frame(width:height:alignment:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
52 | }
53 | }
[7/15] Compiling TabBar AnyTabBarStyle.swift
/Users/admin/builder/spi-builder-workspace/Sources/TabBar/Common/Styles/TabBar/AnyTabBarStyle.swift:34:31: error: 'GeometryProxy' is only available in macOS 10.15 or newer
31 | to represent any bar style.
32 | */
33 | public struct AnyTabBarStyle: TabBarStyle {
| `- note: add @available attribute to enclosing struct
34 | private let _makeTabBar: (GeometryProxy, @escaping () -> AnyView) -> AnyView
| `- error: 'GeometryProxy' is only available in macOS 10.15 or newer
35 |
36 | public init<BarStyle: TabBarStyle>(barStyle: BarStyle) {
/Users/admin/builder/spi-builder-workspace/Sources/TabBar/Common/Styles/TabBar/AnyTabBarStyle.swift:34:62: error: 'AnyView' is only available in macOS 10.15 or newer
31 | to represent any bar style.
32 | */
33 | public struct AnyTabBarStyle: TabBarStyle {
| `- note: add @available attribute to enclosing struct
34 | private let _makeTabBar: (GeometryProxy, @escaping () -> AnyView) -> AnyView
| `- error: 'AnyView' is only available in macOS 10.15 or newer
35 |
36 | public init<BarStyle: TabBarStyle>(barStyle: BarStyle) {
/Users/admin/builder/spi-builder-workspace/Sources/TabBar/Common/Styles/TabBar/AnyTabBarStyle.swift:34:74: error: 'AnyView' is only available in macOS 10.15 or newer
31 | to represent any bar style.
32 | */
33 | public struct AnyTabBarStyle: TabBarStyle {
| `- note: add @available attribute to enclosing struct
34 | private let _makeTabBar: (GeometryProxy, @escaping () -> AnyView) -> AnyView
| `- error: 'AnyView' is only available in macOS 10.15 or newer
35 |
36 | public init<BarStyle: TabBarStyle>(barStyle: BarStyle) {
/Users/admin/builder/spi-builder-workspace/Sources/TabBar/Common/Styles/TabBar/AnyTabBarStyle.swift:40:39: error: 'GeometryProxy' is only available in macOS 10.15 or newer
31 | to represent any bar style.
32 | */
33 | public struct AnyTabBarStyle: TabBarStyle {
| `- note: add @available attribute to enclosing struct
34 | private let _makeTabBar: (GeometryProxy, @escaping () -> AnyView) -> AnyView
35 |
:
38 | }
39 |
40 | public func tabBar(with geometry: GeometryProxy, itemsContainer: @escaping () -> AnyView) -> some View {
| | `- error: 'GeometryProxy' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing instance method
41 | return self._makeTabBar(geometry, itemsContainer)
42 | }
/Users/admin/builder/spi-builder-workspace/Sources/TabBar/Common/Styles/TabBar/AnyTabBarStyle.swift:40:86: error: 'AnyView' is only available in macOS 10.15 or newer
31 | to represent any bar style.
32 | */
33 | public struct AnyTabBarStyle: TabBarStyle {
| `- note: add @available attribute to enclosing struct
34 | private let _makeTabBar: (GeometryProxy, @escaping () -> AnyView) -> AnyView
35 |
:
38 | }
39 |
40 | public func tabBar(with geometry: GeometryProxy, itemsContainer: @escaping () -> AnyView) -> some View {
| | `- error: 'AnyView' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing instance method
41 | return self._makeTabBar(geometry, itemsContainer)
42 | }
/Users/admin/builder/spi-builder-workspace/Sources/TabBar/Common/Styles/TabBar/AnyTabBarStyle.swift:40:103: error: 'View' is only available in macOS 10.15 or newer
31 | to represent any bar style.
32 | */
33 | public struct AnyTabBarStyle: TabBarStyle {
| `- note: add @available attribute to enclosing struct
34 | private let _makeTabBar: (GeometryProxy, @escaping () -> AnyView) -> AnyView
35 |
:
38 | }
39 |
40 | public func tabBar(with geometry: GeometryProxy, itemsContainer: @escaping () -> AnyView) -> some View {
| | `- error: 'View' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing instance method
41 | return self._makeTabBar(geometry, itemsContainer)
42 | }
[8/15] Compiling TabBar AnyTabItemStyle.swift
/Users/admin/builder/spi-builder-workspace/Sources/TabBar/Common/Styles/TabItem/AnyTabItemStyle.swift:34:65: error: 'AnyView' is only available in macOS 10.15 or newer
31 | to represent any item style.
32 | */
33 | public struct AnyTabItemStyle: TabItemStyle {
| `- note: add @available attribute to enclosing struct
34 | private let _makeTabItem: (String, String, String, Bool) -> AnyView
| `- error: 'AnyView' is only available in macOS 10.15 or newer
35 |
36 | public init<TabItem: TabItemStyle>(itemStyle: TabItem) {
/Users/admin/builder/spi-builder-workspace/Sources/TabBar/Common/Styles/TabItem/AnyTabItemStyle.swift:40:102: error: 'View' is only available in macOS 10.15 or newer
31 | to represent any item style.
32 | */
33 | public struct AnyTabItemStyle: TabItemStyle {
| `- note: add @available attribute to enclosing struct
34 | private let _makeTabItem: (String, String, String, Bool) -> AnyView
35 |
:
38 | }
39 |
40 | public func tabItem(icon: String, selectedIcon: String, title: String, isSelected: Bool) -> some View {
| | `- error: 'View' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing instance method
41 | return self._makeTabItem(icon, selectedIcon, title, isSelected)
42 | }
[9/15] Compiling TabBar View.swift
/Users/admin/builder/spi-builder-workspace/Sources/TabBar/Common/Extensions/View.swift:27:74: error: 'View' is only available in macOS 10.15 or newer
24 | import SwiftUI
25 |
26 | extension View {
| `- note: add @available attribute to enclosing extension
27 | @ViewBuilder func visibility(_ visibility: TabBarVisibility) -> some View {
| | `- error: 'View' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing instance method
28 | switch visibility {
29 | case .visible:
/Users/admin/builder/spi-builder-workspace/Sources/TabBar/Common/Extensions/View.swift:27:6: error: 'ViewBuilder' is only available in macOS 10.15 or newer
24 | import SwiftUI
25 |
26 | extension View {
| `- note: add @available attribute to enclosing extension
27 | @ViewBuilder func visibility(_ visibility: TabBarVisibility) -> some View {
| | `- note: add @available attribute to enclosing instance method
| `- error: 'ViewBuilder' is only available in macOS 10.15 or newer
28 | switch visibility {
29 | case .visible:
/Users/admin/builder/spi-builder-workspace/Sources/TabBar/Common/Extensions/View.swift:26:11: error: 'View' is only available in macOS 10.15 or newer
24 | import SwiftUI
25 |
26 | extension View {
| | `- error: 'View' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing extension
27 | @ViewBuilder func visibility(_ visibility: TabBarVisibility) -> some View {
28 | switch visibility {
/Users/admin/builder/spi-builder-workspace/Sources/TabBar/Common/Extensions/View.swift:30:18: error: 'transition' is only available in macOS 14.0 or newer
24 | import SwiftUI
25 |
26 | extension View {
| `- note: add @available attribute to enclosing extension
27 | @ViewBuilder func visibility(_ visibility: TabBarVisibility) -> some View {
| `- note: add @available attribute to enclosing instance method
28 | switch visibility {
29 | case .visible:
30 | self.transition(.move(edge: .bottom))
| |- error: 'transition' is only available in macOS 14.0 or newer
| `- note: add 'if #available' version check
31 | case .invisible:
32 | hidden().transition(.move(edge: .bottom))
/Users/admin/builder/spi-builder-workspace/Sources/TabBar/Common/Extensions/View.swift:30:30: error: 'move(edge:)' is only available in macOS 14.0 or newer
24 | import SwiftUI
25 |
26 | extension View {
| `- note: add @available attribute to enclosing extension
27 | @ViewBuilder func visibility(_ visibility: TabBarVisibility) -> some View {
| `- note: add @available attribute to enclosing instance method
28 | switch visibility {
29 | case .visible:
30 | self.transition(.move(edge: .bottom))
| |- error: 'move(edge:)' is only available in macOS 14.0 or newer
| `- note: add 'if #available' version check
31 | case .invisible:
32 | hidden().transition(.move(edge: .bottom))
/Users/admin/builder/spi-builder-workspace/Sources/TabBar/Common/Extensions/View.swift:30:13: error: 'buildEither(first:)' is only available in macOS 10.15 or newer
24 | import SwiftUI
25 |
26 | extension View {
| `- note: add @available attribute to enclosing extension
27 | @ViewBuilder func visibility(_ visibility: TabBarVisibility) -> some View {
| `- note: add @available attribute to enclosing instance method
28 | switch visibility {
29 | case .visible:
30 | self.transition(.move(edge: .bottom))
| |- error: 'buildEither(first:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
31 | case .invisible:
32 | hidden().transition(.move(edge: .bottom))
/Users/admin/builder/spi-builder-workspace/Sources/TabBar/Common/Extensions/View.swift:32:13: error: 'hidden()' is only available in macOS 10.15 or newer
24 | import SwiftUI
25 |
26 | extension View {
| `- note: add @available attribute to enclosing extension
27 | @ViewBuilder func visibility(_ visibility: TabBarVisibility) -> some View {
| `- note: add @available attribute to enclosing instance method
28 | switch visibility {
29 | case .visible:
30 | self.transition(.move(edge: .bottom))
31 | case .invisible:
32 | hidden().transition(.move(edge: .bottom))
| |- error: 'hidden()' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
33 | }
34 | }
/Users/admin/builder/spi-builder-workspace/Sources/TabBar/Common/Extensions/View.swift:32:22: error: 'transition' is only available in macOS 14.0 or newer
24 | import SwiftUI
25 |
26 | extension View {
| `- note: add @available attribute to enclosing extension
27 | @ViewBuilder func visibility(_ visibility: TabBarVisibility) -> some View {
| `- note: add @available attribute to enclosing instance method
28 | switch visibility {
29 | case .visible:
30 | self.transition(.move(edge: .bottom))
31 | case .invisible:
32 | hidden().transition(.move(edge: .bottom))
| |- error: 'transition' is only available in macOS 14.0 or newer
| `- note: add 'if #available' version check
33 | }
34 | }
/Users/admin/builder/spi-builder-workspace/Sources/TabBar/Common/Extensions/View.swift:32:34: error: 'move(edge:)' is only available in macOS 14.0 or newer
24 | import SwiftUI
25 |
26 | extension View {
| `- note: add @available attribute to enclosing extension
27 | @ViewBuilder func visibility(_ visibility: TabBarVisibility) -> some View {
| `- note: add @available attribute to enclosing instance method
28 | switch visibility {
29 | case .visible:
30 | self.transition(.move(edge: .bottom))
31 | case .invisible:
32 | hidden().transition(.move(edge: .bottom))
| |- error: 'move(edge:)' is only available in macOS 14.0 or newer
| `- note: add 'if #available' version check
33 | }
34 | }
/Users/admin/builder/spi-builder-workspace/Sources/TabBar/Common/Extensions/View.swift:32:13: error: 'buildEither(second:)' is only available in macOS 10.15 or newer
24 | import SwiftUI
25 |
26 | extension View {
| `- note: add @available attribute to enclosing extension
27 | @ViewBuilder func visibility(_ visibility: TabBarVisibility) -> some View {
| `- note: add @available attribute to enclosing instance method
28 | switch visibility {
29 | case .visible:
30 | self.transition(.move(edge: .bottom))
31 | case .invisible:
32 | hidden().transition(.move(edge: .bottom))
| |- error: 'buildEither(second:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
33 | }
34 | }
/Users/admin/builder/spi-builder-workspace/Sources/TabBar/Common/Extensions/View.swift:27:79: warning: conformance of '_ConditionalContent<TrueContent, FalseContent>' to 'View' is only available in macOS 10.15 or newer; this is an error in the Swift 6 language mode
24 | import SwiftUI
25 |
26 | extension View {
| `- note: add @available attribute to enclosing extension
27 | @ViewBuilder func visibility(_ visibility: TabBarVisibility) -> some View {
| | |- warning: conformance of '_ConditionalContent<TrueContent, FalseContent>' to 'View' is only available in macOS 10.15 or newer; this is an error in the Swift 6 language mode
| | `- note: add 'if #available' version check
| `- note: add @available attribute to enclosing instance method
28 | switch visibility {
29 | case .visible:
[10/15] Compiling TabBar TabBarPreferenceKey.swift
/Users/admin/builder/spi-builder-workspace/Sources/TabBar/Common/Extensions/View.swift:27:74: error: 'View' is only available in macOS 10.15 or newer
24 | import SwiftUI
25 |
26 | extension View {
| `- note: add @available attribute to enclosing extension
27 | @ViewBuilder func visibility(_ visibility: TabBarVisibility) -> some View {
| | `- error: 'View' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing instance method
28 | switch visibility {
29 | case .visible:
/Users/admin/builder/spi-builder-workspace/Sources/TabBar/Common/Extensions/View.swift:27:6: error: 'ViewBuilder' is only available in macOS 10.15 or newer
24 | import SwiftUI
25 |
26 | extension View {
| `- note: add @available attribute to enclosing extension
27 | @ViewBuilder func visibility(_ visibility: TabBarVisibility) -> some View {
| | `- note: add @available attribute to enclosing instance method
| `- error: 'ViewBuilder' is only available in macOS 10.15 or newer
28 | switch visibility {
29 | case .visible:
/Users/admin/builder/spi-builder-workspace/Sources/TabBar/Common/Extensions/View.swift:26:11: error: 'View' is only available in macOS 10.15 or newer
24 | import SwiftUI
25 |
26 | extension View {
| | `- error: 'View' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing extension
27 | @ViewBuilder func visibility(_ visibility: TabBarVisibility) -> some View {
28 | switch visibility {
/Users/admin/builder/spi-builder-workspace/Sources/TabBar/Common/Extensions/View.swift:30:18: error: 'transition' is only available in macOS 14.0 or newer
24 | import SwiftUI
25 |
26 | extension View {
| `- note: add @available attribute to enclosing extension
27 | @ViewBuilder func visibility(_ visibility: TabBarVisibility) -> some View {
| `- note: add @available attribute to enclosing instance method
28 | switch visibility {
29 | case .visible:
30 | self.transition(.move(edge: .bottom))
| |- error: 'transition' is only available in macOS 14.0 or newer
| `- note: add 'if #available' version check
31 | case .invisible:
32 | hidden().transition(.move(edge: .bottom))
/Users/admin/builder/spi-builder-workspace/Sources/TabBar/Common/Extensions/View.swift:30:30: error: 'move(edge:)' is only available in macOS 14.0 or newer
24 | import SwiftUI
25 |
26 | extension View {
| `- note: add @available attribute to enclosing extension
27 | @ViewBuilder func visibility(_ visibility: TabBarVisibility) -> some View {
| `- note: add @available attribute to enclosing instance method
28 | switch visibility {
29 | case .visible:
30 | self.transition(.move(edge: .bottom))
| |- error: 'move(edge:)' is only available in macOS 14.0 or newer
| `- note: add 'if #available' version check
31 | case .invisible:
32 | hidden().transition(.move(edge: .bottom))
/Users/admin/builder/spi-builder-workspace/Sources/TabBar/Common/Extensions/View.swift:30:13: error: 'buildEither(first:)' is only available in macOS 10.15 or newer
24 | import SwiftUI
25 |
26 | extension View {
| `- note: add @available attribute to enclosing extension
27 | @ViewBuilder func visibility(_ visibility: TabBarVisibility) -> some View {
| `- note: add @available attribute to enclosing instance method
28 | switch visibility {
29 | case .visible:
30 | self.transition(.move(edge: .bottom))
| |- error: 'buildEither(first:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
31 | case .invisible:
32 | hidden().transition(.move(edge: .bottom))
/Users/admin/builder/spi-builder-workspace/Sources/TabBar/Common/Extensions/View.swift:32:13: error: 'hidden()' is only available in macOS 10.15 or newer
24 | import SwiftUI
25 |
26 | extension View {
| `- note: add @available attribute to enclosing extension
27 | @ViewBuilder func visibility(_ visibility: TabBarVisibility) -> some View {
| `- note: add @available attribute to enclosing instance method
28 | switch visibility {
29 | case .visible:
30 | self.transition(.move(edge: .bottom))
31 | case .invisible:
32 | hidden().transition(.move(edge: .bottom))
| |- error: 'hidden()' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
33 | }
34 | }
/Users/admin/builder/spi-builder-workspace/Sources/TabBar/Common/Extensions/View.swift:32:22: error: 'transition' is only available in macOS 14.0 or newer
24 | import SwiftUI
25 |
26 | extension View {
| `- note: add @available attribute to enclosing extension
27 | @ViewBuilder func visibility(_ visibility: TabBarVisibility) -> some View {
| `- note: add @available attribute to enclosing instance method
28 | switch visibility {
29 | case .visible:
30 | self.transition(.move(edge: .bottom))
31 | case .invisible:
32 | hidden().transition(.move(edge: .bottom))
| |- error: 'transition' is only available in macOS 14.0 or newer
| `- note: add 'if #available' version check
33 | }
34 | }
/Users/admin/builder/spi-builder-workspace/Sources/TabBar/Common/Extensions/View.swift:32:34: error: 'move(edge:)' is only available in macOS 14.0 or newer
24 | import SwiftUI
25 |
26 | extension View {
| `- note: add @available attribute to enclosing extension
27 | @ViewBuilder func visibility(_ visibility: TabBarVisibility) -> some View {
| `- note: add @available attribute to enclosing instance method
28 | switch visibility {
29 | case .visible:
30 | self.transition(.move(edge: .bottom))
31 | case .invisible:
32 | hidden().transition(.move(edge: .bottom))
| |- error: 'move(edge:)' is only available in macOS 14.0 or newer
| `- note: add 'if #available' version check
33 | }
34 | }
/Users/admin/builder/spi-builder-workspace/Sources/TabBar/Common/Extensions/View.swift:32:13: error: 'buildEither(second:)' is only available in macOS 10.15 or newer
24 | import SwiftUI
25 |
26 | extension View {
| `- note: add @available attribute to enclosing extension
27 | @ViewBuilder func visibility(_ visibility: TabBarVisibility) -> some View {
| `- note: add @available attribute to enclosing instance method
28 | switch visibility {
29 | case .visible:
30 | self.transition(.move(edge: .bottom))
31 | case .invisible:
32 | hidden().transition(.move(edge: .bottom))
| |- error: 'buildEither(second:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
33 | }
34 | }
/Users/admin/builder/spi-builder-workspace/Sources/TabBar/Common/Extensions/View.swift:27:79: warning: conformance of '_ConditionalContent<TrueContent, FalseContent>' to 'View' is only available in macOS 10.15 or newer; this is an error in the Swift 6 language mode
24 | import SwiftUI
25 |
26 | extension View {
| `- note: add @available attribute to enclosing extension
27 | @ViewBuilder func visibility(_ visibility: TabBarVisibility) -> some View {
| | |- warning: conformance of '_ConditionalContent<TrueContent, FalseContent>' to 'View' is only available in macOS 10.15 or newer; this is an error in the Swift 6 language mode
| | `- note: add 'if #available' version check
| `- note: add @available attribute to enclosing instance method
28 | switch visibility {
29 | case .visible:
[11/15] Compiling TabBar TabBarSelection.swift
/Users/admin/builder/spi-builder-workspace/Sources/TabBar/Common/Preferences/TabBarSelection.swift:27:6: error: 'Binding' is only available in macOS 10.15 or newer
24 | import SwiftUI
25 |
26 | class TabBarSelection<TabItem: Tabbable>: ObservableObject {
| `- note: add @available attribute to enclosing generic class
27 | @Binding var selection: TabItem
| `- error: 'Binding' is only available in macOS 10.15 or newer
28 |
29 | init(selection: Binding<TabItem>) {
/Users/admin/builder/spi-builder-workspace/Sources/TabBar/Common/Preferences/TabBarSelection.swift:29:21: error: 'Binding' is only available in macOS 10.15 or newer
24 | import SwiftUI
25 |
26 | class TabBarSelection<TabItem: Tabbable>: ObservableObject {
| `- note: add @available attribute to enclosing generic class
27 | @Binding var selection: TabItem
28 |
29 | init(selection: Binding<TabItem>) {
| | `- error: 'Binding' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing initializer
30 | self._selection = selection
31 | }
/Users/admin/builder/spi-builder-workspace/Sources/TabBar/Common/Preferences/TabBarSelection.swift:26:43: error: 'ObservableObject' is only available in macOS 10.15 or newer
24 | import SwiftUI
25 |
26 | class TabBarSelection<TabItem: Tabbable>: ObservableObject {
| | `- error: 'ObservableObject' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing generic class
27 | @Binding var selection: TabItem
28 |
/Users/admin/builder/spi-builder-workspace/Sources/TabBar/Common/Preferences/TabBarViewModifier.swift:27:6: error: 'EnvironmentObject' is only available in macOS 10.15 or newer
24 | import SwiftUI
25 |
26 | struct TabBarViewModifier<TabItem: Tabbable>: ViewModifier {
| `- note: add @available attribute to enclosing generic struct
27 | @EnvironmentObject private var selectionObject: TabBarSelection<TabItem>
| `- error: 'EnvironmentObject' is only available in macOS 10.15 or newer
28 |
29 | let item: TabItem
/Users/admin/builder/spi-builder-workspace/Sources/TabBar/Common/Preferences/TabBarViewModifier.swift:31:41: error: 'View' is only available in macOS 10.15 or newer
24 | import SwiftUI
25 |
26 | struct TabBarViewModifier<TabItem: Tabbable>: ViewModifier {
| `- note: add @available attribute to enclosing generic struct
27 | @EnvironmentObject private var selectionObject: TabBarSelection<TabItem>
28 |
29 | let item: TabItem
30 |
31 | 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
32 | Group {
33 | if self.item == self.selectionObject.selection {
/Users/admin/builder/spi-builder-workspace/Sources/TabBar/Common/Preferences/TabBarViewModifier.swift:50:71: error: 'View' is only available in macOS 10.15 or newer
41 | }
42 |
43 | extension View {
| `- note: add @available attribute to enclosing extension
44 | /**
45 | A function that is used to associated view with the passed item.
:
48 | of the `TabBar`.
49 | */
50 | public func tabItem<TabItem: Tabbable>(for item: TabItem) -> some View {
| | `- error: 'View' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing instance method
51 | return self.modifier(TabBarViewModifier(item: item))
52 | }
/Users/admin/builder/spi-builder-workspace/Sources/TabBar/Common/Preferences/TabBarViewModifier.swift:43:11: error: 'View' is only available in macOS 10.15 or newer
41 | }
42 |
43 | extension View {
| | `- error: 'View' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing extension
44 | /**
45 | A function that is used to associated view with the passed item.
/Users/admin/builder/spi-builder-workspace/Sources/TabBar/Common/Preferences/TabBarViewModifier.swift:32:9: error: 'Group' is only available in macOS 10.15 or newer
24 | import SwiftUI
25 |
26 | struct TabBarViewModifier<TabItem: Tabbable>: ViewModifier {
| `- note: add @available attribute to enclosing generic struct
27 | @EnvironmentObject private var selectionObject: TabBarSelection<TabItem>
28 |
29 | let item: TabItem
30 |
31 | func body(content: Content) -> some View {
| `- note: add @available attribute to enclosing instance method
32 | Group {
| |- error: 'Group' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
33 | if self.item == self.selectionObject.selection {
34 | content
/Users/admin/builder/spi-builder-workspace/Sources/TabBar/Common/Preferences/TabBarViewModifier.swift:32:9: error: 'init(content:)' is only available in macOS 10.15 or newer
24 | import SwiftUI
25 |
26 | struct TabBarViewModifier<TabItem: Tabbable>: ViewModifier {
| `- note: add @available attribute to enclosing generic struct
27 | @EnvironmentObject private var selectionObject: TabBarSelection<TabItem>
28 |
29 | let item: TabItem
30 |
31 | func body(content: Content) -> some View {
| `- note: add @available attribute to enclosing instance method
32 | Group {
| |- error: 'init(content:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
33 | if self.item == self.selectionObject.selection {
34 | content
/Users/admin/builder/spi-builder-workspace/Sources/TabBar/Common/Preferences/TabBarViewModifier.swift:33:60: error: 'buildEither(first:)' is only available in macOS 10.15 or newer
24 | import SwiftUI
25 |
26 | struct TabBarViewModifier<TabItem: Tabbable>: ViewModifier {
| `- note: add @available attribute to enclosing generic struct
27 | @EnvironmentObject private var selectionObject: TabBarSelection<TabItem>
28 |
29 | let item: TabItem
30 |
31 | func body(content: Content) -> some View {
| `- note: add @available attribute to enclosing instance method
32 | Group {
33 | if self.item == self.selectionObject.selection {
| |- error: 'buildEither(first:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
34 | content
35 | } else {
/Users/admin/builder/spi-builder-workspace/Sources/TabBar/Common/Preferences/TabBarViewModifier.swift:36:17: warning: conformance of 'Color' to 'View' is only available in macOS 10.15 or newer; this is an error in the Swift 6 language mode
24 | import SwiftUI
25 |
26 | struct TabBarViewModifier<TabItem: Tabbable>: ViewModifier {
| `- note: add @available attribute to enclosing generic struct
27 | @EnvironmentObject private var selectionObject: TabBarSelection<TabItem>
28 |
29 | let item: TabItem
30 |
31 | func body(content: Content) -> some View {
| `- note: add @available attribute to enclosing instance method
32 | Group {
33 | if self.item == self.selectionObject.selection {
34 | content
35 | } else {
36 | Color.clear
| |- warning: conformance of 'Color' to 'View' is only available in macOS 10.15 or newer; this is an error in the Swift 6 language mode
| `- note: add 'if #available' version check
37 | }
38 | }
/Users/admin/builder/spi-builder-workspace/Sources/TabBar/Common/Preferences/TabBarViewModifier.swift:36:17: error: 'Color' is only available in macOS 10.15 or newer
24 | import SwiftUI
25 |
26 | struct TabBarViewModifier<TabItem: Tabbable>: ViewModifier {
| `- note: add @available attribute to enclosing generic struct
27 | @EnvironmentObject private var selectionObject: TabBarSelection<TabItem>
28 |
29 | let item: TabItem
30 |
31 | func body(content: Content) -> some View {
| `- note: add @available attribute to enclosing instance method
32 | Group {
33 | if self.item == self.selectionObject.selection {
34 | content
35 | } else {
36 | Color.clear
| |- error: 'Color' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
37 | }
38 | }
/Users/admin/builder/spi-builder-workspace/Sources/TabBar/Common/Preferences/TabBarViewModifier.swift:36:23: error: 'clear' is only available in macOS 10.15 or newer
24 | import SwiftUI
25 |
26 | struct TabBarViewModifier<TabItem: Tabbable>: ViewModifier {
| `- note: add @available attribute to enclosing generic struct
27 | @EnvironmentObject private var selectionObject: TabBarSelection<TabItem>
28 |
29 | let item: TabItem
30 |
31 | func body(content: Content) -> some View {
| `- note: add @available attribute to enclosing instance method
32 | Group {
33 | if self.item == self.selectionObject.selection {
34 | content
35 | } else {
36 | Color.clear
| |- error: 'clear' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
37 | }
38 | }
/Users/admin/builder/spi-builder-workspace/Sources/TabBar/Common/Preferences/TabBarViewModifier.swift:35:20: error: 'buildEither(second:)' is only available in macOS 10.15 or newer
24 | import SwiftUI
25 |
26 | struct TabBarViewModifier<TabItem: Tabbable>: ViewModifier {
| `- note: add @available attribute to enclosing generic struct
27 | @EnvironmentObject private var selectionObject: TabBarSelection<TabItem>
28 |
29 | let item: TabItem
30 |
31 | func body(content: Content) -> some View {
| `- note: add @available attribute to enclosing instance method
32 | Group {
33 | if self.item == self.selectionObject.selection {
34 | content
35 | } else {
| |- error: 'buildEither(second:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
36 | Color.clear
37 | }
/Users/admin/builder/spi-builder-workspace/Sources/TabBar/Common/Preferences/TabBarViewModifier.swift:35:20: warning: conformance of 'Color' to 'View' is only available in macOS 10.15 or newer; this is an error in the Swift 6 language mode
24 | import SwiftUI
25 |
26 | struct TabBarViewModifier<TabItem: Tabbable>: ViewModifier {
| `- note: add @available attribute to enclosing generic struct
27 | @EnvironmentObject private var selectionObject: TabBarSelection<TabItem>
28 |
29 | let item: TabItem
30 |
31 | func body(content: Content) -> some View {
| `- note: add @available attribute to enclosing instance method
32 | Group {
33 | if self.item == self.selectionObject.selection {
34 | content
35 | } else {
| |- warning: conformance of 'Color' to 'View' is only available in macOS 10.15 or newer; this is an error in the Swift 6 language mode
| `- note: add 'if #available' version check
36 | Color.clear
37 | }
/Users/admin/builder/spi-builder-workspace/Sources/TabBar/Common/Preferences/TabBarViewModifier.swift:32:15: warning: conformance of '_ConditionalContent<TrueContent, FalseContent>' to 'View' is only available in macOS 10.15 or newer; this is an error in the Swift 6 language mode
24 | import SwiftUI
25 |
26 | struct TabBarViewModifier<TabItem: Tabbable>: ViewModifier {
| `- note: add @available attribute to enclosing generic struct
27 | @EnvironmentObject private var selectionObject: TabBarSelection<TabItem>
28 |
29 | let item: TabItem
30 |
31 | func body(content: Content) -> some View {
| `- note: add @available attribute to enclosing instance method
32 | Group {
| |- warning: conformance of '_ConditionalContent<TrueContent, FalseContent>' to 'View' is only available in macOS 10.15 or newer; this is an error in the Swift 6 language mode
| `- note: add 'if #available' version check
33 | if self.item == self.selectionObject.selection {
34 | content
/Users/admin/builder/spi-builder-workspace/Sources/TabBar/Common/Preferences/TabBarViewModifier.swift:39:10: error: 'preference(key:value:)' is only available in macOS 10.15 or newer
24 | import SwiftUI
25 |
26 | struct TabBarViewModifier<TabItem: Tabbable>: ViewModifier {
| `- note: add @available attribute to enclosing generic struct
27 | @EnvironmentObject private var selectionObject: TabBarSelection<TabItem>
28 |
29 | let item: TabItem
30 |
31 | func body(content: Content) -> some View {
| `- note: add @available attribute to enclosing instance method
32 | Group {
33 | if self.item == self.selectionObject.selection {
:
37 | }
38 | }
39 | .preference(key: TabBarPreferenceKey.self, value: [self.item])
| |- error: 'preference(key:value:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
40 | }
41 | }
/Users/admin/builder/spi-builder-workspace/Sources/TabBar/Common/Preferences/TabBarViewModifier.swift:51:21: warning: conformance of 'ModifiedContent<Content, Modifier>' to 'View' is only available in macOS 10.15 or newer; this is an error in the Swift 6 language mode
41 | }
42 |
43 | extension View {
| `- note: add @available attribute to enclosing extension
44 | /**
45 | A function that is used to associated view with the passed item.
:
48 | of the `TabBar`.
49 | */
50 | public func tabItem<TabItem: Tabbable>(for item: TabItem) -> some View {
| `- note: add @available attribute to enclosing instance method
51 | return self.modifier(TabBarViewModifier(item: item))
| |- warning: conformance of 'ModifiedContent<Content, Modifier>' to 'View' is only available in macOS 10.15 or newer; this is an error in the Swift 6 language mode
| `- note: add 'if #available' version check
52 | }
53 | }
/Users/admin/builder/spi-builder-workspace/Sources/TabBar/Common/Preferences/TabBarViewModifier.swift:51:21: error: 'modifier' is only available in macOS 10.15 or newer
41 | }
42 |
43 | extension View {
| `- note: add @available attribute to enclosing extension
44 | /**
45 | A function that is used to associated view with the passed item.
:
48 | of the `TabBar`.
49 | */
50 | public func tabItem<TabItem: Tabbable>(for item: TabItem) -> some View {
| `- note: add @available attribute to enclosing instance method
51 | return self.modifier(TabBarViewModifier(item: item))
| |- error: 'modifier' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
52 | }
53 | }
[12/15] Compiling TabBar TabBarViewModifier.swift
/Users/admin/builder/spi-builder-workspace/Sources/TabBar/Common/Preferences/TabBarSelection.swift:27:6: error: 'Binding' is only available in macOS 10.15 or newer
24 | import SwiftUI
25 |
26 | class TabBarSelection<TabItem: Tabbable>: ObservableObject {
| `- note: add @available attribute to enclosing generic class
27 | @Binding var selection: TabItem
| `- error: 'Binding' is only available in macOS 10.15 or newer
28 |
29 | init(selection: Binding<TabItem>) {
/Users/admin/builder/spi-builder-workspace/Sources/TabBar/Common/Preferences/TabBarSelection.swift:29:21: error: 'Binding' is only available in macOS 10.15 or newer
24 | import SwiftUI
25 |
26 | class TabBarSelection<TabItem: Tabbable>: ObservableObject {
| `- note: add @available attribute to enclosing generic class
27 | @Binding var selection: TabItem
28 |
29 | init(selection: Binding<TabItem>) {
| | `- error: 'Binding' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing initializer
30 | self._selection = selection
31 | }
/Users/admin/builder/spi-builder-workspace/Sources/TabBar/Common/Preferences/TabBarSelection.swift:26:43: error: 'ObservableObject' is only available in macOS 10.15 or newer
24 | import SwiftUI
25 |
26 | class TabBarSelection<TabItem: Tabbable>: ObservableObject {
| | `- error: 'ObservableObject' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing generic class
27 | @Binding var selection: TabItem
28 |
/Users/admin/builder/spi-builder-workspace/Sources/TabBar/Common/Preferences/TabBarViewModifier.swift:27:6: error: 'EnvironmentObject' is only available in macOS 10.15 or newer
24 | import SwiftUI
25 |
26 | struct TabBarViewModifier<TabItem: Tabbable>: ViewModifier {
| `- note: add @available attribute to enclosing generic struct
27 | @EnvironmentObject private var selectionObject: TabBarSelection<TabItem>
| `- error: 'EnvironmentObject' is only available in macOS 10.15 or newer
28 |
29 | let item: TabItem
/Users/admin/builder/spi-builder-workspace/Sources/TabBar/Common/Preferences/TabBarViewModifier.swift:31:41: error: 'View' is only available in macOS 10.15 or newer
24 | import SwiftUI
25 |
26 | struct TabBarViewModifier<TabItem: Tabbable>: ViewModifier {
| `- note: add @available attribute to enclosing generic struct
27 | @EnvironmentObject private var selectionObject: TabBarSelection<TabItem>
28 |
29 | let item: TabItem
30 |
31 | 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
32 | Group {
33 | if self.item == self.selectionObject.selection {
/Users/admin/builder/spi-builder-workspace/Sources/TabBar/Common/Preferences/TabBarViewModifier.swift:50:71: error: 'View' is only available in macOS 10.15 or newer
41 | }
42 |
43 | extension View {
| `- note: add @available attribute to enclosing extension
44 | /**
45 | A function that is used to associated view with the passed item.
:
48 | of the `TabBar`.
49 | */
50 | public func tabItem<TabItem: Tabbable>(for item: TabItem) -> some View {
| | `- error: 'View' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing instance method
51 | return self.modifier(TabBarViewModifier(item: item))
52 | }
/Users/admin/builder/spi-builder-workspace/Sources/TabBar/Common/Preferences/TabBarViewModifier.swift:43:11: error: 'View' is only available in macOS 10.15 or newer
41 | }
42 |
43 | extension View {
| | `- error: 'View' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing extension
44 | /**
45 | A function that is used to associated view with the passed item.
/Users/admin/builder/spi-builder-workspace/Sources/TabBar/Common/Preferences/TabBarViewModifier.swift:32:9: error: 'Group' is only available in macOS 10.15 or newer
24 | import SwiftUI
25 |
26 | struct TabBarViewModifier<TabItem: Tabbable>: ViewModifier {
| `- note: add @available attribute to enclosing generic struct
27 | @EnvironmentObject private var selectionObject: TabBarSelection<TabItem>
28 |
29 | let item: TabItem
30 |
31 | func body(content: Content) -> some View {
| `- note: add @available attribute to enclosing instance method
32 | Group {
| |- error: 'Group' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
33 | if self.item == self.selectionObject.selection {
34 | content
/Users/admin/builder/spi-builder-workspace/Sources/TabBar/Common/Preferences/TabBarViewModifier.swift:32:9: error: 'init(content:)' is only available in macOS 10.15 or newer
24 | import SwiftUI
25 |
26 | struct TabBarViewModifier<TabItem: Tabbable>: ViewModifier {
| `- note: add @available attribute to enclosing generic struct
27 | @EnvironmentObject private var selectionObject: TabBarSelection<TabItem>
28 |
29 | let item: TabItem
30 |
31 | func body(content: Content) -> some View {
| `- note: add @available attribute to enclosing instance method
32 | Group {
| |- error: 'init(content:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
33 | if self.item == self.selectionObject.selection {
34 | content
/Users/admin/builder/spi-builder-workspace/Sources/TabBar/Common/Preferences/TabBarViewModifier.swift:33:60: error: 'buildEither(first:)' is only available in macOS 10.15 or newer
24 | import SwiftUI
25 |
26 | struct TabBarViewModifier<TabItem: Tabbable>: ViewModifier {
| `- note: add @available attribute to enclosing generic struct
27 | @EnvironmentObject private var selectionObject: TabBarSelection<TabItem>
28 |
29 | let item: TabItem
30 |
31 | func body(content: Content) -> some View {
| `- note: add @available attribute to enclosing instance method
32 | Group {
33 | if self.item == self.selectionObject.selection {
| |- error: 'buildEither(first:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
34 | content
35 | } else {
/Users/admin/builder/spi-builder-workspace/Sources/TabBar/Common/Preferences/TabBarViewModifier.swift:36:17: warning: conformance of 'Color' to 'View' is only available in macOS 10.15 or newer; this is an error in the Swift 6 language mode
24 | import SwiftUI
25 |
26 | struct TabBarViewModifier<TabItem: Tabbable>: ViewModifier {
| `- note: add @available attribute to enclosing generic struct
27 | @EnvironmentObject private var selectionObject: TabBarSelection<TabItem>
28 |
29 | let item: TabItem
30 |
31 | func body(content: Content) -> some View {
| `- note: add @available attribute to enclosing instance method
32 | Group {
33 | if self.item == self.selectionObject.selection {
34 | content
35 | } else {
36 | Color.clear
| |- warning: conformance of 'Color' to 'View' is only available in macOS 10.15 or newer; this is an error in the Swift 6 language mode
| `- note: add 'if #available' version check
37 | }
38 | }
/Users/admin/builder/spi-builder-workspace/Sources/TabBar/Common/Preferences/TabBarViewModifier.swift:36:17: error: 'Color' is only available in macOS 10.15 or newer
24 | import SwiftUI
25 |
26 | struct TabBarViewModifier<TabItem: Tabbable>: ViewModifier {
| `- note: add @available attribute to enclosing generic struct
27 | @EnvironmentObject private var selectionObject: TabBarSelection<TabItem>
28 |
29 | let item: TabItem
30 |
31 | func body(content: Content) -> some View {
| `- note: add @available attribute to enclosing instance method
32 | Group {
33 | if self.item == self.selectionObject.selection {
34 | content
35 | } else {
36 | Color.clear
| |- error: 'Color' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
37 | }
38 | }
/Users/admin/builder/spi-builder-workspace/Sources/TabBar/Common/Preferences/TabBarViewModifier.swift:36:23: error: 'clear' is only available in macOS 10.15 or newer
24 | import SwiftUI
25 |
26 | struct TabBarViewModifier<TabItem: Tabbable>: ViewModifier {
| `- note: add @available attribute to enclosing generic struct
27 | @EnvironmentObject private var selectionObject: TabBarSelection<TabItem>
28 |
29 | let item: TabItem
30 |
31 | func body(content: Content) -> some View {
| `- note: add @available attribute to enclosing instance method
32 | Group {
33 | if self.item == self.selectionObject.selection {
34 | content
35 | } else {
36 | Color.clear
| |- error: 'clear' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
37 | }
38 | }
/Users/admin/builder/spi-builder-workspace/Sources/TabBar/Common/Preferences/TabBarViewModifier.swift:35:20: error: 'buildEither(second:)' is only available in macOS 10.15 or newer
24 | import SwiftUI
25 |
26 | struct TabBarViewModifier<TabItem: Tabbable>: ViewModifier {
| `- note: add @available attribute to enclosing generic struct
27 | @EnvironmentObject private var selectionObject: TabBarSelection<TabItem>
28 |
29 | let item: TabItem
30 |
31 | func body(content: Content) -> some View {
| `- note: add @available attribute to enclosing instance method
32 | Group {
33 | if self.item == self.selectionObject.selection {
34 | content
35 | } else {
| |- error: 'buildEither(second:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
36 | Color.clear
37 | }
/Users/admin/builder/spi-builder-workspace/Sources/TabBar/Common/Preferences/TabBarViewModifier.swift:35:20: warning: conformance of 'Color' to 'View' is only available in macOS 10.15 or newer; this is an error in the Swift 6 language mode
24 | import SwiftUI
25 |
26 | struct TabBarViewModifier<TabItem: Tabbable>: ViewModifier {
| `- note: add @available attribute to enclosing generic struct
27 | @EnvironmentObject private var selectionObject: TabBarSelection<TabItem>
28 |
29 | let item: TabItem
30 |
31 | func body(content: Content) -> some View {
| `- note: add @available attribute to enclosing instance method
32 | Group {
33 | if self.item == self.selectionObject.selection {
34 | content
35 | } else {
| |- warning: conformance of 'Color' to 'View' is only available in macOS 10.15 or newer; this is an error in the Swift 6 language mode
| `- note: add 'if #available' version check
36 | Color.clear
37 | }
/Users/admin/builder/spi-builder-workspace/Sources/TabBar/Common/Preferences/TabBarViewModifier.swift:32:15: warning: conformance of '_ConditionalContent<TrueContent, FalseContent>' to 'View' is only available in macOS 10.15 or newer; this is an error in the Swift 6 language mode
24 | import SwiftUI
25 |
26 | struct TabBarViewModifier<TabItem: Tabbable>: ViewModifier {
| `- note: add @available attribute to enclosing generic struct
27 | @EnvironmentObject private var selectionObject: TabBarSelection<TabItem>
28 |
29 | let item: TabItem
30 |
31 | func body(content: Content) -> some View {
| `- note: add @available attribute to enclosing instance method
32 | Group {
| |- warning: conformance of '_ConditionalContent<TrueContent, FalseContent>' to 'View' is only available in macOS 10.15 or newer; this is an error in the Swift 6 language mode
| `- note: add 'if #available' version check
33 | if self.item == self.selectionObject.selection {
34 | content
/Users/admin/builder/spi-builder-workspace/Sources/TabBar/Common/Preferences/TabBarViewModifier.swift:39:10: error: 'preference(key:value:)' is only available in macOS 10.15 or newer
24 | import SwiftUI
25 |
26 | struct TabBarViewModifier<TabItem: Tabbable>: ViewModifier {
| `- note: add @available attribute to enclosing generic struct
27 | @EnvironmentObject private var selectionObject: TabBarSelection<TabItem>
28 |
29 | let item: TabItem
30 |
31 | func body(content: Content) -> some View {
| `- note: add @available attribute to enclosing instance method
32 | Group {
33 | if self.item == self.selectionObject.selection {
:
37 | }
38 | }
39 | .preference(key: TabBarPreferenceKey.self, value: [self.item])
| |- error: 'preference(key:value:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
40 | }
41 | }
/Users/admin/builder/spi-builder-workspace/Sources/TabBar/Common/Preferences/TabBarViewModifier.swift:51:21: warning: conformance of 'ModifiedContent<Content, Modifier>' to 'View' is only available in macOS 10.15 or newer; this is an error in the Swift 6 language mode
41 | }
42 |
43 | extension View {
| `- note: add @available attribute to enclosing extension
44 | /**
45 | A function that is used to associated view with the passed item.
:
48 | of the `TabBar`.
49 | */
50 | public func tabItem<TabItem: Tabbable>(for item: TabItem) -> some View {
| `- note: add @available attribute to enclosing instance method
51 | return self.modifier(TabBarViewModifier(item: item))
| |- warning: conformance of 'ModifiedContent<Content, Modifier>' to 'View' is only available in macOS 10.15 or newer; this is an error in the Swift 6 language mode
| `- note: add 'if #available' version check
52 | }
53 | }
/Users/admin/builder/spi-builder-workspace/Sources/TabBar/Common/Preferences/TabBarViewModifier.swift:51:21: error: 'modifier' is only available in macOS 10.15 or newer
41 | }
42 |
43 | extension View {
| `- note: add @available attribute to enclosing extension
44 | /**
45 | A function that is used to associated view with the passed item.
:
48 | of the `TabBar`.
49 | */
50 | public func tabItem<TabItem: Tabbable>(for item: TabItem) -> some View {
| `- note: add @available attribute to enclosing instance method
51 | return self.modifier(TabBarViewModifier(item: item))
| |- error: 'modifier' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
52 | }
53 | }
[13/16] Compiling TabBar DefaultTabItem.swift
/Users/admin/builder/spi-builder-workspace/Sources/TabBar/Common/Styles/TabItem/DefaultTabItem.swift:33:102: error: 'View' is only available in macOS 10.15 or newer
30 | items of `UITabBar` and used in `TabBar` by default.
31 | */
32 | public struct DefaultTabItemStyle: TabItemStyle {
| `- note: add @available attribute to enclosing struct
33 | public func tabItem(icon: String, selectedIcon: String, title: String, isSelected: Bool) -> some View {
| | `- error: 'View' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing instance method
34 | VStack(spacing: 5.0) {
35 | Image(systemName: icon)
/Users/admin/builder/spi-builder-workspace/Sources/TabBar/Common/Styles/TabItem/DefaultTabItem.swift:34:9: error: 'VStack' is only available in macOS 10.15 or newer
30 | items of `UITabBar` and used in `TabBar` by default.
31 | */
32 | public struct DefaultTabItemStyle: TabItemStyle {
| `- note: add @available attribute to enclosing struct
33 | public func tabItem(icon: String, selectedIcon: String, title: String, isSelected: Bool) -> some View {
| `- note: add @available attribute to enclosing instance method
34 | VStack(spacing: 5.0) {
| |- error: 'VStack' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
35 | Image(systemName: icon)
36 | .renderingMode(.template)
/Users/admin/builder/spi-builder-workspace/Sources/TabBar/Common/Styles/TabItem/DefaultTabItem.swift:35:13: warning: conformance of 'Image' to 'View' is only available in macOS 10.15 or newer; this is an error in the Swift 6 language mode
30 | items of `UITabBar` and used in `TabBar` by default.
31 | */
32 | public struct DefaultTabItemStyle: TabItemStyle {
| `- note: add @available attribute to enclosing struct
33 | public func tabItem(icon: String, selectedIcon: String, title: String, isSelected: Bool) -> some View {
| `- note: add @available attribute to enclosing instance method
34 | VStack(spacing: 5.0) {
35 | Image(systemName: icon)
| |- warning: conformance of 'Image' to 'View' is only available in macOS 10.15 or newer; this is an error in the Swift 6 language mode
| `- note: add 'if #available' version check
36 | .renderingMode(.template)
37 |
/Users/admin/builder/spi-builder-workspace/Sources/TabBar/Common/Styles/TabItem/DefaultTabItem.swift:35:13: error: 'Image' is only available in macOS 10.15 or newer
30 | items of `UITabBar` and used in `TabBar` by default.
31 | */
32 | public struct DefaultTabItemStyle: TabItemStyle {
| `- note: add @available attribute to enclosing struct
33 | public func tabItem(icon: String, selectedIcon: String, title: String, isSelected: Bool) -> some View {
| `- note: add @available attribute to enclosing instance method
34 | VStack(spacing: 5.0) {
35 | Image(systemName: icon)
| |- error: 'Image' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
36 | .renderingMode(.template)
37 |
/Users/admin/builder/spi-builder-workspace/Sources/TabBar/Common/Styles/TabItem/DefaultTabItem.swift:35:13: error: 'init(systemName:)' is only available in macOS 11.0 or newer
30 | items of `UITabBar` and used in `TabBar` by default.
31 | */
32 | public struct DefaultTabItemStyle: TabItemStyle {
| `- note: add @available attribute to enclosing struct
33 | public func tabItem(icon: String, selectedIcon: String, title: String, isSelected: Bool) -> some View {
| `- note: add @available attribute to enclosing instance method
34 | VStack(spacing: 5.0) {
35 | Image(systemName: icon)
| |- error: 'init(systemName:)' is only available in macOS 11.0 or newer
| `- note: add 'if #available' version check
36 | .renderingMode(.template)
37 |
/Users/admin/builder/spi-builder-workspace/Sources/TabBar/Common/Styles/TabItem/DefaultTabItem.swift:36:18: error: 'renderingMode' is only available in macOS 10.15 or newer
30 | items of `UITabBar` and used in `TabBar` by default.
31 | */
32 | public struct DefaultTabItemStyle: TabItemStyle {
| `- note: add @available attribute to enclosing struct
33 | public func tabItem(icon: String, selectedIcon: String, title: String, isSelected: Bool) -> some View {
| `- note: add @available attribute to enclosing instance method
34 | VStack(spacing: 5.0) {
35 | Image(systemName: icon)
36 | .renderingMode(.template)
| |- error: 'renderingMode' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
37 |
38 | Text(title)
/Users/admin/builder/spi-builder-workspace/Sources/TabBar/Common/Styles/TabItem/DefaultTabItem.swift:38:13: warning: conformance of 'Text' to 'View' is only available in macOS 10.15 or newer; this is an error in the Swift 6 language mode
30 | items of `UITabBar` and used in `TabBar` by default.
31 | */
32 | public struct DefaultTabItemStyle: TabItemStyle {
| `- note: add @available attribute to enclosing struct
33 | public func tabItem(icon: String, selectedIcon: String, title: String, isSelected: Bool) -> some View {
| `- note: add @available attribute to enclosing instance method
34 | VStack(spacing: 5.0) {
35 | Image(systemName: icon)
36 | .renderingMode(.template)
37 |
38 | Text(title)
| |- warning: conformance of 'Text' to 'View' is only available in macOS 10.15 or newer; this is an error in the Swift 6 language mode
| `- note: add 'if #available' version check
39 | .font(.system(size: 10.0, weight: .medium))
40 | }
/Users/admin/builder/spi-builder-workspace/Sources/TabBar/Common/Styles/TabItem/DefaultTabItem.swift:38:13: error: 'Text' is only available in macOS 10.15 or newer
30 | items of `UITabBar` and used in `TabBar` by default.
31 | */
32 | public struct DefaultTabItemStyle: TabItemStyle {
| `- note: add @available attribute to enclosing struct
33 | public func tabItem(icon: String, selectedIcon: String, title: String, isSelected: Bool) -> some View {
| `- note: add @available attribute to enclosing instance method
34 | VStack(spacing: 5.0) {
35 | Image(systemName: icon)
36 | .renderingMode(.template)
37 |
38 | Text(title)
| |- error: 'Text' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
39 | .font(.system(size: 10.0, weight: .medium))
40 | }
/Users/admin/builder/spi-builder-workspace/Sources/TabBar/Common/Styles/TabItem/DefaultTabItem.swift:39:18: error: 'font' is only available in macOS 10.15 or newer
30 | items of `UITabBar` and used in `TabBar` by default.
31 | */
32 | public struct DefaultTabItemStyle: TabItemStyle {
| `- note: add @available attribute to enclosing struct
33 | public func tabItem(icon: String, selectedIcon: String, title: String, isSelected: Bool) -> some View {
| `- note: add @available attribute to enclosing instance method
34 | VStack(spacing: 5.0) {
35 | Image(systemName: icon)
:
37 |
38 | Text(title)
39 | .font(.system(size: 10.0, weight: .medium))
| |- error: 'font' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
40 | }
41 | .foregroundColor(isSelected ? .accentColor : .gray)
/Users/admin/builder/spi-builder-workspace/Sources/TabBar/Common/Styles/TabItem/DefaultTabItem.swift:39:24: error: 'system(size:weight:design:)' is only available in macOS 13.0 or newer
30 | items of `UITabBar` and used in `TabBar` by default.
31 | */
32 | public struct DefaultTabItemStyle: TabItemStyle {
| `- note: add @available attribute to enclosing struct
33 | public func tabItem(icon: String, selectedIcon: String, title: String, isSelected: Bool) -> some View {
| `- note: add @available attribute to enclosing instance method
34 | VStack(spacing: 5.0) {
35 | Image(systemName: icon)
:
37 |
38 | Text(title)
39 | .font(.system(size: 10.0, weight: .medium))
| |- error: 'system(size:weight:design:)' is only available in macOS 13.0 or newer
| `- note: add 'if #available' version check
40 | }
41 | .foregroundColor(isSelected ? .accentColor : .gray)
/Users/admin/builder/spi-builder-workspace/Sources/TabBar/Common/Styles/TabItem/DefaultTabItem.swift:34:30: warning: conformance of 'Image' to 'View' is only available in macOS 10.15 or newer; this is an error in the Swift 6 language mode
30 | items of `UITabBar` and used in `TabBar` by default.
31 | */
32 | public struct DefaultTabItemStyle: TabItemStyle {
| `- note: add @available attribute to enclosing struct
33 | public func tabItem(icon: String, selectedIcon: String, title: String, isSelected: Bool) -> some View {
| `- note: add @available attribute to enclosing instance method
34 | VStack(spacing: 5.0) {
| |- warning: conformance of 'Image' to 'View' is only available in macOS 10.15 or newer; this is an error in the Swift 6 language mode
| `- note: add 'if #available' version check
35 | Image(systemName: icon)
36 | .renderingMode(.template)
/Users/admin/builder/spi-builder-workspace/Sources/TabBar/Common/Styles/TabItem/DefaultTabItem.swift:34:30: warning: conformance of 'Text' to 'View' is only available in macOS 10.15 or newer; this is an error in the Swift 6 language mode
30 | items of `UITabBar` and used in `TabBar` by default.
31 | */
32 | public struct DefaultTabItemStyle: TabItemStyle {
| `- note: add @available attribute to enclosing struct
33 | public func tabItem(icon: String, selectedIcon: String, title: String, isSelected: Bool) -> some View {
| `- note: add @available attribute to enclosing instance method
34 | VStack(spacing: 5.0) {
| |- warning: conformance of 'Text' to 'View' is only available in macOS 10.15 or newer; this is an error in the Swift 6 language mode
| `- note: add 'if #available' version check
35 | Image(systemName: icon)
36 | .renderingMode(.template)
/Users/admin/builder/spi-builder-workspace/Sources/TabBar/Common/Styles/TabItem/DefaultTabItem.swift:41:10: error: 'foregroundColor' is only available in macOS 10.15 or newer
30 | items of `UITabBar` and used in `TabBar` by default.
31 | */
32 | public struct DefaultTabItemStyle: TabItemStyle {
| `- note: add @available attribute to enclosing struct
33 | public func tabItem(icon: String, selectedIcon: String, title: String, isSelected: Bool) -> some View {
| `- note: add @available attribute to enclosing instance method
34 | VStack(spacing: 5.0) {
35 | Image(systemName: icon)
:
39 | .font(.system(size: 10.0, weight: .medium))
40 | }
41 | .foregroundColor(isSelected ? .accentColor : .gray)
| |- error: 'foregroundColor' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
42 | }
43 | }
/Users/admin/builder/spi-builder-workspace/Sources/TabBar/Common/Styles/TabItem/DefaultTabItem.swift:41:40: error: 'accentColor' is only available in macOS 10.15 or newer
30 | items of `UITabBar` and used in `TabBar` by default.
31 | */
32 | public struct DefaultTabItemStyle: TabItemStyle {
| `- note: add @available attribute to enclosing struct
33 | public func tabItem(icon: String, selectedIcon: String, title: String, isSelected: Bool) -> some View {
| `- note: add @available attribute to enclosing instance method
34 | VStack(spacing: 5.0) {
35 | Image(systemName: icon)
:
39 | .font(.system(size: 10.0, weight: .medium))
40 | }
41 | .foregroundColor(isSelected ? .accentColor : .gray)
| |- error: 'accentColor' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
42 | }
43 | }
/Users/admin/builder/spi-builder-workspace/Sources/TabBar/Common/Styles/TabItem/DefaultTabItem.swift:41:55: error: 'gray' is only available in macOS 10.15 or newer
30 | items of `UITabBar` and used in `TabBar` by default.
31 | */
32 | public struct DefaultTabItemStyle: TabItemStyle {
| `- note: add @available attribute to enclosing struct
33 | public func tabItem(icon: String, selectedIcon: String, title: String, isSelected: Bool) -> some View {
| `- note: add @available attribute to enclosing instance method
34 | VStack(spacing: 5.0) {
35 | Image(systemName: icon)
:
39 | .font(.system(size: 10.0, weight: .medium))
40 | }
41 | .foregroundColor(isSelected ? .accentColor : .gray)
| |- error: 'gray' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
42 | }
43 | }
[14/16] Compiling TabBar TabBarStyle.swift
/Users/admin/builder/spi-builder-workspace/Sources/TabBar/Common/Styles/TabBar/TabBarStyle.swift:35:29: error: 'View' is only available in macOS 10.15 or newer
32 | using `tabBar(style:)` function.
33 | */
34 | public protocol TabBarStyle {
| `- note: add @available attribute to enclosing protocol
35 | associatedtype Content: View
| | `- error: 'View' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing associated type
36 |
37 | func tabBar(with geometry: GeometryProxy, itemsContainer: @escaping () -> AnyView) -> Content
/Users/admin/builder/spi-builder-workspace/Sources/TabBar/Common/Styles/TabBar/TabBarStyle.swift:37:32: error: 'GeometryProxy' is only available in macOS 10.15 or newer
32 | using `tabBar(style:)` function.
33 | */
34 | public protocol TabBarStyle {
| `- note: add @available attribute to enclosing protocol
35 | associatedtype Content: View
36 |
37 | func tabBar(with geometry: GeometryProxy, itemsContainer: @escaping () -> AnyView) -> Content
| | `- error: 'GeometryProxy' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing instance method
38 | }
39 |
/Users/admin/builder/spi-builder-workspace/Sources/TabBar/Common/Styles/TabBar/TabBarStyle.swift:37:79: error: 'AnyView' is only available in macOS 10.15 or newer
32 | using `tabBar(style:)` function.
33 | */
34 | public protocol TabBarStyle {
| `- note: add @available attribute to enclosing protocol
35 | associatedtype Content: View
36 |
37 | func tabBar(with geometry: GeometryProxy, itemsContainer: @escaping () -> AnyView) -> Content
| | `- error: 'AnyView' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing instance method
38 | }
39 |
/Users/admin/builder/spi-builder-workspace/Sources/TabBar/Common/Styles/TabBar/TabBarStyle.swift:41:38: error: 'GeometryProxy' is only available in macOS 10.15 or newer
38 | }
39 |
40 | extension TabBarStyle {
| `- note: add @available attribute to enclosing extension
41 | func tabBarErased(with geometry: GeometryProxy, itemsContainer: @escaping () -> AnyView) -> AnyView {
| | `- error: 'GeometryProxy' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing instance method
42 | return .init(self.tabBar(with: geometry, itemsContainer: itemsContainer))
43 | }
/Users/admin/builder/spi-builder-workspace/Sources/TabBar/Common/Styles/TabBar/TabBarStyle.swift:41:85: error: 'AnyView' is only available in macOS 10.15 or newer
38 | }
39 |
40 | extension TabBarStyle {
| `- note: add @available attribute to enclosing extension
41 | func tabBarErased(with geometry: GeometryProxy, itemsContainer: @escaping () -> AnyView) -> AnyView {
| | `- error: 'AnyView' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing instance method
42 | return .init(self.tabBar(with: geometry, itemsContainer: itemsContainer))
43 | }
/Users/admin/builder/spi-builder-workspace/Sources/TabBar/Common/Styles/TabBar/TabBarStyle.swift:41:97: error: 'AnyView' is only available in macOS 10.15 or newer
38 | }
39 |
40 | extension TabBarStyle {
| `- note: add @available attribute to enclosing extension
41 | func tabBarErased(with geometry: GeometryProxy, itemsContainer: @escaping () -> AnyView) -> AnyView {
| | `- error: 'AnyView' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing instance method
42 | return .init(self.tabBar(with: geometry, itemsContainer: itemsContainer))
43 | }
[15/16] Compiling TabBar TabItemStyle.swift
/Users/admin/builder/spi-builder-workspace/Sources/TabBar/Common/Styles/TabItem/TabItemStyle.swift:34:30: error: 'View' is only available in macOS 10.15 or newer
31 | using `tabItem(style:)` function.
32 | */
33 | public protocol TabItemStyle {
| `- note: add @available attribute to enclosing protocol
34 | associatedtype Content : View
| | `- error: 'View' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing associated type
35 |
36 | func tabItem(icon: String, title: String, isSelected: Bool) -> Content
/Users/admin/builder/spi-builder-workspace/Sources/TabBar/Common/Styles/TabItem/TabItemStyle.swift:49:96: error: 'AnyView' is only available in macOS 10.15 or newer
38 | }
39 |
40 | extension TabItemStyle {
| `- note: add @available attribute to enclosing extension
41 | public func tabItem(icon: String, title: String, isSelected: Bool) -> Content {
42 | return self.tabItem(icon: icon, selectedIcon: icon, title: title, isSelected: isSelected)
:
47 | }
48 |
49 | func tabItemErased(icon: String, selectedIcon: String, title: String, isSelected: Bool) -> AnyView {
| | `- error: 'AnyView' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing instance method
50 | return .init(self.tabItem(icon: icon, selectedIcon: selectedIcon, title: title, isSelected: isSelected))
51 | }
[16/16] Compiling TabBar TabBar.swift
/Users/admin/builder/spi-builder-workspace/Sources/TabBar/View/TabBar.swift:55:6: error: 'State' is only available in macOS 10.15 or newer
45 | ```
46 | */
47 | public struct TabBar<TabItem: Tabbable, Content: View>: View {
| `- note: add @available attribute to enclosing generic struct
48 |
49 | private let selectedItem: TabBarSelection<TabItem>
:
53 | private var tabBarStyle : AnyTabBarStyle
54 |
55 | @State private var items: [TabItem]
| `- error: 'State' is only available in macOS 10.15 or newer
56 |
57 | @Binding private var visibility: TabBarVisibility
/Users/admin/builder/spi-builder-workspace/Sources/TabBar/View/TabBar.swift:57:6: error: 'Binding' is only available in macOS 10.15 or newer
45 | ```
46 | */
47 | public struct TabBar<TabItem: Tabbable, Content: View>: View {
| `- note: add @available attribute to enclosing generic struct
48 |
49 | private let selectedItem: TabBarSelection<TabItem>
:
55 | @State private var items: [TabItem]
56 |
57 | @Binding private var visibility: TabBarVisibility
| `- error: 'Binding' is only available in macOS 10.15 or newer
58 |
59 | /**
/Users/admin/builder/spi-builder-workspace/Sources/TabBar/View/TabBar.swift:68:20: error: 'Binding' is only available in macOS 10.15 or newer
45 | ```
46 | */
47 | public struct TabBar<TabItem: Tabbable, Content: View>: View {
| `- note: add @available attribute to enclosing generic struct
48 |
49 | private let selectedItem: TabBarSelection<TabItem>
:
65 | if they have `tabItem(for:)` applied on them.
66 | */
67 | public init(
| `- note: add @available attribute to enclosing initializer
68 | selection: Binding<TabItem>,
| `- error: 'Binding' is only available in macOS 10.15 or newer
69 | visibility: Binding<TabBarVisibility> = .constant(.visible),
70 | @ViewBuilder content: () -> Content
/Users/admin/builder/spi-builder-workspace/Sources/TabBar/View/TabBar.swift:69:21: error: 'Binding' is only available in macOS 10.15 or newer
45 | ```
46 | */
47 | public struct TabBar<TabItem: Tabbable, Content: View>: View {
| `- note: add @available attribute to enclosing generic struct
48 |
49 | private let selectedItem: TabBarSelection<TabItem>
:
65 | if they have `tabItem(for:)` applied on them.
66 | */
67 | public init(
| `- note: add @available attribute to enclosing initializer
68 | selection: Binding<TabItem>,
69 | visibility: Binding<TabBarVisibility> = .constant(.visible),
| `- error: 'Binding' is only available in macOS 10.15 or newer
70 | @ViewBuilder content: () -> Content
71 | ) {
/Users/admin/builder/spi-builder-workspace/Sources/TabBar/View/TabBar.swift:70:10: error: 'ViewBuilder' is only available in macOS 10.15 or newer
45 | ```
46 | */
47 | public struct TabBar<TabItem: Tabbable, Content: View>: View {
| `- note: add @available attribute to enclosing generic struct
48 |
49 | private let selectedItem: TabBarSelection<TabItem>
:
65 | if they have `tabItem(for:)` applied on them.
66 | */
67 | public init(
| `- note: add @available attribute to enclosing initializer
68 | selection: Binding<TabItem>,
69 | visibility: Binding<TabBarVisibility> = .constant(.visible),
70 | @ViewBuilder content: () -> Content
| `- error: 'ViewBuilder' is only available in macOS 10.15 or newer
71 | ) {
72 | self.tabItemStyle = .init(itemStyle: DefaultTabItemStyle())
/Users/admin/builder/spi-builder-workspace/Sources/TabBar/View/TabBar.swift:82:32: error: 'View' is only available in macOS 10.15 or newer
45 | ```
46 | */
47 | public struct TabBar<TabItem: Tabbable, Content: View>: View {
| `- note: add @available attribute to enclosing generic struct
48 |
49 | private let selectedItem: TabBarSelection<TabItem>
:
80 | }
81 |
82 | private var tabItems: some View {
| | `- error: 'View' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing property
83 | HStack {
84 | ForEach(self.items, id: \.self) { item in
/Users/admin/builder/spi-builder-workspace/Sources/TabBar/View/TabBar.swift:100:27: error: 'View' is only available in macOS 10.15 or newer
45 | ```
46 | */
47 | public struct TabBar<TabItem: Tabbable, Content: View>: View {
| `- note: add @available attribute to enclosing generic struct
48 |
49 | private let selectedItem: TabBarSelection<TabItem>
:
98 | }
99 |
100 | public var body: some View {
| | `- error: 'View' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing property
101 | ZStack {
102 | self.content
/Users/admin/builder/spi-builder-workspace/Sources/TabBar/View/TabBar.swift:47:50: error: 'View' is only available in macOS 10.15 or newer
45 | ```
46 | */
47 | public struct TabBar<TabItem: Tabbable, Content: View>: View {
| | `- error: 'View' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing generic struct
48 |
49 | private let selectedItem: TabBarSelection<TabItem>
/Users/admin/builder/spi-builder-workspace/Sources/TabBar/View/TabBar.swift:83:9: error: 'HStack' is only available in macOS 10.15 or newer
45 | ```
46 | */
47 | public struct TabBar<TabItem: Tabbable, Content: View>: View {
| `- note: add @available attribute to enclosing generic struct
48 |
49 | private let selectedItem: TabBarSelection<TabItem>
:
80 | }
81 |
82 | private var tabItems: some View {
| `- note: add @available attribute to enclosing property
83 | HStack {
| |- error: 'HStack' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
84 | ForEach(self.items, id: \.self) { item in
85 | self.tabItemStyle.tabItem(
/Users/admin/builder/spi-builder-workspace/Sources/TabBar/View/TabBar.swift:84:13: error: 'ForEach' is only available in macOS 10.15 or newer
45 | ```
46 | */
47 | public struct TabBar<TabItem: Tabbable, Content: View>: View {
| `- note: add @available attribute to enclosing generic struct
48 |
49 | private let selectedItem: TabBarSelection<TabItem>
:
80 | }
81 |
82 | private var tabItems: some View {
| `- note: add @available attribute to enclosing property
83 | HStack {
84 | ForEach(self.items, id: \.self) { item in
| |- error: 'ForEach' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
85 | self.tabItemStyle.tabItem(
86 | icon: item.icon,
/Users/admin/builder/spi-builder-workspace/Sources/TabBar/View/TabBar.swift:84:13: error: 'init(_:id:content:)' is only available in macOS 10.15 or newer
45 | ```
46 | */
47 | public struct TabBar<TabItem: Tabbable, Content: View>: View {
| `- note: add @available attribute to enclosing generic struct
48 |
49 | private let selectedItem: TabBarSelection<TabItem>
:
80 | }
81 |
82 | private var tabItems: some View {
| `- note: add @available attribute to enclosing property
83 | HStack {
84 | ForEach(self.items, id: \.self) { item in
| |- error: 'init(_:id:content:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
85 | self.tabItemStyle.tabItem(
86 | icon: item.icon,
/Users/admin/builder/spi-builder-workspace/Sources/TabBar/View/TabBar.swift:91:18: error: 'onTapGesture(count:perform:)' is only available in macOS 10.15 or newer
45 | ```
46 | */
47 | public struct TabBar<TabItem: Tabbable, Content: View>: View {
| `- note: add @available attribute to enclosing generic struct
48 |
49 | private let selectedItem: TabBarSelection<TabItem>
:
80 | }
81 |
82 | private var tabItems: some View {
| `- note: add @available attribute to enclosing property
83 | HStack {
84 | ForEach(self.items, id: \.self) { item in
:
89 | isSelected: self.selectedItem.selection == item
90 | )
91 | .onTapGesture {
| |- error: 'onTapGesture(count:perform:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
92 | self.selectedItem.selection = item
93 | self.selectedItem.objectWillChange.send()
/Users/admin/builder/spi-builder-workspace/Sources/TabBar/View/TabBar.swift:92:21: error: setter for 'selection' is only available in macOS 10.15 or newer
45 | ```
46 | */
47 | public struct TabBar<TabItem: Tabbable, Content: View>: View {
| `- note: add @available attribute to enclosing generic struct
48 |
49 | private let selectedItem: TabBarSelection<TabItem>
:
80 | }
81 |
82 | private var tabItems: some View {
| `- note: add @available attribute to enclosing property
83 | HStack {
84 | ForEach(self.items, id: \.self) { item in
:
90 | )
91 | .onTapGesture {
92 | self.selectedItem.selection = item
| |- error: setter for 'selection' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
93 | self.selectedItem.objectWillChange.send()
94 | }
/Users/admin/builder/spi-builder-workspace/Sources/TabBar/View/TabBar.swift:93:39: error: 'objectWillChange' is only available in macOS 10.15 or newer
45 | ```
46 | */
47 | public struct TabBar<TabItem: Tabbable, Content: View>: View {
| `- note: add @available attribute to enclosing generic struct
48 |
49 | private let selectedItem: TabBarSelection<TabItem>
:
80 | }
81 |
82 | private var tabItems: some View {
| `- note: add @available attribute to enclosing property
83 | HStack {
84 | ForEach(self.items, id: \.self) { item in
:
91 | .onTapGesture {
92 | self.selectedItem.selection = item
93 | self.selectedItem.objectWillChange.send()
| |- error: 'objectWillChange' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
94 | }
95 | }
/Users/admin/builder/spi-builder-workspace/Sources/TabBar/View/TabBar.swift:96:14: error: 'frame(minWidth:idealWidth:maxWidth:minHeight:idealHeight:maxHeight:alignment:)' is only available in macOS 10.15 or newer
45 | ```
46 | */
47 | public struct TabBar<TabItem: Tabbable, Content: View>: View {
| `- note: add @available attribute to enclosing generic struct
48 |
49 | private let selectedItem: TabBarSelection<TabItem>
:
80 | }
81 |
82 | private var tabItems: some View {
| `- note: add @available attribute to enclosing property
83 | HStack {
84 | ForEach(self.items, id: \.self) { item in
:
94 | }
95 | }
96 | .frame(maxWidth: .infinity)
| |- error: 'frame(minWidth:idealWidth:maxWidth:minHeight:idealHeight:maxHeight:alignment:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
97 | }
98 | }
/Users/admin/builder/spi-builder-workspace/Sources/TabBar/View/TabBar.swift:101:9: error: 'ZStack' is only available in macOS 10.15 or newer
45 | ```
46 | */
47 | public struct TabBar<TabItem: Tabbable, Content: View>: View {
| `- note: add @available attribute to enclosing generic struct
48 |
49 | private let selectedItem: TabBarSelection<TabItem>
:
98 | }
99 |
100 | public var body: some View {
| `- note: add @available attribute to enclosing property
101 | ZStack {
| |- error: 'ZStack' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
102 | self.content
103 | .frame(maxWidth: .infinity, maxHeight: .infinity)
/Users/admin/builder/spi-builder-workspace/Sources/TabBar/View/TabBar.swift:103:18: error: 'frame(minWidth:idealWidth:maxWidth:minHeight:idealHeight:maxHeight:alignment:)' is only available in macOS 10.15 or newer
45 | ```
46 | */
47 | public struct TabBar<TabItem: Tabbable, Content: View>: View {
| `- note: add @available attribute to enclosing generic struct
48 |
49 | private let selectedItem: TabBarSelection<TabItem>
:
98 | }
99 |
100 | public var body: some View {
| `- note: add @available attribute to enclosing property
101 | ZStack {
102 | self.content
103 | .frame(maxWidth: .infinity, maxHeight: .infinity)
| |- error: 'frame(minWidth:idealWidth:maxWidth:minHeight:idealHeight:maxHeight:alignment:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
104 | .environmentObject(self.selectedItem)
105 |
/Users/admin/builder/spi-builder-workspace/Sources/TabBar/View/TabBar.swift:104:18: error: 'environmentObject' is only available in macOS 10.15 or newer
45 | ```
46 | */
47 | public struct TabBar<TabItem: Tabbable, Content: View>: View {
| `- note: add @available attribute to enclosing generic struct
48 |
49 | private let selectedItem: TabBarSelection<TabItem>
:
98 | }
99 |
100 | public var body: some View {
| `- note: add @available attribute to enclosing property
101 | ZStack {
102 | self.content
103 | .frame(maxWidth: .infinity, maxHeight: .infinity)
104 | .environmentObject(self.selectedItem)
| |- error: 'environmentObject' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
105 |
106 | GeometryReader { geometry in
/Users/admin/builder/spi-builder-workspace/Sources/TabBar/View/TabBar.swift:106:13: error: 'GeometryReader' is only available in macOS 10.15 or newer
45 | ```
46 | */
47 | public struct TabBar<TabItem: Tabbable, Content: View>: View {
| `- note: add @available attribute to enclosing generic struct
48 |
49 | private let selectedItem: TabBarSelection<TabItem>
:
98 | }
99 |
100 | public var body: some View {
| `- note: add @available attribute to enclosing property
101 | ZStack {
102 | self.content
:
104 | .environmentObject(self.selectedItem)
105 |
106 | GeometryReader { geometry in
| |- error: 'GeometryReader' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
107 | VStack {
108 | Spacer()
/Users/admin/builder/spi-builder-workspace/Sources/TabBar/View/TabBar.swift:107:17: error: 'VStack' is only available in macOS 10.15 or newer
45 | ```
46 | */
47 | public struct TabBar<TabItem: Tabbable, Content: View>: View {
| `- note: add @available attribute to enclosing generic struct
48 |
49 | private let selectedItem: TabBarSelection<TabItem>
:
98 | }
99 |
100 | public var body: some View {
| `- note: add @available attribute to enclosing property
101 | ZStack {
102 | self.content
:
105 |
106 | GeometryReader { geometry in
107 | VStack {
| |- error: 'VStack' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
108 | Spacer()
109 |
/Users/admin/builder/spi-builder-workspace/Sources/TabBar/View/TabBar.swift:108:21: warning: conformance of 'Spacer' to 'View' is only available in macOS 10.15 or newer; this is an error in the Swift 6 language mode
45 | ```
46 | */
47 | public struct TabBar<TabItem: Tabbable, Content: View>: View {
| `- note: add @available attribute to enclosing generic struct
48 |
49 | private let selectedItem: TabBarSelection<TabItem>
:
98 | }
99 |
100 | public var body: some View {
| `- note: add @available attribute to enclosing property
101 | ZStack {
102 | self.content
:
106 | GeometryReader { geometry in
107 | VStack {
108 | Spacer()
| |- warning: conformance of 'Spacer' to 'View' is only available in macOS 10.15 or newer; this is an error in the Swift 6 language mode
| `- note: add 'if #available' version check
109 |
110 | self.tabBarStyle.tabBar(with: geometry) {
/Users/admin/builder/spi-builder-workspace/Sources/TabBar/View/TabBar.swift:108:21: error: 'Spacer' is only available in macOS 10.15 or newer
45 | ```
46 | */
47 | public struct TabBar<TabItem: Tabbable, Content: View>: View {
| `- note: add @available attribute to enclosing generic struct
48 |
49 | private let selectedItem: TabBarSelection<TabItem>
:
98 | }
99 |
100 | public var body: some View {
| `- note: add @available attribute to enclosing property
101 | ZStack {
102 | self.content
:
106 | GeometryReader { geometry in
107 | VStack {
108 | Spacer()
| |- error: 'Spacer' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
109 |
110 | self.tabBarStyle.tabBar(with: geometry) {
/Users/admin/builder/spi-builder-workspace/Sources/TabBar/View/TabBar.swift:107:24: warning: conformance of 'Spacer' to 'View' is only available in macOS 10.15 or newer; this is an error in the Swift 6 language mode
45 | ```
46 | */
47 | public struct TabBar<TabItem: Tabbable, Content: View>: View {
| `- note: add @available attribute to enclosing generic struct
48 |
49 | private let selectedItem: TabBarSelection<TabItem>
:
98 | }
99 |
100 | public var body: some View {
| `- note: add @available attribute to enclosing property
101 | ZStack {
102 | self.content
:
105 |
106 | GeometryReader { geometry in
107 | VStack {
| |- warning: conformance of 'Spacer' to 'View' is only available in macOS 10.15 or newer; this is an error in the Swift 6 language mode
| `- note: add 'if #available' version check
108 | Spacer()
109 |
/Users/admin/builder/spi-builder-workspace/Sources/TabBar/View/TabBar.swift:114:18: error: 'edgesIgnoringSafeArea' is only available in macOS 10.15 or newer
45 | ```
46 | */
47 | public struct TabBar<TabItem: Tabbable, Content: View>: View {
| `- note: add @available attribute to enclosing generic struct
48 |
49 | private let selectedItem: TabBarSelection<TabItem>
:
98 | }
99 |
100 | public var body: some View {
| `- note: add @available attribute to enclosing property
101 | ZStack {
102 | self.content
:
112 | }
113 | }
114 | .edgesIgnoringSafeArea(.bottom)
| |- error: 'edgesIgnoringSafeArea' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
115 | .visibility(self.visibility)
116 | }
/Users/admin/builder/spi-builder-workspace/Sources/TabBar/View/TabBar.swift:118:10: error: 'onPreferenceChange(_:perform:)' is only available in macOS 10.15 or newer
45 | ```
46 | */
47 | public struct TabBar<TabItem: Tabbable, Content: View>: View {
| `- note: add @available attribute to enclosing generic struct
48 |
49 | private let selectedItem: TabBarSelection<TabItem>
:
98 | }
99 |
100 | public var body: some View {
| `- note: add @available attribute to enclosing property
101 | ZStack {
102 | self.content
:
116 | }
117 | }
118 | .onPreferenceChange(TabBarPreferenceKey.self) { value in
| |- error: 'onPreferenceChange(_:perform:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
119 | self.items = value
120 | }
/Users/admin/builder/spi-builder-workspace/Sources/TabBar/View/TabBar.swift:119:13: error: setter for 'items' is only available in macOS 10.15 or newer
45 | ```
46 | */
47 | public struct TabBar<TabItem: Tabbable, Content: View>: View {
| `- note: add @available attribute to enclosing generic struct
48 |
49 | private let selectedItem: TabBarSelection<TabItem>
:
98 | }
99 |
100 | public var body: some View {
| `- note: add @available attribute to enclosing property
101 | ZStack {
102 | self.content
:
117 | }
118 | .onPreferenceChange(TabBarPreferenceKey.self) { value in
119 | self.items = value
| |- error: setter for 'items' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
120 | }
121 | }
BUILD FAILURE 6.0 macosSpm