StackState for overlay #3619
Unanswered
BaochengHan-TomTom
asked this question in
Q&A
Replies: 1 comment
-
The problem boils down to how to |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi there,
I am exploring the possibility of applying StackState for an overlay in a view, similar to how stack-based screen navigation works. The goal is for the overlay, acting as a top panel on the main view, to dynamically transition based on the stack state.
Here is the example of domain code :
what I want to have in UI is a view modifier
overlayStack
which accepts thepanal
store as a parameter and only show a view for the top state in StackState. Something like this:I did looked the source code how
is implemented, but its implementation uses internal API that is not usable for me I believe.
Your help on how to implement the view modifier would be very much appreciated. Thanks.
Beta Was this translation helpful? Give feedback.
All reactions