// // Fontable.swift // VDS // // Created by Matt Bruce on 8/3/22. // import Foundation import UIKit public protocol Fontable { var fontSize: FontSize { get set } var fontWeight: FontWeight { get set } var fontCategory: FontCategory { get set } } extension Fontable { var fontStyle: FontStyle? { return try? FontStyle.style(for: fontCategory, fontWeight: fontWeight, fontSize: fontSize) } var font: UIFont? { return fontStyle?.font } }