open var frame: CGRect
open var bounds: CGRec

CGRect vs CGSize vs CGPoint

Frame

The frame rectagle, which describes the view’s location and size in its superview’s coordinate system.

Bounds

The bounds rectangle, which describes the view’s location and size in its own coordinate system.


Frame

스크린샷 2022-10-11 오후 10.00.07.png

View의 상위뷰에 대한 좌표값!?

subView의 origin. 즉 x좌표와 y좌표는 현재 (16,60)이다.