feat: add about view

This commit is contained in:
dscyrescotti
2024-07-17 21:44:06 +07:00
parent 167fa6baf6
commit 2e2cc24e38
5 changed files with 74 additions and 2 deletions
+16
View File
@@ -0,0 +1,16 @@
//
// Bundle++.swift
// Memola
//
// Created by Dscyre Scotti on 7/17/24.
//
import Foundation
extension Bundle {
var appBuild: String { getInfo("CFBundleVersion") }
var appVersion: String { getInfo("CFBundleShortVersionString") }
var copyright: String { getInfo("NSHumanReadableCopyright") }
fileprivate func getInfo(_ key: String) -> String { infoDictionary?[key] as! String }
}