Hi,
I'm not quite sure what you mean by "pass out of loop". The "row" variable is obviously only available inside the closure because it gets reused by the loop. But you can declare a
swift
@State var name: Bool = false (or any other type)
and modify that using a button inside the loop.
Take care,
David
Topic:
UI Frameworks
SubTopic:
SwiftUI
Tags: