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
animatedWhether to animate the transition.
preferredTintColorThe preferred color to use for the activity indicator.
completionCompletion of the transition.
-
Stop loading and hide any visible loading overlay.
Declaration
Swift
@MainActor public func mimiStopLoading(animated: Bool, completion: (() -> Void)? = nil)Parameters
animatedWhether to animate the transition.
completionCompletion 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()
UIView Extension Reference