Bundle
extension Bundle
This extension adds a few simple accessors for some of the more common bundle items.
-
If there is a copyright site URI, it is returned here as a String. It may be nil.
Declaration
Swift
var siteURIAsString: String? { get }
-
If there is a help site URI, it is returned here as a String. It may be nil.
Declaration
Swift
var helpURIAsString: String? { get }
-
If there is a privacy site URI, it is returned here as a String. It may be nil.
Declaration
Swift
var privacyURIAsString: String? { get }
-
If there is a copyright site URI, it is returned here as a URL. It may be nil.
Declaration
Swift
var siteURI: URL? { get }
-
If there is a help site URI, it is returned here as a URL. It may be nil.
Declaration
Swift
var helpURI: URL? { get }
-
If there is a privacy site URI, it is returned here as a URL. It may be nil.
Declaration
Swift
var privacyURI: URL? { get }
-
This come straight from here: https://stackoverflow.com/a/51241158/879365
This returns the highest-res version of the app icon, as an image. Nil, if unavailable.
Declaration
Swift
var appIcon: UIImage? { get }