thanks for your response it's working but now I got a list of objects an structure not conform to hashable so I can't create a forEach loop to Show these on screen xD
Here is my loop
ForEach(data.stats, id: .self) { stat in
Text(stat.name)
}
And error is : Generic struct 'ForEach' requires that 'PlayerStats' conform to 'Hashable'
Topic:
UI Frameworks
SubTopic:
SwiftUI
Tags: