SimonFairbairn / SwiftyMarkdown

Converts Markdown files and strings into NSAttributedStrings with lots of customisation options.
MIT License
1.64k stars 275 forks source link

Added support for iOS 10 #116

Open maxoly opened 3 years ago

maxoly commented 3 years ago

Currently, the minimum deployment target is iOS 11. But, the only issue in using the library on iOS 10 is the UIFontMetric class that is not available in iOS 10.

This PR introduces an extension to the UIFontDescriptor class, used only on iOS 10, that mimics the behavior of the UIFontMetric class on iOS 10.