# HG changeset patch # User Dennis Concepción Martín <66180929+denniscm190@users.noreply.github.com> # Date 1619798930 -7200 # Node ID 3204b99365d492246ff8aab8ae8804bd7696babe # Parent 3ea59f0cf62c3e7dd6155e26e1fcc626db140ef9 Test public init and struct diff -r 3ea59f0cf62c -r 3204b99365d4 DemoProject/DemoProject.xcodeproj/project.xcworkspace/xcshareddata/swiftpm/Package.resolved --- 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 } } diff -r 3ea59f0cf62c -r 3204b99365d4 DemoProject/DemoProject.xcodeproj/project.xcworkspace/xcuserdata/dennis.xcuserdatad/UserInterfaceState.xcuserstate Binary file DemoProject/DemoProject.xcodeproj/project.xcworkspace/xcuserdata/dennis.xcuserdatad/UserInterfaceState.xcuserstate has changed diff -r 3ea59f0cf62c -r 3204b99365d4 DemoProject/DemoProject/ContentView.swift --- 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") } diff -r 3ea59f0cf62c -r 3204b99365d4 Sources/StockCharts/LineChart/ChartView.swift --- 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 diff -r 3ea59f0cf62c -r 3204b99365d4 StockCharts.xcodeproj/project.xcworkspace/xcuserdata/dennis.xcuserdatad/UserInterfaceState.xcuserstate Binary file StockCharts.xcodeproj/project.xcworkspace/xcuserdata/dennis.xcuserdatad/UserInterfaceState.xcuserstate has changed