Bundle
public extension Bundle
-
Represents a single info dictionary key.
See moreDeclaration
Swift
struct InfoDictionaryKey : RawRepresentable
-
Returns the current bundle based on the calling context.
For example, if you call this property within a framework, it will return the framework bundle. If you call this property in the main app, it will return the main bundle.
Declaration
Swift
static var current: Bundle? { get }
-
Returns the bundle identifier. For example, com.mycompany.app.
Declaration
Swift
var identifier: String? { get }
-
Returns the bundle display name. For example, App. This value is localized.
Declaration
Swift
var displayName: String? { get }
-
Returns the bundle executable. For example, App. This value is not localized.
Declaration
Swift
var executable: String? { get }
-
Returns the bundle short version string. For example, 1.0.0.
Declaration
Swift
var shortVersionString: String? { get }
-
Returns the bundle version. For example, 1.
Declaration
Swift
var version: String? { get }
-
Returns the value for the provided info dictionary
key
.Declaration
Swift
func valueForInfoDictionaryKey(_ key: InfoDictionaryKey) -> Any?
Parameters
key
The info dictionary key
Return Value
The info dictionary value