add buton border swift
button.layer.borderWidth = 1
button.layer.borderColor = UIColor.black.cgColor
add buton border swift
button.layer.borderWidth = 1
button.layer.borderColor = UIColor.black.cgColor
add top corner radius swift
extension UIView {
func roundCorners(corners: UIRectCorner, radius: CGFloat) {
let path = UIBezierPath(roundedRect: bounds, byRoundingCorners: corners, cornerRadii: CGSize(width: radius, height: radius))
let mask = CAShapeLayer()
mask.path = path.cgPath
layer.mask = mask
}
}
add corner radius to uiview swift
view.layer.cornerRadius = 25
view.layer.masksToBounds = true
round courners of uibutton
yourButton.layer.cornerRadius = 10; // this value vary as per your desire
yourButton.clipsToBounds = YES;
Copyright © 2021 Codeinu
Forgot your account's password or having trouble logging into your Account? Don't worry, we'll help you to get back your account. Enter your email address and we'll send you a recovery link to reset your password. If you are experiencing problems resetting your password contact us