If a user searched after cancelling the search the first time, the first search would still continue. Assign the search task to navigation view and automatically cancel it and dismiss the searchbar when the user switches to a different tab. Also add a ProgressView to show which source is being parsed. Signed-off-by: kingbri <bdashore3@gmail.com>
20 lines
376 B
Swift
20 lines
376 B
Swift
//
|
|
// SearchProgressView.swift
|
|
// Ferrite
|
|
//
|
|
// Created by Brian Dashore on 8/8/22.
|
|
//
|
|
|
|
import SwiftUI
|
|
|
|
struct SearchProgressView: View {
|
|
var body: some View {
|
|
Text(/*@START_MENU_TOKEN@*/"Hello, World!"/*@END_MENU_TOKEN@*/)
|
|
}
|
|
}
|
|
|
|
struct SearchProgressView_Previews: PreviewProvider {
|
|
static var previews: some View {
|
|
SearchProgressView()
|
|
}
|
|
}
|