MVVM + Dependency Injection in Swift | Unit Testing | iOS

MVVM + Dependency Injection in Swift | Unit Testing | iOS

iCode

2 года назад

41,965 Просмотров

Ссылки и html тэги не поддерживаются


Комментарии:

Rohit Mishra
Rohit Mishra - 27.08.2023 18:24

Thank you bro.

Ответить
CG
CG - 23.03.2023 05:55

Out of 25 mins video you explained starting 15 mins on combine and protocol. Content is good but need to concentrate on actual stuff

Ответить
anil hanumante
anil hanumante - 18.03.2023 20:02

Superb man...loved your explaination

Ответить
Akshara Unnikrishnan
Akshara Unnikrishnan - 27.02.2023 18:20

Hi, it would be great if you create a video on MVVM issues on SwiftUI

Ответить
Chintan Maisuriya
Chintan Maisuriya - 23.11.2022 20:16

Can you please tell us
1. how to identify when to use MVC or MVVM?
2. WhY we use MVVM over MVC?

Thanks.

Ответить
Sajish Ramakrishnan
Sajish Ramakrishnan - 25.09.2022 16:27

As few others commented, there is a slight disagreement on the use of VM. The primary purpose of all view patterns are for separating presentation logic away from business logic. So VM as the name suggests should contain only fields and logic specific to a view or set of views. The fields in VM should be subset of actual Model and logic in VM is mainly presentation oriented like formatting a date for the view or responding the change of a field in the view. The core business logic (that could include using network calls to achieve that) and full set of fields should be part of the Model.

Ответить
TenderAI
TenderAI - 20.09.2022 18:40

Awesome explanation MAN!
BTW, the source code link was expired, could you help to check and update it?

Ответить
Nilesh Tupe
Nilesh Tupe - 05.09.2022 02:45

Thanks!

Ответить
Sagar Kadam
Sagar Kadam - 24.07.2022 07:38

Excellent content, wish we had your videos earlier but nevertheless its a brilliant content.. keep on publishing videos.. Best Wishes !!!

I had a query,
Dependancy Injection - With help of Sw-Inject how it can be used & implemented ? Would love to have a video on the same.
Many Thanks !!!!

Ответить
pranjal verma
pranjal verma - 23.07.2022 19:46

this explains very well awesome video and thanks for clearing my concepts about dependency injection and testCases.

Ответить
Siva Krishna
Siva Krishna - 16.07.2022 13:44

Great Video, easy and clean explanation.

Ответить
Dhaval Nena
Dhaval Nena - 06.06.2022 08:49

Very well explained !! Thanks

Ответить
Dewa S
Dewa S - 21.05.2022 18:24

awesome one so far!

Ответить
M A Hossan
M A Hossan - 19.05.2022 15:56

Thank for the lecture . I download the project but I am not able to run it . can you please explain to run the project ?

Ответить
Victor Rîurean
Victor Rîurean - 19.05.2022 14:38

nice

Ответить
Haroon Iqbal
Haroon Iqbal - 14.05.2022 13:03

Hi Great Tutorial, I have a confusion in UIKit when using MVVM and dependency injection while sending data to DetailViewController. Can you please provide me any code snippet for that. Or share link if you have any tutorial on it. Thanks in advance!

Ответить
Mallesha Holeyache
Mallesha Holeyache - 14.05.2022 12:17

Awesome explanation brother 👏👏. You please keep posting all videos related to Swift iOS . I have great hope that many of us get benefitted from your explanation and questions you ask in every step🙂. We need a gem like you in every learning curves😊

Ответить
Rahman Bramantya
Rahman Bramantya - 22.03.2022 20:30

Hi i have a question,can the viewmodel layer be reusable for multiple view layer? Or everytime you create a new view controller you always have to create the new viewmodel even though it have the same use case with the existing viewmodel file

Ответить
Said Alır
Said Alır - 21.03.2022 06:33

Brief but covered all possible questions. Easy to understand. Great explanation and great work. Thanks for this video.

Ответить
karaoke 🎤  deConstruction
karaoke 🎤 deConstruction - 20.03.2022 23:39

very good tutorial, thank you for your explanation.

Ответить
Aaron Walker
Aaron Walker - 19.03.2022 19:57

Excellent explanation, without any unnecessary details!

Ответить
Honest person
Honest person - 06.03.2022 12:55

please make a video on solid principles in swift.

Ответить
Meera Sayabu
Meera Sayabu - 27.02.2022 23:17

Cool tut. Great work brother.

Ответить
Dhav
Dhav - 23.02.2022 19:40

