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.

Alt text

Documentation

Create Services with BaseService

Alt text

Register Singleton Instance of Services

Alt text

Access singleton instance anywhere of services

Alt text

Get instance anywhere of services

Alt text

Create view model with BaseViewModel

Alt text

load view model from cache with just simple declaration

Alt text

SwiftUI Usage

Create View with BaseView – SwiftUI

Alt text

Access view model instance anywhere in View – SwiftUI

Alt text

Make observable view model instance in View – SwiftUI

Alt text

UIKit Usage

Create viewcontroller with BaseViewController – UIKit

Alt text

Access view model instance anywhere in controller – UIKit

Alt text

Author

WebsoftProfession, [email protected]

GitHub

View Github