From fb3e562581a8367e0c83bf5b4c1548a5216281cf Mon Sep 17 00:00:00 2001 From: Navan Chauhan Date: Mon, 12 Aug 2024 23:59:40 -0600 Subject: add support for macOS --- Demo/SwiftyCropDemo/UIElements/DecimalTextField.swift | 2 ++ 1 file changed, 2 insertions(+) (limited to 'Demo/SwiftyCropDemo/UIElements/DecimalTextField.swift') 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 } } -- cgit v1.2.3