Skip to main content

Auto layout negative horizontal and vertical padding

  • March 3, 2023
  • 1 reply
  • 363 views

David_Brien_Swann

In order to create tvOS style buttons that grow from the center when in focus, auto layout should include horizontal and vertical negative padding.

With negative padding, it would be easy to create in focus button variants that are slightly larger than the original component. This way elements next to the button do not shift position when the button comes into focus.

Currently, there is no way to achieve this effect if using auto layout.

This topic has been closed for replies.

1 reply

  • 0 replies
  • June 1, 2023

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.


Cookie policy

We use cookies to enhance and personalize your experience. If you accept you agree to our full cookie policy. Learn more about our cookies.

 
Cookie settings