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 } } }
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 } } }