comparison Simoleon/Conversion.swift @ 53:b0bce2c8e4a9

Refactor UK spelling to US
author Dennis Concepción Martín <dennisconcepcionmartin@gmail.com>
date Tue, 27 Jul 2021 09:44:51 +0100
parents 7a6a7c677851
children aa451ca55e48
comparison
equal deleted inserted replaced
52:3fa127885e60 53:b0bce2c8e4a9
31 .overlay( 31 .overlay(
32 CurrencyRow(currencyPair: currencyPair) 32 CurrencyRow(currencyPair: currencyPair)
33 .padding(.horizontal) 33 .padding(.horizontal)
34 ) 34 )
35 } 35 }
36 .accessibilityIdentifier("CurrencySelector")
37 36
38 FavouriteButton(currencyPair: currencyPair) 37 FavoriteButton(currencyPair: currencyPair)
39 } 38 }
40 39
41 ConversionBox( 40 ConversionBox(
42 currencyPair: $currencyPair, 41 currencyPair: $currencyPair,
43 amountToConvert: $amountToConvert, 42 amountToConvert: $amountToConvert,
50 .sheet(isPresented: $showingCurrencySelector) { 49 .sheet(isPresented: $showingCurrencySelector) {
51 CurrencySelector(currencyPair: $currencyPair, showingCurrencySelector: $showingCurrencySelector) 50 CurrencySelector(currencyPair: $currencyPair, showingCurrencySelector: $showingCurrencySelector)
52 } 51 }
53 } 52 }
54 .onAppear(perform: request) 53 .onAppear(perform: request)
55 .navigationTitle(Text("Convert", comment: "Navigation title")) 54 .navigationTitle("Convert")
56 .toolbar { 55 .toolbar {
57 ToolbarItem(placement: .navigationBarTrailing) { 56 ToolbarItem(placement: .navigationBarTrailing) {
58 if amountIsEditing { 57 if amountIsEditing {
59 Button(action: { 58 Button(action: {
60 UIApplication.shared.dismissKeyboard() 59 UIApplication.shared.dismissKeyboard()
61 amountIsEditing = false 60 amountIsEditing = false
62 }) { 61 }) {
63 Text("Cancel", comment: "Button to stop editing textfield") 62 Text("Cancel")
64 } 63 }
65 } 64 }
66 } 65 }
67 } 66 }
68 .if(UIDevice.current.userInterfaceIdiom == .phone && showNavigationView ?? true) { content in 67 .if(UIDevice.current.userInterfaceIdiom == .phone && showNavigationView ?? true) { content in