aboutsummaryrefslogtreecommitdiff
path: root/Demo/SwiftyCropDemo/UIElements
diff options
context:
space:
mode:
Diffstat (limited to 'Demo/SwiftyCropDemo/UIElements')
-rw-r--r--Demo/SwiftyCropDemo/UIElements/DecimalTextField.swift2
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
}
}