Modal Windows #13

Open
opened 2025-10-14 15:43:22 -06:00 by navan · 0 comments
Owner

Originally created by @mjKosmic on 7/1/2024

Is there any way to create little modal windows? I'm thinking something like theres a setting that someone can edit and the edit happens in a popup modal window in the center of the screen. Currently it looks like attempting to overlay a center-justified view, even a relatively small one, results in the whole screen getting re-rendered and losing the presenting view entirely. I suspect this is because the entire view needs to be buffered to be able to know the dimensions for where the center is. Is there some clever method to get something like this working? Or is this possible as a feature request?

*Originally created by @mjKosmic on 7/1/2024* Is there any way to create little modal windows? I'm thinking something like theres a setting that someone can edit and the edit happens in a popup modal window in the center of the screen. Currently it looks like attempting to overlay a center-justified view, even a relatively small one, results in the whole screen getting re-rendered and losing the presenting view entirely. I suspect this is because the entire view needs to be buffered to be able to know the dimensions for where the center is. Is there some clever method to get something like this working? Or is this possible as a feature request?
Sign in to join this conversation.
No labels
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference: github/SwiftTUI#13
No description provided.