Build Information
Failed to build SlidingTabView, reference 1.0.2 (b0f066), with Swift 6.3 for macOS (SPM) on 20 Apr 2026 16:28:19 UTC.
Build Command
env DEVELOPER_DIR=/Applications/Xcode-26.4.0.app xcrun swift build --arch arm64Build Log
========================================
RunAll
========================================
Builder version: 4.70.0
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/quynhnguyen/slidingtabview.git
Reference: 1.0.2
Initialized empty Git repository in /Users/admin/builder/spi-builder-workspace/.git/
From https://github.com/quynhnguyen/slidingtabview
* tag 1.0.2 -> FETCH_HEAD
HEAD is now at b0f0662 beta 5 compatibility fixes
Cloned https://github.com/quynhnguyen/slidingtabview.git
Revision (git rev-parse @):
b0f0662977418824d50546b2850a523dcd793bb0
SUCCESS checkout https://github.com/quynhnguyen/slidingtabview.git at 1.0.2
========================================
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",
"traits": [
"default"
],
"dependencies": [
{
"identity": "slidingtabview",
"name": "SlidingTabView",
"url": "https://github.com/quynhnguyen/slidingtabview.git",
"version": "unspecified",
"path": "/Users/admin/builder/spi-builder-workspace/.resolve-product-dependencies/.build/checkouts/slidingtabview",
"traits": [
"default"
],
"dependencies": [
]
}
]
}
Fetching https://github.com/quynhnguyen/slidingtabview.git
[1/146] Fetching slidingtabview
Fetched https://github.com/quynhnguyen/slidingtabview.git from cache (0.70s)
Creating working copy for https://github.com/quynhnguyen/slidingtabview.git
Working copy of https://github.com/quynhnguyen/slidingtabview.git resolved at 1.0.2 (b0f0662)
warning: '.resolve-product-dependencies': dependency 'slidingtabview' is not used by any target
Found 0 product dependencies
========================================
Build
========================================
Selected platform: macosSpm
Swift version: 6.3
Building package at path: $PWD
https://github.com/quynhnguyen/slidingtabview.git
Running build ...
env DEVELOPER_DIR=/Applications/Xcode-26.4.0.app xcrun swift build --arch arm64
Building for debugging...
[0/2] Write sources
[1/2] Write swift-version--6988338F2F200930.txt
error: emit-module command failed with exit code 1 (use -v to see invocation)
[3/4] Emitting module SlidingTabView
/Users/admin/builder/spi-builder-workspace/Sources/SlidingTabView/SlidingTabView.swift:35:13: error: setter for 'selection' is only available in macOS 10.15 or newer
26 |
27 | @available(iOS 13.0, *)
28 | public struct SlidingTabView : View {
| `- note: add '@available' attribute to enclosing struct
29 |
30 | // MARK: Internal State
:
33 | @State private var selectionState: Int = 0 {
34 | didSet {
35 | selection = selectionState
| |- error: setter for 'selection' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
36 | }
37 | }
/Users/admin/builder/spi-builder-workspace/Sources/SlidingTabView/SlidingTabView.swift:33:6: error: 'State' is only available in macOS 10.15 or newer
26 |
27 | @available(iOS 13.0, *)
28 | public struct SlidingTabView : View {
| `- note: add '@available' attribute to enclosing struct
29 |
30 | // MARK: Internal State
31 |
32 | /// Internal state to keep track of the selection index
33 | @State private var selectionState: Int = 0 {
| `- error: 'State' is only available in macOS 10.15 or newer
34 | didSet {
35 | selection = selectionState
/Users/admin/builder/spi-builder-workspace/Sources/SlidingTabView/SlidingTabView.swift:42:6: error: 'Binding' is only available in macOS 10.15 or newer
26 |
27 | @available(iOS 13.0, *)
28 | public struct SlidingTabView : View {
| `- note: add '@available' attribute to enclosing struct
29 |
30 | // MARK: Internal State
:
40 |
41 | /// Binding the selection index which will re-render the consuming view
42 | @Binding var selection: Int
| `- error: 'Binding' is only available in macOS 10.15 or newer
43 |
44 | /// The title of the tabs
/Users/admin/builder/spi-builder-workspace/Sources/SlidingTabView/SlidingTabView.swift:50:15: error: 'Font' is only available in macOS 10.15 or newer
26 |
27 | @available(iOS 13.0, *)
28 | public struct SlidingTabView : View {
| `- note: add '@available' attribute to enclosing struct
29 |
30 | // MARK: Internal State
:
48 |
49 | /// The font of the tab title
50 | let font: Font
| `- error: 'Font' is only available in macOS 10.15 or newer
51 |
52 | /// The selection bar sliding animation type
/Users/admin/builder/spi-builder-workspace/Sources/SlidingTabView/SlidingTabView.swift:53:20: error: 'Animation' is only available in macOS 10.15 or newer
26 |
27 | @available(iOS 13.0, *)
28 | public struct SlidingTabView : View {
| `- note: add '@available' attribute to enclosing struct
29 |
30 | // MARK: Internal State
:
51 |
52 | /// The selection bar sliding animation type
53 | let animation: Animation
| `- error: 'Animation' is only available in macOS 10.15 or newer
54 |
55 | /// The accent color when the tab is selected
/Users/admin/builder/spi-builder-workspace/Sources/SlidingTabView/SlidingTabView.swift:56:28: error: 'Color' is only available in macOS 10.15 or newer
26 |
27 | @available(iOS 13.0, *)
28 | public struct SlidingTabView : View {
| `- note: add '@available' attribute to enclosing struct
29 |
30 | // MARK: Internal State
:
54 |
55 | /// The accent color when the tab is selected
56 | let activeAccentColor: Color
| `- error: 'Color' is only available in macOS 10.15 or newer
57 |
58 | /// The accent color when the tab is not selected
/Users/admin/builder/spi-builder-workspace/Sources/SlidingTabView/SlidingTabView.swift:59:30: error: 'Color' is only available in macOS 10.15 or newer
26 |
27 | @available(iOS 13.0, *)
28 | public struct SlidingTabView : View {
| `- note: add '@available' attribute to enclosing struct
29 |
30 | // MARK: Internal State
:
57 |
58 | /// The accent color when the tab is not selected
59 | let inactiveAccentColor: Color
| `- error: 'Color' is only available in macOS 10.15 or newer
60 |
61 | /// The color of the selection bar
/Users/admin/builder/spi-builder-workspace/Sources/SlidingTabView/SlidingTabView.swift:62:28: error: 'Color' is only available in macOS 10.15 or newer
26 |
27 | @available(iOS 13.0, *)
28 | public struct SlidingTabView : View {
| `- note: add '@available' attribute to enclosing struct
29 |
30 | // MARK: Internal State
:
60 |
61 | /// The color of the selection bar
62 | let selectionBarColor: Color
| `- error: 'Color' is only available in macOS 10.15 or newer
63 |
64 | /// The tab color when the tab is not selected
/Users/admin/builder/spi-builder-workspace/Sources/SlidingTabView/SlidingTabView.swift:65:27: error: 'Color' is only available in macOS 10.15 or newer
26 |
27 | @available(iOS 13.0, *)
28 | public struct SlidingTabView : View {
| `- note: add '@available' attribute to enclosing struct
29 |
30 | // MARK: Internal State
:
63 |
64 | /// The tab color when the tab is not selected
65 | let inactiveTabColor: Color
| `- error: 'Color' is only available in macOS 10.15 or newer
66 |
67 | /// The tab color when the tab is selected
/Users/admin/builder/spi-builder-workspace/Sources/SlidingTabView/SlidingTabView.swift:68:25: error: 'Color' is only available in macOS 10.15 or newer
26 |
27 | @available(iOS 13.0, *)
28 | public struct SlidingTabView : View {
| `- note: add '@available' attribute to enclosing struct
29 |
30 | // MARK: Internal State
:
66 |
67 | /// The tab color when the tab is selected
68 | let activeTabColor: Color
| `- error: 'Color' is only available in macOS 10.15 or newer
69 |
70 | /// The height of the selection bar
/Users/admin/builder/spi-builder-workspace/Sources/SlidingTabView/SlidingTabView.swift:74:38: error: 'Color' is only available in macOS 10.15 or newer
26 |
27 | @available(iOS 13.0, *)
28 | public struct SlidingTabView : View {
| `- note: add '@available' attribute to enclosing struct
29 |
30 | // MARK: Internal State
:
72 |
73 | /// The selection bar background color
74 | let selectionBarBackgroundColor: Color
| `- error: 'Color' is only available in macOS 10.15 or newer
75 |
76 | /// The height of the selection bar background
/Users/admin/builder/spi-builder-workspace/Sources/SlidingTabView/SlidingTabView.swift:81:28: error: 'Binding' is only available in macOS 10.15 or newer
26 |
27 | @available(iOS 13.0, *)
28 | public struct SlidingTabView : View {
| `- note: add '@available' attribute to enclosing struct
29 |
30 | // MARK: Internal State
:
79 | // MARK: init
80 |
81 | public init(selection: Binding<Int>,
| | `- error: 'Binding' is only available in macOS 10.15 or newer
| `- note: add '@available' attribute to enclosing initializer
82 | tabs: [String],
83 | font: Font = .body,
/Users/admin/builder/spi-builder-workspace/Sources/SlidingTabView/SlidingTabView.swift:83:23: error: 'Font' is only available in macOS 10.15 or newer
26 |
27 | @available(iOS 13.0, *)
28 | public struct SlidingTabView : View {
| `- note: add '@available' attribute to enclosing struct
29 |
30 | // MARK: Internal State
:
79 | // MARK: init
80 |
81 | public init(selection: Binding<Int>,
| `- note: add '@available' attribute to enclosing initializer
82 | tabs: [String],
83 | font: Font = .body,
| `- error: 'Font' is only available in macOS 10.15 or newer
84 | animation: Animation = .spring(),
85 | activeAccentColor: Color = .blue,
/Users/admin/builder/spi-builder-workspace/Sources/SlidingTabView/SlidingTabView.swift:84:28: error: 'Animation' is only available in macOS 10.15 or newer
26 |
27 | @available(iOS 13.0, *)
28 | public struct SlidingTabView : View {
| `- note: add '@available' attribute to enclosing struct
29 |
30 | // MARK: Internal State
:
79 | // MARK: init
80 |
81 | public init(selection: Binding<Int>,
| `- note: add '@available' attribute to enclosing initializer
82 | tabs: [String],
83 | font: Font = .body,
84 | animation: Animation = .spring(),
| `- error: 'Animation' is only available in macOS 10.15 or newer
85 | activeAccentColor: Color = .blue,
86 | inactiveAccentColor: Color = Color.black.opacity(0.4),
/Users/admin/builder/spi-builder-workspace/Sources/SlidingTabView/SlidingTabView.swift:85:36: error: 'Color' is only available in macOS 10.15 or newer
26 |
27 | @available(iOS 13.0, *)
28 | public struct SlidingTabView : View {
| `- note: add '@available' attribute to enclosing struct
29 |
30 | // MARK: Internal State
:
79 | // MARK: init
80 |
81 | public init(selection: Binding<Int>,
| `- note: add '@available' attribute to enclosing initializer
82 | tabs: [String],
83 | font: Font = .body,
84 | animation: Animation = .spring(),
85 | activeAccentColor: Color = .blue,
| `- error: 'Color' is only available in macOS 10.15 or newer
86 | inactiveAccentColor: Color = Color.black.opacity(0.4),
87 | selectionBarColor: Color = .blue,
/Users/admin/builder/spi-builder-workspace/Sources/SlidingTabView/SlidingTabView.swift:86:38: error: 'Color' is only available in macOS 10.15 or newer
26 |
27 | @available(iOS 13.0, *)
28 | public struct SlidingTabView : View {
| `- note: add '@available' attribute to enclosing struct
29 |
30 | // MARK: Internal State
:
79 | // MARK: init
80 |
81 | public init(selection: Binding<Int>,
| `- note: add '@available' attribute to enclosing initializer
82 | tabs: [String],
83 | font: Font = .body,
84 | animation: Animation = .spring(),
85 | activeAccentColor: Color = .blue,
86 | inactiveAccentColor: Color = Color.black.opacity(0.4),
| `- error: 'Color' is only available in macOS 10.15 or newer
87 | selectionBarColor: Color = .blue,
88 | inactiveTabColor: Color = .clear,
/Users/admin/builder/spi-builder-workspace/Sources/SlidingTabView/SlidingTabView.swift:87:36: error: 'Color' is only available in macOS 10.15 or newer
26 |
27 | @available(iOS 13.0, *)
28 | public struct SlidingTabView : View {
| `- note: add '@available' attribute to enclosing struct
29 |
30 | // MARK: Internal State
:
79 | // MARK: init
80 |
81 | public init(selection: Binding<Int>,
| `- note: add '@available' attribute to enclosing initializer
82 | tabs: [String],
83 | font: Font = .body,
:
85 | activeAccentColor: Color = .blue,
86 | inactiveAccentColor: Color = Color.black.opacity(0.4),
87 | selectionBarColor: Color = .blue,
| `- error: 'Color' is only available in macOS 10.15 or newer
88 | inactiveTabColor: Color = .clear,
89 | activeTabColor: Color = .clear,
/Users/admin/builder/spi-builder-workspace/Sources/SlidingTabView/SlidingTabView.swift:88:35: error: 'Color' is only available in macOS 10.15 or newer
26 |
27 | @available(iOS 13.0, *)
28 | public struct SlidingTabView : View {
| `- note: add '@available' attribute to enclosing struct
29 |
30 | // MARK: Internal State
:
79 | // MARK: init
80 |
81 | public init(selection: Binding<Int>,
| `- note: add '@available' attribute to enclosing initializer
82 | tabs: [String],
83 | font: Font = .body,
:
86 | inactiveAccentColor: Color = Color.black.opacity(0.4),
87 | selectionBarColor: Color = .blue,
88 | inactiveTabColor: Color = .clear,
| `- error: 'Color' is only available in macOS 10.15 or newer
89 | activeTabColor: Color = .clear,
90 | selectionBarHeight: CGFloat = 2,
/Users/admin/builder/spi-builder-workspace/Sources/SlidingTabView/SlidingTabView.swift:89:33: error: 'Color' is only available in macOS 10.15 or newer
26 |
27 | @available(iOS 13.0, *)
28 | public struct SlidingTabView : View {
| `- note: add '@available' attribute to enclosing struct
29 |
30 | // MARK: Internal State
:
79 | // MARK: init
80 |
81 | public init(selection: Binding<Int>,
| `- note: add '@available' attribute to enclosing initializer
82 | tabs: [String],
83 | font: Font = .body,
:
87 | selectionBarColor: Color = .blue,
88 | inactiveTabColor: Color = .clear,
89 | activeTabColor: Color = .clear,
| `- error: 'Color' is only available in macOS 10.15 or newer
90 | selectionBarHeight: CGFloat = 2,
91 | selectionBarBackgroundColor: Color = Color.gray.opacity(0.2),
/Users/admin/builder/spi-builder-workspace/Sources/SlidingTabView/SlidingTabView.swift:91:46: error: 'Color' is only available in macOS 10.15 or newer
26 |
27 | @available(iOS 13.0, *)
28 | public struct SlidingTabView : View {
| `- note: add '@available' attribute to enclosing struct
29 |
30 | // MARK: Internal State
:
79 | // MARK: init
80 |
81 | public init(selection: Binding<Int>,
| `- note: add '@available' attribute to enclosing initializer
82 | tabs: [String],
83 | font: Font = .body,
:
89 | activeTabColor: Color = .clear,
90 | selectionBarHeight: CGFloat = 2,
91 | selectionBarBackgroundColor: Color = Color.gray.opacity(0.2),
| `- error: 'Color' is only available in macOS 10.15 or newer
92 | selectionBarBackgroundHeight: CGFloat = 1) {
93 | self._selection = selection
/Users/admin/builder/spi-builder-workspace/Sources/SlidingTabView/SlidingTabView.swift:83:31: error: 'body' is only available in macOS 10.15 or newer
26 |
27 | @available(iOS 13.0, *)
28 | public struct SlidingTabView : View {
| `- note: add '@available' attribute to enclosing struct
29 |
30 | // MARK: Internal State
:
79 | // MARK: init
80 |
81 | public init(selection: Binding<Int>,
| `- note: add '@available' attribute to enclosing initializer
82 | tabs: [String],
83 | font: Font = .body,
| `- error: 'body' is only available in macOS 10.15 or newer
84 | animation: Animation = .spring(),
85 | activeAccentColor: Color = .blue,
/Users/admin/builder/spi-builder-workspace/Sources/SlidingTabView/SlidingTabView.swift:84:41: error: 'spring(duration:bounce:blendDuration:)' is only available in macOS 10.15 or newer
26 |
27 | @available(iOS 13.0, *)
28 | public struct SlidingTabView : View {
| `- note: add '@available' attribute to enclosing struct
29 |
30 | // MARK: Internal State
:
79 | // MARK: init
80 |
81 | public init(selection: Binding<Int>,
| `- note: add '@available' attribute to enclosing initializer
82 | tabs: [String],
83 | font: Font = .body,
84 | animation: Animation = .spring(),
| `- error: 'spring(duration:bounce:blendDuration:)' is only available in macOS 10.15 or newer
85 | activeAccentColor: Color = .blue,
86 | inactiveAccentColor: Color = Color.black.opacity(0.4),
/Users/admin/builder/spi-builder-workspace/Sources/SlidingTabView/SlidingTabView.swift:85:45: error: 'blue' is only available in macOS 10.15 or newer
26 |
27 | @available(iOS 13.0, *)
28 | public struct SlidingTabView : View {
| `- note: add '@available' attribute to enclosing struct
29 |
30 | // MARK: Internal State
:
79 | // MARK: init
80 |
81 | public init(selection: Binding<Int>,
| `- note: add '@available' attribute to enclosing initializer
82 | tabs: [String],
83 | font: Font = .body,
84 | animation: Animation = .spring(),
85 | activeAccentColor: Color = .blue,
| `- error: 'blue' is only available in macOS 10.15 or newer
86 | inactiveAccentColor: Color = Color.black.opacity(0.4),
87 | selectionBarColor: Color = .blue,
/Users/admin/builder/spi-builder-workspace/Sources/SlidingTabView/SlidingTabView.swift:86:46: error: 'Color' is only available in macOS 10.15 or newer
26 |
27 | @available(iOS 13.0, *)
28 | public struct SlidingTabView : View {
| `- note: add '@available' attribute to enclosing struct
29 |
30 | // MARK: Internal State
:
79 | // MARK: init
80 |
81 | public init(selection: Binding<Int>,
| `- note: add '@available' attribute to enclosing initializer
82 | tabs: [String],
83 | font: Font = .body,
84 | animation: Animation = .spring(),
85 | activeAccentColor: Color = .blue,
86 | inactiveAccentColor: Color = Color.black.opacity(0.4),
| `- error: 'Color' is only available in macOS 10.15 or newer
87 | selectionBarColor: Color = .blue,
88 | inactiveTabColor: Color = .clear,
/Users/admin/builder/spi-builder-workspace/Sources/SlidingTabView/SlidingTabView.swift:86:52: error: 'black' is only available in macOS 10.15 or newer
26 |
27 | @available(iOS 13.0, *)
28 | public struct SlidingTabView : View {
| `- note: add '@available' attribute to enclosing struct
29 |
30 | // MARK: Internal State
:
79 | // MARK: init
80 |
81 | public init(selection: Binding<Int>,
| `- note: add '@available' attribute to enclosing initializer
82 | tabs: [String],
83 | font: Font = .body,
84 | animation: Animation = .spring(),
85 | activeAccentColor: Color = .blue,
86 | inactiveAccentColor: Color = Color.black.opacity(0.4),
| `- error: 'black' is only available in macOS 10.15 or newer
87 | selectionBarColor: Color = .blue,
88 | inactiveTabColor: Color = .clear,
/Users/admin/builder/spi-builder-workspace/Sources/SlidingTabView/SlidingTabView.swift:86:58: error: 'opacity' is only available in macOS 10.15 or newer
26 |
27 | @available(iOS 13.0, *)
28 | public struct SlidingTabView : View {
| `- note: add '@available' attribute to enclosing struct
29 |
30 | // MARK: Internal State
:
79 | // MARK: init
80 |
81 | public init(selection: Binding<Int>,
| `- note: add '@available' attribute to enclosing initializer
82 | tabs: [String],
83 | font: Font = .body,
84 | animation: Animation = .spring(),
85 | activeAccentColor: Color = .blue,
86 | inactiveAccentColor: Color = Color.black.opacity(0.4),
| `- error: 'opacity' is only available in macOS 10.15 or newer
87 | selectionBarColor: Color = .blue,
88 | inactiveTabColor: Color = .clear,
/Users/admin/builder/spi-builder-workspace/Sources/SlidingTabView/SlidingTabView.swift:87:45: error: 'blue' is only available in macOS 10.15 or newer
26 |
27 | @available(iOS 13.0, *)
28 | public struct SlidingTabView : View {
| `- note: add '@available' attribute to enclosing struct
29 |
30 | // MARK: Internal State
:
79 | // MARK: init
80 |
81 | public init(selection: Binding<Int>,
| `- note: add '@available' attribute to enclosing initializer
82 | tabs: [String],
83 | font: Font = .body,
:
85 | activeAccentColor: Color = .blue,
86 | inactiveAccentColor: Color = Color.black.opacity(0.4),
87 | selectionBarColor: Color = .blue,
| `- error: 'blue' is only available in macOS 10.15 or newer
88 | inactiveTabColor: Color = .clear,
89 | activeTabColor: Color = .clear,
/Users/admin/builder/spi-builder-workspace/Sources/SlidingTabView/SlidingTabView.swift:88:44: error: 'clear' is only available in macOS 10.15 or newer
26 |
27 | @available(iOS 13.0, *)
28 | public struct SlidingTabView : View {
| `- note: add '@available' attribute to enclosing struct
29 |
30 | // MARK: Internal State
:
79 | // MARK: init
80 |
81 | public init(selection: Binding<Int>,
| `- note: add '@available' attribute to enclosing initializer
82 | tabs: [String],
83 | font: Font = .body,
:
86 | inactiveAccentColor: Color = Color.black.opacity(0.4),
87 | selectionBarColor: Color = .blue,
88 | inactiveTabColor: Color = .clear,
| `- error: 'clear' is only available in macOS 10.15 or newer
89 | activeTabColor: Color = .clear,
90 | selectionBarHeight: CGFloat = 2,
/Users/admin/builder/spi-builder-workspace/Sources/SlidingTabView/SlidingTabView.swift:89:42: error: 'clear' is only available in macOS 10.15 or newer
26 |
27 | @available(iOS 13.0, *)
28 | public struct SlidingTabView : View {
| `- note: add '@available' attribute to enclosing struct
29 |
30 | // MARK: Internal State
:
79 | // MARK: init
80 |
81 | public init(selection: Binding<Int>,
| `- note: add '@available' attribute to enclosing initializer
82 | tabs: [String],
83 | font: Font = .body,
:
87 | selectionBarColor: Color = .blue,
88 | inactiveTabColor: Color = .clear,
89 | activeTabColor: Color = .clear,
| `- error: 'clear' is only available in macOS 10.15 or newer
90 | selectionBarHeight: CGFloat = 2,
91 | selectionBarBackgroundColor: Color = Color.gray.opacity(0.2),
/Users/admin/builder/spi-builder-workspace/Sources/SlidingTabView/SlidingTabView.swift:91:54: error: 'Color' is only available in macOS 10.15 or newer
26 |
27 | @available(iOS 13.0, *)
28 | public struct SlidingTabView : View {
| `- note: add '@available' attribute to enclosing struct
29 |
30 | // MARK: Internal State
:
79 | // MARK: init
80 |
81 | public init(selection: Binding<Int>,
| `- note: add '@available' attribute to enclosing initializer
82 | tabs: [String],
83 | font: Font = .body,
:
89 | activeTabColor: Color = .clear,
90 | selectionBarHeight: CGFloat = 2,
91 | selectionBarBackgroundColor: Color = Color.gray.opacity(0.2),
| `- error: 'Color' is only available in macOS 10.15 or newer
92 | selectionBarBackgroundHeight: CGFloat = 1) {
93 | self._selection = selection
/Users/admin/builder/spi-builder-workspace/Sources/SlidingTabView/SlidingTabView.swift:91:60: error: 'gray' is only available in macOS 10.15 or newer
26 |
27 | @available(iOS 13.0, *)
28 | public struct SlidingTabView : View {
| `- note: add '@available' attribute to enclosing struct
29 |
30 | // MARK: Internal State
:
79 | // MARK: init
80 |
81 | public init(selection: Binding<Int>,
| `- note: add '@available' attribute to enclosing initializer
82 | tabs: [String],
83 | font: Font = .body,
:
89 | activeTabColor: Color = .clear,
90 | selectionBarHeight: CGFloat = 2,
91 | selectionBarBackgroundColor: Color = Color.gray.opacity(0.2),
| `- error: 'gray' is only available in macOS 10.15 or newer
92 | selectionBarBackgroundHeight: CGFloat = 1) {
93 | self._selection = selection
/Users/admin/builder/spi-builder-workspace/Sources/SlidingTabView/SlidingTabView.swift:91:65: error: 'opacity' is only available in macOS 10.15 or newer
26 |
27 | @available(iOS 13.0, *)
28 | public struct SlidingTabView : View {
| `- note: add '@available' attribute to enclosing struct
29 |
30 | // MARK: Internal State
:
79 | // MARK: init
80 |
81 | public init(selection: Binding<Int>,
| `- note: add '@available' attribute to enclosing initializer
82 | tabs: [String],
83 | font: Font = .body,
:
89 | activeTabColor: Color = .clear,
90 | selectionBarHeight: CGFloat = 2,
91 | selectionBarBackgroundColor: Color = Color.gray.opacity(0.2),
| `- error: 'opacity' is only available in macOS 10.15 or newer
92 | selectionBarBackgroundHeight: CGFloat = 1) {
93 | self._selection = selection
/Users/admin/builder/spi-builder-workspace/Sources/SlidingTabView/SlidingTabView.swift:109:27: error: 'View' is only available in macOS 10.15 or newer
26 |
27 | @available(iOS 13.0, *)
28 | public struct SlidingTabView : View {
| `- note: add '@available' attribute to enclosing struct
29 |
30 | // MARK: Internal State
:
107 | // MARK: View Construction
108 |
109 | public var body: some View {
| | `- error: 'View' is only available in macOS 10.15 or newer
| `- note: add '@available' attribute to enclosing property
110 | assert(tabs.count > 1, "Must have at least 2 tabs")
111 |
/Users/admin/builder/spi-builder-workspace/Sources/SlidingTabView/SlidingTabView.swift:171:6: error: 'State' is only available in macOS 10.15 or newer
168 |
169 | @available(iOS 13.0, *)
170 | struct SlidingTabConsumerView : View {
| `- note: add '@available' attribute to enclosing struct
171 | @State private var selectedTabIndex = 0
| `- error: 'State' is only available in macOS 10.15 or newer
172 |
173 | var body: some View {
/Users/admin/builder/spi-builder-workspace/Sources/SlidingTabView/SlidingTabView.swift:173:20: error: 'View' is only available in macOS 10.15 or newer
168 |
169 | @available(iOS 13.0, *)
170 | struct SlidingTabConsumerView : View {
| `- note: add '@available' attribute to enclosing struct
171 | @State private var selectedTabIndex = 0
172 |
173 | var body: some View {
| | `- error: 'View' is only available in macOS 10.15 or newer
| `- note: add '@available' attribute to enclosing property
174 | VStack(alignment: .leading) {
175 | SlidingTabView(selection: self.$selectedTabIndex,
/Users/admin/builder/spi-builder-workspace/Sources/SlidingTabView/SlidingTabView.swift:190:31: error: 'View' is only available in macOS 10.15 or newer
187 |
188 | @available(iOS 13.0.0, *)
189 | struct SlidingTabView_Previews : PreviewProvider {
| `- note: add '@available' attribute to enclosing struct
190 | static var previews: some View {
| | `- error: 'View' is only available in macOS 10.15 or newer
| `- note: add '@available' attribute to enclosing static property
191 | SlidingTabConsumerView()
192 | }
[4/4] Compiling SlidingTabView SlidingTabView.swift
/Users/admin/builder/spi-builder-workspace/Sources/SlidingTabView/SlidingTabView.swift:35:13: error: setter for 'selection' is only available in macOS 10.15 or newer
26 |
27 | @available(iOS 13.0, *)
28 | public struct SlidingTabView : View {
| `- note: add '@available' attribute to enclosing struct
29 |
30 | // MARK: Internal State
:
33 | @State private var selectionState: Int = 0 {
34 | didSet {
35 | selection = selectionState
| |- error: setter for 'selection' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
36 | }
37 | }
/Users/admin/builder/spi-builder-workspace/Sources/SlidingTabView/SlidingTabView.swift:33:6: error: 'State' is only available in macOS 10.15 or newer
26 |
27 | @available(iOS 13.0, *)
28 | public struct SlidingTabView : View {
| `- note: add '@available' attribute to enclosing struct
29 |
30 | // MARK: Internal State
31 |
32 | /// Internal state to keep track of the selection index
33 | @State private var selectionState: Int = 0 {
| `- error: 'State' is only available in macOS 10.15 or newer
34 | didSet {
35 | selection = selectionState
/Users/admin/builder/spi-builder-workspace/Sources/SlidingTabView/SlidingTabView.swift:42:6: error: 'Binding' is only available in macOS 10.15 or newer
26 |
27 | @available(iOS 13.0, *)
28 | public struct SlidingTabView : View {
| `- note: add '@available' attribute to enclosing struct
29 |
30 | // MARK: Internal State
:
40 |
41 | /// Binding the selection index which will re-render the consuming view
42 | @Binding var selection: Int
| `- error: 'Binding' is only available in macOS 10.15 or newer
43 |
44 | /// The title of the tabs
/Users/admin/builder/spi-builder-workspace/Sources/SlidingTabView/SlidingTabView.swift:50:15: error: 'Font' is only available in macOS 10.15 or newer
26 |
27 | @available(iOS 13.0, *)
28 | public struct SlidingTabView : View {
| `- note: add '@available' attribute to enclosing struct
29 |
30 | // MARK: Internal State
:
48 |
49 | /// The font of the tab title
50 | let font: Font
| `- error: 'Font' is only available in macOS 10.15 or newer
51 |
52 | /// The selection bar sliding animation type
/Users/admin/builder/spi-builder-workspace/Sources/SlidingTabView/SlidingTabView.swift:53:20: error: 'Animation' is only available in macOS 10.15 or newer
26 |
27 | @available(iOS 13.0, *)
28 | public struct SlidingTabView : View {
| `- note: add '@available' attribute to enclosing struct
29 |
30 | // MARK: Internal State
:
51 |
52 | /// The selection bar sliding animation type
53 | let animation: Animation
| `- error: 'Animation' is only available in macOS 10.15 or newer
54 |
55 | /// The accent color when the tab is selected
/Users/admin/builder/spi-builder-workspace/Sources/SlidingTabView/SlidingTabView.swift:56:28: error: 'Color' is only available in macOS 10.15 or newer
26 |
27 | @available(iOS 13.0, *)
28 | public struct SlidingTabView : View {
| `- note: add '@available' attribute to enclosing struct
29 |
30 | // MARK: Internal State
:
54 |
55 | /// The accent color when the tab is selected
56 | let activeAccentColor: Color
| `- error: 'Color' is only available in macOS 10.15 or newer
57 |
58 | /// The accent color when the tab is not selected
/Users/admin/builder/spi-builder-workspace/Sources/SlidingTabView/SlidingTabView.swift:59:30: error: 'Color' is only available in macOS 10.15 or newer
26 |
27 | @available(iOS 13.0, *)
28 | public struct SlidingTabView : View {
| `- note: add '@available' attribute to enclosing struct
29 |
30 | // MARK: Internal State
:
57 |
58 | /// The accent color when the tab is not selected
59 | let inactiveAccentColor: Color
| `- error: 'Color' is only available in macOS 10.15 or newer
60 |
61 | /// The color of the selection bar
/Users/admin/builder/spi-builder-workspace/Sources/SlidingTabView/SlidingTabView.swift:62:28: error: 'Color' is only available in macOS 10.15 or newer
26 |
27 | @available(iOS 13.0, *)
28 | public struct SlidingTabView : View {
| `- note: add '@available' attribute to enclosing struct
29 |
30 | // MARK: Internal State
:
60 |
61 | /// The color of the selection bar
62 | let selectionBarColor: Color
| `- error: 'Color' is only available in macOS 10.15 or newer
63 |
64 | /// The tab color when the tab is not selected
/Users/admin/builder/spi-builder-workspace/Sources/SlidingTabView/SlidingTabView.swift:65:27: error: 'Color' is only available in macOS 10.15 or newer
26 |
27 | @available(iOS 13.0, *)
28 | public struct SlidingTabView : View {
| `- note: add '@available' attribute to enclosing struct
29 |
30 | // MARK: Internal State
:
63 |
64 | /// The tab color when the tab is not selected
65 | let inactiveTabColor: Color
| `- error: 'Color' is only available in macOS 10.15 or newer
66 |
67 | /// The tab color when the tab is selected
/Users/admin/builder/spi-builder-workspace/Sources/SlidingTabView/SlidingTabView.swift:68:25: error: 'Color' is only available in macOS 10.15 or newer
26 |
27 | @available(iOS 13.0, *)
28 | public struct SlidingTabView : View {
| `- note: add '@available' attribute to enclosing struct
29 |
30 | // MARK: Internal State
:
66 |
67 | /// The tab color when the tab is selected
68 | let activeTabColor: Color
| `- error: 'Color' is only available in macOS 10.15 or newer
69 |
70 | /// The height of the selection bar
/Users/admin/builder/spi-builder-workspace/Sources/SlidingTabView/SlidingTabView.swift:74:38: error: 'Color' is only available in macOS 10.15 or newer
26 |
27 | @available(iOS 13.0, *)
28 | public struct SlidingTabView : View {
| `- note: add '@available' attribute to enclosing struct
29 |
30 | // MARK: Internal State
:
72 |
73 | /// The selection bar background color
74 | let selectionBarBackgroundColor: Color
| `- error: 'Color' is only available in macOS 10.15 or newer
75 |
76 | /// The height of the selection bar background
/Users/admin/builder/spi-builder-workspace/Sources/SlidingTabView/SlidingTabView.swift:81:28: error: 'Binding' is only available in macOS 10.15 or newer
26 |
27 | @available(iOS 13.0, *)
28 | public struct SlidingTabView : View {
| `- note: add '@available' attribute to enclosing struct
29 |
30 | // MARK: Internal State
:
79 | // MARK: init
80 |
81 | public init(selection: Binding<Int>,
| | `- error: 'Binding' is only available in macOS 10.15 or newer
| `- note: add '@available' attribute to enclosing initializer
82 | tabs: [String],
83 | font: Font = .body,
/Users/admin/builder/spi-builder-workspace/Sources/SlidingTabView/SlidingTabView.swift:83:23: error: 'Font' is only available in macOS 10.15 or newer
26 |
27 | @available(iOS 13.0, *)
28 | public struct SlidingTabView : View {
| `- note: add '@available' attribute to enclosing struct
29 |
30 | // MARK: Internal State
:
79 | // MARK: init
80 |
81 | public init(selection: Binding<Int>,
| `- note: add '@available' attribute to enclosing initializer
82 | tabs: [String],
83 | font: Font = .body,
| `- error: 'Font' is only available in macOS 10.15 or newer
84 | animation: Animation = .spring(),
85 | activeAccentColor: Color = .blue,
/Users/admin/builder/spi-builder-workspace/Sources/SlidingTabView/SlidingTabView.swift:84:28: error: 'Animation' is only available in macOS 10.15 or newer
26 |
27 | @available(iOS 13.0, *)
28 | public struct SlidingTabView : View {
| `- note: add '@available' attribute to enclosing struct
29 |
30 | // MARK: Internal State
:
79 | // MARK: init
80 |
81 | public init(selection: Binding<Int>,
| `- note: add '@available' attribute to enclosing initializer
82 | tabs: [String],
83 | font: Font = .body,
84 | animation: Animation = .spring(),
| `- error: 'Animation' is only available in macOS 10.15 or newer
85 | activeAccentColor: Color = .blue,
86 | inactiveAccentColor: Color = Color.black.opacity(0.4),
/Users/admin/builder/spi-builder-workspace/Sources/SlidingTabView/SlidingTabView.swift:85:36: error: 'Color' is only available in macOS 10.15 or newer
26 |
27 | @available(iOS 13.0, *)
28 | public struct SlidingTabView : View {
| `- note: add '@available' attribute to enclosing struct
29 |
30 | // MARK: Internal State
:
79 | // MARK: init
80 |
81 | public init(selection: Binding<Int>,
| `- note: add '@available' attribute to enclosing initializer
82 | tabs: [String],
83 | font: Font = .body,
84 | animation: Animation = .spring(),
85 | activeAccentColor: Color = .blue,
| `- error: 'Color' is only available in macOS 10.15 or newer
86 | inactiveAccentColor: Color = Color.black.opacity(0.4),
87 | selectionBarColor: Color = .blue,
/Users/admin/builder/spi-builder-workspace/Sources/SlidingTabView/SlidingTabView.swift:86:38: error: 'Color' is only available in macOS 10.15 or newer
26 |
27 | @available(iOS 13.0, *)
28 | public struct SlidingTabView : View {
| `- note: add '@available' attribute to enclosing struct
29 |
30 | // MARK: Internal State
:
79 | // MARK: init
80 |
81 | public init(selection: Binding<Int>,
| `- note: add '@available' attribute to enclosing initializer
82 | tabs: [String],
83 | font: Font = .body,
84 | animation: Animation = .spring(),
85 | activeAccentColor: Color = .blue,
86 | inactiveAccentColor: Color = Color.black.opacity(0.4),
| `- error: 'Color' is only available in macOS 10.15 or newer
87 | selectionBarColor: Color = .blue,
88 | inactiveTabColor: Color = .clear,
/Users/admin/builder/spi-builder-workspace/Sources/SlidingTabView/SlidingTabView.swift:87:36: error: 'Color' is only available in macOS 10.15 or newer
26 |
27 | @available(iOS 13.0, *)
28 | public struct SlidingTabView : View {
| `- note: add '@available' attribute to enclosing struct
29 |
30 | // MARK: Internal State
:
79 | // MARK: init
80 |
81 | public init(selection: Binding<Int>,
| `- note: add '@available' attribute to enclosing initializer
82 | tabs: [String],
83 | font: Font = .body,
:
85 | activeAccentColor: Color = .blue,
86 | inactiveAccentColor: Color = Color.black.opacity(0.4),
87 | selectionBarColor: Color = .blue,
| `- error: 'Color' is only available in macOS 10.15 or newer
88 | inactiveTabColor: Color = .clear,
89 | activeTabColor: Color = .clear,
/Users/admin/builder/spi-builder-workspace/Sources/SlidingTabView/SlidingTabView.swift:88:35: error: 'Color' is only available in macOS 10.15 or newer
26 |
27 | @available(iOS 13.0, *)
28 | public struct SlidingTabView : View {
| `- note: add '@available' attribute to enclosing struct
29 |
30 | // MARK: Internal State
:
79 | // MARK: init
80 |
81 | public init(selection: Binding<Int>,
| `- note: add '@available' attribute to enclosing initializer
82 | tabs: [String],
83 | font: Font = .body,
:
86 | inactiveAccentColor: Color = Color.black.opacity(0.4),
87 | selectionBarColor: Color = .blue,
88 | inactiveTabColor: Color = .clear,
| `- error: 'Color' is only available in macOS 10.15 or newer
89 | activeTabColor: Color = .clear,
90 | selectionBarHeight: CGFloat = 2,
/Users/admin/builder/spi-builder-workspace/Sources/SlidingTabView/SlidingTabView.swift:89:33: error: 'Color' is only available in macOS 10.15 or newer
26 |
27 | @available(iOS 13.0, *)
28 | public struct SlidingTabView : View {
| `- note: add '@available' attribute to enclosing struct
29 |
30 | // MARK: Internal State
:
79 | // MARK: init
80 |
81 | public init(selection: Binding<Int>,
| `- note: add '@available' attribute to enclosing initializer
82 | tabs: [String],
83 | font: Font = .body,
:
87 | selectionBarColor: Color = .blue,
88 | inactiveTabColor: Color = .clear,
89 | activeTabColor: Color = .clear,
| `- error: 'Color' is only available in macOS 10.15 or newer
90 | selectionBarHeight: CGFloat = 2,
91 | selectionBarBackgroundColor: Color = Color.gray.opacity(0.2),
/Users/admin/builder/spi-builder-workspace/Sources/SlidingTabView/SlidingTabView.swift:91:46: error: 'Color' is only available in macOS 10.15 or newer
26 |
27 | @available(iOS 13.0, *)
28 | public struct SlidingTabView : View {
| `- note: add '@available' attribute to enclosing struct
29 |
30 | // MARK: Internal State
:
79 | // MARK: init
80 |
81 | public init(selection: Binding<Int>,
| `- note: add '@available' attribute to enclosing initializer
82 | tabs: [String],
83 | font: Font = .body,
:
89 | activeTabColor: Color = .clear,
90 | selectionBarHeight: CGFloat = 2,
91 | selectionBarBackgroundColor: Color = Color.gray.opacity(0.2),
| `- error: 'Color' is only available in macOS 10.15 or newer
92 | selectionBarBackgroundHeight: CGFloat = 1) {
93 | self._selection = selection
/Users/admin/builder/spi-builder-workspace/Sources/SlidingTabView/SlidingTabView.swift:83:31: error: 'body' is only available in macOS 10.15 or newer
26 |
27 | @available(iOS 13.0, *)
28 | public struct SlidingTabView : View {
| `- note: add '@available' attribute to enclosing struct
29 |
30 | // MARK: Internal State
:
79 | // MARK: init
80 |
81 | public init(selection: Binding<Int>,
| `- note: add '@available' attribute to enclosing initializer
82 | tabs: [String],
83 | font: Font = .body,
| `- error: 'body' is only available in macOS 10.15 or newer
84 | animation: Animation = .spring(),
85 | activeAccentColor: Color = .blue,
/Users/admin/builder/spi-builder-workspace/Sources/SlidingTabView/SlidingTabView.swift:84:41: error: 'spring(duration:bounce:blendDuration:)' is only available in macOS 10.15 or newer
26 |
27 | @available(iOS 13.0, *)
28 | public struct SlidingTabView : View {
| `- note: add '@available' attribute to enclosing struct
29 |
30 | // MARK: Internal State
:
79 | // MARK: init
80 |
81 | public init(selection: Binding<Int>,
| `- note: add '@available' attribute to enclosing initializer
82 | tabs: [String],
83 | font: Font = .body,
84 | animation: Animation = .spring(),
| `- error: 'spring(duration:bounce:blendDuration:)' is only available in macOS 10.15 or newer
85 | activeAccentColor: Color = .blue,
86 | inactiveAccentColor: Color = Color.black.opacity(0.4),
/Users/admin/builder/spi-builder-workspace/Sources/SlidingTabView/SlidingTabView.swift:85:45: error: 'blue' is only available in macOS 10.15 or newer
26 |
27 | @available(iOS 13.0, *)
28 | public struct SlidingTabView : View {
| `- note: add '@available' attribute to enclosing struct
29 |
30 | // MARK: Internal State
:
79 | // MARK: init
80 |
81 | public init(selection: Binding<Int>,
| `- note: add '@available' attribute to enclosing initializer
82 | tabs: [String],
83 | font: Font = .body,
84 | animation: Animation = .spring(),
85 | activeAccentColor: Color = .blue,
| `- error: 'blue' is only available in macOS 10.15 or newer
86 | inactiveAccentColor: Color = Color.black.opacity(0.4),
87 | selectionBarColor: Color = .blue,
/Users/admin/builder/spi-builder-workspace/Sources/SlidingTabView/SlidingTabView.swift:86:46: error: 'Color' is only available in macOS 10.15 or newer
26 |
27 | @available(iOS 13.0, *)
28 | public struct SlidingTabView : View {
| `- note: add '@available' attribute to enclosing struct
29 |
30 | // MARK: Internal State
:
79 | // MARK: init
80 |
81 | public init(selection: Binding<Int>,
| `- note: add '@available' attribute to enclosing initializer
82 | tabs: [String],
83 | font: Font = .body,
84 | animation: Animation = .spring(),
85 | activeAccentColor: Color = .blue,
86 | inactiveAccentColor: Color = Color.black.opacity(0.4),
| `- error: 'Color' is only available in macOS 10.15 or newer
87 | selectionBarColor: Color = .blue,
88 | inactiveTabColor: Color = .clear,
/Users/admin/builder/spi-builder-workspace/Sources/SlidingTabView/SlidingTabView.swift:86:52: error: 'black' is only available in macOS 10.15 or newer
26 |
27 | @available(iOS 13.0, *)
28 | public struct SlidingTabView : View {
| `- note: add '@available' attribute to enclosing struct
29 |
30 | // MARK: Internal State
:
79 | // MARK: init
80 |
81 | public init(selection: Binding<Int>,
| `- note: add '@available' attribute to enclosing initializer
82 | tabs: [String],
83 | font: Font = .body,
84 | animation: Animation = .spring(),
85 | activeAccentColor: Color = .blue,
86 | inactiveAccentColor: Color = Color.black.opacity(0.4),
| `- error: 'black' is only available in macOS 10.15 or newer
87 | selectionBarColor: Color = .blue,
88 | inactiveTabColor: Color = .clear,
/Users/admin/builder/spi-builder-workspace/Sources/SlidingTabView/SlidingTabView.swift:86:58: error: 'opacity' is only available in macOS 10.15 or newer
26 |
27 | @available(iOS 13.0, *)
28 | public struct SlidingTabView : View {
| `- note: add '@available' attribute to enclosing struct
29 |
30 | // MARK: Internal State
:
79 | // MARK: init
80 |
81 | public init(selection: Binding<Int>,
| `- note: add '@available' attribute to enclosing initializer
82 | tabs: [String],
83 | font: Font = .body,
84 | animation: Animation = .spring(),
85 | activeAccentColor: Color = .blue,
86 | inactiveAccentColor: Color = Color.black.opacity(0.4),
| `- error: 'opacity' is only available in macOS 10.15 or newer
87 | selectionBarColor: Color = .blue,
88 | inactiveTabColor: Color = .clear,
/Users/admin/builder/spi-builder-workspace/Sources/SlidingTabView/SlidingTabView.swift:87:45: error: 'blue' is only available in macOS 10.15 or newer
26 |
27 | @available(iOS 13.0, *)
28 | public struct SlidingTabView : View {
| `- note: add '@available' attribute to enclosing struct
29 |
30 | // MARK: Internal State
:
79 | // MARK: init
80 |
81 | public init(selection: Binding<Int>,
| `- note: add '@available' attribute to enclosing initializer
82 | tabs: [String],
83 | font: Font = .body,
:
85 | activeAccentColor: Color = .blue,
86 | inactiveAccentColor: Color = Color.black.opacity(0.4),
87 | selectionBarColor: Color = .blue,
| `- error: 'blue' is only available in macOS 10.15 or newer
88 | inactiveTabColor: Color = .clear,
89 | activeTabColor: Color = .clear,
/Users/admin/builder/spi-builder-workspace/Sources/SlidingTabView/SlidingTabView.swift:88:44: error: 'clear' is only available in macOS 10.15 or newer
26 |
27 | @available(iOS 13.0, *)
28 | public struct SlidingTabView : View {
| `- note: add '@available' attribute to enclosing struct
29 |
30 | // MARK: Internal State
:
79 | // MARK: init
80 |
81 | public init(selection: Binding<Int>,
| `- note: add '@available' attribute to enclosing initializer
82 | tabs: [String],
83 | font: Font = .body,
:
86 | inactiveAccentColor: Color = Color.black.opacity(0.4),
87 | selectionBarColor: Color = .blue,
88 | inactiveTabColor: Color = .clear,
| `- error: 'clear' is only available in macOS 10.15 or newer
89 | activeTabColor: Color = .clear,
90 | selectionBarHeight: CGFloat = 2,
/Users/admin/builder/spi-builder-workspace/Sources/SlidingTabView/SlidingTabView.swift:89:42: error: 'clear' is only available in macOS 10.15 or newer
26 |
27 | @available(iOS 13.0, *)
28 | public struct SlidingTabView : View {
| `- note: add '@available' attribute to enclosing struct
29 |
30 | // MARK: Internal State
:
79 | // MARK: init
80 |
81 | public init(selection: Binding<Int>,
| `- note: add '@available' attribute to enclosing initializer
82 | tabs: [String],
83 | font: Font = .body,
:
87 | selectionBarColor: Color = .blue,
88 | inactiveTabColor: Color = .clear,
89 | activeTabColor: Color = .clear,
| `- error: 'clear' is only available in macOS 10.15 or newer
90 | selectionBarHeight: CGFloat = 2,
91 | selectionBarBackgroundColor: Color = Color.gray.opacity(0.2),
/Users/admin/builder/spi-builder-workspace/Sources/SlidingTabView/SlidingTabView.swift:91:54: error: 'Color' is only available in macOS 10.15 or newer
26 |
27 | @available(iOS 13.0, *)
28 | public struct SlidingTabView : View {
| `- note: add '@available' attribute to enclosing struct
29 |
30 | // MARK: Internal State
:
79 | // MARK: init
80 |
81 | public init(selection: Binding<Int>,
| `- note: add '@available' attribute to enclosing initializer
82 | tabs: [String],
83 | font: Font = .body,
:
89 | activeTabColor: Color = .clear,
90 | selectionBarHeight: CGFloat = 2,
91 | selectionBarBackgroundColor: Color = Color.gray.opacity(0.2),
| `- error: 'Color' is only available in macOS 10.15 or newer
92 | selectionBarBackgroundHeight: CGFloat = 1) {
93 | self._selection = selection
/Users/admin/builder/spi-builder-workspace/Sources/SlidingTabView/SlidingTabView.swift:91:60: error: 'gray' is only available in macOS 10.15 or newer
26 |
27 | @available(iOS 13.0, *)
28 | public struct SlidingTabView : View {
| `- note: add '@available' attribute to enclosing struct
29 |
30 | // MARK: Internal State
:
79 | // MARK: init
80 |
81 | public init(selection: Binding<Int>,
| `- note: add '@available' attribute to enclosing initializer
82 | tabs: [String],
83 | font: Font = .body,
:
89 | activeTabColor: Color = .clear,
90 | selectionBarHeight: CGFloat = 2,
91 | selectionBarBackgroundColor: Color = Color.gray.opacity(0.2),
| `- error: 'gray' is only available in macOS 10.15 or newer
92 | selectionBarBackgroundHeight: CGFloat = 1) {
93 | self._selection = selection
/Users/admin/builder/spi-builder-workspace/Sources/SlidingTabView/SlidingTabView.swift:91:65: error: 'opacity' is only available in macOS 10.15 or newer
26 |
27 | @available(iOS 13.0, *)
28 | public struct SlidingTabView : View {
| `- note: add '@available' attribute to enclosing struct
29 |
30 | // MARK: Internal State
:
79 | // MARK: init
80 |
81 | public init(selection: Binding<Int>,
| `- note: add '@available' attribute to enclosing initializer
82 | tabs: [String],
83 | font: Font = .body,
:
89 | activeTabColor: Color = .clear,
90 | selectionBarHeight: CGFloat = 2,
91 | selectionBarBackgroundColor: Color = Color.gray.opacity(0.2),
| `- error: 'opacity' is only available in macOS 10.15 or newer
92 | selectionBarBackgroundHeight: CGFloat = 1) {
93 | self._selection = selection
/Users/admin/builder/spi-builder-workspace/Sources/SlidingTabView/SlidingTabView.swift:109:27: error: 'View' is only available in macOS 10.15 or newer
26 |
27 | @available(iOS 13.0, *)
28 | public struct SlidingTabView : View {
| `- note: add '@available' attribute to enclosing struct
29 |
30 | // MARK: Internal State
:
107 | // MARK: View Construction
108 |
109 | public var body: some View {
| | `- error: 'View' is only available in macOS 10.15 or newer
| `- note: add '@available' attribute to enclosing property
110 | assert(tabs.count > 1, "Must have at least 2 tabs")
111 |
/Users/admin/builder/spi-builder-workspace/Sources/SlidingTabView/SlidingTabView.swift:171:6: error: 'State' is only available in macOS 10.15 or newer
168 |
169 | @available(iOS 13.0, *)
170 | struct SlidingTabConsumerView : View {
| `- note: add '@available' attribute to enclosing struct
171 | @State private var selectedTabIndex = 0
| `- error: 'State' is only available in macOS 10.15 or newer
172 |
173 | var body: some View {
/Users/admin/builder/spi-builder-workspace/Sources/SlidingTabView/SlidingTabView.swift:173:20: error: 'View' is only available in macOS 10.15 or newer
168 |
169 | @available(iOS 13.0, *)
170 | struct SlidingTabConsumerView : View {
| `- note: add '@available' attribute to enclosing struct
171 | @State private var selectedTabIndex = 0
172 |
173 | var body: some View {
| | `- error: 'View' is only available in macOS 10.15 or newer
| `- note: add '@available' attribute to enclosing property
174 | VStack(alignment: .leading) {
175 | SlidingTabView(selection: self.$selectedTabIndex,
/Users/admin/builder/spi-builder-workspace/Sources/SlidingTabView/SlidingTabView.swift:190:31: error: 'View' is only available in macOS 10.15 or newer
187 |
188 | @available(iOS 13.0.0, *)
189 | struct SlidingTabView_Previews : PreviewProvider {
| `- note: add '@available' attribute to enclosing struct
190 | static var previews: some View {
| | `- error: 'View' is only available in macOS 10.15 or newer
| `- note: add '@available' attribute to enclosing static property
191 | SlidingTabConsumerView()
192 | }
/Users/admin/builder/spi-builder-workspace/Sources/SlidingTabView/SlidingTabView.swift:112:16: error: 'VStack' is only available in macOS 10.15 or newer
26 |
27 | @available(iOS 13.0, *)
28 | public struct SlidingTabView : View {
| `- note: add '@available' attribute to enclosing struct
29 |
30 | // MARK: Internal State
:
107 | // MARK: View Construction
108 |
109 | public var body: some View {
| `- note: add '@available' attribute to enclosing property
110 | assert(tabs.count > 1, "Must have at least 2 tabs")
111 |
112 | return VStack(alignment: .leading, spacing: 0) {
| |- error: 'VStack' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
113 | HStack(spacing: 0) {
114 | ForEach(self.tabs, id:\.self) { tab in
/Users/admin/builder/spi-builder-workspace/Sources/SlidingTabView/SlidingTabView.swift:112:35: error: 'leading' is only available in macOS 10.15 or newer
26 |
27 | @available(iOS 13.0, *)
28 | public struct SlidingTabView : View {
| `- note: add '@available' attribute to enclosing struct
29 |
30 | // MARK: Internal State
:
107 | // MARK: View Construction
108 |
109 | public var body: some View {
| `- note: add '@available' attribute to enclosing property
110 | assert(tabs.count > 1, "Must have at least 2 tabs")
111 |
112 | return VStack(alignment: .leading, spacing: 0) {
| |- error: 'leading' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
113 | HStack(spacing: 0) {
114 | ForEach(self.tabs, id:\.self) { tab in
/Users/admin/builder/spi-builder-workspace/Sources/SlidingTabView/SlidingTabView.swift:112:56: warning: conformance of 'ForEach<Data, ID, Content>' to 'View' is only available in macOS 10.15 or newer; this is an error in the Swift 6 language mode
26 |
27 | @available(iOS 13.0, *)
28 | public struct SlidingTabView : View {
| `- note: add '@available' attribute to enclosing struct
29 |
30 | // MARK: Internal State
:
107 | // MARK: View Construction
108 |
109 | public var body: some View {
| `- note: add '@available' attribute to enclosing property
110 | assert(tabs.count > 1, "Must have at least 2 tabs")
111 |
112 | return VStack(alignment: .leading, spacing: 0) {
| |- warning: conformance of 'ForEach<Data, ID, Content>' to 'View' is only available in macOS 10.15 or newer; this is an error in the Swift 6 language mode
| `- note: add 'if #available' version check
113 | HStack(spacing: 0) {
114 | ForEach(self.tabs, id:\.self) { tab in
/Users/admin/builder/spi-builder-workspace/Sources/SlidingTabView/SlidingTabView.swift:112:56: warning: conformance of 'ForEach<Data, ID, Content>' to 'View' is only available in macOS 10.15 or newer; this is an error in the Swift 6 language mode
26 |
27 | @available(iOS 13.0, *)
28 | public struct SlidingTabView : View {
| `- note: add '@available' attribute to enclosing struct
29 |
30 | // MARK: Internal State
:
107 | // MARK: View Construction
108 |
109 | public var body: some View {
| `- note: add '@available' attribute to enclosing property
110 | assert(tabs.count > 1, "Must have at least 2 tabs")
111 |
112 | return VStack(alignment: .leading, spacing: 0) {
| |- warning: conformance of 'ForEach<Data, ID, Content>' to 'View' is only available in macOS 10.15 or newer; this is an error in the Swift 6 language mode
| `- note: add 'if #available' version check
113 | HStack(spacing: 0) {
114 | ForEach(self.tabs, id:\.self) { tab in
/Users/admin/builder/spi-builder-workspace/Sources/SlidingTabView/SlidingTabView.swift:112:56: warning: conformance of 'Color' to 'ShapeStyle' is only available in macOS 10.15 or newer; this is an error in the Swift 6 language mode
26 |
27 | @available(iOS 13.0, *)
28 | public struct SlidingTabView : View {
| `- note: add '@available' attribute to enclosing struct
29 |
30 | // MARK: Internal State
:
107 | // MARK: View Construction
108 |
109 | public var body: some View {
| `- note: add '@available' attribute to enclosing property
110 | assert(tabs.count > 1, "Must have at least 2 tabs")
111 |
112 | return VStack(alignment: .leading, spacing: 0) {
| |- warning: conformance of 'Color' to 'ShapeStyle' is only available in macOS 10.15 or newer; this is an error in the Swift 6 language mode
| `- note: add 'if #available' version check
113 | HStack(spacing: 0) {
114 | ForEach(self.tabs, id:\.self) { tab in
/Users/admin/builder/spi-builder-workspace/Sources/SlidingTabView/SlidingTabView.swift:112:56: warning: conformance of 'Color' to 'ShapeStyle' is only available in macOS 10.15 or newer; this is an error in the Swift 6 language mode
26 |
27 | @available(iOS 13.0, *)
28 | public struct SlidingTabView : View {
| `- note: add '@available' attribute to enclosing struct
29 |
30 | // MARK: Internal State
:
107 | // MARK: View Construction
108 |
109 | public var body: some View {
| `- note: add '@available' attribute to enclosing property
110 | assert(tabs.count > 1, "Must have at least 2 tabs")
111 |
112 | return VStack(alignment: .leading, spacing: 0) {
| |- warning: conformance of 'Color' to 'ShapeStyle' is only available in macOS 10.15 or newer; this is an error in the Swift 6 language mode
| `- note: add 'if #available' version check
113 | HStack(spacing: 0) {
114 | ForEach(self.tabs, id:\.self) { tab in
/Users/admin/builder/spi-builder-workspace/Sources/SlidingTabView/SlidingTabView.swift:113:13: warning: conformance of 'ForEach<Data, ID, Content>' to 'View' is only available in macOS 10.15 or newer; this is an error in the Swift 6 language mode
26 |
27 | @available(iOS 13.0, *)
28 | public struct SlidingTabView : View {
| `- note: add '@available' attribute to enclosing struct
29 |
30 | // MARK: Internal State
:
107 | // MARK: View Construction
108 |
109 | public var body: some View {
| `- note: add '@available' attribute to enclosing property
110 | assert(tabs.count > 1, "Must have at least 2 tabs")
111 |
112 | return VStack(alignment: .leading, spacing: 0) {
113 | HStack(spacing: 0) {
| |- warning: conformance of 'ForEach<Data, ID, Content>' to 'View' is only available in macOS 10.15 or newer; this is an error in the Swift 6 language mode
| `- note: add 'if #available' version check
114 | ForEach(self.tabs, id:\.self) { tab in
115 | Button(action: {
/Users/admin/builder/spi-builder-workspace/Sources/SlidingTabView/SlidingTabView.swift:113:13: error: 'HStack' is only available in macOS 10.15 or newer
26 |
27 | @available(iOS 13.0, *)
28 | public struct SlidingTabView : View {
| `- note: add '@available' attribute to enclosing struct
29 |
30 | // MARK: Internal State
:
107 | // MARK: View Construction
108 |
109 | public var body: some View {
| `- note: add '@available' attribute to enclosing property
110 | assert(tabs.count > 1, "Must have at least 2 tabs")
111 |
112 | return VStack(alignment: .leading, spacing: 0) {
113 | HStack(spacing: 0) {
| |- error: 'HStack' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
114 | ForEach(self.tabs, id:\.self) { tab in
115 | Button(action: {
/Users/admin/builder/spi-builder-workspace/Sources/SlidingTabView/SlidingTabView.swift:113:13: warning: conformance of 'ForEach<Data, ID, Content>' to 'View' is only available in macOS 10.15 or newer; this is an error in the Swift 6 language mode
26 |
27 | @available(iOS 13.0, *)
28 | public struct SlidingTabView : View {
| `- note: add '@available' attribute to enclosing struct
29 |
30 | // MARK: Internal State
:
107 | // MARK: View Construction
108 |
109 | public var body: some View {
| `- note: add '@available' attribute to enclosing property
110 | assert(tabs.count > 1, "Must have at least 2 tabs")
111 |
112 | return VStack(alignment: .leading, spacing: 0) {
113 | HStack(spacing: 0) {
| |- warning: conformance of 'ForEach<Data, ID, Content>' to 'View' is only available in macOS 10.15 or newer; this is an error in the Swift 6 language mode
| `- note: add 'if #available' version check
114 | ForEach(self.tabs, id:\.self) { tab in
115 | Button(action: {
/Users/admin/builder/spi-builder-workspace/Sources/SlidingTabView/SlidingTabView.swift:114:17: warning: conformance of 'ForEach<Data, ID, Content>' to 'View' is only available in macOS 10.15 or newer; this is an error in the Swift 6 language mode
26 |
27 | @available(iOS 13.0, *)
28 | public struct SlidingTabView : View {
| `- note: add '@available' attribute to enclosing struct
29 |
30 | // MARK: Internal State
:
107 | // MARK: View Construction
108 |
109 | public var body: some View {
| `- note: add '@available' attribute to enclosing property
110 | assert(tabs.count > 1, "Must have at least 2 tabs")
111 |
112 | return VStack(alignment: .leading, spacing: 0) {
113 | HStack(spacing: 0) {
114 | ForEach(self.tabs, id:\.self) { tab in
| |- warning: conformance of 'ForEach<Data, ID, Content>' to 'View' is only available in macOS 10.15 or newer; this is an error in the Swift 6 language mode
| `- note: add 'if #available' version check
115 | Button(action: {
116 | let selection = self.tabs.firstIndex(of: tab) ?? 0
/Users/admin/builder/spi-builder-workspace/Sources/SlidingTabView/SlidingTabView.swift:114:17: error: 'ForEach' is only available in macOS 10.15 or newer
26 |
27 | @available(iOS 13.0, *)
28 | public struct SlidingTabView : View {
| `- note: add '@available' attribute to enclosing struct
29 |
30 | // MARK: Internal State
:
107 | // MARK: View Construction
108 |
109 | public var body: some View {
| `- note: add '@available' attribute to enclosing property
110 | assert(tabs.count > 1, "Must have at least 2 tabs")
111 |
112 | return VStack(alignment: .leading, spacing: 0) {
113 | HStack(spacing: 0) {
114 | ForEach(self.tabs, id:\.self) { tab in
| |- error: 'ForEach' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
115 | Button(action: {
116 | let selection = self.tabs.firstIndex(of: tab) ?? 0
/Users/admin/builder/spi-builder-workspace/Sources/SlidingTabView/SlidingTabView.swift:114:17: error: 'init(_:id:content:)' is only available in macOS 10.15 or newer
26 |
27 | @available(iOS 13.0, *)
28 | public struct SlidingTabView : View {
| `- note: add '@available' attribute to enclosing struct
29 |
30 | // MARK: Internal State
:
107 | // MARK: View Construction
108 |
109 | public var body: some View {
| `- note: add '@available' attribute to enclosing property
110 | assert(tabs.count > 1, "Must have at least 2 tabs")
111 |
112 | return VStack(alignment: .leading, spacing: 0) {
113 | HStack(spacing: 0) {
114 | ForEach(self.tabs, id:\.self) { tab in
| |- error: 'init(_:id:content:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
115 | Button(action: {
116 | let selection = self.tabs.firstIndex(of: tab) ?? 0
/Users/admin/builder/spi-builder-workspace/Sources/SlidingTabView/SlidingTabView.swift:115:21: error: 'Button' is only available in macOS 10.15 or newer
26 |
27 | @available(iOS 13.0, *)
28 | public struct SlidingTabView : View {
| `- note: add '@available' attribute to enclosing struct
29 |
30 | // MARK: Internal State
:
107 | // MARK: View Construction
108 |
109 | public var body: some View {
| `- note: add '@available' attribute to enclosing property
110 | assert(tabs.count > 1, "Must have at least 2 tabs")
111 |
:
113 | HStack(spacing: 0) {
114 | ForEach(self.tabs, id:\.self) { tab in
115 | Button(action: {
| |- error: 'Button' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
116 | let selection = self.tabs.firstIndex(of: tab) ?? 0
117 | self.selectionState = selection
/Users/admin/builder/spi-builder-workspace/Sources/SlidingTabView/SlidingTabView.swift:117:25: error: setter for 'selectionState' is only available in macOS 10.15 or newer
26 |
27 | @available(iOS 13.0, *)
28 | public struct SlidingTabView : View {
| `- note: add '@available' attribute to enclosing struct
29 |
30 | // MARK: Internal State
:
107 | // MARK: View Construction
108 |
109 | public var body: some View {
| `- note: add '@available' attribute to enclosing property
110 | assert(tabs.count > 1, "Must have at least 2 tabs")
111 |
:
115 | Button(action: {
116 | let selection = self.tabs.firstIndex(of: tab) ?? 0
117 | self.selectionState = selection
| |- error: setter for 'selectionState' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
118 | }) {
119 | HStack {
/Users/admin/builder/spi-builder-workspace/Sources/SlidingTabView/SlidingTabView.swift:119:25: error: 'HStack' is only available in macOS 10.15 or newer
26 |
27 | @available(iOS 13.0, *)
28 | public struct SlidingTabView : View {
| `- note: add '@available' attribute to enclosing struct
29 |
30 | // MARK: Internal State
:
107 | // MARK: View Construction
108 |
109 | public var body: some View {
| `- note: add '@available' attribute to enclosing property
110 | assert(tabs.count > 1, "Must have at least 2 tabs")
111 |
:
117 | self.selectionState = selection
118 | }) {
119 | HStack {
| |- error: 'HStack' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
120 | Spacer()
121 | Text(tab).font(self.font)
/Users/admin/builder/spi-builder-workspace/Sources/SlidingTabView/SlidingTabView.swift:120:29: 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
26 |
27 | @available(iOS 13.0, *)
28 | public struct SlidingTabView : View {
| `- note: add '@available' attribute to enclosing struct
29 |
30 | // MARK: Internal State
:
107 | // MARK: View Construction
108 |
109 | public var body: some View {
| `- note: add '@available' attribute to enclosing property
110 | assert(tabs.count > 1, "Must have at least 2 tabs")
111 |
:
118 | }) {
119 | HStack {
120 | 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
121 | Text(tab).font(self.font)
122 | Spacer()
/Users/admin/builder/spi-builder-workspace/Sources/SlidingTabView/SlidingTabView.swift:120:29: error: 'Spacer' is only available in macOS 10.15 or newer
26 |
27 | @available(iOS 13.0, *)
28 | public struct SlidingTabView : View {
| `- note: add '@available' attribute to enclosing struct
29 |
30 | // MARK: Internal State
:
107 | // MARK: View Construction
108 |
109 | public var body: some View {
| `- note: add '@available' attribute to enclosing property
110 | assert(tabs.count > 1, "Must have at least 2 tabs")
111 |
:
118 | }) {
119 | HStack {
120 | Spacer()
| |- error: 'Spacer' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
121 | Text(tab).font(self.font)
122 | Spacer()
/Users/admin/builder/spi-builder-workspace/Sources/SlidingTabView/SlidingTabView.swift:121:29: 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
26 |
27 | @available(iOS 13.0, *)
28 | public struct SlidingTabView : View {
| `- note: add '@available' attribute to enclosing struct
29 |
30 | // MARK: Internal State
:
107 | // MARK: View Construction
108 |
109 | public var body: some View {
| `- note: add '@available' attribute to enclosing property
110 | assert(tabs.count > 1, "Must have at least 2 tabs")
111 |
:
119 | HStack {
120 | Spacer()
121 | Text(tab).font(self.font)
| |- 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
122 | Spacer()
123 | }
/Users/admin/builder/spi-builder-workspace/Sources/SlidingTabView/SlidingTabView.swift:121:29: error: 'Text' is only available in macOS 10.15 or newer
26 |
27 | @available(iOS 13.0, *)
28 | public struct SlidingTabView : View {
| `- note: add '@available' attribute to enclosing struct
29 |
30 | // MARK: Internal State
:
107 | // MARK: View Construction
108 |
109 | public var body: some View {
| `- note: add '@available' attribute to enclosing property
110 | assert(tabs.count > 1, "Must have at least 2 tabs")
111 |
:
119 | HStack {
120 | Spacer()
121 | Text(tab).font(self.font)
| |- error: 'Text' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
122 | Spacer()
123 | }
/Users/admin/builder/spi-builder-workspace/Sources/SlidingTabView/SlidingTabView.swift:121:39: error: 'font' is only available in macOS 10.15 or newer
26 |
27 | @available(iOS 13.0, *)
28 | public struct SlidingTabView : View {
| `- note: add '@available' attribute to enclosing struct
29 |
30 | // MARK: Internal State
:
107 | // MARK: View Construction
108 |
109 | public var body: some View {
| `- note: add '@available' attribute to enclosing property
110 | assert(tabs.count > 1, "Must have at least 2 tabs")
111 |
:
119 | HStack {
120 | Spacer()
121 | Text(tab).font(self.font)
| |- error: 'font' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
122 | Spacer()
123 | }
/Users/admin/builder/spi-builder-workspace/Sources/SlidingTabView/SlidingTabView.swift:122:29: 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
26 |
27 | @available(iOS 13.0, *)
28 | public struct SlidingTabView : View {
| `- note: add '@available' attribute to enclosing struct
29 |
30 | // MARK: Internal State
:
107 | // MARK: View Construction
108 |
109 | public var body: some View {
| `- note: add '@available' attribute to enclosing property
110 | assert(tabs.count > 1, "Must have at least 2 tabs")
111 |
:
120 | Spacer()
121 | Text(tab).font(self.font)
122 | 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
123 | }
124 | }
/Users/admin/builder/spi-builder-workspace/Sources/SlidingTabView/SlidingTabView.swift:122:29: error: 'Spacer' is only available in macOS 10.15 or newer
26 |
27 | @available(iOS 13.0, *)
28 | public struct SlidingTabView : View {
| `- note: add '@available' attribute to enclosing struct
29 |
30 | // MARK: Internal State
:
107 | // MARK: View Construction
108 |
109 | public var body: some View {
| `- note: add '@available' attribute to enclosing property
110 | assert(tabs.count > 1, "Must have at least 2 tabs")
111 |
:
120 | Spacer()
121 | Text(tab).font(self.font)
122 | Spacer()
| |- error: 'Spacer' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
123 | }
124 | }
/Users/admin/builder/spi-builder-workspace/Sources/SlidingTabView/SlidingTabView.swift:119:32: 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
26 |
27 | @available(iOS 13.0, *)
28 | public struct SlidingTabView : View {
| `- note: add '@available' attribute to enclosing struct
29 |
30 | // MARK: Internal State
:
107 | // MARK: View Construction
108 |
109 | public var body: some View {
| `- note: add '@available' attribute to enclosing property
110 | assert(tabs.count > 1, "Must have at least 2 tabs")
111 |
:
117 | self.selectionState = selection
118 | }) {
119 | HStack {
| |- 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
120 | Spacer()
121 | Text(tab).font(self.font)
/Users/admin/builder/spi-builder-workspace/Sources/SlidingTabView/SlidingTabView.swift:119:32: 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
26 |
27 | @available(iOS 13.0, *)
28 | public struct SlidingTabView : View {
| `- note: add '@available' attribute to enclosing struct
29 |
30 | // MARK: Internal State
:
107 | // MARK: View Construction
108 |
109 | public var body: some View {
| `- note: add '@available' attribute to enclosing property
110 | assert(tabs.count > 1, "Must have at least 2 tabs")
111 |
:
117 | self.selectionState = selection
118 | }) {
119 | HStack {
| |- 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
120 | Spacer()
121 | Text(tab).font(self.font)
/Users/admin/builder/spi-builder-workspace/Sources/SlidingTabView/SlidingTabView.swift:119:32: 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
26 |
27 | @available(iOS 13.0, *)
28 | public struct SlidingTabView : View {
| `- note: add '@available' attribute to enclosing struct
29 |
30 | // MARK: Internal State
:
107 | // MARK: View Construction
108 |
109 | public var body: some View {
| `- note: add '@available' attribute to enclosing property
110 | assert(tabs.count > 1, "Must have at least 2 tabs")
111 |
:
117 | self.selectionState = selection
118 | }) {
119 | HStack {
| |- 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
120 | Spacer()
121 | Text(tab).font(self.font)
/Users/admin/builder/spi-builder-workspace/Sources/SlidingTabView/SlidingTabView.swift:125:22: error: 'padding' is only available in macOS 10.15 or newer
26 |
27 | @available(iOS 13.0, *)
28 | public struct SlidingTabView : View {
| `- note: add '@available' attribute to enclosing struct
29 |
30 | // MARK: Internal State
:
107 | // MARK: View Construction
108 |
109 | public var body: some View {
| `- note: add '@available' attribute to enclosing property
110 | assert(tabs.count > 1, "Must have at least 2 tabs")
111 |
:
123 | }
124 | }
125 | .padding(.vertical, 16)
| |- error: 'padding' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
126 | .accentColor(
127 | self.isSelected(tabIdentifier: tab)
/Users/admin/builder/spi-builder-workspace/Sources/SlidingTabView/SlidingTabView.swift:126:26: error: 'accentColor' is only available in macOS 10.15 or newer
26 |
27 | @available(iOS 13.0, *)
28 | public struct SlidingTabView : View {
| `- note: add '@available' attribute to enclosing struct
29 |
30 | // MARK: Internal State
:
107 | // MARK: View Construction
108 |
109 | public var body: some View {
| `- note: add '@available' attribute to enclosing property
110 | assert(tabs.count > 1, "Must have at least 2 tabs")
111 |
:
124 | }
125 | .padding(.vertical, 16)
126 | .accentColor(
| |- error: 'accentColor' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
127 | self.isSelected(tabIdentifier: tab)
128 | ? self.activeAccentColor
/Users/admin/builder/spi-builder-workspace/Sources/SlidingTabView/SlidingTabView.swift:130:26: error: 'background(_:ignoresSafeAreaEdges:)' is only available in macOS 12.0 or newer
26 |
27 | @available(iOS 13.0, *)
28 | public struct SlidingTabView : View {
| `- note: add '@available' attribute to enclosing struct
29 |
30 | // MARK: Internal State
:
107 | // MARK: View Construction
108 |
109 | public var body: some View {
| `- note: add '@available' attribute to enclosing property
110 | assert(tabs.count > 1, "Must have at least 2 tabs")
111 |
:
128 | ? self.activeAccentColor
129 | : self.inactiveAccentColor)
130 | .background(
| |- error: 'background(_:ignoresSafeAreaEdges:)' is only available in macOS 12.0 or newer
| `- note: add 'if #available' version check
131 | self.isSelected(tabIdentifier: tab)
132 | ? self.activeTabColor
/Users/admin/builder/spi-builder-workspace/Sources/SlidingTabView/SlidingTabView.swift:113:32: warning: conformance of 'ForEach<Data, ID, Content>' to 'View' is only available in macOS 10.15 or newer; this is an error in the Swift 6 language mode
26 |
27 | @available(iOS 13.0, *)
28 | public struct SlidingTabView : View {
| `- note: add '@available' attribute to enclosing struct
29 |
30 | // MARK: Internal State
:
107 | // MARK: View Construction
108 |
109 | public var body: some View {
| `- note: add '@available' attribute to enclosing property
110 | assert(tabs.count > 1, "Must have at least 2 tabs")
111 |
112 | return VStack(alignment: .leading, spacing: 0) {
113 | HStack(spacing: 0) {
| |- warning: conformance of 'ForEach<Data, ID, Content>' to 'View' is only available in macOS 10.15 or newer; this is an error in the Swift 6 language mode
| `- note: add 'if #available' version check
114 | ForEach(self.tabs, id:\.self) { tab in
115 | Button(action: {
/Users/admin/builder/spi-builder-workspace/Sources/SlidingTabView/SlidingTabView.swift:136:13: error: 'GeometryReader' is only available in macOS 10.15 or newer
26 |
27 | @available(iOS 13.0, *)
28 | public struct SlidingTabView : View {
| `- note: add '@available' attribute to enclosing struct
29 |
30 | // MARK: Internal State
:
107 | // MARK: View Construction
108 |
109 | public var body: some View {
| `- note: add '@available' attribute to enclosing property
110 | assert(tabs.count > 1, "Must have at least 2 tabs")
111 |
:
134 | }
135 | }
136 | GeometryReader { geometry in
| |- error: 'GeometryReader' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
137 | ZStack(alignment: .leading) {
138 | Rectangle()
/Users/admin/builder/spi-builder-workspace/Sources/SlidingTabView/SlidingTabView.swift:136:28: warning: conformance of 'Color' to 'ShapeStyle' is only available in macOS 10.15 or newer; this is an error in the Swift 6 language mode
26 |
27 | @available(iOS 13.0, *)
28 | public struct SlidingTabView : View {
| `- note: add '@available' attribute to enclosing struct
29 |
30 | // MARK: Internal State
:
107 | // MARK: View Construction
108 |
109 | public var body: some View {
| `- note: add '@available' attribute to enclosing property
110 | assert(tabs.count > 1, "Must have at least 2 tabs")
111 |
:
134 | }
135 | }
136 | GeometryReader { geometry in
| |- warning: conformance of 'Color' to 'ShapeStyle' is only available in macOS 10.15 or newer; this is an error in the Swift 6 language mode
| `- note: add 'if #available' version check
137 | ZStack(alignment: .leading) {
138 | Rectangle()
/Users/admin/builder/spi-builder-workspace/Sources/SlidingTabView/SlidingTabView.swift:136:28: warning: conformance of 'Color' to 'ShapeStyle' is only available in macOS 10.15 or newer; this is an error in the Swift 6 language mode
26 |
27 | @available(iOS 13.0, *)
28 | public struct SlidingTabView : View {
| `- note: add '@available' attribute to enclosing struct
29 |
30 | // MARK: Internal State
:
107 | // MARK: View Construction
108 |
109 | public var body: some View {
| `- note: add '@available' attribute to enclosing property
110 | assert(tabs.count > 1, "Must have at least 2 tabs")
111 |
:
134 | }
135 | }
136 | GeometryReader { geometry in
| |- warning: conformance of 'Color' to 'ShapeStyle' is only available in macOS 10.15 or newer; this is an error in the Swift 6 language mode
| `- note: add 'if #available' version check
137 | ZStack(alignment: .leading) {
138 | Rectangle()
/Users/admin/builder/spi-builder-workspace/Sources/SlidingTabView/SlidingTabView.swift:137:17: error: 'ZStack' is only available in macOS 10.15 or newer
26 |
27 | @available(iOS 13.0, *)
28 | public struct SlidingTabView : View {
| `- note: add '@available' attribute to enclosing struct
29 |
30 | // MARK: Internal State
:
107 | // MARK: View Construction
108 |
109 | public var body: some View {
| `- note: add '@available' attribute to enclosing property
110 | assert(tabs.count > 1, "Must have at least 2 tabs")
111 |
:
135 | }
136 | GeometryReader { geometry in
137 | ZStack(alignment: .leading) {
| |- error: 'ZStack' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
138 | Rectangle()
139 | .fill(self.selectionBarColor)
/Users/admin/builder/spi-builder-workspace/Sources/SlidingTabView/SlidingTabView.swift:137:36: error: 'leading' is only available in macOS 10.15 or newer
26 |
27 | @available(iOS 13.0, *)
28 | public struct SlidingTabView : View {
| `- note: add '@available' attribute to enclosing struct
29 |
30 | // MARK: Internal State
:
107 | // MARK: View Construction
108 |
109 | public var body: some View {
| `- note: add '@available' attribute to enclosing property
110 | assert(tabs.count > 1, "Must have at least 2 tabs")
111 |
:
135 | }
136 | GeometryReader { geometry in
137 | ZStack(alignment: .leading) {
| |- error: 'leading' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
138 | Rectangle()
139 | .fill(self.selectionBarColor)
/Users/admin/builder/spi-builder-workspace/Sources/SlidingTabView/SlidingTabView.swift:137:45: warning: conformance of 'Color' to 'ShapeStyle' is only available in macOS 10.15 or newer; this is an error in the Swift 6 language mode
26 |
27 | @available(iOS 13.0, *)
28 | public struct SlidingTabView : View {
| `- note: add '@available' attribute to enclosing struct
29 |
30 | // MARK: Internal State
:
107 | // MARK: View Construction
108 |
109 | public var body: some View {
| `- note: add '@available' attribute to enclosing property
110 | assert(tabs.count > 1, "Must have at least 2 tabs")
111 |
:
135 | }
136 | GeometryReader { geometry in
137 | ZStack(alignment: .leading) {
| |- warning: conformance of 'Color' to 'ShapeStyle' is only available in macOS 10.15 or newer; this is an error in the Swift 6 language mode
| `- note: add 'if #available' version check
138 | Rectangle()
139 | .fill(self.selectionBarColor)
/Users/admin/builder/spi-builder-workspace/Sources/SlidingTabView/SlidingTabView.swift:137:45: warning: conformance of 'Color' to 'ShapeStyle' is only available in macOS 10.15 or newer; this is an error in the Swift 6 language mode
26 |
27 | @available(iOS 13.0, *)
28 | public struct SlidingTabView : View {
| `- note: add '@available' attribute to enclosing struct
29 |
30 | // MARK: Internal State
:
107 | // MARK: View Construction
108 |
109 | public var body: some View {
| `- note: add '@available' attribute to enclosing property
110 | assert(tabs.count > 1, "Must have at least 2 tabs")
111 |
:
135 | }
136 | GeometryReader { geometry in
137 | ZStack(alignment: .leading) {
| |- warning: conformance of 'Color' to 'ShapeStyle' is only available in macOS 10.15 or newer; this is an error in the Swift 6 language mode
| `- note: add 'if #available' version check
138 | Rectangle()
139 | .fill(self.selectionBarColor)
/Users/admin/builder/spi-builder-workspace/Sources/SlidingTabView/SlidingTabView.swift:138:21: error: 'Rectangle' is only available in macOS 10.15 or newer
26 |
27 | @available(iOS 13.0, *)
28 | public struct SlidingTabView : View {
| `- note: add '@available' attribute to enclosing struct
29 |
30 | // MARK: Internal State
:
107 | // MARK: View Construction
108 |
109 | public var body: some View {
| `- note: add '@available' attribute to enclosing property
110 | assert(tabs.count > 1, "Must have at least 2 tabs")
111 |
:
136 | GeometryReader { geometry in
137 | ZStack(alignment: .leading) {
138 | Rectangle()
| |- error: 'Rectangle' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
139 | .fill(self.selectionBarColor)
140 | .frame(width: self.tabWidth(from: geometry.size.width), height: self.selectionBarHeight, alignment: .leading)
/Users/admin/builder/spi-builder-workspace/Sources/SlidingTabView/SlidingTabView.swift:139:26: error: 'fill(_:style:)' is only available in macOS 14.0 or newer
26 |
27 | @available(iOS 13.0, *)
28 | public struct SlidingTabView : View {
| `- note: add '@available' attribute to enclosing struct
29 |
30 | // MARK: Internal State
:
107 | // MARK: View Construction
108 |
109 | public var body: some View {
| `- note: add '@available' attribute to enclosing property
110 | assert(tabs.count > 1, "Must have at least 2 tabs")
111 |
:
137 | ZStack(alignment: .leading) {
138 | Rectangle()
139 | .fill(self.selectionBarColor)
| |- error: 'fill(_:style:)' is only available in macOS 14.0 or newer
| `- note: add 'if #available' version check
140 | .frame(width: self.tabWidth(from: geometry.size.width), height: self.selectionBarHeight, alignment: .leading)
141 | .offset(x: self.selectionBarXOffset(from: geometry.size.width), y: 0)
/Users/admin/builder/spi-builder-workspace/Sources/SlidingTabView/SlidingTabView.swift:140:26: error: 'frame(width:height:alignment:)' is only available in macOS 10.15 or newer
26 |
27 | @available(iOS 13.0, *)
28 | public struct SlidingTabView : View {
| `- note: add '@available' attribute to enclosing struct
29 |
30 | // MARK: Internal State
:
107 | // MARK: View Construction
108 |
109 | public var body: some View {
| `- note: add '@available' attribute to enclosing property
110 | assert(tabs.count > 1, "Must have at least 2 tabs")
111 |
:
138 | Rectangle()
139 | .fill(self.selectionBarColor)
140 | .frame(width: self.tabWidth(from: geometry.size.width), height: self.selectionBarHeight, alignment: .leading)
| |- error: 'frame(width:height:alignment:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
141 | .offset(x: self.selectionBarXOffset(from: geometry.size.width), y: 0)
142 | .animation(self.animation)
/Users/admin/builder/spi-builder-workspace/Sources/SlidingTabView/SlidingTabView.swift:140:126: error: 'leading' is only available in macOS 10.15 or newer
26 |
27 | @available(iOS 13.0, *)
28 | public struct SlidingTabView : View {
| `- note: add '@available' attribute to enclosing struct
29 |
30 | // MARK: Internal State
:
107 | // MARK: View Construction
108 |
109 | public var body: some View {
| `- note: add '@available' attribute to enclosing property
110 | assert(tabs.count > 1, "Must have at least 2 tabs")
111 |
:
138 | Rectangle()
139 | .fill(self.selectionBarColor)
140 | .frame(width: self.tabWidth(from: geometry.size.width), height: self.selectionBarHeight, alignment: .leading)
| |- error: 'leading' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
141 | .offset(x: self.selectionBarXOffset(from: geometry.size.width), y: 0)
142 | .animation(self.animation)
/Users/admin/builder/spi-builder-workspace/Sources/SlidingTabView/SlidingTabView.swift:141:26: error: 'offset(x:y:)' is only available in macOS 10.15 or newer
26 |
27 | @available(iOS 13.0, *)
28 | public struct SlidingTabView : View {
| `- note: add '@available' attribute to enclosing struct
29 |
30 | // MARK: Internal State
:
107 | // MARK: View Construction
108 |
109 | public var body: some View {
| `- note: add '@available' attribute to enclosing property
110 | assert(tabs.count > 1, "Must have at least 2 tabs")
111 |
:
139 | .fill(self.selectionBarColor)
140 | .frame(width: self.tabWidth(from: geometry.size.width), height: self.selectionBarHeight, alignment: .leading)
141 | .offset(x: self.selectionBarXOffset(from: geometry.size.width), y: 0)
| |- error: 'offset(x:y:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
142 | .animation(self.animation)
143 | Rectangle()
/Users/admin/builder/spi-builder-workspace/Sources/SlidingTabView/SlidingTabView.swift:142:26: error: 'animation' is only available in macOS 10.15 or newer
26 |
27 | @available(iOS 13.0, *)
28 | public struct SlidingTabView : View {
| `- note: add '@available' attribute to enclosing struct
29 |
30 | // MARK: Internal State
:
107 | // MARK: View Construction
108 |
109 | public var body: some View {
| `- note: add '@available' attribute to enclosing property
110 | assert(tabs.count > 1, "Must have at least 2 tabs")
111 |
:
140 | .frame(width: self.tabWidth(from: geometry.size.width), height: self.selectionBarHeight, alignment: .leading)
141 | .offset(x: self.selectionBarXOffset(from: geometry.size.width), y: 0)
142 | .animation(self.animation)
| |- error: 'animation' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
143 | Rectangle()
144 | .fill(self.selectionBarBackgroundColor)
/Users/admin/builder/spi-builder-workspace/Sources/SlidingTabView/SlidingTabView.swift:143:21: error: 'Rectangle' is only available in macOS 10.15 or newer
26 |
27 | @available(iOS 13.0, *)
28 | public struct SlidingTabView : View {
| `- note: add '@available' attribute to enclosing struct
29 |
30 | // MARK: Internal State
:
107 | // MARK: View Construction
108 |
109 | public var body: some View {
| `- note: add '@available' attribute to enclosing property
110 | assert(tabs.count > 1, "Must have at least 2 tabs")
111 |
:
141 | .offset(x: self.selectionBarXOffset(from: geometry.size.width), y: 0)
142 | .animation(self.animation)
143 | Rectangle()
| |- error: 'Rectangle' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
144 | .fill(self.selectionBarBackgroundColor)
145 | .frame(width: geometry.size.width, height: self.selectionBarBackgroundHeight, alignment: .leading)
/Users/admin/builder/spi-builder-workspace/Sources/SlidingTabView/SlidingTabView.swift:144:26: error: 'fill(_:style:)' is only available in macOS 14.0 or newer
26 |
27 | @available(iOS 13.0, *)
28 | public struct SlidingTabView : View {
| `- note: add '@available' attribute to enclosing struct
29 |
30 | // MARK: Internal State
:
107 | // MARK: View Construction
108 |
109 | public var body: some View {
| `- note: add '@available' attribute to enclosing property
110 | assert(tabs.count > 1, "Must have at least 2 tabs")
111 |
:
142 | .animation(self.animation)
143 | Rectangle()
144 | .fill(self.selectionBarBackgroundColor)
| |- error: 'fill(_:style:)' is only available in macOS 14.0 or newer
| `- note: add 'if #available' version check
145 | .frame(width: geometry.size.width, height: self.selectionBarBackgroundHeight, alignment: .leading)
146 | }.fixedSize(horizontal: false, vertical: true)
/Users/admin/builder/spi-builder-workspace/Sources/SlidingTabView/SlidingTabView.swift:145:26: error: 'frame(width:height:alignment:)' is only available in macOS 10.15 or newer
26 |
27 | @available(iOS 13.0, *)
28 | public struct SlidingTabView : View {
| `- note: add '@available' attribute to enclosing struct
29 |
30 | // MARK: Internal State
:
107 | // MARK: View Construction
108 |
109 | public var body: some View {
| `- note: add '@available' attribute to enclosing property
110 | assert(tabs.count > 1, "Must have at least 2 tabs")
111 |
:
143 | Rectangle()
144 | .fill(self.selectionBarBackgroundColor)
145 | .frame(width: geometry.size.width, height: self.selectionBarBackgroundHeight, alignment: .leading)
| |- error: 'frame(width:height:alignment:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
146 | }.fixedSize(horizontal: false, vertical: true)
147 | }.fixedSize(horizontal: false, vertical: true)
/Users/admin/builder/spi-builder-workspace/Sources/SlidingTabView/SlidingTabView.swift:145:115: error: 'leading' is only available in macOS 10.15 or newer
26 |
27 | @available(iOS 13.0, *)
28 | public struct SlidingTabView : View {
| `- note: add '@available' attribute to enclosing struct
29 |
30 | // MARK: Internal State
:
107 | // MARK: View Construction
108 |
109 | public var body: some View {
| `- note: add '@available' attribute to enclosing property
110 | assert(tabs.count > 1, "Must have at least 2 tabs")
111 |
:
143 | Rectangle()
144 | .fill(self.selectionBarBackgroundColor)
145 | .frame(width: geometry.size.width, height: self.selectionBarBackgroundHeight, alignment: .leading)
| |- error: 'leading' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
146 | }.fixedSize(horizontal: false, vertical: true)
147 | }.fixedSize(horizontal: false, vertical: true)
/Users/admin/builder/spi-builder-workspace/Sources/SlidingTabView/SlidingTabView.swift:146:19: error: 'fixedSize(horizontal:vertical:)' is only available in macOS 10.15 or newer
26 |
27 | @available(iOS 13.0, *)
28 | public struct SlidingTabView : View {
| `- note: add '@available' attribute to enclosing struct
29 |
30 | // MARK: Internal State
:
107 | // MARK: View Construction
108 |
109 | public var body: some View {
| `- note: add '@available' attribute to enclosing property
110 | assert(tabs.count > 1, "Must have at least 2 tabs")
111 |
:
144 | .fill(self.selectionBarBackgroundColor)
145 | .frame(width: geometry.size.width, height: self.selectionBarBackgroundHeight, alignment: .leading)
146 | }.fixedSize(horizontal: false, vertical: true)
| |- error: 'fixedSize(horizontal:vertical:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
147 | }.fixedSize(horizontal: false, vertical: true)
148 |
/Users/admin/builder/spi-builder-workspace/Sources/SlidingTabView/SlidingTabView.swift:147:15: error: 'fixedSize(horizontal:vertical:)' is only available in macOS 10.15 or newer
26 |
27 | @available(iOS 13.0, *)
28 | public struct SlidingTabView : View {
| `- note: add '@available' attribute to enclosing struct
29 |
30 | // MARK: Internal State
:
107 | // MARK: View Construction
108 |
109 | public var body: some View {
| `- note: add '@available' attribute to enclosing property
110 | assert(tabs.count > 1, "Must have at least 2 tabs")
111 |
:
145 | .frame(width: geometry.size.width, height: self.selectionBarBackgroundHeight, alignment: .leading)
146 | }.fixedSize(horizontal: false, vertical: true)
147 | }.fixedSize(horizontal: false, vertical: true)
| |- error: 'fixedSize(horizontal:vertical:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
148 |
149 | }
/Users/admin/builder/spi-builder-workspace/Sources/SlidingTabView/SlidingTabView.swift:112:56: warning: conformance of 'ForEach<Data, ID, Content>' to 'View' is only available in macOS 10.15 or newer; this is an error in the Swift 6 language mode
26 |
27 | @available(iOS 13.0, *)
28 | public struct SlidingTabView : View {
| `- note: add '@available' attribute to enclosing struct
29 |
30 | // MARK: Internal State
:
107 | // MARK: View Construction
108 |
109 | public var body: some View {
| `- note: add '@available' attribute to enclosing property
110 | assert(tabs.count > 1, "Must have at least 2 tabs")
111 |
112 | return VStack(alignment: .leading, spacing: 0) {
| |- warning: conformance of 'ForEach<Data, ID, Content>' to 'View' is only available in macOS 10.15 or newer; this is an error in the Swift 6 language mode
| `- note: add 'if #available' version check
113 | HStack(spacing: 0) {
114 | ForEach(self.tabs, id:\.self) { tab in
/Users/admin/builder/spi-builder-workspace/Sources/SlidingTabView/SlidingTabView.swift:174:9: error: 'VStack' is only available in macOS 10.15 or newer
168 |
169 | @available(iOS 13.0, *)
170 | struct SlidingTabConsumerView : View {
| `- note: add '@available' attribute to enclosing struct
171 | @State private var selectedTabIndex = 0
172 |
173 | var body: some View {
| `- note: add '@available' attribute to enclosing property
174 | VStack(alignment: .leading) {
| |- error: 'VStack' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
175 | SlidingTabView(selection: self.$selectedTabIndex,
176 | tabs: ["First", "Second"],
/Users/admin/builder/spi-builder-workspace/Sources/SlidingTabView/SlidingTabView.swift:174:28: error: 'leading' is only available in macOS 10.15 or newer
168 |
169 | @available(iOS 13.0, *)
170 | struct SlidingTabConsumerView : View {
| `- note: add '@available' attribute to enclosing struct
171 | @State private var selectedTabIndex = 0
172 |
173 | var body: some View {
| `- note: add '@available' attribute to enclosing property
174 | VStack(alignment: .leading) {
| |- error: 'leading' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
175 | SlidingTabView(selection: self.$selectedTabIndex,
176 | tabs: ["First", "Second"],
/Users/admin/builder/spi-builder-workspace/Sources/SlidingTabView/SlidingTabView.swift:177:35: error: 'body' is only available in macOS 10.15 or newer
168 |
169 | @available(iOS 13.0, *)
170 | struct SlidingTabConsumerView : View {
| `- note: add '@available' attribute to enclosing struct
171 | @State private var selectedTabIndex = 0
172 |
173 | var body: some View {
| `- note: add '@available' attribute to enclosing property
174 | VStack(alignment: .leading) {
175 | SlidingTabView(selection: self.$selectedTabIndex,
176 | tabs: ["First", "Second"],
177 | font: .body,
| |- error: 'body' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
178 | activeAccentColor: Color.blue,
179 | selectionBarColor: Color.blue)
/Users/admin/builder/spi-builder-workspace/Sources/SlidingTabView/SlidingTabView.swift:178:47: error: 'Color' is only available in macOS 10.15 or newer
168 |
169 | @available(iOS 13.0, *)
170 | struct SlidingTabConsumerView : View {
| `- note: add '@available' attribute to enclosing struct
171 | @State private var selectedTabIndex = 0
172 |
173 | var body: some View {
| `- note: add '@available' attribute to enclosing property
174 | VStack(alignment: .leading) {
175 | SlidingTabView(selection: self.$selectedTabIndex,
176 | tabs: ["First", "Second"],
177 | font: .body,
178 | activeAccentColor: Color.blue,
| |- error: 'Color' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
179 | selectionBarColor: Color.blue)
180 | (selectedTabIndex == 0 ? Text("First View") : Text("Second View")).padding()
/Users/admin/builder/spi-builder-workspace/Sources/SlidingTabView/SlidingTabView.swift:178:53: error: 'blue' is only available in macOS 10.15 or newer
168 |
169 | @available(iOS 13.0, *)
170 | struct SlidingTabConsumerView : View {
| `- note: add '@available' attribute to enclosing struct
171 | @State private var selectedTabIndex = 0
172 |
173 | var body: some View {
| `- note: add '@available' attribute to enclosing property
174 | VStack(alignment: .leading) {
175 | SlidingTabView(selection: self.$selectedTabIndex,
176 | tabs: ["First", "Second"],
177 | font: .body,
178 | activeAccentColor: Color.blue,
| |- error: 'blue' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
179 | selectionBarColor: Color.blue)
180 | (selectedTabIndex == 0 ? Text("First View") : Text("Second View")).padding()
/Users/admin/builder/spi-builder-workspace/Sources/SlidingTabView/SlidingTabView.swift:179:47: error: 'Color' is only available in macOS 10.15 or newer
168 |
169 | @available(iOS 13.0, *)
170 | struct SlidingTabConsumerView : View {
| `- note: add '@available' attribute to enclosing struct
171 | @State private var selectedTabIndex = 0
172 |
173 | var body: some View {
| `- note: add '@available' attribute to enclosing property
174 | VStack(alignment: .leading) {
175 | SlidingTabView(selection: self.$selectedTabIndex,
:
177 | font: .body,
178 | activeAccentColor: Color.blue,
179 | selectionBarColor: Color.blue)
| |- error: 'Color' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
180 | (selectedTabIndex == 0 ? Text("First View") : Text("Second View")).padding()
181 | Spacer()
/Users/admin/builder/spi-builder-workspace/Sources/SlidingTabView/SlidingTabView.swift:179:53: error: 'blue' is only available in macOS 10.15 or newer
168 |
169 | @available(iOS 13.0, *)
170 | struct SlidingTabConsumerView : View {
| `- note: add '@available' attribute to enclosing struct
171 | @State private var selectedTabIndex = 0
172 |
173 | var body: some View {
| `- note: add '@available' attribute to enclosing property
174 | VStack(alignment: .leading) {
175 | SlidingTabView(selection: self.$selectedTabIndex,
:
177 | font: .body,
178 | activeAccentColor: Color.blue,
179 | selectionBarColor: Color.blue)
| |- error: 'blue' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
180 | (selectedTabIndex == 0 ? Text("First View") : Text("Second View")).padding()
181 | Spacer()
/Users/admin/builder/spi-builder-workspace/Sources/SlidingTabView/SlidingTabView.swift:180:38: error: 'Text' is only available in macOS 10.15 or newer
168 |
169 | @available(iOS 13.0, *)
170 | struct SlidingTabConsumerView : View {
| `- note: add '@available' attribute to enclosing struct
171 | @State private var selectedTabIndex = 0
172 |
173 | var body: some View {
| `- note: add '@available' attribute to enclosing property
174 | VStack(alignment: .leading) {
175 | SlidingTabView(selection: self.$selectedTabIndex,
:
178 | activeAccentColor: Color.blue,
179 | selectionBarColor: Color.blue)
180 | (selectedTabIndex == 0 ? Text("First View") : Text("Second View")).padding()
| |- error: 'Text' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
181 | Spacer()
182 | }
/Users/admin/builder/spi-builder-workspace/Sources/SlidingTabView/SlidingTabView.swift:180:59: error: 'Text' is only available in macOS 10.15 or newer
168 |
169 | @available(iOS 13.0, *)
170 | struct SlidingTabConsumerView : View {
| `- note: add '@available' attribute to enclosing struct
171 | @State private var selectedTabIndex = 0
172 |
173 | var body: some View {
| `- note: add '@available' attribute to enclosing property
174 | VStack(alignment: .leading) {
175 | SlidingTabView(selection: self.$selectedTabIndex,
:
178 | activeAccentColor: Color.blue,
179 | selectionBarColor: Color.blue)
180 | (selectedTabIndex == 0 ? Text("First View") : Text("Second View")).padding()
| |- error: 'Text' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
181 | Spacer()
182 | }
/Users/admin/builder/spi-builder-workspace/Sources/SlidingTabView/SlidingTabView.swift:180:80: error: 'padding' is only available in macOS 10.15 or newer
168 |
169 | @available(iOS 13.0, *)
170 | struct SlidingTabConsumerView : View {
| `- note: add '@available' attribute to enclosing struct
171 | @State private var selectedTabIndex = 0
172 |
173 | var body: some View {
| `- note: add '@available' attribute to enclosing property
174 | VStack(alignment: .leading) {
175 | SlidingTabView(selection: self.$selectedTabIndex,
:
178 | activeAccentColor: Color.blue,
179 | selectionBarColor: Color.blue)
180 | (selectedTabIndex == 0 ? Text("First View") : Text("Second View")).padding()
| |- error: 'padding' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
181 | Spacer()
182 | }
/Users/admin/builder/spi-builder-workspace/Sources/SlidingTabView/SlidingTabView.swift:181:13: 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
168 |
169 | @available(iOS 13.0, *)
170 | struct SlidingTabConsumerView : View {
| `- note: add '@available' attribute to enclosing struct
171 | @State private var selectedTabIndex = 0
172 |
173 | var body: some View {
| `- note: add '@available' attribute to enclosing property
174 | VStack(alignment: .leading) {
175 | SlidingTabView(selection: self.$selectedTabIndex,
:
179 | selectionBarColor: Color.blue)
180 | (selectedTabIndex == 0 ? Text("First View") : Text("Second View")).padding()
181 | 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
182 | }
183 | .padding(.top, 50)
/Users/admin/builder/spi-builder-workspace/Sources/SlidingTabView/SlidingTabView.swift:181:13: error: 'Spacer' is only available in macOS 10.15 or newer
168 |
169 | @available(iOS 13.0, *)
170 | struct SlidingTabConsumerView : View {
| `- note: add '@available' attribute to enclosing struct
171 | @State private var selectedTabIndex = 0
172 |
173 | var body: some View {
| `- note: add '@available' attribute to enclosing property
174 | VStack(alignment: .leading) {
175 | SlidingTabView(selection: self.$selectedTabIndex,
:
179 | selectionBarColor: Color.blue)
180 | (selectedTabIndex == 0 ? Text("First View") : Text("Second View")).padding()
181 | Spacer()
| |- error: 'Spacer' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
182 | }
183 | .padding(.top, 50)
/Users/admin/builder/spi-builder-workspace/Sources/SlidingTabView/SlidingTabView.swift:174:37: 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
168 |
169 | @available(iOS 13.0, *)
170 | struct SlidingTabConsumerView : View {
| `- note: add '@available' attribute to enclosing struct
171 | @State private var selectedTabIndex = 0
172 |
173 | var body: some View {
| `- note: add '@available' attribute to enclosing property
174 | VStack(alignment: .leading) {
| |- 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
175 | SlidingTabView(selection: self.$selectedTabIndex,
176 | tabs: ["First", "Second"],
/Users/admin/builder/spi-builder-workspace/Sources/SlidingTabView/SlidingTabView.swift:183:10: error: 'padding' is only available in macOS 10.15 or newer
168 |
169 | @available(iOS 13.0, *)
170 | struct SlidingTabConsumerView : View {
| `- note: add '@available' attribute to enclosing struct
171 | @State private var selectedTabIndex = 0
172 |
173 | var body: some View {
| `- note: add '@available' attribute to enclosing property
174 | VStack(alignment: .leading) {
175 | SlidingTabView(selection: self.$selectedTabIndex,
:
181 | Spacer()
182 | }
183 | .padding(.top, 50)
| |- error: 'padding' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
184 | .animation(.none)
185 | }
/Users/admin/builder/spi-builder-workspace/Sources/SlidingTabView/SlidingTabView.swift:184:14: error: 'animation' is only available in macOS 10.15 or newer
168 |
169 | @available(iOS 13.0, *)
170 | struct SlidingTabConsumerView : View {
| `- note: add '@available' attribute to enclosing struct
171 | @State private var selectedTabIndex = 0
172 |
173 | var body: some View {
| `- note: add '@available' attribute to enclosing property
174 | VStack(alignment: .leading) {
175 | SlidingTabView(selection: self.$selectedTabIndex,
:
182 | }
183 | .padding(.top, 50)
184 | .animation(.none)
| |- error: 'animation' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
185 | }
186 | }
BUILD FAILURE 6.3 macosSpm