Build Information
Failed to build FXDatePicker, reference main (1ea623
), with Swift 6.0 for macOS (SPM) on 15 Sep 2024 05:29:06 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
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 | }
[10/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, *) {
[11/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, *) {
[12/17] Compiling FXDatePicker SelectMonthPickerView.swift
/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/SelectMonthPickerView.swift:38:28: 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
:
25 | }
26 |
27 | init(selectedDate: Binding<Date>, calendar: Calendar, calenderType: CalenderType, closeRange: ClosedRange<Date>) {
| `- note: add @available attribute to enclosing initializer
28 | self.calendar = calendar
29 | self._selectedDate = selectedDate
:
36 |
37 | let initialMonths = getMonths(for: currentYear)
38 | self._pickerData = State(initialValue: [years.map { String($0) }, initialMonths])
| |- error: 'State' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
39 | self._selections = State(initialValue: [yearIndex, currentMonth])
40 | }
/Users/admin/builder/spi-builder-workspace/Sources/FXDatePicker/Views/SelectMonthPickerView.swift:39:28: 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
:
25 | }
26 |
27 | init(selectedDate: Binding<Date>, calendar: Calendar, calenderType: CalenderType, closeRange: ClosedRange<Date>) {
| `- note: add @available attribute to enclosing initializer
28 | self.calendar = calendar
29 | self._selectedDate = selectedDate
:
37 | let initialMonths = getMonths(for: currentYear)
38 | self._pickerData = State(initialValue: [years.map { String($0) }, initialMonths])
39 | self._selections = State(initialValue: [yearIndex, currentMonth])
| |- error: 'State' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
40 | }
41 |
/Users/admin/builder/spi-builder-workspace/Sources/FXDatePicker/Views/SelectMonthPickerView.swift:46:81: error: cannot find 'UIColor' in scope
44 | FXBackgroundView(background: theme.main.backgroundStyle)
45 |
46 | FXPickerView(data: $pickerData, selections: $selections, textColor: UIColor(theme.main.monthTitle))
| `- error: cannot find 'UIColor' in scope
47 | .onChange(of: selections[0]) { yearIndex in
48 | let selectedYear = years[yearIndex]
/Users/admin/builder/spi-builder-workspace/Sources/FXDatePicker/Views/SelectMonthPickerView.swift:79:13: error: setter for 'selectedDate' 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
:
70 | }
71 |
72 | func updateSelectedDate(with selections: [Int]) {
| `- note: add @available attribute to enclosing instance method
73 | var components = DateComponents()
74 | components.year = years[selections[0]]
:
77 |
78 | if let updatedDate = calendar.date(from: components), closeRange.contains(updatedDate) {
79 | selectedDate = updatedDate
| |- error: setter for 'selectedDate' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
80 | }
81 | }
[13/17] Compiling FXDatePicker FXBackgroundView.swift
/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/FXBackgroundView.swift:15:9: 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 FXBackgroundView: View {
| `- note: add @available attribute to enclosing struct
12 | let background: BackgroundStyle
13 |
14 | var body: some View {
| `- note: add @available attribute to enclosing property
15 | ZStack {
| |- 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
16 | switch background {
17 | case .color(let color):
/Users/admin/builder/spi-builder-workspace/Sources/FXDatePicker/Views/FXBackgroundView.swift:15:9: error: 'ZStack' 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 {
| `- note: add @available attribute to enclosing property
15 | ZStack {
| |- error: 'ZStack' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
16 | switch background {
17 | case .color(let color):
/Users/admin/builder/spi-builder-workspace/Sources/FXDatePicker/Views/FXBackgroundView.swift:15:9: 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 FXBackgroundView: View {
| `- note: add @available attribute to enclosing struct
12 | let background: BackgroundStyle
13 |
14 | var body: some View {
| `- note: add @available attribute to enclosing property
15 | ZStack {
| |- 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
16 | switch background {
17 | case .color(let color):
/Users/admin/builder/spi-builder-workspace/Sources/FXDatePicker/Views/FXBackgroundView.swift:18:17: warning: conformance of 'Color' to 'View' is only available in macOS 10.15 or newer; this is an error in the Swift 6 language mode
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 {
| `- note: add @available attribute to enclosing property
15 | ZStack {
16 | switch background {
17 | case .color(let color):
18 | color
| |- warning: conformance of 'Color' to 'View' is only available in macOS 10.15 or newer; this is an error in the Swift 6 language mode
| `- note: add 'if #available' version check
19 | case .linearGradient(let gradient, let startPoint, let endPoint):
20 | LinearGradient(gradient: gradient, startPoint: startPoint, endPoint: endPoint)
/Users/admin/builder/spi-builder-workspace/Sources/FXDatePicker/Views/FXBackgroundView.swift:18:17: error: 'buildEither(first:)' 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 {
| `- note: add @available attribute to enclosing property
15 | ZStack {
16 | switch background {
17 | case .color(let color):
18 | color
| |- error: 'buildEither(first:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
19 | case .linearGradient(let gradient, let startPoint, let endPoint):
20 | LinearGradient(gradient: gradient, startPoint: startPoint, endPoint: endPoint)
/Users/admin/builder/spi-builder-workspace/Sources/FXDatePicker/Views/FXBackgroundView.swift:18:17: error: 'buildEither(first:)' 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 {
| `- note: add @available attribute to enclosing property
15 | ZStack {
16 | switch background {
17 | case .color(let color):
18 | color
| |- error: 'buildEither(first:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
19 | case .linearGradient(let gradient, let startPoint, let endPoint):
20 | LinearGradient(gradient: gradient, startPoint: startPoint, endPoint: endPoint)
/Users/admin/builder/spi-builder-workspace/Sources/FXDatePicker/Views/FXBackgroundView.swift:18:17: warning: conformance of 'Color' to 'View' is only available in macOS 10.15 or newer; this is an error in the Swift 6 language mode
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 {
| `- note: add @available attribute to enclosing property
15 | ZStack {
16 | switch background {
17 | case .color(let color):
18 | color
| |- warning: conformance of 'Color' to 'View' is only available in macOS 10.15 or newer; this is an error in the Swift 6 language mode
| `- note: add 'if #available' version check
19 | case .linearGradient(let gradient, let startPoint, let endPoint):
20 | LinearGradient(gradient: gradient, startPoint: startPoint, endPoint: endPoint)
/Users/admin/builder/spi-builder-workspace/Sources/FXDatePicker/Views/FXBackgroundView.swift:20:17: error: 'LinearGradient' 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 {
| `- note: add @available attribute to enclosing property
15 | ZStack {
16 | switch background {
:
18 | color
19 | case .linearGradient(let gradient, let startPoint, let endPoint):
20 | LinearGradient(gradient: gradient, startPoint: startPoint, endPoint: endPoint)
| |- error: 'LinearGradient' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
21 | case .radialGradient(let gradient, let center, let startRadius, let endRadius):
22 | RadialGradient(gradient: gradient, center: center, startRadius: startRadius, endRadius: endRadius)
/Users/admin/builder/spi-builder-workspace/Sources/FXDatePicker/Views/FXBackgroundView.swift:20:17: error: 'buildEither(first:)' 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 {
| `- note: add @available attribute to enclosing property
15 | ZStack {
16 | switch background {
:
18 | color
19 | case .linearGradient(let gradient, let startPoint, let endPoint):
20 | LinearGradient(gradient: gradient, startPoint: startPoint, endPoint: endPoint)
| |- error: 'buildEither(first:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
21 | case .radialGradient(let gradient, let center, let startRadius, let endRadius):
22 | RadialGradient(gradient: gradient, center: center, startRadius: startRadius, endRadius: endRadius)
/Users/admin/builder/spi-builder-workspace/Sources/FXDatePicker/Views/FXBackgroundView.swift:20:17: error: 'buildEither(second:)' 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 {
| `- note: add @available attribute to enclosing property
15 | ZStack {
16 | switch background {
:
18 | color
19 | case .linearGradient(let gradient, let startPoint, let endPoint):
20 | LinearGradient(gradient: gradient, startPoint: startPoint, endPoint: endPoint)
| |- error: 'buildEither(second:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
21 | case .radialGradient(let gradient, let center, let startRadius, let endRadius):
22 | RadialGradient(gradient: gradient, center: center, startRadius: startRadius, endRadius: endRadius)
/Users/admin/builder/spi-builder-workspace/Sources/FXDatePicker/Views/FXBackgroundView.swift:22:17: error: 'RadialGradient' 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 {
| `- note: add @available attribute to enclosing property
15 | ZStack {
16 | switch background {
:
20 | LinearGradient(gradient: gradient, startPoint: startPoint, endPoint: endPoint)
21 | case .radialGradient(let gradient, let center, let startRadius, let endRadius):
22 | 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 | AngularGradient(gradient: gradient, center: center)
/Users/admin/builder/spi-builder-workspace/Sources/FXDatePicker/Views/FXBackgroundView.swift:22:17: error: 'buildEither(second:)' 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 {
| `- note: add @available attribute to enclosing property
15 | ZStack {
16 | switch background {
:
20 | LinearGradient(gradient: gradient, startPoint: startPoint, endPoint: endPoint)
21 | case .radialGradient(let gradient, let center, let startRadius, let endRadius):
22 | RadialGradient(gradient: gradient, center: center, startRadius: startRadius, endRadius: endRadius)
| |- error: 'buildEither(second:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
23 | case .angularGradient(let gradient, let center):
24 | AngularGradient(gradient: gradient, center: center)
/Users/admin/builder/spi-builder-workspace/Sources/FXDatePicker/Views/FXBackgroundView.swift:22:17: error: 'buildEither(first:)' 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 {
| `- note: add @available attribute to enclosing property
15 | ZStack {
16 | switch background {
:
20 | LinearGradient(gradient: gradient, startPoint: startPoint, endPoint: endPoint)
21 | case .radialGradient(let gradient, let center, let startRadius, let endRadius):
22 | RadialGradient(gradient: gradient, center: center, startRadius: startRadius, endRadius: endRadius)
| |- error: 'buildEither(first:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
23 | case .angularGradient(let gradient, let center):
24 | AngularGradient(gradient: gradient, center: center)
/Users/admin/builder/spi-builder-workspace/Sources/FXDatePicker/Views/FXBackgroundView.swift:24:17: error: 'AngularGradient' 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 {
| `- note: add @available attribute to enclosing property
15 | ZStack {
16 | switch background {
:
22 | RadialGradient(gradient: gradient, center: center, startRadius: startRadius, endRadius: endRadius)
23 | case .angularGradient(let gradient, let center):
24 | AngularGradient(gradient: gradient, center: center)
| |- error: 'AngularGradient' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
25 | }
26 | }
/Users/admin/builder/spi-builder-workspace/Sources/FXDatePicker/Views/FXBackgroundView.swift:24:17: error: 'buildEither(second:)' 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 {
| `- note: add @available attribute to enclosing property
15 | ZStack {
16 | switch background {
:
22 | RadialGradient(gradient: gradient, center: center, startRadius: startRadius, endRadius: endRadius)
23 | case .angularGradient(let gradient, let center):
24 | AngularGradient(gradient: gradient, center: center)
| |- error: 'buildEither(second:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
25 | }
26 | }
/Users/admin/builder/spi-builder-workspace/Sources/FXDatePicker/Views/FXBackgroundView.swift:24:17: error: 'buildEither(second:)' 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 {
| `- note: add @available attribute to enclosing property
15 | ZStack {
16 | switch background {
:
22 | RadialGradient(gradient: gradient, center: center, startRadius: startRadius, endRadius: endRadius)
23 | case .angularGradient(let gradient, let center):
24 | AngularGradient(gradient: gradient, center: center)
| |- error: 'buildEither(second:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
25 | }
26 | }
/Users/admin/builder/spi-builder-workspace/Sources/FXDatePicker/Views/FXBackgroundView.swift:15:16: 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 FXBackgroundView: View {
| `- note: add @available attribute to enclosing struct
12 | let background: BackgroundStyle
13 |
14 | var body: some View {
| `- note: add @available attribute to enclosing property
15 | ZStack {
| |- 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
16 | switch background {
17 | case .color(let color):
/Users/admin/builder/spi-builder-workspace/Sources/FXDatePicker/Views/FXBackgroundView.swift:14:25: 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 FXBackgroundView: View {
| `- note: add @available attribute to enclosing struct
12 | let background: BackgroundStyle
13 |
14 | var body: 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 property
15 | ZStack {
16 | switch background {
/Users/admin/builder/spi-builder-workspace/Sources/FXDatePicker/Views/FXBackgroundView.swift:14:25: 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 FXBackgroundView: View {
| `- note: add @available attribute to enclosing struct
12 | let background: BackgroundStyle
13 |
14 | var body: 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 property
15 | ZStack {
16 | switch background {
[14/17] Compiling FXDatePicker MonthView.swift
/Users/admin/builder/spi-builder-workspace/Sources/FXDatePicker/Views/MonthView.swift:18:20: error: 'layoutDirection' is only available in macOS 10.15 or newer
10 |
11 | @available(iOS 14.0, *)
12 | internal struct MonthView: View {
| `- note: add @available attribute to enclosing struct
13 | @Binding var displayedMonth: Date
14 | @Binding var selectedDate: Date
:
16 |
17 | @Environment(\.datePickerTheme) private var theme
18 | @Environment(\.layoutDirection) private var layoutDirection
| `- error: 'layoutDirection' is only available in macOS 10.15 or newer
19 |
20 | let calendar: Calendar
/Users/admin/builder/spi-builder-workspace/Sources/FXDatePicker/Views/MonthView.swift:13:6: error: 'Binding' is only available in macOS 10.15 or newer
10 |
11 | @available(iOS 14.0, *)
12 | internal struct MonthView: View {
| `- note: add @available attribute to enclosing struct
13 | @Binding var displayedMonth: Date
| `- error: 'Binding' is only available in macOS 10.15 or newer
14 | @Binding var selectedDate: Date
15 | let specialDates: [SpecialDate]
/Users/admin/builder/spi-builder-workspace/Sources/FXDatePicker/Views/MonthView.swift:14:6: error: 'Binding' is only available in macOS 10.15 or newer
10 |
11 | @available(iOS 14.0, *)
12 | internal struct MonthView: View {
| `- note: add @available attribute to enclosing struct
13 | @Binding var displayedMonth: Date
14 | @Binding var selectedDate: Date
| `- error: 'Binding' is only available in macOS 10.15 or newer
15 | let specialDates: [SpecialDate]
16 |
/Users/admin/builder/spi-builder-workspace/Sources/FXDatePicker/Views/MonthView.swift:17:6: error: 'Environment' is only available in macOS 10.15 or newer
10 |
11 | @available(iOS 14.0, *)
12 | internal struct MonthView: View {
| `- note: add @available attribute to enclosing struct
13 | @Binding var displayedMonth: Date
14 | @Binding var selectedDate: Date
15 | let specialDates: [SpecialDate]
16 |
17 | @Environment(\.datePickerTheme) private var theme
| `- error: 'Environment' is only available in macOS 10.15 or newer
18 | @Environment(\.layoutDirection) private var layoutDirection
19 |
/Users/admin/builder/spi-builder-workspace/Sources/FXDatePicker/Views/MonthView.swift:18:6: error: 'Environment' is only available in macOS 10.15 or newer
10 |
11 | @available(iOS 14.0, *)
12 | internal struct MonthView: View {
| `- note: add @available attribute to enclosing struct
13 | @Binding var displayedMonth: Date
14 | @Binding var selectedDate: Date
:
16 |
17 | @Environment(\.datePickerTheme) private var theme
18 | @Environment(\.layoutDirection) private var layoutDirection
| `- error: 'Environment' is only available in macOS 10.15 or newer
19 |
20 | let calendar: Calendar
/Users/admin/builder/spi-builder-workspace/Sources/FXDatePicker/Views/MonthView.swift:51:29: error: 'View' is only available in macOS 10.15 or newer
10 |
11 | @available(iOS 14.0, *)
12 | internal struct MonthView: View {
| `- note: add @available attribute to enclosing struct
13 | @Binding var displayedMonth: Date
14 | @Binding var selectedDate: Date
:
49 |
50 |
51 | internal var body: some View {
| | `- error: 'View' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing property
52 | let rowHeight: CGFloat = (hideMarkers == false) ? 50 : 45
53 | let totalRowHeight = CGFloat(numberOfRows) * rowHeight
/Users/admin/builder/spi-builder-workspace/Sources/FXDatePicker/Views/MonthView.swift:68:67: error: 'View' is only available in macOS 10.15 or newer
64 | }
65 |
66 | extension MonthView {
| `- note: add @available attribute to enclosing extension
67 |
68 | @ViewBuilder private func gridCellView(at index: Int) -> some View {
| | `- error: 'View' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing instance method
69 | let dayOffset = index - firstDayOfWeekInMonth
70 | if dayOffset >= 0 && dayOffset < daysInMonth {
/Users/admin/builder/spi-builder-workspace/Sources/FXDatePicker/Views/MonthView.swift:68:6: error: 'ViewBuilder' is only available in macOS 10.15 or newer
64 | }
65 |
66 | extension MonthView {
| `- note: add @available attribute to enclosing extension
67 |
68 | @ViewBuilder private func gridCellView(at index: Int) -> some View {
| | `- note: add @available attribute to enclosing instance method
| `- error: 'ViewBuilder' is only available in macOS 10.15 or newer
69 | let dayOffset = index - firstDayOfWeekInMonth
70 | if dayOffset >= 0 && dayOffset < daysInMonth {
/Users/admin/builder/spi-builder-workspace/Sources/FXDatePicker/Views/MonthView.swift:57:9: error: 'LazyVGrid' is only available in macOS 11.0 or newer
10 |
11 | @available(iOS 14.0, *)
12 | internal struct MonthView: View {
| `- note: add @available attribute to enclosing struct
13 | @Binding var displayedMonth: Date
14 | @Binding var selectedDate: Date
:
49 |
50 |
51 | internal var body: some View {
| `- note: add @available attribute to enclosing property
52 | let rowHeight: CGFloat = (hideMarkers == false) ? 50 : 45
53 | let totalRowHeight = CGFloat(numberOfRows) * rowHeight
:
55 | let paddingPerRow = totalPaddingHeight / CGFloat(maxRows - 2)
56 |
57 | LazyVGrid(columns: Array(repeating: .init(.flexible()), count: 7), spacing: paddingPerRow) {
| |- error: 'LazyVGrid' is only available in macOS 11.0 or newer
| `- note: add 'if #available' version check
58 | ForEach(0..<(numberOfRows * 7), id: \.self) { index in
59 | gridCellView(at: index)
/Users/admin/builder/spi-builder-workspace/Sources/FXDatePicker/Views/MonthView.swift:57:9: warning: conformance of 'ForEach<Data, ID, Content>' to 'View' is only available in macOS 10.15 or newer; this is an error in the Swift 6 language mode
10 |
11 | @available(iOS 14.0, *)
12 | internal struct MonthView: View {
| `- note: add @available attribute to enclosing struct
13 | @Binding var displayedMonth: Date
14 | @Binding var selectedDate: Date
:
49 |
50 |
51 | internal var body: some View {
| `- note: add @available attribute to enclosing property
52 | let rowHeight: CGFloat = (hideMarkers == false) ? 50 : 45
53 | let totalRowHeight = CGFloat(numberOfRows) * rowHeight
:
55 | let paddingPerRow = totalPaddingHeight / CGFloat(maxRows - 2)
56 |
57 | LazyVGrid(columns: Array(repeating: .init(.flexible()), count: 7), spacing: paddingPerRow) {
| |- warning: conformance of 'ForEach<Data, ID, Content>' to 'View' is only available in macOS 10.15 or newer; this is an error in the Swift 6 language mode
| `- note: add 'if #available' version check
58 | ForEach(0..<(numberOfRows * 7), id: \.self) { index in
59 | gridCellView(at: index)
/Users/admin/builder/spi-builder-workspace/Sources/FXDatePicker/Views/MonthView.swift:58:13: warning: conformance of 'ForEach<Data, ID, Content>' to 'View' is only available in macOS 10.15 or newer; this is an error in the Swift 6 language mode
10 |
11 | @available(iOS 14.0, *)
12 | internal struct MonthView: View {
| `- note: add @available attribute to enclosing struct
13 | @Binding var displayedMonth: Date
14 | @Binding var selectedDate: Date
:
49 |
50 |
51 | internal var body: some View {
| `- note: add @available attribute to enclosing property
52 | let rowHeight: CGFloat = (hideMarkers == false) ? 50 : 45
53 | let totalRowHeight = CGFloat(numberOfRows) * rowHeight
:
56 |
57 | LazyVGrid(columns: Array(repeating: .init(.flexible()), count: 7), spacing: paddingPerRow) {
58 | ForEach(0..<(numberOfRows * 7), id: \.self) { index in
| |- warning: conformance of 'ForEach<Data, ID, Content>' to 'View' is only available in macOS 10.15 or newer; this is an error in the Swift 6 language mode
| `- note: add 'if #available' version check
59 | gridCellView(at: index)
60 | }
/Users/admin/builder/spi-builder-workspace/Sources/FXDatePicker/Views/MonthView.swift:58:13: error: 'ForEach' is only available in macOS 10.15 or newer
10 |
11 | @available(iOS 14.0, *)
12 | internal struct MonthView: View {
| `- note: add @available attribute to enclosing struct
13 | @Binding var displayedMonth: Date
14 | @Binding var selectedDate: Date
:
49 |
50 |
51 | internal var body: some View {
| `- note: add @available attribute to enclosing property
52 | let rowHeight: CGFloat = (hideMarkers == false) ? 50 : 45
53 | let totalRowHeight = CGFloat(numberOfRows) * rowHeight
:
56 |
57 | LazyVGrid(columns: Array(repeating: .init(.flexible()), count: 7), spacing: paddingPerRow) {
58 | ForEach(0..<(numberOfRows * 7), id: \.self) { index in
| |- error: 'ForEach' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
59 | gridCellView(at: index)
60 | }
/Users/admin/builder/spi-builder-workspace/Sources/FXDatePicker/Views/MonthView.swift:58:13: error: 'init(_:id:content:)' is only available in macOS 10.15 or newer
10 |
11 | @available(iOS 14.0, *)
12 | internal struct MonthView: View {
| `- note: add @available attribute to enclosing struct
13 | @Binding var displayedMonth: Date
14 | @Binding var selectedDate: Date
:
49 |
50 |
51 | internal var body: some View {
| `- note: add @available attribute to enclosing property
52 | let rowHeight: CGFloat = (hideMarkers == false) ? 50 : 45
53 | let totalRowHeight = CGFloat(numberOfRows) * rowHeight
:
56 |
57 | LazyVGrid(columns: Array(repeating: .init(.flexible()), count: 7), spacing: paddingPerRow) {
58 | ForEach(0..<(numberOfRows * 7), id: \.self) { index in
| |- error: 'init(_:id:content:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
59 | gridCellView(at: index)
60 | }
/Users/admin/builder/spi-builder-workspace/Sources/FXDatePicker/Views/MonthView.swift:57:100: warning: conformance of 'ForEach<Data, ID, Content>' to 'View' is only available in macOS 10.15 or newer; this is an error in the Swift 6 language mode
10 |
11 | @available(iOS 14.0, *)
12 | internal struct MonthView: View {
| `- note: add @available attribute to enclosing struct
13 | @Binding var displayedMonth: Date
14 | @Binding var selectedDate: Date
:
49 |
50 |
51 | internal var body: some View {
| `- note: add @available attribute to enclosing property
52 | let rowHeight: CGFloat = (hideMarkers == false) ? 50 : 45
53 | let totalRowHeight = CGFloat(numberOfRows) * rowHeight
:
55 | let paddingPerRow = totalPaddingHeight / CGFloat(maxRows - 2)
56 |
57 | LazyVGrid(columns: Array(repeating: .init(.flexible()), count: 7), spacing: paddingPerRow) {
| |- warning: conformance of 'ForEach<Data, ID, Content>' to 'View' is only available in macOS 10.15 or newer; this is an error in the Swift 6 language mode
| `- note: add 'if #available' version check
58 | ForEach(0..<(numberOfRows * 7), id: \.self) { index in
59 | gridCellView(at: index)
/Users/admin/builder/spi-builder-workspace/Sources/FXDatePicker/Views/MonthView.swift:62:10: error: 'frame(width:height:alignment:)' is only available in macOS 10.15 or newer
10 |
11 | @available(iOS 14.0, *)
12 | internal struct MonthView: View {
| `- note: add @available attribute to enclosing struct
13 | @Binding var displayedMonth: Date
14 | @Binding var selectedDate: Date
:
49 |
50 |
51 | internal var body: some View {
| `- note: add @available attribute to enclosing property
52 | let rowHeight: CGFloat = (hideMarkers == false) ? 50 : 45
53 | let totalRowHeight = CGFloat(numberOfRows) * rowHeight
:
60 | }
61 | }
62 | .frame(height: totalMonthViewHeight)
| |- error: 'frame(width:height:alignment:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
63 | }
64 | }
/Users/admin/builder/spi-builder-workspace/Sources/FXDatePicker/Views/MonthView.swift:82:14: error: 'onTapGesture(count:perform:)' is only available in macOS 10.15 or newer
64 | }
65 |
66 | extension MonthView {
| `- note: add @available attribute to enclosing extension
67 |
68 | @ViewBuilder private func gridCellView(at index: Int) -> some View {
| `- note: add @available attribute to enclosing instance method
69 | let dayOffset = index - firstDayOfWeekInMonth
70 | if dayOffset >= 0 && dayOffset < daysInMonth {
:
80 | hideMarkers: hideMarkers,
81 | calendar: calendar)
82 | .onTapGesture { self.selectedDate = date }
| |- error: 'onTapGesture(count:perform:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
83 | }
84 | else {
/Users/admin/builder/spi-builder-workspace/Sources/FXDatePicker/Views/MonthView.swift:82:29: error: setter for 'selectedDate' is only available in macOS 10.15 or newer
64 | }
65 |
66 | extension MonthView {
| `- note: add @available attribute to enclosing extension
67 |
68 | @ViewBuilder private func gridCellView(at index: Int) -> some View {
| `- note: add @available attribute to enclosing instance method
69 | let dayOffset = index - firstDayOfWeekInMonth
70 | if dayOffset >= 0 && dayOffset < daysInMonth {
:
80 | hideMarkers: hideMarkers,
81 | calendar: calendar)
82 | .onTapGesture { self.selectedDate = date }
| |- error: setter for 'selectedDate' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
83 | }
84 | else {
/Users/admin/builder/spi-builder-workspace/Sources/FXDatePicker/Views/MonthView.swift:70:54: error: 'buildEither(first:)' is only available in macOS 10.15 or newer
64 | }
65 |
66 | extension MonthView {
| `- note: add @available attribute to enclosing extension
67 |
68 | @ViewBuilder private func gridCellView(at index: Int) -> some View {
| `- note: add @available attribute to enclosing instance method
69 | let dayOffset = index - firstDayOfWeekInMonth
70 | if dayOffset >= 0 && dayOffset < daysInMonth {
| |- error: 'buildEither(first:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
71 | let date = getDateFor(day: dayOffset + 1)
72 | let specialDate = findSpecialDate(for: date)
/Users/admin/builder/spi-builder-workspace/Sources/FXDatePicker/Views/MonthView.swift:85:13: error: 'Text' is only available in macOS 10.15 or newer
64 | }
65 |
66 | extension MonthView {
| `- note: add @available attribute to enclosing extension
67 |
68 | @ViewBuilder private func gridCellView(at index: Int) -> some View {
| `- note: add @available attribute to enclosing instance method
69 | let dayOffset = index - firstDayOfWeekInMonth
70 | if dayOffset >= 0 && dayOffset < daysInMonth {
:
83 | }
84 | else {
85 | Text("").frame(height: 50)
| |- error: 'Text' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
86 | }
87 | }
/Users/admin/builder/spi-builder-workspace/Sources/FXDatePicker/Views/MonthView.swift:85:22: error: 'frame(width:height:alignment:)' is only available in macOS 10.15 or newer
64 | }
65 |
66 | extension MonthView {
| `- note: add @available attribute to enclosing extension
67 |
68 | @ViewBuilder private func gridCellView(at index: Int) -> some View {
| `- note: add @available attribute to enclosing instance method
69 | let dayOffset = index - firstDayOfWeekInMonth
70 | if dayOffset >= 0 && dayOffset < daysInMonth {
:
83 | }
84 | else {
85 | Text("").frame(height: 50)
| |- error: 'frame(width:height:alignment:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
86 | }
87 | }
/Users/admin/builder/spi-builder-workspace/Sources/FXDatePicker/Views/MonthView.swift:84:14: error: 'buildEither(second:)' is only available in macOS 10.15 or newer
64 | }
65 |
66 | extension MonthView {
| `- note: add @available attribute to enclosing extension
67 |
68 | @ViewBuilder private func gridCellView(at index: Int) -> some View {
| `- note: add @available attribute to enclosing instance method
69 | let dayOffset = index - firstDayOfWeekInMonth
70 | if dayOffset >= 0 && dayOffset < daysInMonth {
:
82 | .onTapGesture { self.selectedDate = date }
83 | }
84 | else {
| |- error: 'buildEither(second:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
85 | Text("").frame(height: 50)
86 | }
/Users/admin/builder/spi-builder-workspace/Sources/FXDatePicker/Views/MonthView.swift:68:72: warning: conformance of '_ConditionalContent<TrueContent, FalseContent>' to 'View' is only available in macOS 10.15 or newer; this is an error in the Swift 6 language mode
64 | }
65 |
66 | extension MonthView {
| `- note: add @available attribute to enclosing extension
67 |
68 | @ViewBuilder private func gridCellView(at index: Int) -> some View {
| | |- warning: conformance of '_ConditionalContent<TrueContent, FalseContent>' to 'View' is only available in macOS 10.15 or newer; this is an error in the Swift 6 language mode
| | `- note: add 'if #available' version check
| `- note: add @available attribute to enclosing instance method
69 | let dayOffset = index - firstDayOfWeekInMonth
70 | if dayOffset >= 0 && dayOffset < daysInMonth {
[15/17] Compiling FXDatePicker DayView.swift
/Users/admin/builder/spi-builder-workspace/Sources/FXDatePicker/Views/DayView.swift:24:6: error: 'Environment' is only available in macOS 10.15 or newer
10 |
11 | @available(iOS 14.0, *)
12 | internal struct DayView: View {
| `- note: add @available attribute to enclosing struct
13 | let date: Date?
14 | let closeRange: ClosedRange<Date>
:
22 | let calendar: Calendar
23 |
24 | @Environment(\.datePickerTheme) private var theme
| `- error: 'Environment' is only available in macOS 10.15 or newer
25 |
26 | private var isInRange: Bool {
/Users/admin/builder/spi-builder-workspace/Sources/FXDatePicker/Views/DayView.swift:31:29: error: 'View' is only available in macOS 10.15 or newer
10 |
11 | @available(iOS 14.0, *)
12 | internal struct DayView: View {
| `- note: add @available attribute to enclosing struct
13 | let date: Date?
14 | let closeRange: ClosedRange<Date>
:
29 | }
30 |
31 | internal var body: some View {
| | `- error: 'View' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing property
32 | VStack(spacing: 0) {
33 | if let date = date {
/Users/admin/builder/spi-builder-workspace/Sources/FXDatePicker/Views/DayView.swift:66:76: error: 'View' is only available in macOS 10.15 or newer
62 | }
63 |
64 | extension DayView {
| `- note: add @available attribute to enclosing extension
65 |
66 | @ViewBuilder func specialDateImage(_ specialDate: SpecialDate) -> some View {
| | `- error: 'View' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing instance method
67 | switch specialDate.dateType {
68 | case .image(let imageType):
/Users/admin/builder/spi-builder-workspace/Sources/FXDatePicker/Views/DayView.swift:66:6: error: 'ViewBuilder' is only available in macOS 10.15 or newer
62 | }
63 |
64 | extension DayView {
| `- note: add @available attribute to enclosing extension
65 |
66 | @ViewBuilder func specialDateImage(_ specialDate: SpecialDate) -> some View {
| | `- note: add @available attribute to enclosing instance method
| `- error: 'ViewBuilder' is only available in macOS 10.15 or newer
67 | switch specialDate.dateType {
68 | case .image(let imageType):
/Users/admin/builder/spi-builder-workspace/Sources/FXDatePicker/Views/DayView.swift:81:42: error: 'Color' is only available in macOS 10.15 or newer
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/DayView.swift:32:9: error: 'VStack' is only available in macOS 10.15 or newer
10 |
11 | @available(iOS 14.0, *)
12 | internal struct DayView: View {
| `- note: add @available attribute to enclosing struct
13 | let date: Date?
14 | let closeRange: ClosedRange<Date>
:
29 | }
30 |
31 | internal var body: some View {
| `- note: add @available attribute to enclosing property
32 | VStack(spacing: 0) {
| |- error: 'VStack' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
33 | if let date = date {
34 | Text(dayFormatter.string(from: date))
/Users/admin/builder/spi-builder-workspace/Sources/FXDatePicker/Views/DayView.swift:32:28: warning: conformance of 'Optional<Wrapped>' to 'View' is only available in macOS 10.15 or newer; this is an error in the Swift 6 language mode
10 |
11 | @available(iOS 14.0, *)
12 | internal struct DayView: View {
| `- note: add @available attribute to enclosing struct
13 | let date: Date?
14 | let closeRange: ClosedRange<Date>
:
29 | }
30 |
31 | internal var body: some View {
| `- note: add @available attribute to enclosing property
32 | VStack(spacing: 0) {
| |- warning: conformance of 'Optional<Wrapped>' to 'View' is only available in macOS 10.15 or newer; this is an error in the Swift 6 language mode
| `- note: add 'if #available' version check
33 | if let date = date {
34 | Text(dayFormatter.string(from: date))
/Users/admin/builder/spi-builder-workspace/Sources/FXDatePicker/Views/DayView.swift:34:17: error: 'Text' is only available in macOS 10.15 or newer
10 |
11 | @available(iOS 14.0, *)
12 | internal struct DayView: View {
| `- note: add @available attribute to enclosing struct
13 | let date: Date?
14 | let closeRange: ClosedRange<Date>
:
29 | }
30 |
31 | internal var body: some View {
| `- note: add @available attribute to enclosing property
32 | VStack(spacing: 0) {
33 | if let date = date {
34 | Text(dayFormatter.string(from: date))
| |- error: 'Text' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
35 | .foregroundColor(calculateTextColor())
36 | .font(.system(size: 20))
/Users/admin/builder/spi-builder-workspace/Sources/FXDatePicker/Views/DayView.swift:35:22: error: 'foregroundColor' is only available in macOS 10.15 or newer
10 |
11 | @available(iOS 14.0, *)
12 | internal struct DayView: View {
| `- note: add @available attribute to enclosing struct
13 | let date: Date?
14 | let closeRange: ClosedRange<Date>
:
29 | }
30 |
31 | internal var body: some View {
| `- note: add @available attribute to enclosing property
32 | VStack(spacing: 0) {
33 | if let date = date {
34 | Text(dayFormatter.string(from: date))
35 | .foregroundColor(calculateTextColor())
| |- error: 'foregroundColor' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
36 | .font(.system(size: 20))
37 | .toBold(isSelected || isToday)
/Users/admin/builder/spi-builder-workspace/Sources/FXDatePicker/Views/DayView.swift:36:22: error: 'font' is only available in macOS 10.15 or newer
10 |
11 | @available(iOS 14.0, *)
12 | internal struct DayView: View {
| `- note: add @available attribute to enclosing struct
13 | let date: Date?
14 | let closeRange: ClosedRange<Date>
:
29 | }
30 |
31 | internal var body: some View {
| `- note: add @available attribute to enclosing property
32 | VStack(spacing: 0) {
33 | if let date = date {
34 | Text(dayFormatter.string(from: date))
35 | .foregroundColor(calculateTextColor())
36 | .font(.system(size: 20))
| |- error: 'font' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
37 | .toBold(isSelected || isToday)
38 | .frame(width: 30, height: 30)
/Users/admin/builder/spi-builder-workspace/Sources/FXDatePicker/Views/DayView.swift:36:28: error: 'system(size:weight:design:)' is only available in macOS 13.0 or newer
10 |
11 | @available(iOS 14.0, *)
12 | internal struct DayView: View {
| `- note: add @available attribute to enclosing struct
13 | let date: Date?
14 | let closeRange: ClosedRange<Date>
:
29 | }
30 |
31 | internal var body: some View {
| `- note: add @available attribute to enclosing property
32 | VStack(spacing: 0) {
33 | if let date = date {
34 | Text(dayFormatter.string(from: date))
35 | .foregroundColor(calculateTextColor())
36 | .font(.system(size: 20))
| |- error: 'system(size:weight:design:)' is only available in macOS 13.0 or newer
| `- note: add 'if #available' version check
37 | .toBold(isSelected || isToday)
38 | .frame(width: 30, height: 30)
/Users/admin/builder/spi-builder-workspace/Sources/FXDatePicker/Views/DayView.swift:37:22: warning: conformance of 'Text' to 'View' is only available in macOS 10.15 or newer; this is an error in the Swift 6 language mode
10 |
11 | @available(iOS 14.0, *)
12 | internal struct DayView: View {
| `- note: add @available attribute to enclosing struct
13 | let date: Date?
14 | let closeRange: ClosedRange<Date>
:
29 | }
30 |
31 | internal var body: some View {
| `- note: add @available attribute to enclosing property
32 | VStack(spacing: 0) {
33 | if let date = date {
:
35 | .foregroundColor(calculateTextColor())
36 | .font(.system(size: 20))
37 | .toBold(isSelected || isToday)
| |- warning: conformance of 'Text' to 'View' is only available in macOS 10.15 or newer; this is an error in the Swift 6 language mode
| `- note: add 'if #available' version check
38 | .frame(width: 30, height: 30)
39 | .padding(.horizontal, 8)
/Users/admin/builder/spi-builder-workspace/Sources/FXDatePicker/Views/DayView.swift:38:22: error: 'frame(width:height:alignment:)' is only available in macOS 10.15 or newer
10 |
11 | @available(iOS 14.0, *)
12 | internal struct DayView: View {
| `- note: add @available attribute to enclosing struct
13 | let date: Date?
14 | let closeRange: ClosedRange<Date>
:
29 | }
30 |
31 | internal var body: some View {
| `- note: add @available attribute to enclosing property
32 | VStack(spacing: 0) {
33 | if let date = date {
:
36 | .font(.system(size: 20))
37 | .toBold(isSelected || isToday)
38 | .frame(width: 30, height: 30)
| |- error: 'frame(width:height:alignment:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
39 | .padding(.horizontal, 8)
40 | .background(isSelected ? isToday ? theme.main.accentColor : theme.main.accentColor.opacity(0.2) : Color.clear)
/Users/admin/builder/spi-builder-workspace/Sources/FXDatePicker/Views/DayView.swift:39:22: error: 'padding' is only available in macOS 10.15 or newer
10 |
11 | @available(iOS 14.0, *)
12 | internal struct DayView: View {
| `- note: add @available attribute to enclosing struct
13 | let date: Date?
14 | let closeRange: ClosedRange<Date>
:
29 | }
30 |
31 | internal var body: some View {
| `- note: add @available attribute to enclosing property
32 | VStack(spacing: 0) {
33 | if let date = date {
:
37 | .toBold(isSelected || isToday)
38 | .frame(width: 30, height: 30)
39 | .padding(.horizontal, 8)
| |- error: 'padding' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
40 | .background(isSelected ? isToday ? theme.main.accentColor : theme.main.accentColor.opacity(0.2) : Color.clear)
41 | .cornerRadius(20)
/Users/admin/builder/spi-builder-workspace/Sources/FXDatePicker/Views/DayView.swift:40:22: error: 'background(_:ignoresSafeAreaEdges:)' is only available in macOS 12.0 or newer
10 |
11 | @available(iOS 14.0, *)
12 | internal struct DayView: View {
| `- note: add @available attribute to enclosing struct
13 | let date: Date?
14 | let closeRange: ClosedRange<Date>
:
29 | }
30 |
31 | internal var body: some View {
| `- note: add @available attribute to enclosing property
32 | VStack(spacing: 0) {
33 | if let date = date {
:
38 | .frame(width: 30, height: 30)
39 | .padding(.horizontal, 8)
40 | .background(isSelected ? isToday ? theme.main.accentColor : theme.main.accentColor.opacity(0.2) : Color.clear)
| |- error: 'background(_:ignoresSafeAreaEdges:)' is only available in macOS 12.0 or newer
| `- note: add 'if #available' version check
41 | .cornerRadius(20)
42 | .allowsHitTesting(isInRange)
/Users/admin/builder/spi-builder-workspace/Sources/FXDatePicker/Views/DayView.swift:40:104: error: 'opacity' is only available in macOS 10.15 or newer
10 |
11 | @available(iOS 14.0, *)
12 | internal struct DayView: View {
| `- note: add @available attribute to enclosing struct
13 | let date: Date?
14 | let closeRange: ClosedRange<Date>
:
29 | }
30 |
31 | internal var body: some View {
| `- note: add @available attribute to enclosing property
32 | VStack(spacing: 0) {
33 | if let date = date {
:
38 | .frame(width: 30, height: 30)
39 | .padding(.horizontal, 8)
40 | .background(isSelected ? isToday ? theme.main.accentColor : theme.main.accentColor.opacity(0.2) : Color.clear)
| |- error: 'opacity' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
41 | .cornerRadius(20)
42 | .allowsHitTesting(isInRange)
/Users/admin/builder/spi-builder-workspace/Sources/FXDatePicker/Views/DayView.swift:40:119: error: 'Color' is only available in macOS 10.15 or newer
10 |
11 | @available(iOS 14.0, *)
12 | internal struct DayView: View {
| `- note: add @available attribute to enclosing struct
13 | let date: Date?
14 | let closeRange: ClosedRange<Date>
:
29 | }
30 |
31 | internal var body: some View {
| `- note: add @available attribute to enclosing property
32 | VStack(spacing: 0) {
33 | if let date = date {
:
38 | .frame(width: 30, height: 30)
39 | .padding(.horizontal, 8)
40 | .background(isSelected ? isToday ? theme.main.accentColor : theme.main.accentColor.opacity(0.2) : Color.clear)
| |- error: 'Color' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
41 | .cornerRadius(20)
42 | .allowsHitTesting(isInRange)
/Users/admin/builder/spi-builder-workspace/Sources/FXDatePicker/Views/DayView.swift:40:125: error: 'clear' is only available in macOS 10.15 or newer
10 |
11 | @available(iOS 14.0, *)
12 | internal struct DayView: View {
| `- note: add @available attribute to enclosing struct
13 | let date: Date?
14 | let closeRange: ClosedRange<Date>
:
29 | }
30 |
31 | internal var body: some View {
| `- note: add @available attribute to enclosing property
32 | VStack(spacing: 0) {
33 | if let date = date {
:
38 | .frame(width: 30, height: 30)
39 | .padding(.horizontal, 8)
40 | .background(isSelected ? isToday ? theme.main.accentColor : theme.main.accentColor.opacity(0.2) : Color.clear)
| |- error: 'clear' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
41 | .cornerRadius(20)
42 | .allowsHitTesting(isInRange)
/Users/admin/builder/spi-builder-workspace/Sources/FXDatePicker/Views/DayView.swift:41:22: error: 'cornerRadius(_:antialiased:)' is only available in macOS 10.15 or newer
10 |
11 | @available(iOS 14.0, *)
12 | internal struct DayView: View {
| `- note: add @available attribute to enclosing struct
13 | let date: Date?
14 | let closeRange: ClosedRange<Date>
:
29 | }
30 |
31 | internal var body: some View {
| `- note: add @available attribute to enclosing property
32 | VStack(spacing: 0) {
33 | if let date = date {
:
39 | .padding(.horizontal, 8)
40 | .background(isSelected ? isToday ? theme.main.accentColor : theme.main.accentColor.opacity(0.2) : Color.clear)
41 | .cornerRadius(20)
| |- error: 'cornerRadius(_:antialiased:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
42 | .allowsHitTesting(isInRange)
43 | }
/Users/admin/builder/spi-builder-workspace/Sources/FXDatePicker/Views/DayView.swift:42:22: error: 'allowsHitTesting' is only available in macOS 10.15 or newer
10 |
11 | @available(iOS 14.0, *)
12 | internal struct DayView: View {
| `- note: add @available attribute to enclosing struct
13 | let date: Date?
14 | let closeRange: ClosedRange<Date>
:
29 | }
30 |
31 | internal var body: some View {
| `- note: add @available attribute to enclosing property
32 | VStack(spacing: 0) {
33 | if let date = date {
:
40 | .background(isSelected ? isToday ? theme.main.accentColor : theme.main.accentColor.opacity(0.2) : Color.clear)
41 | .cornerRadius(20)
42 | .allowsHitTesting(isInRange)
| |- error: 'allowsHitTesting' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
43 | }
44 |
/Users/admin/builder/spi-builder-workspace/Sources/FXDatePicker/Views/DayView.swift:33:32: error: 'buildIf' is only available in macOS 10.15 or newer
10 |
11 | @available(iOS 14.0, *)
12 | internal struct DayView: View {
| `- note: add @available attribute to enclosing struct
13 | let date: Date?
14 | let closeRange: ClosedRange<Date>
:
29 | }
30 |
31 | internal var body: some View {
| `- note: add @available attribute to enclosing property
32 | VStack(spacing: 0) {
33 | if let date = date {
| |- error: 'buildIf' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
34 | Text(dayFormatter.string(from: date))
35 | .foregroundColor(calculateTextColor())
/Users/admin/builder/spi-builder-workspace/Sources/FXDatePicker/Views/DayView.swift:43:13: error: 'buildIf' is only available in macOS 10.15 or newer
10 |
11 | @available(iOS 14.0, *)
12 | internal struct DayView: View {
| `- note: add @available attribute to enclosing struct
13 | let date: Date?
14 | let closeRange: ClosedRange<Date>
:
29 | }
30 |
31 | internal var body: some View {
| `- note: add @available attribute to enclosing property
32 | VStack(spacing: 0) {
33 | if let date = date {
:
41 | .cornerRadius(20)
42 | .allowsHitTesting(isInRange)
43 | }
| |- error: 'buildIf' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
44 |
45 | if !hideMarkers {
/Users/admin/builder/spi-builder-workspace/Sources/FXDatePicker/Views/DayView.swift:46:17: error: 'ZStack' is only available in macOS 10.15 or newer
10 |
11 | @available(iOS 14.0, *)
12 | internal struct DayView: View {
| `- note: add @available attribute to enclosing struct
13 | let date: Date?
14 | let closeRange: ClosedRange<Date>
:
29 | }
30 |
31 | internal var body: some View {
| `- note: add @available attribute to enclosing property
32 | VStack(spacing: 0) {
33 | if let date = date {
:
44 |
45 | if !hideMarkers {
46 | ZStack {
| |- error: 'ZStack' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
47 |
48 | if let specialDate = specialDate {
/Users/admin/builder/spi-builder-workspace/Sources/FXDatePicker/Views/DayView.swift:46:17: warning: conformance of 'Optional<Wrapped>' to 'View' is only available in macOS 10.15 or newer; this is an error in the Swift 6 language mode
10 |
11 | @available(iOS 14.0, *)
12 | internal struct DayView: View {
| `- note: add @available attribute to enclosing struct
13 | let date: Date?
14 | let closeRange: ClosedRange<Date>
:
29 | }
30 |
31 | internal var body: some View {
| `- note: add @available attribute to enclosing property
32 | VStack(spacing: 0) {
33 | if let date = date {
:
44 |
45 | if !hideMarkers {
46 | ZStack {
| |- warning: conformance of 'Optional<Wrapped>' to 'View' is only available in macOS 10.15 or newer; this is an error in the Swift 6 language mode
| `- note: add 'if #available' version check
47 |
48 | if let specialDate = specialDate {
/Users/admin/builder/spi-builder-workspace/Sources/FXDatePicker/Views/DayView.swift:50:30: error: 'frame(width:height:alignment:)' is only available in macOS 10.15 or newer
10 |
11 | @available(iOS 14.0, *)
12 | internal struct DayView: View {
| `- note: add @available attribute to enclosing struct
13 | let date: Date?
14 | let closeRange: ClosedRange<Date>
:
29 | }
30 |
31 | internal var body: some View {
| `- note: add @available attribute to enclosing property
32 | VStack(spacing: 0) {
33 | if let date = date {
:
48 | if let specialDate = specialDate {
49 | specialDateImage(specialDate)
50 | .frame(height: imageSize)
| |- error: 'frame(width:height:alignment:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
51 | .padding(.vertical, 10)
52 | }
/Users/admin/builder/spi-builder-workspace/Sources/FXDatePicker/Views/DayView.swift:51:30: error: 'padding' is only available in macOS 10.15 or newer
10 |
11 | @available(iOS 14.0, *)
12 | internal struct DayView: View {
| `- note: add @available attribute to enclosing struct
13 | let date: Date?
14 | let closeRange: ClosedRange<Date>
:
29 | }
30 |
31 | internal var body: some View {
| `- note: add @available attribute to enclosing property
32 | VStack(spacing: 0) {
33 | if let date = date {
:
49 | specialDateImage(specialDate)
50 | .frame(height: imageSize)
51 | .padding(.vertical, 10)
| |- error: 'padding' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
52 | }
53 |
/Users/admin/builder/spi-builder-workspace/Sources/FXDatePicker/Views/DayView.swift:48:54: error: 'buildIf' is only available in macOS 10.15 or newer
10 |
11 | @available(iOS 14.0, *)
12 | internal struct DayView: View {
| `- note: add @available attribute to enclosing struct
13 | let date: Date?
14 | let closeRange: ClosedRange<Date>
:
29 | }
30 |
31 | internal var body: some View {
| `- note: add @available attribute to enclosing property
32 | VStack(spacing: 0) {
33 | if let date = date {
:
46 | ZStack {
47 |
48 | if let specialDate = specialDate {
| |- error: 'buildIf' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
49 | specialDateImage(specialDate)
50 | .frame(height: imageSize)
/Users/admin/builder/spi-builder-workspace/Sources/FXDatePicker/Views/DayView.swift:52:21: error: 'buildIf' is only available in macOS 10.15 or newer
10 |
11 | @available(iOS 14.0, *)
12 | internal struct DayView: View {
| `- note: add @available attribute to enclosing struct
13 | let date: Date?
14 | let closeRange: ClosedRange<Date>
:
29 | }
30 |
31 | internal var body: some View {
| `- note: add @available attribute to enclosing property
32 | VStack(spacing: 0) {
33 | if let date = date {
:
50 | .frame(height: imageSize)
51 | .padding(.vertical, 10)
52 | }
| |- error: 'buildIf' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
53 |
54 |
/Users/admin/builder/spi-builder-workspace/Sources/FXDatePicker/Views/DayView.swift:46:24: warning: conformance of 'Optional<Wrapped>' to 'View' is only available in macOS 10.15 or newer; this is an error in the Swift 6 language mode
10 |
11 | @available(iOS 14.0, *)
12 | internal struct DayView: View {
| `- note: add @available attribute to enclosing struct
13 | let date: Date?
14 | let closeRange: ClosedRange<Date>
:
29 | }
30 |
31 | internal var body: some View {
| `- note: add @available attribute to enclosing property
32 | VStack(spacing: 0) {
33 | if let date = date {
:
44 |
45 | if !hideMarkers {
46 | ZStack {
| |- warning: conformance of 'Optional<Wrapped>' to 'View' is only available in macOS 10.15 or newer; this is an error in the Swift 6 language mode
| `- note: add 'if #available' version check
47 |
48 | if let specialDate = specialDate {
/Users/admin/builder/spi-builder-workspace/Sources/FXDatePicker/Views/DayView.swift:56:18: error: 'frame(width:height:alignment:)' is only available in macOS 10.15 or newer
10 |
11 | @available(iOS 14.0, *)
12 | internal struct DayView: View {
| `- note: add @available attribute to enclosing struct
13 | let date: Date?
14 | let closeRange: ClosedRange<Date>
:
29 | }
30 |
31 | internal var body: some View {
| `- note: add @available attribute to enclosing property
32 | VStack(spacing: 0) {
33 | if let date = date {
:
54 |
55 | }
56 | .frame(height: imageSize + 10)
| |- error: 'frame(width:height:alignment:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
57 | }
58 | }
/Users/admin/builder/spi-builder-workspace/Sources/FXDatePicker/Views/DayView.swift:45:29: error: 'buildIf' is only available in macOS 10.15 or newer
10 |
11 | @available(iOS 14.0, *)
12 | internal struct DayView: View {
| `- note: add @available attribute to enclosing struct
13 | let date: Date?
14 | let closeRange: ClosedRange<Date>
:
29 | }
30 |
31 | internal var body: some View {
| `- note: add @available attribute to enclosing property
32 | VStack(spacing: 0) {
33 | if let date = date {
:
43 | }
44 |
45 | if !hideMarkers {
| |- error: 'buildIf' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
46 | ZStack {
47 |
/Users/admin/builder/spi-builder-workspace/Sources/FXDatePicker/Views/DayView.swift:57:13: error: 'buildIf' is only available in macOS 10.15 or newer
10 |
11 | @available(iOS 14.0, *)
12 | internal struct DayView: View {
| `- note: add @available attribute to enclosing struct
13 | let date: Date?
14 | let closeRange: ClosedRange<Date>
:
29 | }
30 |
31 | internal var body: some View {
| `- note: add @available attribute to enclosing property
32 | VStack(spacing: 0) {
33 | if let date = date {
:
55 | }
56 | .frame(height: imageSize + 10)
57 | }
| |- error: 'buildIf' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
58 | }
59 | .frame(height: hideMarkers == false ? 50 : 40)
/Users/admin/builder/spi-builder-workspace/Sources/FXDatePicker/Views/DayView.swift:32:28: warning: conformance of 'Optional<Wrapped>' to 'View' is only available in macOS 10.15 or newer; this is an error in the Swift 6 language mode
10 |
11 | @available(iOS 14.0, *)
12 | internal struct DayView: View {
| `- note: add @available attribute to enclosing struct
13 | let date: Date?
14 | let closeRange: ClosedRange<Date>
:
29 | }
30 |
31 | internal var body: some View {
| `- note: add @available attribute to enclosing property
32 | VStack(spacing: 0) {
| |- warning: conformance of 'Optional<Wrapped>' to 'View' is only available in macOS 10.15 or newer; this is an error in the Swift 6 language mode
| `- note: add 'if #available' version check
33 | if let date = date {
34 | Text(dayFormatter.string(from: date))
/Users/admin/builder/spi-builder-workspace/Sources/FXDatePicker/Views/DayView.swift:32:28: warning: conformance of 'Optional<Wrapped>' to 'View' is only available in macOS 10.15 or newer; this is an error in the Swift 6 language mode
10 |
11 | @available(iOS 14.0, *)
12 | internal struct DayView: View {
| `- note: add @available attribute to enclosing struct
13 | let date: Date?
14 | let closeRange: ClosedRange<Date>
:
29 | }
30 |
31 | internal var body: some View {
| `- note: add @available attribute to enclosing property
32 | VStack(spacing: 0) {
| |- warning: conformance of 'Optional<Wrapped>' to 'View' is only available in macOS 10.15 or newer; this is an error in the Swift 6 language mode
| `- note: add 'if #available' version check
33 | if let date = date {
34 | Text(dayFormatter.string(from: date))
/Users/admin/builder/spi-builder-workspace/Sources/FXDatePicker/Views/DayView.swift:59:10: error: 'frame(width:height:alignment:)' is only available in macOS 10.15 or newer
10 |
11 | @available(iOS 14.0, *)
12 | internal struct DayView: View {
| `- note: add @available attribute to enclosing struct
13 | let date: Date?
14 | let closeRange: ClosedRange<Date>
:
29 | }
30 |
31 | internal var body: some View {
| `- note: add @available attribute to enclosing property
32 | VStack(spacing: 0) {
33 | if let date = date {
:
57 | }
58 | }
59 | .frame(height: hideMarkers == false ? 50 : 40)
| |- error: 'frame(width:height:alignment:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
60 | }
61 |
/Users/admin/builder/spi-builder-workspace/Sources/FXDatePicker/Views/DayView.swift:70:13: error: 'Image' is only available in macOS 10.15 or newer
62 | }
63 |
64 | extension DayView {
| `- note: add @available attribute to enclosing extension
65 |
66 | @ViewBuilder func specialDateImage(_ specialDate: SpecialDate) -> some View {
| `- note: add @available attribute to enclosing instance method
67 | switch specialDate.dateType {
68 | case .image(let imageType):
69 |
70 | Image(imageType.imageName)
| |- error: 'Image' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
71 | .resizable()
72 | .scaledToFit()
/Users/admin/builder/spi-builder-workspace/Sources/FXDatePicker/Views/DayView.swift:70:13: error: 'init(_:bundle:)' is only available in macOS 10.15 or newer
62 | }
63 |
64 | extension DayView {
| `- note: add @available attribute to enclosing extension
65 |
66 | @ViewBuilder func specialDateImage(_ specialDate: SpecialDate) -> some View {
| `- note: add @available attribute to enclosing instance method
67 | switch specialDate.dateType {
68 | case .image(let imageType):
69 |
70 | Image(imageType.imageName)
| |- error: 'init(_:bundle:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
71 | .resizable()
72 | .scaledToFit()
/Users/admin/builder/spi-builder-workspace/Sources/FXDatePicker/Views/DayView.swift:71:18: error: 'resizable(capInsets:resizingMode:)' is only available in macOS 10.15 or newer
62 | }
63 |
64 | extension DayView {
| `- note: add @available attribute to enclosing extension
65 |
66 | @ViewBuilder func specialDateImage(_ specialDate: SpecialDate) -> some View {
| `- note: add @available attribute to enclosing instance method
67 | switch specialDate.dateType {
68 | case .image(let imageType):
69 |
70 | Image(imageType.imageName)
71 | .resizable()
| |- error: 'resizable(capInsets:resizingMode:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
72 | .scaledToFit()
73 |
/Users/admin/builder/spi-builder-workspace/Sources/FXDatePicker/Views/DayView.swift:72:18: error: 'scaledToFit()' is only available in macOS 10.15 or newer
62 | }
63 |
64 | extension DayView {
| `- note: add @available attribute to enclosing extension
65 |
66 | @ViewBuilder func specialDateImage(_ specialDate: SpecialDate) -> some View {
| `- note: add @available attribute to enclosing instance method
67 | switch specialDate.dateType {
68 | case .image(let imageType):
:
70 | Image(imageType.imageName)
71 | .resizable()
72 | .scaledToFit()
| |- error: 'scaledToFit()' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
73 |
74 | case .sfSymbols(let sfSymbolsType):
/Users/admin/builder/spi-builder-workspace/Sources/FXDatePicker/Views/DayView.swift:70:13: error: 'buildEither(first:)' is only available in macOS 10.15 or newer
62 | }
63 |
64 | extension DayView {
| `- note: add @available attribute to enclosing extension
65 |
66 | @ViewBuilder func specialDateImage(_ specialDate: SpecialDate) -> some View {
| `- note: add @available attribute to enclosing instance method
67 | switch specialDate.dateType {
68 | case .image(let imageType):
69 |
70 | Image(imageType.imageName)
| |- error: 'buildEither(first:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
71 | .resizable()
72 | .scaledToFit()
/Users/admin/builder/spi-builder-workspace/Sources/FXDatePicker/Views/DayView.swift:75:13: error: 'Image' is only available in macOS 10.15 or newer
62 | }
63 |
64 | extension DayView {
| `- note: add @available attribute to enclosing extension
65 |
66 | @ViewBuilder func specialDateImage(_ specialDate: SpecialDate) -> some View {
| `- note: add @available attribute to enclosing instance method
67 | switch specialDate.dateType {
68 | case .image(let imageType):
:
73 |
74 | case .sfSymbols(let sfSymbolsType):
75 | Image(systemName: sfSymbolsType.imageName)
| |- error: 'Image' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
76 | .foregroundColor(sfSymbolsType.color)
77 |
/Users/admin/builder/spi-builder-workspace/Sources/FXDatePicker/Views/DayView.swift:75:13: error: 'init(systemName:)' is only available in macOS 11.0 or newer
62 | }
63 |
64 | extension DayView {
| `- note: add @available attribute to enclosing extension
65 |
66 | @ViewBuilder func specialDateImage(_ specialDate: SpecialDate) -> some View {
| `- note: add @available attribute to enclosing instance method
67 | switch specialDate.dateType {
68 | case .image(let imageType):
:
73 |
74 | case .sfSymbols(let sfSymbolsType):
75 | Image(systemName: sfSymbolsType.imageName)
| |- error: 'init(systemName:)' is only available in macOS 11.0 or newer
| `- note: add 'if #available' version check
76 | .foregroundColor(sfSymbolsType.color)
77 |
/Users/admin/builder/spi-builder-workspace/Sources/FXDatePicker/Views/DayView.swift:76:18: error: 'foregroundColor' is only available in macOS 10.15 or newer
62 | }
63 |
64 | extension DayView {
| `- note: add @available attribute to enclosing extension
65 |
66 | @ViewBuilder func specialDateImage(_ specialDate: SpecialDate) -> some View {
| `- note: add @available attribute to enclosing instance method
67 | switch specialDate.dateType {
68 | case .image(let imageType):
:
74 | case .sfSymbols(let sfSymbolsType):
75 | Image(systemName: sfSymbolsType.imageName)
76 | .foregroundColor(sfSymbolsType.color)
| |- error: 'foregroundColor' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
77 |
78 | }
/Users/admin/builder/spi-builder-workspace/Sources/FXDatePicker/Views/DayView.swift:75:13: error: 'buildEither(second:)' is only available in macOS 10.15 or newer
62 | }
63 |
64 | extension DayView {
| `- note: add @available attribute to enclosing extension
65 |
66 | @ViewBuilder func specialDateImage(_ specialDate: SpecialDate) -> some View {
| `- note: add @available attribute to enclosing instance method
67 | switch specialDate.dateType {
68 | case .image(let imageType):
:
73 |
74 | case .sfSymbols(let sfSymbolsType):
75 | Image(systemName: sfSymbolsType.imageName)
| |- error: 'buildEither(second:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
76 | .foregroundColor(sfSymbolsType.color)
77 |
/Users/admin/builder/spi-builder-workspace/Sources/FXDatePicker/Views/DayView.swift:66:81: 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
62 | }
63 |
64 | extension DayView {
| `- note: add @available attribute to enclosing extension
65 |
66 | @ViewBuilder func specialDateImage(_ specialDate: SpecialDate) -> 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
67 | switch specialDate.dateType {
68 | case .image(let imageType):
/Users/admin/builder/spi-builder-workspace/Sources/FXDatePicker/Views/DayView.swift:84:20: error: 'Color' is only available in macOS 10.15 or newer
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 {
| `- note: add @available attribute to enclosing instance method
82 | if !isInRange {
83 | // Gray out the day if it's not in range
84 | return Color.gray
| |- error: 'Color' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
85 | } else if isSelected {
86 | // Selected day color
/Users/admin/builder/spi-builder-workspace/Sources/FXDatePicker/Views/DayView.swift:84:26: error: 'gray' is only available in macOS 10.15 or newer
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 {
| `- note: add @available attribute to enclosing instance method
82 | if !isInRange {
83 | // Gray out the day if it's not in range
84 | return Color.gray
| |- error: 'gray' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
85 | } else if isSelected {
86 | // Selected day color
/Users/admin/builder/spi-builder-workspace/Sources/FXDatePicker/Views/DayView.swift:87:31: error: 'white' is only available in macOS 10.15 or newer
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 {
| `- note: add @available attribute to enclosing instance method
82 | if !isInRange {
83 | // Gray out the day if it's not in range
:
85 | } else if isSelected {
86 | // Selected day color
87 | return isToday ? .white : theme.main.accentColor
| |- error: 'white' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
88 | } else if isToday {
89 | // Today's color if not selected
[16/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):
[17/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):
BUILD FAILURE 6.0 macosSpm