Skip to content

Commit 30a1df2

Browse files
author
Francesco Leoni
committed
Release 1.4.2
1 parent b68489b commit 30a1df2

File tree

7 files changed

+12
-13
lines changed

7 files changed

+12
-13
lines changed

Example/Pods/Target Support Files/FLCharts/FLCharts-Info.plist

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Example/Pods/Target Support Files/Pods-FLCharts_Example/Pods-FLCharts_Example-Info.plist

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Example/Pods/Target Support Files/Pods-FLCharts_Tests/Pods-FLCharts_Tests-Info.plist

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

FLCharts.framework.zip

0 Bytes
Binary file not shown.

FLCharts.podspec

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55

66
Pod::Spec.new do |s|
77
s.name = 'FLCharts'
8-
s.version = '1.4.1'
8+
s.version = '1.4.2'
99
s.summary = 'Customizable iOS Charts built in Swift.'
1010

1111
s.description = <<-DESC

Sources/FLCharts/FLCartesianPlane.swift

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -121,8 +121,7 @@ public class FLCartesianPlane: UIView, FLStylable {
121121
context.saveGState()
122122

123123
labels.labels.removeAll()
124-
125-
config.setMarginDefault()
124+
config.resetDefaultMargins()
126125

127126
guard dataMaxValue > 0 else {
128127
drawNoDataLabel()

Sources/FLCharts/Models/Configurations/FLChartConfig.swift

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -88,13 +88,6 @@ public class FLChartConfig {
8888
margin.bottom += value
8989
}
9090

91-
func setMarginDefault(){
92-
margin.top = 5
93-
margin.left = 45
94-
margin.botton = 25
95-
margin.right = 0
96-
}
97-
9891
func setMargin(for yPosition: YPosition, horizontalMargin: CGFloat) {
9992
switch yPosition {
10093
case .left:
@@ -106,4 +99,11 @@ public class FLChartConfig {
10699
margin.right = horizontalMargin
107100
}
108101
}
102+
103+
func resetDefaultMargins() {
104+
margin.top = 5
105+
margin.left = 45
106+
margin.bottom = 25
107+
margin.right = 0
108+
}
109109
}

0 commit comments

Comments
 (0)