79302143

Date: 2024-12-23 04:40:33
Score: 1
Natty:
Report link

Just call your TextView and clear the string before you insert your own string.

textView.text.removeAll(keepingCapacity: false)

This line of code will remove the string in the text view. I just used this to clear a textView prior to repopulating with updated data from a databse.

Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: Dallo81