Latest 1.0
Homepage https://github.com/igormatyushkin014/Start
License Apache License, Version 2.0
Platforms ios 9.0
Authors

Start


Start


Start


Start


Start

At a Glance

Start is a tool that handles different things occurring on app launch.

How To Get Started

  • Copy content of Source folder to your project.

or

  • Use Start cocoapod

Requirements

  • iOS 9 and later
  • Xcode 9 and later
  • Swift 4

Usage

Launch count

In your AppDelegate, increment the number of launches stored by Start library:

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

    Start.launches.increment()

    // ...

    return true
}

Now you can retrieve number of app’s launches:

let launchCount = Start.launches.count

It’s very easy to check if the app is launched for the first time:

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

    Start.launches.increment()

    // ...

    switch Start.launches.count {
    case 1:
        // The first launch
        break
    default:
        // Not the first launch
        break
    }

    // ...

    return true
}

Sometimes you might need to reset the number of launches:

Start.launches.reset()

License

Start is available under the Apache 2.0 license. See the LICENSE file for more info.

Latest podspec

{
    "name": "Start",
    "version": "1.0",
    "summary": "Launch handler for iOS",
    "description": "Tool that handles different things occurring on app launch.",
    "homepage": "https://github.com/igormatyushkin014/Start",
    "screenshots": "https://github.com/igormatyushkin014/Start/raw/master/Images/logo_2048_2048.png",
    "license": {
        "type": "Apache License, Version 2.0",
        "file": "LICENSE"
    },
    "authors": {
        "Igor Matyushkin": "[email protected]"
    },
    "social_media_url": "https://twitter.com/imatyushkin1",
    "platforms": {
        "ios": "9.0"
    },
    "source": {
        "git": "https://github.com/igormatyushkin014/Start.git",
        "tag": "1.0"
    },
    "source_files": [
        "Source",
        "Source/**/*"
    ],
    "swift_version": "4.0"
}

Pin It on Pinterest

Share This