Bool

extension Bool: DataConvertible
  • Creates a new instance with the specified data.

    If there is non Boolean value of the type that corresponds with the specified data, this initializer returns nil.

    Declaration

    Swift

    init?(data: Data)

    Parameters

    data

    The data to use for the new instance.