NuPlay / RichText

Easily show RichText(html) in SwiftUI
MIT License
209 stars 36 forks source link

Does not obey frame #17

Open Captnwalker1 opened 2 years ago

Captnwalker1 commented 2 years ago

Screen Shot 2022-07-20 at 5 14 09 PM

Frame is set to 48 tall.

Message body: <p>This is a <strong>fancy</strong> <strong><span style=\"color: rgb(226, 80, 65);\">HTML</span></strong> <span style=\"background-color: rgb(97, 189, 109);\">message</span> with some styling.</p><p>And a <a href=\"http://www.google.com\" target=\"_blank\">link to google</a>.</p>

NuPlay commented 2 years ago

There were no problems when I tested RichText calculates frames directly

If you want to limit the frame yourself, you have to wrap the RichText in a ScrollView and limit the frame of the ScrollView.

NuPlay commented 2 years ago

Please let me know if I misunderstood the issue 😀