I have about 15 global Integer constants in my app. Half of them display zero.
For example...
struct Global {
struct lives {
static let free = 3
static let paid = 5
}
}
let CRATE_LOCATION_ZERO = CGPoint(x: -10000, y: -10000)
Then later in code I try to use them...
let purchasedApp = true
let newLives = purchasedApp ? paid : free
let newCrateLocation = CRATE_LOCATION_ZERO
When I run the program and get these values, they are always zero. When I add a break point and check the values, they are also zero.
- The newLives will be 0
- The CGPoint will be x:0, y:0
But not all the static (or constant) values end up being 0. Then some others have different values.
I've also put up a video to show you what I mean.
leckett.net/video/wierd.mov
CPU and memory are all okay. I'm running Xcode 12.5.1
Has anybody experienced this?