Skip to content

Commit

Permalink
Merge branch 'release/3.0.4'
Browse files Browse the repository at this point in the history
  • Loading branch information
malcommac committed Dec 11, 2019
2 parents 434b753 + 20d0df9 commit d87ed23
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 3 deletions.
3 changes: 3 additions & 0 deletions Sources/SwiftRichString/Style/Style.swift
Original file line number Diff line number Diff line change
Expand Up @@ -616,6 +616,9 @@ public class Style: StyleProtocol {
// string to generate a single attributes dictionary for `NSAttributedString`.
let fontAttributes = self.fontData?.attributes ?? [:]
self.cachedAttributes = self.innerAttributes.merging(fontAttributes) { (_, new) in return new }
if let font = self.fontData?.font {
self.cachedAttributes?[.font] = font
}
return self.cachedAttributes!
}

Expand Down
2 changes: 1 addition & 1 deletion SwiftRichString.podspec
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
Pod::Spec.new do |s|
s.name = "SwiftRichString"
s.version = "3.0.3"
s.version = "3.0.4"
s.summary = "Elegant Strings & Attributed Strings Toolkit for Swift"
s.description = <<-DESC
SwiftRichString is the best toolkit to work easily with Strings and Attributed Strings.
Expand Down
4 changes: 2 additions & 2 deletions SwiftRichString.xcodeproj/project.pbxproj
Original file line number Diff line number Diff line change
Expand Up @@ -1699,7 +1699,7 @@
INSTALL_PATH = "$(LOCAL_LIBRARY_DIR)/Frameworks";
LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/../Frameworks @loader_path/Frameworks";
MACOSX_DEPLOYMENT_TARGET = 10.10;
MARKETING_VERSION = 3.0.3;
MARKETING_VERSION = 3.0.4;
PRODUCT_BUNDLE_IDENTIFIER = "com.SwiftRichString.SwiftRichString-macOS";
PRODUCT_NAME = SwiftRichString;
SDKROOT = macosx;
Expand All @@ -1725,7 +1725,7 @@
INSTALL_PATH = "$(LOCAL_LIBRARY_DIR)/Frameworks";
LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/../Frameworks @loader_path/Frameworks";
MACOSX_DEPLOYMENT_TARGET = 10.10;
MARKETING_VERSION = 3.0.3;
MARKETING_VERSION = 3.0.4;
PRODUCT_BUNDLE_IDENTIFIER = "com.SwiftRichString.SwiftRichString-macOS";
PRODUCT_NAME = SwiftRichString;
SDKROOT = macosx;
Expand Down

0 comments on commit d87ed23

Please sign in to comment.