Added logout option, room list on home screen, made various methods asynchronous,

This commit is contained in:
Stefan Ceriu
2022-02-22 09:18:46 +02:00
parent d90738e1e4
commit b53efb4869
12 changed files with 522 additions and 71 deletions
@@ -15,10 +15,14 @@
//
import Foundation
import UIKit
protocol HomeScreenViewModelProtocol {
var completion: ((HomeScreenViewModelResult) -> Void)? { get set }
@available(iOS 14, *)
var context: HomeScreenViewModelType.Context { get }
func updateWithRoomList(_ roomList: [RoomModelProtocol])
func updateWithUserAvatar(_ avatar: UIImage?)
}