Skip to content
Norman Basham edited this page Feb 17, 2020 · 1 revision

UIView

Source


  • Extensions for accessing and mutating UIView frames: width, height, top, right, bottom, left, centerX, centerY, origin, and size.
  • Deep inspection of UIView hierarchy.
  • Block based tap event handling. Example to get taps on a UILabel:
   let view = AddTapAction(toView: label) {
     // handle tap
   }
  • Constrain views to parent or another view's center (supports iOS 9+).
  • addWebView(html).
  • Add/remove external borders (outside view frame).
  • Add UIView padding (wraps in another UIView).
  • Computed var for borderUIColor access and mutation.
  • Block based UIButton & UIBarButtonItem event handling.
  • Create an UIImage from a UIView.
  • Convert animated gif to [UIImage].
Clone this wiki locally