-
The color that is mapped to light colors.
Declaration
Swift
public let lightColor: UIColor?
-
The color that is mapped to dark colors.
Declaration
Swift
public let darkColor: UIColor?
-
Creates an effect for duotone looks.
Declaration
Swift
public init(identifier: String, lightColor: UIColor?, darkColor: UIColor?, displayName: String)
Parameters
identifier
An identifier that uniquely identifies the effect.
lightColor
The color that is mapped to light colors.
darkColor
The color that is mapped to dark colors.
displayName
The name that is displayed to the user.
Return Value
A newly initialized
DuoToneEffect
object. -
Returns a new
CIFilter
object.Declaration
Swift
open override var newEffectFilter: CIFilter? { get }