Skip to content

Instantly share code, notes, and snippets.

@Laeyoung
Laeyoung / uitextfieldwithpadding
Last active Jul 20, 2018 — forked from lawreyios/uitextfieldwithpadding
Add padding to UITextField - Swift 3.0
View uitextfieldwithpadding
class CustomSearchTextField: UITextField {
required init?(coder aDecoder: NSCoder) {
super.init(coder: aDecoder)
}
override func textRect(forBounds bounds: CGRect) -> CGRect {
return UIEdgeInsetsInsetRect(bounds, UIEdgeInsetsMake(0, 15, 0, 15))
}
override func editingRect(forBounds bounds: CGRect) -> CGRect {
@Laeyoung
Laeyoung / alleys
Last active Jan 5, 2016
Alleys Player Sample URL
View alleys
[Sample](http://alleys.co/player?id=Rv8CaJQ3WI8)
You can’t perform that action at this time.