We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 16224c0 commit 9311c82Copy full SHA for 9311c82
Shared/Supporting Files/Views/SamplesSearchView.swift
@@ -15,10 +15,7 @@
15
import SwiftUI
16
17
struct SamplesSearchView: View {
18
- /// The samples to be searched.
19
- private let samples: [Sample]
20
-
21
- /// The search query.
+ /// The search query to highlight.
22
private let query: String
23
24
/// The search result to display in the various sections.
@@ -74,7 +71,6 @@ extension SamplesSearchView {
74
71
/// - samples: All samples retrieved from the Samples directory.
75
72
/// - query: The search query in the search bar.
76
73
init(samples: [Sample], query: String) {
77
- self.samples = samples
78
self.query = query
79
self.searchResult = Self.searchSamples(in: samples, with: query)
80
}
0 commit comments