i did something like this
And added the corner radius under
Keypath | Type | Value
layer.cornerRadius | Number | 15
but the question is i want the rounded edges only on the top. Any idea how to implement it..?
Code Block extension UIView { @IBInspectable var cornerRadius: CGFloat { get { return layer.cornerRadius } set { layer.cornerRadius = newValue layer.masksToBounds = newValue > 0 } } }
And added the corner radius under
Keypath | Type | Value
layer.cornerRadius | Number | 15
but the question is i want the rounded edges only on the top. Any idea how to implement it..?