Skip to content
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

Improve lifecycle #60

Merged
merged 4 commits into from
Sep 22, 2024
Merged

Improve lifecycle #60

merged 4 commits into from
Sep 22, 2024

Conversation

gabriellanata
Copy link
Contributor

Simulates view controller lifecycle more accurately

@gabriellanata
Copy link
Contributor Author

gabriellanata commented Sep 21, 2024

/ptal @kirillyakimovich @marcosgriselli @Julioacarrettoni

@gabriellanata gabriellanata merged commit 3210dd6 into main Sep 22, 2024
7 checks passed
@gabriellanata gabriellanata deleted the improve-lifecycle branch September 22, 2024 11:48
self.containerView.translatesAutoresizingMaskIntoConstraints = false
self.view.addSubview(self.containerView)

// We only activate the top and leading constraints to allow the content to size itself.
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

But we also activate bottom and trailing.

}

private final class HammerViewController: UIViewController {
private let containerView = UIView()
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It seems to me, we can just use self.view and do not create additional layer.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

True, but i prefer to keep this for now for consistency

@lyft lyft deleted a comment from buildnotify-production-17 bot Sep 26, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants