Skip to content

Commit

Permalink
Merge pull request #36 from Mcrich23/main
Browse files Browse the repository at this point in the history
Fixed ContentView, changed Task {} in SignUp
  • Loading branch information
N3v1 committed Dec 15, 2023
2 parents 68160af + d1af05b commit 3d8672b
Show file tree
Hide file tree
Showing 7 changed files with 29 additions and 14 deletions.
2 changes: 1 addition & 1 deletion SLAComponents
17 changes: 16 additions & 1 deletion ScribbleLab.xcodeproj/project.pbxproj
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,11 @@
archiveVersion = 1;
classes = {
};
objectVersion = 56;
objectVersion = 60;
objects = {

/* Begin PBXBuildFile section */
22C38C8D2B2CC33500FE4C73 /* SLAComponents in Frameworks */ = {isa = PBXBuildFile; productRef = 22C38C8C2B2CC33500FE4C73 /* SLAComponents */; };
38066B4F2AFE9F0E001A88D5 /* SLUpdateViewModel.swift in Sources */ = {isa = PBXBuildFile; fileRef = 38066B4E2AFE9F0E001A88D5 /* SLUpdateViewModel.swift */; };
38066B522AFEA235001A88D5 /* WaitSheetView.swift in Sources */ = {isa = PBXBuildFile; fileRef = 38066B512AFEA235001A88D5 /* WaitSheetView.swift */; };
380BC6392B26029600DCF442 /* Stripe in Frameworks */ = {isa = PBXBuildFile; productRef = 380BC6382B26029600DCF442 /* Stripe */; };
Expand Down Expand Up @@ -345,6 +346,7 @@
38E5BBB42AE41F2900FFFE7C /* Updates in Frameworks */,
380BC63D2B26029600DCF442 /* StripeIdentity in Frameworks */,
383588462AFEDC6F00EEA1C3 /* FirebasePerformance in Frameworks */,
22C38C8D2B2CC33500FE4C73 /* SLAComponents in Frameworks */,
380D93932AE4280900277D2D /* Kingfisher in Frameworks */,
380D93952AE4289500277D2D /* FirebaseFirestoreSwift in Frameworks */,
380BC6412B26029600DCF442 /* StripePayments in Frameworks */,
Expand Down Expand Up @@ -1355,6 +1357,7 @@
380BC63E2B26029600DCF442 /* StripePaymentSheet */,
380BC6402B26029600DCF442 /* StripePayments */,
380BC6422B26029600DCF442 /* StripePaymentsUI */,
22C38C8C2B2CC33500FE4C73 /* SLAComponents */,
);
productName = ScribbleLab;
productReference = 38AE9C982AD0750F00B761E8 /* ScribbleLab.app */;
Expand Down Expand Up @@ -1451,6 +1454,7 @@
381792632AFFC017002A4551 /* XCRemoteSwiftPackageReference "AlertToast" */,
38A5E9C02B03F0140037C668 /* XCRemoteSwiftPackageReference "iPhoneNumberField" */,
380BC6372B26029600DCF442 /* XCRemoteSwiftPackageReference "stripe-ios-spm" */,
22C38C8B2B2CC33500FE4C73 /* XCLocalSwiftPackageReference "SLAComponents" */,
);
productRefGroup = 38AE9C992AD0750F00B761E8 /* Products */;
projectDirPath = "";
Expand Down Expand Up @@ -2688,6 +2692,13 @@
};
/* End XCConfigurationList section */

/* Begin XCLocalSwiftPackageReference section */
22C38C8B2B2CC33500FE4C73 /* XCLocalSwiftPackageReference "SLAComponents" */ = {
isa = XCLocalSwiftPackageReference;
relativePath = SLAComponents;
};
/* End XCLocalSwiftPackageReference section */

/* Begin XCRemoteSwiftPackageReference section */
380BC6372B26029600DCF442 /* XCRemoteSwiftPackageReference "stripe-ios-spm" */ = {
isa = XCRemoteSwiftPackageReference;
Expand Down Expand Up @@ -2756,6 +2767,10 @@
/* End XCRemoteSwiftPackageReference section */

/* Begin XCSwiftPackageProductDependency section */
22C38C8C2B2CC33500FE4C73 /* SLAComponents */ = {
isa = XCSwiftPackageProductDependency;
productName = SLAComponents;
};
380BC6382B26029600DCF442 /* Stripe */ = {
isa = XCSwiftPackageProductDependency;
package = 380BC6372B26029600DCF442 /* XCRemoteSwiftPackageReference "stripe-ios-spm" */;
Expand Down
3 changes: 0 additions & 3 deletions ScribbleLab.xcworkspace/contents.xcworkspacedata

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
<?xml version="1.0" encoding="UTF-8"?>
<Bucket
uuid = "472F2B14-C4A0-41DF-A801-39A130565240"
type = "0"
version = "2.0">
</Bucket>
6 changes: 4 additions & 2 deletions ScribbleLab/Core/Auth/View/CompleteRegistartionView.swift
Original file line number Diff line number Diff line change
Expand Up @@ -49,8 +49,10 @@ struct CompleteRegistartionView: View {
.padding(.horizontal, 24)

SLButton(text: "Register", font: .subheadline, backgroundColor: .orange, textColor: .black, cornerRadius: 10) {
Task { try await viewModel.createUser() }
Task { try await vm.signIn() }
Task {
try await viewModel.createUser()
try await vm.signIn()
}
// Task {
// do {
// try await viewModel.createUser()
Expand Down
2 changes: 1 addition & 1 deletion ScribbleLab/Core/Root/ContentView.swift
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ struct ContentView: View {

var body: some View {
Group {
if $viewModel.userSession == nil {
if viewModel.userSession == nil {
SignUpView()
} else if let currentUser = viewModel.currentUser { // viewModel.currentUser != nil
SLSideBarView()
Expand Down
7 changes: 1 addition & 6 deletions ScribbleLab/Ressources/Localizable.xcstrings
Original file line number Diff line number Diff line change
Expand Up @@ -253,9 +253,6 @@
},
"Accessibility" : {

},
"Add Item" : {

},
"Add New Timer" : {

Expand Down Expand Up @@ -787,6 +784,7 @@

},
"Item at %@" : {
"extractionState" : "stale",
"localizations" : {
"de" : {
"stringUnit" : {
Expand Down Expand Up @@ -1095,9 +1093,6 @@
},
"Security mode" : {

},
"Select an item" : {

},
"Set up 2FA" : {

Expand Down

0 comments on commit 3d8672b

Please sign in to comment.