import UIKit

class SCUnderlineTextField: SCTextField {
    required init?(coder aDecoder: NSCoder) {
        super.init(coder: aDecoder)
        self.font = SCFonts.largeSizeFont(SCFonts.FontType.Regular)
    }

    override func layoutSubviews() {
        super.layoutSubviews()

        let bottomBorder = CALayer()
        bottomBorder.frame = CGRect(x: 0.0, y: self.frame.size.height - 1.0, width: self.frame.size.width, height: 1.0)
        bottomBorder.backgroundColor = UIColor.spycodesGrayColor().CGColor

        self.layer.addSublayer(bottomBorder)
    }
}

import UIKit

class SCUnderlineTextField: SCTextField {
    required init?(coder aDecoder: NSCoder) {
        super.init(coder: aDecoder)
        self.font = SCFonts.largeSizeFont(SCFonts.FontType.Regular)
    }

    override func layoutSubviews() {
        super.layoutSubviews()

        let bottomBorder = CALayer()
        bottomBorder.frame = CGRect(
            x: 0.0,
            y: self.frame.size.height - 1.0,
            width: self.frame.size.width,
            height: 1.0
        )
        bottomBorder.backgroundColor = UIColor.spycodesGrayColor().CGColor

        self.layer.addSublayer(bottomBorder)
    }
}

Improve code readability in utilities
Improve code readability in utilities
