@Claude31 This issue is still easy to reproduce, you can put a few text fields on a VC, and add the next part of the code:
extension ViewController: UITextFieldDelegate {
func textFieldDidBeginEditing(_ textField: UITextField) {
print("🔥", UIPasteboard.general.changeCount)
}
}
And try to switch between text fields, you will see in the console something like this:
🔥 3699
🔥 3701
🔥 3701
🔥 3701
🔥 3701
🔥 3703
🔥 3703
🔥 3705
🔥 3705
Why it's happening and how we can avoid this?
Topic:
UI Frameworks
SubTopic:
UIKit
Tags: