Very nice article! But I think you should replace:

with this:

And add this extension:

This will accurately calculate the height of the String instead of a guesstimate based on the length of it. Anyways, great article, helped me a lot!

WWDC21 Scholar. I like to read manga and write about Swift. Check out my app, Find — look for text in real life, with outrageous speed. getfind.app

WWDC21 Scholar. I like to read manga and write about Swift. Check out my app, Find — look for text in real life, with outrageous speed. getfind.app