Build Information
Failed to build KVKCalendar, reference 0.6.30 (330086), with Swift 6.3 for macOS (SPM) on 17 Apr 2026 10:53:16 UTC.
Build Command
env DEVELOPER_DIR=/Applications/Xcode-26.4.0.app xcrun swift build --arch arm64Build Log
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 | }
[44/60] Compiling KVKCalendar DayView.swift
[45/60] Compiling KVKCalendar DefaultTimelineEventLayout.swift
[46/60] Compiling KVKCalendar DividerView.swift
[47/60] Compiling KVKCalendar EventView.swift
[48/60] Compiling KVKCalendar EventViewGeneral.swift
[49/60] Compiling KVKCalendar EventViewList.swift
[50/60] Compiling KVKCalendar TimelineContainerVC.swift
[51/60] Compiling KVKCalendar TimelineEventLayout.swift
[52/60] Compiling KVKCalendar TimelineLabel.swift
[53/60] Compiling KVKCalendar TimelineModel.swift
[54/60] Compiling KVKCalendar TimelinePageView.swift
[55/60] Compiling KVKCalendar MonthView.swift
/Users/admin/builder/spi-builder-workspace/Sources/KVKCalendar/ScrollWeekView.swift:15:33: error: cannot find type 'Style' in scope
13 | public struct ScrollWeekWrapper<Cell: View>: UIViewControllerRepresentable {
14 | @Binding private var date: Date
15 | @Binding private var style: Style
| `- error: cannot find type 'Style' in scope
16 | @ViewBuilder private var content: (_ date: Date?, _ type: DayType?) -> Cell
17 | private let view: ScrollWeekView
/Users/admin/builder/spi-builder-workspace/Sources/KVKCalendar/ScrollWeekView.swift:14:6: error: 'Binding' is only available in macOS 10.15 or newer
11 | @available(iOS 16.0, *)
12 |
13 | public struct ScrollWeekWrapper<Cell: View>: UIViewControllerRepresentable {
| `- note: add '@available' attribute to enclosing generic struct
14 | @Binding private var date: Date
| `- error: 'Binding' is only available in macOS 10.15 or newer
15 | @Binding private var style: Style
16 | @ViewBuilder private var content: (_ date: Date?, _ type: DayType?) -> Cell
/Users/admin/builder/spi-builder-workspace/Sources/KVKCalendar/ScrollWeekView.swift:15:6: error: 'Binding' is only available in macOS 10.15 or newer
11 | @available(iOS 16.0, *)
12 |
13 | public struct ScrollWeekWrapper<Cell: View>: UIViewControllerRepresentable {
| `- note: add '@available' attribute to enclosing generic struct
14 | @Binding private var date: Date
15 | @Binding private var style: Style
| `- error: 'Binding' is only available in macOS 10.15 or newer
16 | @ViewBuilder private var content: (_ date: Date?, _ type: DayType?) -> Cell
17 | private let view: ScrollWeekView
/Users/admin/builder/spi-builder-workspace/Sources/KVKCalendar/ScrollWeekView.swift:16:63: error: cannot find type 'DayType' in scope
14 | @Binding private var date: Date
15 | @Binding private var style: Style
16 | @ViewBuilder private var content: (_ date: Date?, _ type: DayType?) -> Cell
| `- error: cannot find type 'DayType' in scope
17 | private let view: ScrollWeekView
18 |
/Users/admin/builder/spi-builder-workspace/Sources/KVKCalendar/ScrollWeekView.swift:16:6: error: 'ViewBuilder' is only available in macOS 10.15 or newer
11 | @available(iOS 16.0, *)
12 |
13 | public struct ScrollWeekWrapper<Cell: View>: UIViewControllerRepresentable {
| `- note: add '@available' attribute to enclosing generic struct
14 | @Binding private var date: Date
15 | @Binding private var style: Style
16 | @ViewBuilder private var content: (_ date: Date?, _ type: DayType?) -> Cell
| `- error: 'ViewBuilder' is only available in macOS 10.15 or newer
17 | private let view: ScrollWeekView
18 |
/Users/admin/builder/spi-builder-workspace/Sources/KVKCalendar/ScrollWeekView.swift:21:24: error: cannot find type 'Style' in scope
19 | public init(
20 | date: Binding<Date>,
21 | style: Binding<Style>,
| `- error: cannot find type 'Style' in scope
22 | @ViewBuilder cellContent: @escaping (
23 | _ date: Date?,
/Users/admin/builder/spi-builder-workspace/Sources/KVKCalendar/ScrollWeekView.swift:24:21: error: cannot find type 'DayType' in scope
22 | @ViewBuilder cellContent: @escaping (
23 | _ date: Date?,
24 | _ type: DayType?
| `- error: cannot find type 'DayType' in scope
25 | ) -> Cell = { _, _ in EmptyView() }
26 | ) {
/Users/admin/builder/spi-builder-workspace/Sources/KVKCalendar/ScrollWeekView.swift:22:9: error: result builder attribute 'ViewBuilder' can only be applied to a parameter of function type
20 | date: Binding<Date>,
21 | style: Binding<Style>,
22 | @ViewBuilder cellContent: @escaping (
| `- error: result builder attribute 'ViewBuilder' can only be applied to a parameter of function type
23 | _ date: Date?,
24 | _ type: DayType?
/Users/admin/builder/spi-builder-workspace/Sources/KVKCalendar/ScrollWeekView.swift:20:15: error: 'Binding' is only available in macOS 10.15 or newer
11 | @available(iOS 16.0, *)
12 |
13 | public struct ScrollWeekWrapper<Cell: View>: UIViewControllerRepresentable {
| `- note: add '@available' attribute to enclosing generic struct
14 | @Binding private var date: Date
15 | @Binding private var style: Style
:
17 | private let view: ScrollWeekView
18 |
19 | public init(
| `- note: add '@available' attribute to enclosing initializer
20 | date: Binding<Date>,
| `- error: 'Binding' is only available in macOS 10.15 or newer
21 | style: Binding<Style>,
22 | @ViewBuilder cellContent: @escaping (
/Users/admin/builder/spi-builder-workspace/Sources/KVKCalendar/ScrollWeekView.swift:22:10: error: 'ViewBuilder' is only available in macOS 10.15 or newer
11 | @available(iOS 16.0, *)
12 |
13 | public struct ScrollWeekWrapper<Cell: View>: UIViewControllerRepresentable {
| `- note: add '@available' attribute to enclosing generic struct
14 | @Binding private var date: Date
15 | @Binding private var style: Style
:
17 | private let view: ScrollWeekView
18 |
19 | public init(
| `- note: add '@available' attribute to enclosing initializer
20 | date: Binding<Date>,
21 | style: Binding<Style>,
22 | @ViewBuilder cellContent: @escaping (
| `- error: 'ViewBuilder' is only available in macOS 10.15 or newer
23 | _ date: Date?,
24 | _ type: DayType?
/Users/admin/builder/spi-builder-workspace/Sources/KVKCalendar/ScrollWeekView.swift:36:64: error: cannot find type 'UIViewController' in scope
34 | }
35 |
36 | public func makeUIViewController(context: Context) -> some UIViewController {
| `- error: cannot find type 'UIViewController' in scope
37 | view.delegate = context.coordinator
38 | view.dataSource = context.coordinator
/Users/admin/builder/spi-builder-workspace/Sources/KVKCalendar/ScrollWeekView.swift:36:59: error: 'some' types are only permitted in properties, subscripts, and functions
34 | }
35 |
36 | public func makeUIViewController(context: Context) -> some UIViewController {
| `- error: 'some' types are only permitted in properties, subscripts, and functions
37 | view.delegate = context.coordinator
38 | view.dataSource = context.coordinator
/Users/admin/builder/spi-builder-workspace/Sources/KVKCalendar/ScrollWeekView.swift:36:47: error: cannot find type 'Context' in scope
34 | }
35 |
36 | public func makeUIViewController(context: Context) -> some UIViewController {
| `- error: cannot find type 'Context' in scope
37 | view.delegate = context.coordinator
38 | view.dataSource = context.coordinator
/Users/admin/builder/spi-builder-workspace/Sources/KVKCalendar/ScrollWeekView.swift:43:29: error: cannot find type 'UIViewControllerType' in scope
41 |
42 | public func updateUIViewController(
43 | _ uiViewController: UIViewControllerType,
| `- error: cannot find type 'UIViewControllerType' in scope
44 | context: Context
45 | ) {
/Users/admin/builder/spi-builder-workspace/Sources/KVKCalendar/ScrollWeekView.swift:44:18: error: cannot find type 'Context' in scope
42 | public func updateUIViewController(
43 | _ uiViewController: UIViewControllerType,
44 | context: Context
| `- error: cannot find type 'Context' in scope
45 | ) {
46 | view.setDate(date)
/Users/admin/builder/spi-builder-workspace/Sources/KVKCalendar/ScrollWeekView.swift:54:41: error: cannot find type 'CalendarDelegate' in scope
52 |
53 | @available(iOS 16.0, *)
54 | public class Coordinator: NSObject, CalendarDelegate, CalendarDataSource {
| `- error: cannot find type 'CalendarDelegate' in scope
55 | private let parent: ScrollWeekWrapper
56 |
/Users/admin/builder/spi-builder-workspace/Sources/KVKCalendar/ScrollWeekView.swift:54:59: error: cannot find type 'CalendarDataSource' in scope
52 |
53 | @available(iOS 16.0, *)
54 | public class Coordinator: NSObject, CalendarDelegate, CalendarDataSource {
| `- error: cannot find type 'CalendarDataSource' in scope
55 | private let parent: ScrollWeekWrapper
56 |
/Users/admin/builder/spi-builder-workspace/Sources/KVKCalendar/ScrollWeekView.swift:62:68: error: cannot find type 'Event' in scope
60 | }
61 |
62 | public func eventsForCalendar(systemEvents: [EKEvent]) -> [Event] {
| `- error: cannot find type 'Event' in scope
63 | []
64 | }
/Users/admin/builder/spi-builder-workspace/Sources/KVKCalendar/ScrollWeekView.swift:68:19: error: cannot find type 'CalendarType' in scope
66 | public func didSelectDates(
67 | _ dates: [Date],
68 | type: CalendarType,
| `- error: cannot find type 'CalendarType' in scope
69 | frame: CGRect?
70 | ) {
/Users/admin/builder/spi-builder-workspace/Sources/KVKCalendar/ScrollWeekView.swift:75:22: error: cannot find type 'Style' in scope
73 |
74 | public func didUpdateStyle(
75 | _ style: Style,
| `- error: cannot find type 'Style' in scope
76 | type: CalendarType
77 | ) {
/Users/admin/builder/spi-builder-workspace/Sources/KVKCalendar/ScrollWeekView.swift:76:19: error: cannot find type 'CalendarType' in scope
74 | public func didUpdateStyle(
75 | _ style: Style,
76 | type: CalendarType
| `- error: cannot find type 'CalendarType' in scope
77 | ) {
78 | parent.style = style
/Users/admin/builder/spi-builder-workspace/Sources/KVKCalendar/ScrollWeekView.swift:82:24: error: cannot find type 'CellParameter' in scope
80 |
81 | public func dequeueCell<T>(
82 | parameter: CellParameter,
| `- error: cannot find type 'CellParameter' in scope
83 | type: CalendarType,
84 | view: T,
/Users/admin/builder/spi-builder-workspace/Sources/KVKCalendar/ScrollWeekView.swift:83:19: error: cannot find type 'CalendarType' in scope
81 | public func dequeueCell<T>(
82 | parameter: CellParameter,
83 | type: CalendarType,
| `- error: cannot find type 'CalendarType' in scope
84 | view: T,
85 | indexPath: IndexPath
/Users/admin/builder/spi-builder-workspace/Sources/KVKCalendar/ScrollWeekView.swift:86:19: error: cannot find type 'KVKCalendarCellProtocol' in scope
84 | view: T,
85 | indexPath: IndexPath
86 | ) -> (any KVKCalendarCellProtocol)? where T: UIScrollView {
| `- error: cannot find type 'KVKCalendarCellProtocol' in scope
87 | if parent.content(parameter.date, parameter.type) is EmptyView {
88 | nil
/Users/admin/builder/spi-builder-workspace/Sources/KVKCalendar/ScrollWeekView.swift:86:54: error: cannot find type 'UIScrollView' in scope
84 | view: T,
85 | indexPath: IndexPath
86 | ) -> (any KVKCalendarCellProtocol)? where T: UIScrollView {
| `- error: cannot find type 'UIScrollView' in scope
87 | if parent.content(parameter.date, parameter.type) is EmptyView {
88 | nil
/Users/admin/builder/spi-builder-workspace/Sources/KVKCalendar/ScrollWeekView.swift:13:46: error: cannot find type 'UIViewControllerRepresentable' in scope
11 | @available(iOS 16.0, *)
12 |
13 | public struct ScrollWeekWrapper<Cell: View>: UIViewControllerRepresentable {
| `- error: cannot find type 'UIViewControllerRepresentable' in scope
14 | @Binding private var date: Date
15 | @Binding private var style: Style
/Users/admin/builder/spi-builder-workspace/Sources/KVKCalendar/ScrollWeekView.swift:13:39: error: 'View' is only available in macOS 10.15 or newer
11 | @available(iOS 16.0, *)
12 |
13 | public struct ScrollWeekWrapper<Cell: View>: UIViewControllerRepresentable {
| | `- error: 'View' is only available in macOS 10.15 or newer
| `- note: add '@available' attribute to enclosing generic struct
14 | @Binding private var date: Date
15 | @Binding private var style: Style
/Users/admin/builder/spi-builder-workspace/Sources/KVKCalendar/ScrollWeekView.swift:104:53: error: cannot find 'Style' in scope
102 | #Preview {
103 | @Previewable @State var date = Date()
104 | ScrollWeekWrapper(date: $date, style: .constant(Style()))
| `- error: cannot find 'Style' in scope
105 | }
106 |
/Users/admin/builder/spi-builder-workspace/Sources/KVKCalendar/ScrollWeekView.swift:104:44: error: cannot infer contextual base in reference to member 'constant'
102 | #Preview {
103 | @Previewable @State var date = Date()
104 | ScrollWeekWrapper(date: $date, style: .constant(Style()))
| `- error: cannot infer contextual base in reference to member 'constant'
105 | }
106 |
/Users/admin/builder/spi-builder-workspace/Sources/KVKCalendar/ScrollWeekView.swift:104:5: error: generic parameter 'Cell' could not be inferred
11 | @available(iOS 16.0, *)
12 |
13 | public struct ScrollWeekWrapper<Cell: View>: UIViewControllerRepresentable {
| `- note: 'Cell' declared as parameter to type 'ScrollWeekWrapper'
14 | @Binding private var date: Date
15 | @Binding private var style: Style
:
102 | #Preview {
103 | @Previewable @State var date = Date()
104 | ScrollWeekWrapper(date: $date, style: .constant(Style()))
| |- error: generic parameter 'Cell' could not be inferred
| `- note: explicitly specify the generic arguments to fix this issue
105 | }
106 |
/Users/admin/builder/spi-builder-workspace/Sources/KVKCalendar/ScrollWeekView.swift:107:28: error: cannot find type 'UIViewController' in scope
105 | }
106 |
107 | open class ScrollWeekView: UIViewController {
| `- error: cannot find type 'UIViewController' in scope
108 | private var style: Style
109 | private var dayData: DayData
/Users/admin/builder/spi-builder-workspace/Sources/KVKCalendar/ScrollWeekView.swift:108:24: error: cannot find type 'Style' in scope
106 |
107 | open class ScrollWeekView: UIViewController {
108 | private var style: Style
| `- error: cannot find type 'Style' in scope
109 | private var dayData: DayData
110 | private var scrollView: ScrollableWeekView
/Users/admin/builder/spi-builder-workspace/Sources/KVKCalendar/ScrollWeekView.swift:109:26: error: cannot find type 'DayData' in scope
107 | open class ScrollWeekView: UIViewController {
108 | private var style: Style
109 | private var dayData: DayData
| `- error: cannot find type 'DayData' in scope
110 | private var scrollView: ScrollableWeekView
111 |
/Users/admin/builder/spi-builder-workspace/Sources/KVKCalendar/ScrollWeekView.swift:110:29: error: cannot find type 'ScrollableWeekView' in scope
108 | private var style: Style
109 | private var dayData: DayData
110 | private var scrollView: ScrollableWeekView
| `- error: cannot find type 'ScrollableWeekView' in scope
111 |
112 | public weak var delegate: CalendarDelegate?
/Users/admin/builder/spi-builder-workspace/Sources/KVKCalendar/ScrollWeekView.swift:112:31: error: cannot find type 'CalendarDelegate' in scope
110 | private var scrollView: ScrollableWeekView
111 |
112 | public weak var delegate: CalendarDelegate?
| `- error: cannot find type 'CalendarDelegate' in scope
113 | public weak var dataSource: CalendarDataSource?
114 |
/Users/admin/builder/spi-builder-workspace/Sources/KVKCalendar/ScrollWeekView.swift:113:33: error: cannot find type 'CalendarDataSource' in scope
111 |
112 | public weak var delegate: CalendarDelegate?
113 | public weak var dataSource: CalendarDataSource?
| `- error: cannot find type 'CalendarDataSource' in scope
114 |
115 | public init(date: Date, style: Style) {
/Users/admin/builder/spi-builder-workspace/Sources/KVKCalendar/ScrollWeekView.swift:115:36: error: cannot find type 'Style' in scope
113 | public weak var dataSource: CalendarDataSource?
114 |
115 | public init(date: Date, style: Style) {
| `- error: cannot find type 'Style' in scope
116 | var styleProxy = style
117 | styleProxy.timeline.widthTime = 0
/Users/admin/builder/spi-builder-workspace/Sources/KVKCalendar/ScrollWeekView.swift:138:24: error: method does not override any method from its superclass
136 | }
137 |
138 | open override func viewDidLoad() {
| `- error: method does not override any method from its superclass
139 | super.viewDidLoad()
140 | view.addSubview(scrollView)
/Users/admin/builder/spi-builder-workspace/Sources/KVKCalendar/ScrollWeekView.swift:151:24: error: method does not override any method from its superclass
149 | }
150 |
151 | open override func viewDidLayoutSubviews() {
| `- error: method does not override any method from its superclass
152 | scrollView.setUI(reload: true)
153 | }
/Users/admin/builder/spi-builder-workspace/Sources/KVKCalendar/ScrollWeekView.swift:178:27: error: cannot find type 'DisplayDataSource' in scope
176 | }
177 |
178 | extension ScrollWeekView: DisplayDataSource {
| `- error: cannot find type 'DisplayDataSource' in scope
179 | public func dequeueCell<T>(
180 | parameter: CellParameter,
/Users/admin/builder/spi-builder-workspace/Sources/KVKCalendar/ScrollWeekView.swift:180:20: error: cannot find type 'CellParameter' in scope
178 | extension ScrollWeekView: DisplayDataSource {
179 | public func dequeueCell<T>(
180 | parameter: CellParameter,
| `- error: cannot find type 'CellParameter' in scope
181 | type: CalendarType,
182 | view: T,
/Users/admin/builder/spi-builder-workspace/Sources/KVKCalendar/ScrollWeekView.swift:181:15: error: cannot find type 'CalendarType' in scope
179 | public func dequeueCell<T>(
180 | parameter: CellParameter,
181 | type: CalendarType,
| `- error: cannot find type 'CalendarType' in scope
182 | view: T,
183 | indexPath: IndexPath
/Users/admin/builder/spi-builder-workspace/Sources/KVKCalendar/ScrollWeekView.swift:184:15: error: cannot find type 'KVKCalendarCellProtocol' in scope
182 | view: T,
183 | indexPath: IndexPath
184 | ) -> (any KVKCalendarCellProtocol)? where T: UIScrollView {
| `- error: cannot find type 'KVKCalendarCellProtocol' in scope
185 | dataSource?.dequeueCell(
186 | parameter: parameter,
/Users/admin/builder/spi-builder-workspace/Sources/KVKCalendar/ScrollWeekView.swift:184:50: error: cannot find type 'UIScrollView' in scope
182 | view: T,
183 | indexPath: IndexPath
184 | ) -> (any KVKCalendarCellProtocol)? where T: UIScrollView {
| `- error: cannot find type 'UIScrollView' in scope
185 | dataSource?.dequeueCell(
186 | parameter: parameter,
/Users/admin/builder/spi-builder-workspace/Sources/KVKCalendar/ScrollWeekView.swift:30:16: error: value of optional type 'ScrollWeekView?' must be unwrapped to a value of type 'ScrollWeekView'
28 | _style = style
29 | self.content = cellContent
30 | view = ScrollWeekView(
| |- error: value of optional type 'ScrollWeekView?' must be unwrapped to a value of type 'ScrollWeekView'
| |- note: coalesce using '??' to provide a default when the optional value contains 'nil'
| `- note: force-unwrap using '!' to abort execution if the optional value contains 'nil'
31 | date: date.wrappedValue,
32 | style: style.wrappedValue
/Users/admin/builder/spi-builder-workspace/Sources/KVKCalendar/ScrollWeekView.swift:30:30: error: extra arguments at positions #1, #2 in call
28 | _style = style
29 | self.content = cellContent
30 | view = ScrollWeekView(
| `- error: extra arguments at positions #1, #2 in call
31 | date: date.wrappedValue,
32 | style: style.wrappedValue
:
132 | }
133 |
134 | required public init?(coder: NSCoder) {
| `- note: 'init(coder:)' declared here
135 | fatalError("init(coder:) has not been implemented")
136 | }
/Users/admin/builder/spi-builder-workspace/Sources/KVKCalendar/ScrollWeekView.swift:31:13: error: missing argument for parameter 'coder' in call
29 | self.content = cellContent
30 | view = ScrollWeekView(
31 | date: date.wrappedValue,
| `- error: missing argument for parameter 'coder' in call
32 | style: style.wrappedValue
33 | )
:
132 | }
133 |
134 | required public init?(coder: NSCoder) {
| `- note: 'init(coder:)' declared here
135 | fatalError("init(coder:) has not been implemented")
136 | }
/Users/admin/builder/spi-builder-workspace/Sources/KVKCalendar/ScrollWeekView.swift:71:13: error: setter for 'date' is only available in macOS 10.15 or newer
52 |
53 | @available(iOS 16.0, *)
54 | public class Coordinator: NSObject, CalendarDelegate, CalendarDataSource {
| `- note: add '@available' attribute to enclosing class
55 | private let parent: ScrollWeekWrapper
56 |
:
64 | }
65 |
66 | public func didSelectDates(
| `- note: add '@available' attribute to enclosing instance method
67 | _ dates: [Date],
68 | type: CalendarType,
69 | frame: CGRect?
70 | ) {
71 | parent.date = dates.first ?? Date()
| |- error: setter for 'date' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
72 | }
73 |
/Users/admin/builder/spi-builder-workspace/Sources/KVKCalendar/ScrollWeekView.swift:92:53: error: cannot find 'UIHostingConfiguration' in scope
90 | (view as? UICollectionView)?.kvkDequeueCell(
91 | indexPath: indexPath) { (cell: UICollectionViewCell) in
92 | cell.contentConfiguration = UIHostingConfiguration {
| `- error: cannot find 'UIHostingConfiguration' in scope
93 | parent.content(parameter.date, parameter.type)
94 | }
/Users/admin/builder/spi-builder-workspace/Sources/KVKCalendar/ScrollWeekView.swift:120:20: error: cannot find 'CalendarData' in scope
118 | styleProxy.timeline.offsetTimeX = 0
119 | styleProxy.timeline.offsetLineLeft = 0
120 | let data = CalendarData(date: date, years: 1, style: styleProxy)
| `- error: cannot find 'CalendarData' in scope
121 | self.style = styleProxy
122 | dayData = DayData(data: data, startDay: styleProxy.startWeekDay)
/Users/admin/builder/spi-builder-workspace/Sources/KVKCalendar/ScrollWeekView.swift:122:19: error: cannot find 'DayData' in scope
120 | let data = CalendarData(date: date, years: 1, style: styleProxy)
121 | self.style = styleProxy
122 | dayData = DayData(data: data, startDay: styleProxy.startWeekDay)
| `- error: cannot find 'DayData' in scope
123 | scrollView = ScrollableWeekView(
124 | parameters: .init(
/Users/admin/builder/spi-builder-workspace/Sources/KVKCalendar/ScrollWeekView.swift:123:22: error: cannot find 'ScrollableWeekView' in scope
121 | self.style = styleProxy
122 | dayData = DayData(data: data, startDay: styleProxy.startWeekDay)
123 | scrollView = ScrollableWeekView(
| `- error: cannot find 'ScrollableWeekView' in scope
124 | parameters: .init(
125 | weeks: dayData.daysBySection,
/Users/admin/builder/spi-builder-workspace/Sources/KVKCalendar/ScrollWeekView.swift:124:26: error: cannot infer contextual base in reference to member 'init'
122 | dayData = DayData(data: data, startDay: styleProxy.startWeekDay)
123 | scrollView = ScrollableWeekView(
124 | parameters: .init(
| `- error: cannot infer contextual base in reference to member 'init'
125 | weeks: dayData.daysBySection,
126 | date: dayData.date,
/Users/admin/builder/spi-builder-workspace/Sources/KVKCalendar/ScrollWeekView.swift:127:24: error: cannot infer contextual base in reference to member 'week'
125 | weeks: dayData.daysBySection,
126 | date: dayData.date,
127 | type: .week,
| `- error: cannot infer contextual base in reference to member 'week'
128 | style: styleProxy
129 | )
/Users/admin/builder/spi-builder-workspace/Sources/KVKCalendar/ScrollWeekView.swift:131:9: error: 'super' cannot be used in class 'ScrollWeekView' because it has no superclass
129 | )
130 | )
131 | super.init(nibName: nil, bundle: nil)
| `- error: 'super' cannot be used in class 'ScrollWeekView' because it has no superclass
132 | }
133 |
/Users/admin/builder/spi-builder-workspace/Sources/KVKCalendar/ScrollWeekView.swift:131:29: error: 'nil' requires a contextual type
129 | )
130 | )
131 | super.init(nibName: nil, bundle: nil)
| `- error: 'nil' requires a contextual type
132 | }
133 |
/Users/admin/builder/spi-builder-workspace/Sources/KVKCalendar/ScrollWeekView.swift:131:42: error: 'nil' requires a contextual type
129 | )
130 | )
131 | super.init(nibName: nil, bundle: nil)
| `- error: 'nil' requires a contextual type
132 | }
133 |
/Users/admin/builder/spi-builder-workspace/Sources/KVKCalendar/ScrollWeekView.swift:139:9: error: 'super' cannot be used in class 'ScrollWeekView' because it has no superclass
137 |
138 | open override func viewDidLoad() {
139 | super.viewDidLoad()
| `- error: 'super' cannot be used in class 'ScrollWeekView' because it has no superclass
140 | view.addSubview(scrollView)
141 | scrollView.translatesAutoresizingMaskIntoConstraints = false
/Users/admin/builder/spi-builder-workspace/Sources/KVKCalendar/ScrollWeekView.swift:140:9: error: cannot find 'view' in scope
138 | open override func viewDidLoad() {
139 | super.viewDidLoad()
140 | view.addSubview(scrollView)
| `- error: cannot find 'view' in scope
141 | scrollView.translatesAutoresizingMaskIntoConstraints = false
142 | let top = scrollView.topAnchor.constraint(equalTo: view.topAnchor)
/Users/admin/builder/spi-builder-workspace/Sources/KVKCalendar/ScrollWeekView.swift:142:60: error: cannot find 'view' in scope
140 | view.addSubview(scrollView)
141 | scrollView.translatesAutoresizingMaskIntoConstraints = false
142 | let top = scrollView.topAnchor.constraint(equalTo: view.topAnchor)
| `- error: cannot find 'view' in scope
143 | let leading = scrollView.leadingAnchor.constraint(equalTo: view.leadingAnchor)
144 | let trailing = scrollView.trailingAnchor.constraint(equalTo: view.trailingAnchor)
/Users/admin/builder/spi-builder-workspace/Sources/KVKCalendar/ScrollWeekView.swift:143:68: error: cannot find 'view' in scope
141 | scrollView.translatesAutoresizingMaskIntoConstraints = false
142 | let top = scrollView.topAnchor.constraint(equalTo: view.topAnchor)
143 | let leading = scrollView.leadingAnchor.constraint(equalTo: view.leadingAnchor)
| `- error: cannot find 'view' in scope
144 | let trailing = scrollView.trailingAnchor.constraint(equalTo: view.trailingAnchor)
145 | let bottom = scrollView.bottomAnchor.constraint(equalTo: view.bottomAnchor)
/Users/admin/builder/spi-builder-workspace/Sources/KVKCalendar/ScrollWeekView.swift:144:70: error: cannot find 'view' in scope
142 | let top = scrollView.topAnchor.constraint(equalTo: view.topAnchor)
143 | let leading = scrollView.leadingAnchor.constraint(equalTo: view.leadingAnchor)
144 | let trailing = scrollView.trailingAnchor.constraint(equalTo: view.trailingAnchor)
| `- error: cannot find 'view' in scope
145 | let bottom = scrollView.bottomAnchor.constraint(equalTo: view.bottomAnchor)
146 | NSLayoutConstraint.activate([top, leading, trailing, bottom])
/Users/admin/builder/spi-builder-workspace/Sources/KVKCalendar/ScrollWeekView.swift:145:66: error: cannot find 'view' in scope
143 | let leading = scrollView.leadingAnchor.constraint(equalTo: view.leadingAnchor)
144 | let trailing = scrollView.trailingAnchor.constraint(equalTo: view.trailingAnchor)
145 | let bottom = scrollView.bottomAnchor.constraint(equalTo: view.bottomAnchor)
| `- error: cannot find 'view' in scope
146 | NSLayoutConstraint.activate([top, leading, trailing, bottom])
147 | setupScrollableWeekView()
/Users/admin/builder/spi-builder-workspace/Sources/KVKCalendar/ScrollWeekView.swift:164:51: error: cannot infer type of closure parameter 'date' without a type annotation
162 | private func setupScrollableWeekView() {
163 | scrollView.dataSource = self
164 | scrollView.didSelectDate = { [weak self] (date, type) in
| `- error: cannot infer type of closure parameter 'date' without a type annotation
165 | guard let self else { return }
166 | if let date {
/Users/admin/builder/spi-builder-workspace/Sources/KVKCalendar/ScrollWeekView.swift:164:57: error: cannot infer type of closure parameter 'type' without a type annotation
162 | private func setupScrollableWeekView() {
163 | scrollView.dataSource = self
164 | scrollView.didSelectDate = { [weak self] (date, type) in
| `- error: cannot infer type of closure parameter 'type' without a type annotation
165 | guard let self else { return }
166 | if let date {
/Users/admin/builder/spi-builder-workspace/Sources/KVKCalendar/ScrollWeekView.swift:171:52: error: cannot infer type of closure parameter 'type' without a type annotation
169 | }
170 | }
171 | scrollView.didUpdateStyle = { [weak self] (type) in
| `- error: cannot infer type of closure parameter 'type' without a type annotation
172 | guard let self else { return }
173 | delegate?.didUpdateStyle(style, type: type)
/Users/admin/builder/spi-builder-workspace/Sources/KVKCalendar/ScrollWeekView.swift:103:6: error: 'Previewable()' is only available in macOS 14.0 or newer
101 | @available(iOS 17.0, *)
102 | #Preview {
103 | @Previewable @State var date = Date()
| |- error: 'Previewable()' is only available in macOS 14.0 or newer
| `- note: add 'if #available' version check
104 | ScrollWeekWrapper(date: $date, style: .constant(Style()))
105 | }
[56/60] Compiling KVKCalendar ResizeEventView.swift
/Users/admin/builder/spi-builder-workspace/Sources/KVKCalendar/ScrollWeekView.swift:15:33: error: cannot find type 'Style' in scope
13 | public struct ScrollWeekWrapper<Cell: View>: UIViewControllerRepresentable {
14 | @Binding private var date: Date
15 | @Binding private var style: Style
| `- error: cannot find type 'Style' in scope
16 | @ViewBuilder private var content: (_ date: Date?, _ type: DayType?) -> Cell
17 | private let view: ScrollWeekView
/Users/admin/builder/spi-builder-workspace/Sources/KVKCalendar/ScrollWeekView.swift:14:6: error: 'Binding' is only available in macOS 10.15 or newer
11 | @available(iOS 16.0, *)
12 |
13 | public struct ScrollWeekWrapper<Cell: View>: UIViewControllerRepresentable {
| `- note: add '@available' attribute to enclosing generic struct
14 | @Binding private var date: Date
| `- error: 'Binding' is only available in macOS 10.15 or newer
15 | @Binding private var style: Style
16 | @ViewBuilder private var content: (_ date: Date?, _ type: DayType?) -> Cell
/Users/admin/builder/spi-builder-workspace/Sources/KVKCalendar/ScrollWeekView.swift:15:6: error: 'Binding' is only available in macOS 10.15 or newer
11 | @available(iOS 16.0, *)
12 |
13 | public struct ScrollWeekWrapper<Cell: View>: UIViewControllerRepresentable {
| `- note: add '@available' attribute to enclosing generic struct
14 | @Binding private var date: Date
15 | @Binding private var style: Style
| `- error: 'Binding' is only available in macOS 10.15 or newer
16 | @ViewBuilder private var content: (_ date: Date?, _ type: DayType?) -> Cell
17 | private let view: ScrollWeekView
/Users/admin/builder/spi-builder-workspace/Sources/KVKCalendar/ScrollWeekView.swift:16:63: error: cannot find type 'DayType' in scope
14 | @Binding private var date: Date
15 | @Binding private var style: Style
16 | @ViewBuilder private var content: (_ date: Date?, _ type: DayType?) -> Cell
| `- error: cannot find type 'DayType' in scope
17 | private let view: ScrollWeekView
18 |
/Users/admin/builder/spi-builder-workspace/Sources/KVKCalendar/ScrollWeekView.swift:16:6: error: 'ViewBuilder' is only available in macOS 10.15 or newer
11 | @available(iOS 16.0, *)
12 |
13 | public struct ScrollWeekWrapper<Cell: View>: UIViewControllerRepresentable {
| `- note: add '@available' attribute to enclosing generic struct
14 | @Binding private var date: Date
15 | @Binding private var style: Style
16 | @ViewBuilder private var content: (_ date: Date?, _ type: DayType?) -> Cell
| `- error: 'ViewBuilder' is only available in macOS 10.15 or newer
17 | private let view: ScrollWeekView
18 |
/Users/admin/builder/spi-builder-workspace/Sources/KVKCalendar/ScrollWeekView.swift:21:24: error: cannot find type 'Style' in scope
19 | public init(
20 | date: Binding<Date>,
21 | style: Binding<Style>,
| `- error: cannot find type 'Style' in scope
22 | @ViewBuilder cellContent: @escaping (
23 | _ date: Date?,
/Users/admin/builder/spi-builder-workspace/Sources/KVKCalendar/ScrollWeekView.swift:24:21: error: cannot find type 'DayType' in scope
22 | @ViewBuilder cellContent: @escaping (
23 | _ date: Date?,
24 | _ type: DayType?
| `- error: cannot find type 'DayType' in scope
25 | ) -> Cell = { _, _ in EmptyView() }
26 | ) {
/Users/admin/builder/spi-builder-workspace/Sources/KVKCalendar/ScrollWeekView.swift:22:9: error: result builder attribute 'ViewBuilder' can only be applied to a parameter of function type
20 | date: Binding<Date>,
21 | style: Binding<Style>,
22 | @ViewBuilder cellContent: @escaping (
| `- error: result builder attribute 'ViewBuilder' can only be applied to a parameter of function type
23 | _ date: Date?,
24 | _ type: DayType?
/Users/admin/builder/spi-builder-workspace/Sources/KVKCalendar/ScrollWeekView.swift:20:15: error: 'Binding' is only available in macOS 10.15 or newer
11 | @available(iOS 16.0, *)
12 |
13 | public struct ScrollWeekWrapper<Cell: View>: UIViewControllerRepresentable {
| `- note: add '@available' attribute to enclosing generic struct
14 | @Binding private var date: Date
15 | @Binding private var style: Style
:
17 | private let view: ScrollWeekView
18 |
19 | public init(
| `- note: add '@available' attribute to enclosing initializer
20 | date: Binding<Date>,
| `- error: 'Binding' is only available in macOS 10.15 or newer
21 | style: Binding<Style>,
22 | @ViewBuilder cellContent: @escaping (
/Users/admin/builder/spi-builder-workspace/Sources/KVKCalendar/ScrollWeekView.swift:22:10: error: 'ViewBuilder' is only available in macOS 10.15 or newer
11 | @available(iOS 16.0, *)
12 |
13 | public struct ScrollWeekWrapper<Cell: View>: UIViewControllerRepresentable {
| `- note: add '@available' attribute to enclosing generic struct
14 | @Binding private var date: Date
15 | @Binding private var style: Style
:
17 | private let view: ScrollWeekView
18 |
19 | public init(
| `- note: add '@available' attribute to enclosing initializer
20 | date: Binding<Date>,
21 | style: Binding<Style>,
22 | @ViewBuilder cellContent: @escaping (
| `- error: 'ViewBuilder' is only available in macOS 10.15 or newer
23 | _ date: Date?,
24 | _ type: DayType?
/Users/admin/builder/spi-builder-workspace/Sources/KVKCalendar/ScrollWeekView.swift:36:64: error: cannot find type 'UIViewController' in scope
34 | }
35 |
36 | public func makeUIViewController(context: Context) -> some UIViewController {
| `- error: cannot find type 'UIViewController' in scope
37 | view.delegate = context.coordinator
38 | view.dataSource = context.coordinator
/Users/admin/builder/spi-builder-workspace/Sources/KVKCalendar/ScrollWeekView.swift:36:59: error: 'some' types are only permitted in properties, subscripts, and functions
34 | }
35 |
36 | public func makeUIViewController(context: Context) -> some UIViewController {
| `- error: 'some' types are only permitted in properties, subscripts, and functions
37 | view.delegate = context.coordinator
38 | view.dataSource = context.coordinator
/Users/admin/builder/spi-builder-workspace/Sources/KVKCalendar/ScrollWeekView.swift:36:47: error: cannot find type 'Context' in scope
34 | }
35 |
36 | public func makeUIViewController(context: Context) -> some UIViewController {
| `- error: cannot find type 'Context' in scope
37 | view.delegate = context.coordinator
38 | view.dataSource = context.coordinator
/Users/admin/builder/spi-builder-workspace/Sources/KVKCalendar/ScrollWeekView.swift:43:29: error: cannot find type 'UIViewControllerType' in scope
41 |
42 | public func updateUIViewController(
43 | _ uiViewController: UIViewControllerType,
| `- error: cannot find type 'UIViewControllerType' in scope
44 | context: Context
45 | ) {
/Users/admin/builder/spi-builder-workspace/Sources/KVKCalendar/ScrollWeekView.swift:44:18: error: cannot find type 'Context' in scope
42 | public func updateUIViewController(
43 | _ uiViewController: UIViewControllerType,
44 | context: Context
| `- error: cannot find type 'Context' in scope
45 | ) {
46 | view.setDate(date)
/Users/admin/builder/spi-builder-workspace/Sources/KVKCalendar/ScrollWeekView.swift:54:41: error: cannot find type 'CalendarDelegate' in scope
52 |
53 | @available(iOS 16.0, *)
54 | public class Coordinator: NSObject, CalendarDelegate, CalendarDataSource {
| `- error: cannot find type 'CalendarDelegate' in scope
55 | private let parent: ScrollWeekWrapper
56 |
/Users/admin/builder/spi-builder-workspace/Sources/KVKCalendar/ScrollWeekView.swift:54:59: error: cannot find type 'CalendarDataSource' in scope
52 |
53 | @available(iOS 16.0, *)
54 | public class Coordinator: NSObject, CalendarDelegate, CalendarDataSource {
| `- error: cannot find type 'CalendarDataSource' in scope
55 | private let parent: ScrollWeekWrapper
56 |
/Users/admin/builder/spi-builder-workspace/Sources/KVKCalendar/ScrollWeekView.swift:62:68: error: cannot find type 'Event' in scope
60 | }
61 |
62 | public func eventsForCalendar(systemEvents: [EKEvent]) -> [Event] {
| `- error: cannot find type 'Event' in scope
63 | []
64 | }
/Users/admin/builder/spi-builder-workspace/Sources/KVKCalendar/ScrollWeekView.swift:68:19: error: cannot find type 'CalendarType' in scope
66 | public func didSelectDates(
67 | _ dates: [Date],
68 | type: CalendarType,
| `- error: cannot find type 'CalendarType' in scope
69 | frame: CGRect?
70 | ) {
/Users/admin/builder/spi-builder-workspace/Sources/KVKCalendar/ScrollWeekView.swift:75:22: error: cannot find type 'Style' in scope
73 |
74 | public func didUpdateStyle(
75 | _ style: Style,
| `- error: cannot find type 'Style' in scope
76 | type: CalendarType
77 | ) {
/Users/admin/builder/spi-builder-workspace/Sources/KVKCalendar/ScrollWeekView.swift:76:19: error: cannot find type 'CalendarType' in scope
74 | public func didUpdateStyle(
75 | _ style: Style,
76 | type: CalendarType
| `- error: cannot find type 'CalendarType' in scope
77 | ) {
78 | parent.style = style
/Users/admin/builder/spi-builder-workspace/Sources/KVKCalendar/ScrollWeekView.swift:82:24: error: cannot find type 'CellParameter' in scope
80 |
81 | public func dequeueCell<T>(
82 | parameter: CellParameter,
| `- error: cannot find type 'CellParameter' in scope
83 | type: CalendarType,
84 | view: T,
/Users/admin/builder/spi-builder-workspace/Sources/KVKCalendar/ScrollWeekView.swift:83:19: error: cannot find type 'CalendarType' in scope
81 | public func dequeueCell<T>(
82 | parameter: CellParameter,
83 | type: CalendarType,
| `- error: cannot find type 'CalendarType' in scope
84 | view: T,
85 | indexPath: IndexPath
/Users/admin/builder/spi-builder-workspace/Sources/KVKCalendar/ScrollWeekView.swift:86:19: error: cannot find type 'KVKCalendarCellProtocol' in scope
84 | view: T,
85 | indexPath: IndexPath
86 | ) -> (any KVKCalendarCellProtocol)? where T: UIScrollView {
| `- error: cannot find type 'KVKCalendarCellProtocol' in scope
87 | if parent.content(parameter.date, parameter.type) is EmptyView {
88 | nil
/Users/admin/builder/spi-builder-workspace/Sources/KVKCalendar/ScrollWeekView.swift:86:54: error: cannot find type 'UIScrollView' in scope
84 | view: T,
85 | indexPath: IndexPath
86 | ) -> (any KVKCalendarCellProtocol)? where T: UIScrollView {
| `- error: cannot find type 'UIScrollView' in scope
87 | if parent.content(parameter.date, parameter.type) is EmptyView {
88 | nil
/Users/admin/builder/spi-builder-workspace/Sources/KVKCalendar/ScrollWeekView.swift:13:46: error: cannot find type 'UIViewControllerRepresentable' in scope
11 | @available(iOS 16.0, *)
12 |
13 | public struct ScrollWeekWrapper<Cell: View>: UIViewControllerRepresentable {
| `- error: cannot find type 'UIViewControllerRepresentable' in scope
14 | @Binding private var date: Date
15 | @Binding private var style: Style
/Users/admin/builder/spi-builder-workspace/Sources/KVKCalendar/ScrollWeekView.swift:13:39: error: 'View' is only available in macOS 10.15 or newer
11 | @available(iOS 16.0, *)
12 |
13 | public struct ScrollWeekWrapper<Cell: View>: UIViewControllerRepresentable {
| | `- error: 'View' is only available in macOS 10.15 or newer
| `- note: add '@available' attribute to enclosing generic struct
14 | @Binding private var date: Date
15 | @Binding private var style: Style
/Users/admin/builder/spi-builder-workspace/Sources/KVKCalendar/ScrollWeekView.swift:104:53: error: cannot find 'Style' in scope
102 | #Preview {
103 | @Previewable @State var date = Date()
104 | ScrollWeekWrapper(date: $date, style: .constant(Style()))
| `- error: cannot find 'Style' in scope
105 | }
106 |
/Users/admin/builder/spi-builder-workspace/Sources/KVKCalendar/ScrollWeekView.swift:104:44: error: cannot infer contextual base in reference to member 'constant'
102 | #Preview {
103 | @Previewable @State var date = Date()
104 | ScrollWeekWrapper(date: $date, style: .constant(Style()))
| `- error: cannot infer contextual base in reference to member 'constant'
105 | }
106 |
/Users/admin/builder/spi-builder-workspace/Sources/KVKCalendar/ScrollWeekView.swift:104:5: error: generic parameter 'Cell' could not be inferred
11 | @available(iOS 16.0, *)
12 |
13 | public struct ScrollWeekWrapper<Cell: View>: UIViewControllerRepresentable {
| `- note: 'Cell' declared as parameter to type 'ScrollWeekWrapper'
14 | @Binding private var date: Date
15 | @Binding private var style: Style
:
102 | #Preview {
103 | @Previewable @State var date = Date()
104 | ScrollWeekWrapper(date: $date, style: .constant(Style()))
| |- error: generic parameter 'Cell' could not be inferred
| `- note: explicitly specify the generic arguments to fix this issue
105 | }
106 |
/Users/admin/builder/spi-builder-workspace/Sources/KVKCalendar/ScrollWeekView.swift:107:28: error: cannot find type 'UIViewController' in scope
105 | }
106 |
107 | open class ScrollWeekView: UIViewController {
| `- error: cannot find type 'UIViewController' in scope
108 | private var style: Style
109 | private var dayData: DayData
/Users/admin/builder/spi-builder-workspace/Sources/KVKCalendar/ScrollWeekView.swift:108:24: error: cannot find type 'Style' in scope
106 |
107 | open class ScrollWeekView: UIViewController {
108 | private var style: Style
| `- error: cannot find type 'Style' in scope
109 | private var dayData: DayData
110 | private var scrollView: ScrollableWeekView
/Users/admin/builder/spi-builder-workspace/Sources/KVKCalendar/ScrollWeekView.swift:109:26: error: cannot find type 'DayData' in scope
107 | open class ScrollWeekView: UIViewController {
108 | private var style: Style
109 | private var dayData: DayData
| `- error: cannot find type 'DayData' in scope
110 | private var scrollView: ScrollableWeekView
111 |
/Users/admin/builder/spi-builder-workspace/Sources/KVKCalendar/ScrollWeekView.swift:110:29: error: cannot find type 'ScrollableWeekView' in scope
108 | private var style: Style
109 | private var dayData: DayData
110 | private var scrollView: ScrollableWeekView
| `- error: cannot find type 'ScrollableWeekView' in scope
111 |
112 | public weak var delegate: CalendarDelegate?
/Users/admin/builder/spi-builder-workspace/Sources/KVKCalendar/ScrollWeekView.swift:112:31: error: cannot find type 'CalendarDelegate' in scope
110 | private var scrollView: ScrollableWeekView
111 |
112 | public weak var delegate: CalendarDelegate?
| `- error: cannot find type 'CalendarDelegate' in scope
113 | public weak var dataSource: CalendarDataSource?
114 |
/Users/admin/builder/spi-builder-workspace/Sources/KVKCalendar/ScrollWeekView.swift:113:33: error: cannot find type 'CalendarDataSource' in scope
111 |
112 | public weak var delegate: CalendarDelegate?
113 | public weak var dataSource: CalendarDataSource?
| `- error: cannot find type 'CalendarDataSource' in scope
114 |
115 | public init(date: Date, style: Style) {
/Users/admin/builder/spi-builder-workspace/Sources/KVKCalendar/ScrollWeekView.swift:115:36: error: cannot find type 'Style' in scope
113 | public weak var dataSource: CalendarDataSource?
114 |
115 | public init(date: Date, style: Style) {
| `- error: cannot find type 'Style' in scope
116 | var styleProxy = style
117 | styleProxy.timeline.widthTime = 0
/Users/admin/builder/spi-builder-workspace/Sources/KVKCalendar/ScrollWeekView.swift:138:24: error: method does not override any method from its superclass
136 | }
137 |
138 | open override func viewDidLoad() {
| `- error: method does not override any method from its superclass
139 | super.viewDidLoad()
140 | view.addSubview(scrollView)
/Users/admin/builder/spi-builder-workspace/Sources/KVKCalendar/ScrollWeekView.swift:151:24: error: method does not override any method from its superclass
149 | }
150 |
151 | open override func viewDidLayoutSubviews() {
| `- error: method does not override any method from its superclass
152 | scrollView.setUI(reload: true)
153 | }
/Users/admin/builder/spi-builder-workspace/Sources/KVKCalendar/ScrollWeekView.swift:178:27: error: cannot find type 'DisplayDataSource' in scope
176 | }
177 |
178 | extension ScrollWeekView: DisplayDataSource {
| `- error: cannot find type 'DisplayDataSource' in scope
179 | public func dequeueCell<T>(
180 | parameter: CellParameter,
/Users/admin/builder/spi-builder-workspace/Sources/KVKCalendar/ScrollWeekView.swift:180:20: error: cannot find type 'CellParameter' in scope
178 | extension ScrollWeekView: DisplayDataSource {
179 | public func dequeueCell<T>(
180 | parameter: CellParameter,
| `- error: cannot find type 'CellParameter' in scope
181 | type: CalendarType,
182 | view: T,
/Users/admin/builder/spi-builder-workspace/Sources/KVKCalendar/ScrollWeekView.swift:181:15: error: cannot find type 'CalendarType' in scope
179 | public func dequeueCell<T>(
180 | parameter: CellParameter,
181 | type: CalendarType,
| `- error: cannot find type 'CalendarType' in scope
182 | view: T,
183 | indexPath: IndexPath
/Users/admin/builder/spi-builder-workspace/Sources/KVKCalendar/ScrollWeekView.swift:184:15: error: cannot find type 'KVKCalendarCellProtocol' in scope
182 | view: T,
183 | indexPath: IndexPath
184 | ) -> (any KVKCalendarCellProtocol)? where T: UIScrollView {
| `- error: cannot find type 'KVKCalendarCellProtocol' in scope
185 | dataSource?.dequeueCell(
186 | parameter: parameter,
/Users/admin/builder/spi-builder-workspace/Sources/KVKCalendar/ScrollWeekView.swift:184:50: error: cannot find type 'UIScrollView' in scope
182 | view: T,
183 | indexPath: IndexPath
184 | ) -> (any KVKCalendarCellProtocol)? where T: UIScrollView {
| `- error: cannot find type 'UIScrollView' in scope
185 | dataSource?.dequeueCell(
186 | parameter: parameter,
/Users/admin/builder/spi-builder-workspace/Sources/KVKCalendar/ScrollWeekView.swift:30:16: error: value of optional type 'ScrollWeekView?' must be unwrapped to a value of type 'ScrollWeekView'
28 | _style = style
29 | self.content = cellContent
30 | view = ScrollWeekView(
| |- error: value of optional type 'ScrollWeekView?' must be unwrapped to a value of type 'ScrollWeekView'
| |- note: coalesce using '??' to provide a default when the optional value contains 'nil'
| `- note: force-unwrap using '!' to abort execution if the optional value contains 'nil'
31 | date: date.wrappedValue,
32 | style: style.wrappedValue
/Users/admin/builder/spi-builder-workspace/Sources/KVKCalendar/ScrollWeekView.swift:30:30: error: extra arguments at positions #1, #2 in call
28 | _style = style
29 | self.content = cellContent
30 | view = ScrollWeekView(
| `- error: extra arguments at positions #1, #2 in call
31 | date: date.wrappedValue,
32 | style: style.wrappedValue
:
132 | }
133 |
134 | required public init?(coder: NSCoder) {
| `- note: 'init(coder:)' declared here
135 | fatalError("init(coder:) has not been implemented")
136 | }
/Users/admin/builder/spi-builder-workspace/Sources/KVKCalendar/ScrollWeekView.swift:31:13: error: missing argument for parameter 'coder' in call
29 | self.content = cellContent
30 | view = ScrollWeekView(
31 | date: date.wrappedValue,
| `- error: missing argument for parameter 'coder' in call
32 | style: style.wrappedValue
33 | )
:
132 | }
133 |
134 | required public init?(coder: NSCoder) {
| `- note: 'init(coder:)' declared here
135 | fatalError("init(coder:) has not been implemented")
136 | }
/Users/admin/builder/spi-builder-workspace/Sources/KVKCalendar/ScrollWeekView.swift:71:13: error: setter for 'date' is only available in macOS 10.15 or newer
52 |
53 | @available(iOS 16.0, *)
54 | public class Coordinator: NSObject, CalendarDelegate, CalendarDataSource {
| `- note: add '@available' attribute to enclosing class
55 | private let parent: ScrollWeekWrapper
56 |
:
64 | }
65 |
66 | public func didSelectDates(
| `- note: add '@available' attribute to enclosing instance method
67 | _ dates: [Date],
68 | type: CalendarType,
69 | frame: CGRect?
70 | ) {
71 | parent.date = dates.first ?? Date()
| |- error: setter for 'date' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
72 | }
73 |
/Users/admin/builder/spi-builder-workspace/Sources/KVKCalendar/ScrollWeekView.swift:92:53: error: cannot find 'UIHostingConfiguration' in scope
90 | (view as? UICollectionView)?.kvkDequeueCell(
91 | indexPath: indexPath) { (cell: UICollectionViewCell) in
92 | cell.contentConfiguration = UIHostingConfiguration {
| `- error: cannot find 'UIHostingConfiguration' in scope
93 | parent.content(parameter.date, parameter.type)
94 | }
/Users/admin/builder/spi-builder-workspace/Sources/KVKCalendar/ScrollWeekView.swift:120:20: error: cannot find 'CalendarData' in scope
118 | styleProxy.timeline.offsetTimeX = 0
119 | styleProxy.timeline.offsetLineLeft = 0
120 | let data = CalendarData(date: date, years: 1, style: styleProxy)
| `- error: cannot find 'CalendarData' in scope
121 | self.style = styleProxy
122 | dayData = DayData(data: data, startDay: styleProxy.startWeekDay)
/Users/admin/builder/spi-builder-workspace/Sources/KVKCalendar/ScrollWeekView.swift:122:19: error: cannot find 'DayData' in scope
120 | let data = CalendarData(date: date, years: 1, style: styleProxy)
121 | self.style = styleProxy
122 | dayData = DayData(data: data, startDay: styleProxy.startWeekDay)
| `- error: cannot find 'DayData' in scope
123 | scrollView = ScrollableWeekView(
124 | parameters: .init(
/Users/admin/builder/spi-builder-workspace/Sources/KVKCalendar/ScrollWeekView.swift:123:22: error: cannot find 'ScrollableWeekView' in scope
121 | self.style = styleProxy
122 | dayData = DayData(data: data, startDay: styleProxy.startWeekDay)
123 | scrollView = ScrollableWeekView(
| `- error: cannot find 'ScrollableWeekView' in scope
124 | parameters: .init(
125 | weeks: dayData.daysBySection,
/Users/admin/builder/spi-builder-workspace/Sources/KVKCalendar/ScrollWeekView.swift:124:26: error: cannot infer contextual base in reference to member 'init'
122 | dayData = DayData(data: data, startDay: styleProxy.startWeekDay)
123 | scrollView = ScrollableWeekView(
124 | parameters: .init(
| `- error: cannot infer contextual base in reference to member 'init'
125 | weeks: dayData.daysBySection,
126 | date: dayData.date,
/Users/admin/builder/spi-builder-workspace/Sources/KVKCalendar/ScrollWeekView.swift:127:24: error: cannot infer contextual base in reference to member 'week'
125 | weeks: dayData.daysBySection,
126 | date: dayData.date,
127 | type: .week,
| `- error: cannot infer contextual base in reference to member 'week'
128 | style: styleProxy
129 | )
/Users/admin/builder/spi-builder-workspace/Sources/KVKCalendar/ScrollWeekView.swift:131:9: error: 'super' cannot be used in class 'ScrollWeekView' because it has no superclass
129 | )
130 | )
131 | super.init(nibName: nil, bundle: nil)
| `- error: 'super' cannot be used in class 'ScrollWeekView' because it has no superclass
132 | }
133 |
/Users/admin/builder/spi-builder-workspace/Sources/KVKCalendar/ScrollWeekView.swift:131:29: error: 'nil' requires a contextual type
129 | )
130 | )
131 | super.init(nibName: nil, bundle: nil)
| `- error: 'nil' requires a contextual type
132 | }
133 |
/Users/admin/builder/spi-builder-workspace/Sources/KVKCalendar/ScrollWeekView.swift:131:42: error: 'nil' requires a contextual type
129 | )
130 | )
131 | super.init(nibName: nil, bundle: nil)
| `- error: 'nil' requires a contextual type
132 | }
133 |
/Users/admin/builder/spi-builder-workspace/Sources/KVKCalendar/ScrollWeekView.swift:139:9: error: 'super' cannot be used in class 'ScrollWeekView' because it has no superclass
137 |
138 | open override func viewDidLoad() {
139 | super.viewDidLoad()
| `- error: 'super' cannot be used in class 'ScrollWeekView' because it has no superclass
140 | view.addSubview(scrollView)
141 | scrollView.translatesAutoresizingMaskIntoConstraints = false
/Users/admin/builder/spi-builder-workspace/Sources/KVKCalendar/ScrollWeekView.swift:140:9: error: cannot find 'view' in scope
138 | open override func viewDidLoad() {
139 | super.viewDidLoad()
140 | view.addSubview(scrollView)
| `- error: cannot find 'view' in scope
141 | scrollView.translatesAutoresizingMaskIntoConstraints = false
142 | let top = scrollView.topAnchor.constraint(equalTo: view.topAnchor)
/Users/admin/builder/spi-builder-workspace/Sources/KVKCalendar/ScrollWeekView.swift:142:60: error: cannot find 'view' in scope
140 | view.addSubview(scrollView)
141 | scrollView.translatesAutoresizingMaskIntoConstraints = false
142 | let top = scrollView.topAnchor.constraint(equalTo: view.topAnchor)
| `- error: cannot find 'view' in scope
143 | let leading = scrollView.leadingAnchor.constraint(equalTo: view.leadingAnchor)
144 | let trailing = scrollView.trailingAnchor.constraint(equalTo: view.trailingAnchor)
/Users/admin/builder/spi-builder-workspace/Sources/KVKCalendar/ScrollWeekView.swift:143:68: error: cannot find 'view' in scope
141 | scrollView.translatesAutoresizingMaskIntoConstraints = false
142 | let top = scrollView.topAnchor.constraint(equalTo: view.topAnchor)
143 | let leading = scrollView.leadingAnchor.constraint(equalTo: view.leadingAnchor)
| `- error: cannot find 'view' in scope
144 | let trailing = scrollView.trailingAnchor.constraint(equalTo: view.trailingAnchor)
145 | let bottom = scrollView.bottomAnchor.constraint(equalTo: view.bottomAnchor)
/Users/admin/builder/spi-builder-workspace/Sources/KVKCalendar/ScrollWeekView.swift:144:70: error: cannot find 'view' in scope
142 | let top = scrollView.topAnchor.constraint(equalTo: view.topAnchor)
143 | let leading = scrollView.leadingAnchor.constraint(equalTo: view.leadingAnchor)
144 | let trailing = scrollView.trailingAnchor.constraint(equalTo: view.trailingAnchor)
| `- error: cannot find 'view' in scope
145 | let bottom = scrollView.bottomAnchor.constraint(equalTo: view.bottomAnchor)
146 | NSLayoutConstraint.activate([top, leading, trailing, bottom])
/Users/admin/builder/spi-builder-workspace/Sources/KVKCalendar/ScrollWeekView.swift:145:66: error: cannot find 'view' in scope
143 | let leading = scrollView.leadingAnchor.constraint(equalTo: view.leadingAnchor)
144 | let trailing = scrollView.trailingAnchor.constraint(equalTo: view.trailingAnchor)
145 | let bottom = scrollView.bottomAnchor.constraint(equalTo: view.bottomAnchor)
| `- error: cannot find 'view' in scope
146 | NSLayoutConstraint.activate([top, leading, trailing, bottom])
147 | setupScrollableWeekView()
/Users/admin/builder/spi-builder-workspace/Sources/KVKCalendar/ScrollWeekView.swift:164:51: error: cannot infer type of closure parameter 'date' without a type annotation
162 | private func setupScrollableWeekView() {
163 | scrollView.dataSource = self
164 | scrollView.didSelectDate = { [weak self] (date, type) in
| `- error: cannot infer type of closure parameter 'date' without a type annotation
165 | guard let self else { return }
166 | if let date {
/Users/admin/builder/spi-builder-workspace/Sources/KVKCalendar/ScrollWeekView.swift:164:57: error: cannot infer type of closure parameter 'type' without a type annotation
162 | private func setupScrollableWeekView() {
163 | scrollView.dataSource = self
164 | scrollView.didSelectDate = { [weak self] (date, type) in
| `- error: cannot infer type of closure parameter 'type' without a type annotation
165 | guard let self else { return }
166 | if let date {
/Users/admin/builder/spi-builder-workspace/Sources/KVKCalendar/ScrollWeekView.swift:171:52: error: cannot infer type of closure parameter 'type' without a type annotation
169 | }
170 | }
171 | scrollView.didUpdateStyle = { [weak self] (type) in
| `- error: cannot infer type of closure parameter 'type' without a type annotation
172 | guard let self else { return }
173 | delegate?.didUpdateStyle(style, type: type)
/Users/admin/builder/spi-builder-workspace/Sources/KVKCalendar/ScrollWeekView.swift:103:6: error: 'Previewable()' is only available in macOS 14.0 or newer
101 | @available(iOS 17.0, *)
102 | #Preview {
103 | @Previewable @State var date = Date()
| |- error: 'Previewable()' is only available in macOS 14.0 or newer
| `- note: add 'if #available' version check
104 | ScrollWeekWrapper(date: $date, style: .constant(Style()))
105 | }
[57/60] Compiling KVKCalendar ScrollWeekView.swift
/Users/admin/builder/spi-builder-workspace/Sources/KVKCalendar/ScrollWeekView.swift:15:33: error: cannot find type 'Style' in scope
13 | public struct ScrollWeekWrapper<Cell: View>: UIViewControllerRepresentable {
14 | @Binding private var date: Date
15 | @Binding private var style: Style
| `- error: cannot find type 'Style' in scope
16 | @ViewBuilder private var content: (_ date: Date?, _ type: DayType?) -> Cell
17 | private let view: ScrollWeekView
/Users/admin/builder/spi-builder-workspace/Sources/KVKCalendar/ScrollWeekView.swift:14:6: error: 'Binding' is only available in macOS 10.15 or newer
11 | @available(iOS 16.0, *)
12 |
13 | public struct ScrollWeekWrapper<Cell: View>: UIViewControllerRepresentable {
| `- note: add '@available' attribute to enclosing generic struct
14 | @Binding private var date: Date
| `- error: 'Binding' is only available in macOS 10.15 or newer
15 | @Binding private var style: Style
16 | @ViewBuilder private var content: (_ date: Date?, _ type: DayType?) -> Cell
/Users/admin/builder/spi-builder-workspace/Sources/KVKCalendar/ScrollWeekView.swift:15:6: error: 'Binding' is only available in macOS 10.15 or newer
11 | @available(iOS 16.0, *)
12 |
13 | public struct ScrollWeekWrapper<Cell: View>: UIViewControllerRepresentable {
| `- note: add '@available' attribute to enclosing generic struct
14 | @Binding private var date: Date
15 | @Binding private var style: Style
| `- error: 'Binding' is only available in macOS 10.15 or newer
16 | @ViewBuilder private var content: (_ date: Date?, _ type: DayType?) -> Cell
17 | private let view: ScrollWeekView
/Users/admin/builder/spi-builder-workspace/Sources/KVKCalendar/ScrollWeekView.swift:16:63: error: cannot find type 'DayType' in scope
14 | @Binding private var date: Date
15 | @Binding private var style: Style
16 | @ViewBuilder private var content: (_ date: Date?, _ type: DayType?) -> Cell
| `- error: cannot find type 'DayType' in scope
17 | private let view: ScrollWeekView
18 |
/Users/admin/builder/spi-builder-workspace/Sources/KVKCalendar/ScrollWeekView.swift:16:6: error: 'ViewBuilder' is only available in macOS 10.15 or newer
11 | @available(iOS 16.0, *)
12 |
13 | public struct ScrollWeekWrapper<Cell: View>: UIViewControllerRepresentable {
| `- note: add '@available' attribute to enclosing generic struct
14 | @Binding private var date: Date
15 | @Binding private var style: Style
16 | @ViewBuilder private var content: (_ date: Date?, _ type: DayType?) -> Cell
| `- error: 'ViewBuilder' is only available in macOS 10.15 or newer
17 | private let view: ScrollWeekView
18 |
/Users/admin/builder/spi-builder-workspace/Sources/KVKCalendar/ScrollWeekView.swift:21:24: error: cannot find type 'Style' in scope
19 | public init(
20 | date: Binding<Date>,
21 | style: Binding<Style>,
| `- error: cannot find type 'Style' in scope
22 | @ViewBuilder cellContent: @escaping (
23 | _ date: Date?,
/Users/admin/builder/spi-builder-workspace/Sources/KVKCalendar/ScrollWeekView.swift:24:21: error: cannot find type 'DayType' in scope
22 | @ViewBuilder cellContent: @escaping (
23 | _ date: Date?,
24 | _ type: DayType?
| `- error: cannot find type 'DayType' in scope
25 | ) -> Cell = { _, _ in EmptyView() }
26 | ) {
/Users/admin/builder/spi-builder-workspace/Sources/KVKCalendar/ScrollWeekView.swift:22:9: error: result builder attribute 'ViewBuilder' can only be applied to a parameter of function type
20 | date: Binding<Date>,
21 | style: Binding<Style>,
22 | @ViewBuilder cellContent: @escaping (
| `- error: result builder attribute 'ViewBuilder' can only be applied to a parameter of function type
23 | _ date: Date?,
24 | _ type: DayType?
/Users/admin/builder/spi-builder-workspace/Sources/KVKCalendar/ScrollWeekView.swift:20:15: error: 'Binding' is only available in macOS 10.15 or newer
11 | @available(iOS 16.0, *)
12 |
13 | public struct ScrollWeekWrapper<Cell: View>: UIViewControllerRepresentable {
| `- note: add '@available' attribute to enclosing generic struct
14 | @Binding private var date: Date
15 | @Binding private var style: Style
:
17 | private let view: ScrollWeekView
18 |
19 | public init(
| `- note: add '@available' attribute to enclosing initializer
20 | date: Binding<Date>,
| `- error: 'Binding' is only available in macOS 10.15 or newer
21 | style: Binding<Style>,
22 | @ViewBuilder cellContent: @escaping (
/Users/admin/builder/spi-builder-workspace/Sources/KVKCalendar/ScrollWeekView.swift:22:10: error: 'ViewBuilder' is only available in macOS 10.15 or newer
11 | @available(iOS 16.0, *)
12 |
13 | public struct ScrollWeekWrapper<Cell: View>: UIViewControllerRepresentable {
| `- note: add '@available' attribute to enclosing generic struct
14 | @Binding private var date: Date
15 | @Binding private var style: Style
:
17 | private let view: ScrollWeekView
18 |
19 | public init(
| `- note: add '@available' attribute to enclosing initializer
20 | date: Binding<Date>,
21 | style: Binding<Style>,
22 | @ViewBuilder cellContent: @escaping (
| `- error: 'ViewBuilder' is only available in macOS 10.15 or newer
23 | _ date: Date?,
24 | _ type: DayType?
/Users/admin/builder/spi-builder-workspace/Sources/KVKCalendar/ScrollWeekView.swift:36:64: error: cannot find type 'UIViewController' in scope
34 | }
35 |
36 | public func makeUIViewController(context: Context) -> some UIViewController {
| `- error: cannot find type 'UIViewController' in scope
37 | view.delegate = context.coordinator
38 | view.dataSource = context.coordinator
/Users/admin/builder/spi-builder-workspace/Sources/KVKCalendar/ScrollWeekView.swift:36:59: error: 'some' types are only permitted in properties, subscripts, and functions
34 | }
35 |
36 | public func makeUIViewController(context: Context) -> some UIViewController {
| `- error: 'some' types are only permitted in properties, subscripts, and functions
37 | view.delegate = context.coordinator
38 | view.dataSource = context.coordinator
/Users/admin/builder/spi-builder-workspace/Sources/KVKCalendar/ScrollWeekView.swift:36:47: error: cannot find type 'Context' in scope
34 | }
35 |
36 | public func makeUIViewController(context: Context) -> some UIViewController {
| `- error: cannot find type 'Context' in scope
37 | view.delegate = context.coordinator
38 | view.dataSource = context.coordinator
/Users/admin/builder/spi-builder-workspace/Sources/KVKCalendar/ScrollWeekView.swift:43:29: error: cannot find type 'UIViewControllerType' in scope
41 |
42 | public func updateUIViewController(
43 | _ uiViewController: UIViewControllerType,
| `- error: cannot find type 'UIViewControllerType' in scope
44 | context: Context
45 | ) {
/Users/admin/builder/spi-builder-workspace/Sources/KVKCalendar/ScrollWeekView.swift:44:18: error: cannot find type 'Context' in scope
42 | public func updateUIViewController(
43 | _ uiViewController: UIViewControllerType,
44 | context: Context
| `- error: cannot find type 'Context' in scope
45 | ) {
46 | view.setDate(date)
/Users/admin/builder/spi-builder-workspace/Sources/KVKCalendar/ScrollWeekView.swift:54:41: error: cannot find type 'CalendarDelegate' in scope
52 |
53 | @available(iOS 16.0, *)
54 | public class Coordinator: NSObject, CalendarDelegate, CalendarDataSource {
| `- error: cannot find type 'CalendarDelegate' in scope
55 | private let parent: ScrollWeekWrapper
56 |
/Users/admin/builder/spi-builder-workspace/Sources/KVKCalendar/ScrollWeekView.swift:54:59: error: cannot find type 'CalendarDataSource' in scope
52 |
53 | @available(iOS 16.0, *)
54 | public class Coordinator: NSObject, CalendarDelegate, CalendarDataSource {
| `- error: cannot find type 'CalendarDataSource' in scope
55 | private let parent: ScrollWeekWrapper
56 |
/Users/admin/builder/spi-builder-workspace/Sources/KVKCalendar/ScrollWeekView.swift:62:68: error: cannot find type 'Event' in scope
60 | }
61 |
62 | public func eventsForCalendar(systemEvents: [EKEvent]) -> [Event] {
| `- error: cannot find type 'Event' in scope
63 | []
64 | }
/Users/admin/builder/spi-builder-workspace/Sources/KVKCalendar/ScrollWeekView.swift:68:19: error: cannot find type 'CalendarType' in scope
66 | public func didSelectDates(
67 | _ dates: [Date],
68 | type: CalendarType,
| `- error: cannot find type 'CalendarType' in scope
69 | frame: CGRect?
70 | ) {
/Users/admin/builder/spi-builder-workspace/Sources/KVKCalendar/ScrollWeekView.swift:75:22: error: cannot find type 'Style' in scope
73 |
74 | public func didUpdateStyle(
75 | _ style: Style,
| `- error: cannot find type 'Style' in scope
76 | type: CalendarType
77 | ) {
/Users/admin/builder/spi-builder-workspace/Sources/KVKCalendar/ScrollWeekView.swift:76:19: error: cannot find type 'CalendarType' in scope
74 | public func didUpdateStyle(
75 | _ style: Style,
76 | type: CalendarType
| `- error: cannot find type 'CalendarType' in scope
77 | ) {
78 | parent.style = style
/Users/admin/builder/spi-builder-workspace/Sources/KVKCalendar/ScrollWeekView.swift:82:24: error: cannot find type 'CellParameter' in scope
80 |
81 | public func dequeueCell<T>(
82 | parameter: CellParameter,
| `- error: cannot find type 'CellParameter' in scope
83 | type: CalendarType,
84 | view: T,
/Users/admin/builder/spi-builder-workspace/Sources/KVKCalendar/ScrollWeekView.swift:83:19: error: cannot find type 'CalendarType' in scope
81 | public func dequeueCell<T>(
82 | parameter: CellParameter,
83 | type: CalendarType,
| `- error: cannot find type 'CalendarType' in scope
84 | view: T,
85 | indexPath: IndexPath
/Users/admin/builder/spi-builder-workspace/Sources/KVKCalendar/ScrollWeekView.swift:86:19: error: cannot find type 'KVKCalendarCellProtocol' in scope
84 | view: T,
85 | indexPath: IndexPath
86 | ) -> (any KVKCalendarCellProtocol)? where T: UIScrollView {
| `- error: cannot find type 'KVKCalendarCellProtocol' in scope
87 | if parent.content(parameter.date, parameter.type) is EmptyView {
88 | nil
/Users/admin/builder/spi-builder-workspace/Sources/KVKCalendar/ScrollWeekView.swift:86:54: error: cannot find type 'UIScrollView' in scope
84 | view: T,
85 | indexPath: IndexPath
86 | ) -> (any KVKCalendarCellProtocol)? where T: UIScrollView {
| `- error: cannot find type 'UIScrollView' in scope
87 | if parent.content(parameter.date, parameter.type) is EmptyView {
88 | nil
/Users/admin/builder/spi-builder-workspace/Sources/KVKCalendar/ScrollWeekView.swift:13:46: error: cannot find type 'UIViewControllerRepresentable' in scope
11 | @available(iOS 16.0, *)
12 |
13 | public struct ScrollWeekWrapper<Cell: View>: UIViewControllerRepresentable {
| `- error: cannot find type 'UIViewControllerRepresentable' in scope
14 | @Binding private var date: Date
15 | @Binding private var style: Style
/Users/admin/builder/spi-builder-workspace/Sources/KVKCalendar/ScrollWeekView.swift:13:39: error: 'View' is only available in macOS 10.15 or newer
11 | @available(iOS 16.0, *)
12 |
13 | public struct ScrollWeekWrapper<Cell: View>: UIViewControllerRepresentable {
| | `- error: 'View' is only available in macOS 10.15 or newer
| `- note: add '@available' attribute to enclosing generic struct
14 | @Binding private var date: Date
15 | @Binding private var style: Style
/Users/admin/builder/spi-builder-workspace/Sources/KVKCalendar/ScrollWeekView.swift:104:53: error: cannot find 'Style' in scope
102 | #Preview {
103 | @Previewable @State var date = Date()
104 | ScrollWeekWrapper(date: $date, style: .constant(Style()))
| `- error: cannot find 'Style' in scope
105 | }
106 |
/Users/admin/builder/spi-builder-workspace/Sources/KVKCalendar/ScrollWeekView.swift:104:44: error: cannot infer contextual base in reference to member 'constant'
102 | #Preview {
103 | @Previewable @State var date = Date()
104 | ScrollWeekWrapper(date: $date, style: .constant(Style()))
| `- error: cannot infer contextual base in reference to member 'constant'
105 | }
106 |
/Users/admin/builder/spi-builder-workspace/Sources/KVKCalendar/ScrollWeekView.swift:104:5: error: generic parameter 'Cell' could not be inferred
11 | @available(iOS 16.0, *)
12 |
13 | public struct ScrollWeekWrapper<Cell: View>: UIViewControllerRepresentable {
| `- note: 'Cell' declared as parameter to type 'ScrollWeekWrapper'
14 | @Binding private var date: Date
15 | @Binding private var style: Style
:
102 | #Preview {
103 | @Previewable @State var date = Date()
104 | ScrollWeekWrapper(date: $date, style: .constant(Style()))
| |- error: generic parameter 'Cell' could not be inferred
| `- note: explicitly specify the generic arguments to fix this issue
105 | }
106 |
/Users/admin/builder/spi-builder-workspace/Sources/KVKCalendar/ScrollWeekView.swift:107:28: error: cannot find type 'UIViewController' in scope
105 | }
106 |
107 | open class ScrollWeekView: UIViewController {
| `- error: cannot find type 'UIViewController' in scope
108 | private var style: Style
109 | private var dayData: DayData
/Users/admin/builder/spi-builder-workspace/Sources/KVKCalendar/ScrollWeekView.swift:108:24: error: cannot find type 'Style' in scope
106 |
107 | open class ScrollWeekView: UIViewController {
108 | private var style: Style
| `- error: cannot find type 'Style' in scope
109 | private var dayData: DayData
110 | private var scrollView: ScrollableWeekView
/Users/admin/builder/spi-builder-workspace/Sources/KVKCalendar/ScrollWeekView.swift:109:26: error: cannot find type 'DayData' in scope
107 | open class ScrollWeekView: UIViewController {
108 | private var style: Style
109 | private var dayData: DayData
| `- error: cannot find type 'DayData' in scope
110 | private var scrollView: ScrollableWeekView
111 |
/Users/admin/builder/spi-builder-workspace/Sources/KVKCalendar/ScrollWeekView.swift:110:29: error: cannot find type 'ScrollableWeekView' in scope
108 | private var style: Style
109 | private var dayData: DayData
110 | private var scrollView: ScrollableWeekView
| `- error: cannot find type 'ScrollableWeekView' in scope
111 |
112 | public weak var delegate: CalendarDelegate?
/Users/admin/builder/spi-builder-workspace/Sources/KVKCalendar/ScrollWeekView.swift:112:31: error: cannot find type 'CalendarDelegate' in scope
110 | private var scrollView: ScrollableWeekView
111 |
112 | public weak var delegate: CalendarDelegate?
| `- error: cannot find type 'CalendarDelegate' in scope
113 | public weak var dataSource: CalendarDataSource?
114 |
/Users/admin/builder/spi-builder-workspace/Sources/KVKCalendar/ScrollWeekView.swift:113:33: error: cannot find type 'CalendarDataSource' in scope
111 |
112 | public weak var delegate: CalendarDelegate?
113 | public weak var dataSource: CalendarDataSource?
| `- error: cannot find type 'CalendarDataSource' in scope
114 |
115 | public init(date: Date, style: Style) {
/Users/admin/builder/spi-builder-workspace/Sources/KVKCalendar/ScrollWeekView.swift:115:36: error: cannot find type 'Style' in scope
113 | public weak var dataSource: CalendarDataSource?
114 |
115 | public init(date: Date, style: Style) {
| `- error: cannot find type 'Style' in scope
116 | var styleProxy = style
117 | styleProxy.timeline.widthTime = 0
/Users/admin/builder/spi-builder-workspace/Sources/KVKCalendar/ScrollWeekView.swift:138:24: error: method does not override any method from its superclass
136 | }
137 |
138 | open override func viewDidLoad() {
| `- error: method does not override any method from its superclass
139 | super.viewDidLoad()
140 | view.addSubview(scrollView)
/Users/admin/builder/spi-builder-workspace/Sources/KVKCalendar/ScrollWeekView.swift:151:24: error: method does not override any method from its superclass
149 | }
150 |
151 | open override func viewDidLayoutSubviews() {
| `- error: method does not override any method from its superclass
152 | scrollView.setUI(reload: true)
153 | }
/Users/admin/builder/spi-builder-workspace/Sources/KVKCalendar/ScrollWeekView.swift:178:27: error: cannot find type 'DisplayDataSource' in scope
176 | }
177 |
178 | extension ScrollWeekView: DisplayDataSource {
| `- error: cannot find type 'DisplayDataSource' in scope
179 | public func dequeueCell<T>(
180 | parameter: CellParameter,
/Users/admin/builder/spi-builder-workspace/Sources/KVKCalendar/ScrollWeekView.swift:180:20: error: cannot find type 'CellParameter' in scope
178 | extension ScrollWeekView: DisplayDataSource {
179 | public func dequeueCell<T>(
180 | parameter: CellParameter,
| `- error: cannot find type 'CellParameter' in scope
181 | type: CalendarType,
182 | view: T,
/Users/admin/builder/spi-builder-workspace/Sources/KVKCalendar/ScrollWeekView.swift:181:15: error: cannot find type 'CalendarType' in scope
179 | public func dequeueCell<T>(
180 | parameter: CellParameter,
181 | type: CalendarType,
| `- error: cannot find type 'CalendarType' in scope
182 | view: T,
183 | indexPath: IndexPath
/Users/admin/builder/spi-builder-workspace/Sources/KVKCalendar/ScrollWeekView.swift:184:15: error: cannot find type 'KVKCalendarCellProtocol' in scope
182 | view: T,
183 | indexPath: IndexPath
184 | ) -> (any KVKCalendarCellProtocol)? where T: UIScrollView {
| `- error: cannot find type 'KVKCalendarCellProtocol' in scope
185 | dataSource?.dequeueCell(
186 | parameter: parameter,
/Users/admin/builder/spi-builder-workspace/Sources/KVKCalendar/ScrollWeekView.swift:184:50: error: cannot find type 'UIScrollView' in scope
182 | view: T,
183 | indexPath: IndexPath
184 | ) -> (any KVKCalendarCellProtocol)? where T: UIScrollView {
| `- error: cannot find type 'UIScrollView' in scope
185 | dataSource?.dequeueCell(
186 | parameter: parameter,
/Users/admin/builder/spi-builder-workspace/Sources/KVKCalendar/ScrollWeekView.swift:30:16: error: value of optional type 'ScrollWeekView?' must be unwrapped to a value of type 'ScrollWeekView'
28 | _style = style
29 | self.content = cellContent
30 | view = ScrollWeekView(
| |- error: value of optional type 'ScrollWeekView?' must be unwrapped to a value of type 'ScrollWeekView'
| |- note: coalesce using '??' to provide a default when the optional value contains 'nil'
| `- note: force-unwrap using '!' to abort execution if the optional value contains 'nil'
31 | date: date.wrappedValue,
32 | style: style.wrappedValue
/Users/admin/builder/spi-builder-workspace/Sources/KVKCalendar/ScrollWeekView.swift:30:30: error: extra arguments at positions #1, #2 in call
28 | _style = style
29 | self.content = cellContent
30 | view = ScrollWeekView(
| `- error: extra arguments at positions #1, #2 in call
31 | date: date.wrappedValue,
32 | style: style.wrappedValue
:
132 | }
133 |
134 | required public init?(coder: NSCoder) {
| `- note: 'init(coder:)' declared here
135 | fatalError("init(coder:) has not been implemented")
136 | }
/Users/admin/builder/spi-builder-workspace/Sources/KVKCalendar/ScrollWeekView.swift:31:13: error: missing argument for parameter 'coder' in call
29 | self.content = cellContent
30 | view = ScrollWeekView(
31 | date: date.wrappedValue,
| `- error: missing argument for parameter 'coder' in call
32 | style: style.wrappedValue
33 | )
:
132 | }
133 |
134 | required public init?(coder: NSCoder) {
| `- note: 'init(coder:)' declared here
135 | fatalError("init(coder:) has not been implemented")
136 | }
/Users/admin/builder/spi-builder-workspace/Sources/KVKCalendar/ScrollWeekView.swift:71:13: error: setter for 'date' is only available in macOS 10.15 or newer
52 |
53 | @available(iOS 16.0, *)
54 | public class Coordinator: NSObject, CalendarDelegate, CalendarDataSource {
| `- note: add '@available' attribute to enclosing class
55 | private let parent: ScrollWeekWrapper
56 |
:
64 | }
65 |
66 | public func didSelectDates(
| `- note: add '@available' attribute to enclosing instance method
67 | _ dates: [Date],
68 | type: CalendarType,
69 | frame: CGRect?
70 | ) {
71 | parent.date = dates.first ?? Date()
| |- error: setter for 'date' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
72 | }
73 |
/Users/admin/builder/spi-builder-workspace/Sources/KVKCalendar/ScrollWeekView.swift:92:53: error: cannot find 'UIHostingConfiguration' in scope
90 | (view as? UICollectionView)?.kvkDequeueCell(
91 | indexPath: indexPath) { (cell: UICollectionViewCell) in
92 | cell.contentConfiguration = UIHostingConfiguration {
| `- error: cannot find 'UIHostingConfiguration' in scope
93 | parent.content(parameter.date, parameter.type)
94 | }
/Users/admin/builder/spi-builder-workspace/Sources/KVKCalendar/ScrollWeekView.swift:120:20: error: cannot find 'CalendarData' in scope
118 | styleProxy.timeline.offsetTimeX = 0
119 | styleProxy.timeline.offsetLineLeft = 0
120 | let data = CalendarData(date: date, years: 1, style: styleProxy)
| `- error: cannot find 'CalendarData' in scope
121 | self.style = styleProxy
122 | dayData = DayData(data: data, startDay: styleProxy.startWeekDay)
/Users/admin/builder/spi-builder-workspace/Sources/KVKCalendar/ScrollWeekView.swift:122:19: error: cannot find 'DayData' in scope
120 | let data = CalendarData(date: date, years: 1, style: styleProxy)
121 | self.style = styleProxy
122 | dayData = DayData(data: data, startDay: styleProxy.startWeekDay)
| `- error: cannot find 'DayData' in scope
123 | scrollView = ScrollableWeekView(
124 | parameters: .init(
/Users/admin/builder/spi-builder-workspace/Sources/KVKCalendar/ScrollWeekView.swift:123:22: error: cannot find 'ScrollableWeekView' in scope
121 | self.style = styleProxy
122 | dayData = DayData(data: data, startDay: styleProxy.startWeekDay)
123 | scrollView = ScrollableWeekView(
| `- error: cannot find 'ScrollableWeekView' in scope
124 | parameters: .init(
125 | weeks: dayData.daysBySection,
/Users/admin/builder/spi-builder-workspace/Sources/KVKCalendar/ScrollWeekView.swift:124:26: error: cannot infer contextual base in reference to member 'init'
122 | dayData = DayData(data: data, startDay: styleProxy.startWeekDay)
123 | scrollView = ScrollableWeekView(
124 | parameters: .init(
| `- error: cannot infer contextual base in reference to member 'init'
125 | weeks: dayData.daysBySection,
126 | date: dayData.date,
/Users/admin/builder/spi-builder-workspace/Sources/KVKCalendar/ScrollWeekView.swift:127:24: error: cannot infer contextual base in reference to member 'week'
125 | weeks: dayData.daysBySection,
126 | date: dayData.date,
127 | type: .week,
| `- error: cannot infer contextual base in reference to member 'week'
128 | style: styleProxy
129 | )
/Users/admin/builder/spi-builder-workspace/Sources/KVKCalendar/ScrollWeekView.swift:131:9: error: 'super' cannot be used in class 'ScrollWeekView' because it has no superclass
129 | )
130 | )
131 | super.init(nibName: nil, bundle: nil)
| `- error: 'super' cannot be used in class 'ScrollWeekView' because it has no superclass
132 | }
133 |
/Users/admin/builder/spi-builder-workspace/Sources/KVKCalendar/ScrollWeekView.swift:131:29: error: 'nil' requires a contextual type
129 | )
130 | )
131 | super.init(nibName: nil, bundle: nil)
| `- error: 'nil' requires a contextual type
132 | }
133 |
/Users/admin/builder/spi-builder-workspace/Sources/KVKCalendar/ScrollWeekView.swift:131:42: error: 'nil' requires a contextual type
129 | )
130 | )
131 | super.init(nibName: nil, bundle: nil)
| `- error: 'nil' requires a contextual type
132 | }
133 |
/Users/admin/builder/spi-builder-workspace/Sources/KVKCalendar/ScrollWeekView.swift:139:9: error: 'super' cannot be used in class 'ScrollWeekView' because it has no superclass
137 |
138 | open override func viewDidLoad() {
139 | super.viewDidLoad()
| `- error: 'super' cannot be used in class 'ScrollWeekView' because it has no superclass
140 | view.addSubview(scrollView)
141 | scrollView.translatesAutoresizingMaskIntoConstraints = false
/Users/admin/builder/spi-builder-workspace/Sources/KVKCalendar/ScrollWeekView.swift:140:9: error: cannot find 'view' in scope
138 | open override func viewDidLoad() {
139 | super.viewDidLoad()
140 | view.addSubview(scrollView)
| `- error: cannot find 'view' in scope
141 | scrollView.translatesAutoresizingMaskIntoConstraints = false
142 | let top = scrollView.topAnchor.constraint(equalTo: view.topAnchor)
/Users/admin/builder/spi-builder-workspace/Sources/KVKCalendar/ScrollWeekView.swift:142:60: error: cannot find 'view' in scope
140 | view.addSubview(scrollView)
141 | scrollView.translatesAutoresizingMaskIntoConstraints = false
142 | let top = scrollView.topAnchor.constraint(equalTo: view.topAnchor)
| `- error: cannot find 'view' in scope
143 | let leading = scrollView.leadingAnchor.constraint(equalTo: view.leadingAnchor)
144 | let trailing = scrollView.trailingAnchor.constraint(equalTo: view.trailingAnchor)
/Users/admin/builder/spi-builder-workspace/Sources/KVKCalendar/ScrollWeekView.swift:143:68: error: cannot find 'view' in scope
141 | scrollView.translatesAutoresizingMaskIntoConstraints = false
142 | let top = scrollView.topAnchor.constraint(equalTo: view.topAnchor)
143 | let leading = scrollView.leadingAnchor.constraint(equalTo: view.leadingAnchor)
| `- error: cannot find 'view' in scope
144 | let trailing = scrollView.trailingAnchor.constraint(equalTo: view.trailingAnchor)
145 | let bottom = scrollView.bottomAnchor.constraint(equalTo: view.bottomAnchor)
/Users/admin/builder/spi-builder-workspace/Sources/KVKCalendar/ScrollWeekView.swift:144:70: error: cannot find 'view' in scope
142 | let top = scrollView.topAnchor.constraint(equalTo: view.topAnchor)
143 | let leading = scrollView.leadingAnchor.constraint(equalTo: view.leadingAnchor)
144 | let trailing = scrollView.trailingAnchor.constraint(equalTo: view.trailingAnchor)
| `- error: cannot find 'view' in scope
145 | let bottom = scrollView.bottomAnchor.constraint(equalTo: view.bottomAnchor)
146 | NSLayoutConstraint.activate([top, leading, trailing, bottom])
/Users/admin/builder/spi-builder-workspace/Sources/KVKCalendar/ScrollWeekView.swift:145:66: error: cannot find 'view' in scope
143 | let leading = scrollView.leadingAnchor.constraint(equalTo: view.leadingAnchor)
144 | let trailing = scrollView.trailingAnchor.constraint(equalTo: view.trailingAnchor)
145 | let bottom = scrollView.bottomAnchor.constraint(equalTo: view.bottomAnchor)
| `- error: cannot find 'view' in scope
146 | NSLayoutConstraint.activate([top, leading, trailing, bottom])
147 | setupScrollableWeekView()
/Users/admin/builder/spi-builder-workspace/Sources/KVKCalendar/ScrollWeekView.swift:164:51: error: cannot infer type of closure parameter 'date' without a type annotation
162 | private func setupScrollableWeekView() {
163 | scrollView.dataSource = self
164 | scrollView.didSelectDate = { [weak self] (date, type) in
| `- error: cannot infer type of closure parameter 'date' without a type annotation
165 | guard let self else { return }
166 | if let date {
/Users/admin/builder/spi-builder-workspace/Sources/KVKCalendar/ScrollWeekView.swift:164:57: error: cannot infer type of closure parameter 'type' without a type annotation
162 | private func setupScrollableWeekView() {
163 | scrollView.dataSource = self
164 | scrollView.didSelectDate = { [weak self] (date, type) in
| `- error: cannot infer type of closure parameter 'type' without a type annotation
165 | guard let self else { return }
166 | if let date {
/Users/admin/builder/spi-builder-workspace/Sources/KVKCalendar/ScrollWeekView.swift:171:52: error: cannot infer type of closure parameter 'type' without a type annotation
169 | }
170 | }
171 | scrollView.didUpdateStyle = { [weak self] (type) in
| `- error: cannot infer type of closure parameter 'type' without a type annotation
172 | guard let self else { return }
173 | delegate?.didUpdateStyle(style, type: type)
/Users/admin/builder/spi-builder-workspace/Sources/KVKCalendar/ScrollWeekView.swift:103:6: error: 'Previewable()' is only available in macOS 14.0 or newer
101 | @available(iOS 17.0, *)
102 | #Preview {
103 | @Previewable @State var date = Date()
| |- error: 'Previewable()' is only available in macOS 14.0 or newer
| `- note: add 'if #available' version check
104 | ScrollWeekWrapper(date: $date, style: .constant(Style()))
105 | }
[58/60] Compiling KVKCalendar ScrollableWeekHeaderTitleView.swift
/Users/admin/builder/spi-builder-workspace/Sources/KVKCalendar/ScrollWeekView.swift:15:33: error: cannot find type 'Style' in scope
13 | public struct ScrollWeekWrapper<Cell: View>: UIViewControllerRepresentable {
14 | @Binding private var date: Date
15 | @Binding private var style: Style
| `- error: cannot find type 'Style' in scope
16 | @ViewBuilder private var content: (_ date: Date?, _ type: DayType?) -> Cell
17 | private let view: ScrollWeekView
/Users/admin/builder/spi-builder-workspace/Sources/KVKCalendar/ScrollWeekView.swift:14:6: error: 'Binding' is only available in macOS 10.15 or newer
11 | @available(iOS 16.0, *)
12 |
13 | public struct ScrollWeekWrapper<Cell: View>: UIViewControllerRepresentable {
| `- note: add '@available' attribute to enclosing generic struct
14 | @Binding private var date: Date
| `- error: 'Binding' is only available in macOS 10.15 or newer
15 | @Binding private var style: Style
16 | @ViewBuilder private var content: (_ date: Date?, _ type: DayType?) -> Cell
/Users/admin/builder/spi-builder-workspace/Sources/KVKCalendar/ScrollWeekView.swift:15:6: error: 'Binding' is only available in macOS 10.15 or newer
11 | @available(iOS 16.0, *)
12 |
13 | public struct ScrollWeekWrapper<Cell: View>: UIViewControllerRepresentable {
| `- note: add '@available' attribute to enclosing generic struct
14 | @Binding private var date: Date
15 | @Binding private var style: Style
| `- error: 'Binding' is only available in macOS 10.15 or newer
16 | @ViewBuilder private var content: (_ date: Date?, _ type: DayType?) -> Cell
17 | private let view: ScrollWeekView
/Users/admin/builder/spi-builder-workspace/Sources/KVKCalendar/ScrollWeekView.swift:16:63: error: cannot find type 'DayType' in scope
14 | @Binding private var date: Date
15 | @Binding private var style: Style
16 | @ViewBuilder private var content: (_ date: Date?, _ type: DayType?) -> Cell
| `- error: cannot find type 'DayType' in scope
17 | private let view: ScrollWeekView
18 |
/Users/admin/builder/spi-builder-workspace/Sources/KVKCalendar/ScrollWeekView.swift:16:6: error: 'ViewBuilder' is only available in macOS 10.15 or newer
11 | @available(iOS 16.0, *)
12 |
13 | public struct ScrollWeekWrapper<Cell: View>: UIViewControllerRepresentable {
| `- note: add '@available' attribute to enclosing generic struct
14 | @Binding private var date: Date
15 | @Binding private var style: Style
16 | @ViewBuilder private var content: (_ date: Date?, _ type: DayType?) -> Cell
| `- error: 'ViewBuilder' is only available in macOS 10.15 or newer
17 | private let view: ScrollWeekView
18 |
/Users/admin/builder/spi-builder-workspace/Sources/KVKCalendar/ScrollWeekView.swift:21:24: error: cannot find type 'Style' in scope
19 | public init(
20 | date: Binding<Date>,
21 | style: Binding<Style>,
| `- error: cannot find type 'Style' in scope
22 | @ViewBuilder cellContent: @escaping (
23 | _ date: Date?,
/Users/admin/builder/spi-builder-workspace/Sources/KVKCalendar/ScrollWeekView.swift:24:21: error: cannot find type 'DayType' in scope
22 | @ViewBuilder cellContent: @escaping (
23 | _ date: Date?,
24 | _ type: DayType?
| `- error: cannot find type 'DayType' in scope
25 | ) -> Cell = { _, _ in EmptyView() }
26 | ) {
/Users/admin/builder/spi-builder-workspace/Sources/KVKCalendar/ScrollWeekView.swift:22:9: error: result builder attribute 'ViewBuilder' can only be applied to a parameter of function type
20 | date: Binding<Date>,
21 | style: Binding<Style>,
22 | @ViewBuilder cellContent: @escaping (
| `- error: result builder attribute 'ViewBuilder' can only be applied to a parameter of function type
23 | _ date: Date?,
24 | _ type: DayType?
/Users/admin/builder/spi-builder-workspace/Sources/KVKCalendar/ScrollWeekView.swift:20:15: error: 'Binding' is only available in macOS 10.15 or newer
11 | @available(iOS 16.0, *)
12 |
13 | public struct ScrollWeekWrapper<Cell: View>: UIViewControllerRepresentable {
| `- note: add '@available' attribute to enclosing generic struct
14 | @Binding private var date: Date
15 | @Binding private var style: Style
:
17 | private let view: ScrollWeekView
18 |
19 | public init(
| `- note: add '@available' attribute to enclosing initializer
20 | date: Binding<Date>,
| `- error: 'Binding' is only available in macOS 10.15 or newer
21 | style: Binding<Style>,
22 | @ViewBuilder cellContent: @escaping (
/Users/admin/builder/spi-builder-workspace/Sources/KVKCalendar/ScrollWeekView.swift:22:10: error: 'ViewBuilder' is only available in macOS 10.15 or newer
11 | @available(iOS 16.0, *)
12 |
13 | public struct ScrollWeekWrapper<Cell: View>: UIViewControllerRepresentable {
| `- note: add '@available' attribute to enclosing generic struct
14 | @Binding private var date: Date
15 | @Binding private var style: Style
:
17 | private let view: ScrollWeekView
18 |
19 | public init(
| `- note: add '@available' attribute to enclosing initializer
20 | date: Binding<Date>,
21 | style: Binding<Style>,
22 | @ViewBuilder cellContent: @escaping (
| `- error: 'ViewBuilder' is only available in macOS 10.15 or newer
23 | _ date: Date?,
24 | _ type: DayType?
/Users/admin/builder/spi-builder-workspace/Sources/KVKCalendar/ScrollWeekView.swift:36:64: error: cannot find type 'UIViewController' in scope
34 | }
35 |
36 | public func makeUIViewController(context: Context) -> some UIViewController {
| `- error: cannot find type 'UIViewController' in scope
37 | view.delegate = context.coordinator
38 | view.dataSource = context.coordinator
/Users/admin/builder/spi-builder-workspace/Sources/KVKCalendar/ScrollWeekView.swift:36:59: error: 'some' types are only permitted in properties, subscripts, and functions
34 | }
35 |
36 | public func makeUIViewController(context: Context) -> some UIViewController {
| `- error: 'some' types are only permitted in properties, subscripts, and functions
37 | view.delegate = context.coordinator
38 | view.dataSource = context.coordinator
/Users/admin/builder/spi-builder-workspace/Sources/KVKCalendar/ScrollWeekView.swift:36:47: error: cannot find type 'Context' in scope
34 | }
35 |
36 | public func makeUIViewController(context: Context) -> some UIViewController {
| `- error: cannot find type 'Context' in scope
37 | view.delegate = context.coordinator
38 | view.dataSource = context.coordinator
/Users/admin/builder/spi-builder-workspace/Sources/KVKCalendar/ScrollWeekView.swift:43:29: error: cannot find type 'UIViewControllerType' in scope
41 |
42 | public func updateUIViewController(
43 | _ uiViewController: UIViewControllerType,
| `- error: cannot find type 'UIViewControllerType' in scope
44 | context: Context
45 | ) {
/Users/admin/builder/spi-builder-workspace/Sources/KVKCalendar/ScrollWeekView.swift:44:18: error: cannot find type 'Context' in scope
42 | public func updateUIViewController(
43 | _ uiViewController: UIViewControllerType,
44 | context: Context
| `- error: cannot find type 'Context' in scope
45 | ) {
46 | view.setDate(date)
/Users/admin/builder/spi-builder-workspace/Sources/KVKCalendar/ScrollWeekView.swift:54:41: error: cannot find type 'CalendarDelegate' in scope
52 |
53 | @available(iOS 16.0, *)
54 | public class Coordinator: NSObject, CalendarDelegate, CalendarDataSource {
| `- error: cannot find type 'CalendarDelegate' in scope
55 | private let parent: ScrollWeekWrapper
56 |
/Users/admin/builder/spi-builder-workspace/Sources/KVKCalendar/ScrollWeekView.swift:54:59: error: cannot find type 'CalendarDataSource' in scope
52 |
53 | @available(iOS 16.0, *)
54 | public class Coordinator: NSObject, CalendarDelegate, CalendarDataSource {
| `- error: cannot find type 'CalendarDataSource' in scope
55 | private let parent: ScrollWeekWrapper
56 |
/Users/admin/builder/spi-builder-workspace/Sources/KVKCalendar/ScrollWeekView.swift:62:68: error: cannot find type 'Event' in scope
60 | }
61 |
62 | public func eventsForCalendar(systemEvents: [EKEvent]) -> [Event] {
| `- error: cannot find type 'Event' in scope
63 | []
64 | }
/Users/admin/builder/spi-builder-workspace/Sources/KVKCalendar/ScrollWeekView.swift:68:19: error: cannot find type 'CalendarType' in scope
66 | public func didSelectDates(
67 | _ dates: [Date],
68 | type: CalendarType,
| `- error: cannot find type 'CalendarType' in scope
69 | frame: CGRect?
70 | ) {
/Users/admin/builder/spi-builder-workspace/Sources/KVKCalendar/ScrollWeekView.swift:75:22: error: cannot find type 'Style' in scope
73 |
74 | public func didUpdateStyle(
75 | _ style: Style,
| `- error: cannot find type 'Style' in scope
76 | type: CalendarType
77 | ) {
/Users/admin/builder/spi-builder-workspace/Sources/KVKCalendar/ScrollWeekView.swift:76:19: error: cannot find type 'CalendarType' in scope
74 | public func didUpdateStyle(
75 | _ style: Style,
76 | type: CalendarType
| `- error: cannot find type 'CalendarType' in scope
77 | ) {
78 | parent.style = style
/Users/admin/builder/spi-builder-workspace/Sources/KVKCalendar/ScrollWeekView.swift:82:24: error: cannot find type 'CellParameter' in scope
80 |
81 | public func dequeueCell<T>(
82 | parameter: CellParameter,
| `- error: cannot find type 'CellParameter' in scope
83 | type: CalendarType,
84 | view: T,
/Users/admin/builder/spi-builder-workspace/Sources/KVKCalendar/ScrollWeekView.swift:83:19: error: cannot find type 'CalendarType' in scope
81 | public func dequeueCell<T>(
82 | parameter: CellParameter,
83 | type: CalendarType,
| `- error: cannot find type 'CalendarType' in scope
84 | view: T,
85 | indexPath: IndexPath
/Users/admin/builder/spi-builder-workspace/Sources/KVKCalendar/ScrollWeekView.swift:86:19: error: cannot find type 'KVKCalendarCellProtocol' in scope
84 | view: T,
85 | indexPath: IndexPath
86 | ) -> (any KVKCalendarCellProtocol)? where T: UIScrollView {
| `- error: cannot find type 'KVKCalendarCellProtocol' in scope
87 | if parent.content(parameter.date, parameter.type) is EmptyView {
88 | nil
/Users/admin/builder/spi-builder-workspace/Sources/KVKCalendar/ScrollWeekView.swift:86:54: error: cannot find type 'UIScrollView' in scope
84 | view: T,
85 | indexPath: IndexPath
86 | ) -> (any KVKCalendarCellProtocol)? where T: UIScrollView {
| `- error: cannot find type 'UIScrollView' in scope
87 | if parent.content(parameter.date, parameter.type) is EmptyView {
88 | nil
/Users/admin/builder/spi-builder-workspace/Sources/KVKCalendar/ScrollWeekView.swift:13:46: error: cannot find type 'UIViewControllerRepresentable' in scope
11 | @available(iOS 16.0, *)
12 |
13 | public struct ScrollWeekWrapper<Cell: View>: UIViewControllerRepresentable {
| `- error: cannot find type 'UIViewControllerRepresentable' in scope
14 | @Binding private var date: Date
15 | @Binding private var style: Style
/Users/admin/builder/spi-builder-workspace/Sources/KVKCalendar/ScrollWeekView.swift:13:39: error: 'View' is only available in macOS 10.15 or newer
11 | @available(iOS 16.0, *)
12 |
13 | public struct ScrollWeekWrapper<Cell: View>: UIViewControllerRepresentable {
| | `- error: 'View' is only available in macOS 10.15 or newer
| `- note: add '@available' attribute to enclosing generic struct
14 | @Binding private var date: Date
15 | @Binding private var style: Style
/Users/admin/builder/spi-builder-workspace/Sources/KVKCalendar/ScrollWeekView.swift:104:53: error: cannot find 'Style' in scope
102 | #Preview {
103 | @Previewable @State var date = Date()
104 | ScrollWeekWrapper(date: $date, style: .constant(Style()))
| `- error: cannot find 'Style' in scope
105 | }
106 |
/Users/admin/builder/spi-builder-workspace/Sources/KVKCalendar/ScrollWeekView.swift:104:44: error: cannot infer contextual base in reference to member 'constant'
102 | #Preview {
103 | @Previewable @State var date = Date()
104 | ScrollWeekWrapper(date: $date, style: .constant(Style()))
| `- error: cannot infer contextual base in reference to member 'constant'
105 | }
106 |
/Users/admin/builder/spi-builder-workspace/Sources/KVKCalendar/ScrollWeekView.swift:104:5: error: generic parameter 'Cell' could not be inferred
11 | @available(iOS 16.0, *)
12 |
13 | public struct ScrollWeekWrapper<Cell: View>: UIViewControllerRepresentable {
| `- note: 'Cell' declared as parameter to type 'ScrollWeekWrapper'
14 | @Binding private var date: Date
15 | @Binding private var style: Style
:
102 | #Preview {
103 | @Previewable @State var date = Date()
104 | ScrollWeekWrapper(date: $date, style: .constant(Style()))
| |- error: generic parameter 'Cell' could not be inferred
| `- note: explicitly specify the generic arguments to fix this issue
105 | }
106 |
/Users/admin/builder/spi-builder-workspace/Sources/KVKCalendar/ScrollWeekView.swift:107:28: error: cannot find type 'UIViewController' in scope
105 | }
106 |
107 | open class ScrollWeekView: UIViewController {
| `- error: cannot find type 'UIViewController' in scope
108 | private var style: Style
109 | private var dayData: DayData
/Users/admin/builder/spi-builder-workspace/Sources/KVKCalendar/ScrollWeekView.swift:108:24: error: cannot find type 'Style' in scope
106 |
107 | open class ScrollWeekView: UIViewController {
108 | private var style: Style
| `- error: cannot find type 'Style' in scope
109 | private var dayData: DayData
110 | private var scrollView: ScrollableWeekView
/Users/admin/builder/spi-builder-workspace/Sources/KVKCalendar/ScrollWeekView.swift:109:26: error: cannot find type 'DayData' in scope
107 | open class ScrollWeekView: UIViewController {
108 | private var style: Style
109 | private var dayData: DayData
| `- error: cannot find type 'DayData' in scope
110 | private var scrollView: ScrollableWeekView
111 |
/Users/admin/builder/spi-builder-workspace/Sources/KVKCalendar/ScrollWeekView.swift:110:29: error: cannot find type 'ScrollableWeekView' in scope
108 | private var style: Style
109 | private var dayData: DayData
110 | private var scrollView: ScrollableWeekView
| `- error: cannot find type 'ScrollableWeekView' in scope
111 |
112 | public weak var delegate: CalendarDelegate?
/Users/admin/builder/spi-builder-workspace/Sources/KVKCalendar/ScrollWeekView.swift:112:31: error: cannot find type 'CalendarDelegate' in scope
110 | private var scrollView: ScrollableWeekView
111 |
112 | public weak var delegate: CalendarDelegate?
| `- error: cannot find type 'CalendarDelegate' in scope
113 | public weak var dataSource: CalendarDataSource?
114 |
/Users/admin/builder/spi-builder-workspace/Sources/KVKCalendar/ScrollWeekView.swift:113:33: error: cannot find type 'CalendarDataSource' in scope
111 |
112 | public weak var delegate: CalendarDelegate?
113 | public weak var dataSource: CalendarDataSource?
| `- error: cannot find type 'CalendarDataSource' in scope
114 |
115 | public init(date: Date, style: Style) {
/Users/admin/builder/spi-builder-workspace/Sources/KVKCalendar/ScrollWeekView.swift:115:36: error: cannot find type 'Style' in scope
113 | public weak var dataSource: CalendarDataSource?
114 |
115 | public init(date: Date, style: Style) {
| `- error: cannot find type 'Style' in scope
116 | var styleProxy = style
117 | styleProxy.timeline.widthTime = 0
/Users/admin/builder/spi-builder-workspace/Sources/KVKCalendar/ScrollWeekView.swift:138:24: error: method does not override any method from its superclass
136 | }
137 |
138 | open override func viewDidLoad() {
| `- error: method does not override any method from its superclass
139 | super.viewDidLoad()
140 | view.addSubview(scrollView)
/Users/admin/builder/spi-builder-workspace/Sources/KVKCalendar/ScrollWeekView.swift:151:24: error: method does not override any method from its superclass
149 | }
150 |
151 | open override func viewDidLayoutSubviews() {
| `- error: method does not override any method from its superclass
152 | scrollView.setUI(reload: true)
153 | }
/Users/admin/builder/spi-builder-workspace/Sources/KVKCalendar/ScrollWeekView.swift:178:27: error: cannot find type 'DisplayDataSource' in scope
176 | }
177 |
178 | extension ScrollWeekView: DisplayDataSource {
| `- error: cannot find type 'DisplayDataSource' in scope
179 | public func dequeueCell<T>(
180 | parameter: CellParameter,
/Users/admin/builder/spi-builder-workspace/Sources/KVKCalendar/ScrollWeekView.swift:180:20: error: cannot find type 'CellParameter' in scope
178 | extension ScrollWeekView: DisplayDataSource {
179 | public func dequeueCell<T>(
180 | parameter: CellParameter,
| `- error: cannot find type 'CellParameter' in scope
181 | type: CalendarType,
182 | view: T,
/Users/admin/builder/spi-builder-workspace/Sources/KVKCalendar/ScrollWeekView.swift:181:15: error: cannot find type 'CalendarType' in scope
179 | public func dequeueCell<T>(
180 | parameter: CellParameter,
181 | type: CalendarType,
| `- error: cannot find type 'CalendarType' in scope
182 | view: T,
183 | indexPath: IndexPath
/Users/admin/builder/spi-builder-workspace/Sources/KVKCalendar/ScrollWeekView.swift:184:15: error: cannot find type 'KVKCalendarCellProtocol' in scope
182 | view: T,
183 | indexPath: IndexPath
184 | ) -> (any KVKCalendarCellProtocol)? where T: UIScrollView {
| `- error: cannot find type 'KVKCalendarCellProtocol' in scope
185 | dataSource?.dequeueCell(
186 | parameter: parameter,
/Users/admin/builder/spi-builder-workspace/Sources/KVKCalendar/ScrollWeekView.swift:184:50: error: cannot find type 'UIScrollView' in scope
182 | view: T,
183 | indexPath: IndexPath
184 | ) -> (any KVKCalendarCellProtocol)? where T: UIScrollView {
| `- error: cannot find type 'UIScrollView' in scope
185 | dataSource?.dequeueCell(
186 | parameter: parameter,
/Users/admin/builder/spi-builder-workspace/Sources/KVKCalendar/ScrollWeekView.swift:30:16: error: value of optional type 'ScrollWeekView?' must be unwrapped to a value of type 'ScrollWeekView'
28 | _style = style
29 | self.content = cellContent
30 | view = ScrollWeekView(
| |- error: value of optional type 'ScrollWeekView?' must be unwrapped to a value of type 'ScrollWeekView'
| |- note: coalesce using '??' to provide a default when the optional value contains 'nil'
| `- note: force-unwrap using '!' to abort execution if the optional value contains 'nil'
31 | date: date.wrappedValue,
32 | style: style.wrappedValue
/Users/admin/builder/spi-builder-workspace/Sources/KVKCalendar/ScrollWeekView.swift:30:30: error: extra arguments at positions #1, #2 in call
28 | _style = style
29 | self.content = cellContent
30 | view = ScrollWeekView(
| `- error: extra arguments at positions #1, #2 in call
31 | date: date.wrappedValue,
32 | style: style.wrappedValue
:
132 | }
133 |
134 | required public init?(coder: NSCoder) {
| `- note: 'init(coder:)' declared here
135 | fatalError("init(coder:) has not been implemented")
136 | }
/Users/admin/builder/spi-builder-workspace/Sources/KVKCalendar/ScrollWeekView.swift:31:13: error: missing argument for parameter 'coder' in call
29 | self.content = cellContent
30 | view = ScrollWeekView(
31 | date: date.wrappedValue,
| `- error: missing argument for parameter 'coder' in call
32 | style: style.wrappedValue
33 | )
:
132 | }
133 |
134 | required public init?(coder: NSCoder) {
| `- note: 'init(coder:)' declared here
135 | fatalError("init(coder:) has not been implemented")
136 | }
/Users/admin/builder/spi-builder-workspace/Sources/KVKCalendar/ScrollWeekView.swift:71:13: error: setter for 'date' is only available in macOS 10.15 or newer
52 |
53 | @available(iOS 16.0, *)
54 | public class Coordinator: NSObject, CalendarDelegate, CalendarDataSource {
| `- note: add '@available' attribute to enclosing class
55 | private let parent: ScrollWeekWrapper
56 |
:
64 | }
65 |
66 | public func didSelectDates(
| `- note: add '@available' attribute to enclosing instance method
67 | _ dates: [Date],
68 | type: CalendarType,
69 | frame: CGRect?
70 | ) {
71 | parent.date = dates.first ?? Date()
| |- error: setter for 'date' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
72 | }
73 |
/Users/admin/builder/spi-builder-workspace/Sources/KVKCalendar/ScrollWeekView.swift:92:53: error: cannot find 'UIHostingConfiguration' in scope
90 | (view as? UICollectionView)?.kvkDequeueCell(
91 | indexPath: indexPath) { (cell: UICollectionViewCell) in
92 | cell.contentConfiguration = UIHostingConfiguration {
| `- error: cannot find 'UIHostingConfiguration' in scope
93 | parent.content(parameter.date, parameter.type)
94 | }
/Users/admin/builder/spi-builder-workspace/Sources/KVKCalendar/ScrollWeekView.swift:120:20: error: cannot find 'CalendarData' in scope
118 | styleProxy.timeline.offsetTimeX = 0
119 | styleProxy.timeline.offsetLineLeft = 0
120 | let data = CalendarData(date: date, years: 1, style: styleProxy)
| `- error: cannot find 'CalendarData' in scope
121 | self.style = styleProxy
122 | dayData = DayData(data: data, startDay: styleProxy.startWeekDay)
/Users/admin/builder/spi-builder-workspace/Sources/KVKCalendar/ScrollWeekView.swift:122:19: error: cannot find 'DayData' in scope
120 | let data = CalendarData(date: date, years: 1, style: styleProxy)
121 | self.style = styleProxy
122 | dayData = DayData(data: data, startDay: styleProxy.startWeekDay)
| `- error: cannot find 'DayData' in scope
123 | scrollView = ScrollableWeekView(
124 | parameters: .init(
/Users/admin/builder/spi-builder-workspace/Sources/KVKCalendar/ScrollWeekView.swift:123:22: error: cannot find 'ScrollableWeekView' in scope
121 | self.style = styleProxy
122 | dayData = DayData(data: data, startDay: styleProxy.startWeekDay)
123 | scrollView = ScrollableWeekView(
| `- error: cannot find 'ScrollableWeekView' in scope
124 | parameters: .init(
125 | weeks: dayData.daysBySection,
/Users/admin/builder/spi-builder-workspace/Sources/KVKCalendar/ScrollWeekView.swift:124:26: error: cannot infer contextual base in reference to member 'init'
122 | dayData = DayData(data: data, startDay: styleProxy.startWeekDay)
123 | scrollView = ScrollableWeekView(
124 | parameters: .init(
| `- error: cannot infer contextual base in reference to member 'init'
125 | weeks: dayData.daysBySection,
126 | date: dayData.date,
/Users/admin/builder/spi-builder-workspace/Sources/KVKCalendar/ScrollWeekView.swift:127:24: error: cannot infer contextual base in reference to member 'week'
125 | weeks: dayData.daysBySection,
126 | date: dayData.date,
127 | type: .week,
| `- error: cannot infer contextual base in reference to member 'week'
128 | style: styleProxy
129 | )
/Users/admin/builder/spi-builder-workspace/Sources/KVKCalendar/ScrollWeekView.swift:131:9: error: 'super' cannot be used in class 'ScrollWeekView' because it has no superclass
129 | )
130 | )
131 | super.init(nibName: nil, bundle: nil)
| `- error: 'super' cannot be used in class 'ScrollWeekView' because it has no superclass
132 | }
133 |
/Users/admin/builder/spi-builder-workspace/Sources/KVKCalendar/ScrollWeekView.swift:131:29: error: 'nil' requires a contextual type
129 | )
130 | )
131 | super.init(nibName: nil, bundle: nil)
| `- error: 'nil' requires a contextual type
132 | }
133 |
/Users/admin/builder/spi-builder-workspace/Sources/KVKCalendar/ScrollWeekView.swift:131:42: error: 'nil' requires a contextual type
129 | )
130 | )
131 | super.init(nibName: nil, bundle: nil)
| `- error: 'nil' requires a contextual type
132 | }
133 |
/Users/admin/builder/spi-builder-workspace/Sources/KVKCalendar/ScrollWeekView.swift:139:9: error: 'super' cannot be used in class 'ScrollWeekView' because it has no superclass
137 |
138 | open override func viewDidLoad() {
139 | super.viewDidLoad()
| `- error: 'super' cannot be used in class 'ScrollWeekView' because it has no superclass
140 | view.addSubview(scrollView)
141 | scrollView.translatesAutoresizingMaskIntoConstraints = false
/Users/admin/builder/spi-builder-workspace/Sources/KVKCalendar/ScrollWeekView.swift:140:9: error: cannot find 'view' in scope
138 | open override func viewDidLoad() {
139 | super.viewDidLoad()
140 | view.addSubview(scrollView)
| `- error: cannot find 'view' in scope
141 | scrollView.translatesAutoresizingMaskIntoConstraints = false
142 | let top = scrollView.topAnchor.constraint(equalTo: view.topAnchor)
/Users/admin/builder/spi-builder-workspace/Sources/KVKCalendar/ScrollWeekView.swift:142:60: error: cannot find 'view' in scope
140 | view.addSubview(scrollView)
141 | scrollView.translatesAutoresizingMaskIntoConstraints = false
142 | let top = scrollView.topAnchor.constraint(equalTo: view.topAnchor)
| `- error: cannot find 'view' in scope
143 | let leading = scrollView.leadingAnchor.constraint(equalTo: view.leadingAnchor)
144 | let trailing = scrollView.trailingAnchor.constraint(equalTo: view.trailingAnchor)
/Users/admin/builder/spi-builder-workspace/Sources/KVKCalendar/ScrollWeekView.swift:143:68: error: cannot find 'view' in scope
141 | scrollView.translatesAutoresizingMaskIntoConstraints = false
142 | let top = scrollView.topAnchor.constraint(equalTo: view.topAnchor)
143 | let leading = scrollView.leadingAnchor.constraint(equalTo: view.leadingAnchor)
| `- error: cannot find 'view' in scope
144 | let trailing = scrollView.trailingAnchor.constraint(equalTo: view.trailingAnchor)
145 | let bottom = scrollView.bottomAnchor.constraint(equalTo: view.bottomAnchor)
/Users/admin/builder/spi-builder-workspace/Sources/KVKCalendar/ScrollWeekView.swift:144:70: error: cannot find 'view' in scope
142 | let top = scrollView.topAnchor.constraint(equalTo: view.topAnchor)
143 | let leading = scrollView.leadingAnchor.constraint(equalTo: view.leadingAnchor)
144 | let trailing = scrollView.trailingAnchor.constraint(equalTo: view.trailingAnchor)
| `- error: cannot find 'view' in scope
145 | let bottom = scrollView.bottomAnchor.constraint(equalTo: view.bottomAnchor)
146 | NSLayoutConstraint.activate([top, leading, trailing, bottom])
/Users/admin/builder/spi-builder-workspace/Sources/KVKCalendar/ScrollWeekView.swift:145:66: error: cannot find 'view' in scope
143 | let leading = scrollView.leadingAnchor.constraint(equalTo: view.leadingAnchor)
144 | let trailing = scrollView.trailingAnchor.constraint(equalTo: view.trailingAnchor)
145 | let bottom = scrollView.bottomAnchor.constraint(equalTo: view.bottomAnchor)
| `- error: cannot find 'view' in scope
146 | NSLayoutConstraint.activate([top, leading, trailing, bottom])
147 | setupScrollableWeekView()
/Users/admin/builder/spi-builder-workspace/Sources/KVKCalendar/ScrollWeekView.swift:164:51: error: cannot infer type of closure parameter 'date' without a type annotation
162 | private func setupScrollableWeekView() {
163 | scrollView.dataSource = self
164 | scrollView.didSelectDate = { [weak self] (date, type) in
| `- error: cannot infer type of closure parameter 'date' without a type annotation
165 | guard let self else { return }
166 | if let date {
/Users/admin/builder/spi-builder-workspace/Sources/KVKCalendar/ScrollWeekView.swift:164:57: error: cannot infer type of closure parameter 'type' without a type annotation
162 | private func setupScrollableWeekView() {
163 | scrollView.dataSource = self
164 | scrollView.didSelectDate = { [weak self] (date, type) in
| `- error: cannot infer type of closure parameter 'type' without a type annotation
165 | guard let self else { return }
166 | if let date {
/Users/admin/builder/spi-builder-workspace/Sources/KVKCalendar/ScrollWeekView.swift:171:52: error: cannot infer type of closure parameter 'type' without a type annotation
169 | }
170 | }
171 | scrollView.didUpdateStyle = { [weak self] (type) in
| `- error: cannot infer type of closure parameter 'type' without a type annotation
172 | guard let self else { return }
173 | delegate?.didUpdateStyle(style, type: type)
/Users/admin/builder/spi-builder-workspace/Sources/KVKCalendar/ScrollWeekView.swift:103:6: error: 'Previewable()' is only available in macOS 14.0 or newer
101 | @available(iOS 17.0, *)
102 | #Preview {
103 | @Previewable @State var date = Date()
| |- error: 'Previewable()' is only available in macOS 14.0 or newer
| `- note: add 'if #available' version check
104 | ScrollWeekWrapper(date: $date, style: .constant(Style()))
105 | }
[59/60] Compiling KVKCalendar ScrollableWeekView.swift
/Users/admin/builder/spi-builder-workspace/Sources/KVKCalendar/ScrollWeekView.swift:15:33: error: cannot find type 'Style' in scope
13 | public struct ScrollWeekWrapper<Cell: View>: UIViewControllerRepresentable {
14 | @Binding private var date: Date
15 | @Binding private var style: Style
| `- error: cannot find type 'Style' in scope
16 | @ViewBuilder private var content: (_ date: Date?, _ type: DayType?) -> Cell
17 | private let view: ScrollWeekView
/Users/admin/builder/spi-builder-workspace/Sources/KVKCalendar/ScrollWeekView.swift:14:6: error: 'Binding' is only available in macOS 10.15 or newer
11 | @available(iOS 16.0, *)
12 |
13 | public struct ScrollWeekWrapper<Cell: View>: UIViewControllerRepresentable {
| `- note: add '@available' attribute to enclosing generic struct
14 | @Binding private var date: Date
| `- error: 'Binding' is only available in macOS 10.15 or newer
15 | @Binding private var style: Style
16 | @ViewBuilder private var content: (_ date: Date?, _ type: DayType?) -> Cell
/Users/admin/builder/spi-builder-workspace/Sources/KVKCalendar/ScrollWeekView.swift:15:6: error: 'Binding' is only available in macOS 10.15 or newer
11 | @available(iOS 16.0, *)
12 |
13 | public struct ScrollWeekWrapper<Cell: View>: UIViewControllerRepresentable {
| `- note: add '@available' attribute to enclosing generic struct
14 | @Binding private var date: Date
15 | @Binding private var style: Style
| `- error: 'Binding' is only available in macOS 10.15 or newer
16 | @ViewBuilder private var content: (_ date: Date?, _ type: DayType?) -> Cell
17 | private let view: ScrollWeekView
/Users/admin/builder/spi-builder-workspace/Sources/KVKCalendar/ScrollWeekView.swift:16:63: error: cannot find type 'DayType' in scope
14 | @Binding private var date: Date
15 | @Binding private var style: Style
16 | @ViewBuilder private var content: (_ date: Date?, _ type: DayType?) -> Cell
| `- error: cannot find type 'DayType' in scope
17 | private let view: ScrollWeekView
18 |
/Users/admin/builder/spi-builder-workspace/Sources/KVKCalendar/ScrollWeekView.swift:16:6: error: 'ViewBuilder' is only available in macOS 10.15 or newer
11 | @available(iOS 16.0, *)
12 |
13 | public struct ScrollWeekWrapper<Cell: View>: UIViewControllerRepresentable {
| `- note: add '@available' attribute to enclosing generic struct
14 | @Binding private var date: Date
15 | @Binding private var style: Style
16 | @ViewBuilder private var content: (_ date: Date?, _ type: DayType?) -> Cell
| `- error: 'ViewBuilder' is only available in macOS 10.15 or newer
17 | private let view: ScrollWeekView
18 |
/Users/admin/builder/spi-builder-workspace/Sources/KVKCalendar/ScrollWeekView.swift:21:24: error: cannot find type 'Style' in scope
19 | public init(
20 | date: Binding<Date>,
21 | style: Binding<Style>,
| `- error: cannot find type 'Style' in scope
22 | @ViewBuilder cellContent: @escaping (
23 | _ date: Date?,
/Users/admin/builder/spi-builder-workspace/Sources/KVKCalendar/ScrollWeekView.swift:24:21: error: cannot find type 'DayType' in scope
22 | @ViewBuilder cellContent: @escaping (
23 | _ date: Date?,
24 | _ type: DayType?
| `- error: cannot find type 'DayType' in scope
25 | ) -> Cell = { _, _ in EmptyView() }
26 | ) {
/Users/admin/builder/spi-builder-workspace/Sources/KVKCalendar/ScrollWeekView.swift:22:9: error: result builder attribute 'ViewBuilder' can only be applied to a parameter of function type
20 | date: Binding<Date>,
21 | style: Binding<Style>,
22 | @ViewBuilder cellContent: @escaping (
| `- error: result builder attribute 'ViewBuilder' can only be applied to a parameter of function type
23 | _ date: Date?,
24 | _ type: DayType?
/Users/admin/builder/spi-builder-workspace/Sources/KVKCalendar/ScrollWeekView.swift:20:15: error: 'Binding' is only available in macOS 10.15 or newer
11 | @available(iOS 16.0, *)
12 |
13 | public struct ScrollWeekWrapper<Cell: View>: UIViewControllerRepresentable {
| `- note: add '@available' attribute to enclosing generic struct
14 | @Binding private var date: Date
15 | @Binding private var style: Style
:
17 | private let view: ScrollWeekView
18 |
19 | public init(
| `- note: add '@available' attribute to enclosing initializer
20 | date: Binding<Date>,
| `- error: 'Binding' is only available in macOS 10.15 or newer
21 | style: Binding<Style>,
22 | @ViewBuilder cellContent: @escaping (
/Users/admin/builder/spi-builder-workspace/Sources/KVKCalendar/ScrollWeekView.swift:22:10: error: 'ViewBuilder' is only available in macOS 10.15 or newer
11 | @available(iOS 16.0, *)
12 |
13 | public struct ScrollWeekWrapper<Cell: View>: UIViewControllerRepresentable {
| `- note: add '@available' attribute to enclosing generic struct
14 | @Binding private var date: Date
15 | @Binding private var style: Style
:
17 | private let view: ScrollWeekView
18 |
19 | public init(
| `- note: add '@available' attribute to enclosing initializer
20 | date: Binding<Date>,
21 | style: Binding<Style>,
22 | @ViewBuilder cellContent: @escaping (
| `- error: 'ViewBuilder' is only available in macOS 10.15 or newer
23 | _ date: Date?,
24 | _ type: DayType?
/Users/admin/builder/spi-builder-workspace/Sources/KVKCalendar/ScrollWeekView.swift:36:64: error: cannot find type 'UIViewController' in scope
34 | }
35 |
36 | public func makeUIViewController(context: Context) -> some UIViewController {
| `- error: cannot find type 'UIViewController' in scope
37 | view.delegate = context.coordinator
38 | view.dataSource = context.coordinator
/Users/admin/builder/spi-builder-workspace/Sources/KVKCalendar/ScrollWeekView.swift:36:59: error: 'some' types are only permitted in properties, subscripts, and functions
34 | }
35 |
36 | public func makeUIViewController(context: Context) -> some UIViewController {
| `- error: 'some' types are only permitted in properties, subscripts, and functions
37 | view.delegate = context.coordinator
38 | view.dataSource = context.coordinator
/Users/admin/builder/spi-builder-workspace/Sources/KVKCalendar/ScrollWeekView.swift:36:47: error: cannot find type 'Context' in scope
34 | }
35 |
36 | public func makeUIViewController(context: Context) -> some UIViewController {
| `- error: cannot find type 'Context' in scope
37 | view.delegate = context.coordinator
38 | view.dataSource = context.coordinator
/Users/admin/builder/spi-builder-workspace/Sources/KVKCalendar/ScrollWeekView.swift:43:29: error: cannot find type 'UIViewControllerType' in scope
41 |
42 | public func updateUIViewController(
43 | _ uiViewController: UIViewControllerType,
| `- error: cannot find type 'UIViewControllerType' in scope
44 | context: Context
45 | ) {
/Users/admin/builder/spi-builder-workspace/Sources/KVKCalendar/ScrollWeekView.swift:44:18: error: cannot find type 'Context' in scope
42 | public func updateUIViewController(
43 | _ uiViewController: UIViewControllerType,
44 | context: Context
| `- error: cannot find type 'Context' in scope
45 | ) {
46 | view.setDate(date)
/Users/admin/builder/spi-builder-workspace/Sources/KVKCalendar/ScrollWeekView.swift:54:41: error: cannot find type 'CalendarDelegate' in scope
52 |
53 | @available(iOS 16.0, *)
54 | public class Coordinator: NSObject, CalendarDelegate, CalendarDataSource {
| `- error: cannot find type 'CalendarDelegate' in scope
55 | private let parent: ScrollWeekWrapper
56 |
/Users/admin/builder/spi-builder-workspace/Sources/KVKCalendar/ScrollWeekView.swift:54:59: error: cannot find type 'CalendarDataSource' in scope
52 |
53 | @available(iOS 16.0, *)
54 | public class Coordinator: NSObject, CalendarDelegate, CalendarDataSource {
| `- error: cannot find type 'CalendarDataSource' in scope
55 | private let parent: ScrollWeekWrapper
56 |
/Users/admin/builder/spi-builder-workspace/Sources/KVKCalendar/ScrollWeekView.swift:62:68: error: cannot find type 'Event' in scope
60 | }
61 |
62 | public func eventsForCalendar(systemEvents: [EKEvent]) -> [Event] {
| `- error: cannot find type 'Event' in scope
63 | []
64 | }
/Users/admin/builder/spi-builder-workspace/Sources/KVKCalendar/ScrollWeekView.swift:68:19: error: cannot find type 'CalendarType' in scope
66 | public func didSelectDates(
67 | _ dates: [Date],
68 | type: CalendarType,
| `- error: cannot find type 'CalendarType' in scope
69 | frame: CGRect?
70 | ) {
/Users/admin/builder/spi-builder-workspace/Sources/KVKCalendar/ScrollWeekView.swift:75:22: error: cannot find type 'Style' in scope
73 |
74 | public func didUpdateStyle(
75 | _ style: Style,
| `- error: cannot find type 'Style' in scope
76 | type: CalendarType
77 | ) {
/Users/admin/builder/spi-builder-workspace/Sources/KVKCalendar/ScrollWeekView.swift:76:19: error: cannot find type 'CalendarType' in scope
74 | public func didUpdateStyle(
75 | _ style: Style,
76 | type: CalendarType
| `- error: cannot find type 'CalendarType' in scope
77 | ) {
78 | parent.style = style
/Users/admin/builder/spi-builder-workspace/Sources/KVKCalendar/ScrollWeekView.swift:82:24: error: cannot find type 'CellParameter' in scope
80 |
81 | public func dequeueCell<T>(
82 | parameter: CellParameter,
| `- error: cannot find type 'CellParameter' in scope
83 | type: CalendarType,
84 | view: T,
/Users/admin/builder/spi-builder-workspace/Sources/KVKCalendar/ScrollWeekView.swift:83:19: error: cannot find type 'CalendarType' in scope
81 | public func dequeueCell<T>(
82 | parameter: CellParameter,
83 | type: CalendarType,
| `- error: cannot find type 'CalendarType' in scope
84 | view: T,
85 | indexPath: IndexPath
/Users/admin/builder/spi-builder-workspace/Sources/KVKCalendar/ScrollWeekView.swift:86:19: error: cannot find type 'KVKCalendarCellProtocol' in scope
84 | view: T,
85 | indexPath: IndexPath
86 | ) -> (any KVKCalendarCellProtocol)? where T: UIScrollView {
| `- error: cannot find type 'KVKCalendarCellProtocol' in scope
87 | if parent.content(parameter.date, parameter.type) is EmptyView {
88 | nil
/Users/admin/builder/spi-builder-workspace/Sources/KVKCalendar/ScrollWeekView.swift:86:54: error: cannot find type 'UIScrollView' in scope
84 | view: T,
85 | indexPath: IndexPath
86 | ) -> (any KVKCalendarCellProtocol)? where T: UIScrollView {
| `- error: cannot find type 'UIScrollView' in scope
87 | if parent.content(parameter.date, parameter.type) is EmptyView {
88 | nil
/Users/admin/builder/spi-builder-workspace/Sources/KVKCalendar/ScrollWeekView.swift:13:46: error: cannot find type 'UIViewControllerRepresentable' in scope
11 | @available(iOS 16.0, *)
12 |
13 | public struct ScrollWeekWrapper<Cell: View>: UIViewControllerRepresentable {
| `- error: cannot find type 'UIViewControllerRepresentable' in scope
14 | @Binding private var date: Date
15 | @Binding private var style: Style
/Users/admin/builder/spi-builder-workspace/Sources/KVKCalendar/ScrollWeekView.swift:13:39: error: 'View' is only available in macOS 10.15 or newer
11 | @available(iOS 16.0, *)
12 |
13 | public struct ScrollWeekWrapper<Cell: View>: UIViewControllerRepresentable {
| | `- error: 'View' is only available in macOS 10.15 or newer
| `- note: add '@available' attribute to enclosing generic struct
14 | @Binding private var date: Date
15 | @Binding private var style: Style
/Users/admin/builder/spi-builder-workspace/Sources/KVKCalendar/ScrollWeekView.swift:104:53: error: cannot find 'Style' in scope
102 | #Preview {
103 | @Previewable @State var date = Date()
104 | ScrollWeekWrapper(date: $date, style: .constant(Style()))
| `- error: cannot find 'Style' in scope
105 | }
106 |
/Users/admin/builder/spi-builder-workspace/Sources/KVKCalendar/ScrollWeekView.swift:104:44: error: cannot infer contextual base in reference to member 'constant'
102 | #Preview {
103 | @Previewable @State var date = Date()
104 | ScrollWeekWrapper(date: $date, style: .constant(Style()))
| `- error: cannot infer contextual base in reference to member 'constant'
105 | }
106 |
/Users/admin/builder/spi-builder-workspace/Sources/KVKCalendar/ScrollWeekView.swift:104:5: error: generic parameter 'Cell' could not be inferred
11 | @available(iOS 16.0, *)
12 |
13 | public struct ScrollWeekWrapper<Cell: View>: UIViewControllerRepresentable {
| `- note: 'Cell' declared as parameter to type 'ScrollWeekWrapper'
14 | @Binding private var date: Date
15 | @Binding private var style: Style
:
102 | #Preview {
103 | @Previewable @State var date = Date()
104 | ScrollWeekWrapper(date: $date, style: .constant(Style()))
| |- error: generic parameter 'Cell' could not be inferred
| `- note: explicitly specify the generic arguments to fix this issue
105 | }
106 |
/Users/admin/builder/spi-builder-workspace/Sources/KVKCalendar/ScrollWeekView.swift:107:28: error: cannot find type 'UIViewController' in scope
105 | }
106 |
107 | open class ScrollWeekView: UIViewController {
| `- error: cannot find type 'UIViewController' in scope
108 | private var style: Style
109 | private var dayData: DayData
/Users/admin/builder/spi-builder-workspace/Sources/KVKCalendar/ScrollWeekView.swift:108:24: error: cannot find type 'Style' in scope
106 |
107 | open class ScrollWeekView: UIViewController {
108 | private var style: Style
| `- error: cannot find type 'Style' in scope
109 | private var dayData: DayData
110 | private var scrollView: ScrollableWeekView
/Users/admin/builder/spi-builder-workspace/Sources/KVKCalendar/ScrollWeekView.swift:109:26: error: cannot find type 'DayData' in scope
107 | open class ScrollWeekView: UIViewController {
108 | private var style: Style
109 | private var dayData: DayData
| `- error: cannot find type 'DayData' in scope
110 | private var scrollView: ScrollableWeekView
111 |
/Users/admin/builder/spi-builder-workspace/Sources/KVKCalendar/ScrollWeekView.swift:110:29: error: cannot find type 'ScrollableWeekView' in scope
108 | private var style: Style
109 | private var dayData: DayData
110 | private var scrollView: ScrollableWeekView
| `- error: cannot find type 'ScrollableWeekView' in scope
111 |
112 | public weak var delegate: CalendarDelegate?
/Users/admin/builder/spi-builder-workspace/Sources/KVKCalendar/ScrollWeekView.swift:112:31: error: cannot find type 'CalendarDelegate' in scope
110 | private var scrollView: ScrollableWeekView
111 |
112 | public weak var delegate: CalendarDelegate?
| `- error: cannot find type 'CalendarDelegate' in scope
113 | public weak var dataSource: CalendarDataSource?
114 |
/Users/admin/builder/spi-builder-workspace/Sources/KVKCalendar/ScrollWeekView.swift:113:33: error: cannot find type 'CalendarDataSource' in scope
111 |
112 | public weak var delegate: CalendarDelegate?
113 | public weak var dataSource: CalendarDataSource?
| `- error: cannot find type 'CalendarDataSource' in scope
114 |
115 | public init(date: Date, style: Style) {
/Users/admin/builder/spi-builder-workspace/Sources/KVKCalendar/ScrollWeekView.swift:115:36: error: cannot find type 'Style' in scope
113 | public weak var dataSource: CalendarDataSource?
114 |
115 | public init(date: Date, style: Style) {
| `- error: cannot find type 'Style' in scope
116 | var styleProxy = style
117 | styleProxy.timeline.widthTime = 0
/Users/admin/builder/spi-builder-workspace/Sources/KVKCalendar/ScrollWeekView.swift:138:24: error: method does not override any method from its superclass
136 | }
137 |
138 | open override func viewDidLoad() {
| `- error: method does not override any method from its superclass
139 | super.viewDidLoad()
140 | view.addSubview(scrollView)
/Users/admin/builder/spi-builder-workspace/Sources/KVKCalendar/ScrollWeekView.swift:151:24: error: method does not override any method from its superclass
149 | }
150 |
151 | open override func viewDidLayoutSubviews() {
| `- error: method does not override any method from its superclass
152 | scrollView.setUI(reload: true)
153 | }
/Users/admin/builder/spi-builder-workspace/Sources/KVKCalendar/ScrollWeekView.swift:178:27: error: cannot find type 'DisplayDataSource' in scope
176 | }
177 |
178 | extension ScrollWeekView: DisplayDataSource {
| `- error: cannot find type 'DisplayDataSource' in scope
179 | public func dequeueCell<T>(
180 | parameter: CellParameter,
/Users/admin/builder/spi-builder-workspace/Sources/KVKCalendar/ScrollWeekView.swift:180:20: error: cannot find type 'CellParameter' in scope
178 | extension ScrollWeekView: DisplayDataSource {
179 | public func dequeueCell<T>(
180 | parameter: CellParameter,
| `- error: cannot find type 'CellParameter' in scope
181 | type: CalendarType,
182 | view: T,
/Users/admin/builder/spi-builder-workspace/Sources/KVKCalendar/ScrollWeekView.swift:181:15: error: cannot find type 'CalendarType' in scope
179 | public func dequeueCell<T>(
180 | parameter: CellParameter,
181 | type: CalendarType,
| `- error: cannot find type 'CalendarType' in scope
182 | view: T,
183 | indexPath: IndexPath
/Users/admin/builder/spi-builder-workspace/Sources/KVKCalendar/ScrollWeekView.swift:184:15: error: cannot find type 'KVKCalendarCellProtocol' in scope
182 | view: T,
183 | indexPath: IndexPath
184 | ) -> (any KVKCalendarCellProtocol)? where T: UIScrollView {
| `- error: cannot find type 'KVKCalendarCellProtocol' in scope
185 | dataSource?.dequeueCell(
186 | parameter: parameter,
/Users/admin/builder/spi-builder-workspace/Sources/KVKCalendar/ScrollWeekView.swift:184:50: error: cannot find type 'UIScrollView' in scope
182 | view: T,
183 | indexPath: IndexPath
184 | ) -> (any KVKCalendarCellProtocol)? where T: UIScrollView {
| `- error: cannot find type 'UIScrollView' in scope
185 | dataSource?.dequeueCell(
186 | parameter: parameter,
/Users/admin/builder/spi-builder-workspace/Sources/KVKCalendar/ScrollWeekView.swift:30:16: error: value of optional type 'ScrollWeekView?' must be unwrapped to a value of type 'ScrollWeekView'
28 | _style = style
29 | self.content = cellContent
30 | view = ScrollWeekView(
| |- error: value of optional type 'ScrollWeekView?' must be unwrapped to a value of type 'ScrollWeekView'
| |- note: coalesce using '??' to provide a default when the optional value contains 'nil'
| `- note: force-unwrap using '!' to abort execution if the optional value contains 'nil'
31 | date: date.wrappedValue,
32 | style: style.wrappedValue
/Users/admin/builder/spi-builder-workspace/Sources/KVKCalendar/ScrollWeekView.swift:30:30: error: extra arguments at positions #1, #2 in call
28 | _style = style
29 | self.content = cellContent
30 | view = ScrollWeekView(
| `- error: extra arguments at positions #1, #2 in call
31 | date: date.wrappedValue,
32 | style: style.wrappedValue
:
132 | }
133 |
134 | required public init?(coder: NSCoder) {
| `- note: 'init(coder:)' declared here
135 | fatalError("init(coder:) has not been implemented")
136 | }
/Users/admin/builder/spi-builder-workspace/Sources/KVKCalendar/ScrollWeekView.swift:31:13: error: missing argument for parameter 'coder' in call
29 | self.content = cellContent
30 | view = ScrollWeekView(
31 | date: date.wrappedValue,
| `- error: missing argument for parameter 'coder' in call
32 | style: style.wrappedValue
33 | )
:
132 | }
133 |
134 | required public init?(coder: NSCoder) {
| `- note: 'init(coder:)' declared here
135 | fatalError("init(coder:) has not been implemented")
136 | }
/Users/admin/builder/spi-builder-workspace/Sources/KVKCalendar/ScrollWeekView.swift:71:13: error: setter for 'date' is only available in macOS 10.15 or newer
52 |
53 | @available(iOS 16.0, *)
54 | public class Coordinator: NSObject, CalendarDelegate, CalendarDataSource {
| `- note: add '@available' attribute to enclosing class
55 | private let parent: ScrollWeekWrapper
56 |
:
64 | }
65 |
66 | public func didSelectDates(
| `- note: add '@available' attribute to enclosing instance method
67 | _ dates: [Date],
68 | type: CalendarType,
69 | frame: CGRect?
70 | ) {
71 | parent.date = dates.first ?? Date()
| |- error: setter for 'date' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
72 | }
73 |
/Users/admin/builder/spi-builder-workspace/Sources/KVKCalendar/ScrollWeekView.swift:92:53: error: cannot find 'UIHostingConfiguration' in scope
90 | (view as? UICollectionView)?.kvkDequeueCell(
91 | indexPath: indexPath) { (cell: UICollectionViewCell) in
92 | cell.contentConfiguration = UIHostingConfiguration {
| `- error: cannot find 'UIHostingConfiguration' in scope
93 | parent.content(parameter.date, parameter.type)
94 | }
/Users/admin/builder/spi-builder-workspace/Sources/KVKCalendar/ScrollWeekView.swift:120:20: error: cannot find 'CalendarData' in scope
118 | styleProxy.timeline.offsetTimeX = 0
119 | styleProxy.timeline.offsetLineLeft = 0
120 | let data = CalendarData(date: date, years: 1, style: styleProxy)
| `- error: cannot find 'CalendarData' in scope
121 | self.style = styleProxy
122 | dayData = DayData(data: data, startDay: styleProxy.startWeekDay)
/Users/admin/builder/spi-builder-workspace/Sources/KVKCalendar/ScrollWeekView.swift:122:19: error: cannot find 'DayData' in scope
120 | let data = CalendarData(date: date, years: 1, style: styleProxy)
121 | self.style = styleProxy
122 | dayData = DayData(data: data, startDay: styleProxy.startWeekDay)
| `- error: cannot find 'DayData' in scope
123 | scrollView = ScrollableWeekView(
124 | parameters: .init(
/Users/admin/builder/spi-builder-workspace/Sources/KVKCalendar/ScrollWeekView.swift:123:22: error: cannot find 'ScrollableWeekView' in scope
121 | self.style = styleProxy
122 | dayData = DayData(data: data, startDay: styleProxy.startWeekDay)
123 | scrollView = ScrollableWeekView(
| `- error: cannot find 'ScrollableWeekView' in scope
124 | parameters: .init(
125 | weeks: dayData.daysBySection,
/Users/admin/builder/spi-builder-workspace/Sources/KVKCalendar/ScrollWeekView.swift:124:26: error: cannot infer contextual base in reference to member 'init'
122 | dayData = DayData(data: data, startDay: styleProxy.startWeekDay)
123 | scrollView = ScrollableWeekView(
124 | parameters: .init(
| `- error: cannot infer contextual base in reference to member 'init'
125 | weeks: dayData.daysBySection,
126 | date: dayData.date,
/Users/admin/builder/spi-builder-workspace/Sources/KVKCalendar/ScrollWeekView.swift:127:24: error: cannot infer contextual base in reference to member 'week'
125 | weeks: dayData.daysBySection,
126 | date: dayData.date,
127 | type: .week,
| `- error: cannot infer contextual base in reference to member 'week'
128 | style: styleProxy
129 | )
/Users/admin/builder/spi-builder-workspace/Sources/KVKCalendar/ScrollWeekView.swift:131:9: error: 'super' cannot be used in class 'ScrollWeekView' because it has no superclass
129 | )
130 | )
131 | super.init(nibName: nil, bundle: nil)
| `- error: 'super' cannot be used in class 'ScrollWeekView' because it has no superclass
132 | }
133 |
/Users/admin/builder/spi-builder-workspace/Sources/KVKCalendar/ScrollWeekView.swift:131:29: error: 'nil' requires a contextual type
129 | )
130 | )
131 | super.init(nibName: nil, bundle: nil)
| `- error: 'nil' requires a contextual type
132 | }
133 |
/Users/admin/builder/spi-builder-workspace/Sources/KVKCalendar/ScrollWeekView.swift:131:42: error: 'nil' requires a contextual type
129 | )
130 | )
131 | super.init(nibName: nil, bundle: nil)
| `- error: 'nil' requires a contextual type
132 | }
133 |
/Users/admin/builder/spi-builder-workspace/Sources/KVKCalendar/ScrollWeekView.swift:139:9: error: 'super' cannot be used in class 'ScrollWeekView' because it has no superclass
137 |
138 | open override func viewDidLoad() {
139 | super.viewDidLoad()
| `- error: 'super' cannot be used in class 'ScrollWeekView' because it has no superclass
140 | view.addSubview(scrollView)
141 | scrollView.translatesAutoresizingMaskIntoConstraints = false
/Users/admin/builder/spi-builder-workspace/Sources/KVKCalendar/ScrollWeekView.swift:140:9: error: cannot find 'view' in scope
138 | open override func viewDidLoad() {
139 | super.viewDidLoad()
140 | view.addSubview(scrollView)
| `- error: cannot find 'view' in scope
141 | scrollView.translatesAutoresizingMaskIntoConstraints = false
142 | let top = scrollView.topAnchor.constraint(equalTo: view.topAnchor)
/Users/admin/builder/spi-builder-workspace/Sources/KVKCalendar/ScrollWeekView.swift:142:60: error: cannot find 'view' in scope
140 | view.addSubview(scrollView)
141 | scrollView.translatesAutoresizingMaskIntoConstraints = false
142 | let top = scrollView.topAnchor.constraint(equalTo: view.topAnchor)
| `- error: cannot find 'view' in scope
143 | let leading = scrollView.leadingAnchor.constraint(equalTo: view.leadingAnchor)
144 | let trailing = scrollView.trailingAnchor.constraint(equalTo: view.trailingAnchor)
/Users/admin/builder/spi-builder-workspace/Sources/KVKCalendar/ScrollWeekView.swift:143:68: error: cannot find 'view' in scope
141 | scrollView.translatesAutoresizingMaskIntoConstraints = false
142 | let top = scrollView.topAnchor.constraint(equalTo: view.topAnchor)
143 | let leading = scrollView.leadingAnchor.constraint(equalTo: view.leadingAnchor)
| `- error: cannot find 'view' in scope
144 | let trailing = scrollView.trailingAnchor.constraint(equalTo: view.trailingAnchor)
145 | let bottom = scrollView.bottomAnchor.constraint(equalTo: view.bottomAnchor)
/Users/admin/builder/spi-builder-workspace/Sources/KVKCalendar/ScrollWeekView.swift:144:70: error: cannot find 'view' in scope
142 | let top = scrollView.topAnchor.constraint(equalTo: view.topAnchor)
143 | let leading = scrollView.leadingAnchor.constraint(equalTo: view.leadingAnchor)
144 | let trailing = scrollView.trailingAnchor.constraint(equalTo: view.trailingAnchor)
| `- error: cannot find 'view' in scope
145 | let bottom = scrollView.bottomAnchor.constraint(equalTo: view.bottomAnchor)
146 | NSLayoutConstraint.activate([top, leading, trailing, bottom])
/Users/admin/builder/spi-builder-workspace/Sources/KVKCalendar/ScrollWeekView.swift:145:66: error: cannot find 'view' in scope
143 | let leading = scrollView.leadingAnchor.constraint(equalTo: view.leadingAnchor)
144 | let trailing = scrollView.trailingAnchor.constraint(equalTo: view.trailingAnchor)
145 | let bottom = scrollView.bottomAnchor.constraint(equalTo: view.bottomAnchor)
| `- error: cannot find 'view' in scope
146 | NSLayoutConstraint.activate([top, leading, trailing, bottom])
147 | setupScrollableWeekView()
/Users/admin/builder/spi-builder-workspace/Sources/KVKCalendar/ScrollWeekView.swift:164:51: error: cannot infer type of closure parameter 'date' without a type annotation
162 | private func setupScrollableWeekView() {
163 | scrollView.dataSource = self
164 | scrollView.didSelectDate = { [weak self] (date, type) in
| `- error: cannot infer type of closure parameter 'date' without a type annotation
165 | guard let self else { return }
166 | if let date {
/Users/admin/builder/spi-builder-workspace/Sources/KVKCalendar/ScrollWeekView.swift:164:57: error: cannot infer type of closure parameter 'type' without a type annotation
162 | private func setupScrollableWeekView() {
163 | scrollView.dataSource = self
164 | scrollView.didSelectDate = { [weak self] (date, type) in
| `- error: cannot infer type of closure parameter 'type' without a type annotation
165 | guard let self else { return }
166 | if let date {
/Users/admin/builder/spi-builder-workspace/Sources/KVKCalendar/ScrollWeekView.swift:171:52: error: cannot infer type of closure parameter 'type' without a type annotation
169 | }
170 | }
171 | scrollView.didUpdateStyle = { [weak self] (type) in
| `- error: cannot infer type of closure parameter 'type' without a type annotation
172 | guard let self else { return }
173 | delegate?.didUpdateStyle(style, type: type)
/Users/admin/builder/spi-builder-workspace/Sources/KVKCalendar/ScrollWeekView.swift:103:6: error: 'Previewable()' is only available in macOS 14.0 or newer
101 | @available(iOS 17.0, *)
102 | #Preview {
103 | @Previewable @State var date = Date()
| |- error: 'Previewable()' is only available in macOS 14.0 or newer
| `- note: add 'if #available' version check
104 | ScrollWeekWrapper(date: $date, style: .constant(Style()))
105 | }
[60/60] Compiling KVKCalendar ShadowDayView.swift
/Users/admin/builder/spi-builder-workspace/Sources/KVKCalendar/ScrollWeekView.swift:15:33: error: cannot find type 'Style' in scope
13 | public struct ScrollWeekWrapper<Cell: View>: UIViewControllerRepresentable {
14 | @Binding private var date: Date
15 | @Binding private var style: Style
| `- error: cannot find type 'Style' in scope
16 | @ViewBuilder private var content: (_ date: Date?, _ type: DayType?) -> Cell
17 | private let view: ScrollWeekView
/Users/admin/builder/spi-builder-workspace/Sources/KVKCalendar/ScrollWeekView.swift:14:6: error: 'Binding' is only available in macOS 10.15 or newer
11 | @available(iOS 16.0, *)
12 |
13 | public struct ScrollWeekWrapper<Cell: View>: UIViewControllerRepresentable {
| `- note: add '@available' attribute to enclosing generic struct
14 | @Binding private var date: Date
| `- error: 'Binding' is only available in macOS 10.15 or newer
15 | @Binding private var style: Style
16 | @ViewBuilder private var content: (_ date: Date?, _ type: DayType?) -> Cell
/Users/admin/builder/spi-builder-workspace/Sources/KVKCalendar/ScrollWeekView.swift:15:6: error: 'Binding' is only available in macOS 10.15 or newer
11 | @available(iOS 16.0, *)
12 |
13 | public struct ScrollWeekWrapper<Cell: View>: UIViewControllerRepresentable {
| `- note: add '@available' attribute to enclosing generic struct
14 | @Binding private var date: Date
15 | @Binding private var style: Style
| `- error: 'Binding' is only available in macOS 10.15 or newer
16 | @ViewBuilder private var content: (_ date: Date?, _ type: DayType?) -> Cell
17 | private let view: ScrollWeekView
/Users/admin/builder/spi-builder-workspace/Sources/KVKCalendar/ScrollWeekView.swift:16:63: error: cannot find type 'DayType' in scope
14 | @Binding private var date: Date
15 | @Binding private var style: Style
16 | @ViewBuilder private var content: (_ date: Date?, _ type: DayType?) -> Cell
| `- error: cannot find type 'DayType' in scope
17 | private let view: ScrollWeekView
18 |
/Users/admin/builder/spi-builder-workspace/Sources/KVKCalendar/ScrollWeekView.swift:16:6: error: 'ViewBuilder' is only available in macOS 10.15 or newer
11 | @available(iOS 16.0, *)
12 |
13 | public struct ScrollWeekWrapper<Cell: View>: UIViewControllerRepresentable {
| `- note: add '@available' attribute to enclosing generic struct
14 | @Binding private var date: Date
15 | @Binding private var style: Style
16 | @ViewBuilder private var content: (_ date: Date?, _ type: DayType?) -> Cell
| `- error: 'ViewBuilder' is only available in macOS 10.15 or newer
17 | private let view: ScrollWeekView
18 |
/Users/admin/builder/spi-builder-workspace/Sources/KVKCalendar/ScrollWeekView.swift:21:24: error: cannot find type 'Style' in scope
19 | public init(
20 | date: Binding<Date>,
21 | style: Binding<Style>,
| `- error: cannot find type 'Style' in scope
22 | @ViewBuilder cellContent: @escaping (
23 | _ date: Date?,
/Users/admin/builder/spi-builder-workspace/Sources/KVKCalendar/ScrollWeekView.swift:24:21: error: cannot find type 'DayType' in scope
22 | @ViewBuilder cellContent: @escaping (
23 | _ date: Date?,
24 | _ type: DayType?
| `- error: cannot find type 'DayType' in scope
25 | ) -> Cell = { _, _ in EmptyView() }
26 | ) {
/Users/admin/builder/spi-builder-workspace/Sources/KVKCalendar/ScrollWeekView.swift:22:9: error: result builder attribute 'ViewBuilder' can only be applied to a parameter of function type
20 | date: Binding<Date>,
21 | style: Binding<Style>,
22 | @ViewBuilder cellContent: @escaping (
| `- error: result builder attribute 'ViewBuilder' can only be applied to a parameter of function type
23 | _ date: Date?,
24 | _ type: DayType?
/Users/admin/builder/spi-builder-workspace/Sources/KVKCalendar/ScrollWeekView.swift:20:15: error: 'Binding' is only available in macOS 10.15 or newer
11 | @available(iOS 16.0, *)
12 |
13 | public struct ScrollWeekWrapper<Cell: View>: UIViewControllerRepresentable {
| `- note: add '@available' attribute to enclosing generic struct
14 | @Binding private var date: Date
15 | @Binding private var style: Style
:
17 | private let view: ScrollWeekView
18 |
19 | public init(
| `- note: add '@available' attribute to enclosing initializer
20 | date: Binding<Date>,
| `- error: 'Binding' is only available in macOS 10.15 or newer
21 | style: Binding<Style>,
22 | @ViewBuilder cellContent: @escaping (
/Users/admin/builder/spi-builder-workspace/Sources/KVKCalendar/ScrollWeekView.swift:22:10: error: 'ViewBuilder' is only available in macOS 10.15 or newer
11 | @available(iOS 16.0, *)
12 |
13 | public struct ScrollWeekWrapper<Cell: View>: UIViewControllerRepresentable {
| `- note: add '@available' attribute to enclosing generic struct
14 | @Binding private var date: Date
15 | @Binding private var style: Style
:
17 | private let view: ScrollWeekView
18 |
19 | public init(
| `- note: add '@available' attribute to enclosing initializer
20 | date: Binding<Date>,
21 | style: Binding<Style>,
22 | @ViewBuilder cellContent: @escaping (
| `- error: 'ViewBuilder' is only available in macOS 10.15 or newer
23 | _ date: Date?,
24 | _ type: DayType?
/Users/admin/builder/spi-builder-workspace/Sources/KVKCalendar/ScrollWeekView.swift:36:64: error: cannot find type 'UIViewController' in scope
34 | }
35 |
36 | public func makeUIViewController(context: Context) -> some UIViewController {
| `- error: cannot find type 'UIViewController' in scope
37 | view.delegate = context.coordinator
38 | view.dataSource = context.coordinator
/Users/admin/builder/spi-builder-workspace/Sources/KVKCalendar/ScrollWeekView.swift:36:59: error: 'some' types are only permitted in properties, subscripts, and functions
34 | }
35 |
36 | public func makeUIViewController(context: Context) -> some UIViewController {
| `- error: 'some' types are only permitted in properties, subscripts, and functions
37 | view.delegate = context.coordinator
38 | view.dataSource = context.coordinator
/Users/admin/builder/spi-builder-workspace/Sources/KVKCalendar/ScrollWeekView.swift:36:47: error: cannot find type 'Context' in scope
34 | }
35 |
36 | public func makeUIViewController(context: Context) -> some UIViewController {
| `- error: cannot find type 'Context' in scope
37 | view.delegate = context.coordinator
38 | view.dataSource = context.coordinator
/Users/admin/builder/spi-builder-workspace/Sources/KVKCalendar/ScrollWeekView.swift:43:29: error: cannot find type 'UIViewControllerType' in scope
41 |
42 | public func updateUIViewController(
43 | _ uiViewController: UIViewControllerType,
| `- error: cannot find type 'UIViewControllerType' in scope
44 | context: Context
45 | ) {
/Users/admin/builder/spi-builder-workspace/Sources/KVKCalendar/ScrollWeekView.swift:44:18: error: cannot find type 'Context' in scope
42 | public func updateUIViewController(
43 | _ uiViewController: UIViewControllerType,
44 | context: Context
| `- error: cannot find type 'Context' in scope
45 | ) {
46 | view.setDate(date)
/Users/admin/builder/spi-builder-workspace/Sources/KVKCalendar/ScrollWeekView.swift:54:41: error: cannot find type 'CalendarDelegate' in scope
52 |
53 | @available(iOS 16.0, *)
54 | public class Coordinator: NSObject, CalendarDelegate, CalendarDataSource {
| `- error: cannot find type 'CalendarDelegate' in scope
55 | private let parent: ScrollWeekWrapper
56 |
/Users/admin/builder/spi-builder-workspace/Sources/KVKCalendar/ScrollWeekView.swift:54:59: error: cannot find type 'CalendarDataSource' in scope
52 |
53 | @available(iOS 16.0, *)
54 | public class Coordinator: NSObject, CalendarDelegate, CalendarDataSource {
| `- error: cannot find type 'CalendarDataSource' in scope
55 | private let parent: ScrollWeekWrapper
56 |
/Users/admin/builder/spi-builder-workspace/Sources/KVKCalendar/ScrollWeekView.swift:62:68: error: cannot find type 'Event' in scope
60 | }
61 |
62 | public func eventsForCalendar(systemEvents: [EKEvent]) -> [Event] {
| `- error: cannot find type 'Event' in scope
63 | []
64 | }
/Users/admin/builder/spi-builder-workspace/Sources/KVKCalendar/ScrollWeekView.swift:68:19: error: cannot find type 'CalendarType' in scope
66 | public func didSelectDates(
67 | _ dates: [Date],
68 | type: CalendarType,
| `- error: cannot find type 'CalendarType' in scope
69 | frame: CGRect?
70 | ) {
/Users/admin/builder/spi-builder-workspace/Sources/KVKCalendar/ScrollWeekView.swift:75:22: error: cannot find type 'Style' in scope
73 |
74 | public func didUpdateStyle(
75 | _ style: Style,
| `- error: cannot find type 'Style' in scope
76 | type: CalendarType
77 | ) {
/Users/admin/builder/spi-builder-workspace/Sources/KVKCalendar/ScrollWeekView.swift:76:19: error: cannot find type 'CalendarType' in scope
74 | public func didUpdateStyle(
75 | _ style: Style,
76 | type: CalendarType
| `- error: cannot find type 'CalendarType' in scope
77 | ) {
78 | parent.style = style
/Users/admin/builder/spi-builder-workspace/Sources/KVKCalendar/ScrollWeekView.swift:82:24: error: cannot find type 'CellParameter' in scope
80 |
81 | public func dequeueCell<T>(
82 | parameter: CellParameter,
| `- error: cannot find type 'CellParameter' in scope
83 | type: CalendarType,
84 | view: T,
/Users/admin/builder/spi-builder-workspace/Sources/KVKCalendar/ScrollWeekView.swift:83:19: error: cannot find type 'CalendarType' in scope
81 | public func dequeueCell<T>(
82 | parameter: CellParameter,
83 | type: CalendarType,
| `- error: cannot find type 'CalendarType' in scope
84 | view: T,
85 | indexPath: IndexPath
/Users/admin/builder/spi-builder-workspace/Sources/KVKCalendar/ScrollWeekView.swift:86:19: error: cannot find type 'KVKCalendarCellProtocol' in scope
84 | view: T,
85 | indexPath: IndexPath
86 | ) -> (any KVKCalendarCellProtocol)? where T: UIScrollView {
| `- error: cannot find type 'KVKCalendarCellProtocol' in scope
87 | if parent.content(parameter.date, parameter.type) is EmptyView {
88 | nil
/Users/admin/builder/spi-builder-workspace/Sources/KVKCalendar/ScrollWeekView.swift:86:54: error: cannot find type 'UIScrollView' in scope
84 | view: T,
85 | indexPath: IndexPath
86 | ) -> (any KVKCalendarCellProtocol)? where T: UIScrollView {
| `- error: cannot find type 'UIScrollView' in scope
87 | if parent.content(parameter.date, parameter.type) is EmptyView {
88 | nil
/Users/admin/builder/spi-builder-workspace/Sources/KVKCalendar/ScrollWeekView.swift:13:46: error: cannot find type 'UIViewControllerRepresentable' in scope
11 | @available(iOS 16.0, *)
12 |
13 | public struct ScrollWeekWrapper<Cell: View>: UIViewControllerRepresentable {
| `- error: cannot find type 'UIViewControllerRepresentable' in scope
14 | @Binding private var date: Date
15 | @Binding private var style: Style
/Users/admin/builder/spi-builder-workspace/Sources/KVKCalendar/ScrollWeekView.swift:13:39: error: 'View' is only available in macOS 10.15 or newer
11 | @available(iOS 16.0, *)
12 |
13 | public struct ScrollWeekWrapper<Cell: View>: UIViewControllerRepresentable {
| | `- error: 'View' is only available in macOS 10.15 or newer
| `- note: add '@available' attribute to enclosing generic struct
14 | @Binding private var date: Date
15 | @Binding private var style: Style
/Users/admin/builder/spi-builder-workspace/Sources/KVKCalendar/ScrollWeekView.swift:104:53: error: cannot find 'Style' in scope
102 | #Preview {
103 | @Previewable @State var date = Date()
104 | ScrollWeekWrapper(date: $date, style: .constant(Style()))
| `- error: cannot find 'Style' in scope
105 | }
106 |
/Users/admin/builder/spi-builder-workspace/Sources/KVKCalendar/ScrollWeekView.swift:104:44: error: cannot infer contextual base in reference to member 'constant'
102 | #Preview {
103 | @Previewable @State var date = Date()
104 | ScrollWeekWrapper(date: $date, style: .constant(Style()))
| `- error: cannot infer contextual base in reference to member 'constant'
105 | }
106 |
/Users/admin/builder/spi-builder-workspace/Sources/KVKCalendar/ScrollWeekView.swift:104:5: error: generic parameter 'Cell' could not be inferred
11 | @available(iOS 16.0, *)
12 |
13 | public struct ScrollWeekWrapper<Cell: View>: UIViewControllerRepresentable {
| `- note: 'Cell' declared as parameter to type 'ScrollWeekWrapper'
14 | @Binding private var date: Date
15 | @Binding private var style: Style
:
102 | #Preview {
103 | @Previewable @State var date = Date()
104 | ScrollWeekWrapper(date: $date, style: .constant(Style()))
| |- error: generic parameter 'Cell' could not be inferred
| `- note: explicitly specify the generic arguments to fix this issue
105 | }
106 |
/Users/admin/builder/spi-builder-workspace/Sources/KVKCalendar/ScrollWeekView.swift:107:28: error: cannot find type 'UIViewController' in scope
105 | }
106 |
107 | open class ScrollWeekView: UIViewController {
| `- error: cannot find type 'UIViewController' in scope
108 | private var style: Style
109 | private var dayData: DayData
/Users/admin/builder/spi-builder-workspace/Sources/KVKCalendar/ScrollWeekView.swift:108:24: error: cannot find type 'Style' in scope
106 |
107 | open class ScrollWeekView: UIViewController {
108 | private var style: Style
| `- error: cannot find type 'Style' in scope
109 | private var dayData: DayData
110 | private var scrollView: ScrollableWeekView
/Users/admin/builder/spi-builder-workspace/Sources/KVKCalendar/ScrollWeekView.swift:109:26: error: cannot find type 'DayData' in scope
107 | open class ScrollWeekView: UIViewController {
108 | private var style: Style
109 | private var dayData: DayData
| `- error: cannot find type 'DayData' in scope
110 | private var scrollView: ScrollableWeekView
111 |
/Users/admin/builder/spi-builder-workspace/Sources/KVKCalendar/ScrollWeekView.swift:110:29: error: cannot find type 'ScrollableWeekView' in scope
108 | private var style: Style
109 | private var dayData: DayData
110 | private var scrollView: ScrollableWeekView
| `- error: cannot find type 'ScrollableWeekView' in scope
111 |
112 | public weak var delegate: CalendarDelegate?
/Users/admin/builder/spi-builder-workspace/Sources/KVKCalendar/ScrollWeekView.swift:112:31: error: cannot find type 'CalendarDelegate' in scope
110 | private var scrollView: ScrollableWeekView
111 |
112 | public weak var delegate: CalendarDelegate?
| `- error: cannot find type 'CalendarDelegate' in scope
113 | public weak var dataSource: CalendarDataSource?
114 |
/Users/admin/builder/spi-builder-workspace/Sources/KVKCalendar/ScrollWeekView.swift:113:33: error: cannot find type 'CalendarDataSource' in scope
111 |
112 | public weak var delegate: CalendarDelegate?
113 | public weak var dataSource: CalendarDataSource?
| `- error: cannot find type 'CalendarDataSource' in scope
114 |
115 | public init(date: Date, style: Style) {
/Users/admin/builder/spi-builder-workspace/Sources/KVKCalendar/ScrollWeekView.swift:115:36: error: cannot find type 'Style' in scope
113 | public weak var dataSource: CalendarDataSource?
114 |
115 | public init(date: Date, style: Style) {
| `- error: cannot find type 'Style' in scope
116 | var styleProxy = style
117 | styleProxy.timeline.widthTime = 0
/Users/admin/builder/spi-builder-workspace/Sources/KVKCalendar/ScrollWeekView.swift:138:24: error: method does not override any method from its superclass
136 | }
137 |
138 | open override func viewDidLoad() {
| `- error: method does not override any method from its superclass
139 | super.viewDidLoad()
140 | view.addSubview(scrollView)
/Users/admin/builder/spi-builder-workspace/Sources/KVKCalendar/ScrollWeekView.swift:151:24: error: method does not override any method from its superclass
149 | }
150 |
151 | open override func viewDidLayoutSubviews() {
| `- error: method does not override any method from its superclass
152 | scrollView.setUI(reload: true)
153 | }
/Users/admin/builder/spi-builder-workspace/Sources/KVKCalendar/ScrollWeekView.swift:178:27: error: cannot find type 'DisplayDataSource' in scope
176 | }
177 |
178 | extension ScrollWeekView: DisplayDataSource {
| `- error: cannot find type 'DisplayDataSource' in scope
179 | public func dequeueCell<T>(
180 | parameter: CellParameter,
/Users/admin/builder/spi-builder-workspace/Sources/KVKCalendar/ScrollWeekView.swift:180:20: error: cannot find type 'CellParameter' in scope
178 | extension ScrollWeekView: DisplayDataSource {
179 | public func dequeueCell<T>(
180 | parameter: CellParameter,
| `- error: cannot find type 'CellParameter' in scope
181 | type: CalendarType,
182 | view: T,
/Users/admin/builder/spi-builder-workspace/Sources/KVKCalendar/ScrollWeekView.swift:181:15: error: cannot find type 'CalendarType' in scope
179 | public func dequeueCell<T>(
180 | parameter: CellParameter,
181 | type: CalendarType,
| `- error: cannot find type 'CalendarType' in scope
182 | view: T,
183 | indexPath: IndexPath
/Users/admin/builder/spi-builder-workspace/Sources/KVKCalendar/ScrollWeekView.swift:184:15: error: cannot find type 'KVKCalendarCellProtocol' in scope
182 | view: T,
183 | indexPath: IndexPath
184 | ) -> (any KVKCalendarCellProtocol)? where T: UIScrollView {
| `- error: cannot find type 'KVKCalendarCellProtocol' in scope
185 | dataSource?.dequeueCell(
186 | parameter: parameter,
/Users/admin/builder/spi-builder-workspace/Sources/KVKCalendar/ScrollWeekView.swift:184:50: error: cannot find type 'UIScrollView' in scope
182 | view: T,
183 | indexPath: IndexPath
184 | ) -> (any KVKCalendarCellProtocol)? where T: UIScrollView {
| `- error: cannot find type 'UIScrollView' in scope
185 | dataSource?.dequeueCell(
186 | parameter: parameter,
/Users/admin/builder/spi-builder-workspace/Sources/KVKCalendar/ScrollWeekView.swift:30:16: error: value of optional type 'ScrollWeekView?' must be unwrapped to a value of type 'ScrollWeekView'
28 | _style = style
29 | self.content = cellContent
30 | view = ScrollWeekView(
| |- error: value of optional type 'ScrollWeekView?' must be unwrapped to a value of type 'ScrollWeekView'
| |- note: coalesce using '??' to provide a default when the optional value contains 'nil'
| `- note: force-unwrap using '!' to abort execution if the optional value contains 'nil'
31 | date: date.wrappedValue,
32 | style: style.wrappedValue
/Users/admin/builder/spi-builder-workspace/Sources/KVKCalendar/ScrollWeekView.swift:30:30: error: extra arguments at positions #1, #2 in call
28 | _style = style
29 | self.content = cellContent
30 | view = ScrollWeekView(
| `- error: extra arguments at positions #1, #2 in call
31 | date: date.wrappedValue,
32 | style: style.wrappedValue
:
132 | }
133 |
134 | required public init?(coder: NSCoder) {
| `- note: 'init(coder:)' declared here
135 | fatalError("init(coder:) has not been implemented")
136 | }
/Users/admin/builder/spi-builder-workspace/Sources/KVKCalendar/ScrollWeekView.swift:31:13: error: missing argument for parameter 'coder' in call
29 | self.content = cellContent
30 | view = ScrollWeekView(
31 | date: date.wrappedValue,
| `- error: missing argument for parameter 'coder' in call
32 | style: style.wrappedValue
33 | )
:
132 | }
133 |
134 | required public init?(coder: NSCoder) {
| `- note: 'init(coder:)' declared here
135 | fatalError("init(coder:) has not been implemented")
136 | }
/Users/admin/builder/spi-builder-workspace/Sources/KVKCalendar/ScrollWeekView.swift:71:13: error: setter for 'date' is only available in macOS 10.15 or newer
52 |
53 | @available(iOS 16.0, *)
54 | public class Coordinator: NSObject, CalendarDelegate, CalendarDataSource {
| `- note: add '@available' attribute to enclosing class
55 | private let parent: ScrollWeekWrapper
56 |
:
64 | }
65 |
66 | public func didSelectDates(
| `- note: add '@available' attribute to enclosing instance method
67 | _ dates: [Date],
68 | type: CalendarType,
69 | frame: CGRect?
70 | ) {
71 | parent.date = dates.first ?? Date()
| |- error: setter for 'date' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
72 | }
73 |
/Users/admin/builder/spi-builder-workspace/Sources/KVKCalendar/ScrollWeekView.swift:92:53: error: cannot find 'UIHostingConfiguration' in scope
90 | (view as? UICollectionView)?.kvkDequeueCell(
91 | indexPath: indexPath) { (cell: UICollectionViewCell) in
92 | cell.contentConfiguration = UIHostingConfiguration {
| `- error: cannot find 'UIHostingConfiguration' in scope
93 | parent.content(parameter.date, parameter.type)
94 | }
/Users/admin/builder/spi-builder-workspace/Sources/KVKCalendar/ScrollWeekView.swift:120:20: error: cannot find 'CalendarData' in scope
118 | styleProxy.timeline.offsetTimeX = 0
119 | styleProxy.timeline.offsetLineLeft = 0
120 | let data = CalendarData(date: date, years: 1, style: styleProxy)
| `- error: cannot find 'CalendarData' in scope
121 | self.style = styleProxy
122 | dayData = DayData(data: data, startDay: styleProxy.startWeekDay)
/Users/admin/builder/spi-builder-workspace/Sources/KVKCalendar/ScrollWeekView.swift:122:19: error: cannot find 'DayData' in scope
120 | let data = CalendarData(date: date, years: 1, style: styleProxy)
121 | self.style = styleProxy
122 | dayData = DayData(data: data, startDay: styleProxy.startWeekDay)
| `- error: cannot find 'DayData' in scope
123 | scrollView = ScrollableWeekView(
124 | parameters: .init(
/Users/admin/builder/spi-builder-workspace/Sources/KVKCalendar/ScrollWeekView.swift:123:22: error: cannot find 'ScrollableWeekView' in scope
121 | self.style = styleProxy
122 | dayData = DayData(data: data, startDay: styleProxy.startWeekDay)
123 | scrollView = ScrollableWeekView(
| `- error: cannot find 'ScrollableWeekView' in scope
124 | parameters: .init(
125 | weeks: dayData.daysBySection,
/Users/admin/builder/spi-builder-workspace/Sources/KVKCalendar/ScrollWeekView.swift:124:26: error: cannot infer contextual base in reference to member 'init'
122 | dayData = DayData(data: data, startDay: styleProxy.startWeekDay)
123 | scrollView = ScrollableWeekView(
124 | parameters: .init(
| `- error: cannot infer contextual base in reference to member 'init'
125 | weeks: dayData.daysBySection,
126 | date: dayData.date,
/Users/admin/builder/spi-builder-workspace/Sources/KVKCalendar/ScrollWeekView.swift:127:24: error: cannot infer contextual base in reference to member 'week'
125 | weeks: dayData.daysBySection,
126 | date: dayData.date,
127 | type: .week,
| `- error: cannot infer contextual base in reference to member 'week'
128 | style: styleProxy
129 | )
/Users/admin/builder/spi-builder-workspace/Sources/KVKCalendar/ScrollWeekView.swift:131:9: error: 'super' cannot be used in class 'ScrollWeekView' because it has no superclass
129 | )
130 | )
131 | super.init(nibName: nil, bundle: nil)
| `- error: 'super' cannot be used in class 'ScrollWeekView' because it has no superclass
132 | }
133 |
/Users/admin/builder/spi-builder-workspace/Sources/KVKCalendar/ScrollWeekView.swift:131:29: error: 'nil' requires a contextual type
129 | )
130 | )
131 | super.init(nibName: nil, bundle: nil)
| `- error: 'nil' requires a contextual type
132 | }
133 |
/Users/admin/builder/spi-builder-workspace/Sources/KVKCalendar/ScrollWeekView.swift:131:42: error: 'nil' requires a contextual type
129 | )
130 | )
131 | super.init(nibName: nil, bundle: nil)
| `- error: 'nil' requires a contextual type
132 | }
133 |
/Users/admin/builder/spi-builder-workspace/Sources/KVKCalendar/ScrollWeekView.swift:139:9: error: 'super' cannot be used in class 'ScrollWeekView' because it has no superclass
137 |
138 | open override func viewDidLoad() {
139 | super.viewDidLoad()
| `- error: 'super' cannot be used in class 'ScrollWeekView' because it has no superclass
140 | view.addSubview(scrollView)
141 | scrollView.translatesAutoresizingMaskIntoConstraints = false
/Users/admin/builder/spi-builder-workspace/Sources/KVKCalendar/ScrollWeekView.swift:140:9: error: cannot find 'view' in scope
138 | open override func viewDidLoad() {
139 | super.viewDidLoad()
140 | view.addSubview(scrollView)
| `- error: cannot find 'view' in scope
141 | scrollView.translatesAutoresizingMaskIntoConstraints = false
142 | let top = scrollView.topAnchor.constraint(equalTo: view.topAnchor)
/Users/admin/builder/spi-builder-workspace/Sources/KVKCalendar/ScrollWeekView.swift:142:60: error: cannot find 'view' in scope
140 | view.addSubview(scrollView)
141 | scrollView.translatesAutoresizingMaskIntoConstraints = false
142 | let top = scrollView.topAnchor.constraint(equalTo: view.topAnchor)
| `- error: cannot find 'view' in scope
143 | let leading = scrollView.leadingAnchor.constraint(equalTo: view.leadingAnchor)
144 | let trailing = scrollView.trailingAnchor.constraint(equalTo: view.trailingAnchor)
/Users/admin/builder/spi-builder-workspace/Sources/KVKCalendar/ScrollWeekView.swift:143:68: error: cannot find 'view' in scope
141 | scrollView.translatesAutoresizingMaskIntoConstraints = false
142 | let top = scrollView.topAnchor.constraint(equalTo: view.topAnchor)
143 | let leading = scrollView.leadingAnchor.constraint(equalTo: view.leadingAnchor)
| `- error: cannot find 'view' in scope
144 | let trailing = scrollView.trailingAnchor.constraint(equalTo: view.trailingAnchor)
145 | let bottom = scrollView.bottomAnchor.constraint(equalTo: view.bottomAnchor)
/Users/admin/builder/spi-builder-workspace/Sources/KVKCalendar/ScrollWeekView.swift:144:70: error: cannot find 'view' in scope
142 | let top = scrollView.topAnchor.constraint(equalTo: view.topAnchor)
143 | let leading = scrollView.leadingAnchor.constraint(equalTo: view.leadingAnchor)
144 | let trailing = scrollView.trailingAnchor.constraint(equalTo: view.trailingAnchor)
| `- error: cannot find 'view' in scope
145 | let bottom = scrollView.bottomAnchor.constraint(equalTo: view.bottomAnchor)
146 | NSLayoutConstraint.activate([top, leading, trailing, bottom])
/Users/admin/builder/spi-builder-workspace/Sources/KVKCalendar/ScrollWeekView.swift:145:66: error: cannot find 'view' in scope
143 | let leading = scrollView.leadingAnchor.constraint(equalTo: view.leadingAnchor)
144 | let trailing = scrollView.trailingAnchor.constraint(equalTo: view.trailingAnchor)
145 | let bottom = scrollView.bottomAnchor.constraint(equalTo: view.bottomAnchor)
| `- error: cannot find 'view' in scope
146 | NSLayoutConstraint.activate([top, leading, trailing, bottom])
147 | setupScrollableWeekView()
/Users/admin/builder/spi-builder-workspace/Sources/KVKCalendar/ScrollWeekView.swift:164:51: error: cannot infer type of closure parameter 'date' without a type annotation
162 | private func setupScrollableWeekView() {
163 | scrollView.dataSource = self
164 | scrollView.didSelectDate = { [weak self] (date, type) in
| `- error: cannot infer type of closure parameter 'date' without a type annotation
165 | guard let self else { return }
166 | if let date {
/Users/admin/builder/spi-builder-workspace/Sources/KVKCalendar/ScrollWeekView.swift:164:57: error: cannot infer type of closure parameter 'type' without a type annotation
162 | private func setupScrollableWeekView() {
163 | scrollView.dataSource = self
164 | scrollView.didSelectDate = { [weak self] (date, type) in
| `- error: cannot infer type of closure parameter 'type' without a type annotation
165 | guard let self else { return }
166 | if let date {
/Users/admin/builder/spi-builder-workspace/Sources/KVKCalendar/ScrollWeekView.swift:171:52: error: cannot infer type of closure parameter 'type' without a type annotation
169 | }
170 | }
171 | scrollView.didUpdateStyle = { [weak self] (type) in
| `- error: cannot infer type of closure parameter 'type' without a type annotation
172 | guard let self else { return }
173 | delegate?.didUpdateStyle(style, type: type)
/Users/admin/builder/spi-builder-workspace/Sources/KVKCalendar/ScrollWeekView.swift:103:6: error: 'Previewable()' is only available in macOS 14.0 or newer
101 | @available(iOS 17.0, *)
102 | #Preview {
103 | @Previewable @State var date = Date()
| |- error: 'Previewable()' is only available in macOS 14.0 or newer
| `- note: add 'if #available' version check
104 | ScrollWeekWrapper(date: $date, style: .constant(Style()))
105 | }
BUILD FAILURE 6.3 macosSpm