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.