Swift 5.1 How to detect if a Variable is a certain class type Posted by Gerard Grundy Date January 16, 2020 Comments 0 comment Sometimes you need to know what type an object is when you are coding. Here is how to do it:type(of: yourObject) Video Tutorials – Start Learning Related Tag:Learn Swift Programming|Swift Programming|Swift Tutorials Share: Gerard Grundy Previous post Swift 5.1 Multiple Variables On One Line January 16, 2020 Next post Swift 5.1 How do you place a variable in a string? January 16, 2020 You may also like Argument passed to call that takes no arguments SwiftUI 5.1 February 15, 2020 Custom Text is being cut off at the top SwiftUI 5.1 February 10, 2020 Comparison Operator Swift 5.1 Challenge January 31, 2020