All Projects → AkkeyLab → RxScreenProtectKit

AkkeyLab / RxScreenProtectKit

Licence: MIT license
Protect the screen from recording 🔐

Programming Languages

swift
15916 projects
ruby
36898 projects - #4 most used programming language
shell
77523 projects

Projects that are alternatives of or similar to RxScreenProtectKit

100 Days Of Rxswift
💨100 days and 40 project of RxSwift
Stars: ✭ 177 (+941.18%)
Mutual labels:  rxswift
Recaptcha
[In]visible ReCaptcha v2 for iOS
Stars: ✭ 208 (+1123.53%)
Mutual labels:  rxswift
Passcode
🔑 Passcode for iOS Rxswift, ReactorKit and IGListKit example
Stars: ✭ 254 (+1394.12%)
Mutual labels:  rxswift
Modernavplayer
ModernAVPlayer is a persistence AVPlayer wrapper
Stars: ✭ 179 (+952.94%)
Mutual labels:  rxswift
Zhuishushenqi
追书神器Swift版客户端(非官方)。 不断更新中......
Stars: ✭ 196 (+1052.94%)
Mutual labels:  rxswift
Rxpermission
RxSwift bindings for Permissions API in iOS.
Stars: ✭ 234 (+1276.47%)
Mutual labels:  rxswift
Rxgrdb
Reactive extensions for SQLite
Stars: ✭ 176 (+935.29%)
Mutual labels:  rxswift
Cyanic
Declarative, state-driven UI framework
Stars: ✭ 32 (+88.24%)
Mutual labels:  rxswift
V2ex
An iOS client written in Swift for V2EX
Stars: ✭ 208 (+1123.53%)
Mutual labels:  rxswift
Gitiny
An iOS app for GitHub with exploring trending
Stars: ✭ 247 (+1352.94%)
Mutual labels:  rxswift
Rxreachability
RxSwift bindings for Reachability
Stars: ✭ 181 (+964.71%)
Mutual labels:  rxswift
Rxkingfisher
Reactive extension for the Kingfisher image downloading and caching library
Stars: ✭ 190 (+1017.65%)
Mutual labels:  rxswift
Rxswift Tutorial
RxSwift 学习资料(学习教程、开源项目)
Stars: ✭ 236 (+1288.24%)
Mutual labels:  rxswift
Reactorkit
A library for reactive and unidirectional Swift applications
Stars: ✭ 2,237 (+13058.82%)
Mutual labels:  rxswift
BringMyOwnBeer-
PunkAPI(BrewDog) 을 이용한 RxSwift-MVVM 예제 (Naver Tech Concert)
Stars: ✭ 80 (+370.59%)
Mutual labels:  rxswift
Rxwebkit
RxWebKit is a RxSwift wrapper for WebKit
Stars: ✭ 176 (+935.29%)
Mutual labels:  rxswift
Lockwise Ios
Firefox's Lockwise app for iOS
Stars: ✭ 224 (+1217.65%)
Mutual labels:  rxswift
minimalist
Observable Property and Signal for building data-driven UI without Rx
Stars: ✭ 88 (+417.65%)
Mutual labels:  rxswift
RxSwift-VIPER-iOS
RxSwiftVIPER is an sample iOS App written in RxSwift using the VIPER architecture. Also RxSwiftVIPER is not a strict VIPER architecture.
Stars: ✭ 47 (+176.47%)
Mutual labels:  rxswift
Rxdatasources
UITableView and UICollectionView Data Sources for RxSwift (sections, animated updates, editing ...)
Stars: ✭ 2,784 (+16276.47%)
Mutual labels:  rxswift

Miss Electric Eel 2016 RxScreenProtectKit

RxScreenProtectKit ios MIT Carthage compatible Build Status codecov

Protect private content from screen recordings and screen output.
Screen Recording / QuickTime Recording / External display output / AirPlay

Installation

CocoaPods

# Podfile
use_frameworks!

target 'YOUR_TARGET_NAME' do
    pod 'RxScreenProtectKit'
end

Replace YOUR_TARGET_NAME and then, in the Podfile directory, type:

$ pod install

Carthage

Add this to Cartfile.

# Cartfile
github "AkkeyLab/RxScreenProtectKit"

Run this script to install it.

$ carthage update --platform iOS

Usage

If you use the example, please do the setup process with the shell script.

./setup.sh

Please import RxScreenProtectKit and RxSwift.

import RxScreenProtectKit
import RxSwift
import UIKit

By binding the target layer to isScreenRecord, mosaic processing is applied during screen recording or screen output. However, the layer must be compliant with CALayer.

final class ViewController: UIViewController {
    @IBOutlet private weak var mainImageView: UIImageView!
    private let bag = DisposeBag()

    override func viewDidLoad() {
        super.viewDidLoad()
        self.rx.isScreenRecord
            .bind(to: mainImageView.layer.rx.isMosaic)
            .disposed(by: bag)
    }
}

Parameter settings related to mosaic processing can be done from ScreenProtectKit.shared.config().

ScreenProtectKit
    .shared
    .config(rasterizationScale: 0.1,
            minificationFilter: .trilinear,
            magnificationFilter: .nearest)

Moreover, it can be easily implemented by using SPImageView. This is particularly useful when images are set asynchronously.

final class ViewController: UIViewController {
    @IBOutlet private weak var mainImageView: SPImageView!

    override func viewDidLoad() {
        super.viewDidLoad()
        DispatchQueue.main.asyncAfter(deadline: .now() + 5) { [weak self] in
            self?.mainImageView.image = UIImage(named: "sample")
        }
    }
}

Also, by using SPLabel, you can easily implement character substitution during recording. All you need to do is set the text to be displayed during recording in protectText.

final class ViewController: UIViewController {
    @IBOutlet private weak var label: SPLabel!

    override func viewDidLoad() {
        super.viewDidLoad()
        label.text = "This is the original text."
        label.protectText = "Recording is prohibited!!"
    }
}

Settings

You can temporarily disable this feature. In addition, it returns to the valid state by restarting the app.
isScreenRecord will not flow while this setting is disabled.
When the value of this setting is changed, isScreenRecord will flow only once. When changed to invalid, false will flow, and when changed to valid, the current recording status will flow.

ScreenProtectKit
    .shared
    .isValid = isValid

Requirements

env version
Swift 5.x
Xcode 11.x
iOS 11.0

License

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

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].