derivation path input field is read only (#26)
Some checks failed
Xcode - Build and Analyze / Build and analyse default scheme using xcodebuild command (push) Has been cancelled
Xcode - Unit Tests / Run unit tests using xcodebuild (push) Has been cancelled
Reproducible Build Check / Verify build reproducibility (push) Has been cancelled
SwiftFormat Check / Check code formatting with SwiftFormat (push) Has been cancelled

This commit is contained in:
Nick Klockenga 2026-04-14 12:38:14 -04:00 committed by GitHub
parent 806341cdd6
commit fb7d5376f8
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 4 additions and 6 deletions

View File

@ -687,10 +687,9 @@ private struct EditCosignersView: View {
Text("Derivation Path")
.font(.hbLabel())
.foregroundStyle(Color.hbTextSecondary)
TextField("m/48'/1'/0'/2'", text: $editableCosigners[index].derivationPath)
Text(editableCosigners[index].derivationPath.isEmpty ? "" : editableCosigners[index].derivationPath)
.font(.hbMono())
.textInputAutocapitalization(.never)
.autocorrectionDisabled()
.frame(maxWidth: .infinity, alignment: .leading)
.padding(12)
.background(Color.hbSurfaceElevated)
.clipShape(RoundedRectangle(cornerRadius: 8))

View File

@ -66,10 +66,9 @@ struct CosignerImportView: View {
.font(.hbLabel())
.foregroundStyle(Color.hbTextSecondary)
TextField("m/48'/1'/0'/2'", text: $viewModel.cosignerDerivationPaths[viewModel.currentCosignerIndex])
Text(viewModel.cosignerDerivationPaths[viewModel.currentCosignerIndex].isEmpty ? "" : viewModel.cosignerDerivationPaths[viewModel.currentCosignerIndex])
.font(.hbMono())
.textInputAutocapitalization(.never)
.autocorrectionDisabled()
.frame(maxWidth: .infinity, alignment: .leading)
.padding(12)
.background(Color.hbSurfaceElevated)
.clipShape(RoundedRectangle(cornerRadius: 8))