VMaskTextField
  • October 21, 2023

An inputmask helps the user with the input by ensuring a predefined format. This can be useful for dates, numerics, phone numbers etc

Usage


 

@interface VViewController ()

@property (weak,nonatomic) IBOutlet VMaskTextField * maskTextField;

@end

@implementation VViewController

– (void)viewDidLoad{
//Telephone with Code Area
self.maskTextField.mask = @”(##) ####-####”;
self.maskTextField.delegate = self;
}

– (BOOL)textField:(UITextField *)textField shouldChangeCharactersInRange:(NSRange)range replacementString:(NSString *)string{
return [_maskTextField shouldChangeCharactersInRange:range replacementString:string];
}

@end

Features


  • Validating data type
  • Flexible masks
  • Automatic maxlength

Installation


VMaskTextField is available through CocoaPods. To install it, simply add the following line to your Podfile:

pod “VMaskTextField”

or copy VMaskTextField.h and VMaskTextField.m to your project folder.

GitHub


View Github

#animation #awesemetextfield #carthage #cocoapods #currencytextfield #customtextfield #customwidgets #facetedsearch #geosearch #growingtextview #input #instantsearch #interfacebuilder #ios #ioslibrary #iosswift #library #opensource #passwordtextfield #placeholder #placeholdertextview #realmswift #search #searchengine #searchinterface #searchsynonyms #styledtext #swift #swiftframework #swiftlibrary #swiftpackagemanager #swiftui #swiftuicomponents #textexpansion #textfield #texture #textview #tjtextfield #ui #uikit #uitextfield #uitextfieldnavigation #uitextview #uitextviewalgolia #widgets
YOU MIGHT ALSO LIKE...
EEStackLayout

A vertical stackview which takes subviews with different widths and adds them to it's rows with paddings, spacings etc.

AudioManager

AudioManager is a Swift package that provides a modular and easy-to-use interface for implementing audio feedback in your applications. It ...

CameraBackground

Features Both front and back camera supported. Flash modes: auto, on, off. Countdown timer. Tap to focus. Pinch to zoom. Usage  

DKCamera

Description A light weight & simple & easy camera for iOS by Swift. It uses CoreMotion framework to detect device orientation, so ...