You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am trying to create one function for different types and requests.
In your call a Many.self when ist's an Array of objects.
How can i realism to get the Object, so the NSManagedObject out of the variables?
So I end up with something like:
Alamofire.request(url)
.responseInsert(context: context, type: Many<VARIABLE>.self) { response in
switch response.result {
case let .success(user):
// The user object is already inserted in your context!
case .failure:
// handle error
}
}
The text was updated successfully, but these errors were encountered:
mariusschoenefeld
changed the title
trying to refactor the Request method
trying to refactor the request method
Jun 8, 2018
I am trying to create one function for different types and requests.
In your call a Many.self when ist's an Array of objects.
How can i realism to get the Object, so the NSManagedObject out of the variables?
So I end up with something like:
The text was updated successfully, but these errors were encountered: