i want to make custom UIView with dash lines like in attached image, its semi circle in left and right side just like in tickets. click to show image
make a function and give sides in param, left, right , top , bottom . so when user give side it make that side into semi circle or you can say half circle with all sides dashed border.
like this show image
enum CircleSide{
case left
case right
case top
case bottom
}
func makeCircle(sides: [CircleSide]) {
//make half circles on these sides.
}
call function like
makeCircle(sides: [.bottom,.top])
New contributor
developer check is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.