Build Information
Failed to build CalendarView, reference main (8c811c
), with Swift 6.0 for macOS (SPM) on 5 Nov 2024 20:46:24 UTC.
Build Command
env DEVELOPER_DIR=/Applications/Xcode-16.1.0.app xcrun swift build --arch arm64 -Xswiftc -Xfrontend -Xswiftc -stats-output-dir -Xswiftc -Xfrontend -Xswiftc .stats -Xswiftc -strict-concurrency=complete
Build Log
========================================
RunAll
========================================
Builder version: 4.56.0
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/edonv/CalendarView.git
Reference: main
Initialized empty Git repository in /Users/admin/builder/spi-builder-workspace/.git/
From https://github.com/edonv/CalendarView
* branch main -> FETCH_HEAD
* [new branch] main -> origin/main
HEAD is now at 8c811cf Update .spi.yml
Cloned https://github.com/edonv/CalendarView.git
Revision (git rev-parse @):
8c811cf1d5ac52c662f82acca263e23cd9cde48e
SPI manifest file found: $PWD/.spi.yml
SUCCESS checkout https://github.com/edonv/CalendarView.git at main
========================================
ResolveProductDependencies
========================================
Resolving dependencies ...
{
"identity": ".resolve-product-dependencies",
"name": "resolve-dependencies",
"url": "/Users/admin/builder/spi-builder-workspace/.resolve-product-dependencies",
"version": "unspecified",
"path": "/Users/admin/builder/spi-builder-workspace/.resolve-product-dependencies",
"dependencies": [
{
"identity": "calendarview",
"name": "CalendarView",
"url": "https://github.com/edonv/CalendarView.git",
"version": "unspecified",
"path": "/Users/admin/builder/spi-builder-workspace/.resolve-product-dependencies/.build/checkouts/CalendarView",
"dependencies": [
]
}
]
}
Fetching https://github.com/edonv/CalendarView.git
[4/379] Fetching calendarview
Fetched https://github.com/edonv/CalendarView.git from cache (0.74s)
Creating working copy for https://github.com/edonv/CalendarView.git
Working copy of https://github.com/edonv/CalendarView.git resolved at main (8c811cf)
warning: '.resolve-product-dependencies': dependency 'calendarview' is not used by any target
Found 0 product dependencies
========================================
Build
========================================
Selected platform: macosSpm
Swift version: 6.0
Building package at path: $PWD
https://github.com/edonv/CalendarView.git
Running build ...
env DEVELOPER_DIR=/Applications/Xcode-16.1.0.app xcrun swift build --arch arm64 -Xswiftc -Xfrontend -Xswiftc -stats-output-dir -Xswiftc -Xfrontend -Xswiftc .stats -Xswiftc -strict-concurrency=complete
Building for debugging...
[0/2] Write sources
[1/2] Write swift-version--7754E27361AE5C74.txt
error: emit-module command failed with exit code 1 (use -v to see invocation)
[3/12] Emitting module CalendarView
/Users/admin/builder/spi-builder-workspace/Sources/CalendarView/CalendarView+Coordinator.swift:25:37: error: cannot find type 'UICalendarViewDelegate' in scope
23 | // MARK: UICalendarViewDelegate
24 |
25 | extension CalendarView.Coordinator: UICalendarViewDelegate {
| `- error: cannot find type 'UICalendarViewDelegate' in scope
26 | private static let components: Set<Calendar.Component> = {
27 | var temp: Set<Calendar.Component> = [.year, .day, .month, .era, .calendar, .timeZone, .weekOfMonth, .weekOfYear, .weekday, .weekdayOrdinal, .yearForWeekOfYear]
/Users/admin/builder/spi-builder-workspace/Sources/CalendarView/CalendarView+Coordinator.swift:35:10: error: cannot find type 'UICalendarView' in scope
33 | _ calendarView: UICalendarView,
34 | decorationFor dateComponents: DateComponents
35 | ) -> UICalendarView.Decoration? {
| `- error: cannot find type 'UICalendarView' in scope
36 | if #unavailable(iOS 16.2, macCatalyst 16.2, visionOS 1.0) {
37 | // UICalendarView doesn't provide a way to get notified when property visibleDateComponents changes.
/Users/admin/builder/spi-builder-workspace/Sources/CalendarView/CalendarView+Coordinator.swift:33:25: error: cannot find type 'UICalendarView' in scope
31 |
32 | public func calendarView(
33 | _ calendarView: UICalendarView,
| `- error: cannot find type 'UICalendarView' in scope
34 | decorationFor dateComponents: DateComponents
35 | ) -> UICalendarView.Decoration? {
/Users/admin/builder/spi-builder-workspace/Sources/CalendarView/CalendarView+Coordinator.swift:67:25: error: cannot find type 'UICalendarView' in scope
65 |
66 | public func calendarView(
67 | _ calendarView: UICalendarView,
| `- error: cannot find type 'UICalendarView' in scope
68 | didChangeVisibleDateComponentsFrom previousDateComponents: DateComponents
69 | ) {
/Users/admin/builder/spi-builder-workspace/Sources/CalendarView/CalendarView+Coordinator.swift:76:37: error: cannot find type 'UICalendarSelectionMultiDateDelegate' in scope
74 | // MARK: - UICalendarSelectionMultiDateDelegate
75 |
76 | extension CalendarView.Coordinator: UICalendarSelectionMultiDateDelegate {
| `- error: cannot find type 'UICalendarSelectionMultiDateDelegate' in scope
77 | // MARK: Getting selectable dates
78 |
/Users/admin/builder/spi-builder-workspace/Sources/CalendarView/CalendarView+Coordinator.swift:86:22: error: cannot find type 'UICalendarSelectionMultiDate' in scope
84 | /// - dateComponents: Date components that represent a date the user selected.
85 | public func multiDateSelection(
86 | _ selection: UICalendarSelectionMultiDate,
| `- error: cannot find type 'UICalendarSelectionMultiDate' in scope
87 | didSelectDate dateComponents: DateComponents
88 | ) {
/Users/admin/builder/spi-builder-workspace/Sources/CalendarView/CalendarView+Coordinator.swift:99:22: error: cannot find type 'UICalendarSelectionMultiDate' in scope
97 | /// - dateComponents: Date components that represent a date the user deselected.
98 | public func multiDateSelection(
99 | _ selection: UICalendarSelectionMultiDate,
| `- error: cannot find type 'UICalendarSelectionMultiDate' in scope
100 | didDeselectDate dateComponents: DateComponents
101 | ) {
/Users/admin/builder/spi-builder-workspace/Sources/CalendarView/CalendarView+Coordinator.swift:109:37: error: cannot find type 'UICalendarSelectionSingleDateDelegate' in scope
107 | // MARK: - UICalendarSelectionSingleDateDelegate
108 |
109 | extension CalendarView.Coordinator: UICalendarSelectionSingleDateDelegate {
| `- error: cannot find type 'UICalendarSelectionSingleDateDelegate' in scope
110 | // MARK: Getting selectable dates
111 |
/Users/admin/builder/spi-builder-workspace/Sources/CalendarView/CalendarView+Coordinator.swift:119:22: error: cannot find type 'UICalendarSelectionSingleDate' in scope
117 | /// - dateComponents: Date components that represent a date the user selected, or `nil` if the user deselected a date.
118 | public func dateSelection(
119 | _ selection: UICalendarSelectionSingleDate,
| `- error: cannot find type 'UICalendarSelectionSingleDate' in scope
120 | didSelectDate dateComponents: DateComponents?
121 | ) {
/Users/admin/builder/spi-builder-workspace/Sources/CalendarView/CalendarView+Decoration.swift:11:39: error: cannot find type 'UICalendarView' in scope
9 |
10 | extension CalendarView {
11 | public typealias DecorationSize = UICalendarView.DecorationSize
| `- error: cannot find type 'UICalendarView' in scope
12 |
13 | /// A view that a calendar view displays for a specific date.
/Users/admin/builder/spi-builder-workspace/Sources/CalendarView/CalendarView+Decoration.swift:15:34: error: cannot find type 'UICalendarView' in scope
13 | /// A view that a calendar view displays for a specific date.
14 | public struct Decoration: Sendable, Hashable {
15 | internal let decoration: UICalendarView.Decoration
| `- error: cannot find type 'UICalendarView' in scope
16 |
17 | /// Creates a default calendar view decoration with a filled circle image, using the system fill color and medium size.
/Users/admin/builder/spi-builder-workspace/Sources/CalendarView/CalendarView+Decoration.swift:22:36: error: cannot find type 'UICalendarView' in scope
20 | }
21 |
22 | private init(_ decoration: UICalendarView.Decoration) {
| `- error: cannot find type 'UICalendarView' in scope
23 | self.decoration = decoration
24 | }
/Users/admin/builder/spi-builder-workspace/Sources/CalendarView/CalendarView+Decoration.swift:32:20: error: 'Color' is only available in macOS 10.15 or newer
12 |
13 | /// A view that a calendar view displays for a specific date.
14 | public struct Decoration: Sendable, Hashable {
| `- note: add @available attribute to enclosing struct
15 | internal let decoration: UICalendarView.Decoration
16 |
:
29 | /// - size: A relative size for the decoration.
30 | /// - Returns: A calendar view decoration.
31 | public static func `default`(
| `- note: add @available attribute to enclosing static method
32 | color: Color? = nil,
| `- error: 'Color' is only available in macOS 10.15 or newer
33 | size: DecorationSize = .medium
34 | ) -> Decoration {
/Users/admin/builder/spi-builder-workspace/Sources/CalendarView/CalendarView+Decoration.swift:49:91: error: 'View' is only available in macOS 10.15 or newer
12 |
13 | /// A view that a calendar view displays for a specific date.
14 | public struct Decoration: Sendable, Hashable {
| `- note: add @available attribute to enclosing struct
15 | internal let decoration: UICalendarView.Decoration
16 |
:
47 | /// - customViewProvider: A block of code that creates and returns a calendar view decoration.
48 | /// - Returns: A calendar view decoration.
49 | public static func custom(@ViewBuilder _ customViewProvider: @escaping () -> some View) -> Self {
| | `- error: 'View' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing static method
50 | .init(.customView {
51 | let view = UIHostingController(rootView: customViewProvider()).view!
/Users/admin/builder/spi-builder-workspace/Sources/CalendarView/CalendarView+Decoration.swift:49:36: error: 'ViewBuilder' is only available in macOS 10.15 or newer
12 |
13 | /// A view that a calendar view displays for a specific date.
14 | public struct Decoration: Sendable, Hashable {
| `- note: add @available attribute to enclosing struct
15 | internal let decoration: UICalendarView.Decoration
16 |
:
47 | /// - customViewProvider: A block of code that creates and returns a calendar view decoration.
48 | /// - Returns: A calendar view decoration.
49 | public static func custom(@ViewBuilder _ customViewProvider: @escaping () -> some View) -> Self {
| | `- error: 'ViewBuilder' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing static method
50 | .init(.customView {
51 | let view = UIHostingController(rootView: customViewProvider()).view!
/Users/admin/builder/spi-builder-workspace/Sources/CalendarView/CalendarView+Decoration.swift:49:91: error: 'View' is only available in macOS 10.15 or newer
12 |
13 | /// A view that a calendar view displays for a specific date.
14 | public struct Decoration: Sendable, Hashable {
| `- note: add @available attribute to enclosing struct
15 | internal let decoration: UICalendarView.Decoration
16 |
:
47 | /// - customViewProvider: A block of code that creates and returns a calendar view decoration.
48 | /// - Returns: A calendar view decoration.
49 | public static func custom(@ViewBuilder _ customViewProvider: @escaping () -> some View) -> Self {
| | `- error: 'View' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing static method
50 | .init(.customView {
51 | let view = UIHostingController(rootView: customViewProvider()).view!
/Users/admin/builder/spi-builder-workspace/Sources/CalendarView/CalendarView+Decoration.swift:70:22: error: cannot find type 'UIImage' in scope
68 | /// - Returns: A calendar view decoration.
69 | public static func image(
70 | _ image: UIImage?,
| `- error: cannot find type 'UIImage' in scope
71 | color: Color? = nil,
72 | size: DecorationSize = .medium
/Users/admin/builder/spi-builder-workspace/Sources/CalendarView/CalendarView+Decoration.swift:71:20: error: 'Color' is only available in macOS 10.15 or newer
12 |
13 | /// A view that a calendar view displays for a specific date.
14 | public struct Decoration: Sendable, Hashable {
| `- note: add @available attribute to enclosing struct
15 | internal let decoration: UICalendarView.Decoration
16 |
:
67 | /// - size: A relative size for the decoration.
68 | /// - Returns: A calendar view decoration.
69 | public static func image(
| `- note: add @available attribute to enclosing static method
70 | _ image: UIImage?,
71 | color: Color? = nil,
| `- error: 'Color' is only available in macOS 10.15 or newer
72 | size: DecorationSize = .medium
73 | ) -> Decoration {
/Users/admin/builder/spi-builder-workspace/Sources/CalendarView/CalendarView+Decoration.swift:95:20: error: 'Color' is only available in macOS 10.15 or newer
12 |
13 | /// A view that a calendar view displays for a specific date.
14 | public struct Decoration: Sendable, Hashable {
| `- note: add @available attribute to enclosing struct
15 | internal let decoration: UICalendarView.Decoration
16 |
:
91 | /// - size: A relative size for the decoration.
92 | /// - Returns: A calendar view decoration.
93 | public static func image(
| `- note: add @available attribute to enclosing static method
94 | _ systemName: String,
95 | color: Color? = nil,
| `- error: 'Color' is only available in macOS 10.15 or newer
96 | size: DecorationSize = .medium
97 | ) -> Decoration {
/Users/admin/builder/spi-builder-workspace/Sources/CalendarView/CalendarView+Decoration.swift:14:19: error: type 'CalendarView.Decoration' does not conform to protocol 'Hashable'
12 |
13 | /// A view that a calendar view displays for a specific date.
14 | public struct Decoration: Sendable, Hashable {
| `- error: type 'CalendarView.Decoration' does not conform to protocol 'Hashable'
15 | internal let decoration: UICalendarView.Decoration
| `- note: stored property type '<<error type>>' does not conform to protocol 'Hashable', preventing synthesized conformance of 'CalendarView.Decoration' to 'Hashable'
16 |
17 | /// Creates a default calendar view decoration with a filled circle image, using the system fill color and medium size.
/Users/admin/builder/spi-builder-workspace/Sources/CalendarView/CalendarView+Decoration.swift:14:19: error: type 'CalendarView.Decoration' does not conform to protocol 'Equatable'
12 |
13 | /// A view that a calendar view displays for a specific date.
14 | public struct Decoration: Sendable, Hashable {
| `- error: type 'CalendarView.Decoration' does not conform to protocol 'Equatable'
15 | internal let decoration: UICalendarView.Decoration
| `- note: stored property type '<<error type>>' does not conform to protocol 'Equatable', preventing synthesized conformance of 'CalendarView.Decoration' to 'Equatable'
16 |
17 | /// Creates a default calendar view decoration with a filled circle image, using the system fill color and medium size.
Swift.==:1:24: note: candidate would match if 'CalendarView.Decoration' conformed to 'RawRepresentable'
1 | @inlinable public func == <T>(lhs: T, rhs: T) -> Bool where T : RawRepresentable, T.RawValue : Equatable
| `- note: candidate would match if 'CalendarView.Decoration' conformed to 'RawRepresentable'
Swift.FloatingPoint:2:24: note: candidate would match if 'CalendarView.Decoration' conformed to 'FloatingPoint'
1 | extension FloatingPoint {
2 | public static func == (lhs: Self, rhs: Self) -> Bool
| `- note: candidate would match if 'CalendarView.Decoration' conformed to 'FloatingPoint'
3 | public static func < (lhs: Self, rhs: Self) -> Bool
4 | public static func <= (lhs: Self, rhs: Self) -> Bool
Swift.BinaryInteger:2:24: note: candidate would match if 'CalendarView.Decoration' conformed to 'BinaryInteger'
1 | extension BinaryInteger {
2 | public static func == <Other>(lhs: Self, rhs: Other) -> Bool where Other : BinaryInteger
| `- note: candidate would match if 'CalendarView.Decoration' conformed to 'BinaryInteger'
3 | public static func != <Other>(lhs: Self, rhs: Other) -> Bool where Other : BinaryInteger
4 | public static func < <Other>(lhs: Self, rhs: Other) -> Bool where Other : BinaryInteger
Swift._Pointer:2:24: note: candidate would match if 'CalendarView.Decoration' conformed to '_Pointer'
1 | extension _Pointer {
2 | public static func == (lhs: Self, rhs: Self) -> Bool
| `- note: candidate would match if 'CalendarView.Decoration' conformed to '_Pointer'
3 | @inlinable public static func == <Other>(lhs: Self, rhs: Other) -> Bool where Other : _Pointer
| `- note: candidate would match if 'CalendarView.Decoration' conformed to '_Pointer'
4 | @inlinable public static func != <Other>(lhs: Self, rhs: Other) -> Bool where Other : _Pointer
5 | }
Swift.Strideable:3:35: note: candidate would match if 'CalendarView.Decoration' conformed to 'Strideable'
1 | extension Strideable {
2 | @inlinable public static func < (x: Self, y: Self) -> Bool
3 | @inlinable public static func == (x: Self, y: Self) -> Bool
| `- note: candidate would match if 'CalendarView.Decoration' conformed to 'Strideable'
4 | }
Swift.StringProtocol:2:35: note: candidate would match if 'CalendarView.Decoration' conformed to 'StringProtocol'
1 | extension StringProtocol {
2 | @inlinable public static func == <RHS>(lhs: Self, rhs: RHS) -> Bool where RHS : StringProtocol
| `- note: candidate would match if 'CalendarView.Decoration' conformed to 'StringProtocol'
3 | @inlinable public static func != <RHS>(lhs: Self, rhs: RHS) -> Bool where RHS : StringProtocol
4 | @inlinable public static func < <RHS>(lhs: Self, rhs: RHS) -> Bool where RHS : StringProtocol
Swift.SIMD:4:24: note: candidate would match if 'CalendarView.Decoration' conformed to 'SIMD'
2 | public var indices: Range<Int> { get }
3 | public init(repeating value: Self.Scalar)
4 | public static func == (a: Self, b: Self) -> Bool
| `- note: candidate would match if 'CalendarView.Decoration' conformed to 'SIMD'
5 | @inlinable public func hash(into hasher: inout Hasher)
6 | public func encode(to encoder: any Encoder) throws
Foundation.AttributedStringProtocol:3:24: note: candidate would match if 'CalendarView.Decoration' conformed to 'AttributedStringProtocol'
1 | @available(macOS 12, iOS 15, tvOS 15, watchOS 8, *)
2 | extension AttributedStringProtocol {
3 | public static func == <RHS>(lhs: Self, rhs: RHS) -> Bool where RHS : AttributedStringProtocol
| `- note: candidate would match if 'CalendarView.Decoration' conformed to 'AttributedStringProtocol'
4 | public func hash(into hasher: inout Hasher)
5 | }
Foundation._BridgedStoredNSError:4:24: note: candidate would match if 'CalendarView.Decoration' conformed to '_BridgedStoredNSError'
2 | extension _BridgedStoredNSError {
3 | public func _getEmbeddedNSError() -> AnyObject?
4 | public static func == (lhs: Self, rhs: Self) -> Bool
| `- note: candidate would match if 'CalendarView.Decoration' conformed to '_BridgedStoredNSError'
5 | }
CoreFoundation._CFObject:4:24: note: candidate would match if 'CalendarView.Decoration' conformed to '_CFObject'
2 | public var hashValue: Int { get }
3 | public func hash(into hasher: inout Hasher)
4 | public static func == (left: Self, right: Self) -> Bool
| `- note: candidate would match if 'CalendarView.Decoration' conformed to '_CFObject'
5 | }
Swift.Equatable:2:17: note: protocol requires function '==' with type '(CalendarView.Decoration, CalendarView.Decoration) -> Bool'
1 | public protocol Equatable {
2 | static func == (lhs: Self, rhs: Self) -> Bool
| `- note: protocol requires function '==' with type '(CalendarView.Decoration, CalendarView.Decoration) -> Bool'
3 | }
/Users/admin/builder/spi-builder-workspace/Sources/CalendarView/CalendarView+Previews.swift:12:6: error: 'State' is only available in macOS 10.15 or newer
9 |
10 | @available(iOS 17.0, *)
11 | private struct CalendarView_Preview: View {
| `- note: add @available attribute to enclosing struct
12 | @State
| `- error: 'State' is only available in macOS 10.15 or newer
13 | private var selection = Array<DateComponents>()
14 |
/Users/admin/builder/spi-builder-workspace/Sources/CalendarView/CalendarView+Previews.swift:15:6: error: 'State' is only available in macOS 10.15 or newer
9 |
10 | @available(iOS 17.0, *)
11 | private struct CalendarView_Preview: View {
| `- note: add @available attribute to enclosing struct
12 | @State
13 | private var selection = Array<DateComponents>()
14 |
15 | @State
| `- error: 'State' is only available in macOS 10.15 or newer
16 | private var buffer: DateComponents? = nil
17 |
/Users/admin/builder/spi-builder-workspace/Sources/CalendarView/CalendarView+Previews.swift:18:6: error: 'State' is only available in macOS 10.15 or newer
9 |
10 | @available(iOS 17.0, *)
11 | private struct CalendarView_Preview: View {
| `- note: add @available attribute to enclosing struct
12 | @State
13 | private var selection = Array<DateComponents>()
:
16 | private var buffer: DateComponents? = nil
17 |
18 | @State
| `- error: 'State' is only available in macOS 10.15 or newer
19 | private var toggle = false
20 |
/Users/admin/builder/spi-builder-workspace/Sources/CalendarView/CalendarView+Previews.swift:21:6: error: 'State' is only available in macOS 10.15 or newer
9 |
10 | @available(iOS 17.0, *)
11 | private struct CalendarView_Preview: View {
| `- note: add @available attribute to enclosing struct
12 | @State
13 | private var selection = Array<DateComponents>()
:
19 | private var toggle = false
20 |
21 | @State
| `- error: 'State' is only available in macOS 10.15 or newer
22 | private var visibleDateComponents: DateComponents? = nil
23 |
/Users/admin/builder/spi-builder-workspace/Sources/CalendarView/CalendarView+Previews.swift:24:20: error: 'View' is only available in macOS 10.15 or newer
9 |
10 | @available(iOS 17.0, *)
11 | private struct CalendarView_Preview: View {
| `- note: add @available attribute to enclosing struct
12 | @State
13 | private var selection = Array<DateComponents>()
:
22 | private var visibleDateComponents: DateComponents? = nil
23 |
24 | var body: some View {
| | `- error: 'View' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing property
25 | VStack {
26 | Text("Test")
/Users/admin/builder/spi-builder-workspace/Sources/CalendarView/CalendarView+Previews.swift:63:2: error: 'Preview(_:body:)' is only available in macOS 10.15 or newer
61 |
62 | @available(iOS 17, *)
63 | #Preview {
| `- error: 'Preview(_:body:)' is only available in macOS 10.15 or newer
64 | CalendarView_Preview()
65 | }
/Users/admin/builder/spi-builder-workspace/Sources/CalendarView/CalendarView+Previews.swift:69:5: error: cannot find 'UICalendarView' in scope
67 | @available(iOS 17, *)
68 | #Preview {
69 | UICalendarView(frame: .zero)
| `- error: cannot find 'UICalendarView' in scope
70 | }
71 |
/Users/admin/builder/spi-builder-workspace/Sources/CalendarView/CalendarView+Previews.swift:69:28: error: cannot infer contextual base in reference to member 'zero'
67 | @available(iOS 17, *)
68 | #Preview {
69 | UICalendarView(frame: .zero)
| `- error: cannot infer contextual base in reference to member 'zero'
70 | }
71 |
/Users/admin/builder/spi-builder-workspace/Sources/CalendarView/CalendarView.swift:17:39: error: 'Binding' is only available in macOS 10.15 or newer
9 |
10 | /// A view that displays a calendar with date-specific decorations, and provides for user selection of a single date or multiple dates.
11 | public struct CalendarView: UIViewRepresentable {
| `- note: add @available attribute to enclosing struct
12 | /// The date components that represent the visible date in the calendar view.
13 | ///
:
15 | ///
16 | /// > Important: If `visibleDateComponents`'s [`calendar`](https://developer.apple.com/documentation/foundation/datecomponents/1779873-calendar) property is set to a different `Calendar` than the view's `calendar`, the view uses the current `Environment`'s [`calendar`](https://developer.apple.com/documentation/swiftui/environmentvalues/calendar), which may result in an invalid date from the date components.
17 | public let visibleDateComponents: Binding<DateComponents?>
| `- error: 'Binding' is only available in macOS 10.15 or newer
18 |
19 | /// The range of dates that the calendar view displays.
/Users/admin/builder/spi-builder-workspace/Sources/CalendarView/CalendarView.swift:24:6: error: 'Binding' is only available in macOS 10.15 or newer
9 |
10 | /// A view that displays a calendar with date-specific decorations, and provides for user selection of a single date or multiple dates.
11 | public struct CalendarView: UIViewRepresentable {
| `- note: add @available attribute to enclosing struct
12 | /// The date components that represent the visible date in the calendar view.
13 | ///
:
22 | public let availableDateRange: DateInterval?
23 |
24 | @Binding
| `- error: 'Binding' is only available in macOS 10.15 or newer
25 | internal var selection: [DateComponents]
26 | internal let selectionMode: SelectionMode?
/Users/admin/builder/spi-builder-workspace/Sources/CalendarView/CalendarView.swift:34:22: error: 'Binding' is only available in macOS 10.15 or newer
9 |
10 | /// A view that displays a calendar with date-specific decorations, and provides for user selection of a single date or multiple dates.
11 | public struct CalendarView: UIViewRepresentable {
| `- note: add @available attribute to enclosing struct
12 | /// The date components that represent the visible date in the calendar view.
13 | ///
:
31 | /// - visibleDateComponents: The date components that represent the visible date in the calendar view. This essentially describes the visible view of the calendar. Leave `nil` for default value, which is the current month.
32 | /// - availableDateRange: The range of dates that the calendar view displays and allows for selection. Leave `nil` for no limit.
33 | public init(
| `- note: add @available attribute to enclosing initializer
34 | _ selection: Binding<[DateComponents]>,
| `- error: 'Binding' is only available in macOS 10.15 or newer
35 | visibleDateComponents: Binding<DateComponents?>? = nil,
36 | availableDateRange: DateInterval? = nil
/Users/admin/builder/spi-builder-workspace/Sources/CalendarView/CalendarView.swift:35:32: error: 'Binding' is only available in macOS 10.15 or newer
9 |
10 | /// A view that displays a calendar with date-specific decorations, and provides for user selection of a single date or multiple dates.
11 | public struct CalendarView: UIViewRepresentable {
| `- note: add @available attribute to enclosing struct
12 | /// The date components that represent the visible date in the calendar view.
13 | ///
:
31 | /// - visibleDateComponents: The date components that represent the visible date in the calendar view. This essentially describes the visible view of the calendar. Leave `nil` for default value, which is the current month.
32 | /// - availableDateRange: The range of dates that the calendar view displays and allows for selection. Leave `nil` for no limit.
33 | public init(
| `- note: add @available attribute to enclosing initializer
34 | _ selection: Binding<[DateComponents]>,
35 | visibleDateComponents: Binding<DateComponents?>? = nil,
| `- error: 'Binding' is only available in macOS 10.15 or newer
36 | availableDateRange: DateInterval? = nil
37 | ) {
/Users/admin/builder/spi-builder-workspace/Sources/CalendarView/CalendarView.swift:50:22: error: 'Binding' is only available in macOS 10.15 or newer
9 |
10 | /// A view that displays a calendar with date-specific decorations, and provides for user selection of a single date or multiple dates.
11 | public struct CalendarView: UIViewRepresentable {
| `- note: add @available attribute to enclosing struct
12 | /// The date components that represent the visible date in the calendar view.
13 | ///
:
47 | /// - visibleDateComponents: The date components that represent the visible date in the calendar view. This essentially describes the visible view of the calendar. Leave `nil` for default value, which is the current month.
48 | /// - availableDateRange: The range of dates that the calendar view displays and allows for selection. Leave `nil` for no limit.
49 | public init(
| `- note: add @available attribute to enclosing initializer
50 | _ selection: Binding<Set<DateComponents>>,
| `- error: 'Binding' is only available in macOS 10.15 or newer
51 | visibleDateComponents: Binding<DateComponents?>? = nil,
52 | availableDateRange: DateInterval? = nil
/Users/admin/builder/spi-builder-workspace/Sources/CalendarView/CalendarView.swift:51:32: error: 'Binding' is only available in macOS 10.15 or newer
9 |
10 | /// A view that displays a calendar with date-specific decorations, and provides for user selection of a single date or multiple dates.
11 | public struct CalendarView: UIViewRepresentable {
| `- note: add @available attribute to enclosing struct
12 | /// The date components that represent the visible date in the calendar view.
13 | ///
:
47 | /// - visibleDateComponents: The date components that represent the visible date in the calendar view. This essentially describes the visible view of the calendar. Leave `nil` for default value, which is the current month.
48 | /// - availableDateRange: The range of dates that the calendar view displays and allows for selection. Leave `nil` for no limit.
49 | public init(
| `- note: add @available attribute to enclosing initializer
50 | _ selection: Binding<Set<DateComponents>>,
51 | visibleDateComponents: Binding<DateComponents?>? = nil,
| `- error: 'Binding' is only available in macOS 10.15 or newer
52 | availableDateRange: DateInterval? = nil
53 | ) {
/Users/admin/builder/spi-builder-workspace/Sources/CalendarView/CalendarView.swift:71:22: error: 'Binding' is only available in macOS 10.15 or newer
9 |
10 | /// A view that displays a calendar with date-specific decorations, and provides for user selection of a single date or multiple dates.
11 | public struct CalendarView: UIViewRepresentable {
| `- note: add @available attribute to enclosing struct
12 | /// The date components that represent the visible date in the calendar view.
13 | ///
:
68 | /// - visibleDateComponents: The date components that represent the visible date in the calendar view. This essentially describes the visible view of the calendar. Leave `nil` for default value, which is the current month.
69 | /// - availableDateRange: The range of dates that the calendar view displays and allows for selection. Leave `nil` for no limit.
70 | public init(
| `- note: add @available attribute to enclosing initializer
71 | _ selection: Binding<DateComponents?>? = nil,
| `- error: 'Binding' is only available in macOS 10.15 or newer
72 | visibleDateComponents: Binding<DateComponents?>? = nil,
73 | availableDateRange: DateInterval? = nil
/Users/admin/builder/spi-builder-workspace/Sources/CalendarView/CalendarView.swift:72:32: error: 'Binding' is only available in macOS 10.15 or newer
9 |
10 | /// A view that displays a calendar with date-specific decorations, and provides for user selection of a single date or multiple dates.
11 | public struct CalendarView: UIViewRepresentable {
| `- note: add @available attribute to enclosing struct
12 | /// The date components that represent the visible date in the calendar view.
13 | ///
:
68 | /// - visibleDateComponents: The date components that represent the visible date in the calendar view. This essentially describes the visible view of the calendar. Leave `nil` for default value, which is the current month.
69 | /// - availableDateRange: The range of dates that the calendar view displays and allows for selection. Leave `nil` for no limit.
70 | public init(
| `- note: add @available attribute to enclosing initializer
71 | _ selection: Binding<DateComponents?>? = nil,
72 | visibleDateComponents: Binding<DateComponents?>? = nil,
| `- error: 'Binding' is only available in macOS 10.15 or newer
73 | availableDateRange: DateInterval? = nil
74 | ) {
/Users/admin/builder/spi-builder-workspace/Sources/CalendarView/CalendarView.swift:90:49: error: cannot find type 'UICalendarView' in scope
88 | }
89 |
90 | public func makeUIView(context: Context) -> UICalendarView {
| `- error: cannot find type 'UICalendarView' in scope
91 | let view = UICalendarView(frame: .zero)
92 |
/Users/admin/builder/spi-builder-workspace/Sources/CalendarView/CalendarView.swift:90:37: error: cannot find type 'Context' in scope
88 | }
89 |
90 | public func makeUIView(context: Context) -> UICalendarView {
| `- error: cannot find type 'Context' in scope
91 | let view = UICalendarView(frame: .zero)
92 |
/Users/admin/builder/spi-builder-workspace/Sources/CalendarView/CalendarView.swift:118:40: error: cannot find type 'UICalendarView' in scope
116 | }
117 |
118 | public func updateUIView(_ uiView: UICalendarView, context: Context) {
| `- error: cannot find type 'UICalendarView' in scope
119 | context.coordinator.isUpdatingView = true
120 | defer { context.coordinator.isUpdatingView = false }
/Users/admin/builder/spi-builder-workspace/Sources/CalendarView/CalendarView.swift:118:65: error: cannot find type 'Context' in scope
116 | }
117 |
118 | public func updateUIView(_ uiView: UICalendarView, context: Context) {
| `- error: cannot find type 'Context' in scope
119 | context.coordinator.isUpdatingView = true
120 | defer { context.coordinator.isUpdatingView = false }
/Users/admin/builder/spi-builder-workspace/Sources/CalendarView/CalendarView.swift:181:29: error: cannot find type 'UIFontDescriptor' in scope
179 | // MARK: - Misc Modifier Properties
180 |
181 | private var fontDesign: UIFontDescriptor.SystemDesign = .default
| `- error: cannot find type 'UIFontDescriptor' in scope
182 |
183 | /// A font design that the calendar view uses for displaying calendar text.
/Users/admin/builder/spi-builder-workspace/Sources/CalendarView/CalendarView.swift:186:38: error: 'Font' is only available in macOS 10.15 or newer
9 |
10 | /// A view that displays a calendar with date-specific decorations, and provides for user selection of a single date or multiple dates.
11 | public struct CalendarView: UIViewRepresentable {
| `- note: add @available attribute to enclosing struct
12 | /// The date components that represent the visible date in the calendar view.
13 | ///
:
184 | ///
185 | /// Defaults to [`.default`](https://developer.apple.com/documentation/swiftui/font/design/default).
186 | public func fontDesign(_ design: Font.Design) -> CalendarView {
| | `- error: 'Font' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing instance method
187 | var new = self
188 |
/Users/admin/builder/spi-builder-workspace/Sources/CalendarView/CalendarView.swift:212:117: error: 'View' is only available in macOS 10.15 or newer
9 |
10 | /// A view that displays a calendar with date-specific decorations, and provides for user selection of a single date or multiple dates.
11 | public struct CalendarView: UIViewRepresentable {
| `- note: add @available attribute to enclosing struct
12 | /// The date components that represent the visible date in the calendar view.
13 | ///
:
210 |
211 | /// Set custom decoration views for dates in the CalendarView view a `@ViewBuilder`.
212 | public func decorations(@ViewBuilder _ customViewProvider: @escaping (_ dateComponents: DateComponents) -> some View) -> CalendarView {
| | `- error: 'View' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing instance method
213 | var new = self
214 | new.decorationCallback = { dateComponents in
/Users/admin/builder/spi-builder-workspace/Sources/CalendarView/CalendarView.swift:212:30: error: 'ViewBuilder' is only available in macOS 10.15 or newer
9 |
10 | /// A view that displays a calendar with date-specific decorations, and provides for user selection of a single date or multiple dates.
11 | public struct CalendarView: UIViewRepresentable {
| `- note: add @available attribute to enclosing struct
12 | /// The date components that represent the visible date in the calendar view.
13 | ///
:
210 |
211 | /// Set custom decoration views for dates in the CalendarView view a `@ViewBuilder`.
212 | public func decorations(@ViewBuilder _ customViewProvider: @escaping (_ dateComponents: DateComponents) -> some View) -> CalendarView {
| | `- error: 'ViewBuilder' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing instance method
213 | var new = self
214 | new.decorationCallback = { dateComponents in
/Users/admin/builder/spi-builder-workspace/Sources/CalendarView/CalendarView.swift:212:117: error: 'View' is only available in macOS 10.15 or newer
9 |
10 | /// A view that displays a calendar with date-specific decorations, and provides for user selection of a single date or multiple dates.
11 | public struct CalendarView: UIViewRepresentable {
| `- note: add @available attribute to enclosing struct
12 | /// The date components that represent the visible date in the calendar view.
13 | ///
:
210 |
211 | /// Set custom decoration views for dates in the CalendarView view a `@ViewBuilder`.
212 | public func decorations(@ViewBuilder _ customViewProvider: @escaping (_ dateComponents: DateComponents) -> some View) -> CalendarView {
| | `- error: 'View' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing instance method
213 | var new = self
214 | new.decorationCallback = { dateComponents in
/Users/admin/builder/spi-builder-workspace/Sources/CalendarView/CalendarView.swift:11:29: error: cannot find type 'UIViewRepresentable' in scope
9 |
10 | /// A view that displays a calendar with date-specific decorations, and provides for user selection of a single date or multiple dates.
11 | public struct CalendarView: UIViewRepresentable {
| `- error: cannot find type 'UIViewRepresentable' in scope
12 | /// The date components that represent the visible date in the calendar view.
13 | ///
/Users/admin/builder/spi-builder-workspace/Sources/CalendarView/Convenience Extensions/EnvironmentModifiers.swift:13:56: error: 'View' is only available in macOS 10.15 or newer
8 | import SwiftUI
9 |
10 | extension View {
| `- note: add @available attribute to enclosing extension
11 | /// Sets the current calendar that views should use when handling dates.
12 | /// - Parameter calendar: A new Calendar.
13 | public func calendar(_ calendar: Calendar) -> some View {
| | `- error: 'View' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing instance method
14 | self.environment(\.calendar, calendar)
15 | }
/Users/admin/builder/spi-builder-workspace/Sources/CalendarView/Convenience Extensions/EnvironmentModifiers.swift:19:50: error: 'View' is only available in macOS 10.15 or newer
8 | import SwiftUI
9 |
10 | extension View {
| `- note: add @available attribute to enclosing extension
11 | /// Sets the current calendar that views should use when handling dates.
12 | /// - Parameter calendar: A new Calendar.
:
17 | /// Sets the current locale that views should use.
18 | /// - Parameter calendar: A new Locale.
19 | public func locale(_ locale: Locale) -> some View {
| | `- error: 'View' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing instance method
20 | self.environment(\.locale, locale)
21 | }
/Users/admin/builder/spi-builder-workspace/Sources/CalendarView/Convenience Extensions/EnvironmentModifiers.swift:25:56: error: 'View' is only available in macOS 10.15 or newer
8 | import SwiftUI
9 |
10 | extension View {
| `- note: add @available attribute to enclosing extension
11 | /// Sets the current calendar that views should use when handling dates.
12 | /// - Parameter calendar: A new Calendar.
:
23 | /// Sets the current time zone that views should use when handling dates.
24 | /// - Parameter calendar: A new TimeZone.
25 | public func timeZone(_ timeZone: TimeZone) -> some View {
| | `- error: 'View' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing instance method
26 | self.environment(\.timeZone, timeZone)
27 | }
/Users/admin/builder/spi-builder-workspace/Sources/CalendarView/Convenience Extensions/EnvironmentModifiers.swift:10:11: error: 'View' is only available in macOS 10.15 or newer
8 | import SwiftUI
9 |
10 | extension View {
| | `- error: 'View' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing extension
11 | /// Sets the current calendar that views should use when handling dates.
12 | /// - Parameter calendar: A new Calendar.
/Users/admin/builder/spi-builder-workspace/Sources/CalendarView/Internal Extensions/Binding+Map.swift:13:10: error: 'Binding' is only available in macOS 10.15 or newer
8 | import SwiftUI
9 |
10 | extension Binding {
| `- note: add @available attribute to enclosing extension
11 | func map<T>(
| `- note: add @available attribute to enclosing instance method
12 | _ keyPath: WritableKeyPath<Value, T>
13 | ) -> Binding<T> {
| `- error: 'Binding' is only available in macOS 10.15 or newer
14 | Binding<T>(
15 | get: { wrappedValue[keyPath: keyPath] },
/Users/admin/builder/spi-builder-workspace/Sources/CalendarView/Internal Extensions/Binding+Map.swift:23:10: error: 'Binding' is only available in macOS 10.15 or newer
8 | import SwiftUI
9 |
10 | extension Binding {
| `- note: add @available attribute to enclosing extension
11 | func map<T>(
12 | _ keyPath: WritableKeyPath<Value, T>
:
18 | }
19 |
20 | func map<T>(
| `- note: add @available attribute to enclosing instance method
21 | transform: @escaping (Value) -> T,
22 | reverse : @escaping (T) -> Value
23 | ) -> Binding<T> {
| `- error: 'Binding' is only available in macOS 10.15 or newer
24 | Binding<T>(
25 | get: { transform(self.wrappedValue) },
/Users/admin/builder/spi-builder-workspace/Sources/CalendarView/Internal Extensions/Binding+Map.swift:33:10: error: 'Binding' is only available in macOS 10.15 or newer
8 | import SwiftUI
9 |
10 | extension Binding {
| `- note: add @available attribute to enclosing extension
11 | func map<T>(
12 | _ keyPath: WritableKeyPath<Value, T>
:
28 | }
29 |
30 | func map<T, U>(
| `- note: add @available attribute to enclosing instance method
31 | transform: @escaping (T) -> U,
32 | reverse : @escaping (U) -> T
33 | ) -> Binding<U?> where Value == Optional<T> {
| `- error: 'Binding' is only available in macOS 10.15 or newer
34 | Binding<U?>(
35 | get: { self.wrappedValue.map(transform) },
/Users/admin/builder/spi-builder-workspace/Sources/CalendarView/Internal Extensions/Binding+Map.swift:10:11: error: 'Binding' is only available in macOS 10.15 or newer
8 | import SwiftUI
9 |
10 | extension Binding {
| | `- error: 'Binding' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing extension
11 | func map<T>(
12 | _ keyPath: WritableKeyPath<Value, T>
[4/12] Compiling CalendarView CalendarView+Previews.swift
/Users/admin/builder/spi-builder-workspace/Sources/CalendarView/CalendarView+Previews.swift:12:6: error: 'State' is only available in macOS 10.15 or newer
9 |
10 | @available(iOS 17.0, *)
11 | private struct CalendarView_Preview: View {
| `- note: add @available attribute to enclosing struct
12 | @State
| `- error: 'State' is only available in macOS 10.15 or newer
13 | private var selection = Array<DateComponents>()
14 |
/Users/admin/builder/spi-builder-workspace/Sources/CalendarView/CalendarView+Previews.swift:15:6: error: 'State' is only available in macOS 10.15 or newer
9 |
10 | @available(iOS 17.0, *)
11 | private struct CalendarView_Preview: View {
| `- note: add @available attribute to enclosing struct
12 | @State
13 | private var selection = Array<DateComponents>()
14 |
15 | @State
| `- error: 'State' is only available in macOS 10.15 or newer
16 | private var buffer: DateComponents? = nil
17 |
/Users/admin/builder/spi-builder-workspace/Sources/CalendarView/CalendarView+Previews.swift:18:6: error: 'State' is only available in macOS 10.15 or newer
9 |
10 | @available(iOS 17.0, *)
11 | private struct CalendarView_Preview: View {
| `- note: add @available attribute to enclosing struct
12 | @State
13 | private var selection = Array<DateComponents>()
:
16 | private var buffer: DateComponents? = nil
17 |
18 | @State
| `- error: 'State' is only available in macOS 10.15 or newer
19 | private var toggle = false
20 |
/Users/admin/builder/spi-builder-workspace/Sources/CalendarView/CalendarView+Previews.swift:21:6: error: 'State' is only available in macOS 10.15 or newer
9 |
10 | @available(iOS 17.0, *)
11 | private struct CalendarView_Preview: View {
| `- note: add @available attribute to enclosing struct
12 | @State
13 | private var selection = Array<DateComponents>()
:
19 | private var toggle = false
20 |
21 | @State
| `- error: 'State' is only available in macOS 10.15 or newer
22 | private var visibleDateComponents: DateComponents? = nil
23 |
/Users/admin/builder/spi-builder-workspace/Sources/CalendarView/CalendarView+Previews.swift:24:20: error: 'View' is only available in macOS 10.15 or newer
9 |
10 | @available(iOS 17.0, *)
11 | private struct CalendarView_Preview: View {
| `- note: add @available attribute to enclosing struct
12 | @State
13 | private var selection = Array<DateComponents>()
:
22 | private var visibleDateComponents: DateComponents? = nil
23 |
24 | var body: some View {
| | `- error: 'View' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing property
25 | VStack {
26 | Text("Test")
/Users/admin/builder/spi-builder-workspace/Sources/CalendarView/CalendarView+Previews.swift:63:2: error: 'Preview(_:body:)' is only available in macOS 10.15 or newer
61 |
62 | @available(iOS 17, *)
63 | #Preview {
| `- error: 'Preview(_:body:)' is only available in macOS 10.15 or newer
64 | CalendarView_Preview()
65 | }
/Users/admin/builder/spi-builder-workspace/Sources/CalendarView/CalendarView+Previews.swift:69:5: error: cannot find 'UICalendarView' in scope
67 | @available(iOS 17, *)
68 | #Preview {
69 | UICalendarView(frame: .zero)
| `- error: cannot find 'UICalendarView' in scope
70 | }
71 |
/Users/admin/builder/spi-builder-workspace/Sources/CalendarView/CalendarView+Previews.swift:69:28: error: cannot infer contextual base in reference to member 'zero'
67 | @available(iOS 17, *)
68 | #Preview {
69 | UICalendarView(frame: .zero)
| `- error: cannot infer contextual base in reference to member 'zero'
70 | }
71 |
/Users/admin/builder/spi-builder-workspace/Sources/CalendarView/CalendarView+Decoration.swift:70:22: error: cannot find type 'UIImage' in scope
68 | /// - Returns: A calendar view decoration.
69 | public static func image(
70 | _ image: UIImage?,
| `- error: cannot find type 'UIImage' in scope
71 | color: Color? = nil,
72 | size: DecorationSize = .medium
/Users/admin/builder/spi-builder-workspace/Sources/CalendarView/CalendarView+Decoration.swift:11:39: error: cannot find type 'UICalendarView' in scope
9 |
10 | extension CalendarView {
11 | public typealias DecorationSize = UICalendarView.DecorationSize
| `- error: cannot find type 'UICalendarView' in scope
12 |
13 | /// A view that a calendar view displays for a specific date.
/Users/admin/builder/spi-builder-workspace/Sources/CalendarView/CalendarView+Previews.swift:47:49: error: cannot infer contextual base in reference to member 'orange'
45 | .fontDesign(.default)
46 | .decorations { _ in
47 | .image("star.fill", color: .orange)
| `- error: cannot infer contextual base in reference to member 'orange'
48 | }
49 | .fixedSize()
/Users/admin/builder/spi-builder-workspace/Sources/CalendarView/CalendarView+Previews.swift:49:18: error: value of type 'CalendarView' has no member 'fixedSize'
47 | .image("star.fill", color: .orange)
48 | }
49 | .fixedSize()
| `- error: value of type 'CalendarView' has no member 'fixedSize'
50 | }
51 | .padding()
[5/12] Compiling CalendarView CalendarView+SelectionMode.swift
[6/12] Compiling CalendarView Array+Duplicates.swift
[7/12] Compiling CalendarView CalendarView+Coordinator.swift
/Users/admin/builder/spi-builder-workspace/Sources/CalendarView/CalendarView+Coordinator.swift:25:37: error: cannot find type 'UICalendarViewDelegate' in scope
23 | // MARK: UICalendarViewDelegate
24 |
25 | extension CalendarView.Coordinator: UICalendarViewDelegate {
| `- error: cannot find type 'UICalendarViewDelegate' in scope
26 | private static let components: Set<Calendar.Component> = {
27 | var temp: Set<Calendar.Component> = [.year, .day, .month, .era, .calendar, .timeZone, .weekOfMonth, .weekOfYear, .weekday, .weekdayOrdinal, .yearForWeekOfYear]
/Users/admin/builder/spi-builder-workspace/Sources/CalendarView/CalendarView+Coordinator.swift:35:10: error: cannot find type 'UICalendarView' in scope
33 | _ calendarView: UICalendarView,
34 | decorationFor dateComponents: DateComponents
35 | ) -> UICalendarView.Decoration? {
| `- error: cannot find type 'UICalendarView' in scope
36 | if #unavailable(iOS 16.2, macCatalyst 16.2, visionOS 1.0) {
37 | // UICalendarView doesn't provide a way to get notified when property visibleDateComponents changes.
/Users/admin/builder/spi-builder-workspace/Sources/CalendarView/CalendarView+Coordinator.swift:33:25: error: cannot find type 'UICalendarView' in scope
31 |
32 | public func calendarView(
33 | _ calendarView: UICalendarView,
| `- error: cannot find type 'UICalendarView' in scope
34 | decorationFor dateComponents: DateComponents
35 | ) -> UICalendarView.Decoration? {
/Users/admin/builder/spi-builder-workspace/Sources/CalendarView/CalendarView+Coordinator.swift:67:25: error: cannot find type 'UICalendarView' in scope
65 |
66 | public func calendarView(
67 | _ calendarView: UICalendarView,
| `- error: cannot find type 'UICalendarView' in scope
68 | didChangeVisibleDateComponentsFrom previousDateComponents: DateComponents
69 | ) {
/Users/admin/builder/spi-builder-workspace/Sources/CalendarView/CalendarView+Coordinator.swift:76:37: error: cannot find type 'UICalendarSelectionMultiDateDelegate' in scope
74 | // MARK: - UICalendarSelectionMultiDateDelegate
75 |
76 | extension CalendarView.Coordinator: UICalendarSelectionMultiDateDelegate {
| `- error: cannot find type 'UICalendarSelectionMultiDateDelegate' in scope
77 | // MARK: Getting selectable dates
78 |
/Users/admin/builder/spi-builder-workspace/Sources/CalendarView/CalendarView+Coordinator.swift:86:22: error: cannot find type 'UICalendarSelectionMultiDate' in scope
84 | /// - dateComponents: Date components that represent a date the user selected.
85 | public func multiDateSelection(
86 | _ selection: UICalendarSelectionMultiDate,
| `- error: cannot find type 'UICalendarSelectionMultiDate' in scope
87 | didSelectDate dateComponents: DateComponents
88 | ) {
/Users/admin/builder/spi-builder-workspace/Sources/CalendarView/CalendarView+Coordinator.swift:99:22: error: cannot find type 'UICalendarSelectionMultiDate' in scope
97 | /// - dateComponents: Date components that represent a date the user deselected.
98 | public func multiDateSelection(
99 | _ selection: UICalendarSelectionMultiDate,
| `- error: cannot find type 'UICalendarSelectionMultiDate' in scope
100 | didDeselectDate dateComponents: DateComponents
101 | ) {
/Users/admin/builder/spi-builder-workspace/Sources/CalendarView/CalendarView+Coordinator.swift:109:37: error: cannot find type 'UICalendarSelectionSingleDateDelegate' in scope
107 | // MARK: - UICalendarSelectionSingleDateDelegate
108 |
109 | extension CalendarView.Coordinator: UICalendarSelectionSingleDateDelegate {
| `- error: cannot find type 'UICalendarSelectionSingleDateDelegate' in scope
110 | // MARK: Getting selectable dates
111 |
/Users/admin/builder/spi-builder-workspace/Sources/CalendarView/CalendarView+Coordinator.swift:119:22: error: cannot find type 'UICalendarSelectionSingleDate' in scope
117 | /// - dateComponents: Date components that represent a date the user selected, or `nil` if the user deselected a date.
118 | public func dateSelection(
119 | _ selection: UICalendarSelectionSingleDate,
| `- error: cannot find type 'UICalendarSelectionSingleDate' in scope
120 | didSelectDate dateComponents: DateComponents?
121 | ) {
/Users/admin/builder/spi-builder-workspace/Sources/CalendarView/CalendarView+Coordinator.swift:123:9: error: setter for 'selection' is only available in macOS 10.15 or newer
107 | // MARK: - UICalendarSelectionSingleDateDelegate
108 |
109 | extension CalendarView.Coordinator: UICalendarSelectionSingleDateDelegate {
| `- note: add @available attribute to enclosing extension
110 | // MARK: Getting selectable dates
111 |
:
116 | /// - selection: An object that tracks a date that a user selects from a calendar view.
117 | /// - dateComponents: Date components that represent a date the user selected, or `nil` if the user deselected a date.
118 | public func dateSelection(
| `- note: add @available attribute to enclosing instance method
119 | _ selection: UICalendarSelectionSingleDate,
120 | didSelectDate dateComponents: DateComponents?
121 | ) {
122 | guard self.parent.selectionMode == .singleDate else { return }
123 | self.parent.selection = dateComponents
| |- error: setter for 'selection' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
124 | .map { [$0] } ?? []
125 | }
[8/12] Compiling CalendarView DateInterval+RangeInit.swift
[9/12] Compiling CalendarView CalendarView.swift
/Users/admin/builder/spi-builder-workspace/Sources/CalendarView/CalendarView.swift:17:39: error: 'Binding' is only available in macOS 10.15 or newer
9 |
10 | /// A view that displays a calendar with date-specific decorations, and provides for user selection of a single date or multiple dates.
11 | public struct CalendarView: UIViewRepresentable {
| `- note: add @available attribute to enclosing struct
12 | /// The date components that represent the visible date in the calendar view.
13 | ///
:
15 | ///
16 | /// > Important: If `visibleDateComponents`'s [`calendar`](https://developer.apple.com/documentation/foundation/datecomponents/1779873-calendar) property is set to a different `Calendar` than the view's `calendar`, the view uses the current `Environment`'s [`calendar`](https://developer.apple.com/documentation/swiftui/environmentvalues/calendar), which may result in an invalid date from the date components.
17 | public let visibleDateComponents: Binding<DateComponents?>
| `- error: 'Binding' is only available in macOS 10.15 or newer
18 |
19 | /// The range of dates that the calendar view displays.
/Users/admin/builder/spi-builder-workspace/Sources/CalendarView/CalendarView.swift:24:6: error: 'Binding' is only available in macOS 10.15 or newer
9 |
10 | /// A view that displays a calendar with date-specific decorations, and provides for user selection of a single date or multiple dates.
11 | public struct CalendarView: UIViewRepresentable {
| `- note: add @available attribute to enclosing struct
12 | /// The date components that represent the visible date in the calendar view.
13 | ///
:
22 | public let availableDateRange: DateInterval?
23 |
24 | @Binding
| `- error: 'Binding' is only available in macOS 10.15 or newer
25 | internal var selection: [DateComponents]
26 | internal let selectionMode: SelectionMode?
/Users/admin/builder/spi-builder-workspace/Sources/CalendarView/CalendarView.swift:34:22: error: 'Binding' is only available in macOS 10.15 or newer
9 |
10 | /// A view that displays a calendar with date-specific decorations, and provides for user selection of a single date or multiple dates.
11 | public struct CalendarView: UIViewRepresentable {
| `- note: add @available attribute to enclosing struct
12 | /// The date components that represent the visible date in the calendar view.
13 | ///
:
31 | /// - visibleDateComponents: The date components that represent the visible date in the calendar view. This essentially describes the visible view of the calendar. Leave `nil` for default value, which is the current month.
32 | /// - availableDateRange: The range of dates that the calendar view displays and allows for selection. Leave `nil` for no limit.
33 | public init(
| `- note: add @available attribute to enclosing initializer
34 | _ selection: Binding<[DateComponents]>,
| `- error: 'Binding' is only available in macOS 10.15 or newer
35 | visibleDateComponents: Binding<DateComponents?>? = nil,
36 | availableDateRange: DateInterval? = nil
/Users/admin/builder/spi-builder-workspace/Sources/CalendarView/CalendarView.swift:35:32: error: 'Binding' is only available in macOS 10.15 or newer
9 |
10 | /// A view that displays a calendar with date-specific decorations, and provides for user selection of a single date or multiple dates.
11 | public struct CalendarView: UIViewRepresentable {
| `- note: add @available attribute to enclosing struct
12 | /// The date components that represent the visible date in the calendar view.
13 | ///
:
31 | /// - visibleDateComponents: The date components that represent the visible date in the calendar view. This essentially describes the visible view of the calendar. Leave `nil` for default value, which is the current month.
32 | /// - availableDateRange: The range of dates that the calendar view displays and allows for selection. Leave `nil` for no limit.
33 | public init(
| `- note: add @available attribute to enclosing initializer
34 | _ selection: Binding<[DateComponents]>,
35 | visibleDateComponents: Binding<DateComponents?>? = nil,
| `- error: 'Binding' is only available in macOS 10.15 or newer
36 | availableDateRange: DateInterval? = nil
37 | ) {
/Users/admin/builder/spi-builder-workspace/Sources/CalendarView/CalendarView.swift:50:22: error: 'Binding' is only available in macOS 10.15 or newer
9 |
10 | /// A view that displays a calendar with date-specific decorations, and provides for user selection of a single date or multiple dates.
11 | public struct CalendarView: UIViewRepresentable {
| `- note: add @available attribute to enclosing struct
12 | /// The date components that represent the visible date in the calendar view.
13 | ///
:
47 | /// - visibleDateComponents: The date components that represent the visible date in the calendar view. This essentially describes the visible view of the calendar. Leave `nil` for default value, which is the current month.
48 | /// - availableDateRange: The range of dates that the calendar view displays and allows for selection. Leave `nil` for no limit.
49 | public init(
| `- note: add @available attribute to enclosing initializer
50 | _ selection: Binding<Set<DateComponents>>,
| `- error: 'Binding' is only available in macOS 10.15 or newer
51 | visibleDateComponents: Binding<DateComponents?>? = nil,
52 | availableDateRange: DateInterval? = nil
/Users/admin/builder/spi-builder-workspace/Sources/CalendarView/CalendarView.swift:51:32: error: 'Binding' is only available in macOS 10.15 or newer
9 |
10 | /// A view that displays a calendar with date-specific decorations, and provides for user selection of a single date or multiple dates.
11 | public struct CalendarView: UIViewRepresentable {
| `- note: add @available attribute to enclosing struct
12 | /// The date components that represent the visible date in the calendar view.
13 | ///
:
47 | /// - visibleDateComponents: The date components that represent the visible date in the calendar view. This essentially describes the visible view of the calendar. Leave `nil` for default value, which is the current month.
48 | /// - availableDateRange: The range of dates that the calendar view displays and allows for selection. Leave `nil` for no limit.
49 | public init(
| `- note: add @available attribute to enclosing initializer
50 | _ selection: Binding<Set<DateComponents>>,
51 | visibleDateComponents: Binding<DateComponents?>? = nil,
| `- error: 'Binding' is only available in macOS 10.15 or newer
52 | availableDateRange: DateInterval? = nil
53 | ) {
/Users/admin/builder/spi-builder-workspace/Sources/CalendarView/CalendarView.swift:71:22: error: 'Binding' is only available in macOS 10.15 or newer
9 |
10 | /// A view that displays a calendar with date-specific decorations, and provides for user selection of a single date or multiple dates.
11 | public struct CalendarView: UIViewRepresentable {
| `- note: add @available attribute to enclosing struct
12 | /// The date components that represent the visible date in the calendar view.
13 | ///
:
68 | /// - visibleDateComponents: The date components that represent the visible date in the calendar view. This essentially describes the visible view of the calendar. Leave `nil` for default value, which is the current month.
69 | /// - availableDateRange: The range of dates that the calendar view displays and allows for selection. Leave `nil` for no limit.
70 | public init(
| `- note: add @available attribute to enclosing initializer
71 | _ selection: Binding<DateComponents?>? = nil,
| `- error: 'Binding' is only available in macOS 10.15 or newer
72 | visibleDateComponents: Binding<DateComponents?>? = nil,
73 | availableDateRange: DateInterval? = nil
/Users/admin/builder/spi-builder-workspace/Sources/CalendarView/CalendarView.swift:72:32: error: 'Binding' is only available in macOS 10.15 or newer
9 |
10 | /// A view that displays a calendar with date-specific decorations, and provides for user selection of a single date or multiple dates.
11 | public struct CalendarView: UIViewRepresentable {
| `- note: add @available attribute to enclosing struct
12 | /// The date components that represent the visible date in the calendar view.
13 | ///
:
68 | /// - visibleDateComponents: The date components that represent the visible date in the calendar view. This essentially describes the visible view of the calendar. Leave `nil` for default value, which is the current month.
69 | /// - availableDateRange: The range of dates that the calendar view displays and allows for selection. Leave `nil` for no limit.
70 | public init(
| `- note: add @available attribute to enclosing initializer
71 | _ selection: Binding<DateComponents?>? = nil,
72 | visibleDateComponents: Binding<DateComponents?>? = nil,
| `- error: 'Binding' is only available in macOS 10.15 or newer
73 | availableDateRange: DateInterval? = nil
74 | ) {
/Users/admin/builder/spi-builder-workspace/Sources/CalendarView/CalendarView.swift:90:49: error: cannot find type 'UICalendarView' in scope
88 | }
89 |
90 | public func makeUIView(context: Context) -> UICalendarView {
| `- error: cannot find type 'UICalendarView' in scope
91 | let view = UICalendarView(frame: .zero)
92 |
/Users/admin/builder/spi-builder-workspace/Sources/CalendarView/CalendarView.swift:90:37: error: cannot find type 'Context' in scope
88 | }
89 |
90 | public func makeUIView(context: Context) -> UICalendarView {
| `- error: cannot find type 'Context' in scope
91 | let view = UICalendarView(frame: .zero)
92 |
/Users/admin/builder/spi-builder-workspace/Sources/CalendarView/CalendarView.swift:118:40: error: cannot find type 'UICalendarView' in scope
116 | }
117 |
118 | public func updateUIView(_ uiView: UICalendarView, context: Context) {
| `- error: cannot find type 'UICalendarView' in scope
119 | context.coordinator.isUpdatingView = true
120 | defer { context.coordinator.isUpdatingView = false }
/Users/admin/builder/spi-builder-workspace/Sources/CalendarView/CalendarView.swift:118:65: error: cannot find type 'Context' in scope
116 | }
117 |
118 | public func updateUIView(_ uiView: UICalendarView, context: Context) {
| `- error: cannot find type 'Context' in scope
119 | context.coordinator.isUpdatingView = true
120 | defer { context.coordinator.isUpdatingView = false }
/Users/admin/builder/spi-builder-workspace/Sources/CalendarView/CalendarView.swift:181:29: error: cannot find type 'UIFontDescriptor' in scope
179 | // MARK: - Misc Modifier Properties
180 |
181 | private var fontDesign: UIFontDescriptor.SystemDesign = .default
| `- error: cannot find type 'UIFontDescriptor' in scope
182 |
183 | /// A font design that the calendar view uses for displaying calendar text.
/Users/admin/builder/spi-builder-workspace/Sources/CalendarView/CalendarView.swift:186:38: error: 'Font' is only available in macOS 10.15 or newer
9 |
10 | /// A view that displays a calendar with date-specific decorations, and provides for user selection of a single date or multiple dates.
11 | public struct CalendarView: UIViewRepresentable {
| `- note: add @available attribute to enclosing struct
12 | /// The date components that represent the visible date in the calendar view.
13 | ///
:
184 | ///
185 | /// Defaults to [`.default`](https://developer.apple.com/documentation/swiftui/font/design/default).
186 | public func fontDesign(_ design: Font.Design) -> CalendarView {
| | `- error: 'Font' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing instance method
187 | var new = self
188 |
/Users/admin/builder/spi-builder-workspace/Sources/CalendarView/CalendarView.swift:212:117: error: 'View' is only available in macOS 10.15 or newer
9 |
10 | /// A view that displays a calendar with date-specific decorations, and provides for user selection of a single date or multiple dates.
11 | public struct CalendarView: UIViewRepresentable {
| `- note: add @available attribute to enclosing struct
12 | /// The date components that represent the visible date in the calendar view.
13 | ///
:
210 |
211 | /// Set custom decoration views for dates in the CalendarView view a `@ViewBuilder`.
212 | public func decorations(@ViewBuilder _ customViewProvider: @escaping (_ dateComponents: DateComponents) -> some View) -> CalendarView {
| | `- error: 'View' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing instance method
213 | var new = self
214 | new.decorationCallback = { dateComponents in
/Users/admin/builder/spi-builder-workspace/Sources/CalendarView/CalendarView.swift:212:30: error: 'ViewBuilder' is only available in macOS 10.15 or newer
9 |
10 | /// A view that displays a calendar with date-specific decorations, and provides for user selection of a single date or multiple dates.
11 | public struct CalendarView: UIViewRepresentable {
| `- note: add @available attribute to enclosing struct
12 | /// The date components that represent the visible date in the calendar view.
13 | ///
:
210 |
211 | /// Set custom decoration views for dates in the CalendarView view a `@ViewBuilder`.
212 | public func decorations(@ViewBuilder _ customViewProvider: @escaping (_ dateComponents: DateComponents) -> some View) -> CalendarView {
| | `- error: 'ViewBuilder' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing instance method
213 | var new = self
214 | new.decorationCallback = { dateComponents in
/Users/admin/builder/spi-builder-workspace/Sources/CalendarView/CalendarView.swift:212:117: error: 'View' is only available in macOS 10.15 or newer
9 |
10 | /// A view that displays a calendar with date-specific decorations, and provides for user selection of a single date or multiple dates.
11 | public struct CalendarView: UIViewRepresentable {
| `- note: add @available attribute to enclosing struct
12 | /// The date components that represent the visible date in the calendar view.
13 | ///
:
210 |
211 | /// Set custom decoration views for dates in the CalendarView view a `@ViewBuilder`.
212 | public func decorations(@ViewBuilder _ customViewProvider: @escaping (_ dateComponents: DateComponents) -> some View) -> CalendarView {
| | `- error: 'View' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing instance method
213 | var new = self
214 | new.decorationCallback = { dateComponents in
/Users/admin/builder/spi-builder-workspace/Sources/CalendarView/CalendarView.swift:11:29: error: cannot find type 'UIViewRepresentable' in scope
9 |
10 | /// A view that displays a calendar with date-specific decorations, and provides for user selection of a single date or multiple dates.
11 | public struct CalendarView: UIViewRepresentable {
| `- error: cannot find type 'UIViewRepresentable' in scope
12 | /// The date components that represent the visible date in the calendar view.
13 | ///
/Users/admin/builder/spi-builder-workspace/Sources/CalendarView/CalendarView.swift:91:20: error: cannot find 'UICalendarView' in scope
89 |
90 | public func makeUIView(context: Context) -> UICalendarView {
91 | let view = UICalendarView(frame: .zero)
| `- error: cannot find 'UICalendarView' in scope
92 |
93 | if let selectionMode = self.selectionMode {
/Users/admin/builder/spi-builder-workspace/Sources/CalendarView/CalendarView.swift:91:43: error: cannot infer contextual base in reference to member 'zero'
89 |
90 | public func makeUIView(context: Context) -> UICalendarView {
91 | let view = UICalendarView(frame: .zero)
| `- error: cannot infer contextual base in reference to member 'zero'
92 |
93 | if let selectionMode = self.selectionMode {
/Users/admin/builder/spi-builder-workspace/Sources/CalendarView/CalendarView.swift:96:42: error: cannot find 'UICalendarSelectionSingleDate' in scope
94 | switch selectionMode {
95 | case .singleDate:
96 | view.selectionBehavior = UICalendarSelectionSingleDate(delegate: context.coordinator)
| `- error: cannot find 'UICalendarSelectionSingleDate' in scope
97 | case .multiDate:
98 | view.selectionBehavior = UICalendarSelectionMultiDate(delegate: context.coordinator)
/Users/admin/builder/spi-builder-workspace/Sources/CalendarView/CalendarView.swift:98:42: error: cannot find 'UICalendarSelectionMultiDate' in scope
96 | view.selectionBehavior = UICalendarSelectionSingleDate(delegate: context.coordinator)
97 | case .multiDate:
98 | view.selectionBehavior = UICalendarSelectionMultiDate(delegate: context.coordinator)
| `- error: cannot find 'UICalendarSelectionMultiDate' in scope
99 | default:
100 | view.selectionBehavior = nil
/Users/admin/builder/spi-builder-workspace/Sources/CalendarView/CalendarView.swift:144:50: error: cannot find type 'UICalendarSelectionSingleDate' in scope
142 |
143 | if self.selectionMode == .singleDate,
144 | let singleDate = selectionObj as? UICalendarSelectionSingleDate,
| `- error: cannot find type 'UICalendarSelectionSingleDate' in scope
145 | singleDate.selectedDate != filtered.first {
146 | singleDate.setSelected(
/Users/admin/builder/spi-builder-workspace/Sources/CalendarView/CalendarView.swift:151:56: error: cannot find type 'UICalendarSelectionMultiDate' in scope
149 | )
150 | } else if self.selectionMode == .multiDate,
151 | let multiDate = selectionObj as? UICalendarSelectionMultiDate,
| `- error: cannot find type 'UICalendarSelectionMultiDate' in scope
152 | multiDate.selectedDates != filtered {
153 |
/Users/admin/builder/spi-builder-workspace/Sources/CalendarView/CalendarView.swift:161:17: error: setter for 'selection' is only available in macOS 10.15 or newer
9 |
10 | /// A view that displays a calendar with date-specific decorations, and provides for user selection of a single date or multiple dates.
11 | public struct CalendarView: UIViewRepresentable {
| `- note: add @available attribute to enclosing struct
12 | /// The date components that represent the visible date in the calendar view.
13 | ///
:
116 | }
117 |
118 | public func updateUIView(_ uiView: UICalendarView, context: Context) {
| `- note: add @available attribute to enclosing instance method
119 | context.coordinator.isUpdatingView = true
120 | defer { context.coordinator.isUpdatingView = false }
:
159 |
160 | if filtered != self.selection {
161 | self.selection = filtered
| |- error: setter for 'selection' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
162 | }
163 | }
/Users/admin/builder/spi-builder-workspace/Sources/CalendarView/CalendarView.swift:189:13: error: cannot assign to value: 'fontDesign' is a method
187 | var new = self
188 |
189 | new.fontDesign = switch design {
| `- error: cannot assign to value: 'fontDesign' is a method
190 | case .default: .default
191 | case .serif: .serif
/Users/admin/builder/spi-builder-workspace/Sources/CalendarView/CalendarView.swift:190:25: error: type '(Font.Design) -> CalendarView' has no member 'default'
188 |
189 | new.fontDesign = switch design {
190 | case .default: .default
| `- error: type '(Font.Design) -> CalendarView' has no member 'default'
191 | case .serif: .serif
192 | case .rounded: .rounded
[10/12] Compiling CalendarView EnvironmentModifiers.swift
/Users/admin/builder/spi-builder-workspace/Sources/CalendarView/Convenience Extensions/EnvironmentModifiers.swift:13:56: error: 'View' is only available in macOS 10.15 or newer
8 | import SwiftUI
9 |
10 | extension View {
| `- note: add @available attribute to enclosing extension
11 | /// Sets the current calendar that views should use when handling dates.
12 | /// - Parameter calendar: A new Calendar.
13 | public func calendar(_ calendar: Calendar) -> some View {
| | `- error: 'View' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing instance method
14 | self.environment(\.calendar, calendar)
15 | }
/Users/admin/builder/spi-builder-workspace/Sources/CalendarView/Convenience Extensions/EnvironmentModifiers.swift:19:50: error: 'View' is only available in macOS 10.15 or newer
8 | import SwiftUI
9 |
10 | extension View {
| `- note: add @available attribute to enclosing extension
11 | /// Sets the current calendar that views should use when handling dates.
12 | /// - Parameter calendar: A new Calendar.
:
17 | /// Sets the current locale that views should use.
18 | /// - Parameter calendar: A new Locale.
19 | public func locale(_ locale: Locale) -> some View {
| | `- error: 'View' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing instance method
20 | self.environment(\.locale, locale)
21 | }
/Users/admin/builder/spi-builder-workspace/Sources/CalendarView/Convenience Extensions/EnvironmentModifiers.swift:25:56: error: 'View' is only available in macOS 10.15 or newer
8 | import SwiftUI
9 |
10 | extension View {
| `- note: add @available attribute to enclosing extension
11 | /// Sets the current calendar that views should use when handling dates.
12 | /// - Parameter calendar: A new Calendar.
:
23 | /// Sets the current time zone that views should use when handling dates.
24 | /// - Parameter calendar: A new TimeZone.
25 | public func timeZone(_ timeZone: TimeZone) -> some View {
| | `- error: 'View' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing instance method
26 | self.environment(\.timeZone, timeZone)
27 | }
/Users/admin/builder/spi-builder-workspace/Sources/CalendarView/Convenience Extensions/EnvironmentModifiers.swift:10:11: error: 'View' is only available in macOS 10.15 or newer
8 | import SwiftUI
9 |
10 | extension View {
| | `- error: 'View' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing extension
11 | /// Sets the current calendar that views should use when handling dates.
12 | /// - Parameter calendar: A new Calendar.
/Users/admin/builder/spi-builder-workspace/Sources/CalendarView/Convenience Extensions/EnvironmentModifiers.swift:14:26: error: cannot convert value of type 'KeyPath<EnvironmentValues, Calendar>' to expected argument type 'WritableKeyPath<EnvironmentValues, Calendar>'
12 | /// - Parameter calendar: A new Calendar.
13 | public func calendar(_ calendar: Calendar) -> some View {
14 | self.environment(\.calendar, calendar)
| `- error: cannot convert value of type 'KeyPath<EnvironmentValues, Calendar>' to expected argument type 'WritableKeyPath<EnvironmentValues, Calendar>'
15 | }
16 |
/Users/admin/builder/spi-builder-workspace/Sources/CalendarView/Convenience Extensions/EnvironmentModifiers.swift:20:26: error: cannot convert value of type 'KeyPath<EnvironmentValues, Locale>' to expected argument type 'WritableKeyPath<EnvironmentValues, Locale>'
18 | /// - Parameter calendar: A new Locale.
19 | public func locale(_ locale: Locale) -> some View {
20 | self.environment(\.locale, locale)
| `- error: cannot convert value of type 'KeyPath<EnvironmentValues, Locale>' to expected argument type 'WritableKeyPath<EnvironmentValues, Locale>'
21 | }
22 |
/Users/admin/builder/spi-builder-workspace/Sources/CalendarView/Convenience Extensions/EnvironmentModifiers.swift:26:26: error: cannot convert value of type 'KeyPath<EnvironmentValues, TimeZone>' to expected argument type 'WritableKeyPath<EnvironmentValues, TimeZone>'
24 | /// - Parameter calendar: A new TimeZone.
25 | public func timeZone(_ timeZone: TimeZone) -> some View {
26 | self.environment(\.timeZone, timeZone)
| `- error: cannot convert value of type 'KeyPath<EnvironmentValues, TimeZone>' to expected argument type 'WritableKeyPath<EnvironmentValues, TimeZone>'
27 | }
28 | }
[11/12] Compiling CalendarView Binding+Map.swift
/Users/admin/builder/spi-builder-workspace/Sources/CalendarView/Internal Extensions/Binding+Map.swift:13:10: error: 'Binding' is only available in macOS 10.15 or newer
8 | import SwiftUI
9 |
10 | extension Binding {
| `- note: add @available attribute to enclosing extension
11 | func map<T>(
| `- note: add @available attribute to enclosing instance method
12 | _ keyPath: WritableKeyPath<Value, T>
13 | ) -> Binding<T> {
| `- error: 'Binding' is only available in macOS 10.15 or newer
14 | Binding<T>(
15 | get: { wrappedValue[keyPath: keyPath] },
/Users/admin/builder/spi-builder-workspace/Sources/CalendarView/Internal Extensions/Binding+Map.swift:23:10: error: 'Binding' is only available in macOS 10.15 or newer
8 | import SwiftUI
9 |
10 | extension Binding {
| `- note: add @available attribute to enclosing extension
11 | func map<T>(
12 | _ keyPath: WritableKeyPath<Value, T>
:
18 | }
19 |
20 | func map<T>(
| `- note: add @available attribute to enclosing instance method
21 | transform: @escaping (Value) -> T,
22 | reverse : @escaping (T) -> Value
23 | ) -> Binding<T> {
| `- error: 'Binding' is only available in macOS 10.15 or newer
24 | Binding<T>(
25 | get: { transform(self.wrappedValue) },
/Users/admin/builder/spi-builder-workspace/Sources/CalendarView/Internal Extensions/Binding+Map.swift:33:10: error: 'Binding' is only available in macOS 10.15 or newer
8 | import SwiftUI
9 |
10 | extension Binding {
| `- note: add @available attribute to enclosing extension
11 | func map<T>(
12 | _ keyPath: WritableKeyPath<Value, T>
:
28 | }
29 |
30 | func map<T, U>(
| `- note: add @available attribute to enclosing instance method
31 | transform: @escaping (T) -> U,
32 | reverse : @escaping (U) -> T
33 | ) -> Binding<U?> where Value == Optional<T> {
| `- error: 'Binding' is only available in macOS 10.15 or newer
34 | Binding<U?>(
35 | get: { self.wrappedValue.map(transform) },
/Users/admin/builder/spi-builder-workspace/Sources/CalendarView/Internal Extensions/Binding+Map.swift:10:11: error: 'Binding' is only available in macOS 10.15 or newer
8 | import SwiftUI
9 |
10 | extension Binding {
| | `- error: 'Binding' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing extension
11 | func map<T>(
12 | _ keyPath: WritableKeyPath<Value, T>
/Users/admin/builder/spi-builder-workspace/Sources/CalendarView/Internal Extensions/Binding+Map.swift:14:9: error: 'Binding' is only available in macOS 10.15 or newer
8 | import SwiftUI
9 |
10 | extension Binding {
| `- note: add @available attribute to enclosing extension
11 | func map<T>(
| `- note: add @available attribute to enclosing instance method
12 | _ keyPath: WritableKeyPath<Value, T>
13 | ) -> Binding<T> {
14 | Binding<T>(
| |- error: 'Binding' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
15 | get: { wrappedValue[keyPath: keyPath] },
16 | set: { wrappedValue[keyPath: keyPath] = $0 }
/Users/admin/builder/spi-builder-workspace/Sources/CalendarView/Internal Extensions/Binding+Map.swift:15:20: warning: capture of 'self' with non-sendable type 'Binding<Value>' in a `@Sendable` closure; this is an error in the Swift 6 language mode
13 | ) -> Binding<T> {
14 | Binding<T>(
15 | get: { wrappedValue[keyPath: keyPath] },
| `- warning: capture of 'self' with non-sendable type 'Binding<Value>' in a `@Sendable` closure; this is an error in the Swift 6 language mode
16 | set: { wrappedValue[keyPath: keyPath] = $0 }
17 | )
/Users/admin/builder/spi-builder-workspace/Sources/CalendarView/Internal Extensions/Binding+Map.swift:15:42: warning: capture of 'keyPath' with non-sendable type 'WritableKeyPath<Value, T>' in a `@Sendable` closure; this is an error in the Swift 6 language mode
13 | ) -> Binding<T> {
14 | Binding<T>(
15 | get: { wrappedValue[keyPath: keyPath] },
| `- warning: capture of 'keyPath' with non-sendable type 'WritableKeyPath<Value, T>' in a `@Sendable` closure; this is an error in the Swift 6 language mode
16 | set: { wrappedValue[keyPath: keyPath] = $0 }
17 | )
Swift.WritableKeyPath:1:14: note: generic class 'WritableKeyPath' does not conform to the 'Sendable' protocol
1 | public class WritableKeyPath<Root, Value> : KeyPath<Root, Value> {
| `- note: generic class 'WritableKeyPath' does not conform to the 'Sendable' protocol
2 | @objc deinit
3 | }
/Users/admin/builder/spi-builder-workspace/Sources/CalendarView/Internal Extensions/Binding+Map.swift:16:20: warning: capture of 'self' with non-sendable type 'Binding<Value>' in a `@Sendable` closure; this is an error in the Swift 6 language mode
14 | Binding<T>(
15 | get: { wrappedValue[keyPath: keyPath] },
16 | set: { wrappedValue[keyPath: keyPath] = $0 }
| `- warning: capture of 'self' with non-sendable type 'Binding<Value>' in a `@Sendable` closure; this is an error in the Swift 6 language mode
17 | )
18 | }
/Users/admin/builder/spi-builder-workspace/Sources/CalendarView/Internal Extensions/Binding+Map.swift:16:42: warning: capture of 'keyPath' with non-sendable type 'WritableKeyPath<Value, T>' in a `@Sendable` closure; this is an error in the Swift 6 language mode
14 | Binding<T>(
15 | get: { wrappedValue[keyPath: keyPath] },
16 | set: { wrappedValue[keyPath: keyPath] = $0 }
| `- warning: capture of 'keyPath' with non-sendable type 'WritableKeyPath<Value, T>' in a `@Sendable` closure; this is an error in the Swift 6 language mode
17 | )
18 | }
Swift.WritableKeyPath:1:14: note: generic class 'WritableKeyPath' does not conform to the 'Sendable' protocol
1 | public class WritableKeyPath<Root, Value> : KeyPath<Root, Value> {
| `- note: generic class 'WritableKeyPath' does not conform to the 'Sendable' protocol
2 | @objc deinit
3 | }
/Users/admin/builder/spi-builder-workspace/Sources/CalendarView/Internal Extensions/Binding+Map.swift:24:9: error: 'Binding' is only available in macOS 10.15 or newer
8 | import SwiftUI
9 |
10 | extension Binding {
| `- note: add @available attribute to enclosing extension
11 | func map<T>(
12 | _ keyPath: WritableKeyPath<Value, T>
:
18 | }
19 |
20 | func map<T>(
| `- note: add @available attribute to enclosing instance method
21 | transform: @escaping (Value) -> T,
22 | reverse : @escaping (T) -> Value
23 | ) -> Binding<T> {
24 | Binding<T>(
| |- error: 'Binding' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
25 | get: { transform(self.wrappedValue) },
26 | set: { wrappedValue = reverse($0) }
/Users/admin/builder/spi-builder-workspace/Sources/CalendarView/Internal Extensions/Binding+Map.swift:25:20: warning: capture of 'transform' with non-sendable type '(Value) -> T' in a `@Sendable` closure; this is an error in the Swift 6 language mode
23 | ) -> Binding<T> {
24 | Binding<T>(
25 | get: { transform(self.wrappedValue) },
| |- warning: capture of 'transform' with non-sendable type '(Value) -> T' in a `@Sendable` closure; this is an error in the Swift 6 language mode
| `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
26 | set: { wrappedValue = reverse($0) }
27 | )
/Users/admin/builder/spi-builder-workspace/Sources/CalendarView/Internal Extensions/Binding+Map.swift:25:30: warning: capture of 'self' with non-sendable type 'Binding<Value>' in a `@Sendable` closure; this is an error in the Swift 6 language mode
23 | ) -> Binding<T> {
24 | Binding<T>(
25 | get: { transform(self.wrappedValue) },
| `- warning: capture of 'self' with non-sendable type 'Binding<Value>' in a `@Sendable` closure; this is an error in the Swift 6 language mode
26 | set: { wrappedValue = reverse($0) }
27 | )
/Users/admin/builder/spi-builder-workspace/Sources/CalendarView/Internal Extensions/Binding+Map.swift:26:20: warning: capture of 'self' with non-sendable type 'Binding<Value>' in a `@Sendable` closure; this is an error in the Swift 6 language mode
24 | Binding<T>(
25 | get: { transform(self.wrappedValue) },
26 | set: { wrappedValue = reverse($0) }
| `- warning: capture of 'self' with non-sendable type 'Binding<Value>' in a `@Sendable` closure; this is an error in the Swift 6 language mode
27 | )
28 | }
/Users/admin/builder/spi-builder-workspace/Sources/CalendarView/Internal Extensions/Binding+Map.swift:26:35: warning: capture of 'reverse' with non-sendable type '(T) -> Value' in a `@Sendable` closure; this is an error in the Swift 6 language mode
24 | Binding<T>(
25 | get: { transform(self.wrappedValue) },
26 | set: { wrappedValue = reverse($0) }
| |- warning: capture of 'reverse' with non-sendable type '(T) -> Value' in a `@Sendable` closure; this is an error in the Swift 6 language mode
| `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
27 | )
28 | }
/Users/admin/builder/spi-builder-workspace/Sources/CalendarView/Internal Extensions/Binding+Map.swift:34:9: error: 'Binding' is only available in macOS 10.15 or newer
8 | import SwiftUI
9 |
10 | extension Binding {
| `- note: add @available attribute to enclosing extension
11 | func map<T>(
12 | _ keyPath: WritableKeyPath<Value, T>
:
28 | }
29 |
30 | func map<T, U>(
| `- note: add @available attribute to enclosing instance method
31 | transform: @escaping (T) -> U,
32 | reverse : @escaping (U) -> T
33 | ) -> Binding<U?> where Value == Optional<T> {
34 | Binding<U?>(
| |- error: 'Binding' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
35 | get: { self.wrappedValue.map(transform) },
36 | set: { wrappedValue = $0.map(reverse) }
/Users/admin/builder/spi-builder-workspace/Sources/CalendarView/Internal Extensions/Binding+Map.swift:35:20: warning: capture of 'self' with non-sendable type 'Binding<Optional<T>>' in a `@Sendable` closure; this is an error in the Swift 6 language mode
28 | }
29 |
30 | func map<T, U>(
| `- note: consider making generic parameter 'T' conform to the 'Sendable' protocol
31 | transform: @escaping (T) -> U,
32 | reverse : @escaping (U) -> T
33 | ) -> Binding<U?> where Value == Optional<T> {
34 | Binding<U?>(
35 | get: { self.wrappedValue.map(transform) },
| `- warning: capture of 'self' with non-sendable type 'Binding<Optional<T>>' in a `@Sendable` closure; this is an error in the Swift 6 language mode
36 | set: { wrappedValue = $0.map(reverse) }
37 | )
/Users/admin/builder/spi-builder-workspace/Sources/CalendarView/Internal Extensions/Binding+Map.swift:35:42: warning: capture of 'transform' with non-sendable type '(T) -> U' in a `@Sendable` closure; this is an error in the Swift 6 language mode
33 | ) -> Binding<U?> where Value == Optional<T> {
34 | Binding<U?>(
35 | get: { self.wrappedValue.map(transform) },
| |- warning: capture of 'transform' with non-sendable type '(T) -> U' in a `@Sendable` closure; this is an error in the Swift 6 language mode
| `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
36 | set: { wrappedValue = $0.map(reverse) }
37 | )
/Users/admin/builder/spi-builder-workspace/Sources/CalendarView/Internal Extensions/Binding+Map.swift:36:20: warning: capture of 'self' with non-sendable type 'Binding<Optional<T>>' in a `@Sendable` closure; this is an error in the Swift 6 language mode
28 | }
29 |
30 | func map<T, U>(
| `- note: consider making generic parameter 'T' conform to the 'Sendable' protocol
31 | transform: @escaping (T) -> U,
32 | reverse : @escaping (U) -> T
:
34 | Binding<U?>(
35 | get: { self.wrappedValue.map(transform) },
36 | set: { wrappedValue = $0.map(reverse) }
| `- warning: capture of 'self' with non-sendable type 'Binding<Optional<T>>' in a `@Sendable` closure; this is an error in the Swift 6 language mode
37 | )
38 | }
/Users/admin/builder/spi-builder-workspace/Sources/CalendarView/Internal Extensions/Binding+Map.swift:36:42: warning: capture of 'reverse' with non-sendable type '(U) -> T' in a `@Sendable` closure; this is an error in the Swift 6 language mode
34 | Binding<U?>(
35 | get: { self.wrappedValue.map(transform) },
36 | set: { wrappedValue = $0.map(reverse) }
| |- warning: capture of 'reverse' with non-sendable type '(U) -> T' in a `@Sendable` closure; this is an error in the Swift 6 language mode
| `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
37 | )
38 | }
[12/12] Compiling CalendarView CalendarView+Decoration.swift
/Users/admin/builder/spi-builder-workspace/Sources/CalendarView/CalendarView+Decoration.swift:11:39: error: cannot find type 'UICalendarView' in scope
9 |
10 | extension CalendarView {
11 | public typealias DecorationSize = UICalendarView.DecorationSize
| `- error: cannot find type 'UICalendarView' in scope
12 |
13 | /// A view that a calendar view displays for a specific date.
/Users/admin/builder/spi-builder-workspace/Sources/CalendarView/CalendarView+Decoration.swift:15:34: error: cannot find type 'UICalendarView' in scope
13 | /// A view that a calendar view displays for a specific date.
14 | public struct Decoration: Sendable, Hashable {
15 | internal let decoration: UICalendarView.Decoration
| `- error: cannot find type 'UICalendarView' in scope
16 |
17 | /// Creates a default calendar view decoration with a filled circle image, using the system fill color and medium size.
/Users/admin/builder/spi-builder-workspace/Sources/CalendarView/CalendarView+Decoration.swift:22:36: error: cannot find type 'UICalendarView' in scope
20 | }
21 |
22 | private init(_ decoration: UICalendarView.Decoration) {
| `- error: cannot find type 'UICalendarView' in scope
23 | self.decoration = decoration
24 | }
/Users/admin/builder/spi-builder-workspace/Sources/CalendarView/CalendarView+Decoration.swift:32:20: error: 'Color' is only available in macOS 10.15 or newer
12 |
13 | /// A view that a calendar view displays for a specific date.
14 | public struct Decoration: Sendable, Hashable {
| `- note: add @available attribute to enclosing struct
15 | internal let decoration: UICalendarView.Decoration
16 |
:
29 | /// - size: A relative size for the decoration.
30 | /// - Returns: A calendar view decoration.
31 | public static func `default`(
| `- note: add @available attribute to enclosing static method
32 | color: Color? = nil,
| `- error: 'Color' is only available in macOS 10.15 or newer
33 | size: DecorationSize = .medium
34 | ) -> Decoration {
/Users/admin/builder/spi-builder-workspace/Sources/CalendarView/CalendarView+Decoration.swift:49:91: error: 'View' is only available in macOS 10.15 or newer
12 |
13 | /// A view that a calendar view displays for a specific date.
14 | public struct Decoration: Sendable, Hashable {
| `- note: add @available attribute to enclosing struct
15 | internal let decoration: UICalendarView.Decoration
16 |
:
47 | /// - customViewProvider: A block of code that creates and returns a calendar view decoration.
48 | /// - Returns: A calendar view decoration.
49 | public static func custom(@ViewBuilder _ customViewProvider: @escaping () -> some View) -> Self {
| | `- error: 'View' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing static method
50 | .init(.customView {
51 | let view = UIHostingController(rootView: customViewProvider()).view!
/Users/admin/builder/spi-builder-workspace/Sources/CalendarView/CalendarView+Decoration.swift:49:36: error: 'ViewBuilder' is only available in macOS 10.15 or newer
12 |
13 | /// A view that a calendar view displays for a specific date.
14 | public struct Decoration: Sendable, Hashable {
| `- note: add @available attribute to enclosing struct
15 | internal let decoration: UICalendarView.Decoration
16 |
:
47 | /// - customViewProvider: A block of code that creates and returns a calendar view decoration.
48 | /// - Returns: A calendar view decoration.
49 | public static func custom(@ViewBuilder _ customViewProvider: @escaping () -> some View) -> Self {
| | `- error: 'ViewBuilder' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing static method
50 | .init(.customView {
51 | let view = UIHostingController(rootView: customViewProvider()).view!
/Users/admin/builder/spi-builder-workspace/Sources/CalendarView/CalendarView+Decoration.swift:49:91: error: 'View' is only available in macOS 10.15 or newer
12 |
13 | /// A view that a calendar view displays for a specific date.
14 | public struct Decoration: Sendable, Hashable {
| `- note: add @available attribute to enclosing struct
15 | internal let decoration: UICalendarView.Decoration
16 |
:
47 | /// - customViewProvider: A block of code that creates and returns a calendar view decoration.
48 | /// - Returns: A calendar view decoration.
49 | public static func custom(@ViewBuilder _ customViewProvider: @escaping () -> some View) -> Self {
| | `- error: 'View' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing static method
50 | .init(.customView {
51 | let view = UIHostingController(rootView: customViewProvider()).view!
/Users/admin/builder/spi-builder-workspace/Sources/CalendarView/CalendarView+Decoration.swift:70:22: error: cannot find type 'UIImage' in scope
68 | /// - Returns: A calendar view decoration.
69 | public static func image(
70 | _ image: UIImage?,
| `- error: cannot find type 'UIImage' in scope
71 | color: Color? = nil,
72 | size: DecorationSize = .medium
/Users/admin/builder/spi-builder-workspace/Sources/CalendarView/CalendarView+Decoration.swift:71:20: error: 'Color' is only available in macOS 10.15 or newer
12 |
13 | /// A view that a calendar view displays for a specific date.
14 | public struct Decoration: Sendable, Hashable {
| `- note: add @available attribute to enclosing struct
15 | internal let decoration: UICalendarView.Decoration
16 |
:
67 | /// - size: A relative size for the decoration.
68 | /// - Returns: A calendar view decoration.
69 | public static func image(
| `- note: add @available attribute to enclosing static method
70 | _ image: UIImage?,
71 | color: Color? = nil,
| `- error: 'Color' is only available in macOS 10.15 or newer
72 | size: DecorationSize = .medium
73 | ) -> Decoration {
/Users/admin/builder/spi-builder-workspace/Sources/CalendarView/CalendarView+Decoration.swift:95:20: error: 'Color' is only available in macOS 10.15 or newer
12 |
13 | /// A view that a calendar view displays for a specific date.
14 | public struct Decoration: Sendable, Hashable {
| `- note: add @available attribute to enclosing struct
15 | internal let decoration: UICalendarView.Decoration
16 |
:
91 | /// - size: A relative size for the decoration.
92 | /// - Returns: A calendar view decoration.
93 | public static func image(
| `- note: add @available attribute to enclosing static method
94 | _ systemName: String,
95 | color: Color? = nil,
| `- error: 'Color' is only available in macOS 10.15 or newer
96 | size: DecorationSize = .medium
97 | ) -> Decoration {
/Users/admin/builder/spi-builder-workspace/Sources/CalendarView/CalendarView+Decoration.swift:14:19: error: type 'CalendarView.Decoration' does not conform to protocol 'Hashable'
12 |
13 | /// A view that a calendar view displays for a specific date.
14 | public struct Decoration: Sendable, Hashable {
| `- error: type 'CalendarView.Decoration' does not conform to protocol 'Hashable'
15 | internal let decoration: UICalendarView.Decoration
| `- note: stored property type '<<error type>>' does not conform to protocol 'Hashable', preventing synthesized conformance of 'CalendarView.Decoration' to 'Hashable'
16 |
17 | /// Creates a default calendar view decoration with a filled circle image, using the system fill color and medium size.
/Users/admin/builder/spi-builder-workspace/Sources/CalendarView/CalendarView+Decoration.swift:14:19: error: type 'CalendarView.Decoration' does not conform to protocol 'Equatable'
12 |
13 | /// A view that a calendar view displays for a specific date.
14 | public struct Decoration: Sendable, Hashable {
| `- error: type 'CalendarView.Decoration' does not conform to protocol 'Equatable'
15 | internal let decoration: UICalendarView.Decoration
| `- note: stored property type '<<error type>>' does not conform to protocol 'Equatable', preventing synthesized conformance of 'CalendarView.Decoration' to 'Equatable'
16 |
17 | /// Creates a default calendar view decoration with a filled circle image, using the system fill color and medium size.
Swift.==:1:24: note: candidate would match if 'CalendarView.Decoration' conformed to 'RawRepresentable'
1 | @inlinable public func == <T>(lhs: T, rhs: T) -> Bool where T : RawRepresentable, T.RawValue : Equatable
| `- note: candidate would match if 'CalendarView.Decoration' conformed to 'RawRepresentable'
Swift.FloatingPoint:2:24: note: candidate would match if 'CalendarView.Decoration' conformed to 'FloatingPoint'
1 | extension FloatingPoint {
2 | public static func == (lhs: Self, rhs: Self) -> Bool
| `- note: candidate would match if 'CalendarView.Decoration' conformed to 'FloatingPoint'
3 | public static func < (lhs: Self, rhs: Self) -> Bool
4 | public static func <= (lhs: Self, rhs: Self) -> Bool
Swift.BinaryInteger:2:24: note: candidate would match if 'CalendarView.Decoration' conformed to 'BinaryInteger'
1 | extension BinaryInteger {
2 | public static func == <Other>(lhs: Self, rhs: Other) -> Bool where Other : BinaryInteger
| `- note: candidate would match if 'CalendarView.Decoration' conformed to 'BinaryInteger'
3 | public static func != <Other>(lhs: Self, rhs: Other) -> Bool where Other : BinaryInteger
4 | public static func < <Other>(lhs: Self, rhs: Other) -> Bool where Other : BinaryInteger
Swift._Pointer:2:24: note: candidate would match if 'CalendarView.Decoration' conformed to '_Pointer'
1 | extension _Pointer {
2 | public static func == (lhs: Self, rhs: Self) -> Bool
| `- note: candidate would match if 'CalendarView.Decoration' conformed to '_Pointer'
3 | @inlinable public static func == <Other>(lhs: Self, rhs: Other) -> Bool where Other : _Pointer
| `- note: candidate would match if 'CalendarView.Decoration' conformed to '_Pointer'
4 | @inlinable public static func != <Other>(lhs: Self, rhs: Other) -> Bool where Other : _Pointer
5 | }
Swift.Strideable:3:35: note: candidate would match if 'CalendarView.Decoration' conformed to 'Strideable'
1 | extension Strideable {
2 | @inlinable public static func < (x: Self, y: Self) -> Bool
3 | @inlinable public static func == (x: Self, y: Self) -> Bool
| `- note: candidate would match if 'CalendarView.Decoration' conformed to 'Strideable'
4 | }
Swift.StringProtocol:2:35: note: candidate would match if 'CalendarView.Decoration' conformed to 'StringProtocol'
1 | extension StringProtocol {
2 | @inlinable public static func == <RHS>(lhs: Self, rhs: RHS) -> Bool where RHS : StringProtocol
| `- note: candidate would match if 'CalendarView.Decoration' conformed to 'StringProtocol'
3 | @inlinable public static func != <RHS>(lhs: Self, rhs: RHS) -> Bool where RHS : StringProtocol
4 | @inlinable public static func < <RHS>(lhs: Self, rhs: RHS) -> Bool where RHS : StringProtocol
Swift.SIMD:4:24: note: candidate would match if 'CalendarView.Decoration' conformed to 'SIMD'
2 | public var indices: Range<Int> { get }
3 | public init(repeating value: Self.Scalar)
4 | public static func == (a: Self, b: Self) -> Bool
| `- note: candidate would match if 'CalendarView.Decoration' conformed to 'SIMD'
5 | @inlinable public func hash(into hasher: inout Hasher)
6 | public func encode(to encoder: any Encoder) throws
Foundation.AttributedStringProtocol:3:24: note: candidate would match if 'CalendarView.Decoration' conformed to 'AttributedStringProtocol'
1 | @available(macOS 12, iOS 15, tvOS 15, watchOS 8, *)
2 | extension AttributedStringProtocol {
3 | public static func == <RHS>(lhs: Self, rhs: RHS) -> Bool where RHS : AttributedStringProtocol
| `- note: candidate would match if 'CalendarView.Decoration' conformed to 'AttributedStringProtocol'
4 | public func hash(into hasher: inout Hasher)
5 | }
Foundation._BridgedStoredNSError:4:24: note: candidate would match if 'CalendarView.Decoration' conformed to '_BridgedStoredNSError'
2 | extension _BridgedStoredNSError {
3 | public func _getEmbeddedNSError() -> AnyObject?
4 | public static func == (lhs: Self, rhs: Self) -> Bool
| `- note: candidate would match if 'CalendarView.Decoration' conformed to '_BridgedStoredNSError'
5 | }
CoreFoundation._CFObject:4:24: note: candidate would match if 'CalendarView.Decoration' conformed to '_CFObject'
2 | public var hashValue: Int { get }
3 | public func hash(into hasher: inout Hasher)
4 | public static func == (left: Self, right: Self) -> Bool
| `- note: candidate would match if 'CalendarView.Decoration' conformed to '_CFObject'
5 | }
Swift.Equatable:2:17: note: protocol requires function '==' with type '(CalendarView.Decoration, CalendarView.Decoration) -> Bool'
1 | public protocol Equatable {
2 | static func == (lhs: Self, rhs: Self) -> Bool
| `- note: protocol requires function '==' with type '(CalendarView.Decoration, CalendarView.Decoration) -> Bool'
3 | }
/Users/admin/builder/spi-builder-workspace/Sources/CalendarView/CalendarView+Decoration.swift:19:32: error: cannot infer contextual base in reference to member 'init'
17 | /// Creates a default calendar view decoration with a filled circle image, using the system fill color and medium size.
18 | public init() {
19 | self.decoration = .init()
| `- error: cannot infer contextual base in reference to member 'init'
20 | }
21 |
/Users/admin/builder/spi-builder-workspace/Sources/CalendarView/CalendarView+Decoration.swift:37:40: error: cannot find 'UIColor' in scope
35 | .init(
36 | .default(
37 | color: color.map { UIColor($0) },
| `- error: cannot find 'UIColor' in scope
38 | size: size
39 | )
/Users/admin/builder/spi-builder-workspace/Sources/CalendarView/CalendarView+Decoration.swift:36:18: error: argument passed to call that takes no arguments
34 | ) -> Decoration {
35 | .init(
36 | .default(
| `- error: argument passed to call that takes no arguments
37 | color: color.map { UIColor($0) },
38 | size: size
/Users/admin/builder/spi-builder-workspace/Sources/CalendarView/CalendarView+Decoration.swift:36:18: error: cannot infer contextual base in reference to member 'default'
34 | ) -> Decoration {
35 | .init(
36 | .default(
| `- error: cannot infer contextual base in reference to member 'default'
37 | color: color.map { UIColor($0) },
38 | size: size
/Users/admin/builder/spi-builder-workspace/Sources/CalendarView/CalendarView+Decoration.swift:51:28: error: cannot find 'UIHostingController' in scope
49 | public static func custom(@ViewBuilder _ customViewProvider: @escaping () -> some View) -> Self {
50 | .init(.customView {
51 | let view = UIHostingController(rootView: customViewProvider()).view!
| `- error: cannot find 'UIHostingController' in scope
52 | view.backgroundColor = .clear
53 | return view
/Users/admin/builder/spi-builder-workspace/Sources/CalendarView/CalendarView+Decoration.swift:50:20: error: argument passed to call that takes no arguments
48 | /// - Returns: A calendar view decoration.
49 | public static func custom(@ViewBuilder _ customViewProvider: @escaping () -> some View) -> Self {
50 | .init(.customView {
| `- error: argument passed to call that takes no arguments
51 | let view = UIHostingController(rootView: customViewProvider()).view!
52 | view.backgroundColor = .clear
/Users/admin/builder/spi-builder-workspace/Sources/CalendarView/CalendarView+Decoration.swift:50:20: error: cannot infer contextual base in reference to member 'customView'
48 | /// - Returns: A calendar view decoration.
49 | public static func custom(@ViewBuilder _ customViewProvider: @escaping () -> some View) -> Self {
50 | .init(.customView {
| `- error: cannot infer contextual base in reference to member 'customView'
51 | let view = UIHostingController(rootView: customViewProvider()).view!
52 | view.backgroundColor = .clear
/Users/admin/builder/spi-builder-workspace/Sources/CalendarView/CalendarView+Decoration.swift:77:40: error: cannot find 'UIColor' in scope
75 | .image(
76 | image,
77 | color: color.map { UIColor($0) },
| `- error: cannot find 'UIColor' in scope
78 | size: size
79 | )
/Users/admin/builder/spi-builder-workspace/Sources/CalendarView/CalendarView+Decoration.swift:75:18: error: argument passed to call that takes no arguments
73 | ) -> Decoration {
74 | .init(
75 | .image(
| `- error: argument passed to call that takes no arguments
76 | image,
77 | color: color.map { UIColor($0) },
/Users/admin/builder/spi-builder-workspace/Sources/CalendarView/CalendarView+Decoration.swift:75:18: error: cannot infer contextual base in reference to member 'image'
73 | ) -> Decoration {
74 | .init(
75 | .image(
| `- error: cannot infer contextual base in reference to member 'image'
76 | image,
77 | color: color.map { UIColor($0) },
/Users/admin/builder/spi-builder-workspace/Sources/CalendarView/CalendarView+Decoration.swift:101:40: error: cannot find 'UIColor' in scope
99 | .image(
100 | .init(systemName: systemName),
101 | color: color.map { UIColor($0) },
| `- error: cannot find 'UIColor' in scope
102 | size: size
103 | )
/Users/admin/builder/spi-builder-workspace/Sources/CalendarView/CalendarView+Decoration.swift:99:18: error: argument passed to call that takes no arguments
97 | ) -> Decoration {
98 | .init(
99 | .image(
| `- error: argument passed to call that takes no arguments
100 | .init(systemName: systemName),
101 | color: color.map { UIColor($0) },
/Users/admin/builder/spi-builder-workspace/Sources/CalendarView/CalendarView+Decoration.swift:99:18: error: cannot infer contextual base in reference to member 'image'
97 | ) -> Decoration {
98 | .init(
99 | .image(
| `- error: cannot infer contextual base in reference to member 'image'
100 | .init(systemName: systemName),
101 | color: color.map { UIColor($0) },
/Users/admin/builder/spi-builder-workspace/Sources/CalendarView/CalendarView+Decoration.swift:100:22: error: cannot infer contextual base in reference to member 'init'
98 | .init(
99 | .image(
100 | .init(systemName: systemName),
| `- error: cannot infer contextual base in reference to member 'init'
101 | color: color.map { UIColor($0) },
102 | size: size
BUILD FAILURE 6.0 macosSpm