Kyle Bashour

@kylebshr
757 Followers
233 Following
2.7K Posts
Little bit cynic, little optimistic. I make @paku and work at https://mercury.com
websitehttps://kylebashour.com
Pakuhttps://indieapps.space/@paku
LocationPortland, OR
@kyle the new crypto mining malware
@kyle lol I just set up dispatch to see if I can work on this on the go today
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>

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?

@timonus time to build AestheticSheet
@kyleve this broke initially in 26.0 at least, so still mostly “when a new iOS comes out” - just surprisingly slow to fix this time
On iOS 26.4 partial height sheets still animate incorrectly in from the side and not at their correct width. Example from Maps, happening in our app too.
@stroughtonsmith that would be great, actually
@kyle the step-changes will continue until morale improves