feat: wip

This commit is contained in:
2024-06-17 11:46:42 -04:00
parent cf4c00d9d5
commit fd3d33878a
7 changed files with 35 additions and 26 deletions

View File

@@ -0,0 +1,22 @@
import SwiftUI
extension View {
public func numberPad() -> some View {
#if os(iOS)
self.keyboardType(.numberPad)
#else
self
#endif
}
// The decimal pad autocompletes too quickly in the simulator, needs tested on an actual
// device.
public func decimalPad() -> some View {
#if os(iOS)
self.keyboardType(.decimalPad)
#else
self
#endif
}
}