mirror of
https://github.com/Swiftgram/Telegram-iOS.git
synced 2025-08-28 00:20:19 +00:00
21 lines
593 B
Swift
21 lines
593 B
Swift
import Foundation
|
|
import UIKit
|
|
|
|
public struct Font {
|
|
public static func regular(size: CGFloat) -> UIFont {
|
|
if matchMinimumSystemVersion(9) {
|
|
return UIFont(name: ".SFUIDisplay-Regular", size: size)!
|
|
} else {
|
|
return UIFont(name: "HelveticaNeue", size: size)!
|
|
}
|
|
}
|
|
|
|
public static func medium(size: CGFloat) -> UIFont {
|
|
if matchMinimumSystemVersion(9) {
|
|
return UIFont(name: ".SFUIDisplay-Medium", size: size)!
|
|
} else {
|
|
return UIFont(name: "HelveticaNeue-Medium", size: size)!
|
|
}
|
|
}
|
|
}
|