AlamofireObjectMapper
AlamofireObjectMapper copied to clipboard
SwiftPM support
Hi, With Swift 3 it would also be nice to add support for SwiftPM
Articles about SwiftPM:
- An Introduction to the Swift Package Manager
- Swift Dependency Management for iOS
- Getting Started with Swift Package Manager (SwiftPM)
- Swift.org: Package Manager
On your README.md add on top and add section for the installation with SwiftPM.
Update about articles:
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!
@tristanhimmelman could you add SPM support for this repo?