Contents

text(_:)

Creates a badge displaying a text.

Declaration

static func text(_ text: String) -> NSItemBadge

Parameters

  • text:

    The text to be displayed inside the badge.

Return Value

A new NSItemBadge instance with the specified text.