-
Notifications
You must be signed in to change notification settings - Fork 0
UIView
Norman Basham edited this page Feb 17, 2020
·
1 revision
- 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 anotherUIView
). - Computed var for borderUIColor access and mutation.
- Block based
UIButton
&UIBarButtonItem
event handling. - Create an UIImage from a UIView.
- Convert animated gif to
[UIImage]
.