Abdeltwab / Flicker-App-MVVM

Flicker app clone Using MVVM + RXSwift
0 stars 0 forks source link

weak view model and throttling #10

Open Abdo-codes opened 3 years ago

Abdo-codes commented 3 years ago

https://github.com/Abdeltwab/Flicker-App/blob/ad8c11768a84c18e40be19c5f0fc4a0d68041be3/FlickerApp-Clone/FlickerApp-Clone/Moduels/PhotoGalleryContainerModule/View/PhotoGalleryContainerViewController.swift#L70

this can be enhanced by using [weak viewmodel] and also you can use throttling instead of waiting the user to end searching and showing results based on what he has already written in the box, read more about it here https://medium.com/fantageek/throttle-vs-debounce-in-rxswift-86f8b303d5d4

Abdeltwab commented 3 years ago

This super , will do this