SmartInvertView 1.0

SmartInvertView 1.0

TestsTested
LangLanguage SwiftSwift
License MIT
ReleasedLast Release Nov 2017
SwiftSwift Version 4.0
SPMSupports SPM

Maintained by Léo Derbois.


GitHub

Stars0
Watchers1
Forks0
Issues0
Contributors1
Pull Requests0

Code

Files1
LOCLines of Code 43


SmartInvertView

CI Status
Version
License
Platform

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 👉 Instagram, Messenger, Snapchat ...

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.

How to use

Property

  • From your code -> myView.smartInvert = true,
  • From storyboard (image below)

IBInspectble

Inherit

  • inherit from SmartInvertView for custom view (for an openGLES View for exemple),
  • inherit from SmartInvertImageView for an UIImageView.

Example

To run the example project, clone the repo, and run pod install from the Example directory first.

Requirements

Smart Invert is only available on iOS 11, so if your user run on lower iOS, this feature just do nothing.

Installation

SmartInvertView is available through CocoaPods. To install
it, simply add the following line to your Podfile:

pod 'SmartInvertView'

Author

leoderbois, [email protected]

License

SmartInvertView is available under the MIT license. See the LICENSE file for more info.