Skip to content

Instantly share code, notes, and snippets.

View hadanischal's full-sized avatar
🧑‍💻
Focusing

Nischal Hada hadanischal

🧑‍💻
Focusing
View GitHub Profile
@hadanischal
hadanischal / UIFont+Extensions.swift
Created January 16, 2019 06:06 — forked from imkevinxu/UIFont+Extensions.swift
iOS UIFont Sensible Defaults
import Foundation
extension UIFont {
class func systemFontOfSize(size: CGFloat) -> UIFont {
return UIFont(name: "HelveticaNeue", size: size)!
}
class func italicSystemFontOfSize(size: CGFloat) -> UIFont {
return UIFont(name: "HelveticaNeue-Italic", size: size)!
}