Skip to content

Commit

Permalink
renaming stuff
Browse files Browse the repository at this point in the history
  • Loading branch information
DragonCat4012 committed Mar 9, 2023
1 parent 217cf69 commit c143db0
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 6 deletions.
16 changes: 11 additions & 5 deletions CalqWidget/CalqWidget.swift
Original file line number Diff line number Diff line change
@@ -1,4 +1,10 @@
import CoreData
//
// CalqWidget.swift
// CalqWidgetExtension
//
// Created by Kiara on 09.03.23.
//

import SwiftUI
import WidgetKit

Expand Down Expand Up @@ -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()
}
}
}
Expand Down Expand Up @@ -66,7 +72,7 @@ struct CalqWidget: Widget {
}
}

struct lineWidget: Widget {
struct LineChartWidget: Widget {
let kind: String = "LineChartWidget"

var body: some WidgetConfiguration {
Expand Down Expand Up @@ -101,7 +107,7 @@ struct CalqWidgetBundle: WidgetBundle {
var body: some Widget{
CalqWidget()
BarChartWidget()
lineWidget()
LineChartWidget()
}
}

Expand Down
2 changes: 1 addition & 1 deletion CalqWidget/SmallCircleChart.swift
Original file line number Diff line number Diff line change
Expand Up @@ -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())
Expand Down

0 comments on commit c143db0

Please sign in to comment.