//
//  FFAlertLabel.swift
//  FFAlert
//
//  Created by FFIB on 2017/11/14.
//  Copyright © 2017年 FFIB. All rights reserved.
//

import UIKit

class FFAlertLabel: UILabel {

    override var attributedText: NSAttributedString? {
        didSet {
            sizeToFit()
        }
    }

    init() {
        super.init(frame: CGRect.zero)
        self.textAlignment = .center
        self.numberOfLines = 0
        self.translatesAutoresizingMaskIntoConstraints = false
    }

    required init?(coder aDecoder: NSCoder) {
        super.init(coder: aDecoder)
    }
}