[Swift]UIButton Extension #1

UIButton Extension #1

var titleText:String{
    get{
        if let titleLabel:UILabel = self.titleLabel {
            if let titleLabelText:String = titleLabel.text {
                return titleLabelText
            }
        }
        return ""
    }
    set{
        self.setTitle(newValue, forState: .Normal)
        self.setTitle(newValue, forState: .Highlighted)
        self.setTitle(newValue, forState: .Selected)
        self.setTitle(newValue, forState: .Reserved)
        self.setTitle(newValue, forState: .Disabled)
    }
}