We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
such as A | B | C | D
The text was updated successfully, but these errors were encountered:
You can add lineview to normalView. But it's not very convenient. Like this:
lazy var segmentedControl = BetterSegmentedControl().then { $0.backgroundColor = .white var mArr = [BetterSegmentedControlSegment]() // left let leftSegment = IconSegment(icon: R.image.cut_minus_icon()!, iconSize: CGSize(width: 10, height: 1), normalIconTintColor: .black, selectedIconTintColor: .black) let line1 = UIView() line1.frame = CGRect(x: 123/3 - 2, y: 0, width: 2, height: 30) line1.backgroundColor = .black leftSegment.normalView.addSubview(line1) mArr.append(leftSegment) // center mArr.append(LabelSegment(text: "0")) // right let rightSegment = IconSegment(icon: R.image.cut_minus_icon()!, iconSize: CGSize(width: 10, height: 1), normalIconTintColor: .black, selectedIconTintColor: .black) let line2 = UIView(frame: CGRect(x: 0, y: 0, width: 2, height: 30)) line2.backgroundColor = .black rightSegment.normalView.addSubview(line2) mArr.append(rightSegment) $0.segments = mArr $0.indicatorViewBackgroundColor = .clear $0.backgroundColor = .white $0.layer.borderColor = UIColor.black.cgColor $0.layer.borderWidth = 1 $0.cornerRadius = 8 $0.addTarget(self, action: #selector(segmentedControlChanged(_ :)), for: .valueChanged) }
Sorry, something went wrong.
No branches or pull requests
such as A | B | C | D
The text was updated successfully, but these errors were encountered: