User

public struct User : IdentityResource, Hashable

A root object that stores information about a user resource.

Properties

Functions

Properties

  • Returns a boolean indicating if the current user is signed in.

    Declaration

    Swift

    public static var isSignedIn: Bool { get }
  • Returns a boolean indicating if the current signed in user has a pro account.

    Declaration

    Swift

    public static var isPro: Bool { get }
  • Returns a boolean indicating if the current signed in user has a Kurozra+ subscription.

    Declaration

    Swift

    public static var isSubscribed: Bool { get }

Functions

  • Updates the user with the given details.

    Declaration

    Swift

    internal mutating func updateDetails(with userDetails: User)

    Parameters

    userDetails

    The details used to update the current user’s details.

  • A root object that stores information about a single user, such as the user’s username, bio, and profile image.

    See more

    Declaration

    Swift

    public struct Attributes : Codable
  • A root object that stores information about user relationships, such as the sessions, and badges that belong to it.

    See more

    Declaration

    Swift

    public struct Relationships : Codable