From 5e54dce426125dd4f883cd5e6b6bdb09c94b967d Mon Sep 17 00:00:00 2001 From: Kuba Suder Date: Tue, 28 Jul 2015 19:19:09 +0200 Subject: [PATCH 1/3] added a CocoaPods podspec file --- SwiftGif.podspec | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100644 SwiftGif.podspec diff --git a/SwiftGif.podspec b/SwiftGif.podspec new file mode 100644 index 0000000..e9316e2 --- /dev/null +++ b/SwiftGif.podspec @@ -0,0 +1,17 @@ +Pod::Spec.new do |s| + s.name = 'SwiftGif' + s.version = '1.3.1' + s.summary = 'A small UIImage extension with gif support' + s.homepage = 'https://github.com/bahlo/SwiftGif' + s.license = 'MIT' + s.author = { 'Arne Bahlo': 'hallo@arne.me' } + + s.ios.deployment_target = '8.0' + + s.source = { + git: 'https://github.com/bahlo/SwiftGif.git', + tag: 'v1.3.1' + } + + s.source_files = 'SwiftGifCommon/*.swift' +end From a30a85d7530428c1a46aa74f034c5f0ee6ffa7f5 Mon Sep 17 00:00:00 2001 From: Kuba Suder Date: Tue, 28 Jul 2015 19:20:09 +0200 Subject: [PATCH 2/3] marked some methods as public MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit when SwiftGif is built as a module (e.g. using CocoaPods), these extension methods are internal by default, so they’re only accessible inside the SwiftGif module --- SwiftGifCommon/UIImage+Gif.swift | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/SwiftGifCommon/UIImage+Gif.swift b/SwiftGifCommon/UIImage+Gif.swift index 94d4cf0..6994fe2 100755 --- a/SwiftGifCommon/UIImage+Gif.swift +++ b/SwiftGifCommon/UIImage+Gif.swift @@ -11,7 +11,7 @@ import ImageIO extension UIImage { - class func animatedImageWithData(data: NSData) -> UIImage? { + public class func animatedImageWithData(data: NSData) -> UIImage? { let source = CGImageSourceCreateWithData(data, nil) let image = UIImage.animatedImageWithSource(source) @@ -96,7 +96,7 @@ extension UIImage { return gcd } - class func animatedImageWithSource(source: CGImageSource) -> UIImage? { + public class func animatedImageWithSource(source: CGImageSource) -> UIImage? { let count = CGImageSourceGetCount(source) var images = [CGImageRef]() var delays = [Int]() From ba73b12edd7ac3d8c83354073d031a223fb81107 Mon Sep 17 00:00:00 2001 From: Arne Bahlo Date: Mon, 12 Oct 2015 19:59:08 +0200 Subject: [PATCH 3/3] Update version in podspec, fix #5 and #9 --- SwiftGif.podspec | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/SwiftGif.podspec b/SwiftGif.podspec index e9316e2..52e01b8 100644 --- a/SwiftGif.podspec +++ b/SwiftGif.podspec @@ -1,6 +1,6 @@ Pod::Spec.new do |s| s.name = 'SwiftGif' - s.version = '1.3.1' + s.version = '1.4.1' s.summary = 'A small UIImage extension with gif support' s.homepage = 'https://github.com/bahlo/SwiftGif' s.license = 'MIT' @@ -10,7 +10,7 @@ Pod::Spec.new do |s| s.source = { git: 'https://github.com/bahlo/SwiftGif.git', - tag: 'v1.3.1' + tag: 'v1.4.1' } s.source_files = 'SwiftGifCommon/*.swift'