-
Notifications
You must be signed in to change notification settings - Fork 0
/
ExampleDefaults.swift
94 lines (94 loc) · 2.98 KB
/
ExampleDefaults.swift
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
////
//// ExampleDefaults.swift
//// PoocoinV2
////
//// Created by Pozdnyshev Maksim on 6/29/21.
////
//
//import UIKit
//import SwiftCharts
//
//struct ExamplesDefaults {
//
// static var chartSettings: ChartSettings {
// return iPhoneChartSettings
// }
//
// static var chartSettingsWithPanZoom: ChartSettings {
// return iPhoneChartSettingsWithPanZoom
// }
//
// fileprivate static var iPadChartSettings: ChartSettings {
// var chartSettings = ChartSettings()
// chartSettings.leading = 20
// chartSettings.top = 20
// chartSettings.trailing = 20
// chartSettings.bottom = 20
// chartSettings.labelsToAxisSpacingX = 10
// chartSettings.labelsToAxisSpacingY = 10
// chartSettings.axisTitleLabelsToLabelsSpacing = 5
// chartSettings.axisStrokeWidth = 1
// chartSettings.spacingBetweenAxesX = 15
// chartSettings.spacingBetweenAxesY = 15
// chartSettings.labelsSpacing = 0
// return chartSettings
// }
//
// fileprivate static var iPhoneChartSettings: ChartSettings {
// var chartSettings = ChartSettings()
// chartSettings.leading = 10
// chartSettings.top = 10
// chartSettings.trailing = 10
// chartSettings.bottom = 10
// chartSettings.labelsToAxisSpacingX = 5
// chartSettings.labelsToAxisSpacingY = 5
// chartSettings.axisTitleLabelsToLabelsSpacing = 4
// chartSettings.axisStrokeWidth = 0.2
// chartSettings.spacingBetweenAxesX = 8
// chartSettings.spacingBetweenAxesY = 8
// chartSettings.labelsSpacing = 0
// return chartSettings
// }
//
// fileprivate static var iPadChartSettingsWithPanZoom: ChartSettings {
// var chartSettings = iPadChartSettings
// chartSettings.zoomPan.panEnabled = true
// chartSettings.zoomPan.zoomEnabled = true
// return chartSettings
// }
//
// fileprivate static var iPhoneChartSettingsWithPanZoom: ChartSettings {
// var chartSettings = iPhoneChartSettings
// chartSettings.zoomPan.panEnabled = true
// chartSettings.zoomPan.zoomEnabled = true
// return chartSettings
// }
//
// static func chartFrame(_ containerBounds: CGRect) -> CGRect {
// return CGRect(x: 0, y: 70, width: containerBounds.size.width, height: containerBounds.size.height - 70)
// }
//
// static var labelSettings: ChartLabelSettings {
// return ChartLabelSettings(font: ExamplesDefaults.labelFont)
// }
//
// static var labelFont: UIFont {
// return ExamplesDefaults.fontWithSize(11)
// }
//
// static var labelFontSmall: UIFont {
// return ExamplesDefaults.fontWithSize(10)
// }
//
// static func fontWithSize(_ size: CGFloat) -> UIFont {
// return UIFont(name: "Helvetica", size: size) ?? UIFont.systemFont(ofSize: size)
// }
//
// static var guidelinesWidth: CGFloat {
// return 0.1
// }
//
// static var minBarSpacing: CGFloat {
// return 5
// }
//}