mirror of
https://github.com/Finb/Bark.git
synced 2025-12-08 21:36:01 +00:00
16 lines
365 B
Swift
16 lines
365 B
Swift
//
|
|
// UIFont+Extension.swift
|
|
// Bark
|
|
//
|
|
// Created by huangfeng on 10/25/24.
|
|
// Copyright © 2024 Fin. All rights reserved.
|
|
//
|
|
|
|
import UIKit
|
|
|
|
extension UIFont {
|
|
class func preferredFont(ofSize size: CGFloat, weight: Weight = .regular) -> UIFont {
|
|
return UIFontMetrics.default.scaledFont(for: UIFont.systemFont(ofSize: size, weight: weight))
|
|
}
|
|
}
|