如何将 Api 响应转换为数组 Swift 5(连接)

How to convert Api response into Array Swift 5 (concatenate)

/email5600@gmail.com_conemp.pdf,@,uploadedFiles/email5600@gmail.com_p3037c.pdf,@,profilepics/mj.tm@hotmail.com.jpeg

如何在 Swift

中删除数组之间的@

要在数组中拆分字符串:

let str = "/email5600@gmail.com_conemp.pdf,@,uploadedFiles/email5600@gmail.com_p3037c.pdf,@,profilepics/mj.tm@hotmail.com.jpeg"
let result = str.split(separator: ",@,")