sean7512 / RestEssentials

Lightweight REST and JSON library for Swift.
MIT License
37 stars 12 forks source link

RestOptions cannot be constructed because it has no accessible initializers #1

Closed ThomsonIT closed 8 years ago

ThomsonIT commented 8 years ago

Hi,

i presumably found a bug with the RestOptions struct. It seems that with Swift 2.0 i cannot initialize the Struct in my on class as there is no init method found.

adding "public init() {}" to the end of the struct fixes the error. Pull request follows.

sean7512 commented 8 years ago

Thank you very much for the fix! I have merged into master and released 1.0.1 to cocoapods.

Enjoy!