├── .DS_Store
├── Timers
├── .DS_Store
├── screens
│ └── 1.png
├── Assets.xcassets
│ ├── Contents.json
│ └── AppIcon.appiconset
│ │ └── Contents.json
├── Preview Content
│ └── Preview Assets.xcassets
│ │ └── Contents.json
├── AppDelegate.swift
├── Base.lproj
│ └── LaunchScreen.storyboard
├── Info.plist
├── LoaderView.swift
├── SceneDelegate.swift
└── TimerView.swift
├── Timers.xcodeproj
├── project.xcworkspace
│ ├── contents.xcworkspacedata
│ ├── xcuserdata
│ │ └── shubham.xcuserdatad
│ │ │ └── UserInterfaceState.xcuserstate
│ └── xcshareddata
│ │ └── IDEWorkspaceChecks.plist
├── xcuserdata
│ └── shubham.xcuserdatad
│ │ ├── xcdebugger
│ │ └── Breakpoints_v2.xcbkptlist
│ │ └── xcschemes
│ │ └── xcschememanagement.plist
└── project.pbxproj
└── README.md
/.DS_Store:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Shubham0812/Timer_SwiftUI/HEAD/.DS_Store
--------------------------------------------------------------------------------
/Timers/.DS_Store:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Shubham0812/Timer_SwiftUI/HEAD/Timers/.DS_Store
--------------------------------------------------------------------------------
/Timers/screens/1.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Shubham0812/Timer_SwiftUI/HEAD/Timers/screens/1.png
--------------------------------------------------------------------------------
/Timers/Assets.xcassets/Contents.json:
--------------------------------------------------------------------------------
1 | {
2 | "info" : {
3 | "author" : "xcode",
4 | "version" : 1
5 | }
6 | }
7 |
--------------------------------------------------------------------------------
/Timers/Preview Content/Preview Assets.xcassets/Contents.json:
--------------------------------------------------------------------------------
1 | {
2 | "info" : {
3 | "author" : "xcode",
4 | "version" : 1
5 | }
6 | }
7 |
--------------------------------------------------------------------------------
/Timers.xcodeproj/project.xcworkspace/contents.xcworkspacedata:
--------------------------------------------------------------------------------
1 |
2 |
4 |
6 |
7 |
8 |
--------------------------------------------------------------------------------
/Timers.xcodeproj/xcuserdata/shubham.xcuserdatad/xcdebugger/Breakpoints_v2.xcbkptlist:
--------------------------------------------------------------------------------
1 |
2 |
6 |
7 |
--------------------------------------------------------------------------------
/Timers.xcodeproj/project.xcworkspace/xcuserdata/shubham.xcuserdatad/UserInterfaceState.xcuserstate:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Shubham0812/Timer_SwiftUI/HEAD/Timers.xcodeproj/project.xcworkspace/xcuserdata/shubham.xcuserdatad/UserInterfaceState.xcuserstate
--------------------------------------------------------------------------------
/README.md:
--------------------------------------------------------------------------------
1 | # Timer_SwiftUI
2 | Stopwatch created with SwiftUI
3 |
4 | ## Screenshots
5 | 
6 |
7 |
8 | ## Credits
9 | **© Shubham Kumar Singh | 2020**
10 |
--------------------------------------------------------------------------------
/Timers.xcodeproj/project.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | IDEDidComputeMac32BitWarning
6 |
7 |
8 |
9 |
--------------------------------------------------------------------------------
/Timers.xcodeproj/xcuserdata/shubham.xcuserdatad/xcschemes/xcschememanagement.plist:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | SchemeUserState
6 |
7 | Timers.xcscheme_^#shared#^_
8 |
9 | orderHint
10 | 0
11 |
12 |
13 |
14 |
15 |
--------------------------------------------------------------------------------
/Timers/AppDelegate.swift:
--------------------------------------------------------------------------------
1 | //
2 | // AppDelegate.swift
3 | // Timers
4 | //
5 | // Created by Shubham Singh on 30/07/20.
6 | // Copyright © 2020 Shubham Singh. All rights reserved.
7 | //
8 |
9 | import UIKit
10 |
11 | @UIApplicationMain
12 | class AppDelegate: UIResponder, UIApplicationDelegate {
13 |
14 |
15 |
16 | func application(_ application: UIApplication, didFinishLaunchingWithOptions launchOptions: [UIApplication.LaunchOptionsKey: Any]?) -> Bool {
17 | // Override point for customization after application launch.
18 | return true
19 | }
20 |
21 | // MARK: UISceneSession Lifecycle
22 |
23 | func application(_ application: UIApplication, configurationForConnecting connectingSceneSession: UISceneSession, options: UIScene.ConnectionOptions) -> UISceneConfiguration {
24 | // Called when a new scene session is being created.
25 | // Use this method to select a configuration to create the new scene with.
26 | return UISceneConfiguration(name: "Default Configuration", sessionRole: connectingSceneSession.role)
27 | }
28 |
29 | func application(_ application: UIApplication, didDiscardSceneSessions sceneSessions: Set) {
30 | // Called when the user discards a scene session.
31 | // If any sessions were discarded while the application was not running, this will be called shortly after application:didFinishLaunchingWithOptions.
32 | // Use this method to release any resources that were specific to the discarded scenes, as they will not return.
33 | }
34 |
35 |
36 | }
37 |
38 |
--------------------------------------------------------------------------------
/Timers/Base.lproj/LaunchScreen.storyboard:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
14 |
15 |
16 |
17 |
18 |
19 |
20 |
21 |
22 |
23 |
24 |
25 |
26 |
--------------------------------------------------------------------------------
/Timers/Assets.xcassets/AppIcon.appiconset/Contents.json:
--------------------------------------------------------------------------------
1 | {
2 | "images" : [
3 | {
4 | "idiom" : "iphone",
5 | "scale" : "2x",
6 | "size" : "20x20"
7 | },
8 | {
9 | "idiom" : "iphone",
10 | "scale" : "3x",
11 | "size" : "20x20"
12 | },
13 | {
14 | "idiom" : "iphone",
15 | "scale" : "2x",
16 | "size" : "29x29"
17 | },
18 | {
19 | "idiom" : "iphone",
20 | "scale" : "3x",
21 | "size" : "29x29"
22 | },
23 | {
24 | "idiom" : "iphone",
25 | "scale" : "2x",
26 | "size" : "40x40"
27 | },
28 | {
29 | "idiom" : "iphone",
30 | "scale" : "3x",
31 | "size" : "40x40"
32 | },
33 | {
34 | "idiom" : "iphone",
35 | "scale" : "2x",
36 | "size" : "60x60"
37 | },
38 | {
39 | "idiom" : "iphone",
40 | "scale" : "3x",
41 | "size" : "60x60"
42 | },
43 | {
44 | "idiom" : "ipad",
45 | "scale" : "1x",
46 | "size" : "20x20"
47 | },
48 | {
49 | "idiom" : "ipad",
50 | "scale" : "2x",
51 | "size" : "20x20"
52 | },
53 | {
54 | "idiom" : "ipad",
55 | "scale" : "1x",
56 | "size" : "29x29"
57 | },
58 | {
59 | "idiom" : "ipad",
60 | "scale" : "2x",
61 | "size" : "29x29"
62 | },
63 | {
64 | "idiom" : "ipad",
65 | "scale" : "1x",
66 | "size" : "40x40"
67 | },
68 | {
69 | "idiom" : "ipad",
70 | "scale" : "2x",
71 | "size" : "40x40"
72 | },
73 | {
74 | "idiom" : "ipad",
75 | "scale" : "1x",
76 | "size" : "76x76"
77 | },
78 | {
79 | "idiom" : "ipad",
80 | "scale" : "2x",
81 | "size" : "76x76"
82 | },
83 | {
84 | "idiom" : "ipad",
85 | "scale" : "2x",
86 | "size" : "83.5x83.5"
87 | },
88 | {
89 | "idiom" : "ios-marketing",
90 | "scale" : "1x",
91 | "size" : "1024x1024"
92 | }
93 | ],
94 | "info" : {
95 | "author" : "xcode",
96 | "version" : 1
97 | }
98 | }
99 |
--------------------------------------------------------------------------------
/Timers/Info.plist:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | CFBundleDevelopmentRegion
6 | $(DEVELOPMENT_LANGUAGE)
7 | CFBundleExecutable
8 | $(EXECUTABLE_NAME)
9 | CFBundleIdentifier
10 | $(PRODUCT_BUNDLE_IDENTIFIER)
11 | CFBundleInfoDictionaryVersion
12 | 6.0
13 | CFBundleName
14 | $(PRODUCT_NAME)
15 | CFBundlePackageType
16 | $(PRODUCT_BUNDLE_PACKAGE_TYPE)
17 | CFBundleShortVersionString
18 | 1.0
19 | CFBundleVersion
20 | 1
21 | LSRequiresIPhoneOS
22 |
23 | UIApplicationSceneManifest
24 |
25 | UIApplicationSupportsMultipleScenes
26 |
27 | UISceneConfigurations
28 |
29 | UIWindowSceneSessionRoleApplication
30 |
31 |
32 | UISceneConfigurationName
33 | Default Configuration
34 | UISceneDelegateClassName
35 | $(PRODUCT_MODULE_NAME).SceneDelegate
36 |
37 |
38 |
39 |
40 | UILaunchStoryboardName
41 | LaunchScreen
42 | UIRequiredDeviceCapabilities
43 |
44 | armv7
45 |
46 | UISupportedInterfaceOrientations
47 |
48 | UIInterfaceOrientationPortrait
49 | UIInterfaceOrientationLandscapeLeft
50 | UIInterfaceOrientationLandscapeRight
51 |
52 | UISupportedInterfaceOrientations~ipad
53 |
54 | UIInterfaceOrientationPortrait
55 | UIInterfaceOrientationPortraitUpsideDown
56 | UIInterfaceOrientationLandscapeLeft
57 | UIInterfaceOrientationLandscapeRight
58 |
59 |
60 |
61 |
--------------------------------------------------------------------------------
/Timers/LoaderView.swift:
--------------------------------------------------------------------------------
1 | //
2 | // LoaderView.swift
3 | // Timers
4 | //
5 | // Created by Shubham Singh on 30/07/20.
6 | // Copyright © 2020 Shubham Singh. All rights reserved.
7 | //
8 |
9 | import SwiftUI
10 |
11 | struct LoaderView: View {
12 |
13 | @State var isAnimating = false
14 | @State var loading = true
15 |
16 | var body: some View {
17 | ZStack {
18 | Color.black
19 | .edgesIgnoringSafeArea(.all)
20 | Loader(isAnimating: self.isAnimating)
21 | .frame(width: self.isAnimating ? 150 : 100)
22 | .animation(Animation.easeInOut(duration: 0.75).repeatForever(autoreverses: true))
23 |
24 | TimerView()
25 | .opacity(self.loading ? 0 : 1)
26 | .animation(Animation.easeOut(duration: 0.35))
27 | }
28 | .onAppear {
29 | self.isAnimating = true
30 | Timer.scheduledTimer(withTimeInterval: 2, repeats: false) { (Timer) in
31 | self.isAnimating = false
32 | self.loading = false
33 | }
34 | }
35 | }
36 | }
37 |
38 | struct Loader: View {
39 | let smallBarHeight: CGFloat = 45
40 | let mediumBarHeight: CGFloat = 75
41 | let barWidth: CGFloat = 13
42 |
43 | let isAnimating: Bool
44 |
45 | var body: some View {
46 | HStack(alignment: .center, spacing: self.isAnimating ? 25: 10) {
47 | Capsule(style: .continuous)
48 | .fill(Color.white)
49 | .frame(width: barWidth, height: mediumBarHeight)
50 | Capsule(style: .continuous)
51 | .fill(Color.white)
52 | .frame(width: barWidth, height: smallBarHeight)
53 | Capsule(style: .continuous)
54 | .fill(Color.white)
55 | .frame(width: barWidth, height: self.isAnimating ? mediumBarHeight + smallBarHeight / 1.25 : mediumBarHeight)
56 | Capsule(style: .continuous)
57 | .fill(Color.white)
58 | .frame(width: barWidth, height: smallBarHeight)
59 | Capsule(style: .continuous)
60 | .fill(Color.white)
61 | .frame(width: barWidth, height: mediumBarHeight)
62 | }
63 | }
64 | }
65 |
66 | struct LoaderView_Previews: PreviewProvider {
67 | static var previews: some View {
68 | LoaderView()
69 | }
70 | }
71 |
--------------------------------------------------------------------------------
/Timers/SceneDelegate.swift:
--------------------------------------------------------------------------------
1 | //
2 | // SceneDelegate.swift
3 | // Timers
4 | //
5 | // Created by Shubham Singh on 30/07/20.
6 | // Copyright © 2020 Shubham Singh. All rights reserved.
7 | //
8 |
9 | import UIKit
10 | import SwiftUI
11 |
12 | class SceneDelegate: UIResponder, UIWindowSceneDelegate {
13 |
14 | var window: UIWindow?
15 |
16 |
17 | func scene(_ scene: UIScene, willConnectTo session: UISceneSession, options connectionOptions: UIScene.ConnectionOptions) {
18 | // Use this method to optionally configure and attach the UIWindow `window` to the provided UIWindowScene `scene`.
19 | // If using a storyboard, the `window` property will automatically be initialized and attached to the scene.
20 | // This delegate does not imply the connecting scene or session are new (see `application:configurationForConnectingSceneSession` instead).
21 |
22 | // Create the SwiftUI view that provides the window contents.
23 | let contentView = TimerView()
24 |
25 | // Use a UIHostingController as window root view controller.
26 | if let windowScene = scene as? UIWindowScene {
27 | let window = UIWindow(windowScene: windowScene)
28 | window.rootViewController = UIHostingController(rootView: LoaderView())
29 | self.window = window
30 | window.makeKeyAndVisible()
31 | }
32 | }
33 |
34 | func sceneDidDisconnect(_ scene: UIScene) {
35 | // Called as the scene is being released by the system.
36 | // This occurs shortly after the scene enters the background, or when its session is discarded.
37 | // Release any resources associated with this scene that can be re-created the next time the scene connects.
38 | // The scene may re-connect later, as its session was not neccessarily discarded (see `application:didDiscardSceneSessions` instead).
39 | }
40 |
41 | func sceneDidBecomeActive(_ scene: UIScene) {
42 | // Called when the scene has moved from an inactive state to an active state.
43 | // Use this method to restart any tasks that were paused (or not yet started) when the scene was inactive.
44 | }
45 |
46 | func sceneWillResignActive(_ scene: UIScene) {
47 | // Called when the scene will move from an active state to an inactive state.
48 | // This may occur due to temporary interruptions (ex. an incoming phone call).
49 | }
50 |
51 | func sceneWillEnterForeground(_ scene: UIScene) {
52 | // Called as the scene transitions from the background to the foreground.
53 | // Use this method to undo the changes made on entering the background.
54 | }
55 |
56 | func sceneDidEnterBackground(_ scene: UIScene) {
57 | // Called as the scene transitions from the foreground to the background.
58 | // Use this method to save data, release shared resources, and store enough scene-specific state information
59 | // to restore the scene back to its current state.
60 | }
61 |
62 |
63 | }
64 |
65 |
--------------------------------------------------------------------------------
/Timers/TimerView.swift:
--------------------------------------------------------------------------------
1 | //
2 | // ContentView.swift
3 | // Timers
4 | //
5 | // Created by Shubham Singh on 30/07/20.
6 | // Copyright © 2020 Shubham Singh. All rights reserved.
7 | //
8 |
9 | import SwiftUI
10 |
11 | struct TimerView: View {
12 |
13 | @State var minutes: CGFloat = 0
14 | @State var seconds: CGFloat = 0
15 | @State var milliSeconds: CGFloat = 0
16 |
17 | @State var timerStarted = false
18 |
19 | static var secondsTimer = Timer()
20 | static var millisecondsTimer = Timer()
21 |
22 | static let secondsLimit: CGFloat = 60
23 |
24 | static var trackColor: Color = Color(white: 0.3)
25 | static var fillColor: Color = Color.red
26 | static var alternateColor: Color = Color.orange
27 |
28 | var body: some View {
29 | ZStack {
30 | Color(.black)
31 | .edgesIgnoringSafeArea(.all)
32 |
33 | Circle()
34 | .stroke(style: StrokeStyle(lineWidth: 10))
35 | .foregroundColor(Self.trackColor)
36 | .frame(width: 340, height: 340)
37 |
38 | Circle()
39 | .trim(from: 0, to: self.timerStarted ? (self.seconds + 1) / Self.secondsLimit : 0)
40 | .stroke(style: StrokeStyle(lineWidth: 10, lineCap: .round))
41 | .rotationEffect(Angle(degrees: 270))
42 | .foregroundColor(Self.fillColor)
43 | .frame(width: 340, height: 340)
44 | .padding()
45 | .animation(self.seconds == 0 ? Animation.interactiveSpring().speed(2) : Animation.linear(duration: 1))
46 |
47 | .onAppear()
48 |
49 | TimerLabel(minutes: self.minutes, seconds: self.seconds, milliSeconds: self.milliSeconds)
50 |
51 | HStack {
52 | Button(action: {
53 | self.timerStarted.toggle()
54 | if (self.timerStarted) {
55 | self.minutes = 0
56 | self.seconds = 1
57 | self.milliSeconds = 0
58 | self.resetColors()
59 |
60 | Self.secondsTimer = Timer.scheduledTimer(withTimeInterval: 1, repeats: true) { _ in
61 | self.milliSeconds = 0
62 | self.seconds += 1
63 | if (self.seconds == Self.secondsLimit) {
64 | self.swapColors()
65 |
66 | self.seconds = 0
67 | self.minutes += 1
68 | }
69 | }
70 | Self.millisecondsTimer = Timer.scheduledTimer(withTimeInterval: 0.015, repeats: true, block: { _ in
71 | self.milliSeconds += 1
72 | })
73 | } else {
74 | Self.secondsTimer.invalidate()
75 | Self.millisecondsTimer.invalidate()
76 | }
77 | }) {
78 |
79 | Text(!self.timerStarted ? "Start" : "Stop")
80 | .font(.system(size: 24, weight: .bold, design: .monospaced))
81 | .foregroundColor(Color.white)
82 | .frame(width: 120, height: 42)
83 | .background(self.timerStarted ? Color.red : Color.purple)
84 | .animation(.easeOut(duration: 0.25))
85 | .cornerRadius(18)
86 |
87 | }
88 | }.offset(y: UIScreen.main.bounds.height / 2 - 84)
89 | }
90 | }
91 |
92 | func swapColors() {
93 | Self.trackColor = Self.fillColor
94 | let tempColor = Self.fillColor
95 | Self.fillColor = Self.alternateColor
96 | Self.alternateColor = tempColor
97 | }
98 |
99 | func resetColors() {
100 | Self.trackColor = Color(white: 0.3)
101 | Self.fillColor = Color.red
102 | Self.alternateColor = Color.orange
103 | }
104 | }
105 |
106 | struct TimerLabel: View {
107 | var minutes: CGFloat
108 | var seconds: CGFloat
109 | var milliSeconds: CGFloat
110 |
111 | var body: some View {
112 | ZStack {
113 | Text("\(minutes.toString()):\(seconds.toString()):\(milliSeconds.toString())")
114 | .font(.system(size: 42, weight: .bold, design: .monospaced))
115 | .colorInvert()
116 | }
117 | }
118 | }
119 |
120 |
121 | struct ContentView_Previews: PreviewProvider {
122 | static var previews: some View {
123 | TimerView()
124 | }
125 | }
126 |
127 | extension CGFloat {
128 | func toString() -> String {
129 | if (self < 10) {
130 | return String("0\(Int(self))")
131 | } else {
132 | return String("\(Int(self))")
133 | }
134 | }
135 | }
136 |
--------------------------------------------------------------------------------
/Timers.xcodeproj/project.pbxproj:
--------------------------------------------------------------------------------
1 | // !$*UTF8*$!
2 | {
3 | archiveVersion = 1;
4 | classes = {
5 | };
6 | objectVersion = 50;
7 | objects = {
8 |
9 | /* Begin PBXBuildFile section */
10 | 5101E72C24D26CAA0004C7F3 /* AppDelegate.swift in Sources */ = {isa = PBXBuildFile; fileRef = 5101E72B24D26CAA0004C7F3 /* AppDelegate.swift */; };
11 | 5101E72E24D26CAA0004C7F3 /* SceneDelegate.swift in Sources */ = {isa = PBXBuildFile; fileRef = 5101E72D24D26CAA0004C7F3 /* SceneDelegate.swift */; };
12 | 5101E73024D26CAA0004C7F3 /* TimerView.swift in Sources */ = {isa = PBXBuildFile; fileRef = 5101E72F24D26CAA0004C7F3 /* TimerView.swift */; };
13 | 5101E73224D26CB10004C7F3 /* Assets.xcassets in Resources */ = {isa = PBXBuildFile; fileRef = 5101E73124D26CB10004C7F3 /* Assets.xcassets */; };
14 | 5101E73524D26CB10004C7F3 /* Preview Assets.xcassets in Resources */ = {isa = PBXBuildFile; fileRef = 5101E73424D26CB10004C7F3 /* Preview Assets.xcassets */; };
15 | 5101E73824D26CB10004C7F3 /* LaunchScreen.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = 5101E73624D26CB10004C7F3 /* LaunchScreen.storyboard */; };
16 | 5157207F24D327960082B3AA /* LoaderView.swift in Sources */ = {isa = PBXBuildFile; fileRef = 5157207E24D327960082B3AA /* LoaderView.swift */; };
17 | /* End PBXBuildFile section */
18 |
19 | /* Begin PBXFileReference section */
20 | 5101E72824D26CAA0004C7F3 /* Timers.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = Timers.app; sourceTree = BUILT_PRODUCTS_DIR; };
21 | 5101E72B24D26CAA0004C7F3 /* AppDelegate.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = AppDelegate.swift; sourceTree = ""; };
22 | 5101E72D24D26CAA0004C7F3 /* SceneDelegate.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = SceneDelegate.swift; sourceTree = ""; };
23 | 5101E72F24D26CAA0004C7F3 /* TimerView.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = TimerView.swift; sourceTree = ""; };
24 | 5101E73124D26CB10004C7F3 /* Assets.xcassets */ = {isa = PBXFileReference; lastKnownFileType = folder.assetcatalog; path = Assets.xcassets; sourceTree = ""; };
25 | 5101E73424D26CB10004C7F3 /* Preview Assets.xcassets */ = {isa = PBXFileReference; lastKnownFileType = folder.assetcatalog; path = "Preview Assets.xcassets"; sourceTree = ""; };
26 | 5101E73724D26CB10004C7F3 /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.storyboard; name = Base; path = Base.lproj/LaunchScreen.storyboard; sourceTree = ""; };
27 | 5101E73924D26CB10004C7F3 /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = ""; };
28 | 5157207E24D327960082B3AA /* LoaderView.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = LoaderView.swift; sourceTree = ""; };
29 | /* End PBXFileReference section */
30 |
31 | /* Begin PBXFrameworksBuildPhase section */
32 | 5101E72524D26CAA0004C7F3 /* Frameworks */ = {
33 | isa = PBXFrameworksBuildPhase;
34 | buildActionMask = 2147483647;
35 | files = (
36 | );
37 | runOnlyForDeploymentPostprocessing = 0;
38 | };
39 | /* End PBXFrameworksBuildPhase section */
40 |
41 | /* Begin PBXGroup section */
42 | 5101E71F24D26CAA0004C7F3 = {
43 | isa = PBXGroup;
44 | children = (
45 | 5101E72A24D26CAA0004C7F3 /* Timers */,
46 | 5101E72924D26CAA0004C7F3 /* Products */,
47 | );
48 | sourceTree = "";
49 | };
50 | 5101E72924D26CAA0004C7F3 /* Products */ = {
51 | isa = PBXGroup;
52 | children = (
53 | 5101E72824D26CAA0004C7F3 /* Timers.app */,
54 | );
55 | name = Products;
56 | sourceTree = "";
57 | };
58 | 5101E72A24D26CAA0004C7F3 /* Timers */ = {
59 | isa = PBXGroup;
60 | children = (
61 | 5101E72B24D26CAA0004C7F3 /* AppDelegate.swift */,
62 | 5101E72D24D26CAA0004C7F3 /* SceneDelegate.swift */,
63 | 5101E72F24D26CAA0004C7F3 /* TimerView.swift */,
64 | 5157207E24D327960082B3AA /* LoaderView.swift */,
65 | 5101E73124D26CB10004C7F3 /* Assets.xcassets */,
66 | 5101E73624D26CB10004C7F3 /* LaunchScreen.storyboard */,
67 | 5101E73924D26CB10004C7F3 /* Info.plist */,
68 | 5101E73324D26CB10004C7F3 /* Preview Content */,
69 | );
70 | path = Timers;
71 | sourceTree = "";
72 | };
73 | 5101E73324D26CB10004C7F3 /* Preview Content */ = {
74 | isa = PBXGroup;
75 | children = (
76 | 5101E73424D26CB10004C7F3 /* Preview Assets.xcassets */,
77 | );
78 | path = "Preview Content";
79 | sourceTree = "";
80 | };
81 | /* End PBXGroup section */
82 |
83 | /* Begin PBXNativeTarget section */
84 | 5101E72724D26CAA0004C7F3 /* Timers */ = {
85 | isa = PBXNativeTarget;
86 | buildConfigurationList = 5101E73C24D26CB10004C7F3 /* Build configuration list for PBXNativeTarget "Timers" */;
87 | buildPhases = (
88 | 5101E72424D26CAA0004C7F3 /* Sources */,
89 | 5101E72524D26CAA0004C7F3 /* Frameworks */,
90 | 5101E72624D26CAA0004C7F3 /* Resources */,
91 | );
92 | buildRules = (
93 | );
94 | dependencies = (
95 | );
96 | name = Timers;
97 | productName = Timers;
98 | productReference = 5101E72824D26CAA0004C7F3 /* Timers.app */;
99 | productType = "com.apple.product-type.application";
100 | };
101 | /* End PBXNativeTarget section */
102 |
103 | /* Begin PBXProject section */
104 | 5101E72024D26CAA0004C7F3 /* Project object */ = {
105 | isa = PBXProject;
106 | attributes = {
107 | LastSwiftUpdateCheck = 1160;
108 | LastUpgradeCheck = 1160;
109 | ORGANIZATIONNAME = "Shubham Singh";
110 | TargetAttributes = {
111 | 5101E72724D26CAA0004C7F3 = {
112 | CreatedOnToolsVersion = 11.6;
113 | };
114 | };
115 | };
116 | buildConfigurationList = 5101E72324D26CAA0004C7F3 /* Build configuration list for PBXProject "Timers" */;
117 | compatibilityVersion = "Xcode 9.3";
118 | developmentRegion = en;
119 | hasScannedForEncodings = 0;
120 | knownRegions = (
121 | en,
122 | Base,
123 | );
124 | mainGroup = 5101E71F24D26CAA0004C7F3;
125 | productRefGroup = 5101E72924D26CAA0004C7F3 /* Products */;
126 | projectDirPath = "";
127 | projectRoot = "";
128 | targets = (
129 | 5101E72724D26CAA0004C7F3 /* Timers */,
130 | );
131 | };
132 | /* End PBXProject section */
133 |
134 | /* Begin PBXResourcesBuildPhase section */
135 | 5101E72624D26CAA0004C7F3 /* Resources */ = {
136 | isa = PBXResourcesBuildPhase;
137 | buildActionMask = 2147483647;
138 | files = (
139 | 5101E73824D26CB10004C7F3 /* LaunchScreen.storyboard in Resources */,
140 | 5101E73524D26CB10004C7F3 /* Preview Assets.xcassets in Resources */,
141 | 5101E73224D26CB10004C7F3 /* Assets.xcassets in Resources */,
142 | );
143 | runOnlyForDeploymentPostprocessing = 0;
144 | };
145 | /* End PBXResourcesBuildPhase section */
146 |
147 | /* Begin PBXSourcesBuildPhase section */
148 | 5101E72424D26CAA0004C7F3 /* Sources */ = {
149 | isa = PBXSourcesBuildPhase;
150 | buildActionMask = 2147483647;
151 | files = (
152 | 5101E72C24D26CAA0004C7F3 /* AppDelegate.swift in Sources */,
153 | 5157207F24D327960082B3AA /* LoaderView.swift in Sources */,
154 | 5101E72E24D26CAA0004C7F3 /* SceneDelegate.swift in Sources */,
155 | 5101E73024D26CAA0004C7F3 /* TimerView.swift in Sources */,
156 | );
157 | runOnlyForDeploymentPostprocessing = 0;
158 | };
159 | /* End PBXSourcesBuildPhase section */
160 |
161 | /* Begin PBXVariantGroup section */
162 | 5101E73624D26CB10004C7F3 /* LaunchScreen.storyboard */ = {
163 | isa = PBXVariantGroup;
164 | children = (
165 | 5101E73724D26CB10004C7F3 /* Base */,
166 | );
167 | name = LaunchScreen.storyboard;
168 | sourceTree = "";
169 | };
170 | /* End PBXVariantGroup section */
171 |
172 | /* Begin XCBuildConfiguration section */
173 | 5101E73A24D26CB10004C7F3 /* Debug */ = {
174 | isa = XCBuildConfiguration;
175 | buildSettings = {
176 | ALWAYS_SEARCH_USER_PATHS = NO;
177 | CLANG_ANALYZER_NONNULL = YES;
178 | CLANG_ANALYZER_NUMBER_OBJECT_CONVERSION = YES_AGGRESSIVE;
179 | CLANG_CXX_LANGUAGE_STANDARD = "gnu++14";
180 | CLANG_CXX_LIBRARY = "libc++";
181 | CLANG_ENABLE_MODULES = YES;
182 | CLANG_ENABLE_OBJC_ARC = YES;
183 | CLANG_ENABLE_OBJC_WEAK = YES;
184 | CLANG_WARN_BLOCK_CAPTURE_AUTORELEASING = YES;
185 | CLANG_WARN_BOOL_CONVERSION = YES;
186 | CLANG_WARN_COMMA = YES;
187 | CLANG_WARN_CONSTANT_CONVERSION = YES;
188 | CLANG_WARN_DEPRECATED_OBJC_IMPLEMENTATIONS = YES;
189 | CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR;
190 | CLANG_WARN_DOCUMENTATION_COMMENTS = YES;
191 | CLANG_WARN_EMPTY_BODY = YES;
192 | CLANG_WARN_ENUM_CONVERSION = YES;
193 | CLANG_WARN_INFINITE_RECURSION = YES;
194 | CLANG_WARN_INT_CONVERSION = YES;
195 | CLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES;
196 | CLANG_WARN_OBJC_IMPLICIT_RETAIN_SELF = YES;
197 | CLANG_WARN_OBJC_LITERAL_CONVERSION = YES;
198 | CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR;
199 | CLANG_WARN_RANGE_LOOP_ANALYSIS = YES;
200 | CLANG_WARN_STRICT_PROTOTYPES = YES;
201 | CLANG_WARN_SUSPICIOUS_MOVE = YES;
202 | CLANG_WARN_UNGUARDED_AVAILABILITY = YES_AGGRESSIVE;
203 | CLANG_WARN_UNREACHABLE_CODE = YES;
204 | CLANG_WARN__DUPLICATE_METHOD_MATCH = YES;
205 | COPY_PHASE_STRIP = NO;
206 | DEBUG_INFORMATION_FORMAT = dwarf;
207 | ENABLE_STRICT_OBJC_MSGSEND = YES;
208 | ENABLE_TESTABILITY = YES;
209 | GCC_C_LANGUAGE_STANDARD = gnu11;
210 | GCC_DYNAMIC_NO_PIC = NO;
211 | GCC_NO_COMMON_BLOCKS = YES;
212 | GCC_OPTIMIZATION_LEVEL = 0;
213 | GCC_PREPROCESSOR_DEFINITIONS = (
214 | "DEBUG=1",
215 | "$(inherited)",
216 | );
217 | GCC_WARN_64_TO_32_BIT_CONVERSION = YES;
218 | GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR;
219 | GCC_WARN_UNDECLARED_SELECTOR = YES;
220 | GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE;
221 | GCC_WARN_UNUSED_FUNCTION = YES;
222 | GCC_WARN_UNUSED_VARIABLE = YES;
223 | IPHONEOS_DEPLOYMENT_TARGET = 13.6;
224 | MTL_ENABLE_DEBUG_INFO = INCLUDE_SOURCE;
225 | MTL_FAST_MATH = YES;
226 | ONLY_ACTIVE_ARCH = YES;
227 | SDKROOT = iphoneos;
228 | SWIFT_ACTIVE_COMPILATION_CONDITIONS = DEBUG;
229 | SWIFT_OPTIMIZATION_LEVEL = "-Onone";
230 | };
231 | name = Debug;
232 | };
233 | 5101E73B24D26CB10004C7F3 /* Release */ = {
234 | isa = XCBuildConfiguration;
235 | buildSettings = {
236 | ALWAYS_SEARCH_USER_PATHS = NO;
237 | CLANG_ANALYZER_NONNULL = YES;
238 | CLANG_ANALYZER_NUMBER_OBJECT_CONVERSION = YES_AGGRESSIVE;
239 | CLANG_CXX_LANGUAGE_STANDARD = "gnu++14";
240 | CLANG_CXX_LIBRARY = "libc++";
241 | CLANG_ENABLE_MODULES = YES;
242 | CLANG_ENABLE_OBJC_ARC = YES;
243 | CLANG_ENABLE_OBJC_WEAK = YES;
244 | CLANG_WARN_BLOCK_CAPTURE_AUTORELEASING = YES;
245 | CLANG_WARN_BOOL_CONVERSION = YES;
246 | CLANG_WARN_COMMA = YES;
247 | CLANG_WARN_CONSTANT_CONVERSION = YES;
248 | CLANG_WARN_DEPRECATED_OBJC_IMPLEMENTATIONS = YES;
249 | CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR;
250 | CLANG_WARN_DOCUMENTATION_COMMENTS = YES;
251 | CLANG_WARN_EMPTY_BODY = YES;
252 | CLANG_WARN_ENUM_CONVERSION = YES;
253 | CLANG_WARN_INFINITE_RECURSION = YES;
254 | CLANG_WARN_INT_CONVERSION = YES;
255 | CLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES;
256 | CLANG_WARN_OBJC_IMPLICIT_RETAIN_SELF = YES;
257 | CLANG_WARN_OBJC_LITERAL_CONVERSION = YES;
258 | CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR;
259 | CLANG_WARN_RANGE_LOOP_ANALYSIS = YES;
260 | CLANG_WARN_STRICT_PROTOTYPES = YES;
261 | CLANG_WARN_SUSPICIOUS_MOVE = YES;
262 | CLANG_WARN_UNGUARDED_AVAILABILITY = YES_AGGRESSIVE;
263 | CLANG_WARN_UNREACHABLE_CODE = YES;
264 | CLANG_WARN__DUPLICATE_METHOD_MATCH = YES;
265 | COPY_PHASE_STRIP = NO;
266 | DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym";
267 | ENABLE_NS_ASSERTIONS = NO;
268 | ENABLE_STRICT_OBJC_MSGSEND = YES;
269 | GCC_C_LANGUAGE_STANDARD = gnu11;
270 | GCC_NO_COMMON_BLOCKS = YES;
271 | GCC_WARN_64_TO_32_BIT_CONVERSION = YES;
272 | GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR;
273 | GCC_WARN_UNDECLARED_SELECTOR = YES;
274 | GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE;
275 | GCC_WARN_UNUSED_FUNCTION = YES;
276 | GCC_WARN_UNUSED_VARIABLE = YES;
277 | IPHONEOS_DEPLOYMENT_TARGET = 13.6;
278 | MTL_ENABLE_DEBUG_INFO = NO;
279 | MTL_FAST_MATH = YES;
280 | SDKROOT = iphoneos;
281 | SWIFT_COMPILATION_MODE = wholemodule;
282 | SWIFT_OPTIMIZATION_LEVEL = "-O";
283 | VALIDATE_PRODUCT = YES;
284 | };
285 | name = Release;
286 | };
287 | 5101E73D24D26CB10004C7F3 /* Debug */ = {
288 | isa = XCBuildConfiguration;
289 | buildSettings = {
290 | ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;
291 | CODE_SIGN_STYLE = Automatic;
292 | DEVELOPMENT_ASSET_PATHS = "\"Timers/Preview Content\"";
293 | DEVELOPMENT_TEAM = T3JUZKQX4R;
294 | ENABLE_PREVIEWS = YES;
295 | INFOPLIST_FILE = Timers/Info.plist;
296 | LD_RUNPATH_SEARCH_PATHS = (
297 | "$(inherited)",
298 | "@executable_path/Frameworks",
299 | );
300 | PRODUCT_BUNDLE_IDENTIFIER = "com.shubham-iosdev.Timers";
301 | PRODUCT_NAME = "$(TARGET_NAME)";
302 | SWIFT_VERSION = 5.0;
303 | TARGETED_DEVICE_FAMILY = "1,2";
304 | };
305 | name = Debug;
306 | };
307 | 5101E73E24D26CB10004C7F3 /* Release */ = {
308 | isa = XCBuildConfiguration;
309 | buildSettings = {
310 | ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;
311 | CODE_SIGN_STYLE = Automatic;
312 | DEVELOPMENT_ASSET_PATHS = "\"Timers/Preview Content\"";
313 | DEVELOPMENT_TEAM = T3JUZKQX4R;
314 | ENABLE_PREVIEWS = YES;
315 | INFOPLIST_FILE = Timers/Info.plist;
316 | LD_RUNPATH_SEARCH_PATHS = (
317 | "$(inherited)",
318 | "@executable_path/Frameworks",
319 | );
320 | PRODUCT_BUNDLE_IDENTIFIER = "com.shubham-iosdev.Timers";
321 | PRODUCT_NAME = "$(TARGET_NAME)";
322 | SWIFT_VERSION = 5.0;
323 | TARGETED_DEVICE_FAMILY = "1,2";
324 | };
325 | name = Release;
326 | };
327 | /* End XCBuildConfiguration section */
328 |
329 | /* Begin XCConfigurationList section */
330 | 5101E72324D26CAA0004C7F3 /* Build configuration list for PBXProject "Timers" */ = {
331 | isa = XCConfigurationList;
332 | buildConfigurations = (
333 | 5101E73A24D26CB10004C7F3 /* Debug */,
334 | 5101E73B24D26CB10004C7F3 /* Release */,
335 | );
336 | defaultConfigurationIsVisible = 0;
337 | defaultConfigurationName = Release;
338 | };
339 | 5101E73C24D26CB10004C7F3 /* Build configuration list for PBXNativeTarget "Timers" */ = {
340 | isa = XCConfigurationList;
341 | buildConfigurations = (
342 | 5101E73D24D26CB10004C7F3 /* Debug */,
343 | 5101E73E24D26CB10004C7F3 /* Release */,
344 | );
345 | defaultConfigurationIsVisible = 0;
346 | defaultConfigurationName = Release;
347 | };
348 | /* End XCConfigurationList section */
349 | };
350 | rootObject = 5101E72024D26CAA0004C7F3 /* Project object */;
351 | }
352 |
--------------------------------------------------------------------------------