UUID

@available(OSX 10.8, iOS 6.0, *)
struct UUID : ReferenceConvertible, Hashable, Equatable, CustomStringConvertible

Extension to allow a UUID to be initialized from a Binary BSONValue.

  • Initializes a UUID instance from a Binary BSONValue.

    Throws

    • UserError.invalidArgumentError if a non-UUID subtype is set on the Binary.

    Declaration

    Swift

    public init(from binary: Binary) throws