TestsTested | ✗ |
LangLanguage | SwiftSwift |
License | MIT |
ReleasedLast Release | Nov 2017 |
SwiftSwift Version | 4.0 |
SPMSupports SPM | ✗ |
Maintained by Léo Derbois.
Stars | 0 |
Watchers | 1 |
Forks | 0 |
Issues | 0 |
Contributors | 1 |
Pull Requests | 0 |
Files | 1 |
LOCLines of Code | 43 |
Like me you are a lazy developer and you hate when you enable Smart Invert accessibility feature on your iDevice but the app you use doesn't support it, so images are not visible/readable ? Look at where point my finger
SmartInvert pod is just a simple extension of UIView
with a property smartinvert
which enable the support of Smart Invert of the view, and also add this accessibility feature in all your UIView
in your Storyboard thanks to the IBInspectable
feature.
More over you can use two class SmartInvertView
and SmartInvertImageView
which enable this feature automically.
myView.smartInvert = true
,SmartInvertView
for custom view (for an openGLES View for exemple),SmartInvertImageView
for an UIImageView.To run the example project, clone the repo, and run pod install
from the Example directory first.
Smart Invert is only available on iOS 11, so if your user run on lower iOS, this feature just do nothing.
SmartInvertView is available through CocoaPods. To install
it, simply add the following line to your Podfile:
pod 'SmartInvertView'
leoderbois, [email protected]
SmartInvertView is available under the MIT license. See the LICENSE file for more info.