supabase / supabase-swift

A Swift client for Supabase
https://supabase.com/docs/reference/swift
MIT License
720 stars 111 forks source link

Work around type ambiguity in macOS 13 swift build #609

Closed marcprux closed 4 days ago

marcprux commented 4 days ago

What kind of change does this PR introduce?

Fixes https://github.com/supabase/supabase-swift/issues/606

What is the current behavior?

swift build fails on macOS 13

What is the new behavior?

Behavior should be unchanged.

Additional context

Note the two eraseToStream() implementations at https://github.com/pointfreeco/swift-concurrency-extras/blob/e96a8a76fdccf12ab4b087cdf2d867dd74cd065c/Sources/ConcurrencyExtras/AsyncStream.swift#L103. The macOS swift compiler seem to not be clever enough to pick one, so this PR sidesteps the problem by just doing the same thing as eraseToStream() inline.