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

can i set style like this? #618

Open
TushningJJ opened this issue Jul 31, 2023 · 0 comments
Open

can i set style like this? #618

TushningJJ opened this issue Jul 31, 2023 · 0 comments

Comments

@TushningJJ
Copy link

of course ignored dashed line

image

this is my code ,but i dont know how to set 'TMBlockBarIndicator' color of the normal

    let bar = TMBarView<TMHorizontalBarLayout, TMLabelBarButton, TMBlockBarIndicator>()
    bar.backgroundView.style = .clear
    bar.layout.transitionStyle = .progressive
    bar.layout.contentMode =  .fit
    bar.layout.contentInset = UIEdgeInsets(top: 13.0, left: 15.0, bottom: 13.0, right: 15.0)
    bar.buttons.customize { button in
        button.font = UIFont.customFont(size: 15, weight: .medium)
        button.tintColor = UIColor.tabbarTitle
        button.selectedFont = UIFont.customFont(size: 15, weight: .medium)
        button.selectedTintColor =  UIColor.normalWhiteText
    }
    bar.indicator.backgroundColor = UIColor.theme
    bar.indicator.cornerStyle  = .eliptical

Thanks!

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

1 participant