init(text:textColor:backgroundColor:alignment:)
Initialize an overlay with properties that control the overlay’s appearance and text contents.
Declaration
init(text: String, textColor: UIColor, backgroundColor: UIColor, alignment: CPImageOverlay.Alignment)Parameters
- text:
The text to display in the overlay.
- textColor:
The color of the overlay text.
- backgroundColor:
The background color of the overlay.
- alignment:
The alignment for positioning the overlay.