Skip to content

Commit

Permalink
#1 readjusted logic component for scanner
Browse files Browse the repository at this point in the history
  • Loading branch information
ctkqiang committed Feb 9, 2023
1 parent dadfb3c commit aa0cf3e
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 7 deletions.
4 changes: 2 additions & 2 deletions Cryato/Views/ContentView.swift
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ struct ContentView: View {
Image(systemName: "wallet.pass.fill")
Text("Assets")
}
}
}.tint(self.colorScheme == .dark ? Color.white : Color.black)
}
.scrollDismissesKeyboard(.interactively)
.background(self.colorScheme == .dark ? .black : .white)
Expand All @@ -95,7 +95,7 @@ struct ContentView: View {
}
}
}
}
}.background(self.colorScheme == .dark ? .black : .white)
}
}

Expand Down
7 changes: 2 additions & 5 deletions Cryato/Views/ScannerView.swift
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,6 @@ struct ScannerView: View {
var body: some View {
NavigationView {
VStack {

Form {
HStack {
TextField("Wallet Address", text: self.$walletId)
Expand All @@ -70,12 +69,11 @@ struct ScannerView: View {

self.getTransactions()
}.foregroundColor(.green)
}.textFieldStyle(.roundedBorder)
}
}
.navigationBarTitle("Scanner")
.scrollDismissesKeyboard(.interactively)
.scrollContentBackground(.hidden)
.background(self.colorScheme == .dark ? .black : .white)
.background(self.colorScheme == .dark ? .black : .gray.opacity(0.1))
.refreshable { self.walletId = "" }
.frame(maxHeight: 60)

Expand All @@ -88,7 +86,6 @@ struct ScannerView: View {
}
}
}
.scrollContentBackground(.hidden)
.background(.gray.opacity(0.0))
.onAppear(perform: self.getTransactions)
.listStyle(.insetGrouped)
Expand Down

0 comments on commit aa0cf3e

Please sign in to comment.