Created
May 15, 2023 04:27
-
-
Save guntidheerajkumar/a85afd94711987a5c3447b6d00f661b5 to your computer and use it in GitHub Desktop.
iOS View Specific corner radius
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| view.Layer.MaskedCorners = (CoreAnimation.CACornerMask)3; | |
| view.Layer.CornerRadius = 15f; | |
| 0: no rounded corners | |
| 1: top left | |
| 2: top right | |
| 3: top left & right (both top corners) | |
| 4: bottom left | |
| 5: top & bottom left (both left corners) | |
| 6: top right & bottom left | |
| 7: top left & right, bottom left (all corners except bottom right) | |
| 8: bottom right | |
| 9: top left, bottom right | |
| 10: top & bottom right (both right corners) | |
| 11: both top corners, bottom right (all corners except bottom left) | |
| 12: bottom left & right (both bottom corners) | |
| 13: bottom left & right, top left (all corners except top right) | |
| 14: bottom left & right, top right (all corners except top left) | |
| 15: all corners rounded |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment