aboutsummaryrefslogtreecommitdiff
path: root/Demo/SwiftyCropDemo/UIElements
diff options
context:
space:
mode:
authorNavan Chauhan <navanchauhan@gmail.com>2024-08-12 23:59:40 -0600
committerNavan Chauhan <navanchauhan@gmail.com>2024-08-13 00:00:24 -0600
commitfb3e562581a8367e0c83bf5b4c1548a5216281cf (patch)
treefcc7ada95f409807863bf29b0ee2e435712d6fbb /Demo/SwiftyCropDemo/UIElements
parent24a67bf73595994ccf4b60cdad0021b37ca45c45 (diff)
add support for macOSHEADmaster
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
}
}