Skip to content

WebsoftProfession/MVVMLightSwift

Repository files navigation

MVVMLightSwift V(1.0.8)

A light weight architecture pattern package. Easy to integrate and use.

MVVMLightSwift works on Model, ViewModel, ViewModelLocator. It can be integrated with SwiftUI & UIKit.

Example Project: - WSMVVMLightSwiftExample

Key Features

  • Automatic view model binding
  • Load view model from cache
  • In-built isLoading property to show/hide loader on view
  • Compatible with SwiftUI & UIKit
  • Code optimization is easy
  • Unit Testing is easy
  • Clean Architecture Pattern
  • Introduced by iosexample
  • Fast & Smooth app user experience
  • Integration Example included below

Apps using MVVMLightSwift

Example Project using MVVMLightSwift with SwiftUI & UIKit integration

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 StateObject & ObservedObject 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, websoftprofession@gmail.com

About

A light weight architecture package. Easy to integrate and use.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages