One Logo Pool Ball
UIKit · IOS API REFERENCE

UITextField

class · iOS 2.0+ · SDK 27.1

@MainActor class UITextField

Members (67)

get · iOS 10.0+

didEndEditingReasonUserInfoKey

TypeScript
static get didEndEditingReasonUserInfoKey(): Promise<string>
Swift declaration
nonisolated class let didEndEditingReasonUserInfoKey: String
get

textDidBeginEditingNotification

TypeScript
static get textDidBeginEditingNotification(): Promise<_Foundation_NSNotification_Name>
Swift declaration
nonisolated class let textDidBeginEditingNotification: NSNotification.Name
get

textDidChangeNotification

TypeScript
static get textDidChangeNotification(): Promise<_Foundation_NSNotification_Name>
Swift declaration
nonisolated class let textDidChangeNotification: NSNotification.Name
get

textDidEndEditingNotification

TypeScript
static get textDidEndEditingNotification(): Promise<_Foundation_NSNotification_Name>
Swift declaration
nonisolated class let textDidEndEditingNotification: NSNotification.Name
method · iOS 2.0+

borderRect

TypeScript
borderRect(bounds: { x: number; y: number; width: number; height: number }): Promise<{ x: number; y: number; width: number; height: number }>
Swift declaration
func borderRect(forBounds bounds: CGRect) -> CGRect
method · iOS 2.0+

clearButtonRect

TypeScript
clearButtonRect(bounds: { x: number; y: number; width: number; height: number }): Promise<{ x: number; y: number; width: number; height: number }>
Swift declaration
func clearButtonRect(forBounds bounds: CGRect) -> CGRect
method · iOS 2.0+

drawPlaceholder

TypeScript
drawPlaceholder(rect: { x: number; y: number; width: number; height: number }): Promise<void>
Swift declaration
func drawPlaceholder(in rect: CGRect)
method · iOS 2.0+ · Deprecated in iOS 15.0

drawText

TypeScript
drawText(rect: { x: number; y: number; width: number; height: number }): Promise<void>
Swift declaration
func drawText(in rect: CGRect)
method · iOS 2.0+

editingRect

TypeScript
editingRect(bounds: { x: number; y: number; width: number; height: number }): Promise<{ x: number; y: number; width: number; height: number }>
Swift declaration
func editingRect(forBounds bounds: CGRect) -> CGRect
init

init

TypeScript
static init(): Promise<UITextField>
Swift declaration
init()
method · iOS 2.0+

leftViewRect

TypeScript
leftViewRect(bounds: { x: number; y: number; width: number; height: number }): Promise<{ x: number; y: number; width: number; height: number }>
Swift declaration
func leftViewRect(forBounds bounds: CGRect) -> CGRect
method · iOS 2.0+

placeholderRect

TypeScript
placeholderRect(bounds: { x: number; y: number; width: number; height: number }): Promise<{ x: number; y: number; width: number; height: number }>
Swift declaration
func placeholderRect(forBounds bounds: CGRect) -> CGRect
method · iOS 2.0+

rightViewRect

TypeScript
rightViewRect(bounds: { x: number; y: number; width: number; height: number }): Promise<{ x: number; y: number; width: number; height: number }>
Swift declaration
func rightViewRect(forBounds bounds: CGRect) -> CGRect
method · iOS 2.0+

textRect

TypeScript
textRect(bounds: { x: number; y: number; width: number; height: number }): Promise<{ x: number; y: number; width: number; height: number }>
Swift declaration
func textRect(forBounds bounds: CGRect) -> CGRect
get · iOS 2.0+

adjustsFontSizeToFitWidth

TypeScript
get adjustsFontSizeToFitWidth(): Promise<boolean>
Swift declaration
var adjustsFontSizeToFitWidth: Bool { get set }
set · iOS 2.0+

adjustsFontSizeToFitWidth

TypeScript
setAdjustsFontSizeToFitWidth(value: boolean): Promise<void>
Swift declaration
var adjustsFontSizeToFitWidth: Bool { get set }
get · iOS 6.0+

allowsEditingTextAttributes

TypeScript
get allowsEditingTextAttributes(): Promise<boolean>
Swift declaration
var allowsEditingTextAttributes: Bool { get set }
set · iOS 6.0+

allowsEditingTextAttributes

TypeScript
setAllowsEditingTextAttributes(value: boolean): Promise<void>
Swift declaration
var allowsEditingTextAttributes: Bool { get set }
get · iOS 6.0+

attributedPlaceholder

TypeScript
get attributedPlaceholder(): Promise<(_Foundation_NSAttributedString) | null>
Swift declaration
@NSCopying var attributedPlaceholder: NSAttributedString? { get set }
set · iOS 6.0+

