RMStyleManager 0.1.0

RMStyleManager 0.1.0

TestsTested
LangLanguage Obj-CObjective C
License MIT
ReleasedLast Release Apr 2016

Maintained by MaxPetrovsky, AlexanderBalabanov.



 
Depends on:
UIColor+InputMethods>= 0
UIImage+ImageWithColor>= 0
 

  • By
  • Maks Petrovsky

About

RMStyleManager is style manager for your application working in xibs, storyboards and from code. You can simply set style filed in component user info to set style. To define style simply create category for RMStyleManager. The style string from compenent will use style from Style Manager.

If you wanna have dynamic styles , you can simply use:

+ (id)style1
{
  ....
}

+ (id)style2
{
  ....
}

+ (id)dynamicStyle
{
  if (condition)
  {
    return [self style1];
  }
  return [self style2];
}

To reload all styles call :

[RMStyleManager reloadAllStyles];

Usage

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

Requirements

Installation

RMStyleManager is available through CocoaPods. To install it, simply add the following line to your Podfile:

pod 'RMStyleManager', :git => 'https://github.com/byzyn4ik/RMStyleManager'

Author

Maks Petrovsky, [email protected]

Alexander Balabanov , [email protected]

License

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