lnd-demo-app/wallet/Utils/Fonts.swift
2023-06-08 09:36:06 +03:00

32 lines
601 B
Swift

//
// Fonts.swift
// wallet
//
// Created by Jason on 8/20/20.
// Copyright © 2020 Jason. All rights reserved.
//
import UIKit
public enum FontStyle {
case regular
case medium
case bold
var name: String {
switch self {
case .regular: return "SofiaProRegular"
case .medium: return "SofiaProMedium"
case .bold: return "SofiaProBold"
}
}
}
struct Fonts {
public static func sofiaPro(weight: FontStyle = .regular, _ size: Int = 16) -> UIFont {
return UIFont(name: weight.name, size: CGFloat(size))!
}
}