https://github.com/snail-z/thememanager
ThemeManager is a lightweight library for application to switching themes. support more attributes and theme extensions. more easy and convenient to use.
https://github.com/snail-z/thememanager
cocoapods json night-mode objective-c plist skin theme ui
Last synced: about 2 months ago
JSON representation
ThemeManager is a lightweight library for application to switching themes. support more attributes and theme extensions. more easy and convenient to use.
- Host: GitHub
- URL: https://github.com/snail-z/thememanager
- Owner: snail-z
- License: mit
- Created: 2017-08-25T07:07:56.000Z (about 8 years ago)
- Default Branch: master
- Last Pushed: 2019-02-20T03:10:57.000Z (over 6 years ago)
- Last Synced: 2024-12-17T17:18:47.029Z (10 months ago)
- Topics: cocoapods, json, night-mode, objective-c, plist, skin, theme, ui
- Language: Objective-C
- Homepage:
- Size: 4.69 MB
- Stars: 170
- Watchers: 6
- Forks: 28
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
[](https://travis-ci.org/snail-z/ThemeManager)
[](http://cocoapods.org/pods/ThemeManager)
[](http://cocoapods.org/pods/ThemeManager)
[](http://cocoapods.org/pods/ThemeManager)ThemeManager is a lightweight library for application to switching themes, support more attributes and theme extensions. more easy and convenient to use.
## Example
To run the example project, clone the repo, and run `pod install` from the Example directory first.
## Requirements
- Requires iOS 7.0 or later
- Requires Automatic Reference Counting (ARC)## Installation
ThemeManager is available through [CocoaPods](http://cocoapods.org). To install
it, simply add the following line to your Podfile:```ruby
platform :ios, '7.0'
use_frameworks!target 'You Project' do
pod "ThemeManager", '~> 2.0'
end
```## Preview
- Switch support images.
- Mode during the day and night mode switch of the skin.
- A variety of styles to switch.
- Support fonts and transparency switches.
## UsageSee demo. please wait...
## Update
- Support iPhone X
- Support iOS 11
- Support custom method theme switch
```objc
// When the external custom methods, you can use it.
- (void)zh_addThemePickerForSelector:(SEL)sel withArguments:(id)arguments, ...;Note:
The all parameters must be id type.
if the basic data types needs to be encapsulated into NSNumber; the struct type needs to be encapsulated into NSValue.
Example:
NSNumber *number = [NSNumber numberWithInteger:2];
NSValue *value = [NSValue valueWithCGSize:CGSizeMake(100, 100)];
zhThemeColorPicker *picker = ThemeColorPickerWithKey(@"key");
[object zh_addThemePickerForSelector:@selector(setColor:Integer:setCGSize:)
withArguments:picker, number, value];
```## Author
snail-z, haozhang0770@163.com
## License
ThemeManager is available under the MIT license. See the LICENSE file for more info.