Instance Property

shadowOffset

The shadow offset (measured in points) for the text.

Declaration

var shadowOffset: CGSize { get set }

Discussion

The shadow color must be non-nil for this property to have any effect. The default offset size is (0, -1), which indicates a shadow one point above the text. Text shadows are drawn with the specified offset and color and no blurring.

See Also

Drawing a Shadow

var shadowColor: UIColor?

The shadow color of the text.