attributedPlaceholder

TypeScript
setAttributedPlaceholder(value?: (_Foundation_NSAttributedString) | null): Promise<void>
Swift declaration
@NSCopying var attributedPlaceholder: NSAttributedString? { get set }
get · iOS 6.0+

attributedText

TypeScript
get attributedText(): Promise<(_Foundation_NSAttributedString) | null>
Swift declaration
@NSCopying var attributedText: NSAttributedString? { get set }
set · iOS 6.0+

attributedText

TypeScript
setAttributedText(value?: (_Foundation_NSAttributedString) | null): Promise<void>
Swift declaration
@NSCopying var attributedText: NSAttributedString? { get set }
get · iOS 2.0+

background

TypeScript
get background(): Promise<(UIImage) | null>
Swift declaration
var background: UIImage? { get set }
set · iOS 2.0+

background

TypeScript
setBackground(value?: (UIImage) | null): Promise<void>
Swift declaration
var background: UIImage? { get set }
get · iOS 2.0+

borderStyle

TypeScript
get borderStyle(): Promise<UITextField_BorderStyle>
Swift declaration
var borderStyle: UITextField.BorderStyle { get set }
set · iOS 2.0+

borderStyle

TypeScript
setBorderStyle(value: UITextField_BorderStyle): Promise<void>
Swift declaration
var borderStyle: UITextField.BorderStyle { get set }
get · iOS 2.0+

clearButtonMode

TypeScript
get clearButtonMode(): Promise<UITextField_ViewMode>
Swift declaration
var clearButtonMode: UITextField.ViewMode { get set }
set · iOS 2.0+

clearButtonMode

TypeScript
setClearButtonMode(value: UITextField_ViewMode): Promise<void>
Swift declaration
var clearButtonMode: UITextField.ViewMode { get set }
get · iOS 2.0+

clearsOnBeginEditing

TypeScript
get clearsOnBeginEditing(): Promise<boolean>
Swift declaration
var clearsOnBeginEditing: Bool { get set }
set · iOS 2.0+

clearsOnBeginEditing

TypeScript
setClearsOnBeginEditing(value: boolean): Promise<void>
Swift declaration
var clearsOnBeginEditing: Bool { get set }
get · iOS 6.0+

clearsOnInsertion

TypeScript
get clearsOnInsertion(): Promise<boolean>
Swift declaration
var clearsOnInsertion: Bool { get set }
set · iOS 6.0+

clearsOnInsertion

TypeScript
setClearsOnInsertion(value: boolean): Promise<void>
Swift declaration
var clearsOnInsertion: Bool { get set }
get · iOS 7.0+

defaultTextAttributes

TypeScript
get defaultTextAttributes(): Promise<NativeMap<_Foundation_NSAttributedString_Key, unknown>>
Swift declaration
var defaultTextAttributes: [NSAttributedString.Key : Any] { get set }
set · iOS 7.0+

defaultTextAttributes

TypeScript
setDefaultTextAttributes(value: NativeMap<_Foundation_NSAttributedString_Key, unknown>): Promise<void>
Swift declaration
var defaultTextAttributes: [NSAttributedString.Key : Any] { get set }
get · iOS 2.0+

delegate

TypeScript
get delegate(): Promise<(SDKHandle) | null>
Swift declaration
weak var delegate: (any UITextFieldDelegate)? { get set }
set · iOS 2.0+

delegate

TypeScript
setDelegate(value?: (Implements<UITextFieldDelegate> | SDKHandle) | null): Promise<void>
Swift declaration
weak var delegate: (any UITextFieldDelegate)? { get set }
get · iOS 2.0+

disabledBackground

TypeScript
get disabledBackground(): Promise<(UIImage) | null>
Swift declaration
var disabledBackground: UIImage? { get set }
set · iOS 2.0+

disabledBackground

TypeScript
setDisabledBackground(value?: (UIImage) | null): Promise<void>
Swift declaration
var disabledBackground: UIImage? { get set }
get · iOS 2.0+

isEditing

TypeScript
get isEditing(): Promise<boolean>
Swift declaration
var isEditing: Bool { get }
get · iOS 2.0+

font

TypeScript
get font(): Promise<(UIFont) | null>
Swift declaration
var font: UIFont? { get set }
set · iOS 2.0+

font

TypeScript
setFont(value?: (UIFont) | null): Promise<void>
Swift declaration
var font: UIFont? { get set }
get · iOS 2.0+

inputAccessoryView

