-
Notifications
You must be signed in to change notification settings - Fork 309
Open
Description
Description
When a popup contains a TextField and the keyboard appears, the popup content view is rebuilt multiple times, causing visual jumping/flickering.
Steps to Reproduce
- Create a popup with a TextField inside
- Tap the TextField to show the keyboard
- Observe the console logs - the popup content view's body is executed multiple times
Expected Behavior
The popup content view should not be rebuilt when the keyboard appears. It should only adjust its position smoothly.
Actual Behavior
The popup content view is rebuilt 5+ times in rapid succession when the keyboard appears, causing:
- Visual jumping/flickering
- Loss of any non-@State local variables
- Poor user experience
Since iOS can send multiple keyboard notifications during a single keyboard show/hide animation, this causes multiple view updates.
Environment
- PopupView version: 4.x
- iOS version: 16+
- Xcode version: 15+
Metadata
Metadata
Assignees
Labels
No labels