Skip to content

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

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

zmears
Copy link

@zmears zmears commented Mar 12, 2017

Create a blocking overlay with direct access to a progress view.


- parameter text: Text to be shown on overlay

- returns: Created overlay
Copy link
Owner

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 {
Copy link
Owner

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

Copy link
Author

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
Copy link
Owner

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?

@peterprokop
Copy link
Owner

@zmears thanks for contribution! Please check my comments.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants