Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Is there a way to change the underline text color? #111

Open
gilbertl opened this issue Sep 21, 2020 · 2 comments
Open

Is there a way to change the underline text color? #111

gilbertl opened this issue Sep 21, 2020 · 2 comments

Comments

@gilbertl
Copy link

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

@sbotichelli
Copy link

sbotichelli commented Sep 21, 2020

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)

@r-a-o
Copy link

r-a-o commented Nov 15, 2020

@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)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants