Last active
August 21, 2018 13:35
-
-
Save Denismih/3f25f8a569674e48b4467e062bde2027 to your computer and use it in GitHub Desktop.
[setBottomBorder to UITextField] #ios #UI #UITextField
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
extension UITextField { | |
func setBottomBorder() { | |
self.borderStyle = .none | |
self.layer.backgroundColor = UIColor.white.cgColor | |
self.layer.masksToBounds = false | |
self.layer.shadowColor = UIColor.gray.cgColor | |
self.layer.shadowOffset = CGSize(width: 0.0, height: 1.0) | |
self.layer.shadowOpacity = 1.0 | |
self.layer.shadowRadius = 0.0 | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment