-
Notifications
You must be signed in to change notification settings - Fork 186
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
amao
committed
Feb 14, 2019
1 parent
58895dd
commit 6046ec7
Showing
33 changed files
with
876 additions
and
625 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
Pod::Spec.new do |s| | ||
s.name = 'M80AttributedLabel' | ||
s.version = '1.8.1' | ||
s.version = '1.9.0' | ||
s.authors = {'Xiang Wangfeng' => '[email protected]'} | ||
s.homepage = 'https://github.com/xiangwangfeng/M80AttributedLabel/' | ||
s.summary = 'Another attributed label using CoreText' | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
// | ||
// M80AttributedLabelConfig.h | ||
// M80AttributedLabel | ||
// | ||
// Created by amao on 2019/2/14. | ||
// | ||
|
||
#import <Foundation/Foundation.h> | ||
|
||
NS_ASSUME_NONNULL_BEGIN | ||
|
||
typedef NSArray * _Nullable (^M80LinkDetector)(NSString * _Nullable text); | ||
typedef BOOL (^M80SyncLinkChecker)(NSString * _Nullable text); | ||
|
||
|
||
@interface M80AttributedLabelConfig : NSObject | ||
@property (nonatomic,copy,nullable) M80LinkDetector detector; | ||
|
||
@property (nonatomic,copy,nullable) M80SyncLinkChecker checker; | ||
|
||
+ (instancetype)shared; | ||
|
||
@end | ||
|
||
NS_ASSUME_NONNULL_END |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
// | ||
// M80AttributedLabelConfig.m | ||
// M80AttributedLabel | ||
// | ||
// Created by amao on 2019/2/14. | ||
// | ||
|
||
#import "M80AttributedLabelConfig.h" | ||
|
||
@implementation M80AttributedLabelConfig | ||
+ (instancetype)shared | ||
{ | ||
static M80AttributedLabelConfig *instance = nil; | ||
static dispatch_once_t onceToken; | ||
dispatch_once(&onceToken, ^{ | ||
instance = [M80AttributedLabelConfig new]; | ||
}); | ||
return instance; | ||
} | ||
@end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
1 change: 1 addition & 0 deletions
1
OCDemo/Pods/Headers/Private/M80AttributedLabel/M80AttributedLabelConfig.h
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
1 change: 1 addition & 0 deletions
1
OCDemo/Pods/Headers/Public/M80AttributedLabel/M80AttributedLabelConfig.h
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Oops, something went wrong.