Closed BaxiaMashia closed 4 years ago
Still looking for help if anyone has some suggestions! Thanks!
Did you try with another GIF URL, like this one for instance : https://i.imgur.com/eZcQvpc.gif
Also maybe remove the masking.
I tried with this simplified code and it works :
outgoingMessageView = UIImageView(frame:imageView.frame)
outgoingMessageView.delegate = self
let url = URL(string: "https://i.imgur.com/eZcQvpc.gif")!
outgoingMessageView.setGifFromURL(url, manager: .defaultManager, loopCount: -1, showLoader: true)
view.addSubview(outgoingMessageView)
For the life of me I can't get the GIF to display. Is there something I'm missing here?
The delegate lets me know it runs successfully via:
gifDidStart gifURLDidFinish
Checking outgoingMessageView.isAnimatingGif() tells me it's still running. Checking outgoingMessageView.isDisplayedInScreen(outgoingMessageView) tells me it's not being displayed
It "finishes" almost immediately, but it's the same in your example project, yet the gif still loops and displays in your project. I've changed loop counts, imageviews, not running via a mask as I intended and instead just a UIImageView, changed the GIF urls, all to no avail. Help!
Using the latest SwiftyGIF version