Skip to content

Commit 00b6cb3

Browse files
committed
docs: Update res.
1 parent 2ba3ae1 commit 00b6cb3

File tree

2 files changed

+36
-32
lines changed

2 files changed

+36
-32
lines changed

SVGAPlayer.xcodeproj/project.pbxproj

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@
1414
71418C93225E6F710029C69E /* mutiMatte.svga in Resources */ = {isa = PBXBuildFile; fileRef = 71418C92225E6F710029C69E /* mutiMatte.svga */; };
1515
71A8679122B7785100176CD6 /* matteRect.svga in Resources */ = {isa = PBXBuildFile; fileRef = 71A8679022B7785100176CD6 /* matteRect.svga */; };
1616
71A8679322B7853600176CD6 /* matteBitmap.svga in Resources */ = {isa = PBXBuildFile; fileRef = 71A8679222B7853600176CD6 /* matteBitmap.svga */; };
17+
71DAA8A52355B3ED006608A1 /* Goddess.svga in Resources */ = {isa = PBXBuildFile; fileRef = 71DAA8A42355B3ED006608A1 /* Goddess.svga */; };
1718
80D4C7254846B96B9C6EED83 /* libPods-SVGAPlayer.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 1DDA5FF396660C7C932DF9B8 /* libPods-SVGAPlayer.a */; };
1819
904D41F81D223DD20085A21A /* SVGABezierPath.m in Sources */ = {isa = PBXBuildFile; fileRef = 904D41F71D223DD20085A21A /* SVGABezierPath.m */; };
1920
9052FC631E6EB8D4007BC925 /* SVGAExporter.m in Sources */ = {isa = PBXBuildFile; fileRef = 9052FC621E6EB8D4007BC925 /* SVGAExporter.m */; };
@@ -69,6 +70,7 @@
6970
71418C92225E6F710029C69E /* mutiMatte.svga */ = {isa = PBXFileReference; lastKnownFileType = file; path = mutiMatte.svga; sourceTree = "<group>"; };
7071
71A8679022B7785100176CD6 /* matteRect.svga */ = {isa = PBXFileReference; lastKnownFileType = file; path = matteRect.svga; sourceTree = "<group>"; };
7172
71A8679222B7853600176CD6 /* matteBitmap.svga */ = {isa = PBXFileReference; lastKnownFileType = file; path = matteBitmap.svga; sourceTree = "<group>"; };
73+
71DAA8A42355B3ED006608A1 /* Goddess.svga */ = {isa = PBXFileReference; lastKnownFileType = file; path = Goddess.svga; sourceTree = "<group>"; };
7274
8AD65028FA2D122A34DC4A63 /* Pods-SVGAPlayer.debug.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-SVGAPlayer.debug.xcconfig"; path = "Pods/Target Support Files/Pods-SVGAPlayer/Pods-SVGAPlayer.debug.xcconfig"; sourceTree = "<group>"; };
7375
904D41F61D223DD20085A21A /* SVGABezierPath.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = SVGABezierPath.h; sourceTree = "<group>"; };
7476
904D41F71D223DD20085A21A /* SVGABezierPath.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = SVGABezierPath.m; sourceTree = "<group>"; };
@@ -245,6 +247,7 @@
245247
90D7C9FA1F7E2AA3006E74F0 /* Samples */ = {
246248
isa = PBXGroup;
247249
children = (
250+
71DAA8A42355B3ED006608A1 /* Goddess.svga */,
248251
71A8679022B7785100176CD6 /* matteRect.svga */,
249252
71A8679222B7853600176CD6 /* matteBitmap.svga */,
250253
71418C92225E6F710029C69E /* mutiMatte.svga */,
@@ -366,6 +369,7 @@
366369
71A8679322B7853600176CD6 /* matteBitmap.svga in Resources */,
367370
90D7CA1C1F7FB114006E74F0 /* rose_1.5.0.svga in Resources */,
368371
90D7CA1B1F7FB114006E74F0 /* rose_2.0.0.svga in Resources */,
372+
71DAA8A52355B3ED006608A1 /* Goddess.svga in Resources */,
369373
);
370374
runOnlyForDeploymentPostprocessing = 0;
371375
};

SVGAPlayer/ViewController.m

Lines changed: 32 additions & 32 deletions
Original file line numberDiff line numberDiff line change
@@ -37,38 +37,38 @@ - (void)touchesBegan:(NSSet<UITouch *> *)touches withEvent:(UIEvent *)event {
3737
}
3838

