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!

I like reading manga and writing about Swift. Check out my app, Find — search text in real life! apple.co/3jFUFvt

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store