No description, website, or topics provided.
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
Sources/SafetyCode
Tests
.gitignore
Package.swift
README.md

README.md

SafetyCode

Help make life on the road safer by using Safety Code – a free package that will block your app for all users while driving a car.

Safety Code is free and can be used in any app. The code tracks the visitors’ GPS position and determines if they are driving. If going faster than 20 km/h, they will need to confirm that they are not the driver to continue using the app.

Usage

safetyCode = SafetyCode()

Initialize with custom messages:

safetyCode = SafetyCode(options: [
    "title" : "Oops! Du kör väl inte bil?",
    "message" : "Den här sidan är fartspärrad för din egen säkerhet",
    "actionTitle" : "Jag är inte föraren"
])