Releases: NuPlay/RichText
Releases · NuPlay/RichText
V2.1.0
V2.0.1
V2.0
✨ New Functions:
- customCSS(_:) allows developer to add custom CSS to WebView.
- foregroundColor(light:dark:) allows developer to replace text color with UIColor and SwiftUI's Color. It supports multiple color schemes.
- linkColor(light:dark:) allows developer to replace link colors inside HTML with UIColor and SwiftUI's Color. It supports multiple color schemes.
- Replaced colorImportant(_:) with colorPreference(forceColor:).
- SwiftUI's multilineTextAlignment(_:) also works with RichText.
♻️ Model Changes:
- View preferences such as font color, now storing at Configuration struct.
- Some models renamed for compatible to Swift API Design Guidelines.
- ColorSet now includes important option.
- FontType enum now supports custom fonts.
🐛 Bug Fixes:
- Storing WKWebView inside class is caused to console warnings and lots of performance issues. And this may cause slowdowns and freezes. Now, WKWebView is not storing inside class, it is declared inside makeUIView(context:) function.
- Plain text inputs causes to styles not work properly. This bug is fixed by adding input inside element.
Contributors
Thanks to @macbookator #12
V2.0 beta
New Functions:
- customCSS(_:) allows developer to add custom CSS to WebView.
- foregroundColor(light:dark:) allows developer to replace text color with UIColor and SwiftUI's Color. It supports multiple color schemes.
- linkColor(light:dark:) allows developer to replace link colors inside HTML with UIColor and SwiftUI's Color. It supports multiple color schemes.
- Replaced colorImportant(_:) with colorPreference(forceColor:).
- SwiftUI's multilineTextAlignment(_:) also works with RichText.
Model Changes:
- View preferences such as font color, now storing at Configuration struct.
- Some models renamed for compatible to Swift API Design Guidelines.
- ColorSet now includes important option.
- FontType enum now supports custom fonts.
Bug Fixes:
- Storing WKWebView inside class is caused to console warnings and lots of performance issues. And this may cause slowdowns and freezes. Now, WKWebView is not storing inside class, it is declared inside makeUIView(context:) function.
- Plain text inputs causes to styles not work properly. This bug is fixed by adding input inside element.
Contributors
Thanks to @macbookator #12