In Swift you can check the class type of an object using ‘is’. How can I incorporate this into a ‘switch’ block?
I think it’s not possible, so I’m wondering what is the best way around this.
In Swift you can check the class type of an object using ‘is’. How can I incorporate this into a ‘switch’ block?
I think it’s not possible, so I’m wondering what is the best way around this.