Skip to content

Releases: NuPlay/RichText

V2.1.0

11 Sep 14:48
247a88b
Compare
Choose a tag to compare

✨ New Functions:

  • Handle mailto: and tel:
  • Make configuration public

📝 Update README

  • Modified to match the changed code
  • Add modifier description

Contributors

Thanks to @ChaosCoder #20

V2.0.1

10 Aug 03:42
Compare
Choose a tag to compare

Bug Fixes

Fix the linkColor issue #19

V2.0

06 Aug 11:57
03c5911
Compare
Choose a tag to compare

✨ 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

09 Jun 04:28
Compare
Choose a tag to compare

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

V1.7

01 Mar 05:28
Compare
Choose a tag to compare

Refresh the view when html changes #10
Following code convention by SwiftLint

V1.6

05 Jan 00:40
dcf9a3e
Compare
Choose a tag to compare

Font change, link color change function added.

V1.5

27 Aug 14:37
ecbcb74
Compare
Choose a tag to compare

Change how RichText is used, add options when users click Link

V1.4

09 Aug 04:21
50813b8
Compare
Choose a tag to compare
Update README.md

V1.3

03 Aug 08:02
50813b8
Compare
Choose a tag to compare
Update README.md

V1.2

25 Jul 06:52
50813b8
Compare
Choose a tag to compare

Add colorImportant