Filter button

This commit is contained in:
Aleksandrs Proskurins
2022-10-11 08:42:28 +03:00
parent fa215f0338
commit 120367e2bd
9 changed files with 111 additions and 9 deletions
@@ -31,10 +31,15 @@ enum UserOtherSessionsViewModelResult: Equatable {
// MARK: View
struct UserOtherSessionsViewState: BindableState, Equatable {
var bindings: UserOtherSessionsBindings
let title: String
var sections: [UserOtherSessionsSection]
}
struct UserOtherSessionsBindings: Equatable {
var filter: OtherUserSessionsFilter
}
enum UserOtherSessionsSection: Hashable, Identifiable {
var id: Self {
self
@@ -45,4 +50,5 @@ enum UserOtherSessionsSection: Hashable, Identifiable {
enum UserOtherSessionsViewAction {
case userOtherSessionSelected(sessionId: String)
case filerWasChanged
}