Skip to content

Latest commit

 

History

History
23 lines (16 loc) · 578 Bytes

README.md

File metadata and controls

23 lines (16 loc) · 578 Bytes

VIP template for Generamba with SwiftUI

Our own impletation VIP in SwiftUI

  1. Module has model with state, called Your_Module_nameViewModel.swift
  2. View and Presenter has reference to this ViewModule. Every change in ViewModule call refresh View that has this ViewModel.
  3. For navigation you can use "Router" property in Your_Module_nameView.swift

How to use

You need some BaseClasses

  1. DIResolver

DIResolver

class DIResolver {

    init() { }

}

Then just use this :)

Don't use update(model..) func for update your UI! Use viewModule only!