Mercurial > public > simoleon
comparison Simoleon/Conversion.swift @ 50:7a6a7c677851
Handle errors with alerts
author | Dennis Concepción Martín <dennisconcepcionmartin@gmail.com> |
---|---|
date | Mon, 26 Jul 2021 21:52:15 +0100 |
parents | 75c1a05176f6 |
children | b0bce2c8e4a9 |
comparison
equal
deleted
inserted
replaced
48:67e76ce661a1 | 50:7a6a7c677851 |
---|---|
8 import SwiftUI | 8 import SwiftUI |
9 import Purchases | 9 import Purchases |
10 | 10 |
11 struct Conversion: View { | 11 struct Conversion: View { |
12 var showNavigationView: Bool? | 12 var showNavigationView: Bool? |
13 | |
13 @State var currencyPair: String | 14 @State var currencyPair: String |
14 @State private var amountToConvert = "1000" | 15 @State private var amountToConvert = "1000" |
15 @State private var price: Double = 1.00 | 16 @State private var price: Double = 1.00 |
16 @State private var showingConversion = false | 17 @State private var showingConversion = false |
17 @State private var showingCurrencySelector = false | 18 @State private var showingCurrencySelector = false |