Post

Replies

Boosts

Views

Activity

Comment on Return an updated UIImageView
@Paradigm777 Well kinda but I relize that the issue actually lies on a resetPressed function which sets the 'mainUIView' to nil. This function is intended to provide a clean canvas for subsequent operations but inadvertently results in the content stored in the 'canvasArray' being set to nil as well. I tried to avoid this by saving a copy of it in my saveCanvas function in this segment savedImageView2.image = mainImageView.image?.copy() as? UIImage
Nov ’23
Comment on Return an updated UIImageView
Just for reference this is my resetPressed function @objc func resetPressed(_ sender: Any) { mainImageView.image = nil } Any Ideas or suggestions on how to keep my resetPressed from affecting what is being saved in my saveCanvas function of my code would be much appreciated!
Nov ’23
Comment on Return an updated UIImageView
Never mind I found out that the issue lies on how my savedImageView2 is initialize inside my saveCanvas function. All I had to do was to store the copy of mainImageView inside if the UIImageView(image: mainImageView.image?.copy() as? UIImage) object just like that instead of doing it separately.
Nov ’23