Good tutorial. To make a remark relating to your problem, the second you switch the name, the image will change. It isn't a bug, it is just how time works. I have been pondering how I can get past that, and my basic idea thus far is to create a chain of events somehow. First link in the chain will be before animation changes, which will give a time to position elements, next will be the animation, and finally post animation. In the post animation step you could switch the image, or maybe mid animation would be better for your case. For a simple solution, you could just have a timer that gets set when you click the card, when the timer executes, it changes the name of the image. Then just mess with the timer until it looks good.
@RobertHolzapfel3 жыл бұрын
Thanks, very useful and kind a sympathetically explained! Like it very much! 👍🏻
@phongtran924 жыл бұрын
Should we use weak self inside block withAnimation ?
@ChillO__Out4 жыл бұрын
Thank you. You are nice
@developerios60965 жыл бұрын
Interesting video and nice effect, hope those random bug patching zstacks are going to be fixed. About the image changing before the animation occurs, have you came up with some idea to fix that? The initial velocity looks like a compromise, or maybe is that a bug too?
@VasilNunev5 жыл бұрын
Since you are changing the state, and the image is listening to that state, the image will have to change immidietely. As of right now there isnt any API that will allow you to change a state alongside animation, but hopefully will get something soon. Dont forget this is early Beta and things change/update every week 😊
@yassineattia30095 жыл бұрын
How did you master swift UI so fast ? give us tips
@VasilNunev5 жыл бұрын
I am far from mastering it 😅 But I did jump into learning everything about it since day one! With that practicing on making different apps comes a lot of knowledge.
@GOK19705 жыл бұрын
Will you be able to make a "News Reader-ish" SwiftUI app?
@VasilNunev5 жыл бұрын
Love the idea! Will put it on my to-do list! Currently I am working on SwiftUI course where I’ll show you how to build fully SwiftUI Pokedex like the one I tweeted twitter.com/vasilnunev/status/1145579775416786944?s=21
@aftabahmed53035 жыл бұрын
github.com/aftabahmed1286/NYTimesSwiftUI.git
@isurujn5 жыл бұрын
Vasil Nunev Awesome! Where is the course gonna be available? Is there an email list or something?
@abdouett36765 жыл бұрын
Great tutorial! Thanks
@GOK19705 жыл бұрын
Sorry, but adding the source code would be very helpful Vasil. :)
@VasilNunev5 жыл бұрын
Will do soon! Thanks for your feedback, helps me a lot to improve your experience 😊
@DimNovo5 жыл бұрын
4:18 .tapAction { ... } 👌🏻
@udaysurya77775 жыл бұрын
Sooooooper
@VasilNunev5 жыл бұрын
Glad you liked it!
@nursultanyelemessov4805 жыл бұрын
Can you make an API news app with swift ui please?
@KrishhKx4 жыл бұрын
Sir how to take image to api
@nursultanyelemessov4805 жыл бұрын
You have the video with it but its old! and not usefull