[ad_1]
Sizzling on the heels of the earlier upkeep launch, which was solely 3 Months in the past, this one was required as a result of Apple now not permits Apps to include references to UIWebView.
The primary change was that from each DTCoreText in addition to, beforehand, DTFoundation we eliminated some helper strategies for UIWebView. A view utilized by the demo to embed YouTube movies was moved to the Demo app. There was a bug in DTImageTextAttachment which brought about some pictures to be sq..
There was a lacking macro which prevented compiling with a extremely previous deployment goal. That was additionally addressed.
There’s a recognized concern in iOS 13 while you attempt to use dynamic kind fonts when parsing HTML. In the event you attempt to set a dynamic kind font’s title or household through parsing possibility, you get this warning:
CoreText efficiency word: Consumer referred to as CTFontCreateWithName() utilizing title ".SFUI-Common" and received font with PostScript title "TimesNewRomanPSMT". For greatest efficiency, solely use PostScript names when calling this API.
Properly, the issue is that we now have no API that will let you set the font occasion itself on DTCoreText, however solely to set a font or household title. That is transferred to an inner font descriptor which is handed right down to sub-tags, being modified as wanted. The primary downside is that if you happen to get the font descriptor for a dynamic font, there are different attributes set on the descriptor that are vital for correct dynamic level measurement and font face decision.
What’s wanted here’s a option to set a font itself – not simply its title – as an possibility and to create an acceptable font descriptor for it that preserves the dynamic kind functionality. If any individual had been to sponsor the creation of this performance, I’d be comfortable so as to add it. You may electronic mail me at oliver@cocoanetics.com to inquire. In fact, pull requests are welcome as nicely.
The replace is tagged on GitHub and accessible through CocoaPods.
Associated
Classes: Updates
[ad_2]
