The Swift Package Index logo.Swift Package Index

Track the adoption of Swift 6 strict concurrency checks for data race safety. How many packages are Ready for Swift 6?

Build Information

Failed to build FRHorizontalCalendar, reference v1.0.1 (eee1bf), with Swift 6.0 for macOS (SPM) on 15 Apr 2025 12:44:57 UTC.

Build Command

env DEVELOPER_DIR=/Applications/Xcode-16.2.0.app xcrun swift build --arch arm64

Build Log

========================================
RunAll
========================================
Builder version: 4.60.1
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/emrepun/FRHorizontalCalendar.git
Reference: v1.0.1
Initialized empty Git repository in /Users/admin/builder/spi-builder-workspace/.git/
From https://github.com/emrepun/FRHorizontalCalendar
 * tag               v1.0.1     -> FETCH_HEAD
HEAD is now at eee1bf1 Merge pull request #1 from emrepun/add_view_model_tests
Cloned https://github.com/emrepun/FRHorizontalCalendar.git
Revision (git rev-parse @):
eee1bf1cdff420754a68eed4899610e5179d0468
SUCCESS checkout https://github.com/emrepun/FRHorizontalCalendar.git at v1.0.1
========================================
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": "frhorizontalcalendar",
      "name": "FRHorizontalCalendar",
      "url": "https://github.com/emrepun/FRHorizontalCalendar.git",
      "version": "unspecified",
      "path": "/Users/admin/builder/spi-builder-workspace/.resolve-product-dependencies/.build/checkouts/FRHorizontalCalendar",
      "dependencies": [
      ]
    }
  ]
}
Fetching https://github.com/emrepun/FRHorizontalCalendar.git
[1/181] Fetching frhorizontalcalendar
Fetched https://github.com/emrepun/FRHorizontalCalendar.git from cache (0.59s)
Creating working copy for https://github.com/emrepun/FRHorizontalCalendar.git
Working copy of https://github.com/emrepun/FRHorizontalCalendar.git resolved at v1.0.1 (eee1bf1)
warning: '.resolve-product-dependencies': dependency 'frhorizontalcalendar' is not used by any target
Found 0 product dependencies
========================================
Build
========================================
Selected platform:         macosSpm
Swift version:             6.0
Building package at path:  $PWD
https://github.com/emrepun/FRHorizontalCalendar.git
https://github.com/emrepun/FRHorizontalCalendar.git
{
  "dependencies" : [
  ],
  "manifest_display_name" : "FRHorizontalCalendar",
  "name" : "FRHorizontalCalendar",
  "path" : "/Users/admin/builder/spi-builder-workspace",
  "platforms" : [
    {
      "name" : "ios",
      "version" : "17.0"
    }
  ],
  "products" : [
    {
      "name" : "FRHorizontalCalendar",
      "targets" : [
        "FRHorizontalCalendar"
      ],
      "type" : {
        "library" : [
          "automatic"
        ]
      }
    }
  ],
  "targets" : [
    {
      "c99name" : "FRHorizontalCalendarTests",
      "module_type" : "SwiftTarget",
      "name" : "FRHorizontalCalendarTests",
      "path" : "Tests/FRHorizontalCalendarTests",
      "sources" : [
        "FRCalendarObservingMock.swift",
        "FRHorizontalCalendarViewModelTests.swift"
      ],
      "target_dependencies" : [
        "FRHorizontalCalendar"
      ],
      "type" : "test"
    },
    {
      "c99name" : "FRHorizontalCalendar",
      "module_type" : "SwiftTarget",
      "name" : "FRHorizontalCalendar",
      "path" : "Sources/FRHorizontalCalendar",
      "product_memberships" : [
        "FRHorizontalCalendar"
      ],
      "sources" : [
        "Date+Extensions.swift",
        "FRCalendarDayModel.swift",
        "FRCalendarObserving.swift",
        "FRHorizontalCalendarView.swift",
        "FRHorizontalCalendarViewModel.swift"
      ],
      "type" : "library"
    }
  ],
  "tools_version" : "5.9"
}
Running build ...
env DEVELOPER_DIR=/Applications/Xcode-16.2.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-5BDAB9E9C0126B9D.txt
[3/8] Compiling FRHorizontalCalendar FRCalendarObserving.swift
[4/8] Compiling FRHorizontalCalendar FRHorizontalCalendarViewModel.swift
/Users/admin/builder/spi-builder-workspace/Sources/FRHorizontalCalendar/FRHorizontalCalendarViewModel.swift:12:6: error: 'Published' is only available in macOS 10.15 or newer
  8 | import SwiftUI
  9 |
 10 | public final class FRHorizontalCalendarViewModel: ObservableObject {
    |                    `- note: add @available attribute to enclosing class
 11 |
 12 |     @Published var allDays: [FRCalendarDayModel] = []
    |      `- error: 'Published' is only available in macOS 10.15 or newer
 13 |     @Published var selectedDayText: String = ""
 14 |     @Published var mostProminentMonthText: String = ""
/Users/admin/builder/spi-builder-workspace/Sources/FRHorizontalCalendar/FRHorizontalCalendarViewModel.swift:13:6: error: 'Published' is only available in macOS 10.15 or newer
  8 | import SwiftUI
  9 |
 10 | public final class FRHorizontalCalendarViewModel: ObservableObject {
    |                    `- note: add @available attribute to enclosing class
 11 |
 12 |     @Published var allDays: [FRCalendarDayModel] = []
 13 |     @Published var selectedDayText: String = ""
    |      `- error: 'Published' is only available in macOS 10.15 or newer
 14 |     @Published var mostProminentMonthText: String = ""
 15 |
/Users/admin/builder/spi-builder-workspace/Sources/FRHorizontalCalendar/FRHorizontalCalendarViewModel.swift:14:6: error: 'Published' is only available in macOS 10.15 or newer
  8 | import SwiftUI
  9 |
 10 | public final class FRHorizontalCalendarViewModel: ObservableObject {
    |                    `- note: add @available attribute to enclosing class
 11 |
 12 |     @Published var allDays: [FRCalendarDayModel] = []
 13 |     @Published var selectedDayText: String = ""
 14 |     @Published var mostProminentMonthText: String = ""
    |      `- error: 'Published' is only available in macOS 10.15 or newer
 15 |
 16 |     public weak var delegate: FRCalendarObserving? {
/Users/admin/builder/spi-builder-workspace/Sources/FRHorizontalCalendar/FRHorizontalCalendarViewModel.swift:34:43: error: 'now' is only available in macOS 12 or newer
  8 | import SwiftUI
  9 |
 10 | public final class FRHorizontalCalendarViewModel: ObservableObject {
    |                    `- note: add @available attribute to enclosing class
 11 |
 12 |     @Published var allDays: [FRCalendarDayModel] = []
    :
 32 |
 33 |     private let beginningOfToday: Date = {
 34 |         Calendar.current.startOfDay(for: .now)
    |                                           |- error: 'now' is only available in macOS 12 or newer
    |                                           `- note: add 'if #available' version check
 35 |     }()
 36 |
/Users/admin/builder/spi-builder-workspace/Sources/FRHorizontalCalendar/FRHorizontalCalendarViewModel.swift:103:68: error: 'Color' is only available in macOS 10.15 or newer
  8 | import SwiftUI
  9 |
 10 | public final class FRHorizontalCalendarViewModel: ObservableObject {
    |                    `- note: add @available attribute to enclosing class
 11 |
 12 |     @Published var allDays: [FRCalendarDayModel] = []
    :
101 |     }
102 |
103 |     func dayStringForegroundColorFor(_ day: FRCalendarDayModel) -> Color {
    |          |                                                         `- error: 'Color' is only available in macOS 10.15 or newer
    |          `- note: add @available attribute to enclosing instance method
104 |         if day.isAvailable == false {
105 |             return Color(uiColor: .systemGray5)
/Users/admin/builder/spi-builder-workspace/Sources/FRHorizontalCalendar/FRHorizontalCalendarViewModel.swift:115:69: error: 'Color' is only available in macOS 10.15 or newer
  8 | import SwiftUI
  9 |
 10 | public final class FRHorizontalCalendarViewModel: ObservableObject {
    |                    `- note: add @available attribute to enclosing class
 11 |
 12 |     @Published var allDays: [FRCalendarDayModel] = []
    :
113 |     }
114 |
115 |     func dateStringForegroundColorFor(_ day: FRCalendarDayModel) -> Color {
    |          |                                                          `- error: 'Color' is only available in macOS 10.15 or newer
    |          `- note: add @available attribute to enclosing instance method
116 |         if day.isAvailable == false {
117 |             return Color(uiColor: .systemGray3)
/Users/admin/builder/spi-builder-workspace/Sources/FRHorizontalCalendar/FRHorizontalCalendarViewModel.swift:127:59: error: 'Color' is only available in macOS 10.15 or newer
  8 | import SwiftUI
  9 |
 10 | public final class FRHorizontalCalendarViewModel: ObservableObject {
    |                    `- note: add @available attribute to enclosing class
 11 |
 12 |     @Published var allDays: [FRCalendarDayModel] = []
    :
125 |     }
126 |
127 |     func backgroundColorFor(_ day: FRCalendarDayModel) -> Color {
    |          |                                                `- error: 'Color' is only available in macOS 10.15 or newer
    |          `- note: add @available attribute to enclosing instance method
128 |         if day.isSelected {
129 |             return Color.blue
<unknown>:0: error: cannot convert value of type 'any KeyPath<FRHorizontalCalendarViewModel, [FRCalendarDayModel]> & Sendable' to expected argument type 'ReferenceWritableKeyPath<FRHorizontalCalendarViewModel, [FRCalendarDayModel]>'
<unknown>:0: error: cannot convert value of type 'any KeyPath<FRHorizontalCalendarViewModel, String> & Sendable' to expected argument type 'ReferenceWritableKeyPath<FRHorizontalCalendarViewModel, String>'
<unknown>:0: error: cannot convert value of type 'any KeyPath<FRHorizontalCalendarViewModel, String> & Sendable' to expected argument type 'ReferenceWritableKeyPath<FRHorizontalCalendarViewModel, String>'
/Users/admin/builder/spi-builder-workspace/Sources/FRHorizontalCalendar/FRHorizontalCalendarViewModel.swift:10:51: error: 'ObservableObject' is only available in macOS 10.15 or newer
  8 | import SwiftUI
  9 |
 10 | public final class FRHorizontalCalendarViewModel: ObservableObject {
    |                    |                              `- error: 'ObservableObject' is only available in macOS 10.15 or newer
    |                    `- note: add @available attribute to enclosing class
 11 |
 12 |     @Published var allDays: [FRCalendarDayModel] = []
/Users/admin/builder/spi-builder-workspace/Sources/FRHorizontalCalendar/FRHorizontalCalendarViewModel.swift:62:56: error: 'now' is only available in macOS 12 or newer
  8 | import SwiftUI
  9 |
 10 | public final class FRHorizontalCalendarViewModel: ObservableObject {
    |                    `- note: add @available attribute to enclosing class
 11 |
 12 |     @Published var allDays: [FRCalendarDayModel] = []
    :
 59 |     }()
 60 |
 61 |     public init(startDate: Date) {
    |            `- note: add @available attribute to enclosing initializer
 62 |         var allDays = Date.dates(from: startDate, to: .now).map {
    |                                                        |- error: 'now' is only available in macOS 12 or newer
    |                                                        `- note: add 'if #available' version check
 63 |             FRCalendarDayModel(date: $0, isSelected: false, hasContentAvailable: false, isAvailable: true)
 64 |         }
/Users/admin/builder/spi-builder-workspace/Sources/FRHorizontalCalendar/FRHorizontalCalendarViewModel.swift:67:13: error: setter for 'allDays' is only available in macOS 10.15 or newer
  8 | import SwiftUI
  9 |
 10 | public final class FRHorizontalCalendarViewModel: ObservableObject {
    |                    `- note: add @available attribute to enclosing class
 11 |
 12 |     @Published var allDays: [FRCalendarDayModel] = []
    :
 59 |     }()
 60 |
 61 |     public init(startDate: Date) {
    |            `- note: add @available attribute to enclosing initializer
 62 |         var allDays = Date.dates(from: startDate, to: .now).map {
 63 |             FRCalendarDayModel(date: $0, isSelected: false, hasContentAvailable: false, isAvailable: true)
    :
 65 |         guard allDays.count > 7 else {
 66 |             assertionFailure("The calendar must be initialised with a start date that is earlier than 7 days ago")
 67 |             self.allDays = []
    |             |- error: setter for 'allDays' is only available in macOS 10.15 or newer
    |             `- note: add 'if #available' version check
 68 |             self.selectedDayIndex = 0
 69 |             self.selectedDayText = ""
/Users/admin/builder/spi-builder-workspace/Sources/FRHorizontalCalendar/FRHorizontalCalendarViewModel.swift:69:13: error: setter for 'selectedDayText' is only available in macOS 10.15 or newer
  8 | import SwiftUI
  9 |
 10 | public final class FRHorizontalCalendarViewModel: ObservableObject {
    |                    `- note: add @available attribute to enclosing class
 11 |
 12 |     @Published var allDays: [FRCalendarDayModel] = []
    :
 59 |     }()
 60 |
 61 |     public init(startDate: Date) {
    |            `- note: add @available attribute to enclosing initializer
 62 |         var allDays = Date.dates(from: startDate, to: .now).map {
 63 |             FRCalendarDayModel(date: $0, isSelected: false, hasContentAvailable: false, isAvailable: true)
    :
 67 |             self.allDays = []
 68 |             self.selectedDayIndex = 0
 69 |             self.selectedDayText = ""
    |             |- error: setter for 'selectedDayText' is only available in macOS 10.15 or newer
    |             `- note: add 'if #available' version check
 70 |             return
 71 |         }
/Users/admin/builder/spi-builder-workspace/Sources/FRHorizontalCalendar/FRHorizontalCalendarViewModel.swift:74:9: error: setter for 'allDays' is only available in macOS 10.15 or newer
  8 | import SwiftUI
  9 |
 10 | public final class FRHorizontalCalendarViewModel: ObservableObject {
    |                    `- note: add @available attribute to enclosing class
 11 |
 12 |     @Published var allDays: [FRCalendarDayModel] = []
    :
 59 |     }()
 60 |
 61 |     public init(startDate: Date) {
    |            `- note: add @available attribute to enclosing initializer
 62 |         var allDays = Date.dates(from: startDate, to: .now).map {
 63 |             FRCalendarDayModel(date: $0, isSelected: false, hasContentAvailable: false, isAvailable: true)
    :
 72 |         // select today
 73 |         allDays[allDays.count - 1].isSelected = true
 74 |         self.allDays = allDays
    |         |- error: setter for 'allDays' is only available in macOS 10.15 or newer
    |         `- note: add 'if #available' version check
 75 |         self.selectedDayIndex = allDays.count - 1
 76 |         self.selectedDayText = selectedDayDateFormatter.string(from: allDays.last!.date)
/Users/admin/builder/spi-builder-workspace/Sources/FRHorizontalCalendar/FRHorizontalCalendarViewModel.swift:76:9: error: setter for 'selectedDayText' is only available in macOS 10.15 or newer
  8 | import SwiftUI
  9 |
 10 | public final class FRHorizontalCalendarViewModel: ObservableObject {
    |                    `- note: add @available attribute to enclosing class
 11 |
 12 |     @Published var allDays: [FRCalendarDayModel] = []
    :
 59 |     }()
 60 |
 61 |     public init(startDate: Date) {
    |            `- note: add @available attribute to enclosing initializer
 62 |         var allDays = Date.dates(from: startDate, to: .now).map {
 63 |             FRCalendarDayModel(date: $0, isSelected: false, hasContentAvailable: false, isAvailable: true)
    :
 74 |         self.allDays = allDays
 75 |         self.selectedDayIndex = allDays.count - 1
 76 |         self.selectedDayText = selectedDayDateFormatter.string(from: allDays.last!.date)
    |         |- error: setter for 'selectedDayText' is only available in macOS 10.15 or newer
    |         `- note: add 'if #available' version check
 77 |
 78 |         insertAdditionalDaysToPositionFirstDayOfTheWeek()
/Users/admin/builder/spi-builder-workspace/Sources/FRHorizontalCalendar/FRHorizontalCalendarViewModel.swift:105:20: error: no exact matches in call to initializer
103 |     func dayStringForegroundColorFor(_ day: FRCalendarDayModel) -> Color {
104 |         if day.isAvailable == false {
105 |             return Color(uiColor: .systemGray5)
    |                    `- error: no exact matches in call to initializer
106 |         } else if day.isSelected {
107 |             return .white
SwiftUICore.Color:12:12: note: incorrect labels for candidate (have: '(uiColor:)', expected: '(_:)')
10 |         public var hashValue: Int { get }
11 |     }
12 |     public init(_ resolved: Color.Resolved)
   |            `- note: incorrect labels for candidate (have: '(uiColor:)', expected: '(_:)')
13 | }
SwiftUICore.Color:7:12: note: incorrect labels for candidate (have: '(uiColor:)', expected: '(_:)')
5 | @available(visionOS, introduced: 1.0, deprecated: 100000.0, message: "Use Color(cgColor:) when converting a CGColor, or create a standard Color directly")
6 | extension Color {
7 |     public init(_ cgColor: CGColor)
  |            `- note: incorrect labels for candidate (have: '(uiColor:)', expected: '(_:)')
8 | }
SwiftUICore.Color:3:12: note: incorrect labels for candidate (have: '(uiColor:)', expected: '(_:)')
1 | @available(iOS 13.0, macOS 10.15, tvOS 13.0, watchOS 6.0, *)
2 | extension Color {
3 |     public init(_ name: String, bundle: Bundle? = nil)
  |            `- note: incorrect labels for candidate (have: '(uiColor:)', expected: '(_:)')
4 |     public static let _mainNamedBundle: Bundle?
5 | }
SwiftUICore.Color:3:12: note: incorrect labels for candidate (have: '(uiColor:)', expected: '(_:)')
1 | @available(iOS 17.0, macOS 14.0, tvOS 17.0, watchOS 10.0, *)
2 | extension Color {
3 |     public init(_ resource: ColorResource)
  |            `- note: incorrect labels for candidate (have: '(uiColor:)', expected: '(_:)')
4 | }
/Users/admin/builder/spi-builder-workspace/Sources/FRHorizontalCalendar/FRHorizontalCalendarViewModel.swift:105:36: error: reference to member 'systemGray5' cannot be resolved without a contextual type
103 |     func dayStringForegroundColorFor(_ day: FRCalendarDayModel) -> Color {
104 |         if day.isAvailable == false {
105 |             return Color(uiColor: .systemGray5)
    |                                    `- error: reference to member 'systemGray5' cannot be resolved without a contextual type
106 |         } else if day.isSelected {
107 |             return .white
/Users/admin/builder/spi-builder-workspace/Sources/FRHorizontalCalendar/FRHorizontalCalendarViewModel.swift:107:21: error: 'white' is only available in macOS 10.15 or newer
  8 | import SwiftUI
  9 |
 10 | public final class FRHorizontalCalendarViewModel: ObservableObject {
    |                    `- note: add @available attribute to enclosing class
 11 |
 12 |     @Published var allDays: [FRCalendarDayModel] = []
    :
101 |     }
102 |
103 |     func dayStringForegroundColorFor(_ day: FRCalendarDayModel) -> Color {
    |          `- note: add @available attribute to enclosing instance method
104 |         if day.isAvailable == false {
105 |             return Color(uiColor: .systemGray5)
106 |         } else if day.isSelected {
107 |             return .white
    |                     |- error: 'white' is only available in macOS 10.15 or newer
    |                     `- note: add 'if #available' version check
108 |         } else if day.date == beginningOfToday {
109 |             return .blue
/Users/admin/builder/spi-builder-workspace/Sources/FRHorizontalCalendar/FRHorizontalCalendarViewModel.swift:109:21: error: 'blue' is only available in macOS 10.15 or newer
  8 | import SwiftUI
  9 |
 10 | public final class FRHorizontalCalendarViewModel: ObservableObject {
    |                    `- note: add @available attribute to enclosing class
 11 |
 12 |     @Published var allDays: [FRCalendarDayModel] = []
    :
101 |     }
102 |
103 |     func dayStringForegroundColorFor(_ day: FRCalendarDayModel) -> Color {
    |          `- note: add @available attribute to enclosing instance method
104 |         if day.isAvailable == false {
105 |             return Color(uiColor: .systemGray5)
    :
107 |             return .white
108 |         } else if day.date == beginningOfToday {
109 |             return .blue
    |                     |- error: 'blue' is only available in macOS 10.15 or newer
    |                     `- note: add 'if #available' version check
110 |         } else {
111 |             return Color(uiColor: .systemGray)
/Users/admin/builder/spi-builder-workspace/Sources/FRHorizontalCalendar/FRHorizontalCalendarViewModel.swift:111:25: error: extraneous argument label 'uiColor:' in call
109 |             return .blue
110 |         } else {
111 |             return Color(uiColor: .systemGray)
    |                         `- error: extraneous argument label 'uiColor:' in call
112 |         }
113 |     }
/Users/admin/builder/spi-builder-workspace/Sources/FRHorizontalCalendar/FRHorizontalCalendarViewModel.swift:117:20: error: no exact matches in call to initializer
115 |     func dateStringForegroundColorFor(_ day: FRCalendarDayModel) -> Color {
116 |         if day.isAvailable == false {
117 |             return Color(uiColor: .systemGray3)
    |                    `- error: no exact matches in call to initializer
118 |         } else if day.isSelected {
119 |             return .white
SwiftUICore.Color:12:12: note: incorrect labels for candidate (have: '(uiColor:)', expected: '(_:)')
10 |         public var hashValue: Int { get }
11 |     }
12 |     public init(_ resolved: Color.Resolved)
   |            `- note: incorrect labels for candidate (have: '(uiColor:)', expected: '(_:)')
13 | }
SwiftUICore.Color:7:12: note: incorrect labels for candidate (have: '(uiColor:)', expected: '(_:)')
5 | @available(visionOS, introduced: 1.0, deprecated: 100000.0, message: "Use Color(cgColor:) when converting a CGColor, or create a standard Color directly")
6 | extension Color {
7 |     public init(_ cgColor: CGColor)
  |            `- note: incorrect labels for candidate (have: '(uiColor:)', expected: '(_:)')
8 | }
SwiftUICore.Color:3:12: note: incorrect labels for candidate (have: '(uiColor:)', expected: '(_:)')
1 | @available(iOS 13.0, macOS 10.15, tvOS 13.0, watchOS 6.0, *)
2 | extension Color {
3 |     public init(_ name: String, bundle: Bundle? = nil)
  |            `- note: incorrect labels for candidate (have: '(uiColor:)', expected: '(_:)')
4 |     public static let _mainNamedBundle: Bundle?
5 | }
SwiftUICore.Color:3:12: note: incorrect labels for candidate (have: '(uiColor:)', expected: '(_:)')
1 | @available(iOS 17.0, macOS 14.0, tvOS 17.0, watchOS 10.0, *)
2 | extension Color {
3 |     public init(_ resource: ColorResource)
  |            `- note: incorrect labels for candidate (have: '(uiColor:)', expected: '(_:)')
4 | }
/Users/admin/builder/spi-builder-workspace/Sources/FRHorizontalCalendar/FRHorizontalCalendarViewModel.swift:117:36: error: reference to member 'systemGray3' cannot be resolved without a contextual type
115 |     func dateStringForegroundColorFor(_ day: FRCalendarDayModel) -> Color {
116 |         if day.isAvailable == false {
117 |             return Color(uiColor: .systemGray3)
    |                                    `- error: reference to member 'systemGray3' cannot be resolved without a contextual type
118 |         } else if day.isSelected {
119 |             return .white
/Users/admin/builder/spi-builder-workspace/Sources/FRHorizontalCalendar/FRHorizontalCalendarViewModel.swift:119:21: error: 'white' is only available in macOS 10.15 or newer
  8 | import SwiftUI
  9 |
 10 | public final class FRHorizontalCalendarViewModel: ObservableObject {
    |                    `- note: add @available attribute to enclosing class
 11 |
 12 |     @Published var allDays: [FRCalendarDayModel] = []
    :
113 |     }
114 |
115 |     func dateStringForegroundColorFor(_ day: FRCalendarDayModel) -> Color {
    |          `- note: add @available attribute to enclosing instance method
116 |         if day.isAvailable == false {
117 |             return Color(uiColor: .systemGray3)
118 |         } else if day.isSelected {
119 |             return .white
    |                     |- error: 'white' is only available in macOS 10.15 or newer
    |                     `- note: add 'if #available' version check
120 |         } else if day.date == beginningOfToday {
121 |             return .blue
/Users/admin/builder/spi-builder-workspace/Sources/FRHorizontalCalendar/FRHorizontalCalendarViewModel.swift:121:21: error: 'blue' is only available in macOS 10.15 or newer
  8 | import SwiftUI
  9 |
 10 | public final class FRHorizontalCalendarViewModel: ObservableObject {
    |                    `- note: add @available attribute to enclosing class
 11 |
 12 |     @Published var allDays: [FRCalendarDayModel] = []
    :
113 |     }
114 |
115 |     func dateStringForegroundColorFor(_ day: FRCalendarDayModel) -> Color {
    |          `- note: add @available attribute to enclosing instance method
116 |         if day.isAvailable == false {
117 |             return Color(uiColor: .systemGray3)
    :
119 |             return .white
120 |         } else if day.date == beginningOfToday {
121 |             return .blue
    |                     |- error: 'blue' is only available in macOS 10.15 or newer
    |                     `- note: add 'if #available' version check
122 |         } else {
123 |             return Color(uiColor: .label)
/Users/admin/builder/spi-builder-workspace/Sources/FRHorizontalCalendar/FRHorizontalCalendarViewModel.swift:123:20: error: no exact matches in call to initializer
121 |             return .blue
122 |         } else {
123 |             return Color(uiColor: .label)
    |                    `- error: no exact matches in call to initializer
124 |         }
125 |     }
SwiftUICore.Color:12:12: note: incorrect labels for candidate (have: '(uiColor:)', expected: '(_:)')
10 |         public var hashValue: Int { get }
11 |     }
12 |     public init(_ resolved: Color.Resolved)
   |            `- note: incorrect labels for candidate (have: '(uiColor:)', expected: '(_:)')
13 | }
SwiftUICore.Color:7:12: note: incorrect labels for candidate (have: '(uiColor:)', expected: '(_:)')
5 | @available(visionOS, introduced: 1.0, deprecated: 100000.0, message: "Use Color(cgColor:) when converting a CGColor, or create a standard Color directly")
6 | extension Color {
7 |     public init(_ cgColor: CGColor)
  |            `- note: incorrect labels for candidate (have: '(uiColor:)', expected: '(_:)')
8 | }
SwiftUICore.Color:3:12: note: incorrect labels for candidate (have: '(uiColor:)', expected: '(_:)')
1 | @available(iOS 13.0, macOS 10.15, tvOS 13.0, watchOS 6.0, *)
2 | extension Color {
3 |     public init(_ name: String, bundle: Bundle? = nil)
  |            `- note: incorrect labels for candidate (have: '(uiColor:)', expected: '(_:)')
4 |     public static let _mainNamedBundle: Bundle?
5 | }
SwiftUICore.Color:3:12: note: incorrect labels for candidate (have: '(uiColor:)', expected: '(_:)')
1 | @available(iOS 17.0, macOS 14.0, tvOS 17.0, watchOS 10.0, *)
2 | extension Color {
3 |     public init(_ resource: ColorResource)
  |            `- note: incorrect labels for candidate (have: '(uiColor:)', expected: '(_:)')
4 | }
/Users/admin/builder/spi-builder-workspace/Sources/FRHorizontalCalendar/FRHorizontalCalendarViewModel.swift:123:36: error: reference to member 'label' cannot be resolved without a contextual type
121 |             return .blue
122 |         } else {
123 |             return Color(uiColor: .label)
    |                                    `- error: reference to member 'label' cannot be resolved without a contextual type
124 |         }
125 |     }
/Users/admin/builder/spi-builder-workspace/Sources/FRHorizontalCalendar/FRHorizontalCalendarViewModel.swift:129:20: error: 'Color' is only available in macOS 10.15 or newer
  8 | import SwiftUI
  9 |
 10 | public final class FRHorizontalCalendarViewModel: ObservableObject {
    |                    `- note: add @available attribute to enclosing class
 11 |
 12 |     @Published var allDays: [FRCalendarDayModel] = []
    :
125 |     }
126 |
127 |     func backgroundColorFor(_ day: FRCalendarDayModel) -> Color {
    |          `- note: add @available attribute to enclosing instance method
128 |         if day.isSelected {
129 |             return Color.blue
    |                    |- error: 'Color' is only available in macOS 10.15 or newer
    |                    `- note: add 'if #available' version check
130 |         } else if day.hasContentAvailable {
131 |             return Color.blue.opacity(0.25)
/Users/admin/builder/spi-builder-workspace/Sources/FRHorizontalCalendar/FRHorizontalCalendarViewModel.swift:129:26: error: 'blue' is only available in macOS 10.15 or newer
  8 | import SwiftUI
  9 |
 10 | public final class FRHorizontalCalendarViewModel: ObservableObject {
    |                    `- note: add @available attribute to enclosing class
 11 |
 12 |     @Published var allDays: [FRCalendarDayModel] = []
    :
125 |     }
126 |
127 |     func backgroundColorFor(_ day: FRCalendarDayModel) -> Color {
    |          `- note: add @available attribute to enclosing instance method
128 |         if day.isSelected {
129 |             return Color.blue
    |                          |- error: 'blue' is only available in macOS 10.15 or newer
    |                          `- note: add 'if #available' version check
130 |         } else if day.hasContentAvailable {
131 |             return Color.blue.opacity(0.25)
/Users/admin/builder/spi-builder-workspace/Sources/FRHorizontalCalendar/FRHorizontalCalendarViewModel.swift:131:20: error: 'Color' is only available in macOS 10.15 or newer
  8 | import SwiftUI
  9 |
 10 | public final class FRHorizontalCalendarViewModel: ObservableObject {
    |                    `- note: add @available attribute to enclosing class
 11 |
 12 |     @Published var allDays: [FRCalendarDayModel] = []
    :
125 |     }
126 |
127 |     func backgroundColorFor(_ day: FRCalendarDayModel) -> Color {
    |          `- note: add @available attribute to enclosing instance method
128 |         if day.isSelected {
129 |             return Color.blue
130 |         } else if day.hasContentAvailable {
131 |             return Color.blue.opacity(0.25)
    |                    |- error: 'Color' is only available in macOS 10.15 or newer
    |                    `- note: add 'if #available' version check
132 |         } else {
133 |             return Color.clear
/Users/admin/builder/spi-builder-workspace/Sources/FRHorizontalCalendar/FRHorizontalCalendarViewModel.swift:131:26: error: 'blue' is only available in macOS 10.15 or newer
  8 | import SwiftUI
  9 |
 10 | public final class FRHorizontalCalendarViewModel: ObservableObject {
    |                    `- note: add @available attribute to enclosing class
 11 |
 12 |     @Published var allDays: [FRCalendarDayModel] = []
    :
125 |     }
126 |
127 |     func backgroundColorFor(_ day: FRCalendarDayModel) -> Color {
    |          `- note: add @available attribute to enclosing instance method
128 |         if day.isSelected {
129 |             return Color.blue
130 |         } else if day.hasContentAvailable {
131 |             return Color.blue.opacity(0.25)
    |                          |- error: 'blue' is only available in macOS 10.15 or newer
    |                          `- note: add 'if #available' version check
132 |         } else {
133 |             return Color.clear
/Users/admin/builder/spi-builder-workspace/Sources/FRHorizontalCalendar/FRHorizontalCalendarViewModel.swift:131:31: error: 'opacity' is only available in macOS 10.15 or newer
  8 | import SwiftUI
  9 |
 10 | public final class FRHorizontalCalendarViewModel: ObservableObject {
    |                    `- note: add @available attribute to enclosing class
 11 |
 12 |     @Published var allDays: [FRCalendarDayModel] = []
    :
125 |     }
126 |
127 |     func backgroundColorFor(_ day: FRCalendarDayModel) -> Color {
    |          `- note: add @available attribute to enclosing instance method
128 |         if day.isSelected {
129 |             return Color.blue
130 |         } else if day.hasContentAvailable {
131 |             return Color.blue.opacity(0.25)
    |                               |- error: 'opacity' is only available in macOS 10.15 or newer
    |                               `- note: add 'if #available' version check
132 |         } else {
133 |             return Color.clear
/Users/admin/builder/spi-builder-workspace/Sources/FRHorizontalCalendar/FRHorizontalCalendarViewModel.swift:133:20: error: 'Color' is only available in macOS 10.15 or newer
  8 | import SwiftUI
  9 |
 10 | public final class FRHorizontalCalendarViewModel: ObservableObject {
    |                    `- note: add @available attribute to enclosing class
 11 |
 12 |     @Published var allDays: [FRCalendarDayModel] = []
    :
125 |     }
126 |
127 |     func backgroundColorFor(_ day: FRCalendarDayModel) -> Color {
    |          `- note: add @available attribute to enclosing instance method
128 |         if day.isSelected {
129 |             return Color.blue
    :
131 |             return Color.blue.opacity(0.25)
132 |         } else {
133 |             return Color.clear
    |                    |- error: 'Color' is only available in macOS 10.15 or newer
    |                    `- note: add 'if #available' version check
134 |         }
135 |     }
/Users/admin/builder/spi-builder-workspace/Sources/FRHorizontalCalendar/FRHorizontalCalendarViewModel.swift:133:26: error: 'clear' is only available in macOS 10.15 or newer
  8 | import SwiftUI
  9 |
 10 | public final class FRHorizontalCalendarViewModel: ObservableObject {
    |                    `- note: add @available attribute to enclosing class
 11 |
 12 |     @Published var allDays: [FRCalendarDayModel] = []
    :
125 |     }
126 |
127 |     func backgroundColorFor(_ day: FRCalendarDayModel) -> Color {
    |          `- note: add @available attribute to enclosing instance method
128 |         if day.isSelected {
129 |             return Color.blue
    :
131 |             return Color.blue.opacity(0.25)
132 |         } else {
133 |             return Color.clear
    |                          |- error: 'clear' is only available in macOS 10.15 or newer
    |                          `- note: add 'if #available' version check
134 |         }
135 |     }
/Users/admin/builder/spi-builder-workspace/Sources/FRHorizontalCalendar/FRHorizontalCalendarViewModel.swift:155:9: error: setter for 'selectedDayText' is only available in macOS 10.15 or newer
  8 | import SwiftUI
  9 |
 10 | public final class FRHorizontalCalendarViewModel: ObservableObject {
    |                    `- note: add @available attribute to enclosing class
 11 |
 12 |     @Published var allDays: [FRCalendarDayModel] = []
    :
146 |     }
147 |
148 |     func didTapOnDayAt(_ index: Int) {
    |          `- note: add @available attribute to enclosing instance method
149 |         guard allDays[index].isAvailable else {
150 |             return
    :
153 |         // The animation is broken if the last day was selected
154 |         // or if we are about to select the last day
155 |         selectedDayText = selectedDayDateFormatter.string(from: allDays[index].date)
    |         |- error: setter for 'selectedDayText' is only available in macOS 10.15 or newer
    |         `- note: add 'if #available' version check
156 |         if selectedDayIndex == lastElementIndex || index == lastElementIndex {
157 |             updateSelection(index)
/Users/admin/builder/spi-builder-workspace/Sources/FRHorizontalCalendar/FRHorizontalCalendarViewModel.swift:159:13: error: 'withAnimation' is only available in macOS 10.15 or newer
  8 | import SwiftUI
  9 |
 10 | public final class FRHorizontalCalendarViewModel: ObservableObject {
    |                    `- note: add @available attribute to enclosing class
 11 |
 12 |     @Published var allDays: [FRCalendarDayModel] = []
    :
146 |     }
147 |
148 |     func didTapOnDayAt(_ index: Int) {
    |          `- note: add @available attribute to enclosing instance method
149 |         guard allDays[index].isAvailable else {
150 |             return
    :
157 |             updateSelection(index)
158 |         } else {
159 |             withAnimation {
    |             |- error: 'withAnimation' is only available in macOS 10.15 or newer
    |             `- note: add 'if #available' version check
160 |                 updateSelection(index)
161 |             }
/Users/admin/builder/spi-builder-workspace/Sources/FRHorizontalCalendar/FRHorizontalCalendarViewModel.swift:168:9: error: cannot pass as inout because setter for 'allDays' is only available in macOS 10.15 or newer
  8 | import SwiftUI
  9 |
 10 | public final class FRHorizontalCalendarViewModel: ObservableObject {
    |                    `- note: add @available attribute to enclosing class
 11 |
 12 |     @Published var allDays: [FRCalendarDayModel] = []
    :
165 |
166 |     // MARK: - Private
167 |     private func updateSelection(_ index: Int) {
    |                  `- note: add @available attribute to enclosing instance method
168 |         allDays[selectedDayIndex].isSelected.toggle()
    |         |- error: cannot pass as inout because setter for 'allDays' is only available in macOS 10.15 or newer
    |         `- note: add 'if #available' version check
169 |         allDays[index].isSelected.toggle()
170 |         selectedDayIndex = index
/Users/admin/builder/spi-builder-workspace/Sources/FRHorizontalCalendar/FRHorizontalCalendarViewModel.swift:169:9: error: cannot pass as inout because setter for 'allDays' is only available in macOS 10.15 or newer
  8 | import SwiftUI
  9 |
 10 | public final class FRHorizontalCalendarViewModel: ObservableObject {
    |                    `- note: add @available attribute to enclosing class
 11 |
 12 |     @Published var allDays: [FRCalendarDayModel] = []
    :
165 |
166 |     // MARK: - Private
167 |     private func updateSelection(_ index: Int) {
    |                  `- note: add @available attribute to enclosing instance method
168 |         allDays[selectedDayIndex].isSelected.toggle()
169 |         allDays[index].isSelected.toggle()
    |         |- error: cannot pass as inout because setter for 'allDays' is only available in macOS 10.15 or newer
    |         `- note: add 'if #available' version check
170 |         selectedDayIndex = index
171 |     }
/Users/admin/builder/spi-builder-workspace/Sources/FRHorizontalCalendar/FRHorizontalCalendarViewModel.swift:190:13: error: cannot pass as inout because setter for 'allDays' is only available in macOS 10.15 or newer
  8 | import SwiftUI
  9 |
 10 | public final class FRHorizontalCalendarViewModel: ObservableObject {
    |                    `- note: add @available attribute to enclosing class
 11 |
 12 |     @Published var allDays: [FRCalendarDayModel] = []
    :
171 |     }
172 |
173 |     private func insertAdditionalDaysToPositionFirstDayOfTheWeek() {
    |                  `- note: add @available attribute to enclosing instance method
174 |         // get the seventh day in the allDays
175 |         let seventhLastDay = allDays[allDays.count - 7]
    :
188 |                 return
189 |             }
190 |             self.allDays.append(.init(date: dateToAppend, isSelected: false, hasContentAvailable: false, isAvailable: false))
    |             |- error: cannot pass as inout because setter for 'allDays' is only available in macOS 10.15 or newer
    |             `- note: add 'if #available' version check
191 |         }
192 |     }
/Users/admin/builder/spi-builder-workspace/Sources/FRHorizontalCalendar/FRHorizontalCalendarViewModel.swift:245:13: error: 'withAnimation' is only available in macOS 10.15 or newer
  8 | import SwiftUI
  9 |
 10 | public final class FRHorizontalCalendarViewModel: ObservableObject {
    |                    `- note: add @available attribute to enclosing class
 11 |
 12 |     @Published var allDays: [FRCalendarDayModel] = []
    :
226 |     }
227 |
228 |     private func updateProminentMonthForGivenMonthsForDays(monthsForDays: [Int]) {
    |                  `- note: add @available attribute to enclosing instance method
229 |         var dictionaryToCount = [Int: Int]()
230 |         monthsForDays.forEach {
    :
243 |
244 |         if let mostFrequentElement {
245 |             withAnimation {
    |             |- error: 'withAnimation' is only available in macOS 10.15 or newer
    |             `- note: add 'if #available' version check
246 |                 mostProminentMonthText = mostProminentMonthFormatter.monthSymbols[mostFrequentElement - 1]
247 |             }
/Users/admin/builder/spi-builder-workspace/Sources/FRHorizontalCalendar/FRHorizontalCalendarViewModel.swift:246:17: error: setter for 'mostProminentMonthText' is only available in macOS 10.15 or newer
  8 | import SwiftUI
  9 |
 10 | public final class FRHorizontalCalendarViewModel: ObservableObject {
    |                    `- note: add @available attribute to enclosing class
 11 |
 12 |     @Published var allDays: [FRCalendarDayModel] = []
    :
226 |     }
227 |
228 |     private func updateProminentMonthForGivenMonthsForDays(monthsForDays: [Int]) {
    |                  `- note: add @available attribute to enclosing instance method
229 |         var dictionaryToCount = [Int: Int]()
230 |         monthsForDays.forEach {
    :
244 |         if let mostFrequentElement {
245 |             withAnimation {
246 |                 mostProminentMonthText = mostProminentMonthFormatter.monthSymbols[mostFrequentElement - 1]
    |                 |- error: setter for 'mostProminentMonthText' is only available in macOS 10.15 or newer
    |                 `- note: add 'if #available' version check
247 |             }
248 |         }
/Users/admin/builder/spi-builder-workspace/Sources/FRHorizontalCalendar/FRHorizontalCalendarViewModel.swift:257:17: error: cannot pass as inout because setter for 'allDays' is only available in macOS 10.15 or newer
251 |
252 | // MARK: - Public API
253 | public extension FRHorizontalCalendarViewModel {
    |        `- note: add @available attribute to enclosing extension
254 |     func setContentAvailableForDaysWithGivenDates(_ dates: [Date]) {
    |          `- note: add @available attribute to enclosing instance method
255 |         for date in dates {
256 |             if let matchingIndex = allDaysDictionary[Calendar.current.startOfDay(for: date)] {
257 |                 allDays[matchingIndex].hasContentAvailable = true
    |                 |- error: cannot pass as inout because setter for 'allDays' is only available in macOS 10.15 or newer
    |                 `- note: add 'if #available' version check
258 |             }
259 |         }
/Users/admin/builder/spi-builder-workspace/Sources/FRHorizontalCalendar/FRHorizontalCalendarViewModel.swift:267:13: error: cannot pass as inout because setter for 'allDays' is only available in macOS 10.15 or newer
251 |
252 | // MARK: - Public API
253 | public extension FRHorizontalCalendarViewModel {
    |        `- note: add @available attribute to enclosing extension
254 |     func setContentAvailableForDaysWithGivenDates(_ dates: [Date]) {
255 |         for date in dates {
    :
260 |     }
261 |
262 |     func removeContentAvailableForDayWithGivenDate(_ date: Date) {
    |          `- note: add @available attribute to enclosing instance method
263 |         let matchingIndex = allDays.firstIndex { model in
264 |             Calendar.current.isDate(model.date, inSameDayAs: date)
265 |         }
266 |         if let matchingIndex {
267 |             allDays[matchingIndex].hasContentAvailable = false
    |             |- error: cannot pass as inout because setter for 'allDays' is only available in macOS 10.15 or newer
    |             `- note: add 'if #available' version check
268 |         }
269 |     }
[5/8] Compiling FRHorizontalCalendar FRCalendarDayModel.swift
error: emit-module command failed with exit code 1 (use -v to see invocation)
[6/8] Compiling FRHorizontalCalendar Date+Extensions.swift
[7/8] Emitting module FRHorizontalCalendar
/Users/admin/builder/spi-builder-workspace/Sources/FRHorizontalCalendar/FRHorizontalCalendarView.swift:10:6: error: 'ObservedObject' is only available in macOS 10.15 or newer
 1 | import SwiftUI
 2 |
 3 | public struct FRHorizontalCalendarView: View {
   |               `- note: add @available attribute to enclosing struct
 4 |
 5 |     private enum ViewConstants {
   :
 8 |     }
 9 |
10 |     @ObservedObject var viewModel: FRHorizontalCalendarViewModel
   |      `- error: 'ObservedObject' is only available in macOS 10.15 or newer
11 |
12 |     public init(viewModel: FRHorizontalCalendarViewModel) {
/Users/admin/builder/spi-builder-workspace/Sources/FRHorizontalCalendar/FRHorizontalCalendarView.swift:16:27: error: 'View' is only available in macOS 10.15 or newer
 1 | import SwiftUI
 2 |
 3 | public struct FRHorizontalCalendarView: View {
   |               `- note: add @available attribute to enclosing struct
 4 |
 5 |     private enum ViewConstants {
   :
14 |     }
15 |
16 |     public var body: some View {
   |                |          `- error: 'View' is only available in macOS 10.15 or newer
   |                `- note: add @available attribute to enclosing property
17 |         GeometryReader { proxy in
18 |             VStack(spacing: 8.0) {
/Users/admin/builder/spi-builder-workspace/Sources/FRHorizontalCalendar/FRHorizontalCalendarViewModel.swift:12:6: error: 'Published' is only available in macOS 10.15 or newer
  8 | import SwiftUI
  9 |
 10 | public final class FRHorizontalCalendarViewModel: ObservableObject {
    |                    `- note: add @available attribute to enclosing class
 11 |
 12 |     @Published var allDays: [FRCalendarDayModel] = []
    |      `- error: 'Published' is only available in macOS 10.15 or newer
 13 |     @Published var selectedDayText: String = ""
 14 |     @Published var mostProminentMonthText: String = ""
/Users/admin/builder/spi-builder-workspace/Sources/FRHorizontalCalendar/FRHorizontalCalendarViewModel.swift:13:6: error: 'Published' is only available in macOS 10.15 or newer
  8 | import SwiftUI
  9 |
 10 | public final class FRHorizontalCalendarViewModel: ObservableObject {
    |                    `- note: add @available attribute to enclosing class
 11 |
 12 |     @Published var allDays: [FRCalendarDayModel] = []
 13 |     @Published var selectedDayText: String = ""
    |      `- error: 'Published' is only available in macOS 10.15 or newer
 14 |     @Published var mostProminentMonthText: String = ""
 15 |
/Users/admin/builder/spi-builder-workspace/Sources/FRHorizontalCalendar/FRHorizontalCalendarViewModel.swift:14:6: error: 'Published' is only available in macOS 10.15 or newer
  8 | import SwiftUI
  9 |
 10 | public final class FRHorizontalCalendarViewModel: ObservableObject {
    |                    `- note: add @available attribute to enclosing class
 11 |
 12 |     @Published var allDays: [FRCalendarDayModel] = []
 13 |     @Published var selectedDayText: String = ""
 14 |     @Published var mostProminentMonthText: String = ""
    |      `- error: 'Published' is only available in macOS 10.15 or newer
 15 |
 16 |     public weak var delegate: FRCalendarObserving? {
/Users/admin/builder/spi-builder-workspace/Sources/FRHorizontalCalendar/FRHorizontalCalendarViewModel.swift:34:43: error: 'now' is only available in macOS 12 or newer
  8 | import SwiftUI
  9 |
 10 | public final class FRHorizontalCalendarViewModel: ObservableObject {
    |                    `- note: add @available attribute to enclosing class
 11 |
 12 |     @Published var allDays: [FRCalendarDayModel] = []
    :
 32 |
 33 |     private let beginningOfToday: Date = {
 34 |         Calendar.current.startOfDay(for: .now)
    |                                           |- error: 'now' is only available in macOS 12 or newer
    |                                           `- note: add 'if #available' version check
 35 |     }()
 36 |
/Users/admin/builder/spi-builder-workspace/Sources/FRHorizontalCalendar/FRHorizontalCalendarViewModel.swift:103:68: error: 'Color' is only available in macOS 10.15 or newer
  8 | import SwiftUI
  9 |
 10 | public final class FRHorizontalCalendarViewModel: ObservableObject {
    |                    `- note: add @available attribute to enclosing class
 11 |
 12 |     @Published var allDays: [FRCalendarDayModel] = []
    :
101 |     }
102 |
103 |     func dayStringForegroundColorFor(_ day: FRCalendarDayModel) -> Color {
    |          |                                                         `- error: 'Color' is only available in macOS 10.15 or newer
    |          `- note: add @available attribute to enclosing instance method
104 |         if day.isAvailable == false {
105 |             return Color(uiColor: .systemGray5)
/Users/admin/builder/spi-builder-workspace/Sources/FRHorizontalCalendar/FRHorizontalCalendarViewModel.swift:115:69: error: 'Color' is only available in macOS 10.15 or newer
  8 | import SwiftUI
  9 |
 10 | public final class FRHorizontalCalendarViewModel: ObservableObject {
    |                    `- note: add @available attribute to enclosing class
 11 |
 12 |     @Published var allDays: [FRCalendarDayModel] = []
    :
113 |     }
114 |
115 |     func dateStringForegroundColorFor(_ day: FRCalendarDayModel) -> Color {
    |          |                                                          `- error: 'Color' is only available in macOS 10.15 or newer
    |          `- note: add @available attribute to enclosing instance method
116 |         if day.isAvailable == false {
117 |             return Color(uiColor: .systemGray3)
/Users/admin/builder/spi-builder-workspace/Sources/FRHorizontalCalendar/FRHorizontalCalendarViewModel.swift:127:59: error: 'Color' is only available in macOS 10.15 or newer
  8 | import SwiftUI
  9 |
 10 | public final class FRHorizontalCalendarViewModel: ObservableObject {
    |                    `- note: add @available attribute to enclosing class
 11 |
 12 |     @Published var allDays: [FRCalendarDayModel] = []
    :
125 |     }
126 |
127 |     func backgroundColorFor(_ day: FRCalendarDayModel) -> Color {
    |          |                                                `- error: 'Color' is only available in macOS 10.15 or newer
    |          `- note: add @available attribute to enclosing instance method
128 |         if day.isSelected {
129 |             return Color.blue
/Users/admin/builder/spi-builder-workspace/Sources/FRHorizontalCalendar/FRHorizontalCalendarViewModel.swift:10:51: error: 'ObservableObject' is only available in macOS 10.15 or newer
  8 | import SwiftUI
  9 |
 10 | public final class FRHorizontalCalendarViewModel: ObservableObject {
    |                    |                              `- error: 'ObservableObject' is only available in macOS 10.15 or newer
    |                    `- note: add @available attribute to enclosing class
 11 |
 12 |     @Published var allDays: [FRCalendarDayModel] = []
[8/8] Compiling FRHorizontalCalendar FRHorizontalCalendarView.swift
/Users/admin/builder/spi-builder-workspace/Sources/FRHorizontalCalendar/FRHorizontalCalendarView.swift:10:6: error: 'ObservedObject' is only available in macOS 10.15 or newer
 1 | import SwiftUI
 2 |
 3 | public struct FRHorizontalCalendarView: View {
   |               `- note: add @available attribute to enclosing struct
 4 |
 5 |     private enum ViewConstants {
   :
 8 |     }
 9 |
10 |     @ObservedObject var viewModel: FRHorizontalCalendarViewModel
   |      `- error: 'ObservedObject' is only available in macOS 10.15 or newer
11 |
12 |     public init(viewModel: FRHorizontalCalendarViewModel) {
/Users/admin/builder/spi-builder-workspace/Sources/FRHorizontalCalendar/FRHorizontalCalendarView.swift:16:27: error: 'View' is only available in macOS 10.15 or newer
 1 | import SwiftUI
 2 |
 3 | public struct FRHorizontalCalendarView: View {
   |               `- note: add @available attribute to enclosing struct
 4 |
 5 |     private enum ViewConstants {
   :
14 |     }
15 |
16 |     public var body: some View {
   |                |          `- error: 'View' is only available in macOS 10.15 or newer
   |                `- note: add @available attribute to enclosing property
17 |         GeometryReader { proxy in
18 |             VStack(spacing: 8.0) {
/Users/admin/builder/spi-builder-workspace/Sources/FRHorizontalCalendar/FRHorizontalCalendarView.swift:13:9: error: setter for 'viewModel' is only available in macOS 10.15 or newer
 1 | import SwiftUI
 2 |
 3 | public struct FRHorizontalCalendarView: View {
   |               `- note: add @available attribute to enclosing struct
 4 |
 5 |     private enum ViewConstants {
   :
10 |     @ObservedObject var viewModel: FRHorizontalCalendarViewModel
11 |
12 |     public init(viewModel: FRHorizontalCalendarViewModel) {
   |            `- note: add @available attribute to enclosing initializer
13 |         self.viewModel = viewModel
   |         |- error: setter for 'viewModel' is only available in macOS 10.15 or newer
   |         `- note: add 'if #available' version check
14 |     }
15 |
/Users/admin/builder/spi-builder-workspace/Sources/FRHorizontalCalendar/FRHorizontalCalendarView.swift:22:43: error: extraneous argument label 'uiColor:' in call
20 |                     .font(.subheadline)
21 |                     .fontWeight(.semibold)
22 |                     .foregroundStyle(Color(uiColor: .systemGray))
   |                                           `- error: extraneous argument label 'uiColor:' in call
23 |                     .padding(.horizontal)
24 |                 ScrollView(.horizontal) {
Running build ...
env DEVELOPER_DIR=/Applications/Xcode-16.2.0.app xcrun swift build --arch arm64
[0/1] Planning build
Building for debugging...
[0/1] Write swift-version-5BDAB9E9C0126B9D.txt
error: emit-module command failed with exit code 1 (use -v to see invocation)
[2/7] Compiling FRHorizontalCalendar FRCalendarObserving.swift
[3/7] Emitting module FRHorizontalCalendar
/Users/admin/builder/spi-builder-workspace/Sources/FRHorizontalCalendar/FRHorizontalCalendarView.swift:10:6: error: 'ObservedObject' is only available in macOS 10.15 or newer
 1 | import SwiftUI
 2 |
 3 | public struct FRHorizontalCalendarView: View {
   |               `- note: add @available attribute to enclosing struct
 4 |
 5 |     private enum ViewConstants {
   :
 8 |     }
 9 |
10 |     @ObservedObject var viewModel: FRHorizontalCalendarViewModel
   |      `- error: 'ObservedObject' is only available in macOS 10.15 or newer
11 |
12 |     public init(viewModel: FRHorizontalCalendarViewModel) {
/Users/admin/builder/spi-builder-workspace/Sources/FRHorizontalCalendar/FRHorizontalCalendarView.swift:16:27: error: 'View' is only available in macOS 10.15 or newer
 1 | import SwiftUI
 2 |
 3 | public struct FRHorizontalCalendarView: View {
   |               `- note: add @available attribute to enclosing struct
 4 |
 5 |     private enum ViewConstants {
   :
14 |     }
15 |
16 |     public var body: some View {
   |                |          `- error: 'View' is only available in macOS 10.15 or newer
   |                `- note: add @available attribute to enclosing property
17 |         GeometryReader { proxy in
18 |             VStack(spacing: 8.0) {
/Users/admin/builder/spi-builder-workspace/Sources/FRHorizontalCalendar/FRHorizontalCalendarViewModel.swift:12:6: error: 'Published' is only available in macOS 10.15 or newer
  8 | import SwiftUI
  9 |
 10 | public final class FRHorizontalCalendarViewModel: ObservableObject {
    |                    `- note: add @available attribute to enclosing class
 11 |
 12 |     @Published var allDays: [FRCalendarDayModel] = []
    |      `- error: 'Published' is only available in macOS 10.15 or newer
 13 |     @Published var selectedDayText: String = ""
 14 |     @Published var mostProminentMonthText: String = ""
/Users/admin/builder/spi-builder-workspace/Sources/FRHorizontalCalendar/FRHorizontalCalendarViewModel.swift:13:6: error: 'Published' is only available in macOS 10.15 or newer
  8 | import SwiftUI
  9 |
 10 | public final class FRHorizontalCalendarViewModel: ObservableObject {
    |                    `- note: add @available attribute to enclosing class
 11 |
 12 |     @Published var allDays: [FRCalendarDayModel] = []
 13 |     @Published var selectedDayText: String = ""
    |      `- error: 'Published' is only available in macOS 10.15 or newer
 14 |     @Published var mostProminentMonthText: String = ""
 15 |
/Users/admin/builder/spi-builder-workspace/Sources/FRHorizontalCalendar/FRHorizontalCalendarViewModel.swift:14:6: error: 'Published' is only available in macOS 10.15 or newer
  8 | import SwiftUI
  9 |
 10 | public final class FRHorizontalCalendarViewModel: ObservableObject {
    |                    `- note: add @available attribute to enclosing class
 11 |
 12 |     @Published var allDays: [FRCalendarDayModel] = []
 13 |     @Published var selectedDayText: String = ""
 14 |     @Published var mostProminentMonthText: String = ""
    |      `- error: 'Published' is only available in macOS 10.15 or newer
 15 |
 16 |     public weak var delegate: FRCalendarObserving? {
/Users/admin/builder/spi-builder-workspace/Sources/FRHorizontalCalendar/FRHorizontalCalendarViewModel.swift:34:43: error: 'now' is only available in macOS 12 or newer
  8 | import SwiftUI
  9 |
 10 | public final class FRHorizontalCalendarViewModel: ObservableObject {
    |                    `- note: add @available attribute to enclosing class
 11 |
 12 |     @Published var allDays: [FRCalendarDayModel] = []
    :
 32 |
 33 |     private let beginningOfToday: Date = {
 34 |         Calendar.current.startOfDay(for: .now)
    |                                           |- error: 'now' is only available in macOS 12 or newer
    |                                           `- note: add 'if #available' version check
 35 |     }()
 36 |
/Users/admin/builder/spi-builder-workspace/Sources/FRHorizontalCalendar/FRHorizontalCalendarViewModel.swift:103:68: error: 'Color' is only available in macOS 10.15 or newer
  8 | import SwiftUI
  9 |
 10 | public final class FRHorizontalCalendarViewModel: ObservableObject {
    |                    `- note: add @available attribute to enclosing class
 11 |
 12 |     @Published var allDays: [FRCalendarDayModel] = []
    :
101 |     }
102 |
103 |     func dayStringForegroundColorFor(_ day: FRCalendarDayModel) -> Color {
    |          |                                                         `- error: 'Color' is only available in macOS 10.15 or newer
    |          `- note: add @available attribute to enclosing instance method
104 |         if day.isAvailable == false {
105 |             return Color(uiColor: .systemGray5)
/Users/admin/builder/spi-builder-workspace/Sources/FRHorizontalCalendar/FRHorizontalCalendarViewModel.swift:115:69: error: 'Color' is only available in macOS 10.15 or newer
  8 | import SwiftUI
  9 |
 10 | public final class FRHorizontalCalendarViewModel: ObservableObject {
    |                    `- note: add @available attribute to enclosing class
 11 |
 12 |     @Published var allDays: [FRCalendarDayModel] = []
    :
113 |     }
114 |
115 |     func dateStringForegroundColorFor(_ day: FRCalendarDayModel) -> Color {
    |          |                                                          `- error: 'Color' is only available in macOS 10.15 or newer
    |          `- note: add @available attribute to enclosing instance method
116 |         if day.isAvailable == false {
117 |             return Color(uiColor: .systemGray3)
/Users/admin/builder/spi-builder-workspace/Sources/FRHorizontalCalendar/FRHorizontalCalendarViewModel.swift:127:59: error: 'Color' is only available in macOS 10.15 or newer
  8 | import SwiftUI
  9 |
 10 | public final class FRHorizontalCalendarViewModel: ObservableObject {
    |                    `- note: add @available attribute to enclosing class
 11 |
 12 |     @Published var allDays: [FRCalendarDayModel] = []
    :
125 |     }
126 |
127 |     func backgroundColorFor(_ day: FRCalendarDayModel) -> Color {
    |          |                                                `- error: 'Color' is only available in macOS 10.15 or newer
    |          `- note: add @available attribute to enclosing instance method
128 |         if day.isSelected {
129 |             return Color.blue
/Users/admin/builder/spi-builder-workspace/Sources/FRHorizontalCalendar/FRHorizontalCalendarViewModel.swift:10:51: error: 'ObservableObject' is only available in macOS 10.15 or newer
  8 | import SwiftUI
  9 |
 10 | public final class FRHorizontalCalendarViewModel: ObservableObject {
    |                    |                              `- error: 'ObservableObject' is only available in macOS 10.15 or newer
    |                    `- note: add @available attribute to enclosing class
 11 |
 12 |     @Published var allDays: [FRCalendarDayModel] = []
[4/7] Compiling FRHorizontalCalendar FRCalendarDayModel.swift
[5/7] Compiling FRHorizontalCalendar Date+Extensions.swift
[6/7] Compiling FRHorizontalCalendar FRHorizontalCalendarView.swift
/Users/admin/builder/spi-builder-workspace/Sources/FRHorizontalCalendar/FRHorizontalCalendarView.swift:10:6: error: 'ObservedObject' is only available in macOS 10.15 or newer
 1 | import SwiftUI
 2 |
 3 | public struct FRHorizontalCalendarView: View {
   |               `- note: add @available attribute to enclosing struct
 4 |
 5 |     private enum ViewConstants {
   :
 8 |     }
 9 |
10 |     @ObservedObject var viewModel: FRHorizontalCalendarViewModel
   |      `- error: 'ObservedObject' is only available in macOS 10.15 or newer
11 |
12 |     public init(viewModel: FRHorizontalCalendarViewModel) {
/Users/admin/builder/spi-builder-workspace/Sources/FRHorizontalCalendar/FRHorizontalCalendarView.swift:16:27: error: 'View' is only available in macOS 10.15 or newer
 1 | import SwiftUI
 2 |
 3 | public struct FRHorizontalCalendarView: View {
   |               `- note: add @available attribute to enclosing struct
 4 |
 5 |     private enum ViewConstants {
   :
14 |     }
15 |
16 |     public var body: some View {
   |                |          `- error: 'View' is only available in macOS 10.15 or newer
   |                `- note: add @available attribute to enclosing property
17 |         GeometryReader { proxy in
18 |             VStack(spacing: 8.0) {
/Users/admin/builder/spi-builder-workspace/Sources/FRHorizontalCalendar/FRHorizontalCalendarView.swift:13:9: error: setter for 'viewModel' is only available in macOS 10.15 or newer
 1 | import SwiftUI
 2 |
 3 | public struct FRHorizontalCalendarView: View {
   |               `- note: add @available attribute to enclosing struct
 4 |
 5 |     private enum ViewConstants {
   :
10 |     @ObservedObject var viewModel: FRHorizontalCalendarViewModel
11 |
12 |     public init(viewModel: FRHorizontalCalendarViewModel) {
   |            `- note: add @available attribute to enclosing initializer
13 |         self.viewModel = viewModel
   |         |- error: setter for 'viewModel' is only available in macOS 10.15 or newer
   |         `- note: add 'if #available' version check
14 |     }
15 |
/Users/admin/builder/spi-builder-workspace/Sources/FRHorizontalCalendar/FRHorizontalCalendarView.swift:22:43: error: extraneous argument label 'uiColor:' in call
20 |                     .font(.subheadline)
21 |                     .fontWeight(.semibold)
22 |                     .foregroundStyle(Color(uiColor: .systemGray))
   |                                           `- error: extraneous argument label 'uiColor:' in call
23 |                     .padding(.horizontal)
24 |                 ScrollView(.horizontal) {
[7/7] Compiling FRHorizontalCalendar FRHorizontalCalendarViewModel.swift
/Users/admin/builder/spi-builder-workspace/Sources/FRHorizontalCalendar/FRHorizontalCalendarViewModel.swift:12:6: error: 'Published' is only available in macOS 10.15 or newer
  8 | import SwiftUI
  9 |
 10 | public final class FRHorizontalCalendarViewModel: ObservableObject {
    |                    `- note: add @available attribute to enclosing class
 11 |
 12 |     @Published var allDays: [FRCalendarDayModel] = []
    |      `- error: 'Published' is only available in macOS 10.15 or newer
 13 |     @Published var selectedDayText: String = ""
 14 |     @Published var mostProminentMonthText: String = ""
/Users/admin/builder/spi-builder-workspace/Sources/FRHorizontalCalendar/FRHorizontalCalendarViewModel.swift:13:6: error: 'Published' is only available in macOS 10.15 or newer
  8 | import SwiftUI
  9 |
 10 | public final class FRHorizontalCalendarViewModel: ObservableObject {
    |                    `- note: add @available attribute to enclosing class
 11 |
 12 |     @Published var allDays: [FRCalendarDayModel] = []
 13 |     @Published var selectedDayText: String = ""
    |      `- error: 'Published' is only available in macOS 10.15 or newer
 14 |     @Published var mostProminentMonthText: String = ""
 15 |
/Users/admin/builder/spi-builder-workspace/Sources/FRHorizontalCalendar/FRHorizontalCalendarViewModel.swift:14:6: error: 'Published' is only available in macOS 10.15 or newer
  8 | import SwiftUI
  9 |
 10 | public final class FRHorizontalCalendarViewModel: ObservableObject {
    |                    `- note: add @available attribute to enclosing class
 11 |
 12 |     @Published var allDays: [FRCalendarDayModel] = []
 13 |     @Published var selectedDayText: String = ""
 14 |     @Published var mostProminentMonthText: String = ""
    |      `- error: 'Published' is only available in macOS 10.15 or newer
 15 |
 16 |     public weak var delegate: FRCalendarObserving? {
/Users/admin/builder/spi-builder-workspace/Sources/FRHorizontalCalendar/FRHorizontalCalendarViewModel.swift:34:43: error: 'now' is only available in macOS 12 or newer
  8 | import SwiftUI
  9 |
 10 | public final class FRHorizontalCalendarViewModel: ObservableObject {
    |                    `- note: add @available attribute to enclosing class
 11 |
 12 |     @Published var allDays: [FRCalendarDayModel] = []
    :
 32 |
 33 |     private let beginningOfToday: Date = {
 34 |         Calendar.current.startOfDay(for: .now)
    |                                           |- error: 'now' is only available in macOS 12 or newer
    |                                           `- note: add 'if #available' version check
 35 |     }()
 36 |
/Users/admin/builder/spi-builder-workspace/Sources/FRHorizontalCalendar/FRHorizontalCalendarViewModel.swift:103:68: error: 'Color' is only available in macOS 10.15 or newer
  8 | import SwiftUI
  9 |
 10 | public final class FRHorizontalCalendarViewModel: ObservableObject {
    |                    `- note: add @available attribute to enclosing class
 11 |
 12 |     @Published var allDays: [FRCalendarDayModel] = []
    :
101 |     }
102 |
103 |     func dayStringForegroundColorFor(_ day: FRCalendarDayModel) -> Color {
    |          |                                                         `- error: 'Color' is only available in macOS 10.15 or newer
    |          `- note: add @available attribute to enclosing instance method
104 |         if day.isAvailable == false {
105 |             return Color(uiColor: .systemGray5)
/Users/admin/builder/spi-builder-workspace/Sources/FRHorizontalCalendar/FRHorizontalCalendarViewModel.swift:115:69: error: 'Color' is only available in macOS 10.15 or newer
  8 | import SwiftUI
  9 |
 10 | public final class FRHorizontalCalendarViewModel: ObservableObject {
    |                    `- note: add @available attribute to enclosing class
 11 |
 12 |     @Published var allDays: [FRCalendarDayModel] = []
    :
113 |     }
114 |
115 |     func dateStringForegroundColorFor(_ day: FRCalendarDayModel) -> Color {
    |          |                                                          `- error: 'Color' is only available in macOS 10.15 or newer
    |          `- note: add @available attribute to enclosing instance method
116 |         if day.isAvailable == false {
117 |             return Color(uiColor: .systemGray3)
/Users/admin/builder/spi-builder-workspace/Sources/FRHorizontalCalendar/FRHorizontalCalendarViewModel.swift:127:59: error: 'Color' is only available in macOS 10.15 or newer
  8 | import SwiftUI
  9 |
 10 | public final class FRHorizontalCalendarViewModel: ObservableObject {
    |                    `- note: add @available attribute to enclosing class
 11 |
 12 |     @Published var allDays: [FRCalendarDayModel] = []
    :
125 |     }
126 |
127 |     func backgroundColorFor(_ day: FRCalendarDayModel) -> Color {
    |          |                                                `- error: 'Color' is only available in macOS 10.15 or newer
    |          `- note: add @available attribute to enclosing instance method
128 |         if day.isSelected {
129 |             return Color.blue
<unknown>:0: error: cannot convert value of type 'KeyPath<FRHorizontalCalendarViewModel, [FRCalendarDayModel]>' to expected argument type 'ReferenceWritableKeyPath<FRHorizontalCalendarViewModel, [FRCalendarDayModel]>'
<unknown>:0: error: cannot convert value of type 'KeyPath<FRHorizontalCalendarViewModel, String>' to expected argument type 'ReferenceWritableKeyPath<FRHorizontalCalendarViewModel, String>'
<unknown>:0: error: cannot convert value of type 'KeyPath<FRHorizontalCalendarViewModel, String>' to expected argument type 'ReferenceWritableKeyPath<FRHorizontalCalendarViewModel, String>'
/Users/admin/builder/spi-builder-workspace/Sources/FRHorizontalCalendar/FRHorizontalCalendarViewModel.swift:10:51: error: 'ObservableObject' is only available in macOS 10.15 or newer
  8 | import SwiftUI
  9 |
 10 | public final class FRHorizontalCalendarViewModel: ObservableObject {
    |                    |                              `- error: 'ObservableObject' is only available in macOS 10.15 or newer
    |                    `- note: add @available attribute to enclosing class
 11 |
 12 |     @Published var allDays: [FRCalendarDayModel] = []
/Users/admin/builder/spi-builder-workspace/Sources/FRHorizontalCalendar/FRHorizontalCalendarViewModel.swift:62:56: error: 'now' is only available in macOS 12 or newer
  8 | import SwiftUI
  9 |
 10 | public final class FRHorizontalCalendarViewModel: ObservableObject {
    |                    `- note: add @available attribute to enclosing class
 11 |
 12 |     @Published var allDays: [FRCalendarDayModel] = []
    :
 59 |     }()
 60 |
 61 |     public init(startDate: Date) {
    |            `- note: add @available attribute to enclosing initializer
 62 |         var allDays = Date.dates(from: startDate, to: .now).map {
    |                                                        |- error: 'now' is only available in macOS 12 or newer
    |                                                        `- note: add 'if #available' version check
 63 |             FRCalendarDayModel(date: $0, isSelected: false, hasContentAvailable: false, isAvailable: true)
 64 |         }
/Users/admin/builder/spi-builder-workspace/Sources/FRHorizontalCalendar/FRHorizontalCalendarViewModel.swift:67:13: error: setter for 'allDays' is only available in macOS 10.15 or newer
  8 | import SwiftUI
  9 |
 10 | public final class FRHorizontalCalendarViewModel: ObservableObject {
    |                    `- note: add @available attribute to enclosing class
 11 |
 12 |     @Published var allDays: [FRCalendarDayModel] = []
    :
 59 |     }()
 60 |
 61 |     public init(startDate: Date) {
    |            `- note: add @available attribute to enclosing initializer
 62 |         var allDays = Date.dates(from: startDate, to: .now).map {
 63 |             FRCalendarDayModel(date: $0, isSelected: false, hasContentAvailable: false, isAvailable: true)
    :
 65 |         guard allDays.count > 7 else {
 66 |             assertionFailure("The calendar must be initialised with a start date that is earlier than 7 days ago")
 67 |             self.allDays = []
    |             |- error: setter for 'allDays' is only available in macOS 10.15 or newer
    |             `- note: add 'if #available' version check
 68 |             self.selectedDayIndex = 0
 69 |             self.selectedDayText = ""
/Users/admin/builder/spi-builder-workspace/Sources/FRHorizontalCalendar/FRHorizontalCalendarViewModel.swift:69:13: error: setter for 'selectedDayText' is only available in macOS 10.15 or newer
  8 | import SwiftUI
  9 |
 10 | public final class FRHorizontalCalendarViewModel: ObservableObject {
    |                    `- note: add @available attribute to enclosing class
 11 |
 12 |     @Published var allDays: [FRCalendarDayModel] = []
    :
 59 |     }()
 60 |
 61 |     public init(startDate: Date) {
    |            `- note: add @available attribute to enclosing initializer
 62 |         var allDays = Date.dates(from: startDate, to: .now).map {
 63 |             FRCalendarDayModel(date: $0, isSelected: false, hasContentAvailable: false, isAvailable: true)
    :
 67 |             self.allDays = []
 68 |             self.selectedDayIndex = 0
 69 |             self.selectedDayText = ""
    |             |- error: setter for 'selectedDayText' is only available in macOS 10.15 or newer
    |             `- note: add 'if #available' version check
 70 |             return
 71 |         }
/Users/admin/builder/spi-builder-workspace/Sources/FRHorizontalCalendar/FRHorizontalCalendarViewModel.swift:74:9: error: setter for 'allDays' is only available in macOS 10.15 or newer
  8 | import SwiftUI
  9 |
 10 | public final class FRHorizontalCalendarViewModel: ObservableObject {
    |                    `- note: add @available attribute to enclosing class
 11 |
 12 |     @Published var allDays: [FRCalendarDayModel] = []
    :
 59 |     }()
 60 |
 61 |     public init(startDate: Date) {
    |            `- note: add @available attribute to enclosing initializer
 62 |         var allDays = Date.dates(from: startDate, to: .now).map {
 63 |             FRCalendarDayModel(date: $0, isSelected: false, hasContentAvailable: false, isAvailable: true)
    :
 72 |         // select today
 73 |         allDays[allDays.count - 1].isSelected = true
 74 |         self.allDays = allDays
    |         |- error: setter for 'allDays' is only available in macOS 10.15 or newer
    |         `- note: add 'if #available' version check
 75 |         self.selectedDayIndex = allDays.count - 1
 76 |         self.selectedDayText = selectedDayDateFormatter.string(from: allDays.last!.date)
/Users/admin/builder/spi-builder-workspace/Sources/FRHorizontalCalendar/FRHorizontalCalendarViewModel.swift:76:9: error: setter for 'selectedDayText' is only available in macOS 10.15 or newer
  8 | import SwiftUI
  9 |
 10 | public final class FRHorizontalCalendarViewModel: ObservableObject {
    |                    `- note: add @available attribute to enclosing class
 11 |
 12 |     @Published var allDays: [FRCalendarDayModel] = []
    :
 59 |     }()
 60 |
 61 |     public init(startDate: Date) {
    |            `- note: add @available attribute to enclosing initializer
 62 |         var allDays = Date.dates(from: startDate, to: .now).map {
 63 |             FRCalendarDayModel(date: $0, isSelected: false, hasContentAvailable: false, isAvailable: true)
    :
 74 |         self.allDays = allDays
 75 |         self.selectedDayIndex = allDays.count - 1
 76 |         self.selectedDayText = selectedDayDateFormatter.string(from: allDays.last!.date)
    |         |- error: setter for 'selectedDayText' is only available in macOS 10.15 or newer
    |         `- note: add 'if #available' version check
 77 |
 78 |         insertAdditionalDaysToPositionFirstDayOfTheWeek()
/Users/admin/builder/spi-builder-workspace/Sources/FRHorizontalCalendar/FRHorizontalCalendarViewModel.swift:105:20: error: no exact matches in call to initializer
103 |     func dayStringForegroundColorFor(_ day: FRCalendarDayModel) -> Color {
104 |         if day.isAvailable == false {
105 |             return Color(uiColor: .systemGray5)
    |                    `- error: no exact matches in call to initializer
106 |         } else if day.isSelected {
107 |             return .white
SwiftUICore.Color:12:12: note: incorrect labels for candidate (have: '(uiColor:)', expected: '(_:)')
10 |         public var hashValue: Int { get }
11 |     }
12 |     public init(_ resolved: Color.Resolved)
   |            `- note: incorrect labels for candidate (have: '(uiColor:)', expected: '(_:)')
13 | }
SwiftUICore.Color:7:12: note: incorrect labels for candidate (have: '(uiColor:)', expected: '(_:)')
5 | @available(visionOS, introduced: 1.0, deprecated: 100000.0, message: "Use Color(cgColor:) when converting a CGColor, or create a standard Color directly")
6 | extension Color {
7 |     public init(_ cgColor: CGColor)
  |            `- note: incorrect labels for candidate (have: '(uiColor:)', expected: '(_:)')
8 | }
SwiftUICore.Color:3:12: note: incorrect labels for candidate (have: '(uiColor:)', expected: '(_:)')
1 | @available(iOS 13.0, macOS 10.15, tvOS 13.0, watchOS 6.0, *)
2 | extension Color {
3 |     public init(_ name: String, bundle: Bundle? = nil)
  |            `- note: incorrect labels for candidate (have: '(uiColor:)', expected: '(_:)')
4 |     public static let _mainNamedBundle: Bundle?
5 | }
SwiftUICore.Color:3:12: note: incorrect labels for candidate (have: '(uiColor:)', expected: '(_:)')
1 | @available(iOS 17.0, macOS 14.0, tvOS 17.0, watchOS 10.0, *)
2 | extension Color {
3 |     public init(_ resource: ColorResource)
  |            `- note: incorrect labels for candidate (have: '(uiColor:)', expected: '(_:)')
4 | }
/Users/admin/builder/spi-builder-workspace/Sources/FRHorizontalCalendar/FRHorizontalCalendarViewModel.swift:105:36: error: reference to member 'systemGray5' cannot be resolved without a contextual type
103 |     func dayStringForegroundColorFor(_ day: FRCalendarDayModel) -> Color {
104 |         if day.isAvailable == false {
105 |             return Color(uiColor: .systemGray5)
    |                                    `- error: reference to member 'systemGray5' cannot be resolved without a contextual type
106 |         } else if day.isSelected {
107 |             return .white
/Users/admin/builder/spi-builder-workspace/Sources/FRHorizontalCalendar/FRHorizontalCalendarViewModel.swift:107:21: error: 'white' is only available in macOS 10.15 or newer
  8 | import SwiftUI
  9 |
 10 | public final class FRHorizontalCalendarViewModel: ObservableObject {
    |                    `- note: add @available attribute to enclosing class
 11 |
 12 |     @Published var allDays: [FRCalendarDayModel] = []
    :
101 |     }
102 |
103 |     func dayStringForegroundColorFor(_ day: FRCalendarDayModel) -> Color {
    |          `- note: add @available attribute to enclosing instance method
104 |         if day.isAvailable == false {
105 |             return Color(uiColor: .systemGray5)
106 |         } else if day.isSelected {
107 |             return .white
    |                     |- error: 'white' is only available in macOS 10.15 or newer
    |                     `- note: add 'if #available' version check
108 |         } else if day.date == beginningOfToday {
109 |             return .blue
/Users/admin/builder/spi-builder-workspace/Sources/FRHorizontalCalendar/FRHorizontalCalendarViewModel.swift:109:21: error: 'blue' is only available in macOS 10.15 or newer
  8 | import SwiftUI
  9 |
 10 | public final class FRHorizontalCalendarViewModel: ObservableObject {
    |                    `- note: add @available attribute to enclosing class
 11 |
 12 |     @Published var allDays: [FRCalendarDayModel] = []
    :
101 |     }
102 |
103 |     func dayStringForegroundColorFor(_ day: FRCalendarDayModel) -> Color {
    |          `- note: add @available attribute to enclosing instance method
104 |         if day.isAvailable == false {
105 |             return Color(uiColor: .systemGray5)
    :
107 |             return .white
108 |         } else if day.date == beginningOfToday {
109 |             return .blue
    |                     |- error: 'blue' is only available in macOS 10.15 or newer
    |                     `- note: add 'if #available' version check
110 |         } else {
111 |             return Color(uiColor: .systemGray)
/Users/admin/builder/spi-builder-workspace/Sources/FRHorizontalCalendar/FRHorizontalCalendarViewModel.swift:111:25: error: extraneous argument label 'uiColor:' in call
109 |             return .blue
110 |         } else {
111 |             return Color(uiColor: .systemGray)
    |                         `- error: extraneous argument label 'uiColor:' in call
112 |         }
113 |     }
/Users/admin/builder/spi-builder-workspace/Sources/FRHorizontalCalendar/FRHorizontalCalendarViewModel.swift:117:20: error: no exact matches in call to initializer
115 |     func dateStringForegroundColorFor(_ day: FRCalendarDayModel) -> Color {
116 |         if day.isAvailable == false {
117 |             return Color(uiColor: .systemGray3)
    |                    `- error: no exact matches in call to initializer
118 |         } else if day.isSelected {
119 |             return .white
SwiftUICore.Color:12:12: note: incorrect labels for candidate (have: '(uiColor:)', expected: '(_:)')
10 |         public var hashValue: Int { get }
11 |     }
12 |     public init(_ resolved: Color.Resolved)
   |            `- note: incorrect labels for candidate (have: '(uiColor:)', expected: '(_:)')
13 | }
SwiftUICore.Color:7:12: note: incorrect labels for candidate (have: '(uiColor:)', expected: '(_:)')
5 | @available(visionOS, introduced: 1.0, deprecated: 100000.0, message: "Use Color(cgColor:) when converting a CGColor, or create a standard Color directly")
6 | extension Color {
7 |     public init(_ cgColor: CGColor)
  |            `- note: incorrect labels for candidate (have: '(uiColor:)', expected: '(_:)')
8 | }
SwiftUICore.Color:3:12: note: incorrect labels for candidate (have: '(uiColor:)', expected: '(_:)')
1 | @available(iOS 13.0, macOS 10.15, tvOS 13.0, watchOS 6.0, *)
2 | extension Color {
3 |     public init(_ name: String, bundle: Bundle? = nil)
  |            `- note: incorrect labels for candidate (have: '(uiColor:)', expected: '(_:)')
4 |     public static let _mainNamedBundle: Bundle?
5 | }
SwiftUICore.Color:3:12: note: incorrect labels for candidate (have: '(uiColor:)', expected: '(_:)')
1 | @available(iOS 17.0, macOS 14.0, tvOS 17.0, watchOS 10.0, *)
2 | extension Color {
3 |     public init(_ resource: ColorResource)
  |            `- note: incorrect labels for candidate (have: '(uiColor:)', expected: '(_:)')
4 | }
/Users/admin/builder/spi-builder-workspace/Sources/FRHorizontalCalendar/FRHorizontalCalendarViewModel.swift:117:36: error: reference to member 'systemGray3' cannot be resolved without a contextual type
115 |     func dateStringForegroundColorFor(_ day: FRCalendarDayModel) -> Color {
116 |         if day.isAvailable == false {
117 |             return Color(uiColor: .systemGray3)
    |                                    `- error: reference to member 'systemGray3' cannot be resolved without a contextual type
118 |         } else if day.isSelected {
119 |             return .white
/Users/admin/builder/spi-builder-workspace/Sources/FRHorizontalCalendar/FRHorizontalCalendarViewModel.swift:119:21: error: 'white' is only available in macOS 10.15 or newer
  8 | import SwiftUI
  9 |
 10 | public final class FRHorizontalCalendarViewModel: ObservableObject {
    |                    `- note: add @available attribute to enclosing class
 11 |
 12 |     @Published var allDays: [FRCalendarDayModel] = []
    :
113 |     }
114 |
115 |     func dateStringForegroundColorFor(_ day: FRCalendarDayModel) -> Color {
    |          `- note: add @available attribute to enclosing instance method
116 |         if day.isAvailable == false {
117 |             return Color(uiColor: .systemGray3)
118 |         } else if day.isSelected {
119 |             return .white
    |                     |- error: 'white' is only available in macOS 10.15 or newer
    |                     `- note: add 'if #available' version check
120 |         } else if day.date == beginningOfToday {
121 |             return .blue
/Users/admin/builder/spi-builder-workspace/Sources/FRHorizontalCalendar/FRHorizontalCalendarViewModel.swift:121:21: error: 'blue' is only available in macOS 10.15 or newer
  8 | import SwiftUI
  9 |
 10 | public final class FRHorizontalCalendarViewModel: ObservableObject {
    |                    `- note: add @available attribute to enclosing class
 11 |
 12 |     @Published var allDays: [FRCalendarDayModel] = []
    :
113 |     }
114 |
115 |     func dateStringForegroundColorFor(_ day: FRCalendarDayModel) -> Color {
    |          `- note: add @available attribute to enclosing instance method
116 |         if day.isAvailable == false {
117 |             return Color(uiColor: .systemGray3)
    :
119 |             return .white
120 |         } else if day.date == beginningOfToday {
121 |             return .blue
    |                     |- error: 'blue' is only available in macOS 10.15 or newer
    |                     `- note: add 'if #available' version check
122 |         } else {
123 |             return Color(uiColor: .label)
/Users/admin/builder/spi-builder-workspace/Sources/FRHorizontalCalendar/FRHorizontalCalendarViewModel.swift:123:20: error: no exact matches in call to initializer
121 |             return .blue
122 |         } else {
123 |             return Color(uiColor: .label)
    |                    `- error: no exact matches in call to initializer
124 |         }
125 |     }
SwiftUICore.Color:12:12: note: incorrect labels for candidate (have: '(uiColor:)', expected: '(_:)')
10 |         public var hashValue: Int { get }
11 |     }
12 |     public init(_ resolved: Color.Resolved)
   |            `- note: incorrect labels for candidate (have: '(uiColor:)', expected: '(_:)')
13 | }
SwiftUICore.Color:7:12: note: incorrect labels for candidate (have: '(uiColor:)', expected: '(_:)')
5 | @available(visionOS, introduced: 1.0, deprecated: 100000.0, message: "Use Color(cgColor:) when converting a CGColor, or create a standard Color directly")
6 | extension Color {
7 |     public init(_ cgColor: CGColor)
  |            `- note: incorrect labels for candidate (have: '(uiColor:)', expected: '(_:)')
8 | }
SwiftUICore.Color:3:12: note: incorrect labels for candidate (have: '(uiColor:)', expected: '(_:)')
1 | @available(iOS 13.0, macOS 10.15, tvOS 13.0, watchOS 6.0, *)
2 | extension Color {
3 |     public init(_ name: String, bundle: Bundle? = nil)
  |            `- note: incorrect labels for candidate (have: '(uiColor:)', expected: '(_:)')
4 |     public static let _mainNamedBundle: Bundle?
5 | }
SwiftUICore.Color:3:12: note: incorrect labels for candidate (have: '(uiColor:)', expected: '(_:)')
1 | @available(iOS 17.0, macOS 14.0, tvOS 17.0, watchOS 10.0, *)
2 | extension Color {
3 |     public init(_ resource: ColorResource)
  |            `- note: incorrect labels for candidate (have: '(uiColor:)', expected: '(_:)')
4 | }
/Users/admin/builder/spi-builder-workspace/Sources/FRHorizontalCalendar/FRHorizontalCalendarViewModel.swift:123:36: error: reference to member 'label' cannot be resolved without a contextual type
121 |             return .blue
122 |         } else {
123 |             return Color(uiColor: .label)
    |                                    `- error: reference to member 'label' cannot be resolved without a contextual type
124 |         }
125 |     }
/Users/admin/builder/spi-builder-workspace/Sources/FRHorizontalCalendar/FRHorizontalCalendarViewModel.swift:129:20: error: 'Color' is only available in macOS 10.15 or newer
  8 | import SwiftUI
  9 |
 10 | public final class FRHorizontalCalendarViewModel: ObservableObject {
    |                    `- note: add @available attribute to enclosing class
 11 |
 12 |     @Published var allDays: [FRCalendarDayModel] = []
    :
125 |     }
126 |
127 |     func backgroundColorFor(_ day: FRCalendarDayModel) -> Color {
    |          `- note: add @available attribute to enclosing instance method
128 |         if day.isSelected {
129 |             return Color.blue
    |                    |- error: 'Color' is only available in macOS 10.15 or newer
    |                    `- note: add 'if #available' version check
130 |         } else if day.hasContentAvailable {
131 |             return Color.blue.opacity(0.25)
/Users/admin/builder/spi-builder-workspace/Sources/FRHorizontalCalendar/FRHorizontalCalendarViewModel.swift:129:26: error: 'blue' is only available in macOS 10.15 or newer
  8 | import SwiftUI
  9 |
 10 | public final class FRHorizontalCalendarViewModel: ObservableObject {
    |                    `- note: add @available attribute to enclosing class
 11 |
 12 |     @Published var allDays: [FRCalendarDayModel] = []
    :
125 |     }
126 |
127 |     func backgroundColorFor(_ day: FRCalendarDayModel) -> Color {
    |          `- note: add @available attribute to enclosing instance method
128 |         if day.isSelected {
129 |             return Color.blue
    |                          |- error: 'blue' is only available in macOS 10.15 or newer
    |                          `- note: add 'if #available' version check
130 |         } else if day.hasContentAvailable {
131 |             return Color.blue.opacity(0.25)
/Users/admin/builder/spi-builder-workspace/Sources/FRHorizontalCalendar/FRHorizontalCalendarViewModel.swift:131:20: error: 'Color' is only available in macOS 10.15 or newer
  8 | import SwiftUI
  9 |
 10 | public final class FRHorizontalCalendarViewModel: ObservableObject {
    |                    `- note: add @available attribute to enclosing class
 11 |
 12 |     @Published var allDays: [FRCalendarDayModel] = []
    :
125 |     }
126 |
127 |     func backgroundColorFor(_ day: FRCalendarDayModel) -> Color {
    |          `- note: add @available attribute to enclosing instance method
128 |         if day.isSelected {
129 |             return Color.blue
130 |         } else if day.hasContentAvailable {
131 |             return Color.blue.opacity(0.25)
    |                    |- error: 'Color' is only available in macOS 10.15 or newer
    |                    `- note: add 'if #available' version check
132 |         } else {
133 |             return Color.clear
/Users/admin/builder/spi-builder-workspace/Sources/FRHorizontalCalendar/FRHorizontalCalendarViewModel.swift:131:26: error: 'blue' is only available in macOS 10.15 or newer
  8 | import SwiftUI
  9 |
 10 | public final class FRHorizontalCalendarViewModel: ObservableObject {
    |                    `- note: add @available attribute to enclosing class
 11 |
 12 |     @Published var allDays: [FRCalendarDayModel] = []
    :
125 |     }
126 |
127 |     func backgroundColorFor(_ day: FRCalendarDayModel) -> Color {
    |          `- note: add @available attribute to enclosing instance method
128 |         if day.isSelected {
129 |             return Color.blue
130 |         } else if day.hasContentAvailable {
131 |             return Color.blue.opacity(0.25)
    |                          |- error: 'blue' is only available in macOS 10.15 or newer
    |                          `- note: add 'if #available' version check
132 |         } else {
133 |             return Color.clear
/Users/admin/builder/spi-builder-workspace/Sources/FRHorizontalCalendar/FRHorizontalCalendarViewModel.swift:131:31: error: 'opacity' is only available in macOS 10.15 or newer
  8 | import SwiftUI
  9 |
 10 | public final class FRHorizontalCalendarViewModel: ObservableObject {
    |                    `- note: add @available attribute to enclosing class
 11 |
 12 |     @Published var allDays: [FRCalendarDayModel] = []
    :
125 |     }
126 |
127 |     func backgroundColorFor(_ day: FRCalendarDayModel) -> Color {
    |          `- note: add @available attribute to enclosing instance method
128 |         if day.isSelected {
129 |             return Color.blue
130 |         } else if day.hasContentAvailable {
131 |             return Color.blue.opacity(0.25)
    |                               |- error: 'opacity' is only available in macOS 10.15 or newer
    |                               `- note: add 'if #available' version check
132 |         } else {
133 |             return Color.clear
/Users/admin/builder/spi-builder-workspace/Sources/FRHorizontalCalendar/FRHorizontalCalendarViewModel.swift:133:20: error: 'Color' is only available in macOS 10.15 or newer
  8 | import SwiftUI
  9 |
 10 | public final class FRHorizontalCalendarViewModel: ObservableObject {
    |                    `- note: add @available attribute to enclosing class
 11 |
 12 |     @Published var allDays: [FRCalendarDayModel] = []
    :
125 |     }
126 |
127 |     func backgroundColorFor(_ day: FRCalendarDayModel) -> Color {
    |          `- note: add @available attribute to enclosing instance method
128 |         if day.isSelected {
129 |             return Color.blue
    :
131 |             return Color.blue.opacity(0.25)
132 |         } else {
133 |             return Color.clear
    |                    |- error: 'Color' is only available in macOS 10.15 or newer
    |                    `- note: add 'if #available' version check
134 |         }
135 |     }
/Users/admin/builder/spi-builder-workspace/Sources/FRHorizontalCalendar/FRHorizontalCalendarViewModel.swift:133:26: error: 'clear' is only available in macOS 10.15 or newer
  8 | import SwiftUI
  9 |
 10 | public final class FRHorizontalCalendarViewModel: ObservableObject {
    |                    `- note: add @available attribute to enclosing class
 11 |
 12 |     @Published var allDays: [FRCalendarDayModel] = []
    :
125 |     }
126 |
127 |     func backgroundColorFor(_ day: FRCalendarDayModel) -> Color {
    |          `- note: add @available attribute to enclosing instance method
128 |         if day.isSelected {
129 |             return Color.blue
    :
131 |             return Color.blue.opacity(0.25)
132 |         } else {
133 |             return Color.clear
    |                          |- error: 'clear' is only available in macOS 10.15 or newer
    |                          `- note: add 'if #available' version check
134 |         }
135 |     }
/Users/admin/builder/spi-builder-workspace/Sources/FRHorizontalCalendar/FRHorizontalCalendarViewModel.swift:155:9: error: setter for 'selectedDayText' is only available in macOS 10.15 or newer
  8 | import SwiftUI
  9 |
 10 | public final class FRHorizontalCalendarViewModel: ObservableObject {
    |                    `- note: add @available attribute to enclosing class
 11 |
 12 |     @Published var allDays: [FRCalendarDayModel] = []
    :
146 |     }
147 |
148 |     func didTapOnDayAt(_ index: Int) {
    |          `- note: add @available attribute to enclosing instance method
149 |         guard allDays[index].isAvailable else {
150 |             return
    :
153 |         // The animation is broken if the last day was selected
154 |         // or if we are about to select the last day
155 |         selectedDayText = selectedDayDateFormatter.string(from: allDays[index].date)
    |         |- error: setter for 'selectedDayText' is only available in macOS 10.15 or newer
    |         `- note: add 'if #available' version check
156 |         if selectedDayIndex == lastElementIndex || index == lastElementIndex {
157 |             updateSelection(index)
/Users/admin/builder/spi-builder-workspace/Sources/FRHorizontalCalendar/FRHorizontalCalendarViewModel.swift:159:13: error: 'withAnimation' is only available in macOS 10.15 or newer
  8 | import SwiftUI
  9 |
 10 | public final class FRHorizontalCalendarViewModel: ObservableObject {
    |                    `- note: add @available attribute to enclosing class
 11 |
 12 |     @Published var allDays: [FRCalendarDayModel] = []
    :
146 |     }
147 |
148 |     func didTapOnDayAt(_ index: Int) {
    |          `- note: add @available attribute to enclosing instance method
149 |         guard allDays[index].isAvailable else {
150 |             return
    :
157 |             updateSelection(index)
158 |         } else {
159 |             withAnimation {
    |             |- error: 'withAnimation' is only available in macOS 10.15 or newer
    |             `- note: add 'if #available' version check
160 |                 updateSelection(index)
161 |             }
/Users/admin/builder/spi-builder-workspace/Sources/FRHorizontalCalendar/FRHorizontalCalendarViewModel.swift:168:9: error: cannot pass as inout because setter for 'allDays' is only available in macOS 10.15 or newer
  8 | import SwiftUI
  9 |
 10 | public final class FRHorizontalCalendarViewModel: ObservableObject {
    |                    `- note: add @available attribute to enclosing class
 11 |
 12 |     @Published var allDays: [FRCalendarDayModel] = []
    :
165 |
166 |     // MARK: - Private
167 |     private func updateSelection(_ index: Int) {
    |                  `- note: add @available attribute to enclosing instance method
168 |         allDays[selectedDayIndex].isSelected.toggle()
    |         |- error: cannot pass as inout because setter for 'allDays' is only available in macOS 10.15 or newer
    |         `- note: add 'if #available' version check
169 |         allDays[index].isSelected.toggle()
170 |         selectedDayIndex = index
/Users/admin/builder/spi-builder-workspace/Sources/FRHorizontalCalendar/FRHorizontalCalendarViewModel.swift:169:9: error: cannot pass as inout because setter for 'allDays' is only available in macOS 10.15 or newer
  8 | import SwiftUI
  9 |
 10 | public final class FRHorizontalCalendarViewModel: ObservableObject {
    |                    `- note: add @available attribute to enclosing class
 11 |
 12 |     @Published var allDays: [FRCalendarDayModel] = []
    :
165 |
166 |     // MARK: - Private
167 |     private func updateSelection(_ index: Int) {
    |                  `- note: add @available attribute to enclosing instance method
168 |         allDays[selectedDayIndex].isSelected.toggle()
169 |         allDays[index].isSelected.toggle()
    |         |- error: cannot pass as inout because setter for 'allDays' is only available in macOS 10.15 or newer
    |         `- note: add 'if #available' version check
170 |         selectedDayIndex = index
171 |     }
/Users/admin/builder/spi-builder-workspace/Sources/FRHorizontalCalendar/FRHorizontalCalendarViewModel.swift:190:13: error: cannot pass as inout because setter for 'allDays' is only available in macOS 10.15 or newer
  8 | import SwiftUI
  9 |
 10 | public final class FRHorizontalCalendarViewModel: ObservableObject {
    |                    `- note: add @available attribute to enclosing class
 11 |
 12 |     @Published var allDays: [FRCalendarDayModel] = []
    :
171 |     }
172 |
173 |     private func insertAdditionalDaysToPositionFirstDayOfTheWeek() {
    |                  `- note: add @available attribute to enclosing instance method
174 |         // get the seventh day in the allDays
175 |         let seventhLastDay = allDays[allDays.count - 7]
    :
188 |                 return
189 |             }
190 |             self.allDays.append(.init(date: dateToAppend, isSelected: false, hasContentAvailable: false, isAvailable: false))
    |             |- error: cannot pass as inout because setter for 'allDays' is only available in macOS 10.15 or newer
    |             `- note: add 'if #available' version check
191 |         }
192 |     }
/Users/admin/builder/spi-builder-workspace/Sources/FRHorizontalCalendar/FRHorizontalCalendarViewModel.swift:245:13: error: 'withAnimation' is only available in macOS 10.15 or newer
  8 | import SwiftUI
  9 |
 10 | public final class FRHorizontalCalendarViewModel: ObservableObject {
    |                    `- note: add @available attribute to enclosing class
 11 |
 12 |     @Published var allDays: [FRCalendarDayModel] = []
    :
226 |     }
227 |
228 |     private func updateProminentMonthForGivenMonthsForDays(monthsForDays: [Int]) {
    |                  `- note: add @available attribute to enclosing instance method
229 |         var dictionaryToCount = [Int: Int]()
230 |         monthsForDays.forEach {
    :
243 |
244 |         if let mostFrequentElement {
245 |             withAnimation {
    |             |- error: 'withAnimation' is only available in macOS 10.15 or newer
    |             `- note: add 'if #available' version check
246 |                 mostProminentMonthText = mostProminentMonthFormatter.monthSymbols[mostFrequentElement - 1]
247 |             }
/Users/admin/builder/spi-builder-workspace/Sources/FRHorizontalCalendar/FRHorizontalCalendarViewModel.swift:246:17: error: setter for 'mostProminentMonthText' is only available in macOS 10.15 or newer
  8 | import SwiftUI
  9 |
 10 | public final class FRHorizontalCalendarViewModel: ObservableObject {
    |                    `- note: add @available attribute to enclosing class
 11 |
 12 |     @Published var allDays: [FRCalendarDayModel] = []
    :
226 |     }
227 |
228 |     private func updateProminentMonthForGivenMonthsForDays(monthsForDays: [Int]) {
    |                  `- note: add @available attribute to enclosing instance method
229 |         var dictionaryToCount = [Int: Int]()
230 |         monthsForDays.forEach {
    :
244 |         if let mostFrequentElement {
245 |             withAnimation {
246 |                 mostProminentMonthText = mostProminentMonthFormatter.monthSymbols[mostFrequentElement - 1]
    |                 |- error: setter for 'mostProminentMonthText' is only available in macOS 10.15 or newer
    |                 `- note: add 'if #available' version check
247 |             }
248 |         }
/Users/admin/builder/spi-builder-workspace/Sources/FRHorizontalCalendar/FRHorizontalCalendarViewModel.swift:257:17: error: cannot pass as inout because setter for 'allDays' is only available in macOS 10.15 or newer
251 |
252 | // MARK: - Public API
253 | public extension FRHorizontalCalendarViewModel {
    |        `- note: add @available attribute to enclosing extension
254 |     func setContentAvailableForDaysWithGivenDates(_ dates: [Date]) {
    |          `- note: add @available attribute to enclosing instance method
255 |         for date in dates {
256 |             if let matchingIndex = allDaysDictionary[Calendar.current.startOfDay(for: date)] {
257 |                 allDays[matchingIndex].hasContentAvailable = true
    |                 |- error: cannot pass as inout because setter for 'allDays' is only available in macOS 10.15 or newer
    |                 `- note: add 'if #available' version check
258 |             }
259 |         }
/Users/admin/builder/spi-builder-workspace/Sources/FRHorizontalCalendar/FRHorizontalCalendarViewModel.swift:267:13: error: cannot pass as inout because setter for 'allDays' is only available in macOS 10.15 or newer
251 |
252 | // MARK: - Public API
253 | public extension FRHorizontalCalendarViewModel {
    |        `- note: add @available attribute to enclosing extension
254 |     func setContentAvailableForDaysWithGivenDates(_ dates: [Date]) {
255 |         for date in dates {
    :
260 |     }
261 |
262 |     func removeContentAvailableForDayWithGivenDate(_ date: Date) {
    |          `- note: add @available attribute to enclosing instance method
263 |         let matchingIndex = allDays.firstIndex { model in
264 |             Calendar.current.isDate(model.date, inSameDayAs: date)
265 |         }
266 |         if let matchingIndex {
267 |             allDays[matchingIndex].hasContentAvailable = false
    |             |- error: cannot pass as inout because setter for 'allDays' is only available in macOS 10.15 or newer
    |             `- note: add 'if #available' version check
268 |         }
269 |     }
BUILD FAILURE 6.0 macosSpm