Skip to content

SwiftRichString 0.9.9

Compare
Choose a tag to compare
@malcommac malcommac released this 06 Jul 23:10
· 282 commits to master since this release
  • #18 Added renderTags(withStyles:) func in String extension. It will a shortcut to parse an html-tagged string and return the NSMutableAttributedString instance.
  • #19 MarkupString classes does not throws anymore; when parsing fails to invalid strings it will return nil.
  • #5 A new function is added to parse multiple regular expressions and apply to each one one or more styles. It's called func set(regExpStyles: [RegExpPatternStyles], default dStyle: Style? = nil) -> NSMutableAttributedString and accepts an array of RegExpPatternStyles structs (which defines the regexp rule, options and and array of Style to apply on match). default parameter allows you to set a default style to apply before rules are evaluated.
  • #2 Resolved an issue with CocoaPods
  • #20 Added compatibility with watchOS, tvOS and macOS.