Releases: malcommac/SwiftRichString
Releases Β· malcommac/SwiftRichString
SwiftRichString 1.0.1 - for Swift 4.x
1.0.1 - Swift 4
SwiftRichString 0.9.9
- #18 Added
renderTags(withStyles:)
func inString
extension. It will a shortcut to parse an html-tagged string and return theNSMutableAttributedString
instance. - #19
MarkupString
classes does notthrows
anymore; when parsing fails to invalid strings it will returnnil
. - #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 ofRegExpPatternStyles
structs (which defines the regexp rule, options and and array ofStyle
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
andmacOS
.