Skip to content

Commit d87ed23

Browse files
committed
Merge branch 'release/3.0.4'
2 parents 434b753 + 20d0df9 commit d87ed23

File tree

3 files changed

+6
-3
lines changed

3 files changed

+6
-3
lines changed

Sources/SwiftRichString/Style/Style.swift

+3
Original file line numberDiff line numberDiff line change
@@ -616,6 +616,9 @@ public class Style: StyleProtocol {
616616
// string to generate a single attributes dictionary for `NSAttributedString`.
617617
let fontAttributes = self.fontData?.attributes ?? [:]
618618
self.cachedAttributes = self.innerAttributes.merging(fontAttributes) { (_, new) in return new }
619+
if let font = self.fontData?.font {
620+
self.cachedAttributes?[.font] = font
621+
}
619622
return self.cachedAttributes!
620623
}
621624

SwiftRichString.podspec

+1-1
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 = "3.0.3"
3+
s.version = "3.0.4"
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.

SwiftRichString.xcodeproj/project.pbxproj

+2-2
Original file line numberDiff line numberDiff line change
@@ -1699,7 +1699,7 @@
16991699
INSTALL_PATH = "$(LOCAL_LIBRARY_DIR)/Frameworks";
17001700
LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/../Frameworks @loader_path/Frameworks";
17011701
MACOSX_DEPLOYMENT_TARGET = 10.10;
1702-
MARKETING_VERSION = 3.0.3;
1702+
MARKETING_VERSION = 3.0.4;
17031703
PRODUCT_BUNDLE_IDENTIFIER = "com.SwiftRichString.SwiftRichString-macOS";
17041704
PRODUCT_NAME = SwiftRichString;
17051705
SDKROOT = macosx;
@@ -1725,7 +1725,7 @@
17251725
INSTALL_PATH = "$(LOCAL_LIBRARY_DIR)/Frameworks";
17261726
LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/../Frameworks @loader_path/Frameworks";
17271727
MACOSX_DEPLOYMENT_TARGET = 10.10;
1728-
MARKETING_VERSION = 3.0.3;
1728+
MARKETING_VERSION = 3.0.4;
17291729
PRODUCT_BUNDLE_IDENTIFIER = "com.SwiftRichString.SwiftRichString-macOS";
17301730
PRODUCT_NAME = SwiftRichString;
17311731
SDKROOT = macosx;

0 commit comments

Comments
 (0)