twho / material-design-widgets-lite-ios

Material design styled buttons, vertically arranged buttons, activity loader and loading button.
MIT License
58 stars 16 forks source link

Segemented control selector width does not change with the segment #1

Open twho opened 5 years ago

twho commented 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.

twho commented 5 years ago

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)