Latest 0.1.7
Homepage https://github.com/ithazfire/PrivacyKit
License MIT
Platforms ios 9.0
Authors

CI Status
Version
License
Platform

Example

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

Basic Example Screenshot

Installation

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

pod 'PrivacyKit'

Basic Usage

To configure PrivacyKit globally, do so from the
AppDelegate.application(didFinishLaunchingWithOptions) function.

@UIApplicationMain
class AppDelegate: UIResponder, UIApplicationDelegate {

    var window: UIWindow?

    func application(_ application: UIApplication, didFinishLaunchingWithOptions launchOptions: [UIApplicationLaunchOptionsKey: Any]?) -> Bool {

        /** Configure PrivacyKit Globally */
        PrivacyKit.shared.config("https://github.com/ithazfire/PrivacyKit")

        // Override point for customization after application launch.
        return true
    }
}

To present the PrivacyKit UIViewController add the delegate to your UIViewController
and call the requirePrivacy() function.

class ViewController: UIViewController, PrivacyKitDelegate {
    override func viewDidAppear(_ animated: Bool) {
        /** Present the PrivacyKit View if Privacy is not accepted. */
        self.requirePrivacy()
    }
}

Author

Archdoog

License

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

Latest podspec

{
    "name": "PrivacyKit",
    "version": "0.1.7",
    "summary": "PrivacyKit provides a data persistent method to present a privacy notice and manage whether privacy was accepted or denied.",
    "description": "PrivacyKit provides a persistent CoreData method for privacy status and an associated method to present a privacy notice. When enablednon a UIViewController, the requirePrivacy method checks the current CoreData state and presents the privacy view controller if privacynhas not been accepted.",
    "homepage": "https://github.com/ithazfire/PrivacyKit",
    "license": {
        "type": "MIT",
        "file": "LICENSE"
    },
    "authors": {
        "Archdoog": "[email protected]"
    },
    "source": {
        "git": "https://github.com/ithazfire/PrivacyKit.git",
        "tag": "0.1.7"
    },
    "swift_version": "4.0",
    "platforms": {
        "ios": "9.0"
    },
    "source_files": "PrivacyKit/Classes/**/*.{h,m,swift,xcdatamodeld}",
    "resources": "PrivacyKit/Classes/Models/*.xcdatamodeld"
}

Pin It on Pinterest

Share This