Open twho opened 5 years ago
When select other segment that has longer width, the selector move to that segment without changing the width. The view is not well-arranged if the tabs have different width.
In MaterialSegmentedControl.swift, the distribution of stack view is set to equal for temporary use.
stackView = UIStackView(arrangedSubviews: segments, axis: .horizontal, distribution: .fillEqually, spacing: 10.0)
When select other segment that has longer width, the selector move to that segment without changing the width. The view is not well-arranged if the tabs have different width.