Skip to content

Commit 53ebd02

Browse files
committed
Update README.md
1 parent 5717110 commit 53ebd02

File tree

1 file changed

+22
-20
lines changed

1 file changed

+22
-20
lines changed

README.md

Lines changed: 22 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -7,32 +7,34 @@
77
### 1. Create LoopPlayerView
88

99
```swift
10-
LoopPlayerView(fileName: "swipe")
10+
LoopPlayerView(fileName: "swipe")
1111
```
1212

1313
or in declarative way
1414

1515
```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)
2524
}
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+
}
3638
```
3739
If you add any setting twice or more the first one only will be applied
3840
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

Comments
 (0)