How to use MatchedGeometryEffect in SwiftUI | Advanced Learning #4

  Рет қаралды 13,675

Swiftful Thinking

Swiftful Thinking

2 жыл бұрын

In this video we will learn how to successfully implement MatchedGeometryEffect. This modifier is super powerful and there are many use cases when this will come in handy. We will cover a few real-world scenarios where MatchedGeometryEffect can take your app to the next level.
Note: when using MatchedGeometryEffect, it's very important to understand the "namespace" and "id" for each object you want to animate. You also need to ensure that you are drawing objects on/off the screen simultaneously.
Next video: • Custom Shapes in Swift...
Last video: • How to create custom T...
🤙 WELCOME BACK 🤙
WEBSITE: www.swiftful-thinking.com
DISCORD: / discord
GITHUB: github.com/SwiftfulThinking/
SAY THANKS: www.buymeacoffee.com/nicksarno

Пікірлер: 50
@maciusessa
@maciusessa 2 жыл бұрын
Pretty cool modifier. I must admit i have never even heard of him, so thank you a lot. Flying through this course. Awesome vids!
@roshanthapa25
@roshanthapa25 Жыл бұрын
Another cool video, very impressive. Love the fact that you're showing how to use these basic building blocks in real life on apps. Sometimes, it's hard to think of a use case. I had similar problem with Future in combine, I had been scratching my head for days to find a use case for Future.
@powledge1994
@powledge1994 Жыл бұрын
I always recommend your channel to all of my iOS friends. Great thanks from Korea!
@penyt
@penyt Жыл бұрын
Thank you for another useful tutorial. I was using an underline in selecting tabs and I had to use offset for it to have the spring animation. Now I learnt this I went back to modify my code to this MatchedGeometryEffect and is so much more efficient!
@manishnahar19
@manishnahar19 Жыл бұрын
Very Nice one. Thanks for giving a real-world example for the MatchedGeometryEffect modifier.
@Pepe_the_raver
@Pepe_the_raver 9 ай бұрын
Nice modifier and even nicer way to use it!
@rinotheone6806
@rinotheone6806 8 ай бұрын
big thank you Nick!
@dugrut1325
@dugrut1325 2 жыл бұрын
I'm making a grandious app, of course it started with an idea on paper, around Nov 2021. Not knowing much of SwiftUI code, I was able to writing a few lines of code when I started watching your videos, from BootCamp and up. The app has grown and now I finally used the feature in this video, it worked perfectly. Back in the day when I was a coder with VB/VBA/SQL; I wasn't great with the visual look for the screens, so I had a in-house visual designer that did all the pretty stuff, colour, fonts, etc. I can see I still have the same problem. But thanks to you most of my code works. Except one; I can not display a real time status when the app begins it's compiling data process, it has to compile all the initial data before use. This is a one time thing but it takes a few minutes to run. I want the progress of the function to display real-time to the screen, like a progress, but with real data, to show that the app is working hard in the background. I can not get this to work. I've watched 100's of videos but still no success.
@andresraigoza2082
@andresraigoza2082 2 жыл бұрын
Amazing!!! Thank you so much for sharing
@sols.2525
@sols.2525 2 жыл бұрын
Great topic. I knew nothing about this. Good skill to have in the pocket, thanks!
@SwiftfulThinking
@SwiftfulThinking 2 жыл бұрын
Thanks again Scott! You can get real fancy with this.
@selvarajant
@selvarajant 2 жыл бұрын
I am learning a lot with your videos. thanks a lot ❤
@philippegden9826
@philippegden9826 2 жыл бұрын
Best explanation I’ve seen of this!
@SwiftfulThinking
@SwiftfulThinking 2 жыл бұрын
🤗😁 Thanks!
@magedmohmed4403
@magedmohmed4403 9 ай бұрын
Thanks a lot nick , you are perfect in explanation
@minseongkang2189
@minseongkang2189 Жыл бұрын
What a great video.... Thank you :)
@user-ry6ix2mr8y
@user-ry6ix2mr8y 2 жыл бұрын
Thanks, great video Bro)
@wavyemoji6375
@wavyemoji6375 2 жыл бұрын
you the goat bro for real
@AkbarshahJumanazarov
@AkbarshahJumanazarov 6 күн бұрын
Thanks, helped a lot.
@BSharing09
@BSharing09 Жыл бұрын
excellence tutorial
@brucknerdevilliers
@brucknerdevilliers 2 жыл бұрын
Perfect!
@3ilz
@3ilz Жыл бұрын
very cool!
@thaisfernandes7498
@thaisfernandes7498 Жыл бұрын
thank youuuu!!
@SwiftDeveloperWorld
@SwiftDeveloperWorld Жыл бұрын
MatchedGeometryEffect IS THE BEST 🙏☀
@vamsi3877
@vamsi3877 2 жыл бұрын
Wow cool stuff 👏
@SwiftfulThinking
@SwiftfulThinking 2 жыл бұрын
Thanks Vamsi!! :)
@BillySangster
@BillySangster 2 жыл бұрын
Great video, Nick and another brilliant series from you. 😊 See when you’re using @Namespace, is it best practice to use multiple namespaces in a view, when implementing multiple separate animations, or are individual IDs enough?
@SwiftfulThinking
@SwiftfulThinking 2 жыл бұрын
Unless you're doing something super complicated, I think one @Namespace and individual IDs is enough!
@sondoskannous3306
@sondoskannous3306 Жыл бұрын
great 🤩🤩🤩🤩
@TheMcGloneCode
@TheMcGloneCode 2 жыл бұрын
Thinking of making a game in SwiftUI, this would be very helpful for animating the card to the enemy...
@josemanuelortizsanchez4983
@josemanuelortizsanchez4983 Жыл бұрын
I already have the bottom menu of my next app, thanks!
@SwiftfulThinking
@SwiftfulThinking Жыл бұрын
Awesome 🚀🚀
@dev_jeongdaeri
@dev_jeongdaeri 2 жыл бұрын
Great!!!🍯
@SwiftfulThinking
@SwiftfulThinking 2 жыл бұрын
Thanks :)))
@shokhzodsunnatov1967
@shokhzodsunnatov1967 2 жыл бұрын
🔥🔥🔥
@jisanson
@jisanson Жыл бұрын
good
@CandiceKhannaApps
@CandiceKhannaApps 2 жыл бұрын
🔥 👏🏽 🔥 🙏🏽
@stolenhen
@stolenhen 2 жыл бұрын
great video, thanks! Do you plan to build some another full app with this pro features and instruments? It'd be great to watch more pro things in practice =)
@SwiftfulThinking
@SwiftfulThinking 2 жыл бұрын
Hey! Thanks for watching. Yes, the plan is to do a "advanced app" course next! I haven't made it yet though...
@limonellaZ
@limonellaZ Жыл бұрын
Heey, amazing video and great explanation!! Quick question: I'm trying to do this with reusable views that are created outside of the main view. Tried passing the namespace to the other 2 views and using that on images and texts but it didn't work. Did you try it? What's your advice for that situation?
@sattorjabborov2728
@sattorjabborov2728 2 жыл бұрын
👍👍👍👍
@DaikiKaneda
@DaikiKaneda Жыл бұрын
you are god
@SwiftfulThinking
@SwiftfulThinking Жыл бұрын
No, my friend, you are
@mig12394
@mig12394 2 жыл бұрын
🙏🏽
@30guarino
@30guarino 2 жыл бұрын
Great video....Question: You made an array of [Strings] but is there a way to make both an array of [Colors] that when selected the category rectangle highlights to a different color in the ForEach loop (ex: Home: blue, Popular: Green, Saved: Yellow)?
@CandiceKhannaApps
@CandiceKhannaApps 2 жыл бұрын
I was wondering something along these lines too, only different sounds. Same concept. Hope he responds.
@SwiftfulThinking
@SwiftfulThinking 2 жыл бұрын
I have a video coming next week where we make a custom Tab Bar and we use MatchedGeometryEffect to change the tab bar's colors. I think it'll answer this for your guys haha
@30guarino
@30guarino 2 жыл бұрын
@@SwiftfulThinking Great looking forward to it
@100coinstar2
@100coinstar2 Жыл бұрын
Love your videos. Not sure what's going here. I implemented this the same way and the effect is extremely laggy/choppy running on actual device (iOS 16.5.1). Is that the same for you?
@AdjieSatryo
@AdjieSatryo Жыл бұрын
We should appreciate apple for this.
Custom Shapes in SwiftUI | Advanced Learning #5
17:20
Swiftful Thinking
Рет қаралды 12 М.
How to use Generics in Swift | Advanced Learning #8
19:24
Swiftful Thinking
Рет қаралды 14 М.
WHAT’S THAT?
00:27
Natan por Aí
Рет қаралды 14 МЛН
Mom's Unique Approach to Teaching Kids Hygiene #shorts
00:16
Fabiosa Stories
Рет қаралды 32 МЛН
NavigationStack - SwiftUI Programmatic Navigation - iOS 16
20:20
What are AI Agents?
12:29
IBM Technology
Рет қаралды 88 М.
How to use escaping closures in Swift | Continued Learning #20
21:56
Swiftful Thinking
Рет қаралды 19 М.
Why I *highly dislike* iOS Development
10:38
mayuko
Рет қаралды 345 М.
SwiftData Basics in 15 minutes
15:18
CodeWithChris
Рет қаралды 41 М.
Custom shapes with Arcs and Quad Curves in SwiftUI | Advanced Learning #6
22:18
Java Is Better Than Rust
42:14
ThePrimeTime
Рет қаралды 172 М.
How to use the Coordinator pattern in iOS
18:12
Paul Hudson
Рет қаралды 71 М.
The moment we stopped understanding AI [AlexNet]
17:38
Welch Labs
Рет қаралды 795 М.
WHAT’S THAT?
00:27
Natan por Aí
Рет қаралды 14 МЛН