You need a Swift expert to understand that. You need, somehow, to avoid allocating memory for and copying strings for every line.
Or alternatively, create a regex you can apply to the entire input, which matches just the bits you want but captures the entire line. Then you wouldn't need to split.
Topic:
Programming Languages
SubTopic:
Swift
Tags: