Build Information
Failed to build CalendarKit, reference main (93b81c
), with Swift 6.1 for macOS (SPM) on 29 Apr 2025 08:42:26 UTC.
Build Command
env DEVELOPER_DIR=/Applications/Xcode-16.3.0.app xcrun swift build --arch arm64
Build Log
========================================
RunAll
========================================
Builder version: 4.61.0
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/insub4067/CalendarKit.git
Reference: main
Initialized empty Git repository in /Users/admin/builder/spi-builder-workspace/.git/
From https://github.com/insub4067/CalendarKit
* branch main -> FETCH_HEAD
* [new branch] main -> origin/main
HEAD is now at 93b81ca add `static let now` DateComponent
Cloned https://github.com/insub4067/CalendarKit.git
Revision (git rev-parse @):
93b81cadc7fc888f42338826749ed5ed2c61dbed
SUCCESS checkout https://github.com/insub4067/CalendarKit.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": "calendarkit",
"name": "CalendarKit",
"url": "https://github.com/insub4067/CalendarKit.git",
"version": "unspecified",
"path": "/Users/admin/builder/spi-builder-workspace/.resolve-product-dependencies/.build/checkouts/CalendarKit",
"dependencies": [
]
}
]
}
Fetching https://github.com/insub4067/CalendarKit.git
[1/97] Fetching calendarkit
Fetched https://github.com/insub4067/CalendarKit.git from cache (0.57s)
Creating working copy for https://github.com/insub4067/CalendarKit.git
Working copy of https://github.com/insub4067/CalendarKit.git resolved at main (93b81ca)
warning: '.resolve-product-dependencies': dependency 'calendarkit' is not used by any target
Found 0 product dependencies
========================================
Build
========================================
Selected platform: macosSpm
Swift version: 6.1
Building package at path: $PWD
https://github.com/insub4067/CalendarKit.git
https://github.com/insub4067/CalendarKit.git
{
"dependencies" : [
],
"manifest_display_name" : "CalendarKit",
"name" : "CalendarKit",
"path" : "/Users/admin/builder/spi-builder-workspace",
"platforms" : [
{
"name" : "ios",
"version" : "15.0"
}
],
"products" : [
{
"name" : "CalendarKit",
"targets" : [
"CalendarKit"
],
"type" : {
"library" : [
"automatic"
]
}
}
],
"targets" : [
{
"c99name" : "CalendarKit",
"module_type" : "SwiftTarget",
"name" : "CalendarKit",
"path" : "Sources/CalendarKit",
"product_memberships" : [
"CalendarKit"
],
"sources" : [
"Entity/DateComponent.swift",
"Entity/HourComponent.swift",
"Entity/WeekDay.swift",
"Extension/Int+.swift",
"UseCase/GetComponentFromOffsetUseCase.swift",
"UseCase/GetDateComponentListByMonthOffsetUseCase.swift",
"UseCase/GetDateRangeUseCase.swift",
"UseCase/GetMonthOffsetArrayUseCase.swift",
"UseCase/GetMonthOffsetUseCase.swift",
"UseCase/GetYearArrayUseCase.swift",
"View/CalendarContent.swift",
"View/CalendarHeader.swift"
],
"type" : "library"
}
],
"tools_version" : "5.10"
}
Running build ...
env DEVELOPER_DIR=/Applications/Xcode-16.3.0.app xcrun swift build --arch arm64 -Xswiftc -Xfrontend -Xswiftc -stats-output-dir -Xswiftc -Xfrontend -Xswiftc .stats -Xswiftc -strict-concurrency=complete -Xswiftc -enable-upcoming-feature -Xswiftc StrictConcurrency -Xswiftc -enable-upcoming-feature -Xswiftc DisableOutwardActorInference -Xswiftc -enable-upcoming-feature -Xswiftc GlobalActorIsolatedTypesUsability -Xswiftc -enable-upcoming-feature -Xswiftc InferSendableFromCaptures
Building for debugging...
[0/2] Write sources
[1/2] Write swift-version-2F0A5646E1D333AE.txt
[3/14] Compiling CalendarKit GetYearArrayUseCase.swift
[4/14] Compiling CalendarKit GetDateRangeUseCase.swift
[5/14] Compiling CalendarKit GetDateComponentListByMonthOffsetUseCase.swift
[6/14] Compiling CalendarKit GetMonthOffsetUseCase.swift
[7/14] Compiling CalendarKit GetComponentFromOffsetUseCase.swift
/Users/admin/builder/spi-builder-workspace/Sources/CalendarKit/UseCase/GetComponentFromOffsetUseCase.swift:25:33: error: 'now' is only available in macOS 12 or newer
8 | import Foundation
9 |
10 | public struct GetComponentFromOffsetUseCase {
| `- note: add @available attribute to enclosing struct
11 |
12 | private let calendar = Calendar.current
:
15 | public init() { }
16 |
17 | public func execute(_ offset: Int) -> DateComponent {
| `- note: add @available attribute to enclosing instance method
18 | guard
19 | let adjustedDate = calendar.date(
:
23 | )
24 | else {
25 | return .init(from: .now)
| |- error: 'now' is only available in macOS 12 or newer
| `- note: add 'if #available' version check
26 | }
27 | return adjustedDate.mapToComponent
[8/14] Compiling CalendarKit WeekDay.swift
[9/14] Compiling CalendarKit Int+.swift
[10/14] Compiling CalendarKit DateComponent.swift
/Users/admin/builder/spi-builder-workspace/Sources/CalendarKit/Entity/DateComponent.swift:98:34: error: 'now' is only available in macOS 12 or newer
88 | }
89 |
90 | extension DateComponent: Equatable {
| `- note: add @available attribute to enclosing extension
91 |
92 | public static func == (lhs: Self, rhs: Self) -> Bool {
:
96 | }
97 |
98 | public static let now = Date.now.mapToComponent
| | `- error: 'now' is only available in macOS 12 or newer
| `- note: add @available attribute to enclosing static property
99 | }
100 |
/Users/admin/builder/spi-builder-workspace/Sources/CalendarKit/Entity/DateComponent.swift:98:23: warning: static property 'now' is not concurrency-safe because non-'Sendable' type 'DateComponent' may have shared mutable state; this is an error in the Swift 6 language mode
8 | import Foundation
9 |
10 | public struct DateComponent: Identifiable {
| `- note: consider making struct 'DateComponent' conform to the 'Sendable' protocol
11 |
12 | public let id: String = UUID().uuidString
:
96 | }
97 |
98 | public static let now = Date.now.mapToComponent
| |- warning: static property 'now' is not concurrency-safe because non-'Sendable' type 'DateComponent' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'now' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
99 | }
100 |
/Users/admin/builder/spi-builder-workspace/Sources/CalendarKit/Entity/DateComponent.swift:55:30: error: 'now' is only available in macOS 12 or newer
8 | import Foundation
9 |
10 | public struct DateComponent: Identifiable {
| `- note: add @available attribute to enclosing struct
11 |
12 | public let id: String = UUID().uuidString
:
45 |
46 | // 2023.01.01
47 | public init(dateString: String, separator: String = ".") {
| `- note: add @available attribute to enclosing initializer
48 |
49 | var components = dateString
:
53 |
54 | guard components.count == 3 else {
55 | self.init(from: .now)
| |- error: 'now' is only available in macOS 12 or newer
| `- note: add 'if #available' version check
56 | return
57 | }
/Users/admin/builder/spi-builder-workspace/Sources/CalendarKit/Entity/DateComponent.swift:65:30: error: 'now' is only available in macOS 12 or newer
8 | import Foundation
9 |
10 | public struct DateComponent: Identifiable {
| `- note: add @available attribute to enclosing struct
11 |
12 | public let id: String = UUID().uuidString
:
45 |
46 | // 2023.01.01
47 | public init(dateString: String, separator: String = ".") {
| `- note: add @available attribute to enclosing initializer
48 |
49 | var components = dateString
:
63 | let year = components.popLast()
64 | else {
65 | self.init(from: .now)
| |- error: 'now' is only available in macOS 12 or newer
| `- note: add 'if #available' version check
66 | return
67 | }
/Users/admin/builder/spi-builder-workspace/Sources/CalendarKit/Entity/DateComponent.swift:76:30: error: 'now' is only available in macOS 12 or newer
8 | import Foundation
9 |
10 | public struct DateComponent: Identifiable {
| `- note: add @available attribute to enclosing struct
11 |
12 | public let id: String = UUID().uuidString
:
45 |
46 | // 2023.01.01
47 | public init(dateString: String, separator: String = ".") {
| `- note: add @available attribute to enclosing initializer
48 |
49 | var components = dateString
:
74 | let calendar = Calendar.current
75 | guard let date = calendar.date(from: dateComponents) else {
76 | self.init(from: .now)
| |- error: 'now' is only available in macOS 12 or newer
| `- note: add 'if #available' version check
77 | return
78 | }
/Users/admin/builder/spi-builder-workspace/Sources/CalendarKit/Entity/DateComponent.swift:123:56: error: 'now' is only available in macOS 12 or newer
100 |
101 |
102 | extension DateComponent {
| `- note: add @available attribute to enclosing extension
103 |
104 | // 1 -> "01"
:
114 | public var fullDateString: String { "\(yearMonthDayString) (\(weekday.korean))" }
115 |
116 | public var mapToDate: Date {
| `- note: add @available attribute to enclosing property
117 | var dateComponents = DateComponents()
118 | dateComponents.year = year
:
121 |
122 | let calendar = Calendar.current
123 | return calendar.date(from: dateComponents) ?? .now
| |- error: 'now' is only available in macOS 12 or newer
| `- note: add 'if #available' version check
124 | }
125 | }
/Users/admin/builder/spi-builder-workspace/Sources/CalendarKit/Entity/HourComponent.swift:35:23: warning: static property 'default' is not concurrency-safe because non-'Sendable' type 'HourComponent' may have shared mutable state; this is an error in the Swift 6 language mode
8 | import Foundation
9 |
10 | public struct HourComponent {
| `- note: consider making struct 'HourComponent' conform to the 'Sendable' protocol
11 |
12 | public let hour: Int
:
33 | }
34 |
35 | public static let `default` = Self(hour: 0, minute: 0)
| |- warning: static property 'default' is not concurrency-safe because non-'Sendable' type 'HourComponent' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'default' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
36 | }
37 |
[11/14] Compiling CalendarKit HourComponent.swift
/Users/admin/builder/spi-builder-workspace/Sources/CalendarKit/Entity/DateComponent.swift:98:34: error: 'now' is only available in macOS 12 or newer
88 | }
89 |
90 | extension DateComponent: Equatable {
| `- note: add @available attribute to enclosing extension
91 |
92 | public static func == (lhs: Self, rhs: Self) -> Bool {
:
96 | }
97 |
98 | public static let now = Date.now.mapToComponent
| | `- error: 'now' is only available in macOS 12 or newer
| `- note: add @available attribute to enclosing static property
99 | }
100 |
/Users/admin/builder/spi-builder-workspace/Sources/CalendarKit/Entity/DateComponent.swift:98:23: warning: static property 'now' is not concurrency-safe because non-'Sendable' type 'DateComponent' may have shared mutable state; this is an error in the Swift 6 language mode
8 | import Foundation
9 |
10 | public struct DateComponent: Identifiable {
| `- note: consider making struct 'DateComponent' conform to the 'Sendable' protocol
11 |
12 | public let id: String = UUID().uuidString
:
96 | }
97 |
98 | public static let now = Date.now.mapToComponent
| |- warning: static property 'now' is not concurrency-safe because non-'Sendable' type 'DateComponent' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'now' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
99 | }
100 |
/Users/admin/builder/spi-builder-workspace/Sources/CalendarKit/Entity/DateComponent.swift:55:30: error: 'now' is only available in macOS 12 or newer
8 | import Foundation
9 |
10 | public struct DateComponent: Identifiable {
| `- note: add @available attribute to enclosing struct
11 |
12 | public let id: String = UUID().uuidString
:
45 |
46 | // 2023.01.01
47 | public init(dateString: String, separator: String = ".") {
| `- note: add @available attribute to enclosing initializer
48 |
49 | var components = dateString
:
53 |
54 | guard components.count == 3 else {
55 | self.init(from: .now)
| |- error: 'now' is only available in macOS 12 or newer
| `- note: add 'if #available' version check
56 | return
57 | }
/Users/admin/builder/spi-builder-workspace/Sources/CalendarKit/Entity/DateComponent.swift:65:30: error: 'now' is only available in macOS 12 or newer
8 | import Foundation
9 |
10 | public struct DateComponent: Identifiable {
| `- note: add @available attribute to enclosing struct
11 |
12 | public let id: String = UUID().uuidString
:
45 |
46 | // 2023.01.01
47 | public init(dateString: String, separator: String = ".") {
| `- note: add @available attribute to enclosing initializer
48 |
49 | var components = dateString
:
63 | let year = components.popLast()
64 | else {
65 | self.init(from: .now)
| |- error: 'now' is only available in macOS 12 or newer
| `- note: add 'if #available' version check
66 | return
67 | }
/Users/admin/builder/spi-builder-workspace/Sources/CalendarKit/Entity/DateComponent.swift:76:30: error: 'now' is only available in macOS 12 or newer
8 | import Foundation
9 |
10 | public struct DateComponent: Identifiable {
| `- note: add @available attribute to enclosing struct
11 |
12 | public let id: String = UUID().uuidString
:
45 |
46 | // 2023.01.01
47 | public init(dateString: String, separator: String = ".") {
| `- note: add @available attribute to enclosing initializer
48 |
49 | var components = dateString
:
74 | let calendar = Calendar.current
75 | guard let date = calendar.date(from: dateComponents) else {
76 | self.init(from: .now)
| |- error: 'now' is only available in macOS 12 or newer
| `- note: add 'if #available' version check
77 | return
78 | }
/Users/admin/builder/spi-builder-workspace/Sources/CalendarKit/Entity/DateComponent.swift:123:56: error: 'now' is only available in macOS 12 or newer
100 |
101 |
102 | extension DateComponent {
| `- note: add @available attribute to enclosing extension
103 |
104 | // 1 -> "01"
:
114 | public var fullDateString: String { "\(yearMonthDayString) (\(weekday.korean))" }
115 |
116 | public var mapToDate: Date {
| `- note: add @available attribute to enclosing property
117 | var dateComponents = DateComponents()
118 | dateComponents.year = year
:
121 |
122 | let calendar = Calendar.current
123 | return calendar.date(from: dateComponents) ?? .now
| |- error: 'now' is only available in macOS 12 or newer
| `- note: add 'if #available' version check
124 | }
125 | }
/Users/admin/builder/spi-builder-workspace/Sources/CalendarKit/Entity/HourComponent.swift:35:23: warning: static property 'default' is not concurrency-safe because non-'Sendable' type 'HourComponent' may have shared mutable state; this is an error in the Swift 6 language mode
8 | import Foundation
9 |
10 | public struct HourComponent {
| `- note: consider making struct 'HourComponent' conform to the 'Sendable' protocol
11 |
12 | public let hour: Int
:
33 | }
34 |
35 | public static let `default` = Self(hour: 0, minute: 0)
| |- warning: static property 'default' is not concurrency-safe because non-'Sendable' type 'HourComponent' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'default' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
36 | }
37 |
[12/15] Compiling CalendarKit GetMonthOffsetArrayUseCase.swift
[13/15] Compiling CalendarKit CalendarContent.swift
/Users/admin/builder/spi-builder-workspace/Sources/CalendarKit/View/CalendarContent.swift:15:6: error: 'State' is only available in macOS 10.15 or newer
8 | import SwiftUI
9 |
10 | public struct CalendarContent<Content: View>: View {
| `- note: add @available attribute to enclosing generic struct
11 |
12 | let offset: Int
13 | let vSpacing: CGFloat
14 | let cellBuilder: (DateComponent) -> Content
15 | @State var dates: [DateComponent] = []
| `- error: 'State' is only available in macOS 10.15 or newer
16 |
17 | private let getDates = GetDateComponentListByMonthOffsetUseCase()
/Users/admin/builder/spi-builder-workspace/Sources/CalendarKit/View/CalendarContent.swift:22:10: error: 'ViewBuilder' is only available in macOS 10.15 or newer
8 | import SwiftUI
9 |
10 | public struct CalendarContent<Content: View>: View {
| `- note: add @available attribute to enclosing generic struct
11 |
12 | let offset: Int
:
17 | private let getDates = GetDateComponentListByMonthOffsetUseCase()
18 |
19 | public init(
| `- note: add @available attribute to enclosing initializer
20 | offset: Int,
21 | vSpacing: CGFloat = 12,
22 | @ViewBuilder _ cellBuilder: @escaping (DateComponent) -> Content
| `- error: 'ViewBuilder' is only available in macOS 10.15 or newer
23 | ) {
24 | self.offset = offset
/Users/admin/builder/spi-builder-workspace/Sources/CalendarKit/View/CalendarContent.swift:29:27: error: 'View' is only available in macOS 10.15 or newer
8 | import SwiftUI
9 |
10 | public struct CalendarContent<Content: View>: View {
| `- note: add @available attribute to enclosing generic struct
11 |
12 | let offset: Int
:
27 | }
28 |
29 | public var body: some View {
| | `- error: 'View' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing property
30 | LazyVGrid(columns: .init(repeating: .init(), count: 7), spacing: vSpacing) {
31 | ForEach(self.dates, id: \.id) { date in
/Users/admin/builder/spi-builder-workspace/Sources/CalendarKit/View/CalendarContent.swift:10:40: error: 'View' is only available in macOS 10.15 or newer
8 | import SwiftUI
9 |
10 | public struct CalendarContent<Content: View>: View {
| | `- error: 'View' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing generic struct
11 |
12 | let offset: Int
/Users/admin/builder/spi-builder-workspace/Sources/CalendarKit/View/CalendarContent.swift:42:2: error: 'Preview(_:body:)' is only available in macOS 10.15 or newer
40 | }
41 |
42 | #Preview {
| `- error: 'Preview(_:body:)' is only available in macOS 10.15 or newer
43 | CalendarContent(offset: 0) { date in
44 | Text(String(date.day))
/Users/admin/builder/spi-builder-workspace/Sources/CalendarKit/View/CalendarContent.swift:44:9: error: 'Text' is only available in macOS 10.15 or newer
42 | #Preview {
43 | CalendarContent(offset: 0) { date in
44 | Text(String(date.day))
| |- error: 'Text' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
45 | .fontWeight(.medium)
46 | .foregroundStyle(Color.gray)
/Users/admin/builder/spi-builder-workspace/Sources/CalendarKit/View/CalendarContent.swift:45:14: error: 'fontWeight' is only available in macOS 10.15 or newer
43 | CalendarContent(offset: 0) { date in
44 | Text(String(date.day))
45 | .fontWeight(.medium)
| |- error: 'fontWeight' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
46 | .foregroundStyle(Color.gray)
47 | .frame(height: 60, alignment: .top)
/Users/admin/builder/spi-builder-workspace/Sources/CalendarKit/View/CalendarContent.swift:46:14: error: 'foregroundStyle' is only available in macOS 14.0 or newer
44 | Text(String(date.day))
45 | .fontWeight(.medium)
46 | .foregroundStyle(Color.gray)
| |- error: 'foregroundStyle' is only available in macOS 14.0 or newer
| `- note: add 'if #available' version check
47 | .frame(height: 60, alignment: .top)
48 | }
/Users/admin/builder/spi-builder-workspace/Sources/CalendarKit/View/CalendarContent.swift:46:30: error: 'Color' is only available in macOS 10.15 or newer
44 | Text(String(date.day))
45 | .fontWeight(.medium)
46 | .foregroundStyle(Color.gray)
| |- error: 'Color' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
47 | .frame(height: 60, alignment: .top)
48 | }
/Users/admin/builder/spi-builder-workspace/Sources/CalendarKit/View/CalendarContent.swift:46:36: error: 'gray' is only available in macOS 10.15 or newer
44 | Text(String(date.day))
45 | .fontWeight(.medium)
46 | .foregroundStyle(Color.gray)
| |- error: 'gray' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
47 | .frame(height: 60, alignment: .top)
48 | }
/Users/admin/builder/spi-builder-workspace/Sources/CalendarKit/View/CalendarContent.swift:47:14: error: 'frame(width:height:alignment:)' is only available in macOS 10.15 or newer
45 | .fontWeight(.medium)
46 | .foregroundStyle(Color.gray)
47 | .frame(height: 60, alignment: .top)
| |- error: 'frame(width:height:alignment:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
48 | }
49 | }
/Users/admin/builder/spi-builder-workspace/Sources/CalendarKit/View/CalendarContent.swift:47:44: error: 'top' is only available in macOS 10.15 or newer
45 | .fontWeight(.medium)
46 | .foregroundStyle(Color.gray)
47 | .frame(height: 60, alignment: .top)
| |- error: 'top' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
48 | }
49 | }
/Users/admin/builder/spi-builder-workspace/Sources/CalendarKit/View/CalendarHeader.swift:27:2: error: 'Preview(_:body:)' is only available in macOS 10.15 or newer
25 | }
26 |
27 | #Preview {
| `- error: 'Preview(_:body:)' is only available in macOS 10.15 or newer
28 | CalendarHeader {
29 | Text($0.korean)
/Users/admin/builder/spi-builder-workspace/Sources/CalendarKit/View/CalendarHeader.swift:28:5: warning: conformance of 'Text' to 'View' is only available in macOS 10.15 or newer; this is an error in the Swift 6 language mode
26 |
27 | #Preview {
28 | CalendarHeader {
| |- warning: conformance of 'Text' to 'View' is only available in macOS 10.15 or newer; this is an error in the Swift 6 language mode
| `- note: add 'if #available' version check
29 | Text($0.korean)
30 | .fontWeight(.medium)
/Users/admin/builder/spi-builder-workspace/Sources/CalendarKit/View/CalendarHeader.swift:28:5: warning: conformance of 'Text' to 'View' is only available in macOS 10.15 or newer; this is an error in the Swift 6 language mode
26 |
27 | #Preview {
28 | CalendarHeader {
| |- warning: conformance of 'Text' to 'View' is only available in macOS 10.15 or newer; this is an error in the Swift 6 language mode
| `- note: add 'if #available' version check
29 | Text($0.korean)
30 | .fontWeight(.medium)
/Users/admin/builder/spi-builder-workspace/Sources/CalendarKit/View/CalendarHeader.swift:28:5: warning: conformance of 'Text' to 'View' is only available in macOS 10.15 or newer; this is an error in the Swift 6 language mode
26 |
27 | #Preview {
28 | CalendarHeader {
| |- warning: conformance of 'Text' to 'View' is only available in macOS 10.15 or newer; this is an error in the Swift 6 language mode
| `- note: add 'if #available' version check
29 | Text($0.korean)
30 | .fontWeight(.medium)
/Users/admin/builder/spi-builder-workspace/Sources/CalendarKit/View/CalendarHeader.swift:29:9: warning: conformance of 'Text' to 'View' is only available in macOS 10.15 or newer; this is an error in the Swift 6 language mode
27 | #Preview {
28 | CalendarHeader {
29 | Text($0.korean)
| |- warning: conformance of 'Text' to 'View' is only available in macOS 10.15 or newer; this is an error in the Swift 6 language mode
| `- note: add 'if #available' version check
30 | .fontWeight(.medium)
31 | }
/Users/admin/builder/spi-builder-workspace/Sources/CalendarKit/View/CalendarHeader.swift:29:9: error: 'Text' is only available in macOS 10.15 or newer
27 | #Preview {
28 | CalendarHeader {
29 | Text($0.korean)
| |- error: 'Text' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
30 | .fontWeight(.medium)
31 | }
/Users/admin/builder/spi-builder-workspace/Sources/CalendarKit/View/CalendarHeader.swift:30:14: error: 'fontWeight' is only available in macOS 10.15 or newer
28 | CalendarHeader {
29 | Text($0.korean)
30 | .fontWeight(.medium)
| |- error: 'fontWeight' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
31 | }
32 | }
/Users/admin/builder/spi-builder-workspace/Sources/CalendarKit/View/CalendarHeader.swift:28:20: warning: conformance of 'Text' to 'View' is only available in macOS 10.15 or newer; this is an error in the Swift 6 language mode
26 |
27 | #Preview {
28 | CalendarHeader {
| |- warning: conformance of 'Text' to 'View' is only available in macOS 10.15 or newer; this is an error in the Swift 6 language mode
| `- note: add 'if #available' version check
29 | Text($0.korean)
30 | .fontWeight(.medium)
/Users/admin/builder/spi-builder-workspace/Sources/CalendarKit/View/CalendarHeader.swift:27:10: warning: conformance of 'Text' to 'View' is only available in macOS 10.15 or newer; this is an error in the Swift 6 language mode
25 | }
26 |
27 | #Preview {
| |- warning: conformance of 'Text' to 'View' is only available in macOS 10.15 or newer; this is an error in the Swift 6 language mode
| `- note: add 'if #available' version check
28 | CalendarHeader {
29 | Text($0.korean)
/Users/admin/builder/spi-builder-workspace/Sources/CalendarKit/View/CalendarHeader.swift:27:10: warning: conformance of 'Text' to 'View' is only available in macOS 10.15 or newer; this is an error in the Swift 6 language mode
25 | }
26 |
27 | #Preview {
| |- warning: conformance of 'Text' to 'View' is only available in macOS 10.15 or newer; this is an error in the Swift 6 language mode
| `- note: add 'if #available' version check
28 | CalendarHeader {
29 | Text($0.korean)
/Users/admin/builder/spi-builder-workspace/Sources/CalendarKit/View/CalendarContent.swift:30:9: error: 'LazyVGrid' is only available in macOS 11.0 or newer
8 | import SwiftUI
9 |
10 | public struct CalendarContent<Content: View>: View {
| `- note: add @available attribute to enclosing generic struct
11 |
12 | let offset: Int
:
27 | }
28 |
29 | public var body: some View {
| `- note: add @available attribute to enclosing property
30 | LazyVGrid(columns: .init(repeating: .init(), count: 7), spacing: vSpacing) {
| |- error: 'LazyVGrid' is only available in macOS 11.0 or newer
| `- note: add 'if #available' version check
31 | ForEach(self.dates, id: \.id) { date in
32 | cellBuilder(date)
/Users/admin/builder/spi-builder-workspace/Sources/CalendarKit/View/CalendarContent.swift:30:9: warning: conformance of 'ForEach<Data, ID, Content>' to 'View' is only available in macOS 10.15 or newer; this is an error in the Swift 6 language mode
8 | import SwiftUI
9 |
10 | public struct CalendarContent<Content: View>: View {
| `- note: add @available attribute to enclosing generic struct
11 |
12 | let offset: Int
:
27 | }
28 |
29 | public var body: some View {
| `- note: add @available attribute to enclosing property
30 | LazyVGrid(columns: .init(repeating: .init(), count: 7), spacing: vSpacing) {
| |- warning: conformance of 'ForEach<Data, ID, Content>' to 'View' is only available in macOS 10.15 or newer; this is an error in the Swift 6 language mode
| `- note: add 'if #available' version check
31 | ForEach(self.dates, id: \.id) { date in
32 | cellBuilder(date)
/Users/admin/builder/spi-builder-workspace/Sources/CalendarKit/View/CalendarContent.swift:31:13: warning: conformance of 'ForEach<Data, ID, Content>' to 'View' is only available in macOS 10.15 or newer; this is an error in the Swift 6 language mode
8 | import SwiftUI
9 |
10 | public struct CalendarContent<Content: View>: View {
| `- note: add @available attribute to enclosing generic struct
11 |
12 | let offset: Int
:
27 | }
28 |
29 | public var body: some View {
| `- note: add @available attribute to enclosing property
30 | LazyVGrid(columns: .init(repeating: .init(), count: 7), spacing: vSpacing) {
31 | ForEach(self.dates, id: \.id) { date in
| |- warning: conformance of 'ForEach<Data, ID, Content>' to 'View' is only available in macOS 10.15 or newer; this is an error in the Swift 6 language mode
| `- note: add 'if #available' version check
32 | cellBuilder(date)
33 | }
/Users/admin/builder/spi-builder-workspace/Sources/CalendarKit/View/CalendarContent.swift:31:13: error: 'ForEach' is only available in macOS 10.15 or newer
8 | import SwiftUI
9 |
10 | public struct CalendarContent<Content: View>: View {
| `- note: add @available attribute to enclosing generic struct
11 |
12 | let offset: Int
:
27 | }
28 |
29 | public var body: some View {
| `- note: add @available attribute to enclosing property
30 | LazyVGrid(columns: .init(repeating: .init(), count: 7), spacing: vSpacing) {
31 | ForEach(self.dates, id: \.id) { date in
| |- error: 'ForEach' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
32 | cellBuilder(date)
33 | }
/Users/admin/builder/spi-builder-workspace/Sources/CalendarKit/View/CalendarContent.swift:31:13: error: 'init(_:id:content:)' is only available in macOS 10.15 or newer
8 | import SwiftUI
9 |
10 | public struct CalendarContent<Content: View>: View {
| `- note: add @available attribute to enclosing generic struct
11 |
12 | let offset: Int
:
27 | }
28 |
29 | public var body: some View {
| `- note: add @available attribute to enclosing property
30 | LazyVGrid(columns: .init(repeating: .init(), count: 7), spacing: vSpacing) {
31 | ForEach(self.dates, id: \.id) { date in
| |- error: 'init(_:id:content:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
32 | cellBuilder(date)
33 | }
/Users/admin/builder/spi-builder-workspace/Sources/CalendarKit/View/CalendarContent.swift:30:84: warning: conformance of 'ForEach<Data, ID, Content>' to 'View' is only available in macOS 10.15 or newer; this is an error in the Swift 6 language mode
8 | import SwiftUI
9 |
10 | public struct CalendarContent<Content: View>: View {
| `- note: add @available attribute to enclosing generic struct
11 |
12 | let offset: Int
:
27 | }
28 |
29 | public var body: some View {
| `- note: add @available attribute to enclosing property
30 | LazyVGrid(columns: .init(repeating: .init(), count: 7), spacing: vSpacing) {
| |- warning: conformance of 'ForEach<Data, ID, Content>' to 'View' is only available in macOS 10.15 or newer; this is an error in the Swift 6 language mode
| `- note: add 'if #available' version check
31 | ForEach(self.dates, id: \.id) { date in
32 | cellBuilder(date)
/Users/admin/builder/spi-builder-workspace/Sources/CalendarKit/View/CalendarContent.swift:35:10: error: 'frame(width:height:alignment:)' is only available in macOS 10.15 or newer
8 | import SwiftUI
9 |
10 | public struct CalendarContent<Content: View>: View {
| `- note: add @available attribute to enclosing generic struct
11 |
12 | let offset: Int
:
27 | }
28 |
29 | public var body: some View {
| `- note: add @available attribute to enclosing property
30 | LazyVGrid(columns: .init(repeating: .init(), count: 7), spacing: vSpacing) {
31 | ForEach(self.dates, id: \.id) { date in
:
33 | }
34 | }
35 | .frame(alignment: .top)
| |- error: 'frame(width:height:alignment:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
36 | .onAppear {
37 | self.dates = self.getDates.exeute(self.offset)
/Users/admin/builder/spi-builder-workspace/Sources/CalendarKit/View/CalendarContent.swift:35:28: error: 'top' is only available in macOS 10.15 or newer
8 | import SwiftUI
9 |
10 | public struct CalendarContent<Content: View>: View {
| `- note: add @available attribute to enclosing generic struct
11 |
12 | let offset: Int
:
27 | }
28 |
29 | public var body: some View {
| `- note: add @available attribute to enclosing property
30 | LazyVGrid(columns: .init(repeating: .init(), count: 7), spacing: vSpacing) {
31 | ForEach(self.dates, id: \.id) { date in
:
33 | }
34 | }
35 | .frame(alignment: .top)
| |- error: 'top' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
36 | .onAppear {
37 | self.dates = self.getDates.exeute(self.offset)
/Users/admin/builder/spi-builder-workspace/Sources/CalendarKit/View/CalendarContent.swift:36:10: error: 'onAppear(perform:)' is only available in macOS 10.15 or newer
8 | import SwiftUI
9 |
10 | public struct CalendarContent<Content: View>: View {
| `- note: add @available attribute to enclosing generic struct
11 |
12 | let offset: Int
:
27 | }
28 |
29 | public var body: some View {
| `- note: add @available attribute to enclosing property
30 | LazyVGrid(columns: .init(repeating: .init(), count: 7), spacing: vSpacing) {
31 | ForEach(self.dates, id: \.id) { date in
:
34 | }
35 | .frame(alignment: .top)
36 | .onAppear {
| |- error: 'onAppear(perform:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
37 | self.dates = self.getDates.exeute(self.offset)
38 | }
/Users/admin/builder/spi-builder-workspace/Sources/CalendarKit/View/CalendarContent.swift:37:13: error: setter for 'dates' is only available in macOS 10.15 or newer
8 | import SwiftUI
9 |
10 | public struct CalendarContent<Content: View>: View {
| `- note: add @available attribute to enclosing generic struct
11 |
12 | let offset: Int
:
27 | }
28 |
29 | public var body: some View {
| `- note: add @available attribute to enclosing property
30 | LazyVGrid(columns: .init(repeating: .init(), count: 7), spacing: vSpacing) {
31 | ForEach(self.dates, id: \.id) { date in
:
35 | .frame(alignment: .top)
36 | .onAppear {
37 | self.dates = self.getDates.exeute(self.offset)
| |- error: setter for 'dates' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
38 | }
39 | }
error: emit-module command failed with exit code 1 (use -v to see invocation)
[14/15] Emitting module CalendarKit
/Users/admin/builder/spi-builder-workspace/Sources/CalendarKit/Entity/DateComponent.swift:98:34: error: 'now' is only available in macOS 12 or newer
88 | }
89 |
90 | extension DateComponent: Equatable {
| `- note: add @available attribute to enclosing extension
91 |
92 | public static func == (lhs: Self, rhs: Self) -> Bool {
:
96 | }
97 |
98 | public static let now = Date.now.mapToComponent
| | `- error: 'now' is only available in macOS 12 or newer
| `- note: add @available attribute to enclosing static property
99 | }
100 |
/Users/admin/builder/spi-builder-workspace/Sources/CalendarKit/Entity/DateComponent.swift:98:23: warning: static property 'now' is not concurrency-safe because non-'Sendable' type 'DateComponent' may have shared mutable state; this is an error in the Swift 6 language mode
8 | import Foundation
9 |
10 | public struct DateComponent: Identifiable {
| `- note: consider making struct 'DateComponent' conform to the 'Sendable' protocol
11 |
12 | public let id: String = UUID().uuidString
:
96 | }
97 |
98 | public static let now = Date.now.mapToComponent
| |- warning: static property 'now' is not concurrency-safe because non-'Sendable' type 'DateComponent' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'now' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
99 | }
100 |
/Users/admin/builder/spi-builder-workspace/Sources/CalendarKit/Entity/HourComponent.swift:35:23: warning: static property 'default' is not concurrency-safe because non-'Sendable' type 'HourComponent' may have shared mutable state; this is an error in the Swift 6 language mode
8 | import Foundation
9 |
10 | public struct HourComponent {
| `- note: consider making struct 'HourComponent' conform to the 'Sendable' protocol
11 |
12 | public let hour: Int
:
33 | }
34 |
35 | public static let `default` = Self(hour: 0, minute: 0)
| |- warning: static property 'default' is not concurrency-safe because non-'Sendable' type 'HourComponent' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'default' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
36 | }
37 |
/Users/admin/builder/spi-builder-workspace/Sources/CalendarKit/View/CalendarContent.swift:15:6: error: 'State' is only available in macOS 10.15 or newer
8 | import SwiftUI
9 |
10 | public struct CalendarContent<Content: View>: View {
| `- note: add @available attribute to enclosing generic struct
11 |
12 | let offset: Int
13 | let vSpacing: CGFloat
14 | let cellBuilder: (DateComponent) -> Content
15 | @State var dates: [DateComponent] = []
| `- error: 'State' is only available in macOS 10.15 or newer
16 |
17 | private let getDates = GetDateComponentListByMonthOffsetUseCase()
/Users/admin/builder/spi-builder-workspace/Sources/CalendarKit/View/CalendarContent.swift:22:10: error: 'ViewBuilder' is only available in macOS 10.15 or newer
8 | import SwiftUI
9 |
10 | public struct CalendarContent<Content: View>: View {
| `- note: add @available attribute to enclosing generic struct
11 |
12 | let offset: Int
:
17 | private let getDates = GetDateComponentListByMonthOffsetUseCase()
18 |
19 | public init(
| `- note: add @available attribute to enclosing initializer
20 | offset: Int,
21 | vSpacing: CGFloat = 12,
22 | @ViewBuilder _ cellBuilder: @escaping (DateComponent) -> Content
| `- error: 'ViewBuilder' is only available in macOS 10.15 or newer
23 | ) {
24 | self.offset = offset
/Users/admin/builder/spi-builder-workspace/Sources/CalendarKit/View/CalendarContent.swift:29:27: error: 'View' is only available in macOS 10.15 or newer
8 | import SwiftUI
9 |
10 | public struct CalendarContent<Content: View>: View {
| `- note: add @available attribute to enclosing generic struct
11 |
12 | let offset: Int
:
27 | }
28 |
29 | public var body: some View {
| | `- error: 'View' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing property
30 | LazyVGrid(columns: .init(repeating: .init(), count: 7), spacing: vSpacing) {
31 | ForEach(self.dates, id: \.id) { date in
/Users/admin/builder/spi-builder-workspace/Sources/CalendarKit/View/CalendarContent.swift:10:40: error: 'View' is only available in macOS 10.15 or newer
8 | import SwiftUI
9 |
10 | public struct CalendarContent<Content: View>: View {
| | `- error: 'View' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing generic struct
11 |
12 | let offset: Int
/Users/admin/builder/spi-builder-workspace/Sources/CalendarKit/View/CalendarContent.swift:42:2: error: 'Preview(_:body:)' is only available in macOS 10.15 or newer
40 | }
41 |
42 | #Preview {
| `- error: 'Preview(_:body:)' is only available in macOS 10.15 or newer
43 | CalendarContent(offset: 0) { date in
44 | Text(String(date.day))
/Users/admin/builder/spi-builder-workspace/Sources/CalendarKit/View/CalendarContent.swift:44:9: error: 'Text' is only available in macOS 10.15 or newer
42 | #Preview {
43 | CalendarContent(offset: 0) { date in
44 | Text(String(date.day))
| |- error: 'Text' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
45 | .fontWeight(.medium)
46 | .foregroundStyle(Color.gray)
/Users/admin/builder/spi-builder-workspace/Sources/CalendarKit/View/CalendarContent.swift:45:14: error: 'fontWeight' is only available in macOS 10.15 or newer
43 | CalendarContent(offset: 0) { date in
44 | Text(String(date.day))
45 | .fontWeight(.medium)
| |- error: 'fontWeight' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
46 | .foregroundStyle(Color.gray)
47 | .frame(height: 60, alignment: .top)
/Users/admin/builder/spi-builder-workspace/Sources/CalendarKit/View/CalendarContent.swift:46:14: error: 'foregroundStyle' is only available in macOS 14.0 or newer
44 | Text(String(date.day))
45 | .fontWeight(.medium)
46 | .foregroundStyle(Color.gray)
| |- error: 'foregroundStyle' is only available in macOS 14.0 or newer
| `- note: add 'if #available' version check
47 | .frame(height: 60, alignment: .top)
48 | }
/Users/admin/builder/spi-builder-workspace/Sources/CalendarKit/View/CalendarContent.swift:46:30: error: 'Color' is only available in macOS 10.15 or newer
44 | Text(String(date.day))
45 | .fontWeight(.medium)
46 | .foregroundStyle(Color.gray)
| |- error: 'Color' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
47 | .frame(height: 60, alignment: .top)
48 | }
/Users/admin/builder/spi-builder-workspace/Sources/CalendarKit/View/CalendarContent.swift:46:36: error: 'gray' is only available in macOS 10.15 or newer
44 | Text(String(date.day))
45 | .fontWeight(.medium)
46 | .foregroundStyle(Color.gray)
| |- error: 'gray' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
47 | .frame(height: 60, alignment: .top)
48 | }
/Users/admin/builder/spi-builder-workspace/Sources/CalendarKit/View/CalendarContent.swift:47:14: error: 'frame(width:height:alignment:)' is only available in macOS 10.15 or newer
45 | .fontWeight(.medium)
46 | .foregroundStyle(Color.gray)
47 | .frame(height: 60, alignment: .top)
| |- error: 'frame(width:height:alignment:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
48 | }
49 | }
/Users/admin/builder/spi-builder-workspace/Sources/CalendarKit/View/CalendarContent.swift:47:44: error: 'top' is only available in macOS 10.15 or newer
45 | .fontWeight(.medium)
46 | .foregroundStyle(Color.gray)
47 | .frame(height: 60, alignment: .top)
| |- error: 'top' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
48 | }
49 | }
/Users/admin/builder/spi-builder-workspace/Sources/CalendarKit/View/CalendarHeader.swift:27:2: error: 'Preview(_:body:)' is only available in macOS 10.15 or newer
25 | }
26 |
27 | #Preview {
| `- error: 'Preview(_:body:)' is only available in macOS 10.15 or newer
28 | CalendarHeader {
29 | Text($0.korean)
/Users/admin/builder/spi-builder-workspace/Sources/CalendarKit/View/CalendarHeader.swift:28:5: warning: conformance of 'Text' to 'View' is only available in macOS 10.15 or newer; this is an error in the Swift 6 language mode
26 |
27 | #Preview {
28 | CalendarHeader {
| |- warning: conformance of 'Text' to 'View' is only available in macOS 10.15 or newer; this is an error in the Swift 6 language mode
| `- note: add 'if #available' version check
29 | Text($0.korean)
30 | .fontWeight(.medium)
/Users/admin/builder/spi-builder-workspace/Sources/CalendarKit/View/CalendarHeader.swift:28:5: warning: conformance of 'Text' to 'View' is only available in macOS 10.15 or newer; this is an error in the Swift 6 language mode
26 |
27 | #Preview {
28 | CalendarHeader {
| |- warning: conformance of 'Text' to 'View' is only available in macOS 10.15 or newer; this is an error in the Swift 6 language mode
| `- note: add 'if #available' version check
29 | Text($0.korean)
30 | .fontWeight(.medium)
/Users/admin/builder/spi-builder-workspace/Sources/CalendarKit/View/CalendarHeader.swift:28:5: warning: conformance of 'Text' to 'View' is only available in macOS 10.15 or newer; this is an error in the Swift 6 language mode
26 |
27 | #Preview {
28 | CalendarHeader {
| |- warning: conformance of 'Text' to 'View' is only available in macOS 10.15 or newer; this is an error in the Swift 6 language mode
| `- note: add 'if #available' version check
29 | Text($0.korean)
30 | .fontWeight(.medium)
/Users/admin/builder/spi-builder-workspace/Sources/CalendarKit/View/CalendarHeader.swift:29:9: warning: conformance of 'Text' to 'View' is only available in macOS 10.15 or newer; this is an error in the Swift 6 language mode
27 | #Preview {
28 | CalendarHeader {
29 | Text($0.korean)
| |- warning: conformance of 'Text' to 'View' is only available in macOS 10.15 or newer; this is an error in the Swift 6 language mode
| `- note: add 'if #available' version check
30 | .fontWeight(.medium)
31 | }
/Users/admin/builder/spi-builder-workspace/Sources/CalendarKit/View/CalendarHeader.swift:29:9: error: 'Text' is only available in macOS 10.15 or newer
27 | #Preview {
28 | CalendarHeader {
29 | Text($0.korean)
| |- error: 'Text' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
30 | .fontWeight(.medium)
31 | }
/Users/admin/builder/spi-builder-workspace/Sources/CalendarKit/View/CalendarHeader.swift:30:14: error: 'fontWeight' is only available in macOS 10.15 or newer
28 | CalendarHeader {
29 | Text($0.korean)
30 | .fontWeight(.medium)
| |- error: 'fontWeight' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
31 | }
32 | }
/Users/admin/builder/spi-builder-workspace/Sources/CalendarKit/View/CalendarHeader.swift:28:20: warning: conformance of 'Text' to 'View' is only available in macOS 10.15 or newer; this is an error in the Swift 6 language mode
26 |
27 | #Preview {
28 | CalendarHeader {
| |- warning: conformance of 'Text' to 'View' is only available in macOS 10.15 or newer; this is an error in the Swift 6 language mode
| `- note: add 'if #available' version check
29 | Text($0.korean)
30 | .fontWeight(.medium)
/Users/admin/builder/spi-builder-workspace/Sources/CalendarKit/View/CalendarHeader.swift:27:10: warning: conformance of 'Text' to 'View' is only available in macOS 10.15 or newer; this is an error in the Swift 6 language mode
25 | }
26 |
27 | #Preview {
| |- warning: conformance of 'Text' to 'View' is only available in macOS 10.15 or newer; this is an error in the Swift 6 language mode
| `- note: add 'if #available' version check
28 | CalendarHeader {
29 | Text($0.korean)
/Users/admin/builder/spi-builder-workspace/Sources/CalendarKit/View/CalendarHeader.swift:27:10: warning: conformance of 'Text' to 'View' is only available in macOS 10.15 or newer; this is an error in the Swift 6 language mode
25 | }
26 |
27 | #Preview {
| |- warning: conformance of 'Text' to 'View' is only available in macOS 10.15 or newer; this is an error in the Swift 6 language mode
| `- note: add 'if #available' version check
28 | CalendarHeader {
29 | Text($0.korean)
/Users/admin/builder/spi-builder-workspace/Sources/CalendarKit/View/CalendarHeader.swift:14:18: error: 'ViewBuilder' is only available in macOS 10.15 or newer
8 | import SwiftUI
9 |
10 | public struct CalendarHeader<Content: View>: View {
| `- note: add @available attribute to enclosing generic struct
11 |
12 | let cellBuilder: (WeekDay) -> Content
13 |
14 | public init(@ViewBuilder cellBuilder: @escaping (WeekDay) -> Content) {
| | `- error: 'ViewBuilder' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing initializer
15 | self.cellBuilder = cellBuilder
16 | }
/Users/admin/builder/spi-builder-workspace/Sources/CalendarKit/View/CalendarHeader.swift:18:27: error: 'View' is only available in macOS 10.15 or newer
8 | import SwiftUI
9 |
10 | public struct CalendarHeader<Content: View>: View {
| `- note: add @available attribute to enclosing generic struct
11 |
12 | let cellBuilder: (WeekDay) -> Content
:
16 | }
17 |
18 | public var body: some View {
| | `- error: 'View' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing property
19 | LazyVGrid(columns: .init(repeating: .init(), count: 7), content: {
20 | ForEach(WeekDay.allCases, id: \.self) { weekday in
/Users/admin/builder/spi-builder-workspace/Sources/CalendarKit/View/CalendarHeader.swift:10:39: error: 'View' is only available in macOS 10.15 or newer
8 | import SwiftUI
9 |
10 | public struct CalendarHeader<Content: View>: View {
| | `- error: 'View' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing generic struct
11 |
12 | let cellBuilder: (WeekDay) -> Content
[15/15] Compiling CalendarKit CalendarHeader.swift
/Users/admin/builder/spi-builder-workspace/Sources/CalendarKit/View/CalendarHeader.swift:14:18: error: 'ViewBuilder' is only available in macOS 10.15 or newer
8 | import SwiftUI
9 |
10 | public struct CalendarHeader<Content: View>: View {
| `- note: add @available attribute to enclosing generic struct
11 |
12 | let cellBuilder: (WeekDay) -> Content
13 |
14 | public init(@ViewBuilder cellBuilder: @escaping (WeekDay) -> Content) {
| | `- error: 'ViewBuilder' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing initializer
15 | self.cellBuilder = cellBuilder
16 | }
/Users/admin/builder/spi-builder-workspace/Sources/CalendarKit/View/CalendarHeader.swift:18:27: error: 'View' is only available in macOS 10.15 or newer
8 | import SwiftUI
9 |
10 | public struct CalendarHeader<Content: View>: View {
| `- note: add @available attribute to enclosing generic struct
11 |
12 | let cellBuilder: (WeekDay) -> Content
:
16 | }
17 |
18 | public var body: some View {
| | `- error: 'View' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing property
19 | LazyVGrid(columns: .init(repeating: .init(), count: 7), content: {
20 | ForEach(WeekDay.allCases, id: \.self) { weekday in
/Users/admin/builder/spi-builder-workspace/Sources/CalendarKit/View/CalendarHeader.swift:10:39: error: 'View' is only available in macOS 10.15 or newer
8 | import SwiftUI
9 |
10 | public struct CalendarHeader<Content: View>: View {
| | `- error: 'View' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing generic struct
11 |
12 | let cellBuilder: (WeekDay) -> Content
/Users/admin/builder/spi-builder-workspace/Sources/CalendarKit/View/CalendarHeader.swift:27:2: error: 'Preview(_:body:)' is only available in macOS 10.15 or newer
25 | }
26 |
27 | #Preview {
| `- error: 'Preview(_:body:)' is only available in macOS 10.15 or newer
28 | CalendarHeader {
29 | Text($0.korean)
/Users/admin/builder/spi-builder-workspace/Sources/CalendarKit/View/CalendarHeader.swift:28:5: warning: conformance of 'Text' to 'View' is only available in macOS 10.15 or newer; this is an error in the Swift 6 language mode
26 |
27 | #Preview {
28 | CalendarHeader {
| |- warning: conformance of 'Text' to 'View' is only available in macOS 10.15 or newer; this is an error in the Swift 6 language mode
| `- note: add 'if #available' version check
29 | Text($0.korean)
30 | .fontWeight(.medium)
/Users/admin/builder/spi-builder-workspace/Sources/CalendarKit/View/CalendarHeader.swift:28:5: warning: conformance of 'Text' to 'View' is only available in macOS 10.15 or newer; this is an error in the Swift 6 language mode
26 |
27 | #Preview {
28 | CalendarHeader {
| |- warning: conformance of 'Text' to 'View' is only available in macOS 10.15 or newer; this is an error in the Swift 6 language mode
| `- note: add 'if #available' version check
29 | Text($0.korean)
30 | .fontWeight(.medium)
/Users/admin/builder/spi-builder-workspace/Sources/CalendarKit/View/CalendarHeader.swift:28:5: warning: conformance of 'Text' to 'View' is only available in macOS 10.15 or newer; this is an error in the Swift 6 language mode
26 |
27 | #Preview {
28 | CalendarHeader {
| |- warning: conformance of 'Text' to 'View' is only available in macOS 10.15 or newer; this is an error in the Swift 6 language mode
| `- note: add 'if #available' version check
29 | Text($0.korean)
30 | .fontWeight(.medium)
/Users/admin/builder/spi-builder-workspace/Sources/CalendarKit/View/CalendarHeader.swift:29:9: warning: conformance of 'Text' to 'View' is only available in macOS 10.15 or newer; this is an error in the Swift 6 language mode
27 | #Preview {
28 | CalendarHeader {
29 | Text($0.korean)
| |- warning: conformance of 'Text' to 'View' is only available in macOS 10.15 or newer; this is an error in the Swift 6 language mode
| `- note: add 'if #available' version check
30 | .fontWeight(.medium)
31 | }
/Users/admin/builder/spi-builder-workspace/Sources/CalendarKit/View/CalendarHeader.swift:29:9: error: 'Text' is only available in macOS 10.15 or newer
27 | #Preview {
28 | CalendarHeader {
29 | Text($0.korean)
| |- error: 'Text' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
30 | .fontWeight(.medium)
31 | }
/Users/admin/builder/spi-builder-workspace/Sources/CalendarKit/View/CalendarHeader.swift:30:14: error: 'fontWeight' is only available in macOS 10.15 or newer
28 | CalendarHeader {
29 | Text($0.korean)
30 | .fontWeight(.medium)
| |- error: 'fontWeight' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
31 | }
32 | }
/Users/admin/builder/spi-builder-workspace/Sources/CalendarKit/View/CalendarHeader.swift:28:20: warning: conformance of 'Text' to 'View' is only available in macOS 10.15 or newer; this is an error in the Swift 6 language mode
26 |
27 | #Preview {
28 | CalendarHeader {
| |- warning: conformance of 'Text' to 'View' is only available in macOS 10.15 or newer; this is an error in the Swift 6 language mode
| `- note: add 'if #available' version check
29 | Text($0.korean)
30 | .fontWeight(.medium)
/Users/admin/builder/spi-builder-workspace/Sources/CalendarKit/View/CalendarHeader.swift:27:10: warning: conformance of 'Text' to 'View' is only available in macOS 10.15 or newer; this is an error in the Swift 6 language mode
25 | }
26 |
27 | #Preview {
| |- warning: conformance of 'Text' to 'View' is only available in macOS 10.15 or newer; this is an error in the Swift 6 language mode
| `- note: add 'if #available' version check
28 | CalendarHeader {
29 | Text($0.korean)
/Users/admin/builder/spi-builder-workspace/Sources/CalendarKit/View/CalendarHeader.swift:27:10: warning: conformance of 'Text' to 'View' is only available in macOS 10.15 or newer; this is an error in the Swift 6 language mode
25 | }
26 |
27 | #Preview {
| |- warning: conformance of 'Text' to 'View' is only available in macOS 10.15 or newer; this is an error in the Swift 6 language mode
| `- note: add 'if #available' version check
28 | CalendarHeader {
29 | Text($0.korean)
/Users/admin/builder/spi-builder-workspace/Sources/CalendarKit/View/CalendarContent.swift:42:2: error: 'Preview(_:body:)' is only available in macOS 10.15 or newer
40 | }
41 |
42 | #Preview {
| `- error: 'Preview(_:body:)' is only available in macOS 10.15 or newer
43 | CalendarContent(offset: 0) { date in
44 | Text(String(date.day))
/Users/admin/builder/spi-builder-workspace/Sources/CalendarKit/View/CalendarContent.swift:44:9: error: 'Text' is only available in macOS 10.15 or newer
42 | #Preview {
43 | CalendarContent(offset: 0) { date in
44 | Text(String(date.day))
| |- error: 'Text' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
45 | .fontWeight(.medium)
46 | .foregroundStyle(Color.gray)
/Users/admin/builder/spi-builder-workspace/Sources/CalendarKit/View/CalendarContent.swift:45:14: error: 'fontWeight' is only available in macOS 10.15 or newer
43 | CalendarContent(offset: 0) { date in
44 | Text(String(date.day))
45 | .fontWeight(.medium)
| |- error: 'fontWeight' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
46 | .foregroundStyle(Color.gray)
47 | .frame(height: 60, alignment: .top)
/Users/admin/builder/spi-builder-workspace/Sources/CalendarKit/View/CalendarContent.swift:46:14: error: 'foregroundStyle' is only available in macOS 14.0 or newer
44 | Text(String(date.day))
45 | .fontWeight(.medium)
46 | .foregroundStyle(Color.gray)
| |- error: 'foregroundStyle' is only available in macOS 14.0 or newer
| `- note: add 'if #available' version check
47 | .frame(height: 60, alignment: .top)
48 | }
/Users/admin/builder/spi-builder-workspace/Sources/CalendarKit/View/CalendarContent.swift:46:30: error: 'Color' is only available in macOS 10.15 or newer
44 | Text(String(date.day))
45 | .fontWeight(.medium)
46 | .foregroundStyle(Color.gray)
| |- error: 'Color' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
47 | .frame(height: 60, alignment: .top)
48 | }
/Users/admin/builder/spi-builder-workspace/Sources/CalendarKit/View/CalendarContent.swift:46:36: error: 'gray' is only available in macOS 10.15 or newer
44 | Text(String(date.day))
45 | .fontWeight(.medium)
46 | .foregroundStyle(Color.gray)
| |- error: 'gray' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
47 | .frame(height: 60, alignment: .top)
48 | }
/Users/admin/builder/spi-builder-workspace/Sources/CalendarKit/View/CalendarContent.swift:47:14: error: 'frame(width:height:alignment:)' is only available in macOS 10.15 or newer
45 | .fontWeight(.medium)
46 | .foregroundStyle(Color.gray)
47 | .frame(height: 60, alignment: .top)
| |- error: 'frame(width:height:alignment:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
48 | }
49 | }
/Users/admin/builder/spi-builder-workspace/Sources/CalendarKit/View/CalendarContent.swift:47:44: error: 'top' is only available in macOS 10.15 or newer
45 | .fontWeight(.medium)
46 | .foregroundStyle(Color.gray)
47 | .frame(height: 60, alignment: .top)
| |- error: 'top' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
48 | }
49 | }
/Users/admin/builder/spi-builder-workspace/Sources/CalendarKit/View/CalendarHeader.swift:19:9: warning: conformance of 'ForEach<Data, ID, Content>' to 'View' is only available in macOS 10.15 or newer; this is an error in the Swift 6 language mode
8 | import SwiftUI
9 |
10 | public struct CalendarHeader<Content: View>: View {
| `- note: add @available attribute to enclosing generic struct
11 |
12 | let cellBuilder: (WeekDay) -> Content
:
16 | }
17 |
18 | public var body: some View {
| `- note: add @available attribute to enclosing property
19 | LazyVGrid(columns: .init(repeating: .init(), count: 7), content: {
| |- warning: conformance of 'ForEach<Data, ID, Content>' to 'View' is only available in macOS 10.15 or newer; this is an error in the Swift 6 language mode
| `- note: add 'if #available' version check
20 | ForEach(WeekDay.allCases, id: \.self) { weekday in
21 | cellBuilder(weekday)
/Users/admin/builder/spi-builder-workspace/Sources/CalendarKit/View/CalendarHeader.swift:19:9: error: 'LazyVGrid' is only available in macOS 11.0 or newer
8 | import SwiftUI
9 |
10 | public struct CalendarHeader<Content: View>: View {
| `- note: add @available attribute to enclosing generic struct
11 |
12 | let cellBuilder: (WeekDay) -> Content
:
16 | }
17 |
18 | public var body: some View {
| `- note: add @available attribute to enclosing property
19 | LazyVGrid(columns: .init(repeating: .init(), count: 7), content: {
| |- error: 'LazyVGrid' is only available in macOS 11.0 or newer
| `- note: add 'if #available' version check
20 | ForEach(WeekDay.allCases, id: \.self) { weekday in
21 | cellBuilder(weekday)
/Users/admin/builder/spi-builder-workspace/Sources/CalendarKit/View/CalendarHeader.swift:19:9: warning: conformance of 'ForEach<Data, ID, Content>' to 'View' is only available in macOS 10.15 or newer; this is an error in the Swift 6 language mode
8 | import SwiftUI
9 |
10 | public struct CalendarHeader<Content: View>: View {
| `- note: add @available attribute to enclosing generic struct
11 |
12 | let cellBuilder: (WeekDay) -> Content
:
16 | }
17 |
18 | public var body: some View {
| `- note: add @available attribute to enclosing property
19 | LazyVGrid(columns: .init(repeating: .init(), count: 7), content: {
| |- warning: conformance of 'ForEach<Data, ID, Content>' to 'View' is only available in macOS 10.15 or newer; this is an error in the Swift 6 language mode
| `- note: add 'if #available' version check
20 | ForEach(WeekDay.allCases, id: \.self) { weekday in
21 | cellBuilder(weekday)
/Users/admin/builder/spi-builder-workspace/Sources/CalendarKit/View/CalendarHeader.swift:20:13: warning: conformance of 'ForEach<Data, ID, Content>' to 'View' is only available in macOS 10.15 or newer; this is an error in the Swift 6 language mode
8 | import SwiftUI
9 |
10 | public struct CalendarHeader<Content: View>: View {
| `- note: add @available attribute to enclosing generic struct
11 |
12 | let cellBuilder: (WeekDay) -> Content
:
16 | }
17 |
18 | public var body: some View {
| `- note: add @available attribute to enclosing property
19 | LazyVGrid(columns: .init(repeating: .init(), count: 7), content: {
20 | ForEach(WeekDay.allCases, id: \.self) { weekday in
| |- warning: conformance of 'ForEach<Data, ID, Content>' to 'View' is only available in macOS 10.15 or newer; this is an error in the Swift 6 language mode
| `- note: add 'if #available' version check
21 | cellBuilder(weekday)
22 | }
/Users/admin/builder/spi-builder-workspace/Sources/CalendarKit/View/CalendarHeader.swift:20:13: error: 'ForEach' is only available in macOS 10.15 or newer
8 | import SwiftUI
9 |
10 | public struct CalendarHeader<Content: View>: View {
| `- note: add @available attribute to enclosing generic struct
11 |
12 | let cellBuilder: (WeekDay) -> Content
:
16 | }
17 |
18 | public var body: some View {
| `- note: add @available attribute to enclosing property
19 | LazyVGrid(columns: .init(repeating: .init(), count: 7), content: {
20 | ForEach(WeekDay.allCases, id: \.self) { weekday in
| |- error: 'ForEach' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
21 | cellBuilder(weekday)
22 | }
/Users/admin/builder/spi-builder-workspace/Sources/CalendarKit/View/CalendarHeader.swift:20:13: error: 'init(_:id:content:)' is only available in macOS 10.15 or newer
8 | import SwiftUI
9 |
10 | public struct CalendarHeader<Content: View>: View {
| `- note: add @available attribute to enclosing generic struct
11 |
12 | let cellBuilder: (WeekDay) -> Content
:
16 | }
17 |
18 | public var body: some View {
| `- note: add @available attribute to enclosing property
19 | LazyVGrid(columns: .init(repeating: .init(), count: 7), content: {
20 | ForEach(WeekDay.allCases, id: \.self) { weekday in
| |- error: 'init(_:id:content:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
21 | cellBuilder(weekday)
22 | }
/Users/admin/builder/spi-builder-workspace/Sources/CalendarKit/View/CalendarHeader.swift:19:74: warning: conformance of 'ForEach<Data, ID, Content>' to 'View' is only available in macOS 10.15 or newer; this is an error in the Swift 6 language mode
8 | import SwiftUI
9 |
10 | public struct CalendarHeader<Content: View>: View {
| `- note: add @available attribute to enclosing generic struct
11 |
12 | let cellBuilder: (WeekDay) -> Content
:
16 | }
17 |
18 | public var body: some View {
| `- note: add @available attribute to enclosing property
19 | LazyVGrid(columns: .init(repeating: .init(), count: 7), content: {
| |- warning: conformance of 'ForEach<Data, ID, Content>' to 'View' is only available in macOS 10.15 or newer; this is an error in the Swift 6 language mode
| `- note: add 'if #available' version check
20 | ForEach(WeekDay.allCases, id: \.self) { weekday in
21 | cellBuilder(weekday)
/Users/admin/builder/spi-builder-workspace/Sources/CalendarKit/View/CalendarHeader.swift:18:32: warning: conformance of 'ForEach<Data, ID, Content>' to 'View' is only available in macOS 10.15 or newer; this is an error in the Swift 6 language mode
8 | import SwiftUI
9 |
10 | public struct CalendarHeader<Content: View>: View {
| `- note: add @available attribute to enclosing generic struct
11 |
12 | let cellBuilder: (WeekDay) -> Content
:
16 | }
17 |
18 | public var body: some View {
| | |- warning: conformance of 'ForEach<Data, ID, Content>' to 'View' is only available in macOS 10.15 or newer; this is an error in the Swift 6 language mode
| | `- note: add 'if #available' version check
| `- note: add @available attribute to enclosing property
19 | LazyVGrid(columns: .init(repeating: .init(), count: 7), content: {
20 | ForEach(WeekDay.allCases, id: \.self) { weekday in
/Users/admin/builder/spi-builder-workspace/Sources/CalendarKit/View/CalendarHeader.swift:18:32: warning: conformance of 'ForEach<Data, ID, Content>' to 'View' is only available in macOS 10.15 or newer; this is an error in the Swift 6 language mode
8 | import SwiftUI
9 |
10 | public struct CalendarHeader<Content: View>: View {
| `- note: add @available attribute to enclosing generic struct
11 |
12 | let cellBuilder: (WeekDay) -> Content
:
16 | }
17 |
18 | public var body: some View {
| | |- warning: conformance of 'ForEach<Data, ID, Content>' to 'View' is only available in macOS 10.15 or newer; this is an error in the Swift 6 language mode
| | `- note: add 'if #available' version check
| `- note: add @available attribute to enclosing property
19 | LazyVGrid(columns: .init(repeating: .init(), count: 7), content: {
20 | ForEach(WeekDay.allCases, id: \.self) { weekday in
Running build ...
env DEVELOPER_DIR=/Applications/Xcode-16.3.0.app xcrun swift build --arch arm64
[0/1] Planning build
Building for debugging...
[0/1] Write swift-version-2F0A5646E1D333AE.txt
[2/13] Compiling CalendarKit GetMonthOffsetUseCase.swift
[3/14] Compiling CalendarKit GetMonthOffsetArrayUseCase.swift
error: emit-module command failed with exit code 1 (use -v to see invocation)
[4/14] Compiling CalendarKit GetYearArrayUseCase.swift
[5/14] Compiling CalendarKit GetDateRangeUseCase.swift
[6/14] Compiling CalendarKit GetDateComponentListByMonthOffsetUseCase.swift
[7/14] Compiling CalendarKit WeekDay.swift
[8/14] Compiling CalendarKit Int+.swift
[9/14] Emitting module CalendarKit
/Users/admin/builder/spi-builder-workspace/Sources/CalendarKit/Entity/DateComponent.swift:98:34: error: 'now' is only available in macOS 12 or newer
88 | }
89 |
90 | extension DateComponent: Equatable {
| `- note: add @available attribute to enclosing extension
91 |
92 | public static func == (lhs: Self, rhs: Self) -> Bool {
:
96 | }
97 |
98 | public static let now = Date.now.mapToComponent
| | `- error: 'now' is only available in macOS 12 or newer
| `- note: add @available attribute to enclosing static property
99 | }
100 |
/Users/admin/builder/spi-builder-workspace/Sources/CalendarKit/View/CalendarContent.swift:15:6: error: 'State' is only available in macOS 10.15 or newer
8 | import SwiftUI
9 |
10 | public struct CalendarContent<Content: View>: View {
| `- note: add @available attribute to enclosing generic struct
11 |
12 | let offset: Int
13 | let vSpacing: CGFloat
14 | let cellBuilder: (DateComponent) -> Content
15 | @State var dates: [DateComponent] = []
| `- error: 'State' is only available in macOS 10.15 or newer
16 |
17 | private let getDates = GetDateComponentListByMonthOffsetUseCase()
/Users/admin/builder/spi-builder-workspace/Sources/CalendarKit/View/CalendarContent.swift:22:10: error: 'ViewBuilder' is only available in macOS 10.15 or newer
8 | import SwiftUI
9 |
10 | public struct CalendarContent<Content: View>: View {
| `- note: add @available attribute to enclosing generic struct
11 |
12 | let offset: Int
:
17 | private let getDates = GetDateComponentListByMonthOffsetUseCase()
18 |
19 | public init(
| `- note: add @available attribute to enclosing initializer
20 | offset: Int,
21 | vSpacing: CGFloat = 12,
22 | @ViewBuilder _ cellBuilder: @escaping (DateComponent) -> Content
| `- error: 'ViewBuilder' is only available in macOS 10.15 or newer
23 | ) {
24 | self.offset = offset
/Users/admin/builder/spi-builder-workspace/Sources/CalendarKit/View/CalendarContent.swift:29:27: error: 'View' is only available in macOS 10.15 or newer
8 | import SwiftUI
9 |
10 | public struct CalendarContent<Content: View>: View {
| `- note: add @available attribute to enclosing generic struct
11 |
12 | let offset: Int
:
27 | }
28 |
29 | public var body: some View {
| | `- error: 'View' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing property
30 | LazyVGrid(columns: .init(repeating: .init(), count: 7), spacing: vSpacing) {
31 | ForEach(self.dates, id: \.id) { date in
/Users/admin/builder/spi-builder-workspace/Sources/CalendarKit/View/CalendarContent.swift:10:40: error: 'View' is only available in macOS 10.15 or newer
8 | import SwiftUI
9 |
10 | public struct CalendarContent<Content: View>: View {
| | `- error: 'View' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing generic struct
11 |
12 | let offset: Int
/Users/admin/builder/spi-builder-workspace/Sources/CalendarKit/View/CalendarContent.swift:42:2: error: 'Preview(_:body:)' is only available in macOS 10.15 or newer
40 | }
41 |
42 | #Preview {
| `- error: 'Preview(_:body:)' is only available in macOS 10.15 or newer
43 | CalendarContent(offset: 0) { date in
44 | Text(String(date.day))
/Users/admin/builder/spi-builder-workspace/Sources/CalendarKit/View/CalendarContent.swift:44:9: error: 'Text' is only available in macOS 10.15 or newer
42 | #Preview {
43 | CalendarContent(offset: 0) { date in
44 | Text(String(date.day))
| |- error: 'Text' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
45 | .fontWeight(.medium)
46 | .foregroundStyle(Color.gray)
/Users/admin/builder/spi-builder-workspace/Sources/CalendarKit/View/CalendarContent.swift:45:14: error: 'fontWeight' is only available in macOS 10.15 or newer
43 | CalendarContent(offset: 0) { date in
44 | Text(String(date.day))
45 | .fontWeight(.medium)
| |- error: 'fontWeight' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
46 | .foregroundStyle(Color.gray)
47 | .frame(height: 60, alignment: .top)
/Users/admin/builder/spi-builder-workspace/Sources/CalendarKit/View/CalendarContent.swift:46:14: error: 'foregroundStyle' is only available in macOS 14.0 or newer
44 | Text(String(date.day))
45 | .fontWeight(.medium)
46 | .foregroundStyle(Color.gray)
| |- error: 'foregroundStyle' is only available in macOS 14.0 or newer
| `- note: add 'if #available' version check
47 | .frame(height: 60, alignment: .top)
48 | }
/Users/admin/builder/spi-builder-workspace/Sources/CalendarKit/View/CalendarContent.swift:46:30: error: 'Color' is only available in macOS 10.15 or newer
44 | Text(String(date.day))
45 | .fontWeight(.medium)
46 | .foregroundStyle(Color.gray)
| |- error: 'Color' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
47 | .frame(height: 60, alignment: .top)
48 | }
/Users/admin/builder/spi-builder-workspace/Sources/CalendarKit/View/CalendarContent.swift:46:36: error: 'gray' is only available in macOS 10.15 or newer
44 | Text(String(date.day))
45 | .fontWeight(.medium)
46 | .foregroundStyle(Color.gray)
| |- error: 'gray' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
47 | .frame(height: 60, alignment: .top)
48 | }
/Users/admin/builder/spi-builder-workspace/Sources/CalendarKit/View/CalendarContent.swift:47:14: error: 'frame(width:height:alignment:)' is only available in macOS 10.15 or newer
45 | .fontWeight(.medium)
46 | .foregroundStyle(Color.gray)
47 | .frame(height: 60, alignment: .top)
| |- error: 'frame(width:height:alignment:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
48 | }
49 | }
/Users/admin/builder/spi-builder-workspace/Sources/CalendarKit/View/CalendarContent.swift:47:44: error: 'top' is only available in macOS 10.15 or newer
45 | .fontWeight(.medium)
46 | .foregroundStyle(Color.gray)
47 | .frame(height: 60, alignment: .top)
| |- error: 'top' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
48 | }
49 | }
/Users/admin/builder/spi-builder-workspace/Sources/CalendarKit/View/CalendarHeader.swift:27:2: error: 'Preview(_:body:)' is only available in macOS 10.15 or newer
25 | }
26 |
27 | #Preview {
| `- error: 'Preview(_:body:)' is only available in macOS 10.15 or newer
28 | CalendarHeader {
29 | Text($0.korean)
/Users/admin/builder/spi-builder-workspace/Sources/CalendarKit/View/CalendarHeader.swift:28:5: warning: conformance of 'Text' to 'View' is only available in macOS 10.15 or newer; this is an error in the Swift 6 language mode
26 |
27 | #Preview {
28 | CalendarHeader {
| |- warning: conformance of 'Text' to 'View' is only available in macOS 10.15 or newer; this is an error in the Swift 6 language mode
| `- note: add 'if #available' version check
29 | Text($0.korean)
30 | .fontWeight(.medium)
/Users/admin/builder/spi-builder-workspace/Sources/CalendarKit/View/CalendarHeader.swift:28:5: warning: conformance of 'Text' to 'View' is only available in macOS 10.15 or newer; this is an error in the Swift 6 language mode
26 |
27 | #Preview {
28 | CalendarHeader {
| |- warning: conformance of 'Text' to 'View' is only available in macOS 10.15 or newer; this is an error in the Swift 6 language mode
| `- note: add 'if #available' version check
29 | Text($0.korean)
30 | .fontWeight(.medium)
/Users/admin/builder/spi-builder-workspace/Sources/CalendarKit/View/CalendarHeader.swift:28:5: warning: conformance of 'Text' to 'View' is only available in macOS 10.15 or newer; this is an error in the Swift 6 language mode
26 |
27 | #Preview {
28 | CalendarHeader {
| |- warning: conformance of 'Text' to 'View' is only available in macOS 10.15 or newer; this is an error in the Swift 6 language mode
| `- note: add 'if #available' version check
29 | Text($0.korean)
30 | .fontWeight(.medium)
/Users/admin/builder/spi-builder-workspace/Sources/CalendarKit/View/CalendarHeader.swift:29:9: warning: conformance of 'Text' to 'View' is only available in macOS 10.15 or newer; this is an error in the Swift 6 language mode
27 | #Preview {
28 | CalendarHeader {
29 | Text($0.korean)
| |- warning: conformance of 'Text' to 'View' is only available in macOS 10.15 or newer; this is an error in the Swift 6 language mode
| `- note: add 'if #available' version check
30 | .fontWeight(.medium)
31 | }
/Users/admin/builder/spi-builder-workspace/Sources/CalendarKit/View/CalendarHeader.swift:29:9: error: 'Text' is only available in macOS 10.15 or newer
27 | #Preview {
28 | CalendarHeader {
29 | Text($0.korean)
| |- error: 'Text' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
30 | .fontWeight(.medium)
31 | }
/Users/admin/builder/spi-builder-workspace/Sources/CalendarKit/View/CalendarHeader.swift:30:14: error: 'fontWeight' is only available in macOS 10.15 or newer
28 | CalendarHeader {
29 | Text($0.korean)
30 | .fontWeight(.medium)
| |- error: 'fontWeight' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
31 | }
32 | }
/Users/admin/builder/spi-builder-workspace/Sources/CalendarKit/View/CalendarHeader.swift:28:20: warning: conformance of 'Text' to 'View' is only available in macOS 10.15 or newer; this is an error in the Swift 6 language mode
26 |
27 | #Preview {
28 | CalendarHeader {
| |- warning: conformance of 'Text' to 'View' is only available in macOS 10.15 or newer; this is an error in the Swift 6 language mode
| `- note: add 'if #available' version check
29 | Text($0.korean)
30 | .fontWeight(.medium)
/Users/admin/builder/spi-builder-workspace/Sources/CalendarKit/View/CalendarHeader.swift:27:10: warning: conformance of 'Text' to 'View' is only available in macOS 10.15 or newer; this is an error in the Swift 6 language mode
25 | }
26 |
27 | #Preview {
| |- warning: conformance of 'Text' to 'View' is only available in macOS 10.15 or newer; this is an error in the Swift 6 language mode
| `- note: add 'if #available' version check
28 | CalendarHeader {
29 | Text($0.korean)
/Users/admin/builder/spi-builder-workspace/Sources/CalendarKit/View/CalendarHeader.swift:27:10: warning: conformance of 'Text' to 'View' is only available in macOS 10.15 or newer; this is an error in the Swift 6 language mode
25 | }
26 |
27 | #Preview {
| |- warning: conformance of 'Text' to 'View' is only available in macOS 10.15 or newer; this is an error in the Swift 6 language mode
| `- note: add 'if #available' version check
28 | CalendarHeader {
29 | Text($0.korean)
/Users/admin/builder/spi-builder-workspace/Sources/CalendarKit/View/CalendarHeader.swift:14:18: error: 'ViewBuilder' is only available in macOS 10.15 or newer
8 | import SwiftUI
9 |
10 | public struct CalendarHeader<Content: View>: View {
| `- note: add @available attribute to enclosing generic struct
11 |
12 | let cellBuilder: (WeekDay) -> Content
13 |
14 | public init(@ViewBuilder cellBuilder: @escaping (WeekDay) -> Content) {
| | `- error: 'ViewBuilder' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing initializer
15 | self.cellBuilder = cellBuilder
16 | }
/Users/admin/builder/spi-builder-workspace/Sources/CalendarKit/View/CalendarHeader.swift:18:27: error: 'View' is only available in macOS 10.15 or newer
8 | import SwiftUI
9 |
10 | public struct CalendarHeader<Content: View>: View {
| `- note: add @available attribute to enclosing generic struct
11 |
12 | let cellBuilder: (WeekDay) -> Content
:
16 | }
17 |
18 | public var body: some View {
| | `- error: 'View' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing property
19 | LazyVGrid(columns: .init(repeating: .init(), count: 7), content: {
20 | ForEach(WeekDay.allCases, id: \.self) { weekday in
/Users/admin/builder/spi-builder-workspace/Sources/CalendarKit/View/CalendarHeader.swift:10:39: error: 'View' is only available in macOS 10.15 or newer
8 | import SwiftUI
9 |
10 | public struct CalendarHeader<Content: View>: View {
| | `- error: 'View' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing generic struct
11 |
12 | let cellBuilder: (WeekDay) -> Content
[10/14] Compiling CalendarKit GetComponentFromOffsetUseCase.swift
/Users/admin/builder/spi-builder-workspace/Sources/CalendarKit/UseCase/GetComponentFromOffsetUseCase.swift:25:33: error: 'now' is only available in macOS 12 or newer
8 | import Foundation
9 |
10 | public struct GetComponentFromOffsetUseCase {
| `- note: add @available attribute to enclosing struct
11 |
12 | private let calendar = Calendar.current
:
15 | public init() { }
16 |
17 | public func execute(_ offset: Int) -> DateComponent {
| `- note: add @available attribute to enclosing instance method
18 | guard
19 | let adjustedDate = calendar.date(
:
23 | )
24 | else {
25 | return .init(from: .now)
| |- error: 'now' is only available in macOS 12 or newer
| `- note: add 'if #available' version check
26 | }
27 | return adjustedDate.mapToComponent
[11/14] Compiling CalendarKit CalendarContent.swift
/Users/admin/builder/spi-builder-workspace/Sources/CalendarKit/View/CalendarContent.swift:15:6: error: 'State' is only available in macOS 10.15 or newer
8 | import SwiftUI
9 |
10 | public struct CalendarContent<Content: View>: View {
| `- note: add @available attribute to enclosing generic struct
11 |
12 | let offset: Int
13 | let vSpacing: CGFloat
14 | let cellBuilder: (DateComponent) -> Content
15 | @State var dates: [DateComponent] = []
| `- error: 'State' is only available in macOS 10.15 or newer
16 |
17 | private let getDates = GetDateComponentListByMonthOffsetUseCase()
/Users/admin/builder/spi-builder-workspace/Sources/CalendarKit/View/CalendarContent.swift:22:10: error: 'ViewBuilder' is only available in macOS 10.15 or newer
8 | import SwiftUI
9 |
10 | public struct CalendarContent<Content: View>: View {
| `- note: add @available attribute to enclosing generic struct
11 |
12 | let offset: Int
:
17 | private let getDates = GetDateComponentListByMonthOffsetUseCase()
18 |
19 | public init(
| `- note: add @available attribute to enclosing initializer
20 | offset: Int,
21 | vSpacing: CGFloat = 12,
22 | @ViewBuilder _ cellBuilder: @escaping (DateComponent) -> Content
| `- error: 'ViewBuilder' is only available in macOS 10.15 or newer
23 | ) {
24 | self.offset = offset
/Users/admin/builder/spi-builder-workspace/Sources/CalendarKit/View/CalendarContent.swift:29:27: error: 'View' is only available in macOS 10.15 or newer
8 | import SwiftUI
9 |
10 | public struct CalendarContent<Content: View>: View {
| `- note: add @available attribute to enclosing generic struct
11 |
12 | let offset: Int
:
27 | }
28 |
29 | public var body: some View {
| | `- error: 'View' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing property
30 | LazyVGrid(columns: .init(repeating: .init(), count: 7), spacing: vSpacing) {
31 | ForEach(self.dates, id: \.id) { date in
/Users/admin/builder/spi-builder-workspace/Sources/CalendarKit/View/CalendarContent.swift:10:40: error: 'View' is only available in macOS 10.15 or newer
8 | import SwiftUI
9 |
10 | public struct CalendarContent<Content: View>: View {
| | `- error: 'View' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing generic struct
11 |
12 | let offset: Int
/Users/admin/builder/spi-builder-workspace/Sources/CalendarKit/View/CalendarContent.swift:42:2: error: 'Preview(_:body:)' is only available in macOS 10.15 or newer
40 | }
41 |
42 | #Preview {
| `- error: 'Preview(_:body:)' is only available in macOS 10.15 or newer
43 | CalendarContent(offset: 0) { date in
44 | Text(String(date.day))
/Users/admin/builder/spi-builder-workspace/Sources/CalendarKit/View/CalendarContent.swift:44:9: error: 'Text' is only available in macOS 10.15 or newer
42 | #Preview {
43 | CalendarContent(offset: 0) { date in
44 | Text(String(date.day))
| |- error: 'Text' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
45 | .fontWeight(.medium)
46 | .foregroundStyle(Color.gray)
/Users/admin/builder/spi-builder-workspace/Sources/CalendarKit/View/CalendarContent.swift:45:14: error: 'fontWeight' is only available in macOS 10.15 or newer
43 | CalendarContent(offset: 0) { date in
44 | Text(String(date.day))
45 | .fontWeight(.medium)
| |- error: 'fontWeight' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
46 | .foregroundStyle(Color.gray)
47 | .frame(height: 60, alignment: .top)
/Users/admin/builder/spi-builder-workspace/Sources/CalendarKit/View/CalendarContent.swift:46:14: error: 'foregroundStyle' is only available in macOS 14.0 or newer
44 | Text(String(date.day))
45 | .fontWeight(.medium)
46 | .foregroundStyle(Color.gray)
| |- error: 'foregroundStyle' is only available in macOS 14.0 or newer
| `- note: add 'if #available' version check
47 | .frame(height: 60, alignment: .top)
48 | }
/Users/admin/builder/spi-builder-workspace/Sources/CalendarKit/View/CalendarContent.swift:46:30: error: 'Color' is only available in macOS 10.15 or newer
44 | Text(String(date.day))
45 | .fontWeight(.medium)
46 | .foregroundStyle(Color.gray)
| |- error: 'Color' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
47 | .frame(height: 60, alignment: .top)
48 | }
/Users/admin/builder/spi-builder-workspace/Sources/CalendarKit/View/CalendarContent.swift:46:36: error: 'gray' is only available in macOS 10.15 or newer
44 | Text(String(date.day))
45 | .fontWeight(.medium)
46 | .foregroundStyle(Color.gray)
| |- error: 'gray' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
47 | .frame(height: 60, alignment: .top)
48 | }
/Users/admin/builder/spi-builder-workspace/Sources/CalendarKit/View/CalendarContent.swift:47:14: error: 'frame(width:height:alignment:)' is only available in macOS 10.15 or newer
45 | .fontWeight(.medium)
46 | .foregroundStyle(Color.gray)
47 | .frame(height: 60, alignment: .top)
| |- error: 'frame(width:height:alignment:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
48 | }
49 | }
/Users/admin/builder/spi-builder-workspace/Sources/CalendarKit/View/CalendarContent.swift:47:44: error: 'top' is only available in macOS 10.15 or newer
45 | .fontWeight(.medium)
46 | .foregroundStyle(Color.gray)
47 | .frame(height: 60, alignment: .top)
| |- error: 'top' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
48 | }
49 | }
/Users/admin/builder/spi-builder-workspace/Sources/CalendarKit/View/CalendarHeader.swift:27:2: error: 'Preview(_:body:)' is only available in macOS 10.15 or newer
25 | }
26 |
27 | #Preview {
| `- error: 'Preview(_:body:)' is only available in macOS 10.15 or newer
28 | CalendarHeader {
29 | Text($0.korean)
/Users/admin/builder/spi-builder-workspace/Sources/CalendarKit/View/CalendarHeader.swift:28:5: warning: conformance of 'Text' to 'View' is only available in macOS 10.15 or newer; this is an error in the Swift 6 language mode
26 |
27 | #Preview {
28 | CalendarHeader {
| |- warning: conformance of 'Text' to 'View' is only available in macOS 10.15 or newer; this is an error in the Swift 6 language mode
| `- note: add 'if #available' version check
29 | Text($0.korean)
30 | .fontWeight(.medium)
/Users/admin/builder/spi-builder-workspace/Sources/CalendarKit/View/CalendarHeader.swift:28:5: warning: conformance of 'Text' to 'View' is only available in macOS 10.15 or newer; this is an error in the Swift 6 language mode
26 |
27 | #Preview {
28 | CalendarHeader {
| |- warning: conformance of 'Text' to 'View' is only available in macOS 10.15 or newer; this is an error in the Swift 6 language mode
| `- note: add 'if #available' version check
29 | Text($0.korean)
30 | .fontWeight(.medium)
/Users/admin/builder/spi-builder-workspace/Sources/CalendarKit/View/CalendarHeader.swift:28:5: warning: conformance of 'Text' to 'View' is only available in macOS 10.15 or newer; this is an error in the Swift 6 language mode
26 |
27 | #Preview {
28 | CalendarHeader {
| |- warning: conformance of 'Text' to 'View' is only available in macOS 10.15 or newer; this is an error in the Swift 6 language mode
| `- note: add 'if #available' version check
29 | Text($0.korean)
30 | .fontWeight(.medium)
/Users/admin/builder/spi-builder-workspace/Sources/CalendarKit/View/CalendarHeader.swift:29:9: warning: conformance of 'Text' to 'View' is only available in macOS 10.15 or newer; this is an error in the Swift 6 language mode
27 | #Preview {
28 | CalendarHeader {
29 | Text($0.korean)
| |- warning: conformance of 'Text' to 'View' is only available in macOS 10.15 or newer; this is an error in the Swift 6 language mode
| `- note: add 'if #available' version check
30 | .fontWeight(.medium)
31 | }
/Users/admin/builder/spi-builder-workspace/Sources/CalendarKit/View/CalendarHeader.swift:29:9: error: 'Text' is only available in macOS 10.15 or newer
27 | #Preview {
28 | CalendarHeader {
29 | Text($0.korean)
| |- error: 'Text' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
30 | .fontWeight(.medium)
31 | }
/Users/admin/builder/spi-builder-workspace/Sources/CalendarKit/View/CalendarHeader.swift:30:14: error: 'fontWeight' is only available in macOS 10.15 or newer
28 | CalendarHeader {
29 | Text($0.korean)
30 | .fontWeight(.medium)
| |- error: 'fontWeight' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
31 | }
32 | }
/Users/admin/builder/spi-builder-workspace/Sources/CalendarKit/View/CalendarHeader.swift:28:20: warning: conformance of 'Text' to 'View' is only available in macOS 10.15 or newer; this is an error in the Swift 6 language mode
26 |
27 | #Preview {
28 | CalendarHeader {
| |- warning: conformance of 'Text' to 'View' is only available in macOS 10.15 or newer; this is an error in the Swift 6 language mode
| `- note: add 'if #available' version check
29 | Text($0.korean)
30 | .fontWeight(.medium)
/Users/admin/builder/spi-builder-workspace/Sources/CalendarKit/View/CalendarHeader.swift:27:10: warning: conformance of 'Text' to 'View' is only available in macOS 10.15 or newer; this is an error in the Swift 6 language mode
25 | }
26 |
27 | #Preview {
| |- warning: conformance of 'Text' to 'View' is only available in macOS 10.15 or newer; this is an error in the Swift 6 language mode
| `- note: add 'if #available' version check
28 | CalendarHeader {
29 | Text($0.korean)
/Users/admin/builder/spi-builder-workspace/Sources/CalendarKit/View/CalendarHeader.swift:27:10: warning: conformance of 'Text' to 'View' is only available in macOS 10.15 or newer; this is an error in the Swift 6 language mode
25 | }
26 |
27 | #Preview {
| |- warning: conformance of 'Text' to 'View' is only available in macOS 10.15 or newer; this is an error in the Swift 6 language mode
| `- note: add 'if #available' version check
28 | CalendarHeader {
29 | Text($0.korean)
/Users/admin/builder/spi-builder-workspace/Sources/CalendarKit/View/CalendarContent.swift:30:9: error: 'LazyVGrid' is only available in macOS 11.0 or newer
8 | import SwiftUI
9 |
10 | public struct CalendarContent<Content: View>: View {
| `- note: add @available attribute to enclosing generic struct
11 |
12 | let offset: Int
:
27 | }
28 |
29 | public var body: some View {
| `- note: add @available attribute to enclosing property
30 | LazyVGrid(columns: .init(repeating: .init(), count: 7), spacing: vSpacing) {
| |- error: 'LazyVGrid' is only available in macOS 11.0 or newer
| `- note: add 'if #available' version check
31 | ForEach(self.dates, id: \.id) { date in
32 | cellBuilder(date)
/Users/admin/builder/spi-builder-workspace/Sources/CalendarKit/View/CalendarContent.swift:30:9: warning: conformance of 'ForEach<Data, ID, Content>' to 'View' is only available in macOS 10.15 or newer; this is an error in the Swift 6 language mode
8 | import SwiftUI
9 |
10 | public struct CalendarContent<Content: View>: View {
| `- note: add @available attribute to enclosing generic struct
11 |
12 | let offset: Int
:
27 | }
28 |
29 | public var body: some View {
| `- note: add @available attribute to enclosing property
30 | LazyVGrid(columns: .init(repeating: .init(), count: 7), spacing: vSpacing) {
| |- warning: conformance of 'ForEach<Data, ID, Content>' to 'View' is only available in macOS 10.15 or newer; this is an error in the Swift 6 language mode
| `- note: add 'if #available' version check
31 | ForEach(self.dates, id: \.id) { date in
32 | cellBuilder(date)
/Users/admin/builder/spi-builder-workspace/Sources/CalendarKit/View/CalendarContent.swift:31:13: warning: conformance of 'ForEach<Data, ID, Content>' to 'View' is only available in macOS 10.15 or newer; this is an error in the Swift 6 language mode
8 | import SwiftUI
9 |
10 | public struct CalendarContent<Content: View>: View {
| `- note: add @available attribute to enclosing generic struct
11 |
12 | let offset: Int
:
27 | }
28 |
29 | public var body: some View {
| `- note: add @available attribute to enclosing property
30 | LazyVGrid(columns: .init(repeating: .init(), count: 7), spacing: vSpacing) {
31 | ForEach(self.dates, id: \.id) { date in
| |- warning: conformance of 'ForEach<Data, ID, Content>' to 'View' is only available in macOS 10.15 or newer; this is an error in the Swift 6 language mode
| `- note: add 'if #available' version check
32 | cellBuilder(date)
33 | }
/Users/admin/builder/spi-builder-workspace/Sources/CalendarKit/View/CalendarContent.swift:31:13: error: 'ForEach' is only available in macOS 10.15 or newer
8 | import SwiftUI
9 |
10 | public struct CalendarContent<Content: View>: View {
| `- note: add @available attribute to enclosing generic struct
11 |
12 | let offset: Int
:
27 | }
28 |
29 | public var body: some View {
| `- note: add @available attribute to enclosing property
30 | LazyVGrid(columns: .init(repeating: .init(), count: 7), spacing: vSpacing) {
31 | ForEach(self.dates, id: \.id) { date in
| |- error: 'ForEach' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
32 | cellBuilder(date)
33 | }
/Users/admin/builder/spi-builder-workspace/Sources/CalendarKit/View/CalendarContent.swift:31:13: error: 'init(_:id:content:)' is only available in macOS 10.15 or newer
8 | import SwiftUI
9 |
10 | public struct CalendarContent<Content: View>: View {
| `- note: add @available attribute to enclosing generic struct
11 |
12 | let offset: Int
:
27 | }
28 |
29 | public var body: some View {
| `- note: add @available attribute to enclosing property
30 | LazyVGrid(columns: .init(repeating: .init(), count: 7), spacing: vSpacing) {
31 | ForEach(self.dates, id: \.id) { date in
| |- error: 'init(_:id:content:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
32 | cellBuilder(date)
33 | }
/Users/admin/builder/spi-builder-workspace/Sources/CalendarKit/View/CalendarContent.swift:30:84: warning: conformance of 'ForEach<Data, ID, Content>' to 'View' is only available in macOS 10.15 or newer; this is an error in the Swift 6 language mode
8 | import SwiftUI
9 |
10 | public struct CalendarContent<Content: View>: View {
| `- note: add @available attribute to enclosing generic struct
11 |
12 | let offset: Int
:
27 | }
28 |
29 | public var body: some View {
| `- note: add @available attribute to enclosing property
30 | LazyVGrid(columns: .init(repeating: .init(), count: 7), spacing: vSpacing) {
| |- warning: conformance of 'ForEach<Data, ID, Content>' to 'View' is only available in macOS 10.15 or newer; this is an error in the Swift 6 language mode
| `- note: add 'if #available' version check
31 | ForEach(self.dates, id: \.id) { date in
32 | cellBuilder(date)
/Users/admin/builder/spi-builder-workspace/Sources/CalendarKit/View/CalendarContent.swift:35:10: error: 'frame(width:height:alignment:)' is only available in macOS 10.15 or newer
8 | import SwiftUI
9 |
10 | public struct CalendarContent<Content: View>: View {
| `- note: add @available attribute to enclosing generic struct
11 |
12 | let offset: Int
:
27 | }
28 |
29 | public var body: some View {
| `- note: add @available attribute to enclosing property
30 | LazyVGrid(columns: .init(repeating: .init(), count: 7), spacing: vSpacing) {
31 | ForEach(self.dates, id: \.id) { date in
:
33 | }
34 | }
35 | .frame(alignment: .top)
| |- error: 'frame(width:height:alignment:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
36 | .onAppear {
37 | self.dates = self.getDates.exeute(self.offset)
/Users/admin/builder/spi-builder-workspace/Sources/CalendarKit/View/CalendarContent.swift:35:28: error: 'top' is only available in macOS 10.15 or newer
8 | import SwiftUI
9 |
10 | public struct CalendarContent<Content: View>: View {
| `- note: add @available attribute to enclosing generic struct
11 |
12 | let offset: Int
:
27 | }
28 |
29 | public var body: some View {
| `- note: add @available attribute to enclosing property
30 | LazyVGrid(columns: .init(repeating: .init(), count: 7), spacing: vSpacing) {
31 | ForEach(self.dates, id: \.id) { date in
:
33 | }
34 | }
35 | .frame(alignment: .top)
| |- error: 'top' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
36 | .onAppear {
37 | self.dates = self.getDates.exeute(self.offset)
/Users/admin/builder/spi-builder-workspace/Sources/CalendarKit/View/CalendarContent.swift:36:10: error: 'onAppear(perform:)' is only available in macOS 10.15 or newer
8 | import SwiftUI
9 |
10 | public struct CalendarContent<Content: View>: View {
| `- note: add @available attribute to enclosing generic struct
11 |
12 | let offset: Int
:
27 | }
28 |
29 | public var body: some View {
| `- note: add @available attribute to enclosing property
30 | LazyVGrid(columns: .init(repeating: .init(), count: 7), spacing: vSpacing) {
31 | ForEach(self.dates, id: \.id) { date in
:
34 | }
35 | .frame(alignment: .top)
36 | .onAppear {
| |- error: 'onAppear(perform:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
37 | self.dates = self.getDates.exeute(self.offset)
38 | }
/Users/admin/builder/spi-builder-workspace/Sources/CalendarKit/View/CalendarContent.swift:37:13: error: setter for 'dates' is only available in macOS 10.15 or newer
8 | import SwiftUI
9 |
10 | public struct CalendarContent<Content: View>: View {
| `- note: add @available attribute to enclosing generic struct
11 |
12 | let offset: Int
:
27 | }
28 |
29 | public var body: some View {
| `- note: add @available attribute to enclosing property
30 | LazyVGrid(columns: .init(repeating: .init(), count: 7), spacing: vSpacing) {
31 | ForEach(self.dates, id: \.id) { date in
:
35 | .frame(alignment: .top)
36 | .onAppear {
37 | self.dates = self.getDates.exeute(self.offset)
| |- error: setter for 'dates' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
38 | }
39 | }
[12/14] Compiling CalendarKit DateComponent.swift
/Users/admin/builder/spi-builder-workspace/Sources/CalendarKit/Entity/DateComponent.swift:98:34: error: 'now' is only available in macOS 12 or newer
88 | }
89 |
90 | extension DateComponent: Equatable {
| `- note: add @available attribute to enclosing extension
91 |
92 | public static func == (lhs: Self, rhs: Self) -> Bool {
:
96 | }
97 |
98 | public static let now = Date.now.mapToComponent
| | `- error: 'now' is only available in macOS 12 or newer
| `- note: add @available attribute to enclosing static property
99 | }
100 |
/Users/admin/builder/spi-builder-workspace/Sources/CalendarKit/Entity/DateComponent.swift:55:30: error: 'now' is only available in macOS 12 or newer
8 | import Foundation
9 |
10 | public struct DateComponent: Identifiable {
| `- note: add @available attribute to enclosing struct
11 |
12 | public let id: String = UUID().uuidString
:
45 |
46 | // 2023.01.01
47 | public init(dateString: String, separator: String = ".") {
| `- note: add @available attribute to enclosing initializer
48 |
49 | var components = dateString
:
53 |
54 | guard components.count == 3 else {
55 | self.init(from: .now)
| |- error: 'now' is only available in macOS 12 or newer
| `- note: add 'if #available' version check
56 | return
57 | }
/Users/admin/builder/spi-builder-workspace/Sources/CalendarKit/Entity/DateComponent.swift:65:30: error: 'now' is only available in macOS 12 or newer
8 | import Foundation
9 |
10 | public struct DateComponent: Identifiable {
| `- note: add @available attribute to enclosing struct
11 |
12 | public let id: String = UUID().uuidString
:
45 |
46 | // 2023.01.01
47 | public init(dateString: String, separator: String = ".") {
| `- note: add @available attribute to enclosing initializer
48 |
49 | var components = dateString
:
63 | let year = components.popLast()
64 | else {
65 | self.init(from: .now)
| |- error: 'now' is only available in macOS 12 or newer
| `- note: add 'if #available' version check
66 | return
67 | }
/Users/admin/builder/spi-builder-workspace/Sources/CalendarKit/Entity/DateComponent.swift:76:30: error: 'now' is only available in macOS 12 or newer
8 | import Foundation
9 |
10 | public struct DateComponent: Identifiable {
| `- note: add @available attribute to enclosing struct
11 |
12 | public let id: String = UUID().uuidString
:
45 |
46 | // 2023.01.01
47 | public init(dateString: String, separator: String = ".") {
| `- note: add @available attribute to enclosing initializer
48 |
49 | var components = dateString
:
74 | let calendar = Calendar.current
75 | guard let date = calendar.date(from: dateComponents) else {
76 | self.init(from: .now)
| |- error: 'now' is only available in macOS 12 or newer
| `- note: add 'if #available' version check
77 | return
78 | }
/Users/admin/builder/spi-builder-workspace/Sources/CalendarKit/Entity/DateComponent.swift:123:56: error: 'now' is only available in macOS 12 or newer
100 |
101 |
102 | extension DateComponent {
| `- note: add @available attribute to enclosing extension
103 |
104 | // 1 -> "01"
:
114 | public var fullDateString: String { "\(yearMonthDayString) (\(weekday.korean))" }
115 |
116 | public var mapToDate: Date {
| `- note: add @available attribute to enclosing property
117 | var dateComponents = DateComponents()
118 | dateComponents.year = year
:
121 |
122 | let calendar = Calendar.current
123 | return calendar.date(from: dateComponents) ?? .now
| |- error: 'now' is only available in macOS 12 or newer
| `- note: add 'if #available' version check
124 | }
125 | }
[13/14] Compiling CalendarKit HourComponent.swift
/Users/admin/builder/spi-builder-workspace/Sources/CalendarKit/Entity/DateComponent.swift:98:34: error: 'now' is only available in macOS 12 or newer
88 | }
89 |
90 | extension DateComponent: Equatable {
| `- note: add @available attribute to enclosing extension
91 |
92 | public static func == (lhs: Self, rhs: Self) -> Bool {
:
96 | }
97 |
98 | public static let now = Date.now.mapToComponent
| | `- error: 'now' is only available in macOS 12 or newer
| `- note: add @available attribute to enclosing static property
99 | }
100 |
/Users/admin/builder/spi-builder-workspace/Sources/CalendarKit/Entity/DateComponent.swift:55:30: error: 'now' is only available in macOS 12 or newer
8 | import Foundation
9 |
10 | public struct DateComponent: Identifiable {
| `- note: add @available attribute to enclosing struct
11 |
12 | public let id: String = UUID().uuidString
:
45 |
46 | // 2023.01.01
47 | public init(dateString: String, separator: String = ".") {
| `- note: add @available attribute to enclosing initializer
48 |
49 | var components = dateString
:
53 |
54 | guard components.count == 3 else {
55 | self.init(from: .now)
| |- error: 'now' is only available in macOS 12 or newer
| `- note: add 'if #available' version check
56 | return
57 | }
/Users/admin/builder/spi-builder-workspace/Sources/CalendarKit/Entity/DateComponent.swift:65:30: error: 'now' is only available in macOS 12 or newer
8 | import Foundation
9 |
10 | public struct DateComponent: Identifiable {
| `- note: add @available attribute to enclosing struct
11 |
12 | public let id: String = UUID().uuidString
:
45 |
46 | // 2023.01.01
47 | public init(dateString: String, separator: String = ".") {
| `- note: add @available attribute to enclosing initializer
48 |
49 | var components = dateString
:
63 | let year = components.popLast()
64 | else {
65 | self.init(from: .now)
| |- error: 'now' is only available in macOS 12 or newer
| `- note: add 'if #available' version check
66 | return
67 | }
/Users/admin/builder/spi-builder-workspace/Sources/CalendarKit/Entity/DateComponent.swift:76:30: error: 'now' is only available in macOS 12 or newer
8 | import Foundation
9 |
10 | public struct DateComponent: Identifiable {
| `- note: add @available attribute to enclosing struct
11 |
12 | public let id: String = UUID().uuidString
:
45 |
46 | // 2023.01.01
47 | public init(dateString: String, separator: String = ".") {
| `- note: add @available attribute to enclosing initializer
48 |
49 | var components = dateString
:
74 | let calendar = Calendar.current
75 | guard let date = calendar.date(from: dateComponents) else {
76 | self.init(from: .now)
| |- error: 'now' is only available in macOS 12 or newer
| `- note: add 'if #available' version check
77 | return
78 | }
/Users/admin/builder/spi-builder-workspace/Sources/CalendarKit/Entity/DateComponent.swift:123:56: error: 'now' is only available in macOS 12 or newer
100 |
101 |
102 | extension DateComponent {
| `- note: add @available attribute to enclosing extension
103 |
104 | // 1 -> "01"
:
114 | public var fullDateString: String { "\(yearMonthDayString) (\(weekday.korean))" }
115 |
116 | public var mapToDate: Date {
| `- note: add @available attribute to enclosing property
117 | var dateComponents = DateComponents()
118 | dateComponents.year = year
:
121 |
122 | let calendar = Calendar.current
123 | return calendar.date(from: dateComponents) ?? .now
| |- error: 'now' is only available in macOS 12 or newer
| `- note: add 'if #available' version check
124 | }
125 | }
[14/14] Compiling CalendarKit CalendarHeader.swift
/Users/admin/builder/spi-builder-workspace/Sources/CalendarKit/View/CalendarHeader.swift:14:18: error: 'ViewBuilder' is only available in macOS 10.15 or newer
8 | import SwiftUI
9 |
10 | public struct CalendarHeader<Content: View>: View {
| `- note: add @available attribute to enclosing generic struct
11 |
12 | let cellBuilder: (WeekDay) -> Content
13 |
14 | public init(@ViewBuilder cellBuilder: @escaping (WeekDay) -> Content) {
| | `- error: 'ViewBuilder' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing initializer
15 | self.cellBuilder = cellBuilder
16 | }
/Users/admin/builder/spi-builder-workspace/Sources/CalendarKit/View/CalendarHeader.swift:18:27: error: 'View' is only available in macOS 10.15 or newer
8 | import SwiftUI
9 |
10 | public struct CalendarHeader<Content: View>: View {
| `- note: add @available attribute to enclosing generic struct
11 |
12 | let cellBuilder: (WeekDay) -> Content
:
16 | }
17 |
18 | public var body: some View {
| | `- error: 'View' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing property
19 | LazyVGrid(columns: .init(repeating: .init(), count: 7), content: {
20 | ForEach(WeekDay.allCases, id: \.self) { weekday in
/Users/admin/builder/spi-builder-workspace/Sources/CalendarKit/View/CalendarHeader.swift:10:39: error: 'View' is only available in macOS 10.15 or newer
8 | import SwiftUI
9 |
10 | public struct CalendarHeader<Content: View>: View {
| | `- error: 'View' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing generic struct
11 |
12 | let cellBuilder: (WeekDay) -> Content
/Users/admin/builder/spi-builder-workspace/Sources/CalendarKit/View/CalendarHeader.swift:27:2: error: 'Preview(_:body:)' is only available in macOS 10.15 or newer
25 | }
26 |
27 | #Preview {
| `- error: 'Preview(_:body:)' is only available in macOS 10.15 or newer
28 | CalendarHeader {
29 | Text($0.korean)
/Users/admin/builder/spi-builder-workspace/Sources/CalendarKit/View/CalendarHeader.swift:28:5: warning: conformance of 'Text' to 'View' is only available in macOS 10.15 or newer; this is an error in the Swift 6 language mode
26 |
27 | #Preview {
28 | CalendarHeader {
| |- warning: conformance of 'Text' to 'View' is only available in macOS 10.15 or newer; this is an error in the Swift 6 language mode
| `- note: add 'if #available' version check
29 | Text($0.korean)
30 | .fontWeight(.medium)
/Users/admin/builder/spi-builder-workspace/Sources/CalendarKit/View/CalendarHeader.swift:28:5: warning: conformance of 'Text' to 'View' is only available in macOS 10.15 or newer; this is an error in the Swift 6 language mode
26 |
27 | #Preview {
28 | CalendarHeader {
| |- warning: conformance of 'Text' to 'View' is only available in macOS 10.15 or newer; this is an error in the Swift 6 language mode
| `- note: add 'if #available' version check
29 | Text($0.korean)
30 | .fontWeight(.medium)
/Users/admin/builder/spi-builder-workspace/Sources/CalendarKit/View/CalendarHeader.swift:28:5: warning: conformance of 'Text' to 'View' is only available in macOS 10.15 or newer; this is an error in the Swift 6 language mode
26 |
27 | #Preview {
28 | CalendarHeader {
| |- warning: conformance of 'Text' to 'View' is only available in macOS 10.15 or newer; this is an error in the Swift 6 language mode
| `- note: add 'if #available' version check
29 | Text($0.korean)
30 | .fontWeight(.medium)
/Users/admin/builder/spi-builder-workspace/Sources/CalendarKit/View/CalendarHeader.swift:29:9: warning: conformance of 'Text' to 'View' is only available in macOS 10.15 or newer; this is an error in the Swift 6 language mode
27 | #Preview {
28 | CalendarHeader {
29 | Text($0.korean)
| |- warning: conformance of 'Text' to 'View' is only available in macOS 10.15 or newer; this is an error in the Swift 6 language mode
| `- note: add 'if #available' version check
30 | .fontWeight(.medium)
31 | }
/Users/admin/builder/spi-builder-workspace/Sources/CalendarKit/View/CalendarHeader.swift:29:9: error: 'Text' is only available in macOS 10.15 or newer
27 | #Preview {
28 | CalendarHeader {
29 | Text($0.korean)
| |- error: 'Text' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
30 | .fontWeight(.medium)
31 | }
/Users/admin/builder/spi-builder-workspace/Sources/CalendarKit/View/CalendarHeader.swift:30:14: error: 'fontWeight' is only available in macOS 10.15 or newer
28 | CalendarHeader {
29 | Text($0.korean)
30 | .fontWeight(.medium)
| |- error: 'fontWeight' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
31 | }
32 | }
/Users/admin/builder/spi-builder-workspace/Sources/CalendarKit/View/CalendarHeader.swift:28:20: warning: conformance of 'Text' to 'View' is only available in macOS 10.15 or newer; this is an error in the Swift 6 language mode
26 |
27 | #Preview {
28 | CalendarHeader {
| |- warning: conformance of 'Text' to 'View' is only available in macOS 10.15 or newer; this is an error in the Swift 6 language mode
| `- note: add 'if #available' version check
29 | Text($0.korean)
30 | .fontWeight(.medium)
/Users/admin/builder/spi-builder-workspace/Sources/CalendarKit/View/CalendarHeader.swift:27:10: warning: conformance of 'Text' to 'View' is only available in macOS 10.15 or newer; this is an error in the Swift 6 language mode
25 | }
26 |
27 | #Preview {
| |- warning: conformance of 'Text' to 'View' is only available in macOS 10.15 or newer; this is an error in the Swift 6 language mode
| `- note: add 'if #available' version check
28 | CalendarHeader {
29 | Text($0.korean)
/Users/admin/builder/spi-builder-workspace/Sources/CalendarKit/View/CalendarHeader.swift:27:10: warning: conformance of 'Text' to 'View' is only available in macOS 10.15 or newer; this is an error in the Swift 6 language mode
25 | }
26 |
27 | #Preview {
| |- warning: conformance of 'Text' to 'View' is only available in macOS 10.15 or newer; this is an error in the Swift 6 language mode
| `- note: add 'if #available' version check
28 | CalendarHeader {
29 | Text($0.korean)
/Users/admin/builder/spi-builder-workspace/Sources/CalendarKit/View/CalendarContent.swift:42:2: error: 'Preview(_:body:)' is only available in macOS 10.15 or newer
40 | }
41 |
42 | #Preview {
| `- error: 'Preview(_:body:)' is only available in macOS 10.15 or newer
43 | CalendarContent(offset: 0) { date in
44 | Text(String(date.day))
/Users/admin/builder/spi-builder-workspace/Sources/CalendarKit/View/CalendarContent.swift:44:9: error: 'Text' is only available in macOS 10.15 or newer
42 | #Preview {
43 | CalendarContent(offset: 0) { date in
44 | Text(String(date.day))
| |- error: 'Text' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
45 | .fontWeight(.medium)
46 | .foregroundStyle(Color.gray)
/Users/admin/builder/spi-builder-workspace/Sources/CalendarKit/View/CalendarContent.swift:45:14: error: 'fontWeight' is only available in macOS 10.15 or newer
43 | CalendarContent(offset: 0) { date in
44 | Text(String(date.day))
45 | .fontWeight(.medium)
| |- error: 'fontWeight' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
46 | .foregroundStyle(Color.gray)
47 | .frame(height: 60, alignment: .top)
/Users/admin/builder/spi-builder-workspace/Sources/CalendarKit/View/CalendarContent.swift:46:14: error: 'foregroundStyle' is only available in macOS 14.0 or newer
44 | Text(String(date.day))
45 | .fontWeight(.medium)
46 | .foregroundStyle(Color.gray)
| |- error: 'foregroundStyle' is only available in macOS 14.0 or newer
| `- note: add 'if #available' version check
47 | .frame(height: 60, alignment: .top)
48 | }
/Users/admin/builder/spi-builder-workspace/Sources/CalendarKit/View/CalendarContent.swift:46:30: error: 'Color' is only available in macOS 10.15 or newer
44 | Text(String(date.day))
45 | .fontWeight(.medium)
46 | .foregroundStyle(Color.gray)
| |- error: 'Color' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
47 | .frame(height: 60, alignment: .top)
48 | }
/Users/admin/builder/spi-builder-workspace/Sources/CalendarKit/View/CalendarContent.swift:46:36: error: 'gray' is only available in macOS 10.15 or newer
44 | Text(String(date.day))
45 | .fontWeight(.medium)
46 | .foregroundStyle(Color.gray)
| |- error: 'gray' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
47 | .frame(height: 60, alignment: .top)
48 | }
/Users/admin/builder/spi-builder-workspace/Sources/CalendarKit/View/CalendarContent.swift:47:14: error: 'frame(width:height:alignment:)' is only available in macOS 10.15 or newer
45 | .fontWeight(.medium)
46 | .foregroundStyle(Color.gray)
47 | .frame(height: 60, alignment: .top)
| |- error: 'frame(width:height:alignment:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
48 | }
49 | }
/Users/admin/builder/spi-builder-workspace/Sources/CalendarKit/View/CalendarContent.swift:47:44: error: 'top' is only available in macOS 10.15 or newer
45 | .fontWeight(.medium)
46 | .foregroundStyle(Color.gray)
47 | .frame(height: 60, alignment: .top)
| |- error: 'top' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
48 | }
49 | }
/Users/admin/builder/spi-builder-workspace/Sources/CalendarKit/View/CalendarHeader.swift:19:9: warning: conformance of 'ForEach<Data, ID, Content>' to 'View' is only available in macOS 10.15 or newer; this is an error in the Swift 6 language mode
8 | import SwiftUI
9 |
10 | public struct CalendarHeader<Content: View>: View {
| `- note: add @available attribute to enclosing generic struct
11 |
12 | let cellBuilder: (WeekDay) -> Content
:
16 | }
17 |
18 | public var body: some View {
| `- note: add @available attribute to enclosing property
19 | LazyVGrid(columns: .init(repeating: .init(), count: 7), content: {
| |- warning: conformance of 'ForEach<Data, ID, Content>' to 'View' is only available in macOS 10.15 or newer; this is an error in the Swift 6 language mode
| `- note: add 'if #available' version check
20 | ForEach(WeekDay.allCases, id: \.self) { weekday in
21 | cellBuilder(weekday)
/Users/admin/builder/spi-builder-workspace/Sources/CalendarKit/View/CalendarHeader.swift:19:9: error: 'LazyVGrid' is only available in macOS 11.0 or newer
8 | import SwiftUI
9 |
10 | public struct CalendarHeader<Content: View>: View {
| `- note: add @available attribute to enclosing generic struct
11 |
12 | let cellBuilder: (WeekDay) -> Content
:
16 | }
17 |
18 | public var body: some View {
| `- note: add @available attribute to enclosing property
19 | LazyVGrid(columns: .init(repeating: .init(), count: 7), content: {
| |- error: 'LazyVGrid' is only available in macOS 11.0 or newer
| `- note: add 'if #available' version check
20 | ForEach(WeekDay.allCases, id: \.self) { weekday in
21 | cellBuilder(weekday)
/Users/admin/builder/spi-builder-workspace/Sources/CalendarKit/View/CalendarHeader.swift:19:9: warning: conformance of 'ForEach<Data, ID, Content>' to 'View' is only available in macOS 10.15 or newer; this is an error in the Swift 6 language mode
8 | import SwiftUI
9 |
10 | public struct CalendarHeader<Content: View>: View {
| `- note: add @available attribute to enclosing generic struct
11 |
12 | let cellBuilder: (WeekDay) -> Content
:
16 | }
17 |
18 | public var body: some View {
| `- note: add @available attribute to enclosing property
19 | LazyVGrid(columns: .init(repeating: .init(), count: 7), content: {
| |- warning: conformance of 'ForEach<Data, ID, Content>' to 'View' is only available in macOS 10.15 or newer; this is an error in the Swift 6 language mode
| `- note: add 'if #available' version check
20 | ForEach(WeekDay.allCases, id: \.self) { weekday in
21 | cellBuilder(weekday)
/Users/admin/builder/spi-builder-workspace/Sources/CalendarKit/View/CalendarHeader.swift:20:13: warning: conformance of 'ForEach<Data, ID, Content>' to 'View' is only available in macOS 10.15 or newer; this is an error in the Swift 6 language mode
8 | import SwiftUI
9 |
10 | public struct CalendarHeader<Content: View>: View {
| `- note: add @available attribute to enclosing generic struct
11 |
12 | let cellBuilder: (WeekDay) -> Content
:
16 | }
17 |
18 | public var body: some View {
| `- note: add @available attribute to enclosing property
19 | LazyVGrid(columns: .init(repeating: .init(), count: 7), content: {
20 | ForEach(WeekDay.allCases, id: \.self) { weekday in
| |- warning: conformance of 'ForEach<Data, ID, Content>' to 'View' is only available in macOS 10.15 or newer; this is an error in the Swift 6 language mode
| `- note: add 'if #available' version check
21 | cellBuilder(weekday)
22 | }
/Users/admin/builder/spi-builder-workspace/Sources/CalendarKit/View/CalendarHeader.swift:20:13: error: 'ForEach' is only available in macOS 10.15 or newer
8 | import SwiftUI
9 |
10 | public struct CalendarHeader<Content: View>: View {
| `- note: add @available attribute to enclosing generic struct
11 |
12 | let cellBuilder: (WeekDay) -> Content
:
16 | }
17 |
18 | public var body: some View {
| `- note: add @available attribute to enclosing property
19 | LazyVGrid(columns: .init(repeating: .init(), count: 7), content: {
20 | ForEach(WeekDay.allCases, id: \.self) { weekday in
| |- error: 'ForEach' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
21 | cellBuilder(weekday)
22 | }
/Users/admin/builder/spi-builder-workspace/Sources/CalendarKit/View/CalendarHeader.swift:20:13: error: 'init(_:id:content:)' is only available in macOS 10.15 or newer
8 | import SwiftUI
9 |
10 | public struct CalendarHeader<Content: View>: View {
| `- note: add @available attribute to enclosing generic struct
11 |
12 | let cellBuilder: (WeekDay) -> Content
:
16 | }
17 |
18 | public var body: some View {
| `- note: add @available attribute to enclosing property
19 | LazyVGrid(columns: .init(repeating: .init(), count: 7), content: {
20 | ForEach(WeekDay.allCases, id: \.self) { weekday in
| |- error: 'init(_:id:content:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
21 | cellBuilder(weekday)
22 | }
/Users/admin/builder/spi-builder-workspace/Sources/CalendarKit/View/CalendarHeader.swift:19:74: warning: conformance of 'ForEach<Data, ID, Content>' to 'View' is only available in macOS 10.15 or newer; this is an error in the Swift 6 language mode
8 | import SwiftUI
9 |
10 | public struct CalendarHeader<Content: View>: View {
| `- note: add @available attribute to enclosing generic struct
11 |
12 | let cellBuilder: (WeekDay) -> Content
:
16 | }
17 |
18 | public var body: some View {
| `- note: add @available attribute to enclosing property
19 | LazyVGrid(columns: .init(repeating: .init(), count: 7), content: {
| |- warning: conformance of 'ForEach<Data, ID, Content>' to 'View' is only available in macOS 10.15 or newer; this is an error in the Swift 6 language mode
| `- note: add 'if #available' version check
20 | ForEach(WeekDay.allCases, id: \.self) { weekday in
21 | cellBuilder(weekday)
/Users/admin/builder/spi-builder-workspace/Sources/CalendarKit/View/CalendarHeader.swift:18:32: warning: conformance of 'ForEach<Data, ID, Content>' to 'View' is only available in macOS 10.15 or newer; this is an error in the Swift 6 language mode
8 | import SwiftUI
9 |
10 | public struct CalendarHeader<Content: View>: View {
| `- note: add @available attribute to enclosing generic struct
11 |
12 | let cellBuilder: (WeekDay) -> Content
:
16 | }
17 |
18 | public var body: some View {
| | |- warning: conformance of 'ForEach<Data, ID, Content>' to 'View' is only available in macOS 10.15 or newer; this is an error in the Swift 6 language mode
| | `- note: add 'if #available' version check
| `- note: add @available attribute to enclosing property
19 | LazyVGrid(columns: .init(repeating: .init(), count: 7), content: {
20 | ForEach(WeekDay.allCases, id: \.self) { weekday in
/Users/admin/builder/spi-builder-workspace/Sources/CalendarKit/View/CalendarHeader.swift:18:32: warning: conformance of 'ForEach<Data, ID, Content>' to 'View' is only available in macOS 10.15 or newer; this is an error in the Swift 6 language mode
8 | import SwiftUI
9 |
10 | public struct CalendarHeader<Content: View>: View {
| `- note: add @available attribute to enclosing generic struct
11 |
12 | let cellBuilder: (WeekDay) -> Content
:
16 | }
17 |
18 | public var body: some View {
| | |- warning: conformance of 'ForEach<Data, ID, Content>' to 'View' is only available in macOS 10.15 or newer; this is an error in the Swift 6 language mode
| | `- note: add 'if #available' version check
| `- note: add @available attribute to enclosing property
19 | LazyVGrid(columns: .init(repeating: .init(), count: 7), content: {
20 | ForEach(WeekDay.allCases, id: \.self) { weekday in
BUILD FAILURE 6.1 macosSpm