Eliminate Xcode warnings on generated code
atticus183 opened this issue · 3 comments
atticus183 commented
It seems 0.5.0 introduced the following Xcode warning:
Forced cast from 'Class.dataclass1' to 'Class.dataclass2' always succeeds
I propose removing the bang operator from the SealedToSwiftEnumFeature.kt
file, specifically inside the buildSealedProperty
method.
I will happily fork and create the PR myself 👍🏼.
Alex009 commented
will be released in 0.6.0
sebj commented
I've just started looking at this library, but I think I'm running into this issue even though it's supposed to be fixed in 0.6.0. I'm seeing 125 Xcode warnings inside my generated Swift file for forced cast from '..' to '..' always succeeds, did you mean to use 'as'?
.
My environment:
- KSwift version 0.6.0
- Xcode 13.4.1 (13F100)
- Targeting iOS 14.1+
- Manually integrating the generated Swift files rather than using Cocoapods
hoc081098 commented
Version 0.6.0 still have this issue