changeset 29:3204b99365d4

Test public init and struct
author Dennis Concepción Martín <66180929+denniscm190@users.noreply.github.com>
date Fri, 30 Apr 2021 18:08:50 +0200
parents 3ea59f0cf62c
children 716558986fed
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, 5 insertions(+), 4 deletions(-) [+]
line wrap: on
line diff
--- a/DemoProject/DemoProject.xcodeproj/project.xcworkspace/xcshareddata/swiftpm/Package.resolved	Fri Apr 30 18:07:25 2021 +0200
+++ b/DemoProject/DemoProject.xcodeproj/project.xcworkspace/xcshareddata/swiftpm/Package.resolved	Fri Apr 30 18:08:50 2021 +0200
@@ -6,7 +6,7 @@
         "repositoryURL": "https://github.com/denniscm190/StockCharts.git",
         "state": {
           "branch": "main",
-          "revision": "dd50b12beaad4caab37a7d16ec9f6aae4b59658c",
+          "revision": "44b5c5c6b18e70f157d34c7e037de95ec5a3c5dc",
           "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:07:25 2021 +0200
+++ b/DemoProject/DemoProject/ContentView.swift	Fri Apr 30 18:08:50 2021 +0200
@@ -11,8 +11,9 @@
 struct ContentView: View {
     var body: some View {
         TabView {
-            ChartView(
+//            Text("Hello world")
 //            ChartViewPreview(data: generateSampleData(350))
+            
                 .tabItem {
                     Label("ChartView", systemImage: "house")
                 }
--- a/Sources/StockCharts/LineChart/ChartView.swift	Fri Apr 30 18:07:25 2021 +0200
+++ b/Sources/StockCharts/LineChart/ChartView.swift	Fri Apr 30 18:08:50 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