From e6cca20a23b4e6d1834a8df35273328ada6a80a9 Mon Sep 17 00:00:00 2001 From: Sebastian Villena <97059974+ruisebas@users.noreply.github.com> Date: Thu, 17 Aug 2023 15:28:09 -0400 Subject: [PATCH] fix(DatePicker): Fixing the format used to parse the date into a string (#31) --- CHANGELOG.md | 28 +++++++++++++++++++ .../Constants/ComponentInformation.swift | 2 +- .../Views/Primitives/DatePicker.swift | 6 +++- 3 files changed, 34 insertions(+), 2 deletions(-) create mode 100644 CHANGELOG.md diff --git a/CHANGELOG.md b/CHANGELOG.md new file mode 100644 index 0000000..9e62627 --- /dev/null +++ b/CHANGELOG.md @@ -0,0 +1,28 @@ +# Changelog + +## 1.0.3 (2023-08-17) + +### Bug Fixes +- Fixing wrong date format being submitted when displaying `SignUpField` of type `date` (See [#31](https://github.com/aws-amplify/amplify-ui-swift-authenticator/pull/31)) + +## 1.0.2 (2023-07-25) + +### Misc. Updates +- Pinning the Amplify version up to 2.15.x + +## 1.0.1 (2023-06-15) + +### Bug Fixes +- Fixing issues with Sign Up fields (See [#25](https://github.com/aws-amplify/amplify-ui-swift-authenticator/pull/25)). + - Removing duplicated fields in the array provided to `Authenticator.signUpFields(_:)` + - Preventing fields of type `.phoneNumber` from saving an incomplete phone number if only the dialling code is set. +- Fixing Xcode 15 beta compilation error (See [#24](https://github.com/aws-amplify/amplify-ui-swift-authenticator/pull/24), thanks @RowbotNZ!) + + +## 1.0.0 (2023-05-24) + +### Initial release of Amplify UI Authenticator for Swift UI + +Amplify Authenticator provides a complete drop-in implementation of an authentication flow for your application using [Amplify Authentication](https://docs.amplify.aws/lib/auth/getting-started/q/platform/ios/). + +More information on setting up and using the component is in the [documentation](https://ui.docs.amplify.aws/swift/connected-components/authenticator). \ No newline at end of file diff --git a/Sources/Authenticator/Constants/ComponentInformation.swift b/Sources/Authenticator/Constants/ComponentInformation.swift index c6b9712..e62f093 100644 --- a/Sources/Authenticator/Constants/ComponentInformation.swift +++ b/Sources/Authenticator/Constants/ComponentInformation.swift @@ -8,6 +8,6 @@ import Foundation public class ComponentInformation { - public static let version = "1.0.2" + public static let version = "1.0.3" public static let name = "amplify-ui-swift-authenticator" } diff --git a/Sources/Authenticator/Views/Primitives/DatePicker.swift b/Sources/Authenticator/Views/Primitives/DatePicker.swift index 8d3e285..f1a2042 100644 --- a/Sources/Authenticator/Views/Primitives/DatePicker.swift +++ b/Sources/Authenticator/Views/Primitives/DatePicker.swift @@ -22,7 +22,11 @@ struct DatePicker: View { @Binding private var text: String private let label: String private let placeholder: String - private let formatter = ISO8601DateFormatter() + private var formatter: ISO8601DateFormatter = { + let formatter = ISO8601DateFormatter() + formatter.formatOptions = .withFullDate + return formatter + }() init(_ label: String, text: Binding,