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
AWS AuthUI without Navigation Controller #815
Comments
Hello, currently there is no other way to use the AuthUI. It requires using navigation controller. I will take this as a feature request to the team. Could you elaborate a little more on your use case to help us understand the feature better? Thanks, |
I have same issue.
Looking at the current implementation, it seems unnecessary to depend on UINavigationController. I hope this dependency is gone in the next version |
Hello! I second this request. My app uses a custom widget library and rely only occasionally on UIKit widgets. Most 3rd party SDKs we use, that have custom UI's, use Thanks for considering this! Cheers, |
I am having a problem with the keyboard in AWSAuthUIViewController. When clicking on username textfield or password textfield it moves them upwards and out of the view. How can I fix this? I just started experiencing this when I updated to Swift 4.1. |
@RushanB I have the same issue. I tested it on different versions of iPhone in the XCode simulator and the issue doesn't happen for iPhone X. |
@King-Kira Yes, I remember but that was at least usable. At the moment a user can't even Sign In as they can't see what they are typing. |
I know. It's quite frustrating. |
The issue regarding the keyboard is resolved in the latest release Thanks, |
@rohandubal - a use case is any application that uses XCode's Document-based template/patterns, these view controller hierarchies have null NavigationControllers because they are Document based. We have this issue. |
@masarusanjp solution worked for me with the slight annoyance that AWSAuthUIViewController presents itself with an animation and dismisses itself with an animation. So, there is a brief black background when the login view is presenting and dismissing. It would be nice if these animation values were configurable. I also had to call that code in Unless I'm mistaken, the login view relies on having a navigation controller, so it's more a question about who supplies the navigation controller. As written, |
I second this request - if you look at the code in AWSAuthUIViewController, it creates its own UINavigationController and uses the passed navigation controller only to call presentViewController (which is a UIViewController method, anyway!). |
Thanks for this feature request. We recommend using Amplify Authenticator, which has extensive customization options. |
To help us solve your problem better, please answer the following list of questions.
What service are you using?
AWS AuthCore, AWS AuthUI
In what version of SDK are you facing the problem?
2.6.6
Is the issue limited to Simulators / Actual Devices?
No
Can your problem be resolved if you bump to a higher version of SDK?
No
Is this problem related to specific iOS version?
No
How are you consuming the SDK? CocoaPods / Carthage / Prebuilt frameworks?
CocoaPods
Can you give us steps to reproduce with a minimal, complete, and verifiable example? Please include any specific network conditions that might be required to reproduce the problem.
The current way to present an AWSAuthUIViewController is:
AWSAuthUIViewController.presentViewController(with: UINavigationController, configuration: AWSAuthUIConfiguration?, completionHandler: AWSAuthUICompletionHandler),
which requires you to be using a Navigation Controller. However, I don't want to embed my login screen in a navigation controller. Is there a way for me to present the AuthUIViewController without?
The text was updated successfully, but these errors were encountered: