- July 11, 2025
- Mins Read
An inputmask helps the user with the input by ensuring a predefined format. This can be useful for dates, numerics, phone numbers etc
@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
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.
A SwiftUI View that emits confetti with user-defined shapes, images, and text.
A colour wheel made all in SwiftUI. There are 2 different colour wheels to choose from. The first main one ...
A color picker implementation with color wheel appearance written in plain SwiftUI. It is compatible with UIColor and NSColor.
This repository is no longer maintained. Here's why: with the release of iOS 16 SwiftUI now enables most of the ...