The Swift Package Index logo.Swift Package Index

Build Information

Failed to build SearchView, reference master (cd5bf3), with Swift 6.2 for macOS (SPM) on 21 Jun 2025 05:21:43 UTC.

Build Command

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

Build Log

========================================
RunAll
========================================
Builder version: 4.64.0
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/cs4alhaider/SearchView.git
Reference: master
Initialized empty Git repository in /Users/admin/builder/spi-builder-workspace/.git/
From https://github.com/cs4alhaider/SearchView
 * branch            master     -> FETCH_HEAD
 * [new branch]      master     -> origin/master
HEAD is now at cd5bf3d fixed a bug
Cloned https://github.com/cs4alhaider/SearchView.git
Revision (git rev-parse @):
cd5bf3dc5b81c2822864fa5a57b1892887a5b34f
SUCCESS checkout https://github.com/cs4alhaider/SearchView.git at master
========================================
Build
========================================
Selected platform:         macosSpm
Swift version:             6.2
Building package at path:  $PWD
https://github.com/cs4alhaider/SearchView.git
Running build ...
env DEVELOPER_DIR=/Applications/Xcode-26.0.0-Beta.app xcrun swift build --arch arm64
Building for debugging...
[0/2] Write sources
[1/2] Write swift-version-1EA4D86E10B52AF.txt
[3/6] Compiling SearchView SearchViewConfiguration.swift
[4/6] Compiling SearchView Searchable.swift
/Users/admin/builder/spi-builder-workspace/Sources/SearchView/Searchable.swift:11:29: error: 'Identifiable' is only available in macOS 10.15 or newer
 9 |
