Add build info to settings scene.

This commit is contained in:
Maurice Parker
2019-04-26 14:04:52 -05:00
parent a6370d2c79
commit 76b922546c
5 changed files with 42 additions and 4 deletions

View File

@@ -0,0 +1,25 @@
//
// Bundle-Extensions.swift
// NetNewsWire-iOS
//
// Created by Maurice Parker on 4/26/19.
// Copyright © 2019 Ranchero Software. All rights reserved.
//
import Foundation
extension Bundle {
var appName: String {
return infoDictionary?["CFBundleName"] as! String
}
var versionNumber: String {
return infoDictionary?["CFBundleShortVersionString"] as! String
}
var buildNumber: String {
return infoDictionary?["CFBundleVersion"] as! String
}
}