VerIDUser

@objc
public class VerIDUser : NSObject, Codable

Represents a user and her/his registered bearings

  • Identifier for the user

    Declaration

    Swift

    @objc
    public let userId: String
  • Bearings registered for this user

    Declaration

    Swift

    fileprivate(set) public var bearings: Set<VerIDBearing>
  • Array of bearings registered for this user. Consider using the set bearings in Swift apps.

    -See: bearings

    Declaration

    Swift

    @objc
    private(set) public var bearingsArray: Array<Int>
  • Default user ID

    Convenience value to use if your app only has one user

    Declaration

    Swift

    @objc
    public static let defaultUserId: String
  • Declaration

    Swift

    required public init(from decoder: Decoder) throws
  • Declaration

    Swift

    public func encode(to encoder: Encoder) throws