Add a ListRowButtonView which runs a function and include a label. Use this to style magnet choice buttons. Signed-off-by: kingbri <bdashore3@gmail.com>
27 lines
559 B
Swift
27 lines
559 B
Swift
//
|
|
// UIApplication.swift
|
|
// Ferrite
|
|
//
|
|
// Created by Brian Dashore on 7/26/22.
|
|
//
|
|
|
|
import SwiftUI
|
|
|
|
// Extensions to get the version/build number for AboutView
|
|
extension UIApplication {
|
|
var appVersion: String {
|
|
Bundle.main.object(forInfoDictionaryKey: "CFBundleShortVersionString") as! String
|
|
}
|
|
|
|
var appBuild: String {
|
|
Bundle.main.object(forInfoDictionaryKey: "CFBundleVersion") as! String
|
|
}
|
|
|
|
var buildType: String {
|
|
#if DEBUG
|
|
return "Debug"
|
|
#else
|
|
return "Release"
|
|
#endif
|
|
}
|
|
}
|