Mercurial > public > lazybear
comparison LazyBear/Views/Profile/Helpers/WatchlistCreatorList.swift @ 404:444ec927d62f
Install Bazooka package
author | Dennis Concepción Martín <66180929+denniscm190@users.noreply.github.com> |
---|---|
date | Thu, 03 Jun 2021 16:05:01 +0200 |
parents | 4c90e5b18632 |
children | 5f21f7c23c5e |
comparison
equal
deleted
inserted
replaced
403:48b3d2a410d4 | 404:444ec927d62f |
---|---|
4 // | 4 // |
5 // Created by Dennis Concepción Martín on 2/5/21. | 5 // Created by Dennis Concepción Martín on 2/5/21. |
6 // | 6 // |
7 | 7 |
8 import SwiftUI | 8 import SwiftUI |
9 import Bazooka | |
9 | 10 |
10 struct WatchlistCreatorList: View { | 11 struct WatchlistCreatorList: View { |
11 @ObservedObject var watchlistCreatorClass: WatchlistCreatorClass | 12 @ObservedObject var watchlistCreatorClass: WatchlistCreatorClass |
12 @State private var searchedCompany = String() | 13 @State private var searchedCompany = String() |
13 @State private var companies = [SearchResponse]() | 14 @State private var companies = [SearchResponse]() |
42 } | 43 } |
43 } | 44 } |
44 } | 45 } |
45 | 46 |
46 private func request(_ url: String) { | 47 private func request(_ url: String) { |
47 genericRequest(url: url, model: [SearchResponse].self) { response in | 48 let bazooka = Bazooka() |
49 bazooka.request(url: url, model: [SearchResponse].self) { response in | |
48 self.companies = response | 50 self.companies = response |
49 } | 51 } |
50 } | 52 } |
51 } | 53 } |
52 | 54 |