App Version
Micro library to display app version within iOS app.
Example
Using Storyboard
Create AppVersion label in storyboard: Drag UILabel on your storyboard and set class to AppVersionLabel
After that set format name in Attributes Inpector:
AppVersionLabel
programatically:
Create let versionLabel = AppVersionLabel()
versionLabel.format = format
versionLabel.textAlignment = .center
versionLabel.textColor = .red
Add version in UITableView footer:
tableView.addVersionFooter(with: .longWithName)
or
tableView.addVersionFooter(with: .long, alignment: .right, textColor: .lightGray, footerHeight: 22)
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.
License
AppVersion is available under the MIT license. See the LICENSE file for more info.