//
//  UIFont+Ext.swift
//  HackathonWallet
//
//  Created by Nino Zhang on 2022/3/31.
//

import UIKit

extension UIFont {
    class func systemRound(ofSize size: CGFloat, weight: UIFont.Weight = .regular) -> UIFont {
        if let descriptor = UIFont.systemFont(ofSize: size, weight: weight).fontDescriptor.withDesign(.rounded) {
            return UIFont(descriptor: descriptor, size: size)
        } else {
            return UIFont.systemFont(ofSize: size, weight: weight)
        }
    }

}
