Created
October 18, 2020 08:42
-
-
Save IsaAliev/7b052667ac5eabad0bddb04d2e4f98cf to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import RxSwift | |
class ProfileViewModel: ViewModel, RxDataSourceProvider { | |
let collectionData = BehaviorSubject<[SectionData]>(value: []) | |
lazy var profile: Profile = { | |
let decoder = JSONDecoder() | |
let url = Bundle.main.url(forResource: "info", withExtension: "json")! | |
return try! decoder.decode(Profile.self, from: .init(contentsOf: url)) | |
}() | |
func setup() { | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment