SafeBootRecord provides a convenience class for tracking an app boot. Manually mark the app boot mark and finish like so:
// Somewhere in the App Delegate
let record: BootRecord = BootRecord()
record.markStart()
... do some boot configuration here ...
record.markFinish()
markStart()
records a log in the UserDefaults and markFinish()
clears it. If a record remains on start, then app booting has failed.
To run the example project, clone the repo, and run pod install
from the Example directory first.
- Swift 3+
- iOS 10.0+
SafeBootRecord is available through CocoaPods. To install it, simply add the following line to your Podfile:
pod 'SafeBootRecord'
Kasim Te, kasimte@gmail.com
SafeBootRecord is available under the MIT license. See the LICENSE file for more info.