Build Information
Failed to build SimpleCalendar, reference main (86793d
), with Swift 6.1 for macOS (SPM) on 27 Apr 2025 21:12:09 UTC.
Build Command
env DEVELOPER_DIR=/Applications/Xcode-16.3.0.app xcrun swift build --arch arm64
Build Log
21 | Divider()
22 | .frame(height: 1)
/Users/admin/builder/spi-builder-workspace/Sources/SimpleCalendar/Views/CalendarTimelineView.swift:21:17: error: 'Divider' is only available in macOS 10.15 or newer
7 | import Combine
8 |
9 | struct CalendarTimelineView: View {
| `- note: add @available attribute to enclosing struct
10 | let startHourOfDay: Int
11 | @Binding var hourSpacing: Double
:
16 | private let timer = Timer.publish(every: 60, on: .main, in: .common).autoconnect()
17 |
18 | var body: some View {
| `- note: add @available attribute to enclosing property
19 | GeometryReader { _ in
20 | VStack {
21 | Divider()
| |- error: 'Divider' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
22 | .frame(height: 1)
23 | .overlay(Color.red)
/Users/admin/builder/spi-builder-workspace/Sources/SimpleCalendar/Views/CalendarTimelineView.swift:22:22: error: 'frame(width:height:alignment:)' is only available in macOS 10.15 or newer
7 | import Combine
8 |
9 | struct CalendarTimelineView: View {
| `- note: add @available attribute to enclosing struct
10 | let startHourOfDay: Int
11 | @Binding var hourSpacing: Double
:
16 | private let timer = Timer.publish(every: 60, on: .main, in: .common).autoconnect()
17 |
18 | var body: some View {
| `- note: add @available attribute to enclosing property
19 | GeometryReader { _ in
20 | VStack {
21 | Divider()
22 | .frame(height: 1)
| |- error: 'frame(width:height:alignment:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
23 | .overlay(Color.red)
24 | .offset(CGSize(width: 0, height: timelineOffset))
/Users/admin/builder/spi-builder-workspace/Sources/SimpleCalendar/Views/CalendarTimelineView.swift:23:22: error: 'overlay(_:ignoresSafeAreaEdges:)' is only available in macOS 12.0 or newer
7 | import Combine
8 |
9 | struct CalendarTimelineView: View {
| `- note: add @available attribute to enclosing struct
10 | let startHourOfDay: Int
11 | @Binding var hourSpacing: Double
:
16 | private let timer = Timer.publish(every: 60, on: .main, in: .common).autoconnect()
17 |
18 | var body: some View {
| `- note: add @available attribute to enclosing property
19 | GeometryReader { _ in
20 | VStack {
21 | Divider()
22 | .frame(height: 1)
23 | .overlay(Color.red)
| |- error: 'overlay(_:ignoresSafeAreaEdges:)' is only available in macOS 12.0 or newer
| `- note: add 'if #available' version check
24 | .offset(CGSize(width: 0, height: timelineOffset))
25 | .padding(.vertical, 8)
/Users/admin/builder/spi-builder-workspace/Sources/SimpleCalendar/Views/CalendarTimelineView.swift:23:30: error: 'Color' is only available in macOS 10.15 or newer
7 | import Combine
8 |
9 | struct CalendarTimelineView: View {
| `- note: add @available attribute to enclosing struct
10 | let startHourOfDay: Int
11 | @Binding var hourSpacing: Double
:
16 | private let timer = Timer.publish(every: 60, on: .main, in: .common).autoconnect()
17 |
18 | var body: some View {
| `- note: add @available attribute to enclosing property
19 | GeometryReader { _ in
20 | VStack {
21 | Divider()
22 | .frame(height: 1)
23 | .overlay(Color.red)
| |- error: 'Color' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
24 | .offset(CGSize(width: 0, height: timelineOffset))
25 | .padding(.vertical, 8)
/Users/admin/builder/spi-builder-workspace/Sources/SimpleCalendar/Views/CalendarTimelineView.swift:23:36: error: 'red' is only available in macOS 10.15 or newer
7 | import Combine
8 |
9 | struct CalendarTimelineView: View {
| `- note: add @available attribute to enclosing struct
10 | let startHourOfDay: Int
11 | @Binding var hourSpacing: Double
:
16 | private let timer = Timer.publish(every: 60, on: .main, in: .common).autoconnect()
17 |
18 | var body: some View {
| `- note: add @available attribute to enclosing property
19 | GeometryReader { _ in
20 | VStack {
21 | Divider()
22 | .frame(height: 1)
23 | .overlay(Color.red)
| |- error: 'red' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
24 | .offset(CGSize(width: 0, height: timelineOffset))
25 | .padding(.vertical, 8)
/Users/admin/builder/spi-builder-workspace/Sources/SimpleCalendar/Views/CalendarTimelineView.swift:24:22: error: 'offset' is only available in macOS 10.15 or newer
7 | import Combine
8 |
9 | struct CalendarTimelineView: View {
| `- note: add @available attribute to enclosing struct
10 | let startHourOfDay: Int
11 | @Binding var hourSpacing: Double
:
16 | private let timer = Timer.publish(every: 60, on: .main, in: .common).autoconnect()
17 |
18 | var body: some View {
| `- note: add @available attribute to enclosing property
19 | GeometryReader { _ in
20 | VStack {
:
22 | .frame(height: 1)
23 | .overlay(Color.red)
24 | .offset(CGSize(width: 0, height: timelineOffset))
| |- error: 'offset' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
25 | .padding(.vertical, 8)
26 | }
/Users/admin/builder/spi-builder-workspace/Sources/SimpleCalendar/Views/CalendarTimelineView.swift:25:22: error: 'padding' is only available in macOS 10.15 or newer
7 | import Combine
8 |
9 | struct CalendarTimelineView: View {
| `- note: add @available attribute to enclosing struct
10 | let startHourOfDay: Int
11 | @Binding var hourSpacing: Double
:
16 | private let timer = Timer.publish(every: 60, on: .main, in: .common).autoconnect()
17 |
18 | var body: some View {
| `- note: add @available attribute to enclosing property
19 | GeometryReader { _ in
20 | VStack {
:
23 | .overlay(Color.red)
24 | .offset(CGSize(width: 0, height: timelineOffset))
25 | .padding(.vertical, 8)
| |- error: 'padding' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
26 | }
27 | .padding(.horizontal, 16)
/Users/admin/builder/spi-builder-workspace/Sources/SimpleCalendar/Views/CalendarTimelineView.swift:27:14: error: 'padding' is only available in macOS 10.15 or newer
7 | import Combine
8 |
9 | struct CalendarTimelineView: View {
| `- note: add @available attribute to enclosing struct
10 | let startHourOfDay: Int
11 | @Binding var hourSpacing: Double
:
16 | private let timer = Timer.publish(every: 60, on: .main, in: .common).autoconnect()
17 |
18 | var body: some View {
| `- note: add @available attribute to enclosing property
19 | GeometryReader { _ in
20 | VStack {
:
25 | .padding(.vertical, 8)
26 | }
27 | .padding(.horizontal, 16)
| |- error: 'padding' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
28 | .onAppear {
29 | calculateOffset()
/Users/admin/builder/spi-builder-workspace/Sources/SimpleCalendar/Views/CalendarTimelineView.swift:28:14: error: 'onAppear(perform:)' is only available in macOS 10.15 or newer
7 | import Combine
8 |
9 | struct CalendarTimelineView: View {
| `- note: add @available attribute to enclosing struct
10 | let startHourOfDay: Int
11 | @Binding var hourSpacing: Double
:
16 | private let timer = Timer.publish(every: 60, on: .main, in: .common).autoconnect()
17 |
18 | var body: some View {
| `- note: add @available attribute to enclosing property
19 | GeometryReader { _ in
20 | VStack {
:
26 | }
27 | .padding(.horizontal, 16)
28 | .onAppear {
| |- error: 'onAppear(perform:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
29 | calculateOffset()
30 | }
/Users/admin/builder/spi-builder-workspace/Sources/SimpleCalendar/Views/CalendarTimelineView.swift:32:10: error: 'onReceive(_:perform:)' is only available in macOS 10.15 or newer
7 | import Combine
8 |
9 | struct CalendarTimelineView: View {
| `- note: add @available attribute to enclosing struct
10 | let startHourOfDay: Int
11 | @Binding var hourSpacing: Double
:
16 | private let timer = Timer.publish(every: 60, on: .main, in: .common).autoconnect()
17 |
18 | var body: some View {
| `- note: add @available attribute to enclosing property
19 | GeometryReader { _ in
20 | VStack {
:
30 | }
31 | }
32 | .onReceive(timer) { _ in
| |- error: 'onReceive(_:perform:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
33 | calculateOffset()
34 | }
/Users/admin/builder/spi-builder-workspace/Sources/SimpleCalendar/Views/CalendarTimelineView.swift:41:9: error: setter for 'timelineOffset' is only available in macOS 10.15 or newer
7 | import Combine
8 |
9 | struct CalendarTimelineView: View {
| `- note: add @available attribute to enclosing struct
10 | let startHourOfDay: Int
11 | @Binding var hourSpacing: Double
:
35 | }
36 |
37 | func calculateOffset() {
| `- note: add @available attribute to enclosing instance method
38 | let actualHourHeight = hourHeight + hourSpacing
39 | let heightPerSecond = (actualHourHeight / 60) / 60
40 | let secondsSinceStartOfDay = abs(Date().atHour(startHourOfDay)?.timeIntervalSinceNow ?? 0)
41 | timelineOffset = secondsSinceStartOfDay * heightPerSecond
| |- error: setter for 'timelineOffset' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
42 | }
43 | }
/Users/admin/builder/spi-builder-workspace/Sources/SimpleCalendar/Views/CalendarTimelineView.swift:47:9: error: 'ScrollView' is only available in macOS 10.15 or newer
43 | }
44 |
45 | struct CalendarTimelineView_Previews: PreviewProvider {
| `- note: add @available attribute to enclosing struct
46 | static var previews: some View {
| `- note: add @available attribute to enclosing static property
47 | ScrollView {
| |- error: 'ScrollView' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
48 | VStack {
49 | ZStack {
/Users/admin/builder/spi-builder-workspace/Sources/SimpleCalendar/Views/CalendarTimelineView.swift:47:9: error: 'init(_:content:)' is only available in macOS 10.15 or newer
43 | }
44 |
45 | struct CalendarTimelineView_Previews: PreviewProvider {
| `- note: add @available attribute to enclosing struct
46 | static var previews: some View {
| `- note: add @available attribute to enclosing static property
47 | ScrollView {
| |- error: 'init(_:content:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
48 | VStack {
49 | ZStack {
/Users/admin/builder/spi-builder-workspace/Sources/SimpleCalendar/Views/CalendarTimelineView.swift:48:13: error: 'VStack' is only available in macOS 10.15 or newer
43 | }
44 |
45 | struct CalendarTimelineView_Previews: PreviewProvider {
| `- note: add @available attribute to enclosing struct
46 | static var previews: some View {
| `- note: add @available attribute to enclosing static property
47 | ScrollView {
48 | VStack {
| |- error: 'VStack' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
49 | ZStack {
50 | CalendarTimelineView(
/Users/admin/builder/spi-builder-workspace/Sources/SimpleCalendar/Views/CalendarTimelineView.swift:49:17: error: 'ZStack' is only available in macOS 10.15 or newer
43 | }
44 |
45 | struct CalendarTimelineView_Previews: PreviewProvider {
| `- note: add @available attribute to enclosing struct
46 | static var previews: some View {
| `- note: add @available attribute to enclosing static property
47 | ScrollView {
48 | VStack {
49 | ZStack {
| |- error: 'ZStack' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
50 | CalendarTimelineView(
51 | startHourOfDay: 6,
/Users/admin/builder/spi-builder-workspace/Sources/SimpleCalendar/Views/CalendarTimelineView.swift:56:18: error: 'frame(width:height:alignment:)' is only available in macOS 10.15 or newer
43 | }
44 |
45 | struct CalendarTimelineView_Previews: PreviewProvider {
| `- note: add @available attribute to enclosing struct
46 | static var previews: some View {
| `- note: add @available attribute to enclosing static property
47 | ScrollView {
48 | VStack {
:
54 | )
55 | }
56 | .frame(height: 580)
| |- error: 'frame(width:height:alignment:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
57 | Spacer()
58 | Text("End of view")
/Users/admin/builder/spi-builder-workspace/Sources/SimpleCalendar/Views/CalendarTimelineView.swift:57:17: warning: conformance of 'Spacer' to 'View' is only available in macOS 10.15 or newer; this is an error in the Swift 6 language mode
43 | }
44 |
45 | struct CalendarTimelineView_Previews: PreviewProvider {
| `- note: add @available attribute to enclosing struct
46 | static var previews: some View {
| `- note: add @available attribute to enclosing static property
47 | ScrollView {
48 | VStack {
:
55 | }
56 | .frame(height: 580)
57 | Spacer()
| |- warning: conformance of 'Spacer' to 'View' is only available in macOS 10.15 or newer; this is an error in the Swift 6 language mode
| `- note: add 'if #available' version check
58 | Text("End of view")
59 | }
/Users/admin/builder/spi-builder-workspace/Sources/SimpleCalendar/Views/CalendarTimelineView.swift:57:17: error: 'Spacer' is only available in macOS 10.15 or newer
43 | }
44 |
45 | struct CalendarTimelineView_Previews: PreviewProvider {
| `- note: add @available attribute to enclosing struct
46 | static var previews: some View {
| `- note: add @available attribute to enclosing static property
47 | ScrollView {
48 | VStack {
:
55 | }
56 | .frame(height: 580)
57 | Spacer()
| |- error: 'Spacer' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
58 | Text("End of view")
59 | }
/Users/admin/builder/spi-builder-workspace/Sources/SimpleCalendar/Views/CalendarTimelineView.swift:58:17: warning: conformance of 'Text' to 'View' is only available in macOS 10.15 or newer; this is an error in the Swift 6 language mode
43 | }
44 |
45 | struct CalendarTimelineView_Previews: PreviewProvider {
| `- note: add @available attribute to enclosing struct
46 | static var previews: some View {
| `- note: add @available attribute to enclosing static property
47 | ScrollView {
48 | VStack {
:
56 | .frame(height: 580)
57 | Spacer()
58 | Text("End of view")
| |- warning: conformance of 'Text' to 'View' is only available in macOS 10.15 or newer; this is an error in the Swift 6 language mode
| `- note: add 'if #available' version check
59 | }
60 | }
/Users/admin/builder/spi-builder-workspace/Sources/SimpleCalendar/Views/CalendarTimelineView.swift:58:17: error: 'Text' is only available in macOS 10.15 or newer
43 | }
44 |
45 | struct CalendarTimelineView_Previews: PreviewProvider {
| `- note: add @available attribute to enclosing struct
46 | static var previews: some View {
| `- note: add @available attribute to enclosing static property
47 | ScrollView {
48 | VStack {
:
56 | .frame(height: 580)
57 | Spacer()
58 | Text("End of view")
| |- error: 'Text' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
59 | }
60 | }
/Users/admin/builder/spi-builder-workspace/Sources/SimpleCalendar/Views/CalendarTimelineView.swift:48:20: warning: conformance of 'Spacer' to 'View' is only available in macOS 10.15 or newer; this is an error in the Swift 6 language mode
43 | }
44 |
45 | struct CalendarTimelineView_Previews: PreviewProvider {
| `- note: add @available attribute to enclosing struct
46 | static var previews: some View {
| `- note: add @available attribute to enclosing static property
47 | ScrollView {
48 | VStack {
| |- warning: conformance of 'Spacer' to 'View' is only available in macOS 10.15 or newer; this is an error in the Swift 6 language mode
| `- note: add 'if #available' version check
49 | ZStack {
50 | CalendarTimelineView(
/Users/admin/builder/spi-builder-workspace/Sources/SimpleCalendar/Views/CalendarTimelineView.swift:48:20: warning: conformance of 'Text' to 'View' is only available in macOS 10.15 or newer; this is an error in the Swift 6 language mode
43 | }
44 |
45 | struct CalendarTimelineView_Previews: PreviewProvider {
| `- note: add @available attribute to enclosing struct
46 | static var previews: some View {
| `- note: add @available attribute to enclosing static property
47 | ScrollView {
48 | VStack {
| |- 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
49 | ZStack {
50 | CalendarTimelineView(
[11/12] Compiling SimpleCalendar Date+Formatting.swift
/Users/admin/builder/spi-builder-workspace/Sources/SimpleCalendar/Extensions/Date+Formatting.swift:12:9: error: 'RelativeDateTimeFormatter' is only available in macOS 10.15 or newer
8 | import Foundation
9 |
10 | extension Date {
| `- note: add @available attribute to enclosing extension
11 | func relativeDateDisplay() -> String {
| `- note: add @available attribute to enclosing instance method
12 | RelativeDateTimeFormatter().localizedString(for: self, relativeTo: Date())
| |- error: 'RelativeDateTimeFormatter' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
13 | }
14 |
[12/12] Compiling SimpleCalendar EventView.swift
/Users/admin/builder/spi-builder-workspace/Sources/SimpleCalendar/Views/EventView.swift:15:6: error: 'State' is only available in macOS 10.15 or newer
8 | import SwiftUI
9 |
10 | struct EventView: View {
| `- note: add @available attribute to enclosing struct
11 | let event: any CalendarEventRepresentable
12 | let selectionAction: SelectionAction
13 |
14 | // For opening Event details
15 | @State private var showEventSheet = false
| `- error: 'State' is only available in macOS 10.15 or newer
16 |
17 | var body: some View {
/Users/admin/builder/spi-builder-workspace/Sources/SimpleCalendar/Views/EventView.swift:17:20: error: 'View' is only available in macOS 10.15 or newer
8 | import SwiftUI
9 |
10 | struct EventView: View {
| `- note: add @available attribute to enclosing struct
11 | let event: any CalendarEventRepresentable
12 | let selectionAction: SelectionAction
:
15 | @State private var showEventSheet = false
16 |
17 | var body: some View {
| | `- error: 'View' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing property
18 | VStack {
19 | if case .destination(let customView) = selectionAction {
/Users/admin/builder/spi-builder-workspace/Sources/SimpleCalendar/Views/EventView.swift:51:31: error: 'View' is only available in macOS 10.15 or newer
8 | import SwiftUI
9 |
10 | struct EventView: View {
| `- note: add @available attribute to enclosing struct
11 | let event: any CalendarEventRepresentable
12 | let selectionAction: SelectionAction
:
49 | }
50 |
51 | private var content: some View {
| | `- error: 'View' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing property
52 | let mainColor = event.calendarActivity.activityType.color
53 | let endDate = event.startDate.addingTimeInterval(event.calendarActivity.duration)
/Users/admin/builder/spi-builder-workspace/Sources/SimpleCalendar/Views/EventView.swift:151:31: error: 'View' is only available in macOS 10.15 or newer
148 | }
149 |
150 | struct EventView_Previews: PreviewProvider {
| `- note: add @available attribute to enclosing struct
151 | static var previews: some View {
| | `- error: 'View' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing static property
152 | let activity15min = CalendarActivity.forPreview(duration: 60 * 15)
153 | let activity30min = CalendarActivity.forPreview(duration: 60 * 30)
/Users/admin/builder/spi-builder-workspace/Sources/SimpleCalendar/Views/EventView.swift:18: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
8 | import SwiftUI
9 |
10 | struct EventView: View {
| `- note: add @available attribute to enclosing struct
11 | let event: any CalendarEventRepresentable
12 | let selectionAction: SelectionAction
:
15 | @State private var showEventSheet = false
16 |
17 | var body: some View {
| `- note: add @available attribute to enclosing property
18 | VStack {
| |- 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
19 | if case .destination(let customView) = selectionAction {
20 | NavigationLink {
/Users/admin/builder/spi-builder-workspace/Sources/SimpleCalendar/Views/EventView.swift:18:9: error: 'VStack' is only available in macOS 10.15 or newer
8 | import SwiftUI
9 |
10 | struct EventView: View {
| `- note: add @available attribute to enclosing struct
11 | let event: any CalendarEventRepresentable
12 | let selectionAction: SelectionAction
:
15 | @State private var showEventSheet = false
16 |
17 | var body: some View {
| `- note: add @available attribute to enclosing property
18 | VStack {
| |- error: 'VStack' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
19 | if case .destination(let customView) = selectionAction {
20 | NavigationLink {
/Users/admin/builder/spi-builder-workspace/Sources/SimpleCalendar/Views/EventView.swift:18: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
8 | import SwiftUI
9 |
10 | struct EventView: View {
| `- note: add @available attribute to enclosing struct
11 | let event: any CalendarEventRepresentable
12 | let selectionAction: SelectionAction
:
15 | @State private var showEventSheet = false
16 |
17 | var body: some View {
| `- note: add @available attribute to enclosing property
18 | VStack {
| |- 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
19 | if case .destination(let customView) = selectionAction {
20 | NavigationLink {
/Users/admin/builder/spi-builder-workspace/Sources/SimpleCalendar/Views/EventView.swift:18: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
8 | import SwiftUI
9 |
10 | struct EventView: View {
| `- note: add @available attribute to enclosing struct
11 | let event: any CalendarEventRepresentable
12 | let selectionAction: SelectionAction
:
15 | @State private var showEventSheet = false
16 |
17 | var body: some View {
| `- note: add @available attribute to enclosing property
18 | VStack {
| |- 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
19 | if case .destination(let customView) = selectionAction {
20 | NavigationLink {
/Users/admin/builder/spi-builder-workspace/Sources/SimpleCalendar/Views/EventView.swift:20:17: error: 'NavigationLink' is only available in macOS 10.15 or newer
8 | import SwiftUI
9 |
10 | struct EventView: View {
| `- note: add @available attribute to enclosing struct
11 | let event: any CalendarEventRepresentable
12 | let selectionAction: SelectionAction
:
15 | @State private var showEventSheet = false
16 |
17 | var body: some View {
| `- note: add @available attribute to enclosing property
18 | VStack {
19 | if case .destination(let customView) = selectionAction {
20 | NavigationLink {
| |- error: 'NavigationLink' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
21 | AnyView(customView(event))
22 | } label: {
/Users/admin/builder/spi-builder-workspace/Sources/SimpleCalendar/Views/EventView.swift:21:21: error: 'AnyView' is only available in macOS 10.15 or newer
8 | import SwiftUI
9 |
10 | struct EventView: View {
| `- note: add @available attribute to enclosing struct
11 | let event: any CalendarEventRepresentable
12 | let selectionAction: SelectionAction
:
15 | @State private var showEventSheet = false
16 |
17 | var body: some View {
| `- note: add @available attribute to enclosing property
18 | VStack {
19 | if case .destination(let customView) = selectionAction {
20 | NavigationLink {
21 | AnyView(customView(event))
| |- error: 'AnyView' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
22 | } label: {
23 | content
/Users/admin/builder/spi-builder-workspace/Sources/SimpleCalendar/Views/EventView.swift:19:68: error: 'buildEither(first:)' is only available in macOS 10.15 or newer
8 | import SwiftUI
9 |
10 | struct EventView: View {
| `- note: add @available attribute to enclosing struct
11 | let event: any CalendarEventRepresentable
12 | let selectionAction: SelectionAction
:
15 | @State private var showEventSheet = false
16 |
17 | var body: some View {
| `- note: add @available attribute to enclosing property
18 | VStack {
19 | if case .destination(let customView) = selectionAction {
| |- error: 'buildEither(first:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
20 | NavigationLink {
21 | AnyView(customView(event))
/Users/admin/builder/spi-builder-workspace/Sources/SimpleCalendar/Views/EventView.swift:27:22: error: 'onTapGesture(count:perform:)' is only available in macOS 10.15 or newer
8 | import SwiftUI
9 |
10 | struct EventView: View {
| `- note: add @available attribute to enclosing struct
11 | let event: any CalendarEventRepresentable
12 | let selectionAction: SelectionAction
:
15 | @State private var showEventSheet = false
16 |
17 | var body: some View {
| `- note: add @available attribute to enclosing property
18 | VStack {
19 | if case .destination(let customView) = selectionAction {
:
25 | } else {
26 | content
27 | .onTapGesture {
| |- error: 'onTapGesture(count:perform:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
28 | switch selectionAction {
29 | case .sheet, .customSheet:
/Users/admin/builder/spi-builder-workspace/Sources/SimpleCalendar/Views/EventView.swift:30:29: error: setter for 'showEventSheet' is only available in macOS 10.15 or newer
8 | import SwiftUI
9 |
10 | struct EventView: View {
| `- note: add @available attribute to enclosing struct
11 | let event: any CalendarEventRepresentable
12 | let selectionAction: SelectionAction
:
15 | @State private var showEventSheet = false
16 |
17 | var body: some View {
| `- note: add @available attribute to enclosing property
18 | VStack {
19 | if case .destination(let customView) = selectionAction {
:
28 | switch selectionAction {
29 | case .sheet, .customSheet:
30 | showEventSheet = true
| |- error: setter for 'showEventSheet' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
31 | case .inform(let closure):
32 | closure(event)
/Users/admin/builder/spi-builder-workspace/Sources/SimpleCalendar/Views/EventView.swift:37:22: error: 'sheet(isPresented:onDismiss:content:)' is only available in macOS 10.15 or newer
8 | import SwiftUI
9 |
10 | struct EventView: View {
| `- note: add @available attribute to enclosing struct
11 | let event: any CalendarEventRepresentable
12 | let selectionAction: SelectionAction
:
15 | @State private var showEventSheet = false
16 |
17 | var body: some View {
| `- note: add @available attribute to enclosing property
18 | VStack {
19 | if case .destination(let customView) = selectionAction {
:
35 | }
36 | }
37 | .sheet(isPresented: $showEventSheet) {
| |- error: 'sheet(isPresented:onDismiss:content:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
38 | ZStack {
39 | if case .customSheet(let customView) = selectionAction {
/Users/admin/builder/spi-builder-workspace/Sources/SimpleCalendar/Views/EventView.swift:37:58: 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
8 | import SwiftUI
9 |
10 | struct EventView: View {
| `- note: add @available attribute to enclosing struct
11 | let event: any CalendarEventRepresentable
12 | let selectionAction: SelectionAction
:
15 | @State private var showEventSheet = false
16 |
17 | var body: some View {
| `- note: add @available attribute to enclosing property
18 | VStack {
19 | if case .destination(let customView) = selectionAction {
:
35 | }
36 | }
37 | .sheet(isPresented: $showEventSheet) {
| |- 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
38 | ZStack {
39 | if case .customSheet(let customView) = selectionAction {
/Users/admin/builder/spi-builder-workspace/Sources/SimpleCalendar/Views/EventView.swift:38:25: error: 'ZStack' is only available in macOS 10.15 or newer
8 | import SwiftUI
9 |
10 | struct EventView: View {
| `- note: add @available attribute to enclosing struct
11 | let event: any CalendarEventRepresentable
12 | let selectionAction: SelectionAction
:
15 | @State private var showEventSheet = false
16 |
17 | var body: some View {
| `- note: add @available attribute to enclosing property
18 | VStack {
19 | if case .destination(let customView) = selectionAction {
:
36 | }
37 | .sheet(isPresented: $showEventSheet) {
38 | ZStack {
| |- error: 'ZStack' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
39 | if case .customSheet(let customView) = selectionAction {
40 | AnyView(customView(event))
/Users/admin/builder/spi-builder-workspace/Sources/SimpleCalendar/Views/EventView.swift:38: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
8 | import SwiftUI
9 |
10 | struct EventView: View {
| `- note: add @available attribute to enclosing struct
11 | let event: any CalendarEventRepresentable
12 | let selectionAction: SelectionAction
:
15 | @State private var showEventSheet = false
16 |
17 | var body: some View {
| `- note: add @available attribute to enclosing property
18 | VStack {
19 | if case .destination(let customView) = selectionAction {
:
36 | }
37 | .sheet(isPresented: $showEventSheet) {
38 | 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
39 | if case .customSheet(let customView) = selectionAction {
40 | AnyView(customView(event))
/Users/admin/builder/spi-builder-workspace/Sources/SimpleCalendar/Views/EventView.swift:40:33: error: 'AnyView' is only available in macOS 10.15 or newer
8 | import SwiftUI
9 |
10 | struct EventView: View {
| `- note: add @available attribute to enclosing struct
11 | let event: any CalendarEventRepresentable
12 | let selectionAction: SelectionAction
:
15 | @State private var showEventSheet = false
16 |
17 | var body: some View {
| `- note: add @available attribute to enclosing property
18 | VStack {
19 | if case .destination(let customView) = selectionAction {
:
38 | ZStack {
39 | if case .customSheet(let customView) = selectionAction {
40 | AnyView(customView(event))
| |- error: 'AnyView' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
41 | } else {
42 | EventDetailsView(event: event)
/Users/admin/builder/spi-builder-workspace/Sources/SimpleCalendar/Views/EventView.swift:39:84: error: 'buildEither(first:)' is only available in macOS 10.15 or newer
8 | import SwiftUI
9 |
10 | struct EventView: View {
| `- note: add @available attribute to enclosing struct
11 | let event: any CalendarEventRepresentable
12 | let selectionAction: SelectionAction
:
15 | @State private var showEventSheet = false
16 |
17 | var body: some View {
| `- note: add @available attribute to enclosing property
18 | VStack {
19 | if case .destination(let customView) = selectionAction {
:
37 | .sheet(isPresented: $showEventSheet) {
38 | ZStack {
39 | if case .customSheet(let customView) = selectionAction {
| |- error: 'buildEither(first:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
40 | AnyView(customView(event))
41 | } else {
/Users/admin/builder/spi-builder-workspace/Sources/SimpleCalendar/Views/EventView.swift:41:36: error: 'buildEither(second:)' is only available in macOS 10.15 or newer
8 | import SwiftUI
9 |
10 | struct EventView: View {
| `- note: add @available attribute to enclosing struct
11 | let event: any CalendarEventRepresentable
12 | let selectionAction: SelectionAction
:
15 | @State private var showEventSheet = false
16 |
17 | var body: some View {
| `- note: add @available attribute to enclosing property
18 | VStack {
19 | if case .destination(let customView) = selectionAction {
:
39 | if case .customSheet(let customView) = selectionAction {
40 | AnyView(customView(event))
41 | } else {
| |- error: 'buildEither(second:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
42 | EventDetailsView(event: event)
43 | }
/Users/admin/builder/spi-builder-workspace/Sources/SimpleCalendar/Views/EventView.swift:38:32: 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
8 | import SwiftUI
9 |
10 | struct EventView: View {
| `- note: add @available attribute to enclosing struct
11 | let event: any CalendarEventRepresentable
12 | let selectionAction: SelectionAction
:
15 | @State private var showEventSheet = false
16 |
17 | var body: some View {
| `- note: add @available attribute to enclosing property
18 | VStack {
19 | if case .destination(let customView) = selectionAction {
:
36 | }
37 | .sheet(isPresented: $showEventSheet) {
38 | 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
39 | if case .customSheet(let customView) = selectionAction {
40 | AnyView(customView(event))
/Users/admin/builder/spi-builder-workspace/Sources/SimpleCalendar/Views/EventView.swift:45:26: error: 'presentationDetents' is only available in macOS 13.0 or newer
8 | import SwiftUI
9 |
10 | struct EventView: View {
| `- note: add @available attribute to enclosing struct
11 | let event: any CalendarEventRepresentable
12 | let selectionAction: SelectionAction
:
15 | @State private var showEventSheet = false
16 |
17 | var body: some View {
| `- note: add @available attribute to enclosing property
18 | VStack {
19 | if case .destination(let customView) = selectionAction {
:
43 | }
44 | }
45 | .presentationDetents([.medium])
| |- error: 'presentationDetents' is only available in macOS 13.0 or newer
| `- note: add 'if #available' version check
46 | }
47 | }
/Users/admin/builder/spi-builder-workspace/Sources/SimpleCalendar/Views/EventView.swift:25:20: error: 'buildEither(second:)' is only available in macOS 10.15 or newer
8 | import SwiftUI
9 |
10 | struct EventView: View {
| `- note: add @available attribute to enclosing struct
11 | let event: any CalendarEventRepresentable
12 | let selectionAction: SelectionAction
:
15 | @State private var showEventSheet = false
16 |
17 | var body: some View {
| `- note: add @available attribute to enclosing property
18 | VStack {
19 | if case .destination(let customView) = selectionAction {
:
23 | content
24 | }
25 | } else {
| |- error: 'buildEither(second:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
26 | content
27 | .onTapGesture {
/Users/admin/builder/spi-builder-workspace/Sources/SimpleCalendar/Views/EventView.swift:18: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
8 | import SwiftUI
9 |
10 | struct EventView: View {
| `- note: add @available attribute to enclosing struct
11 | let event: any CalendarEventRepresentable
12 | let selectionAction: SelectionAction
:
15 | @State private var showEventSheet = false
16 |
17 | var body: some View {
| `- note: add @available attribute to enclosing property
18 | VStack {
| |- 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
19 | if case .destination(let customView) = selectionAction {
20 | NavigationLink {
/Users/admin/builder/spi-builder-workspace/Sources/SimpleCalendar/Views/EventView.swift:17: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
8 | import SwiftUI
9 |
10 | struct EventView: View {
| `- note: add @available attribute to enclosing struct
11 | let event: any CalendarEventRepresentable
12 | let selectionAction: SelectionAction
:
15 | @State private var showEventSheet = false
16 |
17 | 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
18 | VStack {
19 | if case .destination(let customView) = selectionAction {
/Users/admin/builder/spi-builder-workspace/Sources/SimpleCalendar/Views/EventView.swift:17: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
8 | import SwiftUI
9 |
10 | struct EventView: View {
| `- note: add @available attribute to enclosing struct
11 | let event: any CalendarEventRepresentable
12 | let selectionAction: SelectionAction
:
15 | @State private var showEventSheet = false
16 |
17 | 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
18 | VStack {
19 | if case .destination(let customView) = selectionAction {
/Users/admin/builder/spi-builder-workspace/Sources/SimpleCalendar/Views/EventView.swift:55:16: error: 'VStack' is only available in macOS 10.15 or newer
8 | import SwiftUI
9 |
10 | struct EventView: View {
| `- note: add @available attribute to enclosing struct
11 | let event: any CalendarEventRepresentable
12 | let selectionAction: SelectionAction
:
49 | }
50 |
51 | private var content: some View {
| `- note: add @available attribute to enclosing property
52 | let mainColor = event.calendarActivity.activityType.color
53 | let endDate = event.startDate.addingTimeInterval(event.calendarActivity.duration)
54 |
55 | return VStack {
| |- error: 'VStack' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
56 | VStack(alignment: .leading) {
57 | if (event.calendarActivity.duration / 60) <= 30 {
/Users/admin/builder/spi-builder-workspace/Sources/SimpleCalendar/Views/EventView.swift:55:23: warning: conformance of 'Color' to 'ShapeStyle' is only available in macOS 10.15 or newer; this is an error in the Swift 6 language mode
8 | import SwiftUI
9 |
10 | struct EventView: View {
| `- note: add @available attribute to enclosing struct
11 | let event: any CalendarEventRepresentable
12 | let selectionAction: SelectionAction
:
49 | }
50 |
51 | private var content: some View {
| `- note: add @available attribute to enclosing property
52 | let mainColor = event.calendarActivity.activityType.color
53 | let endDate = event.startDate.addingTimeInterval(event.calendarActivity.duration)
54 |
55 | return VStack {
| |- warning: conformance of 'Color' to 'ShapeStyle' is only available in macOS 10.15 or newer; this is an error in the Swift 6 language mode
| `- note: add 'if #available' version check
56 | VStack(alignment: .leading) {
57 | if (event.calendarActivity.duration / 60) <= 30 {
/Users/admin/builder/spi-builder-workspace/Sources/SimpleCalendar/Views/EventView.swift:56:13: error: 'VStack' is only available in macOS 10.15 or newer
8 | import SwiftUI
9 |
10 | struct EventView: View {
| `- note: add @available attribute to enclosing struct
11 | let event: any CalendarEventRepresentable
12 | let selectionAction: SelectionAction
:
49 | }
50 |
51 | private var content: some View {
| `- note: add @available attribute to enclosing property
52 | let mainColor = event.calendarActivity.activityType.color
53 | let endDate = event.startDate.addingTimeInterval(event.calendarActivity.duration)
54 |
55 | return VStack {
56 | VStack(alignment: .leading) {
| |- error: 'VStack' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
57 | if (event.calendarActivity.duration / 60) <= 30 {
58 | if event.columnCount > 0 {
/Users/admin/builder/spi-builder-workspace/Sources/SimpleCalendar/Views/EventView.swift:56:32: error: 'leading' is only available in macOS 10.15 or newer
8 | import SwiftUI
9 |
10 | struct EventView: View {
| `- note: add @available attribute to enclosing struct
11 | let event: any CalendarEventRepresentable
12 | let selectionAction: SelectionAction
:
49 | }
50 |
51 | private var content: some View {
| `- note: add @available attribute to enclosing property
52 | let mainColor = event.calendarActivity.activityType.color
53 | let endDate = event.startDate.addingTimeInterval(event.calendarActivity.duration)
54 |
55 | return VStack {
56 | VStack(alignment: .leading) {
| |- error: 'leading' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
57 | if (event.calendarActivity.duration / 60) <= 30 {
58 | if event.columnCount > 0 {
/Users/admin/builder/spi-builder-workspace/Sources/SimpleCalendar/Views/EventView.swift:59:25: error: 'HStack' is only available in macOS 10.15 or newer
8 | import SwiftUI
9 |
10 | struct EventView: View {
| `- note: add @available attribute to enclosing struct
11 | let event: any CalendarEventRepresentable
12 | let selectionAction: SelectionAction
:
49 | }
50 |
51 | private var content: some View {
| `- note: add @available attribute to enclosing property
52 | let mainColor = event.calendarActivity.activityType.color
53 | let endDate = event.startDate.addingTimeInterval(event.calendarActivity.duration)
:
57 | if (event.calendarActivity.duration / 60) <= 30 {
58 | if event.columnCount > 0 {
59 | HStack(alignment: .center) {
| |- error: 'HStack' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
60 | Text(event.calendarActivity.title)
61 | .foregroundColor(mainColor)
/Users/admin/builder/spi-builder-workspace/Sources/SimpleCalendar/Views/EventView.swift:59:44: error: 'center' is only available in macOS 10.15 or newer
8 | import SwiftUI
9 |
10 | struct EventView: View {
| `- note: add @available attribute to enclosing struct
11 | let event: any CalendarEventRepresentable
12 | let selectionAction: SelectionAction
:
49 | }
50 |
51 | private var content: some View {
| `- note: add @available attribute to enclosing property
52 | let mainColor = event.calendarActivity.activityType.color
53 | let endDate = event.startDate.addingTimeInterval(event.calendarActivity.duration)
:
57 | if (event.calendarActivity.duration / 60) <= 30 {
58 | if event.columnCount > 0 {
59 | HStack(alignment: .center) {
| |- error: 'center' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
60 | Text(event.calendarActivity.title)
61 | .foregroundColor(mainColor)
/Users/admin/builder/spi-builder-workspace/Sources/SimpleCalendar/Views/EventView.swift:60:29: error: 'Text' is only available in macOS 10.15 or newer
8 | import SwiftUI
9 |
10 | struct EventView: View {
| `- note: add @available attribute to enclosing struct
11 | let event: any CalendarEventRepresentable
12 | let selectionAction: SelectionAction
:
49 | }
50 |
51 | private var content: some View {
| `- note: add @available attribute to enclosing property
52 | let mainColor = event.calendarActivity.activityType.color
53 | let endDate = event.startDate.addingTimeInterval(event.calendarActivity.duration)
:
58 | if event.columnCount > 0 {
59 | HStack(alignment: .center) {
60 | Text(event.calendarActivity.title)
| |- error: 'Text' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
61 | .foregroundColor(mainColor)
62 | .font(.caption)
/Users/admin/builder/spi-builder-workspace/Sources/SimpleCalendar/Views/EventView.swift:61:34: error: 'foregroundColor' is only available in macOS 10.15 or newer
8 | import SwiftUI
9 |
10 | struct EventView: View {
| `- note: add @available attribute to enclosing struct
11 | let event: any CalendarEventRepresentable
12 | let selectionAction: SelectionAction
:
49 | }
50 |
51 | private var content: some View {
| `- note: add @available attribute to enclosing property
52 | let mainColor = event.calendarActivity.activityType.color
53 | let endDate = event.startDate.addingTimeInterval(event.calendarActivity.duration)
:
59 | HStack(alignment: .center) {
60 | Text(event.calendarActivity.title)
61 | .foregroundColor(mainColor)
| |- error: 'foregroundColor' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
62 | .font(.caption)
63 | .padding(.top, 4)
/Users/admin/builder/spi-builder-workspace/Sources/SimpleCalendar/Views/EventView.swift:62:34: error: 'font' is only available in macOS 10.15 or newer
8 | import SwiftUI
9 |
10 | struct EventView: View {
| `- note: add @available attribute to enclosing struct
11 | let event: any CalendarEventRepresentable
12 | let selectionAction: SelectionAction
:
49 | }
50 |
51 | private var content: some View {
| `- note: add @available attribute to enclosing property
52 | let mainColor = event.calendarActivity.activityType.color
53 | let endDate = event.startDate.addingTimeInterval(event.calendarActivity.duration)
:
60 | Text(event.calendarActivity.title)
61 | .foregroundColor(mainColor)
62 | .font(.caption)
| |- error: 'font' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
63 | .padding(.top, 4)
64 | .fontWeight(.semibold)
/Users/admin/builder/spi-builder-workspace/Sources/SimpleCalendar/Views/EventView.swift:62:40: error: 'caption' is only available in macOS 10.15 or newer
8 | import SwiftUI
9 |
10 | struct EventView: View {
| `- note: add @available attribute to enclosing struct
11 | let event: any CalendarEventRepresentable
12 | let selectionAction: SelectionAction
:
49 | }
50 |
51 | private var content: some View {
| `- note: add @available attribute to enclosing property
52 | let mainColor = event.calendarActivity.activityType.color
53 | let endDate = event.startDate.addingTimeInterval(event.calendarActivity.duration)
:
60 | Text(event.calendarActivity.title)
61 | .foregroundColor(mainColor)
62 | .font(.caption)
| |- error: 'caption' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
63 | .padding(.top, 4)
64 | .fontWeight(.semibold)
/Users/admin/builder/spi-builder-workspace/Sources/SimpleCalendar/Views/EventView.swift:63:34: error: 'padding' is only available in macOS 10.15 or newer
8 | import SwiftUI
9 |
10 | struct EventView: View {
| `- note: add @available attribute to enclosing struct
11 | let event: any CalendarEventRepresentable
12 | let selectionAction: SelectionAction
:
49 | }
50 |
51 | private var content: some View {
| `- note: add @available attribute to enclosing property
52 | let mainColor = event.calendarActivity.activityType.color
53 | let endDate = event.startDate.addingTimeInterval(event.calendarActivity.duration)
:
61 | .foregroundColor(mainColor)
62 | .font(.caption)
63 | .padding(.top, 4)
| |- error: 'padding' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
64 | .fontWeight(.semibold)
65 | .dynamicTypeSize(.small ... .large)
/Users/admin/builder/spi-builder-workspace/Sources/SimpleCalendar/Views/EventView.swift:64:34: error: 'fontWeight' is only available in macOS 13.0 or newer
8 | import SwiftUI
9 |
10 | struct EventView: View {
| `- note: add @available attribute to enclosing struct
11 | let event: any CalendarEventRepresentable
12 | let selectionAction: SelectionAction
:
49 | }
50 |
51 | private var content: some View {
| `- note: add @available attribute to enclosing property
52 | let mainColor = event.calendarActivity.activityType.color
53 | let endDate = event.startDate.addingTimeInterval(event.calendarActivity.duration)
:
62 | .font(.caption)
63 | .padding(.top, 4)
64 | .fontWeight(.semibold)
| |- error: 'fontWeight' is only available in macOS 13.0 or newer
| `- note: add 'if #available' version check
65 | .dynamicTypeSize(.small ... .large)
66 | Spacer()
/Users/admin/builder/spi-builder-workspace/Sources/SimpleCalendar/Views/EventView.swift:65:34: error: 'dynamicTypeSize' is only available in macOS 12.0 or newer
8 | import SwiftUI
9 |
10 | struct EventView: View {
| `- note: add @available attribute to enclosing struct
11 | let event: any CalendarEventRepresentable
12 | let selectionAction: SelectionAction
:
49 | }
50 |
51 | private var content: some View {
| `- note: add @available attribute to enclosing property
52 | let mainColor = event.calendarActivity.activityType.color
53 | let endDate = event.startDate.addingTimeInterval(event.calendarActivity.duration)
:
63 | .padding(.top, 4)
64 | .fontWeight(.semibold)
65 | .dynamicTypeSize(.small ... .large)
| |- error: 'dynamicTypeSize' is only available in macOS 12.0 or newer
| `- note: add 'if #available' version check
66 | Spacer()
67 | Text("\(event.startDate.formatted(date: .omitted, time: .shortened)), \(Int(event.calendarActivity.duration / 60)) min")
/Users/admin/builder/spi-builder-workspace/Sources/SimpleCalendar/Views/EventView.swift:66:29: warning: conformance of 'Spacer' to 'View' is only available in macOS 10.15 or newer; this is an error in the Swift 6 language mode
8 | import SwiftUI
9 |
10 | struct EventView: View {
| `- note: add @available attribute to enclosing struct
11 | let event: any CalendarEventRepresentable
12 | let selectionAction: SelectionAction
:
49 | }
50 |
51 | private var content: some View {
| `- note: add @available attribute to enclosing property
52 | let mainColor = event.calendarActivity.activityType.color
53 | let endDate = event.startDate.addingTimeInterval(event.calendarActivity.duration)
:
64 | .fontWeight(.semibold)
65 | .dynamicTypeSize(.small ... .large)
66 | Spacer()
| |- warning: conformance of 'Spacer' to 'View' is only available in macOS 10.15 or newer; this is an error in the Swift 6 language mode
| `- note: add 'if #available' version check
67 | Text("\(event.startDate.formatted(date: .omitted, time: .shortened)), \(Int(event.calendarActivity.duration / 60)) min")
68 | .foregroundColor(mainColor)
/Users/admin/builder/spi-builder-workspace/Sources/SimpleCalendar/Views/EventView.swift:66:29: error: 'Spacer' is only available in macOS 10.15 or newer
8 | import SwiftUI
9 |
10 | struct EventView: View {
| `- note: add @available attribute to enclosing struct
11 | let event: any CalendarEventRepresentable
12 | let selectionAction: SelectionAction
:
49 | }
50 |
51 | private var content: some View {
| `- note: add @available attribute to enclosing property
52 | let mainColor = event.calendarActivity.activityType.color
53 | let endDate = event.startDate.addingTimeInterval(event.calendarActivity.duration)
:
64 | .fontWeight(.semibold)
65 | .dynamicTypeSize(.small ... .large)
66 | Spacer()
| |- error: 'Spacer' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
67 | Text("\(event.startDate.formatted(date: .omitted, time: .shortened)), \(Int(event.calendarActivity.duration / 60)) min")
68 | .foregroundColor(mainColor)
/Users/admin/builder/spi-builder-workspace/Sources/SimpleCalendar/Views/EventView.swift:67:29: error: 'Text' is only available in macOS 10.15 or newer
8 | import SwiftUI
9 |
10 | struct EventView: View {
| `- note: add @available attribute to enclosing struct
11 | let event: any CalendarEventRepresentable
12 | let selectionAction: SelectionAction
:
49 | }
50 |
51 | private var content: some View {
| `- note: add @available attribute to enclosing property
52 | let mainColor = event.calendarActivity.activityType.color
53 | let endDate = event.startDate.addingTimeInterval(event.calendarActivity.duration)
:
65 | .dynamicTypeSize(.small ... .large)
66 | Spacer()
67 | Text("\(event.startDate.formatted(date: .omitted, time: .shortened)), \(Int(event.calendarActivity.duration / 60)) min")
| |- error: 'Text' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
68 | .foregroundColor(mainColor)
69 | .font(.caption2)
/Users/admin/builder/spi-builder-workspace/Sources/SimpleCalendar/Views/EventView.swift:67:53: error: 'formatted(date:time:)' is only available in macOS 12.0 or newer
8 | import SwiftUI
9 |
10 | struct EventView: View {
| `- note: add @available attribute to enclosing struct
11 | let event: any CalendarEventRepresentable
12 | let selectionAction: SelectionAction
:
49 | }
50 |
51 | private var content: some View {
| `- note: add @available attribute to enclosing property
52 | let mainColor = event.calendarActivity.activityType.color
53 | let endDate = event.startDate.addingTimeInterval(event.calendarActivity.duration)
:
65 | .dynamicTypeSize(.small ... .large)
66 | Spacer()
67 | Text("\(event.startDate.formatted(date: .omitted, time: .shortened)), \(Int(event.calendarActivity.duration / 60)) min")
| |- error: 'formatted(date:time:)' is only available in macOS 12.0 or newer
| `- note: add 'if #available' version check
68 | .foregroundColor(mainColor)
69 | .font(.caption2)
/Users/admin/builder/spi-builder-workspace/Sources/SimpleCalendar/Views/EventView.swift:68:34: error: 'foregroundColor' is only available in macOS 10.15 or newer
8 | import SwiftUI
9 |
10 | struct EventView: View {
| `- note: add @available attribute to enclosing struct
11 | let event: any CalendarEventRepresentable
12 | let selectionAction: SelectionAction
:
49 | }
50 |
51 | private var content: some View {
| `- note: add @available attribute to enclosing property
52 | let mainColor = event.calendarActivity.activityType.color
53 | let endDate = event.startDate.addingTimeInterval(event.calendarActivity.duration)
:
66 | Spacer()
67 | Text("\(event.startDate.formatted(date: .omitted, time: .shortened)), \(Int(event.calendarActivity.duration / 60)) min")
68 | .foregroundColor(mainColor)
| |- error: 'foregroundColor' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
69 | .font(.caption2)
70 | .dynamicTypeSize(.small ... .large)
/Users/admin/builder/spi-builder-workspace/Sources/SimpleCalendar/Views/EventView.swift:69:34: error: 'font' is only available in macOS 10.15 or newer
8 | import SwiftUI
9 |
10 | struct EventView: View {
| `- note: add @available attribute to enclosing struct
11 | let event: any CalendarEventRepresentable
12 | let selectionAction: SelectionAction
:
49 | }
50 |
51 | private var content: some View {
| `- note: add @available attribute to enclosing property
52 | let mainColor = event.calendarActivity.activityType.color
53 | let endDate = event.startDate.addingTimeInterval(event.calendarActivity.duration)
:
67 | Text("\(event.startDate.formatted(date: .omitted, time: .shortened)), \(Int(event.calendarActivity.duration / 60)) min")
68 | .foregroundColor(mainColor)
69 | .font(.caption2)
| |- error: 'font' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
70 | .dynamicTypeSize(.small ... .large)
71 | }
/Users/admin/builder/spi-builder-workspace/Sources/SimpleCalendar/Views/EventView.swift:69:40: error: 'caption2' is only available in macOS 11.0 or newer
8 | import SwiftUI
9 |
10 | struct EventView: View {
| `- note: add @available attribute to enclosing struct
11 | let event: any CalendarEventRepresentable
12 | let selectionAction: SelectionAction
:
49 | }
50 |
51 | private var content: some View {
| `- note: add @available attribute to enclosing property
52 | let mainColor = event.calendarActivity.activityType.color
53 | let endDate = event.startDate.addingTimeInterval(event.calendarActivity.duration)
:
67 | Text("\(event.startDate.formatted(date: .omitted, time: .shortened)), \(Int(event.calendarActivity.duration / 60)) min")
68 | .foregroundColor(mainColor)
69 | .font(.caption2)
| |- error: 'caption2' is only available in macOS 11.0 or newer
| `- note: add 'if #available' version check
70 | .dynamicTypeSize(.small ... .large)
71 | }
/Users/admin/builder/spi-builder-workspace/Sources/SimpleCalendar/Views/EventView.swift:70:34: error: 'dynamicTypeSize' is only available in macOS 12.0 or newer
8 | import SwiftUI
9 |
10 | struct EventView: View {
| `- note: add @available attribute to enclosing struct
11 | let event: any CalendarEventRepresentable
12 | let selectionAction: SelectionAction
:
49 | }
50 |
51 | private var content: some View {
| `- note: add @available attribute to enclosing property
52 | let mainColor = event.calendarActivity.activityType.color
53 | let endDate = event.startDate.addingTimeInterval(event.calendarActivity.duration)
:
68 | .foregroundColor(mainColor)
69 | .font(.caption2)
70 | .dynamicTypeSize(.small ... .large)
| |- error: 'dynamicTypeSize' is only available in macOS 12.0 or newer
| `- note: add 'if #available' version check
71 | }
72 | } else {
/Users/admin/builder/spi-builder-workspace/Sources/SimpleCalendar/Views/EventView.swift:59:52: warning: conformance of 'Spacer' to 'View' is only available in macOS 10.15 or newer; this is an error in the Swift 6 language mode
8 | import SwiftUI
9 |
10 | struct EventView: View {
| `- note: add @available attribute to enclosing struct
11 | let event: any CalendarEventRepresentable
12 | let selectionAction: SelectionAction
:
49 | }
50 |
51 | private var content: some View {
| `- note: add @available attribute to enclosing property
52 | let mainColor = event.calendarActivity.activityType.color
53 | let endDate = event.startDate.addingTimeInterval(event.calendarActivity.duration)
:
57 | if (event.calendarActivity.duration / 60) <= 30 {
58 | if event.columnCount > 0 {
59 | HStack(alignment: .center) {
| |- warning: conformance of 'Spacer' to 'View' is only available in macOS 10.15 or newer; this is an error in the Swift 6 language mode
| `- note: add 'if #available' version check
60 | Text(event.calendarActivity.title)
61 | .foregroundColor(mainColor)
/Users/admin/builder/spi-builder-workspace/Sources/SimpleCalendar/Views/EventView.swift:58:46: error: 'buildEither(first:)' is only available in macOS 10.15 or newer
8 | import SwiftUI
9 |
10 | struct EventView: View {
| `- note: add @available attribute to enclosing struct
11 | let event: any CalendarEventRepresentable
12 | let selectionAction: SelectionAction
:
49 | }
50 |
51 | private var content: some View {
| `- note: add @available attribute to enclosing property
52 | let mainColor = event.calendarActivity.activityType.color
53 | let endDate = event.startDate.addingTimeInterval(event.calendarActivity.duration)
:
56 | VStack(alignment: .leading) {
57 | if (event.calendarActivity.duration / 60) <= 30 {
58 | if event.columnCount > 0 {
| |- error: 'buildEither(first:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
59 | HStack(alignment: .center) {
60 | Text(event.calendarActivity.title)
/Users/admin/builder/spi-builder-workspace/Sources/SimpleCalendar/Views/EventView.swift:73:25: error: 'HStack' is only available in macOS 10.15 or newer
8 | import SwiftUI
9 |
10 | struct EventView: View {
| `- note: add @available attribute to enclosing struct
11 | let event: any CalendarEventRepresentable
12 | let selectionAction: SelectionAction
:
49 | }
50 |
51 | private var content: some View {
| `- note: add @available attribute to enclosing property
52 | let mainColor = event.calendarActivity.activityType.color
53 | let endDate = event.startDate.addingTimeInterval(event.calendarActivity.duration)
:
71 | }
72 | } else {
73 | HStack(alignment: .center) {
| |- error: 'HStack' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
74 | Text(event.calendarActivity.title)
75 | .foregroundColor(mainColor)
/Users/admin/builder/spi-builder-workspace/Sources/SimpleCalendar/Views/EventView.swift:73:44: error: 'center' is only available in macOS 10.15 or newer
8 | import SwiftUI
9 |
10 | struct EventView: View {
| `- note: add @available attribute to enclosing struct
11 | let event: any CalendarEventRepresentable
12 | let selectionAction: SelectionAction
:
49 | }
50 |
51 | private var content: some View {
| `- note: add @available attribute to enclosing property
52 | let mainColor = event.calendarActivity.activityType.color
53 | let endDate = event.startDate.addingTimeInterval(event.calendarActivity.duration)
:
71 | }
72 | } else {
73 | HStack(alignment: .center) {
| |- error: 'center' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
74 | Text(event.calendarActivity.title)
75 | .foregroundColor(mainColor)
/Users/admin/builder/spi-builder-workspace/Sources/SimpleCalendar/Views/EventView.swift:74:29: error: 'Text' is only available in macOS 10.15 or newer
8 | import SwiftUI
9 |
10 | struct EventView: View {
| `- note: add @available attribute to enclosing struct
11 | let event: any CalendarEventRepresentable
12 | let selectionAction: SelectionAction
:
49 | }
50 |
51 | private var content: some View {
| `- note: add @available attribute to enclosing property
52 | let mainColor = event.calendarActivity.activityType.color
53 | let endDate = event.startDate.addingTimeInterval(event.calendarActivity.duration)
:
72 | } else {
73 | HStack(alignment: .center) {
74 | Text(event.calendarActivity.title)
| |- error: 'Text' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
75 | .foregroundColor(mainColor)
76 | .font(.caption)
/Users/admin/builder/spi-builder-workspace/Sources/SimpleCalendar/Views/EventView.swift:75:34: error: 'foregroundColor' is only available in macOS 10.15 or newer
8 | import SwiftUI
9 |
10 | struct EventView: View {
| `- note: add @available attribute to enclosing struct
11 | let event: any CalendarEventRepresentable
12 | let selectionAction: SelectionAction
:
49 | }
50 |
51 | private var content: some View {
| `- note: add @available attribute to enclosing property
52 | let mainColor = event.calendarActivity.activityType.color
53 | let endDate = event.startDate.addingTimeInterval(event.calendarActivity.duration)
:
73 | HStack(alignment: .center) {
74 | Text(event.calendarActivity.title)
75 | .foregroundColor(mainColor)
| |- error: 'foregroundColor' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
76 | .font(.caption)
77 | .padding(.top, 4)
/Users/admin/builder/spi-builder-workspace/Sources/SimpleCalendar/Views/EventView.swift:76:34: error: 'font' is only available in macOS 10.15 or newer
8 | import SwiftUI
9 |
10 | struct EventView: View {
| `- note: add @available attribute to enclosing struct
11 | let event: any CalendarEventRepresentable
12 | let selectionAction: SelectionAction
:
49 | }
50 |
51 | private var content: some View {
| `- note: add @available attribute to enclosing property
52 | let mainColor = event.calendarActivity.activityType.color
53 | let endDate = event.startDate.addingTimeInterval(event.calendarActivity.duration)
:
74 | Text(event.calendarActivity.title)
75 | .foregroundColor(mainColor)
76 | .font(.caption)
| |- error: 'font' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
77 | .padding(.top, 4)
78 | .fontWeight(.semibold)
/Users/admin/builder/spi-builder-workspace/Sources/SimpleCalendar/Views/EventView.swift:76:40: error: 'caption' is only available in macOS 10.15 or newer
8 | import SwiftUI
9 |
10 | struct EventView: View {
| `- note: add @available attribute to enclosing struct
11 | let event: any CalendarEventRepresentable
12 | let selectionAction: SelectionAction
:
49 | }
50 |
51 | private var content: some View {
| `- note: add @available attribute to enclosing property
52 | let mainColor = event.calendarActivity.activityType.color
53 | let endDate = event.startDate.addingTimeInterval(event.calendarActivity.duration)
:
74 | Text(event.calendarActivity.title)
75 | .foregroundColor(mainColor)
76 | .font(.caption)
| |- error: 'caption' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
77 | .padding(.top, 4)
78 | .fontWeight(.semibold)
/Users/admin/builder/spi-builder-workspace/Sources/SimpleCalendar/Views/EventView.swift:77:34: error: 'padding' is only available in macOS 10.15 or newer
8 | import SwiftUI
9 |
10 | struct EventView: View {
| `- note: add @available attribute to enclosing struct
11 | let event: any CalendarEventRepresentable
12 | let selectionAction: SelectionAction
:
49 | }
50 |
51 | private var content: some View {
| `- note: add @available attribute to enclosing property
52 | let mainColor = event.calendarActivity.activityType.color
53 | let endDate = event.startDate.addingTimeInterval(event.calendarActivity.duration)
:
75 | .foregroundColor(mainColor)
76 | .font(.caption)
77 | .padding(.top, 4)
| |- error: 'padding' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
78 | .fontWeight(.semibold)
79 | .dynamicTypeSize(.small ... .large)
/Users/admin/builder/spi-builder-workspace/Sources/SimpleCalendar/Views/EventView.swift:78:34: error: 'fontWeight' is only available in macOS 13.0 or newer
8 | import SwiftUI
9 |
10 | struct EventView: View {
| `- note: add @available attribute to enclosing struct
11 | let event: any CalendarEventRepresentable
12 | let selectionAction: SelectionAction
:
49 | }
50 |
51 | private var content: some View {
| `- note: add @available attribute to enclosing property
52 | let mainColor = event.calendarActivity.activityType.color
53 | let endDate = event.startDate.addingTimeInterval(event.calendarActivity.duration)
:
76 | .font(.caption)
77 | .padding(.top, 4)
78 | .fontWeight(.semibold)
| |- error: 'fontWeight' is only available in macOS 13.0 or newer
| `- note: add 'if #available' version check
79 | .dynamicTypeSize(.small ... .large)
80 | Spacer()
/Users/admin/builder/spi-builder-workspace/Sources/SimpleCalendar/Views/EventView.swift:79:34: error: 'dynamicTypeSize' is only available in macOS 12.0 or newer
8 | import SwiftUI
9 |
10 | struct EventView: View {
| `- note: add @available attribute to enclosing struct
11 | let event: any CalendarEventRepresentable
12 | let selectionAction: SelectionAction
:
49 | }
50 |
51 | private var content: some View {
| `- note: add @available attribute to enclosing property
52 | let mainColor = event.calendarActivity.activityType.color
53 | let endDate = event.startDate.addingTimeInterval(event.calendarActivity.duration)
:
77 | .padding(.top, 4)
78 | .fontWeight(.semibold)
79 | .dynamicTypeSize(.small ... .large)
| |- error: 'dynamicTypeSize' is only available in macOS 12.0 or newer
| `- note: add 'if #available' version check
80 | Spacer()
81 | Text("\(event.startDate.formatted(date: .omitted, time: .shortened)) - \(endDate.formatted(date: .omitted, time: .shortened)), \(Int(event.calendarActivity.duration / 60)) min")
/Users/admin/builder/spi-builder-workspace/Sources/SimpleCalendar/Views/EventView.swift:80:29: warning: conformance of 'Spacer' to 'View' is only available in macOS 10.15 or newer; this is an error in the Swift 6 language mode
8 | import SwiftUI
9 |
10 | struct EventView: View {
| `- note: add @available attribute to enclosing struct
11 | let event: any CalendarEventRepresentable
12 | let selectionAction: SelectionAction
:
49 | }
50 |
51 | private var content: some View {
| `- note: add @available attribute to enclosing property
52 | let mainColor = event.calendarActivity.activityType.color
53 | let endDate = event.startDate.addingTimeInterval(event.calendarActivity.duration)
:
78 | .fontWeight(.semibold)
79 | .dynamicTypeSize(.small ... .large)
80 | Spacer()
| |- warning: conformance of 'Spacer' to 'View' is only available in macOS 10.15 or newer; this is an error in the Swift 6 language mode
| `- note: add 'if #available' version check
81 | Text("\(event.startDate.formatted(date: .omitted, time: .shortened)) - \(endDate.formatted(date: .omitted, time: .shortened)), \(Int(event.calendarActivity.duration / 60)) min")
82 | .foregroundColor(mainColor)
/Users/admin/builder/spi-builder-workspace/Sources/SimpleCalendar/Views/EventView.swift:80:29: error: 'Spacer' is only available in macOS 10.15 or newer
8 | import SwiftUI
9 |
10 | struct EventView: View {
| `- note: add @available attribute to enclosing struct
11 | let event: any CalendarEventRepresentable
12 | let selectionAction: SelectionAction
:
49 | }
50 |
51 | private var content: some View {
| `- note: add @available attribute to enclosing property
52 | let mainColor = event.calendarActivity.activityType.color
53 | let endDate = event.startDate.addingTimeInterval(event.calendarActivity.duration)
:
78 | .fontWeight(.semibold)
79 | .dynamicTypeSize(.small ... .large)
80 | Spacer()
| |- error: 'Spacer' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
81 | Text("\(event.startDate.formatted(date: .omitted, time: .shortened)) - \(endDate.formatted(date: .omitted, time: .shortened)), \(Int(event.calendarActivity.duration / 60)) min")
82 | .foregroundColor(mainColor)
/Users/admin/builder/spi-builder-workspace/Sources/SimpleCalendar/Views/EventView.swift:81:29: error: 'Text' is only available in macOS 10.15 or newer
8 | import SwiftUI
9 |
10 | struct EventView: View {
| `- note: add @available attribute to enclosing struct
11 | let event: any CalendarEventRepresentable
12 | let selectionAction: SelectionAction
:
49 | }
50 |
51 | private var content: some View {
| `- note: add @available attribute to enclosing property
52 | let mainColor = event.calendarActivity.activityType.color
53 | let endDate = event.startDate.addingTimeInterval(event.calendarActivity.duration)
:
79 | .dynamicTypeSize(.small ... .large)
80 | Spacer()
81 | Text("\(event.startDate.formatted(date: .omitted, time: .shortened)) - \(endDate.formatted(date: .omitted, time: .shortened)), \(Int(event.calendarActivity.duration / 60)) min")
| |- error: 'Text' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
82 | .foregroundColor(mainColor)
83 | .font(.caption2)
/Users/admin/builder/spi-builder-workspace/Sources/SimpleCalendar/Views/EventView.swift:81:53: error: 'formatted(date:time:)' is only available in macOS 12.0 or newer
8 | import SwiftUI
9 |
10 | struct EventView: View {
| `- note: add @available attribute to enclosing struct
11 | let event: any CalendarEventRepresentable
12 | let selectionAction: SelectionAction
:
49 | }
50 |
51 | private var content: some View {
| `- note: add @available attribute to enclosing property
52 | let mainColor = event.calendarActivity.activityType.color
53 | let endDate = event.startDate.addingTimeInterval(event.calendarActivity.duration)
:
79 | .dynamicTypeSize(.small ... .large)
80 | Spacer()
81 | Text("\(event.startDate.formatted(date: .omitted, time: .shortened)) - \(endDate.formatted(date: .omitted, time: .shortened)), \(Int(event.calendarActivity.duration / 60)) min")
| |- error: 'formatted(date:time:)' is only available in macOS 12.0 or newer
| `- note: add 'if #available' version check
82 | .foregroundColor(mainColor)
83 | .font(.caption2)
/Users/admin/builder/spi-builder-workspace/Sources/SimpleCalendar/Views/EventView.swift:81:110: error: 'formatted(date:time:)' is only available in macOS 12.0 or newer
8 | import SwiftUI
9 |
10 | struct EventView: View {
| `- note: add @available attribute to enclosing struct
11 | let event: any CalendarEventRepresentable
12 | let selectionAction: SelectionAction
:
49 | }
50 |
51 | private var content: some View {
| `- note: add @available attribute to enclosing property
52 | let mainColor = event.calendarActivity.activityType.color
53 | let endDate = event.startDate.addingTimeInterval(event.calendarActivity.duration)
:
79 | .dynamicTypeSize(.small ... .large)
80 | Spacer()
81 | Text("\(event.startDate.formatted(date: .omitted, time: .shortened)) - \(endDate.formatted(date: .omitted, time: .shortened)), \(Int(event.calendarActivity.duration / 60)) min")
| |- error: 'formatted(date:time:)' is only available in macOS 12.0 or newer
| `- note: add 'if #available' version check
82 | .foregroundColor(mainColor)
83 | .font(.caption2)
/Users/admin/builder/spi-builder-workspace/Sources/SimpleCalendar/Views/EventView.swift:82:34: error: 'foregroundColor' is only available in macOS 10.15 or newer
8 | import SwiftUI
9 |
10 | struct EventView: View {
| `- note: add @available attribute to enclosing struct
11 | let event: any CalendarEventRepresentable
12 | let selectionAction: SelectionAction
:
49 | }
50 |
51 | private var content: some View {
| `- note: add @available attribute to enclosing property
52 | let mainColor = event.calendarActivity.activityType.color
53 | let endDate = event.startDate.addingTimeInterval(event.calendarActivity.duration)
:
80 | Spacer()
81 | Text("\(event.startDate.formatted(date: .omitted, time: .shortened)) - \(endDate.formatted(date: .omitted, time: .shortened)), \(Int(event.calendarActivity.duration / 60)) min")
82 | .foregroundColor(mainColor)
| |- error: 'foregroundColor' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
83 | .font(.caption2)
84 | .dynamicTypeSize(.small ... .large)
/Users/admin/builder/spi-builder-workspace/Sources/SimpleCalendar/Views/EventView.swift:83:34: error: 'font' is only available in macOS 10.15 or newer
8 | import SwiftUI
9 |
10 | struct EventView: View {
| `- note: add @available attribute to enclosing struct
11 | let event: any CalendarEventRepresentable
12 | let selectionAction: SelectionAction
:
49 | }
50 |
51 | private var content: some View {
| `- note: add @available attribute to enclosing property
52 | let mainColor = event.calendarActivity.activityType.color
53 | let endDate = event.startDate.addingTimeInterval(event.calendarActivity.duration)
:
81 | Text("\(event.startDate.formatted(date: .omitted, time: .shortened)) - \(endDate.formatted(date: .omitted, time: .shortened)), \(Int(event.calendarActivity.duration / 60)) min")
82 | .foregroundColor(mainColor)
83 | .font(.caption2)
| |- error: 'font' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
84 | .dynamicTypeSize(.small ... .large)
85 | }
/Users/admin/builder/spi-builder-workspace/Sources/SimpleCalendar/Views/EventView.swift:83:40: error: 'caption2' is only available in macOS 11.0 or newer
8 | import SwiftUI
9 |
10 | struct EventView: View {
| `- note: add @available attribute to enclosing struct
11 | let event: any CalendarEventRepresentable
12 | let selectionAction: SelectionAction
:
49 | }
50 |
51 | private var content: some View {
| `- note: add @available attribute to enclosing property
52 | let mainColor = event.calendarActivity.activityType.color
53 | let endDate = event.startDate.addingTimeInterval(event.calendarActivity.duration)
:
81 | Text("\(event.startDate.formatted(date: .omitted, time: .shortened)) - \(endDate.formatted(date: .omitted, time: .shortened)), \(Int(event.calendarActivity.duration / 60)) min")
82 | .foregroundColor(mainColor)
83 | .font(.caption2)
| |- error: 'caption2' is only available in macOS 11.0 or newer
| `- note: add 'if #available' version check
84 | .dynamicTypeSize(.small ... .large)
85 | }
/Users/admin/builder/spi-builder-workspace/Sources/SimpleCalendar/Views/EventView.swift:84:34: error: 'dynamicTypeSize' is only available in macOS 12.0 or newer
8 | import SwiftUI
9 |
10 | struct EventView: View {
| `- note: add @available attribute to enclosing struct
11 | let event: any CalendarEventRepresentable
12 | let selectionAction: SelectionAction
:
49 | }
50 |
51 | private var content: some View {
| `- note: add @available attribute to enclosing property
52 | let mainColor = event.calendarActivity.activityType.color
53 | let endDate = event.startDate.addingTimeInterval(event.calendarActivity.duration)
:
82 | .foregroundColor(mainColor)
83 | .font(.caption2)
84 | .dynamicTypeSize(.small ... .large)
| |- error: 'dynamicTypeSize' is only available in macOS 12.0 or newer
| `- note: add 'if #available' version check
85 | }
86 | }
/Users/admin/builder/spi-builder-workspace/Sources/SimpleCalendar/Views/EventView.swift:73:52: warning: conformance of 'Spacer' to 'View' is only available in macOS 10.15 or newer; this is an error in the Swift 6 language mode
8 | import SwiftUI
9 |
10 | struct EventView: View {
| `- note: add @available attribute to enclosing struct
11 | let event: any CalendarEventRepresentable
12 | let selectionAction: SelectionAction
:
49 | }
50 |
51 | private var content: some View {
| `- note: add @available attribute to enclosing property
52 | let mainColor = event.calendarActivity.activityType.color
53 | let endDate = event.startDate.addingTimeInterval(event.calendarActivity.duration)
:
71 | }
72 | } else {
73 | HStack(alignment: .center) {
| |- warning: conformance of 'Spacer' to 'View' is only available in macOS 10.15 or newer; this is an error in the Swift 6 language mode
| `- note: add 'if #available' version check
74 | Text(event.calendarActivity.title)
75 | .foregroundColor(mainColor)
/Users/admin/builder/spi-builder-workspace/Sources/SimpleCalendar/Views/EventView.swift:72:28: error: 'buildEither(second:)' is only available in macOS 10.15 or newer
8 | import SwiftUI
9 |
10 | struct EventView: View {
| `- note: add @available attribute to enclosing struct
11 | let event: any CalendarEventRepresentable
12 | let selectionAction: SelectionAction
:
49 | }
50 |
51 | private var content: some View {
| `- note: add @available attribute to enclosing property
52 | let mainColor = event.calendarActivity.activityType.color
53 | let endDate = event.startDate.addingTimeInterval(event.calendarActivity.duration)
:
70 | .dynamicTypeSize(.small ... .large)
71 | }
72 | } else {
| |- error: 'buildEither(second:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
73 | HStack(alignment: .center) {
74 | Text(event.calendarActivity.title)
/Users/admin/builder/spi-builder-workspace/Sources/SimpleCalendar/Views/EventView.swift:57:65: error: 'buildEither(first:)' is only available in macOS 10.15 or newer
8 | import SwiftUI
9 |
10 | struct EventView: View {
| `- note: add @available attribute to enclosing struct
11 | let event: any CalendarEventRepresentable
12 | let selectionAction: SelectionAction
:
49 | }
50 |
51 | private var content: some View {
| `- note: add @available attribute to enclosing property
52 | let mainColor = event.calendarActivity.activityType.color
53 | let endDate = event.startDate.addingTimeInterval(event.calendarActivity.duration)
:
55 | return VStack {
56 | VStack(alignment: .leading) {
57 | if (event.calendarActivity.duration / 60) <= 30 {
| |- error: 'buildEither(first:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
58 | if event.columnCount > 0 {
59 | HStack(alignment: .center) {
/Users/admin/builder/spi-builder-workspace/Sources/SimpleCalendar/Views/EventView.swift:57:65: error: 'buildEither(first:)' is only available in macOS 10.15 or newer
8 | import SwiftUI
9 |
10 | struct EventView: View {
| `- note: add @available attribute to enclosing struct
11 | let event: any CalendarEventRepresentable
12 | let selectionAction: SelectionAction
:
49 | }
50 |
51 | private var content: some View {
| `- note: add @available attribute to enclosing property
52 | let mainColor = event.calendarActivity.activityType.color
53 | let endDate = event.startDate.addingTimeInterval(event.calendarActivity.duration)
:
55 | return VStack {
56 | VStack(alignment: .leading) {
57 | if (event.calendarActivity.duration / 60) <= 30 {
| |- error: 'buildEither(first:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
58 | if event.columnCount > 0 {
59 | HStack(alignment: .center) {
/Users/admin/builder/spi-builder-workspace/Sources/SimpleCalendar/Views/EventView.swift:57:65: warning: conformance of '_ConditionalContent<TrueContent, FalseContent>' to 'View' is only available in macOS 10.15 or newer; this is an error in the Swift 6 language mode
8 | import SwiftUI
9 |
10 | struct EventView: View {
| `- note: add @available attribute to enclosing struct
11 | let event: any CalendarEventRepresentable
12 | let selectionAction: SelectionAction
:
49 | }
50 |
51 | private var content: some View {
| `- note: add @available attribute to enclosing property
52 | let mainColor = event.calendarActivity.activityType.color
53 | let endDate = event.startDate.addingTimeInterval(event.calendarActivity.duration)
:
55 | return VStack {
56 | VStack(alignment: .leading) {
57 | if (event.calendarActivity.duration / 60) <= 30 {
| |- 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
58 | if event.columnCount > 0 {
59 | HStack(alignment: .center) {
/Users/admin/builder/spi-builder-workspace/Sources/SimpleCalendar/Views/EventView.swift:88:21: error: 'Text' is only available in macOS 10.15 or newer
8 | import SwiftUI
9 |
10 | struct EventView: View {
| `- note: add @available attribute to enclosing struct
11 | let event: any CalendarEventRepresentable
12 | let selectionAction: SelectionAction
:
49 | }
50 |
51 | private var content: some View {
| `- note: add @available attribute to enclosing property
52 | let mainColor = event.calendarActivity.activityType.color
53 | let endDate = event.startDate.addingTimeInterval(event.calendarActivity.duration)
:
86 | }
87 | } else if (event.calendarActivity.duration / 60) <= 60 {
88 | Text(event.calendarActivity.title)
| |- error: 'Text' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
89 | .foregroundColor(mainColor)
90 | .font(.caption)
/Users/admin/builder/spi-builder-workspace/Sources/SimpleCalendar/Views/EventView.swift:89:26: error: 'foregroundColor' is only available in macOS 10.15 or newer
8 | import SwiftUI
9 |
10 | struct EventView: View {
| `- note: add @available attribute to enclosing struct
11 | let event: any CalendarEventRepresentable
12 | let selectionAction: SelectionAction
:
49 | }
50 |
51 | private var content: some View {
| `- note: add @available attribute to enclosing property
52 | let mainColor = event.calendarActivity.activityType.color
53 | let endDate = event.startDate.addingTimeInterval(event.calendarActivity.duration)
:
87 | } else if (event.calendarActivity.duration / 60) <= 60 {
88 | Text(event.calendarActivity.title)
89 | .foregroundColor(mainColor)
| |- error: 'foregroundColor' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
90 | .font(.caption)
91 | .padding(.top, 4)
/Users/admin/builder/spi-builder-workspace/Sources/SimpleCalendar/Views/EventView.swift:90:26: error: 'font' is only available in macOS 10.15 or newer
8 | import SwiftUI
9 |
10 | struct EventView: View {
| `- note: add @available attribute to enclosing struct
11 | let event: any CalendarEventRepresentable
12 | let selectionAction: SelectionAction
:
49 | }
50 |
51 | private var content: some View {
| `- note: add @available attribute to enclosing property
52 | let mainColor = event.calendarActivity.activityType.color
53 | let endDate = event.startDate.addingTimeInterval(event.calendarActivity.duration)
:
88 | Text(event.calendarActivity.title)
89 | .foregroundColor(mainColor)
90 | .font(.caption)
| |- error: 'font' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
91 | .padding(.top, 4)
92 | .fontWeight(.semibold)
/Users/admin/builder/spi-builder-workspace/Sources/SimpleCalendar/Views/EventView.swift:90:32: error: 'caption' is only available in macOS 10.15 or newer
8 | import SwiftUI
9 |
10 | struct EventView: View {
| `- note: add @available attribute to enclosing struct
11 | let event: any CalendarEventRepresentable
12 | let selectionAction: SelectionAction
:
49 | }
50 |
51 | private var content: some View {
| `- note: add @available attribute to enclosing property
52 | let mainColor = event.calendarActivity.activityType.color
53 | let endDate = event.startDate.addingTimeInterval(event.calendarActivity.duration)
:
88 | Text(event.calendarActivity.title)
89 | .foregroundColor(mainColor)
90 | .font(.caption)
| |- error: 'caption' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
91 | .padding(.top, 4)
92 | .fontWeight(.semibold)
/Users/admin/builder/spi-builder-workspace/Sources/SimpleCalendar/Views/EventView.swift:91:26: error: 'padding' is only available in macOS 10.15 or newer
8 | import SwiftUI
9 |
10 | struct EventView: View {
| `- note: add @available attribute to enclosing struct
11 | let event: any CalendarEventRepresentable
12 | let selectionAction: SelectionAction
:
49 | }
50 |
51 | private var content: some View {
| `- note: add @available attribute to enclosing property
52 | let mainColor = event.calendarActivity.activityType.color
53 | let endDate = event.startDate.addingTimeInterval(event.calendarActivity.duration)
:
89 | .foregroundColor(mainColor)
90 | .font(.caption)
91 | .padding(.top, 4)
| |- error: 'padding' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
92 | .fontWeight(.semibold)
93 | .dynamicTypeSize(.small ... .large)
/Users/admin/builder/spi-builder-workspace/Sources/SimpleCalendar/Views/EventView.swift:92:26: error: 'fontWeight' is only available in macOS 13.0 or newer
8 | import SwiftUI
9 |
10 | struct EventView: View {
| `- note: add @available attribute to enclosing struct
11 | let event: any CalendarEventRepresentable
12 | let selectionAction: SelectionAction
:
49 | }
50 |
51 | private var content: some View {
| `- note: add @available attribute to enclosing property
52 | let mainColor = event.calendarActivity.activityType.color
53 | let endDate = event.startDate.addingTimeInterval(event.calendarActivity.duration)
:
90 | .font(.caption)
91 | .padding(.top, 4)
92 | .fontWeight(.semibold)
| |- error: 'fontWeight' is only available in macOS 13.0 or newer
| `- note: add 'if #available' version check
93 | .dynamicTypeSize(.small ... .large)
94 | if event.columnCount > 0 {
/Users/admin/builder/spi-builder-workspace/Sources/SimpleCalendar/Views/EventView.swift:93:26: error: 'dynamicTypeSize' is only available in macOS 12.0 or newer
8 | import SwiftUI
9 |
10 | struct EventView: View {
| `- note: add @available attribute to enclosing struct
11 | let event: any CalendarEventRepresentable
12 | let selectionAction: SelectionAction
:
49 | }
50 |
51 | private var content: some View {
| `- note: add @available attribute to enclosing property
52 | let mainColor = event.calendarActivity.activityType.color
53 | let endDate = event.startDate.addingTimeInterval(event.calendarActivity.duration)
:
91 | .padding(.top, 4)
92 | .fontWeight(.semibold)
93 | .dynamicTypeSize(.small ... .large)
| |- error: 'dynamicTypeSize' is only available in macOS 12.0 or newer
| `- note: add 'if #available' version check
94 | if event.columnCount > 0 {
95 | Text("\(event.startDate.formatted(date: .omitted, time: .shortened)), \(Int(event.calendarActivity.duration / 60)) min")
/Users/admin/builder/spi-builder-workspace/Sources/SimpleCalendar/Views/EventView.swift:95:25: error: 'Text' is only available in macOS 10.15 or newer
8 | import SwiftUI
9 |
10 | struct EventView: View {
| `- note: add @available attribute to enclosing struct
11 | let event: any CalendarEventRepresentable
12 | let selectionAction: SelectionAction
:
49 | }
50 |
51 | private var content: some View {
| `- note: add @available attribute to enclosing property
52 | let mainColor = event.calendarActivity.activityType.color
53 | let endDate = event.startDate.addingTimeInterval(event.calendarActivity.duration)
:
93 | .dynamicTypeSize(.small ... .large)
94 | if event.columnCount > 0 {
95 | Text("\(event.startDate.formatted(date: .omitted, time: .shortened)), \(Int(event.calendarActivity.duration / 60)) min")
| |- error: 'Text' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
96 | .foregroundColor(mainColor)
97 | .font(.caption2)
/Users/admin/builder/spi-builder-workspace/Sources/SimpleCalendar/Views/EventView.swift:95:49: error: 'formatted(date:time:)' is only available in macOS 12.0 or newer
8 | import SwiftUI
9 |
10 | struct EventView: View {
| `- note: add @available attribute to enclosing struct
11 | let event: any CalendarEventRepresentable
12 | let selectionAction: SelectionAction
:
49 | }
50 |
51 | private var content: some View {
| `- note: add @available attribute to enclosing property
52 | let mainColor = event.calendarActivity.activityType.color
53 | let endDate = event.startDate.addingTimeInterval(event.calendarActivity.duration)
:
93 | .dynamicTypeSize(.small ... .large)
94 | if event.columnCount > 0 {
95 | Text("\(event.startDate.formatted(date: .omitted, time: .shortened)), \(Int(event.calendarActivity.duration / 60)) min")
| |- error: 'formatted(date:time:)' is only available in macOS 12.0 or newer
| `- note: add 'if #available' version check
96 | .foregroundColor(mainColor)
97 | .font(.caption2)
/Users/admin/builder/spi-builder-workspace/Sources/SimpleCalendar/Views/EventView.swift:96:30: error: 'foregroundColor' is only available in macOS 10.15 or newer
8 | import SwiftUI
9 |
10 | struct EventView: View {
| `- note: add @available attribute to enclosing struct
11 | let event: any CalendarEventRepresentable
12 | let selectionAction: SelectionAction
:
49 | }
50 |
51 | private var content: some View {
| `- note: add @available attribute to enclosing property
52 | let mainColor = event.calendarActivity.activityType.color
53 | let endDate = event.startDate.addingTimeInterval(event.calendarActivity.duration)
:
94 | if event.columnCount > 0 {
95 | Text("\(event.startDate.formatted(date: .omitted, time: .shortened)), \(Int(event.calendarActivity.duration / 60)) min")
96 | .foregroundColor(mainColor)
| |- error: 'foregroundColor' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
97 | .font(.caption2)
98 | .dynamicTypeSize(.small ... .large)
/Users/admin/builder/spi-builder-workspace/Sources/SimpleCalendar/Views/EventView.swift:97:30: error: 'font' is only available in macOS 10.15 or newer
8 | import SwiftUI
9 |
10 | struct EventView: View {
| `- note: add @available attribute to enclosing struct
11 | let event: any CalendarEventRepresentable
12 | let selectionAction: SelectionAction
:
49 | }
50 |
51 | private var content: some View {
| `- note: add @available attribute to enclosing property
52 | let mainColor = event.calendarActivity.activityType.color
53 | let endDate = event.startDate.addingTimeInterval(event.calendarActivity.duration)
:
95 | Text("\(event.startDate.formatted(date: .omitted, time: .shortened)), \(Int(event.calendarActivity.duration / 60)) min")
96 | .foregroundColor(mainColor)
97 | .font(.caption2)
| |- error: 'font' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
98 | .dynamicTypeSize(.small ... .large)
99 | } else {
/Users/admin/builder/spi-builder-workspace/Sources/SimpleCalendar/Views/EventView.swift:97:36: error: 'caption2' is only available in macOS 11.0 or newer
8 | import SwiftUI
9 |
10 | struct EventView: View {
| `- note: add @available attribute to enclosing struct
11 | let event: any CalendarEventRepresentable
12 | let selectionAction: SelectionAction
:
49 | }
50 |
51 | private var content: some View {
| `- note: add @available attribute to enclosing property
52 | let mainColor = event.calendarActivity.activityType.color
53 | let endDate = event.startDate.addingTimeInterval(event.calendarActivity.duration)
:
95 | Text("\(event.startDate.formatted(date: .omitted, time: .shortened)), \(Int(event.calendarActivity.duration / 60)) min")
96 | .foregroundColor(mainColor)
97 | .font(.caption2)
| |- error: 'caption2' is only available in macOS 11.0 or newer
| `- note: add 'if #available' version check
98 | .dynamicTypeSize(.small ... .large)
99 | } else {
/Users/admin/builder/spi-builder-workspace/Sources/SimpleCalendar/Views/EventView.swift:98:30: error: 'dynamicTypeSize' is only available in macOS 12.0 or newer
8 | import SwiftUI
9 |
10 | struct EventView: View {
| `- note: add @available attribute to enclosing struct
11 | let event: any CalendarEventRepresentable
12 | let selectionAction: SelectionAction
:
49 | }
50 |
51 | private var content: some View {
| `- note: add @available attribute to enclosing property
52 | let mainColor = event.calendarActivity.activityType.color
53 | let endDate = event.startDate.addingTimeInterval(event.calendarActivity.duration)
:
96 | .foregroundColor(mainColor)
97 | .font(.caption2)
98 | .dynamicTypeSize(.small ... .large)
| |- error: 'dynamicTypeSize' is only available in macOS 12.0 or newer
| `- note: add 'if #available' version check
99 | } else {
100 | Text("\(event.startDate.formatted(date: .omitted, time: .shortened)) - \(endDate.formatted(date: .omitted, time: .shortened)), \(Int(event.calendarActivity.duration / 60)) min")
/Users/admin/builder/spi-builder-workspace/Sources/SimpleCalendar/Views/EventView.swift:94:46: error: 'buildEither(first:)' is only available in macOS 10.15 or newer
8 | import SwiftUI
9 |
10 | struct EventView: View {
| `- note: add @available attribute to enclosing struct
11 | let event: any CalendarEventRepresentable
12 | let selectionAction: SelectionAction
:
49 | }
50 |
51 | private var content: some View {
| `- note: add @available attribute to enclosing property
52 | let mainColor = event.calendarActivity.activityType.color
53 | let endDate = event.startDate.addingTimeInterval(event.calendarActivity.duration)
:
92 | .fontWeight(.semibold)
93 | .dynamicTypeSize(.small ... .large)
94 | if event.columnCount > 0 {
| |- error: 'buildEither(first:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
95 | Text("\(event.startDate.formatted(date: .omitted, time: .shortened)), \(Int(event.calendarActivity.duration / 60)) min")
96 | .foregroundColor(mainColor)
/Users/admin/builder/spi-builder-workspace/Sources/SimpleCalendar/Views/EventView.swift:100:25: error: 'Text' is only available in macOS 10.15 or newer
8 | import SwiftUI
9 |
10 | struct EventView: View {
| `- note: add @available attribute to enclosing struct
11 | let event: any CalendarEventRepresentable
12 | let selectionAction: SelectionAction
:
49 | }
50 |
51 | private var content: some View {
| `- note: add @available attribute to enclosing property
52 | let mainColor = event.calendarActivity.activityType.color
53 | let endDate = event.startDate.addingTimeInterval(event.calendarActivity.duration)
:
98 | .dynamicTypeSize(.small ... .large)
99 | } else {
100 | Text("\(event.startDate.formatted(date: .omitted, time: .shortened)) - \(endDate.formatted(date: .omitted, time: .shortened)), \(Int(event.calendarActivity.duration / 60)) min")
| |- error: 'Text' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
101 | .foregroundColor(mainColor)
102 | .font(.caption2)
/Users/admin/builder/spi-builder-workspace/Sources/SimpleCalendar/Views/EventView.swift:100:49: error: 'formatted(date:time:)' is only available in macOS 12.0 or newer
8 | import SwiftUI
9 |
10 | struct EventView: View {
| `- note: add @available attribute to enclosing struct
11 | let event: any CalendarEventRepresentable
12 | let selectionAction: SelectionAction
:
49 | }
50 |
51 | private var content: some View {
| `- note: add @available attribute to enclosing property
52 | let mainColor = event.calendarActivity.activityType.color
53 | let endDate = event.startDate.addingTimeInterval(event.calendarActivity.duration)
:
98 | .dynamicTypeSize(.small ... .large)
99 | } else {
100 | Text("\(event.startDate.formatted(date: .omitted, time: .shortened)) - \(endDate.formatted(date: .omitted, time: .shortened)), \(Int(event.calendarActivity.duration / 60)) min")
| |- error: 'formatted(date:time:)' is only available in macOS 12.0 or newer
| `- note: add 'if #available' version check
101 | .foregroundColor(mainColor)
102 | .font(.caption2)
/Users/admin/builder/spi-builder-workspace/Sources/SimpleCalendar/Views/EventView.swift:100:106: error: 'formatted(date:time:)' is only available in macOS 12.0 or newer
8 | import SwiftUI
9 |
10 | struct EventView: View {
| `- note: add @available attribute to enclosing struct
11 | let event: any CalendarEventRepresentable
12 | let selectionAction: SelectionAction
:
49 | }
50 |
51 | private var content: some View {
| `- note: add @available attribute to enclosing property
52 | let mainColor = event.calendarActivity.activityType.color
53 | let endDate = event.startDate.addingTimeInterval(event.calendarActivity.duration)
:
98 | .dynamicTypeSize(.small ... .large)
99 | } else {
100 | Text("\(event.startDate.formatted(date: .omitted, time: .shortened)) - \(endDate.formatted(date: .omitted, time: .shortened)), \(Int(event.calendarActivity.duration / 60)) min")
| |- error: 'formatted(date:time:)' is only available in macOS 12.0 or newer
| `- note: add 'if #available' version check
101 | .foregroundColor(mainColor)
102 | .font(.caption2)
/Users/admin/builder/spi-builder-workspace/Sources/SimpleCalendar/Views/EventView.swift:101:30: error: 'foregroundColor' is only available in macOS 10.15 or newer
8 | import SwiftUI
9 |
10 | struct EventView: View {
| `- note: add @available attribute to enclosing struct
11 | let event: any CalendarEventRepresentable
12 | let selectionAction: SelectionAction
:
49 | }
50 |
51 | private var content: some View {
| `- note: add @available attribute to enclosing property
52 | let mainColor = event.calendarActivity.activityType.color
53 | let endDate = event.startDate.addingTimeInterval(event.calendarActivity.duration)
:
99 | } else {
100 | Text("\(event.startDate.formatted(date: .omitted, time: .shortened)) - \(endDate.formatted(date: .omitted, time: .shortened)), \(Int(event.calendarActivity.duration / 60)) min")
101 | .foregroundColor(mainColor)
| |- error: 'foregroundColor' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
102 | .font(.caption2)
103 | .dynamicTypeSize(.small ... .large)
/Users/admin/builder/spi-builder-workspace/Sources/SimpleCalendar/Views/EventView.swift:102:30: error: 'font' is only available in macOS 10.15 or newer
8 | import SwiftUI
9 |
10 | struct EventView: View {
| `- note: add @available attribute to enclosing struct
11 | let event: any CalendarEventRepresentable
12 | let selectionAction: SelectionAction
:
49 | }
50 |
51 | private var content: some View {
| `- note: add @available attribute to enclosing property
52 | let mainColor = event.calendarActivity.activityType.color
53 | let endDate = event.startDate.addingTimeInterval(event.calendarActivity.duration)
:
100 | Text("\(event.startDate.formatted(date: .omitted, time: .shortened)) - \(endDate.formatted(date: .omitted, time: .shortened)), \(Int(event.calendarActivity.duration / 60)) min")
101 | .foregroundColor(mainColor)
102 | .font(.caption2)
| |- error: 'font' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
103 | .dynamicTypeSize(.small ... .large)
104 | }
/Users/admin/builder/spi-builder-workspace/Sources/SimpleCalendar/Views/EventView.swift:102:36: error: 'caption2' is only available in macOS 11.0 or newer
8 | import SwiftUI
9 |
10 | struct EventView: View {
| `- note: add @available attribute to enclosing struct
11 | let event: any CalendarEventRepresentable
12 | let selectionAction: SelectionAction
:
49 | }
50 |
51 | private var content: some View {
| `- note: add @available attribute to enclosing property
52 | let mainColor = event.calendarActivity.activityType.color
53 | let endDate = event.startDate.addingTimeInterval(event.calendarActivity.duration)
:
100 | Text("\(event.startDate.formatted(date: .omitted, time: .shortened)) - \(endDate.formatted(date: .omitted, time: .shortened)), \(Int(event.calendarActivity.duration / 60)) min")
101 | .foregroundColor(mainColor)
102 | .font(.caption2)
| |- error: 'caption2' is only available in macOS 11.0 or newer
| `- note: add 'if #available' version check
103 | .dynamicTypeSize(.small ... .large)
104 | }
/Users/admin/builder/spi-builder-workspace/Sources/SimpleCalendar/Views/EventView.swift:103:30: error: 'dynamicTypeSize' is only available in macOS 12.0 or newer
8 | import SwiftUI
9 |
10 | struct EventView: View {
| `- note: add @available attribute to enclosing struct
11 | let event: any CalendarEventRepresentable
12 | let selectionAction: SelectionAction
:
49 | }
50 |
51 | private var content: some View {
| `- note: add @available attribute to enclosing property
52 | let mainColor = event.calendarActivity.activityType.color
53 | let endDate = event.startDate.addingTimeInterval(event.calendarActivity.duration)
:
101 | .foregroundColor(mainColor)
102 | .font(.caption2)
103 | .dynamicTypeSize(.small ... .large)
| |- error: 'dynamicTypeSize' is only available in macOS 12.0 or newer
| `- note: add 'if #available' version check
104 | }
105 | } else {
/Users/admin/builder/spi-builder-workspace/Sources/SimpleCalendar/Views/EventView.swift:99:28: error: 'buildEither(second:)' is only available in macOS 10.15 or newer
8 | import SwiftUI
9 |
10 | struct EventView: View {
| `- note: add @available attribute to enclosing struct
11 | let event: any CalendarEventRepresentable
12 | let selectionAction: SelectionAction
:
49 | }
50 |
51 | private var content: some View {
| `- note: add @available attribute to enclosing property
52 | let mainColor = event.calendarActivity.activityType.color
53 | let endDate = event.startDate.addingTimeInterval(event.calendarActivity.duration)
:
97 | .font(.caption2)
98 | .dynamicTypeSize(.small ... .large)
99 | } else {
| |- error: 'buildEither(second:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
100 | Text("\(event.startDate.formatted(date: .omitted, time: .shortened)) - \(endDate.formatted(date: .omitted, time: .shortened)), \(Int(event.calendarActivity.duration / 60)) min")
101 | .foregroundColor(mainColor)
/Users/admin/builder/spi-builder-workspace/Sources/SimpleCalendar/Views/EventView.swift:87:72: error: 'buildEither(first:)' is only available in macOS 10.15 or newer
8 | import SwiftUI
9 |
10 | struct EventView: View {
| `- note: add @available attribute to enclosing struct
11 | let event: any CalendarEventRepresentable
12 | let selectionAction: SelectionAction
:
49 | }
50 |
51 | private var content: some View {
| `- note: add @available attribute to enclosing property
52 | let mainColor = event.calendarActivity.activityType.color
53 | let endDate = event.startDate.addingTimeInterval(event.calendarActivity.duration)
:
85 | }
86 | }
87 | } else if (event.calendarActivity.duration / 60) <= 60 {
| |- error: 'buildEither(first:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
88 | Text(event.calendarActivity.title)
89 | .foregroundColor(mainColor)
/Users/admin/builder/spi-builder-workspace/Sources/SimpleCalendar/Views/EventView.swift:87:72: error: 'buildEither(second:)' is only available in macOS 10.15 or newer
8 | import SwiftUI
9 |
10 | struct EventView: View {
| `- note: add @available attribute to enclosing struct
11 | let event: any CalendarEventRepresentable
12 | let selectionAction: SelectionAction
:
49 | }
50 |
51 | private var content: some View {
| `- note: add @available attribute to enclosing property
52 | let mainColor = event.calendarActivity.activityType.color
53 | let endDate = event.startDate.addingTimeInterval(event.calendarActivity.duration)
:
85 | }
86 | }
87 | } else if (event.calendarActivity.duration / 60) <= 60 {
| |- error: 'buildEither(second:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
88 | Text(event.calendarActivity.title)
89 | .foregroundColor(mainColor)
/Users/admin/builder/spi-builder-workspace/Sources/SimpleCalendar/Views/EventView.swift:87: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
8 | import SwiftUI
9 |
10 | struct EventView: View {
| `- note: add @available attribute to enclosing struct
11 | let event: any CalendarEventRepresentable
12 | let selectionAction: SelectionAction
:
49 | }
50 |
51 | private var content: some View {
| `- note: add @available attribute to enclosing property
52 | let mainColor = event.calendarActivity.activityType.color
53 | let endDate = event.startDate.addingTimeInterval(event.calendarActivity.duration)
:
85 | }
86 | }
87 | } else if (event.calendarActivity.duration / 60) <= 60 {
| |- 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
88 | Text(event.calendarActivity.title)
89 | .foregroundColor(mainColor)
/Users/admin/builder/spi-builder-workspace/Sources/SimpleCalendar/Views/EventView.swift:106:21: error: 'Text' is only available in macOS 10.15 or newer
8 | import SwiftUI
9 |
10 | struct EventView: View {
| `- note: add @available attribute to enclosing struct
11 | let event: any CalendarEventRepresentable
12 | let selectionAction: SelectionAction
:
49 | }
50 |
51 | private var content: some View {
| `- note: add @available attribute to enclosing property
52 | let mainColor = event.calendarActivity.activityType.color
53 | let endDate = event.startDate.addingTimeInterval(event.calendarActivity.duration)
:
104 | }
105 | } else {
106 | Text(event.calendarActivity.title)
| |- error: 'Text' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
107 | .foregroundColor(mainColor)
108 | .font(.caption)
/Users/admin/builder/spi-builder-workspace/Sources/SimpleCalendar/Views/EventView.swift:107:26: error: 'foregroundColor' is only available in macOS 10.15 or newer
8 | import SwiftUI
9 |
10 | struct EventView: View {
| `- note: add @available attribute to enclosing struct
11 | let event: any CalendarEventRepresentable
12 | let selectionAction: SelectionAction
:
49 | }
50 |
51 | private var content: some View {
| `- note: add @available attribute to enclosing property
52 | let mainColor = event.calendarActivity.activityType.color
53 | let endDate = event.startDate.addingTimeInterval(event.calendarActivity.duration)
:
105 | } else {
106 | Text(event.calendarActivity.title)
107 | .foregroundColor(mainColor)
| |- error: 'foregroundColor' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
108 | .font(.caption)
109 | .padding(.top, 4)
/Users/admin/builder/spi-builder-workspace/Sources/SimpleCalendar/Views/EventView.swift:108:26: error: 'font' is only available in macOS 10.15 or newer
8 | import SwiftUI
9 |
10 | struct EventView: View {
| `- note: add @available attribute to enclosing struct
11 | let event: any CalendarEventRepresentable
12 | let selectionAction: SelectionAction
:
49 | }
50 |
51 | private var content: some View {
| `- note: add @available attribute to enclosing property
52 | let mainColor = event.calendarActivity.activityType.color
53 | let endDate = event.startDate.addingTimeInterval(event.calendarActivity.duration)
:
106 | Text(event.calendarActivity.title)
107 | .foregroundColor(mainColor)
108 | .font(.caption)
| |- error: 'font' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
109 | .padding(.top, 4)
110 | .fontWeight(.semibold)
/Users/admin/builder/spi-builder-workspace/Sources/SimpleCalendar/Views/EventView.swift:108:32: error: 'caption' is only available in macOS 10.15 or newer
8 | import SwiftUI
9 |
10 | struct EventView: View {
| `- note: add @available attribute to enclosing struct
11 | let event: any CalendarEventRepresentable
12 | let selectionAction: SelectionAction
:
49 | }
50 |
51 | private var content: some View {
| `- note: add @available attribute to enclosing property
52 | let mainColor = event.calendarActivity.activityType.color
53 | let endDate = event.startDate.addingTimeInterval(event.calendarActivity.duration)
:
106 | Text(event.calendarActivity.title)
107 | .foregroundColor(mainColor)
108 | .font(.caption)
| |- error: 'caption' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
109 | .padding(.top, 4)
110 | .fontWeight(.semibold)
/Users/admin/builder/spi-builder-workspace/Sources/SimpleCalendar/Views/EventView.swift:109:26: error: 'padding' is only available in macOS 10.15 or newer
8 | import SwiftUI
9 |
10 | struct EventView: View {
| `- note: add @available attribute to enclosing struct
11 | let event: any CalendarEventRepresentable
12 | let selectionAction: SelectionAction
:
49 | }
50 |
51 | private var content: some View {
| `- note: add @available attribute to enclosing property
52 | let mainColor = event.calendarActivity.activityType.color
53 | let endDate = event.startDate.addingTimeInterval(event.calendarActivity.duration)
:
107 | .foregroundColor(mainColor)
108 | .font(.caption)
109 | .padding(.top, 4)
| |- error: 'padding' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
110 | .fontWeight(.semibold)
111 | .dynamicTypeSize(.small ... .large)
/Users/admin/builder/spi-builder-workspace/Sources/SimpleCalendar/Views/EventView.swift:110:26: error: 'fontWeight' is only available in macOS 13.0 or newer
8 | import SwiftUI
9 |
10 | struct EventView: View {
| `- note: add @available attribute to enclosing struct
11 | let event: any CalendarEventRepresentable
12 | let selectionAction: SelectionAction
:
49 | }
50 |
51 | private var content: some View {
| `- note: add @available attribute to enclosing property
52 | let mainColor = event.calendarActivity.activityType.color
53 | let endDate = event.startDate.addingTimeInterval(event.calendarActivity.duration)
:
108 | .font(.caption)
109 | .padding(.top, 4)
110 | .fontWeight(.semibold)
| |- error: 'fontWeight' is only available in macOS 13.0 or newer
| `- note: add 'if #available' version check
111 | .dynamicTypeSize(.small ... .large)
112 | Text("\(event.startDate.formatted(date: .omitted, time: .shortened)) - \(endDate.formatted(date: .omitted, time: .shortened))")
/Users/admin/builder/spi-builder-workspace/Sources/SimpleCalendar/Views/EventView.swift:111:26: error: 'dynamicTypeSize' is only available in macOS 12.0 or newer
8 | import SwiftUI
9 |
10 | struct EventView: View {
| `- note: add @available attribute to enclosing struct
11 | let event: any CalendarEventRepresentable
12 | let selectionAction: SelectionAction
:
49 | }
50 |
51 | private var content: some View {
| `- note: add @available attribute to enclosing property
52 | let mainColor = event.calendarActivity.activityType.color
53 | let endDate = event.startDate.addingTimeInterval(event.calendarActivity.duration)
:
109 | .padding(.top, 4)
110 | .fontWeight(.semibold)
111 | .dynamicTypeSize(.small ... .large)
| |- error: 'dynamicTypeSize' is only available in macOS 12.0 or newer
| `- note: add 'if #available' version check
112 | Text("\(event.startDate.formatted(date: .omitted, time: .shortened)) - \(endDate.formatted(date: .omitted, time: .shortened))")
113 | .foregroundColor(mainColor)
/Users/admin/builder/spi-builder-workspace/Sources/SimpleCalendar/Views/EventView.swift:112:21: error: 'Text' is only available in macOS 10.15 or newer
8 | import SwiftUI
9 |
10 | struct EventView: View {
| `- note: add @available attribute to enclosing struct
11 | let event: any CalendarEventRepresentable
12 | let selectionAction: SelectionAction
:
49 | }
50 |
51 | private var content: some View {
| `- note: add @available attribute to enclosing property
52 | let mainColor = event.calendarActivity.activityType.color
53 | let endDate = event.startDate.addingTimeInterval(event.calendarActivity.duration)
:
110 | .fontWeight(.semibold)
111 | .dynamicTypeSize(.small ... .large)
112 | Text("\(event.startDate.formatted(date: .omitted, time: .shortened)) - \(endDate.formatted(date: .omitted, time: .shortened))")
| |- error: 'Text' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
113 | .foregroundColor(mainColor)
114 | .font(.caption2)
/Users/admin/builder/spi-builder-workspace/Sources/SimpleCalendar/Views/EventView.swift:112:45: error: 'formatted(date:time:)' is only available in macOS 12.0 or newer
8 | import SwiftUI
9 |
10 | struct EventView: View {
| `- note: add @available attribute to enclosing struct
11 | let event: any CalendarEventRepresentable
12 | let selectionAction: SelectionAction
:
49 | }
50 |
51 | private var content: some View {
| `- note: add @available attribute to enclosing property
52 | let mainColor = event.calendarActivity.activityType.color
53 | let endDate = event.startDate.addingTimeInterval(event.calendarActivity.duration)
:
110 | .fontWeight(.semibold)
111 | .dynamicTypeSize(.small ... .large)
112 | Text("\(event.startDate.formatted(date: .omitted, time: .shortened)) - \(endDate.formatted(date: .omitted, time: .shortened))")
| |- error: 'formatted(date:time:)' is only available in macOS 12.0 or newer
| `- note: add 'if #available' version check
113 | .foregroundColor(mainColor)
114 | .font(.caption2)
/Users/admin/builder/spi-builder-workspace/Sources/SimpleCalendar/Views/EventView.swift:112:102: error: 'formatted(date:time:)' is only available in macOS 12.0 or newer
8 | import SwiftUI
9 |
10 | struct EventView: View {
| `- note: add @available attribute to enclosing struct
11 | let event: any CalendarEventRepresentable
12 | let selectionAction: SelectionAction
:
49 | }
50 |
51 | private var content: some View {
| `- note: add @available attribute to enclosing property
52 | let mainColor = event.calendarActivity.activityType.color
53 | let endDate = event.startDate.addingTimeInterval(event.calendarActivity.duration)
:
110 | .fontWeight(.semibold)
111 | .dynamicTypeSize(.small ... .large)
112 | Text("\(event.startDate.formatted(date: .omitted, time: .shortened)) - \(endDate.formatted(date: .omitted, time: .shortened))")
| |- error: 'formatted(date:time:)' is only available in macOS 12.0 or newer
| `- note: add 'if #available' version check
113 | .foregroundColor(mainColor)
114 | .font(.caption2)
/Users/admin/builder/spi-builder-workspace/Sources/SimpleCalendar/Views/EventView.swift:113:26: error: 'foregroundColor' is only available in macOS 10.15 or newer
8 | import SwiftUI
9 |
10 | struct EventView: View {
| `- note: add @available attribute to enclosing struct
11 | let event: any CalendarEventRepresentable
12 | let selectionAction: SelectionAction
:
49 | }
50 |
51 | private var content: some View {
| `- note: add @available attribute to enclosing property
52 | let mainColor = event.calendarActivity.activityType.color
53 | let endDate = event.startDate.addingTimeInterval(event.calendarActivity.duration)
:
111 | .dynamicTypeSize(.small ... .large)
112 | Text("\(event.startDate.formatted(date: .omitted, time: .shortened)) - \(endDate.formatted(date: .omitted, time: .shortened))")
113 | .foregroundColor(mainColor)
| |- error: 'foregroundColor' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
114 | .font(.caption2)
115 | .dynamicTypeSize(.small ... .large)
/Users/admin/builder/spi-builder-workspace/Sources/SimpleCalendar/Views/EventView.swift:114:26: error: 'font' is only available in macOS 10.15 or newer
8 | import SwiftUI
9 |
10 | struct EventView: View {
| `- note: add @available attribute to enclosing struct
11 | let event: any CalendarEventRepresentable
12 | let selectionAction: SelectionAction
:
49 | }
50 |
51 | private var content: some View {
| `- note: add @available attribute to enclosing property
52 | let mainColor = event.calendarActivity.activityType.color
53 | let endDate = event.startDate.addingTimeInterval(event.calendarActivity.duration)
:
112 | Text("\(event.startDate.formatted(date: .omitted, time: .shortened)) - \(endDate.formatted(date: .omitted, time: .shortened))")
113 | .foregroundColor(mainColor)
114 | .font(.caption2)
| |- error: 'font' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
115 | .dynamicTypeSize(.small ... .large)
116 | Text("Duration: \(Int(event.calendarActivity.duration / 60)) min")
/Users/admin/builder/spi-builder-workspace/Sources/SimpleCalendar/Views/EventView.swift:114:32: error: 'caption2' is only available in macOS 11.0 or newer
8 | import SwiftUI
9 |
10 | struct EventView: View {
| `- note: add @available attribute to enclosing struct
11 | let event: any CalendarEventRepresentable
12 | let selectionAction: SelectionAction
:
49 | }
50 |
51 | private var content: some View {
| `- note: add @available attribute to enclosing property
52 | let mainColor = event.calendarActivity.activityType.color
53 | let endDate = event.startDate.addingTimeInterval(event.calendarActivity.duration)
:
112 | Text("\(event.startDate.formatted(date: .omitted, time: .shortened)) - \(endDate.formatted(date: .omitted, time: .shortened))")
113 | .foregroundColor(mainColor)
114 | .font(.caption2)
| |- error: 'caption2' is only available in macOS 11.0 or newer
| `- note: add 'if #available' version check
115 | .dynamicTypeSize(.small ... .large)
116 | Text("Duration: \(Int(event.calendarActivity.duration / 60)) min")
/Users/admin/builder/spi-builder-workspace/Sources/SimpleCalendar/Views/EventView.swift:115:26: error: 'dynamicTypeSize' is only available in macOS 12.0 or newer
8 | import SwiftUI
9 |
10 | struct EventView: View {
| `- note: add @available attribute to enclosing struct
11 | let event: any CalendarEventRepresentable
12 | let selectionAction: SelectionAction
:
49 | }
50 |
51 | private var content: some View {
| `- note: add @available attribute to enclosing property
52 | let mainColor = event.calendarActivity.activityType.color
53 | let endDate = event.startDate.addingTimeInterval(event.calendarActivity.duration)
:
113 | .foregroundColor(mainColor)
114 | .font(.caption2)
115 | .dynamicTypeSize(.small ... .large)
| |- error: 'dynamicTypeSize' is only available in macOS 12.0 or newer
| `- note: add 'if #available' version check
116 | Text("Duration: \(Int(event.calendarActivity.duration / 60)) min")
117 | .foregroundColor(mainColor)
/Users/admin/builder/spi-builder-workspace/Sources/SimpleCalendar/Views/EventView.swift:116:21: error: 'Text' is only available in macOS 10.15 or newer
8 | import SwiftUI
9 |
10 | struct EventView: View {
| `- note: add @available attribute to enclosing struct
11 | let event: any CalendarEventRepresentable
12 | let selectionAction: SelectionAction
:
49 | }
50 |
51 | private var content: some View {
| `- note: add @available attribute to enclosing property
52 | let mainColor = event.calendarActivity.activityType.color
53 | let endDate = event.startDate.addingTimeInterval(event.calendarActivity.duration)
:
114 | .font(.caption2)
115 | .dynamicTypeSize(.small ... .large)
116 | Text("Duration: \(Int(event.calendarActivity.duration / 60)) min")
| |- error: 'Text' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
117 | .foregroundColor(mainColor)
118 | .font(.caption2)
/Users/admin/builder/spi-builder-workspace/Sources/SimpleCalendar/Views/EventView.swift:117:26: error: 'foregroundColor' is only available in macOS 10.15 or newer
8 | import SwiftUI
9 |
10 | struct EventView: View {
| `- note: add @available attribute to enclosing struct
11 | let event: any CalendarEventRepresentable
12 | let selectionAction: SelectionAction
:
49 | }
50 |
51 | private var content: some View {
| `- note: add @available attribute to enclosing property
52 | let mainColor = event.calendarActivity.activityType.color
53 | let endDate = event.startDate.addingTimeInterval(event.calendarActivity.duration)
:
115 | .dynamicTypeSize(.small ... .large)
116 | Text("Duration: \(Int(event.calendarActivity.duration / 60)) min")
117 | .foregroundColor(mainColor)
| |- error: 'foregroundColor' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
118 | .font(.caption2)
119 | .dynamicTypeSize(.small ... .large)
/Users/admin/builder/spi-builder-workspace/Sources/SimpleCalendar/Views/EventView.swift:118:26: error: 'font' is only available in macOS 10.15 or newer
8 | import SwiftUI
9 |
10 | struct EventView: View {
| `- note: add @available attribute to enclosing struct
11 | let event: any CalendarEventRepresentable
12 | let selectionAction: SelectionAction
:
49 | }
50 |
51 | private var content: some View {
| `- note: add @available attribute to enclosing property
52 | let mainColor = event.calendarActivity.activityType.color
53 | let endDate = event.startDate.addingTimeInterval(event.calendarActivity.duration)
:
116 | Text("Duration: \(Int(event.calendarActivity.duration / 60)) min")
117 | .foregroundColor(mainColor)
118 | .font(.caption2)
| |- error: 'font' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
119 | .dynamicTypeSize(.small ... .large)
120 | }
/Users/admin/builder/spi-builder-workspace/Sources/SimpleCalendar/Views/EventView.swift:118:32: error: 'caption2' is only available in macOS 11.0 or newer
8 | import SwiftUI
9 |
10 | struct EventView: View {
| `- note: add @available attribute to enclosing struct
11 | let event: any CalendarEventRepresentable
12 | let selectionAction: SelectionAction
:
49 | }
50 |
51 | private var content: some View {
| `- note: add @available attribute to enclosing property
52 | let mainColor = event.calendarActivity.activityType.color
53 | let endDate = event.startDate.addingTimeInterval(event.calendarActivity.duration)
:
116 | Text("Duration: \(Int(event.calendarActivity.duration / 60)) min")
117 | .foregroundColor(mainColor)
118 | .font(.caption2)
| |- error: 'caption2' is only available in macOS 11.0 or newer
| `- note: add 'if #available' version check
119 | .dynamicTypeSize(.small ... .large)
120 | }
/Users/admin/builder/spi-builder-workspace/Sources/SimpleCalendar/Views/EventView.swift:119:26: error: 'dynamicTypeSize' is only available in macOS 12.0 or newer
8 | import SwiftUI
9 |
10 | struct EventView: View {
| `- note: add @available attribute to enclosing struct
11 | let event: any CalendarEventRepresentable
12 | let selectionAction: SelectionAction
:
49 | }
50 |
51 | private var content: some View {
| `- note: add @available attribute to enclosing property
52 | let mainColor = event.calendarActivity.activityType.color
53 | let endDate = event.startDate.addingTimeInterval(event.calendarActivity.duration)
:
117 | .foregroundColor(mainColor)
118 | .font(.caption2)
119 | .dynamicTypeSize(.small ... .large)
| |- error: 'dynamicTypeSize' is only available in macOS 12.0 or newer
| `- note: add 'if #available' version check
120 | }
121 | Spacer()
/Users/admin/builder/spi-builder-workspace/Sources/SimpleCalendar/Views/EventView.swift:105:24: error: 'buildEither(second:)' is only available in macOS 10.15 or newer
8 | import SwiftUI
9 |
10 | struct EventView: View {
| `- note: add @available attribute to enclosing struct
11 | let event: any CalendarEventRepresentable
12 | let selectionAction: SelectionAction
:
49 | }
50 |
51 | private var content: some View {
| `- note: add @available attribute to enclosing property
52 | let mainColor = event.calendarActivity.activityType.color
53 | let endDate = event.startDate.addingTimeInterval(event.calendarActivity.duration)
:
103 | .dynamicTypeSize(.small ... .large)
104 | }
105 | } else {
| |- error: 'buildEither(second:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
106 | Text(event.calendarActivity.title)
107 | .foregroundColor(mainColor)
/Users/admin/builder/spi-builder-workspace/Sources/SimpleCalendar/Views/EventView.swift:121:17: warning: conformance of 'Spacer' to 'View' is only available in macOS 10.15 or newer; this is an error in the Swift 6 language mode
8 | import SwiftUI
9 |
10 | struct EventView: View {
| `- note: add @available attribute to enclosing struct
11 | let event: any CalendarEventRepresentable
12 | let selectionAction: SelectionAction
:
49 | }
50 |
51 | private var content: some View {
| `- note: add @available attribute to enclosing property
52 | let mainColor = event.calendarActivity.activityType.color
53 | let endDate = event.startDate.addingTimeInterval(event.calendarActivity.duration)
:
119 | .dynamicTypeSize(.small ... .large)
120 | }
121 | Spacer()
| |- warning: conformance of 'Spacer' to 'View' is only available in macOS 10.15 or newer; this is an error in the Swift 6 language mode
| `- note: add 'if #available' version check
122 | }
123 | .padding(.horizontal, 8)
/Users/admin/builder/spi-builder-workspace/Sources/SimpleCalendar/Views/EventView.swift:121:17: error: 'Spacer' is only available in macOS 10.15 or newer
8 | import SwiftUI
9 |
10 | struct EventView: View {
| `- note: add @available attribute to enclosing struct
11 | let event: any CalendarEventRepresentable
12 | let selectionAction: SelectionAction
:
49 | }
50 |
51 | private var content: some View {
| `- note: add @available attribute to enclosing property
52 | let mainColor = event.calendarActivity.activityType.color
53 | let endDate = event.startDate.addingTimeInterval(event.calendarActivity.duration)
:
119 | .dynamicTypeSize(.small ... .large)
120 | }
121 | Spacer()
| |- error: 'Spacer' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
122 | }
123 | .padding(.horizontal, 8)
/Users/admin/builder/spi-builder-workspace/Sources/SimpleCalendar/Views/EventView.swift:56:41: 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
8 | import SwiftUI
9 |
10 | struct EventView: View {
| `- note: add @available attribute to enclosing struct
11 | let event: any CalendarEventRepresentable
12 | let selectionAction: SelectionAction
:
49 | }
50 |
51 | private var content: some View {
| `- note: add @available attribute to enclosing property
52 | let mainColor = event.calendarActivity.activityType.color
53 | let endDate = event.startDate.addingTimeInterval(event.calendarActivity.duration)
54 |
55 | return VStack {
56 | VStack(alignment: .leading) {
| |- 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
57 | if (event.calendarActivity.duration / 60) <= 30 {
58 | if event.columnCount > 0 {
/Users/admin/builder/spi-builder-workspace/Sources/SimpleCalendar/Views/EventView.swift:56:41: warning: conformance of 'Spacer' to 'View' is only available in macOS 10.15 or newer; this is an error in the Swift 6 language mode
8 | import SwiftUI
9 |
10 | struct EventView: View {
| `- note: add @available attribute to enclosing struct
11 | let event: any CalendarEventRepresentable
12 | let selectionAction: SelectionAction
:
49 | }
50 |
51 | private var content: some View {
| `- note: add @available attribute to enclosing property
52 | let mainColor = event.calendarActivity.activityType.color
53 | let endDate = event.startDate.addingTimeInterval(event.calendarActivity.duration)
54 |
55 | return VStack {
56 | VStack(alignment: .leading) {
| |- warning: conformance of 'Spacer' to 'View' is only available in macOS 10.15 or newer; this is an error in the Swift 6 language mode
| `- note: add 'if #available' version check
57 | if (event.calendarActivity.duration / 60) <= 30 {
58 | if event.columnCount > 0 {
/Users/admin/builder/spi-builder-workspace/Sources/SimpleCalendar/Views/EventView.swift:123:14: error: 'padding' is only available in macOS 10.15 or newer
8 | import SwiftUI
9 |
10 | struct EventView: View {
| `- note: add @available attribute to enclosing struct
11 | let event: any CalendarEventRepresentable
12 | let selectionAction: SelectionAction
:
49 | }
50 |
51 | private var content: some View {
| `- note: add @available attribute to enclosing property
52 | let mainColor = event.calendarActivity.activityType.color
53 | let endDate = event.startDate.addingTimeInterval(event.calendarActivity.duration)
:
121 | Spacer()
122 | }
123 | .padding(.horizontal, 8)
| |- error: 'padding' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
124 | .frame(maxWidth: .infinity, maxHeight: .infinity, alignment: .leading)
125 | .background(.ultraThinMaterial)
/Users/admin/builder/spi-builder-workspace/Sources/SimpleCalendar/Views/EventView.swift:124:14: error: 'frame(minWidth:idealWidth:maxWidth:minHeight:idealHeight:maxHeight:alignment:)' is only available in macOS 10.15 or newer
8 | import SwiftUI
9 |
10 | struct EventView: View {
| `- note: add @available attribute to enclosing struct
11 | let event: any CalendarEventRepresentable
12 | let selectionAction: SelectionAction
:
49 | }
50 |
51 | private var content: some View {
| `- note: add @available attribute to enclosing property
52 | let mainColor = event.calendarActivity.activityType.color
53 | let endDate = event.startDate.addingTimeInterval(event.calendarActivity.duration)
:
122 | }
123 | .padding(.horizontal, 8)
124 | .frame(maxWidth: .infinity, maxHeight: .infinity, alignment: .leading)
| |- error: 'frame(minWidth:idealWidth:maxWidth:minHeight:idealHeight:maxHeight:alignment:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
125 | .background(.ultraThinMaterial)
126 | .background(mainColor.opacity(0.30), in: RoundedRectangle(cornerRadius: 8, style: .continuous))
/Users/admin/builder/spi-builder-workspace/Sources/SimpleCalendar/Views/EventView.swift:124:75: error: 'leading' is only available in macOS 10.15 or newer
8 | import SwiftUI
9 |
10 | struct EventView: View {
| `- note: add @available attribute to enclosing struct
11 | let event: any CalendarEventRepresentable
12 | let selectionAction: SelectionAction
:
49 | }
50 |
51 | private var content: some View {
| `- note: add @available attribute to enclosing property
52 | let mainColor = event.calendarActivity.activityType.color
53 | let endDate = event.startDate.addingTimeInterval(event.calendarActivity.duration)
:
122 | }
123 | .padding(.horizontal, 8)
124 | .frame(maxWidth: .infinity, maxHeight: .infinity, alignment: .leading)
| |- error: 'leading' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
125 | .background(.ultraThinMaterial)
126 | .background(mainColor.opacity(0.30), in: RoundedRectangle(cornerRadius: 8, style: .continuous))
/Users/admin/builder/spi-builder-workspace/Sources/SimpleCalendar/Views/EventView.swift:125:14: error: 'background(_:ignoresSafeAreaEdges:)' is only available in macOS 12.0 or newer
8 | import SwiftUI
9 |
10 | struct EventView: View {
| `- note: add @available attribute to enclosing struct
11 | let event: any CalendarEventRepresentable
12 | let selectionAction: SelectionAction
:
49 | }
50 |
51 | private var content: some View {
| `- note: add @available attribute to enclosing property
52 | let mainColor = event.calendarActivity.activityType.color
53 | let endDate = event.startDate.addingTimeInterval(event.calendarActivity.duration)
:
123 | .padding(.horizontal, 8)
124 | .frame(maxWidth: .infinity, maxHeight: .infinity, alignment: .leading)
125 | .background(.ultraThinMaterial)
| |- error: 'background(_:ignoresSafeAreaEdges:)' is only available in macOS 12.0 or newer
| `- note: add 'if #available' version check
126 | .background(mainColor.opacity(0.30), in: RoundedRectangle(cornerRadius: 8, style: .continuous))
127 | .overlay {
/Users/admin/builder/spi-builder-workspace/Sources/SimpleCalendar/Views/EventView.swift:125:26: error: 'ultraThinMaterial' is only available in macOS 12.0 or newer
8 | import SwiftUI
9 |
10 | struct EventView: View {
| `- note: add @available attribute to enclosing struct
11 | let event: any CalendarEventRepresentable
12 | let selectionAction: SelectionAction
:
49 | }
50 |
51 | private var content: some View {
| `- note: add @available attribute to enclosing property
52 | let mainColor = event.calendarActivity.activityType.color
53 | let endDate = event.startDate.addingTimeInterval(event.calendarActivity.duration)
:
123 | .padding(.horizontal, 8)
124 | .frame(maxWidth: .infinity, maxHeight: .infinity, alignment: .leading)
125 | .background(.ultraThinMaterial)
| |- error: 'ultraThinMaterial' is only available in macOS 12.0 or newer
| `- note: add 'if #available' version check
126 | .background(mainColor.opacity(0.30), in: RoundedRectangle(cornerRadius: 8, style: .continuous))
127 | .overlay {
/Users/admin/builder/spi-builder-workspace/Sources/SimpleCalendar/Views/EventView.swift:126:14: error: 'background(_:in:fillStyle:)' is only available in macOS 12.0 or newer
8 | import SwiftUI
9 |
10 | struct EventView: View {
| `- note: add @available attribute to enclosing struct
11 | let event: any CalendarEventRepresentable
12 | let selectionAction: SelectionAction
:
49 | }
50 |
51 | private var content: some View {
| `- note: add @available attribute to enclosing property
52 | let mainColor = event.calendarActivity.activityType.color
53 | let endDate = event.startDate.addingTimeInterval(event.calendarActivity.duration)
:
124 | .frame(maxWidth: .infinity, maxHeight: .infinity, alignment: .leading)
125 | .background(.ultraThinMaterial)
126 | .background(mainColor.opacity(0.30), in: RoundedRectangle(cornerRadius: 8, style: .continuous))
| |- error: 'background(_:in:fillStyle:)' is only available in macOS 12.0 or newer
| `- note: add 'if #available' version check
127 | .overlay {
128 | HStack {
/Users/admin/builder/spi-builder-workspace/Sources/SimpleCalendar/Views/EventView.swift:126:35: error: 'opacity' is only available in macOS 10.15 or newer
8 | import SwiftUI
9 |
10 | struct EventView: View {
| `- note: add @available attribute to enclosing struct
11 | let event: any CalendarEventRepresentable
12 | let selectionAction: SelectionAction
:
49 | }
50 |
51 | private var content: some View {
| `- note: add @available attribute to enclosing property
52 | let mainColor = event.calendarActivity.activityType.color
53 | let endDate = event.startDate.addingTimeInterval(event.calendarActivity.duration)
:
124 | .frame(maxWidth: .infinity, maxHeight: .infinity, alignment: .leading)
125 | .background(.ultraThinMaterial)
126 | .background(mainColor.opacity(0.30), in: RoundedRectangle(cornerRadius: 8, style: .continuous))
| |- error: 'opacity' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
127 | .overlay {
128 | HStack {
/Users/admin/builder/spi-builder-workspace/Sources/SimpleCalendar/Views/EventView.swift:126:54: error: 'RoundedRectangle' is only available in macOS 10.15 or newer
8 | import SwiftUI
9 |
10 | struct EventView: View {
| `- note: add @available attribute to enclosing struct
11 | let event: any CalendarEventRepresentable
12 | let selectionAction: SelectionAction
:
49 | }
50 |
51 | private var content: some View {
| `- note: add @available attribute to enclosing property
52 | let mainColor = event.calendarActivity.activityType.color
53 | let endDate = event.startDate.addingTimeInterval(event.calendarActivity.duration)
:
124 | .frame(maxWidth: .infinity, maxHeight: .infinity, alignment: .leading)
125 | .background(.ultraThinMaterial)
126 | .background(mainColor.opacity(0.30), in: RoundedRectangle(cornerRadius: 8, style: .continuous))
| |- error: 'RoundedRectangle' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
127 | .overlay {
128 | HStack {
/Users/admin/builder/spi-builder-workspace/Sources/SimpleCalendar/Views/EventView.swift:127:14: error: 'overlay(alignment:content:)' is only available in macOS 12.0 or newer
8 | import SwiftUI
9 |
10 | struct EventView: View {
| `- note: add @available attribute to enclosing struct
11 | let event: any CalendarEventRepresentable
12 | let selectionAction: SelectionAction
:
49 | }
50 |
51 | private var content: some View {
| `- note: add @available attribute to enclosing property
52 | let mainColor = event.calendarActivity.activityType.color
53 | let endDate = event.startDate.addingTimeInterval(event.calendarActivity.duration)
:
125 | .background(.ultraThinMaterial)
126 | .background(mainColor.opacity(0.30), in: RoundedRectangle(cornerRadius: 8, style: .continuous))
127 | .overlay {
| |- error: 'overlay(alignment:content:)' is only available in macOS 12.0 or newer
| `- note: add 'if #available' version check
128 | HStack {
129 | Rectangle()
/Users/admin/builder/spi-builder-workspace/Sources/SimpleCalendar/Views/EventView.swift:127:22: warning: conformance of 'Color' to 'ShapeStyle' is only available in macOS 10.15 or newer; this is an error in the Swift 6 language mode
8 | import SwiftUI
9 |
10 | struct EventView: View {
| `- note: add @available attribute to enclosing struct
11 | let event: any CalendarEventRepresentable
12 | let selectionAction: SelectionAction
:
49 | }
50 |
51 | private var content: some View {
| `- note: add @available attribute to enclosing property
52 | let mainColor = event.calendarActivity.activityType.color
53 | let endDate = event.startDate.addingTimeInterval(event.calendarActivity.duration)
:
125 | .background(.ultraThinMaterial)
126 | .background(mainColor.opacity(0.30), in: RoundedRectangle(cornerRadius: 8, style: .continuous))
127 | .overlay {
| |- warning: conformance of 'Color' to 'ShapeStyle' is only available in macOS 10.15 or newer; this is an error in the Swift 6 language mode
| `- note: add 'if #available' version check
128 | HStack {
129 | Rectangle()
/Users/admin/builder/spi-builder-workspace/Sources/SimpleCalendar/Views/EventView.swift:128:17: error: 'HStack' is only available in macOS 10.15 or newer
8 | import SwiftUI
9 |
10 | struct EventView: View {
| `- note: add @available attribute to enclosing struct
11 | let event: any CalendarEventRepresentable
12 | let selectionAction: SelectionAction
:
49 | }
50 |
51 | private var content: some View {
| `- note: add @available attribute to enclosing property
52 | let mainColor = event.calendarActivity.activityType.color
53 | let endDate = event.startDate.addingTimeInterval(event.calendarActivity.duration)
:
126 | .background(mainColor.opacity(0.30), in: RoundedRectangle(cornerRadius: 8, style: .continuous))
127 | .overlay {
128 | HStack {
| |- error: 'HStack' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
129 | Rectangle()
130 | .fill(mainColor)
/Users/admin/builder/spi-builder-workspace/Sources/SimpleCalendar/Views/EventView.swift:128:24: warning: conformance of 'Color' to 'ShapeStyle' is only available in macOS 10.15 or newer; this is an error in the Swift 6 language mode
8 | import SwiftUI
9 |
10 | struct EventView: View {
| `- note: add @available attribute to enclosing struct
11 | let event: any CalendarEventRepresentable
12 | let selectionAction: SelectionAction
:
49 | }
50 |
51 | private var content: some View {
| `- note: add @available attribute to enclosing property
52 | let mainColor = event.calendarActivity.activityType.color
53 | let endDate = event.startDate.addingTimeInterval(event.calendarActivity.duration)
:
126 | .background(mainColor.opacity(0.30), in: RoundedRectangle(cornerRadius: 8, style: .continuous))
127 | .overlay {
128 | HStack {
| |- warning: conformance of 'Color' to 'ShapeStyle' is only available in macOS 10.15 or newer; this is an error in the Swift 6 language mode
| `- note: add 'if #available' version check
129 | Rectangle()
130 | .fill(mainColor)
/Users/admin/builder/spi-builder-workspace/Sources/SimpleCalendar/Views/EventView.swift:129:21: error: 'Rectangle' is only available in macOS 10.15 or newer
8 | import SwiftUI
9 |
10 | struct EventView: View {
| `- note: add @available attribute to enclosing struct
11 | let event: any CalendarEventRepresentable
12 | let selectionAction: SelectionAction
:
49 | }
50 |
51 | private var content: some View {
| `- note: add @available attribute to enclosing property
52 | let mainColor = event.calendarActivity.activityType.color
53 | let endDate = event.startDate.addingTimeInterval(event.calendarActivity.duration)
:
127 | .overlay {
128 | HStack {
129 | Rectangle()
| |- error: 'Rectangle' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
130 | .fill(mainColor)
131 | .frame(maxHeight: .infinity, alignment: .leading)
/Users/admin/builder/spi-builder-workspace/Sources/SimpleCalendar/Views/EventView.swift:130:26: error: 'fill(_:style:)' is only available in macOS 14.0 or newer
8 | import SwiftUI
9 |
10 | struct EventView: View {
| `- note: add @available attribute to enclosing struct
11 | let event: any CalendarEventRepresentable
12 | let selectionAction: SelectionAction
:
49 | }
50 |
51 | private var content: some View {
| `- note: add @available attribute to enclosing property
52 | let mainColor = event.calendarActivity.activityType.color
53 | let endDate = event.startDate.addingTimeInterval(event.calendarActivity.duration)
:
128 | HStack {
129 | Rectangle()
130 | .fill(mainColor)
| |- error: 'fill(_:style:)' is only available in macOS 14.0 or newer
| `- note: add 'if #available' version check
131 | .frame(maxHeight: .infinity, alignment: .leading)
132 | .frame(width: 4)
/Users/admin/builder/spi-builder-workspace/Sources/SimpleCalendar/Views/EventView.swift:131:26: error: 'frame(minWidth:idealWidth:maxWidth:minHeight:idealHeight:maxHeight:alignment:)' is only available in macOS 10.15 or newer
8 | import SwiftUI
9 |
10 | struct EventView: View {
| `- note: add @available attribute to enclosing struct
11 | let event: any CalendarEventRepresentable
12 | let selectionAction: SelectionAction
:
49 | }
50 |
51 | private var content: some View {
| `- note: add @available attribute to enclosing property
52 | let mainColor = event.calendarActivity.activityType.color
53 | let endDate = event.startDate.addingTimeInterval(event.calendarActivity.duration)
:
129 | Rectangle()
130 | .fill(mainColor)
131 | .frame(maxHeight: .infinity, alignment: .leading)
| |- error: 'frame(minWidth:idealWidth:maxWidth:minHeight:idealHeight:maxHeight:alignment:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
132 | .frame(width: 4)
133 | Spacer()
/Users/admin/builder/spi-builder-workspace/Sources/SimpleCalendar/Views/EventView.swift:131:66: error: 'leading' is only available in macOS 10.15 or newer
8 | import SwiftUI
9 |
10 | struct EventView: View {
| `- note: add @available attribute to enclosing struct
11 | let event: any CalendarEventRepresentable
12 | let selectionAction: SelectionAction
:
49 | }
50 |
51 | private var content: some View {
| `- note: add @available attribute to enclosing property
52 | let mainColor = event.calendarActivity.activityType.color
53 | let endDate = event.startDate.addingTimeInterval(event.calendarActivity.duration)
:
129 | Rectangle()
130 | .fill(mainColor)
131 | .frame(maxHeight: .infinity, alignment: .leading)
| |- error: 'leading' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
132 | .frame(width: 4)
133 | Spacer()
/Users/admin/builder/spi-builder-workspace/Sources/SimpleCalendar/Views/EventView.swift:132:26: error: 'frame(width:height:alignment:)' is only available in macOS 10.15 or newer
8 | import SwiftUI
9 |
10 | struct EventView: View {
| `- note: add @available attribute to enclosing struct
11 | let event: any CalendarEventRepresentable
12 | let selectionAction: SelectionAction
:
49 | }
50 |
51 | private var content: some View {
| `- note: add @available attribute to enclosing property
52 | let mainColor = event.calendarActivity.activityType.color
53 | let endDate = event.startDate.addingTimeInterval(event.calendarActivity.duration)
:
130 | .fill(mainColor)
131 | .frame(maxHeight: .infinity, alignment: .leading)
132 | .frame(width: 4)
| |- error: 'frame(width:height:alignment:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
133 | Spacer()
134 | }
/Users/admin/builder/spi-builder-workspace/Sources/SimpleCalendar/Views/EventView.swift:133:21: warning: conformance of 'Spacer' to 'View' is only available in macOS 10.15 or newer; this is an error in the Swift 6 language mode
8 | import SwiftUI
9 |
10 | struct EventView: View {
| `- note: add @available attribute to enclosing struct
11 | let event: any CalendarEventRepresentable
12 | let selectionAction: SelectionAction
:
49 | }
50 |
51 | private var content: some View {
| `- note: add @available attribute to enclosing property
52 | let mainColor = event.calendarActivity.activityType.color
53 | let endDate = event.startDate.addingTimeInterval(event.calendarActivity.duration)
:
131 | .frame(maxHeight: .infinity, alignment: .leading)
132 | .frame(width: 4)
133 | Spacer()
| |- warning: conformance of 'Spacer' to 'View' is only available in macOS 10.15 or newer; this is an error in the Swift 6 language mode
| `- note: add 'if #available' version check
134 | }
135 | }
/Users/admin/builder/spi-builder-workspace/Sources/SimpleCalendar/Views/EventView.swift:133:21: error: 'Spacer' is only available in macOS 10.15 or newer
8 | import SwiftUI
9 |
10 | struct EventView: View {
| `- note: add @available attribute to enclosing struct
11 | let event: any CalendarEventRepresentable
12 | let selectionAction: SelectionAction
:
49 | }
50 |
51 | private var content: some View {
| `- note: add @available attribute to enclosing property
52 | let mainColor = event.calendarActivity.activityType.color
53 | let endDate = event.startDate.addingTimeInterval(event.calendarActivity.duration)
:
131 | .frame(maxHeight: .infinity, alignment: .leading)
132 | .frame(width: 4)
133 | Spacer()
| |- error: 'Spacer' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
134 | }
135 | }
/Users/admin/builder/spi-builder-workspace/Sources/SimpleCalendar/Views/EventView.swift:128:24: warning: conformance of 'Spacer' to 'View' is only available in macOS 10.15 or newer; this is an error in the Swift 6 language mode
8 | import SwiftUI
9 |
10 | struct EventView: View {
| `- note: add @available attribute to enclosing struct
11 | let event: any CalendarEventRepresentable
12 | let selectionAction: SelectionAction
:
49 | }
50 |
51 | private var content: some View {
| `- note: add @available attribute to enclosing property
52 | let mainColor = event.calendarActivity.activityType.color
53 | let endDate = event.startDate.addingTimeInterval(event.calendarActivity.duration)
:
126 | .background(mainColor.opacity(0.30), in: RoundedRectangle(cornerRadius: 8, style: .continuous))
127 | .overlay {
128 | HStack {
| |- warning: conformance of 'Spacer' to 'View' is only available in macOS 10.15 or newer; this is an error in the Swift 6 language mode
| `- note: add 'if #available' version check
129 | Rectangle()
130 | .fill(mainColor)
/Users/admin/builder/spi-builder-workspace/Sources/SimpleCalendar/Views/EventView.swift:137:10: error: 'foregroundColor' is only available in macOS 10.15 or newer
8 | import SwiftUI
9 |
10 | struct EventView: View {
| `- note: add @available attribute to enclosing struct
11 | let event: any CalendarEventRepresentable
12 | let selectionAction: SelectionAction
:
49 | }
50 |
51 | private var content: some View {
| `- note: add @available attribute to enclosing property
52 | let mainColor = event.calendarActivity.activityType.color
53 | let endDate = event.startDate.addingTimeInterval(event.calendarActivity.duration)
:
135 | }
136 | }
137 | .foregroundColor(.primary)
| |- error: 'foregroundColor' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
138 | .overlay {
139 | RoundedRectangle(cornerRadius: 6)
/Users/admin/builder/spi-builder-workspace/Sources/SimpleCalendar/Views/EventView.swift:137:27: error: 'primary' is only available in macOS 10.15 or newer
8 | import SwiftUI
9 |
10 | struct EventView: View {
| `- note: add @available attribute to enclosing struct
11 | let event: any CalendarEventRepresentable
12 | let selectionAction: SelectionAction
:
49 | }
50 |
51 | private var content: some View {
| `- note: add @available attribute to enclosing property
52 | let mainColor = event.calendarActivity.activityType.color
53 | let endDate = event.startDate.addingTimeInterval(event.calendarActivity.duration)
:
135 | }
136 | }
137 | .foregroundColor(.primary)
| |- error: 'primary' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
138 | .overlay {
139 | RoundedRectangle(cornerRadius: 6)
/Users/admin/builder/spi-builder-workspace/Sources/SimpleCalendar/Views/EventView.swift:138:10: error: 'overlay(alignment:content:)' is only available in macOS 12.0 or newer
8 | import SwiftUI
9 |
10 | struct EventView: View {
| `- note: add @available attribute to enclosing struct
11 | let event: any CalendarEventRepresentable
12 | let selectionAction: SelectionAction
:
49 | }
50 |
51 | private var content: some View {
| `- note: add @available attribute to enclosing property
52 | let mainColor = event.calendarActivity.activityType.color
53 | let endDate = event.startDate.addingTimeInterval(event.calendarActivity.duration)
:
136 | }
137 | .foregroundColor(.primary)
138 | .overlay {
| |- error: 'overlay(alignment:content:)' is only available in macOS 12.0 or newer
| `- note: add 'if #available' version check
139 | RoundedRectangle(cornerRadius: 6)
140 | .stroke(mainColor, lineWidth: 1)
/Users/admin/builder/spi-builder-workspace/Sources/SimpleCalendar/Views/EventView.swift:138:18: warning: conformance of 'Color' to 'ShapeStyle' is only available in macOS 10.15 or newer; this is an error in the Swift 6 language mode
8 | import SwiftUI
9 |
10 | struct EventView: View {
| `- note: add @available attribute to enclosing struct
11 | let event: any CalendarEventRepresentable
12 | let selectionAction: SelectionAction
:
49 | }
50 |
51 | private var content: some View {
| `- note: add @available attribute to enclosing property
52 | let mainColor = event.calendarActivity.activityType.color
53 | let endDate = event.startDate.addingTimeInterval(event.calendarActivity.duration)
:
136 | }
137 | .foregroundColor(.primary)
138 | .overlay {
| |- warning: conformance of 'Color' to 'ShapeStyle' is only available in macOS 10.15 or newer; this is an error in the Swift 6 language mode
| `- note: add 'if #available' version check
139 | RoundedRectangle(cornerRadius: 6)
140 | .stroke(mainColor, lineWidth: 1)
/Users/admin/builder/spi-builder-workspace/Sources/SimpleCalendar/Views/EventView.swift:139:13: error: 'RoundedRectangle' is only available in macOS 10.15 or newer
8 | import SwiftUI
9 |
10 | struct EventView: View {
| `- note: add @available attribute to enclosing struct
11 | let event: any CalendarEventRepresentable
12 | let selectionAction: SelectionAction
:
49 | }
50 |
51 | private var content: some View {
| `- note: add @available attribute to enclosing property
52 | let mainColor = event.calendarActivity.activityType.color
53 | let endDate = event.startDate.addingTimeInterval(event.calendarActivity.duration)
:
137 | .foregroundColor(.primary)
138 | .overlay {
139 | RoundedRectangle(cornerRadius: 6)
| |- error: 'RoundedRectangle' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
140 | .stroke(mainColor, lineWidth: 1)
141 | .frame(maxHeight: .infinity)
/Users/admin/builder/spi-builder-workspace/Sources/SimpleCalendar/Views/EventView.swift:140:18: error: 'stroke(_:lineWidth:antialiased:)' is only available in macOS 14.0 or newer
8 | import SwiftUI
9 |
10 | struct EventView: View {
| `- note: add @available attribute to enclosing struct
11 | let event: any CalendarEventRepresentable
12 | let selectionAction: SelectionAction
:
49 | }
50 |
51 | private var content: some View {
| `- note: add @available attribute to enclosing property
52 | let mainColor = event.calendarActivity.activityType.color
53 | let endDate = event.startDate.addingTimeInterval(event.calendarActivity.duration)
:
138 | .overlay {
139 | RoundedRectangle(cornerRadius: 6)
140 | .stroke(mainColor, lineWidth: 1)
| |- error: 'stroke(_:lineWidth:antialiased:)' is only available in macOS 14.0 or newer
| `- note: add 'if #available' version check
141 | .frame(maxHeight: .infinity)
142 | }
/Users/admin/builder/spi-builder-workspace/Sources/SimpleCalendar/Views/EventView.swift:141:18: error: 'frame(minWidth:idealWidth:maxWidth:minHeight:idealHeight:maxHeight:alignment:)' is only available in macOS 10.15 or newer
8 | import SwiftUI
9 |
10 | struct EventView: View {
| `- note: add @available attribute to enclosing struct
11 | let event: any CalendarEventRepresentable
12 | let selectionAction: SelectionAction
:
49 | }
50 |
51 | private var content: some View {
| `- note: add @available attribute to enclosing property
52 | let mainColor = event.calendarActivity.activityType.color
53 | let endDate = event.startDate.addingTimeInterval(event.calendarActivity.duration)
:
139 | RoundedRectangle(cornerRadius: 6)
140 | .stroke(mainColor, lineWidth: 1)
141 | .frame(maxHeight: .infinity)
| |- error: 'frame(minWidth:idealWidth:maxWidth:minHeight:idealHeight:maxHeight:alignment:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
142 | }
143 | .mask(
/Users/admin/builder/spi-builder-workspace/Sources/SimpleCalendar/Views/EventView.swift:143:10: error: 'mask' is only available in macOS 10.15 or newer
8 | import SwiftUI
9 |
10 | struct EventView: View {
| `- note: add @available attribute to enclosing struct
11 | let event: any CalendarEventRepresentable
12 | let selectionAction: SelectionAction
:
49 | }
50 |
51 | private var content: some View {
| `- note: add @available attribute to enclosing property
52 | let mainColor = event.calendarActivity.activityType.color
53 | let endDate = event.startDate.addingTimeInterval(event.calendarActivity.duration)
:
141 | .frame(maxHeight: .infinity)
142 | }
143 | .mask(
| |- error: 'mask' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
144 | RoundedRectangle(cornerRadius: 6)
145 | .frame(maxHeight: .infinity)
/Users/admin/builder/spi-builder-workspace/Sources/SimpleCalendar/Views/EventView.swift:144:13: error: 'RoundedRectangle' is only available in macOS 10.15 or newer
8 | import SwiftUI
9 |
10 | struct EventView: View {
| `- note: add @available attribute to enclosing struct
11 | let event: any CalendarEventRepresentable
12 | let selectionAction: SelectionAction
:
49 | }
50 |
51 | private var content: some View {
| `- note: add @available attribute to enclosing property
52 | let mainColor = event.calendarActivity.activityType.color
53 | let endDate = event.startDate.addingTimeInterval(event.calendarActivity.duration)
:
142 | }
143 | .mask(
144 | RoundedRectangle(cornerRadius: 6)
| |- error: 'RoundedRectangle' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
145 | .frame(maxHeight: .infinity)
146 | )
/Users/admin/builder/spi-builder-workspace/Sources/SimpleCalendar/Views/EventView.swift:145:18: error: 'frame(minWidth:idealWidth:maxWidth:minHeight:idealHeight:maxHeight:alignment:)' is only available in macOS 10.15 or newer
8 | import SwiftUI
9 |
10 | struct EventView: View {
| `- note: add @available attribute to enclosing struct
11 | let event: any CalendarEventRepresentable
12 | let selectionAction: SelectionAction
:
49 | }
50 |
51 | private var content: some View {
| `- note: add @available attribute to enclosing property
52 | let mainColor = event.calendarActivity.activityType.color
53 | let endDate = event.startDate.addingTimeInterval(event.calendarActivity.duration)
:
143 | .mask(
144 | RoundedRectangle(cornerRadius: 6)
145 | .frame(maxHeight: .infinity)
| |- error: 'frame(minWidth:idealWidth:maxWidth:minHeight:idealHeight:maxHeight:alignment:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
146 | )
147 | }
/Users/admin/builder/spi-builder-workspace/Sources/SimpleCalendar/Views/EventView.swift:160:9: error: generic parameter 'V' could not be inferred
158 | let event60 = CalendarEvent.forPreview(activity: activity60min)
159 |
160 | Group {
| `- error: generic parameter 'V' could not be inferred
161 | EventView(event: event15, selectionAction: .none)
162 | .previewDisplayName("Normal 15min")
SwiftUI.Group.init:2:8: note: in call to initializer
1 | generic struct Group {
2 | public init<V>(@TabContentBuilder<V> content: () -> Content) where V == Content.TabValue}
| `- note: in call to initializer
3 |
BUILD FAILURE 6.1 macosSpm