ApolloExtension
EXTENSION
ApolloExtension
Swift
1public extension ApolloExtension where Base: CollectionProperties
isNotEmpty
Swift
1var isNotEmpty: BoolConvenience helper to make guard statements more readable
returns:
trueif the collection has contents.
isEmptyOrNil
Swift
1var isEmptyOrNil: Boolreturns:
trueif the collection is empty or nil
isNotEmpty
Swift
1var isNotEmpty: Boolreturns:
trueif the collection is non-nil AND has contents.
sha256Hash
Swift
1public var sha256Hash: StringThe SHA256 hash of the current string.