-
Notifications
You must be signed in to change notification settings - Fork 106
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #90 from xiangxiaopenyou/master
v8.3.0
- Loading branch information
Showing
285 changed files
with
4,891 additions
and
3,035 deletions.
There are no files selected for viewing
418 changes: 418 additions & 0 deletions
418
FUCommonUIComponent/FUCommonUIComponent.xcodeproj/project.pbxproj
Large diffs are not rendered by default.
Oops, something went wrong.
7 changes: 7 additions & 0 deletions
7
...monUIComponent/FUCommonUIComponent.xcodeproj/project.xcworkspace/contents.xcworkspacedata
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
8 changes: 8 additions & 0 deletions
8
...t/FUCommonUIComponent.xcodeproj/project.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist
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,8 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd"> | ||
<plist version="1.0"> | ||
<dict> | ||
<key>IDEDidComputeMac32BitWarning</key> | ||
<true/> | ||
</dict> | ||
</plist> |
14 changes: 14 additions & 0 deletions
14
...mmonUIComponent.xcodeproj/xcuserdata/sunmu.xcuserdatad/xcschemes/xcschememanagement.plist
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,14 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd"> | ||
<plist version="1.0"> | ||
<dict> | ||
<key>SchemeUserState</key> | ||
<dict> | ||
<key>FUCommonUIComponent.xcscheme_^#shared#^_</key> | ||
<dict> | ||
<key>orderHint</key> | ||
<integer>13</integer> | ||
</dict> | ||
</dict> | ||
</dict> | ||
</plist> |
21 changes: 21 additions & 0 deletions
21
FUCommonUIComponent/FUCommonUIComponent/FUCommonUIComponent.h
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,21 @@ | ||
// | ||
// FUCommonUIComponent.h | ||
// FUCommonUIComponent | ||
// | ||
// Created by 项林平 on 2022/6/17. | ||
// | ||
|
||
#import <Foundation/Foundation.h> | ||
#import "FUSegmentBar.h" | ||
#import "FUTipHUD.h" | ||
#import "FUInsetsLabel.h" | ||
#import "FUSlider.h" | ||
|
||
|
||
//! Project version number for FUCommonUIComponent. | ||
FOUNDATION_EXPORT double FUCommonUIComponentVersionNumber; | ||
|
||
//! Project version string for FUCommonUIComponent. | ||
FOUNDATION_EXPORT const unsigned char FUCommonUIComponentVersionString[]; | ||
|
||
// In this header, you should import all the public headers of your framework using statements like #import <FUCommonUIComponent/PublicHeader.h> |
20 changes: 20 additions & 0 deletions
20
FUCommonUIComponent/FUCommonUIComponent/FUCommonUIDefine.h
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 @@ | ||
// | ||
// FUCommonUIDefine.h | ||
// FUCommonUIComponent | ||
// | ||
// Created by 项林平 on 2022/6/20. | ||
// | ||
|
||
#import <AVFoundation/AVFoundation.h> | ||
#import <UIKit/UIKit.h> | ||
|
||
#ifndef FUCommonUIDefine_h | ||
#define FUCommonUIDefine_h | ||
|
||
static inline UIImage * FUCommonUIImageNamed(NSString *name) { | ||
NSString *path = [[NSBundle mainBundle] pathForResource:@"FUCommonUIComponent" ofType:@"framework" inDirectory:@"Frameworks"]; | ||
NSBundle *bundle = [NSBundle bundleWithPath:path]; | ||
return [UIImage imageNamed:name inBundle:bundle compatibleWithTraitCollection:nil];; | ||
} | ||
|
||
#endif /* FUCommonUIDefine_h */ |
18 changes: 18 additions & 0 deletions
18
FUCommonUIComponent/FUCommonUIComponent/FUInsetLabel/FUInsetsLabel.h
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,18 @@ | ||
// | ||
// FUInsetsLabel.h | ||
// FUCommonUIComponent | ||
// | ||
// Created by 项林平 on 2022/6/20. | ||
// | ||
|
||
#import <UIKit/UIKit.h> | ||
|
||
NS_ASSUME_NONNULL_BEGIN | ||
|
||
@interface FUInsetsLabel : UILabel | ||
|
||
- (instancetype)initWithFrame:(CGRect)frame insets:(UIEdgeInsets)insets; | ||
|
||
@end | ||
|
||
NS_ASSUME_NONNULL_END |
48 changes: 48 additions & 0 deletions
48
FUCommonUIComponent/FUCommonUIComponent/FUInsetLabel/FUInsetsLabel.m
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,48 @@ | ||
// | ||
// FUInsetsLabel.m | ||
// FUCommonUIComponent | ||
// | ||
// Created by 项林平 on 2022/6/20. | ||
// | ||
|
||
#import "FUInsetsLabel.h" | ||
|
||
@interface FUInsetsLabel () | ||
|
||
@property (nonatomic) UIEdgeInsets insets; | ||
|
||
@end | ||
|
||
@implementation FUInsetsLabel | ||
|
||
- (instancetype)initWithFrame:(CGRect)frame { | ||
return [self initWithFrame:frame insets:UIEdgeInsetsMake(8, 8, 8, 8)]; | ||
} | ||
|
||
- (instancetype)initWithFrame:(CGRect)frame insets:(UIEdgeInsets)insets { | ||
self = [super initWithFrame:frame]; | ||
if (self) { | ||
self.insets = insets; | ||
} | ||
return self; | ||
} | ||
|
||
- (void)drawTextInRect:(CGRect)rect { | ||
[super drawTextInRect:UIEdgeInsetsInsetRect(rect, self.insets)]; | ||
} | ||
|
||
- (CGSize)sizeThatFits:(CGSize)size { | ||
CGSize fitSize = [super sizeThatFits:size]; | ||
fitSize.width += self.insets.left + self.insets.right; | ||
fitSize.height += self.insets.top + self.insets.bottom; | ||
return fitSize; | ||
} | ||
|
||
- (CGSize)intrinsicContentSize { | ||
CGSize contentSize = [super intrinsicContentSize]; | ||
contentSize.width += self.insets.left + self.insets.right; | ||
contentSize.height += self.insets.top + self.insets.bottom; | ||
return contentSize; | ||
} | ||
|
||
@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
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
Oops, something went wrong.