Build Information
Failed to build FXDatePicker, reference 1.2.1 (1ea623
), with Swift 6.0 for macOS (SPM) on 15 Sep 2024 05:28:20 UTC.
Build Command
env DEVELOPER_DIR=/Applications/Xcode-16.0.0-Release.Candidate.app xcrun swift build --arch arm64 -Xswiftc -Xfrontend -Xswiftc -stats-output-dir -Xswiftc -Xfrontend -Xswiftc .stats -Xswiftc -strict-concurrency=complete
Build Log
62 | }
63 |
64 | extension DayView {
| `- note: add @available attribute to enclosing extension
65 |
66 | @ViewBuilder func specialDateImage(_ specialDate: SpecialDate) -> some View {
:
79 | }
80 |
81 | private func calculateTextColor() -> Color {
| | `- error: 'Color' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing instance method
82 | if !isInRange {
83 | // Gray out the day if it's not in range
/Users/admin/builder/spi-builder-workspace/Sources/FXDatePicker/Views/FXBackgroundView.swift:14:20: error: 'View' is only available in macOS 10.15 or newer
9 | import SwiftUI
10 |
11 | internal struct FXBackgroundView: View {
| `- note: add @available attribute to enclosing struct
12 | let background: BackgroundStyle
13 |
14 | var body: some View {
| | `- error: 'View' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing property
15 | ZStack {
16 | switch background {
/Users/admin/builder/spi-builder-workspace/Sources/FXDatePicker/Views/FXDatePickerView.swift:18:20: error: 'layoutDirection' is only available in macOS 10.15 or newer
9 | import SwiftUI
10 |
11 | public struct FXDatePickerView: View {
| `- note: add @available attribute to enclosing struct
12 | @Binding var selectedDate: Date
13 | @State private var displayedMonth: Date = Date()
:
16 | @Environment(\.datePickerTheme) private var theme
17 | private var calenderType: CalenderType = .gregorian
18 | @Environment(\.layoutDirection) private var layoutDirection
| `- error: 'layoutDirection' is only available in macOS 10.15 or newer
19 |
20 | private var hideMarkers: Bool = false
/Users/admin/builder/spi-builder-workspace/Sources/FXDatePicker/Views/FXDatePickerView.swift:12:6: error: 'Binding' is only available in macOS 10.15 or newer
9 | import SwiftUI
10 |
11 | public struct FXDatePickerView: View {
| `- note: add @available attribute to enclosing struct
12 | @Binding var selectedDate: Date
| `- error: 'Binding' is only available in macOS 10.15 or newer
13 | @State private var displayedMonth: Date = Date()
14 | var specialDates: [SpecialDate]
/Users/admin/builder/spi-builder-workspace/Sources/FXDatePicker/Views/FXDatePickerView.swift:13:6: error: 'State' is only available in macOS 10.15 or newer
9 | import SwiftUI
10 |
11 | public struct FXDatePickerView: View {
| `- note: add @available attribute to enclosing struct
12 | @Binding var selectedDate: Date
13 | @State private var displayedMonth: Date = Date()
| `- error: 'State' is only available in macOS 10.15 or newer
14 | var specialDates: [SpecialDate]
15 |
/Users/admin/builder/spi-builder-workspace/Sources/FXDatePicker/Views/FXDatePickerView.swift:16:6: error: 'Environment' is only available in macOS 10.15 or newer
9 | import SwiftUI
10 |
11 | public struct FXDatePickerView: View {
| `- note: add @available attribute to enclosing struct
12 | @Binding var selectedDate: Date
13 | @State private var displayedMonth: Date = Date()
14 | var specialDates: [SpecialDate]
15 |
16 | @Environment(\.datePickerTheme) private var theme
| `- error: 'Environment' is only available in macOS 10.15 or newer
17 | private var calenderType: CalenderType = .gregorian
18 | @Environment(\.layoutDirection) private var layoutDirection
/Users/admin/builder/spi-builder-workspace/Sources/FXDatePicker/Views/FXDatePickerView.swift:18:6: error: 'Environment' is only available in macOS 10.15 or newer
9 | import SwiftUI
10 |
11 | public struct FXDatePickerView: View {
| `- note: add @available attribute to enclosing struct
12 | @Binding var selectedDate: Date
13 | @State private var displayedMonth: Date = Date()
:
16 | @Environment(\.datePickerTheme) private var theme
17 | private var calenderType: CalenderType = .gregorian
18 | @Environment(\.layoutDirection) private var layoutDirection
| `- error: 'Environment' is only available in macOS 10.15 or newer
19 |
20 | private var hideMarkers: Bool = false
/Users/admin/builder/spi-builder-workspace/Sources/FXDatePicker/Views/FXDatePickerView.swift:24:6: error: 'State' is only available in macOS 10.15 or newer
9 | import SwiftUI
10 |
11 | public struct FXDatePickerView: View {
| `- note: add @available attribute to enclosing struct
12 | @Binding var selectedDate: Date
13 | @State private var displayedMonth: Date = Date()
:
22 | private var hideDatePicker: Bool = false
23 |
24 | @State private var dateRange: [Date] = []
| `- error: 'State' is only available in macOS 10.15 or newer
25 |
26 | @State private var openShowSelectedMonths: Bool = false
/Users/admin/builder/spi-builder-workspace/Sources/FXDatePicker/Views/FXDatePickerView.swift:26:6: error: 'State' is only available in macOS 10.15 or newer
9 | import SwiftUI
10 |
11 | public struct FXDatePickerView: View {
| `- note: add @available attribute to enclosing struct
12 | @Binding var selectedDate: Date
13 | @State private var displayedMonth: Date = Date()
:
24 | @State private var dateRange: [Date] = []
25 |
26 | @State private var openShowSelectedMonths: Bool = false
| `- error: 'State' is only available in macOS 10.15 or newer
27 |
28 | @State private var arrowRotation: Double = 0
/Users/admin/builder/spi-builder-workspace/Sources/FXDatePicker/Views/FXDatePickerView.swift:28:6: error: 'State' is only available in macOS 10.15 or newer
9 | import SwiftUI
10 |
11 | public struct FXDatePickerView: View {
| `- note: add @available attribute to enclosing struct
12 | @Binding var selectedDate: Date
13 | @State private var displayedMonth: Date = Date()
:
26 | @State private var openShowSelectedMonths: Bool = false
27 |
28 | @State private var arrowRotation: Double = 0
| `- error: 'State' is only available in macOS 10.15 or newer
29 | @State private var selectedIndex: Int = 0
30 |
/Users/admin/builder/spi-builder-workspace/Sources/FXDatePicker/Views/FXDatePickerView.swift:29:6: error: 'State' is only available in macOS 10.15 or newer
9 | import SwiftUI
10 |
11 | public struct FXDatePickerView: View {
| `- note: add @available attribute to enclosing struct
12 | @Binding var selectedDate: Date
13 | @State private var displayedMonth: Date = Date()
:
27 |
28 | @State private var arrowRotation: Double = 0
29 | @State private var selectedIndex: Int = 0
| `- error: 'State' is only available in macOS 10.15 or newer
30 |
31 | var closeRange: ClosedRange<Date> = Date()...Date()
/Users/admin/builder/spi-builder-workspace/Sources/FXDatePicker/Views/FXDatePickerView.swift:74:31: error: 'Binding' is only available in macOS 10.15 or newer
9 | import SwiftUI
10 |
11 | public struct FXDatePickerView: View {
| `- note: add @available attribute to enclosing struct
12 | @Binding var selectedDate: Date
13 | @State private var displayedMonth: Date = Date()
:
72 |
73 | // MARK:- with specialDates
74 | public init(selectedDate: Binding<Date>, specialDates: [SpecialDate]) {
| | `- error: 'Binding' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing initializer
75 | self._selectedDate = selectedDate
76 | self.specialDates = specialDates
/Users/admin/builder/spi-builder-workspace/Sources/FXDatePicker/Views/FXDatePickerView.swift:87:31: error: 'Binding' is only available in macOS 10.15 or newer
9 | import SwiftUI
10 |
11 | public struct FXDatePickerView: View {
| `- note: add @available attribute to enclosing struct
12 | @Binding var selectedDate: Date
13 | @State private var displayedMonth: Date = Date()
:
85 |
86 |
87 | public init(selectedDate: Binding<Date>, specialDates: [SpecialDate], in closeReange: ClosedRange<Date>) {
| | `- error: 'Binding' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing initializer
88 | self._selectedDate = selectedDate
89 | self.specialDates = specialDates
/Users/admin/builder/spi-builder-workspace/Sources/FXDatePicker/Views/FXDatePickerView.swift:95:31: error: 'Binding' is only available in macOS 10.15 or newer
9 | import SwiftUI
10 |
11 | public struct FXDatePickerView: View {
| `- note: add @available attribute to enclosing struct
12 | @Binding var selectedDate: Date
13 | @State private var displayedMonth: Date = Date()
:
93 | }
94 |
95 | public init(selectedDate: Binding<Date>, specialDates: [SpecialDate], in range: PartialRangeFrom<Date>) {
| | `- error: 'Binding' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing initializer
96 | self._selectedDate = selectedDate
97 | self.specialDates = specialDates
/Users/admin/builder/spi-builder-workspace/Sources/FXDatePicker/Views/FXDatePickerView.swift:107:31: error: 'Binding' is only available in macOS 10.15 or newer
9 | import SwiftUI
10 |
11 | public struct FXDatePickerView: View {
| `- note: add @available attribute to enclosing struct
12 | @Binding var selectedDate: Date
13 | @State private var displayedMonth: Date = Date()
:
105 | }
106 |
107 | public init(selectedDate: Binding<Date>, specialDates: [SpecialDate], in range: PartialRangeThrough<Date>) {
| | `- error: 'Binding' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing initializer
108 | self._selectedDate = selectedDate
109 | self.specialDates = specialDates
/Users/admin/builder/spi-builder-workspace/Sources/FXDatePicker/Views/FXDatePickerView.swift:120:31: error: 'Binding' is only available in macOS 10.15 or newer
9 | import SwiftUI
10 |
11 | public struct FXDatePickerView: View {
| `- note: add @available attribute to enclosing struct
12 | @Binding var selectedDate: Date
13 | @State private var displayedMonth: Date = Date()
:
118 |
119 | // MARK:- without specialDates
120 | public init(selectedDate: Binding<Date>) {
| | `- error: 'Binding' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing initializer
121 | self._selectedDate = selectedDate
122 | self.specialDates = []
/Users/admin/builder/spi-builder-workspace/Sources/FXDatePicker/Views/FXDatePickerView.swift:134:31: error: 'Binding' is only available in macOS 10.15 or newer
9 | import SwiftUI
10 |
11 | public struct FXDatePickerView: View {
| `- note: add @available attribute to enclosing struct
12 | @Binding var selectedDate: Date
13 | @State private var displayedMonth: Date = Date()
:
132 |
133 |
134 | public init(selectedDate: Binding<Date>, in closeReange: ClosedRange<Date>) {
| | `- error: 'Binding' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing initializer
135 | self._selectedDate = selectedDate
136 | self.specialDates = []
/Users/admin/builder/spi-builder-workspace/Sources/FXDatePicker/Views/FXDatePickerView.swift:142:31: error: 'Binding' is only available in macOS 10.15 or newer
9 | import SwiftUI
10 |
11 | public struct FXDatePickerView: View {
| `- note: add @available attribute to enclosing struct
12 | @Binding var selectedDate: Date
13 | @State private var displayedMonth: Date = Date()
:
140 | }
141 |
142 | public init(selectedDate: Binding<Date>, in range: PartialRangeFrom<Date>) {
| | `- error: 'Binding' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing initializer
143 | self._selectedDate = selectedDate
144 | self.specialDates = []
/Users/admin/builder/spi-builder-workspace/Sources/FXDatePicker/Views/FXDatePickerView.swift:156:31: error: 'Binding' is only available in macOS 10.15 or newer
9 | import SwiftUI
10 |
11 | public struct FXDatePickerView: View {
| `- note: add @available attribute to enclosing struct
12 | @Binding var selectedDate: Date
13 | @State private var displayedMonth: Date = Date()
:
154 | }
155 |
156 | public init(selectedDate: Binding<Date>, in range: PartialRangeThrough<Date>) {
| | `- error: 'Binding' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing initializer
157 | self._selectedDate = selectedDate
158 | self.specialDates = []
/Users/admin/builder/spi-builder-workspace/Sources/FXDatePicker/Views/FXDatePickerView.swift:170:27: error: 'View' is only available in macOS 10.15 or newer
9 | import SwiftUI
10 |
11 | public struct FXDatePickerView: View {
| `- note: add @available attribute to enclosing struct
12 | @Binding var selectedDate: Date
13 | @State private var displayedMonth: Date = Date()
:
168 |
169 |
170 | public var body: some View {
| | `- error: 'View' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing property
171 |
172 | VStack {
/Users/admin/builder/spi-builder-workspace/Sources/FXDatePicker/Views/FXDatePickerView.swift:339:48: error: 'View' 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 {
| | `- error: 'View' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing instance method
340 | if hideDatePicker {
341 | Text(getMonthName(from: displayedMonth))
/Users/admin/builder/spi-builder-workspace/Sources/FXDatePicker/Views/FXDatePickerView.swift:339:6: error: 'ViewBuilder' 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
| `- error: 'ViewBuilder' is only available in macOS 10.15 or newer
340 | if hideDatePicker {
341 | Text(getMonthName(from: displayedMonth))
/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/SelectMonthPickerView.swift:12:6: error: 'Environment' is only available in macOS 10.15 or newer
9 | import SwiftUI
10 |
11 | internal struct SelectMonthPickerView: View {
| `- note: add @available attribute to enclosing struct
12 | @Environment(\.datePickerTheme) private var theme
| `- error: 'Environment' is only available in macOS 10.15 or newer
13 | let calendar: Calendar
14 | let calenderType: CalenderType
/Users/admin/builder/spi-builder-workspace/Sources/FXDatePicker/Views/SelectMonthPickerView.swift:16:6: error: 'Binding' is only available in macOS 10.15 or newer
9 | import SwiftUI
10 |
11 | internal struct SelectMonthPickerView: View {
| `- note: add @available attribute to enclosing struct
12 | @Environment(\.datePickerTheme) private var theme
13 | let calendar: Calendar
14 | let calenderType: CalenderType
15 | let closeRange: ClosedRange<Date>
16 | @Binding var selectedDate: Date
| `- error: 'Binding' is only available in macOS 10.15 or newer
17 |
18 | @State private var pickerData: [[String]] = [[]]
/Users/admin/builder/spi-builder-workspace/Sources/FXDatePicker/Views/SelectMonthPickerView.swift:18:6: error: 'State' is only available in macOS 10.15 or newer
9 | import SwiftUI
10 |
11 | internal struct SelectMonthPickerView: View {
| `- note: add @available attribute to enclosing struct
12 | @Environment(\.datePickerTheme) private var theme
13 | let calendar: Calendar
:
16 | @Binding var selectedDate: Date
17 |
18 | @State private var pickerData: [[String]] = [[]]
| `- error: 'State' is only available in macOS 10.15 or newer
19 | @State private var selections: [Int] = []
20 |
/Users/admin/builder/spi-builder-workspace/Sources/FXDatePicker/Views/SelectMonthPickerView.swift:19:6: error: 'State' is only available in macOS 10.15 or newer
9 | import SwiftUI
10 |
11 | internal struct SelectMonthPickerView: View {
| `- note: add @available attribute to enclosing struct
12 | @Environment(\.datePickerTheme) private var theme
13 | let calendar: Calendar
:
17 |
18 | @State private var pickerData: [[String]] = [[]]
19 | @State private var selections: [Int] = []
| `- error: 'State' is only available in macOS 10.15 or newer
20 |
21 | private var years: [Int] {
/Users/admin/builder/spi-builder-workspace/Sources/FXDatePicker/Views/SelectMonthPickerView.swift:27:24: error: 'Binding' is only available in macOS 10.15 or newer
9 | import SwiftUI
10 |
11 | internal struct SelectMonthPickerView: View {
| `- note: add @available attribute to enclosing struct
12 | @Environment(\.datePickerTheme) private var theme
13 | let calendar: Calendar
:
25 | }
26 |
27 | init(selectedDate: Binding<Date>, calendar: Calendar, calenderType: CalenderType, closeRange: ClosedRange<Date>) {
| | `- error: 'Binding' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing initializer
28 | self.calendar = calendar
29 | self._selectedDate = selectedDate
/Users/admin/builder/spi-builder-workspace/Sources/FXDatePicker/Views/SelectMonthPickerView.swift:42:20: error: 'View' is only available in macOS 10.15 or newer
9 | import SwiftUI
10 |
11 | internal struct SelectMonthPickerView: View {
| `- note: add @available attribute to enclosing struct
12 | @Environment(\.datePickerTheme) private var theme
13 | let calendar: Calendar
:
40 | }
41 |
42 | var body: some View {
| | `- error: 'View' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing property
43 | ZStack {
44 | FXBackgroundView(background: theme.main.backgroundStyle)
/Users/admin/builder/spi-builder-workspace/Sources/FXDatePicker/Views/SelectMonthPickerView.swift:86:2: error: 'Preview(_:body:)' is only available in macOS 10.15 or newer
84 |
85 |
86 | #Preview {
| `- error: 'Preview(_:body:)' is only available in macOS 10.15 or newer
87 | SelectMonthPickerView(selectedDate: .constant(Date()), calendar: Calendar.current, calenderType: .gregorian, closeRange: Date()...Date())
88 | }
/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
[11/17] Compiling FXDatePicker ThemeColorModifier.swift
/Users/admin/builder/spi-builder-workspace/Sources/FXDatePicker/Modifiers/ThemeColorModifier.swift:13:23: warning: static property 'defaultValue' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
11 | @available(iOS 14.0, *)
12 | public struct DatePickerThemeKey: EnvironmentKey {
13 | public static var defaultValue: DatePickerTheme = DatePickerTheme()
| |- warning: static property 'defaultValue' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'defaultValue' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'defaultValue' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
14 |
15 | }
/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/17] Compiling FXDatePicker PickerView.swift
/Users/admin/builder/spi-builder-workspace/Sources/FXDatePicker/Modifiers/ThemeColorModifier.swift:13:23: warning: static property 'defaultValue' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
11 | @available(iOS 14.0, *)
12 | public struct DatePickerThemeKey: EnvironmentKey {
13 | public static var defaultValue: DatePickerTheme = DatePickerTheme()
| |- warning: static property 'defaultValue' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'defaultValue' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'defaultValue' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
14 |
15 | }
/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/17] 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):
[14/17] 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):
[15/17] 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
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
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: 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: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: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, *) {
[16/17] 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
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
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: 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: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: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, *) {
[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:5:51: note: 'page(indexDisplayMode:)' has been explicitly marked unavailable here
3 | extension TabViewStyle where Self == PageTabViewStyle {
4 | @MainActor @preconcurrency public static var page: PageTabViewStyle { get }
5 | @MainActor @preconcurrency public static func page(indexDisplayMode: PageTabViewStyle.IndexDisplayMode) -> PageTabViewStyle
| `- note: 'page(indexDisplayMode:)' has been explicitly marked unavailable here
6 | }
/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.0 macosSpm