Mercurial > public > lazybear
diff LazyBear/Views/Search/SearchView.swift @ 393:0a4c399170c4
Implementing WatchlistCreator
author | Dennis Concepción Martín <66180929+denniscm190@users.noreply.github.com> |
---|---|
date | Sun, 02 May 2021 12:41:20 +0200 |
parents | 13f3578def61 |
children | 5f21f7c23c5e |
line wrap: on
line diff
--- a/LazyBear/Views/Search/SearchView.swift Sat May 01 13:11:32 2021 +0200 +++ b/LazyBear/Views/Search/SearchView.swift Sun May 02 12:41:20 2021 +0200 @@ -9,19 +9,15 @@ import SwiftlySearch struct SearchView: View { - // Only unseful when it's called from Profile View - var calledFromProfileView: Bool? - var newWatchlistClass: NewWatchlistClass? - @ObservedObject var search = Search() + @State private var searchedText = String() @Environment(\.presentationMode) private var presentationMode - @State private var searchedText = String() var body: some View { NavigationView { VStack(alignment: .leading) { if search.showSearchList { - CompanyList(searchResult: search.data, calledFromProfileView: calledFromProfileView, newWatchlistClass: newWatchlistClass, presentationMode: presentationMode) + CompanyList(searchResult: search.data) } else { VStack(alignment: .center) { Image("bearSleeping")