 }
 
 private extension ElloLabel {
-    func attributes(title: String, color: UIColor) -> [NSObject : AnyObject] {
+    func attributes(title: String, color: UIColor, alignment: NSTextAlignment) -> [NSObject : AnyObject] {
         let paragraphStyle = NSMutableParagraphStyle()
         paragraphStyle.lineSpacing = 10
+        paragraphStyle.alignment = alignment
 
         var attributedString = NSMutableAttributedString(string: title)
         var range = NSRange(location: 0, length: count(title))

}

public extension ElloLabel {
    func setLabelText(title: String, color: UIColor = UIColor.whiteColor()) {
        var attributedString = NSMutableAttributedString(string: title)
        var range = NSRange(location: 0, length: count(title))
        attributedString.addAttributes(attributes(title, color: color), range: range)
        self.attributedText = attributedString
    }


}

public class ElloToggleLabel: ElloLabel {
    public override func setLabelText(title: String, color: UIColor = UIColor.greyA(), alignment: NSTextAlignment = .Left) {
        super.setLabelText(title, color: color, alignment: alignment)
    }
}

public class ElloErrorLabel: ElloLabel {
    public override func setLabelText(title: String, color: UIColor = UIColor.redColor(), alignment: NSTextAlignment = .Left) {
        super.setLabelText(title, color: color, alignment: alignment)
    }
}
