Christian Selig on Nostr: Lazy toot: how do I pass a Button as an initializer to another SwiftUI View? Say the ...
Lazy toot: how do I pass a Button as an initializer to another SwiftUI View? Say the ButtonHolderView can accept two Buttons: one optional and one required. If it helps, they're created via Button(intent: AppIntent, label: Label).
Published at
2023-08-23 19:30:57Event JSON
{
"id": "b49eadf0c81619f0197526aa2067a3cdac9251f6f1e8a234fdb8205690370466",
"pubkey": "de6adda4d139627ce8f9cf05ef27c7cd1de9895363e5f303667f761bec318716",
"created_at": 1692819057,
"kind": 1,
"tags": [
[
"proxy",
"https://mastodon.social/users/christianselig/statuses/110940589744549892",
"activitypub"
]
],
"content": "Lazy toot: how do I pass a Button as an initializer to another SwiftUI View? Say the ButtonHolderView can accept two Buttons: one optional and one required. If it helps, they're created via Button(intent: AppIntent, label: Label).",
"sig": "e992e8f440b5102cf47b94d3c0783d9ad387e0c5935fea78ef22c92b6845b2b1b6c62e989a71b21909612a2a0512a947e897c01fee858e465b454f6562837fa6"
}