Functions
The following functions are available globally.
-
Safely unwraps provided
IntegervalueDeclaration
Swift
public func safe(_ int: Int?) -> IntParameters
intoptional integer value
Return Value
given integer value or
zero -
Safely unwraps provided
DoublevalueDeclaration
Swift
public func safe(_ double: Double?) -> DoubleParameters
doubleoptional double value
Return Value
given double value or
zero -
Safely unwraps provided
StringvalueDeclaration
Swift
public func safe(_ string: String?) -> StringParameters
stringoptional double value
Return Value
given string value or
empty string -
Safely unwraps provided
BoolvalueDeclaration
Swift
public func safe(_ bool: Bool?) -> BoolParameters
booloptional bool value
Return Value
given bool value or
false
View on GitHub
Functions Reference