MNActivityManager
open class MNActivityManager
This class manages activities updating animations.
-
An instance that represents acitivity manager.
Declaration
Swift
public static let shared: MNActivityManager -
Different types of activities.
See moreDeclaration
Swift
public enum ActivityType : String -
Declaration
Swift
public var _activities: [ActivityType : Bool]? -
This function checks if the animation should show or not. When there is no more activities stored, not showing the spinning animation. Visa versa.
Declaration
Swift
public var isAnimating: Bool { get }Return Value
A boolean value that determines if the spinning animation is showing or not.
-
Call this function whenever you want to update an activity.
Declaration
Swift
public func update(type: ActivityType)Parameters
typeThe type of the activity that is updating.
-
Call this function when the activity finishes updating.
Declaration
Swift
public func finished(type: ActivityType)Parameters
typeThe type of the activity that finishes updating.
MNActivityManager Class Reference