This library using TextKit to help you render the text, calculating size and truncate the string with constrained size you defined