A view is the most basic element in an iOS app. It can hold other views and controls.

Properties usable via Quick

Fill Color : Color

The background colour of a view.

Quick Example Code
view.backgroundColor = #FF0000


Alpha : Float

How transparent a view is from 0.0 (completely transparent) to 1.0 (completely solid).

Quick Example Code
view.alpha = 0.5


Hidden : Boolean

Make a view visible or invisible.

Quick Example Code
view.hidden = true


Border Width : Float

Set the thickness of a border for the view. Defaults to 0.0.

Quick Example Code
view.borderWidth = 5.0


Border Color : Color

The colour of a border for the view. Defaults to black.

If you don't see the border change, make sure it's width is set to something above zero.

Quick Example Code
view.borderColor = #FF0000


Corner Radius : Float

Set amount that a view's corner is rounded. Defaults to 0.0 for 90 degree angles at corners.

Quick Example Code
view.cornerRadius = 10.0


Shadow Size : Float

Set the size of a shadow behind the view. Defaults to 0.0.

Quick Example Code
view.shadowSize = 10.0


Shadow Color : Color

The colour of a shadow for the view. Defaults to black.

If you don't see the shadow change, make sure it's size is set to something above zero.

Quick Example Code
view.shadowColor = #FF00FF


Shadow Offset : Coordinates

Set how far offset a shadow will be. Defaults to (0.0, 0.0) for a shadow that's directly below the view.

Quick Example Code
view.shadowOffset = (10.0, 5.0)


Clip Subviews : Boolean

View's don't render shadow's or subviews outside of their own onscreen rectangle when 'clip subviews' is enabled. Enabled by default. If you can't see your view's shadow, try turning off clip subviews.

Quick Example Code
view.clipSubviews = false


This element compiles to the Swift UIView class. You can check out Apple's documentation on UIView.