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

Fix dark mode issues in GVA #715

Merged
merged 1 commit into from
Aug 14, 2023
Merged

Conversation

rasmustautsglia
Copy link
Contributor

Some of the views were rendered differently in dark mode, and needed some adjustments.

@@ -66,6 +66,10 @@ final class GvaGalleryListView: BaseView {
).activate()
}

override func defineLayout() {
collectionView.backgroundColor = UIColor.clear
Copy link
Contributor

Choose a reason for hiding this comment

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

super.defineLayout()

missed super call.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

fixed b613e53

@@ -59,6 +59,18 @@ final class QuickReplyView: BaseView {
collectionView.trailingAnchor.constraint(equalTo: safeAreaLayoutGuide.trailingAnchor)
])
}

override func layoutSubviews() {
switch style.backgroundColor {
Copy link
Contributor

Choose a reason for hiding this comment

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

Doesn't layoutSubviews also need super? @yurii-glia

Copy link
Contributor Author

Choose a reason for hiding this comment

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

It does indeed

Copy link
Contributor Author

Choose a reason for hiding this comment

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

fixed 5c4854f

Copy link
Contributor

Choose a reason for hiding this comment

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

for consistency yes, however, afaik, Apple doc for layoutSubviews method mentions that it is not necessary to call super for this method.

@rasmustautsglia
Copy link
Contributor Author

!squash

Some of the views were rendered differently in dark mode, and needed
some adjustments.
@sm-deployer sm-deployer merged commit 450f302 into development Aug 14, 2023
1 check passed
@sm-deployer sm-deployer deleted the Fix-dark-mode-issues-in-GVA branch August 14, 2023 12:02
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Development

Successfully merging this pull request may close these issues.

6 participants