uias / Tabman

™️ A powerful paging view controller with interactive indicator bars
https://uias.github.io/Tabman
MIT License
2.84k stars 235 forks source link

can i set style like this? #618

Open TushningJJ opened 1 year ago

TushningJJ commented 1 year ago

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!