changeset 28:3ea59f0cf62c

Test public init and struct
author Dennis Concepción Martín <66180929+denniscm190@users.noreply.github.com>
date Fri, 30 Apr 2021 18:07:25 +0200
parents 704ddee7d78f
children 3204b99365d4
files DemoProject/DemoProject.xcodeproj/project.xcworkspace/xcshareddata/swiftpm/Package.resolved DemoProject/DemoProject.xcodeproj/project.xcworkspace/xcuserdata/dennis.xcuserdatad/UserInterfaceState.xcuserstate DemoProject/DemoProject/ContentView.swift Sources/StockCharts/LineChart/ChartView.swift StockCharts.xcodeproj/project.xcworkspace/xcuserdata/dennis.xcuserdatad/UserInterfaceState.xcuserstate
diffstat 5 files changed, 4 insertions(+), 4 deletions(-) [+]
line wrap: on
line diff
--- a/DemoProject/DemoProject.xcodeproj/project.xcworkspace/xcshareddata/swiftpm/Package.resolved	Fri Apr 30 18:06:36 2021 +0200
+++ b/DemoProject/DemoProject.xcodeproj/project.xcworkspace/xcshareddata/swiftpm/Package.resolved	Fri Apr 30 18:07:25 2021 +0200
@@ -6,7 +6,7 @@
         "repositoryURL": "https://github.com/denniscm190/StockCharts.git",
         "state": {
           "branch": "main",
-          "revision": "70a9b40d75ce9e88c31d98933b78e56ed5860b4b",
+          "revision": "dd50b12beaad4caab37a7d16ec9f6aae4b59658c",
           "version": null
         }
       }
Binary file DemoProject/DemoProject.xcodeproj/project.xcworkspace/xcuserdata/dennis.xcuserdatad/UserInterfaceState.xcuserstate has changed
--- a/DemoProject/DemoProject/ContentView.swift	Fri Apr 30 18:06:36 2021 +0200
+++ b/DemoProject/DemoProject/ContentView.swift	Fri Apr 30 18:07:25 2021 +0200
@@ -11,7 +11,7 @@
 struct ContentView: View {
     var body: some View {
         TabView {
-            ChartView()
+            ChartView(
 //            ChartViewPreview(data: generateSampleData(350))
                 .tabItem {
                     Label("ChartView", systemImage: "house")
--- a/Sources/StockCharts/LineChart/ChartView.swift	Fri Apr 30 18:06:36 2021 +0200
+++ b/Sources/StockCharts/LineChart/ChartView.swift	Fri Apr 30 18:07:25 2021 +0200
@@ -12,8 +12,8 @@
     public var dates: [String]?
     public var hours: [String]?
     
-    @State var showingIndicators = false
-    @State var indexPosition = Int()
+//    @State var showingIndicators = false
+//    @State var indexPosition = Int()
     
     public init(data: [Double], dates: [String]?, hours: [String]?) {
         self.data = data
Binary file StockCharts.xcodeproj/project.xcworkspace/xcuserdata/dennis.xcuserdatad/UserInterfaceState.xcuserstate has changed