Saturday, December 10, 2016

Part 12 - UIView's Clip To Bounds Property

  • When unchecked (false), subviews in a UIView can extend outside the border of the parent UIView.
    Example:
  • When checked (true), subviews will not be drawn beyond the border of the parent UIView. Subviews are clipped.
    Example:
  • When checked (true), you cannot have a shadow on the UIView since the shadow is drawn outside the UIView's border.
  • In code you refer to UIView.clipsToBounds.

No comments:

Post a Comment

Note: Only a member of this blog may post a comment.

SwiftUI Search & Filter with Combine - Part 3 (iOS, Xcode 13, SwiftUI, 2...

In part 3 of the Searchable video series, I show you how to use Combine in #SwiftUI for the search and filter logic connected to the searcha...