SwipeMenuViewController icon indicating copy to clipboard operation
SwipeMenuViewController copied to clipboard

Is there a way to change the underline text color?

Open gilbertl opened this issue 5 years ago • 2 comments

Is your feature request related to a problem? Please describe. I see in the demo images that the tab underline can be changed to blue, green, etc. Looking at the options struct however, there isn't such an option. In addition, the underline color doesn't match the selectedTextColor.

Describe the solution you'd like Either 1/ provide a color option in Underline or 2/ match the line's color to the selectedTextColor

gilbertl avatar Sep 21 '20 00:09 gilbertl

Here you go:

var options = SwipeMenuViewOptions()
options.tabView.itemView.textColor = UIColor.darkGrey
options.tabView.itemView.selectedTextColor = UIColor.red
options.tabView.additionView.backgroundColor = UIColor.red
        
swipeMenuView.reloadData(options: options)

sbotichelli avatar Sep 21 '20 13:09 sbotichelli

@sbotichelli Are these the only customisations possible or can I have a custom view element part of the tabView? I want to place a coloured dot top-right of tab label as an indication of new content. Can I do such tabView customisation? (I think, I will either need to add my customisation as subview to tabView or replace the tabView with my custom view)

r-a-o avatar Nov 15 '20 15:11 r-a-o