There was an error while loading. Please reload this page.
Source
Provides easy access to strings in Info.plist.
Usage:
Bundle.main["appColors"]
In tests:
Bundle(for: type(of: self))["key"]
With convenient accessors e.g.:
Bundle.main.appName // Cryptogram
Bundle.main.appName
Bundle.main.appNameAndVersion // Cryptogram 1.0.23
Bundle.main.appNameAndVersion
Bundle.main.version // 1.0
Bundle.main.version
Bundle.main.buildNumber // 23
Bundle.main.buildNumber
Bundle.main.fullVersion // 1.0.23
Bundle.main.fullVersion
With a list of strings e.g.:
Given Bundle.main["appColors"] with value: e84eae,8e45b9,f19433,fbde42,68cb6a,2879ca
let colors: [UIColor] = Bundle.main.parseCSV(key: "appColors") { UIColor(hex: $0) }