HypeDitto / iOS-Study

iOS 기술 면접 대비
0 stars 0 forks source link

Left Constraint 와 Leading Constraint 의 차이점을 설명하시오. #44

Open HeegeePark opened 1 year ago

HeegeePark commented 1 year ago

기본적으로 텍스트를 왼쪽에서 오른쪽으로 읽는 나라의 경우, leading을 쓰든 left를 쓰든 별 차이가 없을 것.

그러나 반대의 경우, left를 사용하게 된다면 문제가 생기게 되고, 보완할 수 있는 방법이 leading과 trailing이다.

YouHojoon commented 1 year ago

Left Contraint

지역화를 위해 Leading, Trailing을 애플에서는 권고한다