SimonFairbairn/SwiftyMarkdown

Crash with emoji on iOS 12

Closed this issue · 1 comments

Issue

When adding an emoji to markdown file, the app crashes. This seems to only happen on iOS 12. On iOS 13, I do not get a crash.

This is the string I use in my markdown file.

 🕵️‍♂️ This is a test with an emoji. Soemtimes this crashes. [Links](https://espn.com/)

crash

How to reproduce

Create a markdown file with the string above. Launch the app and try to display the file. App will crash on iOS 12.

Devices

I tested with these devices:

  • iPhone 8 Plus - 12.0 (Simulator)
  • iPhone XS Max - 12.0 (Simulator)

Awesome fix!