Build Information
Failed to build FXDatePicker, reference main (1ea623), with Swift 6.3 for macOS (SPM) on 14 Apr 2026 05:47:14 UTC.
Build Command
env DEVELOPER_DIR=/Applications/Xcode-26.4.0.app xcrun swift build --arch arm64Build Log
348 | arrowRotation = arrowRotation == 0 ? 90 : 0
349 | openShowSelectedMonths.toggle()
| |- error: cannot pass as inout because setter for 'openShowSelectedMonths' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
350 | }
351 |
/Users/admin/builder/spi-builder-workspace/Sources/FXDatePicker/Views/FXDatePickerView.swift:354:17: error: 'HStack' is only available in macOS 10.15 or newer
292 |
293 | //MARK:- Healper Functions
294 | public extension FXDatePickerView {
| `- note: add '@available' attribute to enclosing extension
295 |
296 | private func setupCurrentDate() {
:
337 | }
338 |
339 | @ViewBuilder func monthTitleView() -> some View {
| `- note: add '@available' attribute to enclosing instance method
340 | if hideDatePicker {
341 | Text(getMonthName(from: displayedMonth))
:
352 | }, label: {
353 |
354 | HStack(spacing: 5) {
| |- error: 'HStack' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
355 |
356 | Text(getMonthName(from: displayedMonth))
/Users/admin/builder/spi-builder-workspace/Sources/FXDatePicker/Views/FXDatePickerView.swift:356:21: error: 'Text' is only available in macOS 10.15 or newer
292 |
293 | //MARK:- Healper Functions
294 | public extension FXDatePickerView {
| `- note: add '@available' attribute to enclosing extension
295 |
296 | private func setupCurrentDate() {
:
337 | }
338 |
339 | @ViewBuilder func monthTitleView() -> some View {
| `- note: add '@available' attribute to enclosing instance method
340 | if hideDatePicker {
341 | Text(getMonthName(from: displayedMonth))
:
354 | HStack(spacing: 5) {
355 |
356 | Text(getMonthName(from: displayedMonth))
| |- error: 'Text' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
357 | .toBold()
358 | .foregroundColor(theme.main.monthTitle)
/Users/admin/builder/spi-builder-workspace/Sources/FXDatePicker/Views/FXDatePickerView.swift:357:26: 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
292 |
293 | //MARK:- Healper Functions
294 | public extension FXDatePickerView {
| `- note: add '@available' attribute to enclosing extension
295 |
296 | private func setupCurrentDate() {
:
337 | }
338 |
339 | @ViewBuilder func monthTitleView() -> some View {
| `- note: add '@available' attribute to enclosing instance method
340 | if hideDatePicker {
341 | Text(getMonthName(from: displayedMonth))
:
355 |
356 | Text(getMonthName(from: displayedMonth))
357 | .toBold()
| |- 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
358 | .foregroundColor(theme.main.monthTitle)
359 |
/Users/admin/builder/spi-builder-workspace/Sources/FXDatePicker/Views/FXDatePickerView.swift:358:26: error: 'foregroundColor' is only available in macOS 10.15 or newer
292 |
293 | //MARK:- Healper Functions
294 | public extension FXDatePickerView {
| `- note: add '@available' attribute to enclosing extension
295 |
296 | private func setupCurrentDate() {
:
337 | }
338 |
339 | @ViewBuilder func monthTitleView() -> some View {
| `- note: add '@available' attribute to enclosing instance method
340 | if hideDatePicker {
341 | Text(getMonthName(from: displayedMonth))
:
356 | Text(getMonthName(from: displayedMonth))
357 | .toBold()
358 | .foregroundColor(theme.main.monthTitle)
| |- error: 'foregroundColor' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
359 |
360 | Image(systemName: layoutDirection == .rightToLeft ? "chevron.left" : "chevron.right" )
/Users/admin/builder/spi-builder-workspace/Sources/FXDatePicker/Views/FXDatePickerView.swift:360:21: error: 'Image' is only available in macOS 10.15 or newer
292 |
293 | //MARK:- Healper Functions
294 | public extension FXDatePickerView {
| `- note: add '@available' attribute to enclosing extension
295 |
296 | private func setupCurrentDate() {
:
337 | }
338 |
339 | @ViewBuilder func monthTitleView() -> some View {
| `- note: add '@available' attribute to enclosing instance method
340 | if hideDatePicker {
341 | Text(getMonthName(from: displayedMonth))
:
358 | .foregroundColor(theme.main.monthTitle)
359 |
360 | Image(systemName: layoutDirection == .rightToLeft ? "chevron.left" : "chevron.right" )
| |- error: 'Image' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
361 | .font(.system(size: 12))
362 | .toBold()
/Users/admin/builder/spi-builder-workspace/Sources/FXDatePicker/Views/FXDatePickerView.swift:360:21: error: 'init(systemName:)' is only available in macOS 11.0 or newer
292 |
293 | //MARK:- Healper Functions
294 | public extension FXDatePickerView {
| `- note: add '@available' attribute to enclosing extension
295 |
296 | private func setupCurrentDate() {
:
337 | }
338 |
339 | @ViewBuilder func monthTitleView() -> some View {
| `- note: add '@available' attribute to enclosing instance method
340 | if hideDatePicker {
341 | Text(getMonthName(from: displayedMonth))
:
358 | .foregroundColor(theme.main.monthTitle)
359 |
360 | Image(systemName: layoutDirection == .rightToLeft ? "chevron.left" : "chevron.right" )
| |- error: 'init(systemName:)' is only available in macOS 11.0 or newer
| `- note: add 'if #available' version check
361 | .font(.system(size: 12))
362 | .toBold()
/Users/admin/builder/spi-builder-workspace/Sources/FXDatePicker/Views/FXDatePickerView.swift:361:26: error: 'font' is only available in macOS 10.15 or newer
292 |
293 | //MARK:- Healper Functions
294 | public extension FXDatePickerView {
| `- note: add '@available' attribute to enclosing extension
295 |
296 | private func setupCurrentDate() {
:
337 | }
338 |
339 | @ViewBuilder func monthTitleView() -> some View {
| `- note: add '@available' attribute to enclosing instance method
340 | if hideDatePicker {
341 | Text(getMonthName(from: displayedMonth))
:
359 |
360 | Image(systemName: layoutDirection == .rightToLeft ? "chevron.left" : "chevron.right" )
361 | .font(.system(size: 12))
| |- error: 'font' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
362 | .toBold()
363 | .rotationEffect(.degrees(arrowRotation))
/Users/admin/builder/spi-builder-workspace/Sources/FXDatePicker/Views/FXDatePickerView.swift:361:32: error: 'system(size:weight:design:)' is only available in macOS 13.0 or newer
292 |
293 | //MARK:- Healper Functions
294 | public extension FXDatePickerView {
| `- note: add '@available' attribute to enclosing extension
295 |
296 | private func setupCurrentDate() {
:
337 | }
338 |
339 | @ViewBuilder func monthTitleView() -> some View {
| `- note: add '@available' attribute to enclosing instance method
340 | if hideDatePicker {
341 | Text(getMonthName(from: displayedMonth))
:
359 |
360 | Image(systemName: layoutDirection == .rightToLeft ? "chevron.left" : "chevron.right" )
361 | .font(.system(size: 12))
| |- error: 'system(size:weight:design:)' is only available in macOS 13.0 or newer
| `- note: add 'if #available' version check
362 | .toBold()
363 | .rotationEffect(.degrees(arrowRotation))
/Users/admin/builder/spi-builder-workspace/Sources/FXDatePicker/Views/FXDatePickerView.swift:363:26: error: 'rotationEffect(_:anchor:)' is only available in macOS 10.15 or newer
292 |
293 | //MARK:- Healper Functions
294 | public extension FXDatePickerView {
| `- note: add '@available' attribute to enclosing extension
295 |
296 | private func setupCurrentDate() {
:
337 | }
338 |
339 | @ViewBuilder func monthTitleView() -> some View {
| `- note: add '@available' attribute to enclosing instance method
340 | if hideDatePicker {
341 | Text(getMonthName(from: displayedMonth))
:
361 | .font(.system(size: 12))
362 | .toBold()
363 | .rotationEffect(.degrees(arrowRotation))
| |- error: 'rotationEffect(_:anchor:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
364 | .foregroundColor(theme.main.accentColor)
365 | }
/Users/admin/builder/spi-builder-workspace/Sources/FXDatePicker/Views/FXDatePickerView.swift:364:26: error: 'foregroundColor' is only available in macOS 10.15 or newer
292 |
293 | //MARK:- Healper Functions
294 | public extension FXDatePickerView {
| `- note: add '@available' attribute to enclosing extension
295 |
296 | private func setupCurrentDate() {
:
337 | }
338 |
339 | @ViewBuilder func monthTitleView() -> some View {
| `- note: add '@available' attribute to enclosing instance method
340 | if hideDatePicker {
341 | Text(getMonthName(from: displayedMonth))
:
362 | .toBold()
363 | .rotationEffect(.degrees(arrowRotation))
364 | .foregroundColor(theme.main.accentColor)
| |- error: 'foregroundColor' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
365 | }
366 | })
/Users/admin/builder/spi-builder-workspace/Sources/FXDatePicker/Views/FXDatePickerView.swift:344:16: error: 'buildEither(second:)' is only available in macOS 10.15 or newer
292 |
293 | //MARK:- Healper Functions
294 | public extension FXDatePickerView {
| `- note: add '@available' attribute to enclosing extension
295 |
296 | private func setupCurrentDate() {
:
337 | }
338 |
339 | @ViewBuilder func monthTitleView() -> some View {
| `- note: add '@available' attribute to enclosing instance method
340 | if hideDatePicker {
341 | Text(getMonthName(from: displayedMonth))
342 | .toBold()
343 | .foregroundColor(theme.main.monthTitle)
344 | } else {
| |- error: 'buildEither(second:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
345 |
346 | Button(action: {
/Users/admin/builder/spi-builder-workspace/Sources/FXDatePicker/Views/FXDatePickerView.swift:339:53: 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
292 |
293 | //MARK:- Healper Functions
294 | public extension FXDatePickerView {
| `- note: add '@available' attribute to enclosing extension
295 |
296 | private func setupCurrentDate() {
:
337 | }
338 |
339 | @ViewBuilder func monthTitleView() -> 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
340 | if hideDatePicker {
341 | Text(getMonthName(from: displayedMonth))
[10/16] Compiling FXDatePicker MonthView.swift
/Users/admin/builder/spi-builder-workspace/Sources/FXDatePicker/Views/MonthView.swift:18:20: error: 'layoutDirection' is only available in macOS 10.15 or newer
10 |
11 | @available(iOS 14.0, *)
12 | internal struct MonthView: View {
| `- note: add '@available' attribute to enclosing struct
13 | @Binding var displayedMonth: Date
14 | @Binding var selectedDate: Date
:
16 |
17 | @Environment(\.datePickerTheme) private var theme
18 | @Environment(\.layoutDirection) private var layoutDirection
| `- error: 'layoutDirection' is only available in macOS 10.15 or newer
19 |
20 | let calendar: Calendar
/Users/admin/builder/spi-builder-workspace/Sources/FXDatePicker/Views/MonthView.swift:13:6: error: 'Binding' is only available in macOS 10.15 or newer
10 |
11 | @available(iOS 14.0, *)
12 | internal struct MonthView: View {
| `- note: add '@available' attribute to enclosing struct
13 | @Binding var displayedMonth: Date
| `- error: 'Binding' is only available in macOS 10.15 or newer
14 | @Binding var selectedDate: Date
15 | let specialDates: [SpecialDate]
/Users/admin/builder/spi-builder-workspace/Sources/FXDatePicker/Views/MonthView.swift:14:6: error: 'Binding' is only available in macOS 10.15 or newer
10 |
11 | @available(iOS 14.0, *)
12 | internal struct MonthView: View {
| `- note: add '@available' attribute to enclosing struct
13 | @Binding var displayedMonth: Date
14 | @Binding var selectedDate: Date
| `- error: 'Binding' is only available in macOS 10.15 or newer
15 | let specialDates: [SpecialDate]
16 |
/Users/admin/builder/spi-builder-workspace/Sources/FXDatePicker/Views/MonthView.swift:17:6: error: 'Environment' is only available in macOS 10.15 or newer
10 |
11 | @available(iOS 14.0, *)
12 | internal struct MonthView: View {
| `- note: add '@available' attribute to enclosing struct
13 | @Binding var displayedMonth: Date
14 | @Binding var selectedDate: Date
15 | let specialDates: [SpecialDate]
16 |
17 | @Environment(\.datePickerTheme) private var theme
| `- error: 'Environment' is only available in macOS 10.15 or newer
18 | @Environment(\.layoutDirection) private var layoutDirection
19 |
/Users/admin/builder/spi-builder-workspace/Sources/FXDatePicker/Views/MonthView.swift:18:6: error: 'Environment' is only available in macOS 10.15 or newer
10 |
11 | @available(iOS 14.0, *)
12 | internal struct MonthView: View {
| `- note: add '@available' attribute to enclosing struct
13 | @Binding var displayedMonth: Date
14 | @Binding var selectedDate: Date
:
16 |
17 | @Environment(\.datePickerTheme) private var theme
18 | @Environment(\.layoutDirection) private var layoutDirection
| `- error: 'Environment' is only available in macOS 10.15 or newer
19 |
20 | let calendar: Calendar
/Users/admin/builder/spi-builder-workspace/Sources/FXDatePicker/Views/MonthView.swift:51:29: error: 'View' is only available in macOS 10.15 or newer
10 |
11 | @available(iOS 14.0, *)
12 | internal struct MonthView: View {
| `- note: add '@available' attribute to enclosing struct
13 | @Binding var displayedMonth: Date
14 | @Binding var selectedDate: Date
:
49 |
50 |
51 | internal var body: some View {
| | `- error: 'View' is only available in macOS 10.15 or newer
| `- note: add '@available' attribute to enclosing property
52 | let rowHeight: CGFloat = (hideMarkers == false) ? 50 : 45
53 | let totalRowHeight = CGFloat(numberOfRows) * rowHeight
/Users/admin/builder/spi-builder-workspace/Sources/FXDatePicker/Views/MonthView.swift:68:67: error: 'View' is only available in macOS 10.15 or newer
64 | }
65 |
66 | extension MonthView {
| `- note: add '@available' attribute to enclosing extension
67 |
68 | @ViewBuilder private func gridCellView(at index: Int) -> some View {
| | `- error: 'View' is only available in macOS 10.15 or newer
| `- note: add '@available' attribute to enclosing instance method
69 | let dayOffset = index - firstDayOfWeekInMonth
70 | if dayOffset >= 0 && dayOffset < daysInMonth {
/Users/admin/builder/spi-builder-workspace/Sources/FXDatePicker/Views/MonthView.swift:68:6: error: 'ViewBuilder' is only available in macOS 10.15 or newer
64 | }
65 |
66 | extension MonthView {
| `- note: add '@available' attribute to enclosing extension
67 |
68 | @ViewBuilder private func gridCellView(at index: Int) -> some View {
| | `- note: add '@available' attribute to enclosing instance method
| `- error: 'ViewBuilder' is only available in macOS 10.15 or newer
69 | let dayOffset = index - firstDayOfWeekInMonth
70 | if dayOffset >= 0 && dayOffset < daysInMonth {
/Users/admin/builder/spi-builder-workspace/Sources/FXDatePicker/Views/MonthView.swift:57:9: error: 'LazyVGrid' is only available in macOS 11.0 or newer
10 |
11 | @available(iOS 14.0, *)
12 | internal struct MonthView: View {
| `- note: add '@available' attribute to enclosing struct
13 | @Binding var displayedMonth: Date
14 | @Binding var selectedDate: Date
:
49 |
50 |
51 | internal var body: some View {
| `- note: add '@available' attribute to enclosing property
52 | let rowHeight: CGFloat = (hideMarkers == false) ? 50 : 45
53 | let totalRowHeight = CGFloat(numberOfRows) * rowHeight
:
55 | let paddingPerRow = totalPaddingHeight / CGFloat(maxRows - 2)
56 |
57 | LazyVGrid(columns: Array(repeating: .init(.flexible()), count: 7), spacing: paddingPerRow) {
| |- error: 'LazyVGrid' is only available in macOS 11.0 or newer
| `- note: add 'if #available' version check
58 | ForEach(0..<(numberOfRows * 7), id: \.self) { index in
59 | gridCellView(at: index)
/Users/admin/builder/spi-builder-workspace/Sources/FXDatePicker/Views/MonthView.swift:57:9: 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
10 |
11 | @available(iOS 14.0, *)
12 | internal struct MonthView: View {
| `- note: add '@available' attribute to enclosing struct
13 | @Binding var displayedMonth: Date
14 | @Binding var selectedDate: Date
:
49 |
50 |
51 | internal var body: some View {
| `- note: add '@available' attribute to enclosing property
52 | let rowHeight: CGFloat = (hideMarkers == false) ? 50 : 45
53 | let totalRowHeight = CGFloat(numberOfRows) * rowHeight
:
55 | let paddingPerRow = totalPaddingHeight / CGFloat(maxRows - 2)
56 |
57 | LazyVGrid(columns: Array(repeating: .init(.flexible()), count: 7), spacing: paddingPerRow) {
| |- 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
58 | ForEach(0..<(numberOfRows * 7), id: \.self) { index in
59 | gridCellView(at: index)
/Users/admin/builder/spi-builder-workspace/Sources/FXDatePicker/Views/MonthView.swift:58:13: warning: conformance of 'ForEach<Data, ID, Content>' to 'View' is only available in macOS 10.15 or newer; this is an error in the Swift 6 language mode
10 |
11 | @available(iOS 14.0, *)
12 | internal struct MonthView: View {
| `- note: add '@available' attribute to enclosing struct
13 | @Binding var displayedMonth: Date
14 | @Binding var selectedDate: Date
:
49 |
50 |
51 | internal var body: some View {
| `- note: add '@available' attribute to enclosing property
52 | let rowHeight: CGFloat = (hideMarkers == false) ? 50 : 45
53 | let totalRowHeight = CGFloat(numberOfRows) * rowHeight
:
56 |
57 | LazyVGrid(columns: Array(repeating: .init(.flexible()), count: 7), spacing: paddingPerRow) {
58 | ForEach(0..<(numberOfRows * 7), id: \.self) { index 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
59 | gridCellView(at: index)
60 | }
/Users/admin/builder/spi-builder-workspace/Sources/FXDatePicker/Views/MonthView.swift:58:13: error: 'ForEach' is only available in macOS 10.15 or newer
10 |
11 | @available(iOS 14.0, *)
12 | internal struct MonthView: View {
| `- note: add '@available' attribute to enclosing struct
13 | @Binding var displayedMonth: Date
14 | @Binding var selectedDate: Date
:
49 |
50 |
51 | internal var body: some View {
| `- note: add '@available' attribute to enclosing property
52 | let rowHeight: CGFloat = (hideMarkers == false) ? 50 : 45
53 | let totalRowHeight = CGFloat(numberOfRows) * rowHeight
:
56 |
57 | LazyVGrid(columns: Array(repeating: .init(.flexible()), count: 7), spacing: paddingPerRow) {
58 | ForEach(0..<(numberOfRows * 7), id: \.self) { index in
| |- error: 'ForEach' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
59 | gridCellView(at: index)
60 | }
/Users/admin/builder/spi-builder-workspace/Sources/FXDatePicker/Views/MonthView.swift:58:13: error: 'init(_:id:content:)' is only available in macOS 10.15 or newer
10 |
11 | @available(iOS 14.0, *)
12 | internal struct MonthView: View {
| `- note: add '@available' attribute to enclosing struct
13 | @Binding var displayedMonth: Date
14 | @Binding var selectedDate: Date
:
49 |
50 |
51 | internal var body: some View {
| `- note: add '@available' attribute to enclosing property
52 | let rowHeight: CGFloat = (hideMarkers == false) ? 50 : 45
53 | let totalRowHeight = CGFloat(numberOfRows) * rowHeight
:
56 |
57 | LazyVGrid(columns: Array(repeating: .init(.flexible()), count: 7), spacing: paddingPerRow) {
58 | ForEach(0..<(numberOfRows * 7), id: \.self) { index in
| |- error: 'init(_:id:content:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
59 | gridCellView(at: index)
60 | }
/Users/admin/builder/spi-builder-workspace/Sources/FXDatePicker/Views/MonthView.swift:57:100: 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
10 |
11 | @available(iOS 14.0, *)
12 | internal struct MonthView: View {
| `- note: add '@available' attribute to enclosing struct
13 | @Binding var displayedMonth: Date
14 | @Binding var selectedDate: Date
:
49 |
50 |
51 | internal var body: some View {
| `- note: add '@available' attribute to enclosing property
52 | let rowHeight: CGFloat = (hideMarkers == false) ? 50 : 45
53 | let totalRowHeight = CGFloat(numberOfRows) * rowHeight
:
55 | let paddingPerRow = totalPaddingHeight / CGFloat(maxRows - 2)
56 |
57 | LazyVGrid(columns: Array(repeating: .init(.flexible()), count: 7), spacing: paddingPerRow) {
| |- 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
58 | ForEach(0..<(numberOfRows * 7), id: \.self) { index in
59 | gridCellView(at: index)
/Users/admin/builder/spi-builder-workspace/Sources/FXDatePicker/Views/MonthView.swift:62:10: error: 'frame(width:height:alignment:)' is only available in macOS 10.15 or newer
10 |
11 | @available(iOS 14.0, *)
12 | internal struct MonthView: View {
| `- note: add '@available' attribute to enclosing struct
13 | @Binding var displayedMonth: Date
14 | @Binding var selectedDate: Date
:
49 |
50 |
51 | internal var body: some View {
| `- note: add '@available' attribute to enclosing property
52 | let rowHeight: CGFloat = (hideMarkers == false) ? 50 : 45
53 | let totalRowHeight = CGFloat(numberOfRows) * rowHeight
:
60 | }
61 | }
62 | .frame(height: totalMonthViewHeight)
| |- error: 'frame(width:height:alignment:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
63 | }
64 | }
/Users/admin/builder/spi-builder-workspace/Sources/FXDatePicker/Views/MonthView.swift:82:14: error: 'onTapGesture(count:perform:)' is only available in macOS 10.15 or newer
64 | }
65 |
66 | extension MonthView {
| `- note: add '@available' attribute to enclosing extension
67 |
68 | @ViewBuilder private func gridCellView(at index: Int) -> some View {
| `- note: add '@available' attribute to enclosing instance method
69 | let dayOffset = index - firstDayOfWeekInMonth
70 | if dayOffset >= 0 && dayOffset < daysInMonth {
:
80 | hideMarkers: hideMarkers,
81 | calendar: calendar)
82 | .onTapGesture { self.selectedDate = date }
| |- error: 'onTapGesture(count:perform:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
83 | }
84 | else {
/Users/admin/builder/spi-builder-workspace/Sources/FXDatePicker/Views/MonthView.swift:82:29: error: setter for 'selectedDate' is only available in macOS 10.15 or newer
64 | }
65 |
66 | extension MonthView {
| `- note: add '@available' attribute to enclosing extension
67 |
68 | @ViewBuilder private func gridCellView(at index: Int) -> some View {
| `- note: add '@available' attribute to enclosing instance method
69 | let dayOffset = index - firstDayOfWeekInMonth
70 | if dayOffset >= 0 && dayOffset < daysInMonth {
:
80 | hideMarkers: hideMarkers,
81 | calendar: calendar)
82 | .onTapGesture { self.selectedDate = date }
| |- error: setter for 'selectedDate' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
83 | }
84 | else {
/Users/admin/builder/spi-builder-workspace/Sources/FXDatePicker/Views/MonthView.swift:70:54: error: 'buildEither(first:)' is only available in macOS 10.15 or newer
64 | }
65 |
66 | extension MonthView {
| `- note: add '@available' attribute to enclosing extension
67 |
68 | @ViewBuilder private func gridCellView(at index: Int) -> some View {
| `- note: add '@available' attribute to enclosing instance method
69 | let dayOffset = index - firstDayOfWeekInMonth
70 | if dayOffset >= 0 && dayOffset < daysInMonth {
| |- error: 'buildEither(first:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
71 | let date = getDateFor(day: dayOffset + 1)
72 | let specialDate = findSpecialDate(for: date)
/Users/admin/builder/spi-builder-workspace/Sources/FXDatePicker/Views/MonthView.swift:85:13: error: 'Text' is only available in macOS 10.15 or newer
64 | }
65 |
66 | extension MonthView {
| `- note: add '@available' attribute to enclosing extension
67 |
68 | @ViewBuilder private func gridCellView(at index: Int) -> some View {
| `- note: add '@available' attribute to enclosing instance method
69 | let dayOffset = index - firstDayOfWeekInMonth
70 | if dayOffset >= 0 && dayOffset < daysInMonth {
:
83 | }
84 | else {
85 | Text("").frame(height: 50)
| |- error: 'Text' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
86 | }
87 | }
/Users/admin/builder/spi-builder-workspace/Sources/FXDatePicker/Views/MonthView.swift:85:22: error: 'frame(width:height:alignment:)' is only available in macOS 10.15 or newer
64 | }
65 |
66 | extension MonthView {
| `- note: add '@available' attribute to enclosing extension
67 |
68 | @ViewBuilder private func gridCellView(at index: Int) -> some View {
| `- note: add '@available' attribute to enclosing instance method
69 | let dayOffset = index - firstDayOfWeekInMonth
70 | if dayOffset >= 0 && dayOffset < daysInMonth {
:
83 | }
84 | else {
85 | Text("").frame(height: 50)
| |- error: 'frame(width:height:alignment:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
86 | }
87 | }
/Users/admin/builder/spi-builder-workspace/Sources/FXDatePicker/Views/MonthView.swift:84:14: error: 'buildEither(second:)' is only available in macOS 10.15 or newer
64 | }
65 |
66 | extension MonthView {
| `- note: add '@available' attribute to enclosing extension
67 |
68 | @ViewBuilder private func gridCellView(at index: Int) -> some View {
| `- note: add '@available' attribute to enclosing instance method
69 | let dayOffset = index - firstDayOfWeekInMonth
70 | if dayOffset >= 0 && dayOffset < daysInMonth {
:
82 | .onTapGesture { self.selectedDate = date }
83 | }
84 | else {
| |- error: 'buildEither(second:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
85 | Text("").frame(height: 50)
86 | }
/Users/admin/builder/spi-builder-workspace/Sources/FXDatePicker/Views/MonthView.swift:68:72: 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
64 | }
65 |
66 | extension MonthView {
| `- note: add '@available' attribute to enclosing extension
67 |
68 | @ViewBuilder private func gridCellView(at index: Int) -> 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
69 | let dayOffset = index - firstDayOfWeekInMonth
70 | if dayOffset >= 0 && dayOffset < daysInMonth {
[11/16] Compiling FXDatePicker ThemeColorModifier.swift
/Users/admin/builder/spi-builder-workspace/Sources/FXDatePicker/Modifiers/ThemeColorModifier.swift:54:43: error: 'blue' is only available in macOS 10.15 or newer
44 |
45 | public extension DatePickerTheme {
46 | struct Main {
| `- note: add '@available' attribute to enclosing struct
47 | public let accentColor: Color
48 | public let monthTitle: Color
:
52 | public let backgroundStyle: BackgroundStyle
53 |
54 | public init(accentColor: Color = .blue,
| | `- error: 'blue' is only available in macOS 10.15 or newer
| `- note: add '@available' attribute to enclosing initializer
55 | monthTitle: Color = Color(UIColor.label),
56 | daysName: Color = .gray,
/Users/admin/builder/spi-builder-workspace/Sources/FXDatePicker/Modifiers/ThemeColorModifier.swift:55:47: error: cannot find 'UIColor' in scope
53 |
54 | public init(accentColor: Color = .blue,
55 | monthTitle: Color = Color(UIColor.label),
| `- error: cannot find 'UIColor' in scope
56 | daysName: Color = .gray,
57 | daysNumbers: Color = Color(UIColor.label),
/Users/admin/builder/spi-builder-workspace/Sources/FXDatePicker/Modifiers/ThemeColorModifier.swift:56:40: error: 'gray' is only available in macOS 10.15 or newer
44 |
45 | public extension DatePickerTheme {
46 | struct Main {
| `- note: add '@available' attribute to enclosing struct
47 | public let accentColor: Color
48 | public let monthTitle: Color
:
52 | public let backgroundStyle: BackgroundStyle
53 |
54 | public init(accentColor: Color = .blue,
| `- note: add '@available' attribute to enclosing initializer
55 | monthTitle: Color = Color(UIColor.label),
56 | daysName: Color = .gray,
| `- error: 'gray' is only available in macOS 10.15 or newer
57 | daysNumbers: Color = Color(UIColor.label),
58 | previousDaysNumber: Color = .gray,
/Users/admin/builder/spi-builder-workspace/Sources/FXDatePicker/Modifiers/ThemeColorModifier.swift:57:48: error: cannot find 'UIColor' in scope
55 | monthTitle: Color = Color(UIColor.label),
56 | daysName: Color = .gray,
57 | daysNumbers: Color = Color(UIColor.label),
| `- error: cannot find 'UIColor' in scope
58 | previousDaysNumber: Color = .gray,
59 | backgroundStyle: BackgroundStyle = .color(Color(UIColor.systemBackground))) {
/Users/admin/builder/spi-builder-workspace/Sources/FXDatePicker/Modifiers/ThemeColorModifier.swift:58:50: error: 'gray' is only available in macOS 10.15 or newer
44 |
45 | public extension DatePickerTheme {
46 | struct Main {
| `- note: add '@available' attribute to enclosing struct
47 | public let accentColor: Color
48 | public let monthTitle: Color
:
52 | public let backgroundStyle: BackgroundStyle
53 |
54 | public init(accentColor: Color = .blue,
| `- note: add '@available' attribute to enclosing initializer
55 | monthTitle: Color = Color(UIColor.label),
56 | daysName: Color = .gray,
57 | daysNumbers: Color = Color(UIColor.label),
58 | previousDaysNumber: Color = .gray,
| `- error: 'gray' is only available in macOS 10.15 or newer
59 | backgroundStyle: BackgroundStyle = .color(Color(UIColor.systemBackground))) {
60 |
/Users/admin/builder/spi-builder-workspace/Sources/FXDatePicker/Modifiers/ThemeColorModifier.swift:59:69: error: cannot find 'UIColor' in scope
57 | daysNumbers: Color = Color(UIColor.label),
58 | previousDaysNumber: Color = .gray,
59 | backgroundStyle: BackgroundStyle = .color(Color(UIColor.systemBackground))) {
| `- error: cannot find 'UIColor' in scope
60 |
61 | self.accentColor = accentColor
/Users/admin/builder/spi-builder-workspace/Sources/FXDatePicker/Modifiers/ThemeColorModifier.swift:17:18: error: 'EnvironmentValues' is only available in macOS 10.15 or newer
15 | }
16 |
17 | public extension EnvironmentValues {
| | `- error: 'EnvironmentValues' is only available in macOS 10.15 or newer
| `- note: add '@available' attribute to enclosing extension
18 | var datePickerTheme: DatePickerTheme {
19 | get { self[DatePickerThemeKey.self] }
/Users/admin/builder/spi-builder-workspace/Sources/FXDatePicker/Modifiers/ThemeColorModifier.swift:25:60: error: 'View' is only available in macOS 10.15 or newer
22 | }
23 |
24 | public extension View {
| `- note: add '@available' attribute to enclosing extension
25 | func datePickerTheme(_ theme: DatePickerTheme) -> some View {
| | `- error: 'View' is only available in macOS 10.15 or newer
| `- note: add '@available' attribute to enclosing instance method
26 | self.environment(\.datePickerTheme, theme)
27 | }
/Users/admin/builder/spi-builder-workspace/Sources/FXDatePicker/Modifiers/ThemeColorModifier.swift:31:15: error: 'View' is only available in macOS 10.15 or newer
22 | }
23 |
24 | public extension View {
| `- note: add '@available' attribute to enclosing extension
25 | func datePickerTheme(_ theme: DatePickerTheme) -> some View {
26 | self.environment(\.datePickerTheme, theme)
27 | }
28 |
29 | func datePickerTheme(
| `- note: add '@available' attribute to enclosing instance method
30 | main: DatePickerTheme.Main = .init()
31 | ) -> some View {
| `- error: 'View' is only available in macOS 10.15 or newer
32 | self.environment(\.datePickerTheme, DatePickerTheme(main: main))
33 | }
/Users/admin/builder/spi-builder-workspace/Sources/FXDatePicker/Modifiers/ThemeColorModifier.swift:24:18: error: 'View' is only available in macOS 10.15 or newer
22 | }
23 |
24 | public extension View {
| | `- error: 'View' is only available in macOS 10.15 or newer
| `- note: add '@available' attribute to enclosing extension
25 | func datePickerTheme(_ theme: DatePickerTheme) -> some View {
26 | self.environment(\.datePickerTheme, theme)
/Users/admin/builder/spi-builder-workspace/Sources/FXDatePicker/Modifiers/ThemeColorModifier.swift:47:33: error: 'Color' is only available in macOS 10.15 or newer
44 |
45 | public extension DatePickerTheme {
46 | struct Main {
| `- note: add '@available' attribute to enclosing struct
47 | public let accentColor: Color
| `- error: 'Color' is only available in macOS 10.15 or newer
48 | public let monthTitle: Color
49 | public let daysName: Color
/Users/admin/builder/spi-builder-workspace/Sources/FXDatePicker/Modifiers/ThemeColorModifier.swift:48:32: error: 'Color' is only available in macOS 10.15 or newer
44 |
45 | public extension DatePickerTheme {
46 | struct Main {
| `- note: add '@available' attribute to enclosing struct
47 | public let accentColor: Color
48 | public let monthTitle: Color
| `- error: 'Color' is only available in macOS 10.15 or newer
49 | public let daysName: Color
50 | public let daysNumbers: Color
/Users/admin/builder/spi-builder-workspace/Sources/FXDatePicker/Modifiers/ThemeColorModifier.swift:49:30: error: 'Color' is only available in macOS 10.15 or newer
44 |
45 | public extension DatePickerTheme {
46 | struct Main {
| `- note: add '@available' attribute to enclosing struct
47 | public let accentColor: Color
48 | public let monthTitle: Color
49 | public let daysName: Color
| `- error: 'Color' is only available in macOS 10.15 or newer
50 | public let daysNumbers: Color
51 | public let previousDaysNumber: Color
/Users/admin/builder/spi-builder-workspace/Sources/FXDatePicker/Modifiers/ThemeColorModifier.swift:50:33: error: 'Color' is only available in macOS 10.15 or newer
44 |
45 | public extension DatePickerTheme {
46 | struct Main {
| `- note: add '@available' attribute to enclosing struct
47 | public let accentColor: Color
48 | public let monthTitle: Color
49 | public let daysName: Color
50 | public let daysNumbers: Color
| `- error: 'Color' is only available in macOS 10.15 or newer
51 | public let previousDaysNumber: Color
52 | public let backgroundStyle: BackgroundStyle
/Users/admin/builder/spi-builder-workspace/Sources/FXDatePicker/Modifiers/ThemeColorModifier.swift:51:40: error: 'Color' is only available in macOS 10.15 or newer
44 |
45 | public extension DatePickerTheme {
46 | struct Main {
| `- note: add '@available' attribute to enclosing struct
47 | public let accentColor: Color
48 | public let monthTitle: Color
49 | public let daysName: Color
50 | public let daysNumbers: Color
51 | public let previousDaysNumber: Color
| `- error: 'Color' is only available in macOS 10.15 or newer
52 | public let backgroundStyle: BackgroundStyle
53 |
/Users/admin/builder/spi-builder-workspace/Sources/FXDatePicker/Modifiers/ThemeColorModifier.swift:54:34: error: 'Color' is only available in macOS 10.15 or newer
44 |
45 | public extension DatePickerTheme {
46 | struct Main {
| `- note: add '@available' attribute to enclosing struct
47 | public let accentColor: Color
48 | public let monthTitle: Color
:
52 | public let backgroundStyle: BackgroundStyle
53 |
54 | public init(accentColor: Color = .blue,
| | `- error: 'Color' is only available in macOS 10.15 or newer
| `- note: add '@available' attribute to enclosing initializer
55 | monthTitle: Color = Color(UIColor.label),
56 | daysName: Color = .gray,
/Users/admin/builder/spi-builder-workspace/Sources/FXDatePicker/Modifiers/ThemeColorModifier.swift:55:33: error: 'Color' is only available in macOS 10.15 or newer
44 |
45 | public extension DatePickerTheme {
46 | struct Main {
| `- note: add '@available' attribute to enclosing struct
47 | public let accentColor: Color
48 | public let monthTitle: Color
:
52 | public let backgroundStyle: BackgroundStyle
53 |
54 | public init(accentColor: Color = .blue,
| `- note: add '@available' attribute to enclosing initializer
55 | monthTitle: Color = Color(UIColor.label),
| `- error: 'Color' is only available in macOS 10.15 or newer
56 | daysName: Color = .gray,
57 | daysNumbers: Color = Color(UIColor.label),
/Users/admin/builder/spi-builder-workspace/Sources/FXDatePicker/Modifiers/ThemeColorModifier.swift:56:31: error: 'Color' is only available in macOS 10.15 or newer
44 |
45 | public extension DatePickerTheme {
46 | struct Main {
| `- note: add '@available' attribute to enclosing struct
47 | public let accentColor: Color
48 | public let monthTitle: Color
:
52 | public let backgroundStyle: BackgroundStyle
53 |
54 | public init(accentColor: Color = .blue,
| `- note: add '@available' attribute to enclosing initializer
55 | monthTitle: Color = Color(UIColor.label),
56 | daysName: Color = .gray,
| `- error: 'Color' is only available in macOS 10.15 or newer
57 | daysNumbers: Color = Color(UIColor.label),
58 | previousDaysNumber: Color = .gray,
/Users/admin/builder/spi-builder-workspace/Sources/FXDatePicker/Modifiers/ThemeColorModifier.swift:57:34: error: 'Color' is only available in macOS 10.15 or newer
44 |
45 | public extension DatePickerTheme {
46 | struct Main {
| `- note: add '@available' attribute to enclosing struct
47 | public let accentColor: Color
48 | public let monthTitle: Color
:
52 | public let backgroundStyle: BackgroundStyle
53 |
54 | public init(accentColor: Color = .blue,
| `- note: add '@available' attribute to enclosing initializer
55 | monthTitle: Color = Color(UIColor.label),
56 | daysName: Color = .gray,
57 | daysNumbers: Color = Color(UIColor.label),
| `- error: 'Color' is only available in macOS 10.15 or newer
58 | previousDaysNumber: Color = .gray,
59 | backgroundStyle: BackgroundStyle = .color(Color(UIColor.systemBackground))) {
/Users/admin/builder/spi-builder-workspace/Sources/FXDatePicker/Modifiers/ThemeColorModifier.swift:58:41: error: 'Color' is only available in macOS 10.15 or newer
44 |
45 | public extension DatePickerTheme {
46 | struct Main {
| `- note: add '@available' attribute to enclosing struct
47 | public let accentColor: Color
48 | public let monthTitle: Color
:
52 | public let backgroundStyle: BackgroundStyle
53 |
54 | public init(accentColor: Color = .blue,
| `- note: add '@available' attribute to enclosing initializer
55 | monthTitle: Color = Color(UIColor.label),
56 | daysName: Color = .gray,
57 | daysNumbers: Color = Color(UIColor.label),
58 | previousDaysNumber: Color = .gray,
| `- error: 'Color' is only available in macOS 10.15 or newer
59 | backgroundStyle: BackgroundStyle = .color(Color(UIColor.systemBackground))) {
60 |
/Users/admin/builder/spi-builder-workspace/Sources/FXDatePicker/Modifiers/ThemeColorModifier.swift:73:16: error: 'Color' is only available in macOS 10.15 or newer
70 | }
71 |
72 | public enum BackgroundStyle {
| `- note: add '@available' attribute to enclosing enum
73 | case color(Color)
| `- error: 'Color' is only available in macOS 10.15 or newer
74 | case linearGradient(Gradient, startPoint: UnitPoint, endPoint: UnitPoint)
75 | case radialGradient(Gradient, center: UnitPoint, startRadius: CGFloat, endRadius: CGFloat)
/Users/admin/builder/spi-builder-workspace/Sources/FXDatePicker/Modifiers/ThemeColorModifier.swift:74:25: error: 'Gradient' is only available in macOS 10.15 or newer
70 | }
71 |
72 | public enum BackgroundStyle {
| `- note: add '@available' attribute to enclosing enum
73 | case color(Color)
74 | case linearGradient(Gradient, startPoint: UnitPoint, endPoint: UnitPoint)
| `- error: 'Gradient' is only available in macOS 10.15 or newer
75 | case radialGradient(Gradient, center: UnitPoint, startRadius: CGFloat, endRadius: CGFloat)
76 | case angularGradient(Gradient, center: UnitPoint)
/Users/admin/builder/spi-builder-workspace/Sources/FXDatePicker/Modifiers/ThemeColorModifier.swift:74:47: error: 'UnitPoint' is only available in macOS 10.15 or newer
70 | }
71 |
72 | public enum BackgroundStyle {
| `- note: add '@available' attribute to enclosing enum
73 | case color(Color)
74 | case linearGradient(Gradient, startPoint: UnitPoint, endPoint: UnitPoint)
| `- error: 'UnitPoint' is only available in macOS 10.15 or newer
75 | case radialGradient(Gradient, center: UnitPoint, startRadius: CGFloat, endRadius: CGFloat)
76 | case angularGradient(Gradient, center: UnitPoint)
/Users/admin/builder/spi-builder-workspace/Sources/FXDatePicker/Modifiers/ThemeColorModifier.swift:74:68: error: 'UnitPoint' is only available in macOS 10.15 or newer
70 | }
71 |
72 | public enum BackgroundStyle {
| `- note: add '@available' attribute to enclosing enum
73 | case color(Color)
74 | case linearGradient(Gradient, startPoint: UnitPoint, endPoint: UnitPoint)
| `- error: 'UnitPoint' is only available in macOS 10.15 or newer
75 | case radialGradient(Gradient, center: UnitPoint, startRadius: CGFloat, endRadius: CGFloat)
76 | case angularGradient(Gradient, center: UnitPoint)
/Users/admin/builder/spi-builder-workspace/Sources/FXDatePicker/Modifiers/ThemeColorModifier.swift:75:25: error: 'Gradient' is only available in macOS 10.15 or newer
70 | }
71 |
72 | public enum BackgroundStyle {
| `- note: add '@available' attribute to enclosing enum
73 | case color(Color)
74 | case linearGradient(Gradient, startPoint: UnitPoint, endPoint: UnitPoint)
75 | case radialGradient(Gradient, center: UnitPoint, startRadius: CGFloat, endRadius: CGFloat)
| `- error: 'Gradient' is only available in macOS 10.15 or newer
76 | case angularGradient(Gradient, center: UnitPoint)
77 | }
/Users/admin/builder/spi-builder-workspace/Sources/FXDatePicker/Modifiers/ThemeColorModifier.swift:75:43: error: 'UnitPoint' is only available in macOS 10.15 or newer
70 | }
71 |
72 | public enum BackgroundStyle {
| `- note: add '@available' attribute to enclosing enum
73 | case color(Color)
74 | case linearGradient(Gradient, startPoint: UnitPoint, endPoint: UnitPoint)
75 | case radialGradient(Gradient, center: UnitPoint, startRadius: CGFloat, endRadius: CGFloat)
| `- error: 'UnitPoint' is only available in macOS 10.15 or newer
76 | case angularGradient(Gradient, center: UnitPoint)
77 | }
/Users/admin/builder/spi-builder-workspace/Sources/FXDatePicker/Modifiers/ThemeColorModifier.swift:76:26: error: 'Gradient' is only available in macOS 10.15 or newer
70 | }
71 |
72 | public enum BackgroundStyle {
| `- note: add '@available' attribute to enclosing enum
73 | case color(Color)
74 | case linearGradient(Gradient, startPoint: UnitPoint, endPoint: UnitPoint)
75 | case radialGradient(Gradient, center: UnitPoint, startRadius: CGFloat, endRadius: CGFloat)
76 | case angularGradient(Gradient, center: UnitPoint)
| `- error: 'Gradient' is only available in macOS 10.15 or newer
77 | }
78 |
/Users/admin/builder/spi-builder-workspace/Sources/FXDatePicker/Modifiers/ThemeColorModifier.swift:76:44: error: 'UnitPoint' is only available in macOS 10.15 or newer
70 | }
71 |
72 | public enum BackgroundStyle {
| `- note: add '@available' attribute to enclosing enum
73 | case color(Color)
74 | case linearGradient(Gradient, startPoint: UnitPoint, endPoint: UnitPoint)
75 | case radialGradient(Gradient, center: UnitPoint, startRadius: CGFloat, endRadius: CGFloat)
76 | case angularGradient(Gradient, center: UnitPoint)
| `- error: 'UnitPoint' is only available in macOS 10.15 or newer
77 | }
78 |
/Users/admin/builder/spi-builder-workspace/Sources/FXDatePicker/Modifiers/ThemeColorModifier.swift:26:14: error: 'environment' is only available in macOS 10.15 or newer
22 | }
23 |
24 | public extension View {
| `- note: add '@available' attribute to enclosing extension
25 | func datePickerTheme(_ theme: DatePickerTheme) -> some View {
| `- note: add '@available' attribute to enclosing instance method
26 | self.environment(\.datePickerTheme, theme)
| |- error: 'environment' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
27 | }
28 |
/Users/admin/builder/spi-builder-workspace/Sources/FXDatePicker/Modifiers/ThemeColorModifier.swift:32:14: error: 'environment' is only available in macOS 10.15 or newer
22 | }
23 |
24 | public extension View {
| `- note: add '@available' attribute to enclosing extension
25 | func datePickerTheme(_ theme: DatePickerTheme) -> some View {
26 | self.environment(\.datePickerTheme, theme)
27 | }
28 |
29 | func datePickerTheme(
| `- note: add '@available' attribute to enclosing instance method
30 | main: DatePickerTheme.Main = .init()
31 | ) -> some View {
32 | self.environment(\.datePickerTheme, DatePickerTheme(main: main))
| |- error: 'environment' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
33 | }
34 | }
/Users/admin/builder/spi-builder-workspace/Sources/FXDatePicker/UIKit/PickerView.swift:15:20: error: cannot find type 'UIColor' in scope
13 | @Binding var data: [[String]]
14 | @Binding var selections: [Int]
15 | var textColor: UIColor = .black
| `- error: cannot find type 'UIColor' in scope
16 |
17 | internal func makeCoordinator() -> FXPickerView.Coordinator {
/Users/admin/builder/spi-builder-workspace/Sources/FXDatePicker/UIKit/PickerView.swift:13:6: error: 'Binding' is only available in macOS 10.15 or newer
10 |
11 |
12 | internal struct FXPickerView: UIViewRepresentable {
| `- note: add '@available' attribute to enclosing struct
13 | @Binding var data: [[String]]
| `- error: 'Binding' is only available in macOS 10.15 or newer
14 | @Binding var selections: [Int]
15 | var textColor: UIColor = .black
/Users/admin/builder/spi-builder-workspace/Sources/FXDatePicker/UIKit/PickerView.swift:14:6: error: 'Binding' is only available in macOS 10.15 or newer
10 |
11 |
12 | internal struct FXPickerView: UIViewRepresentable {
| `- note: add '@available' attribute to enclosing struct
13 | @Binding var data: [[String]]
14 | @Binding var selections: [Int]
| `- error: 'Binding' is only available in macOS 10.15 or newer
15 | var textColor: UIColor = .black
16 |
/Users/admin/builder/spi-builder-workspace/Sources/FXDatePicker/UIKit/PickerView.swift:21:84: error: cannot find type 'UIPickerView' in scope
19 | }
20 |
21 | internal func makeUIView(context: UIViewRepresentableContext<FXPickerView>) -> UIPickerView {
| `- error: cannot find type 'UIPickerView' in scope
22 | let picker = UIPickerView(frame: .zero)
23 |
/Users/admin/builder/spi-builder-workspace/Sources/FXDatePicker/UIKit/PickerView.swift:21:39: error: cannot find type 'UIViewRepresentableContext' in scope
19 | }
20 |
21 | internal func makeUIView(context: UIViewRepresentableContext<FXPickerView>) -> UIPickerView {
| `- error: cannot find type 'UIViewRepresentableContext' in scope
22 | let picker = UIPickerView(frame: .zero)
23 |
/Users/admin/builder/spi-builder-workspace/Sources/FXDatePicker/UIKit/PickerView.swift:30:40: error: cannot find type 'UIPickerView' in scope
28 | }
29 |
30 | internal func updateUIView(_ view: UIPickerView, context: UIViewRepresentableContext<FXPickerView>) {
| `- error: cannot find type 'UIPickerView' in scope
31 | for i in 0...(self.selections.count - 1) {
32 | view.selectRow(self.selections[i], inComponent: i, animated: true)
/Users/admin/builder/spi-builder-workspace/Sources/FXDatePicker/UIKit/PickerView.swift:30:63: error: cannot find type 'UIViewRepresentableContext' in scope
28 | }
29 |
30 | internal func updateUIView(_ view: UIPickerView, context: UIViewRepresentableContext<FXPickerView>) {
| `- error: cannot find type 'UIViewRepresentableContext' in scope
31 | for i in 0...(self.selections.count - 1) {
32 | view.selectRow(self.selections[i], inComponent: i, animated: true)
/Users/admin/builder/spi-builder-workspace/Sources/FXDatePicker/UIKit/PickerView.swift:49:43: error: cannot find type 'UIPickerViewDataSource' in scope
47 |
48 |
49 | internal class Coordinator: NSObject, UIPickerViewDataSource, UIPickerViewDelegate {
| `- error: cannot find type 'UIPickerViewDataSource' in scope
50 | var parent: FXPickerView
51 |
/Users/admin/builder/spi-builder-workspace/Sources/FXDatePicker/UIKit/PickerView.swift:49:67: error: cannot find type 'UIPickerViewDelegate' in scope
47 |
48 |
49 | internal class Coordinator: NSObject, UIPickerViewDataSource, UIPickerViewDelegate {
| `- error: cannot find type 'UIPickerViewDelegate' in scope
50 | var parent: FXPickerView
51 |
/Users/admin/builder/spi-builder-workspace/Sources/FXDatePicker/UIKit/PickerView.swift:56:59: error: cannot find type 'UIPickerView' in scope
54 | }
55 |
56 | internal func numberOfComponents(in FXPickerView: UIPickerView) -> Int {
| `- error: cannot find type 'UIPickerView' in scope
57 | return self.parent.data.count
58 | }
/Users/admin/builder/spi-builder-workspace/Sources/FXDatePicker/UIKit/PickerView.swift:60:48: error: cannot find type 'UIPickerView' in scope
58 | }
59 |
60 | internal func pickerView(_ pickerView: UIPickerView, numberOfRowsInComponent component: Int) -> Int {
| `- error: cannot find type 'UIPickerView' in scope
61 | return self.parent.data[component].count
62 | }
/Users/admin/builder/spi-builder-workspace/Sources/FXDatePicker/UIKit/PickerView.swift:64:138: error: cannot find type 'UIView' in scope
62 | }
63 |
64 | internal func pickerView(_ pickerView: UIPickerView, viewForRow row: Int, forComponent component: Int, reusing view: UIView?) -> UIView {
| `- error: cannot find type 'UIView' in scope
65 | var label: UILabel
66 | if let reuseLabel = view as? UILabel {
/Users/admin/builder/spi-builder-workspace/Sources/FXDatePicker/UIKit/PickerView.swift:64:48: error: cannot find type 'UIPickerView' in scope
62 | }
63 |
64 | internal func pickerView(_ pickerView: UIPickerView, viewForRow row: Int, forComponent component: Int, reusing view: UIView?) -> UIView {
| `- error: cannot find type 'UIPickerView' in scope
65 | var label: UILabel
66 | if let reuseLabel = view as? UILabel {
/Users/admin/builder/spi-builder-workspace/Sources/FXDatePicker/UIKit/PickerView.swift:64:126: error: cannot find type 'UIView' in scope
62 | }
63 |
64 | internal func pickerView(_ pickerView: UIPickerView, viewForRow row: Int, forComponent component: Int, reusing view: UIView?) -> UIView {
| `- error: cannot find type 'UIView' in scope
65 | var label: UILabel
66 | if let reuseLabel = view as? UILabel {
/Users/admin/builder/spi-builder-workspace/Sources/FXDatePicker/UIKit/PickerView.swift:80:48: error: cannot find type 'UIPickerView' in scope
78 | }
79 |
80 | internal func pickerView(_ pickerView: UIPickerView, didSelectRow row: Int, inComponent component: Int) {
| `- error: cannot find type 'UIPickerView' in scope
81 | self.parent.selections[component] = row
82 | }
/Users/admin/builder/spi-builder-workspace/Sources/FXDatePicker/UIKit/PickerView.swift:12:31: error: cannot find type 'UIViewRepresentable' in scope
10 |
11 |
12 | internal struct FXPickerView: UIViewRepresentable {
| `- error: cannot find type 'UIViewRepresentable' in scope
13 | @Binding var data: [[String]]
14 | @Binding var selections: [Int]
/Users/admin/builder/spi-builder-workspace/Sources/FXDatePicker/UIKit/PickerView.swift:22:22: error: cannot find 'UIPickerView' in scope
20 |
21 | internal func makeUIView(context: UIViewRepresentableContext<FXPickerView>) -> UIPickerView {
22 | let picker = UIPickerView(frame: .zero)
| `- error: cannot find 'UIPickerView' in scope
23 |
24 | picker.dataSource = context.coordinator
/Users/admin/builder/spi-builder-workspace/Sources/FXDatePicker/UIKit/PickerView.swift:22:43: error: cannot infer contextual base in reference to member 'zero'
20 |
21 | internal func makeUIView(context: UIViewRepresentableContext<FXPickerView>) -> UIPickerView {
22 | let picker = UIPickerView(frame: .zero)
| `- error: cannot infer contextual base in reference to member 'zero'
23 |
24 | picker.dataSource = context.coordinator
/Users/admin/builder/spi-builder-workspace/Sources/FXDatePicker/UIKit/PickerView.swift:65:24: error: cannot find type 'UILabel' in scope
63 |
64 | internal func pickerView(_ pickerView: UIPickerView, viewForRow row: Int, forComponent component: Int, reusing view: UIView?) -> UIView {
65 | var label: UILabel
| `- error: cannot find type 'UILabel' in scope
66 | if let reuseLabel = view as? UILabel {
67 | label = reuseLabel
/Users/admin/builder/spi-builder-workspace/Sources/FXDatePicker/UIKit/PickerView.swift:66:42: error: cannot find type 'UILabel' in scope
64 | internal func pickerView(_ pickerView: UIPickerView, viewForRow row: Int, forComponent component: Int, reusing view: UIView?) -> UIView {
65 | var label: UILabel
66 | if let reuseLabel = view as? UILabel {
| `- error: cannot find type 'UILabel' in scope
67 | label = reuseLabel
68 | } else {
/Users/admin/builder/spi-builder-workspace/Sources/FXDatePicker/UIKit/PickerView.swift:69:25: error: cannot find 'UILabel' in scope
67 | label = reuseLabel
68 | } else {
69 | label = UILabel()
| `- error: cannot find 'UILabel' in scope
70 | }
71 |
/Users/admin/builder/spi-builder-workspace/Sources/FXDatePicker/UIKit/PickerView.swift:74:36: error: cannot infer contextual base in reference to member 'center'
72 | label.text = self.parent.data[component][row]
73 | label.textColor = parent.textColor
74 | label.textAlignment = .center
| `- error: cannot infer contextual base in reference to member 'center'
75 | label.font = UIFont.systemFont(ofSize: 24)
76 |
/Users/admin/builder/spi-builder-workspace/Sources/FXDatePicker/UIKit/PickerView.swift:75:26: error: cannot find 'UIFont' in scope
73 | label.textColor = parent.textColor
74 | label.textAlignment = .center
75 | label.font = UIFont.systemFont(ofSize: 24)
| `- error: cannot find 'UIFont' in scope
76 |
77 | return label
/Users/admin/builder/spi-builder-workspace/Sources/FXDatePicker/UIKit/PickerView.swift:81:13: error: cannot pass as inout because setter for 'selections' is only available in macOS 10.15 or newer
47 |
48 |
49 | internal class Coordinator: NSObject, UIPickerViewDataSource, UIPickerViewDelegate {
| `- note: add '@available' attribute to enclosing class
50 | var parent: FXPickerView
51 |
:
78 | }
79 |
80 | internal func pickerView(_ pickerView: UIPickerView, didSelectRow row: Int, inComponent component: Int) {
| `- note: add '@available' attribute to enclosing instance method
81 | self.parent.selections[component] = row
| |- error: cannot pass as inout because setter for 'selections' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
82 | }
83 | }
[12/16] Compiling FXDatePicker PickerView.swift
/Users/admin/builder/spi-builder-workspace/Sources/FXDatePicker/Modifiers/ThemeColorModifier.swift:54:43: error: 'blue' is only available in macOS 10.15 or newer
44 |
45 | public extension DatePickerTheme {
46 | struct Main {
| `- note: add '@available' attribute to enclosing struct
47 | public let accentColor: Color
48 | public let monthTitle: Color
:
52 | public let backgroundStyle: BackgroundStyle
53 |
54 | public init(accentColor: Color = .blue,
| | `- error: 'blue' is only available in macOS 10.15 or newer
| `- note: add '@available' attribute to enclosing initializer
55 | monthTitle: Color = Color(UIColor.label),
56 | daysName: Color = .gray,
/Users/admin/builder/spi-builder-workspace/Sources/FXDatePicker/Modifiers/ThemeColorModifier.swift:55:47: error: cannot find 'UIColor' in scope
53 |
54 | public init(accentColor: Color = .blue,
55 | monthTitle: Color = Color(UIColor.label),
| `- error: cannot find 'UIColor' in scope
56 | daysName: Color = .gray,
57 | daysNumbers: Color = Color(UIColor.label),
/Users/admin/builder/spi-builder-workspace/Sources/FXDatePicker/Modifiers/ThemeColorModifier.swift:56:40: error: 'gray' is only available in macOS 10.15 or newer
44 |
45 | public extension DatePickerTheme {
46 | struct Main {
| `- note: add '@available' attribute to enclosing struct
47 | public let accentColor: Color
48 | public let monthTitle: Color
:
52 | public let backgroundStyle: BackgroundStyle
53 |
54 | public init(accentColor: Color = .blue,
| `- note: add '@available' attribute to enclosing initializer
55 | monthTitle: Color = Color(UIColor.label),
56 | daysName: Color = .gray,
| `- error: 'gray' is only available in macOS 10.15 or newer
57 | daysNumbers: Color = Color(UIColor.label),
58 | previousDaysNumber: Color = .gray,
/Users/admin/builder/spi-builder-workspace/Sources/FXDatePicker/Modifiers/ThemeColorModifier.swift:57:48: error: cannot find 'UIColor' in scope
55 | monthTitle: Color = Color(UIColor.label),
56 | daysName: Color = .gray,
57 | daysNumbers: Color = Color(UIColor.label),
| `- error: cannot find 'UIColor' in scope
58 | previousDaysNumber: Color = .gray,
59 | backgroundStyle: BackgroundStyle = .color(Color(UIColor.systemBackground))) {
/Users/admin/builder/spi-builder-workspace/Sources/FXDatePicker/Modifiers/ThemeColorModifier.swift:58:50: error: 'gray' is only available in macOS 10.15 or newer
44 |
45 | public extension DatePickerTheme {
46 | struct Main {
| `- note: add '@available' attribute to enclosing struct
47 | public let accentColor: Color
48 | public let monthTitle: Color
:
52 | public let backgroundStyle: BackgroundStyle
53 |
54 | public init(accentColor: Color = .blue,
| `- note: add '@available' attribute to enclosing initializer
55 | monthTitle: Color = Color(UIColor.label),
56 | daysName: Color = .gray,
57 | daysNumbers: Color = Color(UIColor.label),
58 | previousDaysNumber: Color = .gray,
| `- error: 'gray' is only available in macOS 10.15 or newer
59 | backgroundStyle: BackgroundStyle = .color(Color(UIColor.systemBackground))) {
60 |
/Users/admin/builder/spi-builder-workspace/Sources/FXDatePicker/Modifiers/ThemeColorModifier.swift:59:69: error: cannot find 'UIColor' in scope
57 | daysNumbers: Color = Color(UIColor.label),
58 | previousDaysNumber: Color = .gray,
59 | backgroundStyle: BackgroundStyle = .color(Color(UIColor.systemBackground))) {
| `- error: cannot find 'UIColor' in scope
60 |
61 | self.accentColor = accentColor
/Users/admin/builder/spi-builder-workspace/Sources/FXDatePicker/Modifiers/ThemeColorModifier.swift:17:18: error: 'EnvironmentValues' is only available in macOS 10.15 or newer
15 | }
16 |
17 | public extension EnvironmentValues {
| | `- error: 'EnvironmentValues' is only available in macOS 10.15 or newer
| `- note: add '@available' attribute to enclosing extension
18 | var datePickerTheme: DatePickerTheme {
19 | get { self[DatePickerThemeKey.self] }
/Users/admin/builder/spi-builder-workspace/Sources/FXDatePicker/Modifiers/ThemeColorModifier.swift:25:60: error: 'View' is only available in macOS 10.15 or newer
22 | }
23 |
24 | public extension View {
| `- note: add '@available' attribute to enclosing extension
25 | func datePickerTheme(_ theme: DatePickerTheme) -> some View {
| | `- error: 'View' is only available in macOS 10.15 or newer
| `- note: add '@available' attribute to enclosing instance method
26 | self.environment(\.datePickerTheme, theme)
27 | }
/Users/admin/builder/spi-builder-workspace/Sources/FXDatePicker/Modifiers/ThemeColorModifier.swift:31:15: error: 'View' is only available in macOS 10.15 or newer
22 | }
23 |
24 | public extension View {
| `- note: add '@available' attribute to enclosing extension
25 | func datePickerTheme(_ theme: DatePickerTheme) -> some View {
26 | self.environment(\.datePickerTheme, theme)
27 | }
28 |
29 | func datePickerTheme(
| `- note: add '@available' attribute to enclosing instance method
30 | main: DatePickerTheme.Main = .init()
31 | ) -> some View {
| `- error: 'View' is only available in macOS 10.15 or newer
32 | self.environment(\.datePickerTheme, DatePickerTheme(main: main))
33 | }
/Users/admin/builder/spi-builder-workspace/Sources/FXDatePicker/Modifiers/ThemeColorModifier.swift:24:18: error: 'View' is only available in macOS 10.15 or newer
22 | }
23 |
24 | public extension View {
| | `- error: 'View' is only available in macOS 10.15 or newer
| `- note: add '@available' attribute to enclosing extension
25 | func datePickerTheme(_ theme: DatePickerTheme) -> some View {
26 | self.environment(\.datePickerTheme, theme)
/Users/admin/builder/spi-builder-workspace/Sources/FXDatePicker/Modifiers/ThemeColorModifier.swift:47:33: error: 'Color' is only available in macOS 10.15 or newer
44 |
45 | public extension DatePickerTheme {
46 | struct Main {
| `- note: add '@available' attribute to enclosing struct
47 | public let accentColor: Color
| `- error: 'Color' is only available in macOS 10.15 or newer
48 | public let monthTitle: Color
49 | public let daysName: Color
/Users/admin/builder/spi-builder-workspace/Sources/FXDatePicker/Modifiers/ThemeColorModifier.swift:48:32: error: 'Color' is only available in macOS 10.15 or newer
44 |
45 | public extension DatePickerTheme {
46 | struct Main {
| `- note: add '@available' attribute to enclosing struct
47 | public let accentColor: Color
48 | public let monthTitle: Color
| `- error: 'Color' is only available in macOS 10.15 or newer
49 | public let daysName: Color
50 | public let daysNumbers: Color
/Users/admin/builder/spi-builder-workspace/Sources/FXDatePicker/Modifiers/ThemeColorModifier.swift:49:30: error: 'Color' is only available in macOS 10.15 or newer
44 |
45 | public extension DatePickerTheme {
46 | struct Main {
| `- note: add '@available' attribute to enclosing struct
47 | public let accentColor: Color
48 | public let monthTitle: Color
49 | public let daysName: Color
| `- error: 'Color' is only available in macOS 10.15 or newer
50 | public let daysNumbers: Color
51 | public let previousDaysNumber: Color
/Users/admin/builder/spi-builder-workspace/Sources/FXDatePicker/Modifiers/ThemeColorModifier.swift:50:33: error: 'Color' is only available in macOS 10.15 or newer
44 |
45 | public extension DatePickerTheme {
46 | struct Main {
| `- note: add '@available' attribute to enclosing struct
47 | public let accentColor: Color
48 | public let monthTitle: Color
49 | public let daysName: Color
50 | public let daysNumbers: Color
| `- error: 'Color' is only available in macOS 10.15 or newer
51 | public let previousDaysNumber: Color
52 | public let backgroundStyle: BackgroundStyle
/Users/admin/builder/spi-builder-workspace/Sources/FXDatePicker/Modifiers/ThemeColorModifier.swift:51:40: error: 'Color' is only available in macOS 10.15 or newer
44 |
45 | public extension DatePickerTheme {
46 | struct Main {
| `- note: add '@available' attribute to enclosing struct
47 | public let accentColor: Color
48 | public let monthTitle: Color
49 | public let daysName: Color
50 | public let daysNumbers: Color
51 | public let previousDaysNumber: Color
| `- error: 'Color' is only available in macOS 10.15 or newer
52 | public let backgroundStyle: BackgroundStyle
53 |
/Users/admin/builder/spi-builder-workspace/Sources/FXDatePicker/Modifiers/ThemeColorModifier.swift:54:34: error: 'Color' is only available in macOS 10.15 or newer
44 |
45 | public extension DatePickerTheme {
46 | struct Main {
| `- note: add '@available' attribute to enclosing struct
47 | public let accentColor: Color
48 | public let monthTitle: Color
:
52 | public let backgroundStyle: BackgroundStyle
53 |
54 | public init(accentColor: Color = .blue,
| | `- error: 'Color' is only available in macOS 10.15 or newer
| `- note: add '@available' attribute to enclosing initializer
55 | monthTitle: Color = Color(UIColor.label),
56 | daysName: Color = .gray,
/Users/admin/builder/spi-builder-workspace/Sources/FXDatePicker/Modifiers/ThemeColorModifier.swift:55:33: error: 'Color' is only available in macOS 10.15 or newer
44 |
45 | public extension DatePickerTheme {
46 | struct Main {
| `- note: add '@available' attribute to enclosing struct
47 | public let accentColor: Color
48 | public let monthTitle: Color
:
52 | public let backgroundStyle: BackgroundStyle
53 |
54 | public init(accentColor: Color = .blue,
| `- note: add '@available' attribute to enclosing initializer
55 | monthTitle: Color = Color(UIColor.label),
| `- error: 'Color' is only available in macOS 10.15 or newer
56 | daysName: Color = .gray,
57 | daysNumbers: Color = Color(UIColor.label),
/Users/admin/builder/spi-builder-workspace/Sources/FXDatePicker/Modifiers/ThemeColorModifier.swift:56:31: error: 'Color' is only available in macOS 10.15 or newer
44 |
45 | public extension DatePickerTheme {
46 | struct Main {
| `- note: add '@available' attribute to enclosing struct
47 | public let accentColor: Color
48 | public let monthTitle: Color
:
52 | public let backgroundStyle: BackgroundStyle
53 |
54 | public init(accentColor: Color = .blue,
| `- note: add '@available' attribute to enclosing initializer
55 | monthTitle: Color = Color(UIColor.label),
56 | daysName: Color = .gray,
| `- error: 'Color' is only available in macOS 10.15 or newer
57 | daysNumbers: Color = Color(UIColor.label),
58 | previousDaysNumber: Color = .gray,
/Users/admin/builder/spi-builder-workspace/Sources/FXDatePicker/Modifiers/ThemeColorModifier.swift:57:34: error: 'Color' is only available in macOS 10.15 or newer
44 |
45 | public extension DatePickerTheme {
46 | struct Main {
| `- note: add '@available' attribute to enclosing struct
47 | public let accentColor: Color
48 | public let monthTitle: Color
:
52 | public let backgroundStyle: BackgroundStyle
53 |
54 | public init(accentColor: Color = .blue,
| `- note: add '@available' attribute to enclosing initializer
55 | monthTitle: Color = Color(UIColor.label),
56 | daysName: Color = .gray,
57 | daysNumbers: Color = Color(UIColor.label),
| `- error: 'Color' is only available in macOS 10.15 or newer
58 | previousDaysNumber: Color = .gray,
59 | backgroundStyle: BackgroundStyle = .color(Color(UIColor.systemBackground))) {
/Users/admin/builder/spi-builder-workspace/Sources/FXDatePicker/Modifiers/ThemeColorModifier.swift:58:41: error: 'Color' is only available in macOS 10.15 or newer
44 |
45 | public extension DatePickerTheme {
46 | struct Main {
| `- note: add '@available' attribute to enclosing struct
47 | public let accentColor: Color
48 | public let monthTitle: Color
:
52 | public let backgroundStyle: BackgroundStyle
53 |
54 | public init(accentColor: Color = .blue,
| `- note: add '@available' attribute to enclosing initializer
55 | monthTitle: Color = Color(UIColor.label),
56 | daysName: Color = .gray,
57 | daysNumbers: Color = Color(UIColor.label),
58 | previousDaysNumber: Color = .gray,
| `- error: 'Color' is only available in macOS 10.15 or newer
59 | backgroundStyle: BackgroundStyle = .color(Color(UIColor.systemBackground))) {
60 |
/Users/admin/builder/spi-builder-workspace/Sources/FXDatePicker/Modifiers/ThemeColorModifier.swift:73:16: error: 'Color' is only available in macOS 10.15 or newer
70 | }
71 |
72 | public enum BackgroundStyle {
| `- note: add '@available' attribute to enclosing enum
73 | case color(Color)
| `- error: 'Color' is only available in macOS 10.15 or newer
74 | case linearGradient(Gradient, startPoint: UnitPoint, endPoint: UnitPoint)
75 | case radialGradient(Gradient, center: UnitPoint, startRadius: CGFloat, endRadius: CGFloat)
/Users/admin/builder/spi-builder-workspace/Sources/FXDatePicker/Modifiers/ThemeColorModifier.swift:74:25: error: 'Gradient' is only available in macOS 10.15 or newer
70 | }
71 |
72 | public enum BackgroundStyle {
| `- note: add '@available' attribute to enclosing enum
73 | case color(Color)
74 | case linearGradient(Gradient, startPoint: UnitPoint, endPoint: UnitPoint)
| `- error: 'Gradient' is only available in macOS 10.15 or newer
75 | case radialGradient(Gradient, center: UnitPoint, startRadius: CGFloat, endRadius: CGFloat)
76 | case angularGradient(Gradient, center: UnitPoint)
/Users/admin/builder/spi-builder-workspace/Sources/FXDatePicker/Modifiers/ThemeColorModifier.swift:74:47: error: 'UnitPoint' is only available in macOS 10.15 or newer
70 | }
71 |
72 | public enum BackgroundStyle {
| `- note: add '@available' attribute to enclosing enum
73 | case color(Color)
74 | case linearGradient(Gradient, startPoint: UnitPoint, endPoint: UnitPoint)
| `- error: 'UnitPoint' is only available in macOS 10.15 or newer
75 | case radialGradient(Gradient, center: UnitPoint, startRadius: CGFloat, endRadius: CGFloat)
76 | case angularGradient(Gradient, center: UnitPoint)
/Users/admin/builder/spi-builder-workspace/Sources/FXDatePicker/Modifiers/ThemeColorModifier.swift:74:68: error: 'UnitPoint' is only available in macOS 10.15 or newer
70 | }
71 |
72 | public enum BackgroundStyle {
| `- note: add '@available' attribute to enclosing enum
73 | case color(Color)
74 | case linearGradient(Gradient, startPoint: UnitPoint, endPoint: UnitPoint)
| `- error: 'UnitPoint' is only available in macOS 10.15 or newer
75 | case radialGradient(Gradient, center: UnitPoint, startRadius: CGFloat, endRadius: CGFloat)
76 | case angularGradient(Gradient, center: UnitPoint)
/Users/admin/builder/spi-builder-workspace/Sources/FXDatePicker/Modifiers/ThemeColorModifier.swift:75:25: error: 'Gradient' is only available in macOS 10.15 or newer
70 | }
71 |
72 | public enum BackgroundStyle {
| `- note: add '@available' attribute to enclosing enum
73 | case color(Color)
74 | case linearGradient(Gradient, startPoint: UnitPoint, endPoint: UnitPoint)
75 | case radialGradient(Gradient, center: UnitPoint, startRadius: CGFloat, endRadius: CGFloat)
| `- error: 'Gradient' is only available in macOS 10.15 or newer
76 | case angularGradient(Gradient, center: UnitPoint)
77 | }
/Users/admin/builder/spi-builder-workspace/Sources/FXDatePicker/Modifiers/ThemeColorModifier.swift:75:43: error: 'UnitPoint' is only available in macOS 10.15 or newer
70 | }
71 |
72 | public enum BackgroundStyle {
| `- note: add '@available' attribute to enclosing enum
73 | case color(Color)
74 | case linearGradient(Gradient, startPoint: UnitPoint, endPoint: UnitPoint)
75 | case radialGradient(Gradient, center: UnitPoint, startRadius: CGFloat, endRadius: CGFloat)
| `- error: 'UnitPoint' is only available in macOS 10.15 or newer
76 | case angularGradient(Gradient, center: UnitPoint)
77 | }
/Users/admin/builder/spi-builder-workspace/Sources/FXDatePicker/Modifiers/ThemeColorModifier.swift:76:26: error: 'Gradient' is only available in macOS 10.15 or newer
70 | }
71 |
72 | public enum BackgroundStyle {
| `- note: add '@available' attribute to enclosing enum
73 | case color(Color)
74 | case linearGradient(Gradient, startPoint: UnitPoint, endPoint: UnitPoint)
75 | case radialGradient(Gradient, center: UnitPoint, startRadius: CGFloat, endRadius: CGFloat)
76 | case angularGradient(Gradient, center: UnitPoint)
| `- error: 'Gradient' is only available in macOS 10.15 or newer
77 | }
78 |
/Users/admin/builder/spi-builder-workspace/Sources/FXDatePicker/Modifiers/ThemeColorModifier.swift:76:44: error: 'UnitPoint' is only available in macOS 10.15 or newer
70 | }
71 |
72 | public enum BackgroundStyle {
| `- note: add '@available' attribute to enclosing enum
73 | case color(Color)
74 | case linearGradient(Gradient, startPoint: UnitPoint, endPoint: UnitPoint)
75 | case radialGradient(Gradient, center: UnitPoint, startRadius: CGFloat, endRadius: CGFloat)
76 | case angularGradient(Gradient, center: UnitPoint)
| `- error: 'UnitPoint' is only available in macOS 10.15 or newer
77 | }
78 |
/Users/admin/builder/spi-builder-workspace/Sources/FXDatePicker/Modifiers/ThemeColorModifier.swift:26:14: error: 'environment' is only available in macOS 10.15 or newer
22 | }
23 |
24 | public extension View {
| `- note: add '@available' attribute to enclosing extension
25 | func datePickerTheme(_ theme: DatePickerTheme) -> some View {
| `- note: add '@available' attribute to enclosing instance method
26 | self.environment(\.datePickerTheme, theme)
| |- error: 'environment' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
27 | }
28 |
/Users/admin/builder/spi-builder-workspace/Sources/FXDatePicker/Modifiers/ThemeColorModifier.swift:32:14: error: 'environment' is only available in macOS 10.15 or newer
22 | }
23 |
24 | public extension View {
| `- note: add '@available' attribute to enclosing extension
25 | func datePickerTheme(_ theme: DatePickerTheme) -> some View {
26 | self.environment(\.datePickerTheme, theme)
27 | }
28 |
29 | func datePickerTheme(
| `- note: add '@available' attribute to enclosing instance method
30 | main: DatePickerTheme.Main = .init()
31 | ) -> some View {
32 | self.environment(\.datePickerTheme, DatePickerTheme(main: main))
| |- error: 'environment' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
33 | }
34 | }
/Users/admin/builder/spi-builder-workspace/Sources/FXDatePicker/UIKit/PickerView.swift:15:20: error: cannot find type 'UIColor' in scope
13 | @Binding var data: [[String]]
14 | @Binding var selections: [Int]
15 | var textColor: UIColor = .black
| `- error: cannot find type 'UIColor' in scope
16 |
17 | internal func makeCoordinator() -> FXPickerView.Coordinator {
/Users/admin/builder/spi-builder-workspace/Sources/FXDatePicker/UIKit/PickerView.swift:13:6: error: 'Binding' is only available in macOS 10.15 or newer
10 |
11 |
12 | internal struct FXPickerView: UIViewRepresentable {
| `- note: add '@available' attribute to enclosing struct
13 | @Binding var data: [[String]]
| `- error: 'Binding' is only available in macOS 10.15 or newer
14 | @Binding var selections: [Int]
15 | var textColor: UIColor = .black
/Users/admin/builder/spi-builder-workspace/Sources/FXDatePicker/UIKit/PickerView.swift:14:6: error: 'Binding' is only available in macOS 10.15 or newer
10 |
11 |
12 | internal struct FXPickerView: UIViewRepresentable {
| `- note: add '@available' attribute to enclosing struct
13 | @Binding var data: [[String]]
14 | @Binding var selections: [Int]
| `- error: 'Binding' is only available in macOS 10.15 or newer
15 | var textColor: UIColor = .black
16 |
/Users/admin/builder/spi-builder-workspace/Sources/FXDatePicker/UIKit/PickerView.swift:21:84: error: cannot find type 'UIPickerView' in scope
19 | }
20 |
21 | internal func makeUIView(context: UIViewRepresentableContext<FXPickerView>) -> UIPickerView {
| `- error: cannot find type 'UIPickerView' in scope
22 | let picker = UIPickerView(frame: .zero)
23 |
/Users/admin/builder/spi-builder-workspace/Sources/FXDatePicker/UIKit/PickerView.swift:21:39: error: cannot find type 'UIViewRepresentableContext' in scope
19 | }
20 |
21 | internal func makeUIView(context: UIViewRepresentableContext<FXPickerView>) -> UIPickerView {
| `- error: cannot find type 'UIViewRepresentableContext' in scope
22 | let picker = UIPickerView(frame: .zero)
23 |
/Users/admin/builder/spi-builder-workspace/Sources/FXDatePicker/UIKit/PickerView.swift:30:40: error: cannot find type 'UIPickerView' in scope
28 | }
29 |
30 | internal func updateUIView(_ view: UIPickerView, context: UIViewRepresentableContext<FXPickerView>) {
| `- error: cannot find type 'UIPickerView' in scope
31 | for i in 0...(self.selections.count - 1) {
32 | view.selectRow(self.selections[i], inComponent: i, animated: true)
/Users/admin/builder/spi-builder-workspace/Sources/FXDatePicker/UIKit/PickerView.swift:30:63: error: cannot find type 'UIViewRepresentableContext' in scope
28 | }
29 |
30 | internal func updateUIView(_ view: UIPickerView, context: UIViewRepresentableContext<FXPickerView>) {
| `- error: cannot find type 'UIViewRepresentableContext' in scope
31 | for i in 0...(self.selections.count - 1) {
32 | view.selectRow(self.selections[i], inComponent: i, animated: true)
/Users/admin/builder/spi-builder-workspace/Sources/FXDatePicker/UIKit/PickerView.swift:49:43: error: cannot find type 'UIPickerViewDataSource' in scope
47 |
48 |
49 | internal class Coordinator: NSObject, UIPickerViewDataSource, UIPickerViewDelegate {
| `- error: cannot find type 'UIPickerViewDataSource' in scope
50 | var parent: FXPickerView
51 |
/Users/admin/builder/spi-builder-workspace/Sources/FXDatePicker/UIKit/PickerView.swift:49:67: error: cannot find type 'UIPickerViewDelegate' in scope
47 |
48 |
49 | internal class Coordinator: NSObject, UIPickerViewDataSource, UIPickerViewDelegate {
| `- error: cannot find type 'UIPickerViewDelegate' in scope
50 | var parent: FXPickerView
51 |
/Users/admin/builder/spi-builder-workspace/Sources/FXDatePicker/UIKit/PickerView.swift:56:59: error: cannot find type 'UIPickerView' in scope
54 | }
55 |
56 | internal func numberOfComponents(in FXPickerView: UIPickerView) -> Int {
| `- error: cannot find type 'UIPickerView' in scope
57 | return self.parent.data.count
58 | }
/Users/admin/builder/spi-builder-workspace/Sources/FXDatePicker/UIKit/PickerView.swift:60:48: error: cannot find type 'UIPickerView' in scope
58 | }
59 |
60 | internal func pickerView(_ pickerView: UIPickerView, numberOfRowsInComponent component: Int) -> Int {
| `- error: cannot find type 'UIPickerView' in scope
61 | return self.parent.data[component].count
62 | }
/Users/admin/builder/spi-builder-workspace/Sources/FXDatePicker/UIKit/PickerView.swift:64:138: error: cannot find type 'UIView' in scope
62 | }
63 |
64 | internal func pickerView(_ pickerView: UIPickerView, viewForRow row: Int, forComponent component: Int, reusing view: UIView?) -> UIView {
| `- error: cannot find type 'UIView' in scope
65 | var label: UILabel
66 | if let reuseLabel = view as? UILabel {
/Users/admin/builder/spi-builder-workspace/Sources/FXDatePicker/UIKit/PickerView.swift:64:48: error: cannot find type 'UIPickerView' in scope
62 | }
63 |
64 | internal func pickerView(_ pickerView: UIPickerView, viewForRow row: Int, forComponent component: Int, reusing view: UIView?) -> UIView {
| `- error: cannot find type 'UIPickerView' in scope
65 | var label: UILabel
66 | if let reuseLabel = view as? UILabel {
/Users/admin/builder/spi-builder-workspace/Sources/FXDatePicker/UIKit/PickerView.swift:64:126: error: cannot find type 'UIView' in scope
62 | }
63 |
64 | internal func pickerView(_ pickerView: UIPickerView, viewForRow row: Int, forComponent component: Int, reusing view: UIView?) -> UIView {
| `- error: cannot find type 'UIView' in scope
65 | var label: UILabel
66 | if let reuseLabel = view as? UILabel {
/Users/admin/builder/spi-builder-workspace/Sources/FXDatePicker/UIKit/PickerView.swift:80:48: error: cannot find type 'UIPickerView' in scope
78 | }
79 |
80 | internal func pickerView(_ pickerView: UIPickerView, didSelectRow row: Int, inComponent component: Int) {
| `- error: cannot find type 'UIPickerView' in scope
81 | self.parent.selections[component] = row
82 | }
/Users/admin/builder/spi-builder-workspace/Sources/FXDatePicker/UIKit/PickerView.swift:12:31: error: cannot find type 'UIViewRepresentable' in scope
10 |
11 |
12 | internal struct FXPickerView: UIViewRepresentable {
| `- error: cannot find type 'UIViewRepresentable' in scope
13 | @Binding var data: [[String]]
14 | @Binding var selections: [Int]
/Users/admin/builder/spi-builder-workspace/Sources/FXDatePicker/UIKit/PickerView.swift:22:22: error: cannot find 'UIPickerView' in scope
20 |
21 | internal func makeUIView(context: UIViewRepresentableContext<FXPickerView>) -> UIPickerView {
22 | let picker = UIPickerView(frame: .zero)
| `- error: cannot find 'UIPickerView' in scope
23 |
24 | picker.dataSource = context.coordinator
/Users/admin/builder/spi-builder-workspace/Sources/FXDatePicker/UIKit/PickerView.swift:22:43: error: cannot infer contextual base in reference to member 'zero'
20 |
21 | internal func makeUIView(context: UIViewRepresentableContext<FXPickerView>) -> UIPickerView {
22 | let picker = UIPickerView(frame: .zero)
| `- error: cannot infer contextual base in reference to member 'zero'
23 |
24 | picker.dataSource = context.coordinator
/Users/admin/builder/spi-builder-workspace/Sources/FXDatePicker/UIKit/PickerView.swift:65:24: error: cannot find type 'UILabel' in scope
63 |
64 | internal func pickerView(_ pickerView: UIPickerView, viewForRow row: Int, forComponent component: Int, reusing view: UIView?) -> UIView {
65 | var label: UILabel
| `- error: cannot find type 'UILabel' in scope
66 | if let reuseLabel = view as? UILabel {
67 | label = reuseLabel
/Users/admin/builder/spi-builder-workspace/Sources/FXDatePicker/UIKit/PickerView.swift:66:42: error: cannot find type 'UILabel' in scope
64 | internal func pickerView(_ pickerView: UIPickerView, viewForRow row: Int, forComponent component: Int, reusing view: UIView?) -> UIView {
65 | var label: UILabel
66 | if let reuseLabel = view as? UILabel {
| `- error: cannot find type 'UILabel' in scope
67 | label = reuseLabel
68 | } else {
/Users/admin/builder/spi-builder-workspace/Sources/FXDatePicker/UIKit/PickerView.swift:69:25: error: cannot find 'UILabel' in scope
67 | label = reuseLabel
68 | } else {
69 | label = UILabel()
| `- error: cannot find 'UILabel' in scope
70 | }
71 |
/Users/admin/builder/spi-builder-workspace/Sources/FXDatePicker/UIKit/PickerView.swift:74:36: error: cannot infer contextual base in reference to member 'center'
72 | label.text = self.parent.data[component][row]
73 | label.textColor = parent.textColor
74 | label.textAlignment = .center
| `- error: cannot infer contextual base in reference to member 'center'
75 | label.font = UIFont.systemFont(ofSize: 24)
76 |
/Users/admin/builder/spi-builder-workspace/Sources/FXDatePicker/UIKit/PickerView.swift:75:26: error: cannot find 'UIFont' in scope
73 | label.textColor = parent.textColor
74 | label.textAlignment = .center
75 | label.font = UIFont.systemFont(ofSize: 24)
| `- error: cannot find 'UIFont' in scope
76 |
77 | return label
/Users/admin/builder/spi-builder-workspace/Sources/FXDatePicker/UIKit/PickerView.swift:81:13: error: cannot pass as inout because setter for 'selections' is only available in macOS 10.15 or newer
47 |
48 |
49 | internal class Coordinator: NSObject, UIPickerViewDataSource, UIPickerViewDelegate {
| `- note: add '@available' attribute to enclosing class
50 | var parent: FXPickerView
51 |
:
78 | }
79 |
80 | internal func pickerView(_ pickerView: UIPickerView, didSelectRow row: Int, inComponent component: Int) {
| `- note: add '@available' attribute to enclosing instance method
81 | self.parent.selections[component] = row
| |- error: cannot pass as inout because setter for 'selections' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
82 | }
83 | }
[13/16] Compiling FXDatePicker SpecialDate.swift
/Users/admin/builder/spi-builder-workspace/Sources/FXDatePicker/Data/SpecialDate.swift:37:16: error: 'Color' is only available in macOS 10.15 or newer
33 | }
34 |
35 | public struct SFSymbolsType {
| `- note: add '@available' attribute to enclosing struct
36 | var imageName: String
37 | var color: Color
| `- error: 'Color' is only available in macOS 10.15 or newer
38 |
39 | public init(imageName: String, color: Color) {
/Users/admin/builder/spi-builder-workspace/Sources/FXDatePicker/Data/SpecialDate.swift:39:43: error: 'Color' is only available in macOS 10.15 or newer
33 | }
34 |
35 | public struct SFSymbolsType {
| `- note: add '@available' attribute to enclosing struct
36 | var imageName: String
37 | var color: Color
38 |
39 | public init(imageName: String, color: Color) {
| | `- error: 'Color' is only available in macOS 10.15 or newer
| `- note: add '@available' attribute to enclosing initializer
40 | self.imageName = imageName
41 | self.color = color
/Users/admin/builder/spi-builder-workspace/Sources/FXDatePicker/Extensions/Bold+Ext.swift:12:64: error: 'View' is only available in macOS 10.15 or newer
9 | import SwiftUI
10 |
11 | public extension View {
| `- note: add '@available' attribute to enclosing extension
12 | @ViewBuilder func toBold(_ condition: Bool = true) -> some View {
| | `- error: 'View' is only available in macOS 10.15 or newer
| `- note: add '@available' attribute to enclosing instance method
13 | if condition {
14 | if #available(iOS 16.0, *) {
/Users/admin/builder/spi-builder-workspace/Sources/FXDatePicker/Extensions/Bold+Ext.swift:12:6: error: 'ViewBuilder' is only available in macOS 10.15 or newer
9 | import SwiftUI
10 |
11 | public extension View {
| `- note: add '@available' attribute to enclosing extension
12 | @ViewBuilder func toBold(_ condition: Bool = true) -> some View {
| | `- note: add '@available' attribute to enclosing instance method
| `- error: 'ViewBuilder' is only available in macOS 10.15 or newer
13 | if condition {
14 | if #available(iOS 16.0, *) {
/Users/admin/builder/spi-builder-workspace/Sources/FXDatePicker/Extensions/Bold+Ext.swift:11:18: error: 'View' is only available in macOS 10.15 or newer
9 | import SwiftUI
10 |
11 | public extension View {
| | `- error: 'View' is only available in macOS 10.15 or newer
| `- note: add '@available' attribute to enclosing extension
12 | @ViewBuilder func toBold(_ condition: Bool = true) -> some View {
13 | if condition {
/Users/admin/builder/spi-builder-workspace/Sources/FXDatePicker/Extensions/Bold+Ext.swift:14:16: warning: result builder 'ViewBuilder' does not implement 'buildLimitedAvailability'; this code may crash on earlier versions of the OS [#ResultBuilderMethods]
12 | @ViewBuilder func toBold(_ condition: Bool = true) -> some View {
13 | if condition {
14 | if #available(iOS 16.0, *) {
| `- warning: result builder 'ViewBuilder' does not implement 'buildLimitedAvailability'; this code may crash on earlier versions of the OS [#ResultBuilderMethods]
15 | self.bold()
16 | } else {
/Users/admin/builder/spi-builder-workspace/Sources/FXDatePicker/Extensions/Bold+Ext.swift:15:22: error: 'bold' is only available in macOS 13.0 or newer
9 | import SwiftUI
10 |
11 | public extension View {
| `- note: add '@available' attribute to enclosing extension
12 | @ViewBuilder func toBold(_ condition: Bool = true) -> some View {
| `- note: add '@available' attribute to enclosing instance method
13 | if condition {
14 | if #available(iOS 16.0, *) {
15 | self.bold()
| |- error: 'bold' is only available in macOS 13.0 or newer
| `- note: add 'if #available' version check
16 | } else {
17 | self.font(Font.body.bold())
/Users/admin/builder/spi-builder-workspace/Sources/FXDatePicker/Extensions/Bold+Ext.swift:14:40: error: 'buildLimitedAvailability' is only available in macOS 11.0 or newer
9 | import SwiftUI
10 |
11 | public extension View {
| `- note: add '@available' attribute to enclosing extension
12 | @ViewBuilder func toBold(_ condition: Bool = true) -> some View {
| `- note: add '@available' attribute to enclosing instance method
13 | if condition {
14 | if #available(iOS 16.0, *) {
| |- error: 'buildLimitedAvailability' is only available in macOS 11.0 or newer
| `- note: add 'if #available' version check
15 | self.bold()
16 | } else {
/Users/admin/builder/spi-builder-workspace/Sources/FXDatePicker/Extensions/Bold+Ext.swift:14:40: error: 'buildEither(first:)' is only available in macOS 10.15 or newer
9 | import SwiftUI
10 |
11 | public extension View {
| `- note: add '@available' attribute to enclosing extension
12 | @ViewBuilder func toBold(_ condition: Bool = true) -> some View {
| `- note: add '@available' attribute to enclosing instance method
13 | if condition {
14 | if #available(iOS 16.0, *) {
| |- error: 'buildEither(first:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
15 | self.bold()
16 | } else {
/Users/admin/builder/spi-builder-workspace/Sources/FXDatePicker/Extensions/Bold+Ext.swift:16:20: error: 'buildEither(second:)' is only available in macOS 10.15 or newer
9 | import SwiftUI
10 |
11 | public extension View {
| `- note: add '@available' attribute to enclosing extension
12 | @ViewBuilder func toBold(_ condition: Bool = true) -> some View {
| `- note: add '@available' attribute to enclosing instance method
13 | if condition {
14 | if #available(iOS 16.0, *) {
15 | self.bold()
16 | } else {
| |- error: 'buildEither(second:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
17 | self.font(Font.body.bold())
18 | }
/Users/admin/builder/spi-builder-workspace/Sources/FXDatePicker/Extensions/Bold+Ext.swift:13:22: 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 | import SwiftUI
10 |
11 | public extension View {
| `- note: add '@available' attribute to enclosing extension
12 | @ViewBuilder func toBold(_ condition: Bool = true) -> some View {
| `- note: add '@available' attribute to enclosing instance method
13 | if condition {
| |- 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
14 | if #available(iOS 16.0, *) {
15 | self.bold()
/Users/admin/builder/spi-builder-workspace/Sources/FXDatePicker/Extensions/Bold+Ext.swift:13:22: error: 'buildEither(first:)' is only available in macOS 10.15 or newer
9 | import SwiftUI
10 |
11 | public extension View {
| `- note: add '@available' attribute to enclosing extension
12 | @ViewBuilder func toBold(_ condition: Bool = true) -> some View {
| `- note: add '@available' attribute to enclosing instance method
13 | if condition {
| |- error: 'buildEither(first:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
14 | if #available(iOS 16.0, *) {
15 | self.bold()
/Users/admin/builder/spi-builder-workspace/Sources/FXDatePicker/Extensions/Bold+Ext.swift:19:16: error: 'buildEither(second:)' is only available in macOS 10.15 or newer
9 | import SwiftUI
10 |
11 | public extension View {
| `- note: add '@available' attribute to enclosing extension
12 | @ViewBuilder func toBold(_ condition: Bool = true) -> some View {
| `- note: add '@available' attribute to enclosing instance method
13 | if condition {
14 | if #available(iOS 16.0, *) {
:
17 | self.font(Font.body.bold())
18 | }
19 | } else {
| |- error: 'buildEither(second:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
20 | self
21 | }
/Users/admin/builder/spi-builder-workspace/Sources/FXDatePicker/Extensions/Bold+Ext.swift:12:69: 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 | import SwiftUI
10 |
11 | public extension View {
| `- note: add '@available' attribute to enclosing extension
12 | @ViewBuilder func toBold(_ condition: Bool = true) -> 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 condition {
14 | if #available(iOS 16.0, *) {
[#ResultBuilderMethods]: <https://docs.swift.org/compiler/documentation/diagnostics/result-builder-methods>
[14/16] Compiling FXDatePicker Bold+Ext.swift
/Users/admin/builder/spi-builder-workspace/Sources/FXDatePicker/Data/SpecialDate.swift:37:16: error: 'Color' is only available in macOS 10.15 or newer
33 | }
34 |
35 | public struct SFSymbolsType {
| `- note: add '@available' attribute to enclosing struct
36 | var imageName: String
37 | var color: Color
| `- error: 'Color' is only available in macOS 10.15 or newer
38 |
39 | public init(imageName: String, color: Color) {
/Users/admin/builder/spi-builder-workspace/Sources/FXDatePicker/Data/SpecialDate.swift:39:43: error: 'Color' is only available in macOS 10.15 or newer
33 | }
34 |
35 | public struct SFSymbolsType {
| `- note: add '@available' attribute to enclosing struct
36 | var imageName: String
37 | var color: Color
38 |
39 | public init(imageName: String, color: Color) {
| | `- error: 'Color' is only available in macOS 10.15 or newer
| `- note: add '@available' attribute to enclosing initializer
40 | self.imageName = imageName
41 | self.color = color
/Users/admin/builder/spi-builder-workspace/Sources/FXDatePicker/Extensions/Bold+Ext.swift:12:64: error: 'View' is only available in macOS 10.15 or newer
9 | import SwiftUI
10 |
11 | public extension View {
| `- note: add '@available' attribute to enclosing extension
12 | @ViewBuilder func toBold(_ condition: Bool = true) -> some View {
| | `- error: 'View' is only available in macOS 10.15 or newer
| `- note: add '@available' attribute to enclosing instance method
13 | if condition {
14 | if #available(iOS 16.0, *) {
/Users/admin/builder/spi-builder-workspace/Sources/FXDatePicker/Extensions/Bold+Ext.swift:12:6: error: 'ViewBuilder' is only available in macOS 10.15 or newer
9 | import SwiftUI
10 |
11 | public extension View {
| `- note: add '@available' attribute to enclosing extension
12 | @ViewBuilder func toBold(_ condition: Bool = true) -> some View {
| | `- note: add '@available' attribute to enclosing instance method
| `- error: 'ViewBuilder' is only available in macOS 10.15 or newer
13 | if condition {
14 | if #available(iOS 16.0, *) {
/Users/admin/builder/spi-builder-workspace/Sources/FXDatePicker/Extensions/Bold+Ext.swift:11:18: error: 'View' is only available in macOS 10.15 or newer
9 | import SwiftUI
10 |
11 | public extension View {
| | `- error: 'View' is only available in macOS 10.15 or newer
| `- note: add '@available' attribute to enclosing extension
12 | @ViewBuilder func toBold(_ condition: Bool = true) -> some View {
13 | if condition {
/Users/admin/builder/spi-builder-workspace/Sources/FXDatePicker/Extensions/Bold+Ext.swift:14:16: warning: result builder 'ViewBuilder' does not implement 'buildLimitedAvailability'; this code may crash on earlier versions of the OS [#ResultBuilderMethods]
12 | @ViewBuilder func toBold(_ condition: Bool = true) -> some View {
13 | if condition {
14 | if #available(iOS 16.0, *) {
| `- warning: result builder 'ViewBuilder' does not implement 'buildLimitedAvailability'; this code may crash on earlier versions of the OS [#ResultBuilderMethods]
15 | self.bold()
16 | } else {
/Users/admin/builder/spi-builder-workspace/Sources/FXDatePicker/Extensions/Bold+Ext.swift:15:22: error: 'bold' is only available in macOS 13.0 or newer
9 | import SwiftUI
10 |
11 | public extension View {
| `- note: add '@available' attribute to enclosing extension
12 | @ViewBuilder func toBold(_ condition: Bool = true) -> some View {
| `- note: add '@available' attribute to enclosing instance method
13 | if condition {
14 | if #available(iOS 16.0, *) {
15 | self.bold()
| |- error: 'bold' is only available in macOS 13.0 or newer
| `- note: add 'if #available' version check
16 | } else {
17 | self.font(Font.body.bold())
/Users/admin/builder/spi-builder-workspace/Sources/FXDatePicker/Extensions/Bold+Ext.swift:14:40: error: 'buildLimitedAvailability' is only available in macOS 11.0 or newer
9 | import SwiftUI
10 |
11 | public extension View {
| `- note: add '@available' attribute to enclosing extension
12 | @ViewBuilder func toBold(_ condition: Bool = true) -> some View {
| `- note: add '@available' attribute to enclosing instance method
13 | if condition {
14 | if #available(iOS 16.0, *) {
| |- error: 'buildLimitedAvailability' is only available in macOS 11.0 or newer
| `- note: add 'if #available' version check
15 | self.bold()
16 | } else {
/Users/admin/builder/spi-builder-workspace/Sources/FXDatePicker/Extensions/Bold+Ext.swift:14:40: error: 'buildEither(first:)' is only available in macOS 10.15 or newer
9 | import SwiftUI
10 |
11 | public extension View {
| `- note: add '@available' attribute to enclosing extension
12 | @ViewBuilder func toBold(_ condition: Bool = true) -> some View {
| `- note: add '@available' attribute to enclosing instance method
13 | if condition {
14 | if #available(iOS 16.0, *) {
| |- error: 'buildEither(first:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
15 | self.bold()
16 | } else {
/Users/admin/builder/spi-builder-workspace/Sources/FXDatePicker/Extensions/Bold+Ext.swift:16:20: error: 'buildEither(second:)' is only available in macOS 10.15 or newer
9 | import SwiftUI
10 |
11 | public extension View {
| `- note: add '@available' attribute to enclosing extension
12 | @ViewBuilder func toBold(_ condition: Bool = true) -> some View {
| `- note: add '@available' attribute to enclosing instance method
13 | if condition {
14 | if #available(iOS 16.0, *) {
15 | self.bold()
16 | } else {
| |- error: 'buildEither(second:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
17 | self.font(Font.body.bold())
18 | }
/Users/admin/builder/spi-builder-workspace/Sources/FXDatePicker/Extensions/Bold+Ext.swift:13:22: 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 | import SwiftUI
10 |
11 | public extension View {
| `- note: add '@available' attribute to enclosing extension
12 | @ViewBuilder func toBold(_ condition: Bool = true) -> some View {
| `- note: add '@available' attribute to enclosing instance method
13 | if condition {
| |- 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
14 | if #available(iOS 16.0, *) {
15 | self.bold()
/Users/admin/builder/spi-builder-workspace/Sources/FXDatePicker/Extensions/Bold+Ext.swift:13:22: error: 'buildEither(first:)' is only available in macOS 10.15 or newer
9 | import SwiftUI
10 |
11 | public extension View {
| `- note: add '@available' attribute to enclosing extension
12 | @ViewBuilder func toBold(_ condition: Bool = true) -> some View {
| `- note: add '@available' attribute to enclosing instance method
13 | if condition {
| |- error: 'buildEither(first:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
14 | if #available(iOS 16.0, *) {
15 | self.bold()
/Users/admin/builder/spi-builder-workspace/Sources/FXDatePicker/Extensions/Bold+Ext.swift:19:16: error: 'buildEither(second:)' is only available in macOS 10.15 or newer
9 | import SwiftUI
10 |
11 | public extension View {
| `- note: add '@available' attribute to enclosing extension
12 | @ViewBuilder func toBold(_ condition: Bool = true) -> some View {
| `- note: add '@available' attribute to enclosing instance method
13 | if condition {
14 | if #available(iOS 16.0, *) {
:
17 | self.font(Font.body.bold())
18 | }
19 | } else {
| |- error: 'buildEither(second:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
20 | self
21 | }
/Users/admin/builder/spi-builder-workspace/Sources/FXDatePicker/Extensions/Bold+Ext.swift:12:69: 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 | import SwiftUI
10 |
11 | public extension View {
| `- note: add '@available' attribute to enclosing extension
12 | @ViewBuilder func toBold(_ condition: Bool = true) -> 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 condition {
14 | if #available(iOS 16.0, *) {
[#ResultBuilderMethods]: <https://docs.swift.org/compiler/documentation/diagnostics/result-builder-methods>
[15/16] Compiling FXDatePicker View+Ext.swift
/Users/admin/builder/spi-builder-workspace/Sources/FXDatePicker/Extensions/View+Ext.swift:12:73: error: 'View' is only available in macOS 10.15 or newer
9 | import SwiftUI
10 |
11 | extension View {
| `- note: add '@available' attribute to enclosing extension
12 | @ViewBuilder func background(_ background: BackgroundStyle) -> some View {
| | `- error: 'View' is only available in macOS 10.15 or newer
| `- note: add '@available' attribute to enclosing instance method
13 | switch background {
14 | case .color(let color):
/Users/admin/builder/spi-builder-workspace/Sources/FXDatePicker/Extensions/View+Ext.swift:12:6: error: 'ViewBuilder' is only available in macOS 10.15 or newer
9 | import SwiftUI
10 |
11 | extension View {
| `- note: add '@available' attribute to enclosing extension
12 | @ViewBuilder func background(_ background: BackgroundStyle) -> some View {
| | `- note: add '@available' attribute to enclosing instance method
| `- error: 'ViewBuilder' is only available in macOS 10.15 or newer
13 | switch background {
14 | case .color(let color):
/Users/admin/builder/spi-builder-workspace/Sources/FXDatePicker/Extensions/View+Ext.swift:11:11: error: 'View' is only available in macOS 10.15 or newer
9 | import SwiftUI
10 |
11 | extension View {
| | `- error: 'View' is only available in macOS 10.15 or newer
| `- note: add '@available' attribute to enclosing extension
12 | @ViewBuilder func background(_ background: BackgroundStyle) -> some View {
13 | switch background {
/Users/admin/builder/spi-builder-workspace/Sources/FXDatePicker/Extensions/View+Ext.swift:15:18: error: 'overlay(_:ignoresSafeAreaEdges:)' is only available in macOS 12.0 or newer
9 | import SwiftUI
10 |
11 | extension View {
| `- note: add '@available' attribute to enclosing extension
12 | @ViewBuilder func background(_ background: BackgroundStyle) -> some View {
| `- note: add '@available' attribute to enclosing instance method
13 | switch background {
14 | case .color(let color):
15 | self.overlay(Color.clear)
| |- error: 'overlay(_:ignoresSafeAreaEdges:)' is only available in macOS 12.0 or newer
| `- note: add 'if #available' version check
16 | .background(color)
17 | case .linearGradient(let gradient, let startPoint, let endPoint):
/Users/admin/builder/spi-builder-workspace/Sources/FXDatePicker/Extensions/View+Ext.swift:15:26: error: 'Color' is only available in macOS 10.15 or newer
9 | import SwiftUI
10 |
11 | extension View {
| `- note: add '@available' attribute to enclosing extension
12 | @ViewBuilder func background(_ background: BackgroundStyle) -> some View {
| `- note: add '@available' attribute to enclosing instance method
13 | switch background {
14 | case .color(let color):
15 | self.overlay(Color.clear)
| |- error: 'Color' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
16 | .background(color)
17 | case .linearGradient(let gradient, let startPoint, let endPoint):
/Users/admin/builder/spi-builder-workspace/Sources/FXDatePicker/Extensions/View+Ext.swift:15:32: error: 'clear' is only available in macOS 10.15 or newer
9 | import SwiftUI
10 |
11 | extension View {
| `- note: add '@available' attribute to enclosing extension
12 | @ViewBuilder func background(_ background: BackgroundStyle) -> some View {
| `- note: add '@available' attribute to enclosing instance method
13 | switch background {
14 | case .color(let color):
15 | self.overlay(Color.clear)
| |- error: 'clear' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
16 | .background(color)
17 | case .linearGradient(let gradient, let startPoint, let endPoint):
/Users/admin/builder/spi-builder-workspace/Sources/FXDatePicker/Extensions/View+Ext.swift:16:18: error: 'background(_:ignoresSafeAreaEdges:)' is only available in macOS 12.0 or newer
9 | import SwiftUI
10 |
11 | extension View {
| `- note: add '@available' attribute to enclosing extension
12 | @ViewBuilder func background(_ background: BackgroundStyle) -> some View {
| `- note: add '@available' attribute to enclosing instance method
13 | switch background {
14 | case .color(let color):
15 | self.overlay(Color.clear)
16 | .background(color)
| |- error: 'background(_:ignoresSafeAreaEdges:)' is only available in macOS 12.0 or newer
| `- note: add 'if #available' version check
17 | case .linearGradient(let gradient, let startPoint, let endPoint):
18 | self.overlay(Color.clear)
/Users/admin/builder/spi-builder-workspace/Sources/FXDatePicker/Extensions/View+Ext.swift:15:13: error: 'buildEither(first:)' is only available in macOS 10.15 or newer
9 | import SwiftUI
10 |
11 | extension View {
| `- note: add '@available' attribute to enclosing extension
12 | @ViewBuilder func background(_ background: BackgroundStyle) -> some View {
| `- note: add '@available' attribute to enclosing instance method
13 | switch background {
14 | case .color(let color):
15 | self.overlay(Color.clear)
| |- error: 'buildEither(first:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
16 | .background(color)
17 | case .linearGradient(let gradient, let startPoint, let endPoint):
/Users/admin/builder/spi-builder-workspace/Sources/FXDatePicker/Extensions/View+Ext.swift:15:13: error: 'buildEither(first:)' is only available in macOS 10.15 or newer
9 | import SwiftUI
10 |
11 | extension View {
| `- note: add '@available' attribute to enclosing extension
12 | @ViewBuilder func background(_ background: BackgroundStyle) -> some View {
| `- note: add '@available' attribute to enclosing instance method
13 | switch background {
14 | case .color(let color):
15 | self.overlay(Color.clear)
| |- error: 'buildEither(first:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
16 | .background(color)
17 | case .linearGradient(let gradient, let startPoint, let endPoint):
/Users/admin/builder/spi-builder-workspace/Sources/FXDatePicker/Extensions/View+Ext.swift:18:18: error: 'overlay(_:ignoresSafeAreaEdges:)' is only available in macOS 12.0 or newer
9 | import SwiftUI
10 |
11 | extension View {
| `- note: add '@available' attribute to enclosing extension
12 | @ViewBuilder func background(_ background: BackgroundStyle) -> some View {
| `- note: add '@available' attribute to enclosing instance method
13 | switch background {
14 | case .color(let color):
:
16 | .background(color)
17 | case .linearGradient(let gradient, let startPoint, let endPoint):
18 | self.overlay(Color.clear)
| |- error: 'overlay(_:ignoresSafeAreaEdges:)' is only available in macOS 12.0 or newer
| `- note: add 'if #available' version check
19 | .background(LinearGradient(gradient: gradient, startPoint: startPoint, endPoint: endPoint))
20 | case .radialGradient(let gradient, let center, let startRadius, let endRadius):
/Users/admin/builder/spi-builder-workspace/Sources/FXDatePicker/Extensions/View+Ext.swift:18:26: error: 'Color' is only available in macOS 10.15 or newer
9 | import SwiftUI
10 |
11 | extension View {
| `- note: add '@available' attribute to enclosing extension
12 | @ViewBuilder func background(_ background: BackgroundStyle) -> some View {
| `- note: add '@available' attribute to enclosing instance method
13 | switch background {
14 | case .color(let color):
:
16 | .background(color)
17 | case .linearGradient(let gradient, let startPoint, let endPoint):
18 | self.overlay(Color.clear)
| |- error: 'Color' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
19 | .background(LinearGradient(gradient: gradient, startPoint: startPoint, endPoint: endPoint))
20 | case .radialGradient(let gradient, let center, let startRadius, let endRadius):
/Users/admin/builder/spi-builder-workspace/Sources/FXDatePicker/Extensions/View+Ext.swift:18:32: error: 'clear' is only available in macOS 10.15 or newer
9 | import SwiftUI
10 |
11 | extension View {
| `- note: add '@available' attribute to enclosing extension
12 | @ViewBuilder func background(_ background: BackgroundStyle) -> some View {
| `- note: add '@available' attribute to enclosing instance method
13 | switch background {
14 | case .color(let color):
:
16 | .background(color)
17 | case .linearGradient(let gradient, let startPoint, let endPoint):
18 | self.overlay(Color.clear)
| |- error: 'clear' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
19 | .background(LinearGradient(gradient: gradient, startPoint: startPoint, endPoint: endPoint))
20 | case .radialGradient(let gradient, let center, let startRadius, let endRadius):
/Users/admin/builder/spi-builder-workspace/Sources/FXDatePicker/Extensions/View+Ext.swift:19:18: error: 'background(_:ignoresSafeAreaEdges:)' is only available in macOS 12.0 or newer
9 | import SwiftUI
10 |
11 | extension View {
| `- note: add '@available' attribute to enclosing extension
12 | @ViewBuilder func background(_ background: BackgroundStyle) -> some View {
| `- note: add '@available' attribute to enclosing instance method
13 | switch background {
14 | case .color(let color):
:
17 | case .linearGradient(let gradient, let startPoint, let endPoint):
18 | self.overlay(Color.clear)
19 | .background(LinearGradient(gradient: gradient, startPoint: startPoint, endPoint: endPoint))
| |- error: 'background(_:ignoresSafeAreaEdges:)' is only available in macOS 12.0 or newer
| `- note: add 'if #available' version check
20 | case .radialGradient(let gradient, let center, let startRadius, let endRadius):
21 | self.overlay(Color.clear)
/Users/admin/builder/spi-builder-workspace/Sources/FXDatePicker/Extensions/View+Ext.swift:19:29: error: 'LinearGradient' is only available in macOS 10.15 or newer
9 | import SwiftUI
10 |
11 | extension View {
| `- note: add '@available' attribute to enclosing extension
12 | @ViewBuilder func background(_ background: BackgroundStyle) -> some View {
| `- note: add '@available' attribute to enclosing instance method
13 | switch background {
14 | case .color(let color):
:
17 | case .linearGradient(let gradient, let startPoint, let endPoint):
18 | self.overlay(Color.clear)
19 | .background(LinearGradient(gradient: gradient, startPoint: startPoint, endPoint: endPoint))
| |- error: 'LinearGradient' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
20 | case .radialGradient(let gradient, let center, let startRadius, let endRadius):
21 | self.overlay(Color.clear)
/Users/admin/builder/spi-builder-workspace/Sources/FXDatePicker/Extensions/View+Ext.swift:18:13: error: 'buildEither(first:)' is only available in macOS 10.15 or newer
9 | import SwiftUI
10 |
11 | extension View {
| `- note: add '@available' attribute to enclosing extension
12 | @ViewBuilder func background(_ background: BackgroundStyle) -> some View {
| `- note: add '@available' attribute to enclosing instance method
13 | switch background {
14 | case .color(let color):
:
16 | .background(color)
17 | case .linearGradient(let gradient, let startPoint, let endPoint):
18 | self.overlay(Color.clear)
| |- error: 'buildEither(first:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
19 | .background(LinearGradient(gradient: gradient, startPoint: startPoint, endPoint: endPoint))
20 | case .radialGradient(let gradient, let center, let startRadius, let endRadius):
/Users/admin/builder/spi-builder-workspace/Sources/FXDatePicker/Extensions/View+Ext.swift:18:13: error: 'buildEither(second:)' is only available in macOS 10.15 or newer
9 | import SwiftUI
10 |
11 | extension View {
| `- note: add '@available' attribute to enclosing extension
12 | @ViewBuilder func background(_ background: BackgroundStyle) -> some View {
| `- note: add '@available' attribute to enclosing instance method
13 | switch background {
14 | case .color(let color):
:
16 | .background(color)
17 | case .linearGradient(let gradient, let startPoint, let endPoint):
18 | self.overlay(Color.clear)
| |- error: 'buildEither(second:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
19 | .background(LinearGradient(gradient: gradient, startPoint: startPoint, endPoint: endPoint))
20 | case .radialGradient(let gradient, let center, let startRadius, let endRadius):
/Users/admin/builder/spi-builder-workspace/Sources/FXDatePicker/Extensions/View+Ext.swift:21:18: error: 'overlay(_:ignoresSafeAreaEdges:)' is only available in macOS 12.0 or newer
9 | import SwiftUI
10 |
11 | extension View {
| `- note: add '@available' attribute to enclosing extension
12 | @ViewBuilder func background(_ background: BackgroundStyle) -> some View {
| `- note: add '@available' attribute to enclosing instance method
13 | switch background {
14 | case .color(let color):
:
19 | .background(LinearGradient(gradient: gradient, startPoint: startPoint, endPoint: endPoint))
20 | case .radialGradient(let gradient, let center, let startRadius, let endRadius):
21 | self.overlay(Color.clear)
| |- error: 'overlay(_:ignoresSafeAreaEdges:)' is only available in macOS 12.0 or newer
| `- note: add 'if #available' version check
22 | .background(RadialGradient(gradient: gradient, center: center, startRadius: startRadius, endRadius: endRadius))
23 | case .angularGradient(let gradient, let center):
/Users/admin/builder/spi-builder-workspace/Sources/FXDatePicker/Extensions/View+Ext.swift:21:26: error: 'Color' is only available in macOS 10.15 or newer
9 | import SwiftUI
10 |
11 | extension View {
| `- note: add '@available' attribute to enclosing extension
12 | @ViewBuilder func background(_ background: BackgroundStyle) -> some View {
| `- note: add '@available' attribute to enclosing instance method
13 | switch background {
14 | case .color(let color):
:
19 | .background(LinearGradient(gradient: gradient, startPoint: startPoint, endPoint: endPoint))
20 | case .radialGradient(let gradient, let center, let startRadius, let endRadius):
21 | self.overlay(Color.clear)
| |- error: 'Color' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
22 | .background(RadialGradient(gradient: gradient, center: center, startRadius: startRadius, endRadius: endRadius))
23 | case .angularGradient(let gradient, let center):
/Users/admin/builder/spi-builder-workspace/Sources/FXDatePicker/Extensions/View+Ext.swift:21:32: error: 'clear' is only available in macOS 10.15 or newer
9 | import SwiftUI
10 |
11 | extension View {
| `- note: add '@available' attribute to enclosing extension
12 | @ViewBuilder func background(_ background: BackgroundStyle) -> some View {
| `- note: add '@available' attribute to enclosing instance method
13 | switch background {
14 | case .color(let color):
:
19 | .background(LinearGradient(gradient: gradient, startPoint: startPoint, endPoint: endPoint))
20 | case .radialGradient(let gradient, let center, let startRadius, let endRadius):
21 | self.overlay(Color.clear)
| |- error: 'clear' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
22 | .background(RadialGradient(gradient: gradient, center: center, startRadius: startRadius, endRadius: endRadius))
23 | case .angularGradient(let gradient, let center):
/Users/admin/builder/spi-builder-workspace/Sources/FXDatePicker/Extensions/View+Ext.swift:22:18: error: 'background(_:ignoresSafeAreaEdges:)' is only available in macOS 12.0 or newer
9 | import SwiftUI
10 |
11 | extension View {
| `- note: add '@available' attribute to enclosing extension
12 | @ViewBuilder func background(_ background: BackgroundStyle) -> some View {
| `- note: add '@available' attribute to enclosing instance method
13 | switch background {
14 | case .color(let color):
:
20 | case .radialGradient(let gradient, let center, let startRadius, let endRadius):
21 | self.overlay(Color.clear)
22 | .background(RadialGradient(gradient: gradient, center: center, startRadius: startRadius, endRadius: endRadius))
| |- error: 'background(_:ignoresSafeAreaEdges:)' is only available in macOS 12.0 or newer
| `- note: add 'if #available' version check
23 | case .angularGradient(let gradient, let center):
24 | self.overlay(Color.clear)
/Users/admin/builder/spi-builder-workspace/Sources/FXDatePicker/Extensions/View+Ext.swift:22:29: error: 'RadialGradient' is only available in macOS 10.15 or newer
9 | import SwiftUI
10 |
11 | extension View {
| `- note: add '@available' attribute to enclosing extension
12 | @ViewBuilder func background(_ background: BackgroundStyle) -> some View {
| `- note: add '@available' attribute to enclosing instance method
13 | switch background {
14 | case .color(let color):
:
20 | case .radialGradient(let gradient, let center, let startRadius, let endRadius):
21 | self.overlay(Color.clear)
22 | .background(RadialGradient(gradient: gradient, center: center, startRadius: startRadius, endRadius: endRadius))
| |- error: 'RadialGradient' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
23 | case .angularGradient(let gradient, let center):
24 | self.overlay(Color.clear)
/Users/admin/builder/spi-builder-workspace/Sources/FXDatePicker/Extensions/View+Ext.swift:21:13: error: 'buildEither(second:)' is only available in macOS 10.15 or newer
9 | import SwiftUI
10 |
11 | extension View {
| `- note: add '@available' attribute to enclosing extension
12 | @ViewBuilder func background(_ background: BackgroundStyle) -> some View {
| `- note: add '@available' attribute to enclosing instance method
13 | switch background {
14 | case .color(let color):
:
19 | .background(LinearGradient(gradient: gradient, startPoint: startPoint, endPoint: endPoint))
20 | case .radialGradient(let gradient, let center, let startRadius, let endRadius):
21 | self.overlay(Color.clear)
| |- error: 'buildEither(second:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
22 | .background(RadialGradient(gradient: gradient, center: center, startRadius: startRadius, endRadius: endRadius))
23 | case .angularGradient(let gradient, let center):
/Users/admin/builder/spi-builder-workspace/Sources/FXDatePicker/Extensions/View+Ext.swift:21:13: error: 'buildEither(first:)' is only available in macOS 10.15 or newer
9 | import SwiftUI
10 |
11 | extension View {
| `- note: add '@available' attribute to enclosing extension
12 | @ViewBuilder func background(_ background: BackgroundStyle) -> some View {
| `- note: add '@available' attribute to enclosing instance method
13 | switch background {
14 | case .color(let color):
:
19 | .background(LinearGradient(gradient: gradient, startPoint: startPoint, endPoint: endPoint))
20 | case .radialGradient(let gradient, let center, let startRadius, let endRadius):
21 | self.overlay(Color.clear)
| |- error: 'buildEither(first:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
22 | .background(RadialGradient(gradient: gradient, center: center, startRadius: startRadius, endRadius: endRadius))
23 | case .angularGradient(let gradient, let center):
/Users/admin/builder/spi-builder-workspace/Sources/FXDatePicker/Extensions/View+Ext.swift:24:18: error: 'overlay(_:ignoresSafeAreaEdges:)' is only available in macOS 12.0 or newer
9 | import SwiftUI
10 |
11 | extension View {
| `- note: add '@available' attribute to enclosing extension
12 | @ViewBuilder func background(_ background: BackgroundStyle) -> some View {
| `- note: add '@available' attribute to enclosing instance method
13 | switch background {
14 | case .color(let color):
:
22 | .background(RadialGradient(gradient: gradient, center: center, startRadius: startRadius, endRadius: endRadius))
23 | case .angularGradient(let gradient, let center):
24 | self.overlay(Color.clear)
| |- error: 'overlay(_:ignoresSafeAreaEdges:)' is only available in macOS 12.0 or newer
| `- note: add 'if #available' version check
25 | .background(AngularGradient(gradient: gradient, center: center))
26 | }
/Users/admin/builder/spi-builder-workspace/Sources/FXDatePicker/Extensions/View+Ext.swift:24:26: error: 'Color' is only available in macOS 10.15 or newer
9 | import SwiftUI
10 |
11 | extension View {
| `- note: add '@available' attribute to enclosing extension
12 | @ViewBuilder func background(_ background: BackgroundStyle) -> some View {
| `- note: add '@available' attribute to enclosing instance method
13 | switch background {
14 | case .color(let color):
:
22 | .background(RadialGradient(gradient: gradient, center: center, startRadius: startRadius, endRadius: endRadius))
23 | case .angularGradient(let gradient, let center):
24 | self.overlay(Color.clear)
| |- error: 'Color' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
25 | .background(AngularGradient(gradient: gradient, center: center))
26 | }
/Users/admin/builder/spi-builder-workspace/Sources/FXDatePicker/Extensions/View+Ext.swift:24:32: error: 'clear' is only available in macOS 10.15 or newer
9 | import SwiftUI
10 |
11 | extension View {
| `- note: add '@available' attribute to enclosing extension
12 | @ViewBuilder func background(_ background: BackgroundStyle) -> some View {
| `- note: add '@available' attribute to enclosing instance method
13 | switch background {
14 | case .color(let color):
:
22 | .background(RadialGradient(gradient: gradient, center: center, startRadius: startRadius, endRadius: endRadius))
23 | case .angularGradient(let gradient, let center):
24 | self.overlay(Color.clear)
| |- error: 'clear' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
25 | .background(AngularGradient(gradient: gradient, center: center))
26 | }
/Users/admin/builder/spi-builder-workspace/Sources/FXDatePicker/Extensions/View+Ext.swift:25:18: error: 'background(_:ignoresSafeAreaEdges:)' is only available in macOS 12.0 or newer
9 | import SwiftUI
10 |
11 | extension View {
| `- note: add '@available' attribute to enclosing extension
12 | @ViewBuilder func background(_ background: BackgroundStyle) -> some View {
| `- note: add '@available' attribute to enclosing instance method
13 | switch background {
14 | case .color(let color):
:
23 | case .angularGradient(let gradient, let center):
24 | self.overlay(Color.clear)
25 | .background(AngularGradient(gradient: gradient, center: center))
| |- error: 'background(_:ignoresSafeAreaEdges:)' is only available in macOS 12.0 or newer
| `- note: add 'if #available' version check
26 | }
27 | }
/Users/admin/builder/spi-builder-workspace/Sources/FXDatePicker/Extensions/View+Ext.swift:25:29: error: 'AngularGradient' is only available in macOS 10.15 or newer
9 | import SwiftUI
10 |
11 | extension View {
| `- note: add '@available' attribute to enclosing extension
12 | @ViewBuilder func background(_ background: BackgroundStyle) -> some View {
| `- note: add '@available' attribute to enclosing instance method
13 | switch background {
14 | case .color(let color):
:
23 | case .angularGradient(let gradient, let center):
24 | self.overlay(Color.clear)
25 | .background(AngularGradient(gradient: gradient, center: center))
| |- error: 'AngularGradient' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
26 | }
27 | }
/Users/admin/builder/spi-builder-workspace/Sources/FXDatePicker/Extensions/View+Ext.swift:24:13: error: 'buildEither(second:)' is only available in macOS 10.15 or newer
9 | import SwiftUI
10 |
11 | extension View {
| `- note: add '@available' attribute to enclosing extension
12 | @ViewBuilder func background(_ background: BackgroundStyle) -> some View {
| `- note: add '@available' attribute to enclosing instance method
13 | switch background {
14 | case .color(let color):
:
22 | .background(RadialGradient(gradient: gradient, center: center, startRadius: startRadius, endRadius: endRadius))
23 | case .angularGradient(let gradient, let center):
24 | self.overlay(Color.clear)
| |- error: 'buildEither(second:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
25 | .background(AngularGradient(gradient: gradient, center: center))
26 | }
/Users/admin/builder/spi-builder-workspace/Sources/FXDatePicker/Extensions/View+Ext.swift:24:13: error: 'buildEither(second:)' is only available in macOS 10.15 or newer
9 | import SwiftUI
10 |
11 | extension View {
| `- note: add '@available' attribute to enclosing extension
12 | @ViewBuilder func background(_ background: BackgroundStyle) -> some View {
| `- note: add '@available' attribute to enclosing instance method
13 | switch background {
14 | case .color(let color):
:
22 | .background(RadialGradient(gradient: gradient, center: center, startRadius: startRadius, endRadius: endRadius))
23 | case .angularGradient(let gradient, let center):
24 | self.overlay(Color.clear)
| |- error: 'buildEither(second:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
25 | .background(AngularGradient(gradient: gradient, center: center))
26 | }
/Users/admin/builder/spi-builder-workspace/Sources/FXDatePicker/Extensions/View+Ext.swift:12:78: 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 | import SwiftUI
10 |
11 | extension View {
| `- note: add '@available' attribute to enclosing extension
12 | @ViewBuilder func background(_ background: BackgroundStyle) -> 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 | switch background {
14 | case .color(let color):
[16/16] Compiling FXDatePicker CalenderTypeModifier.swift
/Users/admin/builder/spi-builder-workspace/Sources/FXDatePicker/Extensions/View+Ext.swift:12:73: error: 'View' is only available in macOS 10.15 or newer
9 | import SwiftUI
10 |
11 | extension View {
| `- note: add '@available' attribute to enclosing extension
12 | @ViewBuilder func background(_ background: BackgroundStyle) -> some View {
| | `- error: 'View' is only available in macOS 10.15 or newer
| `- note: add '@available' attribute to enclosing instance method
13 | switch background {
14 | case .color(let color):
/Users/admin/builder/spi-builder-workspace/Sources/FXDatePicker/Extensions/View+Ext.swift:12:6: error: 'ViewBuilder' is only available in macOS 10.15 or newer
9 | import SwiftUI
10 |
11 | extension View {
| `- note: add '@available' attribute to enclosing extension
12 | @ViewBuilder func background(_ background: BackgroundStyle) -> some View {
| | `- note: add '@available' attribute to enclosing instance method
| `- error: 'ViewBuilder' is only available in macOS 10.15 or newer
13 | switch background {
14 | case .color(let color):
/Users/admin/builder/spi-builder-workspace/Sources/FXDatePicker/Extensions/View+Ext.swift:11:11: error: 'View' is only available in macOS 10.15 or newer
9 | import SwiftUI
10 |
11 | extension View {
| | `- error: 'View' is only available in macOS 10.15 or newer
| `- note: add '@available' attribute to enclosing extension
12 | @ViewBuilder func background(_ background: BackgroundStyle) -> some View {
13 | switch background {
/Users/admin/builder/spi-builder-workspace/Sources/FXDatePicker/Extensions/View+Ext.swift:15:18: error: 'overlay(_:ignoresSafeAreaEdges:)' is only available in macOS 12.0 or newer
9 | import SwiftUI
10 |
11 | extension View {
| `- note: add '@available' attribute to enclosing extension
12 | @ViewBuilder func background(_ background: BackgroundStyle) -> some View {
| `- note: add '@available' attribute to enclosing instance method
13 | switch background {
14 | case .color(let color):
15 | self.overlay(Color.clear)
| |- error: 'overlay(_:ignoresSafeAreaEdges:)' is only available in macOS 12.0 or newer
| `- note: add 'if #available' version check
16 | .background(color)
17 | case .linearGradient(let gradient, let startPoint, let endPoint):
/Users/admin/builder/spi-builder-workspace/Sources/FXDatePicker/Extensions/View+Ext.swift:15:26: error: 'Color' is only available in macOS 10.15 or newer
9 | import SwiftUI
10 |
11 | extension View {
| `- note: add '@available' attribute to enclosing extension
12 | @ViewBuilder func background(_ background: BackgroundStyle) -> some View {
| `- note: add '@available' attribute to enclosing instance method
13 | switch background {
14 | case .color(let color):
15 | self.overlay(Color.clear)
| |- error: 'Color' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
16 | .background(color)
17 | case .linearGradient(let gradient, let startPoint, let endPoint):
/Users/admin/builder/spi-builder-workspace/Sources/FXDatePicker/Extensions/View+Ext.swift:15:32: error: 'clear' is only available in macOS 10.15 or newer
9 | import SwiftUI
10 |
11 | extension View {
| `- note: add '@available' attribute to enclosing extension
12 | @ViewBuilder func background(_ background: BackgroundStyle) -> some View {
| `- note: add '@available' attribute to enclosing instance method
13 | switch background {
14 | case .color(let color):
15 | self.overlay(Color.clear)
| |- error: 'clear' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
16 | .background(color)
17 | case .linearGradient(let gradient, let startPoint, let endPoint):
/Users/admin/builder/spi-builder-workspace/Sources/FXDatePicker/Extensions/View+Ext.swift:16:18: error: 'background(_:ignoresSafeAreaEdges:)' is only available in macOS 12.0 or newer
9 | import SwiftUI
10 |
11 | extension View {
| `- note: add '@available' attribute to enclosing extension
12 | @ViewBuilder func background(_ background: BackgroundStyle) -> some View {
| `- note: add '@available' attribute to enclosing instance method
13 | switch background {
14 | case .color(let color):
15 | self.overlay(Color.clear)
16 | .background(color)
| |- error: 'background(_:ignoresSafeAreaEdges:)' is only available in macOS 12.0 or newer
| `- note: add 'if #available' version check
17 | case .linearGradient(let gradient, let startPoint, let endPoint):
18 | self.overlay(Color.clear)
/Users/admin/builder/spi-builder-workspace/Sources/FXDatePicker/Extensions/View+Ext.swift:15:13: error: 'buildEither(first:)' is only available in macOS 10.15 or newer
9 | import SwiftUI
10 |
11 | extension View {
| `- note: add '@available' attribute to enclosing extension
12 | @ViewBuilder func background(_ background: BackgroundStyle) -> some View {
| `- note: add '@available' attribute to enclosing instance method
13 | switch background {
14 | case .color(let color):
15 | self.overlay(Color.clear)
| |- error: 'buildEither(first:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
16 | .background(color)
17 | case .linearGradient(let gradient, let startPoint, let endPoint):
/Users/admin/builder/spi-builder-workspace/Sources/FXDatePicker/Extensions/View+Ext.swift:15:13: error: 'buildEither(first:)' is only available in macOS 10.15 or newer
9 | import SwiftUI
10 |
11 | extension View {
| `- note: add '@available' attribute to enclosing extension
12 | @ViewBuilder func background(_ background: BackgroundStyle) -> some View {
| `- note: add '@available' attribute to enclosing instance method
13 | switch background {
14 | case .color(let color):
15 | self.overlay(Color.clear)
| |- error: 'buildEither(first:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
16 | .background(color)
17 | case .linearGradient(let gradient, let startPoint, let endPoint):
/Users/admin/builder/spi-builder-workspace/Sources/FXDatePicker/Extensions/View+Ext.swift:18:18: error: 'overlay(_:ignoresSafeAreaEdges:)' is only available in macOS 12.0 or newer
9 | import SwiftUI
10 |
11 | extension View {
| `- note: add '@available' attribute to enclosing extension
12 | @ViewBuilder func background(_ background: BackgroundStyle) -> some View {
| `- note: add '@available' attribute to enclosing instance method
13 | switch background {
14 | case .color(let color):
:
16 | .background(color)
17 | case .linearGradient(let gradient, let startPoint, let endPoint):
18 | self.overlay(Color.clear)
| |- error: 'overlay(_:ignoresSafeAreaEdges:)' is only available in macOS 12.0 or newer
| `- note: add 'if #available' version check
19 | .background(LinearGradient(gradient: gradient, startPoint: startPoint, endPoint: endPoint))
20 | case .radialGradient(let gradient, let center, let startRadius, let endRadius):
/Users/admin/builder/spi-builder-workspace/Sources/FXDatePicker/Extensions/View+Ext.swift:18:26: error: 'Color' is only available in macOS 10.15 or newer
9 | import SwiftUI
10 |
11 | extension View {
| `- note: add '@available' attribute to enclosing extension
12 | @ViewBuilder func background(_ background: BackgroundStyle) -> some View {
| `- note: add '@available' attribute to enclosing instance method
13 | switch background {
14 | case .color(let color):
:
16 | .background(color)
17 | case .linearGradient(let gradient, let startPoint, let endPoint):
18 | self.overlay(Color.clear)
| |- error: 'Color' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
19 | .background(LinearGradient(gradient: gradient, startPoint: startPoint, endPoint: endPoint))
20 | case .radialGradient(let gradient, let center, let startRadius, let endRadius):
/Users/admin/builder/spi-builder-workspace/Sources/FXDatePicker/Extensions/View+Ext.swift:18:32: error: 'clear' is only available in macOS 10.15 or newer
9 | import SwiftUI
10 |
11 | extension View {
| `- note: add '@available' attribute to enclosing extension
12 | @ViewBuilder func background(_ background: BackgroundStyle) -> some View {
| `- note: add '@available' attribute to enclosing instance method
13 | switch background {
14 | case .color(let color):
:
16 | .background(color)
17 | case .linearGradient(let gradient, let startPoint, let endPoint):
18 | self.overlay(Color.clear)
| |- error: 'clear' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
19 | .background(LinearGradient(gradient: gradient, startPoint: startPoint, endPoint: endPoint))
20 | case .radialGradient(let gradient, let center, let startRadius, let endRadius):
/Users/admin/builder/spi-builder-workspace/Sources/FXDatePicker/Extensions/View+Ext.swift:19:18: error: 'background(_:ignoresSafeAreaEdges:)' is only available in macOS 12.0 or newer
9 | import SwiftUI
10 |
11 | extension View {
| `- note: add '@available' attribute to enclosing extension
12 | @ViewBuilder func background(_ background: BackgroundStyle) -> some View {
| `- note: add '@available' attribute to enclosing instance method
13 | switch background {
14 | case .color(let color):
:
17 | case .linearGradient(let gradient, let startPoint, let endPoint):
18 | self.overlay(Color.clear)
19 | .background(LinearGradient(gradient: gradient, startPoint: startPoint, endPoint: endPoint))
| |- error: 'background(_:ignoresSafeAreaEdges:)' is only available in macOS 12.0 or newer
| `- note: add 'if #available' version check
20 | case .radialGradient(let gradient, let center, let startRadius, let endRadius):
21 | self.overlay(Color.clear)
/Users/admin/builder/spi-builder-workspace/Sources/FXDatePicker/Extensions/View+Ext.swift:19:29: error: 'LinearGradient' is only available in macOS 10.15 or newer
9 | import SwiftUI
10 |
11 | extension View {
| `- note: add '@available' attribute to enclosing extension
12 | @ViewBuilder func background(_ background: BackgroundStyle) -> some View {
| `- note: add '@available' attribute to enclosing instance method
13 | switch background {
14 | case .color(let color):
:
17 | case .linearGradient(let gradient, let startPoint, let endPoint):
18 | self.overlay(Color.clear)
19 | .background(LinearGradient(gradient: gradient, startPoint: startPoint, endPoint: endPoint))
| |- error: 'LinearGradient' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
20 | case .radialGradient(let gradient, let center, let startRadius, let endRadius):
21 | self.overlay(Color.clear)
/Users/admin/builder/spi-builder-workspace/Sources/FXDatePicker/Extensions/View+Ext.swift:18:13: error: 'buildEither(first:)' is only available in macOS 10.15 or newer
9 | import SwiftUI
10 |
11 | extension View {
| `- note: add '@available' attribute to enclosing extension
12 | @ViewBuilder func background(_ background: BackgroundStyle) -> some View {
| `- note: add '@available' attribute to enclosing instance method
13 | switch background {
14 | case .color(let color):
:
16 | .background(color)
17 | case .linearGradient(let gradient, let startPoint, let endPoint):
18 | self.overlay(Color.clear)
| |- error: 'buildEither(first:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
19 | .background(LinearGradient(gradient: gradient, startPoint: startPoint, endPoint: endPoint))
20 | case .radialGradient(let gradient, let center, let startRadius, let endRadius):
/Users/admin/builder/spi-builder-workspace/Sources/FXDatePicker/Extensions/View+Ext.swift:18:13: error: 'buildEither(second:)' is only available in macOS 10.15 or newer
9 | import SwiftUI
10 |
11 | extension View {
| `- note: add '@available' attribute to enclosing extension
12 | @ViewBuilder func background(_ background: BackgroundStyle) -> some View {
| `- note: add '@available' attribute to enclosing instance method
13 | switch background {
14 | case .color(let color):
:
16 | .background(color)
17 | case .linearGradient(let gradient, let startPoint, let endPoint):
18 | self.overlay(Color.clear)
| |- error: 'buildEither(second:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
19 | .background(LinearGradient(gradient: gradient, startPoint: startPoint, endPoint: endPoint))
20 | case .radialGradient(let gradient, let center, let startRadius, let endRadius):
/Users/admin/builder/spi-builder-workspace/Sources/FXDatePicker/Extensions/View+Ext.swift:21:18: error: 'overlay(_:ignoresSafeAreaEdges:)' is only available in macOS 12.0 or newer
9 | import SwiftUI
10 |
11 | extension View {
| `- note: add '@available' attribute to enclosing extension
12 | @ViewBuilder func background(_ background: BackgroundStyle) -> some View {
| `- note: add '@available' attribute to enclosing instance method
13 | switch background {
14 | case .color(let color):
:
19 | .background(LinearGradient(gradient: gradient, startPoint: startPoint, endPoint: endPoint))
20 | case .radialGradient(let gradient, let center, let startRadius, let endRadius):
21 | self.overlay(Color.clear)
| |- error: 'overlay(_:ignoresSafeAreaEdges:)' is only available in macOS 12.0 or newer
| `- note: add 'if #available' version check
22 | .background(RadialGradient(gradient: gradient, center: center, startRadius: startRadius, endRadius: endRadius))
23 | case .angularGradient(let gradient, let center):
/Users/admin/builder/spi-builder-workspace/Sources/FXDatePicker/Extensions/View+Ext.swift:21:26: error: 'Color' is only available in macOS 10.15 or newer
9 | import SwiftUI
10 |
11 | extension View {
| `- note: add '@available' attribute to enclosing extension
12 | @ViewBuilder func background(_ background: BackgroundStyle) -> some View {
| `- note: add '@available' attribute to enclosing instance method
13 | switch background {
14 | case .color(let color):
:
19 | .background(LinearGradient(gradient: gradient, startPoint: startPoint, endPoint: endPoint))
20 | case .radialGradient(let gradient, let center, let startRadius, let endRadius):
21 | self.overlay(Color.clear)
| |- error: 'Color' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
22 | .background(RadialGradient(gradient: gradient, center: center, startRadius: startRadius, endRadius: endRadius))
23 | case .angularGradient(let gradient, let center):
/Users/admin/builder/spi-builder-workspace/Sources/FXDatePicker/Extensions/View+Ext.swift:21:32: error: 'clear' is only available in macOS 10.15 or newer
9 | import SwiftUI
10 |
11 | extension View {
| `- note: add '@available' attribute to enclosing extension
12 | @ViewBuilder func background(_ background: BackgroundStyle) -> some View {
| `- note: add '@available' attribute to enclosing instance method
13 | switch background {
14 | case .color(let color):
:
19 | .background(LinearGradient(gradient: gradient, startPoint: startPoint, endPoint: endPoint))
20 | case .radialGradient(let gradient, let center, let startRadius, let endRadius):
21 | self.overlay(Color.clear)
| |- error: 'clear' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
22 | .background(RadialGradient(gradient: gradient, center: center, startRadius: startRadius, endRadius: endRadius))
23 | case .angularGradient(let gradient, let center):
/Users/admin/builder/spi-builder-workspace/Sources/FXDatePicker/Extensions/View+Ext.swift:22:18: error: 'background(_:ignoresSafeAreaEdges:)' is only available in macOS 12.0 or newer
9 | import SwiftUI
10 |
11 | extension View {
| `- note: add '@available' attribute to enclosing extension
12 | @ViewBuilder func background(_ background: BackgroundStyle) -> some View {
| `- note: add '@available' attribute to enclosing instance method
13 | switch background {
14 | case .color(let color):
:
20 | case .radialGradient(let gradient, let center, let startRadius, let endRadius):
21 | self.overlay(Color.clear)
22 | .background(RadialGradient(gradient: gradient, center: center, startRadius: startRadius, endRadius: endRadius))
| |- error: 'background(_:ignoresSafeAreaEdges:)' is only available in macOS 12.0 or newer
| `- note: add 'if #available' version check
23 | case .angularGradient(let gradient, let center):
24 | self.overlay(Color.clear)
/Users/admin/builder/spi-builder-workspace/Sources/FXDatePicker/Extensions/View+Ext.swift:22:29: error: 'RadialGradient' is only available in macOS 10.15 or newer
9 | import SwiftUI
10 |
11 | extension View {
| `- note: add '@available' attribute to enclosing extension
12 | @ViewBuilder func background(_ background: BackgroundStyle) -> some View {
| `- note: add '@available' attribute to enclosing instance method
13 | switch background {
14 | case .color(let color):
:
20 | case .radialGradient(let gradient, let center, let startRadius, let endRadius):
21 | self.overlay(Color.clear)
22 | .background(RadialGradient(gradient: gradient, center: center, startRadius: startRadius, endRadius: endRadius))
| |- error: 'RadialGradient' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
23 | case .angularGradient(let gradient, let center):
24 | self.overlay(Color.clear)
/Users/admin/builder/spi-builder-workspace/Sources/FXDatePicker/Extensions/View+Ext.swift:21:13: error: 'buildEither(second:)' is only available in macOS 10.15 or newer
9 | import SwiftUI
10 |
11 | extension View {
| `- note: add '@available' attribute to enclosing extension
12 | @ViewBuilder func background(_ background: BackgroundStyle) -> some View {
| `- note: add '@available' attribute to enclosing instance method
13 | switch background {
14 | case .color(let color):
:
19 | .background(LinearGradient(gradient: gradient, startPoint: startPoint, endPoint: endPoint))
20 | case .radialGradient(let gradient, let center, let startRadius, let endRadius):
21 | self.overlay(Color.clear)
| |- error: 'buildEither(second:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
22 | .background(RadialGradient(gradient: gradient, center: center, startRadius: startRadius, endRadius: endRadius))
23 | case .angularGradient(let gradient, let center):
/Users/admin/builder/spi-builder-workspace/Sources/FXDatePicker/Extensions/View+Ext.swift:21:13: error: 'buildEither(first:)' is only available in macOS 10.15 or newer
9 | import SwiftUI
10 |
11 | extension View {
| `- note: add '@available' attribute to enclosing extension
12 | @ViewBuilder func background(_ background: BackgroundStyle) -> some View {
| `- note: add '@available' attribute to enclosing instance method
13 | switch background {
14 | case .color(let color):
:
19 | .background(LinearGradient(gradient: gradient, startPoint: startPoint, endPoint: endPoint))
20 | case .radialGradient(let gradient, let center, let startRadius, let endRadius):
21 | self.overlay(Color.clear)
| |- error: 'buildEither(first:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
22 | .background(RadialGradient(gradient: gradient, center: center, startRadius: startRadius, endRadius: endRadius))
23 | case .angularGradient(let gradient, let center):
/Users/admin/builder/spi-builder-workspace/Sources/FXDatePicker/Extensions/View+Ext.swift:24:18: error: 'overlay(_:ignoresSafeAreaEdges:)' is only available in macOS 12.0 or newer
9 | import SwiftUI
10 |
11 | extension View {
| `- note: add '@available' attribute to enclosing extension
12 | @ViewBuilder func background(_ background: BackgroundStyle) -> some View {
| `- note: add '@available' attribute to enclosing instance method
13 | switch background {
14 | case .color(let color):
:
22 | .background(RadialGradient(gradient: gradient, center: center, startRadius: startRadius, endRadius: endRadius))
23 | case .angularGradient(let gradient, let center):
24 | self.overlay(Color.clear)
| |- error: 'overlay(_:ignoresSafeAreaEdges:)' is only available in macOS 12.0 or newer
| `- note: add 'if #available' version check
25 | .background(AngularGradient(gradient: gradient, center: center))
26 | }
/Users/admin/builder/spi-builder-workspace/Sources/FXDatePicker/Extensions/View+Ext.swift:24:26: error: 'Color' is only available in macOS 10.15 or newer
9 | import SwiftUI
10 |
11 | extension View {
| `- note: add '@available' attribute to enclosing extension
12 | @ViewBuilder func background(_ background: BackgroundStyle) -> some View {
| `- note: add '@available' attribute to enclosing instance method
13 | switch background {
14 | case .color(let color):
:
22 | .background(RadialGradient(gradient: gradient, center: center, startRadius: startRadius, endRadius: endRadius))
23 | case .angularGradient(let gradient, let center):
24 | self.overlay(Color.clear)
| |- error: 'Color' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
25 | .background(AngularGradient(gradient: gradient, center: center))
26 | }
/Users/admin/builder/spi-builder-workspace/Sources/FXDatePicker/Extensions/View+Ext.swift:24:32: error: 'clear' is only available in macOS 10.15 or newer
9 | import SwiftUI
10 |
11 | extension View {
| `- note: add '@available' attribute to enclosing extension
12 | @ViewBuilder func background(_ background: BackgroundStyle) -> some View {
| `- note: add '@available' attribute to enclosing instance method
13 | switch background {
14 | case .color(let color):
:
22 | .background(RadialGradient(gradient: gradient, center: center, startRadius: startRadius, endRadius: endRadius))
23 | case .angularGradient(let gradient, let center):
24 | self.overlay(Color.clear)
| |- error: 'clear' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
25 | .background(AngularGradient(gradient: gradient, center: center))
26 | }
/Users/admin/builder/spi-builder-workspace/Sources/FXDatePicker/Extensions/View+Ext.swift:25:18: error: 'background(_:ignoresSafeAreaEdges:)' is only available in macOS 12.0 or newer
9 | import SwiftUI
10 |
11 | extension View {
| `- note: add '@available' attribute to enclosing extension
12 | @ViewBuilder func background(_ background: BackgroundStyle) -> some View {
| `- note: add '@available' attribute to enclosing instance method
13 | switch background {
14 | case .color(let color):
:
23 | case .angularGradient(let gradient, let center):
24 | self.overlay(Color.clear)
25 | .background(AngularGradient(gradient: gradient, center: center))
| |- error: 'background(_:ignoresSafeAreaEdges:)' is only available in macOS 12.0 or newer
| `- note: add 'if #available' version check
26 | }
27 | }
/Users/admin/builder/spi-builder-workspace/Sources/FXDatePicker/Extensions/View+Ext.swift:25:29: error: 'AngularGradient' is only available in macOS 10.15 or newer
9 | import SwiftUI
10 |
11 | extension View {
| `- note: add '@available' attribute to enclosing extension
12 | @ViewBuilder func background(_ background: BackgroundStyle) -> some View {
| `- note: add '@available' attribute to enclosing instance method
13 | switch background {
14 | case .color(let color):
:
23 | case .angularGradient(let gradient, let center):
24 | self.overlay(Color.clear)
25 | .background(AngularGradient(gradient: gradient, center: center))
| |- error: 'AngularGradient' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
26 | }
27 | }
/Users/admin/builder/spi-builder-workspace/Sources/FXDatePicker/Extensions/View+Ext.swift:24:13: error: 'buildEither(second:)' is only available in macOS 10.15 or newer
9 | import SwiftUI
10 |
11 | extension View {
| `- note: add '@available' attribute to enclosing extension
12 | @ViewBuilder func background(_ background: BackgroundStyle) -> some View {
| `- note: add '@available' attribute to enclosing instance method
13 | switch background {
14 | case .color(let color):
:
22 | .background(RadialGradient(gradient: gradient, center: center, startRadius: startRadius, endRadius: endRadius))
23 | case .angularGradient(let gradient, let center):
24 | self.overlay(Color.clear)
| |- error: 'buildEither(second:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
25 | .background(AngularGradient(gradient: gradient, center: center))
26 | }
/Users/admin/builder/spi-builder-workspace/Sources/FXDatePicker/Extensions/View+Ext.swift:24:13: error: 'buildEither(second:)' is only available in macOS 10.15 or newer
9 | import SwiftUI
10 |
11 | extension View {
| `- note: add '@available' attribute to enclosing extension
12 | @ViewBuilder func background(_ background: BackgroundStyle) -> some View {
| `- note: add '@available' attribute to enclosing instance method
13 | switch background {
14 | case .color(let color):
:
22 | .background(RadialGradient(gradient: gradient, center: center, startRadius: startRadius, endRadius: endRadius))
23 | case .angularGradient(let gradient, let center):
24 | self.overlay(Color.clear)
| |- error: 'buildEither(second:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
25 | .background(AngularGradient(gradient: gradient, center: center))
26 | }
/Users/admin/builder/spi-builder-workspace/Sources/FXDatePicker/Extensions/View+Ext.swift:12:78: 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 | import SwiftUI
10 |
11 | extension View {
| `- note: add '@available' attribute to enclosing extension
12 | @ViewBuilder func background(_ background: BackgroundStyle) -> 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 | switch background {
14 | case .color(let color):
[17/17] Compiling FXDatePicker SwipeView.swift
/Users/admin/builder/spi-builder-workspace/Sources/FXDatePicker/Views/SwipeView.swift:16:6: error: 'Binding' is only available in macOS 10.15 or newer
9 | import SwiftUI
10 |
11 | internal struct SwipeView<Content: View>: View {
| `- note: add '@available' attribute to enclosing generic struct
12 | let content: () -> Content
13 | var isDisable: Bool
14 | var calendar: Calendar
15 |
16 | @Binding var displayedMonth: Date
| `- error: 'Binding' is only available in macOS 10.15 or newer
17 | @Binding var dateRange: [Date]
18 | @Binding var selectedIndex: Int
/Users/admin/builder/spi-builder-workspace/Sources/FXDatePicker/Views/SwipeView.swift:17:6: error: 'Binding' is only available in macOS 10.15 or newer
9 | import SwiftUI
10 |
11 | internal struct SwipeView<Content: View>: View {
| `- note: add '@available' attribute to enclosing generic struct
12 | let content: () -> Content
13 | var isDisable: Bool
:
15 |
16 | @Binding var displayedMonth: Date
17 | @Binding var dateRange: [Date]
| `- error: 'Binding' is only available in macOS 10.15 or newer
18 | @Binding var selectedIndex: Int
19 |
/Users/admin/builder/spi-builder-workspace/Sources/FXDatePicker/Views/SwipeView.swift:18:6: error: 'Binding' is only available in macOS 10.15 or newer
9 | import SwiftUI
10 |
11 | internal struct SwipeView<Content: View>: View {
| `- note: add '@available' attribute to enclosing generic struct
12 | let content: () -> Content
13 | var isDisable: Bool
:
16 | @Binding var displayedMonth: Date
17 | @Binding var dateRange: [Date]
18 | @Binding var selectedIndex: Int
| `- error: 'Binding' is only available in macOS 10.15 or newer
19 |
20 | init(dateRange: Binding<[Date]> ,displayedMonth: Binding<Date>, selectedIndex: Binding<Int> , calendar: Calendar, isDisable: Bool, @ViewBuilder content: @escaping () -> Content) {
/Users/admin/builder/spi-builder-workspace/Sources/FXDatePicker/Views/SwipeView.swift:20:21: error: 'Binding' is only available in macOS 10.15 or newer
9 | import SwiftUI
10 |
11 | internal struct SwipeView<Content: View>: View {
| `- note: add '@available' attribute to enclosing generic struct
12 | let content: () -> Content
13 | var isDisable: Bool
:
18 | @Binding var selectedIndex: Int
19 |
20 | init(dateRange: Binding<[Date]> ,displayedMonth: Binding<Date>, selectedIndex: Binding<Int> , calendar: Calendar, isDisable: Bool, @ViewBuilder content: @escaping () -> Content) {
| | `- error: 'Binding' is only available in macOS 10.15 or newer
| `- note: add '@available' attribute to enclosing initializer
21 | self._dateRange = dateRange
22 | self._displayedMonth = displayedMonth
/Users/admin/builder/spi-builder-workspace/Sources/FXDatePicker/Views/SwipeView.swift:20:54: error: 'Binding' is only available in macOS 10.15 or newer
9 | import SwiftUI
10 |
11 | internal struct SwipeView<Content: View>: View {
| `- note: add '@available' attribute to enclosing generic struct
12 | let content: () -> Content
13 | var isDisable: Bool
:
18 | @Binding var selectedIndex: Int
19 |
20 | init(dateRange: Binding<[Date]> ,displayedMonth: Binding<Date>, selectedIndex: Binding<Int> , calendar: Calendar, isDisable: Bool, @ViewBuilder content: @escaping () -> Content) {
| | `- error: 'Binding' is only available in macOS 10.15 or newer
| `- note: add '@available' attribute to enclosing initializer
21 | self._dateRange = dateRange
22 | self._displayedMonth = displayedMonth
/Users/admin/builder/spi-builder-workspace/Sources/FXDatePicker/Views/SwipeView.swift:20:84: error: 'Binding' is only available in macOS 10.15 or newer
9 | import SwiftUI
10 |
11 | internal struct SwipeView<Content: View>: View {
| `- note: add '@available' attribute to enclosing generic struct
12 | let content: () -> Content
13 | var isDisable: Bool
:
18 | @Binding var selectedIndex: Int
19 |
20 | init(dateRange: Binding<[Date]> ,displayedMonth: Binding<Date>, selectedIndex: Binding<Int> , calendar: Calendar, isDisable: Bool, @ViewBuilder content: @escaping () -> Content) {
| | `- error: 'Binding' is only available in macOS 10.15 or newer
| `- note: add '@available' attribute to enclosing initializer
21 | self._dateRange = dateRange
22 | self._displayedMonth = displayedMonth
/Users/admin/builder/spi-builder-workspace/Sources/FXDatePicker/Views/SwipeView.swift:20:137: error: 'ViewBuilder' is only available in macOS 10.15 or newer
9 | import SwiftUI
10 |
11 | internal struct SwipeView<Content: View>: View {
| `- note: add '@available' attribute to enclosing generic struct
12 | let content: () -> Content
13 | var isDisable: Bool
:
18 | @Binding var selectedIndex: Int
19 |
20 | init(dateRange: Binding<[Date]> ,displayedMonth: Binding<Date>, selectedIndex: Binding<Int> , calendar: Calendar, isDisable: Bool, @ViewBuilder content: @escaping () -> Content) {
| | `- error: 'ViewBuilder' is only available in macOS 10.15 or newer
| `- note: add '@available' attribute to enclosing initializer
21 | self._dateRange = dateRange
22 | self._displayedMonth = displayedMonth
/Users/admin/builder/spi-builder-workspace/Sources/FXDatePicker/Views/SwipeView.swift:30:20: error: 'View' is only available in macOS 10.15 or newer
9 | import SwiftUI
10 |
11 | internal struct SwipeView<Content: View>: View {
| `- note: add '@available' attribute to enclosing generic struct
12 | let content: () -> Content
13 | var isDisable: Bool
:
28 | }
29 |
30 | var body: some View {
| | `- error: 'View' is only available in macOS 10.15 or newer
| `- note: add '@available' attribute to enclosing property
31 | Group {
32 | if isDisable == false {
/Users/admin/builder/spi-builder-workspace/Sources/FXDatePicker/Views/SwipeView.swift:11:36: error: 'View' is only available in macOS 10.15 or newer
9 | import SwiftUI
10 |
11 | internal struct SwipeView<Content: View>: View {
| | `- error: 'View' is only available in macOS 10.15 or newer
| `- note: add '@available' attribute to enclosing generic struct
12 | let content: () -> Content
13 | var isDisable: Bool
/Users/admin/builder/spi-builder-workspace/Sources/FXDatePicker/Views/SwipeView.swift:31:9: warning: conformance of 'Group<Content>' to 'View' is only available in macOS 10.15 or newer; this is an error in the Swift 6 language mode
9 | import SwiftUI
10 |
11 | internal struct SwipeView<Content: View>: View {
| `- note: add '@available' attribute to enclosing generic struct
12 | let content: () -> Content
13 | var isDisable: Bool
:
28 | }
29 |
30 | var body: some View {
| `- note: add '@available' attribute to enclosing property
31 | Group {
| |- warning: conformance of 'Group<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
32 | if isDisable == false {
33 | TabView(selection: $selectedIndex) {
/Users/admin/builder/spi-builder-workspace/Sources/FXDatePicker/Views/SwipeView.swift:31:9: error: 'Group' is only available in macOS 10.15 or newer
9 | import SwiftUI
10 |
11 | internal struct SwipeView<Content: View>: View {
| `- note: add '@available' attribute to enclosing generic struct
12 | let content: () -> Content
13 | var isDisable: Bool
:
28 | }
29 |
30 | var body: some View {
| `- note: add '@available' attribute to enclosing property
31 | Group {
| |- error: 'Group' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
32 | if isDisable == false {
33 | TabView(selection: $selectedIndex) {
/Users/admin/builder/spi-builder-workspace/Sources/FXDatePicker/Views/SwipeView.swift:31:9: error: 'init(content:)' is only available in macOS 10.15 or newer
9 | import SwiftUI
10 |
11 | internal struct SwipeView<Content: View>: View {
| `- note: add '@available' attribute to enclosing generic struct
12 | let content: () -> Content
13 | var isDisable: Bool
:
28 | }
29 |
30 | var body: some View {
| `- note: add '@available' attribute to enclosing property
31 | Group {
| |- error: 'init(content:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
32 | if isDisable == false {
33 | TabView(selection: $selectedIndex) {
/Users/admin/builder/spi-builder-workspace/Sources/FXDatePicker/Views/SwipeView.swift:33:17: error: 'TabView' is only available in macOS 10.15 or newer
9 | import SwiftUI
10 |
11 | internal struct SwipeView<Content: View>: View {
| `- note: add '@available' attribute to enclosing generic struct
12 | let content: () -> Content
13 | var isDisable: Bool
:
28 | }
29 |
30 | var body: some View {
| `- note: add '@available' attribute to enclosing property
31 | Group {
32 | if isDisable == false {
33 | TabView(selection: $selectedIndex) {
| |- error: 'TabView' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
34 | content()
35 | }
/Users/admin/builder/spi-builder-workspace/Sources/FXDatePicker/Views/SwipeView.swift:36:18: error: 'tabViewStyle' is only available in macOS 11.0 or newer
9 | import SwiftUI
10 |
11 | internal struct SwipeView<Content: View>: View {
| `- note: add '@available' attribute to enclosing generic struct
12 | let content: () -> Content
13 | var isDisable: Bool
:
28 | }
29 |
30 | var body: some View {
| `- note: add '@available' attribute to enclosing property
31 | Group {
32 | if isDisable == false {
:
34 | content()
35 | }
36 | .tabViewStyle(.page(indexDisplayMode: .never))
| |- error: 'tabViewStyle' is only available in macOS 11.0 or newer
| `- note: add 'if #available' version check
37 | .onAppear {
38 | let selectedDate = calendar.startOfDay(for: Date())
/Users/admin/builder/spi-builder-workspace/Sources/FXDatePicker/Views/SwipeView.swift:36:32: error: 'page(indexDisplayMode:)' is unavailable in macOS
34 | content()
35 | }
36 | .tabViewStyle(.page(indexDisplayMode: .never))
| `- error: 'page(indexDisplayMode:)' is unavailable in macOS
37 | .onAppear {
38 | let selectedDate = calendar.startOfDay(for: Date())
SwiftUI.TabViewStyle.page:2:47: note: 'page(indexDisplayMode:)' has been explicitly marked unavailable here
1 | protocol TabViewStyle {
2 | @MainActor @preconcurrency public static func page(indexDisplayMode: PageTabViewStyle.IndexDisplayMode) -> PageTabViewStyle}
| `- note: 'page(indexDisplayMode:)' has been explicitly marked unavailable here
3 |
/Users/admin/builder/spi-builder-workspace/Sources/FXDatePicker/Views/SwipeView.swift:37:18: error: 'onAppear(perform:)' is only available in macOS 10.15 or newer
9 | import SwiftUI
10 |
11 | internal struct SwipeView<Content: View>: View {
| `- note: add '@available' attribute to enclosing generic struct
12 | let content: () -> Content
13 | var isDisable: Bool
:
28 | }
29 |
30 | var body: some View {
| `- note: add '@available' attribute to enclosing property
31 | Group {
32 | if isDisable == false {
:
35 | }
36 | .tabViewStyle(.page(indexDisplayMode: .never))
37 | .onAppear {
| |- error: 'onAppear(perform:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
38 | let selectedDate = calendar.startOfDay(for: Date())
39 | print("selectedDate: \(selectedDate)")
/Users/admin/builder/spi-builder-workspace/Sources/FXDatePicker/Views/SwipeView.swift:40:21: error: setter for 'selectedIndex' is only available in macOS 10.15 or newer
9 | import SwiftUI
10 |
11 | internal struct SwipeView<Content: View>: View {
| `- note: add '@available' attribute to enclosing generic struct
12 | let content: () -> Content
13 | var isDisable: Bool
:
28 | }
29 |
30 | var body: some View {
| `- note: add '@available' attribute to enclosing property
31 | Group {
32 | if isDisable == false {
:
38 | let selectedDate = calendar.startOfDay(for: Date())
39 | print("selectedDate: \(selectedDate)")
40 | selectedIndex = calendar.findCurrentDateIndex(dateRange: dateRange, selectedDate: selectedDate)
| |- error: setter for 'selectedIndex' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
41 | }
42 | .onChange(of: selectedIndex) { newValue in
/Users/admin/builder/spi-builder-workspace/Sources/FXDatePicker/Views/SwipeView.swift:42:18: error: 'onChange(of:perform:)' is only available in macOS 11.0 or newer
9 | import SwiftUI
10 |
11 | internal struct SwipeView<Content: View>: View {
| `- note: add '@available' attribute to enclosing generic struct
12 | let content: () -> Content
13 | var isDisable: Bool
:
28 | }
29 |
30 | var body: some View {
| `- note: add '@available' attribute to enclosing property
31 | Group {
32 | if isDisable == false {
:
40 | selectedIndex = calendar.findCurrentDateIndex(dateRange: dateRange, selectedDate: selectedDate)
41 | }
42 | .onChange(of: selectedIndex) { newValue in
| |- error: 'onChange(of:perform:)' is only available in macOS 11.0 or newer
| `- note: add 'if #available' version check
43 | displayedMonth = dateRange[newValue]
44 | }
/Users/admin/builder/spi-builder-workspace/Sources/FXDatePicker/Views/SwipeView.swift:43:21: error: setter for 'displayedMonth' is only available in macOS 10.15 or newer
9 | import SwiftUI
10 |
11 | internal struct SwipeView<Content: View>: View {
| `- note: add '@available' attribute to enclosing generic struct
12 | let content: () -> Content
13 | var isDisable: Bool
:
28 | }
29 |
30 | var body: some View {
| `- note: add '@available' attribute to enclosing property
31 | Group {
32 | if isDisable == false {
:
41 | }
42 | .onChange(of: selectedIndex) { newValue in
43 | displayedMonth = dateRange[newValue]
| |- error: setter for 'displayedMonth' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
44 | }
45 | } else {
/Users/admin/builder/spi-builder-workspace/Sources/FXDatePicker/Views/SwipeView.swift:32:35: error: 'buildEither(first:)' is only available in macOS 10.15 or newer
9 | import SwiftUI
10 |
11 | internal struct SwipeView<Content: View>: View {
| `- note: add '@available' attribute to enclosing generic struct
12 | let content: () -> Content
13 | var isDisable: Bool
:
28 | }
29 |
30 | var body: some View {
| `- note: add '@available' attribute to enclosing property
31 | Group {
32 | if isDisable == false {
| |- error: 'buildEither(first:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
33 | TabView(selection: $selectedIndex) {
34 | content()
/Users/admin/builder/spi-builder-workspace/Sources/FXDatePicker/Views/SwipeView.swift:45:20: error: 'buildEither(second:)' is only available in macOS 10.15 or newer
9 | import SwiftUI
10 |
11 | internal struct SwipeView<Content: View>: View {
| `- note: add '@available' attribute to enclosing generic struct
12 | let content: () -> Content
13 | var isDisable: Bool
:
28 | }
29 |
30 | var body: some View {
| `- note: add '@available' attribute to enclosing property
31 | Group {
32 | if isDisable == false {
:
43 | displayedMonth = dateRange[newValue]
44 | }
45 | } else {
| |- error: 'buildEither(second:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
46 | content()
47 | }
/Users/admin/builder/spi-builder-workspace/Sources/FXDatePicker/Views/SwipeView.swift:31:15: warning: conformance of '_ConditionalContent<TrueContent, FalseContent>' to 'View' is only available in macOS 10.15 or newer; this is an error in the Swift 6 language mode
9 | import SwiftUI
10 |
11 | internal struct SwipeView<Content: View>: View {
| `- note: add '@available' attribute to enclosing generic struct
12 | let content: () -> Content
13 | var isDisable: Bool
:
28 | }
29 |
30 | var body: some View {
| `- note: add '@available' attribute to enclosing property
31 | Group {
| |- warning: conformance of '_ConditionalContent<TrueContent, FalseContent>' to 'View' is only available in macOS 10.15 or newer; this is an error in the Swift 6 language mode
| `- note: add 'if #available' version check
32 | if isDisable == false {
33 | TabView(selection: $selectedIndex) {
/Users/admin/builder/spi-builder-workspace/Sources/FXDatePicker/Views/SwipeView.swift:30:25: warning: conformance of 'Group<Content>' to 'View' is only available in macOS 10.15 or newer; this is an error in the Swift 6 language mode
9 | import SwiftUI
10 |
11 | internal struct SwipeView<Content: View>: View {
| `- note: add '@available' attribute to enclosing generic struct
12 | let content: () -> Content
13 | var isDisable: Bool
:
28 | }
29 |
30 | var body: some View {
| | |- warning: conformance of 'Group<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
| `- note: add '@available' attribute to enclosing property
31 | Group {
32 | if isDisable == false {
BUILD FAILURE 6.3 macosSpm