Hi Everyone, I want to define a generic function in swift like following type constraints. Is it possible to define a func like this?
func getService<T, I>(protocolType: I.Type) -> T where T implements protocol I
Hi Everyone, I want to define a generic function in swift like following type constraints. Is it possible to define a func like this?
func getService<T, I>(protocolType: I.Type) -> T where T implements protocol I