yup, in general, I want to get a variable of shape that will be passed in the clipShape function, but I don't know which form I will have, that's why I'm trying to create an existential variable which can store any shape
Post
Replies
Boosts
Views
Activity
Awesome! That's what I'm looking for, thank you so much!
@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?