kudoleh / iOS-Clean-Architecture-MVVM

Template iOS app using Clean Architecture and MVVM. Includes DIContainer, FlowCoordinator, DTO, Response Caching and one of the views in SwiftUI
https://tech.olx.com/clean-architecture-and-mvvm-on-ios-c9d167d9f5b3
3.91k stars 672 forks source link

Fixed Singleton class. #13

Closed headonn5 closed 3 years ago

headonn5 commented 3 years ago

Description: Minor fix in the CoreDataStorage.swift class to make it purely singleton by creating a private initializer for it. This makes sure that the compiler throws an error when any class attempts to initialize CoreDataStorage.