Haidora / HaidoraThemeKit

UIKit appearance的封装。fork from(https://github.com/dphans/DPTheme)
MIT License
4 stars 0 forks source link

HaidoraThemeKit

UIKit appearance 的封装。

Usage

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

Objective-C

#import <HaidoraThemeKit/HaidoraThemeKit-Swift.h>
//or #import <XXX-Swift.h>

[HDThemeKit setupThemeWithPrimaryColor:[UIColor redColor] secondaryColor:[UIColor whiteColor]];

//自定义某一类
[UIXXX applyHDTheme:XXX]

Swift

HDThemeKit.setupTheme() 
//or HDThemeKit.setupTheme(primaryColor: UIColor(red:0.314, green:0.420, blue:0.471, alpha: 1), secondaryColor: UIColor.whiteColor())

//自定义某一类
UIXXX.applyHDTheme(XXX)

Installation

CocoaPods

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

pod "HaidoraThemeKit"

CocoaSeeds

可以通过CocoaSeeds来安装。Seedfile如下:

github "Haidora/HaidoraThemeKit", "0.1.0", :files => "Pod/Classes/*.{swift,h}"

Manually

Download the latest tag and drag the sources into your Xcode project.

进度

UIActivityIndicatorView

UINavigationBar

UIPageControl

UIProgressView

UISegmentedControl

UISlider

UIStepper

UISwitch

UITabBar

UIToolbar

Contact

Mrdaios

License

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