새소식

iOS/AutoLayout

[AutoLayout] Multiplier

  • -

Multiplier(비율)


- Leading/Top(시작지점)에서는 변화 없음 

→ Trailing/Bottom(끝나는 지점)에서 값 만큼 변화(결과 값이 있는데 그 결과 값에 따라 달라짐)

- Costrant : 어떤 지점에서 값만큼 변화

- Multiplier = 3:1 → 3, 1:3 → 1/3

 

 

 

 

- Multiplier = 2 일때 (Equal Widths = 200) 

 

 

 

- 왼쪽은 2배, 오른쪽은 1/2 배

 

 

 

 

 

- Align에서 Multiplier(왼쪽은 2, 오른쪽은 0.5)

 

 

 

 

 

- Align x = 1.5, y = 1.5

 

728x90

'iOS > AutoLayout' 카테고리의 다른 글

[iOS] UIButton titleLabel  (0) 2024.05.29
[AutoLayout] SafeArea보다 더 높이 출력  (0) 2022.10.12
[AutoLayout] Align  (0) 2022.10.09
[AutoLayout] Constraints  (0) 2022.10.08
[iOS] Image ContentMode  (0) 2022.08.25
Contents

포스팅 주소를 복사했습니다

이 글이 도움이 되었다면 공감 부탁드립니다.