Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/4taras4/autoblurscreen

AutoBlurScreen hide UI elements when user сollapse application.
https://github.com/4taras4/autoblurscreen

Last synced: 2 months ago
JSON representation

AutoBlurScreen hide UI elements when user сollapse application.

Awesome Lists containing this project

README

        

# AutoBlurScreen 📱

[![Build Status](https://travis-ci.org/4taras4/AutoBlurScreen.svg?branch=master)](https://travis-ci.org/4taras4/AutoBlurScreen)
[![Version](https://img.shields.io/cocoapods/v/AutoBlurScreen.svg?style=flat)](https://cocoapods.org/pods/AutoBlurScreen)
[![License](https://img.shields.io/cocoapods/l/AutoBlurScreen.svg?style=flat)](https://cocoapods.org/pods/AutoBlurScreen)
[![Platform](https://img.shields.io/cocoapods/p/AutoBlurScreen.svg?style=flat)](https://cocoapods.org/pods/AutoBlurScreen)

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.](https://medium.com/@tarasmarkevych/another-one-thing-to-protect-your-users-data-b4c239683ad1)
## Example

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

![1](https://media.giphy.com/media/5uCFDX8c1BXJbujpei/giphy.gif)

## Requirements ⚠️

*Swift 4 (Xcode 10)*

## Installation 📲

AutoBlurScreen is available through [CocoaPods](https://cocoapods.org). To install
it, simply add the following line to your Podfile:

```ruby
pod 'AutoBlurScreen'
```

## Usage 👨‍💻

Implement AutoBlurScreen to AppDelegate method and set your blur style.

Example:

```swift
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

```swift
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, [email protected]

## License 📃

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