comparison Simoleon/Favorites.swift @ 75:b6f8661300f2

Added isLocked to CurrencyPairs
author Dennis Concepción Martín <dennisconcepcionmartin@gmail.com>
date Fri, 30 Jul 2021 15:52:27 +0100
parents b0bce2c8e4a9
children 98852b65438c
comparison
equal deleted inserted replaced
74:bfb959bee6d7 75:b6f8661300f2
24 .foregroundColor(Color(.systemGray)) 24 .foregroundColor(Color(.systemGray))
25 } else { 25 } else {
26 List { 26 List {
27 ForEach(favorite) { favorite in 27 ForEach(favorite) { favorite in
28 NavigationLink(destination: Conversion(showNavigationView: false, currencyPair: favorite.currencyPair)) { 28 NavigationLink(destination: Conversion(showNavigationView: false, currencyPair: favorite.currencyPair)) {
29 CurrencyRow(currencyPair: favorite.currencyPair) 29 CurrencyRow(currencyPairName: favorite.currencyPair)
30 } 30 }
31 } 31 }
32 .onDelete(perform: removeFromFavorites) 32 .onDelete(perform: removeFromFavorites)
33 } 33 }
34 .listStyle(PlainListStyle()) 34 .listStyle(PlainListStyle())