The Swift Package Index logo.Swift Package Index

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

Build Information

Failed to build SwiftlySearch, reference v1.2.5 (a71844), with Swift 6.0 for macOS (SPM) on 1 Nov 2024 17:14:36 UTC.

Build Command

env DEVELOPER_DIR=/Applications/Xcode-16.1.0.app xcrun swift build --arch arm64 -Xswiftc -Xfrontend -Xswiftc -stats-output-dir -Xswiftc -Xfrontend -Xswiftc .stats -Xswiftc -strict-concurrency=complete

Build Log

========================================
RunAll
========================================
Builder version: 4.56.0
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/thislooksfun/SwiftlySearch.git
Reference: v1.2.5
Initialized empty Git repository in /Users/admin/builder/spi-builder-workspace/.git/
From https://github.com/thislooksfun/SwiftlySearch
 * tag               v1.2.5     -> FETCH_HEAD
HEAD is now at a718441 chore: mark package as deprecated
Cloned https://github.com/thislooksfun/SwiftlySearch.git
Revision (git rev-parse @):
a7184413250a91f012d5d26eed874b5b2fdaeaac
SUCCESS checkout https://github.com/thislooksfun/SwiftlySearch.git at v1.2.5
========================================
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": "swiftlysearch",
      "name": "SwiftlySearch",
      "url": "https://github.com/thislooksfun/SwiftlySearch.git",
      "version": "unspecified",
      "path": "/Users/admin/builder/spi-builder-workspace/.resolve-product-dependencies/.build/checkouts/SwiftlySearch",
      "dependencies": [
      ]
    }
  ]
}
Fetching https://github.com/thislooksfun/SwiftlySearch.git
[1/278] Fetching swiftlysearch
Fetched https://github.com/thislooksfun/SwiftlySearch.git from cache (0.74s)
Creating working copy for https://github.com/thislooksfun/SwiftlySearch.git
Working copy of https://github.com/thislooksfun/SwiftlySearch.git resolved at v1.2.5 (a718441)
warning: '.resolve-product-dependencies': dependency 'swiftlysearch' 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/thislooksfun/SwiftlySearch.git
Running build ...
env DEVELOPER_DIR=/Applications/Xcode-16.1.0.app xcrun swift build --arch arm64 -Xswiftc -Xfrontend -Xswiftc -stats-output-dir -Xswiftc -Xfrontend -Xswiftc .stats -Xswiftc -strict-concurrency=complete
Building for debugging...
[0/2] Write sources
[1/2] Write swift-version--7754E27361AE5C74.txt
error: emit-module command failed with exit code 1 (use -v to see invocation)
[3/4] Emitting module SwiftlySearch
/Users/admin/builder/spi-builder-workspace/Sources/SwiftlySearch/SwiftlySearch.swift:26:44: error: 'Binding' is only available in macOS 10.15 or newer
 21 | import Combine
 22 |
 23 | public extension View {
    |        `- note: add @available attribute to enclosing extension
 24 |     @available(iOS, introduced: 13.0, deprecated: 15.0, message: "Use .searchable() and .onSubmit(of:) instead.")
 25 |     @available(macCatalyst, introduced: 13.0, deprecated: 15.0, message: "Use .searchable() and .onSubmit(of:) instead.")
 26 |     func navigationBarSearch(_ searchText: Binding<String>, placeholder: String? = nil, hidesNavigationBarDuringPresentation: Bool = true, hidesSearchBarWhenScrolling: Bool = true, cancelClicked: @escaping () -> Void = {}, searchClicked: @escaping () -> Void = {}) -> some View {
    |          |                                 `- error: 'Binding' is only available in macOS 10.15 or newer
    |          `- note: add @available attribute to enclosing instance method
 27 |         return overlay(SearchBar<AnyView>(text: searchText, placeholder: placeholder, hidesNavigationBarDuringPresentation: hidesNavigationBarDuringPresentation, hidesSearchBarWhenScrolling: hidesSearchBarWhenScrolling, cancelClicked: cancelClicked, searchClicked: searchClicked).frame(width: 0, height: 0))
 28 |     }
/Users/admin/builder/spi-builder-workspace/Sources/SwiftlySearch/SwiftlySearch.swift:26:274: error: 'View' is only available in macOS 10.15 or newer
 21 | import Combine
 22 |
 23 | public extension View {
    |        `- note: add @available attribute to enclosing extension
 24 |     @available(iOS, introduced: 13.0, deprecated: 15.0, message: "Use .searchable() and .onSubmit(of:) instead.")
 25 |     @available(macCatalyst, introduced: 13.0, deprecated: 15.0, message: "Use .searchable() and .onSubmit(of:) instead.")
 26 |     func navigationBarSearch(_ searchText: Binding<String>, placeholder: String? = nil, hidesNavigationBarDuringPresentation: Bool = true, hidesSearchBarWhenScrolling: Bool = true, cancelClicked: @escaping () -> Void = {}, searchClicked: @escaping () -> Void = {}) -> some View {
    |          |                                                                                                                                                                                                                                                                       `- error: 'View' is only available in macOS 10.15 or newer
    |          `- note: add @available attribute to enclosing instance method
 27 |         return overlay(SearchBar<AnyView>(text: searchText, placeholder: placeholder, hidesNavigationBarDuringPresentation: hidesNavigationBarDuringPresentation, hidesSearchBarWhenScrolling: hidesSearchBarWhenScrolling, cancelClicked: cancelClicked, searchClicked: searchClicked).frame(width: 0, height: 0))
 28 |     }
/Users/admin/builder/spi-builder-workspace/Sources/SwiftlySearch/SwiftlySearch.swift:32:45: error: 'View' is only available in macOS 10.15 or newer
 21 | import Combine
 22 |
 23 | public extension View {
    |        `- note: add @available attribute to enclosing extension
 24 |     @available(iOS, introduced: 13.0, deprecated: 15.0, message: "Use .searchable() and .onSubmit(of:) instead.")
 25 |     @available(macCatalyst, introduced: 13.0, deprecated: 15.0, message: "Use .searchable() and .onSubmit(of:) instead.")
    :
 30 |     @available(iOS, introduced: 13.0, deprecated: 15.0, message: "Use .searchable() and .onSubmit(of:) instead.")
 31 |     @available(macCatalyst, introduced: 13.0, deprecated: 15.0, message: "Use .searchable() and .onSubmit(of:) instead.")
 32 |     func navigationBarSearch<ResultContent: View>(_ searchText: Binding<String>, placeholder: String? = nil, hidesNavigationBarDuringPresentation: Bool = true, hidesSearchBarWhenScrolling: Bool = true, cancelClicked: @escaping () -> Void = {}, searchClicked: @escaping () -> Void = {}, @ViewBuilder resultContent: @escaping (String) -> ResultContent) -> some View {
    |          |                                  `- error: 'View' is only available in macOS 10.15 or newer
    |          `- note: add @available attribute to enclosing instance method
 33 |         return overlay(SearchBar(text: searchText, placeholder: placeholder, hidesNavigationBarDuringPresentation: hidesNavigationBarDuringPresentation, hidesSearchBarWhenScrolling: hidesSearchBarWhenScrolling, cancelClicked: cancelClicked, searchClicked: searchClicked, resultContent: resultContent).frame(width: 0, height: 0))
 34 |     }
/Users/admin/builder/spi-builder-workspace/Sources/SwiftlySearch/SwiftlySearch.swift:32:65: error: 'Binding' is only available in macOS 10.15 or newer
 21 | import Combine
 22 |
 23 | public extension View {
    |        `- note: add @available attribute to enclosing extension
 24 |     @available(iOS, introduced: 13.0, deprecated: 15.0, message: "Use .searchable() and .onSubmit(of:) instead.")
 25 |     @available(macCatalyst, introduced: 13.0, deprecated: 15.0, message: "Use .searchable() and .onSubmit(of:) instead.")
    :
 30 |     @available(iOS, introduced: 13.0, deprecated: 15.0, message: "Use .searchable() and .onSubmit(of:) instead.")
 31 |     @available(macCatalyst, introduced: 13.0, deprecated: 15.0, message: "Use .searchable() and .onSubmit(of:) instead.")
 32 |     func navigationBarSearch<ResultContent: View>(_ searchText: Binding<String>, placeholder: String? = nil, hidesNavigationBarDuringPresentation: Bool = true, hidesSearchBarWhenScrolling: Bool = true, cancelClicked: @escaping () -> Void = {}, searchClicked: @escaping () -> Void = {}, @ViewBuilder resultContent: @escaping (String) -> ResultContent) -> some View {
    |          |                                                      `- error: 'Binding' is only available in macOS 10.15 or newer
    |          `- note: add @available attribute to enclosing instance method
 33 |         return overlay(SearchBar(text: searchText, placeholder: placeholder, hidesNavigationBarDuringPresentation: hidesNavigationBarDuringPresentation, hidesSearchBarWhenScrolling: hidesSearchBarWhenScrolling, cancelClicked: cancelClicked, searchClicked: searchClicked, resultContent: resultContent).frame(width: 0, height: 0))
 34 |     }
/Users/admin/builder/spi-builder-workspace/Sources/SwiftlySearch/SwiftlySearch.swift:32:288: error: 'ViewBuilder' is only available in macOS 10.15 or newer
 21 | import Combine
 22 |
 23 | public extension View {
    |        `- note: add @available attribute to enclosing extension
 24 |     @available(iOS, introduced: 13.0, deprecated: 15.0, message: "Use .searchable() and .onSubmit(of:) instead.")
 25 |     @available(macCatalyst, introduced: 13.0, deprecated: 15.0, message: "Use .searchable() and .onSubmit(of:) instead.")
    :
 30 |     @available(iOS, introduced: 13.0, deprecated: 15.0, message: "Use .searchable() and .onSubmit(of:) instead.")
 31 |     @available(macCatalyst, introduced: 13.0, deprecated: 15.0, message: "Use .searchable() and .onSubmit(of:) instead.")
 32 |     func navigationBarSearch<ResultContent: View>(_ searchText: Binding<String>, placeholder: String? = nil, hidesNavigationBarDuringPresentation: Bool = true, hidesSearchBarWhenScrolling: Bool = true, cancelClicked: @escaping () -> Void = {}, searchClicked: @escaping () -> Void = {}, @ViewBuilder resultContent: @escaping (String) -> ResultContent) -> some View {
    |          |                                                                                                                                                                                                                                                                                     `- error: 'ViewBuilder' is only available in macOS 10.15 or newer
    |          `- note: add @available attribute to enclosing instance method
 33 |         return overlay(SearchBar(text: searchText, placeholder: placeholder, hidesNavigationBarDuringPresentation: hidesNavigationBarDuringPresentation, hidesSearchBarWhenScrolling: hidesSearchBarWhenScrolling, cancelClicked: cancelClicked, searchClicked: searchClicked, resultContent: resultContent).frame(width: 0, height: 0))
 34 |     }
/Users/admin/builder/spi-builder-workspace/Sources/SwiftlySearch/SwiftlySearch.swift:32:360: error: 'View' is only available in macOS 10.15 or newer
 21 | import Combine
 22 |
 23 | public extension View {
    |        `- note: add @available attribute to enclosing extension
 24 |     @available(iOS, introduced: 13.0, deprecated: 15.0, message: "Use .searchable() and .onSubmit(of:) instead.")
 25 |     @available(macCatalyst, introduced: 13.0, deprecated: 15.0, message: "Use .searchable() and .onSubmit(of:) instead.")
    :
 30 |     @available(iOS, introduced: 13.0, deprecated: 15.0, message: "Use .searchable() and .onSubmit(of:) instead.")
 31 |     @available(macCatalyst, introduced: 13.0, deprecated: 15.0, message: "Use .searchable() and .onSubmit(of:) instead.")
 32 |     func navigationBarSearch<ResultContent: View>(_ searchText: Binding<String>, placeholder: String? = nil, hidesNavigationBarDuringPresentation: Bool = true, hidesSearchBarWhenScrolling: Bool = true, cancelClicked: @escaping () -> Void = {}, searchClicked: @escaping () -> Void = {}, @ViewBuilder resultContent: @escaping (String) -> ResultContent) -> some View {
    |          |                                                                                                                                                                                                                                                                                                                                                             `- error: 'View' is only available in macOS 10.15 or newer
    |          `- note: add @available attribute to enclosing instance method
 33 |         return overlay(SearchBar(text: searchText, placeholder: placeholder, hidesNavigationBarDuringPresentation: hidesNavigationBarDuringPresentation, hidesSearchBarWhenScrolling: hidesSearchBarWhenScrolling, cancelClicked: cancelClicked, searchClicked: searchClicked, resultContent: resultContent).frame(width: 0, height: 0))
 34 |     }
/Users/admin/builder/spi-builder-workspace/Sources/SwiftlySearch/SwiftlySearch.swift:23:18: error: 'View' is only available in macOS 10.15 or newer
 21 | import Combine
 22 |
 23 | public extension View {
    |        |         `- error: 'View' is only available in macOS 10.15 or newer
    |        `- note: add @available attribute to enclosing extension
 24 |     @available(iOS, introduced: 13.0, deprecated: 15.0, message: "Use .searchable() and .onSubmit(of:) instead.")
 25 |     @available(macCatalyst, introduced: 13.0, deprecated: 15.0, message: "Use .searchable() and .onSubmit(of:) instead.")
/Users/admin/builder/spi-builder-workspace/Sources/SwiftlySearch/SwiftlySearch.swift:38:6: error: 'Binding' is only available in macOS 10.15 or newer
 35 | }
 36 |
 37 | struct SearchBar<ResultContent: View>: UIViewControllerRepresentable {
    |        `- note: add @available attribute to enclosing generic struct
 38 |     @Binding
    |      `- error: 'Binding' is only available in macOS 10.15 or newer
 39 |     var text: String
 40 |     let placeholder: String?
/Users/admin/builder/spi-builder-workspace/Sources/SwiftlySearch/SwiftlySearch.swift:47:16: error: 'Binding' is only available in macOS 10.15 or newer
 35 | }
 36 |
 37 | struct SearchBar<ResultContent: View>: UIViewControllerRepresentable {
    |        `- note: add @available attribute to enclosing generic struct
 38 |     @Binding
 39 |     var text: String
    :
 45 |     let resultContent: (String) -> ResultContent?
 46 |
 47 |     init(text: Binding<String>, placeholder: String?, hidesNavigationBarDuringPresentation: Bool, hidesSearchBarWhenScrolling: Bool, cancelClicked: @escaping () -> Void, searchClicked: @escaping () -> Void, @ViewBuilder resultContent: @escaping (String) -> ResultContent? = { _ in nil }) {
    |     |          `- error: 'Binding' is only available in macOS 10.15 or newer
    |     `- note: add @available attribute to enclosing initializer
 48 |         self._text = text
 49 |         self.placeholder = placeholder
/Users/admin/builder/spi-builder-workspace/Sources/SwiftlySearch/SwiftlySearch.swift:47:209: error: 'ViewBuilder' is only available in macOS 10.15 or newer
 35 | }
 36 |
 37 | struct SearchBar<ResultContent: View>: UIViewControllerRepresentable {
    |        `- note: add @available attribute to enclosing generic struct
 38 |     @Binding
 39 |     var text: String
    :
 45 |     let resultContent: (String) -> ResultContent?
 46 |
 47 |     init(text: Binding<String>, placeholder: String?, hidesNavigationBarDuringPresentation: Bool, hidesSearchBarWhenScrolling: Bool, cancelClicked: @escaping () -> Void, searchClicked: @escaping () -> Void, @ViewBuilder resultContent: @escaping (String) -> ResultContent? = { _ in nil }) {
    |     |                                                                                                                                                                                                           `- error: 'ViewBuilder' is only available in macOS 10.15 or newer
    |     `- note: add @available attribute to enclosing initializer
 48 |         self._text = text
 49 |         self.placeholder = placeholder
/Users/admin/builder/spi-builder-workspace/Sources/SwiftlySearch/SwiftlySearch.swift:57:40: error: cannot find type 'Context' in scope
 55 |     }
 56 |
 57 |     func makeUIViewController(context: Context) -> SearchBarWrapperController {
    |                                        `- error: cannot find type 'Context' in scope
 58 |         return SearchBarWrapperController()
 59 |     }
/Users/admin/builder/spi-builder-workspace/Sources/SwiftlySearch/SwiftlySearch.swift:61:84: error: cannot find type 'Context' in scope
 59 |     }
 60 |
 61 |     func updateUIViewController(_ controller: SearchBarWrapperController, context: Context) {
    |                                                                                    `- error: cannot find type 'Context' in scope
 62 |         controller.searchController = context.coordinator.searchController
 63 |         controller.hidesSearchBarWhenScrolling = hidesSearchBarWhenScrolling
/Users/admin/builder/spi-builder-workspace/Sources/SwiftlySearch/SwiftlySearch.swift:77:34: error: cannot find type 'UISearchResultsUpdating' in scope
 75 |     }
 76 |
 77 |     class Coordinator: NSObject, UISearchResultsUpdating, UISearchBarDelegate {
    |                                  `- error: cannot find type 'UISearchResultsUpdating' in scope
 78 |         @Binding
 79 |         var text: String
/Users/admin/builder/spi-builder-workspace/Sources/SwiftlySearch/SwiftlySearch.swift:77:59: error: cannot find type 'UISearchBarDelegate' in scope
 75 |     }
 76 |
 77 |     class Coordinator: NSObject, UISearchResultsUpdating, UISearchBarDelegate {
    |                                                           `- error: cannot find type 'UISearchBarDelegate' in scope
 78 |         @Binding
 79 |         var text: String
/Users/admin/builder/spi-builder-workspace/Sources/SwiftlySearch/SwiftlySearch.swift:78:10: error: 'Binding' is only available in macOS 10.15 or newer
 75 |     }
 76 |
 77 |     class Coordinator: NSObject, UISearchResultsUpdating, UISearchBarDelegate {
    |           |- note: add @available attribute to enclosing class
    |           `- note: add @available attribute to enclosing class
 78 |         @Binding
    |          `- error: 'Binding' is only available in macOS 10.15 or newer
 79 |         var text: String
 80 |         var cancelClicked: () -> Void
/Users/admin/builder/spi-builder-workspace/Sources/SwiftlySearch/SwiftlySearch.swift:82:31: error: cannot find type 'UISearchController' in scope
 80 |         var cancelClicked: () -> Void
 81 |         var searchClicked: () -> Void
 82 |         let searchController: UISearchController
    |                               `- error: cannot find type 'UISearchController' in scope
 83 |
 84 |         private var updatedText: String
/Users/admin/builder/spi-builder-workspace/Sources/SwiftlySearch/SwiftlySearch.swift:86:20: error: 'Binding' is only available in macOS 10.15 or newer
 75 |     }
 76 |
 77 |     class Coordinator: NSObject, UISearchResultsUpdating, UISearchBarDelegate {
    |           `- note: add @available attribute to enclosing class
 78 |         @Binding
 79 |         var text: String
    :
 84 |         private var updatedText: String
 85 |
 86 |         init(text: Binding<String>, placeholder: String?, hidesNavigationBarDuringPresentation: Bool, resultContent: (String) -> ResultContent?, cancelClicked: @escaping () -> Void, searchClicked: @escaping () -> Void) {
    |         |          `- error: 'Binding' is only available in macOS 10.15 or newer
    |         `- note: add @available attribute to enclosing initializer
 87 |             self._text = text
 88 |             updatedText = text.wrappedValue
/Users/admin/builder/spi-builder-workspace/Sources/SwiftlySearch/SwiftlySearch.swift:115:56: error: cannot find type 'UISearchController' in scope
113 |
114 |         // MARK: - UISearchResultsUpdating
115 |         func updateSearchResults(for searchController: UISearchController) {
    |                                                        `- error: cannot find type 'UISearchController' in scope
116 |             guard let text = searchController.searchBar.text else { return }
117 |             // Make sure the text has actually changed (workaround for #10).
/Users/admin/builder/spi-builder-workspace/Sources/SwiftlySearch/SwiftlySearch.swift:128:56: error: cannot find type 'UISearchBar' in scope
126 |
127 |         // MARK: - UISearchBarDelegate
128 |         func searchBarCancelButtonClicked(_ searchBar: UISearchBar) {
    |                                                        `- error: cannot find type 'UISearchBar' in scope
129 |             self.cancelClicked()
130 |         }
/Users/admin/builder/spi-builder-workspace/Sources/SwiftlySearch/SwiftlySearch.swift:131:56: error: cannot find type 'UISearchBar' in scope
129 |             self.cancelClicked()
130 |         }
131 |         func searchBarSearchButtonClicked(_ searchBar: UISearchBar) {
    |                                                        `- error: cannot find type 'UISearchBar' in scope
132 |             self.searchClicked()
133 |         }
/Users/admin/builder/spi-builder-workspace/Sources/SwiftlySearch/SwiftlySearch.swift:143:31: error: cannot find type 'UISearchController' in scope
141 |         }
142 |
143 |         var searchController: UISearchController? {
    |                               `- error: cannot find type 'UISearchController' in scope
144 |             didSet {
145 |                 self.parent?.navigationItem.searchController = searchController
/Users/admin/builder/spi-builder-workspace/Sources/SwiftlySearch/SwiftlySearch.swift:136:39: error: cannot find type 'UIViewController' in scope
134 |     }
135 |
136 |     class SearchBarWrapperController: UIViewController {
    |                                       `- error: cannot find type 'UIViewController' in scope
137 |         var text: String? {
138 |             didSet {
/Users/admin/builder/spi-builder-workspace/Sources/SwiftlySearch/SwiftlySearch.swift:139:22: error: value of type 'SearchBar<ResultContent>.SearchBarWrapperController' has no member 'parent'
137 |         var text: String? {
138 |             didSet {
139 |                 self.parent?.navigationItem.searchController?.searchBar.text = text
    |                      `- error: value of type 'SearchBar<ResultContent>.SearchBarWrapperController' has no member 'parent'
140 |             }
141 |         }
/Users/admin/builder/spi-builder-workspace/Sources/SwiftlySearch/SwiftlySearch.swift:145:22: error: value of type 'SearchBar<ResultContent>.SearchBarWrapperController' has no member 'parent'
143 |         var searchController: UISearchController? {
144 |             didSet {
145 |                 self.parent?.navigationItem.searchController = searchController
    |                      `- error: value of type 'SearchBar<ResultContent>.SearchBarWrapperController' has no member 'parent'
146 |             }
147 |         }
/Users/admin/builder/spi-builder-workspace/Sources/SwiftlySearch/SwiftlySearch.swift:151:22: error: value of type 'SearchBar<ResultContent>.SearchBarWrapperController' has no member 'parent'
149 |         var hidesSearchBarWhenScrolling: Bool = true {
150 |             didSet {
151 |                 self.parent?.navigationItem.hidesSearchBarWhenScrolling = hidesSearchBarWhenScrolling
    |                      `- error: value of type 'SearchBar<ResultContent>.SearchBarWrapperController' has no member 'parent'
152 |             }
153 |         }
/Users/admin/builder/spi-builder-workspace/Sources/SwiftlySearch/SwiftlySearch.swift:155:23: error: method does not override any method from its superclass
153 |         }
154 |
155 |         override func viewWillAppear(_ animated: Bool) {
    |                       `- error: method does not override any method from its superclass
156 |             setup()
157 |         }
/Users/admin/builder/spi-builder-workspace/Sources/SwiftlySearch/SwiftlySearch.swift:158:23: error: method does not override any method from its superclass
156 |             setup()
157 |         }
158 |         override func viewDidAppear(_ animated: Bool) {
    |                       `- error: method does not override any method from its superclass
159 |             setup()
160 |         }
/Users/admin/builder/spi-builder-workspace/Sources/SwiftlySearch/SwiftlySearch.swift:37:40: error: cannot find type 'UIViewControllerRepresentable' in scope
 35 | }
 36 |
 37 | struct SearchBar<ResultContent: View>: UIViewControllerRepresentable {
    |                                        `- error: cannot find type 'UIViewControllerRepresentable' in scope
 38 |     @Binding
 39 |     var text: String
/Users/admin/builder/spi-builder-workspace/Sources/SwiftlySearch/SwiftlySearch.swift:37:33: error: 'View' is only available in macOS 10.15 or newer
 35 | }
 36 |
 37 | struct SearchBar<ResultContent: View>: UIViewControllerRepresentable {
    |        |                        `- error: 'View' is only available in macOS 10.15 or newer
    |        `- note: add @available attribute to enclosing generic struct
 38 |     @Binding
 39 |     var text: String
[4/4] Compiling SwiftlySearch SwiftlySearch.swift
/Users/admin/builder/spi-builder-workspace/Sources/SwiftlySearch/SwiftlySearch.swift:26:44: error: 'Binding' is only available in macOS 10.15 or newer
 21 | import Combine
 22 |
 23 | public extension View {
    |        `- note: add @available attribute to enclosing extension
 24 |     @available(iOS, introduced: 13.0, deprecated: 15.0, message: "Use .searchable() and .onSubmit(of:) instead.")
 25 |     @available(macCatalyst, introduced: 13.0, deprecated: 15.0, message: "Use .searchable() and .onSubmit(of:) instead.")
 26 |     func navigationBarSearch(_ searchText: Binding<String>, placeholder: String? = nil, hidesNavigationBarDuringPresentation: Bool = true, hidesSearchBarWhenScrolling: Bool = true, cancelClicked: @escaping () -> Void = {}, searchClicked: @escaping () -> Void = {}) -> some View {
    |          |                                 `- error: 'Binding' is only available in macOS 10.15 or newer
    |          `- note: add @available attribute to enclosing instance method
 27 |         return overlay(SearchBar<AnyView>(text: searchText, placeholder: placeholder, hidesNavigationBarDuringPresentation: hidesNavigationBarDuringPresentation, hidesSearchBarWhenScrolling: hidesSearchBarWhenScrolling, cancelClicked: cancelClicked, searchClicked: searchClicked).frame(width: 0, height: 0))
 28 |     }
/Users/admin/builder/spi-builder-workspace/Sources/SwiftlySearch/SwiftlySearch.swift:26:274: error: 'View' is only available in macOS 10.15 or newer
 21 | import Combine
 22 |
 23 | public extension View {
    |        `- note: add @available attribute to enclosing extension
 24 |     @available(iOS, introduced: 13.0, deprecated: 15.0, message: "Use .searchable() and .onSubmit(of:) instead.")
 25 |     @available(macCatalyst, introduced: 13.0, deprecated: 15.0, message: "Use .searchable() and .onSubmit(of:) instead.")
 26 |     func navigationBarSearch(_ searchText: Binding<String>, placeholder: String? = nil, hidesNavigationBarDuringPresentation: Bool = true, hidesSearchBarWhenScrolling: Bool = true, cancelClicked: @escaping () -> Void = {}, searchClicked: @escaping () -> Void = {}) -> some View {
    |          |                                                                                                                                                                                                                                                                       `- error: 'View' is only available in macOS 10.15 or newer
    |          `- note: add @available attribute to enclosing instance method
 27 |         return overlay(SearchBar<AnyView>(text: searchText, placeholder: placeholder, hidesNavigationBarDuringPresentation: hidesNavigationBarDuringPresentation, hidesSearchBarWhenScrolling: hidesSearchBarWhenScrolling, cancelClicked: cancelClicked, searchClicked: searchClicked).frame(width: 0, height: 0))
 28 |     }
/Users/admin/builder/spi-builder-workspace/Sources/SwiftlySearch/SwiftlySearch.swift:32:45: error: 'View' is only available in macOS 10.15 or newer
 21 | import Combine
 22 |
 23 | public extension View {
    |        `- note: add @available attribute to enclosing extension
 24 |     @available(iOS, introduced: 13.0, deprecated: 15.0, message: "Use .searchable() and .onSubmit(of:) instead.")
 25 |     @available(macCatalyst, introduced: 13.0, deprecated: 15.0, message: "Use .searchable() and .onSubmit(of:) instead.")
    :
 30 |     @available(iOS, introduced: 13.0, deprecated: 15.0, message: "Use .searchable() and .onSubmit(of:) instead.")
 31 |     @available(macCatalyst, introduced: 13.0, deprecated: 15.0, message: "Use .searchable() and .onSubmit(of:) instead.")
 32 |     func navigationBarSearch<ResultContent: View>(_ searchText: Binding<String>, placeholder: String? = nil, hidesNavigationBarDuringPresentation: Bool = true, hidesSearchBarWhenScrolling: Bool = true, cancelClicked: @escaping () -> Void = {}, searchClicked: @escaping () -> Void = {}, @ViewBuilder resultContent: @escaping (String) -> ResultContent) -> some View {
    |          |                                  `- error: 'View' is only available in macOS 10.15 or newer
    |          `- note: add @available attribute to enclosing instance method
 33 |         return overlay(SearchBar(text: searchText, placeholder: placeholder, hidesNavigationBarDuringPresentation: hidesNavigationBarDuringPresentation, hidesSearchBarWhenScrolling: hidesSearchBarWhenScrolling, cancelClicked: cancelClicked, searchClicked: searchClicked, resultContent: resultContent).frame(width: 0, height: 0))
 34 |     }
/Users/admin/builder/spi-builder-workspace/Sources/SwiftlySearch/SwiftlySearch.swift:32:65: error: 'Binding' is only available in macOS 10.15 or newer
 21 | import Combine
 22 |
 23 | public extension View {
    |        `- note: add @available attribute to enclosing extension
 24 |     @available(iOS, introduced: 13.0, deprecated: 15.0, message: "Use .searchable() and .onSubmit(of:) instead.")
 25 |     @available(macCatalyst, introduced: 13.0, deprecated: 15.0, message: "Use .searchable() and .onSubmit(of:) instead.")
    :
 30 |     @available(iOS, introduced: 13.0, deprecated: 15.0, message: "Use .searchable() and .onSubmit(of:) instead.")
 31 |     @available(macCatalyst, introduced: 13.0, deprecated: 15.0, message: "Use .searchable() and .onSubmit(of:) instead.")
 32 |     func navigationBarSearch<ResultContent: View>(_ searchText: Binding<String>, placeholder: String? = nil, hidesNavigationBarDuringPresentation: Bool = true, hidesSearchBarWhenScrolling: Bool = true, cancelClicked: @escaping () -> Void = {}, searchClicked: @escaping () -> Void = {}, @ViewBuilder resultContent: @escaping (String) -> ResultContent) -> some View {
    |          |                                                      `- error: 'Binding' is only available in macOS 10.15 or newer
    |          `- note: add @available attribute to enclosing instance method
 33 |         return overlay(SearchBar(text: searchText, placeholder: placeholder, hidesNavigationBarDuringPresentation: hidesNavigationBarDuringPresentation, hidesSearchBarWhenScrolling: hidesSearchBarWhenScrolling, cancelClicked: cancelClicked, searchClicked: searchClicked, resultContent: resultContent).frame(width: 0, height: 0))
 34 |     }
/Users/admin/builder/spi-builder-workspace/Sources/SwiftlySearch/SwiftlySearch.swift:32:288: error: 'ViewBuilder' is only available in macOS 10.15 or newer
 21 | import Combine
 22 |
 23 | public extension View {
    |        `- note: add @available attribute to enclosing extension
 24 |     @available(iOS, introduced: 13.0, deprecated: 15.0, message: "Use .searchable() and .onSubmit(of:) instead.")
 25 |     @available(macCatalyst, introduced: 13.0, deprecated: 15.0, message: "Use .searchable() and .onSubmit(of:) instead.")
    :
 30 |     @available(iOS, introduced: 13.0, deprecated: 15.0, message: "Use .searchable() and .onSubmit(of:) instead.")
 31 |     @available(macCatalyst, introduced: 13.0, deprecated: 15.0, message: "Use .searchable() and .onSubmit(of:) instead.")
 32 |     func navigationBarSearch<ResultContent: View>(_ searchText: Binding<String>, placeholder: String? = nil, hidesNavigationBarDuringPresentation: Bool = true, hidesSearchBarWhenScrolling: Bool = true, cancelClicked: @escaping () -> Void = {}, searchClicked: @escaping () -> Void = {}, @ViewBuilder resultContent: @escaping (String) -> ResultContent) -> some View {
    |          |                                                                                                                                                                                                                                                                                     `- error: 'ViewBuilder' is only available in macOS 10.15 or newer
    |          `- note: add @available attribute to enclosing instance method
 33 |         return overlay(SearchBar(text: searchText, placeholder: placeholder, hidesNavigationBarDuringPresentation: hidesNavigationBarDuringPresentation, hidesSearchBarWhenScrolling: hidesSearchBarWhenScrolling, cancelClicked: cancelClicked, searchClicked: searchClicked, resultContent: resultContent).frame(width: 0, height: 0))
 34 |     }
/Users/admin/builder/spi-builder-workspace/Sources/SwiftlySearch/SwiftlySearch.swift:32:360: error: 'View' is only available in macOS 10.15 or newer
 21 | import Combine
 22 |
 23 | public extension View {
    |        `- note: add @available attribute to enclosing extension
 24 |     @available(iOS, introduced: 13.0, deprecated: 15.0, message: "Use .searchable() and .onSubmit(of:) instead.")
 25 |     @available(macCatalyst, introduced: 13.0, deprecated: 15.0, message: "Use .searchable() and .onSubmit(of:) instead.")
    :
 30 |     @available(iOS, introduced: 13.0, deprecated: 15.0, message: "Use .searchable() and .onSubmit(of:) instead.")
 31 |     @available(macCatalyst, introduced: 13.0, deprecated: 15.0, message: "Use .searchable() and .onSubmit(of:) instead.")
 32 |     func navigationBarSearch<ResultContent: View>(_ searchText: Binding<String>, placeholder: String? = nil, hidesNavigationBarDuringPresentation: Bool = true, hidesSearchBarWhenScrolling: Bool = true, cancelClicked: @escaping () -> Void = {}, searchClicked: @escaping () -> Void = {}, @ViewBuilder resultContent: @escaping (String) -> ResultContent) -> some View {
    |          |                                                                                                                                                                                                                                                                                                                                                             `- error: 'View' is only available in macOS 10.15 or newer
    |          `- note: add @available attribute to enclosing instance method
 33 |         return overlay(SearchBar(text: searchText, placeholder: placeholder, hidesNavigationBarDuringPresentation: hidesNavigationBarDuringPresentation, hidesSearchBarWhenScrolling: hidesSearchBarWhenScrolling, cancelClicked: cancelClicked, searchClicked: searchClicked, resultContent: resultContent).frame(width: 0, height: 0))
 34 |     }
/Users/admin/builder/spi-builder-workspace/Sources/SwiftlySearch/SwiftlySearch.swift:23:18: error: 'View' is only available in macOS 10.15 or newer
 21 | import Combine
 22 |
 23 | public extension View {
    |        |         `- error: 'View' is only available in macOS 10.15 or newer
    |        `- note: add @available attribute to enclosing extension
 24 |     @available(iOS, introduced: 13.0, deprecated: 15.0, message: "Use .searchable() and .onSubmit(of:) instead.")
 25 |     @available(macCatalyst, introduced: 13.0, deprecated: 15.0, message: "Use .searchable() and .onSubmit(of:) instead.")
/Users/admin/builder/spi-builder-workspace/Sources/SwiftlySearch/SwiftlySearch.swift:38:6: error: 'Binding' is only available in macOS 10.15 or newer
 35 | }
 36 |
 37 | struct SearchBar<ResultContent: View>: UIViewControllerRepresentable {
    |        `- note: add @available attribute to enclosing generic struct
 38 |     @Binding
    |      `- error: 'Binding' is only available in macOS 10.15 or newer
 39 |     var text: String
 40 |     let placeholder: String?
/Users/admin/builder/spi-builder-workspace/Sources/SwiftlySearch/SwiftlySearch.swift:47:16: error: 'Binding' is only available in macOS 10.15 or newer
 35 | }
 36 |
 37 | struct SearchBar<ResultContent: View>: UIViewControllerRepresentable {
    |        `- note: add @available attribute to enclosing generic struct
 38 |     @Binding
 39 |     var text: String
    :
 45 |     let resultContent: (String) -> ResultContent?
 46 |
 47 |     init(text: Binding<String>, placeholder: String?, hidesNavigationBarDuringPresentation: Bool, hidesSearchBarWhenScrolling: Bool, cancelClicked: @escaping () -> Void, searchClicked: @escaping () -> Void, @ViewBuilder resultContent: @escaping (String) -> ResultContent? = { _ in nil }) {
    |     |          `- error: 'Binding' is only available in macOS 10.15 or newer
    |     `- note: add @available attribute to enclosing initializer
 48 |         self._text = text
 49 |         self.placeholder = placeholder
/Users/admin/builder/spi-builder-workspace/Sources/SwiftlySearch/SwiftlySearch.swift:47:209: error: 'ViewBuilder' is only available in macOS 10.15 or newer
 35 | }
 36 |
 37 | struct SearchBar<ResultContent: View>: UIViewControllerRepresentable {
    |        `- note: add @available attribute to enclosing generic struct
 38 |     @Binding
 39 |     var text: String
    :
 45 |     let resultContent: (String) -> ResultContent?
 46 |
 47 |     init(text: Binding<String>, placeholder: String?, hidesNavigationBarDuringPresentation: Bool, hidesSearchBarWhenScrolling: Bool, cancelClicked: @escaping () -> Void, searchClicked: @escaping () -> Void, @ViewBuilder resultContent: @escaping (String) -> ResultContent? = { _ in nil }) {
    |     |                                                                                                                                                                                                           `- error: 'ViewBuilder' is only available in macOS 10.15 or newer
    |     `- note: add @available attribute to enclosing initializer
 48 |         self._text = text
 49 |         self.placeholder = placeholder
/Users/admin/builder/spi-builder-workspace/Sources/SwiftlySearch/SwiftlySearch.swift:57:40: error: cannot find type 'Context' in scope
 55 |     }
 56 |
 57 |     func makeUIViewController(context: Context) -> SearchBarWrapperController {
    |                                        `- error: cannot find type 'Context' in scope
 58 |         return SearchBarWrapperController()
 59 |     }
/Users/admin/builder/spi-builder-workspace/Sources/SwiftlySearch/SwiftlySearch.swift:61:84: error: cannot find type 'Context' in scope
 59 |     }
 60 |
 61 |     func updateUIViewController(_ controller: SearchBarWrapperController, context: Context) {
    |                                                                                    `- error: cannot find type 'Context' in scope
 62 |         controller.searchController = context.coordinator.searchController
 63 |         controller.hidesSearchBarWhenScrolling = hidesSearchBarWhenScrolling
/Users/admin/builder/spi-builder-workspace/Sources/SwiftlySearch/SwiftlySearch.swift:77:34: error: cannot find type 'UISearchResultsUpdating' in scope
 75 |     }
 76 |
 77 |     class Coordinator: NSObject, UISearchResultsUpdating, UISearchBarDelegate {
    |                                  `- error: cannot find type 'UISearchResultsUpdating' in scope
 78 |         @Binding
 79 |         var text: String
/Users/admin/builder/spi-builder-workspace/Sources/SwiftlySearch/SwiftlySearch.swift:77:59: error: cannot find type 'UISearchBarDelegate' in scope
 75 |     }
 76 |
 77 |     class Coordinator: NSObject, UISearchResultsUpdating, UISearchBarDelegate {
    |                                                           `- error: cannot find type 'UISearchBarDelegate' in scope
 78 |         @Binding
 79 |         var text: String
/Users/admin/builder/spi-builder-workspace/Sources/SwiftlySearch/SwiftlySearch.swift:78:10: error: 'Binding' is only available in macOS 10.15 or newer
 75 |     }
 76 |
 77 |     class Coordinator: NSObject, UISearchResultsUpdating, UISearchBarDelegate {
    |           |- note: add @available attribute to enclosing class
    |           `- note: add @available attribute to enclosing class
 78 |         @Binding
    |          `- error: 'Binding' is only available in macOS 10.15 or newer
 79 |         var text: String
 80 |         var cancelClicked: () -> Void
/Users/admin/builder/spi-builder-workspace/Sources/SwiftlySearch/SwiftlySearch.swift:82:31: error: cannot find type 'UISearchController' in scope
 80 |         var cancelClicked: () -> Void
 81 |         var searchClicked: () -> Void
 82 |         let searchController: UISearchController
    |                               `- error: cannot find type 'UISearchController' in scope
 83 |
 84 |         private var updatedText: String
/Users/admin/builder/spi-builder-workspace/Sources/SwiftlySearch/SwiftlySearch.swift:86:20: error: 'Binding' is only available in macOS 10.15 or newer
 75 |     }
 76 |
 77 |     class Coordinator: NSObject, UISearchResultsUpdating, UISearchBarDelegate {
    |           `- note: add @available attribute to enclosing class
 78 |         @Binding
 79 |         var text: String
    :
 84 |         private var updatedText: String
 85 |
 86 |         init(text: Binding<String>, placeholder: String?, hidesNavigationBarDuringPresentation: Bool, resultContent: (String) -> ResultContent?, cancelClicked: @escaping () -> Void, searchClicked: @escaping () -> Void) {
    |         |          `- error: 'Binding' is only available in macOS 10.15 or newer
    |         `- note: add @available attribute to enclosing initializer
 87 |             self._text = text
 88 |             updatedText = text.wrappedValue
/Users/admin/builder/spi-builder-workspace/Sources/SwiftlySearch/SwiftlySearch.swift:115:56: error: cannot find type 'UISearchController' in scope
113 |
114 |         // MARK: - UISearchResultsUpdating
115 |         func updateSearchResults(for searchController: UISearchController) {
    |                                                        `- error: cannot find type 'UISearchController' in scope
116 |             guard let text = searchController.searchBar.text else { return }
117 |             // Make sure the text has actually changed (workaround for #10).
/Users/admin/builder/spi-builder-workspace/Sources/SwiftlySearch/SwiftlySearch.swift:128:56: error: cannot find type 'UISearchBar' in scope
126 |
127 |         // MARK: - UISearchBarDelegate
128 |         func searchBarCancelButtonClicked(_ searchBar: UISearchBar) {
    |                                                        `- error: cannot find type 'UISearchBar' in scope
129 |             self.cancelClicked()
130 |         }
/Users/admin/builder/spi-builder-workspace/Sources/SwiftlySearch/SwiftlySearch.swift:131:56: error: cannot find type 'UISearchBar' in scope
129 |             self.cancelClicked()
130 |         }
131 |         func searchBarSearchButtonClicked(_ searchBar: UISearchBar) {
    |                                                        `- error: cannot find type 'UISearchBar' in scope
132 |             self.searchClicked()
133 |         }
/Users/admin/builder/spi-builder-workspace/Sources/SwiftlySearch/SwiftlySearch.swift:143:31: error: cannot find type 'UISearchController' in scope
141 |         }
142 |
143 |         var searchController: UISearchController? {
    |                               `- error: cannot find type 'UISearchController' in scope
144 |             didSet {
145 |                 self.parent?.navigationItem.searchController = searchController
/Users/admin/builder/spi-builder-workspace/Sources/SwiftlySearch/SwiftlySearch.swift:136:39: error: cannot find type 'UIViewController' in scope
134 |     }
135 |
136 |     class SearchBarWrapperController: UIViewController {
    |                                       `- error: cannot find type 'UIViewController' in scope
137 |         var text: String? {
138 |             didSet {
/Users/admin/builder/spi-builder-workspace/Sources/SwiftlySearch/SwiftlySearch.swift:139:22: error: value of type 'SearchBar<ResultContent>.SearchBarWrapperController' has no member 'parent'
137 |         var text: String? {
138 |             didSet {
139 |                 self.parent?.navigationItem.searchController?.searchBar.text = text
    |                      `- error: value of type 'SearchBar<ResultContent>.SearchBarWrapperController' has no member 'parent'
140 |             }
141 |         }
/Users/admin/builder/spi-builder-workspace/Sources/SwiftlySearch/SwiftlySearch.swift:145:22: error: value of type 'SearchBar<ResultContent>.SearchBarWrapperController' has no member 'parent'
143 |         var searchController: UISearchController? {
144 |             didSet {
145 |                 self.parent?.navigationItem.searchController = searchController
    |                      `- error: value of type 'SearchBar<ResultContent>.SearchBarWrapperController' has no member 'parent'
146 |             }
147 |         }
/Users/admin/builder/spi-builder-workspace/Sources/SwiftlySearch/SwiftlySearch.swift:151:22: error: value of type 'SearchBar<ResultContent>.SearchBarWrapperController' has no member 'parent'
149 |         var hidesSearchBarWhenScrolling: Bool = true {
150 |             didSet {
151 |                 self.parent?.navigationItem.hidesSearchBarWhenScrolling = hidesSearchBarWhenScrolling
    |                      `- error: value of type 'SearchBar<ResultContent>.SearchBarWrapperController' has no member 'parent'
152 |             }
153 |         }
/Users/admin/builder/spi-builder-workspace/Sources/SwiftlySearch/SwiftlySearch.swift:155:23: error: method does not override any method from its superclass
153 |         }
154 |
155 |         override func viewWillAppear(_ animated: Bool) {
    |                       `- error: method does not override any method from its superclass
156 |             setup()
157 |         }
/Users/admin/builder/spi-builder-workspace/Sources/SwiftlySearch/SwiftlySearch.swift:158:23: error: method does not override any method from its superclass
156 |             setup()
157 |         }
158 |         override func viewDidAppear(_ animated: Bool) {
    |                       `- error: method does not override any method from its superclass
159 |             setup()
160 |         }
/Users/admin/builder/spi-builder-workspace/Sources/SwiftlySearch/SwiftlySearch.swift:37:40: error: cannot find type 'UIViewControllerRepresentable' in scope
 35 | }
 36 |
 37 | struct SearchBar<ResultContent: View>: UIViewControllerRepresentable {
    |                                        `- error: cannot find type 'UIViewControllerRepresentable' in scope
 38 |     @Binding
 39 |     var text: String
/Users/admin/builder/spi-builder-workspace/Sources/SwiftlySearch/SwiftlySearch.swift:37:33: error: 'View' is only available in macOS 10.15 or newer
 35 | }
 36 |
 37 | struct SearchBar<ResultContent: View>: UIViewControllerRepresentable {
    |        |                        `- error: 'View' is only available in macOS 10.15 or newer
    |        `- note: add @available attribute to enclosing generic struct
 38 |     @Binding
 39 |     var text: String
/Users/admin/builder/spi-builder-workspace/Sources/SwiftlySearch/SwiftlySearch.swift:27:281: error: value of type 'SearchBar<AnyView>' has no member 'frame'
 25 |     @available(macCatalyst, introduced: 13.0, deprecated: 15.0, message: "Use .searchable() and .onSubmit(of:) instead.")
 26 |     func navigationBarSearch(_ searchText: Binding<String>, placeholder: String? = nil, hidesNavigationBarDuringPresentation: Bool = true, hidesSearchBarWhenScrolling: Bool = true, cancelClicked: @escaping () -> Void = {}, searchClicked: @escaping () -> Void = {}) -> some View {
 27 |         return overlay(SearchBar<AnyView>(text: searchText, placeholder: placeholder, hidesNavigationBarDuringPresentation: hidesNavigationBarDuringPresentation, hidesSearchBarWhenScrolling: hidesSearchBarWhenScrolling, cancelClicked: cancelClicked, searchClicked: searchClicked).frame(width: 0, height: 0))
    |                                                                                                                                                                                                                                                                                         `- error: value of type 'SearchBar<AnyView>' has no member 'frame'
 28 |     }
 29 |
/Users/admin/builder/spi-builder-workspace/Sources/SwiftlySearch/SwiftlySearch.swift:33:302: error: value of type 'SearchBar<ResultContent>' has no member 'frame'
 31 |     @available(macCatalyst, introduced: 13.0, deprecated: 15.0, message: "Use .searchable() and .onSubmit(of:) instead.")
 32 |     func navigationBarSearch<ResultContent: View>(_ searchText: Binding<String>, placeholder: String? = nil, hidesNavigationBarDuringPresentation: Bool = true, hidesSearchBarWhenScrolling: Bool = true, cancelClicked: @escaping () -> Void = {}, searchClicked: @escaping () -> Void = {}, @ViewBuilder resultContent: @escaping (String) -> ResultContent) -> some View {
 33 |         return overlay(SearchBar(text: searchText, placeholder: placeholder, hidesNavigationBarDuringPresentation: hidesNavigationBarDuringPresentation, hidesSearchBarWhenScrolling: hidesSearchBarWhenScrolling, cancelClicked: cancelClicked, searchClicked: searchClicked, resultContent: resultContent).frame(width: 0, height: 0))
    |                                                                                                                                                                                                                                                                                                              `- error: value of type 'SearchBar<ResultContent>' has no member 'frame'
 34 |     }
 35 | }
/Users/admin/builder/spi-builder-workspace/Sources/SwiftlySearch/SwiftlySearch.swift:69:71: error: cannot find type 'UIHostingController' in scope
 67 |
 68 |         if let resultView = resultContent(text) {
 69 |             (controller.searchController?.searchResultsController as? UIHostingController<ResultContent>)?.rootView = resultView
    |                                                                       `- error: cannot find type 'UIHostingController' in scope
 70 |         }
 71 |     }
/Users/admin/builder/spi-builder-workspace/Sources/SwiftlySearch/SwiftlySearch.swift:93:59: error: cannot find 'UIHostingController' in scope
 91 |
 92 |             let resultView = resultContent(text.wrappedValue)
 93 |             let searchResultController = resultView.map { UIHostingController(rootView: $0) }
    |                                                           `- error: cannot find 'UIHostingController' in scope
 94 |             self.searchController = UISearchController(searchResultsController: searchResultController)
 95 |
/Users/admin/builder/spi-builder-workspace/Sources/SwiftlySearch/SwiftlySearch.swift:94:37: error: cannot find 'UISearchController' in scope
 92 |             let resultView = resultContent(text.wrappedValue)
 93 |             let searchResultController = resultView.map { UIHostingController(rootView: $0) }
 94 |             self.searchController = UISearchController(searchResultsController: searchResultController)
    |                                     `- error: cannot find 'UISearchController' in scope
 95 |
 96 |             super.init()
/Users/admin/builder/spi-builder-workspace/Sources/SwiftlySearch/SwiftlySearch.swift:163:18: error: value of type 'SearchBar<ResultContent>.SearchBarWrapperController' has no member 'parent'
161 |
162 |         private func setup() {
163 |             self.parent?.navigationItem.searchController = searchController
    |                  `- error: value of type 'SearchBar<ResultContent>.SearchBarWrapperController' has no member 'parent'
164 |             self.parent?.navigationItem.hidesSearchBarWhenScrolling = hidesSearchBarWhenScrolling
165 |
/Users/admin/builder/spi-builder-workspace/Sources/SwiftlySearch/SwiftlySearch.swift:164:18: error: value of type 'SearchBar<ResultContent>.SearchBarWrapperController' has no member 'parent'
162 |         private func setup() {
163 |             self.parent?.navigationItem.searchController = searchController
164 |             self.parent?.navigationItem.hidesSearchBarWhenScrolling = hidesSearchBarWhenScrolling
    |                  `- error: value of type 'SearchBar<ResultContent>.SearchBarWrapperController' has no member 'parent'
165 |
166 |             // make search bar appear at start (default behaviour since iOS 13)
/Users/admin/builder/spi-builder-workspace/Sources/SwiftlySearch/SwiftlySearch.swift:167:18: error: value of type 'SearchBar<ResultContent>.SearchBarWrapperController' has no member 'parent'
165 |
166 |             // make search bar appear at start (default behaviour since iOS 13)
167 |             self.parent?.navigationController?.navigationBar.sizeToFit()
    |                  `- error: value of type 'SearchBar<ResultContent>.SearchBarWrapperController' has no member 'parent'
168 |         }
169 |     }
BUILD FAILURE 6.0 macosSpm