In Swift I want to extract the Prefix until space and Suffix until space both separated by ": ". If white space between strings it should be next line. Ex:
Apple: Fruit Tomato: Vegetable Iron: Material
Result needed as
Apple: Fruit
Tomato: Vegetable
Iron: Material
Any help please