BetterSegmentedControl v2.0.1 Release Notes

Release Date: 2020-10-21 // almost 4 years ago
  • ๐Ÿš€ Release notes

    ๐Ÿ†• New features

    • ๐Ÿ‘Œ Support for single segment, no segments
    • ๐Ÿ‘Œ Support for no selected segment
    • ๐Ÿ‘Œ Support for customizing .valueChanged behavior when calling setIndex()
    • ๐Ÿ‘ iPad cursor support (iOS 13.4+)
    • ๐Ÿ‘ Auto-sizing support when using Auto Layout
    • ๐Ÿ‘Œ Improved accessibility / VoiceOver

    ๐Ÿ›  Fixes

    • ๐Ÿ›  Fix Interface Builder / runtime color inconsistencies
    • ๐Ÿ›  Fix accessibility labels being read twice
    • ๐Ÿ›  Fix warnings in pod and example
    • Cover edge cases when setting index / segments


    • โœ… Fully cover control with unit and snapshot tests
    • โž• Add Slather support for calculating code coverage
    • ๐ŸŽ Restructure internally for better readability and performance
    • ๐Ÿ‘Œ Improve example view controller
    • โž• Add logo and improve README with new demo GIFs

    ๐Ÿ’ฅ Breaking changes

    • When calling setIndex(), the .valueChanged event will now not be triggered by default. Use setIndex()'s shouldSendValueChangedEvent parameter to control this behavior
    • โšก๏ธ Default IB colors have been updated to match system's UISegmentedControl
    • Setting segments will now reset the index (no .valueChanged event will be triggered)

Previous changes from v1.3.0

    • ๐Ÿ“ฆ You can now integrate BetterSegmentedControl via Swift Package Manager
    • Index change animation duration & damping are now customizable
    • โž• Add convenient class variable for getting a control that resembles the native iOS 13 UISegmentedControl
    • ๐Ÿ›  Fix issue that was preventing shadows to be added for the indicator view
    • ๐Ÿ›  Fix issue with corner radius and indicator insets
    • โšก๏ธ Update for Swift 5.1
    • Minor formatting improvements here and there