feat: Begins equipment measurement form

This commit is contained in:
2024-06-04 22:57:18 -04:00
parent a65ac76dde
commit 6ec3eacb8d
3 changed files with 354 additions and 1 deletions

View File

@@ -15,5 +15,19 @@ extension TextField where Label == Text {
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
)
}
}