byzyn4ik / RMStyleManager

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

RMStyleManager

[![CI Status](http://img.shields.io/travis/Maks Petrovsky/RMStyleManager.svg?style=flat)](https://travis-ci.org/Maks Petrovsky/RMStyleManager) Version License Platform

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, byzyn4ik@gmail.com

Alexander Balabanov , alxndr.blbnv@gmail.com

License

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

About

License:MIT License


Languages

Language:Objective-C 86.8%Language:Shell 10.9%Language:Ruby 2.3%