-
Notifications
You must be signed in to change notification settings - Fork 57
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: HCPSDKFIORIUIKIT-2764] list picker enhancement #823
base: main
Are you sure you want to change the base?
Conversation
xiaoyu0722
commented
Oct 14, 2024
•
edited
Loading
edited
Debug Panel | Normal Single Selection | Multiple Selections |
---|---|---|
Search | Filter | Cancel Alert | Customizaiton |
---|---|---|---|
// sourcery: default.value = .horizontal | ||
// sourcery: no_view | ||
var axis: Axis { get } | ||
} | ||
|
||
@available(*, unavailable, renamed: "_ListPickerItemModel", message: "Will be removed in the future release. Please create ListPickerItem with other initializers instead.") | ||
public protocol ListPickerItemModel {} |
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.
Missing Docs Violation: public declarations should be documented. (missing_docs)
ced5b72
to
02f3d4a
Compare
@@ -569,3 +569,37 @@ protocol _DateTimePickerComponent: _TitleComponent, _ValueLabelComponent, _Manda | |||
|
|||
// sourcery: CompositeComponent | |||
protocol _AvatarStackComponent: _AvatarsComponent, _AvatarsTitleComponent {} | |||
|
|||
/// `ListPickerItem` is a view that provide a `NavigationLink` with a title and selected value. And `ListPickerDestination` is recommended to be used as its destination, which selection, search filter and customized rows are supported. |
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.
/// `ListPickerItem` is a view that provide a `NavigationLink` with a title and selected value. And `ListPickerDestination` is recommended to be used as its destination, which selection, search filter and customized rows are supported. | |
/// `ListPickerItem` is a view that provides a `NavigationLink` with a title and selected value(s). And `ListPickerDestination` is recommended to be used as its destination, for which selection, search filter and customized rows are supported. |
import FioriSwiftUICore | ||
import SwiftUI | ||
|
||
struct ListPickerItemExample: View { |
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.
In UIKit, the list picker can group some values in sections.
e.g.
Section 1 for all apples
Section 2 for all pears
Section 3 for all grapes
Currently, looks like only "Selected" and "All" section are supported.
Do this new implementation support multiple "group" idea as well ? If yes, can we add some new cases?
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.
comments inlined