I have an array of type [Text] that I'm trying to render using a ForEach, however it's telling me that Text needs to conform to Hashable or Identifiable. Is there a different way to accomplish this? I did try my hand at a Hashable implementation:
extension Text: Hashable {
public func hash(into hasher: inout Hasher) {
hasher.combine(self)
}
}
but this didn't work, unfortunately. I don't want to add the Text views because I want to control the spacing between them.
Textviews as you go.