I am trying to open a modal that is automatically centered on top of the current stack. For example, I need user input so I made a modal stack. I can open it fine but I want it to be half the size of the stack that opens it and be centered on the screen. Example:
What I have:

What I want:

The back box is the modal stack.