tristanhimmelman / AlamofireObjectMapper

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

SwiftPM support #120

Open TofPlay opened 8 years ago

TofPlay commented 8 years ago

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 commented 7 years ago

Update about articles:

TomasHubelbauer commented 4 years ago

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!

NicolasEymael commented 5 months ago

@tristanhimmelman could you add SPM support for this repo?