Skip to content

Commit dc46417

Browse files
committed
Merge branch 'master' into develop
2 parents aab3d58 + 03819a6 commit dc46417

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

Sources/SwiftRichString/Style/StyleGroup.swift

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -242,7 +242,9 @@ public class StyleGroup: StyleProtocol {
242242

243243
let location = tag.range.location
244244
let length = closingTag.range.location-location
245-
attrStr.addAttributes(attribute.attributes, range: NSRange(location: location, length: length))
245+
let range = NSRange(location: location, length: length)
246+
attribute.fontData?.addAttributes(to: attrStr, range: range)
247+
attrStr.addAttributes(attribute.attributes, range: range)
246248
}
247249
}
248250

SwiftRichString.podspec

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
Pod::Spec.new do |s|
22
s.name = "SwiftRichString"
3-
s.version = "2.0.2"
3+
s.version = "2.0.3"
44
s.summary = "Elegant Strings & Attributed Strings Toolkit for Swift"
55
s.description = <<-DESC
66
SwiftRichString is the best toolkit to work easily with Strings and Attributed Strings.

0 commit comments

Comments
 (0)