Class
BorderTransform
public class BorderTransform: Transform
Applies a border effect to the image.
Relationships
Superclass
Transform
:nodoc:
Initializers
Methods
width(_:)
@discardableResult
func width(_ value: Int) -> Self
Adds the width
option.
Parameters
Name | Type | Description |
---|---|---|
value | Int |
Sets the width in pixels of the border to render around the image. Valid range: |
color(_:)
@discardableResult
func color(_ value: UIColor) -> Self
Adds the color
option.
Parameters
Name | Type | Description |
---|---|---|
value | UIColor |
Sets the color of the border to render around the image. |
background(_:)
@discardableResult
func background(_ value: UIColor) -> Self
Adds the background
option.
Parameters
Name | Type | Description |
---|---|---|
value | UIColor |
Sets the background color to display behind the image. |