keygx / GradientCircularProgress

Customizable progress indicator library in Swift
MIT License
543 stars 84 forks source link

embed inside a view #7

Closed vyatri closed 8 years ago

vyatri commented 8 years ago

how can i embed the circle inside a view? Sorry for my poor English

keygx commented 8 years ago

Hi vyatri

This library draws arc. It is not possible to fill the circle.

odedharth commented 8 years ago

@keygx I think he meant if its possible to embed it inside a uiview instead of overlaying the entire screen. I would also be interested in this open :smile:

keygx commented 8 years ago

Hi odedharth

Do you want to "addSubView(progress)" ? I cannot provide it now. However, I think about it.

odedharth commented 8 years ago

yes I think it could be very useful.

keygx commented 8 years ago

Added support for Embed in UIView at Ver.3.2.0.

let progress = GradientCircularProgress()

let progressView = progress.show(frame: rect, message: "Loading...", style: MyStyle())
view.addSubview(progressView!)

progress.dismiss(progress: progressView!)

Please try it.