from apple auto layout guide[iOS 오토레이아웃 Views with Intrinsic Content Size] Two Buttons with Size Class-Based Layouts 이번에는 size class를 이용한 예제입니다. size class는 iPhone과 iPad에 가로와 세로를 규격화한 것입니다. Compact,Regular 그리고 2개를 다 포함하는 Any까지 3가지 입니다. 가로 3가지 세로가지 하면 9가지가 됩니다. 그리고 제약조건의 size class는 기본적으로 AnyAny입니다. 보다 자세항 사항은 아래 링크에서 확인하세요~https://developer.apple.com/design/human-interface-guidelines/ios/visual-..
from apple auto layout guide[iOS 오토레이아웃 Views with Intrinsic Content Size] Two Buttons with Equal Spacing 이 예제는 겉으로보기에는 Two Equal-Width Buttons()와 같다. 하지만 이 예제에서는 두 버튼의 너비는 가장 길이기 큰 text를 기준으로 같아진다. 충분한 공간이 있으면 두 개의 버튼의 너비는 가장큰 text를 담고 있는 버튼의 너비까지 늘어난다. 추가적으로 두 개의 버튼 사이에 있는 여분의 공간은 똑같이 나눠진다. Two Buttons width Equal Spacing 예제와 Two Equal Width Buttons의 차이 vaView and Constraints Leading Dummy Vie..
from apple auto layout guide[iOS 오토레이아웃 Views with Intrinsic Content Size] Three Equal - Width Buttons 전 예제(2018/08/02 - [iOS] - [iOS 오토레이아웃 Views with Intrinsic Content Size] Two Equal - Width Buttons)에서 버튼 하나가 추가 됐습니다. View and Constraints Short Button.Leading = Safe Area.Leading + 16Medium Button.Leading = Short Button.Trailing + StandardLong Button.Leading = Medium Button.Trailing + Standard..