Skip to content

Commit f3cc0ad

Browse files
committed
Merge remote-tracking branch 'refs/remotes/origin/main'
2 parents c95fb3c + 1ff5454 commit f3cc0ad

File tree

1 file changed

+15
-15
lines changed

1 file changed

+15
-15
lines changed

README.md

Lines changed: 15 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -4,18 +4,18 @@
44

55
An infinite caurrsel made for SwiftUI, compatible with iOS 14+. Easy to use and customizable.
66

7-
7+
https://user-images.githubusercontent.com/71818002/183007353-7f6cce02-1c81-40c8-a3fd-e64c194742fc.mp4
88

99
## Features
1010

1111
- Infinite elements
1212
- Custom transitions beetwen pages
1313
- Timer to display a number of seconds per element
14-
- iOS +14 compatibility.
14+
- iOS +14 compatibility
1515

1616
## Install
1717

18-
### Swift Package manager
18+
### Swift Package Manager
1919

2020
```
2121
https://github.com/dancarvajc/SwiftUIInfiniteCarousel.git
@@ -24,19 +24,19 @@ https://github.com/dancarvajc/SwiftUIInfiniteCarousel.git
2424
## Example
2525

2626
```swift
27-
let elements: [String] = ["Data 1","Data 2","Data 3","Data 4"]
28-
var body: some View {
29-
ZStack {
30-
Color(red: 0/255, green: 67/255, blue: 105/255)
31-
.ignoresSafeArea()
32-
InfiniteCarousel(data: elements, height: 300, cornerRadius: 15, transition: .scale) { element in
33-
Text(element)
34-
.font(.title.bold())
35-
.foregroundColor(Color(red: 1/255, green: 148/255, blue: 154/255))
36-
.frame(maxWidth: .infinity, maxHeight: .infinity)
37-
.background( Color(red: 229/255, green: 221/255, blue: 200/255))
38-
}
27+
let elements: [String] = ["Data 1","Data 2","Data 3","Data 4"]
28+
var body: some View {
29+
ZStack {
30+
Color(red: 0/255, green: 67/255, blue: 105/255)
31+
.ignoresSafeArea()
32+
InfiniteCarousel(data: elements, height: 300, cornerRadius: 15, transition: .scale) { element in
33+
Text(element)
34+
.font(.title.bold())
35+
.foregroundColor(Color(red: 1/255, green: 148/255, blue: 154/255))
36+
.frame(maxWidth: .infinity, maxHeight: .infinity)
37+
.background( Color(red: 229/255, green: 221/255, blue: 200/255))
3938
}
4039
}
40+
}
4141
```
4242

0 commit comments

Comments
 (0)