saoudrizwan / Disk

Delightful framework for iOS to easily persist structs, images, and data
MIT License
3.08k stars 170 forks source link

Disk with Mapper #50

Closed aabanaag closed 5 years ago

aabanaag commented 5 years ago

Anyone tried using Mapper (https://github.com/lyft/mapper) with Disk? Basically the models should have Mappable protocol for using Mapper but whenever I add Codable beside Mappable I get an error "Type Model does not conform to protocol Decodable", "Type Model does not conform to protocol Encodable"

aabanaag commented 5 years ago

Fixed it by added codable protocol to all my structs. I have a nested struct and only added codable to my main struct.