RoomInfoCoordinator: Add possibility to open an initial specific section.

This commit is contained in:
SBiOSoftWhare
2021-02-23 15:51:23 +01:00
parent 1731a2a0f3
commit 3c7775b99a
5 changed files with 99 additions and 17 deletions
@@ -18,10 +18,25 @@
import Foundation
enum RoomInfoListTarget: UInt {
case settings = 2
case members = 0
case uploads = 1
enum RoomInfoListTarget {
case settings(_ field: RoomSettingsViewControllerField = RoomSettingsViewControllerFieldNone)
case members
case uploads
var tabIndex: UInt {
let tabIndex: UInt
switch self {
case .members:
tabIndex = 0
case .uploads:
tabIndex = 1
case .settings:
tabIndex = 2
}
return tabIndex
}
}
/// RoomInfoListViewController view actions exposed to view model