Barcode AR Info Annotation Body Component

Defined in framework ScanditBarcodeCapture

BarcodeArInfoAnnotationBodyComponent
open class BarcodeArInfoAnnotationBodyComponent : UIView

Added in version 7.1.0

A component that forms the body of an info annotation. Each component represents a “row,” containing text with optional icons on the left and/or right sides.

text
open var text: String? { get, set }

Added in version 7.1.0

The text shown in the component.

font
open var font: UIFont { get, set }

Added in version 7.1.0

The font used for the text. The default value is the system font of size 14.

textAlignment
open var textAlignment: NSTextAlignment { get, set }

Added in version 7.1.0

The text alignment. The default value is center.

textColor
open var textColor: UIColor { get, set }

Added in version 7.1.0

The color of the text. The default value is #121619.

styledText
open var styledText: NSAttributedString? { get, set }

Added in version 7.1.0

The styled text shown in the component. When set, it overrides the values defined in the other text-related properties (text, font, textColor, textAlignment).

isLeftIconTappable
open var isLeftIconTappable: Bool { get, set }

Added in version 7.1.0

Whether the left icon is tappable. Default is true.

leftIcon
open var leftIcon: ScanditIcon? { get, set }

Added in version 7.1.0

The icon displayed on the left side of the component. If null, no button is shown. The default value is null.

rightIcon
open var rightIcon: ScanditIcon? { get, set }

Added in version 7.1.0

The icon displayed on the right side of the component. If null, no button is shown. The default value is null.

isRightIconTappable
open var isRightIconTappable: Bool { get, set }

Added in version 7.1.0

Whether the right icon is tappable. Default is true.