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: 🎸 HCPSDKFIORIUIKIT-2718 Mandatory Field for DateTimePicker #809

Merged
merged 1 commit into from
Oct 3, 2024

Conversation

xiaoqinggrace
Copy link
Collaborator

Add Mandatory Field Styling for DateTimePicker. Add controlState for disable/readonly state. Add informationView for the error/hint message.

Add Mandatory Field Styling for DateTimePicker. Add controlState for
disable/readonly state. Add informationView for the error/hint message.
@xiaoqinggrace xiaoqinggrace requested a review from a team as a code owner October 2, 2024 04:49
@xiaoqinggrace xiaoqinggrace requested review from billzhou0223 and removed request for a team October 2, 2024 04:49
@@ -3,10 +3,13 @@ import Foundation
import SwiftUI

struct DateTimePickerExample: View {
@State var s1: Date = .init()
@State var s1: Date = .init(timeIntervalSince1970: 0.0)
Copy link
Collaborator

Choose a reason for hiding this comment

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

Maybe we can make selectedDate an optional value for developers, and set Date(timeIntervalSince1970: 0.0) internally if selectedDate is empty. In UIKit, developers can set cell.value = nil to show "No Date Selected"

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

If we implement this, we need to change the model and ensure the application passes the binding value.

@xiaoqinggrace xiaoqinggrace merged commit 5841ca1 into SAP:main Oct 3, 2024
12 checks passed
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.

3 participants