func setView() {
[emailView, passwordView].forEach { (view) in
if let view = view {
view.layer.borderWidth = 2
view.layer.borderColor = hexStringToUIColor(hex: "E9E9E9").cgColor
view.layer.cornerRadius = view.layer.frame.height/3
}
}
}
Preview:
downloadDownload PNG
downloadDownload JPEG
downloadDownload SVG
Tip: You can change the style, width & colours of the snippet with the inspect tool before clicking Download!
Click to optimize width for Twitter