This customTextFieldframework
provides a lot of reusable functionalities to help in multiple scenarios.
Currently it features the following effects :
- Padding
- background Color
- Corner Radius
- border Width
- border Color
- Shadow Radius
- Shadow Offset
- Shadow opacity
- Shadow Color
- Error Animation
You can use CocoaPods to install TextField by adding it to your Podfile:
pod 'CustomTextFieldFramework', :git => 'https://github.com/asar1/CustomTextFieldFramework.git'
To get the full benefits import PasswordTextField wherever you import UIKit
import UIKit
import CustomTextFieldFramework
To run the example project, clone the repo or download it and run pod install
from the this project directory first.
Every effect is properly documented in the source code, this is the best way to both understand and see what they do. There is also an example project included with all the effects and their settings.
The library is a simple drop-in, as soon as you import CustomTextFieldFramework
at top of your controller and assign CustomTextField
class to native Floating Textfield. Now you will be able to see all the IBDesignable settings in the storyboard.
CustomTextFieldFramework is available under the MIT license. See the LICENSE file for more info..
Muhammad Asar Saleem, @asar1