Skip to content

Release 2.0

Latest
Compare
Choose a tag to compare
@gmarm gmarm released this 21 Oct 11:31
· 1 commit to master since this release
a2b2116

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

Other

  • 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)