Skip to content

Commit

Permalink
In SyncFrameRates update maxFPS iOS version check.
Browse files Browse the repository at this point in the history
  • Loading branch information
TysonParks committed Mar 4, 2019
1 parent 955e8dd commit 04f0f4f
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
3 changes: 2 additions & 1 deletion Source/Classes/GIFAnimatable.swift
Original file line number Diff line number Diff line change
Expand Up @@ -297,11 +297,12 @@ public enum SyncFrameRates: Int {
/// Maximum refresh rate of the device screen.
var maxFPS: Int {
let maxFPS: Int
if #available(iOSApplicationExtension 10.3, *) {
if #available(iOS 10.3, *) {
maxFPS = UIScreen.main.maximumFramesPerSecond
} else {
maxFPS = 60
}

return maxFPS
}

Expand Down
2 changes: 1 addition & 1 deletion Supporting Files/Info.plist
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
<key>CFBundleSignature</key>
<string>????</string>
<key>CFBundleVersion</key>
<string>166</string>
<string>167</string>
<key>NSPrincipalClass</key>
<string></string>
</dict>
Expand Down

0 comments on commit 04f0f4f

Please sign in to comment.