SafeBootRecord
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.
Example
To run the example project, clone the repo, and run pod install
from the Example directory first.
Requirements
- Swift 3+
- iOS 10.0+
Installation
SafeBootRecord is available through CocoaPods. To install it, simply add the following line to your Podfile:
pod 'SafeBootRecord'
Author
Kasim Te, kasimte@gmail.com
License
SafeBootRecord is available under the MIT license. See the LICENSE file for more info.