One would think that tempSelectedClassIndex is used to temporarily store the value of selectedClassIndex, but its purpose is slightly different as the code suggests:
|
if option == .misidentified { |
|
selectedClassIndex = index |
|
tempSelectedClassIndex = sharedImageData.segmentedIndices[index] |
|
isShowingClassSelectionModal = true |
|
} |