All notable changes to this project will be documented in this file.
The format is based on Keep a Changelog and this project adheres to Semantic Versioning.
- fix privacy manifest PrivacyInfo.xcprivacy.
- add privacy manifest PrivacyInfo.xcprivacy.
- change spm platform to iOS 11 to resolve build errors. (Thanks marcocebrian!)
- fix layout when
semanticContentAttribute = .forceRightToLeft
. - better SwiftUI layout without
fixedSize()
.
- add SwiftUI view modifiers for appearance properties.
- make SwiftUI frame correctly respond to
.fixedSize(horizontal: false, vertical: true)
.
- correctly calculate
intrinsicContentSize
, to support SwiftUI'sfixedSize()
.
- allow to configure segment labels using
titleConfigurationHandler
block.
- don't change title's
NSAttributedString.Key.foregroundColor
after dismissing a modal.
- up iOS version to 11 so that CocoaPods will allow the SwiftUI code.
- SwiftUI support:
MultiSegmentPicker
.
- add
selectedBackgroundColor
. (Thanks jemise111)
- on changing the
backgroundColor
, update the front color of selected segments.
- when the
backgroundColor
is set, use it as foreground color of selected segments. - when
borderWidth
is smaller than 1, don't let the background spill over the border.
- add
titleTextAttributes
for anyUIControl.State
.
- add SwiftUI wrapper
MultiSegmentPicker
.
- fix stretched symbol font images.
- use superview background color for selected foreground color.
- accessibility labels
- dark mode support
- dynamic type support
- use same font size as the old version.
- support Swift Package Manager.
- default to transparent background.
- Complete re-write in Swift 5, compatible with iOS 13.
- Vertical stacking.
- Can show text and images together.
- Configureable border and dividers width.
- Configurable border corner radius.
- UIAppearance support.
- support right-to-left language environment.
- Carthage support.
- adding segment programmatically and using autolayout caused wrong segment to be selected
- Annotate -MultiSelectSegmentedControl.selectedSegmentTitles as
NSArray<NSString*>*
- Header improvements to simplify use in Swift and Interface Builder
- separate selected segments by a blank line, since the flat UI offers no other separation.
- add
selectedSegmentTitles
property.