0

it looks like UISegmentedControl doesn't allow user to do multiple selection by default.

I have seen some github libraries for obj-c, how allow multiple segment selection using swift?

enter image description here

how to do multiple selection in segmented control in swift ?

3
  • 1
    You don't need a new library written in Swift. Any existing library written in Objective-C can be linked against your project, and all of its functionality is accessible from within Swift — no Objective-C need be written by you. See here for an example. Commented Jul 26, 2016 at 13:34
  • You could try implementing a collection view with three cells and multiple selection Commented Jul 27, 2016 at 3:55
  • Possible duplicate of Multiple selection of segments in UISegmentedControl Commented Jul 20, 2017 at 6:52

1 Answer 1

1

UIKit does not provide any feature to support for multiple selections in UISegmentControl. Recommendation would be to create a custom control, better to use an array of UISwitch controls where it represents each of the options in your UISegmentControl.

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.