Ad

Our DNA is written in Swift
Jump

DTCoreText 1.6.27

This is a maintenance release, after the previous one was more than a year old. There were a couple open pull requests which I merged.

Changes

  • Changed DTTextAttachment to be a subclass of NSTextAttachment to avoid some crashes.
  • Remove the checking of tiled layer in DTAttributedTextContentView.
  • Removed unneeded constant causing a warning
  • Added support for underline color
  • Added ability to pass in a UIFontDescriptor for DTHTMLAttributedStringBuilder

On the first change I think there might be some further work necessary to actually use the native sizing functions correctly. DTCoreText was started at a time when there was no NSTextAttachment on iOS (before iOS 7). Since we cannot even build for this platform any more for a few years, it was ok to make this change.

The last change got implemented to deal with an issue where Times New Roman would be used instead of San Francisco UI.

Many thanks to the contributors of pull requests!


Also published on Medium.


Tagged as:

Categories: Updates

10 Comments »

Trackbacks

  1. DTCoreText 1.6.27 | Cocoanetics
  2. DTCoreText 1.6.27 | Cocoanetics {Updated 2022}
  3. DTCoreText 1.6.27 | Cocoanetics - Technology
  4. DTCoreText 1.6.27 | Cocoanetics - Halakick
  5. DTCoreText 1.6.27 | Cocoanetics - Theopenlab
  6. DTCoreText 1.6.27 | Cocoanetics | Earth 365
  7. DTCoreText 1.6.27 | Cocoanetics | Tech Mastery
  8. DTCoreText 1.6.27 | Cocoanetics - TechNews
  9. DTCoreText 1.6.27 | Cocoanetics - ajnabiblog.com
  10. DTCoreText 1.6.27 | Cocoanetics - Newest Tech Trends

Leave a Comment