Ios swift – BaseViewModel to follow DRY principle in iOS using Swift
I am coming from Android world where we have abstract class. I am trying to improve in iOS using Swift. I create a base class as follow : class BaseViewModel<T>: ObservableObject { typealias GHError = APIService.GHError @Published var result =…