Skip to content

Commit

Permalink
#1 updated user interface
Browse files Browse the repository at this point in the history
  • Loading branch information
ctkqiang committed Feb 16, 2023
1 parent f97a22b commit 7e4a2bb
Showing 1 changed file with 5 additions and 18 deletions.
23 changes: 5 additions & 18 deletions Cryato/Views/ScannerView.swift
Original file line number Diff line number Diff line change
Expand Up @@ -64,25 +64,12 @@ struct ScannerView: View {
NavigationView {
VStack {
Form {
HStack {
TextField("Wallet Address (TRC20)", text: self.$walletId)
.frame(height: 30)
.controlSize(.large)
.onChange(of: self.walletId) { input in
try! self.validate(input, 0x0)
}

Button(
action: {
self.walletId = ""
self.showAlert = false
}
) {
Image(systemName: "delete.left.fill")
.foregroundColor(.red)
.frame(height:20)
TextField("Wallet Address (TRC20)", text: self.$walletId)
.frame(height: 30)
.controlSize(.large)
.onChange(of: self.walletId) { input in
try! self.validate(input, 0x0)
}
}
}
.navigationBarTitle("Scanner")
.background(self.colorScheme == .dark ? .black : .gray.opacity(0.0))
Expand Down

0 comments on commit 7e4a2bb

Please sign in to comment.