AnderGoig / SwiftInstagram

Instagram API client written in Swift
https://git.io/vdNAn
MIT License
578 stars 81 forks source link

Value of type 'JSONDecoder' has no member 'keyDecodingStrategy' #33

Closed MuhammadNayabButt closed 6 years ago

MuhammadNayabButt commented 6 years ago

Getting syntax error let jsonDecoder = JSONDecoder() jsonDecoder.keyDecodingStrategy = .convertFromSnakeCase

Error : Value of type 'JSONDecoder' has no member 'keyDecodingStrategy'

Using Swift 4.0 and Xcode 9.2

AnderGoig commented 6 years ago

Hi @MuhammadNayabButt, you need Swift 4.1.

MuhammadNayabButt commented 6 years ago

@AnderGoig yes it would be better