Тёмный

Swift: Dependency Injection Tutorial (2022) - iOS 

iOS Academy
Подписаться 118 тыс.
Просмотров 35 тыс.
50% 1

Опубликовано:

 

29 окт 2024

Поделиться:

Ссылка:

Скачать:

Готовим ссылку...

Добавить в:

Мой плейлист
Посмотреть позже
Комментарии : 70   
@awsysumer3814
@awsysumer3814 3 года назад
Out of million tutorials about DI, this one explains it crystal clear and in a very simple way to understand. Thank you so much. Keep it up 👍🏻
@iOSAcademy
@iOSAcademy 3 года назад
Youre welcome!
@iOSAcademy
@iOSAcademy 3 года назад
Enjoy my teaching style? Check out iOS Academy+ at iosacademy.io/plus
@nemotv6623
@nemotv6623 3 года назад
DI with MVVM example? Awesome video btw, thanks
@iOSAcademy
@iOSAcademy 3 года назад
Sure! And thanks!
@TheSpiralnotizblock
@TheSpiralnotizblock 3 года назад
I was waiting so hard for this! Thank you so much
@iOSAcademy
@iOSAcademy 3 года назад
You’re welcome
@vinnygen6632
@vinnygen6632 3 года назад
Been waiting for this! Thanks a lot!
@iOSAcademy
@iOSAcademy 3 года назад
Hope you enjoyed it!
@peaceL2626
@peaceL2626 3 года назад
@@iOSAcademy hey, Do you have learning path for beginner to advance like this topics(di,reactive programming etc)
@PavelOtverchenko
@PavelOtverchenko 3 года назад
Smashing that like button even before watching the video. Thank you!
@iOSAcademy
@iOSAcademy 3 года назад
You're the best!
@zb1123
@zb1123 3 года назад
Fantastic video - clear and concise! Cheers!
@iOSAcademy
@iOSAcademy 3 года назад
Glad it was helpful!
@hadyhelal6626
@hadyhelal6626 2 года назад
Why did you use singleton despite you used dependency injection? i know that one of dependency injection benefit is to remove singleton!!
@jameelshehadeh9011
@jameelshehadeh9011 2 года назад
same question here
@BharatKumar-xk6lq
@BharatKumar-xk6lq 3 года назад
Thanks alot brother 👍 perfect understandable explination 💗 loads of love 💗😍
@iOSAcademy
@iOSAcademy 3 года назад
You’re welcome!!
@raychen4458
@raychen4458 2 года назад
please can we have another DI tutorials that talks more in depth concepts and how to work with MVVM Much appreciated !!!
@apoorvas99
@apoorvas99 3 года назад
Loved it! Thank You so much.
@iOSAcademy
@iOSAcademy 3 года назад
Youre welcome
@cesaralcantara1341
@cesaralcantara1341 3 года назад
Can you possibly explain the @escaping closures and callback and the reason for this instead of making the function return something? New to iOS development
@novo4249
@novo4249 3 года назад
Hi Cesar, using callback function to return a value is a common approach to achieve asynchronous function in programming. In this case, the function have to be asynchronous as the network API call is not returning the value immediately. @escaping closure is just the Swift way of implementing callback.
@cesaralcantara1341
@cesaralcantara1341 3 года назад
@@novo4249 thank you so much Hans! I appreciate it!
@johnmathew2120
@johnmathew2120 3 года назад
Hi, Thanks for great lesson with easy practical sample. I have one doubt, This injecting will works only on Targets or it will work classes too?
@iOSAcademy
@iOSAcademy 3 года назад
Youre welcome. Yep it works for both
@johnmathew2120
@johnmathew2120 3 года назад
@@iOSAcademy Thank you 🙂🙂
@JP-ks3kh
@JP-ks3kh 2 года назад
This is a great tutorial...Thanks a lot! Moarrrr plzzzzz.
@iOSAcademy
@iOSAcademy 2 года назад
Thanks!
@laurapotter6321
@laurapotter6321 2 года назад
Thank you for this wonderful tutorial! One question: so the in the dataFetchable protocol, the function needs to have the exact same name with the one inside ApiCaller right ?
@artikes9519
@artikes9519 3 года назад
Great Video! Isn't that dependency inversion?
@CastAsHuman
@CastAsHuman 2 года назад
Exactly my thoughts!
@harivigneshks8817
@harivigneshks8817 3 года назад
Brother for learning iOS development do we need Mac laptop or any other alternatives and if we want to buy apple laptop what OS needs to be purchased bro
@iOSAcademy
@iOSAcademy 3 года назад
Yes you need a mac with macos
@harivigneshks8817
@harivigneshks8817 3 года назад
@@iOSAcademy what OS Catalina or bigsur
@harivigneshks8817
@harivigneshks8817 3 года назад
@@iOSAcademy can we do swift programming in virtual machines
@ahmetbugraozcan6742
@ahmetbugraozcan6742 Год назад
It was great video but I have different question. What should we do when we require a data to multiple places? I was thinking dependency injection is related to this but it seems it doesnt so I am little confused.
@CJWhitaker
@CJWhitaker 2 года назад
How do you inject to the home view controller when it's embedded in a Navigation Controller?
@soromiso
@soromiso 3 года назад
Thanks
@iOSAcademy
@iOSAcademy 3 года назад
You're welcome! 😎
@phantuananh2163
@phantuananh2163 Год назад
Impressive!!!
@iOSAcademy
@iOSAcademy Год назад
thanks
@kalpeshjethva598
@kalpeshjethva598 2 года назад
I have multiple environments how can I manage them?
@DaveJacobseniOS
@DaveJacobseniOS 2 года назад
suuuuper helpful. thanks!
@iOSAcademy
@iOSAcademy 2 года назад
Youre welcome
@Oisinkelly308
@Oisinkelly308 3 года назад
Should 256gb be enough for balancing college work and xcode projects or should i invest in 512gb storage? I am going to be purchasing a macbook air soon and don’t know how much storage xcode takes up. Thanks
@maqusss
@maqusss 3 года назад
255gb is definitely to small. U need at least 512gb.
@iOSAcademy
@iOSAcademy 3 года назад
Id invest in 512
@johncerpa3782
@johncerpa3782 3 года назад
16 gb of ram, minimum
@Oisinkelly308
@Oisinkelly308 3 года назад
@@johncerpa3782 ordered 512gb ssd 16gb ram
@johncerpa3782
@johncerpa3782 3 года назад
Excellent
@iOSAcademy
@iOSAcademy 3 года назад
Thanks!
@tokero5199
@tokero5199 3 года назад
This was a very nice tutorial. I know it's slightly off topic but how would you handle dependencies of your separated out targets. Let's say you network module depends on alamofire but you do not want you main app to depend on alamofire.
@ApoCaLypSeXVII
@ApoCaLypSeXVII 2 года назад
I mean correct me if I'm wrong but once you import 3rd party dependencies to assist with backend network calls wouldn't it now become a global asset to the whole project? Anything having to do with the API would require you importing in alamofire for each file no?
@RajrkSunny
@RajrkSunny 2 года назад
@@ApoCaLypSeXVII I think we can also setup 3rd party for individual targets.
@tientranminh9564
@tientranminh9564 3 года назад
Pls make a tutorial about distribute app over the air
@JoeEnos
@JoeEnos 3 года назад
I’ve only been doing iOS development a few weeks, glad to see I’m not alone with Xcode being really flaky. Visual Studio isn’t perfect, but it seems way more stable and consistent.
@chaitanyakella7937
@chaitanyakella7937 3 года назад
Beautiful
@iOSAcademy
@iOSAcademy 3 года назад
Thanks
@ahopdanzer
@ahopdanzer 2 года назад
brilliant di tutorial
@iOSAcademy
@iOSAcademy 2 года назад
Thanks
@swiftMyDay
@swiftMyDay 3 года назад
I broke my iPhone smashing the like button 😩
@iOSAcademy
@iOSAcademy 3 года назад
Oh no!
@aprishsolanki6584
@aprishsolanki6584 Год назад
I smashed like button with broken phone
@dhikaaditya1920
@dhikaaditya1920 2 года назад
kit
@evgenykravtsov2157
@evgenykravtsov2157 3 года назад
import UsefullKit
@iOSAcademy
@iOSAcademy 3 года назад
Thanks!
@sirfetchd9829
@sirfetchd9829 2 года назад
this was way too fast
@mumble57558
@mumble57558 2 года назад
👍👍👍
@iOSAcademy
@iOSAcademy 2 года назад
Thanks
Далее
Dependency Injection
15:31
Просмотров 15 тыс.
Dependency injection в Swift.
25:35
Просмотров 2,1 тыс.
Dependency Injection In Swift (iOS 2022)
17:46
Просмотров 17 тыс.
Dependency Injection in SwiftUI, the Best Pattern
14:55
Dependency Injection | Swift 4, Xcode 9
16:40
Просмотров 16 тыс.
Swift iOS Dependency Injection Tutorial
12:44
Просмотров 13 тыс.