All, I've got the ability to select images figured out. As well as set images in a button statcally.
However, I want to be able to change an image in a button after an image is selected.
I have been at this for days and can't seem to figure it out, or find any answers to my question.
Any help is appreciated
The code I have is:
Button(action: {
if(self.ImageSelectedFlag == false) {
self.showImages.toggle()
}
else {
?????????????
}
})
{
Image(systemName: "question")
}
.sheet(isPresented: $IsShowingImages, content: {
ImagePicker(isPresented: self.$IsShowingImages, ImageSelected: self.ButtonImage, ImageSelectedFlag: self.$ImageSelectedFlag)
})