MoviaBox/Thimra/Base/Extension/UIFont+SPAdd.swift
2025-04-21 14:30:28 +08:00

28 lines
621 B
Swift

//
// UIFont+SPAdd.swift
// Thimra
//
// 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)
}
static func fontLight(ofSize: CGFloat) -> UIFont {
return .systemFont(ofSize: ofSize, weight: .light)
}
}