diff --git a/DailyTracker_UI.xcodeproj/project.pbxproj b/DailyTracker_UI.xcodeproj/project.pbxproj index 301e53e..ad3065e 100644 --- a/DailyTracker_UI.xcodeproj/project.pbxproj +++ b/DailyTracker_UI.xcodeproj/project.pbxproj @@ -27,8 +27,6 @@ 51A901FB2AE3BC8800AEFEE6 /* DateManager.swift in Sources */ = {isa = PBXBuildFile; fileRef = 51A901FA2AE3BC8800AEFEE6 /* DateManager.swift */; }; 51A901FE2AE3BCB800AEFEE6 /* TodayView.swift in Sources */ = {isa = PBXBuildFile; fileRef = 51A901FD2AE3BCB800AEFEE6 /* TodayView.swift */; }; 51A902012AE3C2AC00AEFEE6 /* MainViewModel.swift in Sources */ = {isa = PBXBuildFile; fileRef = 51A902002AE3C2AC00AEFEE6 /* MainViewModel.swift */; }; - 86023F102AE686C2004AC376 /* HapticsManager.swift in Sources */ = {isa = PBXBuildFile; fileRef = 86023F0F2AE686C2004AC376 /* HapticsManager.swift */; }; - 86FE6DCE2AE9558600340411 /* AlertView.swift in Sources */ = {isa = PBXBuildFile; fileRef = 86FE6DCD2AE9558600340411 /* AlertView.swift */; }; E59FBB112ADAC664002B6F16 /* UserImageView.swift in Sources */ = {isa = PBXBuildFile; fileRef = E59FBB102ADAC664002B6F16 /* UserImageView.swift */; }; /* End PBXBuildFile section */ @@ -55,9 +53,7 @@ 51A901FA2AE3BC8800AEFEE6 /* DateManager.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = DateManager.swift; sourceTree = ""; }; 51A901FD2AE3BCB800AEFEE6 /* TodayView.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = TodayView.swift; sourceTree = ""; }; 51A902002AE3C2AC00AEFEE6 /* MainViewModel.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = MainViewModel.swift; sourceTree = ""; }; - 86023F0F2AE686C2004AC376 /* HapticsManager.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = HapticsManager.swift; sourceTree = ""; }; - 86FE6DCD2AE9558600340411 /* AlertView.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = AlertView.swift; sourceTree = ""; }; - E59FBB102ADAC664002B6F16 /* UserImageView.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = UserImageView.swift; sourceTree = ""; }; + /* End PBXFileReference section */ /* Begin PBXFrameworksBuildPhase section */ @@ -213,7 +209,6 @@ 51A63E0F2AD1B52000901E2B /* Colors.swift */, 51A901F82AE3BC4900AEFEE6 /* FontManager.swift */, 51A901FA2AE3BC8800AEFEE6 /* DateManager.swift */, - 86023F0F2AE686C2004AC376 /* HapticsManager.swift */, ); path = Utils; sourceTree = ""; @@ -256,20 +251,11 @@ 51C665DC2AE293E00072745F /* Views */ = { isa = PBXGroup; children = ( - 86FE6DCC2AE9556600340411 /* Support Shapes */, E59FBB102ADAC664002B6F16 /* UserImageView.swift */, ); path = Views; sourceTree = ""; }; - 86FE6DCC2AE9556600340411 /* Support Shapes */ = { - isa = PBXGroup; - children = ( - 86FE6DCD2AE9558600340411 /* AlertView.swift */, - ); - path = "Support Shapes"; - sourceTree = ""; - }; /* End PBXGroup section */ /* Begin PBXNativeTarget section */ @@ -348,7 +334,6 @@ 51A63E0A2AD1ADE600901E2B /* Constants.swift in Sources */, 51A901FB2AE3BC8800AEFEE6 /* DateManager.swift in Sources */, 51A63E102AD1B52000901E2B /* Colors.swift in Sources */, - 86023F102AE686C2004AC376 /* HapticsManager.swift in Sources */, E59FBB112ADAC664002B6F16 /* UserImageView.swift in Sources */, 51A63E0E2AD1AE2A00901E2B /* ViewExtensions.swift in Sources */, 51A63DF52AD1ABD700901E2B /* DailyTracker_UI.xcdatamodeld in Sources */, @@ -356,10 +341,9 @@ 51A902012AE3C2AC00AEFEE6 /* MainViewModel.swift in Sources */, 51A63E0C2AD1AE2400901E2B /* FoundationExtensions.swift in Sources */, 51A901F92AE3BC4900AEFEE6 /* FontManager.swift in Sources */, + E57DF4072AE7E48300B56506 /* OnboardingButton.swift in Sources */, 51A63DF22AD1ABD700901E2B /* Persistence.swift in Sources */, 51A63E122AD1B58E00901E2B /* UIApplicationExtension.swift in Sources */, - 86FE6DCE2AE9558600340411 /* AlertView.swift in Sources */, - 51A63DEB2AD1ABD600901E2B /* MainView.swift in Sources */, 51A63DE92AD1ABD600901E2B /* DailyTracker_UIApp.swift in Sources */, ); runOnlyForDeploymentPostprocessing = 0; @@ -489,7 +473,7 @@ CODE_SIGN_STYLE = Automatic; CURRENT_PROJECT_VERSION = 1; DEVELOPMENT_ASSET_PATHS = "\"DailyTracker_UI/iOS/Resources/Preview Content\""; - DEVELOPMENT_TEAM = 922R4697G4; + DEVELOPMENT_TEAM = VXZ7XFH447; ENABLE_PREVIEWS = YES; GENERATE_INFOPLIST_FILE = YES; INFOPLIST_FILE = "DailyTracker_UI/iOS/Resources/DailyTracker-UI-Info.plist"; @@ -519,7 +503,7 @@ CODE_SIGN_STYLE = Automatic; CURRENT_PROJECT_VERSION = 1; DEVELOPMENT_ASSET_PATHS = "\"DailyTracker_UI/iOS/Resources/Preview Content\""; - DEVELOPMENT_TEAM = 922R4697G4; + DEVELOPMENT_TEAM = VXZ7XFH447; ENABLE_PREVIEWS = YES; GENERATE_INFOPLIST_FILE = YES; INFOPLIST_FILE = "DailyTracker_UI/iOS/Resources/DailyTracker-UI-Info.plist"; @@ -578,4 +562,4 @@ /* End XCVersionGroup section */ }; rootObject = 51A63DDD2AD1ABD600901E2B /* Project object */; -} +} \ No newline at end of file diff --git a/DailyTracker_UI/iOS/Code/Common/Views/OnboardingButton.swift b/DailyTracker_UI/iOS/Code/Common/Views/OnboardingButton.swift new file mode 100644 index 0000000..63c954a --- /dev/null +++ b/DailyTracker_UI/iOS/Code/Common/Views/OnboardingButton.swift @@ -0,0 +1,58 @@ +// +// OnboardingButton.swift +// DailyTracker_UI +// +// Created by Yashraj jadhav on 24/10/23. +// + +import SwiftUI + +struct OnboardingButton: View { + + @State private var from: CGFloat = 0.0 + @State private var to: CGFloat = 1.5 + + let color: Color + + var body: some View { + Button(action: { + from += 0.5 + + }) { + ZStack { + Rectangle() + .stroke(color.opacity(0.07), lineWidth: 20) + .frame(width: 80, height: 80) + .cornerRadius(20.0) + .foregroundColor(.black) + .shadow(radius: 100) + + Rectangle() + .trim(from: 0, to: from / to) + .stroke(color, style: StrokeStyle(lineWidth: 25, lineCap: .square)) + .frame(width: 80, height: 80) + .cornerRadius(20.0) + .foregroundColor(.gray) + + Rectangle() + .frame(width: 70, height: 70) + .foregroundColor(.white) + .cornerRadius(20.0) + .shadow(radius: 10) + + Rectangle() + .frame(width: 60, height: 60) + .cornerRadius(15.0) + .foregroundColor(.black) + .shadow(radius: 10) + + Image(systemName: "chevron.right") + .foregroundColor(.white) + } + } + } +} + +#Preview { + OnboardingButton(color: .black) +}