Skip to content

Commit e6cca20

Browse files
authored
fix(DatePicker): Fixing the format used to parse the date into a string (#31)
1 parent 5ef413d commit e6cca20

File tree

3 files changed

+34
-2
lines changed

3 files changed

+34
-2
lines changed

CHANGELOG.md

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
# Changelog
2+
3+
## 1.0.3 (2023-08-17)
4+
5+
### Bug Fixes
6+
- 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))
7+
8+
## 1.0.2 (2023-07-25)
9+
10+
### Misc. Updates
11+
- Pinning the Amplify version up to 2.15.x
12+
13+
## 1.0.1 (2023-06-15)
14+
15+
### Bug Fixes
16+
- Fixing issues with Sign Up fields (See [#25](https://github.com/aws-amplify/amplify-ui-swift-authenticator/pull/25)).
17+
- Removing duplicated fields in the array provided to `Authenticator.signUpFields(_:)`
18+
- Preventing fields of type `.phoneNumber` from saving an incomplete phone number if only the dialling code is set.
19+
- Fixing Xcode 15 beta compilation error (See [#24](https://github.com/aws-amplify/amplify-ui-swift-authenticator/pull/24), thanks @RowbotNZ!)
20+
21+
22+
## 1.0.0 (2023-05-24)
23+
24+
### Initial release of Amplify UI Authenticator for Swift UI
25+
26+
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/).
27+
28+
More information on setting up and using the component is in the [documentation](https://ui.docs.amplify.aws/swift/connected-components/authenticator).

Sources/Authenticator/Constants/ComponentInformation.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,6 @@
88
import Foundation
99

1010
public class ComponentInformation {
11-
public static let version = "1.0.2"
11+
public static let version = "1.0.3"
1212
public static let name = "amplify-ui-swift-authenticator"
1313
}

Sources/Authenticator/Views/Primitives/DatePicker.swift

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,11 @@ struct DatePicker: View {
2222
@Binding private var text: String
2323
private let label: String
2424
private let placeholder: String
25-
private let formatter = ISO8601DateFormatter()
25+
private var formatter: ISO8601DateFormatter = {
26+
let formatter = ISO8601DateFormatter()
27+
formatter.formatOptions = .withFullDate
28+
return formatter
29+
}()
2630

2731
init(_ label: String,
2832
text: Binding<String>,

0 commit comments

Comments
 (0)