CLASS
public class GrayscaleColor: NSObject, NSCopying, CodableA model class representing grayscale colors. The white component can hold values between 0.0 and 255.0 while the alphavalue has a maximum value of 100.0.
public init(white: CGFloat, alpha: CGFloat)Creates a GrayscaleColor instance.
- Parameter:
- white: The white component.
- alpha: The opacity component.
public func copy(with _: NSZone? = nil) -> AnyCreates a copy of the GrayscaleColor instance.
- Returns: A copy of the GrayscaleColor instance.
public override func isEqual(_ object: Any?) -> BoolCompares two GrayscaleColor instances with each other.
Parameter object: The GrayscaleColor to compare with.
Returns: 'true' if the instance is equal to the other GrayscaleColor instance, otherwise 'false''.
| Name | Description |
|---|---|
| object | The GrayscaleColor to compare with. |