SwiftSelfAware 1.0.5

SwiftSelfAware 1.0.5

TestsTested
LangLanguage SwiftSwift
License MIT
ReleasedLast Release May 2018
SPMSupports SPM

Maintained by Siarhei Ladzeika.



  • By
  • Siarhei Ladzeika

SwiftSelfAware

Original idea

Purpose

Swift solution to run the code on application startup.

Changes

v1.0.5

  • Fix compilation warnings on Swift < 4.1

v1.0.4

  • Fix compilation warnings

Installation

Cocoapods

Add this to your Podfile

pod 'SwiftSelfAware'

If cocoapod spec file was not found, then you can set direct git url:

pod 'SwiftSelfAware', :git => 'https://github.com/ladeiko/SwiftSelfAware.git'

Then install pods by running:

pod install

Usage

import Foundation
import SwiftSelfAware

class SomeClass: SelfAware {

    static func awake() {
        print("Run before applicationDidFinishLaunching")
    }

}