├── LICENSE
├── LiquidSwipe.xcodeproj
├── project.pbxproj
├── project.xcworkspace
│ ├── contents.xcworkspacedata
│ ├── xcshareddata
│ │ └── IDEWorkspaceChecks.plist
│ └── xcuserdata
│ │ ├── markgoldin.xcuserdatad
│ │ └── UserInterfaceState.xcuserstate
│ │ └── ystrot.xcuserdatad
│ │ └── UserInterfaceState.xcuserstate
├── xcshareddata
│ └── xcschemes
│ │ └── LiquidSwipe.xcscheme
└── xcuserdata
│ ├── markgoldin.xcuserdatad
│ ├── xcdebugger
│ │ └── Breakpoints_v2.xcbkptlist
│ └── xcschemes
│ │ └── xcschememanagement.plist
│ └── ystrot.xcuserdatad
│ └── xcschemes
│ └── xcschememanagement.plist
├── LiquidSwipe
├── AppDelegate.swift
├── Assets.xcassets
│ ├── AppIcon.appiconset
│ │ └── Contents.json
│ └── Contents.json
├── Base.lproj
│ └── LaunchScreen.storyboard
├── Info.plist
├── LiquidSwipeView.swift
├── Preview Content
│ └── Preview Assets.xcassets
│ │ └── Contents.json
├── SceneDelegate.swift
├── SliderData.swift
└── WaveView.swift
└── README.md
/LICENSE:
--------------------------------------------------------------------------------
1 | MIT License
2 |
3 | Copyright (c) 2020 Exyte
4 |
5 | Permission is hereby granted, free of charge, to any person obtaining a copy
6 | of this software and associated documentation files (the "Software"), to deal
7 | in the Software without restriction, including without limitation the rights
8 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9 | copies of the Software, and to permit persons to whom the Software is
10 | furnished to do so, subject to the following conditions:
11 |
12 | The above copyright notice and this permission notice shall be included in all
13 | copies or substantial portions of the Software.
14 |
15 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21 | SOFTWARE.
22 |
--------------------------------------------------------------------------------
/LiquidSwipe.xcodeproj/project.pbxproj:
--------------------------------------------------------------------------------
1 | // !$*UTF8*$!
2 | {
3 | archiveVersion = 1;
4 | classes = {
5 | };
6 | objectVersion = 50;
7 | objects = {
8 |
9 | /* Begin PBXBuildFile section */
10 | 423BFC572301BE0000CD4856 /* WaveView.swift in Sources */ = {isa = PBXBuildFile; fileRef = 423BFC562301BE0000CD4856 /* WaveView.swift */; };
11 | 42D891A222FC618D004105D9 /* AppDelegate.swift in Sources */ = {isa = PBXBuildFile; fileRef = 42D891A122FC618D004105D9 /* AppDelegate.swift */; };
12 | 42D891A422FC618D004105D9 /* SceneDelegate.swift in Sources */ = {isa = PBXBuildFile; fileRef = 42D891A322FC618D004105D9 /* SceneDelegate.swift */; };
13 | 42D891A622FC618D004105D9 /* LiquidSwipeView.swift in Sources */ = {isa = PBXBuildFile; fileRef = 42D891A522FC618D004105D9 /* LiquidSwipeView.swift */; };
14 | 42D891A822FC618E004105D9 /* Assets.xcassets in Resources */ = {isa = PBXBuildFile; fileRef = 42D891A722FC618E004105D9 /* Assets.xcassets */; };
15 | 42D891AB22FC618E004105D9 /* Preview Assets.xcassets in Resources */ = {isa = PBXBuildFile; fileRef = 42D891AA22FC618E004105D9 /* Preview Assets.xcassets */; };
16 | 42D891AE22FC618E004105D9 /* LaunchScreen.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = 42D891AC22FC618E004105D9 /* LaunchScreen.storyboard */; };
17 | 58A2AE97233282DA00D9F73D /* SliderData.swift in Sources */ = {isa = PBXBuildFile; fileRef = 58A2AE96233282DA00D9F73D /* SliderData.swift */; };
18 | /* End PBXBuildFile section */
19 |
20 | /* Begin PBXFileReference section */
21 | 423BFC562301BE0000CD4856 /* WaveView.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = WaveView.swift; sourceTree = ""; };
22 | 42D8919E22FC618D004105D9 /* LiquidSwipe.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = LiquidSwipe.app; sourceTree = BUILT_PRODUCTS_DIR; };
23 | 42D891A122FC618D004105D9 /* AppDelegate.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = AppDelegate.swift; sourceTree = ""; };
24 | 42D891A322FC618D004105D9 /* SceneDelegate.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = SceneDelegate.swift; sourceTree = ""; };
25 | 42D891A522FC618D004105D9 /* LiquidSwipeView.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = LiquidSwipeView.swift; sourceTree = ""; };
26 | 42D891A722FC618E004105D9 /* Assets.xcassets */ = {isa = PBXFileReference; lastKnownFileType = folder.assetcatalog; path = Assets.xcassets; sourceTree = ""; };
27 | 42D891AA22FC618E004105D9 /* Preview Assets.xcassets */ = {isa = PBXFileReference; lastKnownFileType = folder.assetcatalog; path = "Preview Assets.xcassets"; sourceTree = ""; };
28 | 42D891AD22FC618E004105D9 /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.storyboard; name = Base; path = Base.lproj/LaunchScreen.storyboard; sourceTree = ""; };
29 | 42D891AF22FC618E004105D9 /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = ""; };
30 | 58A2AE96233282DA00D9F73D /* SliderData.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = SliderData.swift; sourceTree = ""; };
31 | /* End PBXFileReference section */
32 |
33 | /* Begin PBXFrameworksBuildPhase section */
34 | 42D8919B22FC618D004105D9 /* Frameworks */ = {
35 | isa = PBXFrameworksBuildPhase;
36 | buildActionMask = 2147483647;
37 | files = (
38 | );
39 | runOnlyForDeploymentPostprocessing = 0;
40 | };
41 | /* End PBXFrameworksBuildPhase section */
42 |
43 | /* Begin PBXGroup section */
44 | 42D8919522FC618D004105D9 = {
45 | isa = PBXGroup;
46 | children = (
47 | 42D891A022FC618D004105D9 /* LiquidSwipe */,
48 | 42D8919F22FC618D004105D9 /* Products */,
49 | );
50 | sourceTree = "";
51 | };
52 | 42D8919F22FC618D004105D9 /* Products */ = {
53 | isa = PBXGroup;
54 | children = (
55 | 42D8919E22FC618D004105D9 /* LiquidSwipe.app */,
56 | );
57 | name = Products;
58 | sourceTree = "";
59 | };
60 | 42D891A022FC618D004105D9 /* LiquidSwipe */ = {
61 | isa = PBXGroup;
62 | children = (
63 | 42D891A122FC618D004105D9 /* AppDelegate.swift */,
64 | 42D891A322FC618D004105D9 /* SceneDelegate.swift */,
65 | 42D891A522FC618D004105D9 /* LiquidSwipeView.swift */,
66 | 58A2AE96233282DA00D9F73D /* SliderData.swift */,
67 | 423BFC562301BE0000CD4856 /* WaveView.swift */,
68 | 42D891A722FC618E004105D9 /* Assets.xcassets */,
69 | 42D891AC22FC618E004105D9 /* LaunchScreen.storyboard */,
70 | 42D891AF22FC618E004105D9 /* Info.plist */,
71 | 42D891A922FC618E004105D9 /* Preview Content */,
72 | );
73 | path = LiquidSwipe;
74 | sourceTree = "";
75 | };
76 | 42D891A922FC618E004105D9 /* Preview Content */ = {
77 | isa = PBXGroup;
78 | children = (
79 | 42D891AA22FC618E004105D9 /* Preview Assets.xcassets */,
80 | );
81 | path = "Preview Content";
82 | sourceTree = "";
83 | };
84 | /* End PBXGroup section */
85 |
86 | /* Begin PBXNativeTarget section */
87 | 42D8919D22FC618D004105D9 /* LiquidSwipe */ = {
88 | isa = PBXNativeTarget;
89 | buildConfigurationList = 42D891B222FC618E004105D9 /* Build configuration list for PBXNativeTarget "LiquidSwipe" */;
90 | buildPhases = (
91 | 42D8919A22FC618D004105D9 /* Sources */,
92 | 42D8919B22FC618D004105D9 /* Frameworks */,
93 | 42D8919C22FC618D004105D9 /* Resources */,
94 | );
95 | buildRules = (
96 | );
97 | dependencies = (
98 | );
99 | name = LiquidSwipe;
100 | productName = LiquidSwipeSwiftUI;
101 | productReference = 42D8919E22FC618D004105D9 /* LiquidSwipe.app */;
102 | productType = "com.apple.product-type.application";
103 | };
104 | /* End PBXNativeTarget section */
105 |
106 | /* Begin PBXProject section */
107 | 42D8919622FC618D004105D9 /* Project object */ = {
108 | isa = PBXProject;
109 | attributes = {
110 | LastSwiftUpdateCheck = 1100;
111 | LastUpgradeCheck = 1330;
112 | ORGANIZATIONNAME = Exyte;
113 | TargetAttributes = {
114 | 42D8919D22FC618D004105D9 = {
115 | CreatedOnToolsVersion = 11.0;
116 | };
117 | };
118 | };
119 | buildConfigurationList = 42D8919922FC618D004105D9 /* Build configuration list for PBXProject "LiquidSwipe" */;
120 | compatibilityVersion = "Xcode 9.3";
121 | developmentRegion = en;
122 | hasScannedForEncodings = 0;
123 | knownRegions = (
124 | en,
125 | Base,
126 | );
127 | mainGroup = 42D8919522FC618D004105D9;
128 | productRefGroup = 42D8919F22FC618D004105D9 /* Products */;
129 | projectDirPath = "";
130 | projectRoot = "";
131 | targets = (
132 | 42D8919D22FC618D004105D9 /* LiquidSwipe */,
133 | );
134 | };
135 | /* End PBXProject section */
136 |
137 | /* Begin PBXResourcesBuildPhase section */
138 | 42D8919C22FC618D004105D9 /* Resources */ = {
139 | isa = PBXResourcesBuildPhase;
140 | buildActionMask = 2147483647;
141 | files = (
142 | 42D891AE22FC618E004105D9 /* LaunchScreen.storyboard in Resources */,
143 | 42D891AB22FC618E004105D9 /* Preview Assets.xcassets in Resources */,
144 | 42D891A822FC618E004105D9 /* Assets.xcassets in Resources */,
145 | );
146 | runOnlyForDeploymentPostprocessing = 0;
147 | };
148 | /* End PBXResourcesBuildPhase section */
149 |
150 | /* Begin PBXSourcesBuildPhase section */
151 | 42D8919A22FC618D004105D9 /* Sources */ = {
152 | isa = PBXSourcesBuildPhase;
153 | buildActionMask = 2147483647;
154 | files = (
155 | 42D891A222FC618D004105D9 /* AppDelegate.swift in Sources */,
156 | 423BFC572301BE0000CD4856 /* WaveView.swift in Sources */,
157 | 58A2AE97233282DA00D9F73D /* SliderData.swift in Sources */,
158 | 42D891A422FC618D004105D9 /* SceneDelegate.swift in Sources */,
159 | 42D891A622FC618D004105D9 /* LiquidSwipeView.swift in Sources */,
160 | );
161 | runOnlyForDeploymentPostprocessing = 0;
162 | };
163 | /* End PBXSourcesBuildPhase section */
164 |
165 | /* Begin PBXVariantGroup section */
166 | 42D891AC22FC618E004105D9 /* LaunchScreen.storyboard */ = {
167 | isa = PBXVariantGroup;
168 | children = (
169 | 42D891AD22FC618E004105D9 /* Base */,
170 | );
171 | name = LaunchScreen.storyboard;
172 | sourceTree = "";
173 | };
174 | /* End PBXVariantGroup section */
175 |
176 | /* Begin XCBuildConfiguration section */
177 | 42D891B022FC618E004105D9 /* Debug */ = {
178 | isa = XCBuildConfiguration;
179 | buildSettings = {
180 | ALWAYS_SEARCH_USER_PATHS = NO;
181 | CLANG_ANALYZER_NONNULL = YES;
182 | CLANG_ANALYZER_NUMBER_OBJECT_CONVERSION = YES_AGGRESSIVE;
183 | CLANG_CXX_LANGUAGE_STANDARD = "gnu++14";
184 | CLANG_CXX_LIBRARY = "libc++";
185 | CLANG_ENABLE_MODULES = YES;
186 | CLANG_ENABLE_OBJC_ARC = YES;
187 | CLANG_ENABLE_OBJC_WEAK = YES;
188 | CLANG_WARN_BLOCK_CAPTURE_AUTORELEASING = YES;
189 | CLANG_WARN_BOOL_CONVERSION = YES;
190 | CLANG_WARN_COMMA = YES;
191 | CLANG_WARN_CONSTANT_CONVERSION = YES;
192 | CLANG_WARN_DEPRECATED_OBJC_IMPLEMENTATIONS = YES;
193 | CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR;
194 | CLANG_WARN_DOCUMENTATION_COMMENTS = YES;
195 | CLANG_WARN_EMPTY_BODY = YES;
196 | CLANG_WARN_ENUM_CONVERSION = YES;
197 | CLANG_WARN_INFINITE_RECURSION = YES;
198 | CLANG_WARN_INT_CONVERSION = YES;
199 | CLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES;
200 | CLANG_WARN_OBJC_IMPLICIT_RETAIN_SELF = YES;
201 | CLANG_WARN_OBJC_LITERAL_CONVERSION = YES;
202 | CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR;
203 | CLANG_WARN_QUOTED_INCLUDE_IN_FRAMEWORK_HEADER = YES;
204 | CLANG_WARN_RANGE_LOOP_ANALYSIS = YES;
205 | CLANG_WARN_STRICT_PROTOTYPES = YES;
206 | CLANG_WARN_SUSPICIOUS_MOVE = YES;
207 | CLANG_WARN_UNGUARDED_AVAILABILITY = YES_AGGRESSIVE;
208 | CLANG_WARN_UNREACHABLE_CODE = YES;
209 | CLANG_WARN__DUPLICATE_METHOD_MATCH = YES;
210 | COPY_PHASE_STRIP = NO;
211 | DEBUG_INFORMATION_FORMAT = dwarf;
212 | ENABLE_STRICT_OBJC_MSGSEND = YES;
213 | ENABLE_TESTABILITY = YES;
214 | GCC_C_LANGUAGE_STANDARD = gnu11;
215 | GCC_DYNAMIC_NO_PIC = NO;
216 | GCC_NO_COMMON_BLOCKS = YES;
217 | GCC_OPTIMIZATION_LEVEL = 0;
218 | GCC_PREPROCESSOR_DEFINITIONS = (
219 | "DEBUG=1",
220 | "$(inherited)",
221 | );
222 | GCC_WARN_64_TO_32_BIT_CONVERSION = YES;
223 | GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR;
224 | GCC_WARN_UNDECLARED_SELECTOR = YES;
225 | GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE;
226 | GCC_WARN_UNUSED_FUNCTION = YES;
227 | GCC_WARN_UNUSED_VARIABLE = YES;
228 | IPHONEOS_DEPLOYMENT_TARGET = 13.0;
229 | MTL_ENABLE_DEBUG_INFO = INCLUDE_SOURCE;
230 | MTL_FAST_MATH = YES;
231 | ONLY_ACTIVE_ARCH = YES;
232 | SDKROOT = iphoneos;
233 | SWIFT_ACTIVE_COMPILATION_CONDITIONS = DEBUG;
234 | SWIFT_OPTIMIZATION_LEVEL = "-Onone";
235 | };
236 | name = Debug;
237 | };
238 | 42D891B122FC618E004105D9 /* Release */ = {
239 | isa = XCBuildConfiguration;
240 | buildSettings = {
241 | ALWAYS_SEARCH_USER_PATHS = NO;
242 | CLANG_ANALYZER_NONNULL = YES;
243 | CLANG_ANALYZER_NUMBER_OBJECT_CONVERSION = YES_AGGRESSIVE;
244 | CLANG_CXX_LANGUAGE_STANDARD = "gnu++14";
245 | CLANG_CXX_LIBRARY = "libc++";
246 | CLANG_ENABLE_MODULES = YES;
247 | CLANG_ENABLE_OBJC_ARC = YES;
248 | CLANG_ENABLE_OBJC_WEAK = YES;
249 | CLANG_WARN_BLOCK_CAPTURE_AUTORELEASING = YES;
250 | CLANG_WARN_BOOL_CONVERSION = YES;
251 | CLANG_WARN_COMMA = YES;
252 | CLANG_WARN_CONSTANT_CONVERSION = YES;
253 | CLANG_WARN_DEPRECATED_OBJC_IMPLEMENTATIONS = YES;
254 | CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR;
255 | CLANG_WARN_DOCUMENTATION_COMMENTS = YES;
256 | CLANG_WARN_EMPTY_BODY = YES;
257 | CLANG_WARN_ENUM_CONVERSION = YES;
258 | CLANG_WARN_INFINITE_RECURSION = YES;
259 | CLANG_WARN_INT_CONVERSION = YES;
260 | CLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES;
261 | CLANG_WARN_OBJC_IMPLICIT_RETAIN_SELF = YES;
262 | CLANG_WARN_OBJC_LITERAL_CONVERSION = YES;
263 | CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR;
264 | CLANG_WARN_QUOTED_INCLUDE_IN_FRAMEWORK_HEADER = YES;
265 | CLANG_WARN_RANGE_LOOP_ANALYSIS = YES;
266 | CLANG_WARN_STRICT_PROTOTYPES = YES;
267 | CLANG_WARN_SUSPICIOUS_MOVE = YES;
268 | CLANG_WARN_UNGUARDED_AVAILABILITY = YES_AGGRESSIVE;
269 | CLANG_WARN_UNREACHABLE_CODE = YES;
270 | CLANG_WARN__DUPLICATE_METHOD_MATCH = YES;
271 | COPY_PHASE_STRIP = NO;
272 | DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym";
273 | ENABLE_NS_ASSERTIONS = NO;
274 | ENABLE_STRICT_OBJC_MSGSEND = YES;
275 | GCC_C_LANGUAGE_STANDARD = gnu11;
276 | GCC_NO_COMMON_BLOCKS = YES;
277 | GCC_WARN_64_TO_32_BIT_CONVERSION = YES;
278 | GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR;
279 | GCC_WARN_UNDECLARED_SELECTOR = YES;
280 | GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE;
281 | GCC_WARN_UNUSED_FUNCTION = YES;
282 | GCC_WARN_UNUSED_VARIABLE = YES;
283 | IPHONEOS_DEPLOYMENT_TARGET = 13.0;
284 | MTL_ENABLE_DEBUG_INFO = NO;
285 | MTL_FAST_MATH = YES;
286 | SDKROOT = iphoneos;
287 | SWIFT_COMPILATION_MODE = wholemodule;
288 | SWIFT_OPTIMIZATION_LEVEL = "-O";
289 | VALIDATE_PRODUCT = YES;
290 | };
291 | name = Release;
292 | };
293 | 42D891B322FC618E004105D9 /* Debug */ = {
294 | isa = XCBuildConfiguration;
295 | buildSettings = {
296 | ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;
297 | CODE_SIGN_STYLE = Automatic;
298 | DEVELOPMENT_ASSET_PATHS = "LiquidSwipe/Preview\\ Content";
299 | DEVELOPMENT_TEAM = FZXCM5CJ7P;
300 | ENABLE_PREVIEWS = YES;
301 | INFOPLIST_FILE = LiquidSwipe/Info.plist;
302 | LD_RUNPATH_SEARCH_PATHS = (
303 | "$(inherited)",
304 | "@executable_path/Frameworks",
305 | );
306 | PRODUCT_BUNDLE_IDENTIFIER = exyte.LiquidSwipe;
307 | PRODUCT_NAME = "$(TARGET_NAME)";
308 | SWIFT_VERSION = 5.0;
309 | TARGETED_DEVICE_FAMILY = "1,2";
310 | };
311 | name = Debug;
312 | };
313 | 42D891B422FC618E004105D9 /* Release */ = {
314 | isa = XCBuildConfiguration;
315 | buildSettings = {
316 | ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;
317 | CODE_SIGN_STYLE = Automatic;
318 | DEVELOPMENT_ASSET_PATHS = "LiquidSwipe/Preview\\ Content";
319 | DEVELOPMENT_TEAM = FZXCM5CJ7P;
320 | ENABLE_PREVIEWS = YES;
321 | INFOPLIST_FILE = LiquidSwipe/Info.plist;
322 | LD_RUNPATH_SEARCH_PATHS = (
323 | "$(inherited)",
324 | "@executable_path/Frameworks",
325 | );
326 | PRODUCT_BUNDLE_IDENTIFIER = exyte.LiquidSwipe;
327 | PRODUCT_NAME = "$(TARGET_NAME)";
328 | SWIFT_VERSION = 5.0;
329 | TARGETED_DEVICE_FAMILY = "1,2";
330 | };
331 | name = Release;
332 | };
333 | /* End XCBuildConfiguration section */
334 |
335 | /* Begin XCConfigurationList section */
336 | 42D8919922FC618D004105D9 /* Build configuration list for PBXProject "LiquidSwipe" */ = {
337 | isa = XCConfigurationList;
338 | buildConfigurations = (
339 | 42D891B022FC618E004105D9 /* Debug */,
340 | 42D891B122FC618E004105D9 /* Release */,
341 | );
342 | defaultConfigurationIsVisible = 0;
343 | defaultConfigurationName = Release;
344 | };
345 | 42D891B222FC618E004105D9 /* Build configuration list for PBXNativeTarget "LiquidSwipe" */ = {
346 | isa = XCConfigurationList;
347 | buildConfigurations = (
348 | 42D891B322FC618E004105D9 /* Debug */,
349 | 42D891B422FC618E004105D9 /* Release */,
350 | );
351 | defaultConfigurationIsVisible = 0;
352 | defaultConfigurationName = Release;
353 | };
354 | /* End XCConfigurationList section */
355 | };
356 | rootObject = 42D8919622FC618D004105D9 /* Project object */;
357 | }
358 |
--------------------------------------------------------------------------------
/LiquidSwipe.xcodeproj/project.xcworkspace/contents.xcworkspacedata:
--------------------------------------------------------------------------------
1 |
2 |
4 |
6 |
7 |
8 |
--------------------------------------------------------------------------------
/LiquidSwipe.xcodeproj/project.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | IDEDidComputeMac32BitWarning
6 |
7 |
8 |
9 |
--------------------------------------------------------------------------------
/LiquidSwipe.xcodeproj/project.xcworkspace/xcuserdata/markgoldin.xcuserdatad/UserInterfaceState.xcuserstate:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/exyte/LiquidSwipe/bfc6b63f9b3a5fc89f91b9f35a05f6b5d0198545/LiquidSwipe.xcodeproj/project.xcworkspace/xcuserdata/markgoldin.xcuserdatad/UserInterfaceState.xcuserstate
--------------------------------------------------------------------------------
/LiquidSwipe.xcodeproj/project.xcworkspace/xcuserdata/ystrot.xcuserdatad/UserInterfaceState.xcuserstate:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/exyte/LiquidSwipe/bfc6b63f9b3a5fc89f91b9f35a05f6b5d0198545/LiquidSwipe.xcodeproj/project.xcworkspace/xcuserdata/ystrot.xcuserdatad/UserInterfaceState.xcuserstate
--------------------------------------------------------------------------------
/LiquidSwipe.xcodeproj/xcshareddata/xcschemes/LiquidSwipe.xcscheme:
--------------------------------------------------------------------------------
1 |
2 |
5 |
8 |
9 |
15 |
21 |
22 |
23 |
24 |
25 |
30 |
31 |
32 |
33 |
43 |
45 |
51 |
52 |
53 |
54 |
60 |
62 |
68 |
69 |
70 |
71 |
73 |
74 |
77 |
78 |
79 |
--------------------------------------------------------------------------------
/LiquidSwipe.xcodeproj/xcuserdata/markgoldin.xcuserdatad/xcdebugger/Breakpoints_v2.xcbkptlist:
--------------------------------------------------------------------------------
1 |
2 |
6 |
7 |
--------------------------------------------------------------------------------
/LiquidSwipe.xcodeproj/xcuserdata/markgoldin.xcuserdatad/xcschemes/xcschememanagement.plist:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | SchemeUserState
6 |
7 | LiquidSwipeSwiftUI.xcscheme_^#shared#^_
8 |
9 | orderHint
10 | 0
11 |
12 |
13 |
14 |
15 |
--------------------------------------------------------------------------------
/LiquidSwipe.xcodeproj/xcuserdata/ystrot.xcuserdatad/xcschemes/xcschememanagement.plist:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | SchemeUserState
6 |
7 | LiquidSwipe.xcscheme_^#shared#^_
8 |
9 | orderHint
10 | 0
11 |
12 |
13 | SuppressBuildableAutocreation
14 |
15 | 42D8919D22FC618D004105D9
16 |
17 | primary
18 |
19 |
20 |
21 |
22 |
23 |
--------------------------------------------------------------------------------
/LiquidSwipe/AppDelegate.swift:
--------------------------------------------------------------------------------
1 | //
2 | // AppDelegate.swift
3 | // LiquidSwipeSwiftUI
4 | //
5 | // Created by Mark Goldin on 08/08/2019.
6 | // Copyright © 2019 Exyte. All rights reserved.
7 | //
8 |
9 | import UIKit
10 |
11 | @UIApplicationMain
12 | class AppDelegate: UIResponder, UIApplicationDelegate {
13 |
14 |
15 |
16 | func application(_ application: UIApplication, didFinishLaunchingWithOptions launchOptions: [UIApplication.LaunchOptionsKey: Any]?) -> Bool {
17 | // Override point for customization after application launch.
18 | return true
19 | }
20 |
21 | // MARK: UISceneSession Lifecycle
22 |
23 | func application(_ application: UIApplication, configurationForConnecting connectingSceneSession: UISceneSession, options: UIScene.ConnectionOptions) -> UISceneConfiguration {
24 | // Called when a new scene session is being created.
25 | // Use this method to select a configuration to create the new scene with.
26 | return UISceneConfiguration(name: "Default Configuration", sessionRole: connectingSceneSession.role)
27 | }
28 |
29 | func application(_ application: UIApplication, didDiscardSceneSessions sceneSessions: Set) {
30 | // Called when the user discards a scene session.
31 | // If any sessions were discarded while the application was not running, this will be called shortly after application:didFinishLaunchingWithOptions.
32 | // Use this method to release any resources that were specific to the discarded scenes, as they will not return.
33 | }
34 |
35 |
36 | }
37 |
38 |
--------------------------------------------------------------------------------
/LiquidSwipe/Assets.xcassets/AppIcon.appiconset/Contents.json:
--------------------------------------------------------------------------------
1 | {
2 | "images" : [
3 | {
4 | "idiom" : "iphone",
5 | "size" : "20x20",
6 | "scale" : "2x"
7 | },
8 | {
9 | "idiom" : "iphone",
10 | "size" : "20x20",
11 | "scale" : "3x"
12 | },
13 | {
14 | "idiom" : "iphone",
15 | "size" : "29x29",
16 | "scale" : "2x"
17 | },
18 | {
19 | "idiom" : "iphone",
20 | "size" : "29x29",
21 | "scale" : "3x"
22 | },
23 | {
24 | "idiom" : "iphone",
25 | "size" : "40x40",
26 | "scale" : "2x"
27 | },
28 | {
29 | "idiom" : "iphone",
30 | "size" : "40x40",
31 | "scale" : "3x"
32 | },
33 | {
34 | "idiom" : "iphone",
35 | "size" : "60x60",
36 | "scale" : "2x"
37 | },
38 | {
39 | "idiom" : "iphone",
40 | "size" : "60x60",
41 | "scale" : "3x"
42 | },
43 | {
44 | "idiom" : "ipad",
45 | "size" : "20x20",
46 | "scale" : "1x"
47 | },
48 | {
49 | "idiom" : "ipad",
50 | "size" : "20x20",
51 | "scale" : "2x"
52 | },
53 | {
54 | "idiom" : "ipad",
55 | "size" : "29x29",
56 | "scale" : "1x"
57 | },
58 | {
59 | "idiom" : "ipad",
60 | "size" : "29x29",
61 | "scale" : "2x"
62 | },
63 | {
64 | "idiom" : "ipad",
65 | "size" : "40x40",
66 | "scale" : "1x"
67 | },
68 | {
69 | "idiom" : "ipad",
70 | "size" : "40x40",
71 | "scale" : "2x"
72 | },
73 | {
74 | "idiom" : "ipad",
75 | "size" : "76x76",
76 | "scale" : "1x"
77 | },
78 | {
79 | "idiom" : "ipad",
80 | "size" : "76x76",
81 | "scale" : "2x"
82 | },
83 | {
84 | "idiom" : "ipad",
85 | "size" : "83.5x83.5",
86 | "scale" : "2x"
87 | },
88 | {
89 | "idiom" : "ios-marketing",
90 | "size" : "1024x1024",
91 | "scale" : "1x"
92 | }
93 | ],
94 | "info" : {
95 | "version" : 1,
96 | "author" : "xcode"
97 | }
98 | }
--------------------------------------------------------------------------------
/LiquidSwipe/Assets.xcassets/Contents.json:
--------------------------------------------------------------------------------
1 | {
2 | "info" : {
3 | "version" : 1,
4 | "author" : "xcode"
5 | }
6 | }
--------------------------------------------------------------------------------
/LiquidSwipe/Base.lproj/LaunchScreen.storyboard:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
14 |
15 |
16 |
17 |
18 |
19 |
20 |
21 |
22 |
23 |
24 |
25 |
26 |
27 |
--------------------------------------------------------------------------------
/LiquidSwipe/Info.plist:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | CFBundleDevelopmentRegion
6 | $(DEVELOPMENT_LANGUAGE)
7 | CFBundleExecutable
8 | $(EXECUTABLE_NAME)
9 | CFBundleIdentifier
10 | $(PRODUCT_BUNDLE_IDENTIFIER)
11 | CFBundleInfoDictionaryVersion
12 | 6.0
13 | CFBundleName
14 | $(PRODUCT_NAME)
15 | CFBundlePackageType
16 | $(PRODUCT_BUNDLE_PACKAGE_TYPE)
17 | CFBundleShortVersionString
18 | 1.0
19 | CFBundleVersion
20 | 1
21 | LSRequiresIPhoneOS
22 |
23 | UIApplicationSceneManifest
24 |
25 | UIApplicationSupportsMultipleScenes
26 |
27 | UISceneConfigurations
28 |
29 | UIWindowSceneSessionRoleApplication
30 |
31 |
32 | UILaunchStoryboardName
33 | LaunchScreen
34 | UISceneConfigurationName
35 | Default Configuration
36 | UISceneDelegateClassName
37 | $(PRODUCT_MODULE_NAME).SceneDelegate
38 |
39 |
40 |
41 |
42 | UILaunchStoryboardName
43 | LaunchScreen
44 | UIRequiredDeviceCapabilities
45 |
46 | armv7
47 |
48 | UISupportedInterfaceOrientations
49 |
50 | UIInterfaceOrientationPortrait
51 | UIInterfaceOrientationLandscapeLeft
52 | UIInterfaceOrientationLandscapeRight
53 |
54 | UISupportedInterfaceOrientations~ipad
55 |
56 | UIInterfaceOrientationPortrait
57 | UIInterfaceOrientationPortraitUpsideDown
58 | UIInterfaceOrientationLandscapeLeft
59 | UIInterfaceOrientationLandscapeRight
60 |
61 |
62 |
63 |
--------------------------------------------------------------------------------
/LiquidSwipe/LiquidSwipeView.swift:
--------------------------------------------------------------------------------
1 | //
2 | // ContentView.swift
3 | // LiquidSwipeSwiftUI
4 | //
5 | // Created by Mark Goldin on 08/08/2019.
6 | // Copyright © 2019 Exyte. All rights reserved.
7 | //
8 |
9 | import SwiftUI
10 |
11 | struct LiquidSwipeView: View {
12 |
13 | @State var leftData = SliderData(side: .left)
14 | @State var rightData = SliderData(side: .right)
15 |
16 | @State var pageIndex = 0
17 | @State var topSlider = SliderSide.right
18 | @State var sliderOffset: CGFloat = 0
19 |
20 | var body: some View {
21 | ZStack {
22 | content()
23 | slider(data: $leftData)
24 | slider(data: $rightData)
25 | }
26 | .edgesIgnoringSafeArea(.vertical)
27 | }
28 |
29 | func slider(data: Binding) -> some View {
30 | let value = data.wrappedValue
31 | return ZStack {
32 | wave(data: data)
33 | button(data: value)
34 | }
35 | .zIndex(topSlider == value.side ? 1 : 0)
36 | .offset(x: value.side == .left ? -sliderOffset : sliderOffset)
37 | }
38 |
39 | func content() -> some View {
40 | return Rectangle().foregroundColor(Config.colors[pageIndex])
41 | }
42 |
43 | func button(data: SliderData) -> some View {
44 | let aw = (data.side == .left ? 1 : -1) * Config.arrowWidth / 2
45 | let ah = Config.arrowHeight / 2
46 | return ZStack {
47 | circle(radius: Config.buttonRadius).stroke().opacity(0.2)
48 | polyline(-aw, -ah, aw, 0, -aw, ah).stroke(Color.white, lineWidth: 2)
49 | }
50 | .offset(data.buttonOffset)
51 | .opacity(data.buttonOpacity)
52 | }
53 |
54 | func wave(data: Binding) -> some View {
55 | let gesture = DragGesture().onChanged {
56 | self.topSlider = data.wrappedValue.side
57 | data.wrappedValue = data.wrappedValue.drag(value: $0)
58 | }
59 | .onEnded {
60 | if data.wrappedValue.isCancelled(value: $0) {
61 | withAnimation(.spring(dampingFraction: 0.5)) {
62 | data.wrappedValue = data.wrappedValue.initial()
63 | }
64 | } else {
65 | self.swipe(data: data)
66 | }
67 | }
68 | .simultaneously(with: TapGesture().onEnded {
69 | self.topSlider = data.wrappedValue.side
70 | self.swipe(data: data)
71 | })
72 | return WaveView(data: data.wrappedValue).gesture(gesture)
73 | .foregroundColor(Config.colors[index(of: data.wrappedValue)])
74 | }
75 |
76 | private func swipe(data: Binding) {
77 | withAnimation() {
78 | data.wrappedValue = data.wrappedValue.final()
79 | }
80 | DispatchQueue.main.asyncAfter(deadline: .now() + 0.3) {
81 | self.pageIndex = self.index(of: data.wrappedValue)
82 | self.leftData = self.leftData.initial()
83 | self.rightData = self.rightData.initial()
84 |
85 | self.sliderOffset = 100
86 | withAnimation(.spring(dampingFraction: 0.5)) {
87 | self.sliderOffset = 0
88 | }
89 | }
90 | }
91 |
92 | private func index(of data: SliderData) -> Int {
93 | let last = Config.colors.count - 1
94 | if data.side == .left {
95 | return pageIndex == 0 ? last : pageIndex - 1
96 | } else {
97 | return pageIndex == last ? 0 : pageIndex + 1
98 | }
99 | }
100 |
101 | private func circle(radius: Double) -> Path {
102 | return Path { path in
103 | path.addEllipse(in: CGRect(x: -radius, y: -radius, width: radius * 2, height: radius * 2))
104 | }
105 | }
106 |
107 | private func polyline(_ values: Double...) -> Path {
108 | return Path { path in
109 | path.move(to: CGPoint(x: values[0], y: values[1]))
110 | for i in stride(from: 2, to: values.count, by: 2) {
111 | path.addLine(to: CGPoint(x: values[i], y: values[i + 1]))
112 | }
113 | }
114 | }
115 |
116 | }
117 |
--------------------------------------------------------------------------------
/LiquidSwipe/Preview Content/Preview Assets.xcassets/Contents.json:
--------------------------------------------------------------------------------
1 | {
2 | "info" : {
3 | "version" : 1,
4 | "author" : "xcode"
5 | }
6 | }
--------------------------------------------------------------------------------
/LiquidSwipe/SceneDelegate.swift:
--------------------------------------------------------------------------------
1 | //
2 | // SceneDelegate.swift
3 | // LiquidSwipeSwiftUI
4 | //
5 | // Created by Mark Goldin on 08/08/2019.
6 | // Copyright © 2019 Exyte. All rights reserved.
7 | //
8 |
9 | import UIKit
10 | import SwiftUI
11 |
12 | class SceneDelegate: UIResponder, UIWindowSceneDelegate {
13 |
14 | var window: UIWindow?
15 |
16 |
17 | func scene(_ scene: UIScene, willConnectTo session: UISceneSession, options connectionOptions: UIScene.ConnectionOptions) {
18 | // Use this method to optionally configure and attach the UIWindow `window` to the provided UIWindowScene `scene`.
19 | // If using a storyboard, the `window` property will automatically be initialized and attached to the scene.
20 | // This delegate does not imply the connecting scene or session are new (see `application:configurationForConnectingSceneSession` instead).
21 |
22 | // Use a UIHostingController as window root view controller
23 | if let windowScene = scene as? UIWindowScene {
24 | let window = UIWindow(windowScene: windowScene)
25 | window.rootViewController = UIHostingController(rootView: LiquidSwipeView())
26 | self.window = window
27 | window.makeKeyAndVisible()
28 | }
29 | }
30 |
31 | func sceneDidDisconnect(_ scene: UIScene) {
32 | // Called as the scene is being released by the system.
33 | // This occurs shortly after the scene enters the background, or when its session is discarded.
34 | // Release any resources associated with this scene that can be re-created the next time the scene connects.
35 | // The scene may re-connect later, as its session was not neccessarily discarded (see `application:didDiscardSceneSessions` instead).
36 | }
37 |
38 | func sceneDidBecomeActive(_ scene: UIScene) {
39 | // Called when the scene has moved from an inactive state to an active state.
40 | // Use this method to restart any tasks that were paused (or not yet started) when the scene was inactive.
41 | }
42 |
43 | func sceneWillResignActive(_ scene: UIScene) {
44 | // Called when the scene will move from an active state to an inactive state.
45 | // This may occur due to temporary interruptions (ex. an incoming phone call).
46 | }
47 |
48 | func sceneWillEnterForeground(_ scene: UIScene) {
49 | // Called as the scene transitions from the background to the foreground.
50 | // Use this method to undo the changes made on entering the background.
51 | }
52 |
53 | func sceneDidEnterBackground(_ scene: UIScene) {
54 | // Called as the scene transitions from the foreground to the background.
55 | // Use this method to save data, release shared resources, and store enough scene-specific state information
56 | // to restore the scene back to its current state.
57 | }
58 |
59 |
60 | }
61 |
62 |
--------------------------------------------------------------------------------
/LiquidSwipe/SliderData.swift:
--------------------------------------------------------------------------------
1 | //
2 | // WaveData.swift
3 | // LiquidSwipe
4 | //
5 | // Created by Yuri Strot on 9/18/19.
6 | // Copyright © 2019 Exyte. All rights reserved.
7 | //
8 |
9 | import SwiftUI
10 |
11 | struct Config {
12 |
13 | static let leftWaveY = 100.0
14 | static let rightWaveY = 300.0
15 | static let buttonRadius = 24.0
16 | static let buttonMargin = 8.0
17 | static let arrowWidth = 4.0
18 | static let arrowHeight = 10.0
19 | static let swipeVelocity = 0.45
20 | static let swipeCancelThreshold = 0.15
21 | static let waveMinLedge = 15.0
22 | static let waveMinHR = 48.0
23 | static let waveMinVR = 82.0
24 |
25 | static let colors = [0xF7A695, 0x8DAEF5, 0x2558D5, 0xECA23F, 0xF47153]
26 | .shuffled().map { val in Color(hex: val) }
27 |
28 | }
29 |
30 | enum SliderSide {
31 | case left
32 | case right
33 | }
34 |
35 | struct SliderData {
36 |
37 | let side: SliderSide
38 | let centerY: Double
39 | let progress: Double
40 |
41 | init(side: SliderSide) {
42 | self.init(side: side, centerY: side == .left ? Config.leftWaveY : Config.rightWaveY, progress: 0)
43 | }
44 |
45 | init(side: SliderSide, centerY: Double, progress: Double) {
46 | self.side = side
47 | self.centerY = centerY
48 | self.progress = progress
49 | }
50 |
51 | var buttonOffset: CGSize {
52 | let sign = side == .left ? 1.0 : -1.0
53 | let hs = Config.buttonRadius + Config.buttonMargin
54 | return CGSize(width: waveLedgeX + sign * (waveHorizontalRadius - hs), height: centerY)
55 | }
56 |
57 | var buttonOpacity: Double {
58 | return max(1 - progress * 5, 0)
59 | }
60 |
61 | var waveLedgeX: Double {
62 | let ledge = Config.waveMinLedge.interpolate(to: SliderData.width, in: progress, min: 0.2, max: 0.8)
63 | return side == .left ? ledge : SliderData.width - ledge
64 | }
65 |
66 | var waveHorizontalRadius: Double {
67 | let p1: Double = 0.4
68 | let to = SliderData.width * 0.8
69 | if progress <= p1 {
70 | return Config.waveMinHR.interpolate(to: to, in: progress, max: p1)
71 | } else if progress >= 1 {
72 | return to
73 | }
74 | let t = (progress - p1) / (1 - p1)
75 | let m: Double = 9.8
76 | let beta: Double = 40.0 / (2 * m)
77 | let omega = pow(-pow(beta, 2) + pow(50.0 / m, 2), 0.5)
78 | return to * exp(-beta * t) * cos(omega * t)
79 | }
80 |
81 | var waveVerticalRadius: Double {
82 | return Config.waveMinVR.interpolate(to: SliderData.height * 0.9, in: progress, max: 0.4)
83 | }
84 |
85 | func initial() -> SliderData {
86 | return SliderData(side: side, centerY: centerY, progress: 0)
87 | }
88 |
89 | func final() -> SliderData {
90 | return SliderData(side: side, centerY: centerY, progress: 1)
91 | }
92 |
93 | func drag(value: DragGesture.Value) -> SliderData {
94 | let dx = (side == .left ? 1 : -1) * Double(value.translation.width)
95 | let progress = min(1.0, max(0, dx * Config.swipeVelocity / SliderData.width))
96 | return SliderData(side: side, centerY: Double(value.location.y), progress: progress)
97 | }
98 |
99 | func isCancelled(value: DragGesture.Value) -> Bool {
100 | return drag(value: value).progress < Config.swipeCancelThreshold
101 | }
102 |
103 | static var width: Double {
104 | return Double(UIScreen.main.bounds.width)
105 | }
106 |
107 | static var height: Double {
108 | return Double(UIScreen.main.bounds.height)
109 | }
110 |
111 | }
112 |
113 | extension Color {
114 | init(hex: Int) {
115 | self.init(red: hex.ff(16), green: hex.ff(08), blue: hex.ff(00))
116 | }
117 | }
118 |
119 | extension Int {
120 | func ff(_ shift: Int) -> Double {
121 | return Double((self >> shift) & 0xff) / 255
122 | }
123 | }
124 |
125 | extension Double {
126 | func interpolate(to: Double, in fraction: Double, min: Double = 0, max: Double = 1) -> Double {
127 | if fraction <= min {
128 | return self
129 | } else if fraction >= max {
130 | return to
131 | }
132 | return self + (to - self) * (fraction - min) / (max - min)
133 | }
134 | }
135 |
--------------------------------------------------------------------------------
/LiquidSwipe/WaveView.swift:
--------------------------------------------------------------------------------
1 | //
2 | // LiquidSwipeView.swift
3 | // LiquidSwipeSwiftUI
4 | //
5 | // Created by Mark Goldin on 12/08/2019.
6 | // Copyright © 2019 Exyte. All rights reserved.
7 | //
8 |
9 | import SwiftUI
10 |
11 | struct WaveView: Shape {
12 |
13 | private let side: SliderSide
14 | private var centerY: Double
15 | private var progress: Double
16 |
17 | init(data: SliderData) {
18 | self.side = data.side
19 | self.centerY = data.centerY
20 | self.progress = data.progress
21 | }
22 |
23 | internal var animatableData: AnimatablePair {
24 | get { AnimatablePair(centerY, progress) }
25 | set {
26 | centerY = newValue.first
27 | progress = newValue.second
28 | }
29 | }
30 |
31 | func path(in rect: CGRect) -> Path {
32 | var path = Path()
33 | let data = SliderData(side: side, centerY: centerY, progress: progress)
34 | let waveLedge = data.waveLedgeX
35 | let hr = data.waveHorizontalRadius
36 | let vr = data.waveVerticalRadius
37 | let curveStartY = vr + data.centerY
38 | let isLeft = self.side == .left
39 | let sign = isLeft ? 1.0 : -1.0
40 |
41 | let x = isLeft ? -50 : SliderData.width + 50
42 | path.move(to: CGPoint(x: waveLedge, y: -100))
43 | path.addLine(to: CGPoint(x: x, y: -100))
44 | path.addLine(to: CGPoint(x: x, y: SliderData.height))
45 | path.addLine(to: CGPoint(x: waveLedge, y: SliderData.height))
46 | path.addLine(to: CGPoint(x: waveLedge, y: curveStartY))
47 |
48 | var index = 0
49 | while index < WaveView.data.count {
50 | let x1 = waveLedge + sign * hr * WaveView.data[index]
51 | let y1 = curveStartY - vr * WaveView.data[index + 1]
52 | let x2 = waveLedge + sign * hr * WaveView.data[index + 2]
53 | let y2 = curveStartY - vr * WaveView.data[index + 3]
54 | let x = waveLedge + sign * hr * WaveView.data[index + 4]
55 | let y = curveStartY - vr * WaveView.data[index + 5]
56 | index += 6
57 |
58 | path.addCurve(to: CGPoint(x: x, y: y),
59 | control1: CGPoint(x: x1, y: y1),
60 | control2: CGPoint(x: x2, y: y2))
61 | }
62 |
63 | return path
64 | }
65 |
66 | private static let data = [
67 | 0, 0.13461, 0.05341, 0.24127, 0.15615, 0.33223,
68 | 0.23616, 0.40308, 0.33052, 0.45611, 0.50124, 0.53505,
69 | 0.51587, 0.54182, 0.56641, 0.56503, 0.57493, 0.56896,
70 | 0.72837, 0.63973, 0.80866, 0.68334, 0.87740, 0.73990,
71 | 0.96534, 0.81226, 1, 0.89361, 1, 1,
72 | 1, 1.10014, 0.95957, 1.18879, 0.86084, 1.27048,
73 | 0.78521, 1.33305, 0.70338, 1.37958, 0.52911, 1.46651,
74 | 0.52418, 1.46896, 0.50573, 1.47816, 0.50153, 1.48026,
75 | 0.31874, 1.57142, 0.23320, 1.62041, 0.15411, 1.68740,
76 | 0.05099, 1.77475, 0, 1.87092, 0, 2]
77 |
78 | }
79 |
--------------------------------------------------------------------------------
/README.md:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
LiquidSwipe
9 |
10 |
Example of using SwiftUI to create a beautiful Liquid Swipe control
11 |
12 | Read Article »
13 |
14 | # Usage
15 | This is a ready to run project. Please see more details in the [post](https://exyte.com/blog/swiftui-tutorial-slider-control).
16 |
17 | ## Requirements
18 |
19 | * iOS 13+
20 | * Xcode 11+
21 |
22 | ## Acknowledgements
23 |
24 | Many thanks to [Cuberto team](https://github.com/Cuberto/liquid-swipe) for their beautiful original work that we recreated with SwiftUI.
25 |
26 | ## Our other open source SwiftUI libraries
27 | [PopupView](https://github.com/exyte/PopupView) - Toasts and popups library
28 | [AnchoredPopup](https://github.com/exyte/AnchoredPopup) - Anchored Popup grows "out" of a trigger view (similar to Hero animation)
29 | [Grid](https://github.com/exyte/Grid) - The most powerful Grid container
30 | [ScalingHeaderScrollView](https://github.com/exyte/ScalingHeaderScrollView) - A scroll view with a sticky header which shrinks as you scroll
31 | [AnimatedTabBar](https://github.com/exyte/AnimatedTabBar) - A tabbar with a number of preset animations
32 | [MediaPicker](https://github.com/exyte/mediapicker) - Customizable media picker
33 | [Chat](https://github.com/exyte/chat) - Chat UI framework with fully customizable message cells, input view, and a built-in media picker
34 | [OpenAI](https://github.com/exyte/OpenAI) Wrapper lib for [OpenAI REST API](https://platform.openai.com/docs/api-reference/introduction)
35 | [AnimatedGradient](https://github.com/exyte/AnimatedGradient) - Animated linear gradient
36 | [ConcentricOnboarding](https://github.com/exyte/ConcentricOnboarding) - Animated onboarding flow
37 | [FloatingButton](https://github.com/exyte/FloatingButton) - Floating button menu
38 | [ActivityIndicatorView](https://github.com/exyte/ActivityIndicatorView) - A number of animated loading indicators
39 | [ProgressIndicatorView](https://github.com/exyte/ProgressIndicatorView) - A number of animated progress indicators
40 | [FlagAndCountryCode](https://github.com/exyte/FlagAndCountryCode) - Phone codes and flags for every country
41 | [SVGView](https://github.com/exyte/SVGView) - SVG parser
42 |
--------------------------------------------------------------------------------