UITextField

class UITextField : UIControl, UITextInput, NSCoding, UIContentSizeCategoryAdjusting
  • Localizing placeholder and sets the accessibilityIdentifier

    Declaration

    Swift

    @objc
    open var localizedPlaceholder: String? { get set }
  • Declaration

    Swift

    open override func awakeFromNib()
  • Sets the localized placeholder with format.

    Declaration

    Swift

    @discardableResult
    open func localizePlaceholder(formatKey: String, _ arguments: CVarArg...) -> String?

    Parameters

    text

    The text to localize

    arguments

    The arguments to replace

    Return Value

    the localized placeholder String? with format