Comments (4)
I've just tried
override func viewDidLoad() {
super.viewDidLoad()
gradientProgressBar.layer.cornerRadius = 8.0
gradientProgressBar.layer.masksToBounds = true
}
in the example application and it seems to work. Maybe you're missing masksToBounds
?
from gradientprogressbar.
ok it sounds there is some problem with my XCode, I've applied the code you posted, it affects only the track bar but not the progress bar itself
from gradientprogressbar.
Is your cornerRadius
maybe greater than your progress-bar height?
This is how it looks in my simulator with height: 16.0
, cornerRadius: 8.0
:
This is how it looks in my simulator with height: 8.0
, cornerRadius: 4.0
:
from gradientprogressbar.
@murad1981 Can I close this issue?
from gradientprogressbar.
Related Issues (11)
- Animation Issue HOT 8
- init(dynamicProvider:)' is only available in tvOS 13.0 or newer HOT 3
- Timing parameter for render a new color set HOT 6
- set cornerRadius for track layer HOT 2
- i got below error. HOT 1
- Run Failed HOT 2
- Type 'CAMediaTimingFunctionName' (aka 'NSString') has no member 'default' HOT 2
- GradientProgressBar couldn't be subclassed HOT 4
- RFC: Add value, maxValue and minValue property HOT 2
- Cannot invoke initializer for type 'UIColor' HOT 5
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from gradientprogressbar.