Skip to content

A library that offers tools to display a changelog using webviews and user defaults.

License

Notifications You must be signed in to change notification settings

davidseek/ChangelogKit

Repository files navigation

ChangelogKit

CI Status Version License Platform

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.

Screenshots

API

  • useForce
    • true, presents the Changelog in a modal
    • false, presents a banner, with action buttons. Close, and present Changelog.

Theming

The ChangelogKitTheme object offers a simple way to customize the Changelog experience with your Application Corporate Identity.

ChangelogKit.theme = ChangelogKitTheme(
    navigationBarTintColor: .white, 
    backgroundColor: .black)

Example

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

Installation

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

pod 'ChangelogKit'

Author

David Seek

License

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

About

A library that offers tools to display a changelog using webviews and user defaults.

Resources

License

Stars

Watchers

Forks

Packages

No packages published