Swiftpack.co -  Megatron1000/LaunchCounter as Swift Package
Swiftpack.co is a collection of thousands of indexed Swift packages. Search packages.
Add a call to this class on app launch to increment the app launch count. Query it to find out if it's the first launch or get the specific number of launches.
.package(url: "https://github.com/Megatron1000/LaunchCounter.git", from: "0.3.0")


CI Status Version License Platform


A very simple mechanism for tracking the number of times your app has been launched. Useful for running certain activities the very first time the app is launched, for example.


In your app delegate

let launchCounter = LaunchCounter()

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

    // Record that the app was launched

    if launchCounter.isFirstLaunch {
        // Do something only on first launch 

    return true

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


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

pod 'LaunchCounter'


megatron1000, mark@bridgetech.io


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


Stars: 2
Last commit: 4 weeks ago

Ad: Job Offers

iOS Software Engineer @ Perry Street Software
Perry Street Software is Jack’d and SCRUFF. We are two of the world’s largest gay, bi, trans and queer social dating apps on iOS and Android. Our brands reach more than 20 million members worldwide so members can connect, meet and express themselves on a platform that prioritizes privacy and security. We invest heavily into SwiftUI and using Swift Packages to modularize the codebase.

Submit a free job ad (while I'm testing this). The analytics numbers for this website are here.

Release Notes

4 weeks ago

Added SPM Removed pods Adding ability to track the latest release on a new app marketing version.

Swiftpack is being maintained by Petr Pavlik | @ptrpavlik | @swiftpackco | API | Analytics