diff options
author | Navan Chauhan <navanchauhan@gmail.com> | 2024-08-12 23:59:40 -0600 |
---|---|---|
committer | Navan Chauhan <navanchauhan@gmail.com> | 2024-08-13 00:00:24 -0600 |
commit | fb3e562581a8367e0c83bf5b4c1548a5216281cf (patch) | |
tree | fcc7ada95f409807863bf29b0ee2e435712d6fbb /Demo/SwiftyCropDemo/UIElements/DecimalTextField.swift | |
parent | 24a67bf73595994ccf4b60cdad0021b37ca45c45 (diff) |
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 } } |