AlamofireObjectMapper icon indicating copy to clipboard operation
AlamofireObjectMapper copied to clipboard

SwiftPM support

Open TofPlay opened this issue 9 years ago • 4 comments

Hi, With Swift 3 it would also be nice to add support for SwiftPM

Articles about SwiftPM:

On your README.md add SwiftPM Compatible on top and add section for the installation with SwiftPM.

TofPlay avatar Jul 06 '16 06:07 TofPlay

For anyone who is just looking to parse JSON responses to object instances (seemingly a bigger ask than it feels like it should be in the Swift ecosystem 🤔) and landed here from Google: Alamofire 5 supports responseDecodable (formerly known as requestJSONDecodable) now. Example:

AF.request("https://api.com/items").responseDecodable(of: [Item].self) { response in
    self.items = response.value!
}

So you might not even need this package anymore. That said, I still believe SPM support would be a great feature!

TomasHubelbauer avatar Mar 14 '20 11:03 TomasHubelbauer

@tristanhimmelman could you add SPM support for this repo?

NicolasEymael avatar Mar 19 '24 14:03 NicolasEymael