-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathInputAnimationView.swift
2106 lines (1936 loc) · 128 KB
/
InputAnimationView.swift
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
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
//
// InputAnimationView.swift
// Generated by Core Animator version 1.5 on 1/18/18.
//
// DO NOT MODIFY THIS FILE. IT IS AUTO-GENERATED AND WILL BE OVERWRITTEN
//
import UIKit
private class _InputAnimationPassthroughView: UIView {
override func point(inside point: CGPoint, with event: UIEvent?) -> Bool {
for subview in subviews as [UIView] {
if subview.point(inside: convert(point, to: subview), with: event) { return true }
}
return false
}
}
@IBDesignable
class InputAnimationView : UIView, CAAnimationDelegate {
var animationCompletions = Dictionary<CAAnimation, (Bool) -> Void>()
var viewsByName: [String : UIView]!
// - MARK: Life Cycle
convenience init() {
self.init(frame: CGRect(x: 0, y: 0, width: 2060, height: 1536))
}
override init(frame: CGRect) {
super.init(frame: frame)
self.setupHierarchy()
}
required init?(coder aDecoder: NSCoder) {
super.init(coder: aDecoder)
self.setupHierarchy()
}
// - MARK: Scaling
override func layoutSubviews() {
super.layoutSubviews()
if let scalingView = self.viewsByName["__scaling__"] {
var xScale = self.bounds.size.width / scalingView.bounds.size.width
var yScale = self.bounds.size.height / scalingView.bounds.size.height
switch contentMode {
case .scaleToFill:
break
case .scaleAspectFill:
let scale = max(xScale, yScale)
xScale = scale
yScale = scale
default:
let scale = min(xScale, yScale)
xScale = scale
yScale = scale
}
scalingView.transform = CGAffineTransform(scaleX: xScale, y: yScale)
scalingView.center = CGPoint(x:self.bounds.midX, y:self.bounds.midY)
}
}
// - MARK: Setup
func setupHierarchy() {
var viewsByName: [String : UIView] = [:]
let bundle = Bundle(for:type(of: self))
let __scaling__ = UIView()
__scaling__.bounds = CGRect(x:0, y:0, width:2060, height:1536)
__scaling__.center = CGPoint(x:1030.3, y:768.3)
__scaling__.clipsToBounds = true
self.addSubview(__scaling__)
viewsByName["__scaling__"] = __scaling__
let inputFrames20__root = _InputAnimationPassthroughView()
let inputFrames20__xScale = _InputAnimationPassthroughView()
let inputFrames20__yScale = _InputAnimationPassthroughView()
let inputFrames20 = UIImageView()
let imgInputFrames20 = UIImage(named:"Input_frames-20.png", in: bundle, compatibleWith: nil)
if imgInputFrames20 == nil {
print("** Warning: Could not create image from 'Input_frames-20.png'")
}
inputFrames20.image = imgInputFrames20
inputFrames20.contentMode = .center
inputFrames20.bounds = CGRect(x:0, y:0, width:2062.0, height:1536.0)
inputFrames20__root.layer.position = CGPoint(x:1031.000, y:768.000)
inputFrames20__xScale.transform = CGAffineTransform(scaleX: 1.00, y: 1.00)
inputFrames20__yScale.transform = CGAffineTransform(scaleX: 1.00, y: 1.00)
inputFrames20__root.transform = CGAffineTransform(rotationAngle: 0.000)
inputFrames20__root.addSubview(inputFrames20__xScale)
inputFrames20__xScale.addSubview(inputFrames20__yScale)
inputFrames20__yScale.addSubview(inputFrames20)
__scaling__.addSubview(inputFrames20__root)
viewsByName["Input_frames-20__root"] = inputFrames20__root
viewsByName["Input_frames-20__xScale"] = inputFrames20__xScale
viewsByName["Input_frames-20__yScale"] = inputFrames20__yScale
viewsByName["Input_frames-20"] = inputFrames20
let icon02Menu01__root = _InputAnimationPassthroughView()
let icon02Menu01__xScale = _InputAnimationPassthroughView()
let icon02Menu01__yScale = _InputAnimationPassthroughView()
let icon02Menu01 = UIImageView()
let imgIcon02Menu01 = UIImage(named:"icon_02_menu-01.png", in: bundle, compatibleWith: nil)
if imgIcon02Menu01 == nil {
print("** Warning: Could not create image from 'icon_02_menu-01.png'")
}
icon02Menu01.image = imgIcon02Menu01
icon02Menu01.contentMode = .center
icon02Menu01.bounds = CGRect(x:0, y:0, width:2917.0, height:2917.0)
icon02Menu01__root.layer.position = CGPoint(x:341.944, y:1208.568)
icon02Menu01__xScale.transform = CGAffineTransform(scaleX: 0.24, y: 1.00)
icon02Menu01__yScale.transform = CGAffineTransform(scaleX: 1.00, y: 0.24)
icon02Menu01__root.transform = CGAffineTransform(rotationAngle: 0.000)
icon02Menu01__root.addSubview(icon02Menu01__xScale)
icon02Menu01__xScale.addSubview(icon02Menu01__yScale)
icon02Menu01__yScale.addSubview(icon02Menu01)
__scaling__.addSubview(icon02Menu01__root)
viewsByName["icon_02_menu-01__root"] = icon02Menu01__root
viewsByName["icon_02_menu-01__xScale"] = icon02Menu01__xScale
viewsByName["icon_02_menu-01__yScale"] = icon02Menu01__yScale
viewsByName["icon_02_menu-01"] = icon02Menu01
let menuIcons01__root = _InputAnimationPassthroughView()
let menuIcons01__xScale = _InputAnimationPassthroughView()
let menuIcons01__yScale = _InputAnimationPassthroughView()
let menuIcons01 = UIImageView()
let imgMenuIcons01 = UIImage(named:"menu_icons-01.png", in: bundle, compatibleWith: nil)
if imgMenuIcons01 == nil {
print("** Warning: Could not create image from 'menu_icons-01.png'")
}
menuIcons01.image = imgMenuIcons01
menuIcons01.contentMode = .center
menuIcons01.bounds = CGRect(x:0, y:0, width:642.0, height:642.0)
menuIcons01__root.layer.position = CGPoint(x:148.611, y:992.223)
menuIcons01__xScale.transform = CGAffineTransform(scaleX: 0.24, y: 1.00)
menuIcons01__yScale.transform = CGAffineTransform(scaleX: 1.00, y: 0.24)
menuIcons01__root.transform = CGAffineTransform(rotationAngle: 0.000)
menuIcons01__root.addSubview(menuIcons01__xScale)
menuIcons01__xScale.addSubview(menuIcons01__yScale)
menuIcons01__yScale.addSubview(menuIcons01)
__scaling__.addSubview(menuIcons01__root)
viewsByName["menu_icons-01__root"] = menuIcons01__root
viewsByName["menu_icons-01__xScale"] = menuIcons01__xScale
viewsByName["menu_icons-01__yScale"] = menuIcons01__yScale
viewsByName["menu_icons-01"] = menuIcons01
let menuIcons02__root = _InputAnimationPassthroughView()
let menuIcons02__xScale = _InputAnimationPassthroughView()
let menuIcons02__yScale = _InputAnimationPassthroughView()
let menuIcons02 = UIImageView()
let imgMenuIcons02 = UIImage(named:"menu_icons-02.png", in: bundle, compatibleWith: nil)
if imgMenuIcons02 == nil {
print("** Warning: Could not create image from 'menu_icons-02.png'")
}
menuIcons02.image = imgMenuIcons02
menuIcons02.contentMode = .center
menuIcons02.bounds = CGRect(x:0, y:0, width:642.0, height:642.0)
menuIcons02__root.layer.position = CGPoint(x:337.290, y:1072.911)
menuIcons02__xScale.transform = CGAffineTransform(scaleX: 0.24, y: 1.00)
menuIcons02__yScale.transform = CGAffineTransform(scaleX: 1.00, y: 0.24)
menuIcons02__root.transform = CGAffineTransform(rotationAngle: 0.000)
menuIcons02__root.addSubview(menuIcons02__xScale)
menuIcons02__xScale.addSubview(menuIcons02__yScale)
menuIcons02__yScale.addSubview(menuIcons02)
__scaling__.addSubview(menuIcons02__root)
viewsByName["menu_icons-02__root"] = menuIcons02__root
viewsByName["menu_icons-02__xScale"] = menuIcons02__xScale
viewsByName["menu_icons-02__yScale"] = menuIcons02__yScale
viewsByName["menu_icons-02"] = menuIcons02
let menuIcons03__root = _InputAnimationPassthroughView()
let menuIcons03__xScale = _InputAnimationPassthroughView()
let menuIcons03__yScale = _InputAnimationPassthroughView()
let menuIcons03 = UIImageView()
let imgMenuIcons03 = UIImage(named:"menu_icons-03.png", in: bundle, compatibleWith: nil)
if imgMenuIcons03 == nil {
print("** Warning: Could not create image from 'menu_icons-03.png'")
}
menuIcons03.image = imgMenuIcons03
menuIcons03.contentMode = .center
menuIcons03.bounds = CGRect(x:0, y:0, width:642.0, height:642.0)
menuIcons03__root.layer.position = CGPoint(x:481.552, y:1217.840)
menuIcons03__xScale.transform = CGAffineTransform(scaleX: 0.24, y: 1.00)
menuIcons03__yScale.transform = CGAffineTransform(scaleX: 1.00, y: 0.24)
menuIcons03__root.transform = CGAffineTransform(rotationAngle: 0.000)
menuIcons03__root.addSubview(menuIcons03__xScale)
menuIcons03__xScale.addSubview(menuIcons03__yScale)
menuIcons03__yScale.addSubview(menuIcons03)
__scaling__.addSubview(menuIcons03__root)
viewsByName["menu_icons-03__root"] = menuIcons03__root
viewsByName["menu_icons-03__xScale"] = menuIcons03__xScale
viewsByName["menu_icons-03__yScale"] = menuIcons03__yScale
viewsByName["menu_icons-03"] = menuIcons03
let menuIcons04__root = _InputAnimationPassthroughView()
let menuIcons04__xScale = _InputAnimationPassthroughView()
let menuIcons04__yScale = _InputAnimationPassthroughView()
let menuIcons04 = UIImageView()
let imgMenuIcons04 = UIImage(named:"menu_icons-04.png", in: bundle, compatibleWith: nil)
if imgMenuIcons04 == nil {
print("** Warning: Could not create image from 'menu_icons-04.png'")
}
menuIcons04.image = imgMenuIcons04
menuIcons04.contentMode = .center
menuIcons04.bounds = CGRect(x:0, y:0, width:642.0, height:642.0)
menuIcons04__root.layer.position = CGPoint(x:557.951, y:1407.164)
menuIcons04__xScale.transform = CGAffineTransform(scaleX: 0.24, y: 1.00)
menuIcons04__yScale.transform = CGAffineTransform(scaleX: 1.00, y: 0.24)
menuIcons04__root.transform = CGAffineTransform(rotationAngle: 0.000)
menuIcons04__root.addSubview(menuIcons04__xScale)
menuIcons04__xScale.addSubview(menuIcons04__yScale)
menuIcons04__yScale.addSubview(menuIcons04)
__scaling__.addSubview(menuIcons04__root)
viewsByName["menu_icons-04__root"] = menuIcons04__root
viewsByName["menu_icons-04__xScale"] = menuIcons04__xScale
viewsByName["menu_icons-04__yScale"] = menuIcons04__yScale
viewsByName["menu_icons-04"] = menuIcons04
let circ__root = _InputAnimationPassthroughView()
let circ__xScale = _InputAnimationPassthroughView()
let circ__yScale = _InputAnimationPassthroughView()
let circ = UIImageView()
let imgCirc = UIImage(named:"circ.png", in: bundle, compatibleWith: nil)
if imgCirc == nil {
print("** Warning: Could not create image from 'circ.png'")
}
circ.image = imgCirc
circ.contentMode = .center
circ.bounds = CGRect(x:0, y:0, width:199.0, height:199.0)
circ__root.layer.position = CGPoint(x:482.239, y:1218.521)
circ__xScale.transform = CGAffineTransform(scaleX: 1.00, y: 1.00)
circ__yScale.transform = CGAffineTransform(scaleX: 1.00, y: 1.00)
circ__root.transform = CGAffineTransform(rotationAngle: 0.000)
circ__root.addSubview(circ__xScale)
circ__xScale.addSubview(circ__yScale)
circ__yScale.addSubview(circ)
__scaling__.addSubview(circ__root)
viewsByName["circ__root"] = circ__root
viewsByName["circ__xScale"] = circ__xScale
viewsByName["circ__yScale"] = circ__yScale
viewsByName["circ"] = circ
let circMask__root = _InputAnimationPassthroughView()
let circMask__xScale = _InputAnimationPassthroughView()
let circMask__yScale = _InputAnimationPassthroughView()
let circMask = UIImageView()
let imgSquare = UIImage(named:"square.png", in: bundle, compatibleWith: nil)
if imgSquare == nil {
print("** Warning: Could not create image from 'square.png'")
}
circMask.image = imgSquare
circMask.contentMode = .center
circMask.layer.anchorPoint = CGPoint(x:0.493, y:0.495)
circMask.bounds = CGRect(x:0, y:0, width:185.0, height:184.5)
circMask__root.layer.position = CGPoint(x:-11.798, y:171.309)
circMask__xScale.transform = CGAffineTransform(scaleX: 0.31, y: 1.00)
circMask__yScale.transform = CGAffineTransform(scaleX: 1.00, y: 1.40)
circMask__root.transform = CGAffineTransform(rotationAngle: 5.821)
circMask__root.addSubview(circMask__xScale)
circMask__xScale.addSubview(circMask__yScale)
circMask__yScale.addSubview(circMask)
circ.mask = circMask__root
viewsByName["circ_mask__root"] = circMask__root
viewsByName["circ_mask__xScale"] = circMask__xScale
viewsByName["circ_mask__yScale"] = circMask__yScale
viewsByName["circ_mask"] = circMask
let frame__root = _InputAnimationPassthroughView()
let frame__xScale = _InputAnimationPassthroughView()
let frame__yScale = _InputAnimationPassthroughView()
let frame = UIImageView()
let imgFrame = UIImage(named:"frame.png", in: bundle, compatibleWith: nil)
if imgFrame == nil {
print("** Warning: Could not create image from 'frame.png'")
}
frame.image = imgFrame
frame.contentMode = .center
frame.bounds = CGRect(x:0, y:0, width:294.0, height:262.0)
frame__root.layer.position = CGPoint(x:376.958, y:1274.709)
frame__xScale.transform = CGAffineTransform(scaleX: 1.00, y: 1.00)
frame__yScale.transform = CGAffineTransform(scaleX: 1.00, y: 1.00)
frame__root.transform = CGAffineTransform(rotationAngle: 0.000)
frame__root.addSubview(frame__xScale)
frame__xScale.addSubview(frame__yScale)
frame__yScale.addSubview(frame)
__scaling__.addSubview(frame__root)
viewsByName["frame__root"] = frame__root
viewsByName["frame__xScale"] = frame__xScale
viewsByName["frame__yScale"] = frame__yScale
viewsByName["frame"] = frame
let frameMask__root = _InputAnimationPassthroughView()
let frameMask__xScale = _InputAnimationPassthroughView()
let frameMask__yScale = _InputAnimationPassthroughView()
let frameMask = UIImageView()
frameMask.image = imgSquare
frameMask.contentMode = .center
frameMask.bounds = CGRect(x:0, y:0, width:185.0, height:184.5)
frameMask__root.layer.position = CGPoint(x:-1.089, y:236.517)
frameMask__xScale.transform = CGAffineTransform(scaleX: 0.13, y: 1.00)
frameMask__yScale.transform = CGAffineTransform(scaleX: 1.00, y: 1.42)
frameMask__root.transform = CGAffineTransform(rotationAngle: 5.454)
frameMask__root.addSubview(frameMask__xScale)
frameMask__xScale.addSubview(frameMask__yScale)
frameMask__yScale.addSubview(frameMask)
frame.mask = frameMask__root
viewsByName["frame_mask__root"] = frameMask__root
viewsByName["frame_mask__xScale"] = frameMask__xScale
viewsByName["frame_mask__yScale"] = frameMask__yScale
viewsByName["frame_mask"] = frameMask
let lines__root = _InputAnimationPassthroughView()
let lines__xScale = _InputAnimationPassthroughView()
let lines__yScale = _InputAnimationPassthroughView()
let lines = UIImageView()
let imgLines = UIImage(named:"lines.png", in: bundle, compatibleWith: nil)
if imgLines == nil {
print("** Warning: Could not create image from 'lines.png'")
}
lines.image = imgLines
lines.contentMode = .center
lines.bounds = CGRect(x:0, y:0, width:1039.0, height:997.0)
lines__root.layer.position = CGPoint(x:979.341, y:771.256)
lines__xScale.transform = CGAffineTransform(scaleX: 1.00, y: 1.00)
lines__yScale.transform = CGAffineTransform(scaleX: 1.00, y: 1.00)
lines__root.transform = CGAffineTransform(rotationAngle: 0.000)
lines__root.addSubview(lines__xScale)
lines__xScale.addSubview(lines__yScale)
lines__yScale.addSubview(lines)
__scaling__.addSubview(lines__root)
viewsByName["lines__root"] = lines__root
viewsByName["lines__xScale"] = lines__xScale
viewsByName["lines__yScale"] = lines__yScale
viewsByName["lines"] = lines
let linesMask__root = _InputAnimationPassthroughView()
let linesMask__xScale = _InputAnimationPassthroughView()
let linesMask__yScale = _InputAnimationPassthroughView()
let linesMask = UIImageView()
linesMask.image = imgSquare
linesMask.contentMode = .center
linesMask.bounds = CGRect(x:0, y:0, width:185.0, height:184.5)
linesMask__root.layer.position = CGPoint(x:127.063, y:930.431)
linesMask__xScale.transform = CGAffineTransform(scaleX: 0.19, y: 1.00)
linesMask__yScale.transform = CGAffineTransform(scaleX: 1.00, y: 0.58)
linesMask__root.transform = CGAffineTransform(rotationAngle: 5.713)
linesMask__root.addSubview(linesMask__xScale)
linesMask__xScale.addSubview(linesMask__yScale)
linesMask__yScale.addSubview(linesMask)
lines.mask = linesMask__root
viewsByName["lines_mask__root"] = linesMask__root
viewsByName["lines_mask__xScale"] = linesMask__xScale
viewsByName["lines_mask__yScale"] = linesMask__yScale
viewsByName["lines_mask"] = linesMask
let lines22__root = _InputAnimationPassthroughView()
let lines22__xScale = _InputAnimationPassthroughView()
let lines22__yScale = _InputAnimationPassthroughView()
let lines22 = UIImageView()
lines22.image = imgLines
lines22.contentMode = .center
lines22.bounds = CGRect(x:0, y:0, width:1039.0, height:997.0)
lines22__root.layer.position = CGPoint(x:979.341, y:772.256)
lines22__xScale.transform = CGAffineTransform(scaleX: 1.00, y: 1.00)
lines22__yScale.transform = CGAffineTransform(scaleX: 1.00, y: 1.00)
lines22__root.transform = CGAffineTransform(rotationAngle: 0.000)
lines22__root.addSubview(lines22__xScale)
lines22__xScale.addSubview(lines22__yScale)
lines22__yScale.addSubview(lines22)
__scaling__.addSubview(lines22__root)
viewsByName["lines 2__root"] = lines22__root
viewsByName["lines 2__xScale"] = lines22__xScale
viewsByName["lines 2__yScale"] = lines22__yScale
viewsByName["lines 2"] = lines22
let lines2Mask2__root = _InputAnimationPassthroughView()
let lines2Mask2__xScale = _InputAnimationPassthroughView()
let lines2Mask2__yScale = _InputAnimationPassthroughView()
let lines2Mask2 = UIImageView()
lines2Mask2.image = imgSquare
lines2Mask2.contentMode = .center
lines2Mask2.bounds = CGRect(x:0, y:0, width:185.0, height:184.5)
lines2Mask2__root.layer.position = CGPoint(x:374.775, y:542.272)
lines2Mask2__xScale.transform = CGAffineTransform(scaleX: 0.25, y: 1.00)
lines2Mask2__yScale.transform = CGAffineTransform(scaleX: 1.00, y: 0.00)
lines2Mask2__root.transform = CGAffineTransform(rotationAngle: 5.630)
lines2Mask2__root.addSubview(lines2Mask2__xScale)
lines2Mask2__xScale.addSubview(lines2Mask2__yScale)
lines2Mask2__yScale.addSubview(lines2Mask2)
lines22.mask = lines2Mask2__root
viewsByName["lines 2_mask__root"] = lines2Mask2__root
viewsByName["lines 2_mask__xScale"] = lines2Mask2__xScale
viewsByName["lines 2_mask__yScale"] = lines2Mask2__yScale
viewsByName["lines 2_mask"] = lines2Mask2
let lines3__root = _InputAnimationPassthroughView()
let lines3__xScale = _InputAnimationPassthroughView()
let lines3__yScale = _InputAnimationPassthroughView()
let lines3 = UIImageView()
lines3.image = imgLines
lines3.contentMode = .center
lines3.bounds = CGRect(x:0, y:0, width:1039.0, height:997.0)
lines3__root.layer.position = CGPoint(x:979.669, y:771.256)
lines3__xScale.transform = CGAffineTransform(scaleX: 1.00, y: 1.00)
lines3__yScale.transform = CGAffineTransform(scaleX: 1.00, y: 1.00)
lines3__root.transform = CGAffineTransform(rotationAngle: 0.000)
lines3__root.addSubview(lines3__xScale)
lines3__xScale.addSubview(lines3__yScale)
lines3__yScale.addSubview(lines3)
__scaling__.addSubview(lines3__root)
viewsByName["lines 3__root"] = lines3__root
viewsByName["lines 3__xScale"] = lines3__xScale
viewsByName["lines 3__yScale"] = lines3__yScale
viewsByName["lines 3"] = lines3
let lines3Mask__root = _InputAnimationPassthroughView()
let lines3Mask__xScale = _InputAnimationPassthroughView()
let lines3Mask__yScale = _InputAnimationPassthroughView()
let lines3Mask = UIImageView()
lines3Mask.image = imgSquare
lines3Mask.contentMode = .center
lines3Mask.bounds = CGRect(x:0, y:0, width:185.0, height:184.5)
lines3Mask__root.layer.position = CGPoint(x:373.470, y:552.042)
lines3Mask__xScale.transform = CGAffineTransform(scaleX: 0.18, y: 1.00)
lines3Mask__yScale.transform = CGAffineTransform(scaleX: 1.00, y: -0.00)
lines3Mask__root.transform = CGAffineTransform(rotationAngle: 5.633)
lines3Mask__root.addSubview(lines3Mask__xScale)
lines3Mask__xScale.addSubview(lines3Mask__yScale)
lines3Mask__yScale.addSubview(lines3Mask)
lines3.mask = lines3Mask__root
viewsByName["lines 3_mask__root"] = lines3Mask__root
viewsByName["lines 3_mask__xScale"] = lines3Mask__xScale
viewsByName["lines 3_mask__yScale"] = lines3Mask__yScale
viewsByName["lines 3_mask"] = lines3Mask
let lines1__root = _InputAnimationPassthroughView()
let lines1__xScale = _InputAnimationPassthroughView()
let lines1__yScale = _InputAnimationPassthroughView()
let lines1 = UIImageView()
let imgLines1 = UIImage(named:"lines_1.png", in: bundle, compatibleWith: nil)
if imgLines1 == nil {
print("** Warning: Could not create image from 'lines_1.png'")
}
lines1.image = imgLines1
lines1.contentMode = .center
lines1.bounds = CGRect(x:0, y:0, width:1039.0, height:997.0)
lines1__root.layer.position = CGPoint(x:978.341, y:773.256)
lines1__xScale.transform = CGAffineTransform(scaleX: 1.00, y: 1.00)
lines1__yScale.transform = CGAffineTransform(scaleX: 1.00, y: 1.00)
lines1__root.transform = CGAffineTransform(rotationAngle: 0.000)
lines1__root.addSubview(lines1__xScale)
lines1__xScale.addSubview(lines1__yScale)
lines1__yScale.addSubview(lines1)
__scaling__.addSubview(lines1__root)
viewsByName["lines_1__root"] = lines1__root
viewsByName["lines_1__xScale"] = lines1__xScale
viewsByName["lines_1__yScale"] = lines1__yScale
viewsByName["lines_1"] = lines1
let lines1Mask__root = _InputAnimationPassthroughView()
let lines1Mask__xScale = _InputAnimationPassthroughView()
let lines1Mask__yScale = _InputAnimationPassthroughView()
let lines1Mask = UIImageView()
lines1Mask.image = imgSquare
lines1Mask.contentMode = .center
lines1Mask.bounds = CGRect(x:0, y:0, width:185.0, height:184.5)
lines1Mask__root.layer.position = CGPoint(x:634.358, y:226.538)
lines1Mask__xScale.transform = CGAffineTransform(scaleX: 0.86, y: 1.00)
lines1Mask__yScale.transform = CGAffineTransform(scaleX: 1.00, y: 0.11)
lines1Mask__root.transform = CGAffineTransform(rotationAngle: 5.711)
lines1Mask__root.addSubview(lines1Mask__xScale)
lines1Mask__xScale.addSubview(lines1Mask__yScale)
lines1Mask__yScale.addSubview(lines1Mask)
lines1.mask = lines1Mask__root
viewsByName["lines_1_mask__root"] = lines1Mask__root
viewsByName["lines_1_mask__xScale"] = lines1Mask__xScale
viewsByName["lines_1_mask__yScale"] = lines1Mask__yScale
viewsByName["lines_1_mask"] = lines1Mask
let lines2__root = _InputAnimationPassthroughView()
let lines2__xScale = _InputAnimationPassthroughView()
let lines2__yScale = _InputAnimationPassthroughView()
let lines2 = UIImageView()
let imgLines2 = UIImage(named:"lines_2.png", in: bundle, compatibleWith: nil)
if imgLines2 == nil {
print("** Warning: Could not create image from 'lines_2.png'")
}
lines2.image = imgLines2
lines2.contentMode = .center
lines2.bounds = CGRect(x:0, y:0, width:1039.0, height:997.0)
lines2__root.layer.position = CGPoint(x:979.580, y:771.256)
lines2__xScale.transform = CGAffineTransform(scaleX: 1.00, y: 1.00)
lines2__yScale.transform = CGAffineTransform(scaleX: 1.00, y: 1.00)
lines2__root.transform = CGAffineTransform(rotationAngle: 0.000)
lines2__root.addSubview(lines2__xScale)
lines2__xScale.addSubview(lines2__yScale)
lines2__yScale.addSubview(lines2)
__scaling__.addSubview(lines2__root)
viewsByName["lines_2__root"] = lines2__root
viewsByName["lines_2__xScale"] = lines2__xScale
viewsByName["lines_2__yScale"] = lines2__yScale
viewsByName["lines_2"] = lines2
let lines2Mask__root = _InputAnimationPassthroughView()
let lines2Mask__xScale = _InputAnimationPassthroughView()
let lines2Mask__yScale = _InputAnimationPassthroughView()
let lines2Mask = UIImageView()
lines2Mask.image = imgSquare
lines2Mask.contentMode = .center
lines2Mask.bounds = CGRect(x:0, y:0, width:185.0, height:184.5)
lines2Mask__root.layer.position = CGPoint(x:754.413, y:390.704)
lines2Mask__xScale.transform = CGAffineTransform(scaleX: 0.92, y: 1.00)
lines2Mask__yScale.transform = CGAffineTransform(scaleX: 1.00, y: 0.14)
lines2Mask__root.transform = CGAffineTransform(rotationAngle: 5.839)
lines2Mask__root.addSubview(lines2Mask__xScale)
lines2Mask__xScale.addSubview(lines2Mask__yScale)
lines2Mask__yScale.addSubview(lines2Mask)
lines2.mask = lines2Mask__root
viewsByName["lines_2_mask__root"] = lines2Mask__root
viewsByName["lines_2_mask__xScale"] = lines2Mask__xScale
viewsByName["lines_2_mask__yScale"] = lines2Mask__yScale
viewsByName["lines_2_mask"] = lines2Mask
let input1__root = _InputAnimationPassthroughView()
let input1__xScale = _InputAnimationPassthroughView()
let input1__yScale = _InputAnimationPassthroughView()
let input1 = UIImageView()
let imgInput1 = UIImage(named:"Input_1.png", in: bundle, compatibleWith: nil)
if imgInput1 == nil {
print("** Warning: Could not create image from 'Input_1.png'")
}
input1.image = imgInput1
input1.contentMode = .center
input1.bounds = CGRect(x:0, y:0, width:227.0, height:227.0)
input1__root.layer.position = CGPoint(x:346.650, y:494.523)
input1__root.alpha = 0.00
input1__xScale.transform = CGAffineTransform(scaleX: 1.00, y: 1.00)
input1__yScale.transform = CGAffineTransform(scaleX: 1.00, y: 1.00)
input1__root.transform = CGAffineTransform(rotationAngle: 0.000)
input1__root.addSubview(input1__xScale)
input1__xScale.addSubview(input1__yScale)
input1__yScale.addSubview(input1)
__scaling__.addSubview(input1__root)
viewsByName["Input_1__root"] = input1__root
viewsByName["Input_1__xScale"] = input1__xScale
viewsByName["Input_1__yScale"] = input1__yScale
viewsByName["Input_1"] = input1
let input2__root = _InputAnimationPassthroughView()
let input2__xScale = _InputAnimationPassthroughView()
let input2__yScale = _InputAnimationPassthroughView()
let input2 = UIImageView()
let imgInput2 = UIImage(named:"Input_2.png", in: bundle, compatibleWith: nil)
if imgInput2 == nil {
print("** Warning: Could not create image from 'Input_2.png'")
}
input2.image = imgInput2
input2.contentMode = .center
input2.bounds = CGRect(x:0, y:0, width:227.0, height:227.0)
input2__root.layer.position = CGPoint(x:743.653, y:260.779)
input2__root.alpha = 0.00
input2__xScale.transform = CGAffineTransform(scaleX: 1.00, y: 1.00)
input2__yScale.transform = CGAffineTransform(scaleX: 1.00, y: 1.00)
input2__root.transform = CGAffineTransform(rotationAngle: 0.000)
input2__root.addSubview(input2__xScale)
input2__xScale.addSubview(input2__yScale)
input2__yScale.addSubview(input2)
__scaling__.addSubview(input2__root)
viewsByName["Input_2__root"] = input2__root
viewsByName["Input_2__xScale"] = input2__xScale
viewsByName["Input_2__yScale"] = input2__yScale
viewsByName["Input_2"] = input2
let input3__root = _InputAnimationPassthroughView()
let input3__xScale = _InputAnimationPassthroughView()
let input3__yScale = _InputAnimationPassthroughView()
let input3 = UIImageView()
let imgInput3 = UIImage(named:"Input_3.png", in: bundle, compatibleWith: nil)
if imgInput3 == nil {
print("** Warning: Could not create image from 'Input_3.png'")
}
input3.image = imgInput3
input3.contentMode = .center
input3.bounds = CGRect(x:0, y:0, width:227.0, height:227.0)
input3__root.layer.position = CGPoint(x:711.939, y:695.995)
input3__root.alpha = 0.00
input3__xScale.transform = CGAffineTransform(scaleX: 1.00, y: 1.00)
input3__yScale.transform = CGAffineTransform(scaleX: 1.00, y: 1.00)
input3__root.transform = CGAffineTransform(rotationAngle: 0.000)
input3__root.addSubview(input3__xScale)
input3__xScale.addSubview(input3__yScale)
input3__yScale.addSubview(input3)
__scaling__.addSubview(input3__root)
viewsByName["Input_3__root"] = input3__root
viewsByName["Input_3__xScale"] = input3__xScale
viewsByName["Input_3__yScale"] = input3__yScale
viewsByName["Input_3"] = input3
let input4__root = _InputAnimationPassthroughView()
let input4__xScale = _InputAnimationPassthroughView()
let input4__yScale = _InputAnimationPassthroughView()
let input4 = UIImageView()
let imgInput4 = UIImage(named:"Input_4.png", in: bundle, compatibleWith: nil)
if imgInput4 == nil {
print("** Warning: Could not create image from 'Input_4.png'")
}
input4.image = imgInput4
input4.contentMode = .center
input4.bounds = CGRect(x:0, y:0, width:227.0, height:227.0)
input4__root.layer.position = CGPoint(x:1156.841, y:199.982)
input4__root.alpha = 0.00
input4__xScale.transform = CGAffineTransform(scaleX: 1.00, y: 1.00)
input4__yScale.transform = CGAffineTransform(scaleX: 1.00, y: 1.00)
input4__root.transform = CGAffineTransform(rotationAngle: 0.000)
input4__root.addSubview(input4__xScale)
input4__xScale.addSubview(input4__yScale)
input4__yScale.addSubview(input4)
__scaling__.addSubview(input4__root)
viewsByName["Input_4__root"] = input4__root
viewsByName["Input_4__xScale"] = input4__xScale
viewsByName["Input_4__yScale"] = input4__yScale
viewsByName["Input_4"] = input4
let input5__root = _InputAnimationPassthroughView()
let input5__xScale = _InputAnimationPassthroughView()
let input5__yScale = _InputAnimationPassthroughView()
let input5 = UIImageView()
let imgInput5 = UIImage(named:"Input_5.png", in: bundle, compatibleWith: nil)
if imgInput5 == nil {
print("** Warning: Could not create image from 'Input_5.png'")
}
input5.image = imgInput5
input5.contentMode = .center
input5.bounds = CGRect(x:0, y:0, width:227.0, height:227.0)
input5__root.layer.position = CGPoint(x:1143.841, y:587.804)
input5__root.alpha = 0.00
input5__xScale.transform = CGAffineTransform(scaleX: 1.00, y: 1.00)
input5__yScale.transform = CGAffineTransform(scaleX: 1.00, y: 1.00)
input5__root.transform = CGAffineTransform(rotationAngle: 0.000)
input5__root.addSubview(input5__xScale)
input5__xScale.addSubview(input5__yScale)
input5__yScale.addSubview(input5)
__scaling__.addSubview(input5__root)
viewsByName["Input_5__root"] = input5__root
viewsByName["Input_5__xScale"] = input5__xScale
viewsByName["Input_5__yScale"] = input5__yScale
viewsByName["Input_5"] = input5
let input6__root = _InputAnimationPassthroughView()
let input6__xScale = _InputAnimationPassthroughView()
let input6__yScale = _InputAnimationPassthroughView()
let input6 = UIImageView()
let imgInput6 = UIImage(named:"Input_6.png", in: bundle, compatibleWith: nil)
if imgInput6 == nil {
print("** Warning: Could not create image from 'Input_6.png'")
}
input6.image = imgInput6
input6.contentMode = .center
input6.bounds = CGRect(x:0, y:0, width:226.0, height:227.0)
input6__root.layer.position = CGPoint(x:1422.225, y:1097.693)
input6__root.alpha = 0.00
input6__xScale.transform = CGAffineTransform(scaleX: 1.00, y: 1.00)
input6__yScale.transform = CGAffineTransform(scaleX: 1.00, y: 1.00)
input6__root.transform = CGAffineTransform(rotationAngle: 0.000)
input6__root.addSubview(input6__xScale)
input6__xScale.addSubview(input6__yScale)
input6__yScale.addSubview(input6)
__scaling__.addSubview(input6__root)
viewsByName["Input_6__root"] = input6__root
viewsByName["Input_6__xScale"] = input6__xScale
viewsByName["Input_6__yScale"] = input6__yScale
viewsByName["Input_6"] = input6
let input7__root = _InputAnimationPassthroughView()
let input7__xScale = _InputAnimationPassthroughView()
let input7__yScale = _InputAnimationPassthroughView()
let input7 = UIImageView()
let imgInput7 = UIImage(named:"Input_7.png", in: bundle, compatibleWith: nil)
if imgInput7 == nil {
print("** Warning: Could not create image from 'Input_7.png'")
}
input7.image = imgInput7
input7.contentMode = .center
input7.bounds = CGRect(x:0, y:0, width:227.0, height:226.0)
input7__root.layer.position = CGPoint(x:1590.817, y:254.932)
input7__root.alpha = 0.00
input7__xScale.transform = CGAffineTransform(scaleX: 1.00, y: 1.00)
input7__yScale.transform = CGAffineTransform(scaleX: 1.00, y: 1.00)
input7__root.transform = CGAffineTransform(rotationAngle: 0.000)
input7__root.addSubview(input7__xScale)
input7__xScale.addSubview(input7__yScale)
input7__yScale.addSubview(input7)
__scaling__.addSubview(input7__root)
viewsByName["Input_7__root"] = input7__root
viewsByName["Input_7__xScale"] = input7__xScale
viewsByName["Input_7__yScale"] = input7__yScale
viewsByName["Input_7"] = input7
let input8__root = _InputAnimationPassthroughView()
let input8__xScale = _InputAnimationPassthroughView()
let input8__yScale = _InputAnimationPassthroughView()
let input8 = UIImageView()
let imgInput8 = UIImage(named:"Input_8.png", in: bundle, compatibleWith: nil)
if imgInput8 == nil {
print("** Warning: Could not create image from 'Input_8.png'")
}
input8.image = imgInput8
input8.contentMode = .center
input8.bounds = CGRect(x:0, y:0, width:226.0, height:227.0)
input8__root.layer.position = CGPoint(x:1554.325, y:702.936)
input8__root.alpha = 0.00
input8__xScale.transform = CGAffineTransform(scaleX: 1.00, y: 1.00)
input8__yScale.transform = CGAffineTransform(scaleX: 1.00, y: 1.00)
input8__root.transform = CGAffineTransform(rotationAngle: 0.000)
input8__root.addSubview(input8__xScale)
input8__xScale.addSubview(input8__yScale)
input8__yScale.addSubview(input8)
__scaling__.addSubview(input8__root)
viewsByName["Input_8__root"] = input8__root
viewsByName["Input_8__xScale"] = input8__xScale
viewsByName["Input_8__yScale"] = input8__yScale
viewsByName["Input_8"] = input8
let input9__root = _InputAnimationPassthroughView()
let input9__xScale = _InputAnimationPassthroughView()
let input9__yScale = _InputAnimationPassthroughView()
let input9 = UIImageView()
let imgInput9 = UIImage(named:"Input_9.png", in: bundle, compatibleWith: nil)
if imgInput9 == nil {
print("** Warning: Could not create image from 'Input_9.png'")
}
input9.image = imgInput9
input9.contentMode = .center
input9.bounds = CGRect(x:0, y:0, width:227.0, height:227.0)
input9__root.layer.position = CGPoint(x:972.502, y:1014.040)
input9__root.alpha = 0.00
input9__xScale.transform = CGAffineTransform(scaleX: 1.00, y: 1.00)
input9__yScale.transform = CGAffineTransform(scaleX: 1.00, y: 1.00)
input9__root.transform = CGAffineTransform(rotationAngle: 0.000)
input9__root.addSubview(input9__xScale)
input9__xScale.addSubview(input9__yScale)
input9__yScale.addSubview(input9)
__scaling__.addSubview(input9__root)
viewsByName["Input_9__root"] = input9__root
viewsByName["Input_9__xScale"] = input9__xScale
viewsByName["Input_9__yScale"] = input9__yScale
viewsByName["Input_9"] = input9
let input10__root = _InputAnimationPassthroughView()
let input10__xScale = _InputAnimationPassthroughView()
let input10__yScale = _InputAnimationPassthroughView()
let input10 = UIImageView()
let imgInput10 = UIImage(named:"Input_10.png", in: bundle, compatibleWith: nil)
if imgInput10 == nil {
print("** Warning: Could not create image from 'Input_10.png'")
}
input10.image = imgInput10
input10.contentMode = .center
input10.bounds = CGRect(x:0, y:0, width:227.0, height:227.0)
input10__root.layer.position = CGPoint(x:1072.938, y:1377.762)
input10__root.alpha = 0.00
input10__xScale.transform = CGAffineTransform(scaleX: 1.00, y: 1.00)
input10__yScale.transform = CGAffineTransform(scaleX: 1.00, y: 1.00)
input10__root.transform = CGAffineTransform(rotationAngle: 0.000)
input10__root.addSubview(input10__xScale)
input10__xScale.addSubview(input10__yScale)
input10__yScale.addSubview(input10)
__scaling__.addSubview(input10__root)
viewsByName["Input_10__root"] = input10__root
viewsByName["Input_10__xScale"] = input10__xScale
viewsByName["Input_10__yScale"] = input10__yScale
viewsByName["Input_10"] = input10
let homeIcon__root = _InputAnimationPassthroughView()
let homeIcon__xScale = _InputAnimationPassthroughView()
let homeIcon__yScale = _InputAnimationPassthroughView()
let homeIcon = UIImageView()
let imgHomeIcon = UIImage(named:"home_icon.png", in: bundle, compatibleWith: nil)
if imgHomeIcon == nil {
print("** Warning: Could not create image from 'home_icon.png'")
}
homeIcon.image = imgHomeIcon
homeIcon.contentMode = .center
homeIcon.layer.anchorPoint = CGPoint(x:0.516, y:0.527)
homeIcon.bounds = CGRect(x:0, y:0, width:545.0, height:545.0)
homeIcon__root.layer.position = CGPoint(x:108.930, y:146.910)
homeIcon__root.alpha = 0.00
homeIcon__xScale.transform = CGAffineTransform(scaleX: 0.24, y: 1.00)
homeIcon__yScale.transform = CGAffineTransform(scaleX: 1.00, y: 0.24)
homeIcon__root.transform = CGAffineTransform(rotationAngle: 0.000)
homeIcon__root.addSubview(homeIcon__xScale)
homeIcon__xScale.addSubview(homeIcon__yScale)
homeIcon__yScale.addSubview(homeIcon)
__scaling__.addSubview(homeIcon__root)
viewsByName["home_icon__root"] = homeIcon__root
viewsByName["home_icon__xScale"] = homeIcon__xScale
viewsByName["home_icon__yScale"] = homeIcon__yScale
viewsByName["home_icon"] = homeIcon
let info__root = _InputAnimationPassthroughView()
let info__xScale = _InputAnimationPassthroughView()
let info__yScale = _InputAnimationPassthroughView()
let info = UIImageView()
let imgInfo = UIImage(named:"info.png", in: bundle, compatibleWith: nil)
if imgInfo == nil {
print("** Warning: Could not create image from 'info.png'")
}
info.image = imgInfo
info.contentMode = .center
info.bounds = CGRect(x:0, y:0, width:552.0, height:552.0)
info__root.layer.position = CGPoint(x:1940.680, y:117.561)
info__root.alpha = 0.00
info__xScale.transform = CGAffineTransform(scaleX: 0.24, y: 1.00)
info__yScale.transform = CGAffineTransform(scaleX: 1.00, y: 0.24)
info__root.transform = CGAffineTransform(rotationAngle: 0.000)
info__root.addSubview(info__xScale)
info__xScale.addSubview(info__yScale)
info__yScale.addSubview(info)
__scaling__.addSubview(info__root)
viewsByName["info__root"] = info__root
viewsByName["info__xScale"] = info__xScale
viewsByName["info__yScale"] = info__yScale
viewsByName["info"] = info
let numpad__root = _InputAnimationPassthroughView()
let numpad__xScale = _InputAnimationPassthroughView()
let numpad__yScale = _InputAnimationPassthroughView()
let numpad = UIImageView()
let imgNumpad = UIImage(named:"numpad.png", in: bundle, compatibleWith: nil)
if imgNumpad == nil {
print("** Warning: Could not create image from 'numpad.png'")
}
numpad.image = imgNumpad
numpad.contentMode = .center
numpad.bounds = CGRect(x:0, y:0, width:637.0, height:845.0)
numpad__root.layer.position = CGPoint(x:1913.467, y:1175.896)
numpad__root.alpha = 0.00
numpad__xScale.transform = CGAffineTransform(scaleX: 0.24, y: 1.00)
numpad__yScale.transform = CGAffineTransform(scaleX: 1.00, y: 0.24)
numpad__root.transform = CGAffineTransform(rotationAngle: 0.000)
numpad__root.addSubview(numpad__xScale)
numpad__xScale.addSubview(numpad__yScale)
numpad__yScale.addSubview(numpad)
__scaling__.addSubview(numpad__root)
viewsByName["numpad__root"] = numpad__root
viewsByName["numpad__xScale"] = numpad__xScale
viewsByName["numpad__yScale"] = numpad__yScale
viewsByName["numpad"] = numpad
self.viewsByName = viewsByName
}
// - MARK: InputAnimation
func addInputAnimation() {
addInputAnimation(beginTime: 0, fillMode: kCAFillModeBoth, removedOnCompletion: false, completion: nil)
}
func addInputAnimation(completion: ((Bool) -> Void)?) {
addInputAnimation(beginTime: 0, fillMode: kCAFillModeBoth, removedOnCompletion: false, completion: completion)
}
func addInputAnimation(removedOnCompletion: Bool) {
addInputAnimation(beginTime: 0, fillMode: removedOnCompletion ? kCAFillModeRemoved : kCAFillModeBoth, removedOnCompletion: removedOnCompletion, completion: nil)
}
func addInputAnimation(removedOnCompletion: Bool, completion: ((Bool) -> Void)?) {
addInputAnimation(beginTime: 0, fillMode: removedOnCompletion ? kCAFillModeRemoved : kCAFillModeBoth, removedOnCompletion: removedOnCompletion, completion: completion)
}
func addInputAnimation(beginTime: CFTimeInterval, fillMode: String, removedOnCompletion: Bool, completion: ((Bool) -> Void)?) {
let linearTiming = CAMediaTimingFunction(name: kCAMediaTimingFunctionLinear)
let instantTiming = CAMediaTimingFunction(name: kCAMediaTimingFunctionDefault)
if let complete = completion {
let representativeAnimation = CABasicAnimation(keyPath: "not.a.real.key")
representativeAnimation.duration = 1.400
representativeAnimation.delegate = self
self.layer.add(representativeAnimation, forKey: "InputAnimation")
self.animationCompletions[layer.animation(forKey: "InputAnimation")!] = complete
}
let input1OpacityAnimation = CAKeyframeAnimation(keyPath: "opacity")
input1OpacityAnimation.duration = 1.400
input1OpacityAnimation.values = [0.000, 0.000, 1.000, 1.000] as [Float]
input1OpacityAnimation.keyTimes = [0.000, 0.839, 0.893, 1.000] as [NSNumber]
input1OpacityAnimation.timingFunctions = [linearTiming, linearTiming, linearTiming]
input1OpacityAnimation.beginTime = beginTime
input1OpacityAnimation.fillMode = fillMode
input1OpacityAnimation.isRemovedOnCompletion = removedOnCompletion
self.viewsByName["Input_1__root"]?.layer.add(input1OpacityAnimation, forKey:"InputAnimation_Opacity")
let linesMaskRotationAnimation = CAKeyframeAnimation(keyPath: "transform.rotation.z")
linesMaskRotationAnimation.duration = 1.400
linesMaskRotationAnimation.values = [5.713, 5.612, 5.612] as [Float]
linesMaskRotationAnimation.keyTimes = [0.000, 0.857, 1.000] as [NSNumber]
linesMaskRotationAnimation.timingFunctions = [linearTiming, linearTiming]
linesMaskRotationAnimation.beginTime = beginTime
linesMaskRotationAnimation.fillMode = fillMode
linesMaskRotationAnimation.isRemovedOnCompletion = removedOnCompletion
self.viewsByName["lines_mask__root"]?.layer.add(linesMaskRotationAnimation, forKey:"InputAnimation_Rotation")
let linesMaskScaleXAnimation = CAKeyframeAnimation(keyPath: "transform.scale.x")
linesMaskScaleXAnimation.duration = 1.400
linesMaskScaleXAnimation.values = [0.190, 0.190, 0.474, 0.856, 0.991, -0.002, -0.975, -0.975] as [Float]
linesMaskScaleXAnimation.keyTimes = [0.000, 0.446, 0.482, 0.696, 0.786, 0.839, 0.857, 1.000] as [NSNumber]
linesMaskScaleXAnimation.timingFunctions = [linearTiming, linearTiming, linearTiming, linearTiming, linearTiming, linearTiming, linearTiming]
linesMaskScaleXAnimation.beginTime = beginTime
linesMaskScaleXAnimation.fillMode = fillMode
linesMaskScaleXAnimation.isRemovedOnCompletion = removedOnCompletion
self.viewsByName["lines_mask__xScale"]?.layer.add(linesMaskScaleXAnimation, forKey:"InputAnimation_ScaleX")
let linesMaskScaleYAnimation = CAKeyframeAnimation(keyPath: "transform.scale.y")
linesMaskScaleYAnimation.duration = 1.400
linesMaskScaleYAnimation.values = [0.579, 0.177, 0.093, 0.040, 0.040] as [Float]
linesMaskScaleYAnimation.keyTimes = [0.000, 0.457, 0.586, 0.693, 1.000] as [NSNumber]
linesMaskScaleYAnimation.timingFunctions = [linearTiming, linearTiming, linearTiming, linearTiming]
linesMaskScaleYAnimation.beginTime = beginTime
linesMaskScaleYAnimation.fillMode = fillMode
linesMaskScaleYAnimation.isRemovedOnCompletion = removedOnCompletion
self.viewsByName["lines_mask__yScale"]?.layer.add(linesMaskScaleYAnimation, forKey:"InputAnimation_ScaleY")
let linesMaskTranslationXAnimation = CAKeyframeAnimation(keyPath: "transform.translation.x")
linesMaskTranslationXAnimation.duration = 1.400
linesMaskTranslationXAnimation.values = [0.000, 0.000, 46.867, 60.875, 32.313, 52.293, 131.590, 180.152, 223.691, 343.457, 396.637, 473.936, 716.613, 836.867, 982.199, 982.199] as [Float]
linesMaskTranslationXAnimation.keyTimes = [0.000, 0.446, 0.482, 0.536, 0.589, 0.625, 0.679, 0.696, 0.714, 0.750, 0.786, 0.839, 0.857, 0.893, 0.929, 1.000] as [NSNumber]
linesMaskTranslationXAnimation.timingFunctions = [linearTiming, linearTiming, linearTiming, linearTiming, linearTiming, linearTiming, linearTiming, linearTiming, linearTiming, linearTiming, linearTiming, linearTiming, linearTiming, linearTiming, linearTiming]
linesMaskTranslationXAnimation.beginTime = beginTime
linesMaskTranslationXAnimation.fillMode = fillMode
linesMaskTranslationXAnimation.isRemovedOnCompletion = removedOnCompletion
self.viewsByName["lines_mask__root"]?.layer.add(linesMaskTranslationXAnimation, forKey:"InputAnimation_TranslationX")
let linesMaskTranslationYAnimation = CAKeyframeAnimation(keyPath: "transform.translation.y")
linesMaskTranslationYAnimation.duration = 1.400
linesMaskTranslationYAnimation.values = [0.000, 0.000, -31.169, -125.083, -165.208, -235.868, -298.657, -333.899, -367.806, -455.407, -494.931, -544.483, -737.108, -832.909, -946.546, -946.546] as [Float]
linesMaskTranslationYAnimation.keyTimes = [0.000, 0.446, 0.482, 0.536, 0.589, 0.625, 0.679, 0.696, 0.714, 0.750, 0.786, 0.839, 0.857, 0.893, 0.929, 1.000] as [NSNumber]
linesMaskTranslationYAnimation.timingFunctions = [linearTiming, linearTiming, linearTiming, linearTiming, linearTiming, linearTiming, linearTiming, linearTiming, linearTiming, linearTiming, linearTiming, linearTiming, linearTiming, linearTiming, linearTiming]
linesMaskTranslationYAnimation.beginTime = beginTime
linesMaskTranslationYAnimation.fillMode = fillMode
linesMaskTranslationYAnimation.isRemovedOnCompletion = removedOnCompletion
self.viewsByName["lines_mask__root"]?.layer.add(linesMaskTranslationYAnimation, forKey:"InputAnimation_TranslationY")
let homeIconOpacityAnimation = CAKeyframeAnimation(keyPath: "opacity")
homeIconOpacityAnimation.duration = 1.400
homeIconOpacityAnimation.values = [0.000, 0.000, 1.000, 1.000] as [Float]
homeIconOpacityAnimation.keyTimes = [0.000, 0.875, 0.929, 1.000] as [NSNumber]
homeIconOpacityAnimation.timingFunctions = [linearTiming, linearTiming, linearTiming]
homeIconOpacityAnimation.beginTime = beginTime
homeIconOpacityAnimation.fillMode = fillMode
homeIconOpacityAnimation.isRemovedOnCompletion = removedOnCompletion
self.viewsByName["home_icon__root"]?.layer.add(homeIconOpacityAnimation, forKey:"InputAnimation_Opacity")
let homeIconTranslationYAnimation = CAKeyframeAnimation(keyPath: "transform.translation.y")
homeIconTranslationYAnimation.duration = 1.400
homeIconTranslationYAnimation.values = [0.000, 1.000, 1.000] as [Float]
homeIconTranslationYAnimation.keyTimes = [0.000, 0.686, 1.000] as [NSNumber]
homeIconTranslationYAnimation.timingFunctions = [linearTiming, linearTiming]
homeIconTranslationYAnimation.beginTime = beginTime
homeIconTranslationYAnimation.fillMode = fillMode
homeIconTranslationYAnimation.isRemovedOnCompletion = removedOnCompletion
self.viewsByName["home_icon__root"]?.layer.add(homeIconTranslationYAnimation, forKey:"InputAnimation_TranslationY")
let lines2Mask2ScaleXAnimation = CAKeyframeAnimation(keyPath: "transform.scale.x")
lines2Mask2ScaleXAnimation.duration = 1.400
lines2Mask2ScaleXAnimation.values = [0.254, 0.254, 0.371, 0.371] as [Float]
lines2Mask2ScaleXAnimation.keyTimes = [0.000, 0.696, 0.732, 1.000] as [NSNumber]
lines2Mask2ScaleXAnimation.timingFunctions = [linearTiming, linearTiming, linearTiming]
lines2Mask2ScaleXAnimation.beginTime = beginTime
lines2Mask2ScaleXAnimation.fillMode = fillMode
lines2Mask2ScaleXAnimation.isRemovedOnCompletion = removedOnCompletion
self.viewsByName["lines 2_mask__xScale"]?.layer.add(lines2Mask2ScaleXAnimation, forKey:"InputAnimation_ScaleX")
let lines2Mask2ScaleYAnimation = CAKeyframeAnimation(keyPath: "transform.scale.y")
lines2Mask2ScaleYAnimation.duration = 1.400
lines2Mask2ScaleYAnimation.values = [0.002, 0.002, 0.314, 0.507, 0.030, 0.383, 0.005, 0.005] as [Float]
lines2Mask2ScaleYAnimation.keyTimes = [0.000, 0.696, 0.732, 0.821, 0.857, 0.911, 0.929, 1.000] as [NSNumber]
lines2Mask2ScaleYAnimation.timingFunctions = [linearTiming, linearTiming, linearTiming, linearTiming, linearTiming, linearTiming, linearTiming]
lines2Mask2ScaleYAnimation.beginTime = beginTime
lines2Mask2ScaleYAnimation.fillMode = fillMode
lines2Mask2ScaleYAnimation.isRemovedOnCompletion = removedOnCompletion
self.viewsByName["lines 2_mask__yScale"]?.layer.add(lines2Mask2ScaleYAnimation, forKey:"InputAnimation_ScaleY")
let lines2Mask2TranslationXAnimation = CAKeyframeAnimation(keyPath: "transform.translation.x")
lines2Mask2TranslationXAnimation.duration = 1.400
lines2Mask2TranslationXAnimation.values = [0.000, 0.000, -26.068, -68.970, -194.310, -248.761, -338.610, -374.348, -374.348, 538.938, 512.510, 430.662, 402.380, 402.380] as [Float]
lines2Mask2TranslationXAnimation.keyTimes = [0.000, 0.696, 0.732, 0.768, 0.786, 0.821, 0.839, 0.857, 0.875, 0.875, 0.893, 0.911, 0.929, 1.000] as [NSNumber]
lines2Mask2TranslationXAnimation.timingFunctions = [linearTiming, linearTiming, linearTiming, linearTiming, linearTiming, linearTiming, linearTiming, instantTiming, instantTiming, linearTiming, linearTiming, linearTiming, linearTiming]
lines2Mask2TranslationXAnimation.beginTime = beginTime
lines2Mask2TranslationXAnimation.fillMode = fillMode
lines2Mask2TranslationXAnimation.isRemovedOnCompletion = removedOnCompletion
self.viewsByName["lines 2_mask__root"]?.layer.add(lines2Mask2TranslationXAnimation, forKey:"InputAnimation_TranslationX")
let lines2Mask2TranslationYAnimation = CAKeyframeAnimation(keyPath: "transform.translation.y")
lines2Mask2TranslationYAnimation.duration = 1.400
lines2Mask2TranslationYAnimation.values = [0.000, 0.000, -16.302, -60.023, -168.902, -214.255, -266.713, -292.417, -292.417, -406.615, -425.623, -511.971, -532.312, -532.312] as [Float]
lines2Mask2TranslationYAnimation.keyTimes = [0.000, 0.696, 0.732, 0.768, 0.786, 0.821, 0.839, 0.857, 0.875, 0.875, 0.893, 0.911, 0.929, 1.000] as [NSNumber]
lines2Mask2TranslationYAnimation.timingFunctions = [linearTiming, linearTiming, linearTiming, linearTiming, linearTiming, linearTiming, linearTiming, instantTiming, instantTiming, linearTiming, linearTiming, linearTiming, linearTiming]