how to create an object of a class swift code example Example: create class swift class example { // code here... } let x = example()