Skip to content

arunlj561/AJIBDesignables

Repository files navigation

AJIBDesignables

CI Status Version License Platform

Example

To run the example project, clone the repo, and run pod install from the Example directory first.

  1. 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"

  2. In Storyboard Inspector You will see the fontName property Set it to whatever font you want from the above like -title for "HelveticaNeue-Medium"

screen shot 2017-04-27 at 6 01 52 pm

  1. So you can set font in this way throught the app for UILabel, UITextView, UITextField. simulator screen shot apr 27 2017 5 47 42 pm
  2. 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.
  3. Just hard part to remember which value is set for what.
  4. Suggestion and improvements are welcomed.

Requirements

Installation

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.

Author

arunlj561, arunlj561@gmail.com

License

AJIBDesignables is available under the MIT license. See the LICENSE file for more info.

AJIBDesignables