#Trying to make a favorited screen
16 messages · Page 1 of 1 (latest)
Hey @ebon dune ! Yes, variables can help with this! You would likely need to make a component set of all the possible paintings and then use an instance of one of them and tie that to a variable that you change
I have some educational files about variable interactions that might help understanding it a bit more:
https://www.figma.com/community/file/1263566887761836189/changing-text-with-chips-with-variables
https://www.figma.com/community/file/1260004860370274328/tab-interactions-with-variables -- for this one, under the use cases tab you can see this part that has a popup come up with content depending on which click me button was clicked [see img below]
I have 2 others also, but these must be most relevant
In total I should have 24 paintings. How do I make the favorited screen have the favorited paintings stay there? Say for example the user favorited two things, those things then get put onto the favorites screen and the user can go back and forth between the home page, profile and favorited screen and still see the original two favorited content @sand grove
Oh okay! I see. In that case, i would take a bit of another approach.
I would put all the 24 paintings on that page already
But i would create 24 boolean variables (one for each) where each are false
And tie them to the their layer visibility
So at the layer, you see it says 100% and an eye icon? Right click the eye icon after u made the booleans and it should show you the booleans
Tie each img to the right boolean variable
While doing this you will see them disappearing
Then where you fan favorite them, do an on click interaction where you set the boolean associated w that image to true
Would any of these plugins work for me?
https://www.figma.com/community/plugin/1230392206301573941/styles-to-variables
https://www.figma.com/community/plugin/1000963812142874727/variables
you dont need any plugins for this
the first plugin is for example just to transfer color styles to variables, completely unrelated to this