Text

public struct Text : View

A view that displays one or more lines of read-only text.

  • Declaration

    Swift

    public typealias Body = Never
  • Undocumented

    Declaration

    Swift

    public let html: HTMLNode
  • Creates a text view that displays a string literal without localization.

    Declaration

    Swift

    public init(_ text: String)
  • Declaration

    Swift

    public func html(forHTMLOfSubnodes htmlOfSubnodes: [HTMLNode]) -> HTMLNode
  • Applies a bold font weight to the text.

    Declaration

    Swift

    func bold() -> Text