Possibility to add rounded corners to skeleton views
virtualrapha opened this issue · 5 comments
virtualrapha commented
Hi,
in the README, all screenshots show skeleton views with sharp corners. Is it possible to provide a corder radius so that the grey views have rounded corners?
manuel21 commented
This featured will be awesome!
Juanpe commented
Hi @raphaklr and @manuel21, actually the round corners are allowed. If you view has corner the skeleton will draw with corner too.
For example, with this code:
@IBOutlet weak var avatarImage: UIImageView! {
didSet {
avatarImage.layer.cornerRadius = avatarImage.frame.width/2
avatarImage.layer.masksToBounds = true
}
}
virtualrapha commented
@Juanpe thanks for the answer. But is it possible to have rounded corners in the skeleton view, while the actual views have sharp edges? I'm looking for something like this:
Juanpe commented
Mm...not, today it's not possible. I'm going to add this feature in the backlog, ok?
Thanks!
Juanpe commented
Closed this issue, corner radius are available since version 1.2.1