Mercurial > public > lazybear
diff LazyBear/Views/Profile/Networking/Profile.swift @ 378:6802c2393203
Implementing ProfileView (Watchlists)
author | Dennis Concepción Martín <66180929+denniscm190@users.noreply.github.com> |
---|---|
date | Wed, 21 Apr 2021 23:12:56 +0200 |
parents | d01859776fe6 |
children | 6303385b3629 |
line wrap: on
line diff
--- a/LazyBear/Views/Profile/Networking/Profile.swift Wed Apr 21 16:44:11 2021 +0200 +++ b/LazyBear/Views/Profile/Networking/Profile.swift Wed Apr 21 23:12:56 2021 +0200 @@ -16,14 +16,16 @@ func request(_ url: String) { genericRequest(url: url, model: ProfileResponse.self) { response in self.streamingRequests += 1 - + // If is the first request -> init() if self.streamingRequests == 1 { self.data = response } else { - // If not, request streaming data (without intradayPrices) + // If not, request streaming data (without intradayPrices) self.data.quotes = response.quotes } + + self.showView = true } } }