diff --git a/README.md b/README.md index cd7d0cf..e5ffe09 100644 --- a/README.md +++ b/README.md @@ -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 @@ -97,6 +99,8 @@ var body: some View { ```swift /// ... +import ACarousel + struct ContentView: View { let items: [Item] = roles.map { Item(image: Image($0)) }