add struct to class without having to declare from inside swift code example
Example 1: create class swift
class example {
// code here...
}
let x = example()
Example 2: create a structure swift
struct Example {
// your code/variables here...
var name = "example"
}
var example = Example() // creates a reference to the structure
print(example.name) // accesses the name variable from the structure