In my swift code below the goal is to overwrite the second boolean value. The code below is fetching a boolean value and this code works and maybe it can be used to help overwrite the 2nd boolean value. I also attached a diagram if that helps and a photo of my core data attributes.
func getBool(imageNo:Int) {
// first check the array bounds
let info = helpBool.shareInstance.fetchBool()
if info.count > imageNo {
// if info[imageNo].bool {
if info[imageNo].bool == true {
.normal);
print("it is inside true")
}
if info[imageNo].bool == false {
print("it is inside false")
}
// }
}
}