Skip to content

Commit fbd2827

Browse files
committed
Carthage support.
1 parent ce81a88 commit fbd2827

File tree

8 files changed

+721
-9
lines changed

8 files changed

+721
-9
lines changed

PNChart/Info.plist

+24
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
<?xml version="1.0" encoding="UTF-8"?>
2+
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
3+
<plist version="1.0">
4+
<dict>
5+
<key>CFBundleDevelopmentRegion</key>
6+
<string>$(DEVELOPMENT_LANGUAGE)</string>
7+
<key>CFBundleExecutable</key>
8+
<string>$(EXECUTABLE_NAME)</string>
9+
<key>CFBundleIdentifier</key>
10+
<string>$(PRODUCT_BUNDLE_IDENTIFIER)</string>
11+
<key>CFBundleInfoDictionaryVersion</key>
12+
<string>6.0</string>
13+
<key>CFBundleName</key>
14+
<string>$(PRODUCT_NAME)</string>
15+
<key>CFBundlePackageType</key>
16+
<string>FMWK</string>
17+
<key>CFBundleShortVersionString</key>
18+
<string>1.0</string>
19+
<key>CFBundleVersion</key>
20+
<string>$(CURRENT_PROJECT_VERSION)</string>
21+
<key>NSPrincipalClass</key>
22+
<string></string>
23+
</dict>
24+
</plist>

PNChart/PNChart.h

+20-7
Original file line numberDiff line numberDiff line change
@@ -1,22 +1,35 @@
11
//
22
// PNChart.h
3-
// Version 0.1
43
// PNChart
54
//
6-
// Created by kevin on 10/3/13.
7-
// Copyright (c) 2013年 kevinzhow. All rights reserved.
5+
// Created by Everton Cunha on 06/03/18.
6+
// Copyright © 2018 kevinzhow. All rights reserved.
87
//
98

109
#import <UIKit/UIKit.h>
10+
11+
//! Project version number for PNChart.
12+
FOUNDATION_EXPORT double PNChartVersionNumber;
13+
14+
//! Project version string for PNChart.
15+
FOUNDATION_EXPORT const unsigned char PNChartVersionString[];
16+
17+
#import "PNScatterChart.h"
18+
#import "PNScatterChartData.h"
19+
#import "PNScatterChartDataItem.h"
1120
#import "PNChart.h"
21+
#import "PNChartDelegate.h"
22+
#import "PNChartLabel.h"
1223
#import "PNColor.h"
24+
#import "PNBar.h"
25+
#import "PNBarChart.h"
26+
#import "PNCircleChart.h"
1327
#import "PNLineChart.h"
1428
#import "PNLineChartData.h"
1529
#import "PNLineChartDataItem.h"
16-
#import "PNBarChart.h"
17-
#import "PNCircleChart.h"
18-
#import "PNChartDelegate.h"
1930
#import "PNPieChart.h"
20-
#import "PNScatterChart.h"
31+
#import "PNPieChartDataItem.h"
32+
#import "PNGenericChart.h"
2133
#import "PNRadarChart.h"
2234
#import "PNRadarChartDataItem.h"
35+
#import "PNChart.h"

PNChart/PNCircleChart.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88

99
#import <UIKit/UIKit.h>
1010
#import "PNColor.h"
11-
#import <UICountingLabel/UICountingLabel.h>
11+
#import "UICountingLabel.h"
1212

