Skip to content

Commit

Permalink
FIX:Bug Fixes in UI
Browse files Browse the repository at this point in the history
  • Loading branch information
tkshsbcue committed May 29, 2024
1 parent d259e59 commit a449572
Show file tree
Hide file tree
Showing 6 changed files with 44 additions and 11 deletions.
16 changes: 12 additions & 4 deletions Tickle.xcodeproj/project.pbxproj
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@

/* Begin PBXBuildFile section */
E41219B72C05EE8D00873F6B /* TickleApp.swift in Sources */ = {isa = PBXBuildFile; fileRef = E41219B62C05EE8D00873F6B /* TickleApp.swift */; };
E41219B92C05EE8D00873F6B /* ContentView.swift in Sources */ = {isa = PBXBuildFile; fileRef = E41219B82C05EE8D00873F6B /* ContentView.swift */; };
E41219B92C05EE8D00873F6B /* loginView.swift in Sources */ = {isa = PBXBuildFile; fileRef = E41219B82C05EE8D00873F6B /* loginView.swift */; };
E41219BB2C05EE8E00873F6B /* Assets.xcassets in Resources */ = {isa = PBXBuildFile; fileRef = E41219BA2C05EE8E00873F6B /* Assets.xcassets */; };
E41219BF2C05EE8E00873F6B /* Preview Assets.xcassets in Resources */ = {isa = PBXBuildFile; fileRef = E41219BE2C05EE8E00873F6B /* Preview Assets.xcassets */; };
E41219C92C05EE8E00873F6B /* TickleTests.swift in Sources */ = {isa = PBXBuildFile; fileRef = E41219C82C05EE8E00873F6B /* TickleTests.swift */; };
Expand All @@ -19,6 +19,8 @@
E41219E92C06FC1500873F6B /* FirebaseFirestore in Frameworks */ = {isa = PBXBuildFile; productRef = E41219E82C06FC1500873F6B /* FirebaseFirestore */; };
E41219EB2C06FC1500873F6B /* FirebaseFirestoreSwift in Frameworks */ = {isa = PBXBuildFile; productRef = E41219EA2C06FC1500873F6B /* FirebaseFirestoreSwift */; };
E42CD48C2C074640003F50D3 /* GoogleService-Info (1).plist in Resources */ = {isa = PBXBuildFile; fileRef = E42CD48B2C074640003F50D3 /* GoogleService-Info (1).plist */; };
E42CD4902C07497F003F50D3 /* LoginViewModel.swift in Sources */ = {isa = PBXBuildFile; fileRef = E42CD48F2C07497F003F50D3 /* LoginViewModel.swift */; };
E42CD4932C074996003F50D3 /* MainViewModel.swift in Sources */ = {isa = PBXBuildFile; fileRef = E42CD4922C074996003F50D3 /* MainViewModel.swift */; };
/* End PBXBuildFile section */

/* Begin PBXContainerItemProxy section */
Expand All @@ -41,7 +43,7 @@
/* Begin PBXFileReference section */
E41219B32C05EE8D00873F6B /* Tickle.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = Tickle.app; sourceTree = BUILT_PRODUCTS_DIR; };
E41219B62C05EE8D00873F6B /* TickleApp.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = TickleApp.swift; sourceTree = "<group>"; };
E41219B82C05EE8D00873F6B /* ContentView.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = ContentView.swift; sourceTree = "<group>"; };
E41219B82C05EE8D00873F6B /* loginView.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = loginView.swift; sourceTree = "<group>"; };
E41219BA2C05EE8E00873F6B /* Assets.xcassets */ = {isa = PBXFileReference; lastKnownFileType = folder.assetcatalog; path = Assets.xcassets; sourceTree = "<group>"; };
E41219BC2C05EE8E00873F6B /* Tickle.entitlements */ = {isa = PBXFileReference; lastKnownFileType = text.plist.entitlements; path = Tickle.entitlements; sourceTree = "<group>"; };
E41219BE2C05EE8E00873F6B /* Preview Assets.xcassets */ = {isa = PBXFileReference; lastKnownFileType = folder.assetcatalog; path = "Preview Assets.xcassets"; sourceTree = "<group>"; };
Expand All @@ -52,6 +54,8 @@
E41219D42C05EE8E00873F6B /* TickleUITestsLaunchTests.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = TickleUITestsLaunchTests.swift; sourceTree = "<group>"; };
E41219E12C05F30200873F6B /* Register.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = Register.swift; sourceTree = "<group>"; };
E42CD48B2C074640003F50D3 /* GoogleService-Info (1).plist */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.plist.xml; name = "GoogleService-Info (1).plist"; path = "../../../Downloads/GoogleService-Info (1).plist"; sourceTree = "<group>"; };
E42CD48F2C07497F003F50D3 /* LoginViewModel.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = LoginViewModel.swift; sourceTree = "<group>"; };
E42CD4922C074996003F50D3 /* MainViewModel.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = MainViewModel.swift; sourceTree = "<group>"; };
/* End PBXFileReference section */

