User Experience and Animations in SwiftUI app | Todo List #5

  Рет қаралды 21,383

Swiftful Thinking

Swiftful Thinking

3 жыл бұрын

Let's focus on user experience a little! In this video we will add some very simple animations and messages that will dramatically enhance the user experience with just a few lines of code. It's always a good idea to add some extra development time to focus on things in your app that might be confusing or unclear to new users. Plus, SwiftUI makes adding animations extremely fun and easy - so why not!
Next video: • Adapt SwiftUI app for ...
Last video: • Save and persist data ...
🤙 WELCOME BACK 🤙
WEBSITE: www.swiftful-thinking.com
DISCORD: / discord
GITHUB: github.com/SwiftfulThinking/
SAY THANKS: www.buymeacoffee.com/nicksarno

Пікірлер: 48
@daniruiz931
@daniruiz931 3 жыл бұрын
I'm amazed how fancy and easy it is to make these animations! It really got me excited to really practice iOS development everyday and become fluent at it! Thanks a lot for the video!
@sema_f
@sema_f 2 жыл бұрын
Me same 🤣🙈 have so much fun
@tomqin3685
@tomqin3685 3 жыл бұрын
Love this animation, Thank you for the video!🥳
@SwiftfulThinking
@SwiftfulThinking 3 жыл бұрын
Thanks Tom! It's a simple animation, but it does the job haha
@nevemra5
@nevemra5 Жыл бұрын
Thank you so.... it was really big deal! Good luck for you, it was perfect))
@user-zo8ne6rd1s
@user-zo8ne6rd1s 2 жыл бұрын
Awesome, amazing, wonderful 😍😍😍
@SwiftfulThinking
@SwiftfulThinking 2 жыл бұрын
Thanks a lot 😊
@OnTheEdgh
@OnTheEdgh Жыл бұрын
Hi Nick, I've been loving your content and have so far gone through the initial boot camp and now I'm in progress on this. All I knew before hand was some very basic HTML and JSON so it's been a wild ride. Thank you for making this in such an accessible way! In addition to thanking you I just wanted to mention that for some reason this video is only available in 380p. I've tried it on a couple different devices and networks but it only ever offers 380p. It didn't super effect my ability to follow but it was enough for things to be a bit blurry. May just be a KZfaq issue but thought I should mention it just in case.
@user-zd1gj6jf8n
@user-zd1gj6jf8n 2 жыл бұрын
this is Great! Thank you!
@andresraigoza2082
@andresraigoza2082 2 жыл бұрын
Amazing!!! 😊 Thanks for sharing!!!
@SwiftfulThinking
@SwiftfulThinking 2 жыл бұрын
Thank you! Cheers!
@milanero2277
@milanero2277 Жыл бұрын
my god this is so fun and cool
@Nick-gj9gz
@Nick-gj9gz 3 жыл бұрын
This is treasure
@dugrut1325
@dugrut1325 2 жыл бұрын
I like it!
@pitmanra
@pitmanra 3 жыл бұрын
Nice animation.
@yaswanthkumarkooraku5476
@yaswanthkumarkooraku5476 3 жыл бұрын
You are the best
@SwiftfulThinking
@SwiftfulThinking 3 жыл бұрын
Haha no Yaswanth, you are :)
@trungnguyenthanh9233
@trungnguyenthanh9233 Жыл бұрын
So nice
@danielwatson6529
@danielwatson6529 2 жыл бұрын
What on earth have i just learned!!! this is insane
@SwiftfulThinking
@SwiftfulThinking 2 жыл бұрын
Hahaha
@ChristianHancke
@ChristianHancke 2 жыл бұрын
Thanks so much!
@SwiftfulThinking
@SwiftfulThinking 2 жыл бұрын
You're welcome Christian!
@aymanomara8468
@aymanomara8468 2 жыл бұрын
thanks bro
@TheSavageNoob
@TheSavageNoob 2 жыл бұрын
W channel
@tarun_reddy
@tarun_reddy 2 жыл бұрын
Nick my man😎 started your series 3weeks ago I’m almost to the crypto section
@SwiftfulThinking
@SwiftfulThinking 2 жыл бұрын
TARUNNNNN!!! Bro thanks for watching
@MetalCow68
@MetalCow68 2 жыл бұрын
Hi Friends, I probably made a mistake somewhere, but I can't find it: in the application preview the "Add Something" button works nice but not in the simulator. What could be wrong? Otherwise, thanks a lot for this course.
@irfanrizvi161
@irfanrizvi161 3 жыл бұрын
Hey buddy, another great video. Noticed another thing, you do not use @State Private var even for local variables. IS there a difference in memory efficiency between @State var and @State private var, or it doesn't really matter?
@SwiftfulThinking
@SwiftfulThinking 3 жыл бұрын
That's actually a great point Irfan. I SHOULD be using "@State private var" in these videos. I've just been in the habit of making beginner lever videos so I forget to add it in. It shouldn't be hard to go back and update lol..... Generally speaking, everything in your app should always be as private as possible. It's less of a "memory" issue and more of an "accessibility" issue. By making something private, we are safe checking that it is never mistakenly used somewhere else in the code. It also lets other developers know that it will only be used within the current file.
@danielwatson6529
@danielwatson6529 2 жыл бұрын
@@SwiftfulThinking yea thats cool, setting to private is better, but i understand that its ok not to in tutorials
@dugrut1325
@dugrut1325 2 жыл бұрын
My project is different, I do not see the Navigation Title bar when the NoItemsView() is running. When I click the Add button everything works great. I can not see why the difference.
@michaelpaul2824
@michaelpaul2824 Жыл бұрын
hello there , thanks for providing this tutorial , I have a question : when I build the project this error show every time : Thread 1: EXC_BAD_ACCESS (code=2, address=0x16ee8bff0) please help me :(
@dr.craigcurphey4829
@dr.craigcurphey4829 3 жыл бұрын
Weird ... in Xcode 12.5 beta 3, in NoItemsView it will not preview, failing on this line: .padding(.horizontal, animate ? 30 : 50) - but it runs on Xcode 12.4. So 12.5 says the 30 or the 50 are not the right format. Just a fyi ...
@SwiftfulThinking
@SwiftfulThinking 3 жыл бұрын
That's strange. What's the specific error message? Does it go away if you add 30.0 instead of 30?
@RainnBowwDashh
@RainnBowwDashh 3 жыл бұрын
@@SwiftfulThinking I had the same problem, it doesn't go away from adding .0 after. The error says "result values in '? :' expression have mismatching types 'Double' and 'CGFloat'
@SwiftfulThinking
@SwiftfulThinking 3 жыл бұрын
@@RainnBowwDashh This seems like a compiler issue. Doubles and CGFloats are both numbers so Xcode is just getting confused. You can force cast it to a CGFloat using CGFloat(30) and CGFloat(50).
@RainnBowwDashh
@RainnBowwDashh 3 жыл бұрын
@@SwiftfulThinking This worked! Thank you! Your videos have been so helpful.
@AZMerf
@AZMerf 3 жыл бұрын
More interesting. Only one of the two numbers needs the CGFloat(). Both works too.
@kenturnbull9679
@kenturnbull9679 2 жыл бұрын
I just noticed that I can't edit the content of the todo; we didn't code that ability. Edit just allows the toggle from complete to not. How about adding the ability to edit the actual text...and making it multiline?
@SwiftfulThinking
@SwiftfulThinking 2 жыл бұрын
Hey Ken! The logic to do this would be very similar to updating the completed state, except you update the text in the struct instead!
@kenturnbull9679
@kenturnbull9679 2 жыл бұрын
@@SwiftfulThinking OK, but the tap gesture for the line item is calling the update for the iscompleted. How would we differentiate between completing the todo and editting the title? Can the tap gesture for the completion be focused on the image and tapping the title text trigger the update on the text only??
@SwiftfulThinking
@SwiftfulThinking 2 жыл бұрын
@@kenturnbull9679 Yes, you can do that if you'd like! You can add the .tapGesture on to any component you'd like. You can also add multiple .tapGestures and have them execute different functions.
@paulmax9155
@paulmax9155 Жыл бұрын
• needed to know that exclamation mark looks unfriendly(( • the button is overloaded with animation • when button is shown , edit and add buttons need be hidden
@knowledgeispower4953
@knowledgeispower4953 5 ай бұрын
😇
@randomyoutubeacts6mviews2y6
@randomyoutubeacts6mviews2y6 2 жыл бұрын
12:29
@orijenovovic4197
@orijenovovic4197 2 жыл бұрын
Buy M1. I don't know that I have a fan on my MacBook Pro M1 ;)
@SwiftfulThinking
@SwiftfulThinking 2 жыл бұрын
I need to lol
Adapt SwiftUI app for iPad, Landscape, and Dark Mode | Todo List #6
13:35
Swiftful Thinking
Рет қаралды 16 М.
Elon Musk fires employees in twitter meeting DUB
1:58
GeoMFilms
Рет қаралды 14 МЛН
ПРОВЕРИЛ АРБУЗЫ #shorts
00:34
Паша Осадчий
Рет қаралды 6 МЛН
Пранк пошел не по плану…🥲
00:59
Саша Квашеная
Рет қаралды 6 МЛН
Using a List as a custom animated menu | SwiftUI Map App #4
27:15
Swiftful Thinking
Рет қаралды 16 М.
How to use @AppStorage in SwiftUI | Bootcamp #52
17:08
Swiftful Thinking
Рет қаралды 27 М.
Super Power Scroll Views - SwiftUI - iOS 17
9:14
Sean Allen
Рет қаралды 24 М.
How to use Refreshable modifier in SwiftUI | Swift Concurrency #15
7:59
Swiftful Thinking
Рет қаралды 5 М.
Dear SwiftUI Team…
5:26
Paul Hudson
Рет қаралды 19 М.
Project Setup with Assets and Custom Data Model | SwiftUI Map App #1
15:28
ПРОВЕРИЛ АРБУЗЫ #shorts
00:34
Паша Осадчий
Рет қаралды 6 МЛН