Latest 1.0.0
Homepage https://github.com/octree/SwiftyThemeKit
License MIT
Platforms ios 9.0
Authors

Carthage compatible
CocoaPods Compatible
Platform

自动产生配色方案,一键切换夜间模式。

配色是参考的 colorless.app

Shot

demo

Usage

// 设置主题色和样式
// color: 主题色
// style:light、dark、night
ThemeManager.shared.changeTheme(with: color, style: style)

// bind
navigationController?.navigationBar.tk.barTintColor = Theme.background.bar
label.tk.textColor = Theme.text.primary
view.tk.backgroundColor = Theme.background.primary

// 切换主题, view 会自动更新
ThemeManager.shared.changeTheme(with: anotherColor, style: .night)

Installation

carthage

github "octree/SwiftyThemeKit"  ~> 1.0.0

CocoaPods

pod 'SwiftyThemeKit', '~> 1.0.0'

License

ThemeKit is released under the MIT license. See LICENSE for details.

Latest podspec

{
    "name": "SwiftyThemeKit",
    "version": "1.0.0",
    "license": "MIT",
    "summary": "Elegant Theme Kit in Swift",
    "homepage": "https://github.com/octree/SwiftyThemeKit",
    "authors": {
        "Octree": "[email protected]"
    },
    "source": {
        "git": "https://github.com/octree/SwiftyThemeKit.git",
        "tag": "1.0.0"
    },
    "documentation_url": "https://github.com/octree/SwiftyThemeKit",
    "platforms": {
        "ios": "9.0"
    },
    "source_files": "SwiftyThemeKit/**/*.swift"
}

Pin It on Pinterest

Share This