FavoriteStatus

public enum FavoriteStatus : Int, Codable

The set of available favorite status types.

case unfavorite = -1
case disabled = 0
case favorite = 1

Cases

Initializers

  • Initializes an instance of FavoriteStatus with the given bool value.

    If nil is given, then an instance of .disabled is initialized.

    Declaration

    Swift

    public init(_ bool: Bool?)

    Parameters

    bool

    The boolean value used to initialize an instance of FavoriteStatus.