Skip to content

Instantly share code, notes, and snippets.

View AhmedAbuelmagd's full-sized avatar
🎯
Focusing

Ahmed Abuelmagd AhmedAbuelmagd

🎯
Focusing
View GitHub Profile
@AhmedAbuelmagd
AhmedAbuelmagd / Fonts.swift
Created July 10, 2019 15:57 — forked from feighter09/Fonts.swift
Set global font for iOS app in one place
// MARK: - Swizzling
extension UIFont {
class var defaultFontFamily: String { return "Georgia" }
override public class func initialize()
{
if self == UIFont.self {
swizzleSystemFont()
}
}