AppInfo
public struct AppInfo
Provides information about installed app based on Bundle data
-
Version info in this available string formats.
See moreDeclaration
Swift
public enum VersionFormat : String
-
App Name
Declaration
Swift
public static var appName: String { get }
-
App Build number
Declaration
Swift
public static var appBuild: String { get }
-
App Bundle identifier
Declaration
Swift
public static var bundleId: String { get }
-
Short version format
<Version>
: 1.1Declaration
Swift
public static var shortVersion: String { get }
-
Short version format with name
<Name> <Version>
: App Name 1.1Declaration
Swift
public static var shortVersionWithName: String { get }
-
Long version format with name
<Version> (<Build>)
: 1.1 (42)Declaration
Swift
public static var longVersion: String { get }
-
Long version format with name
<Name> <Version> (<Build>)
: App Name 1.1 (42)Declaration
Swift
public static var longVersionWithName: String { get }
-
Creates a version string, based on provided format
format: Version format
Declaration
Swift
public static func version(with format: VersionFormat) -> String
Return Value
Formatted version string