Great video as always. One question I was having is that what's the use case for the model to communicate back to the ViewModel? I understand that View Model is responsible for say making the network call and update the model but didn't come up with a use case where the model changes (without VM's involvement) and needs to communicate back to the VM.

Ответить
Sagar Chandra Das
Sagar Chandra Das - 19.02.2022 15:40

Top-quality contents. Carry on and help us.

Ответить
Sourish K
Sourish K - 13.02.2022 05:37

Top class explanation of ViewModel and Dependency Injection. I really wonder how did I miss this..

Ответить
Frustrated Engineers
Frustrated Engineers - 05.02.2022 09:26

Thanks for the interesting Tutorial. You explian it in a easy and straight way.Keep it up!!. Thank you!

Ответить
Ahmad Waqas
Ahmad Waqas - 25.01.2022 18:53

Why I haven’t seen your channel before. Top quality content. Looking forward to learn topics coordinators, architecture, unit tests, rxswift and anything you make :)

Ответить
Virender Verma
Virender Verma - 21.01.2022 21:24

Hi Pallav
Thank you for the wonderful videos.

I have one question why did you make the protocol as type of any object? Just to use weak?

If this is the case then how a struct will implement that protocol? and in case if implement then how it can be reference type? 🤯

Ответить
HumbleHustle
HumbleHustle - 21.01.2022 16:25

Great video. Please also make a video explaining the implementation of RIBs architecture aswell. Thanks in Advance.

Ответить
Khadija Daruwala
Khadija Daruwala - 19.01.2022 10:29

Thank you for the informative video. Can you please create a video for implementing unit tests for API calls

Ответить
Pushpa Bisht
Pushpa Bisht - 13.01.2022 20:39

Your videos r really helpful, thank you 🙏

Ответить
Pradeep Kumar
Pradeep Kumar - 28.12.2021 20:41

Pallav with your experience, I think you should make a udemy coarse targeting ios interview.

Ответить
Tokero
Tokero - 16.12.2021 13:59

Really nice video with a lot of good points that other videos on the topic missed. I do have a few issues with it. Calling MV* patterns architecture seems wrong to me. They are patterns designed to solve a specific issue. They are not themself the architecture of the app, seeing them as architecture is what causes people to try to cram all code into one of the letters of the acronym which is not the point with the patterns, it's is also what lead to strange bastard patterns like MVC-N and MVVM-C. MV* patterns are a great tool and they do participate inf the architecture but, they are not THE architecture. Also, you talk like 100% test coverage in itself is a goal, while you should strive for good coverage, the coverage itself is not a way to measure quality as the tests cold be testing absolutely nothing.

Ответить
Lokesh china tata Reddy
Lokesh china tata Reddy - 30.11.2021 08:10

Will you make vedio about databuilding in MVVM for us please

Ответить
Anil Saini
Anil Saini - 24.11.2021 21:55

As per MVVM view should not be aware about model however when you explained about protocol the closure, it was returning array of flight object to the View in this case view is dependent on model.
I was explaining the exactly what you mentioned in one of the Apple interview however interviewer told me as per MVVM view should not be aware about model.
What is your thought on it?

Ответить
akash revanna
akash revanna - 24.11.2021 21:24

thanks for this detailed explanation✌️

Ответить
Shashi Kumar
Shashi Kumar - 12.11.2021 21:51

Well explained, I really liked it the way you explained the MVVM pattern 🔥

Ответить
Ali Salman
Ali Salman - 07.11.2021 22:06

Very well Explained. Thank you

Ответить
keerthana s
keerthana s - 04.11.2021 20:59

Hi bro where should I use presentation logic

Ответить
Ahmed Shendy
Ahmed Shendy - 22.10.2021 10:08

May you please keep xcode version compatible with 12.4 (12D4e) in next videos, there is some people still cannot upgrade to latest version of OS/Xcode.

Ответить
Milan Siyainfotech
Milan Siyainfotech - 16.10.2021 13:02

Business logic should be a part of the model.

Ответить
Rana Asif Mahmood
Rana Asif Mahmood - 06.10.2021 12:52

Thank you for the great, well explained video on MVVM and dependency injection. I am wondering if you can make a video on Apple's device check api.

Ответить
Marium Hassan
Marium Hassan - 05.10.2021 21:13

one of the best videos

Ответить
Ron Rolle
Ron Rolle - 05.10.2021 00:31

I just discovered your channel recently. Nothing more to say, than 11 out of 10. Really top of the line content. I appreciate your effort very much.

Ответить
Lukas Seltsam
Lukas Seltsam - 27.09.2021 19:59

This is good but how to test network call?

Ответить
Lukas Seltsam
Lukas Seltsam - 27.09.2021 18:30

Combine is a powerful thing, shame Apple not updating it at all.

Ответить
Rajat Tyagi
Rajat Tyagi - 18.09.2021 19:46

Hi Pallav, can you make a video on LLD in iOS. It would be a great help :)

Ответить