jeudi 16 avril 2020

Reflection in Swift

I would like to create a function (Function A) that have as a parameter a function (Function B) with multiple parameters.

So the function (B) can have 0,1 or more parameters and inside the function (A) I would like to do different things based on the number and type of the B functions’ parameters...

I thought that this is achievable with reflection but is it possible in Swift?





Aucun commentaire:

Enregistrer un commentaire