BetterSegmentedControl v2.0.1 Release Notes
Release Date: 2020-10-21 // over 1 year 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