Skip to content

Commit bf1cc18

Browse files
committed
Fix bugs that can not change the title font
1 parent ca48724 commit bf1cc18

File tree

3 files changed

+7
-3
lines changed

3 files changed

+7
-3
lines changed
6.67 KB
Binary file not shown.

TKRadarChart/TKRadarChart.swift

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,13 +22,15 @@ public protocol TKRadarChartDataSource: class {
2222
/// You can custom chart by `TKRadarChartDelegate`
2323
public protocol TKRadarChartDelegate: class {
2424

25-
func colorOfTitleForRadarChart(_ radarChart: TKRadarChart) -> UIColor
2625
func colorOfLineForRadarChart(_ radarChart: TKRadarChart) -> UIColor
2726
func colorOfFillStepForRadarChart(_ radarChart: TKRadarChart, step: Int) -> UIColor
2827

2928
func colorOfSectionFillForRadarChart(_ radarChart: TKRadarChart, section: Int) -> UIColor
3029
func colorOfSectionBorderForRadarChart(_ radarChart: TKRadarChart, section: Int) -> UIColor
3130

31+
func fontOfTitleForRadarChart(_ radarChart: TKRadarChart) -> UIFont
32+
func colorOfTitleForRadarChart(_ radarChart: TKRadarChart) -> UIColor
33+
3234
}
3335

3436

TKRadarChartDemo/ViewController.swift

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -47,8 +47,6 @@ class ViewController: UIViewController, TKRadarChartDataSource, TKRadarChartDele
4747
}
4848

4949

50-
51-
5250
func colorOfLineForRadarChart(_ radarChart: TKRadarChart) -> UIColor {
5351
return UIColor(red:0.337, green:0.847, blue:0.976, alpha:1)
5452
}
@@ -84,6 +82,10 @@ class ViewController: UIViewController, TKRadarChartDataSource, TKRadarChartDele
8482
}
8583
}
8684

85+
func fontOfTitleForRadarChart(_ radarChart: TKRadarChart) -> UIFont {
86+
return UIFont.systemFont(ofSize: 10)
87+
}
88+
8789

8890

8991
}

0 commit comments

Comments
 (0)