MemriTextField
public struct MemriTextField<Value> : UIViewRepresentable where Value : Equatable
Undocumented
-
Undocumented
Declaration
Swift
@Binding var value: Value { get nonmutating set }
-
Undocumented
Declaration
Swift
var valueToString: (Value) -> String?
-
Undocumented
Declaration
Swift
var stringToValue: (String?) -> Value
-
Undocumented
Declaration
Swift
var textColor: UIColor?
-
Undocumented
Declaration
Swift
var tintColor: UIColor?
-
Undocumented
Declaration
Swift
var placeholder: String?
-
Undocumented
Declaration
Swift
var allowEmpty: Bool
-
Undocumented
Declaration
Swift
var allowedCharacters: CharacterSet?
-
Undocumented
Declaration
Swift
var clearButtonMode: UITextField.ViewMode
-
Undocumented
Declaration
Swift
var keyboardType: UIKeyboardType
-
Undocumented
Declaration
Swift
var returnKeyType: UIReturnKeyType
-
Undocumented
Declaration
Swift
var showPrevNextButtons: Bool
-
Undocumented
Declaration
Swift
var selectAllOnEdit: Bool
-
Undocumented
Declaration
Swift
var font: UIFont?
-
Undocumented
Declaration
Swift
var secureMode: Bool
-
Undocumented
Declaration
Swift
var isEditing: Binding<Bool>?
-
Allows making this textfield
Declaration
Swift
var isSharedEditingBinding: Bool
-
Undocumented
Declaration
Swift
@Environment var textAlignment: TextAlignment { get }
-
Undocumented
Declaration
Swift
var valueString: String? { get set }
-
Declaration
Swift
public func makeUIView(context: Context) -> MemriTextField_UIKit
-
Declaration
Swift
public func updateUIView(_ textField: MemriTextField_UIKit, context: Context)
-
Declaration
Swift
public func makeCoordinator() -> Delegate
-
Undocumented
Declaration
Swift
func onEditingBegan(_ callback: @escaping () -> Void) -> MemriTextField<Value>
-
Undocumented
Declaration
Swift
func onEditingEnded(_ callback: @escaping () -> Void) -> MemriTextField<Value>
-
Undocumented
See moreDeclaration
Swift
public class Delegate : NSObject, UITextFieldDelegate
-
Undocumented
Declaration
Swift
func textFieldFont(_ font: UIFont) -> MemriTextField<Value>
-
init(value:
placeholder: textColor: tintColor: allowedCharacters: clearButtonMode: keyboardType: returnKeyType: showPrevNextButtons: selectAllOnEdit: isEditing: isSharedEditingBinding: secureMode: ) Undocumented
Declaration
Swift
init( value: Binding<String?>, placeholder: String? = nil, textColor: UIColor? = nil, tintColor: UIColor? = nil, allowedCharacters: CharacterSet? = nil, clearButtonMode: UITextField.ViewMode = .never, keyboardType: UIKeyboardType = .default, returnKeyType: UIReturnKeyType = .default, showPrevNextButtons: Bool = true, selectAllOnEdit: Bool = false, isEditing: Binding<Bool>? = nil, isSharedEditingBinding: Bool = false, secureMode: Bool = false )
-
init(value:
placeholder: textColor: tintColor: allowedCharacters: clearButtonMode: keyboardType: returnKeyType: showPrevNextButtons: selectAllOnEdit: isEditing: isSharedEditingBinding: secureMode: ) Undocumented
Declaration
Swift
init( value: Binding<String>, placeholder: String? = nil, textColor: UIColor? = nil, tintColor: UIColor? = nil, allowedCharacters: CharacterSet? = nil, clearButtonMode: UITextField.ViewMode = .never, keyboardType: UIKeyboardType = .default, returnKeyType: UIReturnKeyType = .default, showPrevNextButtons: Bool = true, selectAllOnEdit: Bool = false, isEditing: Binding<Bool>? = nil, isSharedEditingBinding: Bool = false, secureMode: Bool = false )
-
Undocumented
Declaration
Swift
init( value: Binding<Int>, placeholder: String? = nil, textColor: UIColor? = nil, clearButtonMode: UITextField.ViewMode = .never, selectAllOnEdit: Bool = false, isEditing: Binding<Bool>? = nil, isSharedEditingBinding: Bool = false )
-
Undocumented
Declaration
Swift
init( value: Binding<Double>, placeholder: String? = nil, textColor: UIColor? = nil, clearButtonMode: UITextField.ViewMode = .never, selectAllOnEdit: Bool = false, isEditing: Binding<Bool>? = nil, isSharedEditingBinding: Bool = false )