// // UIFont+SPAdd.swift // ShortPlay // // Created by 曾觉新 on 2025/4/8. // import UIKit extension UIFont { static func fontRegular(ofSize: CGFloat) -> UIFont { return .systemFont(ofSize: ofSize, weight: .regular) } static func fontMedium(ofSize: CGFloat) -> UIFont { return .systemFont(ofSize: ofSize, weight: .medium) } static func fontBold(ofSize: CGFloat) -> UIFont { return .systemFont(ofSize: ofSize, weight: .bold) } }