├── LampUI
├── LampUI
│ ├── Assets.xcassets
│ │ ├── Contents.json
│ │ ├── lamp.imageset
│ │ │ ├── lamp.png
│ │ │ └── Contents.json
│ │ ├── light.imageset
│ │ │ ├── light.png
│ │ │ └── Contents.json
│ │ ├── AccentColor.colorset
│ │ │ └── Contents.json
│ │ ├── AppIcon.appiconset
│ │ │ └── Contents.json
│ │ ├── basebg.colorset
│ │ │ └── Contents.json
│ │ └── switch.colorset
│ │ │ └── Contents.json
│ ├── Preview Content
│ │ └── Preview Assets.xcassets
│ │ │ └── Contents.json
│ ├── LampUIApp.swift
│ └── ContentView.swift
└── LampUI.xcodeproj
│ ├── project.xcworkspace
│ ├── contents.xcworkspacedata
│ ├── xcuserdata
│ │ └── shreyasvilaschandrabhike.xcuserdatad
│ │ │ └── UserInterfaceState.xcuserstate
│ └── xcshareddata
│ │ └── IDEWorkspaceChecks.plist
│ ├── xcuserdata
│ └── shreyasvilaschandrabhike.xcuserdatad
│ │ └── xcschemes
│ │ └── xcschememanagement.plist
│ └── project.pbxproj
└── README.md
/LampUI/LampUI/Assets.xcassets/Contents.json:
--------------------------------------------------------------------------------
1 | {
2 | "info" : {
3 | "author" : "xcode",
4 | "version" : 1
5 | }
6 | }
7 |
--------------------------------------------------------------------------------
/LampUI/LampUI/Preview Content/Preview Assets.xcassets/Contents.json:
--------------------------------------------------------------------------------
1 | {
2 | "info" : {
3 | "author" : "xcode",
4 | "version" : 1
5 | }
6 | }
7 |
--------------------------------------------------------------------------------
/LampUI/LampUI/Assets.xcassets/lamp.imageset/lamp.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/TheAppWizard/LampUISwiftUI/HEAD/LampUI/LampUI/Assets.xcassets/lamp.imageset/lamp.png
--------------------------------------------------------------------------------
/LampUI/LampUI/Assets.xcassets/light.imageset/light.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/TheAppWizard/LampUISwiftUI/HEAD/LampUI/LampUI/Assets.xcassets/light.imageset/light.png
--------------------------------------------------------------------------------
/README.md:
--------------------------------------------------------------------------------
1 | # LampUISwiftUI
2 | Lamp UI - Animation
3 | 
4 |
--------------------------------------------------------------------------------
/LampUI/LampUI.xcodeproj/project.xcworkspace/contents.xcworkspacedata:
--------------------------------------------------------------------------------
1 |
2 |
4 |
6 |
7 |
8 |
--------------------------------------------------------------------------------
/LampUI/LampUI/Assets.xcassets/AccentColor.colorset/Contents.json:
--------------------------------------------------------------------------------
1 | {
2 | "colors" : [
3 | {
4 | "idiom" : "universal"
5 | }
6 | ],
7 | "info" : {
8 | "author" : "xcode",
9 | "version" : 1
10 | }
11 | }
12 |
--------------------------------------------------------------------------------
/LampUI/LampUI.xcodeproj/project.xcworkspace/xcuserdata/shreyasvilaschandrabhike.xcuserdatad/UserInterfaceState.xcuserstate:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/TheAppWizard/LampUISwiftUI/HEAD/LampUI/LampUI.xcodeproj/project.xcworkspace/xcuserdata/shreyasvilaschandrabhike.xcuserdatad/UserInterfaceState.xcuserstate
--------------------------------------------------------------------------------
/LampUI/LampUI/Assets.xcassets/AppIcon.appiconset/Contents.json:
--------------------------------------------------------------------------------
1 | {
2 | "images" : [
3 | {
4 | "idiom" : "universal",
5 | "platform" : "ios",
6 | "size" : "1024x1024"
7 | }
8 | ],
9 | "info" : {
10 | "author" : "xcode",
11 | "version" : 1
12 | }
13 | }
14 |
--------------------------------------------------------------------------------
/LampUI/LampUI.xcodeproj/project.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | IDEDidComputeMac32BitWarning
6 |
7 |
8 |
9 |
--------------------------------------------------------------------------------
/LampUI/LampUI/LampUIApp.swift:
--------------------------------------------------------------------------------
1 | //
2 | // LampUIApp.swift
3 | // LampUI
4 | //
5 | // Created by Shreyas Vilaschandra Bhike on 13/02/24.
6 | //
7 |
8 | import SwiftUI
9 |
10 | @main
11 | struct LampUIApp: App {
12 | var body: some Scene {
13 | WindowGroup {
14 | ContentView()
15 | }
16 | }
17 | }
18 |
--------------------------------------------------------------------------------
/LampUI/LampUI/Assets.xcassets/lamp.imageset/Contents.json:
--------------------------------------------------------------------------------
1 | {
2 | "images" : [
3 | {
4 | "filename" : "lamp.png",
5 | "idiom" : "universal",
6 | "scale" : "1x"
7 | },
8 | {
9 | "idiom" : "universal",
10 | "scale" : "2x"
11 | },
12 | {
13 | "idiom" : "universal",
14 | "scale" : "3x"
15 | }
16 | ],
17 | "info" : {
18 | "author" : "xcode",
19 | "version" : 1
20 | }
21 | }
22 |
--------------------------------------------------------------------------------
/LampUI/LampUI/Assets.xcassets/light.imageset/Contents.json:
--------------------------------------------------------------------------------
1 | {
2 | "images" : [
3 | {
4 | "filename" : "light.png",
5 | "idiom" : "universal",
6 | "scale" : "1x"
7 | },
8 | {
9 | "idiom" : "universal",
10 | "scale" : "2x"
11 | },
12 | {
13 | "idiom" : "universal",
14 | "scale" : "3x"
15 | }
16 | ],
17 | "info" : {
18 | "author" : "xcode",
19 | "version" : 1
20 | }
21 | }
22 |
--------------------------------------------------------------------------------
/LampUI/LampUI/Assets.xcassets/basebg.colorset/Contents.json:
--------------------------------------------------------------------------------
1 | {
2 | "colors" : [
3 | {
4 | "color" : {
5 | "color-space" : "srgb",
6 | "components" : {
7 | "alpha" : "1.000",
8 | "blue" : "0x25",
9 | "green" : "0x25",
10 | "red" : "0x25"
11 | }
12 | },
13 | "idiom" : "universal"
14 | }
15 | ],
16 | "info" : {
17 | "author" : "xcode",
18 | "version" : 1
19 | }
20 | }
21 |
--------------------------------------------------------------------------------
/LampUI/LampUI/Assets.xcassets/switch.colorset/Contents.json:
--------------------------------------------------------------------------------
1 | {
2 | "colors" : [
3 | {
4 | "color" : {
5 | "color-space" : "srgb",
6 | "components" : {
7 | "alpha" : "1.000",
8 | "blue" : "0xA6",
9 | "green" : "0xAA",
10 | "red" : "0xAF"
11 | }
12 | },
13 | "idiom" : "universal"
14 | }
15 | ],
16 | "info" : {
17 | "author" : "xcode",
18 | "version" : 1
19 | }
20 | }
21 |
--------------------------------------------------------------------------------
/LampUI/LampUI.xcodeproj/xcuserdata/shreyasvilaschandrabhike.xcuserdatad/xcschemes/xcschememanagement.plist:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | SchemeUserState
6 |
7 | LampUI.xcscheme_^#shared#^_
8 |
9 | orderHint
10 | 0
11 |
12 |
13 |
14 |
15 |
--------------------------------------------------------------------------------
/LampUI/LampUI/ContentView.swift:
--------------------------------------------------------------------------------
1 | //
2 | // ContentView.swift
3 | // LampUI
4 | //
5 | // Created by Shreyas Vilaschandra Bhike on 13/02/24.
6 |
7 | // MARK: Instagram
8 | // TheAppWizard
9 | // MARK: theappwizard2408
10 |
11 | import SwiftUI
12 |
13 |
14 |
15 | struct ContentView: View {
16 | var body: some View {
17 | FinalView()
18 | }
19 | }
20 |
21 |
22 | #Preview {
23 | ContentView()
24 | }
25 |
26 |
27 | struct LightShape: Shape {
28 | func path(in rect: CGRect) -> Path {
29 | var path = Path()
30 | path.addLines([
31 | .init(x: rect.width * 0.1, y: 0),
32 | .init(x: rect.width * 0.7, y: 0),
33 | .init(x: rect.width, y: rect.height * 0.6),
34 | .init(x: 0, y: rect.height * 0.6)
35 | ])
36 | return path
37 | }
38 | }
39 |
40 |
41 |
42 |
43 |
44 |
45 | struct FinalView: View {
46 | @State private var isLampOn = false
47 | @State private var dragOffset: CGSize = .zero
48 | @State private var isDragging = false
49 | @State private var opacity: Double = 0.1
50 |
51 | var body: some View {
52 | ZStack {
53 | Color("basebg").ignoresSafeArea(edges: .all)
54 |
55 | ZStack{
56 |
57 | if(isLampOn){
58 | LightShape()
59 | .fill(
60 | LinearGradient(gradient: Gradient(colors: [Color.white, Color.clear,Color.clear]), startPoint: .top, endPoint: .bottom)
61 | )
62 | .frame(width: 300, height: 600)
63 | .foregroundColor(Color.blue)
64 | .offset(x:-35, y: 250)
65 | .opacity(opacity)
66 | }
67 |
68 |
69 |
70 | Image("lamp")
71 | .resizable()
72 | .aspectRatio(contentMode: .fit)
73 | .frame(width: 300, height: 600)
74 | .offset(x: -50, y: -250)
75 |
76 | if(isLampOn){
77 | VStack{
78 | Spacer()
79 | .frame(height: 600)
80 | ZStack{
81 |
82 | Text("\(String(format: "%.2f", opacity))")
83 | .foregroundStyle(.white)
84 | .font(.system(size: 80))
85 | .opacity(opacity+0.4)
86 | .offset(y:-60)
87 |
88 |
89 | Slider(value: $opacity, in: 0...0.3, step: 0.05)
90 | .accentColor(.white)
91 |
92 | Text("O P A C I T Y")
93 | .foregroundStyle(.white)
94 | .font(.title)
95 | .offset(y:40)
96 | }.offset(x: -40)
97 | .padding(80)
98 |
99 | }
100 | }
101 |
102 |
103 |
104 | ZStack{
105 |
106 | Rectangle()
107 | .foregroundStyle(isLampOn ? .green : .red)
108 | .frame(width: 250, height: 100 )
109 | .clipShape(
110 | CustomShape(
111 | corner: [.bottomRight,.topLeft], radii: 100
112 | ))
113 | .opacity(0.1)
114 |
115 |
116 | Text(isLampOn ? "O N": "O F F")
117 | .font(.title)
118 | .fontWeight(.bold)
119 | .offset(x: -40)
120 | .foregroundStyle(isLampOn ? .green : .red)
121 |
122 | }.offset(x: 170,y: 420)
123 |
124 |
125 |
126 |
127 | VStack{
128 | Image(systemName: "chevron.left")
129 | .font(.title)
130 | .fontWeight(.bold)
131 | .foregroundStyle(.white)
132 | .offset(x:-180,y:80)
133 |
134 |
135 |
136 | Spacer()
137 | }
138 |
139 | }
140 |
141 |
142 |
143 | HandleView()
144 | .offset(x: 140,y: isDragging ? dragOffset.height : -150)
145 | .animation(.spring(duration: 2, bounce: 0.3),value: isDragging)
146 | .gesture(
147 | DragGesture()
148 | .onChanged { value in
149 | isDragging = true
150 | dragOffset = value.translation
151 | }
152 | .onEnded { value in
153 | isDragging = false
154 | dragOffset = .zero
155 | if value.translation.height > 20 {
156 | isLampOn.toggle()
157 | }
158 | }
159 | )
160 |
161 |
162 | }
163 | }
164 | }
165 |
166 |
167 |
168 |
169 | struct HandleView: View {
170 | var body: some View {
171 | ZStack{
172 | ZStack{
173 | RoundedRectangle(cornerRadius: 25)
174 | .stroke(.white, lineWidth: 5)
175 | .frame(width: 50,height: 100)
176 | }
177 |
178 | Rectangle()
179 | .frame(width: 5,height: 1000)
180 | .foregroundStyle(.white)
181 | .offset(y:-500)
182 |
183 |
184 | Text("PULL DOWN")
185 | .foregroundStyle(.white)
186 | .rotationEffect(Angle(degrees: -90))
187 | .font(.title)
188 | .opacity(0.2)
189 | .offset(x: -20 , y: -150)
190 |
191 | }
192 | }
193 | }
194 |
195 |
196 |
197 |
198 |
199 | struct CustomShape: Shape {
200 | var corner : UIRectCorner
201 | var radii : CGFloat
202 |
203 | func path(in rect : CGRect) -> Path{
204 | let path = UIBezierPath(
205 | roundedRect : rect,
206 | byRoundingCorners: corner,
207 | cornerRadii: CGSize(
208 | width: radii, height: radii))
209 |
210 | return Path(path.cgPath)
211 | }
212 | }
213 |
--------------------------------------------------------------------------------
/LampUI/LampUI.xcodeproj/project.pbxproj:
--------------------------------------------------------------------------------
1 | // !$*UTF8*$!
2 | {
3 | archiveVersion = 1;
4 | classes = {
5 | };
6 | objectVersion = 56;
7 | objects = {
8 |
9 | /* Begin PBXBuildFile section */
10 | 5C3FAC2A2B7BCFFC00EDBDEE /* LampUIApp.swift in Sources */ = {isa = PBXBuildFile; fileRef = 5C3FAC292B7BCFFC00EDBDEE /* LampUIApp.swift */; };
11 | 5C3FAC2C2B7BCFFC00EDBDEE /* ContentView.swift in Sources */ = {isa = PBXBuildFile; fileRef = 5C3FAC2B2B7BCFFC00EDBDEE /* ContentView.swift */; };
12 | 5C3FAC2E2B7BCFFE00EDBDEE /* Assets.xcassets in Resources */ = {isa = PBXBuildFile; fileRef = 5C3FAC2D2B7BCFFE00EDBDEE /* Assets.xcassets */; };
13 | 5C3FAC312B7BCFFE00EDBDEE /* Preview Assets.xcassets in Resources */ = {isa = PBXBuildFile; fileRef = 5C3FAC302B7BCFFE00EDBDEE /* Preview Assets.xcassets */; };
14 | /* End PBXBuildFile section */
15 |
16 | /* Begin PBXFileReference section */
17 | 5C3FAC262B7BCFFC00EDBDEE /* LampUI.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = LampUI.app; sourceTree = BUILT_PRODUCTS_DIR; };
18 | 5C3FAC292B7BCFFC00EDBDEE /* LampUIApp.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = LampUIApp.swift; sourceTree = ""; };
19 | 5C3FAC2B2B7BCFFC00EDBDEE /* ContentView.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = ContentView.swift; sourceTree = ""; };
20 | 5C3FAC2D2B7BCFFE00EDBDEE /* Assets.xcassets */ = {isa = PBXFileReference; lastKnownFileType = folder.assetcatalog; path = Assets.xcassets; sourceTree = ""; };
21 | 5C3FAC302B7BCFFE00EDBDEE /* Preview Assets.xcassets */ = {isa = PBXFileReference; lastKnownFileType = folder.assetcatalog; path = "Preview Assets.xcassets"; sourceTree = ""; };
22 | /* End PBXFileReference section */
23 |
24 | /* Begin PBXFrameworksBuildPhase section */
25 | 5C3FAC232B7BCFFC00EDBDEE /* Frameworks */ = {
26 | isa = PBXFrameworksBuildPhase;
27 | buildActionMask = 2147483647;
28 | files = (
29 | );
30 | runOnlyForDeploymentPostprocessing = 0;
31 | };
32 | /* End PBXFrameworksBuildPhase section */
33 |
34 | /* Begin PBXGroup section */
35 | 5C3FAC1D2B7BCFFC00EDBDEE = {
36 | isa = PBXGroup;
37 | children = (
38 | 5C3FAC282B7BCFFC00EDBDEE /* LampUI */,
39 | 5C3FAC272B7BCFFC00EDBDEE /* Products */,
40 | );
41 | sourceTree = "";
42 | };
43 | 5C3FAC272B7BCFFC00EDBDEE /* Products */ = {
44 | isa = PBXGroup;
45 | children = (
46 | 5C3FAC262B7BCFFC00EDBDEE /* LampUI.app */,
47 | );
48 | name = Products;
49 | sourceTree = "";
50 | };
51 | 5C3FAC282B7BCFFC00EDBDEE /* LampUI */ = {
52 | isa = PBXGroup;
53 | children = (
54 | 5C3FAC292B7BCFFC00EDBDEE /* LampUIApp.swift */,
55 | 5C3FAC2B2B7BCFFC00EDBDEE /* ContentView.swift */,
56 | 5C3FAC2D2B7BCFFE00EDBDEE /* Assets.xcassets */,
57 | 5C3FAC2F2B7BCFFE00EDBDEE /* Preview Content */,
58 | );
59 | path = LampUI;
60 | sourceTree = "";
61 | };
62 | 5C3FAC2F2B7BCFFE00EDBDEE /* Preview Content */ = {
63 | isa = PBXGroup;
64 | children = (
65 | 5C3FAC302B7BCFFE00EDBDEE /* Preview Assets.xcassets */,
66 | );
67 | path = "Preview Content";
68 | sourceTree = "";
69 | };
70 | /* End PBXGroup section */
71 |
72 | /* Begin PBXNativeTarget section */
73 | 5C3FAC252B7BCFFC00EDBDEE /* LampUI */ = {
74 | isa = PBXNativeTarget;
75 | buildConfigurationList = 5C3FAC342B7BCFFE00EDBDEE /* Build configuration list for PBXNativeTarget "LampUI" */;
76 | buildPhases = (
77 | 5C3FAC222B7BCFFC00EDBDEE /* Sources */,
78 | 5C3FAC232B7BCFFC00EDBDEE /* Frameworks */,
79 | 5C3FAC242B7BCFFC00EDBDEE /* Resources */,
80 | );
81 | buildRules = (
82 | );
83 | dependencies = (
84 | );
85 | name = LampUI;
86 | productName = LampUI;
87 | productReference = 5C3FAC262B7BCFFC00EDBDEE /* LampUI.app */;
88 | productType = "com.apple.product-type.application";
89 | };
90 | /* End PBXNativeTarget section */
91 |
92 | /* Begin PBXProject section */
93 | 5C3FAC1E2B7BCFFC00EDBDEE /* Project object */ = {
94 | isa = PBXProject;
95 | attributes = {
96 | BuildIndependentTargetsInParallel = 1;
97 | LastSwiftUpdateCheck = 1520;
98 | LastUpgradeCheck = 1520;
99 | TargetAttributes = {
100 | 5C3FAC252B7BCFFC00EDBDEE = {
101 | CreatedOnToolsVersion = 15.2;
102 | };
103 | };
104 | };
105 | buildConfigurationList = 5C3FAC212B7BCFFC00EDBDEE /* Build configuration list for PBXProject "LampUI" */;
106 | compatibilityVersion = "Xcode 14.0";
107 | developmentRegion = en;
108 | hasScannedForEncodings = 0;
109 | knownRegions = (
110 | en,
111 | Base,
112 | );
113 | mainGroup = 5C3FAC1D2B7BCFFC00EDBDEE;
114 | productRefGroup = 5C3FAC272B7BCFFC00EDBDEE /* Products */;
115 | projectDirPath = "";
116 | projectRoot = "";
117 | targets = (
118 | 5C3FAC252B7BCFFC00EDBDEE /* LampUI */,
119 | );
120 | };
121 | /* End PBXProject section */
122 |
123 | /* Begin PBXResourcesBuildPhase section */
124 | 5C3FAC242B7BCFFC00EDBDEE /* Resources */ = {
125 | isa = PBXResourcesBuildPhase;
126 | buildActionMask = 2147483647;
127 | files = (
128 | 5C3FAC312B7BCFFE00EDBDEE /* Preview Assets.xcassets in Resources */,
129 | 5C3FAC2E2B7BCFFE00EDBDEE /* Assets.xcassets in Resources */,
130 | );
131 | runOnlyForDeploymentPostprocessing = 0;
132 | };
133 | /* End PBXResourcesBuildPhase section */
134 |
135 | /* Begin PBXSourcesBuildPhase section */
136 | 5C3FAC222B7BCFFC00EDBDEE /* Sources */ = {
137 | isa = PBXSourcesBuildPhase;
138 | buildActionMask = 2147483647;
139 | files = (
140 | 5C3FAC2C2B7BCFFC00EDBDEE /* ContentView.swift in Sources */,
141 | 5C3FAC2A2B7BCFFC00EDBDEE /* LampUIApp.swift in Sources */,
142 | );
143 | runOnlyForDeploymentPostprocessing = 0;
144 | };
145 | /* End PBXSourcesBuildPhase section */
146 |
147 | /* Begin XCBuildConfiguration section */
148 | 5C3FAC322B7BCFFE00EDBDEE /* Debug */ = {
149 | isa = XCBuildConfiguration;
150 | buildSettings = {
151 | ALWAYS_SEARCH_USER_PATHS = NO;
152 | ASSETCATALOG_COMPILER_GENERATE_SWIFT_ASSET_SYMBOL_EXTENSIONS = YES;
153 | CLANG_ANALYZER_NONNULL = YES;
154 | CLANG_ANALYZER_NUMBER_OBJECT_CONVERSION = YES_AGGRESSIVE;
155 | CLANG_CXX_LANGUAGE_STANDARD = "gnu++20";
156 | CLANG_ENABLE_MODULES = YES;
157 | CLANG_ENABLE_OBJC_ARC = YES;
158 | CLANG_ENABLE_OBJC_WEAK = YES;
159 | CLANG_WARN_BLOCK_CAPTURE_AUTORELEASING = YES;
160 | CLANG_WARN_BOOL_CONVERSION = YES;
161 | CLANG_WARN_COMMA = YES;
162 | CLANG_WARN_CONSTANT_CONVERSION = YES;
163 | CLANG_WARN_DEPRECATED_OBJC_IMPLEMENTATIONS = YES;
164 | CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR;
165 | CLANG_WARN_DOCUMENTATION_COMMENTS = YES;
166 | CLANG_WARN_EMPTY_BODY = YES;
167 | CLANG_WARN_ENUM_CONVERSION = YES;
168 | CLANG_WARN_INFINITE_RECURSION = YES;
169 | CLANG_WARN_INT_CONVERSION = YES;
170 | CLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES;
171 | CLANG_WARN_OBJC_IMPLICIT_RETAIN_SELF = YES;
172 | CLANG_WARN_OBJC_LITERAL_CONVERSION = YES;
173 | CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR;
174 | CLANG_WARN_QUOTED_INCLUDE_IN_FRAMEWORK_HEADER = YES;
175 | CLANG_WARN_RANGE_LOOP_ANALYSIS = YES;
176 | CLANG_WARN_STRICT_PROTOTYPES = YES;
177 | CLANG_WARN_SUSPICIOUS_MOVE = YES;
178 | CLANG_WARN_UNGUARDED_AVAILABILITY = YES_AGGRESSIVE;
179 | CLANG_WARN_UNREACHABLE_CODE = YES;
180 | CLANG_WARN__DUPLICATE_METHOD_MATCH = YES;
181 | COPY_PHASE_STRIP = NO;
182 | DEBUG_INFORMATION_FORMAT = dwarf;
183 | ENABLE_STRICT_OBJC_MSGSEND = YES;
184 | ENABLE_TESTABILITY = YES;
185 | ENABLE_USER_SCRIPT_SANDBOXING = YES;
186 | GCC_C_LANGUAGE_STANDARD = gnu17;
187 | GCC_DYNAMIC_NO_PIC = NO;
188 | GCC_NO_COMMON_BLOCKS = YES;
189 | GCC_OPTIMIZATION_LEVEL = 0;
190 | GCC_PREPROCESSOR_DEFINITIONS = (
191 | "DEBUG=1",
192 | "$(inherited)",
193 | );
194 | GCC_WARN_64_TO_32_BIT_CONVERSION = YES;
195 | GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR;
196 | GCC_WARN_UNDECLARED_SELECTOR = YES;
197 | GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE;
198 | GCC_WARN_UNUSED_FUNCTION = YES;
199 | GCC_WARN_UNUSED_VARIABLE = YES;
200 | IPHONEOS_DEPLOYMENT_TARGET = 17.2;
201 | LOCALIZATION_PREFERS_STRING_CATALOGS = YES;
202 | MTL_ENABLE_DEBUG_INFO = INCLUDE_SOURCE;
203 | MTL_FAST_MATH = YES;
204 | ONLY_ACTIVE_ARCH = YES;
205 | SDKROOT = iphoneos;
206 | SWIFT_ACTIVE_COMPILATION_CONDITIONS = "DEBUG $(inherited)";
207 | SWIFT_OPTIMIZATION_LEVEL = "-Onone";
208 | };
209 | name = Debug;
210 | };
211 | 5C3FAC332B7BCFFE00EDBDEE /* Release */ = {
212 | isa = XCBuildConfiguration;
213 | buildSettings = {
214 | ALWAYS_SEARCH_USER_PATHS = NO;
215 | ASSETCATALOG_COMPILER_GENERATE_SWIFT_ASSET_SYMBOL_EXTENSIONS = YES;
216 | CLANG_ANALYZER_NONNULL = YES;
217 | CLANG_ANALYZER_NUMBER_OBJECT_CONVERSION = YES_AGGRESSIVE;
218 | CLANG_CXX_LANGUAGE_STANDARD = "gnu++20";
219 | CLANG_ENABLE_MODULES = YES;
220 | CLANG_ENABLE_OBJC_ARC = YES;
221 | CLANG_ENABLE_OBJC_WEAK = YES;
222 | CLANG_WARN_BLOCK_CAPTURE_AUTORELEASING = YES;
223 | CLANG_WARN_BOOL_CONVERSION = YES;
224 | CLANG_WARN_COMMA = YES;
225 | CLANG_WARN_CONSTANT_CONVERSION = YES;
226 | CLANG_WARN_DEPRECATED_OBJC_IMPLEMENTATIONS = YES;
227 | CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR;
228 | CLANG_WARN_DOCUMENTATION_COMMENTS = YES;
229 | CLANG_WARN_EMPTY_BODY = YES;
230 | CLANG_WARN_ENUM_CONVERSION = YES;
231 | CLANG_WARN_INFINITE_RECURSION = YES;
232 | CLANG_WARN_INT_CONVERSION = YES;
233 | CLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES;
234 | CLANG_WARN_OBJC_IMPLICIT_RETAIN_SELF = YES;
235 | CLANG_WARN_OBJC_LITERAL_CONVERSION = YES;
236 | CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR;
237 | CLANG_WARN_QUOTED_INCLUDE_IN_FRAMEWORK_HEADER = YES;
238 | CLANG_WARN_RANGE_LOOP_ANALYSIS = YES;
239 | CLANG_WARN_STRICT_PROTOTYPES = YES;
240 | CLANG_WARN_SUSPICIOUS_MOVE = YES;
241 | CLANG_WARN_UNGUARDED_AVAILABILITY = YES_AGGRESSIVE;
242 | CLANG_WARN_UNREACHABLE_CODE = YES;
243 | CLANG_WARN__DUPLICATE_METHOD_MATCH = YES;
244 | COPY_PHASE_STRIP = NO;
245 | DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym";
246 | ENABLE_NS_ASSERTIONS = NO;
247 | ENABLE_STRICT_OBJC_MSGSEND = YES;
248 | ENABLE_USER_SCRIPT_SANDBOXING = YES;
249 | GCC_C_LANGUAGE_STANDARD = gnu17;
250 | GCC_NO_COMMON_BLOCKS = YES;
251 | GCC_WARN_64_TO_32_BIT_CONVERSION = YES;
252 | GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR;
253 | GCC_WARN_UNDECLARED_SELECTOR = YES;
254 | GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE;
255 | GCC_WARN_UNUSED_FUNCTION = YES;
256 | GCC_WARN_UNUSED_VARIABLE = YES;
257 | IPHONEOS_DEPLOYMENT_TARGET = 17.2;
258 | LOCALIZATION_PREFERS_STRING_CATALOGS = YES;
259 | MTL_ENABLE_DEBUG_INFO = NO;
260 | MTL_FAST_MATH = YES;
261 | SDKROOT = iphoneos;
262 | SWIFT_COMPILATION_MODE = wholemodule;
263 | VALIDATE_PRODUCT = YES;
264 | };
265 | name = Release;
266 | };
267 | 5C3FAC352B7BCFFE00EDBDEE /* Debug */ = {
268 | isa = XCBuildConfiguration;
269 | buildSettings = {
270 | ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;
271 | ASSETCATALOG_COMPILER_GLOBAL_ACCENT_COLOR_NAME = AccentColor;
272 | CODE_SIGN_STYLE = Automatic;
273 | CURRENT_PROJECT_VERSION = 1;
274 | DEVELOPMENT_ASSET_PATHS = "\"LampUI/Preview Content\"";
275 | DEVELOPMENT_TEAM = 56ZBSRTSDR;
276 | ENABLE_PREVIEWS = YES;
277 | GENERATE_INFOPLIST_FILE = YES;
278 | INFOPLIST_KEY_UIApplicationSceneManifest_Generation = YES;
279 | INFOPLIST_KEY_UIApplicationSupportsIndirectInputEvents = YES;
280 | INFOPLIST_KEY_UILaunchScreen_Generation = YES;
281 | INFOPLIST_KEY_UISupportedInterfaceOrientations_iPad = "UIInterfaceOrientationPortrait UIInterfaceOrientationPortraitUpsideDown UIInterfaceOrientationLandscapeLeft UIInterfaceOrientationLandscapeRight";
282 | INFOPLIST_KEY_UISupportedInterfaceOrientations_iPhone = "UIInterfaceOrientationPortrait UIInterfaceOrientationLandscapeLeft UIInterfaceOrientationLandscapeRight";
283 | LD_RUNPATH_SEARCH_PATHS = (
284 | "$(inherited)",
285 | "@executable_path/Frameworks",
286 | );
287 | MARKETING_VERSION = 1.0;
288 | PRODUCT_BUNDLE_IDENTIFIER = com.shreyasvilaschandrabhike.LampUI;
289 | PRODUCT_NAME = "$(TARGET_NAME)";
290 | SWIFT_EMIT_LOC_STRINGS = YES;
291 | SWIFT_VERSION = 5.0;
292 | TARGETED_DEVICE_FAMILY = "1,2";
293 | };
294 | name = Debug;
295 | };
296 | 5C3FAC362B7BCFFE00EDBDEE /* Release */ = {
297 | isa = XCBuildConfiguration;
298 | buildSettings = {
299 | ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;
300 | ASSETCATALOG_COMPILER_GLOBAL_ACCENT_COLOR_NAME = AccentColor;
301 | CODE_SIGN_STYLE = Automatic;
302 | CURRENT_PROJECT_VERSION = 1;
303 | DEVELOPMENT_ASSET_PATHS = "\"LampUI/Preview Content\"";
304 | DEVELOPMENT_TEAM = 56ZBSRTSDR;
305 | ENABLE_PREVIEWS = YES;
306 | GENERATE_INFOPLIST_FILE = YES;
307 | INFOPLIST_KEY_UIApplicationSceneManifest_Generation = YES;
308 | INFOPLIST_KEY_UIApplicationSupportsIndirectInputEvents = YES;
309 | INFOPLIST_KEY_UILaunchScreen_Generation = YES;
310 | INFOPLIST_KEY_UISupportedInterfaceOrientations_iPad = "UIInterfaceOrientationPortrait UIInterfaceOrientationPortraitUpsideDown UIInterfaceOrientationLandscapeLeft UIInterfaceOrientationLandscapeRight";
311 | INFOPLIST_KEY_UISupportedInterfaceOrientations_iPhone = "UIInterfaceOrientationPortrait UIInterfaceOrientationLandscapeLeft UIInterfaceOrientationLandscapeRight";
312 | LD_RUNPATH_SEARCH_PATHS = (
313 | "$(inherited)",
314 | "@executable_path/Frameworks",
315 | );
316 | MARKETING_VERSION = 1.0;
317 | PRODUCT_BUNDLE_IDENTIFIER = com.shreyasvilaschandrabhike.LampUI;
318 | PRODUCT_NAME = "$(TARGET_NAME)";
319 | SWIFT_EMIT_LOC_STRINGS = YES;
320 | SWIFT_VERSION = 5.0;
321 | TARGETED_DEVICE_FAMILY = "1,2";
322 | };
323 | name = Release;
324 | };
325 | /* End XCBuildConfiguration section */
326 |
327 | /* Begin XCConfigurationList section */
328 | 5C3FAC212B7BCFFC00EDBDEE /* Build configuration list for PBXProject "LampUI" */ = {
329 | isa = XCConfigurationList;
330 | buildConfigurations = (
331 | 5C3FAC322B7BCFFE00EDBDEE /* Debug */,
332 | 5C3FAC332B7BCFFE00EDBDEE /* Release */,
333 | );
334 | defaultConfigurationIsVisible = 0;
335 | defaultConfigurationName = Release;
336 | };
337 | 5C3FAC342B7BCFFE00EDBDEE /* Build configuration list for PBXNativeTarget "LampUI" */ = {
338 | isa = XCConfigurationList;
339 | buildConfigurations = (
340 | 5C3FAC352B7BCFFE00EDBDEE /* Debug */,
341 | 5C3FAC362B7BCFFE00EDBDEE /* Release */,
342 | );
343 | defaultConfigurationIsVisible = 0;
344 | defaultConfigurationName = Release;
345 | };
346 | /* End XCConfigurationList section */
347 | };
348 | rootObject = 5C3FAC1E2B7BCFFC00EDBDEE /* Project object */;
349 | }
350 |
--------------------------------------------------------------------------------