From c143db0feb40a4a2b6eee5746be9744e8423ff0a Mon Sep 17 00:00:00 2001 From: Kiara <68660034+DragonCat4012@users.noreply.github.com> Date: Thu, 9 Mar 2023 17:32:11 +0100 Subject: [PATCH] renaming stuff --- CalqWidget/CalqWidget.swift | 16 +++++++++++----- CalqWidget/SmallCircleChart.swift | 2 +- 2 files changed, 12 insertions(+), 6 deletions(-) diff --git a/CalqWidget/CalqWidget.swift b/CalqWidget/CalqWidget.swift index 7c7f173..f52ffa9 100644 --- a/CalqWidget/CalqWidget.swift +++ b/CalqWidget/CalqWidget.swift @@ -1,4 +1,10 @@ -import CoreData +// +// CalqWidget.swift +// CalqWidgetExtension +// +// Created by Kiara on 09.03.23. +// + import SwiftUI import WidgetKit @@ -30,9 +36,9 @@ private struct CalqWidgetEntryView: View { var body: some View { switch family { - case .systemSmall: AverageView() + case .systemSmall: CircleChartWidgetView() case .systemMedium: BarChartWidgetView() - default: AverageView() + default: CircleChartWidgetView() } } } @@ -66,7 +72,7 @@ struct CalqWidget: Widget { } } -struct lineWidget: Widget { +struct LineChartWidget: Widget { let kind: String = "LineChartWidget" var body: some WidgetConfiguration { @@ -101,7 +107,7 @@ struct CalqWidgetBundle: WidgetBundle { var body: some Widget{ CalqWidget() BarChartWidget() - lineWidget() + LineChartWidget() } } diff --git a/CalqWidget/SmallCircleChart.swift b/CalqWidget/SmallCircleChart.swift index 2e75e3f..48b7350 100644 --- a/CalqWidget/SmallCircleChart.swift +++ b/CalqWidget/SmallCircleChart.swift @@ -7,7 +7,7 @@ import SwiftUI -struct AverageView: View { +struct CircleChartWidgetView: View { var body: some View { ProgressView("Loading...", value: Util.generalAverage(), total: 15) .progressViewStyle(CustomCircularProgressViewStyle())