1313
typedef NS_ENUM (NSUInteger, PNChartFormatType) {
1414
PNChartFormatTypePercent,

PNChart/PNRadarChartDataItem.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
//
88

99
#import <Foundation/Foundation.h>
10-
10+
#import <CoreGraphics/CoreGraphics.h>
1111
@interface PNRadarChartDataItem : NSObject
1212

1313
+ (instancetype)dataItemWithValue:(CGFloat)value

PNChartDemo.xcodeproj/project.pbxproj

+263
Large diffs are not rendered by default.
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,82 @@
1+
<?xml version="1.0" encoding="UTF-8"?>
2+
<Scheme
3+
LastUpgradeVersion = "0920"
4+
version = "1.3">
5+
<BuildAction
6+
parallelizeBuildables = "YES"
7+
buildImplicitDependencies = "YES">
8+
<BuildActionEntries>
9+
<BuildActionEntry
10+
buildForTesting = "YES"
11+
buildForRunning = "YES"
12+
buildForProfiling = "YES"
13+
buildForArchiving = "YES"
14+
buildForAnalyzing = "YES">
15+
<BuildableReference
16+
BuildableIdentifier = "primary"
17+
BlueprintIdentifier = "3ED57DDB204F0C44003D6796"
18+
BuildableName = "PNChart.framework"
19+
BlueprintName = "PNChart"
20+
ReferencedContainer = "container:PNChartDemo.xcodeproj">
21+
</BuildableReference>
22+
</BuildActionEntry>
23+
</BuildActionEntries>
24+
</BuildAction>
25+
<TestAction
26+
buildConfiguration = "Debug"
27+
selectedDebuggerIdentifier = "Xcode.DebuggerFoundation.Debugger.LLDB"
28+
selectedLauncherIdentifier = "Xcode.DebuggerFoundation.Launcher.LLDB"
29+
language = ""
30+
shouldUseLaunchSchemeArgsEnv = "YES">
31+
<Testables>
32+
</Testables>
33+
<AdditionalOptions>
34+
</AdditionalOptions>
35+
</TestAction>
36+
<LaunchAction
37+
buildConfiguration = "Debug"
38+
selectedDebuggerIdentifier = "Xcode.DebuggerFoundation.Debugger.LLDB"
39+
selectedLauncherIdentifier = "Xcode.DebuggerFoundation.Launcher.LLDB"
40+
language = ""
41+
launchStyle = "0"
42+
useCustomWorkingDirectory = "NO"
43+
ignoresPersistentStateOnLaunch = "NO"
44+
debugDocumentVersioning = "YES"
45+
debugServiceExtension = "internal"
46+
allowLocationSimulation = "YES">
47+
<MacroExpansion>
48+
<BuildableReference
49+
BuildableIdentifier = "primary"
50+
BlueprintIdentifier = "3ED57DDB204F0C44003D6796"
51+
BuildableName = "PNChart.framework"
52+
BlueprintName = "PNChart"
53+
ReferencedContainer = "container:PNChartDemo.xcodeproj">
54+
</BuildableReference>
55+
</MacroExpansion>
56+
<AdditionalOptions>
57+
</AdditionalOptions>
58+
</LaunchAction>
59+
<ProfileAction
60+
buildConfiguration = "Release"
61+
shouldUseLaunchSchemeArgsEnv = "YES"
62+
savedToolIdentifier = ""
63+
useCustomWorkingDirectory = "NO"
64+
debugDocumentVersioning = "YES">
65+
<MacroExpansion>
66+
<BuildableReference
67+
BuildableIdentifier = "primary"
68+
BlueprintIdentifier = "3ED57DDB204F0C44003D6796"
69+
BuildableName = "PNChart.framework"
70+
BlueprintName = "PNChart"
71+
ReferencedContainer = "container:PNChartDemo.xcodeproj">
72+
</BuildableReference>
73+
</MacroExpansion>
74+
</ProfileAction>
75+
<AnalyzeAction
76+
buildConfiguration = "Debug">
77+
</AnalyzeAction>
78+
<ArchiveAction
79+
buildConfiguration = "Release"
80+
revealArchiveInOrganizer = "YES">
81+
</ArchiveAction>
82+
</Scheme>

UICountingLabel.h

+38
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
1+
#import <Foundation/Foundation.h>
2+
#import <UIKit/UIKit.h>
3+
4+
typedef NS_ENUM(NSInteger, UILabelCountingMethod) {
5+
UILabelCountingMethodEaseInOut,
6+
UILabelCountingMethodEaseIn,
7+
UILabelCountingMethodEaseOut,
8+
UILabelCountingMethodLinear,
9+
UILabelCountingMethodEaseInBounce,
10+
UILabelCountingMethodEaseOutBounce
11+
};
12+
13+
typedef NSString* (^UICountingLabelFormatBlock)(CGFloat value);
14+
typedef NSAttributedString* (^UICountingLabelAttributedFormatBlock)(CGFloat value);
15+
16+
@interface UICountingLabel : UILabel
17+
18+
@property (nonatomic, strong) NSString *format;
19+
@property (nonatomic, assign) UILabelCountingMethod method;
20+
@property (nonatomic, assign) NSTimeInterval animationDuration;
21+
22+
@property (nonatomic, copy) UICountingLabelFormatBlock formatBlock;
23+
@property (nonatomic, copy) UICountingLabelAttributedFormatBlock attributedFormatBlock;
24+
@property (nonatomic, copy) void (^completionBlock)(void);
25+
26+
-(void)countFrom:(CGFloat)startValue to:(CGFloat)endValue;
27+
-(void)countFrom:(CGFloat)startValue to:(CGFloat)endValue withDuration:(NSTimeInterval)duration;
28+
29+
-(void)countFromCurrentValueTo:(CGFloat)endValue;
30+
-(void)countFromCurrentValueTo:(CGFloat)endValue withDuration:(NSTimeInterval)duration;
31+
32+
-(void)countFromZeroTo:(CGFloat)endValue;
33+
-(void)countFromZeroTo:(CGFloat)endValue withDuration:(NSTimeInterval)duration;
34+
35+
- (CGFloat)currentValue;
36+
37+
@end
38+

0 commit comments

Comments
 (0)