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...