Replies: 7 comments 2 replies
|
keyedCodable 对继承的场景采用的是组合的方案,而非继承。KeyedCodable #8 |
0 replies
|
他的方案很好实现。我正在开发支持这个功能。 是不是用协议代替父类,让子类遵循该协议(自然会有父类的属性)达到继承的目的。 这样是不是更好一点? |
1 reply
|
有位老哥用宏极大的简化了 |
0 replies
|
SmartCodable V5.0+ 已支持继承 |
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment



Uh oh!
There was an error while loading. Please reload this page.
面对使用者的需求,我们不得不考虑如何处理继承关系。 截止到现在,基于Codable的解析方案,只有CodableWrapper支持了继承的能力。 欢迎提供有用的线索。
All reactions