Latest 1.0.3
Homepage https://github.com/ChrisAllinson/ScreenBlocker-iOS
License MIT
Platforms ios 9.0, requires ARC
Authors

v1.0.3

Description

ScreenBlocker-iOS adds an overlay to your app when it is backgrounded, masking the content.

The overlay fades out once your app is foregrounded again.

Installation

CocoaPods

pod 'ScreenBlocker-iOS', '1.0.3'

Carthage

… coming soon …

Swift Pacakage Manager

… coming soon …

How To Use

Import ScreenBlocker-iOS in AppDelegate:

import ScreenBlocker_iOS

Add the following to AppDelegate’s applicationWillResignActive:

ScreenBlocker.shared.show()

or

ScreenBlocker.shared.show(bgColor: UIColor.someColor)

Add the following to AppDelegate’s applicationDidBecomeActive:

ScreenBlocker.shared.hide()

License

EULA

Copyright

All content © Christopher James Allinson 2018. All Rights Reserved.

Latest podspec

{
    "name": "ScreenBlocker-iOS",
    "version": "1.0.3",
    "summary": "ScreenBlocker adds an overlay to your app when it is backgrounded, masking the content.",
    "homepage": "https://github.com/ChrisAllinson/ScreenBlocker-iOS",
    "license": {
        "type": "MIT",
        "file": "ScreenBlocker/libs/screen blocker/LICENSE"
    },
    "authors": {
        "ChrisAllinson": "[email protected]"
    },
    "requires_arc": true,
    "platforms": {
        "ios": "9.0"
    },
    "swift_version": "4.0",
    "source": {
        "git": "https://github.com/ChrisAllinson/ScreenBlocker-iOS.git",
        "branch": "master",
        "tag": "1.0.3"
    },
    "source_files": "ScreenBlocker/libs/screen blocker/*.{swift}",
    "resources": "ScreenBlocker/libs/screen blocker/*.{xib}"
}

Pin It on Pinterest

Share This