mirror of
https://gitlab.opencode.de/bwi/bundesmessenger/clients/bundesmessenger-ios.git
synced 2026-04-27 11:46:58 +02:00
Rename Activity to UserIndicator
This commit is contained in:
@@ -17,8 +17,8 @@
|
||||
import Foundation
|
||||
import CommonKit
|
||||
|
||||
/// Type of activity to be shown in the app navigator
|
||||
enum AppActivityType {
|
||||
/// Type of indicator to be shown in the app navigator
|
||||
enum AppUserIndicatorType {
|
||||
/// Loading toast with custom label
|
||||
case loading(String)
|
||||
|
||||
@@ -37,11 +37,11 @@ protocol AppNavigatorProtocol {
|
||||
/// Do not use protocol with associatedtype for the moment like presented here https://www.swiftbysundell.com/articles/navigation-in-swift/#where-to-navigator use a separate enum
|
||||
func navigate(to destination: AppNavigatorDestination)
|
||||
|
||||
/// Add new activity, such as loading indicator or a success message, to an app-wide queue of other activities
|
||||
/// Add new indicator, such as loading spinner or a success message, to an app-wide queue of other indicators
|
||||
///
|
||||
/// If the queue is empty, the activity will be displayed immediately, otherwise it will be pending
|
||||
/// until the previously added activities have completed / been cancelled.
|
||||
/// If the queue is empty, the indicator will be displayed immediately, otherwise it will be pending
|
||||
/// until the previously added indicator have completed / been cancelled.
|
||||
///
|
||||
/// To remove an activity indicator, cancel or deallocate the returned `Activity`
|
||||
func addAppActivity(_ type: AppActivityType) -> Activity
|
||||
/// To remove an indicator, cancel or deallocate the returned `UserIndicator`
|
||||
func addUserIndicator(_ type: AppUserIndicatorType) -> UserIndicator
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user