Mercurial > public > simoleon
comparison Simoleon/Conversion.swift @ 29:c52966834f83
Add localised strings
author | Dennis Concepción Martín <dennisconcepcionmartin@gmail.com> |
---|---|
date | Thu, 22 Jul 2021 22:30:54 +0100 |
parents | 4f862c618b44 |
children | f76d0e26c178 |
comparison
equal
deleted
inserted
replaced
28:4f862c618b44 | 29:c52966834f83 |
---|---|
60 }) | 60 }) |
61 .sheet(isPresented: $showingCurrencySelector) { | 61 .sheet(isPresented: $showingCurrencySelector) { |
62 CurrencySelector(currencyPair: $currencyPair, showingCurrencySelector: $showingCurrencySelector) | 62 CurrencySelector(currencyPair: $currencyPair, showingCurrencySelector: $showingCurrencySelector) |
63 } | 63 } |
64 } | 64 } |
65 .navigationTitle("Conversion") | 65 .navigationTitle(Text("Conversion", comment: "Navigation title")) |
66 .toolbar { | 66 .toolbar { |
67 ToolbarItem(placement: .cancellationAction) { | 67 ToolbarItem(placement: .cancellationAction) { |
68 if isEditing { | 68 if isEditing { |
69 Button("Cancel", action: { | 69 Button(action: { |
70 UIApplication.shared.dismissKeyboard() | 70 UIApplication.shared.dismissKeyboard() |
71 isEditing = false | 71 isEditing = false |
72 }) | 72 }) { |
73 Text("Cancel", comment: "Button to stop editing textfield") | |
74 } | |
73 } | 75 } |
74 } | 76 } |
75 } | 77 } |
76 .if(UIDevice.current.userInterfaceIdiom == .phone && fetchUserSettings) { content in | 78 .if(UIDevice.current.userInterfaceIdiom == .phone && fetchUserSettings) { content in |
77 NavigationView { content } | 79 NavigationView { content } |