create one class object in other class Swift code example Example: create class swift class example { // code here... } let x = example()