frame vs bounds
While debugging a custom UIKit view you notice bounds.origin isn't (0, 0). What's the difference between frame and bounds?
While debugging a custom UIKit view you notice bounds.origin isn't (0, 0). What's the difference between frame and bounds?
frame is the view's position and size in its superview's coordinate system; bounds is its origin and size in its own coordinate system. Both are CGRects, but they're measured against different coordinate systems.
UIKitMultiple choiceAdvanced
You've put a round button in the middle of a custom UIKit tab bar that sticks 20pt up…
#bounds
UIKitShort answerAdvanced
Suppose UIScrollView didn't exist and you had to build a UIView subclass where content…
#bounds
SwiftUIShort answerAdvanced
Can you walk me through the three steps that determine a SwiftUI layout?
#frame
SwiftUIMultiple choiceBasics
Select all the correct statements about the layout result of this SwiftUI view. …
#frame