I am trying to use the Lyft API with iOS 11 and Swift 4, and am receiving an error on the second line, which is
Overlapping accesses to \'urlComponen
I guess you need to set first to a local variable and then change it , try this:
var urlComponents = URLComponents(url: mutableURLRequest.url!, resolvingAgainstBaseURL: false) var localVariable = urlComponents urlComponents?.queryItems = (localVariable?.queryItems ?? []) + queryItems