diff Sources/InteractiveCharts/LineChart/Helpers/LineView.swift @ 18:136de51a74f2

Change struct to public
author Dennis Concepción Martín <66180929+denniscm190@users.noreply.github.com>
date Wed, 28 Apr 2021 20:05:00 +0200
parents edf2bfcd8d97
children 24dfde3727c1
line wrap: on
line diff
--- a/Sources/InteractiveCharts/LineChart/Helpers/LineView.swift	Wed Apr 28 19:54:52 2021 +0200
+++ b/Sources/InteractiveCharts/LineChart/Helpers/LineView.swift	Wed Apr 28 20:05:00 2021 +0200
@@ -7,7 +7,7 @@
 
 import SwiftUI
 
-struct LineView: View {
+public struct LineView: View {
     var data: [Double]
     var dates: [String]?
     var hours: [String]?
@@ -17,7 +17,7 @@
     @State private var IndicatorPointPosition: CGPoint = .zero
     @State private var pathPoints = [CGPoint]()
     
-    var body: some View {
+    public var body: some View {
         ZStack {            
             GeometryReader { proxy in
                 LinePath(data: data, width: proxy.size.width, height: proxy.size.height, pathPoints: $pathPoints)