tristanhimmelman / AlamofireObjectMapper

An Alamofire extension which converts JSON response data into swift objects using ObjectMapper
MIT License
2.66k stars 474 forks source link

[Question] How can I concatenate two variables? #245

Closed haroldogtf closed 5 years ago

haroldogtf commented 6 years ago

How can I concatenate two variables?

Example: url <- map ["path"] + map ["extension"]

tiwari1amrit commented 6 years ago

first fetch two object on different variables and then add it. You can do like this:-

var path : String? var extension : String? path <- map ["path"] path <- map ["extension"] url = path! + extension!

haroldogtf commented 6 years ago

Thank you!