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

Conversation

@jaclync
Copy link
Contributor

@jaclync jaclync commented Aug 12, 2019

Testing

Changes

  • Added insets: UIEdgeInsets parameter to pinSubviewToAllEdges(_ subview: UIView), and called this new function with zero insets in pinSubviewToAllEdges(_ subview: UIView)
    • A separate function without insets parameter is necessary for Objective-C compatibility, otherwise we can set the default parameter of zero insets in the same function
  • Created pinSubviewToSafeArea(_ subview: UIView, insets: UIEdgeInsets) and pinSubviewToSafeArea(_ subview: UIView) with zero insets
  • Added basic tests for the above changes (lemme know if there is a better way to test this!)

@mindgraffiti
Copy link
Contributor

@jaclync I'm pinging @nheagy and @frosty as reviewers for this. I think they are our resident code-based autolayout experts. 🙏

Copy link
Contributor

@mindgraffiti mindgraffiti left a comment

Choose a reason for hiding this comment

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

Confirmed it works for WCiOS.

Copy link
Contributor

@frosty frosty left a comment

Choose a reason for hiding this comment

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

Sorry for the delay reviewing! Looks great, thanks for doing this! Don't forget to do a new release of the pod :)

@jaclync jaclync merged commit f5b4847 into develop Aug 15, 2019
@jaclync jaclync deleted the autolayout-helpers branch August 15, 2019 01:44
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants