I'm wanting to create an app for iOS. In this app you input multiple commands into the input text view name myTextView. Then when you click generate all of those commands are then turned into one long command. So basically i need a way to separate the input text into an array. The string will be separated when there is a line break. This way I can put things like brackets and other things into the string. For example if I input:
say hi
say bye
that would be one string but would be turned into [say hi,time:10s] [say bye,time:10s]