What is Nostr?
Nick Lockwood /
npub13uh…e604
2023-06-13 10:03:57
in reply to nevent1q…urfr

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

npub16sevfkt59gfel9e2hm3c4t2vtfkc2hgzus6xlnp4a5hlndku4fpsjlwex2 (npub16se…wex2) npub1canhdnyarz4thu7zgzz3hv3nw0al770etgjjawqukxuw82ceuz6qmq0fm9 (npub1can…0fm9) 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