This is a read-only archive of the Framer Community on Facebook.

What is Framer? Join the Community
Return to index
Konrad Bayer
Posted Jan 08 - Read on Facebook

I have created a button class module. Is it possible to draw a frame in design mode and assign this to behave as an instance from the button class in code?


Lukas Guschlbauer

You can create a „wrap“ function which takes the layers from design mode as parameters and uses those in your class! Just as for example this module does:

Yasin Arık

It's weird that Lukas Guschlbauer himself didn't offer his great Framer modul, Symbols. :)

However, Davo Galavotti was quicker than me to share it :)

Konrad Bayer

Thank you so much for your input. I will dig to it later and probably come back with some questions, if I hit a wall. :)
It is correct that I (started with) a custom button class, but maybe I abandon it and take over Lukas Guschlbauer s approach. Looks awesome (based on 10 seconds browsing over the github page)! ;)

Read the entire post on Facebook