You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

25 lines
635 B

6 years ago
  1. //
  2. // TextFieldExtension.swift
  3. // GMERemittance
  4. //
  5. // Created by Sujal on 2/6/18.
  6. // Copyright © 2018 Gobal Money Express Co. Ltd. All rights reserved.
  7. //
  8. import UIKit
  9. class CustomTextField: UITextField {
  10. required init?(coder aDecoder: NSCoder){
  11. super.init(coder: aDecoder)
  12. }
  13. override func textRect(forBounds bounds: CGRect) -> CGRect {
  14. return CGRect(x: bounds.origin.x + 10, y: bounds.origin.y, width: bounds.size.width - 0, height: bounds.size.height - 0)
  15. }
  16. override func editingRect(forBounds bounds: CGRect) -> CGRect {
  17. return self.textRect(forBounds: bounds)
  18. }
  19. }