Skip to content
This repository has been archived by the owner on Jan 14, 2021. It is now read-only.

Commit

Permalink
Make private funcs internal to enable tests again
Browse files Browse the repository at this point in the history
  • Loading branch information
bahlo committed Aug 22, 2016
1 parent fbbe3c4 commit 4740403
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions SwiftGifCommon/UIImage+Gif.swift
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ extension UIImage {
return gif(data: imageData)
}

private class func delayForImageAtIndex(_ index: Int, source: CGImageSource!) -> Double {
internal class func delayForImageAtIndex(_ index: Int, source: CGImageSource!) -> Double {
var delay = 0.1

// Get dictionaries
Expand Down Expand Up @@ -98,7 +98,7 @@ extension UIImage {
return delay
}

private class func gcdForPair(_ a: Int?, _ b: Int?) -> Int {
internal class func gcdForPair(_ a: Int?, _ b: Int?) -> Int {
var a = a
var b = b
// Check if one of them is nil
Expand Down Expand Up @@ -133,7 +133,7 @@ extension UIImage {
}
}

private class func gcdForArray(_ array: Array<Int>) -> Int {
internal class func gcdForArray(_ array: Array<Int>) -> Int {
if array.isEmpty {
return 1
}
Expand All @@ -147,7 +147,7 @@ extension UIImage {
return gcd
}

class func animatedImageWithSource(_ source: CGImageSource) -> UIImage? {
internal class func animatedImageWithSource(_ source: CGImageSource) -> UIImage? {
let count = CGImageSourceGetCount(source)
var images = [CGImage]()
var delays = [Int]()
Expand Down

0 comments on commit 4740403

Please sign in to comment.