From 1b036691d274e84993591de5411bcfdf6ab3be8e Mon Sep 17 00:00:00 2001 From: Saeed Bashir Date: Fri, 6 Jul 2018 11:28:32 +0500 Subject: [PATCH] LEARNER-5726: WhatsNew UI fix on Rotation --- Source/WhatsNewContentController.swift | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/Source/WhatsNewContentController.swift b/Source/WhatsNewContentController.swift index 3141a1257a..0cbbb2baed 100644 --- a/Source/WhatsNewContentController.swift +++ b/Source/WhatsNewContentController.swift @@ -91,11 +91,11 @@ class WhatsNewContentController: UIViewController { private func setConstraints() { - containerView.snp.makeConstraints { make in + containerView.snp.remakeConstraints { make in make.edges.equalTo(safeEdges) } - imageContainer.snp.makeConstraints { make in + imageContainer.snp.remakeConstraints { make in make.top.equalTo(containerView) make.trailing.equalTo(containerView) make.leading.equalTo(containerView) @@ -103,28 +103,28 @@ class WhatsNewContentController: UIViewController { make.height.equalTo(height) } - infoContainer.snp.makeConstraints { make in + infoContainer.snp.remakeConstraints { make in make.top.equalTo(imageContainer.snp.bottom) make.trailing.equalTo(containerView) make.leading.equalTo(containerView) make.bottom.equalTo(containerView) } - screenImageView.snp.makeConstraints { make in + screenImageView.snp.remakeConstraints { make in make.top.equalTo(imageContainer).offset(2*StandardVerticalMargin) make.bottom.equalTo(imageContainer) make.trailing.equalTo(imageContainer).offset(-LeftRightMargin) make.leading.equalTo(imageContainer).offset(LeftRightMargin) } - titleLabel.snp.makeConstraints { make in + titleLabel.snp.remakeConstraints { make in make.top.equalTo(infoContainer).offset(2*StandardVerticalMargin) make.centerX.equalTo(infoContainer) make.trailing.lessThanOrEqualTo(infoContainer).offset(-LeftRightMargin) make.leading.lessThanOrEqualTo(infoContainer).offset(LeftRightMargin) } - messageLabel.snp.makeConstraints { make in + messageLabel.snp.remakeConstraints { make in make.top.equalTo(titleLabel.snp.bottom).offset(StandardVerticalMargin) make.bottom.lessThanOrEqualTo(infoContainer).offset(-StandardVerticalMargin) make.centerX.equalTo(infoContainer)