ChangelogKit is a library that offers a drop-in Changelog experience, written in Swift.
import ChangelogKit
// Define the URL where your changelog is hosted.
// Best to use with md2site.com changelog template ☺️
ChangelogKit.changelogURL = "https://voicepitchanalyzerchangelog.davidseek.md2site.com/"
// Pick a good moment in your App where it's appropriate
// to let the user know, that he has been updated to a new version.
override func viewDidAppear(_ animated: Bool) {
super.viewDidAppear(animated)
ChangelogKit.ready(on: self, useForce: true)
}
ChangelogKit uses the UserDefaults
to determine, if the user has already seen this AppVersion
. A banner on the top of the screen, indicating that the app has been updated to the latest version, will be shown. When the user selects See What's New
, then a modally presented WKWebViewController
opens, presenting the changelog that has been embedded via URL
.
useForce
true
, presents the Changelog in a modalfalse
, presents a banner, with action buttons. Close, and present Changelog.
The ChangelogKitTheme
object offers a simple way to customize the Changelog experience with your Application Corporate Identity.
ChangelogKit.theme = ChangelogKitTheme(
navigationBarTintColor: .white,
backgroundColor: .black)
To run the example project, clone the repo, and run pod install
from the Example directory first.
ChangelogKit is available through CocoaPods. To install it, simply add the following line to your Podfile:
pod 'ChangelogKit'
ChangelogKit is available under the MIT license. See the LICENSE file for more info..