-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #1 from NawafSwe/nawaf
Nawaf
- Loading branch information
Showing
3,939 changed files
with
996,744 additions
and
20 deletions.
The diff you're trying to view is too large. We only load the first 3000 changed files.
There are no files selected for viewing
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
8 changes: 8 additions & 0 deletions
8
Billing-Tracker.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd"> | ||
<plist version="1.0"> | ||
<dict> | ||
<key>IDEDidComputeMac32BitWarning</key> | ||
<true/> | ||
</dict> | ||
</plist> |
16 changes: 16 additions & 0 deletions
16
Billing-Tracker.xcworkspace/xcshareddata/swiftpm/Package.resolved
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
{ | ||
"object": { | ||
"pins": [ | ||
{ | ||
"package": "Lottie", | ||
"repositoryURL": "https://github.com/airbnb/lottie-ios.git", | ||
"state": { | ||
"branch": null, | ||
"revision": "e02e82c7c1b472e85e641a7624e99c855e21add1", | ||
"version": "3.1.9" | ||
} | ||
} | ||
] | ||
}, | ||
"version": 1 | ||
} |
6 changes: 6 additions & 0 deletions
6
...racker.xcworkspace/xcuserdata/nawafbader.xcuserdatad/xcdebugger/Breakpoints_v2.xcbkptlist
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<Bucket | ||
uuid = "E6BD38D5-4A7F-44A0-BD38-78C6868A0C8E" | ||
type = "0" | ||
version = "2.0"> | ||
</Bucket> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd"> | ||
<plist version="1.0"> | ||
<dict> | ||
<key>CLIENT_ID</key> | ||
<string>716818199476-pov9uc26kh7v3040mmis79tj0bnagba4.apps.googleusercontent.com</string> | ||
<key>REVERSED_CLIENT_ID</key> | ||
<string>com.googleusercontent.apps.716818199476-pov9uc26kh7v3040mmis79tj0bnagba4</string> | ||
<key>API_KEY</key> | ||
<string>AIzaSyCfqwXNRPuUFfogeSFDEiwW-4QTvFJNkDw</string> | ||
<key>GCM_SENDER_ID</key> | ||
<string>716818199476</string> | ||
<key>PLIST_VERSION</key> | ||
<string>1</string> | ||
<key>BUNDLE_ID</key> | ||
<string>com.nawaf.Billing-Tracker</string> | ||
<key>PROJECT_ID</key> | ||
<string>billing-tracker-bfee4</string> | ||
<key>STORAGE_BUCKET</key> | ||
<string>billing-tracker-bfee4.appspot.com</string> | ||
<key>IS_ADS_ENABLED</key> | ||
<false></false> | ||
<key>IS_ANALYTICS_ENABLED</key> | ||
<false></false> | ||
<key>IS_APPINVITE_ENABLED</key> | ||
<true></true> | ||
<key>IS_GCM_ENABLED</key> | ||
<true></true> | ||
<key>IS_SIGNIN_ENABLED</key> | ||
<true></true> | ||
<key>GOOGLE_APP_ID</key> | ||
<string>1:716818199476:ios:b5e04d0beff57708cbb8e1</string> | ||
<key>DATABASE_URL</key> | ||
<string>https://billing-tracker-bfee4.firebaseio.com</string> | ||
</dict> | ||
</plist> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
// | ||
// LandingViewModel.swift | ||
// Billing-Tracker | ||
// | ||
// Created by Nawaf B Al sharqi on 29/11/2020. | ||
// | ||
|
||
import Foundation | ||
import SwiftUI | ||
final class LandingViewModel : ObservableObject{ } |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
// | ||
// LandingView.swift | ||
// Billing-Tracker | ||
// | ||
// Created by Nawaf B Al sharqi on 29/11/2020. | ||
// | ||
|
||
import SwiftUI | ||
|
||
struct LandingView: View { | ||
var body: some View { | ||
Text("Hello, World!") | ||
} | ||
} | ||
|
||
struct LandingView_Previews: PreviewProvider { | ||
static var previews: some View { | ||
LandingView() | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,44 @@ | ||
// | ||
// LoginView.swift | ||
// Billing-Tracker | ||
// | ||
// Created by Nawaf B Al sharqi on 29/11/2020. | ||
// | ||
|
||
import SwiftUI | ||
|
||
struct LoginView: View { | ||
@State var email = "" | ||
@State var password = "" | ||
var body: some View { | ||
VStack(spacing: 30){ | ||
Text("Welcome") | ||
.font(.title) | ||
TextField("Email", text: $email) | ||
.textFieldStyle(RoundedBorderTextFieldStyle()) | ||
.background(Color.white) | ||
|
||
|
||
TextField("Password",text: $password) | ||
.textFieldStyle(RoundedBorderTextFieldStyle()) | ||
.background(Color.white) | ||
|
||
|
||
|
||
Button(action:{}){ | ||
Text("Login") | ||
} | ||
} | ||
.padding() | ||
.frame(width: 320, height: 300) | ||
.background(Color.backgroundCell) | ||
.clipShape(RoundedRectangle(cornerRadius: 25)) | ||
.shadow(radius: 3) | ||
} | ||
} | ||
|
||
struct LoginView_Previews: PreviewProvider { | ||
static var previews: some View { | ||
LoginView() | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
// | ||
// LoginViewModel.swift | ||
// Billing-Tracker | ||
// | ||
// Created by Nawaf B Al sharqi on 29/11/2020. | ||
// | ||
|
||
import Foundation |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,44 @@ | ||
// | ||
// BothView.swift | ||
// Billing-Tracker | ||
// | ||
// Created by Nawaf B Al sharqi on 29/11/2020. | ||
// | ||
|
||
import SwiftUI | ||
|
||
struct BothView: View { | ||
@State var loginPressed = false | ||
@State var registerPressed = false | ||
@EnvironmentObject var session:UserAuthenticationManager | ||
var body: some View { | ||
Group { | ||
if self.session.session == nil { | ||
VStack{ | ||
Button(action:{self.loginPressed.toggle()}){ | ||
Text("Login") | ||
} | ||
.sheet(isPresented: $loginPressed) { | ||
LoginView().environmentObject(session) | ||
} | ||
|
||
Button(action:{self.registerPressed.toggle()}){ | ||
Text("Register") | ||
} | ||
.sheet(isPresented: $registerPressed) { | ||
RegisterView(viewModel:RegisterViewModel(session: session )) | ||
} | ||
} | ||
}else{ | ||
HomeTabView().environmentObject(session) | ||
} | ||
|
||
} | ||
} | ||
} | ||
|
||
struct BothView_Previews: PreviewProvider { | ||
static var previews: some View { | ||
BothView().environmentObject(UserAuthenticationManager()) | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,42 @@ | ||
// | ||
// LandingView.swift | ||
// Billing-Tracker | ||
// | ||
// Created by Nawaf B Al sharqi on 29/11/2020. | ||
// | ||
|
||
import SwiftUI | ||
import Firebase | ||
|
||
|
||
struct LandingView: View { | ||
@ObservedObject var session = UserAuthenticationManager.shared | ||
@State var isLoading = false | ||
|
||
var body: some View { | ||
ZStack { | ||
Group{ | ||
if session.authState == .signOut { | ||
RegisterView() | ||
}else{ | ||
HomeTabView() | ||
} | ||
|
||
} | ||
LoadingView(isLoading:$isLoading) | ||
} | ||
.onAppear{ | ||
self.isLoading = true | ||
DispatchQueue.main.asyncAfter(deadline: DispatchTime.now() + 0.5){ | ||
self.isLoading = false | ||
session.listen() | ||
|
||
} | ||
} | ||
} | ||
} | ||
struct LandingView_Previews: PreviewProvider { | ||
static var previews: some View { | ||
LandingView() | ||
} | ||
} |
Oops, something went wrong.