Impressia/Vernissage/Widgets/MarkdownFormattedText.swift

26 lines
544 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.
// Licensed under the MIT License.
//
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: [])
}
}