A light weight architecture package. Easy to integrate and use
MVVMLightSwift
A light weight architecture pattern package. Easy to integrate and use.
MVVMLightSwift works on Model, ViewModel, ViewModelLocator. It can be integrated with SwiftUI & UIKit.
Requirements
Swift 5.x Xcode 12.x iOS 13 & above
Installation
MVVMLightSwift doesn’t contain any external dependencies. MVVMLightSwift is available through Swift Package Manager.
Documentation
Create Services with BaseService
Register Singleton Instance of Services
Access singleton instance anywhere of services
Get instance anywhere of services
Create view model with BaseViewModel
load view model from cache with just simple declaration
SwiftUI Usage
Create View with BaseView – SwiftUI
Access view model instance anywhere in View – SwiftUI
Make observable view model instance in View – SwiftUI
UIKit Usage
Create viewcontroller with BaseViewController – UIKit
Access view model instance anywhere in controller – UIKit
Author
WebsoftProfession, websoftprofession@gmail.com