Extension
This extension adds a convenient initializer to NSShadow.
extension NSShadow
Instead of setting every property one at a time, this method allows you to initialize an NSShadow
with all the necessary properties.
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
}
result(s) found for “”.