Skip to content
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

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

xiaoyu0722
Copy link
Contributor

@xiaoyu0722 xiaoyu0722 commented Oct 14, 2024

Debug Panel Normal Single Selection Multiple Selections
Simulator Screenshot - iPhone 16 Pro Max - 2024-10-14 at 17 00 09 Simulator Screenshot - iPhone 16 Pro Max - 2024-10-14 at 17 25 36 Simulator Screenshot - iPhone 16 Pro Max - 2024-10-14 at 17 43 59
Search Filter Cancel Alert Customizaiton
Simulator Screenshot - iPhone 16 Pro Max - 2024-10-14 at 17 44 19 Simulator Screenshot - iPhone 16 Pro Max - 2024-10-14 at 17 44 29 Simulator Screenshot - iPhone 16 Pro Max - 2024-10-14 at 17 45 39 Simulator Screenshot - iPhone 16 Pro Max - 2024-10-14 at 17 46 12

@xiaoyu0722 xiaoyu0722 requested a review from a team as a code owner October 14, 2024 09:35
@xiaoyu0722 xiaoyu0722 requested review from billzhou0223 and removed request for a team October 14, 2024 09:35
// 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 {}
Copy link

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)

@@ -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.
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
/// `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 {
Copy link
Contributor

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?

Copy link
Contributor

@dyongxu dyongxu left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

comments inlined

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants