lvpengwei / Lvthemekit
Licence: mit
App 多区域皮肤 UIKit Category
Stars: ✭ 75
Projects that are alternatives of or similar to Lvthemekit
LSAdditions
The Category of Commonly used controls and you can create a control quickly(Object, Control ...)
Stars: ✭ 15 (-80%)
Mutual labels: uikit, category
RFKit
Toolkit for daily Cocoa development. Since 2012.
Stars: ✭ 20 (-73.33%)
Mutual labels: uikit, category
Hexo Auto Category
Generate categories automatically for each post in Hexo
Stars: ✭ 49 (-34.67%)
Mutual labels: category
React Bootstrap With Material Design
React Bootstrap with Material Design - Powerful and free UI KIT
Stars: ✭ 1,119 (+1392%)
Mutual labels: uikit
Creature unity
2D Skeletal Animation Unity Runtimes for Creature
Stars: ✭ 50 (-33.33%)
Mutual labels: skin
Bootstrap Xd
Bootstrap Design Template — Assets Library — for Adobe XD
Stars: ✭ 74 (-1.33%)
Mutual labels: uikit
Gogrocery
Its an eCommerce app inspired from Amazon , big Basket , grofers ,grocery app , Etc
Stars: ✭ 62 (-17.33%)
Mutual labels: uikit
Screenadaptationkit
🎨iOS rapidScreen Compatible AdapterKit(Deprecate)
Stars: ✭ 70 (-6.67%)
Mutual labels: uikit
Tap water
【声明:未发布前,勿使用,勿star,预计2020年11月底发布】Flutter tab_bar组件,支持中间带加号按钮的TabBar,支持Lottie动画。iTeaTime(技术清谈)团队出品。Highly customizable tabBar and tabBarController for Flutter
Stars: ✭ 52 (-30.67%)
Mutual labels: uikit
Uikit Computer Store Template
Computer store e-commerce template
Stars: ✭ 72 (-4%)
Mutual labels: uikit
Splitflap
A simple split-flap display for your Swift applications
Stars: ✭ 1,047 (+1296%)
Mutual labels: uikit
Vital Ui Kit
簡單、輕量級、模組化的 UI library (React component can be found in README)
Stars: ✭ 54 (-28%)
Mutual labels: uikit
Awesome Uikit
Collect JS Frameworks, Web components library and Admin Template.
Stars: ✭ 1,136 (+1414.67%)
Mutual labels: uikit
Ibanimatable
Design and prototype customized UI, interaction, navigation, transition and animation for App Store ready Apps in Interface Builder with IBAnimatable.
Stars: ✭ 8,585 (+11346.67%)
Mutual labels: uikit
LVThemeKit
App 多区域皮肤 UIKit Category
LVThemeKit/ObjC
适用于 OC 项目
LVThemeKit/Swift
适用于 Swift 项目
功能
- UIKit Category
- UIView
- UIImageView
- UILabel
- UIButton
- UISlider
- QuartzCore Category
- CALayer
- CAShapeLayer
- Resource
- LVThemeColor
- LVThemeImage
- LVThemeString
- LVThemeAttributedString
- 其他,可以很容易的扩展
用法
- UIView
// OC
self.label.viewTK.theme.backgroundColor = [LVThemeColor background];
self.label.viewTK.other.backgroundColor = [LVThemeColor otherBackground];
// Swift
label.viewTK.theme.backgroundColor = LVThemeColor.background
label.viewTK.other.backgroundColor = LVThemeColor.otherBackground
- UIButton
// OC
[self.button.buttonTK.theme setImage:[LVThemeImage image] forState:UIControlStateNormal];
// Swift
button.buttonTK.theme.setImage(LVThemeImage.image, for: .normal)
- CALayer
// OC
self.layer.layerTK.theme.borderColor = [LVThemeColor background];
// Swift
layer.layerTK.theme.borderColor = LVthemeColor.background
配置
-
LVThemeKitConfig
-
generators
: 监听主题变化的通知数组,根据配置的数量生成主题数量 -
applyProperty
: 当配置多套主题时,自定义应用顺序,默认是数组顺序
-
// OC
LVThemeKitConfig *conf = [[LVThemeKitConfig alloc] init];
config.generators = @[[DayNightObserver class]];
LVThemeKit.config = conf;
// Swift
let conf = LVThemeKitConfig()
conf.generators = [DayNightObserver.self]
LVThemeKitConfig.config = conf
扩展
- 扩展类,参考
UIView
/CALayer
- 扩展属性
- 支持
KVC
,参考UIView.backgroundColor
- 不支持
KVC
,参考UIButton.setTitle:forState:
- 支持
- 替换已有的类,比如
UIView.viewTK
,可以新加一个属性UIView.x_viewTK
例子
-
LVThemeKit/ObjC
-
MultiThemesDemo: 多区域多主题,
OC
项目 -
DayNightDemo: 单主题(黑夜模式),
Swift
项目
-
MultiThemesDemo: 多区域多主题,
-
LVThemeKit/Swift
-
DayNightDemoSwift:单主题(黑夜模式),
Swift
项目
-
DayNightDemoSwift:单主题(黑夜模式),
安装
Cocoapods
pod 'LVThemeKit/ObjC'
或者
pod 'LVThemeKit/Swift'
类图
Note that the project description data, including the texts, logos, images, and/or trademarks,
for each open source project belongs to its rightful owner.
If you wish to add or remove any projects, please contact us at [email protected].