alexiscreuzot / SwiftyGif

High performance GIF engine
MIT License
2.02k stars 212 forks source link

Index of Current Frame #5

Closed zachcoss closed 8 years ago

zachcoss commented 8 years ago

Is there a way to retrieve the index of the current image?

Examples: The current image (UIImage: 000x02939) is 4 of 21. Or gif.currentimage.index or gif[currentimage.index]

alexiscreuzot commented 8 years ago

Done with : 02857814 #8 add delegate to imageview

2 new functions :

public func currentFrameIndex() -> Int
public func frameAtIndex(index: Int) -> UIImage

On the Swift3 branch for now