This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
*** Academy Engraved LET *** | |
AcademyEngravedLetPlain | |
--------------------- | |
*** Al Nile *** | |
AlNile | |
AlNile-Bold | |
--------------------- | |
*** American Typewriter *** | |
AmericanTypewriter |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
100% — FF | |
99% — FC | |
98% — FA | |
97% — F7 | |
96% — F5 | |
95% — F2 | |
94% — F0 | |
93% — ED | |
92% — EB |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
let formatter = NSDateFormatter() | |
formatter.dateFormat = "y" //A year with at least 1 digit. | |
formatter.dateFormat = "yy" //A year with 2 digits. If less, it is padded with a zero. It will be truncated to the tens digit if larger. | |
formatter.dateFormat = "yyyy" //A year with at least 3 digits. If less, it is padded with zeros. | |
formatter.dateFormat = "yyyy" //A year with at least 3 digits. If less, it is padded with zeros. | |
formatter.dateFormat = "M" //A year with at least 1 digits. | |
formatter.dateFormat = "MM" //A month with at least 2 digits. If less, it is padded with zeros. | |
formatter.dateFormat = "MMM" //Three letter month abbreviation. | |
formatter.dateFormat = "MMMM" //Full name of month. | |
formatter.dateFormat = "MMMMM" //One letter month abbreviation. Not unique, January, June, and July are all “J”. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import Foundation | |
import UIKit | |
enum DeviceMaxWidth: Float { | |
case iPhone4 = 480.0 | |
case iPhone5 = 568.0 | |
case iPhone6 = 667.0 | |
case iPhone6Plus = 736.0 | |
case iPad = 1024.0 | |
case iPadPro = 1366.0 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
for familyName in UIFont.familyNames as [String] { | |
print("\(familyName)") | |
for fontName in UIFont.fontNames(forFamilyName: familyName) as [String] { | |
print("\tFont: \(fontName)") | |
} | |
} |