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 

 

 

 

 

 

 

 

 

 

 

 

 

'IOS application > Swift' 카테고리의 다른 글

12. 선배가 알려주는 팁  (0) 2021.05.17
11. Crash between Swift Package and Cocoapods  (0) 2021.05.09
9. Keyboard  (0) 2021.04.24
8. Tabbar, SafeArea, collectionView 설정  (0) 2021.04.24
7. Swift Escaping Closure ?? 😁  (0) 2021.04.23