VOLoadingViewProtocol

@protocol VOLoadingViewProtocol

The VOLoadingViewProtocol is responsible for animating any custom loading view. It is used for fullscreen loading views.

Note

VOUser is responsible for adding the loading view as a subview and constraining it to the view it should appear on.
  • This method will be called when loading is required.

    Declaration

    Objective-C

    - (void)startLoadingOnView:(nonnull UIView *)view
        presentedWithAnimation:(BOOL)animation;

    Swift

    func startLoading(onView view: Any!, presentedWithAnimation animation: Any!)

    Parameters

    view

    - the view on which your custom loading view should appear on.

    animation

    - specifies whether the loading view should be presented with an animation or not.

  • This method will be called when the loading view no longer needs to be displayed.

    Declaration

    Objective-C

    - (void)endLoadingWithAnimation:(BOOL)animation;

    Swift

    func endLoading(withAnimation animation: Any!)

    Parameters

    animation

    - specifies whether the loading view should be dismissed with animation.

  • Sets the tint color of the loading view.

    Declaration

    Objective-C

    - (void)setTintColor:(nonnull UIColor *)tintColor;

    Swift

    func setTintColor(_ tintColor: Any!)
  • The tint color of the loading view.

    Declaration

    Objective-C

    - (nonnull UIColor *)tintColor;

    Swift

    func tintColor() -> Any!