Swift: Type check operator ‘is’ with example code

Type check operator ‘ is ‘is used to check whether an instance is of a certain subclass type. It will return true if that instance belongs to that subclass type and false otherwise.

Leave a Reply