User

public class User

A utility class to represent a user in local storage for better UI

  • Singleton to handle current

    Declaration

    Swift

    public static let session: User
  • Hold the status of the user

    Declaration

    Swift

    public var isSignedIn: Bool { get set }
  • Hold the current user ID

    Declaration

    Swift

    public var currentUserID: String { get set }
  • Hold the anonymous user ID

    Declaration

    Swift

    public var anonymousUserID: String? { get set }
  • Hold if the user is anonymous

    Declaration

    Swift

    public var isAnonymous: Bool { get set }