LineFormatting
public struct LineFormatting
Describes the formatting of a line of text. While general purpose in nature, this is
used by EditorListFormattingProvider
for providing formatting for lists.
-
Indentation of line
Declaration
Swift
public let indentation: CGFloat
-
Vertical spacing before the line
Declaration
Swift
public let spacingBefore: CGFloat
-
Vertical spacing after the line
Declaration
Swift
public let spacingAfter: CGFloat?
-
Initializes
Declaration
Swift
public init(indentation: CGFloat, spacingBefore: CGFloat, spacingAfter: CGFloat? = nil)
Parameters
indentation
Indentation for each line of text
spacingBefore
Vertical spacing before line of text
spacingAfter
Vertical spacing after line of text