PreferredFPS

public struct PreferredFPS : RawRepresentable, Equatable

Undocumented

  • Declaration

    Swift

    public typealias RawValue = Int
  • The preferred frames per second as an Int value.

    Declaration

    Swift

    public let rawValue: Int
  • Create a PreferredFPS value from an Int.

    Declaration

    Swift

    public init(rawValue: Int)

    Parameters

    rawValue

    The Int value to use as the preferred frames per second.

  • The default frame rate. This can be either 30 FPS or 60 FPS, depending on device capabilities.

    Declaration

    Swift

    public static let normal: PreferredFPS
  • A conservative frame rate; typically 30 FPS.

    Declaration

    Swift

    public static let lowPower: PreferredFPS
  • The maximum supported frame rate; typically 60 FPS.

    Declaration

    Swift

    public static let maximum: PreferredFPS