Skip to content

Commit d82175c

Browse files
authored
Merge branch 'dev' into main
2 parents 0fcac0e + 81e93ea commit d82175c

File tree

4 files changed

+11
-11
lines changed

4 files changed

+11
-11
lines changed

Expenso.xcodeproj/project.pbxproj

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,7 @@
4848
73BD61BD25DEBC3F00E85F67 /* ExpenseFilterChartView.swift in Sources */ = {isa = PBXBuildFile; fileRef = 73BD61BC25DEBC3F00E85F67 /* ExpenseFilterChartView.swift */; };
4949
753CBDD325F36864005762B8 /* BiometricAuthUtility.swift in Sources */ = {isa = PBXBuildFile; fileRef = 753CBDD225F36864005762B8 /* BiometricAuthUtility.swift */; };
5050
75C6B48025F37FD20079BCFC /* AuthenticationViewModel.swift in Sources */ = {isa = PBXBuildFile; fileRef = 75C6B47F25F37FD20079BCFC /* AuthenticationViewModel.swift */; };
51+
73E688DA25FF32790000462A /* ChartView.swift in Sources */ = {isa = PBXBuildFile; fileRef = 73E688D925FF32790000462A /* ChartView.swift */; };
5152
FF29C9FFAF86E0452686C5D0 /* Pods_Expenso.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 1B0E373FB89DD0864398FEE7 /* Pods_Expenso.framework */; };
5253
/* End PBXBuildFile section */
5354

@@ -97,6 +98,7 @@
9798
73BD61BC25DEBC3F00E85F67 /* ExpenseFilterChartView.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = ExpenseFilterChartView.swift; sourceTree = "<group>"; };
9899
753CBDD225F36864005762B8 /* BiometricAuthUtility.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = BiometricAuthUtility.swift; sourceTree = "<group>"; };
99100
75C6B47F25F37FD20079BCFC /* AuthenticationViewModel.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = AuthenticationViewModel.swift; sourceTree = "<group>"; };
101+
73E688D925FF32790000462A /* ChartView.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = ChartView.swift; sourceTree = "<group>"; };
100102
B07E4D1AF457AB52E048A8B5 /* Pods-Expenso.release.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-Expenso.release.xcconfig"; path = "Target Support Files/Pods-Expenso/Pods-Expenso.release.xcconfig"; sourceTree = "<group>"; };
101103
/* End PBXFileReference section */
102104

@@ -200,6 +202,7 @@
200202
738B1C5125C6632F0067407B /* HelperMethods.swift */,
201203
736C721A25CFE8E200720DEA /* LottieView.swift */,
202204
73998C5425DA5578007D735B /* AttachmentHandler.swift */,
205+
73E688D925FF32790000462A /* ChartView.swift */,
203206
);
204207
path = Helpers;
205208
sourceTree = "<group>";
@@ -253,7 +256,6 @@
253256
isa = PBXGroup;
254257
children = (
255258
738B1C8A25C67D880067407B /* ExpenseFilterView.swift */,
256-
73BD61BC25DEBC3F00E85F67 /* ExpenseFilterChartView.swift */,
257259
);
258260
path = ExpenseFilter;
259261
sourceTree = "<group>";
@@ -424,7 +426,6 @@
424426
isa = PBXSourcesBuildPhase;
425427
buildActionMask = 2147483647;
426428
files = (
427-
73BD61BD25DEBC3F00E85F67 /* ExpenseFilterChartView.swift in Sources */,
428429
738B1C3825C661750067407B /* ExpenseView.swift in Sources */,
429430
73998C5525DA5578007D735B /* AttachmentHandler.swift in Sources */,
430431
738B1C8425C6764B0067407B /* ExpenseDetailedViewModel.swift in Sources */,
@@ -449,6 +450,7 @@
449450
738B1C4925C662F20067407B /* DropdownButton.swift in Sources */,
450451
738B1C7025C674120067407B /* ExpenseSettingsViewModel.swift in Sources */,
451452
738B1C2F25C65EF70067407B /* Configs.swift in Sources */,
453+
73E688DA25FF32790000462A /* ChartView.swift in Sources */,
452454
736C721B25CFE8E200720DEA /* LottieView.swift in Sources */,
453455
738B1C7725C675200067407B /* AddExpenseView.swift in Sources */,
454456
738B1C8025C6763E0067407B /* ExpenseDetailedView.swift in Sources */,
Binary file not shown.

Expenso/Authenticate/AuthenticateView.swift

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,9 @@ struct AuthenticateView: View {
3737
.accentColor(Color.text_primary_color)
3838
}.padding(.horizontal)
3939
Spacer()
40-
}.edgesIgnoringSafeArea(.all)
40+
}
41+
.edgesIgnoringSafeArea(.all)
42+
.onAppear(perform: { self.authenticate() })
4143
}
4244
.navigationBarHidden(true)
4345
}

Expenso/ExpenseFilter/ExpenseFilterChartView.swift renamed to Expenso/Helpers/ChartView.swift

Lines changed: 4 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,16 @@
11
//
2-
// ExpenseFilterChartView.swift
2+
// ChartView.swift
33
// Expenso
44
//
5-
// Created by Sameer Nawaz on 18/02/21.
5+
// Created by Sameer Nawaz on 15/03/21.
66
//
77

88
import SwiftUI
99
import Charts
1010

1111
struct ChartView: UIViewRepresentable {
1212

13-
var label: String
14-
var entries: [PieChartDataEntry]
13+
var label: String, entries: [PieChartDataEntry]
1514

1615
func makeUIView(context: Context) -> PieChartView {
1716
let pieChartView = PieChartView()
@@ -31,10 +30,7 @@ struct ChartView: UIViewRepresentable {
3130
}
3231

3332
struct ChartModel {
34-
35-
var transType: String
36-
var transAmount: Double
37-
33+
var transType: String, transAmount: Double
3834
static func getTransaction(transactions: [ChartModel]) -> [PieChartDataEntry] {
3935
return transactions.map { PieChartDataEntry(value: $0.transAmount, label: $0.transType) }
4036
}

0 commit comments

Comments
 (0)