DefaultProgressView
@objc(PESDKDefaultProgressView) open class DefaultProgressView: NSObject, ProgressView
A ProgressView
is an activity indicator that is shown on top of all other views in a HUD style
and temporarily blocks all user interaction with other views.
-
The main container view of the progress view.
Declaration
Swift
open let overlayView = UIView(frame: CGRect(x: 0, y: 0, width: 202, height: 200))
-
The background view that is being animated in.
Declaration
Swift
open let backgroundView = UIView(frame: CGRect(x: 0, y: 0, width: 202, height: 142))
-
The image view that holds the spinner.
Declaration
Swift
open let imageView = UIImageView(frame: CGRect(x: 101 - 22, y: 29, width: 44, height: 44))
-
The label that contains the loading message.
Declaration
Swift
open let label = UILabel(frame: CGRect(x: 0, y: 82, width: 202, height: 44))
-
The duration of one rotation of the spinner.
Declaration
Swift
open var animationDuration = 0.3
-
A shared instance for convenience.
Declaration
Swift
open static let sharedView = DefaultProgressView()
-
Presents the activity indicator with the given message.
Declaration
Swift
open func show(withMessage message: String)
Parameters
message
The message to present.
-
Hides the activity indicator.
Declaration
Swift
open func hide()