You cannot use List for this.
List for many relationships
However, you can achieve what you want by combining all your lines into one, separated by a character. You use it
func componentsSeparatedByString (_ separator: String) → [AnyObject]
to return your array.
source
share