Latest 1.0
Homepage https://github.com/leoderbois/SmartInvertView
License MIT
Platforms ios 8.0
Authors

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.

Latest podspec

{
    "name": "SmartInvertView",
    "version": "1.0",
    "summary": "A Simple UIView extension or Class which permit to support easily Smart Invert.",
    "description": "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 ud83dudc49 Instagram, Messenger, Snapchat ...nnSmartInvert 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. nnMore over you can use two class `SmartInvertView` and `SmartInvertImageView` which enable this feature automically.",
    "homepage": "https://github.com/leoderbois/SmartInvertView",
    "license": {
        "type": "MIT",
        "file": "LICENSE"
    },
    "authors": {
        "Lu00e9o Derbois": "[email protected]"
    },
    "source": {
        "git": "https://github.com/leoderbois/SmartInvertView.git",
        "tag": "1.0"
    },
    "social_media_url": "https://twitter.com/leoderbois",
    "platforms": {
        "ios": "8.0"
    },
    "source_files": "SmartInvert.swift",
    "pushed_with_swift_version": "4.0"
}

Pin It on Pinterest

Share This