Skip to content

Comments

Blocking progress view#30

Open
zmears wants to merge 2 commits intopeterprokop:masterfrom
zmears:blockingProgressView
Open

Blocking progress view#30
zmears wants to merge 2 commits intopeterprokop:masterfrom
zmears:blockingProgressView

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