mirror of
https://gitlab.opencode.de/bwi/bundesmessenger/clients/bundesmessenger-ios.git
synced 2026-05-01 13:46:57 +02:00
Extract toast view state
This commit is contained in:
@@ -22,11 +22,11 @@ import MatrixSDK
|
||||
/// A `UserIndicatorPresentable` responsible for showing / hiding a toast view for loading spinners or success messages.
|
||||
/// It is managed by an `UserIndicator`, meaning the `present` and `dismiss` methods will be called when the parent `UserIndicator` starts or completes.
|
||||
class ToastUserIndicatorPresenter: UserIndicatorPresentable {
|
||||
private let viewState: RoundedToastView.ViewState
|
||||
private let viewState: ToastViewState
|
||||
private weak var navigationController: UINavigationController?
|
||||
private weak var view: UIView?
|
||||
|
||||
init(viewState: RoundedToastView.ViewState, navigationController: UINavigationController) {
|
||||
init(viewState: ToastViewState, navigationController: UINavigationController) {
|
||||
self.viewState = viewState
|
||||
self.navigationController = navigationController
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user