-
Notifications
You must be signed in to change notification settings - Fork 141
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
Incorrect Container Controller Lifecycle #211
Comments
As explained in Apple's Documentation on container view controllers the order of actions that parent view controllers should take when adding a child view controller are:
What Braze does is the following:
This means that in The default Braze implementations of IAM workaround this by doing layout much later in the lifecycle( |
Hi @k0nserv, Thank you for reaching out and filing this issue with these technical details. We are now tracking this ticket internally. Best, |
Hi @k0nserv, Thanks for filing this issue about our SDK. I'm updating here because we are planning to address this more holistically in our upcoming Swift SDK. Please reference this thread to sign up for our early access program and stay tuned for additional updates regarding the new SDK! Since there are no immediate follow ups for this issue, I am closing it out. Thank you for understanding! |
Report
Describe your environment.
What did you do?
Implemented a custom view controller for IAM display
What did you expect to happen?
For the view of my controller to have its layout specified by the parent view controller and for the parent view controller to correctly handle the container view controller lifecycle.
What happened instead?
The view of my custom view controller was not laid out by its parent view controller and the parent view controller did not correctly perform container view controller lifecycle.
Steps to reproduce
Create a project with custom view controller for IAM observe that
view.superview
is not set untilviewDidAppear
and there is no layout specified forview
.The text was updated successfully, but these errors were encountered: