Possible to return an AsyncSequence<T> for iOS 17 when building against iOS 18?

Already shared this with @joshw on Slack (we work together) but for visibility I thought I'd point out that swift-nio has a nice AnyAsyncSequence type that can do the trick. Though folks have pointed out in the past that this can have sizable perf tradeoffs so probably best used sparingly.

1 Like