Skip to content

Commit

Permalink
cleanup of other efforts to debug
Browse files Browse the repository at this point in the history
Signed-off-by: kcw-grunt <[email protected]>
  • Loading branch information
kcw-grunt committed Jan 15, 2024
1 parent 0aa3433 commit 6026658
Show file tree
Hide file tree
Showing 5 changed files with 2 additions and 130 deletions.
62 changes: 0 additions & 62 deletions litewallet/AmountFieldView.swift

This file was deleted.

5 changes: 2 additions & 3 deletions litewallet/SendAddressCellView.swift
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,6 @@ struct SendAddressCellView: View {
var viewModel = SendAddressCellViewModel()

let actionButtonWidth: CGFloat = 45.0
let toggleButtonWidth: CGFloat = 60.0

let textFieldHeight: CGFloat = 45.0

var body: some View {
Expand All @@ -20,7 +18,8 @@ struct SendAddressCellView: View {
/// Send Address Field
HStack {
VStack {
AddressFieldView(placeholder: S.Send.enterLTCAddressLabel.localize(), text: $viewModel.addressString)
AddressFieldView(placeholder: S.Send.enterLTCAddressLabel.localize(),
text: $viewModel.addressString)
.frame(height: textFieldHeight, alignment: .leading)
}
.padding(.leading, swiftUICellPadding)
Expand Down
8 changes: 0 additions & 8 deletions litewallet/SendAddressCellViewModel.swift
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,6 @@ class SendAddressCellViewModel: ObservableObject {
@Published
var addressString: String = ""

@Published
var amountString: String = ""

@Published
var didUpdatePaste: Bool = false

Expand All @@ -18,11 +15,6 @@ class SendAddressCellViewModel: ObservableObject {

var shouldScanAddress: (() -> Void)?

var balanceTextForAmount: ((Satoshis?, Rate?) -> (NSAttributedString?, NSAttributedString?)?)?
var didUpdateAmount: ((Satoshis?) -> Void)?
var didChangeFirstResponder: ((Bool) -> Void)?
var didShowFiat: ((_ isShowingFiat: Bool) -> Void)?

init()
{}
}
4 changes: 0 additions & 4 deletions litewallet/SendAddressHostingController.swift
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,4 @@ class SendAddressHostingController: UIHostingController<SendAddressCellView> {
@MainActor dynamic required init?(coder _: NSCoder) {
fatalError("init(coder:) has not been implemented")
}

func didUpdateAddressString() {
addressString = contentView.viewModel.addressString
}
}
53 changes: 0 additions & 53 deletions litewallet/src/MemoFieldView.swift

This file was deleted.

0 comments on commit 6026658

Please sign in to comment.