TL:DR
There seems to be a chicken-and-egg paradox in this View
initializer.
The Code
This happens often enough to me that I must be missing something fundamental about @State
. Namely the compiler seems to be saying I can't set pickerIndex
until pickerIndex
has been set, and I can't exit the initializer without setting pickerIndex
.
(The LetterSelection
variable tracks a letter of the alphabet, but I don't think its details are relevant.)