Why Nostr? What is Njump?
2023-06-13 10:03:57
in reply to

Nick Lockwood on Nostr: npub16sevf…lwex2 npub1canhd…q0fm9 I think the preferred pattern is for the single ...

I think the preferred pattern is for the single action closure to have an enum parameter indicating the action type, e.g.

enum ListAction {
case select(Index)
case delete(Index)
}

struct ListView: View {
var action: (ListAction) -> Void

}
Author Public Key
npub13uhpwaxxvg6nfeuhsgfst89f6eexdgjlhfk8wtmctck0c42wyafsere604