Build Information
Failed to build SearchView, reference 2.0.0 (cd5bf3
), with Swift 6.0 for macOS (SPM) on 30 Nov 2024 16:46:52 UTC.
Build Command
env DEVELOPER_DIR=/Applications/Xcode-16.1.0.app xcrun swift build --arch arm64 -Xswiftc -Xfrontend -Xswiftc -stats-output-dir -Xswiftc -Xfrontend -Xswiftc .stats -Xswiftc -strict-concurrency=complete -Xswiftc -enable-upcoming-feature -Xswiftc StrictConcurrency -Xswiftc -enable-upcoming-feature -Xswiftc DisableOutwardActorInference -Xswiftc -enable-upcoming-feature -Xswiftc GlobalActorIsolatedTypesUsability -Xswiftc -enable-upcoming-feature -Xswiftc InferSendableFromCaptures
Build Log
========================================
RunAll
========================================
Builder version: 4.58.1
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/cs4alhaider/SearchView.git
Reference: 2.0.0
Initialized empty Git repository in /Users/admin/builder/spi-builder-workspace/.git/
From https://github.com/cs4alhaider/SearchView
* tag 2.0.0 -> FETCH_HEAD
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 2.0.0
========================================
ResolveProductDependencies
========================================
Resolving dependencies ...
{
"identity": ".resolve-product-dependencies",
"name": "resolve-dependencies",
"url": "/Users/admin/builder/spi-builder-workspace/.resolve-product-dependencies",
"version": "unspecified",
"path": "/Users/admin/builder/spi-builder-workspace/.resolve-product-dependencies",
"dependencies": [
{
"identity": "searchview",
"name": "SearchView",
"url": "https://github.com/cs4alhaider/SearchView.git",
"version": "unspecified",
"path": "/Users/admin/builder/spi-builder-workspace/.resolve-product-dependencies/.build/checkouts/SearchView",
"dependencies": [
]
}
]
}
Fetching https://github.com/cs4alhaider/SearchView.git
[1/193] Fetching searchview
Fetched https://github.com/cs4alhaider/SearchView.git from cache (1.47s)
Creating working copy for https://github.com/cs4alhaider/SearchView.git
Working copy of https://github.com/cs4alhaider/SearchView.git resolved at 2.0.0 (cd5bf3d)
warning: '.resolve-product-dependencies': dependency 'searchview' is not used by any target
Found 0 product dependencies
========================================
Build
========================================
Selected platform: macosSpm
Swift version: 6.0
Building package at path: $PWD
https://github.com/cs4alhaider/SearchView.git
{
"dependencies" : [
],
"manifest_display_name" : "SearchView",
"name" : "SearchView",
"path" : "/Users/admin/builder/spi-builder-workspace",
"platforms" : [
{
"name" : "ios",
"version" : "17.0"
}
],
"products" : [
{
"name" : "SearchView",
"targets" : [
"SearchView"
],
"type" : {
"library" : [
"automatic"
]
}
}
],
"targets" : [
{
"c99name" : "SearchView",
"module_type" : "SwiftTarget",
"name" : "SearchView",
"path" : "Sources/SearchView",
"product_memberships" : [
"SearchView"
],
"sources" : [
"SearchView.swift",
"SearchViewConfiguration.swift",
"Searchable.swift"
],
"type" : "library"
}
],
"tools_version" : "5.9"
}
Running build ...
env DEVELOPER_DIR=/Applications/Xcode-16.1.0.app xcrun swift build --arch arm64 -Xswiftc -Xfrontend -Xswiftc -stats-output-dir -Xswiftc -Xfrontend -Xswiftc .stats -Xswiftc -strict-concurrency=complete -Xswiftc -enable-upcoming-feature -Xswiftc StrictConcurrency -Xswiftc -enable-upcoming-feature -Xswiftc DisableOutwardActorInference -Xswiftc -enable-upcoming-feature -Xswiftc GlobalActorIsolatedTypesUsability -Xswiftc -enable-upcoming-feature -Xswiftc InferSendableFromCaptures
Building for debugging...
[0/2] Write sources
[1/2] Write swift-version--7754E27361AE5C74.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: 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: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: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: 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: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: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: 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:140:13: error: 'buildExpression' is unavailable: this expression does not conform to 'View'
138 | private var recentSearchesView: some View {
139 | List {
140 | Section {
| `- error: 'buildExpression' is unavailable: this expression does not conform to 'View'
141 | ForEach(recentItems()) { item in
142 | content(item, "")
SwiftUICore.ViewBuilder:5:24: note: 'buildExpression' has been explicitly marked unavailable here
3 | public static func buildExpression<Content>(_ content: Content) -> Content where Content : View
4 | @available(*, unavailable, message: "this expression does not conform to 'View'")
5 | public static func buildExpression(_ invalid: Any) -> some View
| `- note: 'buildExpression' has been explicitly marked unavailable here
6 |
7 | public static func buildBlock() -> EmptyView
/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: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: error: 'buildExpression' is unavailable: this expression does not conform to 'View'
156 | private var searchResultsView: some View {
157 | List {
158 | Section {
| `- error: 'buildExpression' is unavailable: this expression does not conform to 'View'
159 | ForEach(filteredDataList()) { item in
160 | content(item, searchQuery)
SwiftUICore.ViewBuilder:5:24: note: 'buildExpression' has been explicitly marked unavailable here
3 | public static func buildExpression<Content>(_ content: Content) -> Content where Content : View
4 | @available(*, unavailable, message: "this expression does not conform to 'View'")
5 | public static func buildExpression(_ invalid: Any) -> some View
| `- note: 'buildExpression' has been explicitly marked unavailable here
6 |
7 | public static func buildBlock() -> EmptyView
/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: 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: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: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: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.0 macosSpm