robb on Nostr: npub1p9kjc…m865w I'd use something like struct ButtonHolder<A: View, B: View> { var ...
npub1p9kjc5uauqdfphar82xmq573tf3hnh3mcugkw3t6mjg2y76xkd3sum865w (npub1p9k…865w) I'd use something like
struct ButtonHolder<A: View, B: View> {
var a: A
var b: B
init(a: A, b: B) {
self.a = a
self.b = b
}
init(a: A) where B == EmptyView {
self.a = a
self.b = EmptyView()
}
}
struct ButtonHolder<A: View, B: View> {
var a: A
var b: B
init(a: A, b: B) {
self.a = a
self.b = b
}
init(a: A) where B == EmptyView {
self.a = a
self.b = EmptyView()
}
}