Build Information
Failed to build TVDatePicker, reference dev (24d502
), with Swift 6.0 for macOS (SPM) on 1 Nov 2024 11:28:13 UTC.
Build Command
env DEVELOPER_DIR=/Applications/Xcode-16.1.0.app xcrun swift build --arch arm64 -Xswiftc -Xfrontend -Xswiftc -stats-output-dir -Xswiftc -Xfrontend -Xswiftc .stats -Xswiftc -strict-concurrency=complete
Build Log
/Users/admin/builder/spi-builder-workspace/Sources/TVDatePicker/API/TVDatePicker.swift:16:31: error: 'SegmentedPickerStyle' is only available in macOS 10.15 or newer
11 | @available(iOS, unavailable)
12 | /// A `SwiftUI` date picker view, especially for tvOS.
13 | public struct TVDatePicker<Label: View>: View {
| `- note: add @available attribute to enclosing generic struct
14 | // MARK: - Private
15 |
16 | private let pickerStyle = SegmentedPickerStyle()
| `- error: 'SegmentedPickerStyle' is only available in macOS 10.15 or newer
17 |
18 | private var currentlySelectedYear: Int {
/Users/admin/builder/spi-builder-workspace/Sources/TVDatePicker/API/TVDatePicker.swift:40:6: error: 'State' is only available in macOS 10.15 or newer
11 | @available(iOS, unavailable)
12 | /// A `SwiftUI` date picker view, especially for tvOS.
13 | public struct TVDatePicker<Label: View>: View {
| `- note: add @available attribute to enclosing generic struct
14 | // MARK: - Private
15 |
:
38 | private var minutes: Array<Int> { Array(stride(from: 0, to: 60, by: 5)) }
39 |
40 | @State private var isSheetPresented = false
| `- error: 'State' is only available in macOS 10.15 or newer
41 | @State private var selectedYear: Int = 0
42 | @State private var selectedMonth: Int = 0
/Users/admin/builder/spi-builder-workspace/Sources/TVDatePicker/API/TVDatePicker.swift:41:6: error: 'State' is only available in macOS 10.15 or newer
11 | @available(iOS, unavailable)
12 | /// A `SwiftUI` date picker view, especially for tvOS.
13 | public struct TVDatePicker<Label: View>: View {
| `- note: add @available attribute to enclosing generic struct
14 | // MARK: - Private
15 |
:
39 |
40 | @State private var isSheetPresented = false
41 | @State private var selectedYear: Int = 0
| `- error: 'State' is only available in macOS 10.15 or newer
42 | @State private var selectedMonth: Int = 0
43 | @State private var selectedDay: Int = 0
/Users/admin/builder/spi-builder-workspace/Sources/TVDatePicker/API/TVDatePicker.swift:42:6: error: 'State' is only available in macOS 10.15 or newer
11 | @available(iOS, unavailable)
12 | /// A `SwiftUI` date picker view, especially for tvOS.
13 | public struct TVDatePicker<Label: View>: View {
| `- note: add @available attribute to enclosing generic struct
14 | // MARK: - Private
15 |
:
40 | @State private var isSheetPresented = false
41 | @State private var selectedYear: Int = 0
42 | @State private var selectedMonth: Int = 0
| `- error: 'State' is only available in macOS 10.15 or newer
43 | @State private var selectedDay: Int = 0
44 | @State private var selectedHour: Int = 0
/Users/admin/builder/spi-builder-workspace/Sources/TVDatePicker/API/TVDatePicker.swift:43:6: error: 'State' is only available in macOS 10.15 or newer
11 | @available(iOS, unavailable)
12 | /// A `SwiftUI` date picker view, especially for tvOS.
13 | public struct TVDatePicker<Label: View>: View {
| `- note: add @available attribute to enclosing generic struct
14 | // MARK: - Private
15 |
:
41 | @State private var selectedYear: Int = 0
42 | @State private var selectedMonth: Int = 0
43 | @State private var selectedDay: Int = 0
| `- error: 'State' is only available in macOS 10.15 or newer
44 | @State private var selectedHour: Int = 0
45 | @State private var selectedMinute: Int = 0
/Users/admin/builder/spi-builder-workspace/Sources/TVDatePicker/API/TVDatePicker.swift:44:6: error: 'State' is only available in macOS 10.15 or newer
11 | @available(iOS, unavailable)
12 | /// A `SwiftUI` date picker view, especially for tvOS.
13 | public struct TVDatePicker<Label: View>: View {
| `- note: add @available attribute to enclosing generic struct
14 | // MARK: - Private
15 |
:
42 | @State private var selectedMonth: Int = 0
43 | @State private var selectedDay: Int = 0
44 | @State private var selectedHour: Int = 0
| `- error: 'State' is only available in macOS 10.15 or newer
45 | @State private var selectedMinute: Int = 0
46 |
/Users/admin/builder/spi-builder-workspace/Sources/TVDatePicker/API/TVDatePicker.swift:45:6: error: 'State' is only available in macOS 10.15 or newer
11 | @available(iOS, unavailable)
12 | /// A `SwiftUI` date picker view, especially for tvOS.
13 | public struct TVDatePicker<Label: View>: View {
| `- note: add @available attribute to enclosing generic struct
14 | // MARK: - Private
15 |
:
43 | @State private var selectedDay: Int = 0
44 | @State private var selectedHour: Int = 0
45 | @State private var selectedMinute: Int = 0
| `- error: 'State' is only available in macOS 10.15 or newer
46 |
47 | // MARK: - Internal
/Users/admin/builder/spi-builder-workspace/Sources/TVDatePicker/API/TVDatePicker.swift:49:19: error: 'LocalizedStringKey' is only available in macOS 10.15 or newer
11 | @available(iOS, unavailable)
12 | /// A `SwiftUI` date picker view, especially for tvOS.
13 | public struct TVDatePicker<Label: View>: View {
| `- note: add @available attribute to enclosing generic struct
14 | // MARK: - Private
15 |
:
47 | // MARK: - Internal
48 |
49 | var titleKey: LocalizedStringKey
| `- error: 'LocalizedStringKey' is only available in macOS 10.15 or newer
50 | @Binding var selection: Date
51 | var minimumDate: Date
/Users/admin/builder/spi-builder-workspace/Sources/TVDatePicker/API/TVDatePicker.swift:50:6: error: 'Binding' is only available in macOS 10.15 or newer
11 | @available(iOS, unavailable)
12 | /// A `SwiftUI` date picker view, especially for tvOS.
13 | public struct TVDatePicker<Label: View>: View {
| `- note: add @available attribute to enclosing generic struct
14 | // MARK: - Private
15 |
:
48 |
49 | var titleKey: LocalizedStringKey
50 | @Binding var selection: Date
| `- error: 'Binding' is only available in macOS 10.15 or newer
51 | var minimumDate: Date
52 | var displayedComponents: Components
/Users/admin/builder/spi-builder-workspace/Sources/TVDatePicker/API/TVDatePicker.swift:79:27: error: 'View' is only available in macOS 10.15 or newer
11 | @available(iOS, unavailable)
12 | /// A `SwiftUI` date picker view, especially for tvOS.
13 | public struct TVDatePicker<Label: View>: View {
| `- note: add @available attribute to enclosing generic struct
14 | // MARK: - Private
15 |
:
77 | }
78 |
79 | public var body: some View {
| | `- error: 'View' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing property
80 | Button {
81 | isSheetPresented = true
/Users/admin/builder/spi-builder-workspace/Sources/TVDatePicker/API/TVDatePicker.swift:129:21: error: 'LocalizedStringKey' is only available in macOS 10.15 or newer
11 | @available(iOS, unavailable)
12 | /// A `SwiftUI` date picker view, especially for tvOS.
13 | public struct TVDatePicker<Label: View>: View {
| `- note: add @available attribute to enclosing generic struct
14 | // MARK: - Private
15 |
:
126 | /// - dateFormatter: The date formatter used for displaying the current selection, defaults to `DateFormatters.defaultFormatter`.
127 | /// - label: A view that describes the use of the date.
128 | public init(
| `- note: add @available attribute to enclosing initializer
129 | _ titleKey: LocalizedStringKey,
| `- error: 'LocalizedStringKey' is only available in macOS 10.15 or newer
130 | selection: Binding<Date>,
131 | minimumDate: Date,
/Users/admin/builder/spi-builder-workspace/Sources/TVDatePicker/API/TVDatePicker.swift:130:20: error: 'Binding' is only available in macOS 10.15 or newer
11 | @available(iOS, unavailable)
12 | /// A `SwiftUI` date picker view, especially for tvOS.
13 | public struct TVDatePicker<Label: View>: View {
| `- note: add @available attribute to enclosing generic struct
14 | // MARK: - Private
15 |
:
126 | /// - dateFormatter: The date formatter used for displaying the current selection, defaults to `DateFormatters.defaultFormatter`.
127 | /// - label: A view that describes the use of the date.
128 | public init(
| `- note: add @available attribute to enclosing initializer
129 | _ titleKey: LocalizedStringKey,
130 | selection: Binding<Date>,
| `- error: 'Binding' is only available in macOS 10.15 or newer
131 | minimumDate: Date,
132 | displayedComponents: Components = .all,
/Users/admin/builder/spi-builder-workspace/Sources/TVDatePicker/API/TVDatePicker.swift:135:10: error: 'ViewBuilder' is only available in macOS 10.15 or newer
11 | @available(iOS, unavailable)
12 | /// A `SwiftUI` date picker view, especially for tvOS.
13 | public struct TVDatePicker<Label: View>: View {
| `- note: add @available attribute to enclosing generic struct
14 | // MARK: - Private
15 |
:
126 | /// - dateFormatter: The date formatter used for displaying the current selection, defaults to `DateFormatters.defaultFormatter`.
127 | /// - label: A view that describes the use of the date.
128 | public init(
| `- note: add @available attribute to enclosing initializer
129 | _ titleKey: LocalizedStringKey,
130 | selection: Binding<Date>,
:
133 | calendar: Calendar = .current,
134 | dateFormatter: DateFormatter = DateFormatters.defaultFormatter,
135 | @ViewBuilder label: @escaping () -> Label
| `- error: 'ViewBuilder' is only available in macOS 10.15 or newer
136 | ) {
137 | self.titleKey = titleKey
/Users/admin/builder/spi-builder-workspace/Sources/TVDatePicker/API/TVDatePicker.swift:13:35: error: 'View' is only available in macOS 10.15 or newer
11 | @available(iOS, unavailable)
12 | /// A `SwiftUI` date picker view, especially for tvOS.
13 | public struct TVDatePicker<Label: View>: View {
| | `- error: 'View' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing generic struct
14 | // MARK: - Private
15 |
/Users/admin/builder/spi-builder-workspace/Sources/TVDatePicker/API/TVDatePicker.swift:155:55: error: 'View' is only available in macOS 10.15 or newer
152 |
153 | @available(iOS, unavailable)
154 | private extension TVDatePicker {
| `- note: add @available attribute to enclosing extension
155 | @ViewBuilder func navigationViewContent() -> some View {
| | `- error: 'View' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing instance method
156 | VStack(alignment: .leading, content: content)
157 | .onAppear(perform: onAppear)
/Users/admin/builder/spi-builder-workspace/Sources/TVDatePicker/API/TVDatePicker.swift:155:6: error: 'ViewBuilder' is only available in macOS 10.15 or newer
152 |
153 | @available(iOS, unavailable)
154 | private extension TVDatePicker {
| `- note: add @available attribute to enclosing extension
155 | @ViewBuilder func navigationViewContent() -> some View {
| | `- note: add @available attribute to enclosing instance method
| `- error: 'ViewBuilder' is only available in macOS 10.15 or newer
156 | VStack(alignment: .leading, content: content)
157 | .onAppear(perform: onAppear)
/Users/admin/builder/spi-builder-workspace/Sources/TVDatePicker/API/TVDatePicker.swift:162:41: error: 'View' is only available in macOS 10.15 or newer
152 |
153 | @available(iOS, unavailable)
154 | private extension TVDatePicker {
| `- note: add @available attribute to enclosing extension
155 | @ViewBuilder func navigationViewContent() -> some View {
156 | VStack(alignment: .leading, content: content)
:
160 | }
161 |
162 | @ViewBuilder func content() -> some View {
| | `- error: 'View' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing instance method
163 | Text(dateFormatter.string(from: selection)).font(.headline)
164 |
/Users/admin/builder/spi-builder-workspace/Sources/TVDatePicker/API/TVDatePicker.swift:162:6: error: 'ViewBuilder' is only available in macOS 10.15 or newer
152 |
153 | @available(iOS, unavailable)
154 | private extension TVDatePicker {
| `- note: add @available attribute to enclosing extension
155 | @ViewBuilder func navigationViewContent() -> some View {
156 | VStack(alignment: .leading, content: content)
:
160 | }
161 |
162 | @ViewBuilder func content() -> some View {
| | `- note: add @available attribute to enclosing instance method
| `- error: 'ViewBuilder' is only available in macOS 10.15 or newer
163 | Text(dateFormatter.string(from: selection)).font(.headline)
164 |
/Users/admin/builder/spi-builder-workspace/Sources/TVDatePicker/API/TVDatePicker.swift:226:34: error: 'View' is only available in macOS 10.15 or newer
152 |
153 | @available(iOS, unavailable)
154 | private extension TVDatePicker {
| `- note: add @available attribute to enclosing extension
155 | @ViewBuilder func navigationViewContent() -> some View {
156 | VStack(alignment: .leading, content: content)
:
224 | }
225 |
226 | func dismissButton() -> some View {
| | `- error: 'View' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing instance method
227 | Button(action: {
228 | isSheetPresented = false
/Users/admin/builder/spi-builder-workspace/Sources/TVDatePicker/internal/Binding+onChange.swift:12:60: error: 'Binding' is only available in macOS 10.15 or newer
9 |
10 | @available(iOS, unavailable)
11 | extension Binding {
| `- note: add @available attribute to enclosing extension
12 | func onChange(_ handler: @escaping (Value) -> Void) -> Binding<Value> {
| | `- error: 'Binding' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing instance method
13 | Binding(
14 | get: { wrappedValue },
/Users/admin/builder/spi-builder-workspace/Sources/TVDatePicker/internal/Binding+onChange.swift:11:11: error: 'Binding' is only available in macOS 10.15 or newer
9 |
10 | @available(iOS, unavailable)
11 | extension Binding {
| | `- error: 'Binding' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing extension
12 | func onChange(_ handler: @escaping (Value) -> Void) -> Binding<Value> {
13 | Binding(
/Users/admin/builder/spi-builder-workspace/Sources/TVDatePicker/internal/View+navigationTitle.swift:12:46: error: 'Text' is only available in macOS 10.15 or newer
9 |
10 | @available(iOS, unavailable)
11 | extension View {
| `- note: add @available attribute to enclosing extension
12 | @ViewBuilder func navigationTitle(title: Text) -> some View {
| | `- error: 'Text' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing instance method
13 | if #available(tvOS 14, *) {
14 | self.navigationTitle(title)
/Users/admin/builder/spi-builder-workspace/Sources/TVDatePicker/internal/View+navigationTitle.swift:12:60: error: 'View' is only available in macOS 10.15 or newer
9 |
10 | @available(iOS, unavailable)
11 | extension View {
| `- note: add @available attribute to enclosing extension
12 | @ViewBuilder func navigationTitle(title: Text) -> some View {
| | `- error: 'View' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing instance method
13 | if #available(tvOS 14, *) {
14 | self.navigationTitle(title)
/Users/admin/builder/spi-builder-workspace/Sources/TVDatePicker/internal/View+navigationTitle.swift:12:6: error: 'ViewBuilder' is only available in macOS 10.15 or newer
9 |
10 | @available(iOS, unavailable)
11 | extension View {
| `- note: add @available attribute to enclosing extension
12 | @ViewBuilder func navigationTitle(title: Text) -> some View {
| | `- note: add @available attribute to enclosing instance method
| `- error: 'ViewBuilder' is only available in macOS 10.15 or newer
13 | if #available(tvOS 14, *) {
14 | self.navigationTitle(title)
/Users/admin/builder/spi-builder-workspace/Sources/TVDatePicker/internal/View+navigationTitle.swift:11:11: error: 'View' is only available in macOS 10.15 or newer
9 |
10 | @available(iOS, unavailable)
11 | extension View {
| | `- error: 'View' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing extension
12 | @ViewBuilder func navigationTitle(title: Text) -> some View {
13 | if #available(tvOS 14, *) {
/Users/admin/builder/spi-builder-workspace/Sources/TVDatePicker/internal/View+toolbar.swift:12:27: error: 'View' is only available in macOS 10.15 or newer
9 |
10 | @available(iOS, unavailable)
11 | extension View {
| `- note: add @available attribute to enclosing extension
12 | func toolbar<Leading: View>(leading: Leading) -> some View {
| | `- error: 'View' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing instance method
13 | toolbar(leading: leading, trailing: EmptyView())
14 | }
/Users/admin/builder/spi-builder-workspace/Sources/TVDatePicker/internal/View+toolbar.swift:12:59: error: 'View' is only available in macOS 10.15 or newer
9 |
10 | @available(iOS, unavailable)
11 | extension View {
| `- note: add @available attribute to enclosing extension
12 | func toolbar<Leading: View>(leading: Leading) -> some View {
| | `- error: 'View' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing instance method
13 | toolbar(leading: leading, trailing: EmptyView())
14 | }
/Users/admin/builder/spi-builder-workspace/Sources/TVDatePicker/internal/View+toolbar.swift:16:28: error: 'View' is only available in macOS 10.15 or newer
9 |
10 | @available(iOS, unavailable)
11 | extension View {
| `- note: add @available attribute to enclosing extension
12 | func toolbar<Leading: View>(leading: Leading) -> some View {
13 | toolbar(leading: leading, trailing: EmptyView())
14 | }
15 |
16 | func toolbar<Trailing: View>(trailing: Trailing) -> some View {
| | `- error: 'View' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing instance method
17 | toolbar(leading: EmptyView(), trailing: trailing)
18 | }
/Users/admin/builder/spi-builder-workspace/Sources/TVDatePicker/internal/View+toolbar.swift:16:62: error: 'View' is only available in macOS 10.15 or newer
9 |
10 | @available(iOS, unavailable)
11 | extension View {
| `- note: add @available attribute to enclosing extension
12 | func toolbar<Leading: View>(leading: Leading) -> some View {
13 | toolbar(leading: leading, trailing: EmptyView())
14 | }
15 |
16 | func toolbar<Trailing: View>(trailing: Trailing) -> some View {
| | `- error: 'View' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing instance method
17 | toolbar(leading: EmptyView(), trailing: trailing)
18 | }
/Users/admin/builder/spi-builder-workspace/Sources/TVDatePicker/internal/View+toolbar.swift:20:40: error: 'View' is only available in macOS 10.15 or newer
9 |
10 | @available(iOS, unavailable)
11 | extension View {
| `- note: add @available attribute to enclosing extension
12 | func toolbar<Leading: View>(leading: Leading) -> some View {
13 | toolbar(leading: leading, trailing: EmptyView())
:
18 | }
19 |
20 | @ViewBuilder func toolbar<Leading: View, Trailing: View>(leading: Leading, trailing: Trailing) -> some View {
| | `- error: 'View' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing instance method
21 | if #available(tvOS 14, *) {
22 | if type(of: leading) != EmptyView.self && type(of: trailing) != EmptyView.self {
/Users/admin/builder/spi-builder-workspace/Sources/TVDatePicker/internal/View+toolbar.swift:20:56: error: 'View' is only available in macOS 10.15 or newer
9 |
10 | @available(iOS, unavailable)
11 | extension View {
| `- note: add @available attribute to enclosing extension
12 | func toolbar<Leading: View>(leading: Leading) -> some View {
13 | toolbar(leading: leading, trailing: EmptyView())
:
18 | }
19 |
20 | @ViewBuilder func toolbar<Leading: View, Trailing: View>(leading: Leading, trailing: Trailing) -> some View {
| | `- error: 'View' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing instance method
21 | if #available(tvOS 14, *) {
22 | if type(of: leading) != EmptyView.self && type(of: trailing) != EmptyView.self {
/Users/admin/builder/spi-builder-workspace/Sources/TVDatePicker/internal/View+toolbar.swift:20:108: error: 'View' is only available in macOS 10.15 or newer
9 |
10 | @available(iOS, unavailable)
11 | extension View {
| `- note: add @available attribute to enclosing extension
12 | func toolbar<Leading: View>(leading: Leading) -> some View {
13 | toolbar(leading: leading, trailing: EmptyView())
:
18 | }
19 |
20 | @ViewBuilder func toolbar<Leading: View, Trailing: View>(leading: Leading, trailing: Trailing) -> some View {
| | `- error: 'View' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing instance method
21 | if #available(tvOS 14, *) {
22 | if type(of: leading) != EmptyView.self && type(of: trailing) != EmptyView.self {
/Users/admin/builder/spi-builder-workspace/Sources/TVDatePicker/internal/View+toolbar.swift:20:6: error: 'ViewBuilder' is only available in macOS 10.15 or newer
9 |
10 | @available(iOS, unavailable)
11 | extension View {
| `- note: add @available attribute to enclosing extension
12 | func toolbar<Leading: View>(leading: Leading) -> some View {
13 | toolbar(leading: leading, trailing: EmptyView())
:
18 | }
19 |
20 | @ViewBuilder func toolbar<Leading: View, Trailing: View>(leading: Leading, trailing: Trailing) -> some View {
| | `- note: add @available attribute to enclosing instance method
| `- error: 'ViewBuilder' is only available in macOS 10.15 or newer
21 | if #available(tvOS 14, *) {
22 | if type(of: leading) != EmptyView.self && type(of: trailing) != EmptyView.self {
/Users/admin/builder/spi-builder-workspace/Sources/TVDatePicker/internal/View+toolbar.swift:11:11: error: 'View' is only available in macOS 10.15 or newer
9 |
10 | @available(iOS, unavailable)
11 | extension View {
| | `- error: 'View' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing extension
12 | func toolbar<Leading: View>(leading: Leading) -> some View {
13 | toolbar(leading: leading, trailing: EmptyView())
[5/8] Compiling TVDatePicker TVDatePicker.swift
/Users/admin/builder/spi-builder-workspace/Sources/TVDatePicker/API/TVDatePicker.swift:16:31: error: 'SegmentedPickerStyle' is only available in macOS 10.15 or newer
11 | @available(iOS, unavailable)
12 | /// A `SwiftUI` date picker view, especially for tvOS.
13 | public struct TVDatePicker<Label: View>: View {
| `- note: add @available attribute to enclosing generic struct
14 | // MARK: - Private
15 |
16 | private let pickerStyle = SegmentedPickerStyle()
| `- error: 'SegmentedPickerStyle' is only available in macOS 10.15 or newer
17 |
18 | private var currentlySelectedYear: Int {
/Users/admin/builder/spi-builder-workspace/Sources/TVDatePicker/API/TVDatePicker.swift:40:6: error: 'State' is only available in macOS 10.15 or newer
11 | @available(iOS, unavailable)
12 | /// A `SwiftUI` date picker view, especially for tvOS.
13 | public struct TVDatePicker<Label: View>: View {
| `- note: add @available attribute to enclosing generic struct
14 | // MARK: - Private
15 |
:
38 | private var minutes: Array<Int> { Array(stride(from: 0, to: 60, by: 5)) }
39 |
40 | @State private var isSheetPresented = false
| `- error: 'State' is only available in macOS 10.15 or newer
41 | @State private var selectedYear: Int = 0
42 | @State private var selectedMonth: Int = 0
/Users/admin/builder/spi-builder-workspace/Sources/TVDatePicker/API/TVDatePicker.swift:41:6: error: 'State' is only available in macOS 10.15 or newer
11 | @available(iOS, unavailable)
12 | /// A `SwiftUI` date picker view, especially for tvOS.
13 | public struct TVDatePicker<Label: View>: View {
| `- note: add @available attribute to enclosing generic struct
14 | // MARK: - Private
15 |
:
39 |
40 | @State private var isSheetPresented = false
41 | @State private var selectedYear: Int = 0
| `- error: 'State' is only available in macOS 10.15 or newer
42 | @State private var selectedMonth: Int = 0
43 | @State private var selectedDay: Int = 0
/Users/admin/builder/spi-builder-workspace/Sources/TVDatePicker/API/TVDatePicker.swift:42:6: error: 'State' is only available in macOS 10.15 or newer
11 | @available(iOS, unavailable)
12 | /// A `SwiftUI` date picker view, especially for tvOS.
13 | public struct TVDatePicker<Label: View>: View {
| `- note: add @available attribute to enclosing generic struct
14 | // MARK: - Private
15 |
:
40 | @State private var isSheetPresented = false
41 | @State private var selectedYear: Int = 0
42 | @State private var selectedMonth: Int = 0
| `- error: 'State' is only available in macOS 10.15 or newer
43 | @State private var selectedDay: Int = 0
44 | @State private var selectedHour: Int = 0
/Users/admin/builder/spi-builder-workspace/Sources/TVDatePicker/API/TVDatePicker.swift:43:6: error: 'State' is only available in macOS 10.15 or newer
11 | @available(iOS, unavailable)
12 | /// A `SwiftUI` date picker view, especially for tvOS.
13 | public struct TVDatePicker<Label: View>: View {
| `- note: add @available attribute to enclosing generic struct
14 | // MARK: - Private
15 |
:
41 | @State private var selectedYear: Int = 0
42 | @State private var selectedMonth: Int = 0
43 | @State private var selectedDay: Int = 0
| `- error: 'State' is only available in macOS 10.15 or newer
44 | @State private var selectedHour: Int = 0
45 | @State private var selectedMinute: Int = 0
/Users/admin/builder/spi-builder-workspace/Sources/TVDatePicker/API/TVDatePicker.swift:44:6: error: 'State' is only available in macOS 10.15 or newer
11 | @available(iOS, unavailable)
12 | /// A `SwiftUI` date picker view, especially for tvOS.
13 | public struct TVDatePicker<Label: View>: View {
| `- note: add @available attribute to enclosing generic struct
14 | // MARK: - Private
15 |
:
42 | @State private var selectedMonth: Int = 0
43 | @State private var selectedDay: Int = 0
44 | @State private var selectedHour: Int = 0
| `- error: 'State' is only available in macOS 10.15 or newer
45 | @State private var selectedMinute: Int = 0
46 |
/Users/admin/builder/spi-builder-workspace/Sources/TVDatePicker/API/TVDatePicker.swift:45:6: error: 'State' is only available in macOS 10.15 or newer
11 | @available(iOS, unavailable)
12 | /// A `SwiftUI` date picker view, especially for tvOS.
13 | public struct TVDatePicker<Label: View>: View {
| `- note: add @available attribute to enclosing generic struct
14 | // MARK: - Private
15 |
:
43 | @State private var selectedDay: Int = 0
44 | @State private var selectedHour: Int = 0
45 | @State private var selectedMinute: Int = 0
| `- error: 'State' is only available in macOS 10.15 or newer
46 |
47 | // MARK: - Internal
/Users/admin/builder/spi-builder-workspace/Sources/TVDatePicker/API/TVDatePicker.swift:49:19: error: 'LocalizedStringKey' is only available in macOS 10.15 or newer
11 | @available(iOS, unavailable)
12 | /// A `SwiftUI` date picker view, especially for tvOS.
13 | public struct TVDatePicker<Label: View>: View {
| `- note: add @available attribute to enclosing generic struct
14 | // MARK: - Private
15 |
:
47 | // MARK: - Internal
48 |
49 | var titleKey: LocalizedStringKey
| `- error: 'LocalizedStringKey' is only available in macOS 10.15 or newer
50 | @Binding var selection: Date
51 | var minimumDate: Date
/Users/admin/builder/spi-builder-workspace/Sources/TVDatePicker/API/TVDatePicker.swift:50:6: error: 'Binding' is only available in macOS 10.15 or newer
11 | @available(iOS, unavailable)
12 | /// A `SwiftUI` date picker view, especially for tvOS.
13 | public struct TVDatePicker<Label: View>: View {
| `- note: add @available attribute to enclosing generic struct
14 | // MARK: - Private
15 |
:
48 |
49 | var titleKey: LocalizedStringKey
50 | @Binding var selection: Date
| `- error: 'Binding' is only available in macOS 10.15 or newer
51 | var minimumDate: Date
52 | var displayedComponents: Components
/Users/admin/builder/spi-builder-workspace/Sources/TVDatePicker/API/TVDatePicker.swift:79:27: error: 'View' is only available in macOS 10.15 or newer
11 | @available(iOS, unavailable)
12 | /// A `SwiftUI` date picker view, especially for tvOS.
13 | public struct TVDatePicker<Label: View>: View {
| `- note: add @available attribute to enclosing generic struct
14 | // MARK: - Private
15 |
:
77 | }
78 |
79 | public var body: some View {
| | `- error: 'View' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing property
80 | Button {
81 | isSheetPresented = true
/Users/admin/builder/spi-builder-workspace/Sources/TVDatePicker/API/TVDatePicker.swift:129:21: error: 'LocalizedStringKey' is only available in macOS 10.15 or newer
11 | @available(iOS, unavailable)
12 | /// A `SwiftUI` date picker view, especially for tvOS.
13 | public struct TVDatePicker<Label: View>: View {
| `- note: add @available attribute to enclosing generic struct
14 | // MARK: - Private
15 |
:
126 | /// - dateFormatter: The date formatter used for displaying the current selection, defaults to `DateFormatters.defaultFormatter`.
127 | /// - label: A view that describes the use of the date.
128 | public init(
| `- note: add @available attribute to enclosing initializer
129 | _ titleKey: LocalizedStringKey,
| `- error: 'LocalizedStringKey' is only available in macOS 10.15 or newer
130 | selection: Binding<Date>,
131 | minimumDate: Date,
/Users/admin/builder/spi-builder-workspace/Sources/TVDatePicker/API/TVDatePicker.swift:130:20: error: 'Binding' is only available in macOS 10.15 or newer
11 | @available(iOS, unavailable)
12 | /// A `SwiftUI` date picker view, especially for tvOS.
13 | public struct TVDatePicker<Label: View>: View {
| `- note: add @available attribute to enclosing generic struct
14 | // MARK: - Private
15 |
:
126 | /// - dateFormatter: The date formatter used for displaying the current selection, defaults to `DateFormatters.defaultFormatter`.
127 | /// - label: A view that describes the use of the date.
128 | public init(
| `- note: add @available attribute to enclosing initializer
129 | _ titleKey: LocalizedStringKey,
130 | selection: Binding<Date>,
| `- error: 'Binding' is only available in macOS 10.15 or newer
131 | minimumDate: Date,
132 | displayedComponents: Components = .all,
/Users/admin/builder/spi-builder-workspace/Sources/TVDatePicker/API/TVDatePicker.swift:135:10: error: 'ViewBuilder' is only available in macOS 10.15 or newer
11 | @available(iOS, unavailable)
12 | /// A `SwiftUI` date picker view, especially for tvOS.
13 | public struct TVDatePicker<Label: View>: View {
| `- note: add @available attribute to enclosing generic struct
14 | // MARK: - Private
15 |
:
126 | /// - dateFormatter: The date formatter used for displaying the current selection, defaults to `DateFormatters.defaultFormatter`.
127 | /// - label: A view that describes the use of the date.
128 | public init(
| `- note: add @available attribute to enclosing initializer
129 | _ titleKey: LocalizedStringKey,
130 | selection: Binding<Date>,
:
133 | calendar: Calendar = .current,
134 | dateFormatter: DateFormatter = DateFormatters.defaultFormatter,
135 | @ViewBuilder label: @escaping () -> Label
| `- error: 'ViewBuilder' is only available in macOS 10.15 or newer
136 | ) {
137 | self.titleKey = titleKey
/Users/admin/builder/spi-builder-workspace/Sources/TVDatePicker/API/DateFormatters.swift:15:23: warning: static property 'defaultFormatter' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
13 | public enum DateFormatters {
14 | /// The default date formatter which uses the `short` date style and `none` time style.
15 | public static var defaultFormatter: DateFormatter = {
| |- warning: static property 'defaultFormatter' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'defaultFormatter' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'defaultFormatter' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
16 | let dateFormatter = DateFormatter()
17 | dateFormatter.dateStyle = .short
/Users/admin/builder/spi-builder-workspace/Sources/TVDatePicker/API/TVDatePicker.swift:13:35: error: 'View' is only available in macOS 10.15 or newer
11 | @available(iOS, unavailable)
12 | /// A `SwiftUI` date picker view, especially for tvOS.
13 | public struct TVDatePicker<Label: View>: View {
| | `- error: 'View' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing generic struct
14 | // MARK: - Private
15 |
/Users/admin/builder/spi-builder-workspace/Sources/TVDatePicker/API/TVDatePicker.swift:155:55: error: 'View' is only available in macOS 10.15 or newer
152 |
153 | @available(iOS, unavailable)
154 | private extension TVDatePicker {
| `- note: add @available attribute to enclosing extension
155 | @ViewBuilder func navigationViewContent() -> some View {
| | `- error: 'View' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing instance method
156 | VStack(alignment: .leading, content: content)
157 | .onAppear(perform: onAppear)
/Users/admin/builder/spi-builder-workspace/Sources/TVDatePicker/API/TVDatePicker.swift:155:6: error: 'ViewBuilder' is only available in macOS 10.15 or newer
152 |
153 | @available(iOS, unavailable)
154 | private extension TVDatePicker {
| `- note: add @available attribute to enclosing extension
155 | @ViewBuilder func navigationViewContent() -> some View {
| | `- note: add @available attribute to enclosing instance method
| `- error: 'ViewBuilder' is only available in macOS 10.15 or newer
156 | VStack(alignment: .leading, content: content)
157 | .onAppear(perform: onAppear)
/Users/admin/builder/spi-builder-workspace/Sources/TVDatePicker/API/TVDatePicker.swift:162:41: error: 'View' is only available in macOS 10.15 or newer
152 |
153 | @available(iOS, unavailable)
154 | private extension TVDatePicker {
| `- note: add @available attribute to enclosing extension
155 | @ViewBuilder func navigationViewContent() -> some View {
156 | VStack(alignment: .leading, content: content)
:
160 | }
161 |
162 | @ViewBuilder func content() -> some View {
| | `- error: 'View' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing instance method
163 | Text(dateFormatter.string(from: selection)).font(.headline)
164 |
/Users/admin/builder/spi-builder-workspace/Sources/TVDatePicker/API/TVDatePicker.swift:162:6: error: 'ViewBuilder' is only available in macOS 10.15 or newer
152 |
153 | @available(iOS, unavailable)
154 | private extension TVDatePicker {
| `- note: add @available attribute to enclosing extension
155 | @ViewBuilder func navigationViewContent() -> some View {
156 | VStack(alignment: .leading, content: content)
:
160 | }
161 |
162 | @ViewBuilder func content() -> some View {
| | `- note: add @available attribute to enclosing instance method
| `- error: 'ViewBuilder' is only available in macOS 10.15 or newer
163 | Text(dateFormatter.string(from: selection)).font(.headline)
164 |
/Users/admin/builder/spi-builder-workspace/Sources/TVDatePicker/API/TVDatePicker.swift:226:34: error: 'View' is only available in macOS 10.15 or newer
152 |
153 | @available(iOS, unavailable)
154 | private extension TVDatePicker {
| `- note: add @available attribute to enclosing extension
155 | @ViewBuilder func navigationViewContent() -> some View {
156 | VStack(alignment: .leading, content: content)
:
224 | }
225 |
226 | func dismissButton() -> some View {
| | `- error: 'View' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing instance method
227 | Button(action: {
228 | isSheetPresented = false
/Users/admin/builder/spi-builder-workspace/Sources/TVDatePicker/API/TVDatePicker.swift:95:24: warning: result builder 'ViewBuilder' does not implement 'buildLimitedAvailability'; this code may crash on earlier versions of the OS
93 | isSheetPresented = false
94 | }) {
95 | if #available(tvOS 14.2, *) {
| `- warning: result builder 'ViewBuilder' does not implement 'buildLimitedAvailability'; this code may crash on earlier versions of the OS
96 | NavigationView(content: navigationViewContent)
97 | // We have to avoid a navigation view on tvOS 14 because the focus engine is broken after focusing the dismiss button in the toolbar.
/Users/admin/builder/spi-builder-workspace/Sources/TVDatePicker/API/TVDatePicker.swift:80:9: error: 'Button' is only available in macOS 10.15 or newer
11 | @available(iOS, unavailable)
12 | /// A `SwiftUI` date picker view, especially for tvOS.
13 | public struct TVDatePicker<Label: View>: View {
| `- note: add @available attribute to enclosing generic struct
14 | // MARK: - Private
15 |
:
77 | }
78 |
79 | public var body: some View {
| `- note: add @available attribute to enclosing property
80 | Button {
| |- error: 'Button' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
81 | isSheetPresented = true
82 | } label: {
/Users/admin/builder/spi-builder-workspace/Sources/TVDatePicker/API/TVDatePicker.swift:81:13: error: setter for 'isSheetPresented' is only available in macOS 10.15 or newer
11 | @available(iOS, unavailable)
12 | /// A `SwiftUI` date picker view, especially for tvOS.
13 | public struct TVDatePicker<Label: View>: View {
| `- note: add @available attribute to enclosing generic struct
14 | // MARK: - Private
15 |
:
77 | }
78 |
79 | public var body: some View {
| `- note: add @available attribute to enclosing property
80 | Button {
81 | isSheetPresented = true
| |- error: setter for 'isSheetPresented' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
82 | } label: {
83 | HStack {
/Users/admin/builder/spi-builder-workspace/Sources/TVDatePicker/API/TVDatePicker.swift:83:13: error: 'HStack' is only available in macOS 10.15 or newer
11 | @available(iOS, unavailable)
12 | /// A `SwiftUI` date picker view, especially for tvOS.
13 | public struct TVDatePicker<Label: View>: View {
| `- note: add @available attribute to enclosing generic struct
14 | // MARK: - Private
15 |
:
77 | }
78 |
79 | public var body: some View {
| `- note: add @available attribute to enclosing property
80 | Button {
81 | isSheetPresented = true
82 | } label: {
83 | HStack {
| |- error: 'HStack' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
84 | label()
85 | Spacer()
/Users/admin/builder/spi-builder-workspace/Sources/TVDatePicker/API/TVDatePicker.swift:85:17: 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
11 | @available(iOS, unavailable)
12 | /// A `SwiftUI` date picker view, especially for tvOS.
13 | public struct TVDatePicker<Label: View>: View {
| `- note: add @available attribute to enclosing generic struct
14 | // MARK: - Private
15 |
:
77 | }
78 |
79 | public var body: some View {
| `- note: add @available attribute to enclosing property
80 | Button {
81 | isSheetPresented = true
:
83 | HStack {
84 | label()
85 | 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
86 | Text(dateFormatter.string(from: selection))
87 | Image(systemName: "chevron.right")
/Users/admin/builder/spi-builder-workspace/Sources/TVDatePicker/API/TVDatePicker.swift:85:17: error: 'Spacer' is only available in macOS 10.15 or newer
11 | @available(iOS, unavailable)
12 | /// A `SwiftUI` date picker view, especially for tvOS.
13 | public struct TVDatePicker<Label: View>: View {
| `- note: add @available attribute to enclosing generic struct
14 | // MARK: - Private
15 |
:
77 | }
78 |
79 | public var body: some View {
| `- note: add @available attribute to enclosing property
80 | Button {
81 | isSheetPresented = true
:
83 | HStack {
84 | label()
85 | Spacer()
| |- error: 'Spacer' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
86 | Text(dateFormatter.string(from: selection))
87 | Image(systemName: "chevron.right")
/Users/admin/builder/spi-builder-workspace/Sources/TVDatePicker/API/TVDatePicker.swift:86:17: 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
11 | @available(iOS, unavailable)
12 | /// A `SwiftUI` date picker view, especially for tvOS.
13 | public struct TVDatePicker<Label: View>: View {
| `- note: add @available attribute to enclosing generic struct
14 | // MARK: - Private
15 |
:
77 | }
78 |
79 | public var body: some View {
| `- note: add @available attribute to enclosing property
80 | Button {
81 | isSheetPresented = true
:
84 | label()
85 | Spacer()
86 | Text(dateFormatter.string(from: selection))
| |- 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
87 | Image(systemName: "chevron.right")
88 | }
/Users/admin/builder/spi-builder-workspace/Sources/TVDatePicker/API/TVDatePicker.swift:86:17: error: 'Text' is only available in macOS 10.15 or newer
11 | @available(iOS, unavailable)
12 | /// A `SwiftUI` date picker view, especially for tvOS.
13 | public struct TVDatePicker<Label: View>: View {
| `- note: add @available attribute to enclosing generic struct
14 | // MARK: - Private
15 |
:
77 | }
78 |
79 | public var body: some View {
| `- note: add @available attribute to enclosing property
80 | Button {
81 | isSheetPresented = true
:
84 | label()
85 | Spacer()
86 | Text(dateFormatter.string(from: selection))
| |- error: 'Text' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
87 | Image(systemName: "chevron.right")
88 | }
/Users/admin/builder/spi-builder-workspace/Sources/TVDatePicker/API/TVDatePicker.swift:87:17: warning: conformance of 'Image' to 'View' is only available in macOS 10.15 or newer; this is an error in the Swift 6 language mode
11 | @available(iOS, unavailable)
12 | /// A `SwiftUI` date picker view, especially for tvOS.
13 | public struct TVDatePicker<Label: View>: View {
| `- note: add @available attribute to enclosing generic struct
14 | // MARK: - Private
15 |
:
77 | }
78 |
79 | public var body: some View {
| `- note: add @available attribute to enclosing property
80 | Button {
81 | isSheetPresented = true
:
85 | Spacer()
86 | Text(dateFormatter.string(from: selection))
87 | Image(systemName: "chevron.right")
| |- warning: conformance of 'Image' to 'View' is only available in macOS 10.15 or newer; this is an error in the Swift 6 language mode
| `- note: add 'if #available' version check
88 | }
89 | }
/Users/admin/builder/spi-builder-workspace/Sources/TVDatePicker/API/TVDatePicker.swift:87:17: error: 'Image' is only available in macOS 10.15 or newer
11 | @available(iOS, unavailable)
12 | /// A `SwiftUI` date picker view, especially for tvOS.
13 | public struct TVDatePicker<Label: View>: View {
| `- note: add @available attribute to enclosing generic struct
14 | // MARK: - Private
15 |
:
77 | }
78 |
79 | public var body: some View {
| `- note: add @available attribute to enclosing property
80 | Button {
81 | isSheetPresented = true
:
85 | Spacer()
86 | Text(dateFormatter.string(from: selection))
87 | Image(systemName: "chevron.right")
| |- error: 'Image' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
88 | }
89 | }
/Users/admin/builder/spi-builder-workspace/Sources/TVDatePicker/API/TVDatePicker.swift:87:17: error: 'init(systemName:)' is only available in macOS 11.0 or newer
11 | @available(iOS, unavailable)
12 | /// A `SwiftUI` date picker view, especially for tvOS.
13 | public struct TVDatePicker<Label: View>: View {
| `- note: add @available attribute to enclosing generic struct
14 | // MARK: - Private
15 |
:
77 | }
78 |
79 | public var body: some View {
| `- note: add @available attribute to enclosing property
80 | Button {
81 | isSheetPresented = true
:
85 | Spacer()
86 | Text(dateFormatter.string(from: selection))
87 | Image(systemName: "chevron.right")
| |- error: 'init(systemName:)' is only available in macOS 11.0 or newer
| `- note: add 'if #available' version check
88 | }
89 | }
/Users/admin/builder/spi-builder-workspace/Sources/TVDatePicker/API/TVDatePicker.swift:83:20: 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
11 | @available(iOS, unavailable)
12 | /// A `SwiftUI` date picker view, especially for tvOS.
13 | public struct TVDatePicker<Label: View>: View {
| `- note: add @available attribute to enclosing generic struct
14 | // MARK: - Private
15 |
:
77 | }
78 |
79 | public var body: some View {
| `- note: add @available attribute to enclosing property
80 | Button {
81 | isSheetPresented = true
82 | } label: {
83 | 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
84 | label()
85 | Spacer()
/Users/admin/builder/spi-builder-workspace/Sources/TVDatePicker/API/TVDatePicker.swift:83:20: 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
11 | @available(iOS, unavailable)
12 | /// A `SwiftUI` date picker view, especially for tvOS.
13 | public struct TVDatePicker<Label: View>: View {
| `- note: add @available attribute to enclosing generic struct
14 | // MARK: - Private
15 |
:
77 | }
78 |
79 | public var body: some View {
| `- note: add @available attribute to enclosing property
80 | Button {
81 | isSheetPresented = true
82 | } label: {
83 | 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
84 | label()
85 | Spacer()
/Users/admin/builder/spi-builder-workspace/Sources/TVDatePicker/API/TVDatePicker.swift:83:20: warning: conformance of 'Image' to 'View' is only available in macOS 10.15 or newer; this is an error in the Swift 6 language mode
11 | @available(iOS, unavailable)
12 | /// A `SwiftUI` date picker view, especially for tvOS.
13 | public struct TVDatePicker<Label: View>: View {
| `- note: add @available attribute to enclosing generic struct
14 | // MARK: - Private
15 |
:
77 | }
78 |
79 | public var body: some View {
| `- note: add @available attribute to enclosing property
80 | Button {
81 | isSheetPresented = true
82 | } label: {
83 | HStack {
| |- warning: conformance of 'Image' to 'View' is only available in macOS 10.15 or newer; this is an error in the Swift 6 language mode
| `- note: add 'if #available' version check
84 | label()
85 | Spacer()
/Users/admin/builder/spi-builder-workspace/Sources/TVDatePicker/API/TVDatePicker.swift:90:10: error: 'background(_:alignment:)' is only available in macOS 10.15 or newer
11 | @available(iOS, unavailable)
12 | /// A `SwiftUI` date picker view, especially for tvOS.
13 | public struct TVDatePicker<Label: View>: View {
| `- note: add @available attribute to enclosing generic struct
14 | // MARK: - Private
15 |
:
77 | }
78 |
79 | public var body: some View {
| `- note: add @available attribute to enclosing property
80 | Button {
81 | isSheetPresented = true
:
88 | }
89 | }
90 | .background(
| |- error: 'background(_:alignment:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
91 | EmptyView()
92 | .sheet(isPresented: $isSheetPresented, onDismiss: {
/Users/admin/builder/spi-builder-workspace/Sources/TVDatePicker/API/TVDatePicker.swift:91:13: error: 'EmptyView' is only available in macOS 10.15 or newer
11 | @available(iOS, unavailable)
12 | /// A `SwiftUI` date picker view, especially for tvOS.
13 | public struct TVDatePicker<Label: View>: View {
| `- note: add @available attribute to enclosing generic struct
14 | // MARK: - Private
15 |
:
77 | }
78 |
79 | public var body: some View {
| `- note: add @available attribute to enclosing property
80 | Button {
81 | isSheetPresented = true
:
89 | }
90 | .background(
91 | EmptyView()
| |- error: 'EmptyView' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
92 | .sheet(isPresented: $isSheetPresented, onDismiss: {
93 | isSheetPresented = false
/Users/admin/builder/spi-builder-workspace/Sources/TVDatePicker/API/TVDatePicker.swift:92:18: error: 'sheet(isPresented:onDismiss:content:)' is only available in macOS 10.15 or newer
11 | @available(iOS, unavailable)
12 | /// A `SwiftUI` date picker view, especially for tvOS.
13 | public struct TVDatePicker<Label: View>: View {
| `- note: add @available attribute to enclosing generic struct
14 | // MARK: - Private
15 |
:
77 | }
78 |
79 | public var body: some View {
| `- note: add @available attribute to enclosing property
80 | Button {
81 | isSheetPresented = true
:
90 | .background(
91 | EmptyView()
92 | .sheet(isPresented: $isSheetPresented, onDismiss: {
| |- error: 'sheet(isPresented:onDismiss:content:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
93 | isSheetPresented = false
94 | }) {
/Users/admin/builder/spi-builder-workspace/Sources/TVDatePicker/API/TVDatePicker.swift:93:21: error: setter for 'isSheetPresented' is only available in macOS 10.15 or newer
11 | @available(iOS, unavailable)
12 | /// A `SwiftUI` date picker view, especially for tvOS.
13 | public struct TVDatePicker<Label: View>: View {
| `- note: add @available attribute to enclosing generic struct
14 | // MARK: - Private
15 |
:
77 | }
78 |
79 | public var body: some View {
| `- note: add @available attribute to enclosing property
80 | Button {
81 | isSheetPresented = true
:
91 | EmptyView()
92 | .sheet(isPresented: $isSheetPresented, onDismiss: {
93 | isSheetPresented = false
| |- error: setter for 'isSheetPresented' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
94 | }) {
95 | if #available(tvOS 14.2, *) {
/Users/admin/builder/spi-builder-workspace/Sources/TVDatePicker/API/TVDatePicker.swift:96:25: error: 'NavigationView' is only available in macOS 10.15 or newer
11 | @available(iOS, unavailable)
12 | /// A `SwiftUI` date picker view, especially for tvOS.
13 | public struct TVDatePicker<Label: View>: View {
| `- note: add @available attribute to enclosing generic struct
14 | // MARK: - Private
15 |
:
77 | }
78 |
79 | public var body: some View {
| `- note: add @available attribute to enclosing property
80 | Button {
81 | isSheetPresented = true
:
94 | }) {
95 | if #available(tvOS 14.2, *) {
96 | NavigationView(content: navigationViewContent)
| |- error: 'NavigationView' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
97 | // We have to avoid a navigation view on tvOS 14 because the focus engine is broken after focusing the dismiss button in the toolbar.
98 | } else if #available(tvOS 14, *) {
/Users/admin/builder/spi-builder-workspace/Sources/TVDatePicker/API/TVDatePicker.swift:95:49: error: 'buildLimitedAvailability' is only available in macOS 11.0 or newer
11 | @available(iOS, unavailable)
12 | /// A `SwiftUI` date picker view, especially for tvOS.
13 | public struct TVDatePicker<Label: View>: View {
| `- note: add @available attribute to enclosing generic struct
14 | // MARK: - Private
15 |
:
77 | }
78 |
79 | public var body: some View {
| `- note: add @available attribute to enclosing property
80 | Button {
81 | isSheetPresented = true
:
93 | isSheetPresented = false
94 | }) {
95 | if #available(tvOS 14.2, *) {
| |- error: 'buildLimitedAvailability' is only available in macOS 11.0 or newer
| `- note: add 'if #available' version check
96 | NavigationView(content: navigationViewContent)
97 | // We have to avoid a navigation view on tvOS 14 because the focus engine is broken after focusing the dismiss button in the toolbar.
/Users/admin/builder/spi-builder-workspace/Sources/TVDatePicker/API/TVDatePicker.swift:95:49: error: 'buildEither(first:)' is only available in macOS 10.15 or newer
11 | @available(iOS, unavailable)
12 | /// A `SwiftUI` date picker view, especially for tvOS.
13 | public struct TVDatePicker<Label: View>: View {
| `- note: add @available attribute to enclosing generic struct
14 | // MARK: - Private
15 |
:
77 | }
78 |
79 | public var body: some View {
| `- note: add @available attribute to enclosing property
80 | Button {
81 | isSheetPresented = true
:
93 | isSheetPresented = false
94 | }) {
95 | if #available(tvOS 14.2, *) {
| |- error: 'buildEither(first:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
96 | NavigationView(content: navigationViewContent)
97 | // We have to avoid a navigation view on tvOS 14 because the focus engine is broken after focusing the dismiss button in the toolbar.
/Users/admin/builder/spi-builder-workspace/Sources/TVDatePicker/API/TVDatePicker.swift:95:49: error: 'buildEither(first:)' is only available in macOS 10.15 or newer
11 | @available(iOS, unavailable)
12 | /// A `SwiftUI` date picker view, especially for tvOS.
13 | public struct TVDatePicker<Label: View>: View {
| `- note: add @available attribute to enclosing generic struct
14 | // MARK: - Private
15 |
:
77 | }
78 |
79 | public var body: some View {
| `- note: add @available attribute to enclosing property
80 | Button {
81 | isSheetPresented = true
:
93 | isSheetPresented = false
94 | }) {
95 | if #available(tvOS 14.2, *) {
| |- error: 'buildEither(first:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
96 | NavigationView(content: navigationViewContent)
97 | // We have to avoid a navigation view on tvOS 14 because the focus engine is broken after focusing the dismiss button in the toolbar.
/Users/admin/builder/spi-builder-workspace/Sources/TVDatePicker/API/TVDatePicker.swift:98:54: error: 'buildEither(first:)' is only available in macOS 10.15 or newer
11 | @available(iOS, unavailable)
12 | /// A `SwiftUI` date picker view, especially for tvOS.
13 | public struct TVDatePicker<Label: View>: View {
| `- note: add @available attribute to enclosing generic struct
14 | // MARK: - Private
15 |
:
77 | }
78 |
79 | public var body: some View {
| `- note: add @available attribute to enclosing property
80 | Button {
81 | isSheetPresented = true
:
96 | NavigationView(content: navigationViewContent)
97 | // We have to avoid a navigation view on tvOS 14 because the focus engine is broken after focusing the dismiss button in the toolbar.
98 | } else if #available(tvOS 14, *) {
| |- error: 'buildEither(first:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
99 | VStack {
100 | HStack {
/Users/admin/builder/spi-builder-workspace/Sources/TVDatePicker/API/TVDatePicker.swift:98:54: error: 'buildEither(second:)' is only available in macOS 10.15 or newer
11 | @available(iOS, unavailable)
12 | /// A `SwiftUI` date picker view, especially for tvOS.
13 | public struct TVDatePicker<Label: View>: View {
| `- note: add @available attribute to enclosing generic struct
14 | // MARK: - Private
15 |
:
77 | }
78 |
79 | public var body: some View {
| `- note: add @available attribute to enclosing property
80 | Button {
81 | isSheetPresented = true
:
96 | NavigationView(content: navigationViewContent)
97 | // We have to avoid a navigation view on tvOS 14 because the focus engine is broken after focusing the dismiss button in the toolbar.
98 | } else if #available(tvOS 14, *) {
| |- error: 'buildEither(second:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
99 | VStack {
100 | HStack {
/Users/admin/builder/spi-builder-workspace/Sources/TVDatePicker/API/TVDatePicker.swift:111:28: error: 'buildEither(second:)' is only available in macOS 10.15 or newer
11 | @available(iOS, unavailable)
12 | /// A `SwiftUI` date picker view, especially for tvOS.
13 | public struct TVDatePicker<Label: View>: View {
| `- note: add @available attribute to enclosing generic struct
14 | // MARK: - Private
15 |
:
77 | }
78 |
79 | public var body: some View {
| `- note: add @available attribute to enclosing property
80 | Button {
81 | isSheetPresented = true
:
109 | Spacer()
110 | }
111 | } else {
| |- error: 'buildEither(second:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
112 | NavigationView(content: navigationViewContent)
113 | }
/Users/admin/builder/spi-builder-workspace/Sources/TVDatePicker/API/TVDatePicker.swift:94:20: warning: conformance of '_ConditionalContent<TrueContent, FalseContent>' to 'View' is only available in macOS 10.15 or newer; this is an error in the Swift 6 language mode
11 | @available(iOS, unavailable)
12 | /// A `SwiftUI` date picker view, especially for tvOS.
13 | public struct TVDatePicker<Label: View>: View {
| `- note: add @available attribute to enclosing generic struct
14 | // MARK: - Private
15 |
:
77 | }
78 |
79 | public var body: some View {
| `- note: add @available attribute to enclosing property
80 | Button {
81 | isSheetPresented = true
:
92 | .sheet(isPresented: $isSheetPresented, onDismiss: {
93 | isSheetPresented = false
94 | }) {
| |- warning: conformance of '_ConditionalContent<TrueContent, FalseContent>' to 'View' is only available in macOS 10.15 or newer; this is an error in the Swift 6 language mode
| `- note: add 'if #available' version check
95 | if #available(tvOS 14.2, *) {
96 | NavigationView(content: navigationViewContent)
/Users/admin/builder/spi-builder-workspace/Sources/TVDatePicker/API/DateFormatters.swift:23:23: warning: static property 'dateTimeFormatter' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
21 |
22 | /// A date time formatter which uses the `short` date style and `short` time style.
23 | public static var dateTimeFormatter: DateFormatter = {
| |- warning: static property 'dateTimeFormatter' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'dateTimeFormatter' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'dateTimeFormatter' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
24 | let dateFormatter = DateFormatter()
25 | dateFormatter.dateStyle = .short
/Users/admin/builder/spi-builder-workspace/Sources/TVDatePicker/API/TVDatePicker.swift:156:9: error: 'VStack' is only available in macOS 10.15 or newer
152 |
153 | @available(iOS, unavailable)
154 | private extension TVDatePicker {
| `- note: add @available attribute to enclosing extension
155 | @ViewBuilder func navigationViewContent() -> some View {
| `- note: add @available attribute to enclosing instance method
156 | VStack(alignment: .leading, content: content)
| |- error: 'VStack' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
157 | .onAppear(perform: onAppear)
158 | .navigationTitle(title: .init(titleKey))
/Users/admin/builder/spi-builder-workspace/Sources/TVDatePicker/API/TVDatePicker.swift:156:28: error: 'leading' is only available in macOS 10.15 or newer
152 |
153 | @available(iOS, unavailable)
154 | private extension TVDatePicker {
| `- note: add @available attribute to enclosing extension
155 | @ViewBuilder func navigationViewContent() -> some View {
| `- note: add @available attribute to enclosing instance method
156 | VStack(alignment: .leading, content: content)
| |- error: 'leading' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
157 | .onAppear(perform: onAppear)
158 | .navigationTitle(title: .init(titleKey))
/Users/admin/builder/spi-builder-workspace/Sources/TVDatePicker/API/TVDatePicker.swift:157:14: error: 'onAppear(perform:)' is only available in macOS 10.15 or newer
152 |
153 | @available(iOS, unavailable)
154 | private extension TVDatePicker {
| `- note: add @available attribute to enclosing extension
155 | @ViewBuilder func navigationViewContent() -> some View {
| `- note: add @available attribute to enclosing instance method
156 | VStack(alignment: .leading, content: content)
157 | .onAppear(perform: onAppear)
| |- error: 'onAppear(perform:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
158 | .navigationTitle(title: .init(titleKey))
159 | .toolbar(trailing: dismissButton())
/Users/admin/builder/spi-builder-workspace/Sources/TVDatePicker/API/TVDatePicker.swift:158:38: error: 'init(_:tableName:bundle:comment:)' is only available in macOS 10.15 or newer
152 |
153 | @available(iOS, unavailable)
154 | private extension TVDatePicker {
| `- note: add @available attribute to enclosing extension
155 | @ViewBuilder func navigationViewContent() -> some View {
| `- note: add @available attribute to enclosing instance method
156 | VStack(alignment: .leading, content: content)
157 | .onAppear(perform: onAppear)
158 | .navigationTitle(title: .init(titleKey))
| |- error: 'init(_:tableName:bundle:comment:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
159 | .toolbar(trailing: dismissButton())
160 | }
/Users/admin/builder/spi-builder-workspace/Sources/TVDatePicker/API/TVDatePicker.swift:163:9: 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
152 |
153 | @available(iOS, unavailable)
154 | private extension TVDatePicker {
| `- note: add @available attribute to enclosing extension
155 | @ViewBuilder func navigationViewContent() -> some View {
156 | VStack(alignment: .leading, content: content)
:
160 | }
161 |
162 | @ViewBuilder func content() -> some View {
| `- note: add @available attribute to enclosing instance method
163 | Text(dateFormatter.string(from: selection)).font(.headline)
| |- 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
164 |
165 | Divider()
/Users/admin/builder/spi-builder-workspace/Sources/TVDatePicker/API/TVDatePicker.swift:163:9: error: 'Text' is only available in macOS 10.15 or newer
152 |
153 | @available(iOS, unavailable)
154 | private extension TVDatePicker {
| `- note: add @available attribute to enclosing extension
155 | @ViewBuilder func navigationViewContent() -> some View {
156 | VStack(alignment: .leading, content: content)
:
160 | }
161 |
162 | @ViewBuilder func content() -> some View {
| `- note: add @available attribute to enclosing instance method
163 | Text(dateFormatter.string(from: selection)).font(.headline)
| |- error: 'Text' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
164 |
165 | Divider()
/Users/admin/builder/spi-builder-workspace/Sources/TVDatePicker/API/TVDatePicker.swift:163:53: error: 'font' is only available in macOS 10.15 or newer
152 |
153 | @available(iOS, unavailable)
154 | private extension TVDatePicker {
| `- note: add @available attribute to enclosing extension
155 | @ViewBuilder func navigationViewContent() -> some View {
156 | VStack(alignment: .leading, content: content)
:
160 | }
161 |
162 | @ViewBuilder func content() -> some View {
| `- note: add @available attribute to enclosing instance method
163 | Text(dateFormatter.string(from: selection)).font(.headline)
| |- error: 'font' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
164 |
165 | Divider()
/Users/admin/builder/spi-builder-workspace/Sources/TVDatePicker/API/TVDatePicker.swift:163:59: error: 'headline' is only available in macOS 10.15 or newer
152 |
153 | @available(iOS, unavailable)
154 | private extension TVDatePicker {
| `- note: add @available attribute to enclosing extension
155 | @ViewBuilder func navigationViewContent() -> some View {
156 | VStack(alignment: .leading, content: content)
:
160 | }
161 |
162 | @ViewBuilder func content() -> some View {
| `- note: add @available attribute to enclosing instance method
163 | Text(dateFormatter.string(from: selection)).font(.headline)
| |- error: 'headline' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
164 |
165 | Divider()
/Users/admin/builder/spi-builder-workspace/Sources/TVDatePicker/API/TVDatePicker.swift:165:9: error: 'Divider' is only available in macOS 10.15 or newer
152 |
153 | @available(iOS, unavailable)
154 | private extension TVDatePicker {
| `- note: add @available attribute to enclosing extension
155 | @ViewBuilder func navigationViewContent() -> some View {
156 | VStack(alignment: .leading, content: content)
:
160 | }
161 |
162 | @ViewBuilder func content() -> some View {
| `- note: add @available attribute to enclosing instance method
163 | Text(dateFormatter.string(from: selection)).font(.headline)
164 |
165 | Divider()
| |- error: 'Divider' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
166 |
167 | Text("mm/dd/yy")
/Users/admin/builder/spi-builder-workspace/Sources/TVDatePicker/API/TVDatePicker.swift:167:9: 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
152 |
153 | @available(iOS, unavailable)
154 | private extension TVDatePicker {
| `- note: add @available attribute to enclosing extension
155 | @ViewBuilder func navigationViewContent() -> some View {
156 | VStack(alignment: .leading, content: content)
:
160 | }
161 |
162 | @ViewBuilder func content() -> some View {
| `- note: add @available attribute to enclosing instance method
163 | Text(dateFormatter.string(from: selection)).font(.headline)
164 |
165 | Divider()
166 |
167 | Text("mm/dd/yy")
| |- 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
168 | .foregroundColor(.secondary)
169 | .font(.subheadline)
/Users/admin/builder/spi-builder-workspace/Sources/TVDatePicker/API/TVDatePicker.swift:167:9: error: 'Text' is only available in macOS 10.15 or newer
152 |
153 | @available(iOS, unavailable)
154 | private extension TVDatePicker {
| `- note: add @available attribute to enclosing extension
155 | @ViewBuilder func navigationViewContent() -> some View {
156 | VStack(alignment: .leading, content: content)
:
160 | }
161 |
162 | @ViewBuilder func content() -> some View {
| `- note: add @available attribute to enclosing instance method
163 | Text(dateFormatter.string(from: selection)).font(.headline)
164 |
165 | Divider()
166 |
167 | Text("mm/dd/yy")
| |- error: 'Text' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
168 | .foregroundColor(.secondary)
169 | .font(.subheadline)
/Users/admin/builder/spi-builder-workspace/Sources/TVDatePicker/API/TVDatePicker.swift:168:14: error: 'foregroundColor' is only available in macOS 10.15 or newer
152 |
153 | @available(iOS, unavailable)
154 | private extension TVDatePicker {
| `- note: add @available attribute to enclosing extension
155 | @ViewBuilder func navigationViewContent() -> some View {
156 | VStack(alignment: .leading, content: content)
:
160 | }
161 |
162 | @ViewBuilder func content() -> some View {
| `- note: add @available attribute to enclosing instance method
163 | Text(dateFormatter.string(from: selection)).font(.headline)
164 |
:
166 |
167 | Text("mm/dd/yy")
168 | .foregroundColor(.secondary)
| |- error: 'foregroundColor' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
169 | .font(.subheadline)
170 |
/Users/admin/builder/spi-builder-workspace/Sources/TVDatePicker/API/TVDatePicker.swift:168:31: error: 'secondary' is only available in macOS 10.15 or newer
152 |
153 | @available(iOS, unavailable)
154 | private extension TVDatePicker {
| `- note: add @available attribute to enclosing extension
155 | @ViewBuilder func navigationViewContent() -> some View {
156 | VStack(alignment: .leading, content: content)
:
160 | }
161 |
162 | @ViewBuilder func content() -> some View {
| `- note: add @available attribute to enclosing instance method
163 | Text(dateFormatter.string(from: selection)).font(.headline)
164 |
:
166 |
167 | Text("mm/dd/yy")
168 | .foregroundColor(.secondary)
| |- error: 'secondary' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
169 | .font(.subheadline)
170 |
/Users/admin/builder/spi-builder-workspace/Sources/TVDatePicker/API/TVDatePicker.swift:169:14: error: 'font' is only available in macOS 10.15 or newer
152 |
153 | @available(iOS, unavailable)
154 | private extension TVDatePicker {
| `- note: add @available attribute to enclosing extension
155 | @ViewBuilder func navigationViewContent() -> some View {
156 | VStack(alignment: .leading, content: content)
:
160 | }
161 |
162 | @ViewBuilder func content() -> some View {
| `- note: add @available attribute to enclosing instance method
163 | Text(dateFormatter.string(from: selection)).font(.headline)
164 |
:
167 | Text("mm/dd/yy")
168 | .foregroundColor(.secondary)
169 | .font(.subheadline)
| |- error: 'font' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
170 |
171 | if displayedComponents.contains(.year) {
/Users/admin/builder/spi-builder-workspace/Sources/TVDatePicker/API/TVDatePicker.swift:169:20: error: 'subheadline' is only available in macOS 10.15 or newer
152 |
153 | @available(iOS, unavailable)
154 | private extension TVDatePicker {
| `- note: add @available attribute to enclosing extension
155 | @ViewBuilder func navigationViewContent() -> some View {
156 | VStack(alignment: .leading, content: content)
:
160 | }
161 |
162 | @ViewBuilder func content() -> some View {
| `- note: add @available attribute to enclosing instance method
163 | Text(dateFormatter.string(from: selection)).font(.headline)
164 |
:
167 | Text("mm/dd/yy")
168 | .foregroundColor(.secondary)
169 | .font(.subheadline)
| |- error: 'subheadline' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
170 |
171 | if displayedComponents.contains(.year) {
/Users/admin/builder/spi-builder-workspace/Sources/TVDatePicker/API/TVDatePicker.swift:172:13: error: 'Picker' is only available in macOS 10.15 or newer
152 |
153 | @available(iOS, unavailable)
154 | private extension TVDatePicker {
| `- note: add @available attribute to enclosing extension
155 | @ViewBuilder func navigationViewContent() -> some View {
156 | VStack(alignment: .leading, content: content)
:
160 | }
161 |
162 | @ViewBuilder func content() -> some View {
| `- note: add @available attribute to enclosing instance method
163 | Text(dateFormatter.string(from: selection)).font(.headline)
164 |
:
170 |
171 | if displayedComponents.contains(.year) {
172 | Picker(selection: $selectedYear.onChange(didChangeYear), label: Text("Year")) {
| |- error: 'Picker' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
173 | let lowerBound = max(minimumYear, (currentlySelectedYear - 5))
174 | let upperBound = max(minimumYear + 10, (currentlySelectedYear + 5))
/Users/admin/builder/spi-builder-workspace/Sources/TVDatePicker/API/TVDatePicker.swift:172:13: error: 'init(selection:label:content:)' is only available in macOS 10.15 or newer
152 |
153 | @available(iOS, unavailable)
154 | private extension TVDatePicker {
| `- note: add @available attribute to enclosing extension
155 | @ViewBuilder func navigationViewContent() -> some View {
156 | VStack(alignment: .leading, content: content)
:
160 | }
161 |
162 | @ViewBuilder func content() -> some View {
| `- note: add @available attribute to enclosing instance method
163 | Text(dateFormatter.string(from: selection)).font(.headline)
164 |
:
170 |
171 | if displayedComponents.contains(.year) {
172 | Picker(selection: $selectedYear.onChange(didChangeYear), label: Text("Year")) {
| |- error: 'init(selection:label:content:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
173 | let lowerBound = max(minimumYear, (currentlySelectedYear - 5))
174 | let upperBound = max(minimumYear + 10, (currentlySelectedYear + 5))
/Users/admin/builder/spi-builder-workspace/Sources/TVDatePicker/API/TVDatePicker.swift:172:77: error: 'Text' is only available in macOS 10.15 or newer
152 |
153 | @available(iOS, unavailable)
154 | private extension TVDatePicker {
| `- note: add @available attribute to enclosing extension
155 | @ViewBuilder func navigationViewContent() -> some View {
156 | VStack(alignment: .leading, content: content)
:
160 | }
161 |
162 | @ViewBuilder func content() -> some View {
| `- note: add @available attribute to enclosing instance method
163 | Text(dateFormatter.string(from: selection)).font(.headline)
164 |
:
170 |
171 | if displayedComponents.contains(.year) {
172 | Picker(selection: $selectedYear.onChange(didChangeYear), label: Text("Year")) {
| |- error: 'Text' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
173 | let lowerBound = max(minimumYear, (currentlySelectedYear - 5))
174 | let upperBound = max(minimumYear + 10, (currentlySelectedYear + 5))
/Users/admin/builder/spi-builder-workspace/Sources/TVDatePicker/API/TVDatePicker.swift:175: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
152 |
153 | @available(iOS, unavailable)
154 | private extension TVDatePicker {
| `- note: add @available attribute to enclosing extension
155 | @ViewBuilder func navigationViewContent() -> some View {
156 | VStack(alignment: .leading, content: content)
:
160 | }
161 |
162 | @ViewBuilder func content() -> some View {
| `- note: add @available attribute to enclosing instance method
163 | Text(dateFormatter.string(from: selection)).font(.headline)
164 |
:
173 | let lowerBound = max(minimumYear, (currentlySelectedYear - 5))
174 | let upperBound = max(minimumYear + 10, (currentlySelectedYear + 5))
175 | ForEach(lowerBound...upperBound, id: \.self) { year 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
176 | Text(String(year))
177 | .tag(year)
/Users/admin/builder/spi-builder-workspace/Sources/TVDatePicker/API/TVDatePicker.swift:175:17: error: 'ForEach' is only available in macOS 10.15 or newer
152 |
153 | @available(iOS, unavailable)
154 | private extension TVDatePicker {
| `- note: add @available attribute to enclosing extension
155 | @ViewBuilder func navigationViewContent() -> some View {
156 | VStack(alignment: .leading, content: content)
:
160 | }
161 |
162 | @ViewBuilder func content() -> some View {
| `- note: add @available attribute to enclosing instance method
163 | Text(dateFormatter.string(from: selection)).font(.headline)
164 |
:
173 | let lowerBound = max(minimumYear, (currentlySelectedYear - 5))
174 | let upperBound = max(minimumYear + 10, (currentlySelectedYear + 5))
175 | ForEach(lowerBound...upperBound, id: \.self) { year in
| |- error: 'ForEach' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
176 | Text(String(year))
177 | .tag(year)
/Users/admin/builder/spi-builder-workspace/Sources/TVDatePicker/API/TVDatePicker.swift:175:17: error: 'init(_:id:content:)' is only available in macOS 10.15 or newer
152 |
153 | @available(iOS, unavailable)
154 | private extension TVDatePicker {
| `- note: add @available attribute to enclosing extension
155 | @ViewBuilder func navigationViewContent() -> some View {
156 | VStack(alignment: .leading, content: content)
:
160 | }
161 |
162 | @ViewBuilder func content() -> some View {
| `- note: add @available attribute to enclosing instance method
163 | Text(dateFormatter.string(from: selection)).font(.headline)
164 |
:
173 | let lowerBound = max(minimumYear, (currentlySelectedYear - 5))
174 | let upperBound = max(minimumYear + 10, (currentlySelectedYear + 5))
175 | ForEach(lowerBound...upperBound, id: \.self) { year in
| |- error: 'init(_:id:content:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
176 | Text(String(year))
177 | .tag(year)
/Users/admin/builder/spi-builder-workspace/Sources/TVDatePicker/API/TVDatePicker.swift:176:21: error: 'Text' is only available in macOS 10.15 or newer
152 |
153 | @available(iOS, unavailable)
154 | private extension TVDatePicker {
| `- note: add @available attribute to enclosing extension
155 | @ViewBuilder func navigationViewContent() -> some View {
156 | VStack(alignment: .leading, content: content)
:
160 | }
161 |
162 | @ViewBuilder func content() -> some View {
| `- note: add @available attribute to enclosing instance method
163 | Text(dateFormatter.string(from: selection)).font(.headline)
164 |
:
174 | let upperBound = max(minimumYear + 10, (currentlySelectedYear + 5))
175 | ForEach(lowerBound...upperBound, id: \.self) { year in
176 | Text(String(year))
| |- error: 'Text' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
177 | .tag(year)
178 | }
/Users/admin/builder/spi-builder-workspace/Sources/TVDatePicker/API/TVDatePicker.swift:177:22: error: 'tag(_:includeOptional:)' is only available in macOS 10.15 or newer
152 |
153 | @available(iOS, unavailable)
154 | private extension TVDatePicker {
| `- note: add @available attribute to enclosing extension
155 | @ViewBuilder func navigationViewContent() -> some View {
156 | VStack(alignment: .leading, content: content)
:
160 | }
161 |
162 | @ViewBuilder func content() -> some View {
| `- note: add @available attribute to enclosing instance method
163 | Text(dateFormatter.string(from: selection)).font(.headline)
164 |
:
175 | ForEach(lowerBound...upperBound, id: \.self) { year in
176 | Text(String(year))
177 | .tag(year)
| |- error: 'tag(_:includeOptional:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
178 | }
179 | }
/Users/admin/builder/spi-builder-workspace/Sources/TVDatePicker/API/TVDatePicker.swift:172:91: 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
152 |
153 | @available(iOS, unavailable)
154 | private extension TVDatePicker {
| `- note: add @available attribute to enclosing extension
155 | @ViewBuilder func navigationViewContent() -> some View {
156 | VStack(alignment: .leading, content: content)
:
160 | }
161 |
162 | @ViewBuilder func content() -> some View {
| `- note: add @available attribute to enclosing instance method
163 | Text(dateFormatter.string(from: selection)).font(.headline)
164 |
:
170 |
171 | if displayedComponents.contains(.year) {
172 | Picker(selection: $selectedYear.onChange(didChangeYear), label: Text("Year")) {
| |- 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
173 | let lowerBound = max(minimumYear, (currentlySelectedYear - 5))
174 | let upperBound = max(minimumYear + 10, (currentlySelectedYear + 5))
/Users/admin/builder/spi-builder-workspace/Sources/TVDatePicker/API/TVDatePicker.swift:180:14: error: 'pickerStyle' is only available in macOS 10.15 or newer
152 |
153 | @available(iOS, unavailable)
154 | private extension TVDatePicker {
| `- note: add @available attribute to enclosing extension
155 | @ViewBuilder func navigationViewContent() -> some View {
156 | VStack(alignment: .leading, content: content)
:
160 | }
161 |
162 | @ViewBuilder func content() -> some View {
| `- note: add @available attribute to enclosing instance method
163 | Text(dateFormatter.string(from: selection)).font(.headline)
164 |
:
178 | }
179 | }
180 | .pickerStyle(pickerStyle)
| |- error: 'pickerStyle' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
181 | }
182 |
/Users/admin/builder/spi-builder-workspace/Sources/TVDatePicker/API/TVDatePicker.swift:171:48: error: 'buildIf' is only available in macOS 10.15 or newer
152 |
153 | @available(iOS, unavailable)
154 | private extension TVDatePicker {
| `- note: add @available attribute to enclosing extension
155 | @ViewBuilder func navigationViewContent() -> some View {
156 | VStack(alignment: .leading, content: content)
:
160 | }
161 |
162 | @ViewBuilder func content() -> some View {
| `- note: add @available attribute to enclosing instance method
163 | Text(dateFormatter.string(from: selection)).font(.headline)
164 |
:
169 | .font(.subheadline)
170 |
171 | if displayedComponents.contains(.year) {
| |- error: 'buildIf' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
172 | Picker(selection: $selectedYear.onChange(didChangeYear), label: Text("Year")) {
173 | let lowerBound = max(minimumYear, (currentlySelectedYear - 5))
/Users/admin/builder/spi-builder-workspace/Sources/TVDatePicker/API/TVDatePicker.swift:181:9: error: 'buildIf' is only available in macOS 10.15 or newer
152 |
153 | @available(iOS, unavailable)
154 | private extension TVDatePicker {
| `- note: add @available attribute to enclosing extension
155 | @ViewBuilder func navigationViewContent() -> some View {
156 | VStack(alignment: .leading, content: content)
:
160 | }
161 |
162 | @ViewBuilder func content() -> some View {
| `- note: add @available attribute to enclosing instance method
163 | Text(dateFormatter.string(from: selection)).font(.headline)
164 |
:
179 | }
180 | .pickerStyle(pickerStyle)
181 | }
| |- error: 'buildIf' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
182 |
183 | if displayedComponents.contains(.month) {
/Users/admin/builder/spi-builder-workspace/Sources/TVDatePicker/API/TVDatePicker.swift:184:13: error: 'Picker' is only available in macOS 10.15 or newer
152 |
153 | @available(iOS, unavailable)
154 | private extension TVDatePicker {
| `- note: add @available attribute to enclosing extension
155 | @ViewBuilder func navigationViewContent() -> some View {
156 | VStack(alignment: .leading, content: content)
:
160 | }
161 |
162 | @ViewBuilder func content() -> some View {
| `- note: add @available attribute to enclosing instance method
163 | Text(dateFormatter.string(from: selection)).font(.headline)
164 |
:
182 |
183 | if displayedComponents.contains(.month) {
184 | Picker(selection: $selectedMonth.onChange(didChangeMonth), label: Text("Month")) {
| |- error: 'Picker' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
185 | ForEach(months, id: \.self) { month in
186 | Text(dateFormatter.shortMonthSymbols[month - 1])
/Users/admin/builder/spi-builder-workspace/Sources/TVDatePicker/API/TVDatePicker.swift:184:13: error: 'init(selection:label:content:)' is only available in macOS 10.15 or newer
152 |
153 | @available(iOS, unavailable)
154 | private extension TVDatePicker {
| `- note: add @available attribute to enclosing extension
155 | @ViewBuilder func navigationViewContent() -> some View {
156 | VStack(alignment: .leading, content: content)
:
160 | }
161 |
162 | @ViewBuilder func content() -> some View {
| `- note: add @available attribute to enclosing instance method
163 | Text(dateFormatter.string(from: selection)).font(.headline)
164 |
:
182 |
183 | if displayedComponents.contains(.month) {
184 | Picker(selection: $selectedMonth.onChange(didChangeMonth), label: Text("Month")) {
| |- error: 'init(selection:label:content:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
185 | ForEach(months, id: \.self) { month in
186 | Text(dateFormatter.shortMonthSymbols[month - 1])
/Users/admin/builder/spi-builder-workspace/Sources/TVDatePicker/API/TVDatePicker.swift:184:79: error: 'Text' is only available in macOS 10.15 or newer
152 |
153 | @available(iOS, unavailable)
154 | private extension TVDatePicker {
| `- note: add @available attribute to enclosing extension
155 | @ViewBuilder func navigationViewContent() -> some View {
156 | VStack(alignment: .leading, content: content)
:
160 | }
161 |
162 | @ViewBuilder func content() -> some View {
| `- note: add @available attribute to enclosing instance method
163 | Text(dateFormatter.string(from: selection)).font(.headline)
164 |
:
182 |
183 | if displayedComponents.contains(.month) {
184 | Picker(selection: $selectedMonth.onChange(didChangeMonth), label: Text("Month")) {
| |- error: 'Text' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
185 | ForEach(months, id: \.self) { month in
186 | Text(dateFormatter.shortMonthSymbols[month - 1])
/Users/admin/builder/spi-builder-workspace/Sources/TVDatePicker/API/TVDatePicker.swift:185: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
152 |
153 | @available(iOS, unavailable)
154 | private extension TVDatePicker {
| `- note: add @available attribute to enclosing extension
155 | @ViewBuilder func navigationViewContent() -> some View {
156 | VStack(alignment: .leading, content: content)
:
160 | }
161 |
162 | @ViewBuilder func content() -> some View {
| `- note: add @available attribute to enclosing instance method
163 | Text(dateFormatter.string(from: selection)).font(.headline)
164 |
:
183 | if displayedComponents.contains(.month) {
184 | Picker(selection: $selectedMonth.onChange(didChangeMonth), label: Text("Month")) {
185 | ForEach(months, id: \.self) { month 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
186 | Text(dateFormatter.shortMonthSymbols[month - 1])
187 | .tag(month)
/Users/admin/builder/spi-builder-workspace/Sources/TVDatePicker/API/TVDatePicker.swift:185:17: error: 'ForEach' is only available in macOS 10.15 or newer
152 |
153 | @available(iOS, unavailable)
154 | private extension TVDatePicker {
| `- note: add @available attribute to enclosing extension
155 | @ViewBuilder func navigationViewContent() -> some View {
156 | VStack(alignment: .leading, content: content)
:
160 | }
161 |
162 | @ViewBuilder func content() -> some View {
| `- note: add @available attribute to enclosing instance method
163 | Text(dateFormatter.string(from: selection)).font(.headline)
164 |
:
183 | if displayedComponents.contains(.month) {
184 | Picker(selection: $selectedMonth.onChange(didChangeMonth), label: Text("Month")) {
185 | ForEach(months, id: \.self) { month in
| |- error: 'ForEach' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
186 | Text(dateFormatter.shortMonthSymbols[month - 1])
187 | .tag(month)
/Users/admin/builder/spi-builder-workspace/Sources/TVDatePicker/API/TVDatePicker.swift:185:17: error: 'init(_:id:content:)' is only available in macOS 10.15 or newer
152 |
153 | @available(iOS, unavailable)
154 | private extension TVDatePicker {
| `- note: add @available attribute to enclosing extension
155 | @ViewBuilder func navigationViewContent() -> some View {
156 | VStack(alignment: .leading, content: content)
:
160 | }
161 |
162 | @ViewBuilder func content() -> some View {
| `- note: add @available attribute to enclosing instance method
163 | Text(dateFormatter.string(from: selection)).font(.headline)
164 |
:
183 | if displayedComponents.contains(.month) {
184 | Picker(selection: $selectedMonth.onChange(didChangeMonth), label: Text("Month")) {
185 | ForEach(months, id: \.self) { month in
| |- error: 'init(_:id:content:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
186 | Text(dateFormatter.shortMonthSymbols[month - 1])
187 | .tag(month)
/Users/admin/builder/spi-builder-workspace/Sources/TVDatePicker/API/TVDatePicker.swift:186:21: error: 'Text' is only available in macOS 10.15 or newer
152 |
153 | @available(iOS, unavailable)
154 | private extension TVDatePicker {
| `- note: add @available attribute to enclosing extension
155 | @ViewBuilder func navigationViewContent() -> some View {
156 | VStack(alignment: .leading, content: content)
:
160 | }
161 |
162 | @ViewBuilder func content() -> some View {
| `- note: add @available attribute to enclosing instance method
163 | Text(dateFormatter.string(from: selection)).font(.headline)
164 |
:
184 | Picker(selection: $selectedMonth.onChange(didChangeMonth), label: Text("Month")) {
185 | ForEach(months, id: \.self) { month in
186 | Text(dateFormatter.shortMonthSymbols[month - 1])
| |- error: 'Text' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
187 | .tag(month)
188 | }
/Users/admin/builder/spi-builder-workspace/Sources/TVDatePicker/API/TVDatePicker.swift:187:22: error: 'tag(_:includeOptional:)' is only available in macOS 10.15 or newer
152 |
153 | @available(iOS, unavailable)
154 | private extension TVDatePicker {
| `- note: add @available attribute to enclosing extension
155 | @ViewBuilder func navigationViewContent() -> some View {
156 | VStack(alignment: .leading, content: content)
:
160 | }
161 |
162 | @ViewBuilder func content() -> some View {
| `- note: add @available attribute to enclosing instance method
163 | Text(dateFormatter.string(from: selection)).font(.headline)
164 |
:
185 | ForEach(months, id: \.self) { month in
186 | Text(dateFormatter.shortMonthSymbols[month - 1])
187 | .tag(month)
| |- error: 'tag(_:includeOptional:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
188 | }
189 | }
/Users/admin/builder/spi-builder-workspace/Sources/TVDatePicker/API/TVDatePicker.swift:184:94: 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
152 |
153 | @available(iOS, unavailable)
154 | private extension TVDatePicker {
| `- note: add @available attribute to enclosing extension
155 | @ViewBuilder func navigationViewContent() -> some View {
156 | VStack(alignment: .leading, content: content)
:
160 | }
161 |
162 | @ViewBuilder func content() -> some View {
| `- note: add @available attribute to enclosing instance method
163 | Text(dateFormatter.string(from: selection)).font(.headline)
164 |
:
182 |
183 | if displayedComponents.contains(.month) {
184 | Picker(selection: $selectedMonth.onChange(didChangeMonth), label: Text("Month")) {
| |- 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
185 | ForEach(months, id: \.self) { month in
186 | Text(dateFormatter.shortMonthSymbols[month - 1])
/Users/admin/builder/spi-builder-workspace/Sources/TVDatePicker/API/TVDatePicker.swift:190:14: error: 'pickerStyle' is only available in macOS 10.15 or newer
152 |
153 | @available(iOS, unavailable)
154 | private extension TVDatePicker {
| `- note: add @available attribute to enclosing extension
155 | @ViewBuilder func navigationViewContent() -> some View {
156 | VStack(alignment: .leading, content: content)
:
160 | }
161 |
162 | @ViewBuilder func content() -> some View {
| `- note: add @available attribute to enclosing instance method
163 | Text(dateFormatter.string(from: selection)).font(.headline)
164 |
:
188 | }
189 | }
190 | .pickerStyle(pickerStyle)
| |- error: 'pickerStyle' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
191 | }
192 |
/Users/admin/builder/spi-builder-workspace/Sources/TVDatePicker/API/TVDatePicker.swift:183:49: error: 'buildIf' is only available in macOS 10.15 or newer
152 |
153 | @available(iOS, unavailable)
154 | private extension TVDatePicker {
| `- note: add @available attribute to enclosing extension
155 | @ViewBuilder func navigationViewContent() -> some View {
156 | VStack(alignment: .leading, content: content)
:
160 | }
161 |
162 | @ViewBuilder func content() -> some View {
| `- note: add @available attribute to enclosing instance method
163 | Text(dateFormatter.string(from: selection)).font(.headline)
164 |
:
181 | }
182 |
183 | if displayedComponents.contains(.month) {
| |- error: 'buildIf' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
184 | Picker(selection: $selectedMonth.onChange(didChangeMonth), label: Text("Month")) {
185 | ForEach(months, id: \.self) { month in
/Users/admin/builder/spi-builder-workspace/Sources/TVDatePicker/API/TVDatePicker.swift:191:9: error: 'buildIf' is only available in macOS 10.15 or newer
152 |
153 | @available(iOS, unavailable)
154 | private extension TVDatePicker {
| `- note: add @available attribute to enclosing extension
155 | @ViewBuilder func navigationViewContent() -> some View {
156 | VStack(alignment: .leading, content: content)
:
160 | }
161 |
162 | @ViewBuilder func content() -> some View {
| `- note: add @available attribute to enclosing instance method
163 | Text(dateFormatter.string(from: selection)).font(.headline)
164 |
:
189 | }
190 | .pickerStyle(pickerStyle)
191 | }
| |- error: 'buildIf' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
192 |
193 | if displayedComponents.contains(.date) {
/Users/admin/builder/spi-builder-workspace/Sources/TVDatePicker/API/TVDatePicker.swift:194:13: error: 'Picker' is only available in macOS 10.15 or newer
152 |
153 | @available(iOS, unavailable)
154 | private extension TVDatePicker {
| `- note: add @available attribute to enclosing extension
155 | @ViewBuilder func navigationViewContent() -> some View {
156 | VStack(alignment: .leading, content: content)
:
160 | }
161 |
162 | @ViewBuilder func content() -> some View {
| `- note: add @available attribute to enclosing instance method
163 | Text(dateFormatter.string(from: selection)).font(.headline)
164 |
:
192 |
193 | if displayedComponents.contains(.date) {
194 | Picker(selection: $selectedDay.onChange(didChangeDay), label: Text("Day")) {
| |- error: 'Picker' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
195 | ForEach(daysInSelectedMonth, id: \.self) { day in
196 | Text("\(day)")
/Users/admin/builder/spi-builder-workspace/Sources/TVDatePicker/API/TVDatePicker.swift:194:13: error: 'init(selection:label:content:)' is only available in macOS 10.15 or newer
152 |
153 | @available(iOS, unavailable)
154 | private extension TVDatePicker {
| `- note: add @available attribute to enclosing extension
155 | @ViewBuilder func navigationViewContent() -> some View {
156 | VStack(alignment: .leading, content: content)
:
160 | }
161 |
162 | @ViewBuilder func content() -> some View {
| `- note: add @available attribute to enclosing instance method
163 | Text(dateFormatter.string(from: selection)).font(.headline)
164 |
:
192 |
193 | if displayedComponents.contains(.date) {
194 | Picker(selection: $selectedDay.onChange(didChangeDay), label: Text("Day")) {
| |- error: 'init(selection:label:content:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
195 | ForEach(daysInSelectedMonth, id: \.self) { day in
196 | Text("\(day)")
/Users/admin/builder/spi-builder-workspace/Sources/TVDatePicker/API/TVDatePicker.swift:194:75: error: 'Text' is only available in macOS 10.15 or newer
152 |
153 | @available(iOS, unavailable)
154 | private extension TVDatePicker {
| `- note: add @available attribute to enclosing extension
155 | @ViewBuilder func navigationViewContent() -> some View {
156 | VStack(alignment: .leading, content: content)
:
160 | }
161 |
162 | @ViewBuilder func content() -> some View {
| `- note: add @available attribute to enclosing instance method
163 | Text(dateFormatter.string(from: selection)).font(.headline)
164 |
:
192 |
193 | if displayedComponents.contains(.date) {
194 | Picker(selection: $selectedDay.onChange(didChangeDay), label: Text("Day")) {
| |- error: 'Text' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
195 | ForEach(daysInSelectedMonth, id: \.self) { day in
196 | Text("\(day)")
/Users/admin/builder/spi-builder-workspace/Sources/TVDatePicker/API/TVDatePicker.swift:195: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
152 |
153 | @available(iOS, unavailable)
154 | private extension TVDatePicker {
| `- note: add @available attribute to enclosing extension
155 | @ViewBuilder func navigationViewContent() -> some View {
156 | VStack(alignment: .leading, content: content)
:
160 | }
161 |
162 | @ViewBuilder func content() -> some View {
| `- note: add @available attribute to enclosing instance method
163 | Text(dateFormatter.string(from: selection)).font(.headline)
164 |
:
193 | if displayedComponents.contains(.date) {
194 | Picker(selection: $selectedDay.onChange(didChangeDay), label: Text("Day")) {
195 | ForEach(daysInSelectedMonth, id: \.self) { day 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
196 | Text("\(day)")
197 | .tag(day)
/Users/admin/builder/spi-builder-workspace/Sources/TVDatePicker/API/TVDatePicker.swift:195:17: error: 'ForEach' is only available in macOS 10.15 or newer
152 |
153 | @available(iOS, unavailable)
154 | private extension TVDatePicker {
| `- note: add @available attribute to enclosing extension
155 | @ViewBuilder func navigationViewContent() -> some View {
156 | VStack(alignment: .leading, content: content)
:
160 | }
161 |
162 | @ViewBuilder func content() -> some View {
| `- note: add @available attribute to enclosing instance method
163 | Text(dateFormatter.string(from: selection)).font(.headline)
164 |
:
193 | if displayedComponents.contains(.date) {
194 | Picker(selection: $selectedDay.onChange(didChangeDay), label: Text("Day")) {
195 | ForEach(daysInSelectedMonth, id: \.self) { day in
| |- error: 'ForEach' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
196 | Text("\(day)")
197 | .tag(day)
/Users/admin/builder/spi-builder-workspace/Sources/TVDatePicker/API/TVDatePicker.swift:195:17: error: 'init(_:id:content:)' is only available in macOS 10.15 or newer
152 |
153 | @available(iOS, unavailable)
154 | private extension TVDatePicker {
| `- note: add @available attribute to enclosing extension
155 | @ViewBuilder func navigationViewContent() -> some View {
156 | VStack(alignment: .leading, content: content)
:
160 | }
161 |
162 | @ViewBuilder func content() -> some View {
| `- note: add @available attribute to enclosing instance method
163 | Text(dateFormatter.string(from: selection)).font(.headline)
164 |
:
193 | if displayedComponents.contains(.date) {
194 | Picker(selection: $selectedDay.onChange(didChangeDay), label: Text("Day")) {
195 | ForEach(daysInSelectedMonth, id: \.self) { day in
| |- error: 'init(_:id:content:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
196 | Text("\(day)")
197 | .tag(day)
/Users/admin/builder/spi-builder-workspace/Sources/TVDatePicker/API/TVDatePicker.swift:196:21: error: 'Text' is only available in macOS 10.15 or newer
152 |
153 | @available(iOS, unavailable)
154 | private extension TVDatePicker {
| `- note: add @available attribute to enclosing extension
155 | @ViewBuilder func navigationViewContent() -> some View {
156 | VStack(alignment: .leading, content: content)
:
160 | }
161 |
162 | @ViewBuilder func content() -> some View {
| `- note: add @available attribute to enclosing instance method
163 | Text(dateFormatter.string(from: selection)).font(.headline)
164 |
:
194 | Picker(selection: $selectedDay.onChange(didChangeDay), label: Text("Day")) {
195 | ForEach(daysInSelectedMonth, id: \.self) { day in
196 | Text("\(day)")
| |- error: 'Text' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
197 | .tag(day)
198 | }
/Users/admin/builder/spi-builder-workspace/Sources/TVDatePicker/API/TVDatePicker.swift:197:22: error: 'tag(_:includeOptional:)' is only available in macOS 10.15 or newer
152 |
153 | @available(iOS, unavailable)
154 | private extension TVDatePicker {
| `- note: add @available attribute to enclosing extension
155 | @ViewBuilder func navigationViewContent() -> some View {
156 | VStack(alignment: .leading, content: content)
:
160 | }
161 |
162 | @ViewBuilder func content() -> some View {
| `- note: add @available attribute to enclosing instance method
163 | Text(dateFormatter.string(from: selection)).font(.headline)
164 |
:
195 | ForEach(daysInSelectedMonth, id: \.self) { day in
196 | Text("\(day)")
197 | .tag(day)
| |- error: 'tag(_:includeOptional:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
198 | }
199 | }
/Users/admin/builder/spi-builder-workspace/Sources/TVDatePicker/API/TVDatePicker.swift:194:88: 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
152 |
153 | @available(iOS, unavailable)
154 | private extension TVDatePicker {
| `- note: add @available attribute to enclosing extension
155 | @ViewBuilder func navigationViewContent() -> some View {
156 | VStack(alignment: .leading, content: content)
:
160 | }
161 |
162 | @ViewBuilder func content() -> some View {
| `- note: add @available attribute to enclosing instance method
163 | Text(dateFormatter.string(from: selection)).font(.headline)
164 |
:
192 |
193 | if displayedComponents.contains(.date) {
194 | Picker(selection: $selectedDay.onChange(didChangeDay), label: Text("Day")) {
| |- 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
195 | ForEach(daysInSelectedMonth, id: \.self) { day in
196 | Text("\(day)")
/Users/admin/builder/spi-builder-workspace/Sources/TVDatePicker/API/TVDatePicker.swift:200:14: error: 'pickerStyle' is only available in macOS 10.15 or newer
152 |
153 | @available(iOS, unavailable)
154 | private extension TVDatePicker {
| `- note: add @available attribute to enclosing extension
155 | @ViewBuilder func navigationViewContent() -> some View {
156 | VStack(alignment: .leading, content: content)
:
160 | }
161 |
162 | @ViewBuilder func content() -> some View {
| `- note: add @available attribute to enclosing instance method
163 | Text(dateFormatter.string(from: selection)).font(.headline)
164 |
:
198 | }
199 | }
200 | .pickerStyle(pickerStyle)
| |- error: 'pickerStyle' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
201 | }
202 |
/Users/admin/builder/spi-builder-workspace/Sources/TVDatePicker/API/TVDatePicker.swift:193:48: error: 'buildIf' is only available in macOS 10.15 or newer
152 |
153 | @available(iOS, unavailable)
154 | private extension TVDatePicker {
| `- note: add @available attribute to enclosing extension
155 | @ViewBuilder func navigationViewContent() -> some View {
156 | VStack(alignment: .leading, content: content)
:
160 | }
161 |
162 | @ViewBuilder func content() -> some View {
| `- note: add @available attribute to enclosing instance method
163 | Text(dateFormatter.string(from: selection)).font(.headline)
164 |
:
191 | }
192 |
193 | if displayedComponents.contains(.date) {
| |- error: 'buildIf' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
194 | Picker(selection: $selectedDay.onChange(didChangeDay), label: Text("Day")) {
195 | ForEach(daysInSelectedMonth, id: \.self) { day in
/Users/admin/builder/spi-builder-workspace/Sources/TVDatePicker/API/TVDatePicker.swift:201:9: error: 'buildIf' is only available in macOS 10.15 or newer
152 |
153 | @available(iOS, unavailable)
154 | private extension TVDatePicker {
| `- note: add @available attribute to enclosing extension
155 | @ViewBuilder func navigationViewContent() -> some View {
156 | VStack(alignment: .leading, content: content)
:
160 | }
161 |
162 | @ViewBuilder func content() -> some View {
| `- note: add @available attribute to enclosing instance method
163 | Text(dateFormatter.string(from: selection)).font(.headline)
164 |
:
199 | }
200 | .pickerStyle(pickerStyle)
201 | }
| |- error: 'buildIf' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
202 |
203 | if displayedComponents.contains(.hourAndMinute) {
/Users/admin/builder/spi-builder-workspace/Sources/TVDatePicker/API/TVDatePicker.swift:204:13: warning: conformance of 'Text' to 'View' is only available in macOS 10.15 or newer; this is an error in the Swift 6 language mode
152 |
153 | @available(iOS, unavailable)
154 | private extension TVDatePicker {
| `- note: add @available attribute to enclosing extension
155 | @ViewBuilder func navigationViewContent() -> some View {
156 | VStack(alignment: .leading, content: content)
:
160 | }
161 |
162 | @ViewBuilder func content() -> some View {
| `- note: add @available attribute to enclosing instance method
163 | Text(dateFormatter.string(from: selection)).font(.headline)
164 |
:
202 |
203 | if displayedComponents.contains(.hourAndMinute) {
204 | Text("HH:mm")
| |- 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
205 | .foregroundColor(.secondary)
206 | .font(.subheadline)
/Users/admin/builder/spi-builder-workspace/Sources/TVDatePicker/API/TVDatePicker.swift:204:13: error: 'Text' is only available in macOS 10.15 or newer
152 |
153 | @available(iOS, unavailable)
154 | private extension TVDatePicker {
| `- note: add @available attribute to enclosing extension
155 | @ViewBuilder func navigationViewContent() -> some View {
156 | VStack(alignment: .leading, content: content)
:
160 | }
161 |
162 | @ViewBuilder func content() -> some View {
| `- note: add @available attribute to enclosing instance method
163 | Text(dateFormatter.string(from: selection)).font(.headline)
164 |
:
202 |
203 | if displayedComponents.contains(.hourAndMinute) {
204 | Text("HH:mm")
| |- error: 'Text' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
205 | .foregroundColor(.secondary)
206 | .font(.subheadline)
/Users/admin/builder/spi-builder-workspace/Sources/TVDatePicker/API/TVDatePicker.swift:205:18: error: 'foregroundColor' is only available in macOS 10.15 or newer
152 |
153 | @available(iOS, unavailable)
154 | private extension TVDatePicker {
| `- note: add @available attribute to enclosing extension
155 | @ViewBuilder func navigationViewContent() -> some View {
156 | VStack(alignment: .leading, content: content)
:
160 | }
161 |
162 | @ViewBuilder func content() -> some View {
| `- note: add @available attribute to enclosing instance method
163 | Text(dateFormatter.string(from: selection)).font(.headline)
164 |
:
203 | if displayedComponents.contains(.hourAndMinute) {
204 | Text("HH:mm")
205 | .foregroundColor(.secondary)
| |- error: 'foregroundColor' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
206 | .font(.subheadline)
207 |
/Users/admin/builder/spi-builder-workspace/Sources/TVDatePicker/API/TVDatePicker.swift:205:35: error: 'secondary' is only available in macOS 10.15 or newer
152 |
153 | @available(iOS, unavailable)
154 | private extension TVDatePicker {
| `- note: add @available attribute to enclosing extension
155 | @ViewBuilder func navigationViewContent() -> some View {
156 | VStack(alignment: .leading, content: content)
:
160 | }
161 |
162 | @ViewBuilder func content() -> some View {
| `- note: add @available attribute to enclosing instance method
163 | Text(dateFormatter.string(from: selection)).font(.headline)
164 |
:
203 | if displayedComponents.contains(.hourAndMinute) {
204 | Text("HH:mm")
205 | .foregroundColor(.secondary)
| |- error: 'secondary' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
206 | .font(.subheadline)
207 |
/Users/admin/builder/spi-builder-workspace/Sources/TVDatePicker/API/TVDatePicker.swift:206:18: error: 'font' is only available in macOS 10.15 or newer
152 |
153 | @available(iOS, unavailable)
154 | private extension TVDatePicker {
| `- note: add @available attribute to enclosing extension
155 | @ViewBuilder func navigationViewContent() -> some View {
156 | VStack(alignment: .leading, content: content)
:
160 | }
161 |
162 | @ViewBuilder func content() -> some View {
| `- note: add @available attribute to enclosing instance method
163 | Text(dateFormatter.string(from: selection)).font(.headline)
164 |
:
204 | Text("HH:mm")
205 | .foregroundColor(.secondary)
206 | .font(.subheadline)
| |- error: 'font' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
207 |
208 | Picker(selection: $selectedHour.onChange(didChangeHour), label: Text("Hour")) {
/Users/admin/builder/spi-builder-workspace/Sources/TVDatePicker/API/TVDatePicker.swift:206:24: error: 'subheadline' is only available in macOS 10.15 or newer
152 |
153 | @available(iOS, unavailable)
154 | private extension TVDatePicker {
| `- note: add @available attribute to enclosing extension
155 | @ViewBuilder func navigationViewContent() -> some View {
156 | VStack(alignment: .leading, content: content)
:
160 | }
161 |
162 | @ViewBuilder func content() -> some View {
| `- note: add @available attribute to enclosing instance method
163 | Text(dateFormatter.string(from: selection)).font(.headline)
164 |
:
204 | Text("HH:mm")
205 | .foregroundColor(.secondary)
206 | .font(.subheadline)
| |- error: 'subheadline' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
207 |
208 | Picker(selection: $selectedHour.onChange(didChangeHour), label: Text("Hour")) {
/Users/admin/builder/spi-builder-workspace/Sources/TVDatePicker/API/TVDatePicker.swift:208:13: error: 'Picker' is only available in macOS 10.15 or newer
152 |
153 | @available(iOS, unavailable)
154 | private extension TVDatePicker {
| `- note: add @available attribute to enclosing extension
155 | @ViewBuilder func navigationViewContent() -> some View {
156 | VStack(alignment: .leading, content: content)
:
160 | }
161 |
162 | @ViewBuilder func content() -> some View {
| `- note: add @available attribute to enclosing instance method
163 | Text(dateFormatter.string(from: selection)).font(.headline)
164 |
:
206 | .font(.subheadline)
207 |
208 | Picker(selection: $selectedHour.onChange(didChangeHour), label: Text("Hour")) {
| |- error: 'Picker' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
209 | ForEach(hours, id: \.self) { hour in
210 | Text("\(hour)")
/Users/admin/builder/spi-builder-workspace/Sources/TVDatePicker/API/TVDatePicker.swift:208:13: error: 'init(selection:label:content:)' is only available in macOS 10.15 or newer
152 |
153 | @available(iOS, unavailable)
154 | private extension TVDatePicker {
| `- note: add @available attribute to enclosing extension
155 | @ViewBuilder func navigationViewContent() -> some View {
156 | VStack(alignment: .leading, content: content)
:
160 | }
161 |
162 | @ViewBuilder func content() -> some View {
| `- note: add @available attribute to enclosing instance method
163 | Text(dateFormatter.string(from: selection)).font(.headline)
164 |
:
206 | .font(.subheadline)
207 |
208 | Picker(selection: $selectedHour.onChange(didChangeHour), label: Text("Hour")) {
| |- error: 'init(selection:label:content:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
209 | ForEach(hours, id: \.self) { hour in
210 | Text("\(hour)")
/Users/admin/builder/spi-builder-workspace/Sources/TVDatePicker/API/TVDatePicker.swift:208:77: error: 'Text' is only available in macOS 10.15 or newer
152 |
153 | @available(iOS, unavailable)
154 | private extension TVDatePicker {
| `- note: add @available attribute to enclosing extension
155 | @ViewBuilder func navigationViewContent() -> some View {
156 | VStack(alignment: .leading, content: content)
:
160 | }
161 |
162 | @ViewBuilder func content() -> some View {
| `- note: add @available attribute to enclosing instance method
163 | Text(dateFormatter.string(from: selection)).font(.headline)
164 |
:
206 | .font(.subheadline)
207 |
208 | Picker(selection: $selectedHour.onChange(didChangeHour), label: Text("Hour")) {
| |- error: 'Text' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
209 | ForEach(hours, id: \.self) { hour in
210 | Text("\(hour)")
/Users/admin/builder/spi-builder-workspace/Sources/TVDatePicker/API/TVDatePicker.swift:209: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
152 |
153 | @available(iOS, unavailable)
154 | private extension TVDatePicker {
| `- note: add @available attribute to enclosing extension
155 | @ViewBuilder func navigationViewContent() -> some View {
156 | VStack(alignment: .leading, content: content)
:
160 | }
161 |
162 | @ViewBuilder func content() -> some View {
| `- note: add @available attribute to enclosing instance method
163 | Text(dateFormatter.string(from: selection)).font(.headline)
164 |
:
207 |
208 | Picker(selection: $selectedHour.onChange(didChangeHour), label: Text("Hour")) {
209 | ForEach(hours, id: \.self) { hour 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
210 | Text("\(hour)")
211 | .tag(hour)
/Users/admin/builder/spi-builder-workspace/Sources/TVDatePicker/API/TVDatePicker.swift:209:17: error: 'ForEach' is only available in macOS 10.15 or newer
152 |
153 | @available(iOS, unavailable)
154 | private extension TVDatePicker {
| `- note: add @available attribute to enclosing extension
155 | @ViewBuilder func navigationViewContent() -> some View {
156 | VStack(alignment: .leading, content: content)
:
160 | }
161 |
162 | @ViewBuilder func content() -> some View {
| `- note: add @available attribute to enclosing instance method
163 | Text(dateFormatter.string(from: selection)).font(.headline)
164 |
:
207 |
208 | Picker(selection: $selectedHour.onChange(didChangeHour), label: Text("Hour")) {
209 | ForEach(hours, id: \.self) { hour in
| |- error: 'ForEach' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
210 | Text("\(hour)")
211 | .tag(hour)
/Users/admin/builder/spi-builder-workspace/Sources/TVDatePicker/API/TVDatePicker.swift:209:17: error: 'init(_:id:content:)' is only available in macOS 10.15 or newer
152 |
153 | @available(iOS, unavailable)
154 | private extension TVDatePicker {
| `- note: add @available attribute to enclosing extension
155 | @ViewBuilder func navigationViewContent() -> some View {
156 | VStack(alignment: .leading, content: content)
:
160 | }
161 |
162 | @ViewBuilder func content() -> some View {
| `- note: add @available attribute to enclosing instance method
163 | Text(dateFormatter.string(from: selection)).font(.headline)
164 |
:
207 |
208 | Picker(selection: $selectedHour.onChange(didChangeHour), label: Text("Hour")) {
209 | ForEach(hours, id: \.self) { hour in
| |- error: 'init(_:id:content:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
210 | Text("\(hour)")
211 | .tag(hour)
/Users/admin/builder/spi-builder-workspace/Sources/TVDatePicker/API/TVDatePicker.swift:210:21: error: 'Text' is only available in macOS 10.15 or newer
152 |
153 | @available(iOS, unavailable)
154 | private extension TVDatePicker {
| `- note: add @available attribute to enclosing extension
155 | @ViewBuilder func navigationViewContent() -> some View {
156 | VStack(alignment: .leading, content: content)
:
160 | }
161 |
162 | @ViewBuilder func content() -> some View {
| `- note: add @available attribute to enclosing instance method
163 | Text(dateFormatter.string(from: selection)).font(.headline)
164 |
:
208 | Picker(selection: $selectedHour.onChange(didChangeHour), label: Text("Hour")) {
209 | ForEach(hours, id: \.self) { hour in
210 | Text("\(hour)")
| |- error: 'Text' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
211 | .tag(hour)
212 | }
/Users/admin/builder/spi-builder-workspace/Sources/TVDatePicker/API/TVDatePicker.swift:211:22: error: 'tag(_:includeOptional:)' is only available in macOS 10.15 or newer
152 |
153 | @available(iOS, unavailable)
154 | private extension TVDatePicker {
| `- note: add @available attribute to enclosing extension
155 | @ViewBuilder func navigationViewContent() -> some View {
156 | VStack(alignment: .leading, content: content)
:
160 | }
161 |
162 | @ViewBuilder func content() -> some View {
| `- note: add @available attribute to enclosing instance method
163 | Text(dateFormatter.string(from: selection)).font(.headline)
164 |
:
209 | ForEach(hours, id: \.self) { hour in
210 | Text("\(hour)")
211 | .tag(hour)
| |- error: 'tag(_:includeOptional:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
212 | }
213 | }
/Users/admin/builder/spi-builder-workspace/Sources/TVDatePicker/API/TVDatePicker.swift:208:91: 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
152 |
153 | @available(iOS, unavailable)
154 | private extension TVDatePicker {
| `- note: add @available attribute to enclosing extension
155 | @ViewBuilder func navigationViewContent() -> some View {
156 | VStack(alignment: .leading, content: content)
:
160 | }
161 |
162 | @ViewBuilder func content() -> some View {
| `- note: add @available attribute to enclosing instance method
163 | Text(dateFormatter.string(from: selection)).font(.headline)
164 |
:
206 | .font(.subheadline)
207 |
208 | Picker(selection: $selectedHour.onChange(didChangeHour), label: Text("Hour")) {
| |- 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
209 | ForEach(hours, id: \.self) { hour in
210 | Text("\(hour)")
/Users/admin/builder/spi-builder-workspace/Sources/TVDatePicker/API/TVDatePicker.swift:214:14: error: 'pickerStyle' is only available in macOS 10.15 or newer
152 |
153 | @available(iOS, unavailable)
154 | private extension TVDatePicker {
| `- note: add @available attribute to enclosing extension
155 | @ViewBuilder func navigationViewContent() -> some View {
156 | VStack(alignment: .leading, content: content)
:
160 | }
161 |
162 | @ViewBuilder func content() -> some View {
| `- note: add @available attribute to enclosing instance method
163 | Text(dateFormatter.string(from: selection)).font(.headline)
164 |
:
212 | }
213 | }
214 | .pickerStyle(pickerStyle)
| |- error: 'pickerStyle' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
215 |
216 | Picker(selection: $selectedMinute.onChange(didChangeMinute), label: Text("Minute")) {
/Users/admin/builder/spi-builder-workspace/Sources/TVDatePicker/API/TVDatePicker.swift:216:13: error: 'Picker' is only available in macOS 10.15 or newer
152 |
153 | @available(iOS, unavailable)
154 | private extension TVDatePicker {
| `- note: add @available attribute to enclosing extension
155 | @ViewBuilder func navigationViewContent() -> some View {
156 | VStack(alignment: .leading, content: content)
:
160 | }
161 |
162 | @ViewBuilder func content() -> some View {
| `- note: add @available attribute to enclosing instance method
163 | Text(dateFormatter.string(from: selection)).font(.headline)
164 |
:
214 | .pickerStyle(pickerStyle)
215 |
216 | Picker(selection: $selectedMinute.onChange(didChangeMinute), label: Text("Minute")) {
| |- error: 'Picker' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
217 | ForEach(Array(minutes), id: \.self) { minute in
218 | Text("\(minute)")
/Users/admin/builder/spi-builder-workspace/Sources/TVDatePicker/API/TVDatePicker.swift:216:13: error: 'init(selection:label:content:)' is only available in macOS 10.15 or newer
152 |
153 | @available(iOS, unavailable)
154 | private extension TVDatePicker {
| `- note: add @available attribute to enclosing extension
155 | @ViewBuilder func navigationViewContent() -> some View {
156 | VStack(alignment: .leading, content: content)
:
160 | }
161 |
162 | @ViewBuilder func content() -> some View {
| `- note: add @available attribute to enclosing instance method
163 | Text(dateFormatter.string(from: selection)).font(.headline)
164 |
:
214 | .pickerStyle(pickerStyle)
215 |
216 | Picker(selection: $selectedMinute.onChange(didChangeMinute), label: Text("Minute")) {
| |- error: 'init(selection:label:content:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
217 | ForEach(Array(minutes), id: \.self) { minute in
218 | Text("\(minute)")
/Users/admin/builder/spi-builder-workspace/Sources/TVDatePicker/API/TVDatePicker.swift:216:81: error: 'Text' is only available in macOS 10.15 or newer
152 |
153 | @available(iOS, unavailable)
154 | private extension TVDatePicker {
| `- note: add @available attribute to enclosing extension
155 | @ViewBuilder func navigationViewContent() -> some View {
156 | VStack(alignment: .leading, content: content)
:
160 | }
161 |
162 | @ViewBuilder func content() -> some View {
| `- note: add @available attribute to enclosing instance method
163 | Text(dateFormatter.string(from: selection)).font(.headline)
164 |
:
214 | .pickerStyle(pickerStyle)
215 |
216 | Picker(selection: $selectedMinute.onChange(didChangeMinute), label: Text("Minute")) {
| |- error: 'Text' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
217 | ForEach(Array(minutes), id: \.self) { minute in
218 | Text("\(minute)")
/Users/admin/builder/spi-builder-workspace/Sources/TVDatePicker/API/TVDatePicker.swift:217: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
152 |
153 | @available(iOS, unavailable)
154 | private extension TVDatePicker {
| `- note: add @available attribute to enclosing extension
155 | @ViewBuilder func navigationViewContent() -> some View {
156 | VStack(alignment: .leading, content: content)
:
160 | }
161 |
162 | @ViewBuilder func content() -> some View {
| `- note: add @available attribute to enclosing instance method
163 | Text(dateFormatter.string(from: selection)).font(.headline)
164 |
:
215 |
216 | Picker(selection: $selectedMinute.onChange(didChangeMinute), label: Text("Minute")) {
217 | ForEach(Array(minutes), id: \.self) { minute 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
218 | Text("\(minute)")
219 | .tag(minute)
/Users/admin/builder/spi-builder-workspace/Sources/TVDatePicker/API/TVDatePicker.swift:217:17: error: 'ForEach' is only available in macOS 10.15 or newer
152 |
153 | @available(iOS, unavailable)
154 | private extension TVDatePicker {
| `- note: add @available attribute to enclosing extension
155 | @ViewBuilder func navigationViewContent() -> some View {
156 | VStack(alignment: .leading, content: content)
:
160 | }
161 |
162 | @ViewBuilder func content() -> some View {
| `- note: add @available attribute to enclosing instance method
163 | Text(dateFormatter.string(from: selection)).font(.headline)
164 |
:
215 |
216 | Picker(selection: $selectedMinute.onChange(didChangeMinute), label: Text("Minute")) {
217 | ForEach(Array(minutes), id: \.self) { minute in
| |- error: 'ForEach' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
218 | Text("\(minute)")
219 | .tag(minute)
/Users/admin/builder/spi-builder-workspace/Sources/TVDatePicker/API/TVDatePicker.swift:217:17: error: 'init(_:id:content:)' is only available in macOS 10.15 or newer
152 |
153 | @available(iOS, unavailable)
154 | private extension TVDatePicker {
| `- note: add @available attribute to enclosing extension
155 | @ViewBuilder func navigationViewContent() -> some View {
156 | VStack(alignment: .leading, content: content)
:
160 | }
161 |
162 | @ViewBuilder func content() -> some View {
| `- note: add @available attribute to enclosing instance method
163 | Text(dateFormatter.string(from: selection)).font(.headline)
164 |
:
215 |
216 | Picker(selection: $selectedMinute.onChange(didChangeMinute), label: Text("Minute")) {
217 | ForEach(Array(minutes), id: \.self) { minute in
| |- error: 'init(_:id:content:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
218 | Text("\(minute)")
219 | .tag(minute)
/Users/admin/builder/spi-builder-workspace/Sources/TVDatePicker/API/TVDatePicker.swift:218:21: error: 'Text' is only available in macOS 10.15 or newer
152 |
153 | @available(iOS, unavailable)
154 | private extension TVDatePicker {
| `- note: add @available attribute to enclosing extension
155 | @ViewBuilder func navigationViewContent() -> some View {
156 | VStack(alignment: .leading, content: content)
:
160 | }
161 |
162 | @ViewBuilder func content() -> some View {
| `- note: add @available attribute to enclosing instance method
163 | Text(dateFormatter.string(from: selection)).font(.headline)
164 |
:
216 | Picker(selection: $selectedMinute.onChange(didChangeMinute), label: Text("Minute")) {
217 | ForEach(Array(minutes), id: \.self) { minute in
218 | Text("\(minute)")
| |- error: 'Text' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
219 | .tag(minute)
220 | }
/Users/admin/builder/spi-builder-workspace/Sources/TVDatePicker/API/TVDatePicker.swift:219:22: error: 'tag(_:includeOptional:)' is only available in macOS 10.15 or newer
152 |
153 | @available(iOS, unavailable)
154 | private extension TVDatePicker {
| `- note: add @available attribute to enclosing extension
155 | @ViewBuilder func navigationViewContent() -> some View {
156 | VStack(alignment: .leading, content: content)
:
160 | }
161 |
162 | @ViewBuilder func content() -> some View {
| `- note: add @available attribute to enclosing instance method
163 | Text(dateFormatter.string(from: selection)).font(.headline)
164 |
:
217 | ForEach(Array(minutes), id: \.self) { minute in
218 | Text("\(minute)")
219 | .tag(minute)
| |- error: 'tag(_:includeOptional:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
220 | }
221 | }
/Users/admin/builder/spi-builder-workspace/Sources/TVDatePicker/API/TVDatePicker.swift:216:97: 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
152 |
153 | @available(iOS, unavailable)
154 | private extension TVDatePicker {
| `- note: add @available attribute to enclosing extension
155 | @ViewBuilder func navigationViewContent() -> some View {
156 | VStack(alignment: .leading, content: content)
:
160 | }
161 |
162 | @ViewBuilder func content() -> some View {
| `- note: add @available attribute to enclosing instance method
163 | Text(dateFormatter.string(from: selection)).font(.headline)
164 |
:
214 | .pickerStyle(pickerStyle)
215 |
216 | Picker(selection: $selectedMinute.onChange(didChangeMinute), label: Text("Minute")) {
| |- 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
217 | ForEach(Array(minutes), id: \.self) { minute in
218 | Text("\(minute)")
/Users/admin/builder/spi-builder-workspace/Sources/TVDatePicker/API/TVDatePicker.swift:222:14: error: 'pickerStyle' is only available in macOS 10.15 or newer
152 |
153 | @available(iOS, unavailable)
154 | private extension TVDatePicker {
| `- note: add @available attribute to enclosing extension
155 | @ViewBuilder func navigationViewContent() -> some View {
156 | VStack(alignment: .leading, content: content)
:
160 | }
161 |
162 | @ViewBuilder func content() -> some View {
| `- note: add @available attribute to enclosing instance method
163 | Text(dateFormatter.string(from: selection)).font(.headline)
164 |
:
220 | }
221 | }
222 | .pickerStyle(pickerStyle)
| |- error: 'pickerStyle' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
223 | }
224 | }
/Users/admin/builder/spi-builder-workspace/Sources/TVDatePicker/API/TVDatePicker.swift:203:57: error: 'buildIf' is only available in macOS 10.15 or newer
152 |
153 | @available(iOS, unavailable)
154 | private extension TVDatePicker {
| `- note: add @available attribute to enclosing extension
155 | @ViewBuilder func navigationViewContent() -> some View {
156 | VStack(alignment: .leading, content: content)
:
160 | }
161 |
162 | @ViewBuilder func content() -> some View {
| `- note: add @available attribute to enclosing instance method
163 | Text(dateFormatter.string(from: selection)).font(.headline)
164 |
:
201 | }
202 |
203 | if displayedComponents.contains(.hourAndMinute) {
| |- error: 'buildIf' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
204 | Text("HH:mm")
205 | .foregroundColor(.secondary)
/Users/admin/builder/spi-builder-workspace/Sources/TVDatePicker/API/TVDatePicker.swift:203:57: 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
152 |
153 | @available(iOS, unavailable)
154 | private extension TVDatePicker {
| `- note: add @available attribute to enclosing extension
155 | @ViewBuilder func navigationViewContent() -> some View {
156 | VStack(alignment: .leading, content: content)
:
160 | }
161 |
162 | @ViewBuilder func content() -> some View {
| `- note: add @available attribute to enclosing instance method
163 | Text(dateFormatter.string(from: selection)).font(.headline)
164 |
:
201 | }
202 |
203 | if displayedComponents.contains(.hourAndMinute) {
| |- 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
204 | Text("HH:mm")
205 | .foregroundColor(.secondary)
/Users/admin/builder/spi-builder-workspace/Sources/TVDatePicker/API/TVDatePicker.swift:223:9: error: 'buildIf' is only available in macOS 10.15 or newer
152 |
153 | @available(iOS, unavailable)
154 | private extension TVDatePicker {
| `- note: add @available attribute to enclosing extension
155 | @ViewBuilder func navigationViewContent() -> some View {
156 | VStack(alignment: .leading, content: content)
:
160 | }
161 |
162 | @ViewBuilder func content() -> some View {
| `- note: add @available attribute to enclosing instance method
163 | Text(dateFormatter.string(from: selection)).font(.headline)
164 |
:
221 | }
222 | .pickerStyle(pickerStyle)
223 | }
| |- error: 'buildIf' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
224 | }
225 |
/Users/admin/builder/spi-builder-workspace/Sources/TVDatePicker/API/TVDatePicker.swift:162:46: 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
152 |
153 | @available(iOS, unavailable)
154 | private extension TVDatePicker {
| `- note: add @available attribute to enclosing extension
155 | @ViewBuilder func navigationViewContent() -> some View {
156 | VStack(alignment: .leading, content: content)
:
160 | }
161 |
162 | @ViewBuilder func content() -> some View {
| | |- 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
| `- note: add @available attribute to enclosing instance method
163 | Text(dateFormatter.string(from: selection)).font(.headline)
164 |
/Users/admin/builder/spi-builder-workspace/Sources/TVDatePicker/API/TVDatePicker.swift:162:46: 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
152 |
153 | @available(iOS, unavailable)
154 | private extension TVDatePicker {
| `- note: add @available attribute to enclosing extension
155 | @ViewBuilder func navigationViewContent() -> some View {
156 | VStack(alignment: .leading, content: content)
:
160 | }
161 |
162 | @ViewBuilder func content() -> some View {
| | |- 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
| `- note: add @available attribute to enclosing instance method
163 | Text(dateFormatter.string(from: selection)).font(.headline)
164 |
/Users/admin/builder/spi-builder-workspace/Sources/TVDatePicker/API/TVDatePicker.swift:162:46: warning: conformance of 'Optional<Wrapped>' to 'View' is only available in macOS 10.15 or newer; this is an error in the Swift 6 language mode
152 |
153 | @available(iOS, unavailable)
154 | private extension TVDatePicker {
| `- note: add @available attribute to enclosing extension
155 | @ViewBuilder func navigationViewContent() -> some View {
156 | VStack(alignment: .leading, content: content)
:
160 | }
161 |
162 | @ViewBuilder func content() -> some View {
| | |- warning: conformance of 'Optional<Wrapped>' to 'View' is only available in macOS 10.15 or newer; this is an error in the Swift 6 language mode
| | `- note: add 'if #available' version check
| `- note: add @available attribute to enclosing instance method
163 | Text(dateFormatter.string(from: selection)).font(.headline)
164 |
/Users/admin/builder/spi-builder-workspace/Sources/TVDatePicker/API/TVDatePicker.swift:162:46: warning: conformance of 'Optional<Wrapped>' to 'View' is only available in macOS 10.15 or newer; this is an error in the Swift 6 language mode
152 |
153 | @available(iOS, unavailable)
154 | private extension TVDatePicker {
| `- note: add @available attribute to enclosing extension
155 | @ViewBuilder func navigationViewContent() -> some View {
156 | VStack(alignment: .leading, content: content)
:
160 | }
161 |
162 | @ViewBuilder func content() -> some View {
| | |- warning: conformance of 'Optional<Wrapped>' to 'View' is only available in macOS 10.15 or newer; this is an error in the Swift 6 language mode
| | `- note: add 'if #available' version check
| `- note: add @available attribute to enclosing instance method
163 | Text(dateFormatter.string(from: selection)).font(.headline)
164 |
/Users/admin/builder/spi-builder-workspace/Sources/TVDatePicker/API/TVDatePicker.swift:162:46: warning: conformance of 'Optional<Wrapped>' to 'View' is only available in macOS 10.15 or newer; this is an error in the Swift 6 language mode
152 |
153 | @available(iOS, unavailable)
154 | private extension TVDatePicker {
| `- note: add @available attribute to enclosing extension
155 | @ViewBuilder func navigationViewContent() -> some View {
156 | VStack(alignment: .leading, content: content)
:
160 | }
161 |
162 | @ViewBuilder func content() -> some View {
| | |- warning: conformance of 'Optional<Wrapped>' to 'View' is only available in macOS 10.15 or newer; this is an error in the Swift 6 language mode
| | `- note: add 'if #available' version check
| `- note: add @available attribute to enclosing instance method
163 | Text(dateFormatter.string(from: selection)).font(.headline)
164 |
/Users/admin/builder/spi-builder-workspace/Sources/TVDatePicker/API/TVDatePicker.swift:162:46: warning: conformance of 'Optional<Wrapped>' to 'View' is only available in macOS 10.15 or newer; this is an error in the Swift 6 language mode
152 |
153 | @available(iOS, unavailable)
154 | private extension TVDatePicker {
| `- note: add @available attribute to enclosing extension
155 | @ViewBuilder func navigationViewContent() -> some View {
156 | VStack(alignment: .leading, content: content)
:
160 | }
161 |
162 | @ViewBuilder func content() -> some View {
| | |- warning: conformance of 'Optional<Wrapped>' to 'View' is only available in macOS 10.15 or newer; this is an error in the Swift 6 language mode
| | `- note: add 'if #available' version check
| `- note: add @available attribute to enclosing instance method
163 | Text(dateFormatter.string(from: selection)).font(.headline)
164 |
/Users/admin/builder/spi-builder-workspace/Sources/TVDatePicker/API/TVDatePicker.swift:227:9: warning: conformance of 'Image' to 'View' is only available in macOS 10.15 or newer; this is an error in the Swift 6 language mode
152 |
153 | @available(iOS, unavailable)
154 | private extension TVDatePicker {
| `- note: add @available attribute to enclosing extension
155 | @ViewBuilder func navigationViewContent() -> some View {
156 | VStack(alignment: .leading, content: content)
:
224 | }
225 |
226 | func dismissButton() -> some View {
| `- note: add @available attribute to enclosing instance method
227 | Button(action: {
| |- warning: conformance of 'Image' to 'View' is only available in macOS 10.15 or newer; this is an error in the Swift 6 language mode
| `- note: add 'if #available' version check
228 | isSheetPresented = false
229 | }, label: {
/Users/admin/builder/spi-builder-workspace/Sources/TVDatePicker/API/TVDatePicker.swift:227:9: error: 'Button' is only available in macOS 10.15 or newer
152 |
153 | @available(iOS, unavailable)
154 | private extension TVDatePicker {
| `- note: add @available attribute to enclosing extension
155 | @ViewBuilder func navigationViewContent() -> some View {
156 | VStack(alignment: .leading, content: content)
:
224 | }
225 |
226 | func dismissButton() -> some View {
| `- note: add @available attribute to enclosing instance method
227 | Button(action: {
| |- error: 'Button' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
228 | isSheetPresented = false
229 | }, label: {
/Users/admin/builder/spi-builder-workspace/Sources/TVDatePicker/API/TVDatePicker.swift:227:9: warning: conformance of 'Image' to 'View' is only available in macOS 10.15 or newer; this is an error in the Swift 6 language mode
152 |
153 | @available(iOS, unavailable)
154 | private extension TVDatePicker {
| `- note: add @available attribute to enclosing extension
155 | @ViewBuilder func navigationViewContent() -> some View {
156 | VStack(alignment: .leading, content: content)
:
224 | }
225 |
226 | func dismissButton() -> some View {
| `- note: add @available attribute to enclosing instance method
227 | Button(action: {
| |- warning: conformance of 'Image' to 'View' is only available in macOS 10.15 or newer; this is an error in the Swift 6 language mode
| `- note: add 'if #available' version check
228 | isSheetPresented = false
229 | }, label: {
/Users/admin/builder/spi-builder-workspace/Sources/TVDatePicker/API/TVDatePicker.swift:228:13: error: setter for 'isSheetPresented' is only available in macOS 10.15 or newer
152 |
153 | @available(iOS, unavailable)
154 | private extension TVDatePicker {
| `- note: add @available attribute to enclosing extension
155 | @ViewBuilder func navigationViewContent() -> some View {
156 | VStack(alignment: .leading, content: content)
:
224 | }
225 |
226 | func dismissButton() -> some View {
| `- note: add @available attribute to enclosing instance method
227 | Button(action: {
228 | isSheetPresented = false
| |- error: setter for 'isSheetPresented' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
229 | }, label: {
230 | Image(systemName: "xmark")
/Users/admin/builder/spi-builder-workspace/Sources/TVDatePicker/API/TVDatePicker.swift:230:13: warning: conformance of 'Image' to 'View' is only available in macOS 10.15 or newer; this is an error in the Swift 6 language mode
152 |
153 | @available(iOS, unavailable)
154 | private extension TVDatePicker {
| `- note: add @available attribute to enclosing extension
155 | @ViewBuilder func navigationViewContent() -> some View {
156 | VStack(alignment: .leading, content: content)
:
224 | }
225 |
226 | func dismissButton() -> some View {
| `- note: add @available attribute to enclosing instance method
227 | Button(action: {
228 | isSheetPresented = false
229 | }, label: {
230 | Image(systemName: "xmark")
| |- warning: conformance of 'Image' to 'View' is only available in macOS 10.15 or newer; this is an error in the Swift 6 language mode
| `- note: add 'if #available' version check
231 | })
232 | }
/Users/admin/builder/spi-builder-workspace/Sources/TVDatePicker/API/TVDatePicker.swift:230:13: error: 'Image' is only available in macOS 10.15 or newer
152 |
153 | @available(iOS, unavailable)
154 | private extension TVDatePicker {
| `- note: add @available attribute to enclosing extension
155 | @ViewBuilder func navigationViewContent() -> some View {
156 | VStack(alignment: .leading, content: content)
:
224 | }
225 |
226 | func dismissButton() -> some View {
| `- note: add @available attribute to enclosing instance method
227 | Button(action: {
228 | isSheetPresented = false
229 | }, label: {
230 | Image(systemName: "xmark")
| |- error: 'Image' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
231 | })
232 | }
/Users/admin/builder/spi-builder-workspace/Sources/TVDatePicker/API/TVDatePicker.swift:230:13: error: 'init(systemName:)' is only available in macOS 11.0 or newer
152 |
153 | @available(iOS, unavailable)
154 | private extension TVDatePicker {
| `- note: add @available attribute to enclosing extension
155 | @ViewBuilder func navigationViewContent() -> some View {
156 | VStack(alignment: .leading, content: content)
:
224 | }
225 |
226 | func dismissButton() -> some View {
| `- note: add @available attribute to enclosing instance method
227 | Button(action: {
228 | isSheetPresented = false
229 | }, label: {
230 | Image(systemName: "xmark")
| |- error: 'init(systemName:)' is only available in macOS 11.0 or newer
| `- note: add 'if #available' version check
231 | })
232 | }
/Users/admin/builder/spi-builder-workspace/Sources/TVDatePicker/API/TVDatePicker.swift:229:19: warning: conformance of 'Image' to 'View' is only available in macOS 10.15 or newer; this is an error in the Swift 6 language mode
152 |
153 | @available(iOS, unavailable)
154 | private extension TVDatePicker {
| `- note: add @available attribute to enclosing extension
155 | @ViewBuilder func navigationViewContent() -> some View {
156 | VStack(alignment: .leading, content: content)
:
224 | }
225 |
226 | func dismissButton() -> some View {
| `- note: add @available attribute to enclosing instance method
227 | Button(action: {
228 | isSheetPresented = false
229 | }, label: {
| |- warning: conformance of 'Image' to 'View' is only available in macOS 10.15 or newer; this is an error in the Swift 6 language mode
| `- note: add 'if #available' version check
230 | Image(systemName: "xmark")
231 | })
/Users/admin/builder/spi-builder-workspace/Sources/TVDatePicker/API/TVDatePicker.swift:299:9: error: setter for 'selectedYear' is only available in macOS 10.15 or newer
152 |
153 | @available(iOS, unavailable)
154 | private extension TVDatePicker {
| `- note: add @available attribute to enclosing extension
155 | @ViewBuilder func navigationViewContent() -> some View {
156 | VStack(alignment: .leading, content: content)
:
296 | }
297 |
298 | func updateSelectedDateComponents(from selection: Date) {
| `- note: add @available attribute to enclosing instance method
299 | selectedYear = calendar.component(.year, from: selection)
| |- error: setter for 'selectedYear' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
300 | selectedMonth = calendar.component(.month, from: selection)
301 | selectedDay = calendar.component(.day, from: selection)
/Users/admin/builder/spi-builder-workspace/Sources/TVDatePicker/API/TVDatePicker.swift:300:9: error: setter for 'selectedMonth' is only available in macOS 10.15 or newer
152 |
153 | @available(iOS, unavailable)
154 | private extension TVDatePicker {
| `- note: add @available attribute to enclosing extension
155 | @ViewBuilder func navigationViewContent() -> some View {
156 | VStack(alignment: .leading, content: content)
:
296 | }
297 |
298 | func updateSelectedDateComponents(from selection: Date) {
| `- note: add @available attribute to enclosing instance method
299 | selectedYear = calendar.component(.year, from: selection)
300 | selectedMonth = calendar.component(.month, from: selection)
| |- error: setter for 'selectedMonth' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
301 | selectedDay = calendar.component(.day, from: selection)
302 | selectedHour = calendar.component(.hour, from: selection)
/Users/admin/builder/spi-builder-workspace/Sources/TVDatePicker/API/TVDatePicker.swift:301:9: error: setter for 'selectedDay' is only available in macOS 10.15 or newer
152 |
153 | @available(iOS, unavailable)
154 | private extension TVDatePicker {
| `- note: add @available attribute to enclosing extension
155 | @ViewBuilder func navigationViewContent() -> some View {
156 | VStack(alignment: .leading, content: content)
:
296 | }
297 |
298 | func updateSelectedDateComponents(from selection: Date) {
| `- note: add @available attribute to enclosing instance method
299 | selectedYear = calendar.component(.year, from: selection)
300 | selectedMonth = calendar.component(.month, from: selection)
301 | selectedDay = calendar.component(.day, from: selection)
| |- error: setter for 'selectedDay' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
302 | selectedHour = calendar.component(.hour, from: selection)
303 |
/Users/admin/builder/spi-builder-workspace/Sources/TVDatePicker/API/TVDatePicker.swift:302:9: error: setter for 'selectedHour' is only available in macOS 10.15 or newer
152 |
153 | @available(iOS, unavailable)
154 | private extension TVDatePicker {
| `- note: add @available attribute to enclosing extension
155 | @ViewBuilder func navigationViewContent() -> some View {
156 | VStack(alignment: .leading, content: content)
:
296 | }
297 |
298 | func updateSelectedDateComponents(from selection: Date) {
| `- note: add @available attribute to enclosing instance method
299 | selectedYear = calendar.component(.year, from: selection)
300 | selectedMonth = calendar.component(.month, from: selection)
301 | selectedDay = calendar.component(.day, from: selection)
302 | selectedHour = calendar.component(.hour, from: selection)
| |- error: setter for 'selectedHour' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
303 |
304 | let currentMinute = calendar.component(.minute, from: selection)
/Users/admin/builder/spi-builder-workspace/Sources/TVDatePicker/API/TVDatePicker.swift:305:9: error: setter for 'selectedMinute' is only available in macOS 10.15 or newer
152 |
153 | @available(iOS, unavailable)
154 | private extension TVDatePicker {
| `- note: add @available attribute to enclosing extension
155 | @ViewBuilder func navigationViewContent() -> some View {
156 | VStack(alignment: .leading, content: content)
:
296 | }
297 |
298 | func updateSelectedDateComponents(from selection: Date) {
| `- note: add @available attribute to enclosing instance method
299 | selectedYear = calendar.component(.year, from: selection)
300 | selectedMonth = calendar.component(.month, from: selection)
:
303 |
304 | let currentMinute = calendar.component(.minute, from: selection)
305 | selectedMinute = currentMinute - (currentMinute % 5)
| |- error: setter for 'selectedMinute' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
306 | }
307 |
/Users/admin/builder/spi-builder-workspace/Sources/TVDatePicker/API/TVDatePicker.swift:322:13: error: setter for 'selection' is only available in macOS 10.15 or newer
152 |
153 | @available(iOS, unavailable)
154 | private extension TVDatePicker {
| `- note: add @available attribute to enclosing extension
155 | @ViewBuilder func navigationViewContent() -> some View {
156 | VStack(alignment: .leading, content: content)
:
306 | }
307 |
308 | func updateDate(with dateComponents: DateComponents) {
| `- note: add @available attribute to enclosing instance method
309 | if !dateComponents.isValidDate(in: calendar) {
310 | let updatedDate: Date
:
320 | }
321 |
322 | self.selection = updatedDate
| |- error: setter for 'selection' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
323 | updateSelectedDateComponents(from: updatedDate)
324 | } else if let selection = calendar.date(from: dateComponents) {
/Users/admin/builder/spi-builder-workspace/Sources/TVDatePicker/API/TVDatePicker.swift:325:13: error: setter for 'selection' is only available in macOS 10.15 or newer
152 |
153 | @available(iOS, unavailable)
154 | private extension TVDatePicker {
| `- note: add @available attribute to enclosing extension
155 | @ViewBuilder func navigationViewContent() -> some View {
156 | VStack(alignment: .leading, content: content)
:
306 | }
307 |
308 | func updateDate(with dateComponents: DateComponents) {
| `- note: add @available attribute to enclosing instance method
309 | if !dateComponents.isValidDate(in: calendar) {
310 | let updatedDate: Date
:
323 | updateSelectedDateComponents(from: updatedDate)
324 | } else if let selection = calendar.date(from: dateComponents) {
325 | self.selection = selection
| |- error: setter for 'selection' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
326 | }
327 | }
[6/8] Compiling TVDatePicker Binding+onChange.swift
/Users/admin/builder/spi-builder-workspace/Sources/TVDatePicker/internal/Binding+onChange.swift:12:60: error: 'Binding' is only available in macOS 10.15 or newer
9 |
10 | @available(iOS, unavailable)
11 | extension Binding {
| `- note: add @available attribute to enclosing extension
12 | func onChange(_ handler: @escaping (Value) -> Void) -> Binding<Value> {
| | `- error: 'Binding' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing instance method
13 | Binding(
14 | get: { wrappedValue },
/Users/admin/builder/spi-builder-workspace/Sources/TVDatePicker/internal/Binding+onChange.swift:11:11: error: 'Binding' is only available in macOS 10.15 or newer
9 |
10 | @available(iOS, unavailable)
11 | extension Binding {
| | `- error: 'Binding' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing extension
12 | func onChange(_ handler: @escaping (Value) -> Void) -> Binding<Value> {
13 | Binding(
/Users/admin/builder/spi-builder-workspace/Sources/TVDatePicker/internal/Binding+onChange.swift:13:9: error: 'Binding' is only available in macOS 10.15 or newer
9 |
10 | @available(iOS, unavailable)
11 | extension Binding {
| `- note: add @available attribute to enclosing extension
12 | func onChange(_ handler: @escaping (Value) -> Void) -> Binding<Value> {
| `- note: add @available attribute to enclosing instance method
13 | Binding(
| |- error: 'Binding' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
14 | get: { wrappedValue },
15 | set: { selection in
/Users/admin/builder/spi-builder-workspace/Sources/TVDatePicker/internal/Binding+onChange.swift:14:20: warning: capture of 'self' with non-sendable type 'Binding<Value>' in a `@Sendable` closure; this is an error in the Swift 6 language mode
12 | func onChange(_ handler: @escaping (Value) -> Void) -> Binding<Value> {
13 | Binding(
14 | get: { wrappedValue },
| `- warning: capture of 'self' with non-sendable type 'Binding<Value>' in a `@Sendable` closure; this is an error in the Swift 6 language mode
15 | set: { selection in
16 | wrappedValue = selection
/Users/admin/builder/spi-builder-workspace/Sources/TVDatePicker/internal/Binding+onChange.swift:16:17: warning: capture of 'self' with non-sendable type 'Binding<Value>' in a `@Sendable` closure; this is an error in the Swift 6 language mode
14 | get: { wrappedValue },
15 | set: { selection in
16 | wrappedValue = selection
| `- warning: capture of 'self' with non-sendable type 'Binding<Value>' in a `@Sendable` closure; this is an error in the Swift 6 language mode
17 | handler(selection)
18 | })
/Users/admin/builder/spi-builder-workspace/Sources/TVDatePicker/internal/Binding+onChange.swift:17:17: warning: capture of 'handler' with non-sendable type '(Value) -> Void' in a `@Sendable` closure; this is an error in the Swift 6 language mode
15 | set: { selection in
16 | wrappedValue = selection
17 | handler(selection)
| |- warning: capture of 'handler' with non-sendable type '(Value) -> Void' in a `@Sendable` closure; this is an error in the Swift 6 language mode
| `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
18 | })
19 | }
[7/8] Compiling TVDatePicker View+navigationTitle.swift
/Users/admin/builder/spi-builder-workspace/Sources/TVDatePicker/internal/View+navigationTitle.swift:12:46: error: 'Text' is only available in macOS 10.15 or newer
9 |
10 | @available(iOS, unavailable)
11 | extension View {
| `- note: add @available attribute to enclosing extension
12 | @ViewBuilder func navigationTitle(title: Text) -> some View {
| | `- error: 'Text' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing instance method
13 | if #available(tvOS 14, *) {
14 | self.navigationTitle(title)
/Users/admin/builder/spi-builder-workspace/Sources/TVDatePicker/internal/View+navigationTitle.swift:12:60: error: 'View' is only available in macOS 10.15 or newer
9 |
10 | @available(iOS, unavailable)
11 | extension View {
| `- note: add @available attribute to enclosing extension
12 | @ViewBuilder func navigationTitle(title: Text) -> some View {
| | `- error: 'View' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing instance method
13 | if #available(tvOS 14, *) {
14 | self.navigationTitle(title)
/Users/admin/builder/spi-builder-workspace/Sources/TVDatePicker/internal/View+navigationTitle.swift:12:6: error: 'ViewBuilder' is only available in macOS 10.15 or newer
9 |
10 | @available(iOS, unavailable)
11 | extension View {
| `- note: add @available attribute to enclosing extension
12 | @ViewBuilder func navigationTitle(title: Text) -> some View {
| | `- note: add @available attribute to enclosing instance method
| `- error: 'ViewBuilder' is only available in macOS 10.15 or newer
13 | if #available(tvOS 14, *) {
14 | self.navigationTitle(title)
/Users/admin/builder/spi-builder-workspace/Sources/TVDatePicker/internal/View+navigationTitle.swift:11:11: error: 'View' is only available in macOS 10.15 or newer
9 |
10 | @available(iOS, unavailable)
11 | extension View {
| | `- error: 'View' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing extension
12 | @ViewBuilder func navigationTitle(title: Text) -> some View {
13 | if #available(tvOS 14, *) {
/Users/admin/builder/spi-builder-workspace/Sources/TVDatePicker/internal/View+navigationTitle.swift:13:12: warning: result builder 'ViewBuilder' does not implement 'buildLimitedAvailability'; this code may crash on earlier versions of the OS
11 | extension View {
12 | @ViewBuilder func navigationTitle(title: Text) -> some View {
13 | if #available(tvOS 14, *) {
| `- warning: result builder 'ViewBuilder' does not implement 'buildLimitedAvailability'; this code may crash on earlier versions of the OS
14 | self.navigationTitle(title)
15 | } else {
/Users/admin/builder/spi-builder-workspace/Sources/TVDatePicker/internal/View+navigationTitle.swift:14:18: error: 'navigationTitle' is only available in macOS 11.0 or newer
9 |
10 | @available(iOS, unavailable)
11 | extension View {
| `- note: add @available attribute to enclosing extension
12 | @ViewBuilder func navigationTitle(title: Text) -> some View {
| `- note: add @available attribute to enclosing instance method
13 | if #available(tvOS 14, *) {
14 | self.navigationTitle(title)
| |- error: 'navigationTitle' is only available in macOS 11.0 or newer
| `- note: add 'if #available' version check
15 | } else {
16 | self.navigationBarTitle(title)
/Users/admin/builder/spi-builder-workspace/Sources/TVDatePicker/internal/View+navigationTitle.swift:13:35: error: 'buildLimitedAvailability' is only available in macOS 11.0 or newer
9 |
10 | @available(iOS, unavailable)
11 | extension View {
| `- note: add @available attribute to enclosing extension
12 | @ViewBuilder func navigationTitle(title: Text) -> some View {
| `- note: add @available attribute to enclosing instance method
13 | if #available(tvOS 14, *) {
| |- error: 'buildLimitedAvailability' is only available in macOS 11.0 or newer
| `- note: add 'if #available' version check
14 | self.navigationTitle(title)
15 | } else {
/Users/admin/builder/spi-builder-workspace/Sources/TVDatePicker/internal/View+navigationTitle.swift:13:35: error: 'buildEither(first:)' is only available in macOS 10.15 or newer
9 |
10 | @available(iOS, unavailable)
11 | extension View {
| `- note: add @available attribute to enclosing extension
12 | @ViewBuilder func navigationTitle(title: Text) -> some View {
| `- note: add @available attribute to enclosing instance method
13 | if #available(tvOS 14, *) {
| |- error: 'buildEither(first:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
14 | self.navigationTitle(title)
15 | } else {
/Users/admin/builder/spi-builder-workspace/Sources/TVDatePicker/internal/View+navigationTitle.swift:16:18: error: 'navigationBarTitle' is unavailable in macOS
14 | self.navigationTitle(title)
15 | } else {
16 | self.navigationBarTitle(title)
| `- error: 'navigationBarTitle' is unavailable in macOS
17 | }
18 | }
SwiftUI.View:15:29: note: 'navigationBarTitle' has been explicitly marked unavailable here
13 | @available(watchOS, introduced: 6.0, deprecated: 100000.0, renamed: "navigationTitle(_:)")
14 | @available(visionOS, introduced: 1.0, deprecated: 100000.0, renamed: "navigationTitle(_:)")
15 | nonisolated public func navigationBarTitle(_ title: Text) -> some View
| `- note: 'navigationBarTitle' has been explicitly marked unavailable here
16 |
17 | @available(iOS, introduced: 13.0, deprecated: 100000.0, renamed: "navigationTitle(_:)")
/Users/admin/builder/spi-builder-workspace/Sources/TVDatePicker/internal/View+navigationTitle.swift:15:16: error: 'buildEither(second:)' is only available in macOS 10.15 or newer
9 |
10 | @available(iOS, unavailable)
11 | extension View {
| `- note: add @available attribute to enclosing extension
12 | @ViewBuilder func navigationTitle(title: Text) -> some View {
| `- note: add @available attribute to enclosing instance method
13 | if #available(tvOS 14, *) {
14 | self.navigationTitle(title)
15 | } else {
| |- error: 'buildEither(second:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
16 | self.navigationBarTitle(title)
17 | }
/Users/admin/builder/spi-builder-workspace/Sources/TVDatePicker/internal/View+navigationTitle.swift:12:65: warning: conformance of '_ConditionalContent<TrueContent, FalseContent>' to 'View' is only available in macOS 10.15 or newer; this is an error in the Swift 6 language mode
9 |
10 | @available(iOS, unavailable)
11 | extension View {
| `- note: add @available attribute to enclosing extension
12 | @ViewBuilder func navigationTitle(title: Text) -> some View {
| | |- warning: conformance of '_ConditionalContent<TrueContent, FalseContent>' to 'View' is only available in macOS 10.15 or newer; this is an error in the Swift 6 language mode
| | `- note: add 'if #available' version check
| `- note: add @available attribute to enclosing instance method
13 | if #available(tvOS 14, *) {
14 | self.navigationTitle(title)
[8/8] Compiling TVDatePicker View+toolbar.swift
/Users/admin/builder/spi-builder-workspace/Sources/TVDatePicker/internal/View+toolbar.swift:12:27: error: 'View' is only available in macOS 10.15 or newer
9 |
10 | @available(iOS, unavailable)
11 | extension View {
| `- note: add @available attribute to enclosing extension
12 | func toolbar<Leading: View>(leading: Leading) -> some View {
| | `- error: 'View' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing instance method
13 | toolbar(leading: leading, trailing: EmptyView())
14 | }
/Users/admin/builder/spi-builder-workspace/Sources/TVDatePicker/internal/View+toolbar.swift:12:59: error: 'View' is only available in macOS 10.15 or newer
9 |
10 | @available(iOS, unavailable)
11 | extension View {
| `- note: add @available attribute to enclosing extension
12 | func toolbar<Leading: View>(leading: Leading) -> some View {
| | `- error: 'View' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing instance method
13 | toolbar(leading: leading, trailing: EmptyView())
14 | }
/Users/admin/builder/spi-builder-workspace/Sources/TVDatePicker/internal/View+toolbar.swift:16:28: error: 'View' is only available in macOS 10.15 or newer
9 |
10 | @available(iOS, unavailable)
11 | extension View {
| `- note: add @available attribute to enclosing extension
12 | func toolbar<Leading: View>(leading: Leading) -> some View {
13 | toolbar(leading: leading, trailing: EmptyView())
14 | }
15 |
16 | func toolbar<Trailing: View>(trailing: Trailing) -> some View {
| | `- error: 'View' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing instance method
17 | toolbar(leading: EmptyView(), trailing: trailing)
18 | }
/Users/admin/builder/spi-builder-workspace/Sources/TVDatePicker/internal/View+toolbar.swift:16:62: error: 'View' is only available in macOS 10.15 or newer
9 |
10 | @available(iOS, unavailable)
11 | extension View {
| `- note: add @available attribute to enclosing extension
12 | func toolbar<Leading: View>(leading: Leading) -> some View {
13 | toolbar(leading: leading, trailing: EmptyView())
14 | }
15 |
16 | func toolbar<Trailing: View>(trailing: Trailing) -> some View {
| | `- error: 'View' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing instance method
17 | toolbar(leading: EmptyView(), trailing: trailing)
18 | }
/Users/admin/builder/spi-builder-workspace/Sources/TVDatePicker/internal/View+toolbar.swift:20:40: error: 'View' is only available in macOS 10.15 or newer
9 |
10 | @available(iOS, unavailable)
11 | extension View {
| `- note: add @available attribute to enclosing extension
12 | func toolbar<Leading: View>(leading: Leading) -> some View {
13 | toolbar(leading: leading, trailing: EmptyView())
:
18 | }
19 |
20 | @ViewBuilder func toolbar<Leading: View, Trailing: View>(leading: Leading, trailing: Trailing) -> some View {
| | `- error: 'View' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing instance method
21 | if #available(tvOS 14, *) {
22 | if type(of: leading) != EmptyView.self && type(of: trailing) != EmptyView.self {
/Users/admin/builder/spi-builder-workspace/Sources/TVDatePicker/internal/View+toolbar.swift:20:56: error: 'View' is only available in macOS 10.15 or newer
9 |
10 | @available(iOS, unavailable)
11 | extension View {
| `- note: add @available attribute to enclosing extension
12 | func toolbar<Leading: View>(leading: Leading) -> some View {
13 | toolbar(leading: leading, trailing: EmptyView())
:
18 | }
19 |
20 | @ViewBuilder func toolbar<Leading: View, Trailing: View>(leading: Leading, trailing: Trailing) -> some View {
| | `- error: 'View' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing instance method
21 | if #available(tvOS 14, *) {
22 | if type(of: leading) != EmptyView.self && type(of: trailing) != EmptyView.self {
/Users/admin/builder/spi-builder-workspace/Sources/TVDatePicker/internal/View+toolbar.swift:20:108: error: 'View' is only available in macOS 10.15 or newer
9 |
10 | @available(iOS, unavailable)
11 | extension View {
| `- note: add @available attribute to enclosing extension
12 | func toolbar<Leading: View>(leading: Leading) -> some View {
13 | toolbar(leading: leading, trailing: EmptyView())
:
18 | }
19 |
20 | @ViewBuilder func toolbar<Leading: View, Trailing: View>(leading: Leading, trailing: Trailing) -> some View {
| | `- error: 'View' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing instance method
21 | if #available(tvOS 14, *) {
22 | if type(of: leading) != EmptyView.self && type(of: trailing) != EmptyView.self {
/Users/admin/builder/spi-builder-workspace/Sources/TVDatePicker/internal/View+toolbar.swift:20:6: error: 'ViewBuilder' is only available in macOS 10.15 or newer
9 |
10 | @available(iOS, unavailable)
11 | extension View {
| `- note: add @available attribute to enclosing extension
12 | func toolbar<Leading: View>(leading: Leading) -> some View {
13 | toolbar(leading: leading, trailing: EmptyView())
:
18 | }
19 |
20 | @ViewBuilder func toolbar<Leading: View, Trailing: View>(leading: Leading, trailing: Trailing) -> some View {
| | `- note: add @available attribute to enclosing instance method
| `- error: 'ViewBuilder' is only available in macOS 10.15 or newer
21 | if #available(tvOS 14, *) {
22 | if type(of: leading) != EmptyView.self && type(of: trailing) != EmptyView.self {
/Users/admin/builder/spi-builder-workspace/Sources/TVDatePicker/internal/View+toolbar.swift:11:11: error: 'View' is only available in macOS 10.15 or newer
9 |
10 | @available(iOS, unavailable)
11 | extension View {
| | `- error: 'View' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing extension
12 | func toolbar<Leading: View>(leading: Leading) -> some View {
13 | toolbar(leading: leading, trailing: EmptyView())
/Users/admin/builder/spi-builder-workspace/Sources/TVDatePicker/internal/View+toolbar.swift:13:45: error: 'EmptyView' is only available in macOS 10.15 or newer
9 |
10 | @available(iOS, unavailable)
11 | extension View {
| `- note: add @available attribute to enclosing extension
12 | func toolbar<Leading: View>(leading: Leading) -> some View {
| `- note: add @available attribute to enclosing instance method
13 | toolbar(leading: leading, trailing: EmptyView())
| |- error: 'EmptyView' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
14 | }
15 |
/Users/admin/builder/spi-builder-workspace/Sources/TVDatePicker/internal/View+toolbar.swift:17:26: error: 'EmptyView' is only available in macOS 10.15 or newer
9 |
10 | @available(iOS, unavailable)
11 | extension View {
| `- note: add @available attribute to enclosing extension
12 | func toolbar<Leading: View>(leading: Leading) -> some View {
13 | toolbar(leading: leading, trailing: EmptyView())
14 | }
15 |
16 | func toolbar<Trailing: View>(trailing: Trailing) -> some View {
| `- note: add @available attribute to enclosing instance method
17 | toolbar(leading: EmptyView(), trailing: trailing)
| |- error: 'EmptyView' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
18 | }
19 |
/Users/admin/builder/spi-builder-workspace/Sources/TVDatePicker/internal/View+toolbar.swift:23:22: error: ambiguous use of 'toolbar(content:)'
21 | if #available(tvOS 14, *) {
22 | if type(of: leading) != EmptyView.self && type(of: trailing) != EmptyView.self {
23 | self.toolbar {
| `- error: ambiguous use of 'toolbar(content:)'
24 | ToolbarItem(placement: .navigationBarLeading) {
25 | leading
SwiftUI.View:3:29: note: found this candidate in module 'SwiftUI'
1 | @available(iOS 14.0, macOS 11.0, tvOS 14.0, watchOS 7.0, *)
2 | extension View {
3 | nonisolated public func toolbar<Content>(@ViewBuilder content: () -> Content) -> some View where Content : View
| `- note: found this candidate in module 'SwiftUI'
4 |
5 | nonisolated public func toolbar<Content>(@ToolbarContentBuilder content: () -> Content) -> some View where Content : ToolbarContent
| `- note: found this candidate in module 'SwiftUI'
6 |
7 | nonisolated public func toolbar<Content>(id: String, @ToolbarContentBuilder content: () -> Content) -> some View where Content : CustomizableToolbarContent
BUILD FAILURE 6.0 macosSpm