Files
letro-ios/ElementX/Sources/Screens/RoomThreadListScreen/RoomThreadListScreenModels.swift
Stefan Ceriu ba810116a0 Add a new RoomThreadListScreen and hook it up to the RoomThreadListService
It will automatically paginate to fill the screen and update the list as updates come in.
2026-03-31 18:21:14 +03:00

26 lines
603 B
Swift

//
// Copyright 2025 Element Creations Ltd.
//
// SPDX-License-Identifier: AGPL-3.0-only OR LicenseRef-Element-Commercial.
// Please see LICENSE files in the repository root for full details.
//
import Foundation
enum RoomThreadListScreenViewModelAction { }
struct RoomThreadListScreenViewState: BindableState {
var items = [RoomThreadListItem]()
var isPaginating = false
var bindings: RoomThreadListScreenViewStateBindings
}
struct RoomThreadListScreenViewStateBindings { }
enum RoomThreadListScreenViewAction {
case oldestItemDidAppear
case oldestItemDidDisappear
}