alexiscreuzot / SwiftyGif

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

Gif appears only one time #103

Closed minaMagedNaeem closed 5 years ago

minaMagedNaeem commented 5 years ago

I use SwiftyGif to play a gif image using this code: do { shoppieImage.setGifImage(try UIImage(gifName: "gif_coin_flip"), manager: gifManager, loopCount: -1) } catch let error { print(error) }

The above code worked perfectly until I updated SwiftyGif to v5.0.1 The gif appears correctly but when I dismiss the view controller and present it again the gif does not appear

MrPovilas commented 5 years ago

Similar problem here (also just with v.5.0.1). I play one gif at app launch, and after some actions play different gif, so the initial gif displayed normally, but second one is not displayed anymore.

buh commented 5 years ago

I fixed the issue in PR #104, check my fork.

minaMagedNaeem commented 5 years ago

Could you please tell me how to install the pod on this fork?

buh commented 5 years ago

@minaMagedNaeem

pod 'SwiftyGif', :git => 'https://github.com/buh/SwiftyGif.git'

Please, let me know if my fork fixed your problem.

minaMagedNaeem commented 5 years ago

I get this exception:

dyld: lazy symbol binding failed: Symbol not found: _$sSf9SwiftyGifE7defaultSfvau Referenced from: /var/containers/Bundle/Application/A290A93A-B7F8-4F34-9746-7B16C25C97D2/ShopX.app/ShopX Expected in: /private/var/containers/Bundle/Application/A290A93A-B7F8-4F34-9746-7B16C25C97D2/ShopX.app/Frameworks/SwiftyGif.framework/SwiftyGif

dyld: Symbol not found: _$sSf9SwiftyGifE7defaultSfvau Referenced from: /var/containers/Bundle/Application/A290A93A-B7F8-4F34-9746-7B16C25C97D2/ShopX.app/ShopX Expected in: /private/var/containers/Bundle/Application/A290A93A-B7F8-4F34-9746-7B16C25C97D2/ShopX.app/Frameworks/SwiftyGif.framework/SwiftyGif

buh commented 5 years ago

Did you try to clean Xcode cache ⇧⌘K?

Another thing, that I changed a little by API to load gif by URL, it shouldn't be optional, but now it returns an URLSessionTask, where it could be cancelled.

minaMagedNaeem commented 5 years ago

Ok it worked out well but I'll test it, Should anything happen I will tell you asap.

minaMagedNaeem commented 5 years ago

I tried downloading it again and it shows me that it wants username and password

alexiscreuzot commented 5 years ago

that isn't something related to this library