Skip to content

jamy0801/LGGIFKit

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 

Repository files navigation

LGGIFKit

to general GIF and play GIF type file~

##preView demo

general GIF

        let filepath = NSBundle.mainBundle().pathForResource("video.mp4", ofType: nil)
        let videoPath = NSURL(fileURLWithPath: filepath!)
        LGGIFGeneral.generalGIFFromUrl(videoPath, loopCount: 0, FPS: 30) { (gifUrl) -> Void in
        // complection block
        }

play GIF

let gifView = LGGIFPlayer(frame: (self.view?.bounds)!, fileUrl: gifUrl)
            self.view.addSubview(gifView!)
            gifView?.startAnimation()

About

to general GIF and play GIF type file~

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages