iOS/macOS FAQ
FAQ
How do I enable support for ProMotion displays?
Support for ProMotion on iOS requires two things:
Using an API in the iOS runtime to set the desired FPS (range)
Adding an additional entry into your app's
Info.plist
file
Example Usage
let preferredFPS = UIScreen.main.maximumFramesPerSecond // or let preferredFPSRange = CAFrameRateRange(minimum: 60, maximum: Float(preferredFPS)) let viewModel = { let viewModel = RiveViewModel(fileName: "...") viewModel.setPreferredFramesPerSecond(preferredFramesPerSecond: preferredFPS) // or viewModel.setPreferredFrameRateRange(preferredFPSRange) return viewModel }()
Additionally, add the following to your app's Info.plist
file:
<key>CADisableMinimumFrameDurationOnPhone</key><true/>
You can view more information about preferred FPS here, and about preferred FPS range here.