To run the example project, clone the repo, and run pod install
from the Example directory first.
-
Set The default fonts in the whole app in AppDelegate - AJFontExtension.sharedInstance.larger = "HelveticaNeue-Italic" AJFontExtension.sharedInstance.normal = "HelveticaNeue-BoldItalic" AJFontExtension.sharedInstance.title = "HelveticaNeue-Medium" AJFontExtension.sharedInstance.subtitle = "HelveticaNeue" AJFontExtension.sharedInstance.descriptive = "HelveticaNeue-Thin"
-
In Storyboard Inspector You will see the fontName property Set it to whatever font you want from the above like -title for "HelveticaNeue-Medium"
- So you can set font in this way throught the app for UILabel, UITextView, UITextField.
- One benefit of this will be when you have to change the Font thoughout the app, just change in AppDelegate. Font changed throughout the App with no manually setting.
- Just hard part to remember which value is set for what.
- Suggestion and improvements are welcomed.
AJIBDesignables is available through CocoaPods. To install it, simply add the following line to your Podfile:
pod 'AJIBDesignables', :git => 'https://github.com/arunlj561/AJIBDesignables'
You can add Corner Radius, Border width, Border sides, Gradient to View, padding to TextField.
arunlj561, arunlj561@gmail.com