In JavaScript you can dynamically call a method like this:
class Foo {
myMethod() {
console.log('myMethod')
}
}
var foo = new Foo()
var method = 'myMethod'
foo[method]()
You can write the method as a string and dynamically call it. You can also do this:
foo[method].apply(someScope, [ argA, argB, ... ])
Wondering if you can do anything like this in Swift, I am new to swift.