Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,8 @@ dependencies: [

- Basic use: The parameters of `ACarousel` have default values, so you can simply pass in the data source and eat it ~
```swift
import ACarousel

struct Item: Identifiable {
let id = UUID()
let image: Image
Expand Down Expand Up @@ -97,6 +99,8 @@ var body: some View {
```swift
/// ...

import ACarousel

struct ContentView: View {

let items: [Item] = roles.map { Item(image: Image($0)) }
Expand Down