PDFListItemSymbol
public enum PDFListItemSymbol : RawRepresentable, Hashable
Symbol used by a list item in a PDFList
-
Doesn’t display a symbol before the content
Declaration
Swift
case none -
If an item is nested and uses this symbol, it will take the same one as the parent.
Declaration
Swift
case inherit -
Symbol is a middle-dot
Declaration
Swift
case dot -
Symbol is a dash/minus.
Declaration
Swift
case dash -
Any string
valuemust be provided, which will then be used as the symbol.The indentation value of the
PDFListmust be set correctly in the initializerinit(indentations:), as the indentation is not based on the symbol frame width.Declaration
Swift
case custom(value: String) -
When the parent of multiple list items is of type
numbered, it will then use the index as the symbol, starting with1and append a dot.to the number.If a
valueis provided, this will be used for the parent item, in case you want to override the value.Declaration
Swift
case numbered(value: String?) -
Returns the symbol as a string, to be calculated and rendered using
PDFTextDeclaration
Swift
public var stringValue: String { get } -
nodoc
Declaration
Swift
public var rawValue: String { get } -
nodoc
Declaration
Swift
public init?(rawValue: PDFListItemSymbol.RawValue)
-
nodoc
Declaration
Swift
public static func == (lhs: PDFListItemSymbol, rhs: PDFListItemSymbol) -> Bool
-
nodoc
Declaration
Swift
public func hash(into hasher: inout Hasher)
View on GitHub
Install in Dash