I just created a class and gave it some vars. Unfortunately I can't access these variables in my iOS-Projects. However, the same syntax works in playground...
class ViewController: UIViewController
{
class Dog
{
var age = 0
var hungry = TRUE
}
var rex = Dog()
rex.age = 2 //ERROR: EXPECTED DECLARATION
}