Add buildNumberInt extension

pull/2/head
Michael Scoff 7 years ago
parent 94773bf2f9
commit 5aa50963c7
  1. 4
      Trust/Extensions/Bundle.swift

@ -9,6 +9,10 @@ extension Bundle {
var buildNumber: String? {
return infoDictionary?["CFBundleVersion"] as? String
}
var buildNumberInt: Int {
return Int(Bundle.main.buildNumber ?? "-1") ?? -1
}
}
func isDebug() -> Bool {

Loading…
Cancel
Save