Skip to content

Commit

Permalink
支持Objective-C调用
Browse files Browse the repository at this point in the history
  • Loading branch information
pcjbird committed Jan 6, 2019
1 parent 308ba46 commit 1be87cf
Show file tree
Hide file tree
Showing 5 changed files with 7 additions and 4 deletions.
2 changes: 1 addition & 1 deletion fbCharm.podspec
Original file line number Diff line number Diff line change
@@ -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) 设定字体,从而使得文本混排更为优雅。
Expand Down
2 changes: 1 addition & 1 deletion fbCharm/Info.plist
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
<key>CFBundlePackageType</key>
<string>FMWK</string>
<key>CFBundleShortVersionString</key>
<string>1.0.4</string>
<string>1.0.5</string>
<key>CFBundleVersion</key>
<string>$(CURRENT_PROJECT_VERSION)</string>
</dict>
Expand Down
2 changes: 1 addition & 1 deletion fbCharm/fbCharm+NSMutableAttributedString.swift
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ import UIKit
/**
* NSMutableAttributedString 混合字体字符串扩展
*/
public extension NSMutableAttributedString {
@objc public extension NSMutableAttributedString {

/// 使用字体名称(font-name)列表初始化混合字体字符串
/// - Parameter text: 文本内容
Expand Down
2 changes: 1 addition & 1 deletion fbCharm/fbCharm+UIFont.swift
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ import UIKit
/**
* UIFont 扩展
*/
public extension UIFont {
@objc public extension UIFont {
convenience init(names: [String], size: CGFloat) {

if names.first != nil {
Expand Down
3 changes: 3 additions & 0 deletions fbCharm/fbCharm.h
Original file line number Diff line number Diff line change
Expand Up @@ -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
//
Expand Down

0 comments on commit 1be87cf

Please sign in to comment.