Rinni Swift
1 min readMay 29, 2019

--

Hi Mateusz,

Thank you, I appreciate it!

In the case where you would like to pass in parameters, you would have to use associated values. This will result in a minor change to the Router enum. Since we represent the network functions with cases, behind those cases just add a parameter and indicate the input type. e.g. case getSources(id: String) and then we would have to change the following parts where we have called them. e.g. case .getSources(let id)

This will require you to pass in a parameter(s) when you call the network function.

--

--

Rinni Swift
Rinni Swift

Written by Rinni Swift

iOS engineer at PayPal and I write stories — Join me on my journey. 📍San Francisco, CA

No responses yet