Components
Small labels that help qualify information.
Pills are badges that help to explain or draw attention to a certain area of the UI. Often used to qualify leads or label inbox elements. Pills can accomodate one small icon.
There are seven standard pill themes on iOS. In addition, custom themes can be defined by calling the Pill.Theme constructor directly. The standard pill themes also use title7 for the title font.

Set adjustsFontForContentSizeCategory: true to enable Dynamic Type support for a Pill. Pill titles will never wrap to more than one line, and resist increasing their text size beyond what will allow them to fit in the button. If circumstances still don’t allow for the full pill title to display, the title will first take out up to all the width of the pill and if that still isn’t enough it will truncate at the end.
For visually impaired navigation the pill is just represented by its title label.
public let backgroundColor: UIColorpublic let contentColor: UIColorpublic let name: String?Used by some old legacy logic that stores it. Consider it deprecated.
public static let green: Pill.ThemeThe standard green pill theme.
public static let blue: Pill.ThemeThe standard blue pill theme.
public static let red: Pill.ThemeThe standard red pill theme.
public static let indigo: Pill.ThemeThe standard indigo pill theme.
public static let gray: Pill.ThemeThe standard gray pill theme. Also used as a fallback default if no theme can be found to apply to a pill.
public static let yellow: Pill.ThemeThe standard yellow pill theme.
public static let purple: Pill.ThemeThe standard purple pill theme.
public var image: UIImage?If present will always show on the leading side. Should always be a tiny sized icon.
public var text: String?While an optional, should always be set to a non-empty string before display.
public var Theme: Pill.Theme