What is the more elegant way to remove all characters after specific character in the String object in Swift

后端 未结 4 865
既然无缘
既然无缘 2021-02-01 15:06

What is the more elegant way to remove all characters after specific character in the String object in Swift?

Suppose that I have the following string:

4条回答
提交回复
热议问题