Mercurial > public > simoleon
comparison Simoleon/Helpers/CurrencySelector.swift @ 109:587924519d3b
Reestructured schemes and targets
author | Dennis Concepción Martín <dennisconcepcionmartin@gmail.com> |
---|---|
date | Thu, 05 Aug 2021 09:39:19 +0100 |
parents | 599fe95307f6 |
children | 87f02d4f9c26 |
comparison
equal
deleted
inserted
replaced
108:9f9fa45c9ef6 | 109:587924519d3b |
---|---|
48 self.currencyPair = currencyPair.name | 48 self.currencyPair = currencyPair.name |
49 showingCurrencySelector = false | 49 showingCurrencySelector = false |
50 }) { | 50 }) { |
51 CurrencyRow(currencyPairName: currencyPair.name) | 51 CurrencyRow(currencyPairName: currencyPair.name) |
52 } | 52 } |
53 .accessibility(identifier: "CurrencyRow") | |
54 } | 53 } |
55 } else { | 54 } else { |
56 ForEach(searchResults, id: \.self) { currencyPair in | 55 ForEach(searchResults, id: \.self) { currencyPair in |
57 Button(action: { select(currencyPair) }) { | 56 Button(action: { select(currencyPair) }) { |
58 CurrencyRow(currencyPairName: currencyPair.name, isLocked: currencyPair.isLocked) | 57 CurrencyRow(currencyPairName: currencyPair.name, isLocked: currencyPair.isLocked) |
128 currencyPair: .constant("USD/GBP"), | 127 currencyPair: .constant("USD/GBP"), |
129 showingCurrencySelector: .constant(false) | 128 showingCurrencySelector: .constant(false) |
130 ) | 129 ) |
131 } | 130 } |
132 } | 131 } |
133 | |
134 | |
135 | |
136 //if entitlementIsActive { | |
137 // List(searchResults, id: \.self) { currencyPair in | |
138 // Button(action: { | |
139 // self.currencyPair = currencyPair.name | |
140 // showingCurrencySelector = false | |
141 // }) { | |
142 // CurrencyRow(currencyPairName: currencyPair.name) | |
143 // } | |
144 // } | |
145 // .listStyle() | |
146 // } else { | |
147 // List(searchResults, id: \.self) { currencyPair in | |
148 // Button(action: { select(currencyPair) }) { | |
149 // CurrencyRow(currencyPairName: currencyPair.name, isLocked: currencyPair.isLocked) | |
150 // } | |
151 // } | |
152 // .listStyle() | |
153 // } |