How to initialize properties that depend on each other
@MartinR has pointed out the major issue here: var corX = 0 var corY = 0 var panzer = UIImageView(frame: CGRectMake(corX, corY, 30, 40)) The problem is that a Swift default initializer cannot refer to the value of another property, because at the time of initialization, the property doesn’t exist yet (because the instance itself … Read more