You will have to create another state variable unfortunately, holding indexSet for you.
Topic:
UI Frameworks
SubTopic:
SwiftUI
Tags: