// // UITextField+Extension.swift // HPlusFit // // Created by lemo. on 2019/10/19. // Copyright © 2019 lemo. All rights reserved. // import Foundation extension UITextField { func baseBorder() { layer.borderColor = kHexColor(0xE4E4E4).cgColor layer.borderWidth = 0.5 layer.cornerRadius = 3 } func basePlaceholder(str: String) { let str = NSAttributedString(string: str, attributes: [NSAttributedString.Key.foregroundColor: kHexColor(0x969696), NSAttributedString.Key.font: SystemLightFont(16)]) attributedPlaceholder = str } }