Skip to content

Commit

Permalink
fix(DatePicker): Fixing the format used to parse the date into a stri…
Browse files Browse the repository at this point in the history
…ng (#31)
  • Loading branch information
sebaland authored Aug 17, 2023
1 parent 5ef413d commit e6cca20
Show file tree
Hide file tree
Showing 3 changed files with 34 additions and 2 deletions.
28 changes: 28 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -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).
2 changes: 1 addition & 1 deletion Sources/Authenticator/Constants/ComponentInformation.swift
Original file line number Diff line number Diff line change
Expand Up @@ -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"
}
6 changes: 5 additions & 1 deletion Sources/Authenticator/Views/Primitives/DatePicker.swift
Original file line number Diff line number Diff line change
Expand Up @@ -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<String>,
Expand Down

0 comments on commit e6cca20

Please sign in to comment.