sergdort / CleanArchitectureRxSwift

Example of Clean Architecture of iOS app using RxSwift
MIT License
3.91k stars 495 forks source link

Why Post+Mapping.swift uses NSObject #58

Open ninjandroid opened 6 years ago

ninjandroid commented 6 years ago

Why this project use both NSObject / NSObject and then in Domain uses Codeable ??

https://github.com/sergdort/CleanArchitectureRxSwift/blob/master/NetworkPlatform/Entries/Post%2BMapping.swift

sergdort commented 6 years ago

Hi, @ninjandroid

Because there was no Decodable back at that time when I was implementing it ¯_(ツ)_/¯

So technically we could refactor it to use Decodable protocol instead of using NSCoding