create class and define properties swift 4 code example Example: create class swift class example { // code here... } let x = example()