UIView
extension UIView
-
Start loading, overlaying the view with a loading indicator.
Declaration
Swift
@MainActor public func mimiStartLoading(animated: Bool, preferredIndicatorColor: MimiLoadingView.IndicatorColor? = nil, completion: (() -> Void)? = nil)
Parameters
animated
Whether to animate the transition.
preferredTintColor
The preferred color to use for the activity indicator.
completion
Completion of the transition.
-
Stop loading and hide any visible loading overlay.
Declaration
Swift
@MainActor public func mimiStopLoading(animated: Bool, completion: (() -> Void)? = nil)
Parameters
animated
Whether to animate the transition.
completion
Completion of the transition.
-
Starts the shimmering animation which can be used to indicate a loading state.
Declaration
Swift
@MainActor func mimiStartShimmering(backgroundColor: UIColor, tintColor: UIColor)
-
Stops the shimmering animation.
Declaration
Swift
@MainActor func mimiStopShimmering()