wickwirew / Runtime

A Swift Runtime library for viewing type info, and the dynamic getting and setting of properties.
MIT License
1.08k stars 94 forks source link

Is it possible to check two struct is equal by using Runtime? #104

Closed starFelix closed 2 years ago

starFelix commented 2 years ago

maybe there is a struct like below

struct Test {
    let a = 0
}

As we all know, this struct is not equatable, but the property a is equatable. Is possible to check isEqual by properties?