diff options
Diffstat (limited to 'Sources/NorgUI/Views/Blocks/ParagraphView.swift')
| -rw-r--r-- | Sources/NorgUI/Views/Blocks/ParagraphView.swift | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/Sources/NorgUI/Views/Blocks/ParagraphView.swift b/Sources/NorgUI/Views/Blocks/ParagraphView.swift new file mode 100644 index 0000000..2ad0dd5 --- /dev/null +++ b/Sources/NorgUI/Views/Blocks/ParagraphView.swift @@ -0,0 +1,12 @@ +import NorgKit +import SwiftUI + +struct ParagraphView: View { + @Environment(\.norgTheme) private var theme + + let content: [InlineSpan] + + var body: some View { + Text(AttributedString(norg: content, theme: theme)) + } +} |