Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions JellyGif.podspec
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,8 @@ Pod::Spec.new do |s|

s.author = { 'Linh Ta' => 'linhtadev@gmail.com' }
s.social_media_url = 'https://linhta.dev'
s.platform = :ios, '10.0'
s.ios.deployment_target = '10.0'
s.swift_version = '5.0'
s.platform = :ios, '9.0'
s.ios.deployment_target = '9.0'
s.swift_version = '4.2'
s.ios.framework = 'UIKit'
end
8 changes: 6 additions & 2 deletions JellyGif.xcodeproj/project.pbxproj
Original file line number Diff line number Diff line change
Expand Up @@ -324,12 +324,13 @@
CLANG_ENABLE_MODULES = YES;
CODE_SIGN_STYLE = Automatic;
DEFINES_MODULE = YES;
DEVELOPMENT_TEAM = BMXC39C5SJ;
DEVELOPMENT_TEAM = 8JMM4RM96A;
DYLIB_COMPATIBILITY_VERSION = 1;
DYLIB_CURRENT_VERSION = 1;
DYLIB_INSTALL_NAME_BASE = "@rpath";
INFOPLIST_FILE = JellyGif/Info.plist;
INSTALL_PATH = "$(LOCAL_LIBRARY_DIR)/Frameworks";
IPHONEOS_DEPLOYMENT_TARGET = 9.0;
LD_RUNPATH_SEARCH_PATHS = (
"$(inherited)",
"@executable_path/Frameworks",
Expand All @@ -338,6 +339,7 @@
PRODUCT_BUNDLE_IDENTIFIER = linhta.JellyGif;
PRODUCT_NAME = "$(TARGET_NAME:c99extidentifier)";
SKIP_INSTALL = YES;
SUPPORTS_MACCATALYST = YES;
SWIFT_OPTIMIZATION_LEVEL = "-Onone";
SWIFT_VERSION = 5.0;
TARGETED_DEVICE_FAMILY = "1,2";
Expand All @@ -350,12 +352,13 @@
CLANG_ENABLE_MODULES = YES;
CODE_SIGN_STYLE = Automatic;
DEFINES_MODULE = YES;
DEVELOPMENT_TEAM = BMXC39C5SJ;
DEVELOPMENT_TEAM = 8JMM4RM96A;
DYLIB_COMPATIBILITY_VERSION = 1;
DYLIB_CURRENT_VERSION = 1;
DYLIB_INSTALL_NAME_BASE = "@rpath";
INFOPLIST_FILE = JellyGif/Info.plist;
INSTALL_PATH = "$(LOCAL_LIBRARY_DIR)/Frameworks";
IPHONEOS_DEPLOYMENT_TARGET = 9.0;
LD_RUNPATH_SEARCH_PATHS = (
"$(inherited)",
"@executable_path/Frameworks",
Expand All @@ -364,6 +367,7 @@
PRODUCT_BUNDLE_IDENTIFIER = linhta.JellyGif;
PRODUCT_NAME = "$(TARGET_NAME:c99extidentifier)";
SKIP_INSTALL = YES;
SUPPORTS_MACCATALYST = YES;
SWIFT_VERSION = 5.0;
TARGETED_DEVICE_FAMILY = "1,2";
};
Expand Down
Binary file not shown.
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>SchemeUserState</key>
<dict>
<key>JellyGif.xcscheme_^#shared#^_</key>
<dict>
<key>orderHint</key>
<integer>0</integer>
</dict>
</dict>
</dict>
</plist>
7 changes: 6 additions & 1 deletion JellyGif/Source/JellyGifAnimator.swift
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,12 @@ public class JellyGifAnimator {
public private(set) lazy var displayLink: CADisplayLink = {
let displayLinkProxy = DisplayLinkProxy(animator: self)
let displayLink = CADisplayLink(target: displayLinkProxy, selector: #selector(DisplayLinkProxy.animateGif(displayLink:)))
displayLink.preferredFramesPerSecond = preferredAnimationQuality.preferredFramesPerSecond
if #available(iOS 10.0, *) {
displayLink.preferredFramesPerSecond = preferredAnimationQuality.preferredFramesPerSecond
} else {
// Fallback on earlier versions
displayLink.frameInterval = preferredAnimationQuality.preferredFramesPerSecond
}
displayLink.add(to: .main, forMode: .common)
return displayLink
}()
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -156,6 +156,6 @@ extension ViewController: JellyGifAnimatorDelegate {
Measured on an iPhone Xs Max, iOS 13.3.1 and Xcode 11.3.1

## Compatibility
- iOS 10.0+
- iOS 9.0+
- Swift 5.0
- Xcode 10+