-
Notifications
You must be signed in to change notification settings - Fork 73
/
Copy pathItemsProvider.swift
2304 lines (2299 loc) · 120 KB
/
ItemsProvider.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
//
// ItemsProvider.swift
// Fabula
//
// Created by jasu on 2022/01/01.
// Copyright (c) 2022 jasu All rights reserved.
//
// Due to an issue where a crash occurs when using @Namespace in NavigationView Items 185, 176, 162, 161 are temporarily removed from macOS
import SwiftUI
public class ItemsProvider {
public static let shared = ItemsProvider()
public var itemsByPlatform: [ItemData] {
#if os(iOS)
items.filter { item in
item.platformType == .iOS || item.platformType == .both
}
#else
items.filter { item in
item.platformType == .macOS || item.platformType == .both
}
#endif
}
public init() {}
public var items: [ItemData] {
[ ItemData(id: 284, category: .uiux,
section: "Animation",
createDate: "2024-09-11",
title: "GlitchEffect",
caption: "Dynamic glitch effect for images and text. Create cyberpunk-inspired visual distortions.",
creator: Contributor.regi93.name,
tags: "animation, text, image",
view: FAnyView(P284_GlitchEffect())),
ItemData(id: 283, category: .uiux,
section: "Animation",
createDate: "2023-12-19",
title: "CatchCat",
caption: "Catch a cat running away",
creator: Contributor.henry.name,
tags: "animation, random, interactive",
view: FAnyView(P283_CatchCat())),
ItemData(id: 282, category: .uiux,
section: "Text",
createDate: "2023-11-03",
title: "DebounceText",
caption: "How to debounce text that changes.",
creator: Contributor.jasu.name,
tags: "debounce, text, textfield",
view: FAnyView(P282_DebouncedText())),
ItemData(id: 281, category: .uiux,
section: "Text",
createDate: "2023-10-29",
title: "SubstringHighlighter",
caption: "How to highlight specific characters in text.",
creator: Contributor.jasu.name,
tags: "extension",
view: FAnyView(P281_TextSubstringHighlighter())),
ItemData(id: 280, category: .uiux,
section: "Container",
createDate: "2023-10-15",
title: "SwitchComponent",
caption: "How to create a Switch custom component in SwiftUI.",
creator: Contributor.jasu.name,
tags: "component",
view: FAnyView(P280_SwitchComponent())),
ItemData(id: 279, category: .uiux,
section: "Container",
createDate: "2023-10-15",
title: "CheckboxComponent",
caption: "How to create a Checkbox custom component in SwiftUI.",
creator: Contributor.jasu.name,
tags: "component",
view: FAnyView(P279_CheckboxComponent())),
ItemData(id: 278, category: .play,
section: "Animation",
createDate: "2022-12-06",
title: "Rotating Playing Card",
caption: "A playing card that rotates and changes its display.",
creator: Contributor.tgeisse.name,
tags: "animation, rotation, 3drotation, 3d",
view: FAnyView(P278_RotatingPlayingCard())),
ItemData(id: 277, category: .study,
section: "Control",
createDate: "2022-12-05",
title: "Drag and Resize",
caption: "A draggable and resizable view.",
creator: Contributor.tgeisse.name,
tags: "draggable, resizable",
view: FAnyView(P277_DragAndResize())),
ItemData(id: 276, category: .uiux,
section: "Control",
createDate: "2022-12-02",
title: "Image Slider",
caption: "Provides a slider to interactively show / hide two images.",
creator: Contributor.tgeisse.name,
tags: "slider, interactive, divider",
view: FAnyView(P276_ImageSlider())),
ItemData(id: 275, category: .play,
section: "Animation",
createDate: "2022-11-30",
title: "Raining",
caption: "Randomly animates raindrops down the screen.",
creator: Contributor.tgeisse.name,
tags: "random, animation",
view: FAnyView(P275_Raining())),
ItemData(id: 274, category: .study,
section: "Shape",
createDate: "2022-11-30",
title: "Raindrop Shape",
caption: "One way to draw a raindrop.",
creator: Contributor.tgeisse.name,
tags: "raindrop, shape, example",
view: FAnyView(P274_RaindropShape())),
ItemData(id: 273, category: .play,
section: "Animation",
createDate: "2022-11-28",
title: "Shape Generator",
caption: "Displays a random shape and animates it.",
creator: Contributor.tgeisse.name,
tags: "randomshape, animateable, random",
view: FAnyView(P273_ShapeGenerator())),
ItemData(id: 272, category: .uiux,
section: "View",
createDate: "2022-11-18",
title: "Collapsible View",
caption: "An expandable view.",
creator: Contributor.tgeisse.name,
tags: "collapsible, expandable",
view: FAnyView(P272_CollapsibleView())),
ItemData(id: 271, category: .uiux,
section: "View",
createDate: "2022-11-16",
title: "Collapsible Text",
caption: "An expandable text view.",
creator: Contributor.tgeisse.name,
tags: "collapsible, expandable",
view: FAnyView(P271_CollapsibleText())),
ItemData(id: 270, category: .study,
section: "Picker",
createDate: "2022-11-28",
title: "Hue Color Picker",
caption: "Demonstrates SwiftUI's Color hue initializer.",
creator: Contributor.tgeisse.name,
tags: "hue, colorpicker, colors",
view: FAnyView(P270_HueColorPicker())),
ItemData(id: 269, category: .study,
section: "View",
createDate: "2022-11-06",
title: "UrlLink",
caption: "How to open url link using SwiftUI",
creator: Contributor.soccer01.name,
tags: "",
view: FAnyView(P269_UrlLink())),
ItemData(id: 268, category: .study,
section: "View",
createDate: "2022-11-05",
title: "ShareSheet",
caption: "Share Any Item through the share button.",
creator: Contributor.soccer01.name,
tags: "",
view: FAnyView(P268_ShareSheet())),
ItemData(id: 267, category: .uiux,
section: "View",
createDate: "2022-10-22",
title: "LazyGridView",
caption: "LazyGridView with sticky header.",
creator: Contributor.soccer01.name,
tags: "",
view: FAnyView(P267_LazyGridView())),
ItemData(id: 266, category: .play,
section: "View",
createDate: "2022-10-16",
title: "ViscosityCanvas",
caption: "How to express viscosity with shapes.",
creator: Contributor.jasu.name,
tags: "Canvas",
view: FAnyView(P266_ViscosityCanvas())),
ItemData(id: 265, category: .uiux,
section: "Container",
createDate: "2022-09-30",
title: "RadioComponent",
caption: "How to develop Radio component using SwiftUI.",
creator: Contributor.jasu.name,
tags: "component",
view: FAnyView(P265_RadioComponent())),
ItemData(id: 264, category: .study,
section: "View",
createDate: "2022-09-15",
title: "DynamicFontSize",
caption: "automatically convert font size to fit the background view size.",
creator: Contributor.soccer01.name,
tags: "P264_DynamicFontSize",
view: FAnyView(P264_DynamicFontSize())),
ItemData(id: 263, category: .study,
section: "View",
createDate: "2022-09-15",
title: "NavigationBar",
caption: "A navigation bar with navigation items",
creator: Contributor.soccer01.name,
tags: "P263_NavigationBar",
view: FAnyView(P263_NavigationBar()), platformType: .iOS),
ItemData(id: 262, category: .study,
section: "View",
createDate: "2022-09-15",
title: "BarGraph",
caption: "A horizontal graph where the progress and height values can be modified.",
creator: Contributor.soccer01.name,
tags: "BarGraph",
view: FAnyView(P262_BarGraph())),
ItemData(id: 261, category: .play,
section: "View",
createDate: "2022-09-14",
title: "Circle Text",
caption: "A type that specifies the appearance and interaction of all pickers within a view hierarchy.",
creator: Contributor.jasu.name,
tags: "AnimateText, animation",
view: FAnyView(P261_CircleAnimateText())),
ItemData(id: 260, category: .study,
section: "View",
createDate: "2022-06-01",
title: "PickerStyle",
caption: "A type that specifies the appearance and interaction of all pickers within a view hierarchy.",
creator: Contributor.jasu.name,
tags: "PickerStyle",
view: FAnyView(P260_PickerStyle())),
ItemData(id: 259, category: .study,
section: "View",
createDate: "2022-06-01",
title: "TextFieldStyle",
caption: "A specification for the appearance and interaction of a text field.",
creator: Contributor.jasu.name,
tags: "TextField",
view: FAnyView(P259_TextFieldStyle())),
ItemData(id: 258, category: .study,
section: "PreferenceKey",
createDate: "2022-05-26",
title: "Custom PreferenceKey",
caption: "A view with multiple children automatically combines its values for a given preference into a single value visible to its ancestors.",
creator: Contributor.jasu.name,
tags: "overlayPreferenceValue",
view: FAnyView(P258_CustomPreferenceKey())),
ItemData(id: 257, category: .study,
section: "Protocols",
createDate: "2022-05-25",
title: "InsettableShape",
caption: "A shape type that is able to inset itself to produce another shape.",
creator: Contributor.jasu.name,
tags: "",
view: FAnyView(P257_InsettableShape())),
ItemData(id: 256, category: .play,
section: "Control",
createDate: "2022-05-24",
title: "Conscious",
caption: "Don't be self-conscious.",
creator: Contributor.jasu.name,
tags: "",
view: FAnyView(P256_Conscious())),
ItemData(id: 255, category: .study,
section: "Protocols",
createDate: "2022-05-23",
title: "DoubleClick",
caption: "How to double-click with a key combination.",
creator: Contributor.jasu.name,
tags: "",
view: FAnyView(P255_DoubleClick()), platformType: .macOS),
ItemData(id: 254, category: .study,
section: "Protocols",
createDate: "2022-05-22",
title: "GeometryEffect",
caption: "An effect that changes the visual appearance of a view, largely without changing its ancestors or descendants.",
creator: Contributor.jasu.name,
tags: "",
view: FAnyView(P254_GeometryEffect())),
ItemData(id: 253, category: .study,
section: "Protocols",
createDate: "2022-05-21",
title: "FocusedValueKey",
caption: "A protocol for identifier types used when publishing and observing focused values.",
creator: Contributor.jasu.name,
tags: "FocusedValue, FocusedBinding, Keyboard, dismiss",
view: FAnyView(P253_FocusedValueKey())),
ItemData(id: 252, category: .study,
section: "Protocols",
createDate: "2022-05-20",
title: "EnvironmentalModifier",
caption: "A modifier that must resolve to a concrete modifier in an environment before use.",
creator: Contributor.jasu.name,
tags: "ResolvedModifier",
view: FAnyView(P252_EnvironmentalModifier())),
ItemData(id: 251, category: .study,
section: "Protocols",
createDate: "2022-05-19",
title: "EnvironmentKey",
caption: "A key for accessing values in the environment.",
creator: Contributor.jasu.name,
tags: "",
view: FAnyView(P251_EnvironmentKey())),
ItemData(id: 250, category: .study,
section: "Protocols",
createDate: "2022-05-18",
title: "DynamicViewContent",
caption: "A type of view that generates views from an underlying collection of data.",
creator: Contributor.jasu.name,
tags: "ForEach, onDelete, onMove, onInsert",
view: FAnyView(P250_DynamicViewContent())),
ItemData(id: 249, category: .study,
section: "Protocols",
createDate: "2022-05-17",
title: "DynamicProperty",
caption: "An interface for a stored variable that updates an external property of a view.",
creator: Contributor.jasu.name,
tags: "PropertyWrapper",
view: FAnyView(P249_DynamicProperty())),
ItemData(id: 248, category: .study,
section: "Protocols",
createDate: "2022-05-16",
title: "AlignmentID",
caption: "Types used to identify alignment guides.",
creator: Contributor.jasu.name,
tags: "",
view: FAnyView(P248_AlignmentID())),
ItemData(id: 247, category: .study,
section: "Tip",
createDate: "2022-05-15",
title: "ScrollView alignment",
caption: "How to center content in ScrollView.",
creator: Contributor.jasu.name,
tags: "",
view: FAnyView(P247_ScrollViewAlign())),
ItemData(id: 246, category: .play,
section: "Infographic",
createDate: "2022-05-14",
title: "Line Infographic",
caption: "Item statistics line graph of the Fabula project.",
creator: Contributor.jasu.name,
tags: "",
view: FAnyView(P246_FabulaItemsInfographic())),
ItemData(id: 245, category: .study,
section: "Tip",
createDate: "2022-04-30",
title: "Mirror",
caption: "A way to represent substructures and display styles for instances of any type.",
creator: Contributor.jasu.name,
tags: "",
view: FAnyView(P245_Mirror())),
ItemData(id: 244, category: .study,
section: "View",
createDate: "2022-04-29",
title: "TextEditor",
caption: "How to express a shaking effect when a limited number of characters is reached.",
creator: Contributor.jasu.name,
tags: "",
view: FAnyView(P244_WarningTextEditor())),
ItemData(id: 243, category: .study,
section: "View",
createDate: "2022-04-29",
title: "Shake",
caption: "How to express a shaking effect.",
creator: Contributor.jasu.name,
tags: "",
view: FAnyView(P243_WarningEffect())),
ItemData(id: 242, category: .study,
section: "Tip",
createDate: "2022-04-28",
title: "Conditional",
caption: "How to control modifiers in the form of an if statement.",
creator: Contributor.jasu.name,
tags: "",
view: FAnyView(P242_Conditional())),
ItemData(id: 241, category: .study,
section: "Tip",
createDate: "2022-04-27",
title: "Mask Content",
caption: "How to apply a mask in reverse.",
creator: Contributor.jasu.name,
tags: "",
view: FAnyView(P241_Mask())),
ItemData(id: 240, category: .study,
section: "Animation",
createDate: "2022-04-26",
title: "Disable Animations",
caption: "How to disable only certain animations.",
creator: Contributor.jasu.name,
tags: "",
view: FAnyView(P240_DisableAnimations())),
ItemData(id: 239, category: .study,
section: "TextEditor",
createDate: "2022-04-26",
title: "Dynamic TextEditor",
caption: "How to dynamically resize TextEditor.",
creator: Contributor.jasu.name,
tags: "",
view: FAnyView(P239_DynamicTextEditor())),
ItemData(id: 238, category: .study,
section: "TextEditor",
createDate: "2022-04-26",
title: "Limit Characters",
caption: "How to limit the number of characters in TextEditor.",
creator: Contributor.jasu.name,
tags: "",
view: FAnyView(P238_LimitTextEditor())),
ItemData(id: 237, category: .study,
section: "Tip",
createDate: "2022-04-26",
title: "Initial State Variables",
caption: "How to initialize State variables.",
creator: Contributor.jasu.name,
tags: "",
view: FAnyView(P237_InitialState())),
ItemData(id: 236, category: .play,
section: "Color",
createDate: "2022-04-06",
title: "Flat Color",
caption: "Another way to use the AxisSegmentedView library.",
creator: Contributor.jasu.name,
tags: "",
view: FAnyView(P236_FlatColor())),
ItemData(id: 235, category: .study,
section: "TabView",
createDate: "2022-04-01",
title: "Tips for using TabView",
caption: "How to handle tapping a tab that has already been selected.",
creator: Contributor.jasu.name,
tags: "",
view: FAnyView(P235_TabViewSelected())),
ItemData(id: 234, category: .uiux,
section: "Library",
createDate: "2022-03-27",
title: "AxisSegmentedView",
caption: "How to use the AxisSegmentedView library.",
creator: Contributor.jasu.name,
tags: "github, segmentedView",
view: FAnyView(P234_AxisSegmentedView())),
ItemData(id: 233, category: .uiux,
section: "Library",
createDate: "2022-03-13",
title: "AxisTabView",
caption: "How to use the AxisTabView library.",
creator: Contributor.jasu.name,
tags: "github, tabview",
view: FAnyView(P233_AxisTabView())),
ItemData(id: 232, category: .uiux,
section: "Library",
createDate: "2022-03-01",
title: "AxisTooltip",
caption: "How to use the AxisTooltip library.",
creator: Contributor.jasu.name,
tags: "github, tooltip",
view: FAnyView(P232_AxisTooltip())),
ItemData(id: 231, category: .uiux,
section: "Library",
createDate: "2022-02-23",
title: "AxisContribution",
caption: "How to use the AxisContribution library.",
creator: Contributor.jasu.name,
tags: "github, contributions, calendar",
view: FAnyView(P231_AxisContribution())),
ItemData(id: 230, category: .uiux,
section: "Library",
createDate: "2022-02-20",
title: "AxisRatingBar",
caption: "How to use the AxisRatingBar library.",
creator: Contributor.jasu.name,
tags: "rating",
view: FAnyView(P230_AxisRatingBar())),
ItemData(id: 229, category: .uiux,
section: "Shape",
createDate: "2022-02-19",
title: "Star",
caption: "How to make a star shape.",
creator: Contributor.jasu.name,
tags: "AnimatablePair",
view: FAnyView(P229_StarShape())),
ItemData(id: 228, category: .uiux,
section: "Library",
createDate: "2022-02-17",
title: "AxisSheet",
caption: "How to use the AxisSheet library.",
creator: Contributor.jasu.name,
tags: "BottomSheet, presentation",
view: FAnyView(P228_AxisSheet())),
ItemData(id: 227, category: .play,
section: "Library",
createDate: "2022-02-13",
title: "Bubble",
caption: "How to express bubbles using LottieUI library.",
creator: Contributor.jasu.name,
tags: "animation, animations, lottie",
view: FAnyView(P227_Bubble())),
ItemData(id: 226, category: .uiux,
section: "Library",
createDate: "2022-02-13",
title: "LottieUI+Scroller",
caption: "How to use the LottieUI/Scroller library.",
creator: Contributor.jasu.name,
tags: "animation, animations, lottie, scroller",
view: FAnyView(P226_LottieUIScroller())),
ItemData(id: 225, category: .uiux,
section: "Library",
createDate: "2022-02-13",
title: "LottieUI",
caption: "How to use the LottieUI library.",
creator: Contributor.jasu.name,
tags: "animation, animations, lottie",
view: FAnyView(P225_LottieUI())),
ItemData(id: 224, category: .uiux,
section: "Library",
createDate: "2022-02-09",
title: "AnimateText",
caption: "How to use the AnimateText library.",
creator: Contributor.jasu.name,
tags: "animation, animations, typo",
view: FAnyView(P224_AnimateText())),
ItemData(id: 223, category: .uiux,
section: "Library",
createDate: "2022-02-04",
title: "Scroller e.g. 2",
caption: "How to use the Scroller library.",
creator: Contributor.jasu.name,
tags: "ScrollView, animation, scroll",
view: FAnyView(P223_ScrollerExample2())),
ItemData(id: 222, category: .uiux,
section: "Library",
createDate: "2022-02-03",
title: "Scroller e.g. 1",
caption: "How to use the Scroller library.",
creator: Contributor.jasu.name,
tags: "ScrollView, animation, scroll",
view: FAnyView(P222_ScrollerExample1())),
ItemData(id: 221, category: .uiux,
section: "Library",
createDate: "2022-02-03",
title: "Scroller",
caption: "You can animate in individual views based on scroll position.",
creator: Contributor.jasu.name,
tags: "ScrollView, animation",
view: FAnyView(P221_Scroller())),
ItemData(id: 220, category: .study,
section: "Combine",
createDate: "2022-02-03",
title: "CurrentValueSubject",
caption: "A subject that wraps a single value and publishes a new element whenever the value changes.",
creator: Contributor.jasu.name,
tags: "AnyCancellable, CurrentValueSubject",
view: FAnyView(P220_CurrentValueSubject())),
ItemData(id: 219, category: .study,
section: "Combine",
createDate: "2022-02-03",
title: "PassthroughSubject",
caption: "A subject that broadcasts elements to downstream subscribers.",
creator: Contributor.jasu.name,
tags: "AnyCancellable",
view: FAnyView(P219_PassthroughSubject())),
ItemData(id: 218, category: .study,
section: "Combine",
createDate: "2022-02-03",
title: "Custom Subscriber",
caption: "How to creating a custom subscriber.",
creator: Contributor.jasu.name,
tags: "just, sink, Subscriber, custom",
view: FAnyView(P218_CustomSubscriber())),
ItemData(id: 217, category: .study,
section: "Combine",
createDate: "2022-02-03",
title: "Publisher",
caption: "Declares that a type can transmit a sequence of values over time.",
creator: Contributor.jasu.name,
tags: "just, sink, publisher",
view: FAnyView(P217_Publisher())),
ItemData(id: 216, category: .study,
section: "Combine",
createDate: "2022-02-03",
title: "Combine Basic",
caption: "A publisher that emits an output to each subscriber just once, and then finishes.",
creator: Contributor.jasu.name,
tags: "just, sink, publisher",
view: FAnyView(P216_CombineBasic())),
ItemData(id: 215, category: .uiux,
section: "Library",
createDate: "2022-01-30",
title: "UnsplashProvider",
caption: "How to use the Unsplash API.",
creator: Contributor.jasu.name,
tags: "api, router, alamofire, webimage, SDWebImage",
view: FAnyView(P215_UnsplashProvider())),
ItemData(id: 214, category: .study,
section: "View",
createDate: "2022-01-30",
title: "TextField Clear",
caption: "How to add a clear button to a TextField.",
creator: Contributor.jasu.name,
tags: "clear, clearbutton, remove, removeButton, empty",
view: FAnyView(P214_TextFieldClear())),
ItemData(id: 213, category: .uiux,
section: "Library",
createDate: "2022-01-29",
title: "Zoomable",
caption: "How to zoom in/out an image or view.",
creator: Contributor.jasu.name,
tags: "zoom, pinch, imageviewer, image, scale, MagnificationGesture",
view: FAnyView(P213_Zoomable())),
ItemData(id: 212, category: .study,
section: "View",
createDate: "2022-01-26",
title: "SizeModifier",
caption: "How to get a size of another view.",
creator: Contributor.jasu.name,
tags: "size, bounds, rect, cgrect, ViewModifier, PreferenceKey",
view: FAnyView(P212_SizeModifier())),
ItemData(id: 211, category: .study,
section: "View",
createDate: "2022-01-25",
title: "FrameModifier",
caption: "How to get a frame of another view.",
creator: Contributor.jasu.name,
tags: "size, frame, bounds, rect, cgrect, ViewModifier, PreferenceKey",
view: FAnyView(P211_FrameModifier())),
ItemData(id: 210, category: .study,
section: "View",
createDate: "2022-01-24",
title: "ZoomModifier",
caption: "How to zoom in/out the view.",
creator: Contributor.jasu.name,
tags: "zoom, scale, MagnificationGesture, ViewModifier, image",
view: FAnyView(P210_ZoomModifier())),
ItemData(id: 209, category: .study,
section: "View",
createDate: "2022-01-18",
title: "ControlSize",
caption: "Sets the size for controls within this view.",
creator: Contributor.jasu.name,
tags: "mini, small, regular, large",
view: FAnyView(P209_ControlSize())),
ItemData(id: 208, category: .study,
section: "Button",
createDate: "2022-01-18",
title: "ButtonBorderShape",
caption: "A shape that is used to draw a button’s border.",
creator: Contributor.jasu.name,
tags: "",
view: FAnyView(P208_ButtonBorderShape()), platformType: .iOS),
ItemData(id: 207, category: .study,
section: "Button",
createDate: "2022-01-18",
title: "ButtonControlSize",
caption: "Sets the size for controls within this view.",
creator: Contributor.jasu.name,
tags: "mini, small, regular, large",
view: FAnyView(P207_ButtonControlSize())),
ItemData(id: 206, category: .study,
section: "Button",
createDate: "2022-01-18",
title: "ButtonTint",
caption: "Sets the tint color within this view.",
creator: Contributor.jasu.name,
tags: "",
view: FAnyView(P206_ButtonTint())),
ItemData(id: 205, category: .study,
section: "Button",
createDate: "2022-01-18",
title: "ButtonStyle",
caption: "A type that applies standard interaction behavior and a custom appearance to all buttons within a view hierarchy.",
creator: Contributor.jasu.name,
tags: "bordered, borderless, borderedProminent",
view: FAnyView(P205_ButtonStyle())),
ItemData(id: 204, category: .study,
section: "Button",
createDate: "2022-01-18",
title: "ButtonRole",
caption: "A value that describes the purpose of a button.",
creator: Contributor.jasu.name,
tags: "destructive, cancel",
view: FAnyView(P204_ButtonRole())),
ItemData(id: 203, category: .study,
section: "Alamofire",
createDate: "2022-01-15",
title: "Pagination Alamofire",
caption: "How to paginate the list using the Alamofire library.",
creator: Contributor.jasu.name,
tags: "Combine, api, restful, SDWebImageSwiftUI, WebImage, image, ObservableObject, ObservedObject, StateObject, Published, Pagination, infinite, paginate, scroll, Router, URLRequestConvertible, HTTPMethod, URLRequest, Parameters, URLEncoding",
view: FAnyView(P203_AlamofirePagination())),
ItemData(id: 202, category: .study,
section: "Alamofire",
createDate: "2022-01-15",
title: "Refresh Alamofire",
caption: "How to refresh a list by pulling.",
creator: Contributor.jasu.name,
tags: "Combine, api, restful, SDWebImageSwiftUI, WebImage, image, ObservableObject, ObservedObject, StateObject, Published, PassthroughSubject",
view: FAnyView(P202_AlamofireRefresh()), platformType: .iOS),
ItemData(id: 201, category: .study,
section: "Alamofire",
createDate: "2022-01-15",
title: "Basic Alamofire",
caption: "How to communicate using Alamofire library.",
creator: Contributor.jasu.name,
tags: "Combine, api, restful, SDWebImageSwiftUI, WebImage, image, ObservableObject, ObservedObject, StateObject, Published",
view: FAnyView(P201_AlamofireBasic())),
ItemData(id: 200, category: .study,
section: "Font",
createDate: "2022-01-12",
title: "Dynamic Type Size",
caption: "How to check the current DynamicTypeSize.",
creator: Contributor.jasu.name,
tags: "DynamicTypeSize",
view: FAnyView(P200_DynamicTypeSize()), platformType: .iOS),
ItemData(id: 199, category: .study,
section: "Font",
createDate: "2022-01-12",
title: "Custom Font Size",
caption: "How to use Dynamic Type Size with a custom font.",
creator: Contributor.jasu.name,
tags: "DynamicTypeSize",
view: FAnyView(P199_CustomFontSize()), platformType: .iOS),
ItemData(id: 198, category: .study,
section: "Shape",
createDate: "2021-12-27",
title: "Polygon Shape",
caption: "How to draw a polygon.",
creator: Contributor.jasu.name,
tags: "",
view: FAnyView(P198_PolygonShape())),
ItemData(id: 197, category: .study,
section: "PreferenceKey",
createDate: "2021-12-26",
title: "List PreferenceKey",
caption: "How to apply it similarly to willDisplay.",
creator: Contributor.jasu.name,
tags: "preference, onPreferenceChange",
view: FAnyView(P197_BoundsPreferenceKey())),
ItemData(id: 196, category: .study,
section: "PreferenceKey",
createDate: "2021-12-26",
title: "Text PreferenceKey",
caption: "How to display text and pass text to parent.",
creator: Contributor.jasu.name,
tags: "preference, onPreferenceChange",
view: FAnyView(P196_TextPreferenceKey())),
ItemData(id: 195, category: .study,
section: "PreferenceKey",
createDate: "2021-12-25",
title: "Bounds PreferenceKey",
caption: "How to display text and pass boundaries to parent.",
creator: Contributor.jasu.name,
tags: "",
view: FAnyView(P195_BoundsPreferenceKey())),
ItemData(id: 194, category: .study,
section: "Line",
createDate: "2021-12-25",
title: "Curve Line",
caption: "How to draw a curve.",
creator: Contributor.jasu.name,
tags: "Link",
view: FAnyView(P194_LinkCurveLine())),
ItemData(id: 193, category: .play,
section: "Fractal",
createDate: "2021-12-23",
title: "Fractal Maker",
caption: "How to make the fractal pattern.",
creator: Contributor.jasu.name,
tags: "기하학, 프랙털, 차원분열도형, 차원, 재귀",
view: FAnyView(P193_FractalMaker())),
ItemData(id: 192, category: .study,
section: "Fractal",
createDate: "2021-12-22",
title: "Fractal Basic",
caption: "How to make a basic fractal pattern.",
creator: Contributor.jasu.name,
tags: "기하학, 프랙털, 차원분열도형, 차원, 재귀",
view: FAnyView(P192_FractalBasic())),
ItemData(id: 191, category: .play,
section: "Fractal",
createDate: "2021-12-21",
title: "Fractal Pattern",
caption: "How to express the fractal pattern.",
creator: Contributor.jasu.name,
tags: "기하학, 프랙털, 차원분열도형, 차원, 재귀",
view: FAnyView(P191_FractalPattern())),
ItemData(id: 190, category: .uiux,
section: "Shape",
createDate: "2021-12-20",
title: "Glass Shape",
caption: "How to express the glass view.",
creator: Contributor.jasu.name,
tags: "ultraThinMaterial",
view: FAnyView(P190_GlassShape())),
ItemData(id: 189, category: .uiux,
section: "Control",
createDate: "2021-12-19",
title: "Radial Tree",
caption: "How to express the radial tree structure.",
creator: Contributor.jasu.name,
tags: "backgroundPreferenceValue, PreferenceKey, Center, Position",
view: FAnyView(P189_RadialTree())),
ItemData(id: 188, category: .study,
section: "Animation",
createDate: "2021-12-19",
title: "Line Animation",
caption: "How to express animation with lines.",
creator: Contributor.jasu.name,
tags: "",
view: FAnyView(P188_LineAnimation())),
ItemData(id: 187, category: .uiux,
section: "Control",
createDate: "2021-12-19",
title: "Hierarchy Tree",
caption: "How to express the hierarchy tree structure.",
creator: Contributor.jasu.name,
tags: "backgroundPreferenceValue, PreferenceKey, Center, Position",
view: FAnyView(P187_HierarchyTree())),
ItemData(id: 186, category: .study,
section: "Gesture",
createDate: "2021-12-15",
title: "Rotate Gesture",
caption: "How to handle rotation with DragGesture.",
creator: Contributor.jasu.name,
tags: "",
view: FAnyView(P186_RotateGesture())),
ItemData(id: 185, category: .play,
section: "Control",
createDate: "2021-12-14",
title: "Circle Alignment",
caption: "How to arrange the text in a circle.",
creator: Contributor.jasu.name,
tags: "",
view: FAnyView(P185_CircleAlignment()), platformType: .iOS),
ItemData(id: 184, category: .uiux,
section: "Control",
createDate: "2021-12-10",
title: "Custom Indicator",
caption: "How to express the indicator according to the outline of the shape.",
creator: Contributor.jasu.name,
tags: "",
view: FAnyView(P184_ShapeIndicator())),
ItemData(id: 183, category: .uiux,
section: "Control",
createDate: "2021-12-09",
title: "Circular List",
caption: "How to express images by listing them in a circle.",
creator: Contributor.jasu.name,
tags: "",
view: FAnyView(P183_CircularList())),
ItemData(id: 182, category: .study,
section: "Control",
createDate: "2021-12-06",
title: "Curve Scroll",
caption: "How to express a curve in the list view.",
creator: Contributor.jasu.name,
tags: "",
view: FAnyView(P182_CurveScroll())),
ItemData(id: 181, category: .study,
section: "Control",
createDate: "2021-12-06",
title: "Scroll Offset",
caption: "How to get the offset of the scroll view.",
creator: Contributor.jasu.name,
tags: "",
view: FAnyView(P181_ScrollOffset())),
ItemData(id: 180, category: .uiux,
section: "Control",
createDate: "2021-12-04",
title: "FoldPaper",
caption: "How to implement a UI that folds and unfolds.",
creator: Contributor.jasu.name,
tags: "",
view: FAnyView(P180_FoldPaper())),
ItemData(id: 179, category: .study,
section: "Control",
createDate: "2021-12-04",
title: "Fold/Unfold",
caption: "How to express the folding and unfolding.",
creator: Contributor.jasu.name,
tags: "",
view: FAnyView(P179_FoldUnfold())),
ItemData(id: 178, category: .study,
section: "Modifier",
createDate: "2021-12-04",
title: "Custom ViewModifier",
caption: "How to set the custom modifier in the view.",
creator: Contributor.jasu.name,
tags: "",
view: FAnyView(P178_CustomViewModifier())),
ItemData(id: 177, category: .study,
section: "Environment",
createDate: "2021-12-04",
title: "Custom Environment",
caption: "How to set the customized environment value in the view.",
creator: Contributor.jasu.name,
tags: "",
view: FAnyView(P177_CustomEnvironment())),
ItemData(id: 176, category: .uiux,
section: "Control",
createDate: "2021-12-03",
title: "TabSegmentedView",
caption: "How to customize the segmented control view.",
creator: Contributor.jasu.name,
tags: "",
view: FAnyView(P176_TabSegmentedView()), platformType: .iOS),
ItemData(id: 175, category: .study,
section: "Gesture",
createDate: "2021-12-03",
title: "Drag Updating",
caption: "Updates the provided gesture state property as the gesture’s value changes.",
creator: Contributor.jasu.name,
tags: "GestureState, updating, translation, transaction",
view: FAnyView(P175_DragGesture())),
ItemData(id: 174, category: .uiux,
section: "Control",
createDate: "2021-12-01",
title: "Custom Stepper",
caption: "How to make a customized stepper.",
creator: Contributor.jasu.name,
tags: "",
view: FAnyView(P174_CustomStepper())),
ItemData(id: 173, category: .uiux,
section: "Infographic",
createDate: "2021-11-30",
title: "Rectangular Graph",
caption: "How to express a rectangular graph.",
creator: Contributor.jasu.name,
tags: "",
view: FAnyView(P173_RectangularGraph())),
ItemData(id: 172, category: .study,
section: "Modifier",
createDate: "2021-11-30",
title: "Rotation3DEffect",
caption: "Rotates this view’s rendered output in three dimensions around the given axis of rotation.",
creator: Contributor.jasu.name,
tags: "",
view: FAnyView(P172_Rotation3DEffect())),
ItemData(id: 171, category: .play,
section: "View",
createDate: "2021-11-29",
title: "Circle Animation",
caption: "How to make an animation in a circle.",
creator: Contributor.jasu.name,
tags: "",
view: FAnyView(P171_CircleAnimation())),
ItemData(id: 170, category: .study,
section: "View",
createDate: "2021-11-29",
title: "ViewBuilder",
caption: "A custom parameter attribute that constructs views from closures.",
creator: Contributor.jasu.name,
tags: "",
view: FAnyView(P170_ViewBuilder())),
ItemData(id: 169, category: .study,
section: "View",
createDate: "2021-11-29",
title: "TupleView",
caption: "A View created from a swift tuple of View values.",
creator: Contributor.jasu.name,
tags: "",
view: FAnyView(P169_TupleView())),
ItemData(id: 168, category: .study,
section: "Shape",
createDate: "2021-11-29",
title: "TransformedShape",
caption: "A shape with an affine transform applied to it.",
creator: Contributor.jasu.name,
tags: "",
view: FAnyView(P168_TransformedShape())),
ItemData(id: 167, category: .study,
section: "Control",
createDate: "2021-11-29",
title: "ToolBar",
caption: "Standard placement for commands that manipulate the toolbar.",
creator: Contributor.jasu.name,
tags: "ToolBarItem, ToolbarItemGroup, navigationBarLeading, bottomBar, automatic, status, cancellationAction, destructiveAction, primaryAction, placement",
view: FAnyView(P167_ToolBar())),
ItemData(id: 166, category: .study,
section: "View",
createDate: "2021-11-29",
title: "TextEditor",
caption: "A view that can display and edit long-form text.",
creator: Contributor.jasu.name,
tags: "onChange",
view: FAnyView(P166_TextEditor())),
ItemData(id: 165, category: .study,
section: "Animation",
createDate: "2021-11-28",
title: "AnimatablePair",
caption: "A pair of animatable values, which is itself animatable.",
creator: Contributor.jasu.name,
tags: "",
view: FAnyView(P165_AnimatablePair())),
ItemData(id: 164, category: .study,
section: "Animation",
createDate: "2021-11-28",
title: "Transition",
caption: "Applies transition effects that either stand by itself (no neighboring elements), combine two neighboring elements, or apply to a single element.",
creator: Contributor.jasu.name,
tags: "combined, asymmetric",
view: FAnyView(P164_Transition())),
ItemData(id: 163, category: .study,
section: "Animation",
createDate: "2021-11-28",