I am trying to create an ASDisplayNode with rounded corners whilst setting its background colour. However, the corners never appear rounded. Why is this? My code:
final class MyNode: ASDisplayNode {
init() {
self.backgroundColor = .red
self.clipsToBounds = true
self.cornerRadius = 10
self.cornerRoundingType = .precomposited
}
...
}
This just creates a rectangle that doesn't have rounded corners...
remove this line
I am not really sure how the cornerRoundingType precomposited work too
In the code documentation said
there is someone asking about that in the repo issue too