struct ChatsState: Stateable { var chats: [Chat] var currentChat: Chat? } // MARK: Init extension ChatsState { init() { chats = [] } }