feat: Adds airflow at pressure feature.
This commit is contained in:
20
Sources/Styleguide/KeyboardStyles.swift
Normal file
20
Sources/Styleguide/KeyboardStyles.swift
Normal file
@@ -0,0 +1,20 @@
|
||||
import SwiftUI
|
||||
|
||||
extension View {
|
||||
|
||||
public func numberPad() -> some View {
|
||||
#if os(iOS)
|
||||
self.keyboardType(.numberPad)
|
||||
#else
|
||||
self
|
||||
#endif
|
||||
}
|
||||
|
||||
public func decimalPad() -> some View {
|
||||
#if os(iOS)
|
||||
self.keyboardType(.decimalPad)
|
||||
#else
|
||||
self
|
||||
#endif
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user