I added the string objects inside the mutablearray :
let photoArray: NSMutableArray = []
for photo in media {
photoArray.add("\(photo.fileName ?? "")")
}
Then I get an output like:
<__NSSingleObjectArrayI 0x1c02069e0>(
(
"Car",
"Dog",
"Tree"
)
)
But I want this :
(
"Car",
"Dog",
"Tree"
)
Is there any way to get the output like that?