A pattern I quite like in SwiftUI is building design system components where every “slot” is a a generic View, offering infinite customizability, while offering sane defaults like an init where some of the params are typed (usually just to LocalizedStringKey).

But how do you avoid the massive explosion of inits for a view with more than a couple slots? Especially when some are optional, so you need a conditional EmptyView init for each optional slot?

I wonder if you could handle this with a macro that generates all the permutations of the init? Maybe by defining some types that specify what a slot can be? E.g. <Title: View & MaybeEmptyView & MaybeText>
Here’s where we got, haven’t really tried it out, will do so on Monday https://github.com/kylebshr/slot
@kylebshr claude go brrrrr
@kyle lol I just set up dispatch to see if I can work on this on the go today
@kylebshr lemme get those deets I'll help
@kyle the new crypto mining malware