Skip to content

Commit b79a6c6

Browse files
committed
更新demo
1 parent 7c4d21d commit b79a6c6

File tree

13 files changed

+693
-0
lines changed

13 files changed

+693
-0
lines changed

SwiftUI_ALL_PREVIEW.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22

33
| Demo | 效果图 | 功能的介绍 |
44
| ------------------------------------------------------------------------ | ----------------------------------------------------------------------------------------------------------- | -------- |
5+
| [CalendarScrollEffect ](SwiftUI_Demos/CalendarScrollEffect) | ![CalendarScrollEffect ](SwiftUI_Demos/CalendarScrollEffect/CalendarScrollEffect.gif) | |
56
| [InstagramProfileScroll ](SwiftUI_Demos/InstagramProfileScroll) | ![InstagramProfileScroll ](SwiftUI_Demos/InstagramProfileScroll/InstagramProfileScroll.gif) | 仿Instagram个人主页 |
67
| [ResizableHeaderScroll ](SwiftUI_Demos/ResizableHeaderScroll) | ![ResizableHeaderScroll ](SwiftUI_Demos/ResizableHeaderScroll/ResizableHeaderScroll.gif) | 可伸缩头部 |
78
| [PayWall-StoreKit ](SwiftUI_Demos/PayWall-StoreKit) | ![PayWall-StoreKit ](SwiftUI_Demos/PayWall-StoreKit/PayWall-StoreKit.gif) | 原生内购示例 |
1.14 MB
Loading
Lines changed: 329 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,329 @@
1+
// !$*UTF8*$!
2+
{
3+
archiveVersion = 1;
4+
classes = {
5+
};
6+
objectVersion = 77;
7+
objects = {
8+
9+
/* Begin PBXFileReference section */
10+
E79FF20C2DE1C35A00F03794 /* CalendarScrollEffect.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = CalendarScrollEffect.app; sourceTree = BUILT_PRODUCTS_DIR; };
11+
/* End PBXFileReference section */
12+
13+
/* Begin PBXFileSystemSynchronizedRootGroup section */
14+
E79FF20E2DE1C35A00F03794 /* CalendarScrollEffect */ = {
15+
isa = PBXFileSystemSynchronizedRootGroup;
16+
path = CalendarScrollEffect;
17+
sourceTree = "<group>";
18+
};
19+
/* End PBXFileSystemSynchronizedRootGroup section */
20+
21+
/* Begin PBXFrameworksBuildPhase section */
22+
E79FF2092DE1C35A00F03794 /* Frameworks */ = {
23+
isa = PBXFrameworksBuildPhase;
24+
buildActionMask = 2147483647;
25+
files = (
26+
);
27+
runOnlyForDeploymentPostprocessing = 0;
28+
};
29+
/* End PBXFrameworksBuildPhase section */
30+
31+
/* Begin PBXGroup section */
32+
E79FF2032DE1C35A00F03794 = {
33+
isa = PBXGroup;
34+
children = (
35+
E79FF20E2DE1C35A00F03794 /* CalendarScrollEffect */,
36+
E79FF20D2DE1C35A00F03794 /* Products */,
37+
);
38+
sourceTree = "<group>";
39+
};
40+
E79FF20D2DE1C35A00F03794 /* Products */ = {
41+
isa = PBXGroup;
42+
children = (
43+
E79FF20C2DE1C35A00F03794 /* CalendarScrollEffect.app */,
44+
);
45+
name = Products;
46+
sourceTree = "<group>";
47+
};
48+
/* End PBXGroup section */
49+
50+
/* Begin PBXNativeTarget section */
51+
E79FF20B2DE1C35A00F03794 /* CalendarScrollEffect */ = {
52+
isa = PBXNativeTarget;
53+
buildConfigurationList = E79FF2172DE1C35B00F03794 /* Build configuration list for PBXNativeTarget "CalendarScrollEffect" */;
54+
buildPhases = (
55+
E79FF2082DE1C35A00F03794 /* Sources */,
56+
E79FF2092DE1C35A00F03794 /* Frameworks */,
57+
E79FF20A2DE1C35A00F03794 /* Resources */,
58+
);
59+
buildRules = (
60+
);
61+
dependencies = (
62+
);
63+
fileSystemSynchronizedGroups = (
64+
E79FF20E2DE1C35A00F03794 /* CalendarScrollEffect */,
65+
);
66+
name = CalendarScrollEffect;
67+
packageProductDependencies = (
68+
);
69+
productName = CalendarScrollEffect;
70+
productReference = E79FF20C2DE1C35A00F03794 /* CalendarScrollEffect.app */;
71+
productType = "com.apple.product-type.application";
72+
};
73+
/* End PBXNativeTarget section */
74+
75+
/* Begin PBXProject section */
76+
E79FF2042DE1C35A00F03794 /* Project object */ = {
77+
isa = PBXProject;
78+
attributes = {
79+
BuildIndependentTargetsInParallel = 1;
80+
LastSwiftUpdateCheck = 1630;
81+
LastUpgradeCheck = 1630;
82+
TargetAttributes = {
83+
E79FF20B2DE1C35A00F03794 = {
84+
CreatedOnToolsVersion = 16.3;
85+
};
86+
};
87+
};
88+
buildConfigurationList = E79FF2072DE1C35A00F03794 /* Build configuration list for PBXProject "CalendarScrollEffect" */;
89+
developmentRegion = en;
90+
hasScannedForEncodings = 0;
91+
knownRegions = (
92+
en,
93+
Base,
94+
);
95+
mainGroup = E79FF2032DE1C35A00F03794;
96+
minimizedProjectReferenceProxies = 1;
97+
preferredProjectObjectVersion = 77;
98+
productRefGroup = E79FF20D2DE1C35A00F03794 /* Products */;
99+
projectDirPath = "";
100+
projectRoot = "";
101+
targets = (
102+
E79FF20B2DE1C35A00F03794 /* CalendarScrollEffect */,
103+
);
104+
};
105+
/* End PBXProject section */
106+
107+
/* Begin PBXResourcesBuildPhase section */
108+
E79FF20A2DE1C35A00F03794 /* Resources */ = {
109+
isa = PBXResourcesBuildPhase;
110+
buildActionMask = 2147483647;
111+
files = (
112+
);
113+
runOnlyForDeploymentPostprocessing = 0;
114+
};
115+
/* End PBXResourcesBuildPhase section */
116+
117+
/* Begin PBXSourcesBuildPhase section */
118+
E79FF2082DE1C35A00F03794 /* Sources */ = {
119+
isa = PBXSourcesBuildPhase;
120+
buildActionMask = 2147483647;
121+
files = (
122+
);
123+
runOnlyForDeploymentPostprocessing = 0;
124+
};
125+
/* End PBXSourcesBuildPhase section */
126+
127+
/* Begin XCBuildConfiguration section */
128+
E79FF2152DE1C35B00F03794 /* Debug */ = {
129+
isa = XCBuildConfiguration;
130+
buildSettings = {
131+
ALWAYS_SEARCH_USER_PATHS = NO;
132+
ASSETCATALOG_COMPILER_GENERATE_SWIFT_ASSET_SYMBOL_EXTENSIONS = YES;
133+
CLANG_ANALYZER_NONNULL = YES;
134+
CLANG_ANALYZER_NUMBER_OBJECT_CONVERSION = YES_AGGRESSIVE;
135+
CLANG_CXX_LANGUAGE_STANDARD = "gnu++20";
136+
CLANG_ENABLE_MODULES = YES;
137+
CLANG_ENABLE_OBJC_ARC = YES;
138+
CLANG_ENABLE_OBJC_WEAK = YES;
139+
CLANG_WARN_BLOCK_CAPTURE_AUTORELEASING = YES;
140+
CLANG_WARN_BOOL_CONVERSION = YES;
141+
CLANG_WARN_COMMA = YES;
142+
CLANG_WARN_CONSTANT_CONVERSION = YES;
143+
CLANG_WARN_DEPRECATED_OBJC_IMPLEMENTATIONS = YES;
144+
CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR;
145+
CLANG_WARN_DOCUMENTATION_COMMENTS = YES;
146+
CLANG_WARN_EMPTY_BODY = YES;
147+
CLANG_WARN_ENUM_CONVERSION = YES;
148+
CLANG_WARN_INFINITE_RECURSION = YES;
149+
CLANG_WARN_INT_CONVERSION = YES;
150+
CLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES;
151+
CLANG_WARN_OBJC_IMPLICIT_RETAIN_SELF = YES;
152+
CLANG_WARN_OBJC_LITERAL_CONVERSION = YES;
153+
CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR;
154+
CLANG_WARN_QUOTED_INCLUDE_IN_FRAMEWORK_HEADER = YES;
155+
CLANG_WARN_RANGE_LOOP_ANALYSIS = YES;
156+
CLANG_WARN_STRICT_PROTOTYPES = YES;
157+
CLANG_WARN_SUSPICIOUS_MOVE = YES;
158+
CLANG_WARN_UNGUARDED_AVAILABILITY = YES_AGGRESSIVE;
159+
CLANG_WARN_UNREACHABLE_CODE = YES;
160+
CLANG_WARN__DUPLICATE_METHOD_MATCH = YES;
161+
COPY_PHASE_STRIP = NO;
162+
DEBUG_INFORMATION_FORMAT = dwarf;
163+
DEVELOPMENT_TEAM = NN56R38BZT;
164+
ENABLE_STRICT_OBJC_MSGSEND = YES;
165+
ENABLE_TESTABILITY = YES;
166+
ENABLE_USER_SCRIPT_SANDBOXING = YES;
167+
GCC_C_LANGUAGE_STANDARD = gnu17;
168+
GCC_DYNAMIC_NO_PIC = NO;
169+
GCC_NO_COMMON_BLOCKS = YES;
170+
GCC_OPTIMIZATION_LEVEL = 0;
171+
GCC_PREPROCESSOR_DEFINITIONS = (
172+
"DEBUG=1",
173+
"$(inherited)",
174+
);
175+
GCC_WARN_64_TO_32_BIT_CONVERSION = YES;
176+
GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR;
177+
GCC_WARN_UNDECLARED_SELECTOR = YES;
178+
GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE;
179+
GCC_WARN_UNUSED_FUNCTION = YES;
180+
GCC_WARN_UNUSED_VARIABLE = YES;
181+
IPHONEOS_DEPLOYMENT_TARGET = 18.4;
182+
LOCALIZATION_PREFERS_STRING_CATALOGS = YES;
183+
MTL_ENABLE_DEBUG_INFO = INCLUDE_SOURCE;
184+
MTL_FAST_MATH = YES;
185+
ONLY_ACTIVE_ARCH = YES;
186+
SDKROOT = iphoneos;
187+
SWIFT_ACTIVE_COMPILATION_CONDITIONS = "DEBUG $(inherited)";
188+
SWIFT_OPTIMIZATION_LEVEL = "-Onone";
189+
};
190+
name = Debug;
191+
};
192+
E79FF2162DE1C35B00F03794 /* Release */ = {
193+
isa = XCBuildConfiguration;
194+
buildSettings = {
195+
ALWAYS_SEARCH_USER_PATHS = NO;
196+
ASSETCATALOG_COMPILER_GENERATE_SWIFT_ASSET_SYMBOL_EXTENSIONS = YES;
197+
CLANG_ANALYZER_NONNULL = YES;
198+
CLANG_ANALYZER_NUMBER_OBJECT_CONVERSION = YES_AGGRESSIVE;
199+
CLANG_CXX_LANGUAGE_STANDARD = "gnu++20";
200+
CLANG_ENABLE_MODULES = YES;
201+
CLANG_ENABLE_OBJC_ARC = YES;
202+
CLANG_ENABLE_OBJC_WEAK = YES;
203+
CLANG_WARN_BLOCK_CAPTURE_AUTORELEASING = YES;
204+
CLANG_WARN_BOOL_CONVERSION = YES;
205+
CLANG_WARN_COMMA = YES;
206+
CLANG_WARN_CONSTANT_CONVERSION = YES;
207+
CLANG_WARN_DEPRECATED_OBJC_IMPLEMENTATIONS = YES;
208+
CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR;
209+
CLANG_WARN_DOCUMENTATION_COMMENTS = YES;
210+
CLANG_WARN_EMPTY_BODY = YES;
211+
CLANG_WARN_ENUM_CONVERSION = YES;
212+
CLANG_WARN_INFINITE_RECURSION = YES;
213+
CLANG_WARN_INT_CONVERSION = YES;
214+
CLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES;
215+
CLANG_WARN_OBJC_IMPLICIT_RETAIN_SELF = YES;
216+
CLANG_WARN_OBJC_LITERAL_CONVERSION = YES;
217+
CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR;
218+
CLANG_WARN_QUOTED_INCLUDE_IN_FRAMEWORK_HEADER = YES;
219+
CLANG_WARN_RANGE_LOOP_ANALYSIS = YES;
220+
CLANG_WARN_STRICT_PROTOTYPES = YES;
221+
CLANG_WARN_SUSPICIOUS_MOVE = YES;
222+
CLANG_WARN_UNGUARDED_AVAILABILITY = YES_AGGRESSIVE;
223+
CLANG_WARN_UNREACHABLE_CODE = YES;
224+
CLANG_WARN__DUPLICATE_METHOD_MATCH = YES;
225+
COPY_PHASE_STRIP = NO;
226+
DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym";
227+
DEVELOPMENT_TEAM = NN56R38BZT;
228+
ENABLE_NS_ASSERTIONS = NO;
229+
ENABLE_STRICT_OBJC_MSGSEND = YES;
230+
ENABLE_USER_SCRIPT_SANDBOXING = YES;
231+
GCC_C_LANGUAGE_STANDARD = gnu17;
232+
GCC_NO_COMMON_BLOCKS = YES;
233+
GCC_WARN_64_TO_32_BIT_CONVERSION = YES;
234+
GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR;
235+
GCC_WARN_UNDECLARED_SELECTOR = YES;
236+
GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE;
237+
GCC_WARN_UNUSED_FUNCTION = YES;
238+
GCC_WARN_UNUSED_VARIABLE = YES;
239+
IPHONEOS_DEPLOYMENT_TARGET = 18.4;
240+
LOCALIZATION_PREFERS_STRING_CATALOGS = YES;
241+
MTL_ENABLE_DEBUG_INFO = NO;
242+
MTL_FAST_MATH = YES;
243+
SDKROOT = iphoneos;
244+
SWIFT_COMPILATION_MODE = wholemodule;
245+
VALIDATE_PRODUCT = YES;
246+
};
247+
name = Release;
248+
};
249+
E79FF2182DE1C35B00F03794 /* Debug */ = {
250+
isa = XCBuildConfiguration;
251+
buildSettings = {
252+
ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;
253+
ASSETCATALOG_COMPILER_GLOBAL_ACCENT_COLOR_NAME = AccentColor;
254+
CODE_SIGN_STYLE = Automatic;
255+
CURRENT_PROJECT_VERSION = 1;
256+
DEVELOPMENT_TEAM = NN56R38BZT;
257+
ENABLE_PREVIEWS = YES;
258+
GENERATE_INFOPLIST_FILE = YES;
259+
INFOPLIST_KEY_UIApplicationSceneManifest_Generation = YES;
260+
INFOPLIST_KEY_UIApplicationSupportsIndirectInputEvents = YES;
261+
INFOPLIST_KEY_UILaunchScreen_Generation = YES;
262+
INFOPLIST_KEY_UISupportedInterfaceOrientations_iPad = "UIInterfaceOrientationPortrait UIInterfaceOrientationPortraitUpsideDown UIInterfaceOrientationLandscapeLeft UIInterfaceOrientationLandscapeRight";
263+
INFOPLIST_KEY_UISupportedInterfaceOrientations_iPhone = "UIInterfaceOrientationPortrait UIInterfaceOrientationLandscapeLeft UIInterfaceOrientationLandscapeRight";
264+
LD_RUNPATH_SEARCH_PATHS = (
265+
"$(inherited)",
266+
"@executable_path/Frameworks",
267+
);
268+
MARKETING_VERSION = 1.0;
269+
PRODUCT_BUNDLE_IDENTIFIER = con.lurich.CalendarScrollEffect;
270+
PRODUCT_NAME = "$(TARGET_NAME)";
271+
SWIFT_EMIT_LOC_STRINGS = YES;
272+
SWIFT_VERSION = 5.0;
273+
TARGETED_DEVICE_FAMILY = "1,2";
274+
};
275+
name = Debug;
276+
};
277+
E79FF2192DE1C35B00F03794 /* Release */ = {
278+
isa = XCBuildConfiguration;
279+
buildSettings = {
280+
ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;
281+
ASSETCATALOG_COMPILER_GLOBAL_ACCENT_COLOR_NAME = AccentColor;
282+
CODE_SIGN_STYLE = Automatic;
283+
CURRENT_PROJECT_VERSION = 1;
284+
DEVELOPMENT_TEAM = NN56R38BZT;
285+
ENABLE_PREVIEWS = YES;
286+
GENERATE_INFOPLIST_FILE = YES;
287+
INFOPLIST_KEY_UIApplicationSceneManifest_Generation = YES;
288+
INFOPLIST_KEY_UIApplicationSupportsIndirectInputEvents = YES;
289+
INFOPLIST_KEY_UILaunchScreen_Generation = YES;
290+
INFOPLIST_KEY_UISupportedInterfaceOrientations_iPad = "UIInterfaceOrientationPortrait UIInterfaceOrientationPortraitUpsideDown UIInterfaceOrientationLandscapeLeft UIInterfaceOrientationLandscapeRight";
291+
INFOPLIST_KEY_UISupportedInterfaceOrientations_iPhone = "UIInterfaceOrientationPortrait UIInterfaceOrientationLandscapeLeft UIInterfaceOrientationLandscapeRight";
292+
LD_RUNPATH_SEARCH_PATHS = (
293+
"$(inherited)",
294+
"@executable_path/Frameworks",
295+
);
296+
MARKETING_VERSION = 1.0;
297+
PRODUCT_BUNDLE_IDENTIFIER = con.lurich.CalendarScrollEffect;
298+
PRODUCT_NAME = "$(TARGET_NAME)";
299+
SWIFT_EMIT_LOC_STRINGS = YES;
300+
SWIFT_VERSION = 5.0;
301+
TARGETED_DEVICE_FAMILY = "1,2";
302+
};
303+
name = Release;
304+
};
305+
/* End XCBuildConfiguration section */
306+
307+
/* Begin XCConfigurationList section */
308+
E79FF2072DE1C35A00F03794 /* Build configuration list for PBXProject "CalendarScrollEffect" */ = {
309+
isa = XCConfigurationList;
310+
buildConfigurations = (
311+
E79FF2152DE1C35B00F03794 /* Debug */,
312+
E79FF2162DE1C35B00F03794 /* Release */,
313+
);
314+
defaultConfigurationIsVisible = 0;
315+
defaultConfigurationName = Release;
316+
};
317+
E79FF2172DE1C35B00F03794 /* Build configuration list for PBXNativeTarget "CalendarScrollEffect" */ = {
318+
isa = XCConfigurationList;
319+
buildConfigurations = (
320+
E79FF2182DE1C35B00F03794 /* Debug */,
321+
E79FF2192DE1C35B00F03794 /* Release */,
322+
);
323+
defaultConfigurationIsVisible = 0;
324+
defaultConfigurationName = Release;
325+
};
326+
/* End XCConfigurationList section */
327+
};
328+
rootObject = E79FF2042DE1C35A00F03794 /* Project object */;
329+
}

SwiftUI_Demos/CalendarScrollEffect/CalendarScrollEffect.xcodeproj/project.xcworkspace/contents.xcworkspacedata

Lines changed: 7 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
{
2+
"colors" : [
3+
{
4+
"idiom" : "universal"
5+
}
6+
],
7+
"info" : {
8+
"author" : "xcode",
9+
"version" : 1
10+
}
11+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
{
2+
"images" : [
3+
{
4+
"idiom" : "universal",
5+
"platform" : "ios",
6+
"size" : "1024x1024"
7+
},
8+
{
9+
"appearances" : [
10+
{
11+
"appearance" : "luminosity",
12+
"value" : "dark"
13+
}
14+
],
15+
"idiom" : "universal",
16+
"platform" : "ios",
17+
"size" : "1024x1024"
18+
},
19+
{
20+
"appearances" : [
21+
{
22+
"appearance" : "luminosity",
23+
"value" : "tinted"
24+
}
25+
],
26+
"idiom" : "universal",
27+
"platform" : "ios",
28+
"size" : "1024x1024"
29+
}
30+
],
31+
"info" : {
32+
"author" : "xcode",
33+
"version" : 1
34+
}
35+
}

0 commit comments

Comments
 (0)