hannesstruss
04/18/2020, 7:10 PMQuery<RowType>
). @russhwolf suggested using a top level func like func createPublisher<T>(query: RuntimeQuery<T>) -> AnyPublisher<RuntimeQuery<T>, Never>
. That works! Are there maybe any other solutions?hannesstruss
04/18/2020, 7:11 PMextension RuntimeQuery {
func asPublisher() -> AnyPublisher<RuntimeQuery<RowType>, Never> {
// ...
}
}
// Fails with: 'Extension of a generic Objective-C class cannot access the class's generic parameters at runtime.'
hannesstruss
04/18/2020, 7:12 PMrusshwolf
04/18/2020, 7:17 PMhannesstruss
04/19/2020, 7:02 AM