-
Create a
PreferredFPSvalue from anInt.Declaration
Swift
public init?(rawValue: Int)Parameters
rawValueThe
Intvalue to use as the preferred frames per second. -
Declaration
Swift
public typealias RawValue = Int -
The default frame rate. This can be either 30 FPS or 60 FPS, depending on device capabilities.
Declaration
Swift
case normal -
A conservative frame rate; typically 30 FPS.
Declaration
Swift
case lowPower -
The maximum supported frame rate; typically 60 FPS.
Declaration
Swift
case maximum -
A custom frame rate. The default value is 30 FPS.
Declaration
Swift
case custom(fps: Int) -
The preferred frames per second as an
Intvalue.Declaration
Swift
public var rawValue: Int { get }
PreferredFPS Enumeration Reference