You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+22-20Lines changed: 22 additions & 20 deletions
Original file line number
Diff line number
Diff line change
@@ -7,32 +7,34 @@
7
7
### 1. Create LoopPlayerView
8
8
9
9
```swift
10
-
LoopPlayerView(fileName: "swipe")
10
+
LoopPlayerView(fileName: "swipe")
11
11
```
12
12
13
13
or in declarative way
14
14
15
15
```swift
16
-
LoopPlayerView{
17
-
Settings{
18
-
FileName("swipe")
19
-
Ext("mp4")
20
-
Gravity(.resizeAspectFill)
21
-
ErrorGroup{
22
-
EText("Not found")
23
-
EFontSize(27)
24
-
}
16
+
LoopPlayerView{
17
+
Settings{
18
+
FileName("swipe")
19
+
Ext("mp4")
20
+
Gravity(.resizeAspectFill)
21
+
ErrorGroup{
22
+
EText("Not found")
23
+
EFontSize(27)
25
24
}
26
-
}
27
-
28
-
LoopPlayerView{
29
-
Settings{
30
-
FileName("swipe")
31
-
Ext("mp4")
32
-
Gravity(.resizeAspectFill)
33
-
EFontSize(27)
34
-
}
35
-
}
25
+
}
26
+
}
27
+
```
28
+
29
+
```swift
30
+
LoopPlayerView{
31
+
Settings{
32
+
FileName("swipe")
33
+
Ext("mp4")
34
+
Gravity(.resizeAspectFill)
35
+
EFontSize(27)
36
+
}
37
+
}
36
38
```
37
39
If you add any setting twice or more the first one only will be applied
38
40
You can group error settings in group **ErrorGroup** or just pass all settings as a linear list of settings. You don't need to follow some specific order for settings, just pass in arbitrary oder settings you are interested in. The only required setting is **FileName**.
0 commit comments