Files
MapLibreParticleLab/platform/ios/src/UIDevice+MGLAdditions.h
Jason Wray 885f6e3c02 [ios] Add preferred FPS setting; vary maximum FPS by device capability
- Add `MGLMapView.preferredFramesPerSecond`, which can be set with the provided `MGLMapViewPreferredFramesPerSecond` enum values or directly with an integer.
- Adaptively set the preferred FPS based on the capabilities of the device: the oldest and least powerful devices are now capped at 30 FPS, which results in a more consistent/smoother experience.
2018-07-31 15:20:05 -04:00

8 lines
124 B
Objective-C

#import <UIKit/UIKit.h>
@interface UIDevice (MGLAdditions)
@property (nonatomic, readonly) BOOL mgl_isLegacyDevice;
@end