Skip to content

EXTENSION

Environment.Value?

swift
extension Environment.Value?

Methods

getString(default:)

swift
public func getString(default defaultString: String) -> String

Retrieve the Environment value as a string or return the specified default string value

  • Parameters:
    • default: default String value to be returned
  • Returns: String

Parameters

NameDescription
defaultdefault String value to be returned

getBoolean(default:)

swift
public func getBoolean(default defaultBoolean: Bool) -> Bool

Retrieve the Environment value as a boolean or return the specified default boolean value

  • Parameters:
    • default: default Boolean value to be returned
  • Returns: Bool

Parameters

NameDescription
defaultdefault Boolean value to be returned

Released under the MIT License.