Mercurial > public > stock-charts
changeset 27:704ddee7d78f
Test public init and struct
author | Dennis Concepción Martín <66180929+denniscm190@users.noreply.github.com> |
---|---|
date | Fri, 30 Apr 2021 18:06:36 +0200 |
parents | 787ad339ba72 |
children | 3ea59f0cf62c |
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, 7 insertions(+), 5 deletions(-) [+] |
line wrap: on
line diff
--- a/DemoProject/DemoProject.xcodeproj/project.xcworkspace/xcshareddata/swiftpm/Package.resolved Fri Apr 30 18:05:04 2021 +0200 +++ b/DemoProject/DemoProject.xcodeproj/project.xcworkspace/xcshareddata/swiftpm/Package.resolved Fri Apr 30 18:06:36 2021 +0200 @@ -6,7 +6,7 @@ "repositoryURL": "https://github.com/denniscm190/StockCharts.git", "state": { "branch": "main", - "revision": "014e730f72937c5ecc6e82d28db6ce8af87a319d", + "revision": "70a9b40d75ce9e88c31d98933b78e56ed5860b4b", "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:05:04 2021 +0200 +++ b/DemoProject/DemoProject/ContentView.swift Fri Apr 30 18:06:36 2021 +0200 @@ -11,6 +11,7 @@ struct ContentView: View { var body: some View { TabView { + ChartView() // ChartViewPreview(data: generateSampleData(350)) .tabItem { Label("ChartView", systemImage: "house")
--- a/Sources/StockCharts/LineChart/ChartView.swift Fri Apr 30 18:05:04 2021 +0200 +++ b/Sources/StockCharts/LineChart/ChartView.swift Fri Apr 30 18:06:36 2021 +0200 @@ -23,11 +23,12 @@ public var body: some View { VStack { - ChartLabel(data: data, dates: dates, hours: hours, indexPosition: $indexPosition) - .opacity(showingIndicators ? 1: 0) - .padding(.vertical) + Text("Hello") +// ChartLabel(data: data, dates: dates, hours: hours, indexPosition: $indexPosition) +// .opacity(showingIndicators ? 1: 0) +// .padding(.vertical) - LineView(data: data, showingIndicators: $showingIndicators, indexPosition: $indexPosition) +// LineView(data: data, showingIndicators: $showingIndicators, indexPosition: $indexPosition) } } }