You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Cannot use the either down.toAttributedString() and DownView on MacOS. The error was shown when using down.toAttributedString()
And following error was thrown when using DownView
The markdown string I use is simply a "Hello world" string. I also tried using the example from readme, but failed. The project also using swiftUI with NSViewRepresentable to wrap the DownView.
The text was updated successfully, but these errors were encountered:
Ok. I got the solution. If you are using SwiftUI and bind this view using UIViewRepresentable or NSViewRepresentable, then toNSAttributedString should be running inside DispatchQueue.main.async. Otherwise, it will throw an error. I don't know the reason.
Cannot use the either down.toAttributedString() and DownView on MacOS. The error was shown when using down.toAttributedString()
And following error was thrown when using DownView
The markdown string I use is simply a "Hello world" string. I also tried using the example from readme, but failed. The project also using swiftUI with NSViewRepresentable to wrap the DownView.
The text was updated successfully, but these errors were encountered: