Feat: Fixing equipment settings form

This commit is contained in:
2024-06-05 10:13:41 -04:00
parent 6ec3eacb8d
commit c13b3740f2
10 changed files with 545 additions and 693 deletions

View File

@@ -30,4 +30,32 @@ extension TextField where Label == Text {
)
}
public init(
_ titleKey: LocalizedStringKey,
value: Binding<Double>,
fractionLength: Int,
prompt: Text? = nil
) {
self.init(
titleKey,
value: value,
format: .number.precision(.fractionLength(fractionLength)),
prompt: prompt
)
}
public init<S: StringProtocol>(
_ titleKey: S,
value: Binding<Double>,
fractionLength: Int,
prompt: Text? = nil
) {
self.init(
titleKey,
value: value,
format: .number.precision(.fractionLength(fractionLength)),
prompt: prompt
)
}
}