BetterSegmentedControl v2.0.1 Release Notes
Release Date: 2020-10-21 // over 4 years ago-
๐ Release notes
๐ New features
- ๐ Support for single segment, no segments
- ๐ Support for no selected segment
- ๐ Support for customizing
.valueChanged
behavior when callingsetIndex()
- ๐ 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. UsesetIndex()
'sshouldSendValueChangedEvent
parameter to control this behavior - โก๏ธ Default IB colors have been updated to match system's
UISegmentedControl
- Setting
segments
will now reset theindex
(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