Build Information
Failed to build KVKCalendar, reference master (fbd59e
), with Swift 6.1 for macOS (SPM) on 29 Apr 2025 21:18:51 UTC.
Build Command
env DEVELOPER_DIR=/Applications/Xcode-16.3.0.app xcrun swift build --arch arm64
Build Log
| |- 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
83 | }
84 | }
/Users/admin/builder/spi-builder-workspace/Sources/KVKCalendar/SwiftUI+Extensions.swift:82:25: error: 'Text' is only available in macOS 10.15 or newer
50 |
51 | @available(iOS 14.0, *)
52 | public struct ItemsMenu<T: ItemsMenuProxy>: View {
| `- note: add @available attribute to enclosing generic struct
53 |
54 | @Binding var type: T
:
70 | }
71 |
72 | public var body: some View {
| `- note: add @available attribute to enclosing property
73 | Menu {
74 | ForEach(items) { (btn) in
:
80 | Image(systemName: "checkmark")
81 | }
82 | Text(btn.title)
| |- error: 'Text' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
83 | }
84 | }
/Users/admin/builder/spi-builder-workspace/Sources/KVKCalendar/SwiftUI+Extensions.swift:78:28: warning: conformance of 'Optional<Wrapped>' to 'View' is only available in macOS 10.15 or newer; this is an error in the Swift 6 language mode
50 |
51 | @available(iOS 14.0, *)
52 | public struct ItemsMenu<T: ItemsMenuProxy>: View {
| `- note: add @available attribute to enclosing generic struct
53 |
54 | @Binding var type: T
:
70 | }
71 |
72 | public var body: some View {
| `- note: add @available attribute to enclosing property
73 | Menu {
74 | ForEach(items) { (btn) in
:
76 | type = btn
77 | } label: {
78 | HStack {
| |- warning: conformance of 'Optional<Wrapped>' to 'View' is only available in macOS 10.15 or newer; this is an error in the Swift 6 language mode
| `- note: add 'if #available' version check
79 | if type == btn && showCheckmark {
80 | Image(systemName: "checkmark")
/Users/admin/builder/spi-builder-workspace/Sources/KVKCalendar/SwiftUI+Extensions.swift:78:28: 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
50 |
51 | @available(iOS 14.0, *)
52 | public struct ItemsMenu<T: ItemsMenuProxy>: View {
| `- note: add @available attribute to enclosing generic struct
53 |
54 | @Binding var type: T
:
70 | }
71 |
72 | public var body: some View {
| `- note: add @available attribute to enclosing property
73 | Menu {
74 | ForEach(items) { (btn) in
:
76 | type = btn
77 | } label: {
78 | HStack {
| |- warning: conformance of 'Text' to 'View' is only available in macOS 10.15 or newer; this is an error in the Swift 6 language mode
| `- note: add 'if #available' version check
79 | if type == btn && showCheckmark {
80 | Image(systemName: "checkmark")
/Users/admin/builder/spi-builder-workspace/Sources/KVKCalendar/SwiftUI+Extensions.swift:73:14: warning: conformance of 'ForEach<Data, ID, Content>' to 'View' is only available in macOS 10.15 or newer; this is an error in the Swift 6 language mode
50 |
51 | @available(iOS 14.0, *)
52 | public struct ItemsMenu<T: ItemsMenuProxy>: View {
| `- note: add @available attribute to enclosing generic struct
53 |
54 | @Binding var type: T
:
70 | }
71 |
72 | public var body: some View {
| `- note: add @available attribute to enclosing property
73 | Menu {
| |- warning: conformance of 'ForEach<Data, ID, Content>' to 'View' is only available in macOS 10.15 or newer; this is an error in the Swift 6 language mode
| `- note: add 'if #available' version check
74 | ForEach(items) { (btn) in
75 | Button {
/Users/admin/builder/spi-builder-workspace/Sources/KVKCalendar/SwiftUI+Extensions.swift:87:13: error: 'HStack' is only available in macOS 10.15 or newer
50 |
51 | @available(iOS 14.0, *)
52 | public struct ItemsMenu<T: ItemsMenuProxy>: View {
| `- note: add @available attribute to enclosing generic struct
53 |
54 | @Binding var type: T
:
70 | }
71 |
72 | public var body: some View {
| `- note: add @available attribute to enclosing property
73 | Menu {
74 | ForEach(items) { (btn) in
:
85 | }
86 | } label: {
87 | HStack {
| |- error: 'HStack' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
88 | Text(type.title)
89 | .foregroundColor(color)
/Users/admin/builder/spi-builder-workspace/Sources/KVKCalendar/SwiftUI+Extensions.swift:88: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
50 |
51 | @available(iOS 14.0, *)
52 | public struct ItemsMenu<T: ItemsMenuProxy>: View {
| `- note: add @available attribute to enclosing generic struct
53 |
54 | @Binding var type: T
:
70 | }
71 |
72 | public var body: some View {
| `- note: add @available attribute to enclosing property
73 | Menu {
74 | ForEach(items) { (btn) in
:
86 | } label: {
87 | HStack {
88 | Text(type.title)
| |- 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
89 | .foregroundColor(color)
90 | .font(.headline)
/Users/admin/builder/spi-builder-workspace/Sources/KVKCalendar/SwiftUI+Extensions.swift:88:17: error: 'Text' is only available in macOS 10.15 or newer
50 |
51 | @available(iOS 14.0, *)
52 | public struct ItemsMenu<T: ItemsMenuProxy>: View {
| `- note: add @available attribute to enclosing generic struct
53 |
54 | @Binding var type: T
:
70 | }
71 |
72 | public var body: some View {
| `- note: add @available attribute to enclosing property
73 | Menu {
74 | ForEach(items) { (btn) in
:
86 | } label: {
87 | HStack {
88 | Text(type.title)
| |- error: 'Text' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
89 | .foregroundColor(color)
90 | .font(.headline)
/Users/admin/builder/spi-builder-workspace/Sources/KVKCalendar/SwiftUI+Extensions.swift:89:22: error: 'foregroundColor' is only available in macOS 10.15 or newer
50 |
51 | @available(iOS 14.0, *)
52 | public struct ItemsMenu<T: ItemsMenuProxy>: View {
| `- note: add @available attribute to enclosing generic struct
53 |
54 | @Binding var type: T
:
70 | }
71 |
72 | public var body: some View {
| `- note: add @available attribute to enclosing property
73 | Menu {
74 | ForEach(items) { (btn) in
:
87 | HStack {
88 | Text(type.title)
89 | .foregroundColor(color)
| |- error: 'foregroundColor' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
90 | .font(.headline)
91 | if showDropDownIcon {
/Users/admin/builder/spi-builder-workspace/Sources/KVKCalendar/SwiftUI+Extensions.swift:90:22: error: 'font' is only available in macOS 10.15 or newer
50 |
51 | @available(iOS 14.0, *)
52 | public struct ItemsMenu<T: ItemsMenuProxy>: View {
| `- note: add @available attribute to enclosing generic struct
53 |
54 | @Binding var type: T
:
70 | }
71 |
72 | public var body: some View {
| `- note: add @available attribute to enclosing property
73 | Menu {
74 | ForEach(items) { (btn) in
:
88 | Text(type.title)
89 | .foregroundColor(color)
90 | .font(.headline)
| |- error: 'font' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
91 | if showDropDownIcon {
92 | Image(systemName: "chevron.down")
/Users/admin/builder/spi-builder-workspace/Sources/KVKCalendar/SwiftUI+Extensions.swift:90:28: error: 'headline' is only available in macOS 10.15 or newer
50 |
51 | @available(iOS 14.0, *)
52 | public struct ItemsMenu<T: ItemsMenuProxy>: View {
| `- note: add @available attribute to enclosing generic struct
53 |
54 | @Binding var type: T
:
70 | }
71 |
72 | public var body: some View {
| `- note: add @available attribute to enclosing property
73 | Menu {
74 | ForEach(items) { (btn) in
:
88 | Text(type.title)
89 | .foregroundColor(color)
90 | .font(.headline)
| |- error: 'headline' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
91 | if showDropDownIcon {
92 | Image(systemName: "chevron.down")
/Users/admin/builder/spi-builder-workspace/Sources/KVKCalendar/SwiftUI+Extensions.swift:92:21: error: 'Image' is only available in macOS 10.15 or newer
50 |
51 | @available(iOS 14.0, *)
52 | public struct ItemsMenu<T: ItemsMenuProxy>: View {
| `- note: add @available attribute to enclosing generic struct
53 |
54 | @Binding var type: T
:
70 | }
71 |
72 | public var body: some View {
| `- note: add @available attribute to enclosing property
73 | Menu {
74 | ForEach(items) { (btn) in
:
90 | .font(.headline)
91 | if showDropDownIcon {
92 | Image(systemName: "chevron.down")
| |- error: 'Image' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
93 | .resizable()
94 | .frame(width: 12, height: 7)
/Users/admin/builder/spi-builder-workspace/Sources/KVKCalendar/SwiftUI+Extensions.swift:92:21: error: 'init(systemName:)' is only available in macOS 11.0 or newer
50 |
51 | @available(iOS 14.0, *)
52 | public struct ItemsMenu<T: ItemsMenuProxy>: View {
| `- note: add @available attribute to enclosing generic struct
53 |
54 | @Binding var type: T
:
70 | }
71 |
72 | public var body: some View {
| `- note: add @available attribute to enclosing property
73 | Menu {
74 | ForEach(items) { (btn) in
:
90 | .font(.headline)
91 | if showDropDownIcon {
92 | Image(systemName: "chevron.down")
| |- error: 'init(systemName:)' is only available in macOS 11.0 or newer
| `- note: add 'if #available' version check
93 | .resizable()
94 | .frame(width: 12, height: 7)
/Users/admin/builder/spi-builder-workspace/Sources/KVKCalendar/SwiftUI+Extensions.swift:93:26: error: 'resizable(capInsets:resizingMode:)' is only available in macOS 10.15 or newer
50 |
51 | @available(iOS 14.0, *)
52 | public struct ItemsMenu<T: ItemsMenuProxy>: View {
| `- note: add @available attribute to enclosing generic struct
53 |
54 | @Binding var type: T
:
70 | }
71 |
72 | public var body: some View {
| `- note: add @available attribute to enclosing property
73 | Menu {
74 | ForEach(items) { (btn) in
:
91 | if showDropDownIcon {
92 | Image(systemName: "chevron.down")
93 | .resizable()
| |- error: 'resizable(capInsets:resizingMode:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
94 | .frame(width: 12, height: 7)
95 | .foregroundColor(color)
/Users/admin/builder/spi-builder-workspace/Sources/KVKCalendar/SwiftUI+Extensions.swift:94:26: error: 'frame(width:height:alignment:)' is only available in macOS 10.15 or newer
50 |
51 | @available(iOS 14.0, *)
52 | public struct ItemsMenu<T: ItemsMenuProxy>: View {
| `- note: add @available attribute to enclosing generic struct
53 |
54 | @Binding var type: T
:
70 | }
71 |
72 | public var body: some View {
| `- note: add @available attribute to enclosing property
73 | Menu {
74 | ForEach(items) { (btn) in
:
92 | Image(systemName: "chevron.down")
93 | .resizable()
94 | .frame(width: 12, height: 7)
| |- error: 'frame(width:height:alignment:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
95 | .foregroundColor(color)
96 | .padding(EdgeInsets(top: 5, leading: 0, bottom: 0, trailing: 0))
/Users/admin/builder/spi-builder-workspace/Sources/KVKCalendar/SwiftUI+Extensions.swift:95:26: error: 'foregroundColor' is only available in macOS 10.15 or newer
50 |
51 | @available(iOS 14.0, *)
52 | public struct ItemsMenu<T: ItemsMenuProxy>: View {
| `- note: add @available attribute to enclosing generic struct
53 |
54 | @Binding var type: T
:
70 | }
71 |
72 | public var body: some View {
| `- note: add @available attribute to enclosing property
73 | Menu {
74 | ForEach(items) { (btn) in
:
93 | .resizable()
94 | .frame(width: 12, height: 7)
95 | .foregroundColor(color)
| |- error: 'foregroundColor' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
96 | .padding(EdgeInsets(top: 5, leading: 0, bottom: 0, trailing: 0))
97 | }
/Users/admin/builder/spi-builder-workspace/Sources/KVKCalendar/SwiftUI+Extensions.swift:96:26: error: 'padding' is only available in macOS 10.15 or newer
50 |
51 | @available(iOS 14.0, *)
52 | public struct ItemsMenu<T: ItemsMenuProxy>: View {
| `- note: add @available attribute to enclosing generic struct
53 |
54 | @Binding var type: T
:
70 | }
71 |
72 | public var body: some View {
| `- note: add @available attribute to enclosing property
73 | Menu {
74 | ForEach(items) { (btn) in
:
94 | .frame(width: 12, height: 7)
95 | .foregroundColor(color)
96 | .padding(EdgeInsets(top: 5, leading: 0, bottom: 0, trailing: 0))
| |- error: 'padding' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
97 | }
98 | }
/Users/admin/builder/spi-builder-workspace/Sources/KVKCalendar/SwiftUI+Extensions.swift:96:34: error: 'EdgeInsets' is only available in macOS 10.15 or newer
50 |
51 | @available(iOS 14.0, *)
52 | public struct ItemsMenu<T: ItemsMenuProxy>: View {
| `- note: add @available attribute to enclosing generic struct
53 |
54 | @Binding var type: T
:
70 | }
71 |
72 | public var body: some View {
| `- note: add @available attribute to enclosing property
73 | Menu {
74 | ForEach(items) { (btn) in
:
94 | .frame(width: 12, height: 7)
95 | .foregroundColor(color)
96 | .padding(EdgeInsets(top: 5, leading: 0, bottom: 0, trailing: 0))
| |- error: 'EdgeInsets' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
97 | }
98 | }
/Users/admin/builder/spi-builder-workspace/Sources/KVKCalendar/SwiftUI+Extensions.swift:91:37: error: 'buildIf' is only available in macOS 10.15 or newer
50 |
51 | @available(iOS 14.0, *)
52 | public struct ItemsMenu<T: ItemsMenuProxy>: View {
| `- note: add @available attribute to enclosing generic struct
53 |
54 | @Binding var type: T
:
70 | }
71 |
72 | public var body: some View {
| `- note: add @available attribute to enclosing property
73 | Menu {
74 | ForEach(items) { (btn) in
:
89 | .foregroundColor(color)
90 | .font(.headline)
91 | if showDropDownIcon {
| |- error: 'buildIf' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
92 | Image(systemName: "chevron.down")
93 | .resizable()
/Users/admin/builder/spi-builder-workspace/Sources/KVKCalendar/SwiftUI+Extensions.swift:97:17: error: 'buildIf' is only available in macOS 10.15 or newer
50 |
51 | @available(iOS 14.0, *)
52 | public struct ItemsMenu<T: ItemsMenuProxy>: View {
| `- note: add @available attribute to enclosing generic struct
53 |
54 | @Binding var type: T
:
70 | }
71 |
72 | public var body: some View {
| `- note: add @available attribute to enclosing property
73 | Menu {
74 | ForEach(items) { (btn) in
:
95 | .foregroundColor(color)
96 | .padding(EdgeInsets(top: 5, leading: 0, bottom: 0, trailing: 0))
97 | }
| |- error: 'buildIf' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
98 | }
99 | }
/Users/admin/builder/spi-builder-workspace/Sources/KVKCalendar/SwiftUI+Extensions.swift:87: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
50 |
51 | @available(iOS 14.0, *)
52 | public struct ItemsMenu<T: ItemsMenuProxy>: View {
| `- note: add @available attribute to enclosing generic struct
53 |
54 | @Binding var type: T
:
70 | }
71 |
72 | public var body: some View {
| `- note: add @available attribute to enclosing property
73 | Menu {
74 | ForEach(items) { (btn) in
:
85 | }
86 | } label: {
87 | HStack {
| |- warning: conformance of 'Text' to 'View' is only available in macOS 10.15 or newer; this is an error in the Swift 6 language mode
| `- note: add 'if #available' version check
88 | Text(type.title)
89 | .foregroundColor(color)
/Users/admin/builder/spi-builder-workspace/Sources/KVKCalendar/SwiftUI+Extensions.swift:87:20: warning: conformance of 'Optional<Wrapped>' to 'View' is only available in macOS 10.15 or newer; this is an error in the Swift 6 language mode
50 |
51 | @available(iOS 14.0, *)
52 | public struct ItemsMenu<T: ItemsMenuProxy>: View {
| `- note: add @available attribute to enclosing generic struct
53 |
54 | @Binding var type: T
:
70 | }
71 |
72 | public var body: some View {
| `- note: add @available attribute to enclosing property
73 | Menu {
74 | ForEach(items) { (btn) in
:
85 | }
86 | } label: {
87 | HStack {
| |- warning: conformance of 'Optional<Wrapped>' to 'View' is only available in macOS 10.15 or newer; this is an error in the Swift 6 language mode
| `- note: add 'if #available' version check
88 | Text(type.title)
89 | .foregroundColor(color)
/Users/admin/builder/spi-builder-workspace/Sources/KVKCalendar/SwiftUI+Extensions.swift:72:32: warning: conformance of 'ForEach<Data, ID, Content>' to 'View' is only available in macOS 10.15 or newer; this is an error in the Swift 6 language mode
50 |
51 | @available(iOS 14.0, *)
52 | public struct ItemsMenu<T: ItemsMenuProxy>: View {
| `- note: add @available attribute to enclosing generic struct
53 |
54 | @Binding var type: T
:
70 | }
71 |
72 | public var body: some View {
| | |- warning: conformance of 'ForEach<Data, ID, Content>' to 'View' is only available in macOS 10.15 or newer; this is an error in the Swift 6 language mode
| | `- note: add 'if #available' version check
| `- note: add @available attribute to enclosing property
73 | Menu {
74 | ForEach(items) { (btn) in
/Users/admin/builder/spi-builder-workspace/Sources/KVKCalendar/SwiftUI+Extensions.swift:72:32: warning: conformance of 'ForEach<Data, ID, Content>' to 'View' is only available in macOS 10.15 or newer; this is an error in the Swift 6 language mode
50 |
51 | @available(iOS 14.0, *)
52 | public struct ItemsMenu<T: ItemsMenuProxy>: View {
| `- note: add @available attribute to enclosing generic struct
53 |
54 | @Binding var type: T
:
70 | }
71 |
72 | public var body: some View {
| | |- warning: conformance of 'ForEach<Data, ID, Content>' to 'View' is only available in macOS 10.15 or newer; this is an error in the Swift 6 language mode
| | `- note: add 'if #available' version check
| `- note: add @available attribute to enclosing property
73 | Menu {
74 | ForEach(items) { (btn) in
/Users/admin/builder/spi-builder-workspace/Sources/KVKCalendar/SwiftUI+Extensions.swift:107:32: error: cannot find 'CalendarType' in scope
105 | struct ItemsMenu_Previews: PreviewProvider {
106 | static var previews: some View {
107 | StatefulPreviewWrapper(CalendarType.day) { ItemsMenu<CalendarType>(type: $0, items: CalendarType.allCases.reversed(), showCheckmark: true, showDropDownIcon: true) }
| `- error: cannot find 'CalendarType' in scope
108 | }
109 | }
/Users/admin/builder/spi-builder-workspace/Sources/KVKCalendar/SwiftUI+Extensions.swift:107:93: error: cannot find 'CalendarType' in scope
105 | struct ItemsMenu_Previews: PreviewProvider {
106 | static var previews: some View {
107 | StatefulPreviewWrapper(CalendarType.day) { ItemsMenu<CalendarType>(type: $0, items: CalendarType.allCases.reversed(), showCheckmark: true, showDropDownIcon: true) }
| `- error: cannot find 'CalendarType' in scope
108 | }
109 | }
/Users/admin/builder/spi-builder-workspace/Sources/KVKCalendar/SwiftUI+Extensions.swift:107:62: error: cannot find type 'CalendarType' in scope
105 | struct ItemsMenu_Previews: PreviewProvider {
106 | static var previews: some View {
107 | StatefulPreviewWrapper(CalendarType.day) { ItemsMenu<CalendarType>(type: $0, items: CalendarType.allCases.reversed(), showCheckmark: true, showDropDownIcon: true) }
| `- error: cannot find type 'CalendarType' in scope
108 | }
109 | }
/Users/admin/builder/spi-builder-workspace/Sources/KVKCalendar/SwiftUI+Extensions.swift:121:23: error: 'State' is only available in macOS 10.15 or newer
109 | }
110 |
111 | struct StatefulPreviewWrapper<Value, Content: View>: View {
| `- note: add @available attribute to enclosing generic struct
112 | @State var value: Value
113 | var content: (Binding<Value>) -> Content
:
117 | }
118 |
119 | init(_ value: Value,
| `- note: add @available attribute to enclosing initializer
120 | content: @escaping (Binding<Value>) -> Content) {
121 | self._value = State(wrappedValue: value)
| |- error: 'State' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
122 | self.content = content
123 | }
[56/58] Compiling KVKCalendar Style.swift
/Users/admin/builder/spi-builder-workspace/Sources/KVKCalendar/SwiftUI+Extensions.swift:12:18: error: cannot find type 'UIInterfaceOrientation' in scope
10 | struct DeviceRotationViewModifier: ViewModifier {
11 |
12 | let action: (UIInterfaceOrientation) -> Void
| `- error: cannot find type 'UIInterfaceOrientation' in scope
13 |
14 | func body(content: Content) -> some View {
/Users/admin/builder/spi-builder-workspace/Sources/KVKCalendar/SwiftUI+Extensions.swift:14:41: error: 'View' is only available in macOS 10.15 or newer
8 | import SwiftUI
9 |
10 | struct DeviceRotationViewModifier: ViewModifier {
| `- note: add @available attribute to enclosing struct
11 |
12 | let action: (UIInterfaceOrientation) -> Void
13 |
14 | func body(content: Content) -> some View {
| | `- error: 'View' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing instance method
15 | content
16 | .onAppear()
/Users/admin/builder/spi-builder-workspace/Sources/KVKCalendar/SwiftUI+Extensions.swift:26:41: error: cannot find type 'UIInterfaceOrientation' in scope
24 | public extension View {
25 |
26 | func kvkOnRotate(action: @escaping (UIInterfaceOrientation) -> Void) -> some View {
| `- error: cannot find type 'UIInterfaceOrientation' in scope
27 | modifier(DeviceRotationViewModifier(action: action))
28 | }
/Users/admin/builder/spi-builder-workspace/Sources/KVKCalendar/SwiftUI+Extensions.swift:26:82: error: 'View' is only available in macOS 10.15 or newer
22 | }
23 |
24 | public extension View {
| `- note: add @available attribute to enclosing extension
25 |
26 | func kvkOnRotate(action: @escaping (UIInterfaceOrientation) -> Void) -> some View {
| | `- error: 'View' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing instance method
27 | modifier(DeviceRotationViewModifier(action: action))
28 | }
/Users/admin/builder/spi-builder-workspace/Sources/KVKCalendar/SwiftUI+Extensions.swift:30:47: error: 'View' is only available in macOS 10.15 or newer
22 | }
23 |
24 | public extension View {
| `- note: add @available attribute to enclosing extension
25 |
26 | func kvkOnRotate(action: @escaping (UIInterfaceOrientation) -> Void) -> some View {
:
28 | }
29 |
30 | func kvkHandleNavigationView(_ view: some View) -> some View {
| | `- error: 'View' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing instance method
31 | if #available(iOS 16.0, *) {
32 | return NavigationStack {
/Users/admin/builder/spi-builder-workspace/Sources/KVKCalendar/SwiftUI+Extensions.swift:30:47: error: 'View' is only available in macOS 10.15 or newer
22 | }
23 |
24 | public extension View {
| `- note: add @available attribute to enclosing extension
25 |
26 | func kvkOnRotate(action: @escaping (UIInterfaceOrientation) -> Void) -> some View {
:
28 | }
29 |
30 | func kvkHandleNavigationView(_ view: some View) -> some View {
| | `- error: 'View' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing instance method
31 | if #available(iOS 16.0, *) {
32 | return NavigationStack {
/Users/admin/builder/spi-builder-workspace/Sources/KVKCalendar/SwiftUI+Extensions.swift:30:61: error: 'View' is only available in macOS 10.15 or newer
22 | }
23 |
24 | public extension View {
| `- note: add @available attribute to enclosing extension
25 |
26 | func kvkOnRotate(action: @escaping (UIInterfaceOrientation) -> Void) -> some View {
:
28 | }
29 |
30 | func kvkHandleNavigationView(_ view: some View) -> some View {
| | `- error: 'View' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing instance method
31 | if #available(iOS 16.0, *) {
32 | return NavigationStack {
/Users/admin/builder/spi-builder-workspace/Sources/KVKCalendar/SwiftUI+Extensions.swift:24:18: error: 'View' is only available in macOS 10.15 or newer
22 | }
23 |
24 | public extension View {
| | `- error: 'View' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing extension
25 |
26 | func kvkOnRotate(action: @escaping (UIInterfaceOrientation) -> Void) -> some View {
/Users/admin/builder/spi-builder-workspace/Sources/KVKCalendar/SwiftUI+Extensions.swift:45:33: error: 'Identifiable' is only available in macOS 10.15 or newer
43 | }
44 |
45 | public protocol ItemsMenuProxy: Identifiable, Equatable {
| | `- error: 'Identifiable' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing protocol
46 |
47 | var title: String { get }
/Users/admin/builder/spi-builder-workspace/Sources/KVKCalendar/SwiftUI+Extensions.swift:54:6: error: 'Binding' is only available in macOS 10.15 or newer
50 |
51 | @available(iOS 14.0, *)
52 | public struct ItemsMenu<T: ItemsMenuProxy>: View {
| `- note: add @available attribute to enclosing generic struct
53 |
54 | @Binding var type: T
| `- error: 'Binding' is only available in macOS 10.15 or newer
55 | @State var items: [T]
56 | private var showCheckmark: Bool
/Users/admin/builder/spi-builder-workspace/Sources/KVKCalendar/SwiftUI+Extensions.swift:55:6: error: 'State' is only available in macOS 10.15 or newer
50 |
51 | @available(iOS 14.0, *)
52 | public struct ItemsMenu<T: ItemsMenuProxy>: View {
| `- note: add @available attribute to enclosing generic struct
53 |
54 | @Binding var type: T
55 | @State var items: [T]
| `- error: 'State' is only available in macOS 10.15 or newer
56 | private var showCheckmark: Bool
57 | private var color: Color
/Users/admin/builder/spi-builder-workspace/Sources/KVKCalendar/SwiftUI+Extensions.swift:57:24: error: 'Color' is only available in macOS 10.15 or newer
50 |
51 | @available(iOS 14.0, *)
52 | public struct ItemsMenu<T: ItemsMenuProxy>: View {
| `- note: add @available attribute to enclosing generic struct
53 |
54 | @Binding var type: T
55 | @State var items: [T]
56 | private var showCheckmark: Bool
57 | private var color: Color
| `- error: 'Color' is only available in macOS 10.15 or newer
58 | private var showDropDownIcon: Bool
59 |
/Users/admin/builder/spi-builder-workspace/Sources/KVKCalendar/SwiftUI+Extensions.swift:60:23: error: 'Binding' is only available in macOS 10.15 or newer
50 |
51 | @available(iOS 14.0, *)
52 | public struct ItemsMenu<T: ItemsMenuProxy>: View {
| `- note: add @available attribute to enclosing generic struct
53 |
54 | @Binding var type: T
:
58 | private var showDropDownIcon: Bool
59 |
60 | public init(type: Binding<T>,
| | `- error: 'Binding' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing initializer
61 | items: [T],
62 | showCheckmark: Bool = false,
/Users/admin/builder/spi-builder-workspace/Sources/KVKCalendar/SwiftUI+Extensions.swift:63:24: error: 'Color' is only available in macOS 10.15 or newer
50 |
51 | @available(iOS 14.0, *)
52 | public struct ItemsMenu<T: ItemsMenuProxy>: View {
| `- note: add @available attribute to enclosing generic struct
53 |
54 | @Binding var type: T
:
58 | private var showDropDownIcon: Bool
59 |
60 | public init(type: Binding<T>,
| `- note: add @available attribute to enclosing initializer
61 | items: [T],
62 | showCheckmark: Bool = false,
63 | color: Color = .red,
| `- error: 'Color' is only available in macOS 10.15 or newer
64 | showDropDownIcon: Bool = false) {
65 | _type = type
/Users/admin/builder/spi-builder-workspace/Sources/KVKCalendar/SwiftUI+Extensions.swift:63:33: error: 'red' is only available in macOS 10.15 or newer
50 |
51 | @available(iOS 14.0, *)
52 | public struct ItemsMenu<T: ItemsMenuProxy>: View {
| `- note: add @available attribute to enclosing generic struct
53 |
54 | @Binding var type: T
:
58 | private var showDropDownIcon: Bool
59 |
60 | public init(type: Binding<T>,
| `- note: add @available attribute to enclosing initializer
61 | items: [T],
62 | showCheckmark: Bool = false,
63 | color: Color = .red,
| `- error: 'red' is only available in macOS 10.15 or newer
64 | showDropDownIcon: Bool = false) {
65 | _type = type
/Users/admin/builder/spi-builder-workspace/Sources/KVKCalendar/SwiftUI+Extensions.swift:72:27: error: 'View' is only available in macOS 10.15 or newer
50 |
51 | @available(iOS 14.0, *)
52 | public struct ItemsMenu<T: ItemsMenuProxy>: View {
| `- note: add @available attribute to enclosing generic struct
53 |
54 | @Binding var type: T
:
70 | }
71 |
72 | public var body: some View {
| | `- error: 'View' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing property
73 | Menu {
74 | ForEach(items) { (btn) in
/Users/admin/builder/spi-builder-workspace/Sources/KVKCalendar/SwiftUI+Extensions.swift:106:31: error: 'View' is only available in macOS 10.15 or newer
103 |
104 | @available(iOS 14.0, *)
105 | struct ItemsMenu_Previews: PreviewProvider {
| `- note: add @available attribute to enclosing struct
106 | static var previews: some View {
| | `- error: 'View' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing static property
107 | StatefulPreviewWrapper(CalendarType.day) { ItemsMenu<CalendarType>(type: $0, items: CalendarType.allCases.reversed(), showCheckmark: true, showDropDownIcon: true) }
108 | }
/Users/admin/builder/spi-builder-workspace/Sources/KVKCalendar/SwiftUI+Extensions.swift:112:6: error: 'State' is only available in macOS 10.15 or newer
109 | }
110 |
111 | struct StatefulPreviewWrapper<Value, Content: View>: View {
| `- note: add @available attribute to enclosing generic struct
112 | @State var value: Value
| `- error: 'State' is only available in macOS 10.15 or newer
113 | var content: (Binding<Value>) -> Content
114 |
/Users/admin/builder/spi-builder-workspace/Sources/KVKCalendar/SwiftUI+Extensions.swift:113:19: error: 'Binding' is only available in macOS 10.15 or newer
109 | }
110 |
111 | struct StatefulPreviewWrapper<Value, Content: View>: View {
| `- note: add @available attribute to enclosing generic struct
112 | @State var value: Value
113 | var content: (Binding<Value>) -> Content
| `- error: 'Binding' is only available in macOS 10.15 or newer
114 |
115 | var body: some View {
/Users/admin/builder/spi-builder-workspace/Sources/KVKCalendar/SwiftUI+Extensions.swift:115:20: error: 'View' is only available in macOS 10.15 or newer
109 | }
110 |
111 | struct StatefulPreviewWrapper<Value, Content: View>: View {
| `- note: add @available attribute to enclosing generic struct
112 | @State var value: Value
113 | var content: (Binding<Value>) -> Content
114 |
115 | var body: some View {
| | `- error: 'View' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing property
116 | content($value)
117 | }
/Users/admin/builder/spi-builder-workspace/Sources/KVKCalendar/SwiftUI+Extensions.swift:120:30: error: 'Binding' is only available in macOS 10.15 or newer
109 | }
110 |
111 | struct StatefulPreviewWrapper<Value, Content: View>: View {
| `- note: add @available attribute to enclosing generic struct
112 | @State var value: Value
113 | var content: (Binding<Value>) -> Content
:
117 | }
118 |
119 | init(_ value: Value,
| `- note: add @available attribute to enclosing initializer
120 | content: @escaping (Binding<Value>) -> Content) {
| `- error: 'Binding' is only available in macOS 10.15 or newer
121 | self._value = State(wrappedValue: value)
122 | self.content = content
/Users/admin/builder/spi-builder-workspace/Sources/KVKCalendar/SwiftUI+Extensions.swift:111:47: error: 'View' is only available in macOS 10.15 or newer
109 | }
110 |
111 | struct StatefulPreviewWrapper<Value, Content: View>: View {
| | `- error: 'View' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing generic struct
112 | @State var value: Value
113 | var content: (Binding<Value>) -> Content
/Users/admin/builder/spi-builder-workspace/Sources/KVKCalendar/SwiftUI+Extensions.swift:17:66: error: cannot find 'UIDevice' in scope
15 | content
16 | .onAppear()
17 | .onReceive(NotificationCenter.default.publisher(for: UIDevice.orientationDidChangeNotification)) { (_) in
| `- error: cannot find 'UIDevice' in scope
18 | action(UIApplication.shared.orientation)
19 | }
/Users/admin/builder/spi-builder-workspace/Sources/KVKCalendar/SwiftUI+Extensions.swift:18:24: error: cannot find 'UIApplication' in scope
16 | .onAppear()
17 | .onReceive(NotificationCenter.default.publisher(for: UIDevice.orientationDidChangeNotification)) { (_) in
18 | action(UIApplication.shared.orientation)
| `- error: cannot find 'UIApplication' in scope
19 | }
20 | }
/Users/admin/builder/spi-builder-workspace/Sources/KVKCalendar/SwiftUI+Extensions.swift:32:20: error: 'NavigationStack' is only available in macOS 13.0 or newer
22 | }
23 |
24 | public extension View {
| `- note: add @available attribute to enclosing extension
25 |
26 | func kvkOnRotate(action: @escaping (UIInterfaceOrientation) -> Void) -> some View {
:
28 | }
29 |
30 | func kvkHandleNavigationView(_ view: some View) -> some View {
| `- note: add @available attribute to enclosing instance method
31 | if #available(iOS 16.0, *) {
32 | return NavigationStack {
| |- error: 'NavigationStack' is only available in macOS 13.0 or newer
| `- note: add 'if #available' version check
33 | view
34 | }
/Users/admin/builder/spi-builder-workspace/Sources/KVKCalendar/SwiftUI+Extensions.swift:39:34: error: 'StackNavigationViewStyle' is unavailable in macOS
37 | view
38 | }
39 | .navigationViewStyle(StackNavigationViewStyle())
| `- error: 'StackNavigationViewStyle' is unavailable in macOS
40 | }
41 | }
SwiftUI.StackNavigationViewStyle:6:15: note: 'StackNavigationViewStyle' has been explicitly marked unavailable here
4 | @available(watchOS, introduced: 7.0, deprecated: 100000.0, message: "replace stack-styled NavigationView with NavigationStack")
5 | @available(visionOS, introduced: 1.0, deprecated: 100000.0, message: "replace stack-styled NavigationView with NavigationStack")
6 | public struct StackNavigationViewStyle : NavigationViewStyle {
| `- note: 'StackNavigationViewStyle' has been explicitly marked unavailable here
7 | public init()
8 | public func _body(configuration: _NavigationViewStyleConfiguration) -> some View
/Users/admin/builder/spi-builder-workspace/Sources/KVKCalendar/SwiftUI+Extensions.swift:66:18: error: 'State' is only available in macOS 10.15 or newer
50 |
51 | @available(iOS 14.0, *)
52 | public struct ItemsMenu<T: ItemsMenuProxy>: View {
| `- note: add @available attribute to enclosing generic struct
53 |
54 | @Binding var type: T
:
58 | private var showDropDownIcon: Bool
59 |
60 | public init(type: Binding<T>,
| `- note: add @available attribute to enclosing initializer
61 | items: [T],
62 | showCheckmark: Bool = false,
:
64 | showDropDownIcon: Bool = false) {
65 | _type = type
66 | _items = State(initialValue: items)
| |- error: 'State' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
67 | self.showCheckmark = showCheckmark
68 | self.color = color
/Users/admin/builder/spi-builder-workspace/Sources/KVKCalendar/SwiftUI+Extensions.swift:73:9: warning: conformance of 'ForEach<Data, ID, Content>' to 'View' is only available in macOS 10.15 or newer; this is an error in the Swift 6 language mode
50 |
51 | @available(iOS 14.0, *)
52 | public struct ItemsMenu<T: ItemsMenuProxy>: View {
| `- note: add @available attribute to enclosing generic struct
53 |
54 | @Binding var type: T
:
70 | }
71 |
72 | public var body: some View {
| `- note: add @available attribute to enclosing property
73 | Menu {
| |- warning: conformance of 'ForEach<Data, ID, Content>' to 'View' is only available in macOS 10.15 or newer; this is an error in the Swift 6 language mode
| `- note: add 'if #available' version check
74 | ForEach(items) { (btn) in
75 | Button {
/Users/admin/builder/spi-builder-workspace/Sources/KVKCalendar/SwiftUI+Extensions.swift:73:9: error: 'Menu' is only available in macOS 11.0 or newer
50 |
51 | @available(iOS 14.0, *)
52 | public struct ItemsMenu<T: ItemsMenuProxy>: View {
| `- note: add @available attribute to enclosing generic struct
53 |
54 | @Binding var type: T
:
70 | }
71 |
72 | public var body: some View {
| `- note: add @available attribute to enclosing property
73 | Menu {
| |- error: 'Menu' is only available in macOS 11.0 or newer
| `- note: add 'if #available' version check
74 | ForEach(items) { (btn) in
75 | Button {
/Users/admin/builder/spi-builder-workspace/Sources/KVKCalendar/SwiftUI+Extensions.swift:73:9: error: 'init(content:label:)' is only available in macOS 11.0 or newer
50 |
51 | @available(iOS 14.0, *)
52 | public struct ItemsMenu<T: ItemsMenuProxy>: View {
| `- note: add @available attribute to enclosing generic struct
53 |
54 | @Binding var type: T
:
70 | }
71 |
72 | public var body: some View {
| `- note: add @available attribute to enclosing property
73 | Menu {
| |- error: 'init(content:label:)' is only available in macOS 11.0 or newer
| `- note: add 'if #available' version check
74 | ForEach(items) { (btn) in
75 | Button {
/Users/admin/builder/spi-builder-workspace/Sources/KVKCalendar/SwiftUI+Extensions.swift:74:13: warning: conformance of 'ForEach<Data, ID, Content>' to 'View' is only available in macOS 10.15 or newer; this is an error in the Swift 6 language mode
50 |
51 | @available(iOS 14.0, *)
52 | public struct ItemsMenu<T: ItemsMenuProxy>: View {
| `- note: add @available attribute to enclosing generic struct
53 |
54 | @Binding var type: T
:
70 | }
71 |
72 | public var body: some View {
| `- note: add @available attribute to enclosing property
73 | Menu {
74 | ForEach(items) { (btn) in
| |- warning: conformance of 'ForEach<Data, ID, Content>' to 'View' is only available in macOS 10.15 or newer; this is an error in the Swift 6 language mode
| `- note: add 'if #available' version check
75 | Button {
76 | type = btn
/Users/admin/builder/spi-builder-workspace/Sources/KVKCalendar/SwiftUI+Extensions.swift:74:13: error: 'ForEach' is only available in macOS 10.15 or newer
50 |
51 | @available(iOS 14.0, *)
52 | public struct ItemsMenu<T: ItemsMenuProxy>: View {
| `- note: add @available attribute to enclosing generic struct
53 |
54 | @Binding var type: T
:
70 | }
71 |
72 | public var body: some View {
| `- note: add @available attribute to enclosing property
73 | Menu {
74 | ForEach(items) { (btn) in
| |- error: 'ForEach' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
75 | Button {
76 | type = btn
/Users/admin/builder/spi-builder-workspace/Sources/KVKCalendar/SwiftUI+Extensions.swift:74:13: error: 'init(_:content:)' is only available in macOS 10.15 or newer
50 |
51 | @available(iOS 14.0, *)
52 | public struct ItemsMenu<T: ItemsMenuProxy>: View {
| `- note: add @available attribute to enclosing generic struct
53 |
54 | @Binding var type: T
:
70 | }
71 |
72 | public var body: some View {
| `- note: add @available attribute to enclosing property
73 | Menu {
74 | ForEach(items) { (btn) in
| |- error: 'init(_:content:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
75 | Button {
76 | type = btn
/Users/admin/builder/spi-builder-workspace/Sources/KVKCalendar/SwiftUI+Extensions.swift:75:17: error: 'Button' is only available in macOS 10.15 or newer
50 |
51 | @available(iOS 14.0, *)
52 | public struct ItemsMenu<T: ItemsMenuProxy>: View {
| `- note: add @available attribute to enclosing generic struct
53 |
54 | @Binding var type: T
:
70 | }
71 |
72 | public var body: some View {
| `- note: add @available attribute to enclosing property
73 | Menu {
74 | ForEach(items) { (btn) in
75 | Button {
| |- error: 'Button' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
76 | type = btn
77 | } label: {
/Users/admin/builder/spi-builder-workspace/Sources/KVKCalendar/SwiftUI+Extensions.swift:76:21: error: setter for 'type' is only available in macOS 10.15 or newer
50 |
51 | @available(iOS 14.0, *)
52 | public struct ItemsMenu<T: ItemsMenuProxy>: View {
| `- note: add @available attribute to enclosing generic struct
53 |
54 | @Binding var type: T
:
70 | }
71 |
72 | public var body: some View {
| `- note: add @available attribute to enclosing property
73 | Menu {
74 | ForEach(items) { (btn) in
75 | Button {
76 | type = btn
| |- error: setter for 'type' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
77 | } label: {
78 | HStack {
/Users/admin/builder/spi-builder-workspace/Sources/KVKCalendar/SwiftUI+Extensions.swift:78:21: error: 'HStack' is only available in macOS 10.15 or newer
50 |
51 | @available(iOS 14.0, *)
52 | public struct ItemsMenu<T: ItemsMenuProxy>: View {
| `- note: add @available attribute to enclosing generic struct
53 |
54 | @Binding var type: T
:
70 | }
71 |
72 | public var body: some View {
| `- note: add @available attribute to enclosing property
73 | Menu {
74 | ForEach(items) { (btn) in
:
76 | type = btn
77 | } label: {
78 | HStack {
| |- error: 'HStack' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
79 | if type == btn && showCheckmark {
80 | Image(systemName: "checkmark")
/Users/admin/builder/spi-builder-workspace/Sources/KVKCalendar/SwiftUI+Extensions.swift:80:29: warning: conformance of 'Image' to 'View' is only available in macOS 10.15 or newer; this is an error in the Swift 6 language mode
50 |
51 | @available(iOS 14.0, *)
52 | public struct ItemsMenu<T: ItemsMenuProxy>: View {
| `- note: add @available attribute to enclosing generic struct
53 |
54 | @Binding var type: T
:
70 | }
71 |
72 | public var body: some View {
| `- note: add @available attribute to enclosing property
73 | Menu {
74 | ForEach(items) { (btn) in
:
78 | HStack {
79 | if type == btn && showCheckmark {
80 | Image(systemName: "checkmark")
| |- warning: conformance of 'Image' to 'View' is only available in macOS 10.15 or newer; this is an error in the Swift 6 language mode
| `- note: add 'if #available' version check
81 | }
82 | Text(btn.title)
/Users/admin/builder/spi-builder-workspace/Sources/KVKCalendar/SwiftUI+Extensions.swift:80:29: error: 'Image' is only available in macOS 10.15 or newer
50 |
51 | @available(iOS 14.0, *)
52 | public struct ItemsMenu<T: ItemsMenuProxy>: View {
| `- note: add @available attribute to enclosing generic struct
53 |
54 | @Binding var type: T
:
70 | }
71 |
72 | public var body: some View {
| `- note: add @available attribute to enclosing property
73 | Menu {
74 | ForEach(items) { (btn) in
:
78 | HStack {
79 | if type == btn && showCheckmark {
80 | Image(systemName: "checkmark")
| |- error: 'Image' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
81 | }
82 | Text(btn.title)
/Users/admin/builder/spi-builder-workspace/Sources/KVKCalendar/SwiftUI+Extensions.swift:80:29: error: 'init(systemName:)' is only available in macOS 11.0 or newer
50 |
51 | @available(iOS 14.0, *)
52 | public struct ItemsMenu<T: ItemsMenuProxy>: View {
| `- note: add @available attribute to enclosing generic struct
53 |
54 | @Binding var type: T
:
70 | }
71 |
72 | public var body: some View {
| `- note: add @available attribute to enclosing property
73 | Menu {
74 | ForEach(items) { (btn) in
:
78 | HStack {
79 | if type == btn && showCheckmark {
80 | Image(systemName: "checkmark")
| |- error: 'init(systemName:)' is only available in macOS 11.0 or newer
| `- note: add 'if #available' version check
81 | }
82 | Text(btn.title)
/Users/admin/builder/spi-builder-workspace/Sources/KVKCalendar/SwiftUI+Extensions.swift:79:57: error: 'buildIf' is only available in macOS 10.15 or newer
50 |
51 | @available(iOS 14.0, *)
52 | public struct ItemsMenu<T: ItemsMenuProxy>: View {
| `- note: add @available attribute to enclosing generic struct
53 |
54 | @Binding var type: T
:
70 | }
71 |
72 | public var body: some View {
| `- note: add @available attribute to enclosing property
73 | Menu {
74 | ForEach(items) { (btn) in
:
77 | } label: {
78 | HStack {
79 | if type == btn && showCheckmark {
| |- error: 'buildIf' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
80 | Image(systemName: "checkmark")
81 | }
/Users/admin/builder/spi-builder-workspace/Sources/KVKCalendar/SwiftUI+Extensions.swift:79:57: warning: conformance of 'Image' to 'View' is only available in macOS 10.15 or newer; this is an error in the Swift 6 language mode
50 |
51 | @available(iOS 14.0, *)
52 | public struct ItemsMenu<T: ItemsMenuProxy>: View {
| `- note: add @available attribute to enclosing generic struct
53 |
54 | @Binding var type: T
:
70 | }
71 |
72 | public var body: some View {
| `- note: add @available attribute to enclosing property
73 | Menu {
74 | ForEach(items) { (btn) in
:
77 | } label: {
78 | HStack {
79 | if type == btn && showCheckmark {
| |- warning: conformance of 'Image' to 'View' is only available in macOS 10.15 or newer; this is an error in the Swift 6 language mode
| `- note: add 'if #available' version check
80 | Image(systemName: "checkmark")
81 | }
/Users/admin/builder/spi-builder-workspace/Sources/KVKCalendar/SwiftUI+Extensions.swift:81:25: error: 'buildIf' is only available in macOS 10.15 or newer
50 |
51 | @available(iOS 14.0, *)
52 | public struct ItemsMenu<T: ItemsMenuProxy>: View {
| `- note: add @available attribute to enclosing generic struct
53 |
54 | @Binding var type: T
:
70 | }
71 |
72 | public var body: some View {
| `- note: add @available attribute to enclosing property
73 | Menu {
74 | ForEach(items) { (btn) in
:
79 | if type == btn && showCheckmark {
80 | Image(systemName: "checkmark")
81 | }
| |- error: 'buildIf' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
82 | Text(btn.title)
83 | }
/Users/admin/builder/spi-builder-workspace/Sources/KVKCalendar/SwiftUI+Extensions.swift:82:25: 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
50 |
51 | @available(iOS 14.0, *)
52 | public struct ItemsMenu<T: ItemsMenuProxy>: View {
| `- note: add @available attribute to enclosing generic struct
53 |
54 | @Binding var type: T
:
70 | }
71 |
72 | public var body: some View {
| `- note: add @available attribute to enclosing property
73 | Menu {
74 | ForEach(items) { (btn) in
:
80 | Image(systemName: "checkmark")
81 | }
82 | Text(btn.title)
| |- 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
83 | }
84 | }
/Users/admin/builder/spi-builder-workspace/Sources/KVKCalendar/SwiftUI+Extensions.swift:82:25: error: 'Text' is only available in macOS 10.15 or newer
50 |
51 | @available(iOS 14.0, *)
52 | public struct ItemsMenu<T: ItemsMenuProxy>: View {
| `- note: add @available attribute to enclosing generic struct
53 |
54 | @Binding var type: T
:
70 | }
71 |
72 | public var body: some View {
| `- note: add @available attribute to enclosing property
73 | Menu {
74 | ForEach(items) { (btn) in
:
80 | Image(systemName: "checkmark")
81 | }
82 | Text(btn.title)
| |- error: 'Text' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
83 | }
84 | }
/Users/admin/builder/spi-builder-workspace/Sources/KVKCalendar/SwiftUI+Extensions.swift:78:28: warning: conformance of 'Optional<Wrapped>' to 'View' is only available in macOS 10.15 or newer; this is an error in the Swift 6 language mode
50 |
51 | @available(iOS 14.0, *)
52 | public struct ItemsMenu<T: ItemsMenuProxy>: View {
| `- note: add @available attribute to enclosing generic struct
53 |
54 | @Binding var type: T
:
70 | }
71 |
72 | public var body: some View {
| `- note: add @available attribute to enclosing property
73 | Menu {
74 | ForEach(items) { (btn) in
:
76 | type = btn
77 | } label: {
78 | HStack {
| |- warning: conformance of 'Optional<Wrapped>' to 'View' is only available in macOS 10.15 or newer; this is an error in the Swift 6 language mode
| `- note: add 'if #available' version check
79 | if type == btn && showCheckmark {
80 | Image(systemName: "checkmark")
/Users/admin/builder/spi-builder-workspace/Sources/KVKCalendar/SwiftUI+Extensions.swift:78:28: 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
50 |
51 | @available(iOS 14.0, *)
52 | public struct ItemsMenu<T: ItemsMenuProxy>: View {
| `- note: add @available attribute to enclosing generic struct
53 |
54 | @Binding var type: T
:
70 | }
71 |
72 | public var body: some View {
| `- note: add @available attribute to enclosing property
73 | Menu {
74 | ForEach(items) { (btn) in
:
76 | type = btn
77 | } label: {
78 | HStack {
| |- warning: conformance of 'Text' to 'View' is only available in macOS 10.15 or newer; this is an error in the Swift 6 language mode
| `- note: add 'if #available' version check
79 | if type == btn && showCheckmark {
80 | Image(systemName: "checkmark")
/Users/admin/builder/spi-builder-workspace/Sources/KVKCalendar/SwiftUI+Extensions.swift:73:14: warning: conformance of 'ForEach<Data, ID, Content>' to 'View' is only available in macOS 10.15 or newer; this is an error in the Swift 6 language mode
50 |
51 | @available(iOS 14.0, *)
52 | public struct ItemsMenu<T: ItemsMenuProxy>: View {
| `- note: add @available attribute to enclosing generic struct
53 |
54 | @Binding var type: T
:
70 | }
71 |
72 | public var body: some View {
| `- note: add @available attribute to enclosing property
73 | Menu {
| |- warning: conformance of 'ForEach<Data, ID, Content>' to 'View' is only available in macOS 10.15 or newer; this is an error in the Swift 6 language mode
| `- note: add 'if #available' version check
74 | ForEach(items) { (btn) in
75 | Button {
/Users/admin/builder/spi-builder-workspace/Sources/KVKCalendar/SwiftUI+Extensions.swift:87:13: error: 'HStack' is only available in macOS 10.15 or newer
50 |
51 | @available(iOS 14.0, *)
52 | public struct ItemsMenu<T: ItemsMenuProxy>: View {
| `- note: add @available attribute to enclosing generic struct
53 |
54 | @Binding var type: T
:
70 | }
71 |
72 | public var body: some View {
| `- note: add @available attribute to enclosing property
73 | Menu {
74 | ForEach(items) { (btn) in
:
85 | }
86 | } label: {
87 | HStack {
| |- error: 'HStack' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
88 | Text(type.title)
89 | .foregroundColor(color)
/Users/admin/builder/spi-builder-workspace/Sources/KVKCalendar/SwiftUI+Extensions.swift:88: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
50 |
51 | @available(iOS 14.0, *)
52 | public struct ItemsMenu<T: ItemsMenuProxy>: View {
| `- note: add @available attribute to enclosing generic struct
53 |
54 | @Binding var type: T
:
70 | }
71 |
72 | public var body: some View {
| `- note: add @available attribute to enclosing property
73 | Menu {
74 | ForEach(items) { (btn) in
:
86 | } label: {
87 | HStack {
88 | Text(type.title)
| |- 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
89 | .foregroundColor(color)
90 | .font(.headline)
/Users/admin/builder/spi-builder-workspace/Sources/KVKCalendar/SwiftUI+Extensions.swift:88:17: error: 'Text' is only available in macOS 10.15 or newer
50 |
51 | @available(iOS 14.0, *)
52 | public struct ItemsMenu<T: ItemsMenuProxy>: View {
| `- note: add @available attribute to enclosing generic struct
53 |
54 | @Binding var type: T
:
70 | }
71 |
72 | public var body: some View {
| `- note: add @available attribute to enclosing property
73 | Menu {
74 | ForEach(items) { (btn) in
:
86 | } label: {
87 | HStack {
88 | Text(type.title)
| |- error: 'Text' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
89 | .foregroundColor(color)
90 | .font(.headline)
/Users/admin/builder/spi-builder-workspace/Sources/KVKCalendar/SwiftUI+Extensions.swift:89:22: error: 'foregroundColor' is only available in macOS 10.15 or newer
50 |
51 | @available(iOS 14.0, *)
52 | public struct ItemsMenu<T: ItemsMenuProxy>: View {
| `- note: add @available attribute to enclosing generic struct
53 |
54 | @Binding var type: T
:
70 | }
71 |
72 | public var body: some View {
| `- note: add @available attribute to enclosing property
73 | Menu {
74 | ForEach(items) { (btn) in
:
87 | HStack {
88 | Text(type.title)
89 | .foregroundColor(color)
| |- error: 'foregroundColor' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
90 | .font(.headline)
91 | if showDropDownIcon {
/Users/admin/builder/spi-builder-workspace/Sources/KVKCalendar/SwiftUI+Extensions.swift:90:22: error: 'font' is only available in macOS 10.15 or newer
50 |
51 | @available(iOS 14.0, *)
52 | public struct ItemsMenu<T: ItemsMenuProxy>: View {
| `- note: add @available attribute to enclosing generic struct
53 |
54 | @Binding var type: T
:
70 | }
71 |
72 | public var body: some View {
| `- note: add @available attribute to enclosing property
73 | Menu {
74 | ForEach(items) { (btn) in
:
88 | Text(type.title)
89 | .foregroundColor(color)
90 | .font(.headline)
| |- error: 'font' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
91 | if showDropDownIcon {
92 | Image(systemName: "chevron.down")
/Users/admin/builder/spi-builder-workspace/Sources/KVKCalendar/SwiftUI+Extensions.swift:90:28: error: 'headline' is only available in macOS 10.15 or newer
50 |
51 | @available(iOS 14.0, *)
52 | public struct ItemsMenu<T: ItemsMenuProxy>: View {
| `- note: add @available attribute to enclosing generic struct
53 |
54 | @Binding var type: T
:
70 | }
71 |
72 | public var body: some View {
| `- note: add @available attribute to enclosing property
73 | Menu {
74 | ForEach(items) { (btn) in
:
88 | Text(type.title)
89 | .foregroundColor(color)
90 | .font(.headline)
| |- error: 'headline' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
91 | if showDropDownIcon {
92 | Image(systemName: "chevron.down")
/Users/admin/builder/spi-builder-workspace/Sources/KVKCalendar/SwiftUI+Extensions.swift:92:21: error: 'Image' is only available in macOS 10.15 or newer
50 |
51 | @available(iOS 14.0, *)
52 | public struct ItemsMenu<T: ItemsMenuProxy>: View {
| `- note: add @available attribute to enclosing generic struct
53 |
54 | @Binding var type: T
:
70 | }
71 |
72 | public var body: some View {
| `- note: add @available attribute to enclosing property
73 | Menu {
74 | ForEach(items) { (btn) in
:
90 | .font(.headline)
91 | if showDropDownIcon {
92 | Image(systemName: "chevron.down")
| |- error: 'Image' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
93 | .resizable()
94 | .frame(width: 12, height: 7)
/Users/admin/builder/spi-builder-workspace/Sources/KVKCalendar/SwiftUI+Extensions.swift:92:21: error: 'init(systemName:)' is only available in macOS 11.0 or newer
50 |
51 | @available(iOS 14.0, *)
52 | public struct ItemsMenu<T: ItemsMenuProxy>: View {
| `- note: add @available attribute to enclosing generic struct
53 |
54 | @Binding var type: T
:
70 | }
71 |
72 | public var body: some View {
| `- note: add @available attribute to enclosing property
73 | Menu {
74 | ForEach(items) { (btn) in
:
90 | .font(.headline)
91 | if showDropDownIcon {
92 | Image(systemName: "chevron.down")
| |- error: 'init(systemName:)' is only available in macOS 11.0 or newer
| `- note: add 'if #available' version check
93 | .resizable()
94 | .frame(width: 12, height: 7)
/Users/admin/builder/spi-builder-workspace/Sources/KVKCalendar/SwiftUI+Extensions.swift:93:26: error: 'resizable(capInsets:resizingMode:)' is only available in macOS 10.15 or newer
50 |
51 | @available(iOS 14.0, *)
52 | public struct ItemsMenu<T: ItemsMenuProxy>: View {
| `- note: add @available attribute to enclosing generic struct
53 |
54 | @Binding var type: T
:
70 | }
71 |
72 | public var body: some View {
| `- note: add @available attribute to enclosing property
73 | Menu {
74 | ForEach(items) { (btn) in
:
91 | if showDropDownIcon {
92 | Image(systemName: "chevron.down")
93 | .resizable()
| |- error: 'resizable(capInsets:resizingMode:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
94 | .frame(width: 12, height: 7)
95 | .foregroundColor(color)
/Users/admin/builder/spi-builder-workspace/Sources/KVKCalendar/SwiftUI+Extensions.swift:94:26: error: 'frame(width:height:alignment:)' is only available in macOS 10.15 or newer
50 |
51 | @available(iOS 14.0, *)
52 | public struct ItemsMenu<T: ItemsMenuProxy>: View {
| `- note: add @available attribute to enclosing generic struct
53 |
54 | @Binding var type: T
:
70 | }
71 |
72 | public var body: some View {
| `- note: add @available attribute to enclosing property
73 | Menu {
74 | ForEach(items) { (btn) in
:
92 | Image(systemName: "chevron.down")
93 | .resizable()
94 | .frame(width: 12, height: 7)
| |- error: 'frame(width:height:alignment:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
95 | .foregroundColor(color)
96 | .padding(EdgeInsets(top: 5, leading: 0, bottom: 0, trailing: 0))
/Users/admin/builder/spi-builder-workspace/Sources/KVKCalendar/SwiftUI+Extensions.swift:95:26: error: 'foregroundColor' is only available in macOS 10.15 or newer
50 |
51 | @available(iOS 14.0, *)
52 | public struct ItemsMenu<T: ItemsMenuProxy>: View {
| `- note: add @available attribute to enclosing generic struct
53 |
54 | @Binding var type: T
:
70 | }
71 |
72 | public var body: some View {
| `- note: add @available attribute to enclosing property
73 | Menu {
74 | ForEach(items) { (btn) in
:
93 | .resizable()
94 | .frame(width: 12, height: 7)
95 | .foregroundColor(color)
| |- error: 'foregroundColor' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
96 | .padding(EdgeInsets(top: 5, leading: 0, bottom: 0, trailing: 0))
97 | }
/Users/admin/builder/spi-builder-workspace/Sources/KVKCalendar/SwiftUI+Extensions.swift:96:26: error: 'padding' is only available in macOS 10.15 or newer
50 |
51 | @available(iOS 14.0, *)
52 | public struct ItemsMenu<T: ItemsMenuProxy>: View {
| `- note: add @available attribute to enclosing generic struct
53 |
54 | @Binding var type: T
:
70 | }
71 |
72 | public var body: some View {
| `- note: add @available attribute to enclosing property
73 | Menu {
74 | ForEach(items) { (btn) in
:
94 | .frame(width: 12, height: 7)
95 | .foregroundColor(color)
96 | .padding(EdgeInsets(top: 5, leading: 0, bottom: 0, trailing: 0))
| |- error: 'padding' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
97 | }
98 | }
/Users/admin/builder/spi-builder-workspace/Sources/KVKCalendar/SwiftUI+Extensions.swift:96:34: error: 'EdgeInsets' is only available in macOS 10.15 or newer
50 |
51 | @available(iOS 14.0, *)
52 | public struct ItemsMenu<T: ItemsMenuProxy>: View {
| `- note: add @available attribute to enclosing generic struct
53 |
54 | @Binding var type: T
:
70 | }
71 |
72 | public var body: some View {
| `- note: add @available attribute to enclosing property
73 | Menu {
74 | ForEach(items) { (btn) in
:
94 | .frame(width: 12, height: 7)
95 | .foregroundColor(color)
96 | .padding(EdgeInsets(top: 5, leading: 0, bottom: 0, trailing: 0))
| |- error: 'EdgeInsets' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
97 | }
98 | }
/Users/admin/builder/spi-builder-workspace/Sources/KVKCalendar/SwiftUI+Extensions.swift:91:37: error: 'buildIf' is only available in macOS 10.15 or newer
50 |
51 | @available(iOS 14.0, *)
52 | public struct ItemsMenu<T: ItemsMenuProxy>: View {
| `- note: add @available attribute to enclosing generic struct
53 |
54 | @Binding var type: T
:
70 | }
71 |
72 | public var body: some View {
| `- note: add @available attribute to enclosing property
73 | Menu {
74 | ForEach(items) { (btn) in
:
89 | .foregroundColor(color)
90 | .font(.headline)
91 | if showDropDownIcon {
| |- error: 'buildIf' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
92 | Image(systemName: "chevron.down")
93 | .resizable()
/Users/admin/builder/spi-builder-workspace/Sources/KVKCalendar/SwiftUI+Extensions.swift:97:17: error: 'buildIf' is only available in macOS 10.15 or newer
50 |
51 | @available(iOS 14.0, *)
52 | public struct ItemsMenu<T: ItemsMenuProxy>: View {
| `- note: add @available attribute to enclosing generic struct
53 |
54 | @Binding var type: T
:
70 | }
71 |
72 | public var body: some View {
| `- note: add @available attribute to enclosing property
73 | Menu {
74 | ForEach(items) { (btn) in
:
95 | .foregroundColor(color)
96 | .padding(EdgeInsets(top: 5, leading: 0, bottom: 0, trailing: 0))
97 | }
| |- error: 'buildIf' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
98 | }
99 | }
/Users/admin/builder/spi-builder-workspace/Sources/KVKCalendar/SwiftUI+Extensions.swift:87: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
50 |
51 | @available(iOS 14.0, *)
52 | public struct ItemsMenu<T: ItemsMenuProxy>: View {
| `- note: add @available attribute to enclosing generic struct
53 |
54 | @Binding var type: T
:
70 | }
71 |
72 | public var body: some View {
| `- note: add @available attribute to enclosing property
73 | Menu {
74 | ForEach(items) { (btn) in
:
85 | }
86 | } label: {
87 | HStack {
| |- warning: conformance of 'Text' to 'View' is only available in macOS 10.15 or newer; this is an error in the Swift 6 language mode
| `- note: add 'if #available' version check
88 | Text(type.title)
89 | .foregroundColor(color)
/Users/admin/builder/spi-builder-workspace/Sources/KVKCalendar/SwiftUI+Extensions.swift:87:20: warning: conformance of 'Optional<Wrapped>' to 'View' is only available in macOS 10.15 or newer; this is an error in the Swift 6 language mode
50 |
51 | @available(iOS 14.0, *)
52 | public struct ItemsMenu<T: ItemsMenuProxy>: View {
| `- note: add @available attribute to enclosing generic struct
53 |
54 | @Binding var type: T
:
70 | }
71 |
72 | public var body: some View {
| `- note: add @available attribute to enclosing property
73 | Menu {
74 | ForEach(items) { (btn) in
:
85 | }
86 | } label: {
87 | HStack {
| |- warning: conformance of 'Optional<Wrapped>' to 'View' is only available in macOS 10.15 or newer; this is an error in the Swift 6 language mode
| `- note: add 'if #available' version check
88 | Text(type.title)
89 | .foregroundColor(color)
/Users/admin/builder/spi-builder-workspace/Sources/KVKCalendar/SwiftUI+Extensions.swift:72:32: warning: conformance of 'ForEach<Data, ID, Content>' to 'View' is only available in macOS 10.15 or newer; this is an error in the Swift 6 language mode
50 |
51 | @available(iOS 14.0, *)
52 | public struct ItemsMenu<T: ItemsMenuProxy>: View {
| `- note: add @available attribute to enclosing generic struct
53 |
54 | @Binding var type: T
:
70 | }
71 |
72 | public var body: some View {
| | |- warning: conformance of 'ForEach<Data, ID, Content>' to 'View' is only available in macOS 10.15 or newer; this is an error in the Swift 6 language mode
| | `- note: add 'if #available' version check
| `- note: add @available attribute to enclosing property
73 | Menu {
74 | ForEach(items) { (btn) in
/Users/admin/builder/spi-builder-workspace/Sources/KVKCalendar/SwiftUI+Extensions.swift:72:32: warning: conformance of 'ForEach<Data, ID, Content>' to 'View' is only available in macOS 10.15 or newer; this is an error in the Swift 6 language mode
50 |
51 | @available(iOS 14.0, *)
52 | public struct ItemsMenu<T: ItemsMenuProxy>: View {
| `- note: add @available attribute to enclosing generic struct
53 |
54 | @Binding var type: T
:
70 | }
71 |
72 | public var body: some View {
| | |- warning: conformance of 'ForEach<Data, ID, Content>' to 'View' is only available in macOS 10.15 or newer; this is an error in the Swift 6 language mode
| | `- note: add 'if #available' version check
| `- note: add @available attribute to enclosing property
73 | Menu {
74 | ForEach(items) { (btn) in
/Users/admin/builder/spi-builder-workspace/Sources/KVKCalendar/SwiftUI+Extensions.swift:107:32: error: cannot find 'CalendarType' in scope
105 | struct ItemsMenu_Previews: PreviewProvider {
106 | static var previews: some View {
107 | StatefulPreviewWrapper(CalendarType.day) { ItemsMenu<CalendarType>(type: $0, items: CalendarType.allCases.reversed(), showCheckmark: true, showDropDownIcon: true) }
| `- error: cannot find 'CalendarType' in scope
108 | }
109 | }
/Users/admin/builder/spi-builder-workspace/Sources/KVKCalendar/SwiftUI+Extensions.swift:107:93: error: cannot find 'CalendarType' in scope
105 | struct ItemsMenu_Previews: PreviewProvider {
106 | static var previews: some View {
107 | StatefulPreviewWrapper(CalendarType.day) { ItemsMenu<CalendarType>(type: $0, items: CalendarType.allCases.reversed(), showCheckmark: true, showDropDownIcon: true) }
| `- error: cannot find 'CalendarType' in scope
108 | }
109 | }
/Users/admin/builder/spi-builder-workspace/Sources/KVKCalendar/SwiftUI+Extensions.swift:107:62: error: cannot find type 'CalendarType' in scope
105 | struct ItemsMenu_Previews: PreviewProvider {
106 | static var previews: some View {
107 | StatefulPreviewWrapper(CalendarType.day) { ItemsMenu<CalendarType>(type: $0, items: CalendarType.allCases.reversed(), showCheckmark: true, showDropDownIcon: true) }
| `- error: cannot find type 'CalendarType' in scope
108 | }
109 | }
/Users/admin/builder/spi-builder-workspace/Sources/KVKCalendar/SwiftUI+Extensions.swift:121:23: error: 'State' is only available in macOS 10.15 or newer
109 | }
110 |
111 | struct StatefulPreviewWrapper<Value, Content: View>: View {
| `- note: add @available attribute to enclosing generic struct
112 | @State var value: Value
113 | var content: (Binding<Value>) -> Content
:
117 | }
118 |
119 | init(_ value: Value,
| `- note: add @available attribute to enclosing initializer
120 | content: @escaping (Binding<Value>) -> Content) {
121 | self._value = State(wrappedValue: value)
| |- error: 'State' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
122 | self.content = content
123 | }
[57/58] Compiling KVKCalendar SwiftUI+Extensions.swift
/Users/admin/builder/spi-builder-workspace/Sources/KVKCalendar/SwiftUI+Extensions.swift:12:18: error: cannot find type 'UIInterfaceOrientation' in scope
10 | struct DeviceRotationViewModifier: ViewModifier {
11 |
12 | let action: (UIInterfaceOrientation) -> Void
| `- error: cannot find type 'UIInterfaceOrientation' in scope
13 |
14 | func body(content: Content) -> some View {
/Users/admin/builder/spi-builder-workspace/Sources/KVKCalendar/SwiftUI+Extensions.swift:14:41: error: 'View' is only available in macOS 10.15 or newer
8 | import SwiftUI
9 |
10 | struct DeviceRotationViewModifier: ViewModifier {
| `- note: add @available attribute to enclosing struct
11 |
12 | let action: (UIInterfaceOrientation) -> Void
13 |
14 | func body(content: Content) -> some View {
| | `- error: 'View' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing instance method
15 | content
16 | .onAppear()
/Users/admin/builder/spi-builder-workspace/Sources/KVKCalendar/SwiftUI+Extensions.swift:26:41: error: cannot find type 'UIInterfaceOrientation' in scope
24 | public extension View {
25 |
26 | func kvkOnRotate(action: @escaping (UIInterfaceOrientation) -> Void) -> some View {
| `- error: cannot find type 'UIInterfaceOrientation' in scope
27 | modifier(DeviceRotationViewModifier(action: action))
28 | }
/Users/admin/builder/spi-builder-workspace/Sources/KVKCalendar/SwiftUI+Extensions.swift:26:82: error: 'View' is only available in macOS 10.15 or newer
22 | }
23 |
24 | public extension View {
| `- note: add @available attribute to enclosing extension
25 |
26 | func kvkOnRotate(action: @escaping (UIInterfaceOrientation) -> Void) -> some View {
| | `- error: 'View' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing instance method
27 | modifier(DeviceRotationViewModifier(action: action))
28 | }
/Users/admin/builder/spi-builder-workspace/Sources/KVKCalendar/SwiftUI+Extensions.swift:30:47: error: 'View' is only available in macOS 10.15 or newer
22 | }
23 |
24 | public extension View {
| `- note: add @available attribute to enclosing extension
25 |
26 | func kvkOnRotate(action: @escaping (UIInterfaceOrientation) -> Void) -> some View {
:
28 | }
29 |
30 | func kvkHandleNavigationView(_ view: some View) -> some View {
| | `- error: 'View' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing instance method
31 | if #available(iOS 16.0, *) {
32 | return NavigationStack {
/Users/admin/builder/spi-builder-workspace/Sources/KVKCalendar/SwiftUI+Extensions.swift:30:47: error: 'View' is only available in macOS 10.15 or newer
22 | }
23 |
24 | public extension View {
| `- note: add @available attribute to enclosing extension
25 |
26 | func kvkOnRotate(action: @escaping (UIInterfaceOrientation) -> Void) -> some View {
:
28 | }
29 |
30 | func kvkHandleNavigationView(_ view: some View) -> some View {
| | `- error: 'View' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing instance method
31 | if #available(iOS 16.0, *) {
32 | return NavigationStack {
/Users/admin/builder/spi-builder-workspace/Sources/KVKCalendar/SwiftUI+Extensions.swift:30:61: error: 'View' is only available in macOS 10.15 or newer
22 | }
23 |
24 | public extension View {
| `- note: add @available attribute to enclosing extension
25 |
26 | func kvkOnRotate(action: @escaping (UIInterfaceOrientation) -> Void) -> some View {
:
28 | }
29 |
30 | func kvkHandleNavigationView(_ view: some View) -> some View {
| | `- error: 'View' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing instance method
31 | if #available(iOS 16.0, *) {
32 | return NavigationStack {
/Users/admin/builder/spi-builder-workspace/Sources/KVKCalendar/SwiftUI+Extensions.swift:24:18: error: 'View' is only available in macOS 10.15 or newer
22 | }
23 |
24 | public extension View {
| | `- error: 'View' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing extension
25 |
26 | func kvkOnRotate(action: @escaping (UIInterfaceOrientation) -> Void) -> some View {
/Users/admin/builder/spi-builder-workspace/Sources/KVKCalendar/SwiftUI+Extensions.swift:45:33: error: 'Identifiable' is only available in macOS 10.15 or newer
43 | }
44 |
45 | public protocol ItemsMenuProxy: Identifiable, Equatable {
| | `- error: 'Identifiable' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing protocol
46 |
47 | var title: String { get }
/Users/admin/builder/spi-builder-workspace/Sources/KVKCalendar/SwiftUI+Extensions.swift:54:6: error: 'Binding' is only available in macOS 10.15 or newer
50 |
51 | @available(iOS 14.0, *)
52 | public struct ItemsMenu<T: ItemsMenuProxy>: View {
| `- note: add @available attribute to enclosing generic struct
53 |
54 | @Binding var type: T
| `- error: 'Binding' is only available in macOS 10.15 or newer
55 | @State var items: [T]
56 | private var showCheckmark: Bool
/Users/admin/builder/spi-builder-workspace/Sources/KVKCalendar/SwiftUI+Extensions.swift:55:6: error: 'State' is only available in macOS 10.15 or newer
50 |
51 | @available(iOS 14.0, *)
52 | public struct ItemsMenu<T: ItemsMenuProxy>: View {
| `- note: add @available attribute to enclosing generic struct
53 |
54 | @Binding var type: T
55 | @State var items: [T]
| `- error: 'State' is only available in macOS 10.15 or newer
56 | private var showCheckmark: Bool
57 | private var color: Color
/Users/admin/builder/spi-builder-workspace/Sources/KVKCalendar/SwiftUI+Extensions.swift:57:24: error: 'Color' is only available in macOS 10.15 or newer
50 |
51 | @available(iOS 14.0, *)
52 | public struct ItemsMenu<T: ItemsMenuProxy>: View {
| `- note: add @available attribute to enclosing generic struct
53 |
54 | @Binding var type: T
55 | @State var items: [T]
56 | private var showCheckmark: Bool
57 | private var color: Color
| `- error: 'Color' is only available in macOS 10.15 or newer
58 | private var showDropDownIcon: Bool
59 |
/Users/admin/builder/spi-builder-workspace/Sources/KVKCalendar/SwiftUI+Extensions.swift:60:23: error: 'Binding' is only available in macOS 10.15 or newer
50 |
51 | @available(iOS 14.0, *)
52 | public struct ItemsMenu<T: ItemsMenuProxy>: View {
| `- note: add @available attribute to enclosing generic struct
53 |
54 | @Binding var type: T
:
58 | private var showDropDownIcon: Bool
59 |
60 | public init(type: Binding<T>,
| | `- error: 'Binding' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing initializer
61 | items: [T],
62 | showCheckmark: Bool = false,
/Users/admin/builder/spi-builder-workspace/Sources/KVKCalendar/SwiftUI+Extensions.swift:63:24: error: 'Color' is only available in macOS 10.15 or newer
50 |
51 | @available(iOS 14.0, *)
52 | public struct ItemsMenu<T: ItemsMenuProxy>: View {
| `- note: add @available attribute to enclosing generic struct
53 |
54 | @Binding var type: T
:
58 | private var showDropDownIcon: Bool
59 |
60 | public init(type: Binding<T>,
| `- note: add @available attribute to enclosing initializer
61 | items: [T],
62 | showCheckmark: Bool = false,
63 | color: Color = .red,
| `- error: 'Color' is only available in macOS 10.15 or newer
64 | showDropDownIcon: Bool = false) {
65 | _type = type
/Users/admin/builder/spi-builder-workspace/Sources/KVKCalendar/SwiftUI+Extensions.swift:63:33: error: 'red' is only available in macOS 10.15 or newer
50 |
51 | @available(iOS 14.0, *)
52 | public struct ItemsMenu<T: ItemsMenuProxy>: View {
| `- note: add @available attribute to enclosing generic struct
53 |
54 | @Binding var type: T
:
58 | private var showDropDownIcon: Bool
59 |
60 | public init(type: Binding<T>,
| `- note: add @available attribute to enclosing initializer
61 | items: [T],
62 | showCheckmark: Bool = false,
63 | color: Color = .red,
| `- error: 'red' is only available in macOS 10.15 or newer
64 | showDropDownIcon: Bool = false) {
65 | _type = type
/Users/admin/builder/spi-builder-workspace/Sources/KVKCalendar/SwiftUI+Extensions.swift:72:27: error: 'View' is only available in macOS 10.15 or newer
50 |
51 | @available(iOS 14.0, *)
52 | public struct ItemsMenu<T: ItemsMenuProxy>: View {
| `- note: add @available attribute to enclosing generic struct
53 |
54 | @Binding var type: T
:
70 | }
71 |
72 | public var body: some View {
| | `- error: 'View' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing property
73 | Menu {
74 | ForEach(items) { (btn) in
/Users/admin/builder/spi-builder-workspace/Sources/KVKCalendar/SwiftUI+Extensions.swift:106:31: error: 'View' is only available in macOS 10.15 or newer
103 |
104 | @available(iOS 14.0, *)
105 | struct ItemsMenu_Previews: PreviewProvider {
| `- note: add @available attribute to enclosing struct
106 | static var previews: some View {
| | `- error: 'View' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing static property
107 | StatefulPreviewWrapper(CalendarType.day) { ItemsMenu<CalendarType>(type: $0, items: CalendarType.allCases.reversed(), showCheckmark: true, showDropDownIcon: true) }
108 | }
/Users/admin/builder/spi-builder-workspace/Sources/KVKCalendar/SwiftUI+Extensions.swift:112:6: error: 'State' is only available in macOS 10.15 or newer
109 | }
110 |
111 | struct StatefulPreviewWrapper<Value, Content: View>: View {
| `- note: add @available attribute to enclosing generic struct
112 | @State var value: Value
| `- error: 'State' is only available in macOS 10.15 or newer
113 | var content: (Binding<Value>) -> Content
114 |
/Users/admin/builder/spi-builder-workspace/Sources/KVKCalendar/SwiftUI+Extensions.swift:113:19: error: 'Binding' is only available in macOS 10.15 or newer
109 | }
110 |
111 | struct StatefulPreviewWrapper<Value, Content: View>: View {
| `- note: add @available attribute to enclosing generic struct
112 | @State var value: Value
113 | var content: (Binding<Value>) -> Content
| `- error: 'Binding' is only available in macOS 10.15 or newer
114 |
115 | var body: some View {
/Users/admin/builder/spi-builder-workspace/Sources/KVKCalendar/SwiftUI+Extensions.swift:115:20: error: 'View' is only available in macOS 10.15 or newer
109 | }
110 |
111 | struct StatefulPreviewWrapper<Value, Content: View>: View {
| `- note: add @available attribute to enclosing generic struct
112 | @State var value: Value
113 | var content: (Binding<Value>) -> Content
114 |
115 | var body: some View {
| | `- error: 'View' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing property
116 | content($value)
117 | }
/Users/admin/builder/spi-builder-workspace/Sources/KVKCalendar/SwiftUI+Extensions.swift:120:30: error: 'Binding' is only available in macOS 10.15 or newer
109 | }
110 |
111 | struct StatefulPreviewWrapper<Value, Content: View>: View {
| `- note: add @available attribute to enclosing generic struct
112 | @State var value: Value
113 | var content: (Binding<Value>) -> Content
:
117 | }
118 |
119 | init(_ value: Value,
| `- note: add @available attribute to enclosing initializer
120 | content: @escaping (Binding<Value>) -> Content) {
| `- error: 'Binding' is only available in macOS 10.15 or newer
121 | self._value = State(wrappedValue: value)
122 | self.content = content
/Users/admin/builder/spi-builder-workspace/Sources/KVKCalendar/SwiftUI+Extensions.swift:111:47: error: 'View' is only available in macOS 10.15 or newer
109 | }
110 |
111 | struct StatefulPreviewWrapper<Value, Content: View>: View {
| | `- error: 'View' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing generic struct
112 | @State var value: Value
113 | var content: (Binding<Value>) -> Content
/Users/admin/builder/spi-builder-workspace/Sources/KVKCalendar/SwiftUI+Extensions.swift:17:66: error: cannot find 'UIDevice' in scope
15 | content
16 | .onAppear()
17 | .onReceive(NotificationCenter.default.publisher(for: UIDevice.orientationDidChangeNotification)) { (_) in
| `- error: cannot find 'UIDevice' in scope
18 | action(UIApplication.shared.orientation)
19 | }
/Users/admin/builder/spi-builder-workspace/Sources/KVKCalendar/SwiftUI+Extensions.swift:18:24: error: cannot find 'UIApplication' in scope
16 | .onAppear()
17 | .onReceive(NotificationCenter.default.publisher(for: UIDevice.orientationDidChangeNotification)) { (_) in
18 | action(UIApplication.shared.orientation)
| `- error: cannot find 'UIApplication' in scope
19 | }
20 | }
/Users/admin/builder/spi-builder-workspace/Sources/KVKCalendar/SwiftUI+Extensions.swift:32:20: error: 'NavigationStack' is only available in macOS 13.0 or newer
22 | }
23 |
24 | public extension View {
| `- note: add @available attribute to enclosing extension
25 |
26 | func kvkOnRotate(action: @escaping (UIInterfaceOrientation) -> Void) -> some View {
:
28 | }
29 |
30 | func kvkHandleNavigationView(_ view: some View) -> some View {
| `- note: add @available attribute to enclosing instance method
31 | if #available(iOS 16.0, *) {
32 | return NavigationStack {
| |- error: 'NavigationStack' is only available in macOS 13.0 or newer
| `- note: add 'if #available' version check
33 | view
34 | }
/Users/admin/builder/spi-builder-workspace/Sources/KVKCalendar/SwiftUI+Extensions.swift:39:34: error: 'StackNavigationViewStyle' is unavailable in macOS
37 | view
38 | }
39 | .navigationViewStyle(StackNavigationViewStyle())
| `- error: 'StackNavigationViewStyle' is unavailable in macOS
40 | }
41 | }
SwiftUI.StackNavigationViewStyle:6:15: note: 'StackNavigationViewStyle' has been explicitly marked unavailable here
4 | @available(watchOS, introduced: 7.0, deprecated: 100000.0, message: "replace stack-styled NavigationView with NavigationStack")
5 | @available(visionOS, introduced: 1.0, deprecated: 100000.0, message: "replace stack-styled NavigationView with NavigationStack")
6 | public struct StackNavigationViewStyle : NavigationViewStyle {
| `- note: 'StackNavigationViewStyle' has been explicitly marked unavailable here
7 | public init()
8 | public func _body(configuration: _NavigationViewStyleConfiguration) -> some View
/Users/admin/builder/spi-builder-workspace/Sources/KVKCalendar/SwiftUI+Extensions.swift:66:18: error: 'State' is only available in macOS 10.15 or newer
50 |
51 | @available(iOS 14.0, *)
52 | public struct ItemsMenu<T: ItemsMenuProxy>: View {
| `- note: add @available attribute to enclosing generic struct
53 |
54 | @Binding var type: T
:
58 | private var showDropDownIcon: Bool
59 |
60 | public init(type: Binding<T>,
| `- note: add @available attribute to enclosing initializer
61 | items: [T],
62 | showCheckmark: Bool = false,
:
64 | showDropDownIcon: Bool = false) {
65 | _type = type
66 | _items = State(initialValue: items)
| |- error: 'State' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
67 | self.showCheckmark = showCheckmark
68 | self.color = color
/Users/admin/builder/spi-builder-workspace/Sources/KVKCalendar/SwiftUI+Extensions.swift:73:9: warning: conformance of 'ForEach<Data, ID, Content>' to 'View' is only available in macOS 10.15 or newer; this is an error in the Swift 6 language mode
50 |
51 | @available(iOS 14.0, *)
52 | public struct ItemsMenu<T: ItemsMenuProxy>: View {
| `- note: add @available attribute to enclosing generic struct
53 |
54 | @Binding var type: T
:
70 | }
71 |
72 | public var body: some View {
| `- note: add @available attribute to enclosing property
73 | Menu {
| |- warning: conformance of 'ForEach<Data, ID, Content>' to 'View' is only available in macOS 10.15 or newer; this is an error in the Swift 6 language mode
| `- note: add 'if #available' version check
74 | ForEach(items) { (btn) in
75 | Button {
/Users/admin/builder/spi-builder-workspace/Sources/KVKCalendar/SwiftUI+Extensions.swift:73:9: error: 'Menu' is only available in macOS 11.0 or newer
50 |
51 | @available(iOS 14.0, *)
52 | public struct ItemsMenu<T: ItemsMenuProxy>: View {
| `- note: add @available attribute to enclosing generic struct
53 |
54 | @Binding var type: T
:
70 | }
71 |
72 | public var body: some View {
| `- note: add @available attribute to enclosing property
73 | Menu {
| |- error: 'Menu' is only available in macOS 11.0 or newer
| `- note: add 'if #available' version check
74 | ForEach(items) { (btn) in
75 | Button {
/Users/admin/builder/spi-builder-workspace/Sources/KVKCalendar/SwiftUI+Extensions.swift:73:9: error: 'init(content:label:)' is only available in macOS 11.0 or newer
50 |
51 | @available(iOS 14.0, *)
52 | public struct ItemsMenu<T: ItemsMenuProxy>: View {
| `- note: add @available attribute to enclosing generic struct
53 |
54 | @Binding var type: T
:
70 | }
71 |
72 | public var body: some View {
| `- note: add @available attribute to enclosing property
73 | Menu {
| |- error: 'init(content:label:)' is only available in macOS 11.0 or newer
| `- note: add 'if #available' version check
74 | ForEach(items) { (btn) in
75 | Button {
/Users/admin/builder/spi-builder-workspace/Sources/KVKCalendar/SwiftUI+Extensions.swift:74:13: warning: conformance of 'ForEach<Data, ID, Content>' to 'View' is only available in macOS 10.15 or newer; this is an error in the Swift 6 language mode
50 |
51 | @available(iOS 14.0, *)
52 | public struct ItemsMenu<T: ItemsMenuProxy>: View {
| `- note: add @available attribute to enclosing generic struct
53 |
54 | @Binding var type: T
:
70 | }
71 |
72 | public var body: some View {
| `- note: add @available attribute to enclosing property
73 | Menu {
74 | ForEach(items) { (btn) in
| |- warning: conformance of 'ForEach<Data, ID, Content>' to 'View' is only available in macOS 10.15 or newer; this is an error in the Swift 6 language mode
| `- note: add 'if #available' version check
75 | Button {
76 | type = btn
/Users/admin/builder/spi-builder-workspace/Sources/KVKCalendar/SwiftUI+Extensions.swift:74:13: error: 'ForEach' is only available in macOS 10.15 or newer
50 |
51 | @available(iOS 14.0, *)
52 | public struct ItemsMenu<T: ItemsMenuProxy>: View {
| `- note: add @available attribute to enclosing generic struct
53 |
54 | @Binding var type: T
:
70 | }
71 |
72 | public var body: some View {
| `- note: add @available attribute to enclosing property
73 | Menu {
74 | ForEach(items) { (btn) in
| |- error: 'ForEach' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
75 | Button {
76 | type = btn
/Users/admin/builder/spi-builder-workspace/Sources/KVKCalendar/SwiftUI+Extensions.swift:74:13: error: 'init(_:content:)' is only available in macOS 10.15 or newer
50 |
51 | @available(iOS 14.0, *)
52 | public struct ItemsMenu<T: ItemsMenuProxy>: View {
| `- note: add @available attribute to enclosing generic struct
53 |
54 | @Binding var type: T
:
70 | }
71 |
72 | public var body: some View {
| `- note: add @available attribute to enclosing property
73 | Menu {
74 | ForEach(items) { (btn) in
| |- error: 'init(_:content:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
75 | Button {
76 | type = btn
/Users/admin/builder/spi-builder-workspace/Sources/KVKCalendar/SwiftUI+Extensions.swift:75:17: error: 'Button' is only available in macOS 10.15 or newer
50 |
51 | @available(iOS 14.0, *)
52 | public struct ItemsMenu<T: ItemsMenuProxy>: View {
| `- note: add @available attribute to enclosing generic struct
53 |
54 | @Binding var type: T
:
70 | }
71 |
72 | public var body: some View {
| `- note: add @available attribute to enclosing property
73 | Menu {
74 | ForEach(items) { (btn) in
75 | Button {
| |- error: 'Button' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
76 | type = btn
77 | } label: {
/Users/admin/builder/spi-builder-workspace/Sources/KVKCalendar/SwiftUI+Extensions.swift:76:21: error: setter for 'type' is only available in macOS 10.15 or newer
50 |
51 | @available(iOS 14.0, *)
52 | public struct ItemsMenu<T: ItemsMenuProxy>: View {
| `- note: add @available attribute to enclosing generic struct
53 |
54 | @Binding var type: T
:
70 | }
71 |
72 | public var body: some View {
| `- note: add @available attribute to enclosing property
73 | Menu {
74 | ForEach(items) { (btn) in
75 | Button {
76 | type = btn
| |- error: setter for 'type' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
77 | } label: {
78 | HStack {
/Users/admin/builder/spi-builder-workspace/Sources/KVKCalendar/SwiftUI+Extensions.swift:78:21: error: 'HStack' is only available in macOS 10.15 or newer
50 |
51 | @available(iOS 14.0, *)
52 | public struct ItemsMenu<T: ItemsMenuProxy>: View {
| `- note: add @available attribute to enclosing generic struct
53 |
54 | @Binding var type: T
:
70 | }
71 |
72 | public var body: some View {
| `- note: add @available attribute to enclosing property
73 | Menu {
74 | ForEach(items) { (btn) in
:
76 | type = btn
77 | } label: {
78 | HStack {
| |- error: 'HStack' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
79 | if type == btn && showCheckmark {
80 | Image(systemName: "checkmark")
/Users/admin/builder/spi-builder-workspace/Sources/KVKCalendar/SwiftUI+Extensions.swift:80:29: warning: conformance of 'Image' to 'View' is only available in macOS 10.15 or newer; this is an error in the Swift 6 language mode
50 |
51 | @available(iOS 14.0, *)
52 | public struct ItemsMenu<T: ItemsMenuProxy>: View {
| `- note: add @available attribute to enclosing generic struct
53 |
54 | @Binding var type: T
:
70 | }
71 |
72 | public var body: some View {
| `- note: add @available attribute to enclosing property
73 | Menu {
74 | ForEach(items) { (btn) in
:
78 | HStack {
79 | if type == btn && showCheckmark {
80 | Image(systemName: "checkmark")
| |- warning: conformance of 'Image' to 'View' is only available in macOS 10.15 or newer; this is an error in the Swift 6 language mode
| `- note: add 'if #available' version check
81 | }
82 | Text(btn.title)
/Users/admin/builder/spi-builder-workspace/Sources/KVKCalendar/SwiftUI+Extensions.swift:80:29: error: 'Image' is only available in macOS 10.15 or newer
50 |
51 | @available(iOS 14.0, *)
52 | public struct ItemsMenu<T: ItemsMenuProxy>: View {
| `- note: add @available attribute to enclosing generic struct
53 |
54 | @Binding var type: T
:
70 | }
71 |
72 | public var body: some View {
| `- note: add @available attribute to enclosing property
73 | Menu {
74 | ForEach(items) { (btn) in
:
78 | HStack {
79 | if type == btn && showCheckmark {
80 | Image(systemName: "checkmark")
| |- error: 'Image' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
81 | }
82 | Text(btn.title)
/Users/admin/builder/spi-builder-workspace/Sources/KVKCalendar/SwiftUI+Extensions.swift:80:29: error: 'init(systemName:)' is only available in macOS 11.0 or newer
50 |
51 | @available(iOS 14.0, *)
52 | public struct ItemsMenu<T: ItemsMenuProxy>: View {
| `- note: add @available attribute to enclosing generic struct
53 |
54 | @Binding var type: T
:
70 | }
71 |
72 | public var body: some View {
| `- note: add @available attribute to enclosing property
73 | Menu {
74 | ForEach(items) { (btn) in
:
78 | HStack {
79 | if type == btn && showCheckmark {
80 | Image(systemName: "checkmark")
| |- error: 'init(systemName:)' is only available in macOS 11.0 or newer
| `- note: add 'if #available' version check
81 | }
82 | Text(btn.title)
/Users/admin/builder/spi-builder-workspace/Sources/KVKCalendar/SwiftUI+Extensions.swift:79:57: error: 'buildIf' is only available in macOS 10.15 or newer
50 |
51 | @available(iOS 14.0, *)
52 | public struct ItemsMenu<T: ItemsMenuProxy>: View {
| `- note: add @available attribute to enclosing generic struct
53 |
54 | @Binding var type: T
:
70 | }
71 |
72 | public var body: some View {
| `- note: add @available attribute to enclosing property
73 | Menu {
74 | ForEach(items) { (btn) in
:
77 | } label: {
78 | HStack {
79 | if type == btn && showCheckmark {
| |- error: 'buildIf' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
80 | Image(systemName: "checkmark")
81 | }
/Users/admin/builder/spi-builder-workspace/Sources/KVKCalendar/SwiftUI+Extensions.swift:79:57: warning: conformance of 'Image' to 'View' is only available in macOS 10.15 or newer; this is an error in the Swift 6 language mode
50 |
51 | @available(iOS 14.0, *)
52 | public struct ItemsMenu<T: ItemsMenuProxy>: View {
| `- note: add @available attribute to enclosing generic struct
53 |
54 | @Binding var type: T
:
70 | }
71 |
72 | public var body: some View {
| `- note: add @available attribute to enclosing property
73 | Menu {
74 | ForEach(items) { (btn) in
:
77 | } label: {
78 | HStack {
79 | if type == btn && showCheckmark {
| |- warning: conformance of 'Image' to 'View' is only available in macOS 10.15 or newer; this is an error in the Swift 6 language mode
| `- note: add 'if #available' version check
80 | Image(systemName: "checkmark")
81 | }
/Users/admin/builder/spi-builder-workspace/Sources/KVKCalendar/SwiftUI+Extensions.swift:81:25: error: 'buildIf' is only available in macOS 10.15 or newer
50 |
51 | @available(iOS 14.0, *)
52 | public struct ItemsMenu<T: ItemsMenuProxy>: View {
| `- note: add @available attribute to enclosing generic struct
53 |
54 | @Binding var type: T
:
70 | }
71 |
72 | public var body: some View {
| `- note: add @available attribute to enclosing property
73 | Menu {
74 | ForEach(items) { (btn) in
:
79 | if type == btn && showCheckmark {
80 | Image(systemName: "checkmark")
81 | }
| |- error: 'buildIf' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
82 | Text(btn.title)
83 | }
/Users/admin/builder/spi-builder-workspace/Sources/KVKCalendar/SwiftUI+Extensions.swift:82:25: 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
50 |
51 | @available(iOS 14.0, *)
52 | public struct ItemsMenu<T: ItemsMenuProxy>: View {
| `- note: add @available attribute to enclosing generic struct
53 |
54 | @Binding var type: T
:
70 | }
71 |
72 | public var body: some View {
| `- note: add @available attribute to enclosing property
73 | Menu {
74 | ForEach(items) { (btn) in
:
80 | Image(systemName: "checkmark")
81 | }
82 | Text(btn.title)
| |- 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
83 | }
84 | }
/Users/admin/builder/spi-builder-workspace/Sources/KVKCalendar/SwiftUI+Extensions.swift:82:25: error: 'Text' is only available in macOS 10.15 or newer
50 |
51 | @available(iOS 14.0, *)
52 | public struct ItemsMenu<T: ItemsMenuProxy>: View {
| `- note: add @available attribute to enclosing generic struct
53 |
54 | @Binding var type: T
:
70 | }
71 |
72 | public var body: some View {
| `- note: add @available attribute to enclosing property
73 | Menu {
74 | ForEach(items) { (btn) in
:
80 | Image(systemName: "checkmark")
81 | }
82 | Text(btn.title)
| |- error: 'Text' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
83 | }
84 | }
/Users/admin/builder/spi-builder-workspace/Sources/KVKCalendar/SwiftUI+Extensions.swift:78:28: warning: conformance of 'Optional<Wrapped>' to 'View' is only available in macOS 10.15 or newer; this is an error in the Swift 6 language mode
50 |
51 | @available(iOS 14.0, *)
52 | public struct ItemsMenu<T: ItemsMenuProxy>: View {
| `- note: add @available attribute to enclosing generic struct
53 |
54 | @Binding var type: T
:
70 | }
71 |
72 | public var body: some View {
| `- note: add @available attribute to enclosing property
73 | Menu {
74 | ForEach(items) { (btn) in
:
76 | type = btn
77 | } label: {
78 | HStack {
| |- warning: conformance of 'Optional<Wrapped>' to 'View' is only available in macOS 10.15 or newer; this is an error in the Swift 6 language mode
| `- note: add 'if #available' version check
79 | if type == btn && showCheckmark {
80 | Image(systemName: "checkmark")
/Users/admin/builder/spi-builder-workspace/Sources/KVKCalendar/SwiftUI+Extensions.swift:78:28: 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
50 |
51 | @available(iOS 14.0, *)
52 | public struct ItemsMenu<T: ItemsMenuProxy>: View {
| `- note: add @available attribute to enclosing generic struct
53 |
54 | @Binding var type: T
:
70 | }
71 |
72 | public var body: some View {
| `- note: add @available attribute to enclosing property
73 | Menu {
74 | ForEach(items) { (btn) in
:
76 | type = btn
77 | } label: {
78 | HStack {
| |- warning: conformance of 'Text' to 'View' is only available in macOS 10.15 or newer; this is an error in the Swift 6 language mode
| `- note: add 'if #available' version check
79 | if type == btn && showCheckmark {
80 | Image(systemName: "checkmark")
/Users/admin/builder/spi-builder-workspace/Sources/KVKCalendar/SwiftUI+Extensions.swift:73:14: warning: conformance of 'ForEach<Data, ID, Content>' to 'View' is only available in macOS 10.15 or newer; this is an error in the Swift 6 language mode
50 |
51 | @available(iOS 14.0, *)
52 | public struct ItemsMenu<T: ItemsMenuProxy>: View {
| `- note: add @available attribute to enclosing generic struct
53 |
54 | @Binding var type: T
:
70 | }
71 |
72 | public var body: some View {
| `- note: add @available attribute to enclosing property
73 | Menu {
| |- warning: conformance of 'ForEach<Data, ID, Content>' to 'View' is only available in macOS 10.15 or newer; this is an error in the Swift 6 language mode
| `- note: add 'if #available' version check
74 | ForEach(items) { (btn) in
75 | Button {
/Users/admin/builder/spi-builder-workspace/Sources/KVKCalendar/SwiftUI+Extensions.swift:87:13: error: 'HStack' is only available in macOS 10.15 or newer
50 |
51 | @available(iOS 14.0, *)
52 | public struct ItemsMenu<T: ItemsMenuProxy>: View {
| `- note: add @available attribute to enclosing generic struct
53 |
54 | @Binding var type: T
:
70 | }
71 |
72 | public var body: some View {
| `- note: add @available attribute to enclosing property
73 | Menu {
74 | ForEach(items) { (btn) in
:
85 | }
86 | } label: {
87 | HStack {
| |- error: 'HStack' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
88 | Text(type.title)
89 | .foregroundColor(color)
/Users/admin/builder/spi-builder-workspace/Sources/KVKCalendar/SwiftUI+Extensions.swift:88: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
50 |
51 | @available(iOS 14.0, *)
52 | public struct ItemsMenu<T: ItemsMenuProxy>: View {
| `- note: add @available attribute to enclosing generic struct
53 |
54 | @Binding var type: T
:
70 | }
71 |
72 | public var body: some View {
| `- note: add @available attribute to enclosing property
73 | Menu {
74 | ForEach(items) { (btn) in
:
86 | } label: {
87 | HStack {
88 | Text(type.title)
| |- 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
89 | .foregroundColor(color)
90 | .font(.headline)
/Users/admin/builder/spi-builder-workspace/Sources/KVKCalendar/SwiftUI+Extensions.swift:88:17: error: 'Text' is only available in macOS 10.15 or newer
50 |
51 | @available(iOS 14.0, *)
52 | public struct ItemsMenu<T: ItemsMenuProxy>: View {
| `- note: add @available attribute to enclosing generic struct
53 |
54 | @Binding var type: T
:
70 | }
71 |
72 | public var body: some View {
| `- note: add @available attribute to enclosing property
73 | Menu {
74 | ForEach(items) { (btn) in
:
86 | } label: {
87 | HStack {
88 | Text(type.title)
| |- error: 'Text' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
89 | .foregroundColor(color)
90 | .font(.headline)
/Users/admin/builder/spi-builder-workspace/Sources/KVKCalendar/SwiftUI+Extensions.swift:89:22: error: 'foregroundColor' is only available in macOS 10.15 or newer
50 |
51 | @available(iOS 14.0, *)
52 | public struct ItemsMenu<T: ItemsMenuProxy>: View {
| `- note: add @available attribute to enclosing generic struct
53 |
54 | @Binding var type: T
:
70 | }
71 |
72 | public var body: some View {
| `- note: add @available attribute to enclosing property
73 | Menu {
74 | ForEach(items) { (btn) in
:
87 | HStack {
88 | Text(type.title)
89 | .foregroundColor(color)
| |- error: 'foregroundColor' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
90 | .font(.headline)
91 | if showDropDownIcon {
/Users/admin/builder/spi-builder-workspace/Sources/KVKCalendar/SwiftUI+Extensions.swift:90:22: error: 'font' is only available in macOS 10.15 or newer
50 |
51 | @available(iOS 14.0, *)
52 | public struct ItemsMenu<T: ItemsMenuProxy>: View {
| `- note: add @available attribute to enclosing generic struct
53 |
54 | @Binding var type: T
:
70 | }
71 |
72 | public var body: some View {
| `- note: add @available attribute to enclosing property
73 | Menu {
74 | ForEach(items) { (btn) in
:
88 | Text(type.title)
89 | .foregroundColor(color)
90 | .font(.headline)
| |- error: 'font' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
91 | if showDropDownIcon {
92 | Image(systemName: "chevron.down")
/Users/admin/builder/spi-builder-workspace/Sources/KVKCalendar/SwiftUI+Extensions.swift:90:28: error: 'headline' is only available in macOS 10.15 or newer
50 |
51 | @available(iOS 14.0, *)
52 | public struct ItemsMenu<T: ItemsMenuProxy>: View {
| `- note: add @available attribute to enclosing generic struct
53 |
54 | @Binding var type: T
:
70 | }
71 |
72 | public var body: some View {
| `- note: add @available attribute to enclosing property
73 | Menu {
74 | ForEach(items) { (btn) in
:
88 | Text(type.title)
89 | .foregroundColor(color)
90 | .font(.headline)
| |- error: 'headline' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
91 | if showDropDownIcon {
92 | Image(systemName: "chevron.down")
/Users/admin/builder/spi-builder-workspace/Sources/KVKCalendar/SwiftUI+Extensions.swift:92:21: error: 'Image' is only available in macOS 10.15 or newer
50 |
51 | @available(iOS 14.0, *)
52 | public struct ItemsMenu<T: ItemsMenuProxy>: View {
| `- note: add @available attribute to enclosing generic struct
53 |
54 | @Binding var type: T
:
70 | }
71 |
72 | public var body: some View {
| `- note: add @available attribute to enclosing property
73 | Menu {
74 | ForEach(items) { (btn) in
:
90 | .font(.headline)
91 | if showDropDownIcon {
92 | Image(systemName: "chevron.down")
| |- error: 'Image' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
93 | .resizable()
94 | .frame(width: 12, height: 7)
/Users/admin/builder/spi-builder-workspace/Sources/KVKCalendar/SwiftUI+Extensions.swift:92:21: error: 'init(systemName:)' is only available in macOS 11.0 or newer
50 |
51 | @available(iOS 14.0, *)
52 | public struct ItemsMenu<T: ItemsMenuProxy>: View {
| `- note: add @available attribute to enclosing generic struct
53 |
54 | @Binding var type: T
:
70 | }
71 |
72 | public var body: some View {
| `- note: add @available attribute to enclosing property
73 | Menu {
74 | ForEach(items) { (btn) in
:
90 | .font(.headline)
91 | if showDropDownIcon {
92 | Image(systemName: "chevron.down")
| |- error: 'init(systemName:)' is only available in macOS 11.0 or newer
| `- note: add 'if #available' version check
93 | .resizable()
94 | .frame(width: 12, height: 7)
/Users/admin/builder/spi-builder-workspace/Sources/KVKCalendar/SwiftUI+Extensions.swift:93:26: error: 'resizable(capInsets:resizingMode:)' is only available in macOS 10.15 or newer
50 |
51 | @available(iOS 14.0, *)
52 | public struct ItemsMenu<T: ItemsMenuProxy>: View {
| `- note: add @available attribute to enclosing generic struct
53 |
54 | @Binding var type: T
:
70 | }
71 |
72 | public var body: some View {
| `- note: add @available attribute to enclosing property
73 | Menu {
74 | ForEach(items) { (btn) in
:
91 | if showDropDownIcon {
92 | Image(systemName: "chevron.down")
93 | .resizable()
| |- error: 'resizable(capInsets:resizingMode:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
94 | .frame(width: 12, height: 7)
95 | .foregroundColor(color)
/Users/admin/builder/spi-builder-workspace/Sources/KVKCalendar/SwiftUI+Extensions.swift:94:26: error: 'frame(width:height:alignment:)' is only available in macOS 10.15 or newer
50 |
51 | @available(iOS 14.0, *)
52 | public struct ItemsMenu<T: ItemsMenuProxy>: View {
| `- note: add @available attribute to enclosing generic struct
53 |
54 | @Binding var type: T
:
70 | }
71 |
72 | public var body: some View {
| `- note: add @available attribute to enclosing property
73 | Menu {
74 | ForEach(items) { (btn) in
:
92 | Image(systemName: "chevron.down")
93 | .resizable()
94 | .frame(width: 12, height: 7)
| |- error: 'frame(width:height:alignment:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
95 | .foregroundColor(color)
96 | .padding(EdgeInsets(top: 5, leading: 0, bottom: 0, trailing: 0))
/Users/admin/builder/spi-builder-workspace/Sources/KVKCalendar/SwiftUI+Extensions.swift:95:26: error: 'foregroundColor' is only available in macOS 10.15 or newer
50 |
51 | @available(iOS 14.0, *)
52 | public struct ItemsMenu<T: ItemsMenuProxy>: View {
| `- note: add @available attribute to enclosing generic struct
53 |
54 | @Binding var type: T
:
70 | }
71 |
72 | public var body: some View {
| `- note: add @available attribute to enclosing property
73 | Menu {
74 | ForEach(items) { (btn) in
:
93 | .resizable()
94 | .frame(width: 12, height: 7)
95 | .foregroundColor(color)
| |- error: 'foregroundColor' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
96 | .padding(EdgeInsets(top: 5, leading: 0, bottom: 0, trailing: 0))
97 | }
/Users/admin/builder/spi-builder-workspace/Sources/KVKCalendar/SwiftUI+Extensions.swift:96:26: error: 'padding' is only available in macOS 10.15 or newer
50 |
51 | @available(iOS 14.0, *)
52 | public struct ItemsMenu<T: ItemsMenuProxy>: View {
| `- note: add @available attribute to enclosing generic struct
53 |
54 | @Binding var type: T
:
70 | }
71 |
72 | public var body: some View {
| `- note: add @available attribute to enclosing property
73 | Menu {
74 | ForEach(items) { (btn) in
:
94 | .frame(width: 12, height: 7)
95 | .foregroundColor(color)
96 | .padding(EdgeInsets(top: 5, leading: 0, bottom: 0, trailing: 0))
| |- error: 'padding' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
97 | }
98 | }
/Users/admin/builder/spi-builder-workspace/Sources/KVKCalendar/SwiftUI+Extensions.swift:96:34: error: 'EdgeInsets' is only available in macOS 10.15 or newer
50 |
51 | @available(iOS 14.0, *)
52 | public struct ItemsMenu<T: ItemsMenuProxy>: View {
| `- note: add @available attribute to enclosing generic struct
53 |
54 | @Binding var type: T
:
70 | }
71 |
72 | public var body: some View {
| `- note: add @available attribute to enclosing property
73 | Menu {
74 | ForEach(items) { (btn) in
:
94 | .frame(width: 12, height: 7)
95 | .foregroundColor(color)
96 | .padding(EdgeInsets(top: 5, leading: 0, bottom: 0, trailing: 0))
| |- error: 'EdgeInsets' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
97 | }
98 | }
/Users/admin/builder/spi-builder-workspace/Sources/KVKCalendar/SwiftUI+Extensions.swift:91:37: error: 'buildIf' is only available in macOS 10.15 or newer
50 |
51 | @available(iOS 14.0, *)
52 | public struct ItemsMenu<T: ItemsMenuProxy>: View {
| `- note: add @available attribute to enclosing generic struct
53 |
54 | @Binding var type: T
:
70 | }
71 |
72 | public var body: some View {
| `- note: add @available attribute to enclosing property
73 | Menu {
74 | ForEach(items) { (btn) in
:
89 | .foregroundColor(color)
90 | .font(.headline)
91 | if showDropDownIcon {
| |- error: 'buildIf' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
92 | Image(systemName: "chevron.down")
93 | .resizable()
/Users/admin/builder/spi-builder-workspace/Sources/KVKCalendar/SwiftUI+Extensions.swift:97:17: error: 'buildIf' is only available in macOS 10.15 or newer
50 |
51 | @available(iOS 14.0, *)
52 | public struct ItemsMenu<T: ItemsMenuProxy>: View {
| `- note: add @available attribute to enclosing generic struct
53 |
54 | @Binding var type: T
:
70 | }
71 |
72 | public var body: some View {
| `- note: add @available attribute to enclosing property
73 | Menu {
74 | ForEach(items) { (btn) in
:
95 | .foregroundColor(color)
96 | .padding(EdgeInsets(top: 5, leading: 0, bottom: 0, trailing: 0))
97 | }
| |- error: 'buildIf' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
98 | }
99 | }
/Users/admin/builder/spi-builder-workspace/Sources/KVKCalendar/SwiftUI+Extensions.swift:87: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
50 |
51 | @available(iOS 14.0, *)
52 | public struct ItemsMenu<T: ItemsMenuProxy>: View {
| `- note: add @available attribute to enclosing generic struct
53 |
54 | @Binding var type: T
:
70 | }
71 |
72 | public var body: some View {
| `- note: add @available attribute to enclosing property
73 | Menu {
74 | ForEach(items) { (btn) in
:
85 | }
86 | } label: {
87 | HStack {
| |- warning: conformance of 'Text' to 'View' is only available in macOS 10.15 or newer; this is an error in the Swift 6 language mode
| `- note: add 'if #available' version check
88 | Text(type.title)
89 | .foregroundColor(color)
/Users/admin/builder/spi-builder-workspace/Sources/KVKCalendar/SwiftUI+Extensions.swift:87:20: warning: conformance of 'Optional<Wrapped>' to 'View' is only available in macOS 10.15 or newer; this is an error in the Swift 6 language mode
50 |
51 | @available(iOS 14.0, *)
52 | public struct ItemsMenu<T: ItemsMenuProxy>: View {
| `- note: add @available attribute to enclosing generic struct
53 |
54 | @Binding var type: T
:
70 | }
71 |
72 | public var body: some View {
| `- note: add @available attribute to enclosing property
73 | Menu {
74 | ForEach(items) { (btn) in
:
85 | }
86 | } label: {
87 | HStack {
| |- warning: conformance of 'Optional<Wrapped>' to 'View' is only available in macOS 10.15 or newer; this is an error in the Swift 6 language mode
| `- note: add 'if #available' version check
88 | Text(type.title)
89 | .foregroundColor(color)
/Users/admin/builder/spi-builder-workspace/Sources/KVKCalendar/SwiftUI+Extensions.swift:72:32: warning: conformance of 'ForEach<Data, ID, Content>' to 'View' is only available in macOS 10.15 or newer; this is an error in the Swift 6 language mode
50 |
51 | @available(iOS 14.0, *)
52 | public struct ItemsMenu<T: ItemsMenuProxy>: View {
| `- note: add @available attribute to enclosing generic struct
53 |
54 | @Binding var type: T
:
70 | }
71 |
72 | public var body: some View {
| | |- warning: conformance of 'ForEach<Data, ID, Content>' to 'View' is only available in macOS 10.15 or newer; this is an error in the Swift 6 language mode
| | `- note: add 'if #available' version check
| `- note: add @available attribute to enclosing property
73 | Menu {
74 | ForEach(items) { (btn) in
/Users/admin/builder/spi-builder-workspace/Sources/KVKCalendar/SwiftUI+Extensions.swift:72:32: warning: conformance of 'ForEach<Data, ID, Content>' to 'View' is only available in macOS 10.15 or newer; this is an error in the Swift 6 language mode
50 |
51 | @available(iOS 14.0, *)
52 | public struct ItemsMenu<T: ItemsMenuProxy>: View {
| `- note: add @available attribute to enclosing generic struct
53 |
54 | @Binding var type: T
:
70 | }
71 |
72 | public var body: some View {
| | |- warning: conformance of 'ForEach<Data, ID, Content>' to 'View' is only available in macOS 10.15 or newer; this is an error in the Swift 6 language mode
| | `- note: add 'if #available' version check
| `- note: add @available attribute to enclosing property
73 | Menu {
74 | ForEach(items) { (btn) in
/Users/admin/builder/spi-builder-workspace/Sources/KVKCalendar/SwiftUI+Extensions.swift:107:32: error: cannot find 'CalendarType' in scope
105 | struct ItemsMenu_Previews: PreviewProvider {
106 | static var previews: some View {
107 | StatefulPreviewWrapper(CalendarType.day) { ItemsMenu<CalendarType>(type: $0, items: CalendarType.allCases.reversed(), showCheckmark: true, showDropDownIcon: true) }
| `- error: cannot find 'CalendarType' in scope
108 | }
109 | }
/Users/admin/builder/spi-builder-workspace/Sources/KVKCalendar/SwiftUI+Extensions.swift:107:93: error: cannot find 'CalendarType' in scope
105 | struct ItemsMenu_Previews: PreviewProvider {
106 | static var previews: some View {
107 | StatefulPreviewWrapper(CalendarType.day) { ItemsMenu<CalendarType>(type: $0, items: CalendarType.allCases.reversed(), showCheckmark: true, showDropDownIcon: true) }
| `- error: cannot find 'CalendarType' in scope
108 | }
109 | }
/Users/admin/builder/spi-builder-workspace/Sources/KVKCalendar/SwiftUI+Extensions.swift:107:62: error: cannot find type 'CalendarType' in scope
105 | struct ItemsMenu_Previews: PreviewProvider {
106 | static var previews: some View {
107 | StatefulPreviewWrapper(CalendarType.day) { ItemsMenu<CalendarType>(type: $0, items: CalendarType.allCases.reversed(), showCheckmark: true, showDropDownIcon: true) }
| `- error: cannot find type 'CalendarType' in scope
108 | }
109 | }
/Users/admin/builder/spi-builder-workspace/Sources/KVKCalendar/SwiftUI+Extensions.swift:121:23: error: 'State' is only available in macOS 10.15 or newer
109 | }
110 |
111 | struct StatefulPreviewWrapper<Value, Content: View>: View {
| `- note: add @available attribute to enclosing generic struct
112 | @State var value: Value
113 | var content: (Binding<Value>) -> Content
:
117 | }
118 |
119 | init(_ value: Value,
| `- note: add @available attribute to enclosing initializer
120 | content: @escaping (Binding<Value>) -> Content) {
121 | self._value = State(wrappedValue: value)
| |- error: 'State' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
122 | self.content = content
123 | }
[58/58] Compiling KVKCalendar Timeline+Extension.swift
/Users/admin/builder/spi-builder-workspace/Sources/KVKCalendar/SwiftUI+Extensions.swift:12:18: error: cannot find type 'UIInterfaceOrientation' in scope
10 | struct DeviceRotationViewModifier: ViewModifier {
11 |
12 | let action: (UIInterfaceOrientation) -> Void
| `- error: cannot find type 'UIInterfaceOrientation' in scope
13 |
14 | func body(content: Content) -> some View {
/Users/admin/builder/spi-builder-workspace/Sources/KVKCalendar/SwiftUI+Extensions.swift:14:41: error: 'View' is only available in macOS 10.15 or newer
8 | import SwiftUI
9 |
10 | struct DeviceRotationViewModifier: ViewModifier {
| `- note: add @available attribute to enclosing struct
11 |
12 | let action: (UIInterfaceOrientation) -> Void
13 |
14 | func body(content: Content) -> some View {
| | `- error: 'View' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing instance method
15 | content
16 | .onAppear()
/Users/admin/builder/spi-builder-workspace/Sources/KVKCalendar/SwiftUI+Extensions.swift:26:41: error: cannot find type 'UIInterfaceOrientation' in scope
24 | public extension View {
25 |
26 | func kvkOnRotate(action: @escaping (UIInterfaceOrientation) -> Void) -> some View {
| `- error: cannot find type 'UIInterfaceOrientation' in scope
27 | modifier(DeviceRotationViewModifier(action: action))
28 | }
/Users/admin/builder/spi-builder-workspace/Sources/KVKCalendar/SwiftUI+Extensions.swift:26:82: error: 'View' is only available in macOS 10.15 or newer
22 | }
23 |
24 | public extension View {
| `- note: add @available attribute to enclosing extension
25 |
26 | func kvkOnRotate(action: @escaping (UIInterfaceOrientation) -> Void) -> some View {
| | `- error: 'View' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing instance method
27 | modifier(DeviceRotationViewModifier(action: action))
28 | }
/Users/admin/builder/spi-builder-workspace/Sources/KVKCalendar/SwiftUI+Extensions.swift:30:47: error: 'View' is only available in macOS 10.15 or newer
22 | }
23 |
24 | public extension View {
| `- note: add @available attribute to enclosing extension
25 |
26 | func kvkOnRotate(action: @escaping (UIInterfaceOrientation) -> Void) -> some View {
:
28 | }
29 |
30 | func kvkHandleNavigationView(_ view: some View) -> some View {
| | `- error: 'View' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing instance method
31 | if #available(iOS 16.0, *) {
32 | return NavigationStack {
/Users/admin/builder/spi-builder-workspace/Sources/KVKCalendar/SwiftUI+Extensions.swift:30:47: error: 'View' is only available in macOS 10.15 or newer
22 | }
23 |
24 | public extension View {
| `- note: add @available attribute to enclosing extension
25 |
26 | func kvkOnRotate(action: @escaping (UIInterfaceOrientation) -> Void) -> some View {
:
28 | }
29 |
30 | func kvkHandleNavigationView(_ view: some View) -> some View {
| | `- error: 'View' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing instance method
31 | if #available(iOS 16.0, *) {
32 | return NavigationStack {
/Users/admin/builder/spi-builder-workspace/Sources/KVKCalendar/SwiftUI+Extensions.swift:30:61: error: 'View' is only available in macOS 10.15 or newer
22 | }
23 |
24 | public extension View {
| `- note: add @available attribute to enclosing extension
25 |
26 | func kvkOnRotate(action: @escaping (UIInterfaceOrientation) -> Void) -> some View {
:
28 | }
29 |
30 | func kvkHandleNavigationView(_ view: some View) -> some View {
| | `- error: 'View' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing instance method
31 | if #available(iOS 16.0, *) {
32 | return NavigationStack {
/Users/admin/builder/spi-builder-workspace/Sources/KVKCalendar/SwiftUI+Extensions.swift:24:18: error: 'View' is only available in macOS 10.15 or newer
22 | }
23 |
24 | public extension View {
| | `- error: 'View' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing extension
25 |
26 | func kvkOnRotate(action: @escaping (UIInterfaceOrientation) -> Void) -> some View {
/Users/admin/builder/spi-builder-workspace/Sources/KVKCalendar/SwiftUI+Extensions.swift:45:33: error: 'Identifiable' is only available in macOS 10.15 or newer
43 | }
44 |
45 | public protocol ItemsMenuProxy: Identifiable, Equatable {
| | `- error: 'Identifiable' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing protocol
46 |
47 | var title: String { get }
/Users/admin/builder/spi-builder-workspace/Sources/KVKCalendar/SwiftUI+Extensions.swift:54:6: error: 'Binding' is only available in macOS 10.15 or newer
50 |
51 | @available(iOS 14.0, *)
52 | public struct ItemsMenu<T: ItemsMenuProxy>: View {
| `- note: add @available attribute to enclosing generic struct
53 |
54 | @Binding var type: T
| `- error: 'Binding' is only available in macOS 10.15 or newer
55 | @State var items: [T]
56 | private var showCheckmark: Bool
/Users/admin/builder/spi-builder-workspace/Sources/KVKCalendar/SwiftUI+Extensions.swift:55:6: error: 'State' is only available in macOS 10.15 or newer
50 |
51 | @available(iOS 14.0, *)
52 | public struct ItemsMenu<T: ItemsMenuProxy>: View {
| `- note: add @available attribute to enclosing generic struct
53 |
54 | @Binding var type: T
55 | @State var items: [T]
| `- error: 'State' is only available in macOS 10.15 or newer
56 | private var showCheckmark: Bool
57 | private var color: Color
/Users/admin/builder/spi-builder-workspace/Sources/KVKCalendar/SwiftUI+Extensions.swift:57:24: error: 'Color' is only available in macOS 10.15 or newer
50 |
51 | @available(iOS 14.0, *)
52 | public struct ItemsMenu<T: ItemsMenuProxy>: View {
| `- note: add @available attribute to enclosing generic struct
53 |
54 | @Binding var type: T
55 | @State var items: [T]
56 | private var showCheckmark: Bool
57 | private var color: Color
| `- error: 'Color' is only available in macOS 10.15 or newer
58 | private var showDropDownIcon: Bool
59 |
/Users/admin/builder/spi-builder-workspace/Sources/KVKCalendar/SwiftUI+Extensions.swift:60:23: error: 'Binding' is only available in macOS 10.15 or newer
50 |
51 | @available(iOS 14.0, *)
52 | public struct ItemsMenu<T: ItemsMenuProxy>: View {
| `- note: add @available attribute to enclosing generic struct
53 |
54 | @Binding var type: T
:
58 | private var showDropDownIcon: Bool
59 |
60 | public init(type: Binding<T>,
| | `- error: 'Binding' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing initializer
61 | items: [T],
62 | showCheckmark: Bool = false,
/Users/admin/builder/spi-builder-workspace/Sources/KVKCalendar/SwiftUI+Extensions.swift:63:24: error: 'Color' is only available in macOS 10.15 or newer
50 |
51 | @available(iOS 14.0, *)
52 | public struct ItemsMenu<T: ItemsMenuProxy>: View {
| `- note: add @available attribute to enclosing generic struct
53 |
54 | @Binding var type: T
:
58 | private var showDropDownIcon: Bool
59 |
60 | public init(type: Binding<T>,
| `- note: add @available attribute to enclosing initializer
61 | items: [T],
62 | showCheckmark: Bool = false,
63 | color: Color = .red,
| `- error: 'Color' is only available in macOS 10.15 or newer
64 | showDropDownIcon: Bool = false) {
65 | _type = type
/Users/admin/builder/spi-builder-workspace/Sources/KVKCalendar/SwiftUI+Extensions.swift:63:33: error: 'red' is only available in macOS 10.15 or newer
50 |
51 | @available(iOS 14.0, *)
52 | public struct ItemsMenu<T: ItemsMenuProxy>: View {
| `- note: add @available attribute to enclosing generic struct
53 |
54 | @Binding var type: T
:
58 | private var showDropDownIcon: Bool
59 |
60 | public init(type: Binding<T>,
| `- note: add @available attribute to enclosing initializer
61 | items: [T],
62 | showCheckmark: Bool = false,
63 | color: Color = .red,
| `- error: 'red' is only available in macOS 10.15 or newer
64 | showDropDownIcon: Bool = false) {
65 | _type = type
/Users/admin/builder/spi-builder-workspace/Sources/KVKCalendar/SwiftUI+Extensions.swift:72:27: error: 'View' is only available in macOS 10.15 or newer
50 |
51 | @available(iOS 14.0, *)
52 | public struct ItemsMenu<T: ItemsMenuProxy>: View {
| `- note: add @available attribute to enclosing generic struct
53 |
54 | @Binding var type: T
:
70 | }
71 |
72 | public var body: some View {
| | `- error: 'View' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing property
73 | Menu {
74 | ForEach(items) { (btn) in
/Users/admin/builder/spi-builder-workspace/Sources/KVKCalendar/SwiftUI+Extensions.swift:106:31: error: 'View' is only available in macOS 10.15 or newer
103 |
104 | @available(iOS 14.0, *)
105 | struct ItemsMenu_Previews: PreviewProvider {
| `- note: add @available attribute to enclosing struct
106 | static var previews: some View {
| | `- error: 'View' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing static property
107 | StatefulPreviewWrapper(CalendarType.day) { ItemsMenu<CalendarType>(type: $0, items: CalendarType.allCases.reversed(), showCheckmark: true, showDropDownIcon: true) }
108 | }
/Users/admin/builder/spi-builder-workspace/Sources/KVKCalendar/SwiftUI+Extensions.swift:112:6: error: 'State' is only available in macOS 10.15 or newer
109 | }
110 |
111 | struct StatefulPreviewWrapper<Value, Content: View>: View {
| `- note: add @available attribute to enclosing generic struct
112 | @State var value: Value
| `- error: 'State' is only available in macOS 10.15 or newer
113 | var content: (Binding<Value>) -> Content
114 |
/Users/admin/builder/spi-builder-workspace/Sources/KVKCalendar/SwiftUI+Extensions.swift:113:19: error: 'Binding' is only available in macOS 10.15 or newer
109 | }
110 |
111 | struct StatefulPreviewWrapper<Value, Content: View>: View {
| `- note: add @available attribute to enclosing generic struct
112 | @State var value: Value
113 | var content: (Binding<Value>) -> Content
| `- error: 'Binding' is only available in macOS 10.15 or newer
114 |
115 | var body: some View {
/Users/admin/builder/spi-builder-workspace/Sources/KVKCalendar/SwiftUI+Extensions.swift:115:20: error: 'View' is only available in macOS 10.15 or newer
109 | }
110 |
111 | struct StatefulPreviewWrapper<Value, Content: View>: View {
| `- note: add @available attribute to enclosing generic struct
112 | @State var value: Value
113 | var content: (Binding<Value>) -> Content
114 |
115 | var body: some View {
| | `- error: 'View' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing property
116 | content($value)
117 | }
/Users/admin/builder/spi-builder-workspace/Sources/KVKCalendar/SwiftUI+Extensions.swift:120:30: error: 'Binding' is only available in macOS 10.15 or newer
109 | }
110 |
111 | struct StatefulPreviewWrapper<Value, Content: View>: View {
| `- note: add @available attribute to enclosing generic struct
112 | @State var value: Value
113 | var content: (Binding<Value>) -> Content
:
117 | }
118 |
119 | init(_ value: Value,
| `- note: add @available attribute to enclosing initializer
120 | content: @escaping (Binding<Value>) -> Content) {
| `- error: 'Binding' is only available in macOS 10.15 or newer
121 | self._value = State(wrappedValue: value)
122 | self.content = content
/Users/admin/builder/spi-builder-workspace/Sources/KVKCalendar/SwiftUI+Extensions.swift:111:47: error: 'View' is only available in macOS 10.15 or newer
109 | }
110 |
111 | struct StatefulPreviewWrapper<Value, Content: View>: View {
| | `- error: 'View' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing generic struct
112 | @State var value: Value
113 | var content: (Binding<Value>) -> Content
/Users/admin/builder/spi-builder-workspace/Sources/KVKCalendar/SwiftUI+Extensions.swift:17:66: error: cannot find 'UIDevice' in scope
15 | content
16 | .onAppear()
17 | .onReceive(NotificationCenter.default.publisher(for: UIDevice.orientationDidChangeNotification)) { (_) in
| `- error: cannot find 'UIDevice' in scope
18 | action(UIApplication.shared.orientation)
19 | }
/Users/admin/builder/spi-builder-workspace/Sources/KVKCalendar/SwiftUI+Extensions.swift:18:24: error: cannot find 'UIApplication' in scope
16 | .onAppear()
17 | .onReceive(NotificationCenter.default.publisher(for: UIDevice.orientationDidChangeNotification)) { (_) in
18 | action(UIApplication.shared.orientation)
| `- error: cannot find 'UIApplication' in scope
19 | }
20 | }
/Users/admin/builder/spi-builder-workspace/Sources/KVKCalendar/SwiftUI+Extensions.swift:32:20: error: 'NavigationStack' is only available in macOS 13.0 or newer
22 | }
23 |
24 | public extension View {
| `- note: add @available attribute to enclosing extension
25 |
26 | func kvkOnRotate(action: @escaping (UIInterfaceOrientation) -> Void) -> some View {
:
28 | }
29 |
30 | func kvkHandleNavigationView(_ view: some View) -> some View {
| `- note: add @available attribute to enclosing instance method
31 | if #available(iOS 16.0, *) {
32 | return NavigationStack {
| |- error: 'NavigationStack' is only available in macOS 13.0 or newer
| `- note: add 'if #available' version check
33 | view
34 | }
/Users/admin/builder/spi-builder-workspace/Sources/KVKCalendar/SwiftUI+Extensions.swift:39:34: error: 'StackNavigationViewStyle' is unavailable in macOS
37 | view
38 | }
39 | .navigationViewStyle(StackNavigationViewStyle())
| `- error: 'StackNavigationViewStyle' is unavailable in macOS
40 | }
41 | }
SwiftUI.StackNavigationViewStyle:6:15: note: 'StackNavigationViewStyle' has been explicitly marked unavailable here
4 | @available(watchOS, introduced: 7.0, deprecated: 100000.0, message: "replace stack-styled NavigationView with NavigationStack")
5 | @available(visionOS, introduced: 1.0, deprecated: 100000.0, message: "replace stack-styled NavigationView with NavigationStack")
6 | public struct StackNavigationViewStyle : NavigationViewStyle {
| `- note: 'StackNavigationViewStyle' has been explicitly marked unavailable here
7 | public init()
8 | public func _body(configuration: _NavigationViewStyleConfiguration) -> some View
/Users/admin/builder/spi-builder-workspace/Sources/KVKCalendar/SwiftUI+Extensions.swift:66:18: error: 'State' is only available in macOS 10.15 or newer
50 |
51 | @available(iOS 14.0, *)
52 | public struct ItemsMenu<T: ItemsMenuProxy>: View {
| `- note: add @available attribute to enclosing generic struct
53 |
54 | @Binding var type: T
:
58 | private var showDropDownIcon: Bool
59 |
60 | public init(type: Binding<T>,
| `- note: add @available attribute to enclosing initializer
61 | items: [T],
62 | showCheckmark: Bool = false,
:
64 | showDropDownIcon: Bool = false) {
65 | _type = type
66 | _items = State(initialValue: items)
| |- error: 'State' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
67 | self.showCheckmark = showCheckmark
68 | self.color = color
/Users/admin/builder/spi-builder-workspace/Sources/KVKCalendar/SwiftUI+Extensions.swift:73:9: warning: conformance of 'ForEach<Data, ID, Content>' to 'View' is only available in macOS 10.15 or newer; this is an error in the Swift 6 language mode
50 |
51 | @available(iOS 14.0, *)
52 | public struct ItemsMenu<T: ItemsMenuProxy>: View {
| `- note: add @available attribute to enclosing generic struct
53 |
54 | @Binding var type: T
:
70 | }
71 |
72 | public var body: some View {
| `- note: add @available attribute to enclosing property
73 | Menu {
| |- warning: conformance of 'ForEach<Data, ID, Content>' to 'View' is only available in macOS 10.15 or newer; this is an error in the Swift 6 language mode
| `- note: add 'if #available' version check
74 | ForEach(items) { (btn) in
75 | Button {
/Users/admin/builder/spi-builder-workspace/Sources/KVKCalendar/SwiftUI+Extensions.swift:73:9: error: 'Menu' is only available in macOS 11.0 or newer
50 |
51 | @available(iOS 14.0, *)
52 | public struct ItemsMenu<T: ItemsMenuProxy>: View {
| `- note: add @available attribute to enclosing generic struct
53 |
54 | @Binding var type: T
:
70 | }
71 |
72 | public var body: some View {
| `- note: add @available attribute to enclosing property
73 | Menu {
| |- error: 'Menu' is only available in macOS 11.0 or newer
| `- note: add 'if #available' version check
74 | ForEach(items) { (btn) in
75 | Button {
/Users/admin/builder/spi-builder-workspace/Sources/KVKCalendar/SwiftUI+Extensions.swift:73:9: error: 'init(content:label:)' is only available in macOS 11.0 or newer
50 |
51 | @available(iOS 14.0, *)
52 | public struct ItemsMenu<T: ItemsMenuProxy>: View {
| `- note: add @available attribute to enclosing generic struct
53 |
54 | @Binding var type: T
:
70 | }
71 |
72 | public var body: some View {
| `- note: add @available attribute to enclosing property
73 | Menu {
| |- error: 'init(content:label:)' is only available in macOS 11.0 or newer
| `- note: add 'if #available' version check
74 | ForEach(items) { (btn) in
75 | Button {
/Users/admin/builder/spi-builder-workspace/Sources/KVKCalendar/SwiftUI+Extensions.swift:74:13: warning: conformance of 'ForEach<Data, ID, Content>' to 'View' is only available in macOS 10.15 or newer; this is an error in the Swift 6 language mode
50 |
51 | @available(iOS 14.0, *)
52 | public struct ItemsMenu<T: ItemsMenuProxy>: View {
| `- note: add @available attribute to enclosing generic struct
53 |
54 | @Binding var type: T
:
70 | }
71 |
72 | public var body: some View {
| `- note: add @available attribute to enclosing property
73 | Menu {
74 | ForEach(items) { (btn) in
| |- warning: conformance of 'ForEach<Data, ID, Content>' to 'View' is only available in macOS 10.15 or newer; this is an error in the Swift 6 language mode
| `- note: add 'if #available' version check
75 | Button {
76 | type = btn
/Users/admin/builder/spi-builder-workspace/Sources/KVKCalendar/SwiftUI+Extensions.swift:74:13: error: 'ForEach' is only available in macOS 10.15 or newer
50 |
51 | @available(iOS 14.0, *)
52 | public struct ItemsMenu<T: ItemsMenuProxy>: View {
| `- note: add @available attribute to enclosing generic struct
53 |
54 | @Binding var type: T
:
70 | }
71 |
72 | public var body: some View {
| `- note: add @available attribute to enclosing property
73 | Menu {
74 | ForEach(items) { (btn) in
| |- error: 'ForEach' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
75 | Button {
76 | type = btn
/Users/admin/builder/spi-builder-workspace/Sources/KVKCalendar/SwiftUI+Extensions.swift:74:13: error: 'init(_:content:)' is only available in macOS 10.15 or newer
50 |
51 | @available(iOS 14.0, *)
52 | public struct ItemsMenu<T: ItemsMenuProxy>: View {
| `- note: add @available attribute to enclosing generic struct
53 |
54 | @Binding var type: T
:
70 | }
71 |
72 | public var body: some View {
| `- note: add @available attribute to enclosing property
73 | Menu {
74 | ForEach(items) { (btn) in
| |- error: 'init(_:content:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
75 | Button {
76 | type = btn
/Users/admin/builder/spi-builder-workspace/Sources/KVKCalendar/SwiftUI+Extensions.swift:75:17: error: 'Button' is only available in macOS 10.15 or newer
50 |
51 | @available(iOS 14.0, *)
52 | public struct ItemsMenu<T: ItemsMenuProxy>: View {
| `- note: add @available attribute to enclosing generic struct
53 |
54 | @Binding var type: T
:
70 | }
71 |
72 | public var body: some View {
| `- note: add @available attribute to enclosing property
73 | Menu {
74 | ForEach(items) { (btn) in
75 | Button {
| |- error: 'Button' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
76 | type = btn
77 | } label: {
/Users/admin/builder/spi-builder-workspace/Sources/KVKCalendar/SwiftUI+Extensions.swift:76:21: error: setter for 'type' is only available in macOS 10.15 or newer
50 |
51 | @available(iOS 14.0, *)
52 | public struct ItemsMenu<T: ItemsMenuProxy>: View {
| `- note: add @available attribute to enclosing generic struct
53 |
54 | @Binding var type: T
:
70 | }
71 |
72 | public var body: some View {
| `- note: add @available attribute to enclosing property
73 | Menu {
74 | ForEach(items) { (btn) in
75 | Button {
76 | type = btn
| |- error: setter for 'type' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
77 | } label: {
78 | HStack {
/Users/admin/builder/spi-builder-workspace/Sources/KVKCalendar/SwiftUI+Extensions.swift:78:21: error: 'HStack' is only available in macOS 10.15 or newer
50 |
51 | @available(iOS 14.0, *)
52 | public struct ItemsMenu<T: ItemsMenuProxy>: View {
| `- note: add @available attribute to enclosing generic struct
53 |
54 | @Binding var type: T
:
70 | }
71 |
72 | public var body: some View {
| `- note: add @available attribute to enclosing property
73 | Menu {
74 | ForEach(items) { (btn) in
:
76 | type = btn
77 | } label: {
78 | HStack {
| |- error: 'HStack' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
79 | if type == btn && showCheckmark {
80 | Image(systemName: "checkmark")
/Users/admin/builder/spi-builder-workspace/Sources/KVKCalendar/SwiftUI+Extensions.swift:80:29: warning: conformance of 'Image' to 'View' is only available in macOS 10.15 or newer; this is an error in the Swift 6 language mode
50 |
51 | @available(iOS 14.0, *)
52 | public struct ItemsMenu<T: ItemsMenuProxy>: View {
| `- note: add @available attribute to enclosing generic struct
53 |
54 | @Binding var type: T
:
70 | }
71 |
72 | public var body: some View {
| `- note: add @available attribute to enclosing property
73 | Menu {
74 | ForEach(items) { (btn) in
:
78 | HStack {
79 | if type == btn && showCheckmark {
80 | Image(systemName: "checkmark")
| |- warning: conformance of 'Image' to 'View' is only available in macOS 10.15 or newer; this is an error in the Swift 6 language mode
| `- note: add 'if #available' version check
81 | }
82 | Text(btn.title)
/Users/admin/builder/spi-builder-workspace/Sources/KVKCalendar/SwiftUI+Extensions.swift:80:29: error: 'Image' is only available in macOS 10.15 or newer
50 |
51 | @available(iOS 14.0, *)
52 | public struct ItemsMenu<T: ItemsMenuProxy>: View {
| `- note: add @available attribute to enclosing generic struct
53 |
54 | @Binding var type: T
:
70 | }
71 |
72 | public var body: some View {
| `- note: add @available attribute to enclosing property
73 | Menu {
74 | ForEach(items) { (btn) in
:
78 | HStack {
79 | if type == btn && showCheckmark {
80 | Image(systemName: "checkmark")
| |- error: 'Image' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
81 | }
82 | Text(btn.title)
/Users/admin/builder/spi-builder-workspace/Sources/KVKCalendar/SwiftUI+Extensions.swift:80:29: error: 'init(systemName:)' is only available in macOS 11.0 or newer
50 |
51 | @available(iOS 14.0, *)
52 | public struct ItemsMenu<T: ItemsMenuProxy>: View {
| `- note: add @available attribute to enclosing generic struct
53 |
54 | @Binding var type: T
:
70 | }
71 |
72 | public var body: some View {
| `- note: add @available attribute to enclosing property
73 | Menu {
74 | ForEach(items) { (btn) in
:
78 | HStack {
79 | if type == btn && showCheckmark {
80 | Image(systemName: "checkmark")
| |- error: 'init(systemName:)' is only available in macOS 11.0 or newer
| `- note: add 'if #available' version check
81 | }
82 | Text(btn.title)
/Users/admin/builder/spi-builder-workspace/Sources/KVKCalendar/SwiftUI+Extensions.swift:79:57: error: 'buildIf' is only available in macOS 10.15 or newer
50 |
51 | @available(iOS 14.0, *)
52 | public struct ItemsMenu<T: ItemsMenuProxy>: View {
| `- note: add @available attribute to enclosing generic struct
53 |
54 | @Binding var type: T
:
70 | }
71 |
72 | public var body: some View {
| `- note: add @available attribute to enclosing property
73 | Menu {
74 | ForEach(items) { (btn) in
:
77 | } label: {
78 | HStack {
79 | if type == btn && showCheckmark {
| |- error: 'buildIf' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
80 | Image(systemName: "checkmark")
81 | }
/Users/admin/builder/spi-builder-workspace/Sources/KVKCalendar/SwiftUI+Extensions.swift:79:57: warning: conformance of 'Image' to 'View' is only available in macOS 10.15 or newer; this is an error in the Swift 6 language mode
50 |
51 | @available(iOS 14.0, *)
52 | public struct ItemsMenu<T: ItemsMenuProxy>: View {
| `- note: add @available attribute to enclosing generic struct
53 |
54 | @Binding var type: T
:
70 | }
71 |
72 | public var body: some View {
| `- note: add @available attribute to enclosing property
73 | Menu {
74 | ForEach(items) { (btn) in
:
77 | } label: {
78 | HStack {
79 | if type == btn && showCheckmark {
| |- warning: conformance of 'Image' to 'View' is only available in macOS 10.15 or newer; this is an error in the Swift 6 language mode
| `- note: add 'if #available' version check
80 | Image(systemName: "checkmark")
81 | }
/Users/admin/builder/spi-builder-workspace/Sources/KVKCalendar/SwiftUI+Extensions.swift:81:25: error: 'buildIf' is only available in macOS 10.15 or newer
50 |
51 | @available(iOS 14.0, *)
52 | public struct ItemsMenu<T: ItemsMenuProxy>: View {
| `- note: add @available attribute to enclosing generic struct
53 |
54 | @Binding var type: T
:
70 | }
71 |
72 | public var body: some View {
| `- note: add @available attribute to enclosing property
73 | Menu {
74 | ForEach(items) { (btn) in
:
79 | if type == btn && showCheckmark {
80 | Image(systemName: "checkmark")
81 | }
| |- error: 'buildIf' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
82 | Text(btn.title)
83 | }
/Users/admin/builder/spi-builder-workspace/Sources/KVKCalendar/SwiftUI+Extensions.swift:82:25: 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
50 |
51 | @available(iOS 14.0, *)
52 | public struct ItemsMenu<T: ItemsMenuProxy>: View {
| `- note: add @available attribute to enclosing generic struct
53 |
54 | @Binding var type: T
:
70 | }
71 |
72 | public var body: some View {
| `- note: add @available attribute to enclosing property
73 | Menu {
74 | ForEach(items) { (btn) in
:
80 | Image(systemName: "checkmark")
81 | }
82 | Text(btn.title)
| |- 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
83 | }
84 | }
/Users/admin/builder/spi-builder-workspace/Sources/KVKCalendar/SwiftUI+Extensions.swift:82:25: error: 'Text' is only available in macOS 10.15 or newer
50 |
51 | @available(iOS 14.0, *)
52 | public struct ItemsMenu<T: ItemsMenuProxy>: View {
| `- note: add @available attribute to enclosing generic struct
53 |
54 | @Binding var type: T
:
70 | }
71 |
72 | public var body: some View {
| `- note: add @available attribute to enclosing property
73 | Menu {
74 | ForEach(items) { (btn) in
:
80 | Image(systemName: "checkmark")
81 | }
82 | Text(btn.title)
| |- error: 'Text' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
83 | }
84 | }
/Users/admin/builder/spi-builder-workspace/Sources/KVKCalendar/SwiftUI+Extensions.swift:78:28: warning: conformance of 'Optional<Wrapped>' to 'View' is only available in macOS 10.15 or newer; this is an error in the Swift 6 language mode
50 |
51 | @available(iOS 14.0, *)
52 | public struct ItemsMenu<T: ItemsMenuProxy>: View {
| `- note: add @available attribute to enclosing generic struct
53 |
54 | @Binding var type: T
:
70 | }
71 |
72 | public var body: some View {
| `- note: add @available attribute to enclosing property
73 | Menu {
74 | ForEach(items) { (btn) in
:
76 | type = btn
77 | } label: {
78 | HStack {
| |- warning: conformance of 'Optional<Wrapped>' to 'View' is only available in macOS 10.15 or newer; this is an error in the Swift 6 language mode
| `- note: add 'if #available' version check
79 | if type == btn && showCheckmark {
80 | Image(systemName: "checkmark")
/Users/admin/builder/spi-builder-workspace/Sources/KVKCalendar/SwiftUI+Extensions.swift:78:28: 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
50 |
51 | @available(iOS 14.0, *)
52 | public struct ItemsMenu<T: ItemsMenuProxy>: View {
| `- note: add @available attribute to enclosing generic struct
53 |
54 | @Binding var type: T
:
70 | }
71 |
72 | public var body: some View {
| `- note: add @available attribute to enclosing property
73 | Menu {
74 | ForEach(items) { (btn) in
:
76 | type = btn
77 | } label: {
78 | HStack {
| |- warning: conformance of 'Text' to 'View' is only available in macOS 10.15 or newer; this is an error in the Swift 6 language mode
| `- note: add 'if #available' version check
79 | if type == btn && showCheckmark {
80 | Image(systemName: "checkmark")
/Users/admin/builder/spi-builder-workspace/Sources/KVKCalendar/SwiftUI+Extensions.swift:73:14: warning: conformance of 'ForEach<Data, ID, Content>' to 'View' is only available in macOS 10.15 or newer; this is an error in the Swift 6 language mode
50 |
51 | @available(iOS 14.0, *)
52 | public struct ItemsMenu<T: ItemsMenuProxy>: View {
| `- note: add @available attribute to enclosing generic struct
53 |
54 | @Binding var type: T
:
70 | }
71 |
72 | public var body: some View {
| `- note: add @available attribute to enclosing property
73 | Menu {
| |- warning: conformance of 'ForEach<Data, ID, Content>' to 'View' is only available in macOS 10.15 or newer; this is an error in the Swift 6 language mode
| `- note: add 'if #available' version check
74 | ForEach(items) { (btn) in
75 | Button {
/Users/admin/builder/spi-builder-workspace/Sources/KVKCalendar/SwiftUI+Extensions.swift:87:13: error: 'HStack' is only available in macOS 10.15 or newer
50 |
51 | @available(iOS 14.0, *)
52 | public struct ItemsMenu<T: ItemsMenuProxy>: View {
| `- note: add @available attribute to enclosing generic struct
53 |
54 | @Binding var type: T
:
70 | }
71 |
72 | public var body: some View {
| `- note: add @available attribute to enclosing property
73 | Menu {
74 | ForEach(items) { (btn) in
:
85 | }
86 | } label: {
87 | HStack {
| |- error: 'HStack' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
88 | Text(type.title)
89 | .foregroundColor(color)
/Users/admin/builder/spi-builder-workspace/Sources/KVKCalendar/SwiftUI+Extensions.swift:88: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
50 |
51 | @available(iOS 14.0, *)
52 | public struct ItemsMenu<T: ItemsMenuProxy>: View {
| `- note: add @available attribute to enclosing generic struct
53 |
54 | @Binding var type: T
:
70 | }
71 |
72 | public var body: some View {
| `- note: add @available attribute to enclosing property
73 | Menu {
74 | ForEach(items) { (btn) in
:
86 | } label: {
87 | HStack {
88 | Text(type.title)
| |- 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
89 | .foregroundColor(color)
90 | .font(.headline)
/Users/admin/builder/spi-builder-workspace/Sources/KVKCalendar/SwiftUI+Extensions.swift:88:17: error: 'Text' is only available in macOS 10.15 or newer
50 |
51 | @available(iOS 14.0, *)
52 | public struct ItemsMenu<T: ItemsMenuProxy>: View {
| `- note: add @available attribute to enclosing generic struct
53 |
54 | @Binding var type: T
:
70 | }
71 |
72 | public var body: some View {
| `- note: add @available attribute to enclosing property
73 | Menu {
74 | ForEach(items) { (btn) in
:
86 | } label: {
87 | HStack {
88 | Text(type.title)
| |- error: 'Text' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
89 | .foregroundColor(color)
90 | .font(.headline)
/Users/admin/builder/spi-builder-workspace/Sources/KVKCalendar/SwiftUI+Extensions.swift:89:22: error: 'foregroundColor' is only available in macOS 10.15 or newer
50 |
51 | @available(iOS 14.0, *)
52 | public struct ItemsMenu<T: ItemsMenuProxy>: View {
| `- note: add @available attribute to enclosing generic struct
53 |
54 | @Binding var type: T
:
70 | }
71 |
72 | public var body: some View {
| `- note: add @available attribute to enclosing property
73 | Menu {
74 | ForEach(items) { (btn) in
:
87 | HStack {
88 | Text(type.title)
89 | .foregroundColor(color)
| |- error: 'foregroundColor' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
90 | .font(.headline)
91 | if showDropDownIcon {
/Users/admin/builder/spi-builder-workspace/Sources/KVKCalendar/SwiftUI+Extensions.swift:90:22: error: 'font' is only available in macOS 10.15 or newer
50 |
51 | @available(iOS 14.0, *)
52 | public struct ItemsMenu<T: ItemsMenuProxy>: View {
| `- note: add @available attribute to enclosing generic struct
53 |
54 | @Binding var type: T
:
70 | }
71 |
72 | public var body: some View {
| `- note: add @available attribute to enclosing property
73 | Menu {
74 | ForEach(items) { (btn) in
:
88 | Text(type.title)
89 | .foregroundColor(color)
90 | .font(.headline)
| |- error: 'font' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
91 | if showDropDownIcon {
92 | Image(systemName: "chevron.down")
/Users/admin/builder/spi-builder-workspace/Sources/KVKCalendar/SwiftUI+Extensions.swift:90:28: error: 'headline' is only available in macOS 10.15 or newer
50 |
51 | @available(iOS 14.0, *)
52 | public struct ItemsMenu<T: ItemsMenuProxy>: View {
| `- note: add @available attribute to enclosing generic struct
53 |
54 | @Binding var type: T
:
70 | }
71 |
72 | public var body: some View {
| `- note: add @available attribute to enclosing property
73 | Menu {
74 | ForEach(items) { (btn) in
:
88 | Text(type.title)
89 | .foregroundColor(color)
90 | .font(.headline)
| |- error: 'headline' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
91 | if showDropDownIcon {
92 | Image(systemName: "chevron.down")
/Users/admin/builder/spi-builder-workspace/Sources/KVKCalendar/SwiftUI+Extensions.swift:92:21: error: 'Image' is only available in macOS 10.15 or newer
50 |
51 | @available(iOS 14.0, *)
52 | public struct ItemsMenu<T: ItemsMenuProxy>: View {
| `- note: add @available attribute to enclosing generic struct
53 |
54 | @Binding var type: T
:
70 | }
71 |
72 | public var body: some View {
| `- note: add @available attribute to enclosing property
73 | Menu {
74 | ForEach(items) { (btn) in
:
90 | .font(.headline)
91 | if showDropDownIcon {
92 | Image(systemName: "chevron.down")
| |- error: 'Image' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
93 | .resizable()
94 | .frame(width: 12, height: 7)
/Users/admin/builder/spi-builder-workspace/Sources/KVKCalendar/SwiftUI+Extensions.swift:92:21: error: 'init(systemName:)' is only available in macOS 11.0 or newer
50 |
51 | @available(iOS 14.0, *)
52 | public struct ItemsMenu<T: ItemsMenuProxy>: View {
| `- note: add @available attribute to enclosing generic struct
53 |
54 | @Binding var type: T
:
70 | }
71 |
72 | public var body: some View {
| `- note: add @available attribute to enclosing property
73 | Menu {
74 | ForEach(items) { (btn) in
:
90 | .font(.headline)
91 | if showDropDownIcon {
92 | Image(systemName: "chevron.down")
| |- error: 'init(systemName:)' is only available in macOS 11.0 or newer
| `- note: add 'if #available' version check
93 | .resizable()
94 | .frame(width: 12, height: 7)
/Users/admin/builder/spi-builder-workspace/Sources/KVKCalendar/SwiftUI+Extensions.swift:93:26: error: 'resizable(capInsets:resizingMode:)' is only available in macOS 10.15 or newer
50 |
51 | @available(iOS 14.0, *)
52 | public struct ItemsMenu<T: ItemsMenuProxy>: View {
| `- note: add @available attribute to enclosing generic struct
53 |
54 | @Binding var type: T
:
70 | }
71 |
72 | public var body: some View {
| `- note: add @available attribute to enclosing property
73 | Menu {
74 | ForEach(items) { (btn) in
:
91 | if showDropDownIcon {
92 | Image(systemName: "chevron.down")
93 | .resizable()
| |- error: 'resizable(capInsets:resizingMode:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
94 | .frame(width: 12, height: 7)
95 | .foregroundColor(color)
/Users/admin/builder/spi-builder-workspace/Sources/KVKCalendar/SwiftUI+Extensions.swift:94:26: error: 'frame(width:height:alignment:)' is only available in macOS 10.15 or newer
50 |
51 | @available(iOS 14.0, *)
52 | public struct ItemsMenu<T: ItemsMenuProxy>: View {
| `- note: add @available attribute to enclosing generic struct
53 |
54 | @Binding var type: T
:
70 | }
71 |
72 | public var body: some View {
| `- note: add @available attribute to enclosing property
73 | Menu {
74 | ForEach(items) { (btn) in
:
92 | Image(systemName: "chevron.down")
93 | .resizable()
94 | .frame(width: 12, height: 7)
| |- error: 'frame(width:height:alignment:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
95 | .foregroundColor(color)
96 | .padding(EdgeInsets(top: 5, leading: 0, bottom: 0, trailing: 0))
/Users/admin/builder/spi-builder-workspace/Sources/KVKCalendar/SwiftUI+Extensions.swift:95:26: error: 'foregroundColor' is only available in macOS 10.15 or newer
50 |
51 | @available(iOS 14.0, *)
52 | public struct ItemsMenu<T: ItemsMenuProxy>: View {
| `- note: add @available attribute to enclosing generic struct
53 |
54 | @Binding var type: T
:
70 | }
71 |
72 | public var body: some View {
| `- note: add @available attribute to enclosing property
73 | Menu {
74 | ForEach(items) { (btn) in
:
93 | .resizable()
94 | .frame(width: 12, height: 7)
95 | .foregroundColor(color)
| |- error: 'foregroundColor' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
96 | .padding(EdgeInsets(top: 5, leading: 0, bottom: 0, trailing: 0))
97 | }
/Users/admin/builder/spi-builder-workspace/Sources/KVKCalendar/SwiftUI+Extensions.swift:96:26: error: 'padding' is only available in macOS 10.15 or newer
50 |
51 | @available(iOS 14.0, *)
52 | public struct ItemsMenu<T: ItemsMenuProxy>: View {
| `- note: add @available attribute to enclosing generic struct
53 |
54 | @Binding var type: T
:
70 | }
71 |
72 | public var body: some View {
| `- note: add @available attribute to enclosing property
73 | Menu {
74 | ForEach(items) { (btn) in
:
94 | .frame(width: 12, height: 7)
95 | .foregroundColor(color)
96 | .padding(EdgeInsets(top: 5, leading: 0, bottom: 0, trailing: 0))
| |- error: 'padding' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
97 | }
98 | }
/Users/admin/builder/spi-builder-workspace/Sources/KVKCalendar/SwiftUI+Extensions.swift:96:34: error: 'EdgeInsets' is only available in macOS 10.15 or newer
50 |
51 | @available(iOS 14.0, *)
52 | public struct ItemsMenu<T: ItemsMenuProxy>: View {
| `- note: add @available attribute to enclosing generic struct
53 |
54 | @Binding var type: T
:
70 | }
71 |
72 | public var body: some View {
| `- note: add @available attribute to enclosing property
73 | Menu {
74 | ForEach(items) { (btn) in
:
94 | .frame(width: 12, height: 7)
95 | .foregroundColor(color)
96 | .padding(EdgeInsets(top: 5, leading: 0, bottom: 0, trailing: 0))
| |- error: 'EdgeInsets' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
97 | }
98 | }
/Users/admin/builder/spi-builder-workspace/Sources/KVKCalendar/SwiftUI+Extensions.swift:91:37: error: 'buildIf' is only available in macOS 10.15 or newer
50 |
51 | @available(iOS 14.0, *)
52 | public struct ItemsMenu<T: ItemsMenuProxy>: View {
| `- note: add @available attribute to enclosing generic struct
53 |
54 | @Binding var type: T
:
70 | }
71 |
72 | public var body: some View {
| `- note: add @available attribute to enclosing property
73 | Menu {
74 | ForEach(items) { (btn) in
:
89 | .foregroundColor(color)
90 | .font(.headline)
91 | if showDropDownIcon {
| |- error: 'buildIf' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
92 | Image(systemName: "chevron.down")
93 | .resizable()
/Users/admin/builder/spi-builder-workspace/Sources/KVKCalendar/SwiftUI+Extensions.swift:97:17: error: 'buildIf' is only available in macOS 10.15 or newer
50 |
51 | @available(iOS 14.0, *)
52 | public struct ItemsMenu<T: ItemsMenuProxy>: View {
| `- note: add @available attribute to enclosing generic struct
53 |
54 | @Binding var type: T
:
70 | }
71 |
72 | public var body: some View {
| `- note: add @available attribute to enclosing property
73 | Menu {
74 | ForEach(items) { (btn) in
:
95 | .foregroundColor(color)
96 | .padding(EdgeInsets(top: 5, leading: 0, bottom: 0, trailing: 0))
97 | }
| |- error: 'buildIf' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
98 | }
99 | }
/Users/admin/builder/spi-builder-workspace/Sources/KVKCalendar/SwiftUI+Extensions.swift:87: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
50 |
51 | @available(iOS 14.0, *)
52 | public struct ItemsMenu<T: ItemsMenuProxy>: View {
| `- note: add @available attribute to enclosing generic struct
53 |
54 | @Binding var type: T
:
70 | }
71 |
72 | public var body: some View {
| `- note: add @available attribute to enclosing property
73 | Menu {
74 | ForEach(items) { (btn) in
:
85 | }
86 | } label: {
87 | HStack {
| |- warning: conformance of 'Text' to 'View' is only available in macOS 10.15 or newer; this is an error in the Swift 6 language mode
| `- note: add 'if #available' version check
88 | Text(type.title)
89 | .foregroundColor(color)
/Users/admin/builder/spi-builder-workspace/Sources/KVKCalendar/SwiftUI+Extensions.swift:87:20: warning: conformance of 'Optional<Wrapped>' to 'View' is only available in macOS 10.15 or newer; this is an error in the Swift 6 language mode
50 |
51 | @available(iOS 14.0, *)
52 | public struct ItemsMenu<T: ItemsMenuProxy>: View {
| `- note: add @available attribute to enclosing generic struct
53 |
54 | @Binding var type: T
:
70 | }
71 |
72 | public var body: some View {
| `- note: add @available attribute to enclosing property
73 | Menu {
74 | ForEach(items) { (btn) in
:
85 | }
86 | } label: {
87 | HStack {
| |- warning: conformance of 'Optional<Wrapped>' to 'View' is only available in macOS 10.15 or newer; this is an error in the Swift 6 language mode
| `- note: add 'if #available' version check
88 | Text(type.title)
89 | .foregroundColor(color)
/Users/admin/builder/spi-builder-workspace/Sources/KVKCalendar/SwiftUI+Extensions.swift:72:32: warning: conformance of 'ForEach<Data, ID, Content>' to 'View' is only available in macOS 10.15 or newer; this is an error in the Swift 6 language mode
50 |
51 | @available(iOS 14.0, *)
52 | public struct ItemsMenu<T: ItemsMenuProxy>: View {
| `- note: add @available attribute to enclosing generic struct
53 |
54 | @Binding var type: T
:
70 | }
71 |
72 | public var body: some View {
| | |- warning: conformance of 'ForEach<Data, ID, Content>' to 'View' is only available in macOS 10.15 or newer; this is an error in the Swift 6 language mode
| | `- note: add 'if #available' version check
| `- note: add @available attribute to enclosing property
73 | Menu {
74 | ForEach(items) { (btn) in
/Users/admin/builder/spi-builder-workspace/Sources/KVKCalendar/SwiftUI+Extensions.swift:72:32: warning: conformance of 'ForEach<Data, ID, Content>' to 'View' is only available in macOS 10.15 or newer; this is an error in the Swift 6 language mode
50 |
51 | @available(iOS 14.0, *)
52 | public struct ItemsMenu<T: ItemsMenuProxy>: View {
| `- note: add @available attribute to enclosing generic struct
53 |
54 | @Binding var type: T
:
70 | }
71 |
72 | public var body: some View {
| | |- warning: conformance of 'ForEach<Data, ID, Content>' to 'View' is only available in macOS 10.15 or newer; this is an error in the Swift 6 language mode
| | `- note: add 'if #available' version check
| `- note: add @available attribute to enclosing property
73 | Menu {
74 | ForEach(items) { (btn) in
/Users/admin/builder/spi-builder-workspace/Sources/KVKCalendar/SwiftUI+Extensions.swift:107:32: error: cannot find 'CalendarType' in scope
105 | struct ItemsMenu_Previews: PreviewProvider {
106 | static var previews: some View {
107 | StatefulPreviewWrapper(CalendarType.day) { ItemsMenu<CalendarType>(type: $0, items: CalendarType.allCases.reversed(), showCheckmark: true, showDropDownIcon: true) }
| `- error: cannot find 'CalendarType' in scope
108 | }
109 | }
/Users/admin/builder/spi-builder-workspace/Sources/KVKCalendar/SwiftUI+Extensions.swift:107:93: error: cannot find 'CalendarType' in scope
105 | struct ItemsMenu_Previews: PreviewProvider {
106 | static var previews: some View {
107 | StatefulPreviewWrapper(CalendarType.day) { ItemsMenu<CalendarType>(type: $0, items: CalendarType.allCases.reversed(), showCheckmark: true, showDropDownIcon: true) }
| `- error: cannot find 'CalendarType' in scope
108 | }
109 | }
/Users/admin/builder/spi-builder-workspace/Sources/KVKCalendar/SwiftUI+Extensions.swift:107:62: error: cannot find type 'CalendarType' in scope
105 | struct ItemsMenu_Previews: PreviewProvider {
106 | static var previews: some View {
107 | StatefulPreviewWrapper(CalendarType.day) { ItemsMenu<CalendarType>(type: $0, items: CalendarType.allCases.reversed(), showCheckmark: true, showDropDownIcon: true) }
| `- error: cannot find type 'CalendarType' in scope
108 | }
109 | }
/Users/admin/builder/spi-builder-workspace/Sources/KVKCalendar/SwiftUI+Extensions.swift:121:23: error: 'State' is only available in macOS 10.15 or newer
109 | }
110 |
111 | struct StatefulPreviewWrapper<Value, Content: View>: View {
| `- note: add @available attribute to enclosing generic struct
112 | @State var value: Value
113 | var content: (Binding<Value>) -> Content
:
117 | }
118 |
119 | init(_ value: Value,
| `- note: add @available attribute to enclosing initializer
120 | content: @escaping (Binding<Value>) -> Content) {
121 | self._value = State(wrappedValue: value)
| |- error: 'State' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
122 | self.content = content
123 | }
BUILD FAILURE 6.1 macosSpm