SwiftUI: State and Animations

  Рет қаралды 3,790

Vasil Blanco-Nunev

Vasil Blanco-Nunev

Күн бұрын

Пікірлер: 21
@williammcmahon237
@williammcmahon237 4 жыл бұрын
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.
@RobertHolzapfel
@RobertHolzapfel 3 жыл бұрын
Thanks, very useful and kind a sympathetically explained! Like it very much! 👍🏻
@phongtran92
@phongtran92 4 жыл бұрын
Should we use weak self inside block withAnimation ?
@ChillO__Out
@ChillO__Out 4 жыл бұрын
Thank you. You are nice
@developerios6096
@developerios6096 5 жыл бұрын
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?
@VasilNunev
@VasilNunev 5 жыл бұрын
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 😊
@yassineattia3009
@yassineattia3009 5 жыл бұрын
How did you master swift UI so fast ? give us tips
@VasilNunev
@VasilNunev 5 жыл бұрын
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.
@GOK1970
@GOK1970 5 жыл бұрын
Will you be able to make a "News Reader-ish" SwiftUI app?
@VasilNunev
@VasilNunev 5 жыл бұрын
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
@aftabahmed5303
@aftabahmed5303 5 жыл бұрын
github.com/aftabahmed1286/NYTimesSwiftUI.git
@isurujn
@isurujn 5 жыл бұрын
Vasil Nunev Awesome! Where is the course gonna be available? Is there an email list or something?
@abdouett3676
@abdouett3676 5 жыл бұрын
Great tutorial! Thanks
@GOK1970
@GOK1970 5 жыл бұрын
Sorry, but adding the source code would be very helpful Vasil. :)
@VasilNunev
@VasilNunev 5 жыл бұрын
Will do soon! Thanks for your feedback, helps me a lot to improve your experience 😊
@DimNovo
@DimNovo 5 жыл бұрын
4:18 .tapAction { ... } 👌🏻
@udaysurya7777
@udaysurya7777 5 жыл бұрын
Sooooooper
@VasilNunev
@VasilNunev 5 жыл бұрын
Glad you liked it!
@nursultanyelemessov480
@nursultanyelemessov480 5 жыл бұрын
Can you make an API news app with swift ui please?
@KrishhKx
@KrishhKx 4 жыл бұрын
Sir how to take image to api
@nursultanyelemessov480
@nursultanyelemessov480 5 жыл бұрын
You have the video with it but its old! and not usefull
SwiftUI: Custom Button using ButtonStyle
17:43
Vasil Blanco-Nunev
Рет қаралды 7 М.
SwiftUI: Presenting Alert, Action Sheet and Modals
12:08
Vasil Blanco-Nunev
Рет қаралды 9 М.
Happy birthday to you by Secret Vlog
00:12
Secret Vlog
Рет қаралды 6 МЛН
бабл ти гель для душа // Eva mash
01:00
EVA mash
Рет қаралды 9 МЛН
«Осень». Самая большая загадка Windows XP
14:36
Девять десятых
Рет қаралды 1,2 МЛН
Circular Loading View (Swift 4 & XCode 9)
34:27
Vasil Blanco-Nunev
Рет қаралды 4,1 М.
SwiftUI: Building List, NavigationView and Carousel
38:47
Vasil Blanco-Nunev
Рет қаралды 3,5 М.
The cloud is over-engineered and overpriced (no music)
14:39
Tom Delalande
Рет қаралды 688 М.
WWDC24: SwiftUI essentials | Apple
24:16
Apple Developer
Рет қаралды 76 М.
Object-Oriented Programming is Bad
44:35
Brian Will
Рет қаралды 2,3 МЛН
SwiftUI: Custom Activity Indicator
17:36
Vasil Blanco-Nunev
Рет қаралды 4,9 М.
DHH discusses SQLite (and Stoicism)
54:00
Aaron Francis
Рет қаралды 98 М.
Building a Mobile App in 2024: The BEST Technologies
13:31
Dan Ilies
Рет қаралды 93 М.
My 10 “Clean” Code Principles (Start These Now)
15:12
Conner Ardman
Рет қаралды 272 М.