Mercurial > public > lazybear
comparison LazyBear/Views/Profile/ProfileView.swift @ 387:c206bd0bdb4e
Implementing RenameSheet.swift
author | Dennis Concepción Martín <66180929+denniscm190@users.noreply.github.com> |
---|---|
date | Sat, 24 Apr 2021 12:21:23 +0200 |
parents | a7e2c5a7b4f6 |
children | 79c39987aaa4 |
comparison
equal
deleted
inserted
replaced
386:3599d303d1a0 | 387:c206bd0bdb4e |
---|---|
24 // Get all the symbols of this watchlist | 24 // Get all the symbols of this watchlist |
25 let symbols = watchlistCompanies.filter({ $0.watchlist == watchlist }).map { $0.symbol } | 25 let symbols = watchlistCompanies.filter({ $0.watchlist == watchlist }).map { $0.symbol } |
26 | 26 |
27 if let companies = profile.data.quotes { | 27 if let companies = profile.data.quotes { |
28 let filteredCompanies = companies.filter({ symbols.contains($0.key) }) | 28 let filteredCompanies = companies.filter({ symbols.contains($0.key) }) |
29 StockRow(listName: watchlist, list: filteredCompanies, intradayPrices: profile.data.intradayPrices, addOnDelete: true) | 29 StockRow(listName: watchlist, |
30 .listRowInsets(EdgeInsets()) | 30 list: filteredCompanies, |
31 intradayPrices: profile.data.intradayPrices, | |
32 addOnDelete: true | |
33 ) | |
34 .listRowInsets(EdgeInsets()) | |
31 } | 35 } |
32 } | 36 } |
33 } | 37 } |
34 .navigationTitle("My profile") | 38 .navigationTitle("My profile") |
35 .navigationBarTitleDisplayMode(.inline) | 39 .navigationBarTitleDisplayMode(.inline) |