New loading indicators when creating a room

This commit is contained in:
Andy Uhnak
2022-03-29 16:45:37 +01:00
parent 1b24371337
commit 4fe43da6d5
10 changed files with 55 additions and 80 deletions
@@ -39,8 +39,8 @@ import CommonKit
}
}
/// Present a new type of user indicator, such as loading spinner or success message.
/// To remove an indicator, call the returned `UserIndicatorCancel` function
/// Present a loading indicator.
/// To remove the indicator call the returned `UserIndicatorCancel` function
///
/// Note: This is a convenience function callable by objective-c code
@objc func presentLoading(label: String, isInteractionBlocking: Bool) -> UserIndicatorCancel {
@@ -51,4 +51,12 @@ import CommonKit
)
)
}
/// Present a success message that will be automatically dismissed after a few seconds.
///
/// Note: This is a convenience function callable by objective-c code
@objc func presentSuccess(label: String) {
let indicator = presenter.present(.success(label: label))
indicators.append(indicator)
}
}