diff options
Diffstat (limited to 'Demo/SwiftyCropDemo/UIElements/DecimalTextField.swift')
-rw-r--r-- | Demo/SwiftyCropDemo/UIElements/DecimalTextField.swift | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/Demo/SwiftyCropDemo/UIElements/DecimalTextField.swift b/Demo/SwiftyCropDemo/UIElements/DecimalTextField.swift index f616413..9758f0f 100644 --- a/Demo/SwiftyCropDemo/UIElements/DecimalTextField.swift +++ b/Demo/SwiftyCropDemo/UIElements/DecimalTextField.swift @@ -15,6 +15,8 @@ struct DecimalTextField: View { TextField("maxMagnification", value: $value, formatter: decimalFormatter) .textFieldStyle(RoundedBorderTextFieldStyle()) .multilineTextAlignment(.trailing) + #if canImport(UIKit) .keyboardType(.decimalPad) + #endif } } |