UIView Flashcards
init(frame: CGRect)
Initializes and returns a newly allocated view object with the specified frame rectangle.
var backgroundColor: UIColor?
The view’s background color.
var IsHidden: Bool
A Boolean value that determines whether the view is hidden.
var alpha: CGFloat
The view’s alpha value.
var IsOpaque: Bool
A Boolean value that determines whether the view is opaque.
var TintColor: UIColor!
The first nondefault tint color value in the view’s hierarchy, ascending from and starting with the view itself.
var tintAdjustmentMode: UIView.TintAdjustmentMode
The first non-default tint adjustment mode value in the view’s hierarchy, ascending from and starting with the view itself.
var clipsToBounds: Bool
A Boolean value that determines whether subviews are confined to the bounds of the view.
var clearsContextBeforeDrawing: Bool
A Boolean value that determines whether the view’s bounds should be automatically cleared before drawing.
var mask: UIView?
An optional view whose alpha channel is used to mask a view’s content.
class var layerClass: AnyClass
Returns the class used to create the layer for instances of this class.
var layer: CALayer
The view’s Core Animation layer used for rendering.
var isUserInteractionEnabled: Bool
A Boolean value that determines whether user events are ignored and removed from the event queue.
var isMultipleTouchEnabled: Bool
A Boolean value that indicates whether the view receives more than one touch at a time.
var isExclusiveTouch: Bool
A Boolean value that indicates whether the receiver handles touch events exclusively.
var frame: CGRect
The frame rectangle, which describes the view’s location and size in its superview’s coordinate system.
var bounds: CGRect
The bounds rectangle, which describes the view’s location and size in its own coordinate system.
var center: CGPoint
The center point of the view’s frame rectangle.
var transform: CGAffineTransform
Specifies the transform applied to the view, relative to the center of its bounds.
var superview: UIView?
The receiver’s superview, or nil if it has none.