Skip to content

can i set style like this?  #618

@TushningJJ

Description

@TushningJJ

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!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions