Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add
state
and stateNullable
helpers for KotlinBase
When Kotlin/Native exports to Objective-C, all custom classes share a common `KotlinBase` interface (which implements `NSObject` and has `isEqual` available). We take advantage of this in order to add `state` and `stateNullable` helpers without requiring downstream users to define their own `equals` and `mappers`. This simplification makes the library slightly easier to use and perhaps a little more intuitive. Instead of forcing callers through `state(_:equals:mapper:)` for custom types, it's possible to just use the simpler `state(_)` helper.
- Loading branch information