RichText
Easily show RichText(html) in SwiftUI
![]() |
![]() |
---|---|
LightMode | DarkMode |
Code
Sample Text
Sample
How To Use
Variable explanation
- html : which you want to show (String type)
Optional
- lineHeight (optional, default: 170) : Height of each line
- imageRadius (optional, default: 0) : Radius of image corner
- fontType(optional, default : default): Font type in html view but not yet working properly
- colorScheme(optional, default : automatic) : light or dark mode (it changes text color)
- colorImportant (optional, default: false) : css '!important', It ignores the color in variable 'html' when colorImportant is true.
- placeholder(optional,default: EmptyView()) : What to display until Richtext views are completely drawn (View type)