AutoBlurScreen hide UI elements when user сollapse application.
Branch: master
Clone or download
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
AutoBlurScreen init commit Feb 2, 2019
Example init commit Feb 2, 2019
.DS_Store init commit Feb 2, 2019
.gitignore Initial commit Feb 2, 2019
.travis.yml Update .travis.yml Feb 2, 2019
AutoBlurScreen.podspec Update AutoBlurScreen.podspec Feb 4, 2019
CODE_OF_CONDUCT.md Create CODE_OF_CONDUCT.md Feb 3, 2019
LICENSE init commit Feb 2, 2019
README.md Update README.md Feb 2, 2019
_Pods.xcodeproj init commit Feb 2, 2019

README.md

AutoBlurScreen 📱

Build Status Version License Platform

Tool to protect your user data from prying eyes. Easy to use just few lines of code and your user data will be more safe. Also article on Medium you can find here.

Example

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

1

Requirements ⚠️

Swift 4 (Xcode 10)

Installation 📲

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

    pod 'AutoBlurScreen'

Usage 👨‍💻

Implement AutoBlurScreen to AppDelegate method and set your blur style.

Example:

import UIKit
import AutoBlurScreen

@UIApplicationMain
class AppDelegate: UIResponder, UIApplicationDelegate {

    var window: UIWindow?
    var autoBlur = AutoBlurScreen()

    func application(_ application: UIApplication, didFinishLaunchingWithOptions launchOptions: [UIApplicationLaunchOptionsKey: Any]?) -> Bool {
        autoBlur.blurStyle = .light
        autoBlur.isAutoBlur = true
    return true
    }
}

Example of manual using blur screen

import UIKit
import AutoBlurScreen
// custom implementation
var autoBlur = AutoBlurScreen()
autoBlur.blurStyle = .light // style of blur screen
autoBlur.isAutoBlur = false  // use auto enable or dissabled blur effect
autoBlur.createBlurEffect() // use to custom show blur screen
autoBlur.removeBlurEffect() // use to custom hide blur screen

Author 👨‍🔧

Tarik, 4taras4@gmail.com

License 📃

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