This file contains 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
{:multipart, [ | |
{:file, path, {"form-data", [{"name", "form_field_name"}, {"filename", Path.basename(path)}]}, | |
[{"Content-Type", MIME.from_path(path)} | |
], | |
[ | |
{:file, path, {"form-data", [{"name", "another_name"}, {"filename", Path.basename(another_path)}]}, | |
[{"Content-Type", MIME.from_path(another_path)} | |
] | |
} |
This file contains 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 UIFont { | |
static func printFontNames() { | |
for familyName in UIFont.familyNames() { | |
print("Family name: \(familyName)") | |
for fontName in UIFont.fontNamesForFamilyName(familyName) { | |
print("Font name: \(fontName)") | |
} | |
} | |
} | |
} |