/* Begin PBXFrameworksBuildPhase section */
Expand Down Expand Up @@ -106,8 +110,10 @@
isa = PBXGroup;
children = (
E41219B62C05EE8D00873F6B /* TickleApp.swift */,
E41219B82C05EE8D00873F6B /* ContentView.swift */,
E41219E12C05F30200873F6B /* Register.swift */,
E41219B82C05EE8D00873F6B /* loginView.swift */,
E42CD48F2C07497F003F50D3 /* LoginViewModel.swift */,
E42CD4922C074996003F50D3 /* MainViewModel.swift */,
E41219BA2C05EE8E00873F6B /* Assets.xcassets */,
E41219BC2C05EE8E00873F6B /* Tickle.entitlements */,
E42CD48B2C074640003F50D3 /* GoogleService-Info (1).plist */,
Expand Down Expand Up @@ -280,8 +286,10 @@
isa = PBXSourcesBuildPhase;
buildActionMask = 2147483647;
files = (
E42CD4932C074996003F50D3 /* MainViewModel.swift in Sources */,
E42CD4902C07497F003F50D3 /* LoginViewModel.swift in Sources */,
E41219E22C05F30200873F6B /* Register.swift in Sources */,
E41219B92C05EE8D00873F6B /* ContentView.swift in Sources */,
E41219B92C05EE8D00873F6B /* loginView.swift in Sources */,
E41219B72C05EE8D00873F6B /* TickleApp.swift in Sources */,
);
runOnlyForDeploymentPostprocessing = 0;
Expand Down
Binary file not shown.
14 changes: 14 additions & 0 deletions Tickle/LoginViewModel.swift
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
//
// LoginViewModel.swift
// Tickle
//
// Created by Kumar Tanay on 29/05/24.
//

import Foundation
class LoginViewModel:ObservableObject{
@Published var email = ""
@Published var password = ""


}
12 changes: 12 additions & 0 deletions Tickle/MainViewModel.swift
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
//
// MainViewModel.swift
// Tickle
//
// Created by Kumar Tanay on 29/05/24.
//

import Foundation




2 changes: 1 addition & 1 deletion Tickle/TickleApp.swift
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ import SwiftUI
struct TickleApp: App {
var body: some Scene {
WindowGroup {
ContentView()
LoginView()
}
}
}
11 changes: 5 additions & 6 deletions Tickle/ContentView.swift → Tickle/loginView.swift
Original file line number Diff line number Diff line change
Expand Up @@ -18,18 +18,17 @@

import SwiftUI

struct ContentView: View {
@State var login = ""
@State var password = ""
struct LoginView: View {
@State var viewModel = LoginViewModel()
var body: some View {
NavigationView{
VStack{
RoundedRectangle(cornerRadius:1).frame(width: 600,height:300).offset(y:-100).foregroundColor(/*@START_MENU_TOKEN@*/.blue/*@END_MENU_TOKEN@*/)
Text("Free VBUCK").offset(y:-100).bold().foregroundColor(.green)
ZStack{
Form{
TextField("Name",text:$login)
SecureField("Password",text:$password)
TextField("Name",text:$viewModel.email)
SecureField("Password",text:$viewModel.password)
NavigationLink(destination:Register()){
Text("New Here")
}
Expand All @@ -55,5 +54,5 @@ struct ContentView: View {
}

#Preview {
ContentView()
LoginView()
}

0 comments on commit a449572

Please sign in to comment.