Levin Li
7752b4c833
Private header #1
2020-07-24 20:15:31 +08:00
Levin Li
3091c0ad93
Add theme change handler
2020-07-24 20:14:08 +08:00
Levin Li
5883735aa9
Allow not to use UIImageAsset on iOS 13 ( #88 )
...
* Allow not to use UIImageAsset on iOS13
* Use imageWithConfiguration: on iOS 13+
* Add configuration class
2020-07-24 17:32:57 +08:00
Levin Li
f94228e692
Add dmTraitCollection to DMTraitEnvironment requirement ( #84 )
...
* Add requirement to DMTraitEnvironment and remove UITabBarItem's conformance
* Setup tests with class objects instead of class names
* mark UIViewController's comformance as open
2020-07-07 13:50:56 +08:00
Levin Li
1f11a409e0
Migrate UIImage APIs to using UIImageAsset on iOS13 ( #82 )
...
* Mark DMTraitCollection.current as deprecated
* System built-in support for dark/light mode UIImage
2020-07-01 18:05:08 +08:00
Levin Li
55e55946e1
Adopt theme in newly created windows automatically ( #81 )
...
* Use UIWindowDidBecomeKeyNotification to observe new window and update example
2020-06-29 09:43:35 +08:00
Levin Li
7a20bcf603
Bridge iOS 13 traitCollection and color ( #78 )
...
* Use system dynamic color on iOS 13+
* Swizzling for DMTraitCollection
* Remove override of dm_updateDynamicColors and dm_updateDynamicImages
* Update naming and return UITraitCollection.current directly
* Allow using view controller to observe change
2020-06-20 11:11:26 +08:00
Levin Li
13e0d9db28
Dynamic color implementation ( #76 )
2020-06-11 11:11:04 +08:00
Levin Li
facaafc73d
Swizzle using block ( #71 )
...
* swizzle-with-block
* Fix UILabel
* Returning IMP from method_getImplementation and add UILabelVC
* Remove NSObject+DarkModeKit
2020-06-10 09:52:34 +08:00
Levin Li
ae1f137759
Fix importing via spm ( #69 )
...
* Fix SPM
* Update README.md
* Use @_exported to remove duplicate imports
2020-05-26 10:17:37 +08:00
icodesign
4f5f1cf50b
Rename repo to FluentDarkModeKit ( #58 )
2020-03-17 14:52:51 +08:00
Bei Li
12d876adba
Fix image Swift initializer crash ( #50 )
2020-02-19 15:52:40 +08:00
Bei Li
192e18c7be
Change to a more common Obj-C style ( #44 )
2020-02-07 17:54:39 +08:00
Bei Li
8355826eff
Unify Style ( #40 )
...
* Update project settings
* Update style for Obj-C files
* Update style for Swift files
2019-12-10 11:40:10 +08:00
Bei Li
76c01aa0fe
Update APIs to align with readme ( #35 )
...
* Update APIs
* Public UIImage+DarkModeKit
* Refine names
* Refine names
* Remove extra space
* Add a simple test for color
* Correct pbxproj
2019-12-10 11:07:20 +08:00
Bei Li
2e10707d28
Update Themeable to DMTraitEnvironment ( #34 )
...
* Replace Themeable with DMTraitEnvironment
* Rename ThemeableExtensions to Extensions
* Renam files
* Update
* Rename dm_traitCollectionDidChange to dmTraitCollectionDidChange
2019-12-09 17:14:54 +08:00
Bei Li
84d459e9b5
Fix a potential crash ( #30 )
2019-11-26 11:53:57 +08:00
Petr2019
436282324e
Fix some typos ( #21 )
2019-10-31 20:59:16 +08:00
Daohan Chong
53b09d2a50
Update headers ( #14 )
2019-10-31 12:11:39 +08:00
Bei Li
77fb1d7cc7
SPM support ( #7 )
...
* Structure files
* Structure Obj-C files
* Add SPM support
* Remove useless import
* Update products setting
2019-10-31 11:35:12 +08:00