IOS application/Swift

10. UIComponents 누가 위에 있나?

개발자킹콩 2021. 4. 30. 12:32

굉장히 간단한 문제지만 이제 알게 되었구만

 

PlayerView background color은 pink이고,

ControlView background color은 teal이다.

 

 

 

 

 

지금은 ControlView가 위에있다.

왜? 순서대로 쌓이기 때문이다!!!

 

View -> SafeArea -> PlayerView -> ControlView

 

그럼 Component의 위치를 바꾸면 반대로 될까? 그렇다.

View -> SafeArea -> ControlView -> PlayerView