Extension

NSShadow

This extension adds a convenient initializer to NSShadow.

Declaration

extension NSShadow

Overview

Instead of setting every property one at a time, this method allows you to initialize an NSShadow with all the necessary properties.

Topics

Initialization

init()

This initializer takes in a variety of necessary properties for constructing a new shadow object.

convenience init(blurRadius: CGFloat, offset: CGSize, color: UIColor) {
    self.init()
    shadowBlurRadius = blurRadius
    shadowOffset = offset
    shadowColor = color
}
background Made with Flow.
underscore Made with Flow.
line2 Made with Flow.
line1 Made with Flow.
circle Made with Flow.
hit Made with Flow.

result(s) found for “”.