diff --git a/fbCharm.podspec b/fbCharm.podspec index b1c672a..bc85c18 100644 --- a/fbCharm.podspec +++ b/fbCharm.podspec @@ -1,6 +1,6 @@ Pod::Spec.new do |s| s.name = "fbCharm" - s.version = "1.0.4" + s.version = "1.0.5" s.summary = "iOS 上利用 fallback 机制为不同语言的文字 (script) 设定字体,从而使得文本混排更为优雅。" s.description = <<-DESC iOS 上利用 fallback 机制为不同语言的文字 (script) 设定字体,从而使得文本混排更为优雅。 diff --git a/fbCharm/Info.plist b/fbCharm/Info.plist index f7063e0..3f0962f 100644 --- a/fbCharm/Info.plist +++ b/fbCharm/Info.plist @@ -15,7 +15,7 @@ CFBundlePackageType FMWK CFBundleShortVersionString - 1.0.4 + 1.0.5 CFBundleVersion $(CURRENT_PROJECT_VERSION) diff --git a/fbCharm/fbCharm+NSMutableAttributedString.swift b/fbCharm/fbCharm+NSMutableAttributedString.swift index 370e90d..837845e 100644 --- a/fbCharm/fbCharm+NSMutableAttributedString.swift +++ b/fbCharm/fbCharm+NSMutableAttributedString.swift @@ -12,7 +12,7 @@ import UIKit /** * NSMutableAttributedString 混合字体字符串扩展 */ -public extension NSMutableAttributedString { +@objc public extension NSMutableAttributedString { /// 使用字体名称(font-name)列表初始化混合字体字符串 /// - Parameter text: 文本内容 diff --git a/fbCharm/fbCharm+UIFont.swift b/fbCharm/fbCharm+UIFont.swift index 9e94198..20e2074 100644 --- a/fbCharm/fbCharm+UIFont.swift +++ b/fbCharm/fbCharm+UIFont.swift @@ -12,7 +12,7 @@ import UIKit /** * UIFont 扩展 */ -public extension UIFont { +@objc public extension UIFont { convenience init(names: [String], size: CGFloat) { if names.first != nil { diff --git a/fbCharm/fbCharm.h b/fbCharm/fbCharm.h index 0ccfb87..7966e49 100644 --- a/fbCharm/fbCharm.h +++ b/fbCharm/fbCharm.h @@ -8,6 +8,9 @@ // 框架名称:fbCharm // 框架功能:iOS 上利用 fallback 机制为不同语言的文字 (script) 设定字体,从而使得文本混排更为优雅。 // 修改记录: +// pcjbird 2019-01-06 Version:1.0.5 Build:201801060001 +// 1.支持 Objective-C 调用 +// // pcjbird 2018-12-18 Version:1.0.4 Build:201812180003 // 1.更新Cocoapods上的logo //