Latest 1.0.2
Homepage https://github.com/RomanN2/HYParentalGate
License MIT
Platforms ios 8.0
Authors

Description

Applications made for kids very often contain screens that are designed for adults, e.g. in app purchases, feedback forms, etc. Apple requires those screens to be protected by Parental Gate.

From AppStore review guidelines:

24.3 Apps in the Kids Category must get parental permission or use a parental gate before allowing the user to link out of the app or engage in commerce

HYParentalGate is created using Swift 3. It works on all the iPhones, iPods and iPads starting from iOS 8.0. Right now HYParentalGate only supports landscape device modes. Portrait mode support will be added soon.

HYParentalGate is localized into 2 languages:

  • English – default
  • Ukrainian

20 more languages are going to be added very soon.

Screenshot

HYParentalGate Example

Usage

import HYParentalGate

HYParentalGate.sharedGate.show(successHandler: {
// User proved that he or she is an adult.
// Code was entered correctly.
// Basically here you just navigate to the next screen
}

There is no failure block since we could not come up with the idea where it may be used :) If dialog was dismissed you just stay where you’ve been before.

Also here is an example of how to use localized version of the HYParentlGate:

import HYParentalGate

let parentalGate = HYParentalGate.sharedGate
parentalGate.languageCode = "uk"
parentalGate.show(successHandler: {
// Code was entered correctly. Handle this properly.
})

License

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

Latest podspec

{
    "name": "HYParentalGate",
    "version": "1.0.2",
    "summary": "Parental Gate control",
    "description": "A simple Parental Gate control that might be used in the kids apps in order to protect adult's content, e.g. in app purchases.",
    "homepage": "https://github.com/RomanN2/HYParentalGate",
    "screenshots": "https://s22.postimg.org/3rq8shbcx/Parental_Gate.png",
    "license": "MIT",
    "authors": {
        "Roman Nazarkevych": "[email protected]"
    },
    "social_media_url": "https://www.facebook.com/roman.nazarkevych",
    "platforms": {
        "ios": "8.0"
    },
    "source": {
        "git": "https://github.com/RomanN2/HYParentalGate.git",
        "tag": "1.0.2"
    },
    "source_files": [
        "HYParentalGate",
        "HYParentalGate/**/*.{h,m,swift}"
    ],
    "resources": "HYParentalGate/*.{xcassets,xib,plist}",
    "pushed_with_swift_version": "3.0"
}

Pin It on Pinterest

Share This