Android App Development
iOS App Development
Flutter App Development
Cross Platform App Development
Hire on-demand project developers and turn your idea into working reality.
Big thanks to Webkul and his team for helping get Opencart 3.0.3.7 release ready!
Deniel Kerr
Founder. Opencart
Top Partners
If you’re reading this, then I assume you’re familiar with Swift Extensions. Swift Extensions add new functionality to an existing class, structure, enumeration, or protocol type. Remember, it can only add new functionality but overriding existing functionality not possible with extensions. Here I am going to share some useful UITextField Extensions.
How to use this extension:
txtField.text = "Abc..123@example.com" print("Check Email: Abc..123@example.com -- ", txtField.hasValidEmail) 12 txtField.text = "[email protected]"print("Check Email: [email protected] -- ", txtField.hasValidEmail)
Select TextField in Storyboard and Press key ⌘⌥+4 – for Attributes Inspector, you will find a new option for placeholder color
txtField.setLeftPaddingPoints(50) //or txtField.setRightPaddingPoints(50) 12345 txtField.setLeftPaddingPoints(50) //or txtField.setRightPaddingPoints(50)
txtField.setBottomBorder(color: UIColor.darkGray) 1 txtField.setBottomBorder(color: UIColor.darkGray)
txtField.addDoneButtonOnKeyboard() 1 txtField.addDoneButtonOnKeyboard()
UITextField.connectAllTxtFieldFields(txtfields: [txtField, txtField2, txtField3]) 1 UITextField.connectAllTxtFieldFields(txtfields: [txtField, txtField2, txtField3])
Select UITextField in Storyboard and Press key ⌘⌥+4 – for Attributes Inspector, you will find a new option for Max Length
Select UITextField in Storyboard and Press key ⌘⌥+4 – for Attributes Inspector, you will find a new option for Corner Radius, Border Width, Border Color and Shadow Radius
Your email address will not be published. Required fields are marked*
Name*
Email*
Save my name email and website in this browser for the next time I comment.
Be the first to comment.
We use cookies to personalize your experience. By continuing to visit this website you agree to our use of cookies. Learn more about privacy policy
All communication is done through a ticket system. I appreciate the regular almost daily updates of what is being worked on, and communicating changes or updates is easy through this system. Mobikul's response timeframe is quick.
Josh Arnold
Owner, Shop ATV Escape
USA
India
Global
Name
Email
Enquiry or Requirement
If you have more details or questions, you can reply to the received confirmation email.