// // AccountTextField.swift // MullvadVPN // // Created by pronebird on 20/03/2019. // Copyright © 2019 Amagicom AB. All rights reserved. // import UIKit @IBDesignable class AccountTextField: UITextField { override init(frame: CGRect) { super.init(frame: frame) setup() } required init?(coder aDecoder: NSCoder) { super.init(coder: aDecoder) setup() } private func setup() { backgroundColor = UIColor.clear } override func textRect(forBounds bounds: CGRect) -> CGRect { return bounds.insetBy(dx: 14, dy: 12) } override func editingRect(forBounds bounds: CGRect) -> CGRect { return textRect(forBounds: bounds) } }