Dave DeLong Profile picture
@davedelong@mastodon.social Swift Artist & Senior iOS Engineer on Siri @Apple. Happily unverified. He/Him. My tweets are my opinions
Oct 7, 2021 6 tweets 2 min read
A handy Swift convenience thing I came up with recently (1/n):

struct Backport<Content> {
let content: Content
}

extension View {
var backport: Backport<Self> { Backport(content: self) }
} extension Backport where Content: View {
@ViewBuilder func badge(_ count: Int) -> some View {
if #available(iOS 15, *) {
content.badge(count)
} else {
// some fallback?
content
}
}
}
Apr 2, 2019 8 tweets 4 min read
This should probably be a blog post, but I’m lazy and it’s easier to ⌘N in @tweetbot:

I had the privilege of attending and speaking at the Tokyo edition of @tryswiftconf recently. I had a fantastic and inspiring time, and want to share a couple observations with you

1/? First off, I was totally impressed with the organization and logistics of the whole thing. It is HARD to pull a conference off well, but the @tryswiftconf team did it admirably.

2/?