In my app there are many classes for different ViewControllers. I am searching way to give class name as function parameter so i can use it in function.
Example
func myFunc (var1: String, var2 : Int, var3 : myClass) {
var example = myClass();
example.name = var1;
example.age = var2;
}
i saw this thread Class conforming to protocol as function parameter in Swift but i didn't understand how can i solve my problem with it.