Create AppVersion label in storyboard: Drag UILabel on your storyboard and set class to AppVersionLabel
After that set format name in Attributes Inpector:
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)
- Swift 4.2
- Xcode 10 or greater
- iOS 11.0 or greater
AppVersion is available through CocoaPods. To install it add the following line to your Podfile:
pod "AppVersion.swift"
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.
AppVersion is available under the MIT license. See the LICENSE file for more info.