@ilhankorkmaz The letterpress effect needs additional graphics for the shadows and highlights that give the appearance of text pressed into paper. Those added graphics require extra graphics resources for display compared to the standard font.
All of you, great tutorial. Helped me understand this segment much better.
One question: Now that I understand the the features of Text Kit, can you point me in the direction of allowing the users to select these options, but as a smaller popup view, as Apple does, rather than asking them to insert characters?
Not necessarily asking how to do it, but pointing me in the right direction.
Thank you!
David
@xs6615 In short, you’d need to build a UI that shows the options. This could be a button bar with tapping each button linked to an action or a popup menu using a method like UIAlertController. When one of these is selected, you’d change the text using the calls from the tutorial to reflect the user’s request.
In the performReplacementsForRange method, the extendedRange variable is initialized and then its value is overwritten without reference it. It seems like the initial value isn’t necessary.