Impressia/Vernissage/Widgets/MarkdownFormattedText.swift

26 lines
551 B
Swift
Raw Normal View History

2023-01-23 18:01:27 +01:00
//
// https://mczachurski.dev
// Copyright © 2023 Marcin Czachurski and the repository contributors.
2023-03-28 10:35:38 +02:00
// Licensed under the Apache License 2.0.
2023-01-23 18:01:27 +01:00
//
import UIKit
import SwiftUI
import EmojiText
import HTML2Markdown
struct MarkdownFormattedText: View {
@EnvironmentObject var applicationState: ApplicationState
private let markdown: String
private let textView = UITextView()
2023-03-26 09:40:05 +02:00
init(_ markdown: String) {
2023-01-23 18:01:27 +01:00
self.markdown = markdown
}
var body: some View {
EmojiText(markdown: markdown, emojis: [])
}
}