CS-UCR / senior-design-project-project-memoir

senior-design-project-project-memoir created by GitHub Classroom
MIT License
1 stars 0 forks source link

Added delete message functionality #48

Closed borozcod closed 2 years ago

borozcod commented 2 years ago

Update

I added the functionality to be able to delete a message by clicking a "delete" button.

How

I realized that we can access the MessageView class when we set up the buttons' gestures. Adding a deleteButton property to the MessageView allowed me to later access that property inside of ARVC+UserGuestures and setting the tapped function there. I had to create a subclass of UIButton with an added messageEntity property because the action in addTarget only takes in UIButton type classes.

borozcod commented 2 years ago

Fixes #29