3939
- (IBAction)onChange:(id)sender {
40-
// NSArray *items = @[
41-
// @"https://github.com/yyued/SVGA-Samples/blob/master/EmptyState.svga?raw=true",
42-
// @"https://github.com/yyued/SVGA-Samples/blob/master/HamburgerArrow.svga?raw=true",
43-
// @"https://github.com/yyued/SVGA-Samples/blob/master/PinJump.svga?raw=true",
44-
// @"https://github.com/yyued/SVGA-Samples/blob/master/TwitterHeart.svga?raw=true",
45-
// @"https://github.com/yyued/SVGA-Samples/blob/master/Walkthrough.svga?raw=true",
46-
// @"https://github.com/yyued/SVGA-Samples/blob/master/angel.svga?raw=true",
47-
// @"https://github.com/yyued/SVGA-Samples/blob/master/halloween.svga?raw=true",
48-
// @"https://github.com/yyued/SVGA-Samples/blob/master/kingset.svga?raw=true",
49-
// @"https://github.com/yyued/SVGA-Samples/blob/master/posche.svga?raw=true",
50-
// @"https://github.com/yyued/SVGA-Samples/blob/master/rose.svga?raw=true",
51-
// @"https://github.com/yyued/SVGA-Samples/blob/master/matteBitmap.svga?raw=true",
52-
// @"https://github.com/yyued/SVGA-Samples/blob/master/matteBitmap_1.x.svga?raw=true",
53-
// @"https://github.com/yyued/SVGA-Samples/blob/master/matteRect.svga?raw=true",
54-
// @"https://github.com/yyued/SVGA-Samples/blob/master/mutiMatte.svga?raw=true",
55-
// ];
56-
// [UIApplication sharedApplication].networkActivityIndicatorVisible = YES;
57-
// [parser parseWithURL:[NSURL URLWithString:items[arc4random() % items.count]]
58-
// completionBlock:^(SVGAVideoEntity * _Nullable videoItem) {
59-
// [UIApplication sharedApplication].networkActivityIndicatorVisible = NO;
60-
// if (videoItem != nil) {
61-
// self.aPlayer.videoItem = videoItem;
62-
// [self.aPlayer startAnimation];
63-
// }
64-
// } failureBlock:nil];
65-
[parser parseWithURL:[NSURL URLWithString:@"https://github.com/svga/SVGA-Samples/raw/master_aep/BitmapColorArea1.svga"] completionBlock:^(SVGAVideoEntity * _Nullable videoItem) {
66-
if (videoItem != nil) {
67-
self.aPlayer.videoItem = videoItem;
68-
[self.aPlayer setImageWithURL:[NSURL URLWithString: @"https://i.imgur.com/vd4GuUh.png"] forKey:@"matte_EEKdlEml.matte"];
69-
[self.aPlayer startAnimation];
70-
}
71-
} failureBlock:nil];
40+
NSArray *items = @[
41+
@"https://github.com/yyued/SVGA-Samples/blob/master/EmptyState.svga?raw=true",
42+
@"https://github.com/yyued/SVGA-Samples/blob/master/HamburgerArrow.svga?raw=true",
43+
@"https://github.com/yyued/SVGA-Samples/blob/master/PinJump.svga?raw=true",
44+
@"https://github.com/yyued/SVGA-Samples/blob/master/TwitterHeart.svga?raw=true",
45+
@"https://github.com/yyued/SVGA-Samples/blob/master/Walkthrough.svga?raw=true",
46+
@"https://github.com/yyued/SVGA-Samples/blob/master/angel.svga?raw=true",
47+
@"https://github.com/yyued/SVGA-Samples/blob/master/halloween.svga?raw=true",
48+
@"https://github.com/yyued/SVGA-Samples/blob/master/kingset.svga?raw=true",
49+
@"https://github.com/yyued/SVGA-Samples/blob/master/posche.svga?raw=true",
50+
@"https://github.com/yyued/SVGA-Samples/blob/master/rose.svga?raw=true",
51+
@"https://github.com/yyued/SVGA-Samples/blob/master/rose.svga?raw=true",
52+
@"https://github.com/yyued/SVGA-Samples/blob/master/rose.svga?raw=true",
53+
54+
55+
];
56+
[UIApplication sharedApplication].networkActivityIndicatorVisible = YES;
57+
[parser parseWithURL:[NSURL URLWithString:items[arc4random() % items.count]]
58+
completionBlock:^(SVGAVideoEntity * _Nullable videoItem) {
59+
[UIApplication sharedApplication].networkActivityIndicatorVisible = NO;
60+
if (videoItem != nil) {
61+
self.aPlayer.videoItem = videoItem;
62+
[self.aPlayer startAnimation];
63+
}
64+
} failureBlock:nil];
65+
// [parser parseWithURL:[NSURL URLWithString:@"https://github.com/svga/SVGA-Samples/raw/master_aep/BitmapColorArea1.svga"] completionBlock:^(SVGAVideoEntity * _Nullable videoItem) {
66+
// if (videoItem != nil) {
67+
// self.aPlayer.videoItem = videoItem;
68+
// [self.aPlayer setImageWithURL:[NSURL URLWithString: @"https://i.imgur.com/vd4GuUh.png"] forKey:@"matte_EEKdlEml.matte"];
69+
// [self.aPlayer startAnimation];
70+
// }
71+
// } failureBlock:nil];
7272
}
7373

7474
- (IBAction)onSliderClick:(UISlider *)sender {

0 commit comments

Comments
 (0)