Amazon Cognito + iOS Swift - Custom UI

1.4k Views Asked by At

I'm trying to setup Amazon Cognito with a custom UI I've set up in Swift for iOS. The built-in UI from the Amazon iOS SDK doesn't fit the look of the app, so I can't use it.

Anyone here have advice on how to use Amazon Cognito with a custom UI?

This tutorial shows me how to use Cognito, but NOT using a custom UI.

1

There are 1 best solutions below

0
On

There are two available AWS SDKs to satisfy this use-case:

  • The AWS iOS SDK[a].
  • The AWS Amplify iOS SDK[b].

For a sample app that you could use as a reference while writing code, you could also take a look at this iOS application[c], and build your own application with a custom UI while referring to the steps in the readme of the application. This Github repository has codes both in Objective C and Swift, which is another bonus.

References

[a]. https://github.com/aws-amplify/aws-sdk-ios

[b]. https://aws-amplify.github.io/docs/ios/authentication

[c]. https://github.com/awslabs/aws-sdk-ios-samples/tree/master/CognitoYourUserPools-Sample