Mercurial > public > lazybear
diff LazyBear/Views/Profile/Helpers/WatchlistCreatorList.swift @ 430:c78d5b5b3bda
Minor updates
author | Dennis Concepción Martín <66180929+denniscm190@users.noreply.github.com> |
---|---|
date | Sat, 19 Jun 2021 16:21:26 +0200 |
parents | 5f21f7c23c5e |
children | 4b8031e696e8 |
line wrap: on
line diff
--- a/LazyBear/Views/Profile/Helpers/WatchlistCreatorList.swift Sat Jun 19 16:20:58 2021 +0200 +++ b/LazyBear/Views/Profile/Helpers/WatchlistCreatorList.swift Sat Jun 19 16:21:26 2021 +0200 @@ -14,7 +14,7 @@ @State private var searchedCompany = String() @State private var companies = [SearchResponse]() - @Environment(\.presentationMode) private var presentationMode + @Environment(\.presentationMode) private var watchlistCreatorListPresentation @Environment(\.managedObjectContext) private var moc var body: some View { @@ -23,7 +23,7 @@ WatchlistCreatorSearchBar(searchedCompany: $searchedCompany) List(companies, id: \.self) { company in - WatchlistCreatorRow(company: company, presentationMode: presentationMode, watchlistCreatorClass: watchlistCreatorClass) + WatchlistCreatorRow(company: company, watchlistCreatorListPresentation: watchlistCreatorListPresentation, watchlistCreatorClass: watchlistCreatorClass) .environment(\.managedObjectContext, self.moc) } } @@ -35,7 +35,7 @@ .toolbar { ToolbarItem(placement: .navigationBarLeading) { - Button("Cancel", action: { presentationMode.wrappedValue.dismiss() }) + Button("Cancel", action: { watchlistCreatorListPresentation.wrappedValue.dismiss() }) } } }