-
Notifications
You must be signed in to change notification settings - Fork 5
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
Conversation
@@ -66,6 +66,10 @@ final class GvaGalleryListView: BaseView { | |||
).activate() | |||
} | |||
|
|||
override func defineLayout() { | |||
collectionView.backgroundColor = UIColor.clear |
There was a problem hiding this comment.
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.
There was a problem hiding this comment.
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 { |
There was a problem hiding this comment.
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
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It does indeed
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
fixed 5c4854f
There was a problem hiding this comment.
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.
!squash |
Some of the views were rendered differently in dark mode, and needed some adjustments.
5c4854f
to
36a1061
Compare
Some of the views were rendered differently in dark mode, and needed some adjustments.