I build a webservis that requesting image url from the database. And I want to show it on the swift. But I'm gettig this error on the var photo line:
Cannot convert value of type 'subSequence' (aka 'String.CharacterView') to type 'String' in collection
let requestResponse = self.sendToServer(postUrl: "localhost",data:"abc")
let Seperated = requestResponse.characters.split(separator: " ")
var photo = Seperated[0] as String
let imageURL = URL(string: photo)
if let imageData = try? Data(contentsOf: imageURL!) {
...
}