Skip to content

Instantly share code, notes, and snippets.

@mediym41
mediym41 / KeyPathEqualizer.swift
Last active June 26, 2022 19:35
Easily compare two objects by using KeyPath
final class KeyPathEqualizer<Object> {
private let lhs: Object
private let rhs: Object
private var areEqual: Bool = true
init(lhs: Object, rhs: Object) {
self.lhs = lhs
self.rhs = rhs
}