Very simple and concise. Great tutorial. Just a hint, you could also declare the url as let url:URL!, so you won't need to use Force unwrapping later on in the code.
thank you for inspiring video! I learn a lot from your video! One more question I wanna ask is about the background of gif. For the example of pocketmon ball in your video, I wanna remove the blue background and only want to display the red ball itself. I tried your code and I got my gif with white background automatically. How can I display gif without adding white background?? My original gif has no background! Thanks!
@@swiftandtips Just put two gif file in bundle such as 1.gif, 2.gif then call GifImage in ContentView with a state property inside, switch between "1.gif" and "2.gif" by a Button. GifImage will render always initial state.
Very simple and concise. Great tutorial. Just a hint, you could also declare the url as let url:URL!, so you won't need to use Force unwrapping later on in the code.
Thank you Ameya! 😄
Nice Pitt Bro , I am Beginner understanding quickly and clear
Keep going!! 👏😄. I’m glad these videos are helping you @Suresh
Exactly what I needed! Thanks Pitt
You’re welcome Dave ☺️!
@Dave jacobsen in my case only white screen coming
can you please help me?
thanks alot u really saved me i subbed💯
🥰🙌🏻
Thanks man we appreciate your content, that was very helpful ❤️
Thanks your support! 🫶🏼
Great and useful video. Native development offers as easy and straightforward solutions as third party frameworks and APIs do. Thanks.
Very good video material, nice teaching style, essential content. Thanks a lot for sharing your knowledge! 👍🏻
Thank very much Robert ☺️
Awesome, creative method! Thank you!
Nice tutorial! Thank you!
Glad it was helpful! ☺️
This is exactly what I need. Thank you so much boss 🤝
😄🫶🏼
in my case only white screen coming
can you please help me?
Great stuff
Nice idea i didn't know if that's simple
Excellent video, it works smoothly. Please guide how to disable the repeat for gif Image.
Thanks Qazi! Do you mean just reproduce it once?
@@swiftandtips yes exactly , it should repeat the animation once and then stop.
I see, let me investigate and I’ll reply you back 👌
@@swiftandtips thanks for your time and response
thank you nice video it help a lot
Your welcome Mario! I’m glad it was useful for you😀!
Thanks for the video. Is it possible to change the output? I would like to change the gif after some time!?
Hi Mbra771, I haven't tried yet, but I don't see any issue to do it.
Hi, my GIF seems to only loop once. Do you know how to fix this by any chance?
Not sure why, but I can investigate 👍
thank you for inspiring video! I learn a lot from your video! One more question I wanna ask is about the background of gif. For the example of pocketmon ball in your video, I wanna remove the blue background and only want to display the red ball itself. I tried your code and I got my gif with white background automatically. How can I display gif without adding white background?? My original gif has no background! Thanks!
I fixed it! made the opaque function true!
Great 😃! How is the code?
What I recommend you is to actually remove the background from the gif itself instead of adding extra work in the code just for removing it 👍
If you could send me a tweet with a screenshot would be great 👍
same issue, if you try dark mode you'd see the white background issue, I set website.isOpaque=false to workaround this
It works well if you have static view but I can't use this something like @State var selectedGif: String. I mean it doesn't update gif.
Interesting 🤔, what is your approach @Oguz?
@@swiftandtips Just put two gif file in bundle such as 1.gif, 2.gif then call GifImage in ContentView with a state property inside, switch between "1.gif" and "2.gif" by a Button. GifImage will render always initial state.
I see, I will try that later today. Thanks!
in my case only white screen coming
can you please help me?
Hi Adarsh, share a gist link to me and I could take a look.
@@swiftandtips Same. white screen and this message in :
Error acquiring assertion:
Hi , Thanks for this great work , I did it and work with me but all image have background "White" I want clear backGround this gif )=
Thanks for your comment. Yeah, that’s something I noticed too. I will try to find a solution for it soon.
did you find it?@@swiftandtips