-
Notifications
You must be signed in to change notification settings - Fork 81
Blocking progress view #30
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: master
Are you sure you want to change the base?
Conversation
|
||
- parameter text: Text to be shown on overlay | ||
|
||
- returns: Created overlay |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
But it returns UIProgressView
!
|
||
- returns: Created overlay | ||
*/ | ||
open class func showBlockingProgressOverlay(_ text: String) -> UIProgressView { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please check how showProgressOverlay
works. It returns UIView
, if programmer needs to update progress, he should use updateOverlayProgress
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I missed the updateOverlayProgress part. I will make an update to return a UIView and use updateOverlayProgress accordingly.
|
||
accessoryView.frame = accessoryView.frame.offsetBy(dx: (actualSize.width - accessoryView.frame.size.width)/2, dy: padding) | ||
|
||
label.center.x = accessoryView.center.x |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Will this work with multi-line label?
@zmears thanks for contribution! Please check my comments. |
Create a blocking overlay with direct access to a progress view.