- iOS 13.0+
- Xcode 12 or above
- Swift 5.0
The objective of this sample is to fetch data from server using alamofire server and displayed data in table view using MVVM Design pattern.
- Xcode 12(required)
- Download the sample
- Clean
/DerivedDatafolder if any - Then clean and build the project in Xcode
Alamofire- Alamofire/Alamofire Elegant HTTP Networking in Swift.
- MVVM - My preferred architecture.
- MVVM stands for “Model View ViewModel”
- It’s a software architecture often used by Apple developers to replace MVC. Model-View-ViewModel (MVVM) is a structural design pattern that separates objects into three distinct groups:
- Models hold application data. They’re usually structs or simple classes.
- Views display visual elements and controls on the screen. They’re typically - subclasses of UIView.
- View models transform model information into values that can be displayed on a view. They’re usually classes, so they can be passed around as references.
