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
file
is kept..none
is handled as main bundle.Declaration
Swift
public let bundle: String?
-
Implementation of
value
property fromLaunchEnvironmentValue
protocol.Declaration
Swift
public var value: String { get }
-
Initializes
LaunchEnvironmentResourceValue
that can be passed as value of types adaptingLaunchEnvironmentProtocol
.Declaration
Swift
public init(fileName file: String, bundleName bundle: String? = nil)
Parameters
file
String
name of file where resources are kept.bundle
String
name of bundle that containsfile
, default.none
is handled as main bundle.