-
Notifications
You must be signed in to change notification settings - Fork 59
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat: 🎸 [JIRA:IOSSDKBUG-434] filterFeedBack list mutil selections shown in section #865
feat: 🎸 [JIRA:IOSSDKBUG-434] filterFeedBack list mutil selections shown in section #865
Conversation
filterFeedBack list mutil selections shown in section
public init(id: String = UUID().uuidString, name: String, value: [Int], valueOptions: [String], allowsMultipleSelection: Bool, allowsEmptySelection: Bool, barItemDisplayMode: BarItemDisplayMode = .name, isSearchBarHidden: Bool = false, icon: String? = nil, itemLayout: OptionListPickerItemLayoutType = .fixed, displayMode: DisplayMode = .automatic) { | ||
/// Enum for list show entries section | ||
/// The default value is `.default`. | ||
public enum ListEntriesSectionMode { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nesting Violation: Types should be nested at most 1 level deep (nesting)
#else | ||
.foregroundStyle(Color.preferredColor(.primaryLabel)) | ||
#endif | ||
if !disableListEntriesSection, _value.count > 0 { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Empty Count Violation: Prefer checking isEmpty
over comparing count
to zero. (empty_count)
public init(id: String = UUID().uuidString, name: String, value: [Int], valueOptions: [String], allowsMultipleSelection: Bool, allowsEmptySelection: Bool, barItemDisplayMode: BarItemDisplayMode = .name, isSearchBarHidden: Bool = false, icon: String? = nil, itemLayout: OptionListPickerItemLayoutType = .fixed, displayMode: DisplayMode = .automatic) { | ||
/// Enum for list show entries section | ||
/// The default value is `.default`. | ||
public enum ListEntriesSectionMode { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nesting Violation: Types should be nested at most 1 level deep (nesting)
#else | ||
.foregroundStyle(Color.preferredColor(.primaryLabel)) | ||
#endif | ||
if !disableListEntriesSection, _value.count > 0 { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Empty Count Violation: Prefer checking isEmpty
over comparing count
to zero. (empty_count)
Add 'ListEntriesSectionMode' to control whether entries section shown or not.

when listEntriesSectionMode is 'default', depends on 'allowsMultipleSelection', when allowsMultipleSelection is true, selections should be shown in an individual section.