Feat: Fixing equipment settings form
This commit is contained in:
@@ -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
|
||||
)
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user