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
UIFont.familyNames.sorted().forEach{ familyName in | |
print("*** \(familyName) ***") | |
UIFont.fontNames(forFamilyName: familyName).forEach { fontName in | |
print("\(fontName)") | |
} | |
print("---------------------") | |
} | |
/* | |
*** Academy Engraved LET *** |
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
extension String { | |
/// Checks if the `String` is a valid email address. | |
/// ```` | |
/// // Example | |
/// "[email protected]".isValidEmailAddress() // true | |
/// "name(at)email(dot)com".isValidEmailAddress() // false | |
/// "name@email".isValidEmailAddress() // false | |
/// "[email protected]".isValidEmailAddress() // false | |
/// "name.com".isValidEmailAddress() // false |