//
//  RoundLabelView.swift
//  Classroom
//
//  Created by XC on 2021/4/22.
//

import Foundation
import UIKit
import Core

class RoundLabelView: UILabel {
    
    override func layoutSubviews() {
        super.layoutSubviews()
        widthAnchor.constraint(greaterThanOrEqualToConstant: bounds.height).isActive = text?.isEmpty == false
        clipsToBounds = true
        rounded()
    }
}
