SyncController
@MainActor
public class SyncController : BaseController
This view controller is to display the progress of the sync.
This view contains a progress bar, a title label, and a message label.
- The progress bar shows the current sync progress. Developer should use
progressBar.progressBar.progressto update the progress. - The title label has a default localized title “Sync In Progress”. Developer can use
titleLabel.textproperty to change the default title. - The message label has a default localized message “Please wait for the sync to complete to proceed to the application. It may take a few of seconds.”.
Developer can use
messageLabel.textto change the default message.
Also, there is a “Cancel” button on the navigation bar. Developer should set the onCancelHandler property to process user cancel action.
Theming
Supported fixed font UILabel class paths:
fdlFUIFeedbackScreen_SyncController_titleLabel
fdlFUIFeedbackScreen_SyncController_messageLabel
Supported fixed font UILabel properties:
font-size: (Size)
font-name: (Font Name)
font-color: (Color)
Supported progress bar class paths:
fdlFUIFeedbackScreen_SyncController_progressBar
Supported progress bar properties:
progress-tint-color: (Color)
track-tint-color: (Color)
Supported UIBarButtonItem class paths:
fdlFUIFeedbackScreen_SyncController_cancelButton
Supported UIBarButtonItem properties:
image: (Image Name)
background-tint-color: (Color)
-
The progress bar to show the sync progress.
Declaration
Swift
@MainActor public let progressBar: UIProgressView -
The “Cancel” button on the navigation bar.
This is a
FUIBarButtonIteminitialized as thecancelsystem item type.Declaration
Swift
@MainActor public let cancelButton: FUIBarButtonItem -
This handler is invoked when the cancel button is tapped.
Declaration
Swift
@MainActor public var onCancelHandler: ((UIViewController) -> Void)? -
This property indicates if the canel button is to be hidden or not.
The default is
false, which means not to hide the cancel button.Declaration
Swift
@MainActor public var hidesCancelButton: Bool