fan-menu icon indicating copy to clipboard operation
fan-menu copied to clipboard

add method so we can change the image of FanMenuButton

Open amirtutunchi opened this issue 5 years ago • 1 comments

Hi first of all thanks for this wonderful component, it would be very nice if we could have better access to the image view of FanMenuButton. for example we could change the image or set the font for the title label. I think that way you can not use struct for FanMenuButton

amirtutunchi avatar Sep 27 '20 16:09 amirtutunchi

Hey @amirtutunchi. Glad that you like FanMenu, and thanks for your feedback. I will discuss these API changes with our team. Thanks!

shipinev avatar Sep 29 '20 09:09 shipinev

Hey @amirtutunchi, sorry for super late response. You can already set the image of the button like this:

FanMenuButton(
                id: button.0,
                image: UIImage(named: "image_name"), 
                color: Color(val: button.1)
            )

I added font and font weight in version 0.7.6, please give it a go, have a nice day P.S. you might want to check out this library in SwiftUI, which does the same https://github.com/exyte/FloatingButton

f3dm76 avatar May 16 '23 11:05 f3dm76