Skip to content

How to add Spacer() between the tabs? #610

Open
@qweluke

Description

@qweluke

New Issue Checklist

Issue Description

image

I'd like to:

  • put Spacer() between each tab so they fill all of the space
  • add left padding before "Today's top 10" so it's not so close to the phone edge
  • add right padding before "Search" so it's not so close to the phone edge
  override func viewDidLoad() {
    super.viewDidLoad()
    
    dataSource = self
    
    let bar = TMBarView.ButtonBar()
    
    
    bar.buttons.customize {
      $0.tintColor = UIColor(Color.theme.accent)
      $0.selectedTintColor = UIColor(Color.theme.accent)
      $0.font = UIFont(name: "ComicSans-Regular", size: 16)!
      $0.selectedFont = UIFont(name: "ComicSans-Regular", size: 16)!

    }
    
    let systemBar = bar.systemBar();
    systemBar.backgroundStyle = .flat(color: UIColor(Color.red))
    systemBar.separatorColor = .clear
    
    addBar(systemBar, dataSource: self, at: .top)
  }

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