TypeScript
get inputAccessoryView(): Promise<(UIView) | null>
Swift declaration
var inputAccessoryView: UIView? { get set }
set · iOS 2.0+

inputAccessoryView

TypeScript
setInputAccessoryView(value?: (UIView) | null): Promise<void>
Swift declaration
var inputAccessoryView: UIView? { get set }
get · iOS 2.0+

inputView

TypeScript
get inputView(): Promise<(UIView) | null>
Swift declaration
var inputView: UIView? { get set }
set · iOS 2.0+

inputView

TypeScript
setInputView(value?: (UIView) | null): Promise<void>
Swift declaration
var inputView: UIView? { get set }
get · iOS 15.0+

interactionState

TypeScript
get interactionState(): Promise<unknown>
Swift declaration
var interactionState: Any { get set }
set · iOS 15.0+

interactionState

TypeScript
setInteractionState(value: unknown): Promise<void>
Swift declaration
var interactionState: Any { get set }
get · iOS 2.0+

leftView

TypeScript
get leftView(): Promise<(UIView) | null>
Swift declaration
var leftView: UIView? { get set }
set · iOS 2.0+

leftView

TypeScript
setLeftView(value?: (UIView) | null): Promise<void>
Swift declaration
var leftView: UIView? { get set }
get · iOS 2.0+

leftViewMode

TypeScript
get leftViewMode(): Promise<UITextField_ViewMode>
Swift declaration
var leftViewMode: UITextField.ViewMode { get set }
set · iOS 2.0+

leftViewMode

TypeScript
setLeftViewMode(value: UITextField_ViewMode): Promise<void>
Swift declaration
var leftViewMode: UITextField.ViewMode { get set }
get · iOS 2.0+

minimumFontSize

TypeScript
get minimumFontSize(): Promise<number>
Swift declaration
var minimumFontSize: CGFloat { get set }
set · iOS 2.0+

minimumFontSize

TypeScript
setMinimumFontSize(value: number): Promise<void>
Swift declaration
var minimumFontSize: CGFloat { get set }
get · iOS 2.0+

placeholder

TypeScript
get placeholder(): Promise<(string) | null>
Swift declaration
var placeholder: String? { get set }
set · iOS 2.0+

placeholder

TypeScript
setPlaceholder(value?: (string) | null): Promise<void>
Swift declaration
var placeholder: String? { get set }
get · iOS 2.0+

rightView

TypeScript
get rightView(): Promise<(UIView) | null>
Swift declaration
var rightView: UIView? { get set }
set · iOS 2.0+

rightView

TypeScript
setRightView(value?: (UIView) | null): Promise<void>
Swift declaration
var rightView: UIView? { get set }
get · iOS 2.0+

rightViewMode

TypeScript
get rightViewMode(): Promise<UITextField_ViewMode>
Swift declaration
var rightViewMode: UITextField.ViewMode { get set }
set · iOS 2.0+

rightViewMode

TypeScript
setRightViewMode(value: UITextField_ViewMode): Promise<void>
Swift declaration
var rightViewMode: UITextField.ViewMode { get set }
get · iOS 2.0+

text

TypeScript
get text(): Promise<(string) | null>
Swift declaration
var text: String? { get set }
set · iOS 2.0+

text

TypeScript
setText(value?: (string) | null): Promise<void>
Swift declaration
var text: String? { get set }
get · iOS 2.0+

textAlignment

TypeScript
get textAlignment(): Promise<NSTextAlignment>
Swift declaration
var textAlignment: NSTextAlignment { get set }
set · iOS 2.0+

textAlignment

TypeScript
setTextAlignment(value: NSTextAlignment): Promise<void>
Swift declaration
var textAlignment: NSTextAlignment { get set }
get · iOS 2.0+

textColor

TypeScript
get textColor(): Promise<(UIColor) | null>
Swift declaration
var textColor: UIColor? { get set }
set · iOS 2.0+

textColor

TypeScript
setTextColor(value?: (UIColor) | null): Promise<void>
Swift declaration
var textColor: UIColor? { get set }
get · iOS 6.0+

typingAttributes

TypeScript
get typingAttributes(): Promise<(NativeMap<_Foundation_NSAttributedString_Key, unknown>) | null>
Swift declaration
var typingAttributes: [NSAttributedString.Key : Any]? { get set }
set · iOS 6.0+

typingAttributes

TypeScript
setTypingAttributes(value?: (NativeMap<_Foundation_NSAttributedString_Key, unknown>) | null): Promise<void>
Swift declaration
var typingAttributes: [NSAttributedString.Key : Any]? { get set }

Skipped declarations

No declarations were skipped in this snapshot.

All UIKit types →