Scandit Icon Builder

Defined in framework ScanditCaptureCore

ScanditIconBuilder
open class ScanditIconBuilder : NSObject

Added in version 7.1.0

Use this object to construct instances of ScanditIcon.

init
init()

Added in version 7.1.0

Creates a new instance of the builder.

withIcon
open func withIcon(_ icon: ScanditIconType?) -> ScanditIconBuilder

Added in version 7.1.0

Sets the icon.

withIconColor
open func withIconColor(_ color: UIColor?) -> ScanditIconBuilder

Added in version 7.1.0

Sets the color of the icon.

withBackgroundColor
open func withBackgroundColor(_ color: UIColor?) -> ScanditIconBuilder

Added in version 7.1.0

Sets the color applied to the icon’s background.

withBackgroundStrokeColor
open func withBackgroundStrokeColor(_ color: UIColor?) -> ScanditIconBuilder

Added in version 7.1.0

Sets the color of the stroke applied to the icon’s background.

withBackgroundStrokeWidth
open func withBackgroundStrokeWidth(_ width: CGFloat) -> ScanditIconBuilder

Added in version 7.1.0

Sets the width of the stroke applied to the icon’s background.

withBackgroundShape
open func withBackgroundShape(_ shape: ScanditIconShape?) -> ScanditIconBuilder

Added in version 7.1.0

Sets the icon’s background shape.

build
open func build() -> ScanditIcon

Added in version 7.1.0

Constructs a ScanditIcon with the properties set on the builder.