Mercurial > public > simoleon
comparison Simoleon/Helpers/CurrencySelector.swift @ 46:ce4eb7416b41
Add SubscriptionFeatureRow
author | Dennis Concepción Martín <dennisconcepcionmartin@gmail.com> |
---|---|
date | Mon, 26 Jul 2021 18:25:03 +0100 |
parents | 2eb05f396fcd |
children | 75c1a05176f6 |
comparison
equal
deleted
inserted
replaced
45:1c7687d30373 | 46:ce4eb7416b41 |
---|---|
24 Section(header: Text("All currencies", comment: "Section header in currency selector")) { | 24 Section(header: Text("All currencies", comment: "Section header in currency selector")) { |
25 ForEach(currencyPairs(), id: \.self) { currencyPair in | 25 ForEach(currencyPairs(), id: \.self) { currencyPair in |
26 Button(action: { select(currencyPair) }) { | 26 Button(action: { select(currencyPair) }) { |
27 CurrencyRow(currencyPair: currencyPair) | 27 CurrencyRow(currencyPair: currencyPair) |
28 } | 28 } |
29 .accessibilityIdentifier("CurrencyRowButton") | |
30 } | 29 } |
31 } | 30 } |
32 } | 31 } |
33 .accessibilityIdentifier("AllCurrencies") | |
34 .gesture(DragGesture() | 32 .gesture(DragGesture() |
35 .onChanged({ _ in | 33 .onChanged({ _ in |
36 UIApplication.shared.dismissKeyboard() | 34 UIApplication.shared.dismissKeyboard() |
37 }) | 35 }) |
38 ) | 36 ) |