Skip to main content
Question

Swap overlay interaction not working


I cannot get swap overlay to work, it won’t swap the frame I want to replace - instead it seems to navigate to that frame, so the background just goes black.

Any help much appreciated!

Test prototype

This topic has been closed for replies.

5 replies

Ryan_52
Figmate
  • Technical Quality Specialist
  • 382 replies
  • June 2, 2023

Swap overlays allows you to swap an existing opened overlay for another. In your example, flow 1 does not have an overlay opened prior to trying to swap the overlay with another one. Flow 2 has a overlay opened and then swapped between another overlay.

You can read more here about how to work and swap between overlays


  • Author
  • 3 replies
  • June 5, 2023

Thanks Ryan - I think I need to use a different method here.

What I’m actually looking to do is to have a modal on screen, then on click, the modal minimises. It can then be maximised again.

Perhaps I just need to navigate between 2 frames (screens), rather than trying to make use of an overlay interaction.


Avokadomos
  • Active Member
  • 377 replies
  • June 5, 2023

Sounds like a job for a normal component with two variants; one for each modal state.


  • Author
  • 3 replies
  • June 5, 2023

@Avokadomos yes, you’re right - that’s it. Not sure why my brain wasn’t working that way, but exactly what I need to do 😅 Thanks!


  • 0 replies
  • July 5, 2023

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.


Cookie policy

We use cookies to enhance and personalize your experience. If you accept you agree to our full cookie policy. Learn more about our cookies.

 
Cookie settings