Add the greenView inside cell's contentView and round it with cornerRadius
and inside it add the blackView without any rounding as the superview will do the job only make sure
greenView.clipsToBounds = true // can be set in IB
greenView.layer.cornerRadius = 7
You can also add these 2 views below each other and round top corners of the top and bottom ones of the bottom view with https://www.hackingwithswift.com/example-code/calayer/how-to-round-only-specific-corners-using-maskedcorners
Collected from the Internet
Please contact [email protected] to delete if infringement.
Comments