LaunchEnvironmentResourceValue
public struct LaunchEnvironmentResourceValue : LaunchEnvironmentValue
Launch environment resource model containing informations required to point proper file containing resource data.
Expects bundle and file name. If bundle name is nil main bundle will be searched.
Example:
let resource = LaunchEnvironmentResourceValue(fileName: "monthly_events", bundleName: "Data")
-
Name of file in which resource is kept.
Declaration
Swift
public let file: String -
Name of bundle in which resource
fileis kept..noneis handled as main bundle.Declaration
Swift
public let bundle: String? -
Implementation of
valueproperty fromLaunchEnvironmentValueprotocol.Declaration
Swift
public var value: String { get }
-
Initializes
LaunchEnvironmentResourceValuethat can be passed as value of types adaptingLaunchEnvironmentProtocol.Declaration
Swift
public init(fileName file: String, bundleName bundle: String? = nil)Parameters
fileStringname of file where resources are kept.bundleStringname of bundle that containsfile, default.noneis handled as main bundle.
LaunchEnvironmentResourceValue Structure Reference