📲 App Version Build Status Swift Support Documentation Version Carthage compatible SwiftPM Compatible

Detect app updates, notify your users.

Build with support for iOS and Semantic Versioning


Table of Contents


Screenshots

Update UI alerts

  • Default: Unskippable alert
  • Skippable alert
  • Blocking alert

App Store information

Requirements

  • Swift 4.2
  • Xcode 10 or greater
  • iOS 11.0 or greater

Installation

CocoaPods

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

pod "AppVersion.swift"

Carthage

If you’re using Carthage, add AppVersion to your Cartfile:

github "amebalabs/AppVersion"

Make sure to add AppVersion.framework to Linked Frameworks and Libraries and copy-frameworks Build Phases.

Swift Package Manager

Features

  • [x] Buil-in UI alerts
  • [x] Rich set of delegate methods
  • [x] Fully documented
  • [x] Good test coverage
  • [x] No external dependencies
  • [x] Small size
  • [x] Available through all major package managers: Cocoapods, Cartage and Swift Package Manager

Delegates

Example

Using Storyboard

Create AppVersion label in storyboard: Drag UILabel on your storyboard and set class to AppVersionLabel Storyboard1

After that set format name in Attributes Inpector: Storyboard2

Create AppVersionLabel programatically:

let versionLabel = AppVersionLabel()
versionLabel.format = format
versionLabel.textAlignment = .center
versionLabel.textColor = .red
tableView.addVersionFooter(with: .longWithName)

or

tableView.addVersionFooter(with: .long, alignment: .right, textColor: .lightGray, footerHeight: 22)

License

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