44
55An 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
@@ -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