Can not change color of Progress Bar #14
Comments
Hi. |
Yes. I have tried to change value of progessBarColor. |
Can you show some code examples? |
Sorry for the late reply. I am using below code. let progressBar: LinearProgressBar = { |
Did you set a frame of |
No. I just added programmatically upon the webView. import MaterialProgressBar let progressBar: LinearProgressBar = { @IBOutlet weak var webView: WKWebView! override func viewDidLoad() {
} I am just displaying progressBar on top of webView |
You should set a frame or add constraints to place a progress bar in view. You can also use // Start animating
showProgressBar()
// Stop animating
hideProgressBar() |
Ok. So i have added constraint to progressBar and it is showing at correct place with the custom color. And same with hideProgressBar() method, it's only hiding progressBar created by showProgressBar() method and not hiding my custom progressBar. I have checked in your demo example also. You can see, you have created only three progressBar, but its showing 4(blue one at top). And hide button is only hiding that blue progressBar not the other three in stackView. |
I think your issue is resolved and I can close it. Reopen this or create a new one if you have any other questions. |
Hi!
I am trying to change progress bar color to yellow.
But it still showing default blue color.
I have tried the code available in Demo project but it's not working.
Thank you.
The text was updated successfully, but these errors were encountered: