vds_ios/VDS/Protocols/Modelable.swift
Matt Bruce 9e2d5fff47 added Equality to Modelable
added AnyEquality to classes that have an a property with 'any'
added default implementation on shouldUpdateView() to check equality, this can be re-implemented in classes
removed all shouldUpdateView methods everywhere since above was done

Signed-off-by: Matt Bruce <matt.bruce@verizon.com>
2022-09-16 09:14:27 -05:00

19 lines
352 B
Swift

//
// Modelable.swift
// VDS
//
// Created by Matt Bruce on 8/5/22.
//
import Foundation
public protocol Modelable: Surfaceable, Disabling, Initable, Withable, Identifiable, Equatable, CustomDebugStringConvertible where ID == UUID {
}
extension Modelable {
public var debugDescription: String {
return "\(id.uuidString)"
}
}