The getValue function returns two different types in the two classes, Thanks for showing your code. And your code revealed that if you define a combined entity, your code all things would be solved.
Topic:
UI Frameworks
SubTopic:
SwiftUI
Tags: