Mercurial > public > lazybear
diff LazyBearWatchOS Extension/Views/WatchOSProfileView.swift @ 457:c6913f0ce46e
Minor UI Updates
author | Dennis Concepción Martín <dennisconcepcionmartin@gmail.com> |
---|---|
date | Mon, 28 Jun 2021 14:03:50 +0200 |
parents | b560babcd5ed |
children |
line wrap: on
line diff
--- a/LazyBearWatchOS Extension/Views/WatchOSProfileView.swift Mon Jun 28 12:51:06 2021 +0200 +++ b/LazyBearWatchOS Extension/Views/WatchOSProfileView.swift Mon Jun 28 14:03:50 2021 +0200 @@ -15,17 +15,16 @@ var body: some View { if profile.showView { - NavigationView { - ScrollView { - VStack { - if let companies = profile.data.quotes { - ForEach(companies, id: \.self) { company in - NavigationLink(destination: WatchOSCompanyView(symbol: company.symbol) - .navigationTitle(company.companyName.capitalized) - ) { - WatchOSCompanyRow(company: company) - } + ScrollView { + VStack { + if let companies = profile.data.quotes { + ForEach(companies, id: \.self) { company in + NavigationLink(destination: WatchOSCompanyView(symbol: company.symbol) + .navigationTitle(company.companyName.capitalized) + ) { + WatchOSCompanyRow(company: company) } + .buttonStyle(PlainButtonStyle()) } } } @@ -50,7 +49,6 @@ switch requestType { case .initial: let url = "https://api.lazybear.app/profile/type=initial/symbols=\(symbolsString)" - print(watchlistCompanies) profile.request(url, .initial) default: