Skip to content

Instantly share code, notes, and snippets.

View jklausa's full-sized avatar

Jan Klausa jklausa

View GitHub Profile
class TestClass {
var aStruct: MyStruct;
init(inout initialStruct: MyStruct) {
aStruct = initialStruct;
}
func changeValueTo(newValue: Int) {
aStruct.aValue = newValue;
}