Exclusion paths allow you to wrap text around a particular view. Most text editors provide support for this feature, and with TextKit, you can now do it in your applications. With TextKit, you can wrap your text around both complex and simple paths. For instance, you may want to wrap your text around a simple circle or around a more complex shape such as a butterfly image. You may want to use this feature when displaying text with images, or even views that provide relevant details related to the text.
Let's assume you have a circular UIView that contains data related to a piece of text. We want to center the circular UIImageView and wrap the text around it on all sides. To test this, let's add a text view to our storyboard and wrap some filler text around our food image. Switch to Main.Storyboard and select the FoodDetailViewController
class. Drag over a text view and resize it to be bigger than the food image. Additionally, make sure that the text view is beneath the image...