Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

<DETAILS>...</DETAILS> #18

Open
CarolSmall opened this issue Aug 3, 2022 · 1 comment
Open

<DETAILS>...</DETAILS> #18

CarolSmall opened this issue Aug 3, 2022 · 1 comment
Labels
bug Something isn't working

Comments

@CarolSmall
Copy link

I really like this package but I've run into an issue. I've got this code:

import SwiftUI
import RichText
struct MainView : View {
var body: some View { ScrollView { RichText(html: Documents.Welcome) }
}
and when it runs I get a bunch of warnings: [ViewportSizing] maximumViewportInset cannot be larger than frame (similarly for minimumViewportInset). Documents.Welcome is quite large but the warnings didn't seem to be a problem.

But today I added a "details" section:

CLICK HERE

There's a lot of text here.

and nothing renders after the details link. The same document loads in web browsers (Chrome, Safari, etc) perfectly ok.
@CarolSmall
Copy link
Author

Just to add that the bug is clear with just this:

ScrollView { RichText(html: "
SummaryHere's the body.
") }) { Text("Rich Text Bug") }

@NuPlay NuPlay added the bug Something isn't working label Aug 6, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants