Skip to content
This repository was archived by the owner on Feb 5, 2025. It is now read-only.

Conversation

@frosty
Copy link
Contributor

@frosty frosty commented Apr 2, 2021

This PR fixes an issue where NUX button shadows were constrained to the edges of the NUX button view controller, which meant they may not extend all the way to the edges of the screen:

Simulator Screen Shot - iPad Pro (9 7-inch) - 2021-03-29 at 21 55 08

With the changes in this PR, you can now pass a layoutGuide to instances of NUXButtonViewController which it will use to reconfigure the leading and trailing constraints of the shadow view:

Simulator Screen Shot - iPad Pro (12 9-inch) (4th generation) - 2021-04-02 at 14 46 46

I also checked other places in WPiOS where we use the NUX view to ensure that their shadows continued to work okay (or that they didn't show the shadow in the first place):

Simulator Screen Shot - iPad Pro (9 7-inch) - 2021-04-02 at 14 51 29 Simulator Screen Shot - iPad Pro (9 7-inch) - 2021-04-02 at 14 51 41

You can test these changes via the associated WordPress iOS PR.

frosty added 2 commits April 2, 2021 14:55
* This fixes an issue on the login prologue screen where the top shadow
  didn't reach all the way to the edges of the superview, as it was
  constrained to the edges of the button view.
Copy link
Contributor

@Gio2018 Gio2018 left a comment

Choose a reason for hiding this comment

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

just one minor comment, other than that :shipit: !

@frosty frosty merged commit c740406 into develop Apr 2, 2021
@frosty frosty deleted the fix/nux-button-shadows branch April 2, 2021 19:23
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

bug Something isn't working

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants