├── LICENSE
├── README.md
├── SaaSDashboard.xcodeproj
├── project.pbxproj
├── project.xcworkspace
│ ├── contents.xcworkspacedata
│ ├── xcshareddata
│ │ └── IDEWorkspaceChecks.plist
│ └── xcuserdata
│ │ └── shameem.xcuserdatad
│ │ └── UserInterfaceState.xcuserstate
└── xcuserdata
│ └── shameem.xcuserdatad
│ └── xcschemes
│ └── xcschememanagement.plist
├── SaaSDashboard
├── Assets.xcassets
│ ├── AccentColor.colorset
│ │ └── Contents.json
│ ├── AppIcon.appiconset
│ │ ├── 100.png
│ │ ├── 1024.png
│ │ ├── 114.png
│ │ ├── 120.png
│ │ ├── 128.png
│ │ ├── 144.png
│ │ ├── 152.png
│ │ ├── 16.png
│ │ ├── 167.png
│ │ ├── 180.png
│ │ ├── 20.png
│ │ ├── 256.png
│ │ ├── 29.png
│ │ ├── 32.png
│ │ ├── 40.png
│ │ ├── 50.png
│ │ ├── 512.png
│ │ ├── 57.png
│ │ ├── 58.png
│ │ ├── 60.png
│ │ ├── 64.png
│ │ ├── 72.png
│ │ ├── 76.png
│ │ ├── 80.png
│ │ ├── 87.png
│ │ └── Contents.json
│ ├── Colors
│ │ ├── BG.colorset
│ │ │ └── Contents.json
│ │ ├── Contents.json
│ │ ├── chartColor1.colorset
│ │ │ └── Contents.json
│ │ ├── chartColor2.colorset
│ │ │ └── Contents.json
│ │ ├── menuTab.colorset
│ │ │ └── Contents.json
│ │ └── roundColor.colorset
│ │ │ └── Contents.json
│ ├── Contents.json
│ ├── Icons
│ │ ├── Contents.json
│ │ ├── chart.imageset
│ │ │ ├── Contents.json
│ │ │ └── chart.png
│ │ ├── chat.imageset
│ │ │ ├── Contents.json
│ │ │ └── chat.png
│ │ ├── home.imageset
│ │ │ ├── Contents.json
│ │ │ └── home.png
│ │ ├── option.imageset
│ │ │ ├── Contents.json
│ │ │ └── option.png
│ │ └── setting.imageset
│ │ │ ├── Contents.json
│ │ │ └── setting.png
│ └── LaunchScreen.imageset
│ │ ├── Contents.json
│ │ └── LaunchScreen.png
├── ContentView.swift
├── Launch Screen.storyboard
├── Model
│ └── Sales.swift
├── Preview Content
│ └── Preview Assets.xcassets
│ │ └── Contents.json
├── SaaSDashboardApp.swift
└── View
│ ├── BaseView.swift
│ ├── GraphView.swift
│ └── Home.swift
└── row
├── preview-1.png
└── preview-2.png
/LICENSE:
--------------------------------------------------------------------------------
1 | Apache License
2 | Version 2.0, January 2004
3 | http://www.apache.org/licenses/
4 |
5 | TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
6 |
7 | 1. Definitions.
8 |
9 | "License" shall mean the terms and conditions for use, reproduction,
10 | and distribution as defined by Sections 1 through 9 of this document.
11 |
12 | "Licensor" shall mean the copyright owner or entity authorized by
13 | the copyright owner that is granting the License.
14 |
15 | "Legal Entity" shall mean the union of the acting entity and all
16 | other entities that control, are controlled by, or are under common
17 | control with that entity. For the purposes of this definition,
18 | "control" means (i) the power, direct or indirect, to cause the
19 | direction or management of such entity, whether by contract or
20 | otherwise, or (ii) ownership of fifty percent (50%) or more of the
21 | outstanding shares, or (iii) beneficial ownership of such entity.
22 |
23 | "You" (or "Your") shall mean an individual or Legal Entity
24 | exercising permissions granted by this License.
25 |
26 | "Source" form shall mean the preferred form for making modifications,
27 | including but not limited to software source code, documentation
28 | source, and configuration files.
29 |
30 | "Object" form shall mean any form resulting from mechanical
31 | transformation or translation of a Source form, including but
32 | not limited to compiled object code, generated documentation,
33 | and conversions to other media types.
34 |
35 | "Work" shall mean the work of authorship, whether in Source or
36 | Object form, made available under the License, as indicated by a
37 | copyright notice that is included in or attached to the work
38 | (an example is provided in the Appendix below).
39 |
40 | "Derivative Works" shall mean any work, whether in Source or Object
41 | form, that is based on (or derived from) the Work and for which the
42 | editorial revisions, annotations, elaborations, or other modifications
43 | represent, as a whole, an original work of authorship. For the purposes
44 | of this License, Derivative Works shall not include works that remain
45 | separable from, or merely link (or bind by name) to the interfaces of,
46 | the Work and Derivative Works thereof.
47 |
48 | "Contribution" shall mean any work of authorship, including
49 | the original version of the Work and any modifications or additions
50 | to that Work or Derivative Works thereof, that is intentionally
51 | submitted to Licensor for inclusion in the Work by the copyright owner
52 | or by an individual or Legal Entity authorized to submit on behalf of
53 | the copyright owner. For the purposes of this definition, "submitted"
54 | means any form of electronic, verbal, or written communication sent
55 | to the Licensor or its representatives, including but not limited to
56 | communication on electronic mailing lists, source code control systems,
57 | and issue tracking systems that are managed by, or on behalf of, the
58 | Licensor for the purpose of discussing and improving the Work, but
59 | excluding communication that is conspicuously marked or otherwise
60 | designated in writing by the copyright owner as "Not a Contribution."
61 |
62 | "Contributor" shall mean Licensor and any individual or Legal Entity
63 | on behalf of whom a Contribution has been received by Licensor and
64 | subsequently incorporated within the Work.
65 |
66 | 2. Grant of Copyright License. Subject to the terms and conditions of
67 | this License, each Contributor hereby grants to You a perpetual,
68 | worldwide, non-exclusive, no-charge, royalty-free, irrevocable
69 | copyright license to reproduce, prepare Derivative Works of,
70 | publicly display, publicly perform, sublicense, and distribute the
71 | Work and such Derivative Works in Source or Object form.
72 |
73 | 3. Grant of Patent License. Subject to the terms and conditions of
74 | this License, each Contributor hereby grants to You a perpetual,
75 | worldwide, non-exclusive, no-charge, royalty-free, irrevocable
76 | (except as stated in this section) patent license to make, have made,
77 | use, offer to sell, sell, import, and otherwise transfer the Work,
78 | where such license applies only to those patent claims licensable
79 | by such Contributor that are necessarily infringed by their
80 | Contribution(s) alone or by combination of their Contribution(s)
81 | with the Work to which such Contribution(s) was submitted. If You
82 | institute patent litigation against any entity (including a
83 | cross-claim or counterclaim in a lawsuit) alleging that the Work
84 | or a Contribution incorporated within the Work constitutes direct
85 | or contributory patent infringement, then any patent licenses
86 | granted to You under this License for that Work shall terminate
87 | as of the date such litigation is filed.
88 |
89 | 4. Redistribution. You may reproduce and distribute copies of the
90 | Work or Derivative Works thereof in any medium, with or without
91 | modifications, and in Source or Object form, provided that You
92 | meet the following conditions:
93 |
94 | (a) You must give any other recipients of the Work or
95 | Derivative Works a copy of this License; and
96 |
97 | (b) You must cause any modified files to carry prominent notices
98 | stating that You changed the files; and
99 |
100 | (c) You must retain, in the Source form of any Derivative Works
101 | that You distribute, all copyright, patent, trademark, and
102 | attribution notices from the Source form of the Work,
103 | excluding those notices that do not pertain to any part of
104 | the Derivative Works; and
105 |
106 | (d) If the Work includes a "NOTICE" text file as part of its
107 | distribution, then any Derivative Works that You distribute must
108 | include a readable copy of the attribution notices contained
109 | within such NOTICE file, excluding those notices that do not
110 | pertain to any part of the Derivative Works, in at least one
111 | of the following places: within a NOTICE text file distributed
112 | as part of the Derivative Works; within the Source form or
113 | documentation, if provided along with the Derivative Works; or,
114 | within a display generated by the Derivative Works, if and
115 | wherever such third-party notices normally appear. The contents
116 | of the NOTICE file are for informational purposes only and
117 | do not modify the License. You may add Your own attribution
118 | notices within Derivative Works that You distribute, alongside
119 | or as an addendum to the NOTICE text from the Work, provided
120 | that such additional attribution notices cannot be construed
121 | as modifying the License.
122 |
123 | You may add Your own copyright statement to Your modifications and
124 | may provide additional or different license terms and conditions
125 | for use, reproduction, or distribution of Your modifications, or
126 | for any such Derivative Works as a whole, provided Your use,
127 | reproduction, and distribution of the Work otherwise complies with
128 | the conditions stated in this License.
129 |
130 | 5. Submission of Contributions. Unless You explicitly state otherwise,
131 | any Contribution intentionally submitted for inclusion in the Work
132 | by You to the Licensor shall be under the terms and conditions of
133 | this License, without any additional terms or conditions.
134 | Notwithstanding the above, nothing herein shall supersede or modify
135 | the terms of any separate license agreement you may have executed
136 | with Licensor regarding such Contributions.
137 |
138 | 6. Trademarks. This License does not grant permission to use the trade
139 | names, trademarks, service marks, or product names of the Licensor,
140 | except as required for reasonable and customary use in describing the
141 | origin of the Work and reproducing the content of the NOTICE file.
142 |
143 | 7. Disclaimer of Warranty. Unless required by applicable law or
144 | agreed to in writing, Licensor provides the Work (and each
145 | Contributor provides its Contributions) on an "AS IS" BASIS,
146 | WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
147 | implied, including, without limitation, any warranties or conditions
148 | of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
149 | PARTICULAR PURPOSE. You are solely responsible for determining the
150 | appropriateness of using or redistributing the Work and assume any
151 | risks associated with Your exercise of permissions under this License.
152 |
153 | 8. Limitation of Liability. In no event and under no legal theory,
154 | whether in tort (including negligence), contract, or otherwise,
155 | unless required by applicable law (such as deliberate and grossly
156 | negligent acts) or agreed to in writing, shall any Contributor be
157 | liable to You for damages, including any direct, indirect, special,
158 | incidental, or consequential damages of any character arising as a
159 | result of this License or out of the use or inability to use the
160 | Work (including but not limited to damages for loss of goodwill,
161 | work stoppage, computer failure or malfunction, or any and all
162 | other commercial damages or losses), even if such Contributor
163 | has been advised of the possibility of such damages.
164 |
165 | 9. Accepting Warranty or Additional Liability. While redistributing
166 | the Work or Derivative Works thereof, You may choose to offer,
167 | and charge a fee for, acceptance of support, warranty, indemnity,
168 | or other liability obligations and/or rights consistent with this
169 | License. However, in accepting such obligations, You may act only
170 | on Your own behalf and on Your sole responsibility, not on behalf
171 | of any other Contributor, and only if You agree to indemnify,
172 | defend, and hold each Contributor harmless for any liability
173 | incurred by, or claims asserted against, such Contributor by reason
174 | of your accepting any such warranty or additional liability.
175 |
176 | END OF TERMS AND CONDITIONS
177 |
178 | APPENDIX: How to apply the Apache License to your work.
179 |
180 | To apply the Apache License to your work, attach the following
181 | boilerplate notice, with the fields enclosed by brackets "[]"
182 | replaced with your own identifying information. (Don't include
183 | the brackets!) The text should be enclosed in the appropriate
184 | comment syntax for the file format. We also recommend that a
185 | file or class name and description of purpose be included on the
186 | same "printed page" as the copyright notice for easier
187 | identification within third-party archives.
188 |
189 | Copyright [yyyy] [name of copyright owner]
190 |
191 | Licensed under the Apache License, Version 2.0 (the "License");
192 | you may not use this file except in compliance with the License.
193 | You may obtain a copy of the License at
194 |
195 | http://www.apache.org/licenses/LICENSE-2.0
196 |
197 | Unless required by applicable law or agreed to in writing, software
198 | distributed under the License is distributed on an "AS IS" BASIS,
199 | WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
200 | See the License for the specific language governing permissions and
201 | limitations under the License.
202 |
--------------------------------------------------------------------------------
/README.md:
--------------------------------------------------------------------------------
1 | # SaaS Dashboard UI
2 |
3 | SaaS Dashboard App UI With Stylish Bar Graphs using SwiftUi 3.0 🤓
4 |
5 | [](https://opensource.org/licenses/Apache-2.0)
6 | [](https://github.com/shameemreza/SaaSDashboard/blob/main/LICENSE)
7 |
8 |
9 | ## Video Preview
10 |
11 | [](https://youtu.be/dBDAIMmoJUU "SaaS Dashboard UI")
12 |
13 | ## Screenshots
14 |
15 |
16 |
17 |
18 | ## Features
19 |
20 | * Custom Bar Graph
21 | * Custom Tab Bar
22 | * Data in Graph View
23 | * SwiftUI Graphs
24 | * SwiftUI Analytics UI
25 | * SwiftUI Overlay
26 | * SwiftUI Complex UI
27 | * SwiftUI for iOS 15
28 |
29 | Thanks for the Guide: [Balaji Venkatesh](https://kavsoft.dev)
30 |
31 | Dribble Shot 👉 [Click Here](https://dribbble.com/shots/17731615-SaaS-Dashboard-App-UI-With-Stylish-Bar-Graphs)
32 |
33 | ## License
34 |
35 | ```
36 | Copyright 2022 Shameem Reza
37 |
38 | Licensed under the Apache License, Version 2.0 (the "License");
39 | you may not use this file except in compliance with the License.
40 | You may obtain a copy of the License at
41 |
42 | http://www.apache.org/licenses/LICENSE-2.0
43 |
44 | Unless required by applicable law or agreed to in writing, software
45 | distributed under the License is distributed on an "AS IS" BASIS,
46 | WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
47 | See the License for the specific language governing permissions and
48 | limitations under the License.
49 | ```
50 |
--------------------------------------------------------------------------------
/SaaSDashboard.xcodeproj/project.pbxproj:
--------------------------------------------------------------------------------
1 | // !$*UTF8*$!
2 | {
3 | archiveVersion = 1;
4 | classes = {
5 | };
6 | objectVersion = 55;
7 | objects = {
8 |
9 | /* Begin PBXBuildFile section */
10 | BF21838427E100D7001C46DA /* GraphView.swift in Sources */ = {isa = PBXBuildFile; fileRef = BF21838327E100D7001C46DA /* GraphView.swift */; };
11 | BF21838627E1012B001C46DA /* Sales.swift in Sources */ = {isa = PBXBuildFile; fileRef = BF21838527E1012B001C46DA /* Sales.swift */; };
12 | BF75593C27DFC9BA00F5CE1A /* SaaSDashboardApp.swift in Sources */ = {isa = PBXBuildFile; fileRef = BF75593B27DFC9BA00F5CE1A /* SaaSDashboardApp.swift */; };
13 | BF75593E27DFC9BA00F5CE1A /* ContentView.swift in Sources */ = {isa = PBXBuildFile; fileRef = BF75593D27DFC9BA00F5CE1A /* ContentView.swift */; };
14 | BF75594027DFC9BB00F5CE1A /* Assets.xcassets in Resources */ = {isa = PBXBuildFile; fileRef = BF75593F27DFC9BB00F5CE1A /* Assets.xcassets */; };
15 | BF75594327DFC9BB00F5CE1A /* Preview Assets.xcassets in Resources */ = {isa = PBXBuildFile; fileRef = BF75594227DFC9BB00F5CE1A /* Preview Assets.xcassets */; };
16 | BF75594A27DFD4D800F5CE1A /* Launch Screen.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = BF75594927DFD4D800F5CE1A /* Launch Screen.storyboard */; };
17 | BF75594E27DFD71700F5CE1A /* BaseView.swift in Sources */ = {isa = PBXBuildFile; fileRef = BF75594D27DFD71700F5CE1A /* BaseView.swift */; };
18 | BF75595027DFDD5D00F5CE1A /* Home.swift in Sources */ = {isa = PBXBuildFile; fileRef = BF75594F27DFDD5D00F5CE1A /* Home.swift */; };
19 | /* End PBXBuildFile section */
20 |
21 | /* Begin PBXFileReference section */
22 | BF21838327E100D7001C46DA /* GraphView.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = GraphView.swift; sourceTree = ""; };
23 | BF21838527E1012B001C46DA /* Sales.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = Sales.swift; sourceTree = ""; };
24 | BF75593827DFC9BA00F5CE1A /* SaaSDashboard.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = SaaSDashboard.app; sourceTree = BUILT_PRODUCTS_DIR; };
25 | BF75593B27DFC9BA00F5CE1A /* SaaSDashboardApp.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = SaaSDashboardApp.swift; sourceTree = ""; };
26 | BF75593D27DFC9BA00F5CE1A /* ContentView.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = ContentView.swift; sourceTree = ""; };
27 | BF75593F27DFC9BB00F5CE1A /* Assets.xcassets */ = {isa = PBXFileReference; lastKnownFileType = folder.assetcatalog; path = Assets.xcassets; sourceTree = ""; };
28 | BF75594227DFC9BB00F5CE1A /* Preview Assets.xcassets */ = {isa = PBXFileReference; lastKnownFileType = folder.assetcatalog; path = "Preview Assets.xcassets"; sourceTree = ""; };
29 | BF75594927DFD4D800F5CE1A /* Launch Screen.storyboard */ = {isa = PBXFileReference; lastKnownFileType = file.storyboard; path = "Launch Screen.storyboard"; sourceTree = ""; };
30 | BF75594D27DFD71700F5CE1A /* BaseView.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = BaseView.swift; sourceTree = ""; };
31 | BF75594F27DFDD5D00F5CE1A /* Home.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = Home.swift; sourceTree = ""; };
32 | /* End PBXFileReference section */
33 |
34 | /* Begin PBXFrameworksBuildPhase section */
35 | BF75593527DFC9BA00F5CE1A /* Frameworks */ = {
36 | isa = PBXFrameworksBuildPhase;
37 | buildActionMask = 2147483647;
38 | files = (
39 | );
40 | runOnlyForDeploymentPostprocessing = 0;
41 | };
42 | /* End PBXFrameworksBuildPhase section */
43 |
44 | /* Begin PBXGroup section */
45 | BF75592F27DFC9B900F5CE1A = {
46 | isa = PBXGroup;
47 | children = (
48 | BF75593A27DFC9BA00F5CE1A /* SaaSDashboard */,
49 | BF75593927DFC9BA00F5CE1A /* Products */,
50 | );
51 | sourceTree = "";
52 | };
53 | BF75593927DFC9BA00F5CE1A /* Products */ = {
54 | isa = PBXGroup;
55 | children = (
56 | BF75593827DFC9BA00F5CE1A /* SaaSDashboard.app */,
57 | );
58 | name = Products;
59 | sourceTree = "";
60 | };
61 | BF75593A27DFC9BA00F5CE1A /* SaaSDashboard */ = {
62 | isa = PBXGroup;
63 | children = (
64 | BF75594C27DFD70200F5CE1A /* Model */,
65 | BF75594B27DFD6FA00F5CE1A /* View */,
66 | BF75593B27DFC9BA00F5CE1A /* SaaSDashboardApp.swift */,
67 | BF75593D27DFC9BA00F5CE1A /* ContentView.swift */,
68 | BF75593F27DFC9BB00F5CE1A /* Assets.xcassets */,
69 | BF75594127DFC9BB00F5CE1A /* Preview Content */,
70 | BF75594927DFD4D800F5CE1A /* Launch Screen.storyboard */,
71 | );
72 | path = SaaSDashboard;
73 | sourceTree = "";
74 | };
75 | BF75594127DFC9BB00F5CE1A /* Preview Content */ = {
76 | isa = PBXGroup;
77 | children = (
78 | BF75594227DFC9BB00F5CE1A /* Preview Assets.xcassets */,
79 | );
80 | path = "Preview Content";
81 | sourceTree = "";
82 | };
83 | BF75594B27DFD6FA00F5CE1A /* View */ = {
84 | isa = PBXGroup;
85 | children = (
86 | BF75594D27DFD71700F5CE1A /* BaseView.swift */,
87 | BF75594F27DFDD5D00F5CE1A /* Home.swift */,
88 | BF21838327E100D7001C46DA /* GraphView.swift */,
89 | );
90 | path = View;
91 | sourceTree = "";
92 | };
93 | BF75594C27DFD70200F5CE1A /* Model */ = {
94 | isa = PBXGroup;
95 | children = (
96 | BF21838527E1012B001C46DA /* Sales.swift */,
97 | );
98 | path = Model;
99 | sourceTree = "";
100 | };
101 | /* End PBXGroup section */
102 |
103 | /* Begin PBXNativeTarget section */
104 | BF75593727DFC9BA00F5CE1A /* SaaSDashboard */ = {
105 | isa = PBXNativeTarget;
106 | buildConfigurationList = BF75594627DFC9BB00F5CE1A /* Build configuration list for PBXNativeTarget "SaaSDashboard" */;
107 | buildPhases = (
108 | BF75593427DFC9BA00F5CE1A /* Sources */,
109 | BF75593527DFC9BA00F5CE1A /* Frameworks */,
110 | BF75593627DFC9BA00F5CE1A /* Resources */,
111 | );
112 | buildRules = (
113 | );
114 | dependencies = (
115 | );
116 | name = SaaSDashboard;
117 | productName = SaaSDashboard;
118 | productReference = BF75593827DFC9BA00F5CE1A /* SaaSDashboard.app */;
119 | productType = "com.apple.product-type.application";
120 | };
121 | /* End PBXNativeTarget section */
122 |
123 | /* Begin PBXProject section */
124 | BF75593027DFC9B900F5CE1A /* Project object */ = {
125 | isa = PBXProject;
126 | attributes = {
127 | BuildIndependentTargetsInParallel = 1;
128 | LastSwiftUpdateCheck = 1320;
129 | LastUpgradeCheck = 1320;
130 | TargetAttributes = {
131 | BF75593727DFC9BA00F5CE1A = {
132 | CreatedOnToolsVersion = 13.2.1;
133 | };
134 | };
135 | };
136 | buildConfigurationList = BF75593327DFC9B900F5CE1A /* Build configuration list for PBXProject "SaaSDashboard" */;
137 | compatibilityVersion = "Xcode 13.0";
138 | developmentRegion = en;
139 | hasScannedForEncodings = 0;
140 | knownRegions = (
141 | en,
142 | Base,
143 | );
144 | mainGroup = BF75592F27DFC9B900F5CE1A;
145 | productRefGroup = BF75593927DFC9BA00F5CE1A /* Products */;
146 | projectDirPath = "";
147 | projectRoot = "";
148 | targets = (
149 | BF75593727DFC9BA00F5CE1A /* SaaSDashboard */,
150 | );
151 | };
152 | /* End PBXProject section */
153 |
154 | /* Begin PBXResourcesBuildPhase section */
155 | BF75593627DFC9BA00F5CE1A /* Resources */ = {
156 | isa = PBXResourcesBuildPhase;
157 | buildActionMask = 2147483647;
158 | files = (
159 | BF75594A27DFD4D800F5CE1A /* Launch Screen.storyboard in Resources */,
160 | BF75594327DFC9BB00F5CE1A /* Preview Assets.xcassets in Resources */,
161 | BF75594027DFC9BB00F5CE1A /* Assets.xcassets in Resources */,
162 | );
163 | runOnlyForDeploymentPostprocessing = 0;
164 | };
165 | /* End PBXResourcesBuildPhase section */
166 |
167 | /* Begin PBXSourcesBuildPhase section */
168 | BF75593427DFC9BA00F5CE1A /* Sources */ = {
169 | isa = PBXSourcesBuildPhase;
170 | buildActionMask = 2147483647;
171 | files = (
172 | BF21838427E100D7001C46DA /* GraphView.swift in Sources */,
173 | BF75594E27DFD71700F5CE1A /* BaseView.swift in Sources */,
174 | BF75593E27DFC9BA00F5CE1A /* ContentView.swift in Sources */,
175 | BF21838627E1012B001C46DA /* Sales.swift in Sources */,
176 | BF75595027DFDD5D00F5CE1A /* Home.swift in Sources */,
177 | BF75593C27DFC9BA00F5CE1A /* SaaSDashboardApp.swift in Sources */,
178 | );
179 | runOnlyForDeploymentPostprocessing = 0;
180 | };
181 | /* End PBXSourcesBuildPhase section */
182 |
183 | /* Begin XCBuildConfiguration section */
184 | BF75594427DFC9BB00F5CE1A /* Debug */ = {
185 | isa = XCBuildConfiguration;
186 | buildSettings = {
187 | ALWAYS_SEARCH_USER_PATHS = NO;
188 | CLANG_ANALYZER_NONNULL = YES;
189 | CLANG_ANALYZER_NUMBER_OBJECT_CONVERSION = YES_AGGRESSIVE;
190 | CLANG_CXX_LANGUAGE_STANDARD = "gnu++17";
191 | CLANG_CXX_LIBRARY = "libc++";
192 | CLANG_ENABLE_MODULES = YES;
193 | CLANG_ENABLE_OBJC_ARC = YES;
194 | CLANG_ENABLE_OBJC_WEAK = YES;
195 | CLANG_WARN_BLOCK_CAPTURE_AUTORELEASING = YES;
196 | CLANG_WARN_BOOL_CONVERSION = YES;
197 | CLANG_WARN_COMMA = YES;
198 | CLANG_WARN_CONSTANT_CONVERSION = YES;
199 | CLANG_WARN_DEPRECATED_OBJC_IMPLEMENTATIONS = YES;
200 | CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR;
201 | CLANG_WARN_DOCUMENTATION_COMMENTS = YES;
202 | CLANG_WARN_EMPTY_BODY = YES;
203 | CLANG_WARN_ENUM_CONVERSION = YES;
204 | CLANG_WARN_INFINITE_RECURSION = YES;
205 | CLANG_WARN_INT_CONVERSION = YES;
206 | CLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES;
207 | CLANG_WARN_OBJC_IMPLICIT_RETAIN_SELF = YES;
208 | CLANG_WARN_OBJC_LITERAL_CONVERSION = YES;
209 | CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR;
210 | CLANG_WARN_QUOTED_INCLUDE_IN_FRAMEWORK_HEADER = YES;
211 | CLANG_WARN_RANGE_LOOP_ANALYSIS = YES;
212 | CLANG_WARN_STRICT_PROTOTYPES = YES;
213 | CLANG_WARN_SUSPICIOUS_MOVE = YES;
214 | CLANG_WARN_UNGUARDED_AVAILABILITY = YES_AGGRESSIVE;
215 | CLANG_WARN_UNREACHABLE_CODE = YES;
216 | CLANG_WARN__DUPLICATE_METHOD_MATCH = YES;
217 | COPY_PHASE_STRIP = NO;
218 | DEBUG_INFORMATION_FORMAT = dwarf;
219 | ENABLE_STRICT_OBJC_MSGSEND = YES;
220 | ENABLE_TESTABILITY = YES;
221 | GCC_C_LANGUAGE_STANDARD = gnu11;
222 | GCC_DYNAMIC_NO_PIC = NO;
223 | GCC_NO_COMMON_BLOCKS = YES;
224 | GCC_OPTIMIZATION_LEVEL = 0;
225 | GCC_PREPROCESSOR_DEFINITIONS = (
226 | "DEBUG=1",
227 | "$(inherited)",
228 | );
229 | GCC_WARN_64_TO_32_BIT_CONVERSION = YES;
230 | GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR;
231 | GCC_WARN_UNDECLARED_SELECTOR = YES;
232 | GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE;
233 | GCC_WARN_UNUSED_FUNCTION = YES;
234 | GCC_WARN_UNUSED_VARIABLE = YES;
235 | IPHONEOS_DEPLOYMENT_TARGET = 15.2;
236 | MTL_ENABLE_DEBUG_INFO = INCLUDE_SOURCE;
237 | MTL_FAST_MATH = YES;
238 | ONLY_ACTIVE_ARCH = YES;
239 | SDKROOT = iphoneos;
240 | SWIFT_ACTIVE_COMPILATION_CONDITIONS = DEBUG;
241 | SWIFT_OPTIMIZATION_LEVEL = "-Onone";
242 | };
243 | name = Debug;
244 | };
245 | BF75594527DFC9BB00F5CE1A /* Release */ = {
246 | isa = XCBuildConfiguration;
247 | buildSettings = {
248 | ALWAYS_SEARCH_USER_PATHS = NO;
249 | CLANG_ANALYZER_NONNULL = YES;
250 | CLANG_ANALYZER_NUMBER_OBJECT_CONVERSION = YES_AGGRESSIVE;
251 | CLANG_CXX_LANGUAGE_STANDARD = "gnu++17";
252 | CLANG_CXX_LIBRARY = "libc++";
253 | CLANG_ENABLE_MODULES = YES;
254 | CLANG_ENABLE_OBJC_ARC = YES;
255 | CLANG_ENABLE_OBJC_WEAK = YES;
256 | CLANG_WARN_BLOCK_CAPTURE_AUTORELEASING = YES;
257 | CLANG_WARN_BOOL_CONVERSION = YES;
258 | CLANG_WARN_COMMA = YES;
259 | CLANG_WARN_CONSTANT_CONVERSION = YES;
260 | CLANG_WARN_DEPRECATED_OBJC_IMPLEMENTATIONS = YES;
261 | CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR;
262 | CLANG_WARN_DOCUMENTATION_COMMENTS = YES;
263 | CLANG_WARN_EMPTY_BODY = YES;
264 | CLANG_WARN_ENUM_CONVERSION = YES;
265 | CLANG_WARN_INFINITE_RECURSION = YES;
266 | CLANG_WARN_INT_CONVERSION = YES;
267 | CLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES;
268 | CLANG_WARN_OBJC_IMPLICIT_RETAIN_SELF = YES;
269 | CLANG_WARN_OBJC_LITERAL_CONVERSION = YES;
270 | CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR;
271 | CLANG_WARN_QUOTED_INCLUDE_IN_FRAMEWORK_HEADER = YES;
272 | CLANG_WARN_RANGE_LOOP_ANALYSIS = YES;
273 | CLANG_WARN_STRICT_PROTOTYPES = YES;
274 | CLANG_WARN_SUSPICIOUS_MOVE = YES;
275 | CLANG_WARN_UNGUARDED_AVAILABILITY = YES_AGGRESSIVE;
276 | CLANG_WARN_UNREACHABLE_CODE = YES;
277 | CLANG_WARN__DUPLICATE_METHOD_MATCH = YES;
278 | COPY_PHASE_STRIP = NO;
279 | DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym";
280 | ENABLE_NS_ASSERTIONS = NO;
281 | ENABLE_STRICT_OBJC_MSGSEND = YES;
282 | GCC_C_LANGUAGE_STANDARD = gnu11;
283 | GCC_NO_COMMON_BLOCKS = YES;
284 | GCC_WARN_64_TO_32_BIT_CONVERSION = YES;
285 | GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR;
286 | GCC_WARN_UNDECLARED_SELECTOR = YES;
287 | GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE;
288 | GCC_WARN_UNUSED_FUNCTION = YES;
289 | GCC_WARN_UNUSED_VARIABLE = YES;
290 | IPHONEOS_DEPLOYMENT_TARGET = 15.2;
291 | MTL_ENABLE_DEBUG_INFO = NO;
292 | MTL_FAST_MATH = YES;
293 | SDKROOT = iphoneos;
294 | SWIFT_COMPILATION_MODE = wholemodule;
295 | SWIFT_OPTIMIZATION_LEVEL = "-O";
296 | VALIDATE_PRODUCT = YES;
297 | };
298 | name = Release;
299 | };
300 | BF75594727DFC9BB00F5CE1A /* Debug */ = {
301 | isa = XCBuildConfiguration;
302 | buildSettings = {
303 | ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;
304 | ASSETCATALOG_COMPILER_GLOBAL_ACCENT_COLOR_NAME = AccentColor;
305 | CODE_SIGN_STYLE = Automatic;
306 | CURRENT_PROJECT_VERSION = 1;
307 | DEVELOPMENT_ASSET_PATHS = "\"SaaSDashboard/Preview Content\"";
308 | ENABLE_PREVIEWS = YES;
309 | GENERATE_INFOPLIST_FILE = YES;
310 | INFOPLIST_KEY_UIApplicationSceneManifest_Generation = YES;
311 | INFOPLIST_KEY_UIApplicationSupportsIndirectInputEvents = YES;
312 | INFOPLIST_KEY_UILaunchScreen_Generation = YES;
313 | INFOPLIST_KEY_UILaunchStoryboardName = "Launch Screen";
314 | INFOPLIST_KEY_UISupportedInterfaceOrientations_iPad = "UIInterfaceOrientationPortrait UIInterfaceOrientationPortraitUpsideDown UIInterfaceOrientationLandscapeLeft UIInterfaceOrientationLandscapeRight";
315 | INFOPLIST_KEY_UISupportedInterfaceOrientations_iPhone = UIInterfaceOrientationPortrait;
316 | LD_RUNPATH_SEARCH_PATHS = (
317 | "$(inherited)",
318 | "@executable_path/Frameworks",
319 | );
320 | MARKETING_VERSION = 1.0;
321 | PRODUCT_BUNDLE_IDENTIFIER = com.orixlab.SaaSDashboard;
322 | PRODUCT_NAME = "$(TARGET_NAME)";
323 | SWIFT_EMIT_LOC_STRINGS = YES;
324 | SWIFT_VERSION = 5.0;
325 | TARGETED_DEVICE_FAMILY = "1,2";
326 | };
327 | name = Debug;
328 | };
329 | BF75594827DFC9BB00F5CE1A /* Release */ = {
330 | isa = XCBuildConfiguration;
331 | buildSettings = {
332 | ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;
333 | ASSETCATALOG_COMPILER_GLOBAL_ACCENT_COLOR_NAME = AccentColor;
334 | CODE_SIGN_STYLE = Automatic;
335 | CURRENT_PROJECT_VERSION = 1;
336 | DEVELOPMENT_ASSET_PATHS = "\"SaaSDashboard/Preview Content\"";
337 | ENABLE_PREVIEWS = YES;
338 | GENERATE_INFOPLIST_FILE = YES;
339 | INFOPLIST_KEY_UIApplicationSceneManifest_Generation = YES;
340 | INFOPLIST_KEY_UIApplicationSupportsIndirectInputEvents = YES;
341 | INFOPLIST_KEY_UILaunchScreen_Generation = YES;
342 | INFOPLIST_KEY_UILaunchStoryboardName = "Launch Screen";
343 | INFOPLIST_KEY_UISupportedInterfaceOrientations_iPad = "UIInterfaceOrientationPortrait UIInterfaceOrientationPortraitUpsideDown UIInterfaceOrientationLandscapeLeft UIInterfaceOrientationLandscapeRight";
344 | INFOPLIST_KEY_UISupportedInterfaceOrientations_iPhone = UIInterfaceOrientationPortrait;
345 | LD_RUNPATH_SEARCH_PATHS = (
346 | "$(inherited)",
347 | "@executable_path/Frameworks",
348 | );
349 | MARKETING_VERSION = 1.0;
350 | PRODUCT_BUNDLE_IDENTIFIER = com.orixlab.SaaSDashboard;
351 | PRODUCT_NAME = "$(TARGET_NAME)";
352 | SWIFT_EMIT_LOC_STRINGS = YES;
353 | SWIFT_VERSION = 5.0;
354 | TARGETED_DEVICE_FAMILY = "1,2";
355 | };
356 | name = Release;
357 | };
358 | /* End XCBuildConfiguration section */
359 |
360 | /* Begin XCConfigurationList section */
361 | BF75593327DFC9B900F5CE1A /* Build configuration list for PBXProject "SaaSDashboard" */ = {
362 | isa = XCConfigurationList;
363 | buildConfigurations = (
364 | BF75594427DFC9BB00F5CE1A /* Debug */,
365 | BF75594527DFC9BB00F5CE1A /* Release */,
366 | );
367 | defaultConfigurationIsVisible = 0;
368 | defaultConfigurationName = Release;
369 | };
370 | BF75594627DFC9BB00F5CE1A /* Build configuration list for PBXNativeTarget "SaaSDashboard" */ = {
371 | isa = XCConfigurationList;
372 | buildConfigurations = (
373 | BF75594727DFC9BB00F5CE1A /* Debug */,
374 | BF75594827DFC9BB00F5CE1A /* Release */,
375 | );
376 | defaultConfigurationIsVisible = 0;
377 | defaultConfigurationName = Release;
378 | };
379 | /* End XCConfigurationList section */
380 | };
381 | rootObject = BF75593027DFC9B900F5CE1A /* Project object */;
382 | }
383 |
--------------------------------------------------------------------------------
/SaaSDashboard.xcodeproj/project.xcworkspace/contents.xcworkspacedata:
--------------------------------------------------------------------------------
1 |
2 |
4 |
6 |
7 |
8 |
--------------------------------------------------------------------------------
/SaaSDashboard.xcodeproj/project.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | IDEDidComputeMac32BitWarning
6 |
7 |
8 |
9 |
--------------------------------------------------------------------------------
/SaaSDashboard.xcodeproj/project.xcworkspace/xcuserdata/shameem.xcuserdatad/UserInterfaceState.xcuserstate:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/shameemreza/SaaSDashboard/a7cb6ab756dfaf4ced7cbdafd601636e8436e2ed/SaaSDashboard.xcodeproj/project.xcworkspace/xcuserdata/shameem.xcuserdatad/UserInterfaceState.xcuserstate
--------------------------------------------------------------------------------
/SaaSDashboard.xcodeproj/xcuserdata/shameem.xcuserdatad/xcschemes/xcschememanagement.plist:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | SchemeUserState
6 |
7 | SaaSDashboard.xcscheme_^#shared#^_
8 |
9 | orderHint
10 | 0
11 |
12 |
13 |
14 |
15 |
--------------------------------------------------------------------------------
/SaaSDashboard/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 |
--------------------------------------------------------------------------------
/SaaSDashboard/Assets.xcassets/AppIcon.appiconset/100.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/shameemreza/SaaSDashboard/a7cb6ab756dfaf4ced7cbdafd601636e8436e2ed/SaaSDashboard/Assets.xcassets/AppIcon.appiconset/100.png
--------------------------------------------------------------------------------
/SaaSDashboard/Assets.xcassets/AppIcon.appiconset/1024.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/shameemreza/SaaSDashboard/a7cb6ab756dfaf4ced7cbdafd601636e8436e2ed/SaaSDashboard/Assets.xcassets/AppIcon.appiconset/1024.png
--------------------------------------------------------------------------------
/SaaSDashboard/Assets.xcassets/AppIcon.appiconset/114.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/shameemreza/SaaSDashboard/a7cb6ab756dfaf4ced7cbdafd601636e8436e2ed/SaaSDashboard/Assets.xcassets/AppIcon.appiconset/114.png
--------------------------------------------------------------------------------
/SaaSDashboard/Assets.xcassets/AppIcon.appiconset/120.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/shameemreza/SaaSDashboard/a7cb6ab756dfaf4ced7cbdafd601636e8436e2ed/SaaSDashboard/Assets.xcassets/AppIcon.appiconset/120.png
--------------------------------------------------------------------------------
/SaaSDashboard/Assets.xcassets/AppIcon.appiconset/128.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/shameemreza/SaaSDashboard/a7cb6ab756dfaf4ced7cbdafd601636e8436e2ed/SaaSDashboard/Assets.xcassets/AppIcon.appiconset/128.png
--------------------------------------------------------------------------------
/SaaSDashboard/Assets.xcassets/AppIcon.appiconset/144.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/shameemreza/SaaSDashboard/a7cb6ab756dfaf4ced7cbdafd601636e8436e2ed/SaaSDashboard/Assets.xcassets/AppIcon.appiconset/144.png
--------------------------------------------------------------------------------
/SaaSDashboard/Assets.xcassets/AppIcon.appiconset/152.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/shameemreza/SaaSDashboard/a7cb6ab756dfaf4ced7cbdafd601636e8436e2ed/SaaSDashboard/Assets.xcassets/AppIcon.appiconset/152.png
--------------------------------------------------------------------------------
/SaaSDashboard/Assets.xcassets/AppIcon.appiconset/16.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/shameemreza/SaaSDashboard/a7cb6ab756dfaf4ced7cbdafd601636e8436e2ed/SaaSDashboard/Assets.xcassets/AppIcon.appiconset/16.png
--------------------------------------------------------------------------------
/SaaSDashboard/Assets.xcassets/AppIcon.appiconset/167.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/shameemreza/SaaSDashboard/a7cb6ab756dfaf4ced7cbdafd601636e8436e2ed/SaaSDashboard/Assets.xcassets/AppIcon.appiconset/167.png
--------------------------------------------------------------------------------
/SaaSDashboard/Assets.xcassets/AppIcon.appiconset/180.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/shameemreza/SaaSDashboard/a7cb6ab756dfaf4ced7cbdafd601636e8436e2ed/SaaSDashboard/Assets.xcassets/AppIcon.appiconset/180.png
--------------------------------------------------------------------------------
/SaaSDashboard/Assets.xcassets/AppIcon.appiconset/20.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/shameemreza/SaaSDashboard/a7cb6ab756dfaf4ced7cbdafd601636e8436e2ed/SaaSDashboard/Assets.xcassets/AppIcon.appiconset/20.png
--------------------------------------------------------------------------------
/SaaSDashboard/Assets.xcassets/AppIcon.appiconset/256.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/shameemreza/SaaSDashboard/a7cb6ab756dfaf4ced7cbdafd601636e8436e2ed/SaaSDashboard/Assets.xcassets/AppIcon.appiconset/256.png
--------------------------------------------------------------------------------
/SaaSDashboard/Assets.xcassets/AppIcon.appiconset/29.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/shameemreza/SaaSDashboard/a7cb6ab756dfaf4ced7cbdafd601636e8436e2ed/SaaSDashboard/Assets.xcassets/AppIcon.appiconset/29.png
--------------------------------------------------------------------------------
/SaaSDashboard/Assets.xcassets/AppIcon.appiconset/32.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/shameemreza/SaaSDashboard/a7cb6ab756dfaf4ced7cbdafd601636e8436e2ed/SaaSDashboard/Assets.xcassets/AppIcon.appiconset/32.png
--------------------------------------------------------------------------------
/SaaSDashboard/Assets.xcassets/AppIcon.appiconset/40.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/shameemreza/SaaSDashboard/a7cb6ab756dfaf4ced7cbdafd601636e8436e2ed/SaaSDashboard/Assets.xcassets/AppIcon.appiconset/40.png
--------------------------------------------------------------------------------
/SaaSDashboard/Assets.xcassets/AppIcon.appiconset/50.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/shameemreza/SaaSDashboard/a7cb6ab756dfaf4ced7cbdafd601636e8436e2ed/SaaSDashboard/Assets.xcassets/AppIcon.appiconset/50.png
--------------------------------------------------------------------------------
/SaaSDashboard/Assets.xcassets/AppIcon.appiconset/512.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/shameemreza/SaaSDashboard/a7cb6ab756dfaf4ced7cbdafd601636e8436e2ed/SaaSDashboard/Assets.xcassets/AppIcon.appiconset/512.png
--------------------------------------------------------------------------------
/SaaSDashboard/Assets.xcassets/AppIcon.appiconset/57.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/shameemreza/SaaSDashboard/a7cb6ab756dfaf4ced7cbdafd601636e8436e2ed/SaaSDashboard/Assets.xcassets/AppIcon.appiconset/57.png
--------------------------------------------------------------------------------
/SaaSDashboard/Assets.xcassets/AppIcon.appiconset/58.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/shameemreza/SaaSDashboard/a7cb6ab756dfaf4ced7cbdafd601636e8436e2ed/SaaSDashboard/Assets.xcassets/AppIcon.appiconset/58.png
--------------------------------------------------------------------------------
/SaaSDashboard/Assets.xcassets/AppIcon.appiconset/60.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/shameemreza/SaaSDashboard/a7cb6ab756dfaf4ced7cbdafd601636e8436e2ed/SaaSDashboard/Assets.xcassets/AppIcon.appiconset/60.png
--------------------------------------------------------------------------------
/SaaSDashboard/Assets.xcassets/AppIcon.appiconset/64.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/shameemreza/SaaSDashboard/a7cb6ab756dfaf4ced7cbdafd601636e8436e2ed/SaaSDashboard/Assets.xcassets/AppIcon.appiconset/64.png
--------------------------------------------------------------------------------
/SaaSDashboard/Assets.xcassets/AppIcon.appiconset/72.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/shameemreza/SaaSDashboard/a7cb6ab756dfaf4ced7cbdafd601636e8436e2ed/SaaSDashboard/Assets.xcassets/AppIcon.appiconset/72.png
--------------------------------------------------------------------------------
/SaaSDashboard/Assets.xcassets/AppIcon.appiconset/76.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/shameemreza/SaaSDashboard/a7cb6ab756dfaf4ced7cbdafd601636e8436e2ed/SaaSDashboard/Assets.xcassets/AppIcon.appiconset/76.png
--------------------------------------------------------------------------------
/SaaSDashboard/Assets.xcassets/AppIcon.appiconset/80.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/shameemreza/SaaSDashboard/a7cb6ab756dfaf4ced7cbdafd601636e8436e2ed/SaaSDashboard/Assets.xcassets/AppIcon.appiconset/80.png
--------------------------------------------------------------------------------
/SaaSDashboard/Assets.xcassets/AppIcon.appiconset/87.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/shameemreza/SaaSDashboard/a7cb6ab756dfaf4ced7cbdafd601636e8436e2ed/SaaSDashboard/Assets.xcassets/AppIcon.appiconset/87.png
--------------------------------------------------------------------------------
/SaaSDashboard/Assets.xcassets/AppIcon.appiconset/Contents.json:
--------------------------------------------------------------------------------
1 | {"images":[{"size":"60x60","expected-size":"180","filename":"180.png","folder":"Assets.xcassets/AppIcon.appiconset/","idiom":"iphone","scale":"3x"},{"size":"40x40","expected-size":"80","filename":"80.png","folder":"Assets.xcassets/AppIcon.appiconset/","idiom":"iphone","scale":"2x"},{"size":"40x40","expected-size":"120","filename":"120.png","folder":"Assets.xcassets/AppIcon.appiconset/","idiom":"iphone","scale":"3x"},{"size":"60x60","expected-size":"120","filename":"120.png","folder":"Assets.xcassets/AppIcon.appiconset/","idiom":"iphone","scale":"2x"},{"size":"57x57","expected-size":"57","filename":"57.png","folder":"Assets.xcassets/AppIcon.appiconset/","idiom":"iphone","scale":"1x"},{"size":"29x29","expected-size":"58","filename":"58.png","folder":"Assets.xcassets/AppIcon.appiconset/","idiom":"iphone","scale":"2x"},{"size":"29x29","expected-size":"29","filename":"29.png","folder":"Assets.xcassets/AppIcon.appiconset/","idiom":"iphone","scale":"1x"},{"size":"29x29","expected-size":"87","filename":"87.png","folder":"Assets.xcassets/AppIcon.appiconset/","idiom":"iphone","scale":"3x"},{"size":"57x57","expected-size":"114","filename":"114.png","folder":"Assets.xcassets/AppIcon.appiconset/","idiom":"iphone","scale":"2x"},{"size":"20x20","expected-size":"40","filename":"40.png","folder":"Assets.xcassets/AppIcon.appiconset/","idiom":"iphone","scale":"2x"},{"size":"20x20","expected-size":"60","filename":"60.png","folder":"Assets.xcassets/AppIcon.appiconset/","idiom":"iphone","scale":"3x"},{"size":"1024x1024","filename":"1024.png","expected-size":"1024","idiom":"ios-marketing","folder":"Assets.xcassets/AppIcon.appiconset/","scale":"1x"},{"size":"40x40","expected-size":"80","filename":"80.png","folder":"Assets.xcassets/AppIcon.appiconset/","idiom":"ipad","scale":"2x"},{"size":"72x72","expected-size":"72","filename":"72.png","folder":"Assets.xcassets/AppIcon.appiconset/","idiom":"ipad","scale":"1x"},{"size":"76x76","expected-size":"152","filename":"152.png","folder":"Assets.xcassets/AppIcon.appiconset/","idiom":"ipad","scale":"2x"},{"size":"50x50","expected-size":"100","filename":"100.png","folder":"Assets.xcassets/AppIcon.appiconset/","idiom":"ipad","scale":"2x"},{"size":"29x29","expected-size":"58","filename":"58.png","folder":"Assets.xcassets/AppIcon.appiconset/","idiom":"ipad","scale":"2x"},{"size":"76x76","expected-size":"76","filename":"76.png","folder":"Assets.xcassets/AppIcon.appiconset/","idiom":"ipad","scale":"1x"},{"size":"29x29","expected-size":"29","filename":"29.png","folder":"Assets.xcassets/AppIcon.appiconset/","idiom":"ipad","scale":"1x"},{"size":"50x50","expected-size":"50","filename":"50.png","folder":"Assets.xcassets/AppIcon.appiconset/","idiom":"ipad","scale":"1x"},{"size":"72x72","expected-size":"144","filename":"144.png","folder":"Assets.xcassets/AppIcon.appiconset/","idiom":"ipad","scale":"2x"},{"size":"40x40","expected-size":"40","filename":"40.png","folder":"Assets.xcassets/AppIcon.appiconset/","idiom":"ipad","scale":"1x"},{"size":"83.5x83.5","expected-size":"167","filename":"167.png","folder":"Assets.xcassets/AppIcon.appiconset/","idiom":"ipad","scale":"2x"},{"size":"20x20","expected-size":"20","filename":"20.png","folder":"Assets.xcassets/AppIcon.appiconset/","idiom":"ipad","scale":"1x"},{"size":"20x20","expected-size":"40","filename":"40.png","folder":"Assets.xcassets/AppIcon.appiconset/","idiom":"ipad","scale":"2x"},{"size":"128x128","expected-size":"128","filename":"128.png","folder":"Assets.xcassets/AppIcon.appiconset/","idiom":"mac","scale":"1x"},{"size":"256x256","expected-size":"256","filename":"256.png","folder":"Assets.xcassets/AppIcon.appiconset/","idiom":"mac","scale":"1x"},{"size":"128x128","expected-size":"256","filename":"256.png","folder":"Assets.xcassets/AppIcon.appiconset/","idiom":"mac","scale":"2x"},{"size":"256x256","expected-size":"512","filename":"512.png","folder":"Assets.xcassets/AppIcon.appiconset/","idiom":"mac","scale":"2x"},{"size":"32x32","expected-size":"32","filename":"32.png","folder":"Assets.xcassets/AppIcon.appiconset/","idiom":"mac","scale":"1x"},{"size":"512x512","expected-size":"512","filename":"512.png","folder":"Assets.xcassets/AppIcon.appiconset/","idiom":"mac","scale":"1x"},{"size":"16x16","expected-size":"16","filename":"16.png","folder":"Assets.xcassets/AppIcon.appiconset/","idiom":"mac","scale":"1x"},{"size":"16x16","expected-size":"32","filename":"32.png","folder":"Assets.xcassets/AppIcon.appiconset/","idiom":"mac","scale":"2x"},{"size":"32x32","expected-size":"64","filename":"64.png","folder":"Assets.xcassets/AppIcon.appiconset/","idiom":"mac","scale":"2x"},{"size":"512x512","expected-size":"1024","filename":"1024.png","folder":"Assets.xcassets/AppIcon.appiconset/","idiom":"mac","scale":"2x"}]}
--------------------------------------------------------------------------------
/SaaSDashboard/Assets.xcassets/Colors/BG.colorset/Contents.json:
--------------------------------------------------------------------------------
1 | {
2 | "colors" : [
3 | {
4 | "color" : {
5 | "color-space" : "srgb",
6 | "components" : {
7 | "alpha" : "1.000",
8 | "blue" : "0xFF",
9 | "green" : "0xF8",
10 | "red" : "0xEF"
11 | }
12 | },
13 | "idiom" : "universal"
14 | }
15 | ],
16 | "info" : {
17 | "author" : "xcode",
18 | "version" : 1
19 | }
20 | }
21 |
--------------------------------------------------------------------------------
/SaaSDashboard/Assets.xcassets/Colors/Contents.json:
--------------------------------------------------------------------------------
1 | {
2 | "info" : {
3 | "author" : "xcode",
4 | "version" : 1
5 | }
6 | }
7 |
--------------------------------------------------------------------------------
/SaaSDashboard/Assets.xcassets/Colors/chartColor1.colorset/Contents.json:
--------------------------------------------------------------------------------
1 | {
2 | "colors" : [
3 | {
4 | "color" : {
5 | "color-space" : "srgb",
6 | "components" : {
7 | "alpha" : "1.000",
8 | "blue" : "0x72",
9 | "green" : "0x72",
10 | "red" : "0xFF"
11 | }
12 | },
13 | "idiom" : "universal"
14 | }
15 | ],
16 | "info" : {
17 | "author" : "xcode",
18 | "version" : 1
19 | }
20 | }
21 |
--------------------------------------------------------------------------------
/SaaSDashboard/Assets.xcassets/Colors/chartColor2.colorset/Contents.json:
--------------------------------------------------------------------------------
1 | {
2 | "colors" : [
3 | {
4 | "color" : {
5 | "color-space" : "srgb",
6 | "components" : {
7 | "alpha" : "1.000",
8 | "blue" : "0x96",
9 | "green" : "0xDE",
10 | "red" : "0xA2"
11 | }
12 | },
13 | "idiom" : "universal"
14 | }
15 | ],
16 | "info" : {
17 | "author" : "xcode",
18 | "version" : 1
19 | }
20 | }
21 |
--------------------------------------------------------------------------------
/SaaSDashboard/Assets.xcassets/Colors/menuTab.colorset/Contents.json:
--------------------------------------------------------------------------------
1 | {
2 | "colors" : [
3 | {
4 | "color" : {
5 | "color-space" : "srgb",
6 | "components" : {
7 | "alpha" : "1.000",
8 | "blue" : "0xD7",
9 | "green" : "0xCB",
10 | "red" : "0x11"
11 | }
12 | },
13 | "idiom" : "universal"
14 | }
15 | ],
16 | "info" : {
17 | "author" : "xcode",
18 | "version" : 1
19 | }
20 | }
21 |
--------------------------------------------------------------------------------
/SaaSDashboard/Assets.xcassets/Colors/roundColor.colorset/Contents.json:
--------------------------------------------------------------------------------
1 | {
2 | "colors" : [
3 | {
4 | "color" : {
5 | "color-space" : "srgb",
6 | "components" : {
7 | "alpha" : "1.000",
8 | "blue" : "0x91",
9 | "green" : "0x42",
10 | "red" : "0xF5"
11 | }
12 | },
13 | "idiom" : "universal"
14 | }
15 | ],
16 | "info" : {
17 | "author" : "xcode",
18 | "version" : 1
19 | }
20 | }
21 |
--------------------------------------------------------------------------------
/SaaSDashboard/Assets.xcassets/Contents.json:
--------------------------------------------------------------------------------
1 | {
2 | "info" : {
3 | "author" : "xcode",
4 | "version" : 1
5 | }
6 | }
7 |
--------------------------------------------------------------------------------
/SaaSDashboard/Assets.xcassets/Icons/Contents.json:
--------------------------------------------------------------------------------
1 | {
2 | "info" : {
3 | "author" : "xcode",
4 | "version" : 1
5 | }
6 | }
7 |
--------------------------------------------------------------------------------
/SaaSDashboard/Assets.xcassets/Icons/chart.imageset/Contents.json:
--------------------------------------------------------------------------------
1 | {
2 | "images" : [
3 | {
4 | "filename" : "chart.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 |
--------------------------------------------------------------------------------
/SaaSDashboard/Assets.xcassets/Icons/chart.imageset/chart.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/shameemreza/SaaSDashboard/a7cb6ab756dfaf4ced7cbdafd601636e8436e2ed/SaaSDashboard/Assets.xcassets/Icons/chart.imageset/chart.png
--------------------------------------------------------------------------------
/SaaSDashboard/Assets.xcassets/Icons/chat.imageset/Contents.json:
--------------------------------------------------------------------------------
1 | {
2 | "images" : [
3 | {
4 | "filename" : "chat.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 |
--------------------------------------------------------------------------------
/SaaSDashboard/Assets.xcassets/Icons/chat.imageset/chat.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/shameemreza/SaaSDashboard/a7cb6ab756dfaf4ced7cbdafd601636e8436e2ed/SaaSDashboard/Assets.xcassets/Icons/chat.imageset/chat.png
--------------------------------------------------------------------------------
/SaaSDashboard/Assets.xcassets/Icons/home.imageset/Contents.json:
--------------------------------------------------------------------------------
1 | {
2 | "images" : [
3 | {
4 | "filename" : "home.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 |
--------------------------------------------------------------------------------
/SaaSDashboard/Assets.xcassets/Icons/home.imageset/home.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/shameemreza/SaaSDashboard/a7cb6ab756dfaf4ced7cbdafd601636e8436e2ed/SaaSDashboard/Assets.xcassets/Icons/home.imageset/home.png
--------------------------------------------------------------------------------
/SaaSDashboard/Assets.xcassets/Icons/option.imageset/Contents.json:
--------------------------------------------------------------------------------
1 | {
2 | "images" : [
3 | {
4 | "filename" : "option.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 |
--------------------------------------------------------------------------------
/SaaSDashboard/Assets.xcassets/Icons/option.imageset/option.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/shameemreza/SaaSDashboard/a7cb6ab756dfaf4ced7cbdafd601636e8436e2ed/SaaSDashboard/Assets.xcassets/Icons/option.imageset/option.png
--------------------------------------------------------------------------------
/SaaSDashboard/Assets.xcassets/Icons/setting.imageset/Contents.json:
--------------------------------------------------------------------------------
1 | {
2 | "images" : [
3 | {
4 | "filename" : "setting.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 |
--------------------------------------------------------------------------------
/SaaSDashboard/Assets.xcassets/Icons/setting.imageset/setting.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/shameemreza/SaaSDashboard/a7cb6ab756dfaf4ced7cbdafd601636e8436e2ed/SaaSDashboard/Assets.xcassets/Icons/setting.imageset/setting.png
--------------------------------------------------------------------------------
/SaaSDashboard/Assets.xcassets/LaunchScreen.imageset/Contents.json:
--------------------------------------------------------------------------------
1 | {
2 | "images" : [
3 | {
4 | "filename" : "LaunchScreen.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 |
--------------------------------------------------------------------------------
/SaaSDashboard/Assets.xcassets/LaunchScreen.imageset/LaunchScreen.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/shameemreza/SaaSDashboard/a7cb6ab756dfaf4ced7cbdafd601636e8436e2ed/SaaSDashboard/Assets.xcassets/LaunchScreen.imageset/LaunchScreen.png
--------------------------------------------------------------------------------
/SaaSDashboard/ContentView.swift:
--------------------------------------------------------------------------------
1 | //
2 | // ContentView.swift
3 | // SaaSDashboard
4 | //
5 | // Created by Shameem Reza on 15/3/22.
6 | //
7 |
8 | import SwiftUI
9 |
10 | struct ContentView: View {
11 | var body: some View {
12 | BaseView()
13 | }
14 | }
15 |
16 | struct ContentView_Previews: PreviewProvider {
17 | static var previews: some View {
18 | ContentView()
19 | }
20 | }
21 |
--------------------------------------------------------------------------------
/SaaSDashboard/Launch Screen.storyboard:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
14 |
15 |
16 |
17 |
18 |
24 |
25 |
26 |
27 |
28 |
29 |
30 |
31 |
32 |
33 |
34 |
35 |
36 |
37 |
38 |
39 |
40 |
41 |
42 |
43 |
44 |
45 |
46 |
47 |
48 |
--------------------------------------------------------------------------------
/SaaSDashboard/Model/Sales.swift:
--------------------------------------------------------------------------------
1 | //
2 | // Download.swift
3 | // SaaSDashboard
4 | //
5 | // Created by Shameem Reza on 15/3/22.
6 | //
7 |
8 | import SwiftUI
9 |
10 | // MARK: SALES MODEL
11 |
12 | struct Sale: Identifiable {
13 | var id = UUID().uuidString
14 | var sales: CGFloat
15 | var weekDay: String
16 | }
17 |
18 | var sales: [Sale] = [
19 | Sale(sales: 500, weekDay: "Sun"),
20 | Sale(sales: 240, weekDay: "Mon"),
21 | Sale(sales: 350, weekDay: "Tue"),
22 | Sale(sales: 430, weekDay: "Wed"),
23 | Sale(sales: 690, weekDay: "Thu"),
24 | Sale(sales: 540, weekDay: "Fri"),
25 | Sale(sales: 920, weekDay: "Sat"),
26 | ]
27 |
--------------------------------------------------------------------------------
/SaaSDashboard/Preview Content/Preview Assets.xcassets/Contents.json:
--------------------------------------------------------------------------------
1 | {
2 | "info" : {
3 | "author" : "xcode",
4 | "version" : 1
5 | }
6 | }
7 |
--------------------------------------------------------------------------------
/SaaSDashboard/SaaSDashboardApp.swift:
--------------------------------------------------------------------------------
1 | //
2 | // SaaSDashboardApp.swift
3 | // SaaSDashboard
4 | //
5 | // Created by Shameem Reza on 15/3/22.
6 | //
7 |
8 | import SwiftUI
9 |
10 | @main
11 | struct SaaSDashboardApp: App {
12 | var body: some Scene {
13 | WindowGroup {
14 | ContentView()
15 | }
16 | }
17 | }
18 |
--------------------------------------------------------------------------------
/SaaSDashboard/View/BaseView.swift:
--------------------------------------------------------------------------------
1 | //
2 | // BaseView.swift
3 | // SaaSDashboard
4 | //
5 | // Created by Shameem Reza on 15/3/22.
6 | //
7 |
8 | import SwiftUI
9 |
10 | struct BaseView: View {
11 |
12 | @State var currentTab = "home"
13 |
14 | // MARK: HIDE NATIVE TAB
15 | init() {
16 | UITabBar.appearance().isHidden = true
17 | }
18 |
19 | var body: some View {
20 | VStack(spacing: 0) {
21 | // MARK: BOTTOM NAV ITEM
22 | TabView(selection: $currentTab) {
23 | Home()
24 | .modifier(BGModifier())
25 | .tag("home")
26 | Text("Graph")
27 | .modifier(BGModifier())
28 | .tag("chart")
29 | Text("Message")
30 | .modifier(BGModifier())
31 | .tag("chat")
32 | Text("Settings")
33 | .modifier(BGModifier())
34 | .tag("setting")
35 | } // END NAV ITEM
36 |
37 | // MARK: - CUSTOM TAB BAR
38 | HStack(spacing: 40) {
39 | // MARK: - TAB BUTTON
40 | TabButton(image: "home")
41 | TabButton(image: "chart")
42 |
43 | // MARK: - CENTER BUTTON
44 | Button {
45 |
46 | } label: {
47 | Image(systemName: "plus")
48 | .font(.system(size: 20, weight: .bold))
49 | .foregroundColor(.white)
50 | .padding(22)
51 | .background(
52 | Circle()
53 | .fill(Color("menuTab"))
54 | .shadow(color: Color("menuTab").opacity(0.15), radius: 5, x: 0, y: 8)
55 | )
56 | }
57 | .offset(y: -20)
58 | .padding(.horizontal, -15)
59 |
60 | TabButton(image: "chat")
61 | TabButton(image: "setting")
62 |
63 | }
64 | .padding(.top, -10)
65 | .frame(maxWidth: .infinity)
66 | .background(
67 | Color("BG")
68 | .ignoresSafeArea()
69 | )
70 | }
71 | }
72 | @ViewBuilder
73 | func TabButton(image: String)-> some View {
74 | Button {
75 | withAnimation {
76 | currentTab = image
77 | }
78 | } label: {
79 | Image(image)
80 | .resizable()
81 | .renderingMode(.template)
82 | .aspectRatio(contentMode: .fit)
83 | .frame(width: 25, height: 25)
84 | .foregroundColor(
85 | currentTab == image ? Color.black : Color.gray.opacity(0.8)
86 | )
87 | }
88 | }
89 | }
90 |
91 | struct BaseView_Previews: PreviewProvider {
92 | static var previews: some View {
93 | BaseView()
94 | }
95 | }
96 |
97 |
98 | // MARK: BACKGROUND MODIFIER
99 |
100 | struct BGModifier: ViewModifier {
101 | func body(content: Content) -> some View {
102 | content
103 | .frame(maxWidth: .infinity, maxHeight: .infinity)
104 | .background(Color("BG").ignoresSafeArea())
105 | }
106 | }
107 |
--------------------------------------------------------------------------------
/SaaSDashboard/View/GraphView.swift:
--------------------------------------------------------------------------------
1 | //
2 | // GraphView.swift
3 | // SaaSDashboard
4 | //
5 | // Created by Shameem Reza on 15/3/22.
6 | //
7 |
8 | import SwiftUI
9 |
10 | struct GraphView: View {
11 | var sales: [Sale]
12 | var body: some View {
13 | // MARK: GRAPH VIEW
14 | VStack(spacing: 20) {
15 | // MARK: GRAPH TITLE
16 | HStack {
17 | Text("Total Sales")
18 | .fontWeight(.bold)
19 |
20 | Spacer()
21 |
22 | Menu {
23 | Button("Day"){}
24 | Button("Week"){}
25 | Button("Month"){}
26 | Button("Year"){}
27 | } label: {
28 | HStack(spacing: 4) {
29 | Text("this week")
30 |
31 | Image(systemName: "arrowtriangle.down.fill")
32 | .scaleEffect(0.7)
33 | }
34 | .font(.system(size: 14, weight: .bold))
35 | .foregroundColor(.gray)
36 | }
37 | } // GRAPH TITLE END
38 |
39 | // MARK: UNDERLINE
40 | HStack(spacing: 10) {
41 | Capsule()
42 | .fill(Color("chartColor2"))
43 | .frame(width: 20, height: 8)
44 |
45 | Text("Sales")
46 | .font(.system(size: 14, weight: .bold))
47 | .foregroundColor(.gray)
48 | } // UNDERLINE END
49 | .frame(maxWidth: .infinity, alignment: .leading)
50 |
51 | // MARK: - CHART VIEW
52 | ChartView()
53 | .padding(.top, 20)
54 |
55 | }
56 | .padding(20)
57 | .background(Color.white)
58 | .cornerRadius(20)
59 | .padding(.top, 25)
60 | }
61 |
62 | @ViewBuilder
63 | func ChartView()->some View {
64 | GeometryReader{proxy in
65 |
66 | ZStack {
67 | VStack(spacing: 0) {
68 | ForEach(getGraphLines(), id: \.self) {line in
69 | HStack(spacing: 8) {
70 | Text("\(Int(line))")
71 | .font(.caption)
72 | .foregroundColor(.gray)
73 | .frame(height: 20)
74 |
75 | Rectangle()
76 | .fill(Color.gray.opacity(0.2))
77 | .frame(height: 1)
78 | }
79 | .frame(maxHeight: .infinity, alignment: .bottom)
80 | .offset(y: -15) //REMOVE TEXT SIZE
81 | }
82 | }
83 |
84 | HStack {
85 | ForEach(sales) {sale in
86 | VStack(spacing: 0) {
87 | VStack(spacing: 5) {
88 | Capsule()
89 | .fill(Color("chartColor2"))
90 |
91 | Capsule()
92 | .fill(Color("chartColor1"))
93 | }
94 | .frame(width: 8)
95 | .frame(height: getBarHeight(point: sale.sales, size: proxy.size))
96 |
97 | Text(sale.weekDay)
98 | .font(.caption)
99 | .frame(height: 25, alignment: .bottom)
100 | }
101 | .frame(maxWidth: .infinity, maxHeight: .infinity, alignment: .bottom)
102 | }
103 | }
104 | .padding(.leading, 30)
105 | }
106 | .frame(maxWidth: .infinity, maxHeight: .infinity, alignment: .center)
107 |
108 | }
109 | .frame(height: 190) // FIXED HEIGHT
110 | }
111 |
112 | // MARK: - BAR HEIGHT
113 |
114 | func getBarHeight(point: CGFloat, size: CGSize)->CGFloat {
115 | let max = getMAx()
116 | let height = (point / max) * (size.height - 45)
117 |
118 | return height
119 | }
120 |
121 | // MARK: - GET SAMPLE LINE BASED ON MAX
122 | func getGraphLines()->[CGFloat] {
123 | let max = getMAx()
124 |
125 | var lines: [CGFloat] = []
126 |
127 | for index in 1...4 {
128 | let progress = max / 4
129 | lines.append(max - (progress * CGFloat(index)))
130 | }
131 | return lines
132 | }
133 |
134 | // MARK: - GET MAX AMOUNT
135 | func getMAx()->CGFloat{
136 | let max = sales.max { first, scnd in
137 | return scnd.sales > first.sales
138 | }?.sales ?? 0
139 | return max
140 | }
141 | }
142 |
143 | struct GraphView_Previews: PreviewProvider {
144 | static var previews: some View {
145 | ContentView()
146 | }
147 | }
148 |
--------------------------------------------------------------------------------
/SaaSDashboard/View/Home.swift:
--------------------------------------------------------------------------------
1 | //
2 | // Home.swift
3 | // SaaSDashboard
4 | //
5 | // Created by Shameem Reza on 15/3/22.
6 | //
7 |
8 | import SwiftUI
9 |
10 | struct Home: View {
11 | var body: some View {
12 | // MARK: HOME VIEW
13 | ScrollView(.vertical, showsIndicators: false) {
14 | VStack(spacing: 18) {
15 | // MARK: TITLE
16 | HStack {
17 | VStack(alignment: .leading, spacing: 8) {
18 | Text("SaaS Dashboard")
19 | .font(.title.bold())
20 |
21 | Text("daily sales and analytics")
22 | .fontWeight(.semibold)
23 | .foregroundColor(.gray)
24 | }
25 |
26 | Spacer(minLength: 10)
27 |
28 | // MARK: - NOTIFICATION
29 | Button {
30 |
31 | } label: {
32 | Image(systemName: "bell")
33 | .font(.title)
34 | .foregroundColor(.gray)
35 | .overlay(
36 | Text("2")
37 | .font(.caption2.bold())
38 | .foregroundColor(.white)
39 | .padding(8)
40 | .background(Color.pink)
41 | .clipShape(Circle())
42 | .offset(x: 11, y: -12),
43 |
44 | alignment: .topTrailing
45 | )
46 | .offset(x: -2)
47 | .padding(15)
48 | .background(Color.white)
49 | .clipShape(Circle())
50 | } // NOTIFICATION END
51 | } // TITLE END
52 |
53 | // MARK: - ORDER VIEW
54 | HStack(spacing: 0) {
55 | OrderProgress(title: "New Order", color: Color("chartColor2"), image: "cart.badge.plus", progress: 68)
56 |
57 | OrderProgress(title: "Order Completed", color: Color("roundColor"), image: "clock.badge.checkmark", progress: 72)
58 | } // USER VIEW END
59 | .padding()
60 | .background(Color.white)
61 | .cornerRadius(18)
62 | .padding(.bottom, -25)
63 |
64 | // MARK: GRAPH VIEW
65 | GraphView(sales: sales)
66 |
67 | // MARK: - TOP SELLING PRODUCT
68 | VStack {
69 | // MARK: SECTION TITLE
70 | HStack {
71 | Text("Top Selling Products")
72 | .font(.callout.bold())
73 |
74 | Spacer()
75 |
76 | Menu {
77 | Button("Day"){}
78 | Button("Week"){}
79 | Button("Month"){}
80 | Button("Year"){}
81 | } label: {
82 | Image("option")
83 | .resizable()
84 | .renderingMode(.template)
85 | .aspectRatio(contentMode: .fit)
86 | .frame(width: 20, height: 20)
87 | .foregroundColor(.primary)
88 | }
89 | } // SECTION TITLE
90 |
91 | // MARK: PRODUCT LIST
92 | HStack(spacing: 15) {
93 | Image(systemName: "bag.fill")
94 | .font(.title2)
95 | .foregroundColor(.pink)
96 | .padding(12)
97 | .background(
98 | Color.gray
99 | .opacity(0.25)
100 | .clipShape(Circle())
101 | )
102 |
103 | VStack(alignment: .leading, spacing: 8) {
104 | Text("Party Bag")
105 | .fontWeight(.bold)
106 | Text("1230 Sales")
107 | .font(.caption2.bold())
108 | .foregroundColor(.gray)
109 | }
110 |
111 | Spacer()
112 | Image(systemName: "cart.fill.badge.plus")
113 | .font(.title2)
114 | .foregroundColor(Color("chartColor2"))
115 | } // END PRODUCT LIST
116 | .padding(.top, 10)
117 | } // END TOP SELL
118 | .padding()
119 | .background(Color.white)
120 | .cornerRadius(18)
121 |
122 | }
123 | .padding()
124 |
125 | }
126 | }
127 |
128 | // MARK: USER PROGRESS VIEW
129 | @ViewBuilder
130 | func OrderProgress(title: String, color: Color, image: String, progress: CGFloat)->some View {
131 | HStack {
132 | Image(systemName: image)
133 | .font(.title2)
134 | .foregroundColor(color)
135 | .padding(10)
136 | .background(
137 | ZStack {
138 | Circle()
139 | .stroke(Color.gray.opacity(0.3), lineWidth: 2)
140 |
141 | Circle()
142 | .trim(from: 0, to: progress / 100)
143 | .stroke(color, lineWidth: 2)
144 | }
145 | )
146 |
147 | VStack(alignment: .leading, spacing: 8) {
148 | Text("\(Int(progress))")
149 | .font(.title2.bold())
150 |
151 | Text(title)
152 | .font(.caption2.bold())
153 | .foregroundColor(.gray)
154 | }
155 | }
156 | .frame(maxWidth: .infinity, alignment: .leading)
157 | }
158 | }
159 |
160 | struct Home_Previews: PreviewProvider {
161 | static var previews: some View {
162 | ContentView()
163 | }
164 | }
165 |
--------------------------------------------------------------------------------
/row/preview-1.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/shameemreza/SaaSDashboard/a7cb6ab756dfaf4ced7cbdafd601636e8436e2ed/row/preview-1.png
--------------------------------------------------------------------------------
/row/preview-2.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/shameemreza/SaaSDashboard/a7cb6ab756dfaf4ced7cbdafd601636e8436e2ed/row/preview-2.png
--------------------------------------------------------------------------------