10 | /// Protocol for identifiable & Hashable objects that can be represented as a string.
11 | public protocol Searchable: Identifiable, Hashable {
   |                 |           `- error: 'Identifiable' is only available in macOS 10.15 or newer
   |                 `- note: add @available attribute to enclosing protocol
12 |     var idStringValue: String { get }
13 | }
error: emit-module command failed with exit code 1 (use -v to see invocation)
[5/6] Emitting module SearchView
/Users/admin/builder/spi-builder-workspace/Sources/SearchView/SearchView.swift:13:6: error: 'Binding' is only available in macOS 10.15 or newer
  9 |
 10 | /// Generic search view for displaying search results and handling recent searches.
 11 | public struct SearchView<Item, Content, Value>: View where Item: Searchable, Content: View, Value: Hashable {
    |               `- note: add @available attribute to enclosing generic struct
 12 |     /// Binding to the current search query input by the user.
 13 |     @Binding var searchQuery: String
    |      `- error: 'Binding' is only available in macOS 10.15 or newer
 14 |     /// State to track if the search bar is focused.
 15 |     @State private var isSearchBarFocused = false
/Users/admin/builder/spi-builder-workspace/Sources/SearchView/SearchView.swift:15:6: error: 'State' is only available in macOS 10.15 or newer
  9 |
 10 | /// Generic search view for displaying search results and handling recent searches.
 11 | public struct SearchView<Item, Content, Value>: View where Item: Searchable, Content: View, Value: Hashable {
    |               `- note: add @available attribute to enclosing generic struct
 12 |     /// Binding to the current search query input by the user.
 13 |     @Binding var searchQuery: String
 14 |     /// State to track if the search bar is focused.
 15 |     @State private var isSearchBarFocused = false
    |      `- error: 'State' is only available in macOS 10.15 or newer
 16 |     /// State to hold the IDs of recent searches, loaded from UserDefaults.
 17 |     @State private var recentSearchIDs: [String] = []
/Users/admin/builder/spi-builder-workspace/Sources/SearchView/SearchView.swift:17:6: error: 'State' is only available in macOS 10.15 or newer
  9 |
 10 | /// Generic search view for displaying search results and handling recent searches.
 11 | public struct SearchView<Item, Content, Value>: View where Item: Searchable, Content: View, Value: Hashable {
    |               `- note: add @available attribute to enclosing generic struct
 12 |     /// Binding to the current search query input by the user.
 13 |     @Binding var searchQuery: String
    :
 15 |     @State private var isSearchBarFocused = false
 16 |     /// State to hold the IDs of recent searches, loaded from UserDefaults.
 17 |     @State private var recentSearchIDs: [String] = []
    |      `- error: 'State' is only available in macOS 10.15 or newer
 18 |     /// Data list to be searched.
 19 |     let items: [Item]
/Users/admin/builder/spi-builder-workspace/Sources/SearchView/SearchView.swift:71:22: error: 'Binding' is only available in macOS 10.15 or newer
  9 |
 10 | /// Generic search view for displaying search results and handling recent searches.
 11 | public struct SearchView<Item, Content, Value>: View where Item: Searchable, Content: View, Value: Hashable {
    |               `- note: add @available attribute to enclosing generic struct
 12 |     /// Binding to the current search query input by the user.
 13 |     @Binding var searchQuery: String
    :
 66 |     /// This simple example creates a `SearchView` for a custom data type `MyDataItem` that searches
 67 |     /// the name property of each item.
 68 |     public init(
    |            `- note: add @available attribute to enclosing initializer
 69 |         items: [Item],
 70 |         searchableProperties: [KeyPath<Item, Value>],
 71 |         searchQuery: Binding<String>,
    |                      `- error: 'Binding' is only available in macOS 10.15 or newer
 72 |         configuration: SearchViewConfiguration = SearchViewConfiguration(),
 73 |         storeId: String? = nil,
/Users/admin/builder/spi-builder-workspace/Sources/SearchView/SearchView.swift:74:10: error: 'ViewBuilder' is only available in macOS 10.15 or newer
  9 |
 10 | /// Generic search view for displaying search results and handling recent searches.
 11 | public struct SearchView<Item, Content, Value>: View where Item: Searchable, Content: View, Value: Hashable {
    |               `- note: add @available attribute to enclosing generic struct
 12 |     /// Binding to the current search query input by the user.
 13 |     @Binding var searchQuery: String
    :
 66 |     /// This simple example creates a `SearchView` for a custom data type `MyDataItem` that searches
 67 |     /// the name property of each item.
 68 |     public init(
    |            `- note: add @available attribute to enclosing initializer
 69 |         items: [Item],
 70 |         searchableProperties: [KeyPath<Item, Value>],
    :
 72 |         configuration: SearchViewConfiguration = SearchViewConfiguration(),
 73 |         storeId: String? = nil,
 74 |         @ViewBuilder content: @escaping (Item, String) -> Content
    |          `- error: 'ViewBuilder' is only available in macOS 10.15 or newer
 75 |     ) {
 76 |         self.items = items
/Users/admin/builder/spi-builder-workspace/Sources/SearchView/SearchView.swift:86:27: error: 'View' is only available in macOS 10.15 or newer
  9 |
 10 | /// Generic search view for displaying search results and handling recent searches.
 11 | public struct SearchView<Item, Content, Value>: View where Item: Searchable, Content: View, Value: Hashable {
    |               `- note: add @available attribute to enclosing generic struct
 12 |     /// Binding to the current search query input by the user.
 13 |     @Binding var searchQuery: String
    :
 84 |     }
 85 |
 86 |     public var body: some View {
    |                |          `- error: 'View' is only available in macOS 10.15 or newer
    |                `- note: add @available attribute to enclosing property
 87 |         VStack {
 88 |             // Determine view based on search bar focus and query conditions
/Users/admin/builder/spi-builder-workspace/Sources/SearchView/SearchView.swift:117:39: error: 'View' is only available in macOS 10.15 or newer
  9 |
 10 | /// Generic search view for displaying search results and handling recent searches.
 11 | public struct SearchView<Item, Content, Value>: View where Item: Searchable, Content: View, Value: Hashable {
    |               `- note: add @available attribute to enclosing generic struct
 12 |     /// Binding to the current search query input by the user.
 13 |     @Binding var searchQuery: String
    :
115 |
116 |     /// View displayed when there are no search results and the search query is empty.
117 |     private var emptySearchView: some View {
    |                 |                     `- error: 'View' is only available in macOS 10.15 or newer
    |                 `- note: add @available attribute to enclosing property
118 |         VStack {
119 |             Text(configuration.emptySearchText)
/Users/admin/builder/spi-builder-workspace/Sources/SearchView/SearchView.swift:128:37: error: 'View' is only available in macOS 10.15 or newer
  9 |
 10 | /// Generic search view for displaying search results and handling recent searches.
 11 | public struct SearchView<Item, Content, Value>: View where Item: Searchable, Content: View, Value: Hashable {
    |               `- note: add @available attribute to enclosing generic struct
 12 |     /// Binding to the current search query input by the user.
 13 |     @Binding var searchQuery: String
    :
126 |
127 |     /// View for displaying a message when no search results are found.
128 |     private var noResultsView: some View {
    |                 |                   `- error: 'View' is only available in macOS 10.15 or newer
    |                 `- note: add @available attribute to enclosing property
129 |         VStack {
130 |             Text(configuration.noResultsText)
/Users/admin/builder/spi-builder-workspace/Sources/SearchView/SearchView.swift:138:42: error: 'View' is only available in macOS 10.15 or newer
  9 |
 10 | /// Generic search view for displaying search results and handling recent searches.
 11 | public struct SearchView<Item, Content, Value>: View where Item: Searchable, Content: View, Value: Hashable {
    |               `- note: add @available attribute to enclosing generic struct
 12 |     /// Binding to the current search query input by the user.
 13 |     @Binding var searchQuery: String
    :
136 |
137 |     /// View displaying the list of recent searches.
138 |     private var recentSearchesView: some View {
    |                 |                        `- error: 'View' is only available in macOS 10.15 or newer
    |                 `- note: add @available attribute to enclosing property
139 |         List {
140 |             Section {
/Users/admin/builder/spi-builder-workspace/Sources/SearchView/SearchView.swift:156:41: error: 'View' is only available in macOS 10.15 or newer
  9 |
 10 | /// Generic search view for displaying search results and handling recent searches.
 11 | public struct SearchView<Item, Content, Value>: View where Item: Searchable, Content: View, Value: Hashable {
    |               `- note: add @available attribute to enclosing generic struct
 12 |     /// Binding to the current search query input by the user.
 13 |     @Binding var searchQuery: String
    :
154 |
155 |     /// View displaying the search results based on the current query.
156 |     private var searchResultsView: some View {
    |                 |                       `- error: 'View' is only available in macOS 10.15 or newer
    |                 `- note: add @available attribute to enclosing property
157 |         List {
158 |             Section {
/Users/admin/builder/spi-builder-workspace/Sources/SearchView/SearchView.swift:11:87: error: 'View' is only available in macOS 10.15 or newer
  9 |
 10 | /// Generic search view for displaying search results and handling recent searches.
 11 | public struct SearchView<Item, Content, Value>: View where Item: Searchable, Content: View, Value: Hashable {
    |               |                                                                       `- error: 'View' is only available in macOS 10.15 or newer
    |               `- note: add @available attribute to enclosing generic struct
 12 |     /// Binding to the current search query input by the user.
 13 |     @Binding var searchQuery: String
/Users/admin/builder/spi-builder-workspace/Sources/SearchView/Searchable.swift:11:29: error: 'Identifiable' is only available in macOS 10.15 or newer
 9 |
10 | /// Protocol for identifiable & Hashable objects that can be represented as a string.
11 | public protocol Searchable: Identifiable, Hashable {
   |                 |           `- error: 'Identifiable' is only available in macOS 10.15 or newer
   |                 `- note: add @available attribute to enclosing protocol
12 |     var idStringValue: String { get }
13 | }
[6/6] Compiling SearchView SearchView.swift
/Users/admin/builder/spi-builder-workspace/Sources/SearchView/SearchView.swift:13:6: error: 'Binding' is only available in macOS 10.15 or newer
  9 |
 10 | /// Generic search view for displaying search results and handling recent searches.
 11 | public struct SearchView<Item, Content, Value>: View where Item: Searchable, Content: View, Value: Hashable {
    |               `- note: add @available attribute to enclosing generic struct
 12 |     /// Binding to the current search query input by the user.
 13 |     @Binding var searchQuery: String
    |      `- error: 'Binding' is only available in macOS 10.15 or newer
 14 |     /// State to track if the search bar is focused.
 15 |     @State private var isSearchBarFocused = false
/Users/admin/builder/spi-builder-workspace/Sources/SearchView/SearchView.swift:15:6: error: 'State' is only available in macOS 10.15 or newer
  9 |
 10 | /// Generic search view for displaying search results and handling recent searches.
 11 | public struct SearchView<Item, Content, Value>: View where Item: Searchable, Content: View, Value: Hashable {
    |               `- note: add @available attribute to enclosing generic struct
 12 |     /// Binding to the current search query input by the user.
 13 |     @Binding var searchQuery: String
 14 |     /// State to track if the search bar is focused.
 15 |     @State private var isSearchBarFocused = false
    |      `- error: 'State' is only available in macOS 10.15 or newer
 16 |     /// State to hold the IDs of recent searches, loaded from UserDefaults.
 17 |     @State private var recentSearchIDs: [String] = []
/Users/admin/builder/spi-builder-workspace/Sources/SearchView/SearchView.swift:17:6: error: 'State' is only available in macOS 10.15 or newer
  9 |
 10 | /// Generic search view for displaying search results and handling recent searches.
 11 | public struct SearchView<Item, Content, Value>: View where Item: Searchable, Content: View, Value: Hashable {
    |               `- note: add @available attribute to enclosing generic struct
 12 |     /// Binding to the current search query input by the user.
 13 |     @Binding var searchQuery: String
    :
 15 |     @State private var isSearchBarFocused = false
 16 |     /// State to hold the IDs of recent searches, loaded from UserDefaults.
 17 |     @State private var recentSearchIDs: [String] = []
    |      `- error: 'State' is only available in macOS 10.15 or newer
 18 |     /// Data list to be searched.
 19 |     let items: [Item]
/Users/admin/builder/spi-builder-workspace/Sources/SearchView/SearchView.swift:71:22: error: 'Binding' is only available in macOS 10.15 or newer
  9 |
 10 | /// Generic search view for displaying search results and handling recent searches.
 11 | public struct SearchView<Item, Content, Value>: View where Item: Searchable, Content: View, Value: Hashable {
    |               `- note: add @available attribute to enclosing generic struct
 12 |     /// Binding to the current search query input by the user.
 13 |     @Binding var searchQuery: String
    :
 66 |     /// This simple example creates a `SearchView` for a custom data type `MyDataItem` that searches
 67 |     /// the name property of each item.
 68 |     public init(
    |            `- note: add @available attribute to enclosing initializer
 69 |         items: [Item],
 70 |         searchableProperties: [KeyPath<Item, Value>],
 71 |         searchQuery: Binding<String>,
    |                      `- error: 'Binding' is only available in macOS 10.15 or newer
 72 |         configuration: SearchViewConfiguration = SearchViewConfiguration(),
 73 |         storeId: String? = nil,
/Users/admin/builder/spi-builder-workspace/Sources/SearchView/SearchView.swift:74:10: error: 'ViewBuilder' is only available in macOS 10.15 or newer
  9 |
 10 | /// Generic search view for displaying search results and handling recent searches.
 11 | public struct SearchView<Item, Content, Value>: View where Item: Searchable, Content: View, Value: Hashable {
    |               `- note: add @available attribute to enclosing generic struct
 12 |     /// Binding to the current search query input by the user.
 13 |     @Binding var searchQuery: String
    :
 66 |     /// This simple example creates a `SearchView` for a custom data type `MyDataItem` that searches
 67 |     /// the name property of each item.
 68 |     public init(
    |            `- note: add @available attribute to enclosing initializer
 69 |         items: [Item],
 70 |         searchableProperties: [KeyPath<Item, Value>],
    :
 72 |         configuration: SearchViewConfiguration = SearchViewConfiguration(),
 73 |         storeId: String? = nil,
 74 |         @ViewBuilder content: @escaping (Item, String) -> Content
    |          `- error: 'ViewBuilder' is only available in macOS 10.15 or newer
 75 |     ) {
 76 |         self.items = items
/Users/admin/builder/spi-builder-workspace/Sources/SearchView/SearchView.swift:86:27: error: 'View' is only available in macOS 10.15 or newer
  9 |
 10 | /// Generic search view for displaying search results and handling recent searches.
 11 | public struct SearchView<Item, Content, Value>: View where Item: Searchable, Content: View, Value: Hashable {
    |               `- note: add @available attribute to enclosing generic struct
 12 |     /// Binding to the current search query input by the user.
 13 |     @Binding var searchQuery: String
    :
 84 |     }
 85 |
 86 |     public var body: some View {
    |                |          `- error: 'View' is only available in macOS 10.15 or newer
    |                `- note: add @available attribute to enclosing property
 87 |         VStack {
 88 |             // Determine view based on search bar focus and query conditions
/Users/admin/builder/spi-builder-workspace/Sources/SearchView/SearchView.swift:117:39: error: 'View' is only available in macOS 10.15 or newer
  9 |
 10 | /// Generic search view for displaying search results and handling recent searches.
 11 | public struct SearchView<Item, Content, Value>: View where Item: Searchable, Content: View, Value: Hashable {
    |               `- note: add @available attribute to enclosing generic struct
 12 |     /// Binding to the current search query input by the user.
 13 |     @Binding var searchQuery: String
    :
115 |
116 |     /// View displayed when there are no search results and the search query is empty.
117 |     private var emptySearchView: some View {
    |                 |                     `- error: 'View' is only available in macOS 10.15 or newer
    |                 `- note: add @available attribute to enclosing property
118 |         VStack {
119 |             Text(configuration.emptySearchText)
/Users/admin/builder/spi-builder-workspace/Sources/SearchView/SearchView.swift:128:37: error: 'View' is only available in macOS 10.15 or newer
  9 |
 10 | /// Generic search view for displaying search results and handling recent searches.
 11 | public struct SearchView<Item, Content, Value>: View where Item: Searchable, Content: View, Value: Hashable {
    |               `- note: add @available attribute to enclosing generic struct
 12 |     /// Binding to the current search query input by the user.
 13 |     @Binding var searchQuery: String
    :
126 |
127 |     /// View for displaying a message when no search results are found.
128 |     private var noResultsView: some View {
    |                 |                   `- error: 'View' is only available in macOS 10.15 or newer
    |                 `- note: add @available attribute to enclosing property
129 |         VStack {
130 |             Text(configuration.noResultsText)
/Users/admin/builder/spi-builder-workspace/Sources/SearchView/SearchView.swift:138:42: error: 'View' is only available in macOS 10.15 or newer
  9 |
 10 | /// Generic search view for displaying search results and handling recent searches.
 11 | public struct SearchView<Item, Content, Value>: View where Item: Searchable, Content: View, Value: Hashable {
    |               `- note: add @available attribute to enclosing generic struct
 12 |     /// Binding to the current search query input by the user.
 13 |     @Binding var searchQuery: String
    :
136 |
137 |     /// View displaying the list of recent searches.
138 |     private var recentSearchesView: some View {
    |                 |                        `- error: 'View' is only available in macOS 10.15 or newer
    |                 `- note: add @available attribute to enclosing property
139 |         List {
140 |             Section {
/Users/admin/builder/spi-builder-workspace/Sources/SearchView/SearchView.swift:156:41: error: 'View' is only available in macOS 10.15 or newer
  9 |
 10 | /// Generic search view for displaying search results and handling recent searches.
 11 | public struct SearchView<Item, Content, Value>: View where Item: Searchable, Content: View, Value: Hashable {
    |               `- note: add @available attribute to enclosing generic struct
 12 |     /// Binding to the current search query input by the user.
 13 |     @Binding var searchQuery: String
    :
154 |
155 |     /// View displaying the search results based on the current query.
156 |     private var searchResultsView: some View {
    |                 |                       `- error: 'View' is only available in macOS 10.15 or newer
    |                 `- note: add @available attribute to enclosing property
157 |         List {
158 |             Section {
/Users/admin/builder/spi-builder-workspace/Sources/SearchView/SearchView.swift:11:87: error: 'View' is only available in macOS 10.15 or newer
  9 |
 10 | /// Generic search view for displaying search results and handling recent searches.
 11 | public struct SearchView<Item, Content, Value>: View where Item: Searchable, Content: View, Value: Hashable {
    |               |                                                                       `- error: 'View' is only available in macOS 10.15 or newer
    |               `- note: add @available attribute to enclosing generic struct
 12 |     /// Binding to the current search query input by the user.
 13 |     @Binding var searchQuery: String
/Users/admin/builder/spi-builder-workspace/Sources/SearchView/SearchView.swift:83:9: error: setter for 'recentSearchIDs' is only available in macOS 10.15 or newer
  9 |
 10 | /// Generic search view for displaying search results and handling recent searches.
 11 | public struct SearchView<Item, Content, Value>: View where Item: Searchable, Content: View, Value: Hashable {
    |               `- note: add @available attribute to enclosing generic struct
 12 |     /// Binding to the current search query input by the user.
 13 |     @Binding var searchQuery: String
    :
 66 |     /// This simple example creates a `SearchView` for a custom data type `MyDataItem` that searches
 67 |     /// the name property of each item.
 68 |     public init(
    |            `- note: add @available attribute to enclosing initializer
 69 |         items: [Item],
 70 |         searchableProperties: [KeyPath<Item, Value>],
    :
 81 |         let sid: String = storeId == nil ? ("RecentSearches_" + String(describing: Item.self)) : storeId!
 82 |         self.storeId = sid
 83 |         self.recentSearchIDs = UserDefaults.standard.stringArray(forKey: sid) ?? []
    |         |- error: setter for 'recentSearchIDs' is only available in macOS 10.15 or newer
    |         `- note: add 'if #available' version check
 84 |     }
 85 |
/Users/admin/builder/spi-builder-workspace/Sources/SearchView/SearchView.swift:87:9: error: 'VStack' is only available in macOS 10.15 or newer
  9 |
 10 | /// Generic search view for displaying search results and handling recent searches.
 11 | public struct SearchView<Item, Content, Value>: View where Item: Searchable, Content: View, Value: Hashable {
    |               `- note: add @available attribute to enclosing generic struct
 12 |     /// Binding to the current search query input by the user.
 13 |     @Binding var searchQuery: String
    :
 84 |     }
 85 |
 86 |     public var body: some View {
    |                `- note: add @available attribute to enclosing property
 87 |         VStack {
    |         |- error: 'VStack' is only available in macOS 10.15 or newer
    |         `- note: add 'if #available' version check
 88 |             // Determine view based on search bar focus and query conditions
 89 |             if isSearchBarFocused {
/Users/admin/builder/spi-builder-workspace/Sources/SearchView/SearchView.swift:87:9: warning: conformance of '_ConditionalContent<TrueContent, FalseContent>' to 'View' is only available in macOS 10.15 or newer; this is an error in the Swift 6 language mode
  9 |
 10 | /// Generic search view for displaying search results and handling recent searches.
 11 | public struct SearchView<Item, Content, Value>: View where Item: Searchable, Content: View, Value: Hashable {
    |               `- note: add @available attribute to enclosing generic struct
 12 |     /// Binding to the current search query input by the user.
 13 |     @Binding var searchQuery: String
    :
 84 |     }
 85 |
 86 |     public var body: some View {
    |                `- note: add @available attribute to enclosing property
 87 |         VStack {
    |         |- warning: conformance of '_ConditionalContent<TrueContent, FalseContent>' to 'View' is only available in macOS 10.15 or newer; this is an error in the Swift 6 language mode
    |         `- note: add 'if #available' version check
 88 |             // Determine view based on search bar focus and query conditions
 89 |             if isSearchBarFocused {
/Users/admin/builder/spi-builder-workspace/Sources/SearchView/SearchView.swift:93:48: error: 'buildEither(first:)' is only available in macOS 10.15 or newer
  9 |
 10 | /// Generic search view for displaying search results and handling recent searches.
 11 | public struct SearchView<Item, Content, Value>: View where Item: Searchable, Content: View, Value: Hashable {
    |               `- note: add @available attribute to enclosing generic struct
 12 |     /// Binding to the current search query input by the user.
 13 |     @Binding var searchQuery: String
    :
 84 |     }
 85 |
 86 |     public var body: some View {
    |                `- note: add @available attribute to enclosing property
 87 |         VStack {
 88 |             // Determine view based on search bar focus and query conditions
    :
 91 |                 if searchQuery.isEmpty || searchQuery.allSatisfy({ $0.isWhitespace }) {
 92 |                     // Show recent searches if available, otherwise show empty search view
 93 |                     if recentSearchIDs.isEmpty {
    |                                                |- error: 'buildEither(first:)' is only available in macOS 10.15 or newer
    |                                                `- note: add 'if #available' version check
 94 |                         emptySearchView
 95 |                     } else {
/Users/admin/builder/spi-builder-workspace/Sources/SearchView/SearchView.swift:95:28: error: 'buildEither(second:)' is only available in macOS 10.15 or newer
  9 |
 10 | /// Generic search view for displaying search results and handling recent searches.
 11 | public struct SearchView<Item, Content, Value>: View where Item: Searchable, Content: View, Value: Hashable {
    |               `- note: add @available attribute to enclosing generic struct
 12 |     /// Binding to the current search query input by the user.
 13 |     @Binding var searchQuery: String
    :
 84 |     }
 85 |
 86 |     public var body: some View {
    |                `- note: add @available attribute to enclosing property
 87 |         VStack {
 88 |             // Determine view based on search bar focus and query conditions
    :
 93 |                     if recentSearchIDs.isEmpty {
 94 |                         emptySearchView
 95 |                     } else {
    |                            |- error: 'buildEither(second:)' is only available in macOS 10.15 or newer
    |                            `- note: add 'if #available' version check
 96 |                         recentSearchesView
 97 |                     }
/Users/admin/builder/spi-builder-workspace/Sources/SearchView/SearchView.swift:91:87: warning: conformance of '_ConditionalContent<TrueContent, FalseContent>' to 'View' is only available in macOS 10.15 or newer; this is an error in the Swift 6 language mode
  9 |
 10 | /// Generic search view for displaying search results and handling recent searches.
 11 | public struct SearchView<Item, Content, Value>: View where Item: Searchable, Content: View, Value: Hashable {
    |               `- note: add @available attribute to enclosing generic struct
 12 |     /// Binding to the current search query input by the user.
 13 |     @Binding var searchQuery: String
    :
 84 |     }
 85 |
 86 |     public var body: some View {
    |                `- note: add @available attribute to enclosing property
 87 |         VStack {
 88 |             // Determine view based on search bar focus and query conditions
 89 |             if isSearchBarFocused {
 90 |                 // When search bar is focused but query is either empty or only whitespace
 91 |                 if searchQuery.isEmpty || searchQuery.allSatisfy({ $0.isWhitespace }) {
    |                                                                                       |- warning: conformance of '_ConditionalContent<TrueContent, FalseContent>' to 'View' is only available in macOS 10.15 or newer; this is an error in the Swift 6 language mode
    |                                                                                       `- note: add 'if #available' version check
 92 |                     // Show recent searches if available, otherwise show empty search view
 93 |                     if recentSearchIDs.isEmpty {
/Users/admin/builder/spi-builder-workspace/Sources/SearchView/SearchView.swift:91:87: error: 'buildEither(first:)' is only available in macOS 10.15 or newer
  9 |
 10 | /// Generic search view for displaying search results and handling recent searches.
 11 | public struct SearchView<Item, Content, Value>: View where Item: Searchable, Content: View, Value: Hashable {
    |               `- note: add @available attribute to enclosing generic struct
 12 |     /// Binding to the current search query input by the user.
 13 |     @Binding var searchQuery: String
    :
 84 |     }
 85 |
 86 |     public var body: some View {
    |                `- note: add @available attribute to enclosing property
 87 |         VStack {
 88 |             // Determine view based on search bar focus and query conditions
 89 |             if isSearchBarFocused {
 90 |                 // When search bar is focused but query is either empty or only whitespace
 91 |                 if searchQuery.isEmpty || searchQuery.allSatisfy({ $0.isWhitespace }) {
    |                                                                                       |- error: 'buildEither(first:)' is only available in macOS 10.15 or newer
    |                                                                                       `- note: add 'if #available' version check
 92 |                     // Show recent searches if available, otherwise show empty search view
 93 |                     if recentSearchIDs.isEmpty {
/Users/admin/builder/spi-builder-workspace/Sources/SearchView/SearchView.swift:91:87: error: 'buildEither(first:)' is only available in macOS 10.15 or newer
  9 |
 10 | /// Generic search view for displaying search results and handling recent searches.
 11 | public struct SearchView<Item, Content, Value>: View where Item: Searchable, Content: View, Value: Hashable {
    |               `- note: add @available attribute to enclosing generic struct
 12 |     /// Binding to the current search query input by the user.
 13 |     @Binding var searchQuery: String
    :
 84 |     }
 85 |
 86 |     public var body: some View {
    |                `- note: add @available attribute to enclosing property
 87 |         VStack {
 88 |             // Determine view based on search bar focus and query conditions
 89 |             if isSearchBarFocused {
 90 |                 // When search bar is focused but query is either empty or only whitespace
 91 |                 if searchQuery.isEmpty || searchQuery.allSatisfy({ $0.isWhitespace }) {
    |                                                                                       |- error: 'buildEither(first:)' is only available in macOS 10.15 or newer
    |                                                                                       `- note: add 'if #available' version check
 92 |                     // Show recent searches if available, otherwise show empty search view
 93 |                     if recentSearchIDs.isEmpty {
/Users/admin/builder/spi-builder-workspace/Sources/SearchView/SearchView.swift:99:54: error: 'buildEither(first:)' is only available in macOS 10.15 or newer
  9 |
 10 | /// Generic search view for displaying search results and handling recent searches.
 11 | public struct SearchView<Item, Content, Value>: View where Item: Searchable, Content: View, Value: Hashable {
    |               `- note: add @available attribute to enclosing generic struct
 12 |     /// Binding to the current search query input by the user.
 13 |     @Binding var searchQuery: String
    :
 84 |     }
 85 |
 86 |     public var body: some View {
    |                `- note: add @available attribute to enclosing property
 87 |         VStack {
 88 |             // Determine view based on search bar focus and query conditions
    :
 97 |                     }
 98 |                     // When search bar is focused and the filtered data list is empty
 99 |                 } else if filteredDataList().isEmpty {
    |                                                      |- error: 'buildEither(first:)' is only available in macOS 10.15 or newer
    |                                                      `- note: add 'if #available' version check
100 |                     noResultsView
101 |                     // Default to showing search results
/Users/admin/builder/spi-builder-workspace/Sources/SearchView/SearchView.swift:99:54: error: 'buildEither(second:)' is only available in macOS 10.15 or newer
  9 |
 10 | /// Generic search view for displaying search results and handling recent searches.
 11 | public struct SearchView<Item, Content, Value>: View where Item: Searchable, Content: View, Value: Hashable {
    |               `- note: add @available attribute to enclosing generic struct
 12 |     /// Binding to the current search query input by the user.
 13 |     @Binding var searchQuery: String
    :
 84 |     }
 85 |
 86 |     public var body: some View {
    |                `- note: add @available attribute to enclosing property
 87 |         VStack {
 88 |             // Determine view based on search bar focus and query conditions
    :
 97 |                     }
 98 |                     // When search bar is focused and the filtered data list is empty
 99 |                 } else if filteredDataList().isEmpty {
    |                                                      |- error: 'buildEither(second:)' is only available in macOS 10.15 or newer
    |                                                      `- note: add 'if #available' version check
100 |                     noResultsView
101 |                     // Default to showing search results
/Users/admin/builder/spi-builder-workspace/Sources/SearchView/SearchView.swift:102:24: error: 'buildEither(second:)' is only available in macOS 10.15 or newer
  9 |
 10 | /// Generic search view for displaying search results and handling recent searches.
 11 | public struct SearchView<Item, Content, Value>: View where Item: Searchable, Content: View, Value: Hashable {
    |               `- note: add @available attribute to enclosing generic struct
 12 |     /// Binding to the current search query input by the user.
 13 |     @Binding var searchQuery: String
    :
 84 |     }
 85 |
 86 |     public var body: some View {
    |                `- note: add @available attribute to enclosing property
 87 |         VStack {
 88 |             // Determine view based on search bar focus and query conditions
    :
100 |                     noResultsView
101 |                     // Default to showing search results
102 |                 } else {
    |                        |- error: 'buildEither(second:)' is only available in macOS 10.15 or newer
    |                        `- note: add 'if #available' version check
103 |                     searchResultsView
104 |                 }
/Users/admin/builder/spi-builder-workspace/Sources/SearchView/SearchView.swift:89:35: warning: conformance of '_ConditionalContent<TrueContent, FalseContent>' to 'View' is only available in macOS 10.15 or newer; this is an error in the Swift 6 language mode
  9 |
 10 | /// Generic search view for displaying search results and handling recent searches.
 11 | public struct SearchView<Item, Content, Value>: View where Item: Searchable, Content: View, Value: Hashable {
    |               `- note: add @available attribute to enclosing generic struct
 12 |     /// Binding to the current search query input by the user.
 13 |     @Binding var searchQuery: String
    :
 84 |     }
 85 |
 86 |     public var body: some View {
    |                `- note: add @available attribute to enclosing property
 87 |         VStack {
 88 |             // Determine view based on search bar focus and query conditions
 89 |             if isSearchBarFocused {
    |                                   |- warning: conformance of '_ConditionalContent<TrueContent, FalseContent>' to 'View' is only available in macOS 10.15 or newer; this is an error in the Swift 6 language mode
    |                                   `- note: add 'if #available' version check
 90 |                 // When search bar is focused but query is either empty or only whitespace
 91 |                 if searchQuery.isEmpty || searchQuery.allSatisfy({ $0.isWhitespace }) {
/Users/admin/builder/spi-builder-workspace/Sources/SearchView/SearchView.swift:89:35: error: 'buildEither(first:)' is only available in macOS 10.15 or newer
  9 |
 10 | /// Generic search view for displaying search results and handling recent searches.
 11 | public struct SearchView<Item, Content, Value>: View where Item: Searchable, Content: View, Value: Hashable {
    |               `- note: add @available attribute to enclosing generic struct
 12 |     /// Binding to the current search query input by the user.
 13 |     @Binding var searchQuery: String
    :
 84 |     }
 85 |
 86 |     public var body: some View {
    |                `- note: add @available attribute to enclosing property
 87 |         VStack {
 88 |             // Determine view based on search bar focus and query conditions
 89 |             if isSearchBarFocused {
    |                                   |- error: 'buildEither(first:)' is only available in macOS 10.15 or newer
    |                                   `- note: add 'if #available' version check
 90 |                 // When search bar is focused but query is either empty or only whitespace
 91 |                 if searchQuery.isEmpty || searchQuery.allSatisfy({ $0.isWhitespace }) {
/Users/admin/builder/spi-builder-workspace/Sources/SearchView/SearchView.swift:106:20: error: 'buildEither(second:)' is only available in macOS 10.15 or newer
  9 |
 10 | /// Generic search view for displaying search results and handling recent searches.
 11 | public struct SearchView<Item, Content, Value>: View where Item: Searchable, Content: View, Value: Hashable {
    |               `- note: add @available attribute to enclosing generic struct
 12 |     /// Binding to the current search query input by the user.
 13 |     @Binding var searchQuery: String
    :
 84 |     }
 85 |
 86 |     public var body: some View {
    |                `- note: add @available attribute to enclosing property
 87 |         VStack {
 88 |             // Determine view based on search bar focus and query conditions
    :
104 |                 }
105 |                 // Show search results when search bar is not focused
106 |             } else {
    |                    |- error: 'buildEither(second:)' is only available in macOS 10.15 or newer
    |                    `- note: add 'if #available' version check
107 |                 searchResultsView
108 |             }
/Users/admin/builder/spi-builder-workspace/Sources/SearchView/SearchView.swift:87:16: warning: conformance of '_ConditionalContent<TrueContent, FalseContent>' to 'View' is only available in macOS 10.15 or newer; this is an error in the Swift 6 language mode
  9 |
 10 | /// Generic search view for displaying search results and handling recent searches.
 11 | public struct SearchView<Item, Content, Value>: View where Item: Searchable, Content: View, Value: Hashable {
    |               `- note: add @available attribute to enclosing generic struct
 12 |     /// Binding to the current search query input by the user.
 13 |     @Binding var searchQuery: String
    :
 84 |     }
 85 |
 86 |     public var body: some View {
    |                `- note: add @available attribute to enclosing property
 87 |         VStack {
    |                |- warning: conformance of '_ConditionalContent<TrueContent, FalseContent>' to 'View' is only available in macOS 10.15 or newer; this is an error in the Swift 6 language mode
    |                `- note: add 'if #available' version check
 88 |             // Determine view based on search bar focus and query conditions
 89 |             if isSearchBarFocused {
/Users/admin/builder/spi-builder-workspace/Sources/SearchView/SearchView.swift:110:10: error: 'searchable(text:isPresented:placement:prompt:)' is only available in macOS 14.0 or newer
  9 |
 10 | /// Generic search view for displaying search results and handling recent searches.
 11 | public struct SearchView<Item, Content, Value>: View where Item: Searchable, Content: View, Value: Hashable {
    |               `- note: add @available attribute to enclosing generic struct
 12 |     /// Binding to the current search query input by the user.
 13 |     @Binding var searchQuery: String
    :
 84 |     }
 85 |
 86 |     public var body: some View {
    |                `- note: add @available attribute to enclosing property
 87 |         VStack {
 88 |             // Determine view based on search bar focus and query conditions
    :
108 |             }
109 |         }
110 |         .searchable(text: $searchQuery, isPresented: $isSearchBarFocused, prompt: configuration.searchPrompt)
    |          |- error: 'searchable(text:isPresented:placement:prompt:)' is only available in macOS 14.0 or newer
    |          `- note: add 'if #available' version check
111 |         .onAppear {
112 |             loadRecentSearchIDs()
/Users/admin/builder/spi-builder-workspace/Sources/SearchView/SearchView.swift:111:10: error: 'onAppear(perform:)' is only available in macOS 10.15 or newer
  9 |
 10 | /// Generic search view for displaying search results and handling recent searches.
 11 | public struct SearchView<Item, Content, Value>: View where Item: Searchable, Content: View, Value: Hashable {
    |               `- note: add @available attribute to enclosing generic struct
 12 |     /// Binding to the current search query input by the user.
 13 |     @Binding var searchQuery: String
    :
 84 |     }
 85 |
 86 |     public var body: some View {
    |                `- note: add @available attribute to enclosing property
 87 |         VStack {
 88 |             // Determine view based on search bar focus and query conditions
    :
109 |         }
110 |         .searchable(text: $searchQuery, isPresented: $isSearchBarFocused, prompt: configuration.searchPrompt)
111 |         .onAppear {
    |          |- error: 'onAppear(perform:)' is only available in macOS 10.15 or newer
    |          `- note: add 'if #available' version check
112 |             loadRecentSearchIDs()
113 |         }
/Users/admin/builder/spi-builder-workspace/Sources/SearchView/SearchView.swift:118:9: error: 'VStack' is only available in macOS 10.15 or newer
  9 |
 10 | /// Generic search view for displaying search results and handling recent searches.
 11 | public struct SearchView<Item, Content, Value>: View where Item: Searchable, Content: View, Value: Hashable {
    |               `- note: add @available attribute to enclosing generic struct
 12 |     /// Binding to the current search query input by the user.
 13 |     @Binding var searchQuery: String
    :
115 |
116 |     /// View displayed when there are no search results and the search query is empty.
117 |     private var emptySearchView: some View {
    |                 `- note: add @available attribute to enclosing property
118 |         VStack {
    |         |- error: 'VStack' is only available in macOS 10.15 or newer
    |         `- note: add 'if #available' version check
119 |             Text(configuration.emptySearchText)
120 |                 .foregroundColor(.gray)
/Users/admin/builder/spi-builder-workspace/Sources/SearchView/SearchView.swift:119:13: error: 'Text' is only available in macOS 10.15 or newer
  9 |
 10 | /// Generic search view for displaying search results and handling recent searches.
 11 | public struct SearchView<Item, Content, Value>: View where Item: Searchable, Content: View, Value: Hashable {
    |               `- note: add @available attribute to enclosing generic struct
 12 |     /// Binding to the current search query input by the user.
 13 |     @Binding var searchQuery: String
    :
115 |
116 |     /// View displayed when there are no search results and the search query is empty.
117 |     private var emptySearchView: some View {
    |                 `- note: add @available attribute to enclosing property
118 |         VStack {
119 |             Text(configuration.emptySearchText)
    |             |- error: 'Text' is only available in macOS 10.15 or newer
    |             `- note: add 'if #available' version check
120 |                 .foregroundColor(.gray)
121 |                 .italic()
/Users/admin/builder/spi-builder-workspace/Sources/SearchView/SearchView.swift:120:18: error: 'foregroundColor' is only available in macOS 10.15 or newer
  9 |
 10 | /// Generic search view for displaying search results and handling recent searches.
 11 | public struct SearchView<Item, Content, Value>: View where Item: Searchable, Content: View, Value: Hashable {
    |               `- note: add @available attribute to enclosing generic struct
 12 |     /// Binding to the current search query input by the user.
 13 |     @Binding var searchQuery: String
    :
115 |
116 |     /// View displayed when there are no search results and the search query is empty.
117 |     private var emptySearchView: some View {
    |                 `- note: add @available attribute to enclosing property
118 |         VStack {
119 |             Text(configuration.emptySearchText)
120 |                 .foregroundColor(.gray)
    |                  |- error: 'foregroundColor' is only available in macOS 10.15 or newer
    |                  `- note: add 'if #available' version check
121 |                 .italic()
122 |                 .padding()
/Users/admin/builder/spi-builder-workspace/Sources/SearchView/SearchView.swift:120:35: error: 'gray' is only available in macOS 10.15 or newer
  9 |
 10 | /// Generic search view for displaying search results and handling recent searches.
 11 | public struct SearchView<Item, Content, Value>: View where Item: Searchable, Content: View, Value: Hashable {
    |               `- note: add @available attribute to enclosing generic struct
 12 |     /// Binding to the current search query input by the user.
 13 |     @Binding var searchQuery: String
    :
115 |
116 |     /// View displayed when there are no search results and the search query is empty.
117 |     private var emptySearchView: some View {
    |                 `- note: add @available attribute to enclosing property
118 |         VStack {
119 |             Text(configuration.emptySearchText)
120 |                 .foregroundColor(.gray)
    |                                   |- error: 'gray' is only available in macOS 10.15 or newer
    |                                   `- note: add 'if #available' version check
121 |                 .italic()
122 |                 .padding()
/Users/admin/builder/spi-builder-workspace/Sources/SearchView/SearchView.swift:121:18: error: 'italic()' is only available in macOS 10.15 or newer
  9 |
 10 | /// Generic search view for displaying search results and handling recent searches.
 11 | public struct SearchView<Item, Content, Value>: View where Item: Searchable, Content: View, Value: Hashable {
    |               `- note: add @available attribute to enclosing generic struct
 12 |     /// Binding to the current search query input by the user.
 13 |     @Binding var searchQuery: String
    :
115 |
116 |     /// View displayed when there are no search results and the search query is empty.
117 |     private var emptySearchView: some View {
    |                 `- note: add @available attribute to enclosing property
118 |         VStack {
119 |             Text(configuration.emptySearchText)
120 |                 .foregroundColor(.gray)
121 |                 .italic()
    |                  |- error: 'italic()' is only available in macOS 10.15 or newer
    |                  `- note: add 'if #available' version check
122 |                 .padding()
123 |             Spacer()
/Users/admin/builder/spi-builder-workspace/Sources/SearchView/SearchView.swift:122:18: error: 'padding' is only available in macOS 10.15 or newer
  9 |
 10 | /// Generic search view for displaying search results and handling recent searches.
 11 | public struct SearchView<Item, Content, Value>: View where Item: Searchable, Content: View, Value: Hashable {
    |               `- note: add @available attribute to enclosing generic struct
 12 |     /// Binding to the current search query input by the user.
 13 |     @Binding var searchQuery: String
    :
115 |
116 |     /// View displayed when there are no search results and the search query is empty.
117 |     private var emptySearchView: some View {
    |                 `- note: add @available attribute to enclosing property
118 |         VStack {
119 |             Text(configuration.emptySearchText)
120 |                 .foregroundColor(.gray)
121 |                 .italic()
122 |                 .padding()
    |                  |- error: 'padding' is only available in macOS 10.15 or newer
    |                  `- note: add 'if #available' version check
123 |             Spacer()
124 |         }
/Users/admin/builder/spi-builder-workspace/Sources/SearchView/SearchView.swift:123:13: warning: conformance of 'Spacer' to 'View' is only available in macOS 10.15 or newer; this is an error in the Swift 6 language mode
  9 |
 10 | /// Generic search view for displaying search results and handling recent searches.
 11 | public struct SearchView<Item, Content, Value>: View where Item: Searchable, Content: View, Value: Hashable {
    |               `- note: add @available attribute to enclosing generic struct
 12 |     /// Binding to the current search query input by the user.
 13 |     @Binding var searchQuery: String
    :
115 |
116 |     /// View displayed when there are no search results and the search query is empty.
117 |     private var emptySearchView: some View {
    |                 `- note: add @available attribute to enclosing property
118 |         VStack {
119 |             Text(configuration.emptySearchText)
    :
121 |                 .italic()
122 |                 .padding()
123 |             Spacer()
    |             |- warning: conformance of 'Spacer' to 'View' is only available in macOS 10.15 or newer; this is an error in the Swift 6 language mode
    |             `- note: add 'if #available' version check
124 |         }
125 |     }
/Users/admin/builder/spi-builder-workspace/Sources/SearchView/SearchView.swift:123:13: error: 'Spacer' is only available in macOS 10.15 or newer
  9 |
 10 | /// Generic search view for displaying search results and handling recent searches.
 11 | public struct SearchView<Item, Content, Value>: View where Item: Searchable, Content: View, Value: Hashable {
    |               `- note: add @available attribute to enclosing generic struct
 12 |     /// Binding to the current search query input by the user.
 13 |     @Binding var searchQuery: String
    :
115 |
116 |     /// View displayed when there are no search results and the search query is empty.
117 |     private var emptySearchView: some View {
    |                 `- note: add @available attribute to enclosing property
118 |         VStack {
119 |             Text(configuration.emptySearchText)
    :
121 |                 .italic()
122 |                 .padding()
123 |             Spacer()
    |             |- error: 'Spacer' is only available in macOS 10.15 or newer
    |             `- note: add 'if #available' version check
124 |         }
125 |     }
/Users/admin/builder/spi-builder-workspace/Sources/SearchView/SearchView.swift:118:16: warning: conformance of 'Spacer' to 'View' is only available in macOS 10.15 or newer; this is an error in the Swift 6 language mode
  9 |
 10 | /// Generic search view for displaying search results and handling recent searches.
 11 | public struct SearchView<Item, Content, Value>: View where Item: Searchable, Content: View, Value: Hashable {
    |               `- note: add @available attribute to enclosing generic struct
 12 |     /// Binding to the current search query input by the user.
 13 |     @Binding var searchQuery: String
    :
115 |
116 |     /// View displayed when there are no search results and the search query is empty.
117 |     private var emptySearchView: some View {
    |                 `- note: add @available attribute to enclosing property
118 |         VStack {
    |                |- warning: conformance of 'Spacer' to 'View' is only available in macOS 10.15 or newer; this is an error in the Swift 6 language mode
    |                `- note: add 'if #available' version check
119 |             Text(configuration.emptySearchText)
120 |                 .foregroundColor(.gray)
/Users/admin/builder/spi-builder-workspace/Sources/SearchView/SearchView.swift:129:9: error: 'VStack' is only available in macOS 10.15 or newer
  9 |
 10 | /// Generic search view for displaying search results and handling recent searches.
 11 | public struct SearchView<Item, Content, Value>: View where Item: Searchable, Content: View, Value: Hashable {
    |               `- note: add @available attribute to enclosing generic struct
 12 |     /// Binding to the current search query input by the user.
 13 |     @Binding var searchQuery: String
    :
126 |
127 |     /// View for displaying a message when no search results are found.
128 |     private var noResultsView: some View {
    |                 `- note: add @available attribute to enclosing property
129 |         VStack {
    |         |- error: 'VStack' is only available in macOS 10.15 or newer
    |         `- note: add 'if #available' version check
130 |             Text(configuration.noResultsText)
131 |                 .foregroundColor(.gray)
/Users/admin/builder/spi-builder-workspace/Sources/SearchView/SearchView.swift:130:13: error: 'Text' is only available in macOS 10.15 or newer
  9 |
 10 | /// Generic search view for displaying search results and handling recent searches.
 11 | public struct SearchView<Item, Content, Value>: View where Item: Searchable, Content: View, Value: Hashable {
    |               `- note: add @available attribute to enclosing generic struct
 12 |     /// Binding to the current search query input by the user.
 13 |     @Binding var searchQuery: String
    :
126 |
127 |     /// View for displaying a message when no search results are found.
128 |     private var noResultsView: some View {
    |                 `- note: add @available attribute to enclosing property
129 |         VStack {
130 |             Text(configuration.noResultsText)
    |             |- error: 'Text' is only available in macOS 10.15 or newer
    |             `- note: add 'if #available' version check
131 |                 .foregroundColor(.gray)
132 |                 .padding()
/Users/admin/builder/spi-builder-workspace/Sources/SearchView/SearchView.swift:131:18: error: 'foregroundColor' is only available in macOS 10.15 or newer
  9 |
 10 | /// Generic search view for displaying search results and handling recent searches.
 11 | public struct SearchView<Item, Content, Value>: View where Item: Searchable, Content: View, Value: Hashable {
    |               `- note: add @available attribute to enclosing generic struct
 12 |     /// Binding to the current search query input by the user.
 13 |     @Binding var searchQuery: String
    :
126 |
127 |     /// View for displaying a message when no search results are found.
128 |     private var noResultsView: some View {
    |                 `- note: add @available attribute to enclosing property
129 |         VStack {
130 |             Text(configuration.noResultsText)
131 |                 .foregroundColor(.gray)
    |                  |- error: 'foregroundColor' is only available in macOS 10.15 or newer
    |                  `- note: add 'if #available' version check
132 |                 .padding()
133 |             Spacer()
/Users/admin/builder/spi-builder-workspace/Sources/SearchView/SearchView.swift:131:35: error: 'gray' is only available in macOS 10.15 or newer
  9 |
 10 | /// Generic search view for displaying search results and handling recent searches.
 11 | public struct SearchView<Item, Content, Value>: View where Item: Searchable, Content: View, Value: Hashable {
    |               `- note: add @available attribute to enclosing generic struct
 12 |     /// Binding to the current search query input by the user.
 13 |     @Binding var searchQuery: String
    :
126 |
127 |     /// View for displaying a message when no search results are found.
128 |     private var noResultsView: some View {
    |                 `- note: add @available attribute to enclosing property
129 |         VStack {
130 |             Text(configuration.noResultsText)
131 |                 .foregroundColor(.gray)
    |                                   |- error: 'gray' is only available in macOS 10.15 or newer
    |                                   `- note: add 'if #available' version check
132 |                 .padding()
133 |             Spacer()
/Users/admin/builder/spi-builder-workspace/Sources/SearchView/SearchView.swift:132:18: error: 'padding' is only available in macOS 10.15 or newer
  9 |
 10 | /// Generic search view for displaying search results and handling recent searches.
 11 | public struct SearchView<Item, Content, Value>: View where Item: Searchable, Content: View, Value: Hashable {
    |               `- note: add @available attribute to enclosing generic struct
 12 |     /// Binding to the current search query input by the user.
 13 |     @Binding var searchQuery: String
    :
126 |
127 |     /// View for displaying a message when no search results are found.
128 |     private var noResultsView: some View {
    |                 `- note: add @available attribute to enclosing property
129 |         VStack {
130 |             Text(configuration.noResultsText)
131 |                 .foregroundColor(.gray)
132 |                 .padding()
    |                  |- error: 'padding' is only available in macOS 10.15 or newer
    |                  `- note: add 'if #available' version check
133 |             Spacer()
134 |         }
/Users/admin/builder/spi-builder-workspace/Sources/SearchView/SearchView.swift:133:13: warning: conformance of 'Spacer' to 'View' is only available in macOS 10.15 or newer; this is an error in the Swift 6 language mode
  9 |
 10 | /// Generic search view for displaying search results and handling recent searches.
 11 | public struct SearchView<Item, Content, Value>: View where Item: Searchable, Content: View, Value: Hashable {
    |               `- note: add @available attribute to enclosing generic struct
 12 |     /// Binding to the current search query input by the user.
 13 |     @Binding var searchQuery: String
    :
126 |
127 |     /// View for displaying a message when no search results are found.
128 |     private var noResultsView: some View {
    |                 `- note: add @available attribute to enclosing property
129 |         VStack {
130 |             Text(configuration.noResultsText)
131 |                 .foregroundColor(.gray)
132 |                 .padding()
133 |             Spacer()
    |             |- warning: conformance of 'Spacer' to 'View' is only available in macOS 10.15 or newer; this is an error in the Swift 6 language mode
    |             `- note: add 'if #available' version check
134 |         }
135 |     }
/Users/admin/builder/spi-builder-workspace/Sources/SearchView/SearchView.swift:133:13: error: 'Spacer' is only available in macOS 10.15 or newer
  9 |
 10 | /// Generic search view for displaying search results and handling recent searches.
 11 | public struct SearchView<Item, Content, Value>: View where Item: Searchable, Content: View, Value: Hashable {
    |               `- note: add @available attribute to enclosing generic struct
 12 |     /// Binding to the current search query input by the user.
 13 |     @Binding var searchQuery: String
    :
126 |
127 |     /// View for displaying a message when no search results are found.
128 |     private var noResultsView: some View {
    |                 `- note: add @available attribute to enclosing property
129 |         VStack {
130 |             Text(configuration.noResultsText)
131 |                 .foregroundColor(.gray)
132 |                 .padding()
133 |             Spacer()
    |             |- error: 'Spacer' is only available in macOS 10.15 or newer
    |             `- note: add 'if #available' version check
134 |         }
135 |     }
/Users/admin/builder/spi-builder-workspace/Sources/SearchView/SearchView.swift:129:16: warning: conformance of 'Spacer' to 'View' is only available in macOS 10.15 or newer; this is an error in the Swift 6 language mode
  9 |
 10 | /// Generic search view for displaying search results and handling recent searches.
 11 | public struct SearchView<Item, Content, Value>: View where Item: Searchable, Content: View, Value: Hashable {
    |               `- note: add @available attribute to enclosing generic struct
 12 |     /// Binding to the current search query input by the user.
 13 |     @Binding var searchQuery: String
    :
126 |
127 |     /// View for displaying a message when no search results are found.
128 |     private var noResultsView: some View {
    |                 `- note: add @available attribute to enclosing property
129 |         VStack {
    |                |- warning: conformance of 'Spacer' to 'View' is only available in macOS 10.15 or newer; this is an error in the Swift 6 language mode
    |                `- note: add 'if #available' version check
130 |             Text(configuration.noResultsText)
131 |                 .foregroundColor(.gray)
/Users/admin/builder/spi-builder-workspace/Sources/SearchView/SearchView.swift:139:9: warning: conformance of 'Section<Parent, Content, Footer>' to 'View' is only available in macOS 10.15 or newer; this is an error in the Swift 6 language mode
  9 |
 10 | /// Generic search view for displaying search results and handling recent searches.
 11 | public struct SearchView<Item, Content, Value>: View where Item: Searchable, Content: View, Value: Hashable {
    |               `- note: add @available attribute to enclosing generic struct
 12 |     /// Binding to the current search query input by the user.
 13 |     @Binding var searchQuery: String
    :
136 |
137 |     /// View displaying the list of recent searches.
138 |     private var recentSearchesView: some View {
    |                 `- note: add @available attribute to enclosing property
139 |         List {
    |         |- warning: conformance of 'Section<Parent, Content, Footer>' to 'View' is only available in macOS 10.15 or newer; this is an error in the Swift 6 language mode
    |         `- note: add 'if #available' version check
140 |             Section {
141 |                 ForEach(recentItems()) { item in
/Users/admin/builder/spi-builder-workspace/Sources/SearchView/SearchView.swift:139:9: error: 'List' is only available in macOS 10.15 or newer
  9 |
 10 | /// Generic search view for displaying search results and handling recent searches.
 11 | public struct SearchView<Item, Content, Value>: View where Item: Searchable, Content: View, Value: Hashable {
    |               `- note: add @available attribute to enclosing generic struct
 12 |     /// Binding to the current search query input by the user.
 13 |     @Binding var searchQuery: String
    :
136 |
137 |     /// View displaying the list of recent searches.
138 |     private var recentSearchesView: some View {
    |                 `- note: add @available attribute to enclosing property
139 |         List {
    |         |- error: 'List' is only available in macOS 10.15 or newer
    |         `- note: add 'if #available' version check
140 |             Section {
141 |                 ForEach(recentItems()) { item in
/Users/admin/builder/spi-builder-workspace/Sources/SearchView/SearchView.swift:139:9: error: 'init(content:)' is only available in macOS 10.15 or newer
  9 |
 10 | /// Generic search view for displaying search results and handling recent searches.
 11 | public struct SearchView<Item, Content, Value>: View where Item: Searchable, Content: View, Value: Hashable {
    |               `- note: add @available attribute to enclosing generic struct
 12 |     /// Binding to the current search query input by the user.
 13 |     @Binding var searchQuery: String
    :
136 |
137 |     /// View displaying the list of recent searches.
138 |     private var recentSearchesView: some View {
    |                 `- note: add @available attribute to enclosing property
139 |         List {
    |         |- error: 'init(content:)' is only available in macOS 10.15 or newer
    |         `- note: add 'if #available' version check
140 |             Section {
141 |                 ForEach(recentItems()) { item in
/Users/admin/builder/spi-builder-workspace/Sources/SearchView/SearchView.swift:139:14: warning: conformance of 'Text' to 'View' is only available in macOS 10.15 or newer; this is an error in the Swift 6 language mode
  9 |
 10 | /// Generic search view for displaying search results and handling recent searches.
 11 | public struct SearchView<Item, Content, Value>: View where Item: Searchable, Content: View, Value: Hashable {
    |               `- note: add @available attribute to enclosing generic struct
 12 |     /// Binding to the current search query input by the user.
 13 |     @Binding var searchQuery: String
    :
136 |
137 |     /// View displaying the list of recent searches.
138 |     private var recentSearchesView: some View {
    |                 `- note: add @available attribute to enclosing property
139 |         List {
    |              |- warning: conformance of 'Text' to 'View' is only available in macOS 10.15 or newer; this is an error in the Swift 6 language mode
    |              `- note: add 'if #available' version check
140 |             Section {
141 |                 ForEach(recentItems()) { item in
/Users/admin/builder/spi-builder-workspace/Sources/SearchView/SearchView.swift:140:13: warning: conformance of 'Section<Parent, Content, Footer>' to 'View' is only available in macOS 10.15 or newer; this is an error in the Swift 6 language mode
  9 |
 10 | /// Generic search view for displaying search results and handling recent searches.
 11 | public struct SearchView<Item, Content, Value>: View where Item: Searchable, Content: View, Value: Hashable {
    |               `- note: add @available attribute to enclosing generic struct
 12 |     /// Binding to the current search query input by the user.
 13 |     @Binding var searchQuery: String
    :
136 |
137 |     /// View displaying the list of recent searches.
138 |     private var recentSearchesView: some View {
    |                 `- note: add @available attribute to enclosing property
139 |         List {
140 |             Section {
    |             |- warning: conformance of 'Section<Parent, Content, Footer>' to 'View' is only available in macOS 10.15 or newer; this is an error in the Swift 6 language mode
    |             `- note: add 'if #available' version check
141 |                 ForEach(recentItems()) { item in
142 |                     content(item, "")
/Users/admin/builder/spi-builder-workspace/Sources/SearchView/SearchView.swift:140:13: error: 'Section' is only available in macOS 10.15 or newer
  9 |
 10 | /// Generic search view for displaying search results and handling recent searches.
 11 | public struct SearchView<Item, Content, Value>: View where Item: Searchable, Content: View, Value: Hashable {
    |               `- note: add @available attribute to enclosing generic struct
 12 |     /// Binding to the current search query input by the user.
 13 |     @Binding var searchQuery: String
    :
136 |
137 |     /// View displaying the list of recent searches.
138 |     private var recentSearchesView: some View {
    |                 `- note: add @available attribute to enclosing property
139 |         List {
140 |             Section {
    |             |- error: 'Section' is only available in macOS 10.15 or newer
    |             `- note: add 'if #available' version check
141 |                 ForEach(recentItems()) { item in
142 |                     content(item, "")
/Users/admin/builder/spi-builder-workspace/Sources/SearchView/SearchView.swift:140:13: error: 'init(content:header:)' is only available in macOS 10.15 or newer
  9 |
 10 | /// Generic search view for displaying search results and handling recent searches.
 11 | public struct SearchView<Item, Content, Value>: View where Item: Searchable, Content: View, Value: Hashable {
    |               `- note: add @available attribute to enclosing generic struct
 12 |     /// Binding to the current search query input by the user.
 13 |     @Binding var searchQuery: String
    :
136 |
137 |     /// View displaying the list of recent searches.
138 |     private var recentSearchesView: some View {
    |                 `- note: add @available attribute to enclosing property
139 |         List {
140 |             Section {
    |             |- error: 'init(content:header:)' is only available in macOS 10.15 or newer
    |             `- note: add 'if #available' version check
141 |                 ForEach(recentItems()) { item in
142 |                     content(item, "")
/Users/admin/builder/spi-builder-workspace/Sources/SearchView/SearchView.swift:141:17: warning: conformance of 'ForEach<Data, ID, Content>' to 'View' is only available in macOS 10.15 or newer; this is an error in the Swift 6 language mode
  9 |
 10 | /// Generic search view for displaying search results and handling recent searches.
 11 | public struct SearchView<Item, Content, Value>: View where Item: Searchable, Content: View, Value: Hashable {
    |               `- note: add @available attribute to enclosing generic struct
 12 |     /// Binding to the current search query input by the user.
 13 |     @Binding var searchQuery: String
    :
136 |
137 |     /// View displaying the list of recent searches.
138 |     private var recentSearchesView: some View {
    |                 `- note: add @available attribute to enclosing property
139 |         List {
140 |             Section {
141 |                 ForEach(recentItems()) { item in
    |                 |- warning: conformance of 'ForEach<Data, ID, Content>' to 'View' is only available in macOS 10.15 or newer; this is an error in the Swift 6 language mode
    |                 `- note: add 'if #available' version check
142 |                     content(item, "")
143 |                 }
/Users/admin/builder/spi-builder-workspace/Sources/SearchView/SearchView.swift:141:17: error: 'ForEach' is only available in macOS 10.15 or newer
  9 |
 10 | /// Generic search view for displaying search results and handling recent searches.
 11 | public struct SearchView<Item, Content, Value>: View where Item: Searchable, Content: View, Value: Hashable {
    |               `- note: add @available attribute to enclosing generic struct
 12 |     /// Binding to the current search query input by the user.
 13 |     @Binding var searchQuery: String
    :
136 |
137 |     /// View displaying the list of recent searches.
138 |     private var recentSearchesView: some View {
    |                 `- note: add @available attribute to enclosing property
139 |         List {
140 |             Section {
141 |                 ForEach(recentItems()) { item in
    |                 |- error: 'ForEach' is only available in macOS 10.15 or newer
    |                 `- note: add 'if #available' version check
142 |                     content(item, "")
143 |                 }
/Users/admin/builder/spi-builder-workspace/Sources/SearchView/SearchView.swift:141:17: error: 'init(_:content:)' is only available in macOS 10.15 or newer
  9 |
 10 | /// Generic search view for displaying search results and handling recent searches.
 11 | public struct SearchView<Item, Content, Value>: View where Item: Searchable, Content: View, Value: Hashable {
    |               `- note: add @available attribute to enclosing generic struct
 12 |     /// Binding to the current search query input by the user.
 13 |     @Binding var searchQuery: String
    :
136 |
137 |     /// View displaying the list of recent searches.
138 |     private var recentSearchesView: some View {
    |                 `- note: add @available attribute to enclosing property
139 |         List {
140 |             Section {
141 |                 ForEach(recentItems()) { item in
    |                 |- error: 'init(_:content:)' is only available in macOS 10.15 or newer
    |                 `- note: add 'if #available' version check
142 |                     content(item, "")
143 |                 }
/Users/admin/builder/spi-builder-workspace/Sources/SearchView/SearchView.swift:140:21: warning: conformance of 'ForEach<Data, ID, Content>' to 'View' is only available in macOS 10.15 or newer; this is an error in the Swift 6 language mode
  9 |
 10 | /// Generic search view for displaying search results and handling recent searches.
 11 | public struct SearchView<Item, Content, Value>: View where Item: Searchable, Content: View, Value: Hashable {
    |               `- note: add @available attribute to enclosing generic struct
 12 |     /// Binding to the current search query input by the user.
 13 |     @Binding var searchQuery: String
    :
136 |
137 |     /// View displaying the list of recent searches.
138 |     private var recentSearchesView: some View {
    |                 `- note: add @available attribute to enclosing property
139 |         List {
140 |             Section {
    |                     |- warning: conformance of 'ForEach<Data, ID, Content>' to 'View' is only available in macOS 10.15 or newer; this is an error in the Swift 6 language mode
    |                     `- note: add 'if #available' version check
141 |                 ForEach(recentItems()) { item in
142 |                     content(item, "")
/Users/admin/builder/spi-builder-workspace/Sources/SearchView/SearchView.swift:144:23: warning: conformance of 'Text' to 'View' is only available in macOS 10.15 or newer; this is an error in the Swift 6 language mode
  9 |
 10 | /// Generic search view for displaying search results and handling recent searches.
 11 | public struct SearchView<Item, Content, Value>: View where Item: Searchable, Content: View, Value: Hashable {
    |               `- note: add @available attribute to enclosing generic struct
 12 |     /// Binding to the current search query input by the user.
 13 |     @Binding var searchQuery: String
    :
136 |
137 |     /// View displaying the list of recent searches.
138 |     private var recentSearchesView: some View {
    |                 `- note: add @available attribute to enclosing property
139 |         List {
140 |             Section {
    :
142 |                     content(item, "")
143 |                 }
144 |             } header: {
    |                       |- warning: conformance of 'Text' to 'View' is only available in macOS 10.15 or newer; this is an error in the Swift 6 language mode
    |                       `- note: add 'if #available' version check
145 |                 HStack {
146 |                     Text(configuration.recentSearchesHeaderText)
/Users/admin/builder/spi-builder-workspace/Sources/SearchView/SearchView.swift:145:17: error: 'HStack' is only available in macOS 10.15 or newer
  9 |
 10 | /// Generic search view for displaying search results and handling recent searches.
 11 | public struct SearchView<Item, Content, Value>: View where Item: Searchable, Content: View, Value: Hashable {
    |               `- note: add @available attribute to enclosing generic struct
 12 |     /// Binding to the current search query input by the user.
 13 |     @Binding var searchQuery: String
    :
136 |
137 |     /// View displaying the list of recent searches.
138 |     private var recentSearchesView: some View {
    |                 `- note: add @available attribute to enclosing property
139 |         List {
140 |             Section {
    :
143 |                 }
144 |             } header: {
145 |                 HStack {
    |                 |- error: 'HStack' is only available in macOS 10.15 or newer
    |                 `- note: add 'if #available' version check
146 |                     Text(configuration.recentSearchesHeaderText)
147 |                     Spacer()
/Users/admin/builder/spi-builder-workspace/Sources/SearchView/SearchView.swift:145:24: warning: conformance of 'Text' to 'View' is only available in macOS 10.15 or newer; this is an error in the Swift 6 language mode
  9 |
 10 | /// Generic search view for displaying search results and handling recent searches.
 11 | public struct SearchView<Item, Content, Value>: View where Item: Searchable, Content: View, Value: Hashable {
    |               `- note: add @available attribute to enclosing generic struct
 12 |     /// Binding to the current search query input by the user.
 13 |     @Binding var searchQuery: String
    :
136 |
137 |     /// View displaying the list of recent searches.
138 |     private var recentSearchesView: some View {
    |                 `- note: add @available attribute to enclosing property
139 |         List {
140 |             Section {
    :
143 |                 }
144 |             } header: {
145 |                 HStack {
    |                        |- warning: conformance of 'Text' to 'View' is only available in macOS 10.15 or newer; this is an error in the Swift 6 language mode
    |                        `- note: add 'if #available' version check
146 |                     Text(configuration.recentSearchesHeaderText)
147 |                     Spacer()
/Users/admin/builder/spi-builder-workspace/Sources/SearchView/SearchView.swift:146:21: warning: conformance of 'Text' to 'View' is only available in macOS 10.15 or newer; this is an error in the Swift 6 language mode
  9 |
 10 | /// Generic search view for displaying search results and handling recent searches.
 11 | public struct SearchView<Item, Content, Value>: View where Item: Searchable, Content: View, Value: Hashable {
    |               `- note: add @available attribute to enclosing generic struct
 12 |     /// Binding to the current search query input by the user.
 13 |     @Binding var searchQuery: String
    :
136 |
137 |     /// View displaying the list of recent searches.
138 |     private var recentSearchesView: some View {
    |                 `- note: add @available attribute to enclosing property
139 |         List {
140 |             Section {
    :
144 |             } header: {
145 |                 HStack {
146 |                     Text(configuration.recentSearchesHeaderText)
    |                     |- warning: conformance of 'Text' to 'View' is only available in macOS 10.15 or newer; this is an error in the Swift 6 language mode
    |                     `- note: add 'if #available' version check
147 |                     Spacer()
148 |                     Button(configuration.clearButtonText, action: clearRecentSearches)
/Users/admin/builder/spi-builder-workspace/Sources/SearchView/SearchView.swift:146:21: error: 'Text' is only available in macOS 10.15 or newer
  9 |
 10 | /// Generic search view for displaying search results and handling recent searches.
 11 | public struct SearchView<Item, Content, Value>: View where Item: Searchable, Content: View, Value: Hashable {
    |               `- note: add @available attribute to enclosing generic struct
 12 |     /// Binding to the current search query input by the user.
 13 |     @Binding var searchQuery: String
    :
136 |
137 |     /// View displaying the list of recent searches.
138 |     private var recentSearchesView: some View {
    |                 `- note: add @available attribute to enclosing property
139 |         List {
140 |             Section {
    :
144 |             } header: {
145 |                 HStack {
146 |                     Text(configuration.recentSearchesHeaderText)
    |                     |- error: 'Text' is only available in macOS 10.15 or newer
    |                     `- note: add 'if #available' version check
147 |                     Spacer()
148 |                     Button(configuration.clearButtonText, action: clearRecentSearches)
/Users/admin/builder/spi-builder-workspace/Sources/SearchView/SearchView.swift:147:21: warning: conformance of 'Spacer' to 'View' is only available in macOS 10.15 or newer; this is an error in the Swift 6 language mode
  9 |
 10 | /// Generic search view for displaying search results and handling recent searches.
 11 | public struct SearchView<Item, Content, Value>: View where Item: Searchable, Content: View, Value: Hashable {
    |               `- note: add @available attribute to enclosing generic struct
 12 |     /// Binding to the current search query input by the user.
 13 |     @Binding var searchQuery: String
    :
136 |
137 |     /// View displaying the list of recent searches.
138 |     private var recentSearchesView: some View {
    |                 `- note: add @available attribute to enclosing property
139 |         List {
140 |             Section {
    :
145 |                 HStack {
146 |                     Text(configuration.recentSearchesHeaderText)
147 |                     Spacer()
    |                     |- warning: conformance of 'Spacer' to 'View' is only available in macOS 10.15 or newer; this is an error in the Swift 6 language mode
    |                     `- note: add 'if #available' version check
148 |                     Button(configuration.clearButtonText, action: clearRecentSearches)
149 |                         .font(.callout)
/Users/admin/builder/spi-builder-workspace/Sources/SearchView/SearchView.swift:147:21: error: 'Spacer' is only available in macOS 10.15 or newer
  9 |
 10 | /// Generic search view for displaying search results and handling recent searches.
 11 | public struct SearchView<Item, Content, Value>: View where Item: Searchable, Content: View, Value: Hashable {
    |               `- note: add @available attribute to enclosing generic struct
 12 |     /// Binding to the current search query input by the user.
 13 |     @Binding var searchQuery: String
    :
136 |
137 |     /// View displaying the list of recent searches.
138 |     private var recentSearchesView: some View {
    |                 `- note: add @available attribute to enclosing property
139 |         List {
140 |             Section {
    :
145 |                 HStack {
146 |                     Text(configuration.recentSearchesHeaderText)
147 |                     Spacer()
    |                     |- error: 'Spacer' is only available in macOS 10.15 or newer
    |                     `- note: add 'if #available' version check
148 |                     Button(configuration.clearButtonText, action: clearRecentSearches)
149 |                         .font(.callout)
/Users/admin/builder/spi-builder-workspace/Sources/SearchView/SearchView.swift:148:21: error: 'Button' is only available in macOS 10.15 or newer
  9 |
 10 | /// Generic search view for displaying search results and handling recent searches.
 11 | public struct SearchView<Item, Content, Value>: View where Item: Searchable, Content: View, Value: Hashable {
    |               `- note: add @available attribute to enclosing generic struct
 12 |     /// Binding to the current search query input by the user.
 13 |     @Binding var searchQuery: String
    :
136 |
137 |     /// View displaying the list of recent searches.
138 |     private var recentSearchesView: some View {
    |                 `- note: add @available attribute to enclosing property
139 |         List {
140 |             Section {
    :
146 |                     Text(configuration.recentSearchesHeaderText)
147 |                     Spacer()
148 |                     Button(configuration.clearButtonText, action: clearRecentSearches)
    |                     |- error: 'Button' is only available in macOS 10.15 or newer
    |                     `- note: add 'if #available' version check
149 |                         .font(.callout)
150 |                 }
/Users/admin/builder/spi-builder-workspace/Sources/SearchView/SearchView.swift:148:21: error: 'init(_:action:)' is only available in macOS 10.15 or newer
  9 |
 10 | /// Generic search view for displaying search results and handling recent searches.
 11 | public struct SearchView<Item, Content, Value>: View where Item: Searchable, Content: View, Value: Hashable {
    |               `- note: add @available attribute to enclosing generic struct
 12 |     /// Binding to the current search query input by the user.
 13 |     @Binding var searchQuery: String
    :
136 |
137 |     /// View displaying the list of recent searches.
138 |     private var recentSearchesView: some View {
    |                 `- note: add @available attribute to enclosing property
139 |         List {
140 |             Section {
    :
146 |                     Text(configuration.recentSearchesHeaderText)
147 |                     Spacer()
148 |                     Button(configuration.clearButtonText, action: clearRecentSearches)
    |                     |- error: 'init(_:action:)' is only available in macOS 10.15 or newer
    |                     `- note: add 'if #available' version check
149 |                         .font(.callout)
150 |                 }
/Users/admin/builder/spi-builder-workspace/Sources/SearchView/SearchView.swift:149:26: error: 'font' is only available in macOS 10.15 or newer
  9 |
 10 | /// Generic search view for displaying search results and handling recent searches.
 11 | public struct SearchView<Item, Content, Value>: View where Item: Searchable, Content: View, Value: Hashable {
    |               `- note: add @available attribute to enclosing generic struct
 12 |     /// Binding to the current search query input by the user.
 13 |     @Binding var searchQuery: String
    :
136 |
137 |     /// View displaying the list of recent searches.
138 |     private var recentSearchesView: some View {
    |                 `- note: add @available attribute to enclosing property
139 |         List {
140 |             Section {
    :
147 |                     Spacer()
148 |                     Button(configuration.clearButtonText, action: clearRecentSearches)
149 |                         .font(.callout)
    |                          |- error: 'font' is only available in macOS 10.15 or newer
    |                          `- note: add 'if #available' version check
150 |                 }
151 |             }
/Users/admin/builder/spi-builder-workspace/Sources/SearchView/SearchView.swift:149:32: error: 'callout' is only available in macOS 10.15 or newer
  9 |
 10 | /// Generic search view for displaying search results and handling recent searches.
 11 | public struct SearchView<Item, Content, Value>: View where Item: Searchable, Content: View, Value: Hashable {
    |               `- note: add @available attribute to enclosing generic struct
 12 |     /// Binding to the current search query input by the user.
 13 |     @Binding var searchQuery: String
    :
136 |
137 |     /// View displaying the list of recent searches.
138 |     private var recentSearchesView: some View {
    |                 `- note: add @available attribute to enclosing property
139 |         List {
140 |             Section {
    :
147 |                     Spacer()
148 |                     Button(configuration.clearButtonText, action: clearRecentSearches)
149 |                         .font(.callout)
    |                                |- error: 'callout' is only available in macOS 10.15 or newer
    |                                `- note: add 'if #available' version check
150 |                 }
151 |             }
/Users/admin/builder/spi-builder-workspace/Sources/SearchView/SearchView.swift:145:24: warning: conformance of 'Text' to 'View' is only available in macOS 10.15 or newer; this is an error in the Swift 6 language mode
  9 |
 10 | /// Generic search view for displaying search results and handling recent searches.
 11 | public struct SearchView<Item, Content, Value>: View where Item: Searchable, Content: View, Value: Hashable {
    |               `- note: add @available attribute to enclosing generic struct
 12 |     /// Binding to the current search query input by the user.
 13 |     @Binding var searchQuery: String
    :
136 |
137 |     /// View displaying the list of recent searches.
138 |     private var recentSearchesView: some View {
    |                 `- note: add @available attribute to enclosing property
139 |         List {
140 |             Section {
    :
143 |                 }
144 |             } header: {
145 |                 HStack {
    |                        |- warning: conformance of 'Text' to 'View' is only available in macOS 10.15 or newer; this is an error in the Swift 6 language mode
    |                        `- note: add 'if #available' version check
146 |                     Text(configuration.recentSearchesHeaderText)
147 |                     Spacer()
/Users/admin/builder/spi-builder-workspace/Sources/SearchView/SearchView.swift:145:24: warning: conformance of 'Spacer' to 'View' is only available in macOS 10.15 or newer; this is an error in the Swift 6 language mode
  9 |
 10 | /// Generic search view for displaying search results and handling recent searches.
 11 | public struct SearchView<Item, Content, Value>: View where Item: Searchable, Content: View, Value: Hashable {
    |               `- note: add @available attribute to enclosing generic struct
 12 |     /// Binding to the current search query input by the user.
 13 |     @Binding var searchQuery: String
    :
136 |
137 |     /// View displaying the list of recent searches.
138 |     private var recentSearchesView: some View {
    |                 `- note: add @available attribute to enclosing property
139 |         List {
140 |             Section {
    :
143 |                 }
144 |             } header: {
145 |                 HStack {
    |                        |- warning: conformance of 'Spacer' to 'View' is only available in macOS 10.15 or newer; this is an error in the Swift 6 language mode
    |                        `- note: add 'if #available' version check
146 |                     Text(configuration.recentSearchesHeaderText)
147 |                     Spacer()
/Users/admin/builder/spi-builder-workspace/Sources/SearchView/SearchView.swift:139:14: warning: conformance of 'Section<Parent, Content, Footer>' to 'View' is only available in macOS 10.15 or newer; this is an error in the Swift 6 language mode
  9 |
 10 | /// Generic search view for displaying search results and handling recent searches.
 11 | public struct SearchView<Item, Content, Value>: View where Item: Searchable, Content: View, Value: Hashable {
    |               `- note: add @available attribute to enclosing generic struct
 12 |     /// Binding to the current search query input by the user.
 13 |     @Binding var searchQuery: String
    :
136 |
137 |     /// View displaying the list of recent searches.
138 |     private var recentSearchesView: some View {
    |                 `- note: add @available attribute to enclosing property
139 |         List {
    |              |- warning: conformance of 'Section<Parent, Content, Footer>' to 'View' is only available in macOS 10.15 or newer; this is an error in the Swift 6 language mode
    |              `- note: add 'if #available' version check
140 |             Section {
141 |                 ForEach(recentItems()) { item in
/Users/admin/builder/spi-builder-workspace/Sources/SearchView/SearchView.swift:157:9: warning: conformance of 'Section<Parent, Content, Footer>' to 'View' is only available in macOS 10.15 or newer; this is an error in the Swift 6 language mode
  9 |
 10 | /// Generic search view for displaying search results and handling recent searches.
 11 | public struct SearchView<Item, Content, Value>: View where Item: Searchable, Content: View, Value: Hashable {
    |               `- note: add @available attribute to enclosing generic struct
 12 |     /// Binding to the current search query input by the user.
 13 |     @Binding var searchQuery: String
    :
154 |
155 |     /// View displaying the search results based on the current query.
156 |     private var searchResultsView: some View {
    |                 `- note: add @available attribute to enclosing property
157 |         List {
    |         |- warning: conformance of 'Section<Parent, Content, Footer>' to 'View' is only available in macOS 10.15 or newer; this is an error in the Swift 6 language mode
    |         `- note: add 'if #available' version check
158 |             Section {
159 |                 ForEach(filteredDataList()) { item in
/Users/admin/builder/spi-builder-workspace/Sources/SearchView/SearchView.swift:157:9: error: 'List' is only available in macOS 10.15 or newer
  9 |
 10 | /// Generic search view for displaying search results and handling recent searches.
 11 | public struct SearchView<Item, Content, Value>: View where Item: Searchable, Content: View, Value: Hashable {
    |               `- note: add @available attribute to enclosing generic struct
 12 |     /// Binding to the current search query input by the user.
 13 |     @Binding var searchQuery: String
    :
154 |
155 |     /// View displaying the search results based on the current query.
156 |     private var searchResultsView: some View {
    |                 `- note: add @available attribute to enclosing property
157 |         List {
    |         |- error: 'List' is only available in macOS 10.15 or newer
    |         `- note: add 'if #available' version check
158 |             Section {
159 |                 ForEach(filteredDataList()) { item in
/Users/admin/builder/spi-builder-workspace/Sources/SearchView/SearchView.swift:157:9: error: 'init(content:)' is only available in macOS 10.15 or newer
  9 |
 10 | /// Generic search view for displaying search results and handling recent searches.
 11 | public struct SearchView<Item, Content, Value>: View where Item: Searchable, Content: View, Value: Hashable {
    |               `- note: add @available attribute to enclosing generic struct
 12 |     /// Binding to the current search query input by the user.
 13 |     @Binding var searchQuery: String
    :
154 |
155 |     /// View displaying the search results based on the current query.
156 |     private var searchResultsView: some View {
    |                 `- note: add @available attribute to enclosing property
157 |         List {
    |         |- error: 'init(content:)' is only available in macOS 10.15 or newer
    |         `- note: add 'if #available' version check
158 |             Section {
159 |                 ForEach(filteredDataList()) { item in
/Users/admin/builder/spi-builder-workspace/Sources/SearchView/SearchView.swift:158:13: warning: conformance of 'Section<Parent, Content, Footer>' to 'View' is only available in macOS 10.15 or newer; this is an error in the Swift 6 language mode
  9 |
 10 | /// Generic search view for displaying search results and handling recent searches.
 11 | public struct SearchView<Item, Content, Value>: View where Item: Searchable, Content: View, Value: Hashable {
    |               `- note: add @available attribute to enclosing generic struct
 12 |     /// Binding to the current search query input by the user.
 13 |     @Binding var searchQuery: String
    :
154 |
155 |     /// View displaying the search results based on the current query.
156 |     private var searchResultsView: some View {
    |                 `- note: add @available attribute to enclosing property
157 |         List {
158 |             Section {
    |             |- warning: conformance of 'Section<Parent, Content, Footer>' to 'View' is only available in macOS 10.15 or newer; this is an error in the Swift 6 language mode
    |             `- note: add 'if #available' version check
159 |                 ForEach(filteredDataList()) { item in
160 |                     content(item, searchQuery)
/Users/admin/builder/spi-builder-workspace/Sources/SearchView/SearchView.swift:158:13: error: 'Section' is only available in macOS 10.15 or newer
  9 |
 10 | /// Generic search view for displaying search results and handling recent searches.
 11 | public struct SearchView<Item, Content, Value>: View where Item: Searchable, Content: View, Value: Hashable {
    |               `- note: add @available attribute to enclosing generic struct
 12 |     /// Binding to the current search query input by the user.
 13 |     @Binding var searchQuery: String
    :
154 |
155 |     /// View displaying the search results based on the current query.
156 |     private var searchResultsView: some View {
    |                 `- note: add @available attribute to enclosing property
157 |         List {
158 |             Section {
    |             |- error: 'Section' is only available in macOS 10.15 or newer
    |             `- note: add 'if #available' version check
159 |                 ForEach(filteredDataList()) { item in
160 |                     content(item, searchQuery)
/Users/admin/builder/spi-builder-workspace/Sources/SearchView/SearchView.swift:158:13: error: 'init(content:header:)' is only available in macOS 10.15 or newer
  9 |
 10 | /// Generic search view for displaying search results and handling recent searches.
 11 | public struct SearchView<Item, Content, Value>: View where Item: Searchable, Content: View, Value: Hashable {
    |               `- note: add @available attribute to enclosing generic struct
 12 |     /// Binding to the current search query input by the user.
 13 |     @Binding var searchQuery: String
    :
154 |
155 |     /// View displaying the search results based on the current query.
156 |     private var searchResultsView: some View {
    |                 `- note: add @available attribute to enclosing property
157 |         List {
158 |             Section {
    |             |- error: 'init(content:header:)' is only available in macOS 10.15 or newer
    |             `- note: add 'if #available' version check
159 |                 ForEach(filteredDataList()) { item in
160 |                     content(item, searchQuery)
/Users/admin/builder/spi-builder-workspace/Sources/SearchView/SearchView.swift:159:17: warning: conformance of 'ForEach<Data, ID, Content>' to 'View' is only available in macOS 10.15 or newer; this is an error in the Swift 6 language mode
  9 |
 10 | /// Generic search view for displaying search results and handling recent searches.
 11 | public struct SearchView<Item, Content, Value>: View where Item: Searchable, Content: View, Value: Hashable {
    |               `- note: add @available attribute to enclosing generic struct
 12 |     /// Binding to the current search query input by the user.
 13 |     @Binding var searchQuery: String
    :
154 |
155 |     /// View displaying the search results based on the current query.
156 |     private var searchResultsView: some View {
    |                 `- note: add @available attribute to enclosing property
157 |         List {
158 |             Section {
159 |                 ForEach(filteredDataList()) { item in
    |                 |- warning: conformance of 'ForEach<Data, ID, Content>' to 'View' is only available in macOS 10.15 or newer; this is an error in the Swift 6 language mode
    |                 `- note: add 'if #available' version check
160 |                     content(item, searchQuery)
161 |                     // https://www.hackingwithswift.com/quick-start/swiftui/how-to-make-two-gestures-recognize-at-the-same-time-using-simultaneousgesture
/Users/admin/builder/spi-builder-workspace/Sources/SearchView/SearchView.swift:159:17: error: 'ForEach' is only available in macOS 10.15 or newer
  9 |
 10 | /// Generic search view for displaying search results and handling recent searches.
 11 | public struct SearchView<Item, Content, Value>: View where Item: Searchable, Content: View, Value: Hashable {
    |               `- note: add @available attribute to enclosing generic struct
 12 |     /// Binding to the current search query input by the user.
 13 |     @Binding var searchQuery: String
    :
154 |
155 |     /// View displaying the search results based on the current query.
156 |     private var searchResultsView: some View {
    |                 `- note: add @available attribute to enclosing property
157 |         List {
158 |             Section {
159 |                 ForEach(filteredDataList()) { item in
    |                 |- error: 'ForEach' is only available in macOS 10.15 or newer
    |                 `- note: add 'if #available' version check
160 |                     content(item, searchQuery)
161 |                     // https://www.hackingwithswift.com/quick-start/swiftui/how-to-make-two-gestures-recognize-at-the-same-time-using-simultaneousgesture
/Users/admin/builder/spi-builder-workspace/Sources/SearchView/SearchView.swift:159:17: error: 'init(_:content:)' is only available in macOS 10.15 or newer
  9 |
 10 | /// Generic search view for displaying search results and handling recent searches.
 11 | public struct SearchView<Item, Content, Value>: View where Item: Searchable, Content: View, Value: Hashable {
    |               `- note: add @available attribute to enclosing generic struct
 12 |     /// Binding to the current search query input by the user.
 13 |     @Binding var searchQuery: String
    :
154 |
155 |     /// View displaying the search results based on the current query.
156 |     private var searchResultsView: some View {
    |                 `- note: add @available attribute to enclosing property
157 |         List {
158 |             Section {
159 |                 ForEach(filteredDataList()) { item in
    |                 |- error: 'init(_:content:)' is only available in macOS 10.15 or newer
    |                 `- note: add 'if #available' version check
160 |                     content(item, searchQuery)
161 |                     // https://www.hackingwithswift.com/quick-start/swiftui/how-to-make-two-gestures-recognize-at-the-same-time-using-simultaneousgesture
/Users/admin/builder/spi-builder-workspace/Sources/SearchView/SearchView.swift:162:26: error: 'simultaneousGesture(_:including:)' is only available in macOS 10.15 or newer
  9 |
 10 | /// Generic search view for displaying search results and handling recent searches.
 11 | public struct SearchView<Item, Content, Value>: View where Item: Searchable, Content: View, Value: Hashable {
    |               `- note: add @available attribute to enclosing generic struct
 12 |     /// Binding to the current search query input by the user.
 13 |     @Binding var searchQuery: String
    :
154 |
155 |     /// View displaying the search results based on the current query.
156 |     private var searchResultsView: some View {
    |                 `- note: add @available attribute to enclosing property
157 |         List {
158 |             Section {
    :
160 |                     content(item, searchQuery)
161 |                     // https://www.hackingwithswift.com/quick-start/swiftui/how-to-make-two-gestures-recognize-at-the-same-time-using-simultaneousgesture
162 |                         .simultaneousGesture(
    |                          |- error: 'simultaneousGesture(_:including:)' is only available in macOS 10.15 or newer
    |                          `- note: add 'if #available' version check
163 |                             TapGesture()
164 |                                 .onEnded { _ in
/Users/admin/builder/spi-builder-workspace/Sources/SearchView/SearchView.swift:163:29: error: 'TapGesture' is only available in macOS 10.15 or newer
  9 |
 10 | /// Generic search view for displaying search results and handling recent searches.
 11 | public struct SearchView<Item, Content, Value>: View where Item: Searchable, Content: View, Value: Hashable {
    |               `- note: add @available attribute to enclosing generic struct
 12 |     /// Binding to the current search query input by the user.
 13 |     @Binding var searchQuery: String
    :
154 |
155 |     /// View displaying the search results based on the current query.
156 |     private var searchResultsView: some View {
    |                 `- note: add @available attribute to enclosing property
157 |         List {
158 |             Section {
    :
161 |                     // https://www.hackingwithswift.com/quick-start/swiftui/how-to-make-two-gestures-recognize-at-the-same-time-using-simultaneousgesture
162 |                         .simultaneousGesture(
163 |                             TapGesture()
    |                             |- error: 'TapGesture' is only available in macOS 10.15 or newer
    |                             `- note: add 'if #available' version check
164 |                                 .onEnded { _ in
165 |                                     if isSearchBarFocused && !searchQuery.isEmpty {
/Users/admin/builder/spi-builder-workspace/Sources/SearchView/SearchView.swift:164:34: error: 'onEnded' is only available in macOS 10.15 or newer
  9 |
 10 | /// Generic search view for displaying search results and handling recent searches.
 11 | public struct SearchView<Item, Content, Value>: View where Item: Searchable, Content: View, Value: Hashable {
    |               `- note: add @available attribute to enclosing generic struct
 12 |     /// Binding to the current search query input by the user.
 13 |     @Binding var searchQuery: String
    :
154 |
155 |     /// View displaying the search results based on the current query.
156 |     private var searchResultsView: some View {
    |                 `- note: add @available attribute to enclosing property
157 |         List {
158 |             Section {
    :
162 |                         .simultaneousGesture(
163 |                             TapGesture()
164 |                                 .onEnded { _ in
    |                                  |- error: 'onEnded' is only available in macOS 10.15 or newer
    |                                  `- note: add 'if #available' version check
165 |                                     if isSearchBarFocused && !searchQuery.isEmpty {
166 |                                         saveRecentSearch(item: item)
/Users/admin/builder/spi-builder-workspace/Sources/SearchView/SearchView.swift:158:21: warning: conformance of 'ForEach<Data, ID, Content>' to 'View' is only available in macOS 10.15 or newer; this is an error in the Swift 6 language mode
  9 |
 10 | /// Generic search view for displaying search results and handling recent searches.
 11 | public struct SearchView<Item, Content, Value>: View where Item: Searchable, Content: View, Value: Hashable {
    |               `- note: add @available attribute to enclosing generic struct
 12 |     /// Binding to the current search query input by the user.
 13 |     @Binding var searchQuery: String
    :
154 |
155 |     /// View displaying the search results based on the current query.
156 |     private var searchResultsView: some View {
    |                 `- note: add @available attribute to enclosing property
157 |         List {
158 |             Section {
    |                     |- warning: conformance of 'ForEach<Data, ID, Content>' to 'View' is only available in macOS 10.15 or newer; this is an error in the Swift 6 language mode
    |                     `- note: add 'if #available' version check
159 |                 ForEach(filteredDataList()) { item in
160 |                     content(item, searchQuery)
/Users/admin/builder/spi-builder-workspace/Sources/SearchView/SearchView.swift:175:21: warning: conformance of 'Text' to 'View' is only available in macOS 10.15 or newer; this is an error in the Swift 6 language mode
  9 |
 10 | /// Generic search view for displaying search results and handling recent searches.
 11 | public struct SearchView<Item, Content, Value>: View where Item: Searchable, Content: View, Value: Hashable {
    |               `- note: add @available attribute to enclosing generic struct
 12 |     /// Binding to the current search query input by the user.
 13 |     @Binding var searchQuery: String
    :
154 |
155 |     /// View displaying the search results based on the current query.
156 |     private var searchResultsView: some View {
    |                 `- note: add @available attribute to enclosing property
157 |         List {
158 |             Section {
    :
173 |                     let resultsCount = filteredDataList().count
174 |                     let headerText = String(format: configuration.foundResultsHeaderText, "\(resultsCount)")
175 |                     Text(headerText)
    |                     |- warning: conformance of 'Text' to 'View' is only available in macOS 10.15 or newer; this is an error in the Swift 6 language mode
    |                     `- note: add 'if #available' version check
176 |                 }
177 |             }
/Users/admin/builder/spi-builder-workspace/Sources/SearchView/SearchView.swift:175:21: error: 'Text' is only available in macOS 10.15 or newer
  9 |
 10 | /// Generic search view for displaying search results and handling recent searches.
 11 | public struct SearchView<Item, Content, Value>: View where Item: Searchable, Content: View, Value: Hashable {
    |               `- note: add @available attribute to enclosing generic struct
 12 |     /// Binding to the current search query input by the user.
 13 |     @Binding var searchQuery: String
    :
154 |
155 |     /// View displaying the search results based on the current query.
156 |     private var searchResultsView: some View {
    |                 `- note: add @available attribute to enclosing property
157 |         List {
158 |             Section {
    :
173 |                     let resultsCount = filteredDataList().count
174 |                     let headerText = String(format: configuration.foundResultsHeaderText, "\(resultsCount)")
175 |                     Text(headerText)
    |                     |- error: 'Text' is only available in macOS 10.15 or newer
    |                     `- note: add 'if #available' version check
176 |                 }
177 |             }
/Users/admin/builder/spi-builder-workspace/Sources/SearchView/SearchView.swift:172:63: warning: conformance of 'Text' to 'View' is only available in macOS 10.15 or newer; this is an error in the Swift 6 language mode
  9 |
 10 | /// Generic search view for displaying search results and handling recent searches.
 11 | public struct SearchView<Item, Content, Value>: View where Item: Searchable, Content: View, Value: Hashable {
    |               `- note: add @available attribute to enclosing generic struct
 12 |     /// Binding to the current search query input by the user.
 13 |     @Binding var searchQuery: String
    :
154 |
155 |     /// View displaying the search results based on the current query.
156 |     private var searchResultsView: some View {
    |                 `- note: add @available attribute to enclosing property
157 |         List {
158 |             Section {
    :
170 |                 }
171 |             } header: {
172 |                 if isSearchBarFocused && !searchQuery.isEmpty {
    |                                                               |- warning: conformance of 'Text' to 'View' is only available in macOS 10.15 or newer; this is an error in the Swift 6 language mode
    |                                                               `- note: add 'if #available' version check
173 |                     let resultsCount = filteredDataList().count
174 |                     let headerText = String(format: configuration.foundResultsHeaderText, "\(resultsCount)")
/Users/admin/builder/spi-builder-workspace/Sources/SearchView/SearchView.swift:172:63: error: 'buildIf' is only available in macOS 10.15 or newer
  9 |
 10 | /// Generic search view for displaying search results and handling recent searches.
 11 | public struct SearchView<Item, Content, Value>: View where Item: Searchable, Content: View, Value: Hashable {
    |               `- note: add @available attribute to enclosing generic struct
 12 |     /// Binding to the current search query input by the user.
 13 |     @Binding var searchQuery: String
    :
154 |
155 |     /// View displaying the search results based on the current query.
156 |     private var searchResultsView: some View {
    |                 `- note: add @available attribute to enclosing property
157 |         List {
158 |             Section {
    :
170 |                 }
171 |             } header: {
172 |                 if isSearchBarFocused && !searchQuery.isEmpty {
    |                                                               |- error: 'buildIf' is only available in macOS 10.15 or newer
    |                                                               `- note: add 'if #available' version check
173 |                     let resultsCount = filteredDataList().count
174 |                     let headerText = String(format: configuration.foundResultsHeaderText, "\(resultsCount)")
/Users/admin/builder/spi-builder-workspace/Sources/SearchView/SearchView.swift:176:17: error: 'buildIf' is only available in macOS 10.15 or newer
  9 |
 10 | /// Generic search view for displaying search results and handling recent searches.
 11 | public struct SearchView<Item, Content, Value>: View where Item: Searchable, Content: View, Value: Hashable {
    |               `- note: add @available attribute to enclosing generic struct
 12 |     /// Binding to the current search query input by the user.
 13 |     @Binding var searchQuery: String
    :
154 |
155 |     /// View displaying the search results based on the current query.
156 |     private var searchResultsView: some View {
    |                 `- note: add @available attribute to enclosing property
157 |         List {
158 |             Section {
    :
174 |                     let headerText = String(format: configuration.foundResultsHeaderText, "\(resultsCount)")
175 |                     Text(headerText)
176 |                 }
    |                 |- error: 'buildIf' is only available in macOS 10.15 or newer
    |                 `- note: add 'if #available' version check
177 |             }
178 |         }
/Users/admin/builder/spi-builder-workspace/Sources/SearchView/SearchView.swift:171:23: warning: conformance of 'Optional<Wrapped>' to 'View' is only available in macOS 10.15 or newer; this is an error in the Swift 6 language mode
  9 |
 10 | /// Generic search view for displaying search results and handling recent searches.
 11 | public struct SearchView<Item, Content, Value>: View where Item: Searchable, Content: View, Value: Hashable {
    |               `- note: add @available attribute to enclosing generic struct
 12 |     /// Binding to the current search query input by the user.
 13 |     @Binding var searchQuery: String
    :
154 |
155 |     /// View displaying the search results based on the current query.
156 |     private var searchResultsView: some View {
    |                 `- note: add @available attribute to enclosing property
157 |         List {
158 |             Section {
    :
169 |                         )
170 |                 }
171 |             } header: {
    |                       |- warning: conformance of 'Optional<Wrapped>' to 'View' is only available in macOS 10.15 or newer; this is an error in the Swift 6 language mode
    |                       `- note: add 'if #available' version check
172 |                 if isSearchBarFocused && !searchQuery.isEmpty {
173 |                     let resultsCount = filteredDataList().count
/Users/admin/builder/spi-builder-workspace/Sources/SearchView/SearchView.swift:157:14: warning: conformance of 'Section<Parent, Content, Footer>' to 'View' is only available in macOS 10.15 or newer; this is an error in the Swift 6 language mode
  9 |
 10 | /// Generic search view for displaying search results and handling recent searches.
 11 | public struct SearchView<Item, Content, Value>: View where Item: Searchable, Content: View, Value: Hashable {
    |               `- note: add @available attribute to enclosing generic struct
 12 |     /// Binding to the current search query input by the user.
 13 |     @Binding var searchQuery: String
    :
154 |
155 |     /// View displaying the search results based on the current query.
156 |     private var searchResultsView: some View {
    |                 `- note: add @available attribute to enclosing property
157 |         List {
    |              |- warning: conformance of 'Section<Parent, Content, Footer>' to 'View' is only available in macOS 10.15 or newer; this is an error in the Swift 6 language mode
    |              `- note: add 'if #available' version check
158 |             Section {
159 |                 ForEach(filteredDataList()) { item in
/Users/admin/builder/spi-builder-workspace/Sources/SearchView/SearchView.swift:206:13: error: cannot pass as inout because setter for 'recentSearchIDs' is only available in macOS 10.15 or newer
  9 |
 10 | /// Generic search view for displaying search results and handling recent searches.
 11 | public struct SearchView<Item, Content, Value>: View where Item: Searchable, Content: View, Value: Hashable {
    |               `- note: add @available attribute to enclosing generic struct
 12 |     /// Binding to the current search query input by the user.
 13 |     @Binding var searchQuery: String
    :
201 |
202 |     /// Saves the ID of the recently tapped item to UserDefaults.
203 |     private func saveRecentSearch(item: Item) {
    |                  `- note: add @available attribute to enclosing instance method
204 |         let itemID = item.idStringValue
205 |         if let index = recentSearchIDs.firstIndex(of: itemID) {
206 |             recentSearchIDs.remove(at: index)
    |             |- error: cannot pass as inout because setter for 'recentSearchIDs' is only available in macOS 10.15 or newer
    |             `- note: add 'if #available' version check
207 |         }
208 |         recentSearchIDs.insert(itemID, at: 0)
/Users/admin/builder/spi-builder-workspace/Sources/SearchView/SearchView.swift:208:9: error: cannot pass as inout because setter for 'recentSearchIDs' is only available in macOS 10.15 or newer
  9 |
 10 | /// Generic search view for displaying search results and handling recent searches.
 11 | public struct SearchView<Item, Content, Value>: View where Item: Searchable, Content: View, Value: Hashable {
    |               `- note: add @available attribute to enclosing generic struct
 12 |     /// Binding to the current search query input by the user.
 13 |     @Binding var searchQuery: String
    :
201 |
202 |     /// Saves the ID of the recently tapped item to UserDefaults.
203 |     private func saveRecentSearch(item: Item) {
    |                  `- note: add @available attribute to enclosing instance method
204 |         let itemID = item.idStringValue
205 |         if let index = recentSearchIDs.firstIndex(of: itemID) {
206 |             recentSearchIDs.remove(at: index)
207 |         }
208 |         recentSearchIDs.insert(itemID, at: 0)
    |         |- error: cannot pass as inout because setter for 'recentSearchIDs' is only available in macOS 10.15 or newer
    |         `- note: add 'if #available' version check
209 |         if recentSearchIDs.count > configuration.recentSavedSearchesCount {
210 |             recentSearchIDs.removeLast()
/Users/admin/builder/spi-builder-workspace/Sources/SearchView/SearchView.swift:210:13: error: cannot pass as inout because setter for 'recentSearchIDs' is only available in macOS 10.15 or newer
  9 |
 10 | /// Generic search view for displaying search results and handling recent searches.
 11 | public struct SearchView<Item, Content, Value>: View where Item: Searchable, Content: View, Value: Hashable {
    |               `- note: add @available attribute to enclosing generic struct
 12 |     /// Binding to the current search query input by the user.
 13 |     @Binding var searchQuery: String
    :
201 |
202 |     /// Saves the ID of the recently tapped item to UserDefaults.
203 |     private func saveRecentSearch(item: Item) {
    |                  `- note: add @available attribute to enclosing instance method
204 |         let itemID = item.idStringValue
205 |         if let index = recentSearchIDs.firstIndex(of: itemID) {
    :
208 |         recentSearchIDs.insert(itemID, at: 0)
209 |         if recentSearchIDs.count > configuration.recentSavedSearchesCount {
210 |             recentSearchIDs.removeLast()
    |             |- error: cannot pass as inout because setter for 'recentSearchIDs' is only available in macOS 10.15 or newer
    |             `- note: add 'if #available' version check
211 |         }
212 |         UserDefaults.standard.set(recentSearchIDs, forKey: storeId)
/Users/admin/builder/spi-builder-workspace/Sources/SearchView/SearchView.swift:217:9: error: setter for 'recentSearchIDs' is only available in macOS 10.15 or newer
  9 |
 10 | /// Generic search view for displaying search results and handling recent searches.
 11 | public struct SearchView<Item, Content, Value>: View where Item: Searchable, Content: View, Value: Hashable {
    |               `- note: add @available attribute to enclosing generic struct
 12 |     /// Binding to the current search query input by the user.
 13 |     @Binding var searchQuery: String
    :
214 |
215 |     /// Loads the IDs of recent searches from UserDefaults.
216 |     private func loadRecentSearchIDs() {
    |                  `- note: add @available attribute to enclosing instance method
217 |         recentSearchIDs = UserDefaults.standard.stringArray(forKey: storeId) ?? []
    |         |- error: setter for 'recentSearchIDs' is only available in macOS 10.15 or newer
    |         `- note: add 'if #available' version check
218 |     }
219 |
/Users/admin/builder/spi-builder-workspace/Sources/SearchView/SearchView.swift:222:9: error: 'withAnimation' is only available in macOS 10.15 or newer
  9 |
 10 | /// Generic search view for displaying search results and handling recent searches.
 11 | public struct SearchView<Item, Content, Value>: View where Item: Searchable, Content: View, Value: Hashable {
    |               `- note: add @available attribute to enclosing generic struct
 12 |     /// Binding to the current search query input by the user.
 13 |     @Binding var searchQuery: String
    :
219 |
220 |     /// Clears all recent search IDs from UserDefaults.
221 |     private func clearRecentSearches() {
    |                  `- note: add @available attribute to enclosing instance method
222 |         withAnimation {
    |         |- error: 'withAnimation' is only available in macOS 10.15 or newer
    |         `- note: add 'if #available' version check
223 |             recentSearchIDs.removeAll()
224 |         }
/Users/admin/builder/spi-builder-workspace/Sources/SearchView/SearchView.swift:223:13: error: cannot pass as inout because setter for 'recentSearchIDs' is only available in macOS 10.15 or newer
  9 |
 10 | /// Generic search view for displaying search results and handling recent searches.
 11 | public struct SearchView<Item, Content, Value>: View where Item: Searchable, Content: View, Value: Hashable {
    |               `- note: add @available attribute to enclosing generic struct
 12 |     /// Binding to the current search query input by the user.
 13 |     @Binding var searchQuery: String
    :
219 |
220 |     /// Clears all recent search IDs from UserDefaults.
221 |     private func clearRecentSearches() {
    |                  `- note: add @available attribute to enclosing instance method
222 |         withAnimation {
223 |             recentSearchIDs.removeAll()
    |             |- error: cannot pass as inout because setter for 'recentSearchIDs' is only available in macOS 10.15 or newer
    |             `- note: add 'if #available' version check
224 |         }
225 |         UserDefaults.standard.set(recentSearchIDs, forKey: storeId)
BUILD FAILURE 6.2 macosSpm