I am trying to feed my property of a custom struct with a function but Xcode complain that: cannot use instance member within property initializer