From ed0e13ad73e7c7568c1f1b89d58c39b05f7f4b12 Mon Sep 17 00:00:00 2001 From: Duy Truong Date: Wed, 21 Sep 2022 17:45:44 +0700 Subject: [PATCH] Fix 'Fatal error: UIViewRepresentables must be value types: MarkdownUI' in iOS 16 SwiftUI --- Sources/MarkdownView/MarkdownUI.swift | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Sources/MarkdownView/MarkdownUI.swift b/Sources/MarkdownView/MarkdownUI.swift index 77129a8..03dabd4 100644 --- a/Sources/MarkdownView/MarkdownUI.swift +++ b/Sources/MarkdownView/MarkdownUI.swift @@ -1,6 +1,6 @@ import SwiftUI -public final class MarkdownUI: UIViewRepresentable { +public struct MarkdownUI: UIViewRepresentable { private let markdownView: MarkdownView @Binding public var body: String