From 4b3a16c24bf0a970b1ee875639dca600af354e57 Mon Sep 17 00:00:00 2001 From: Oluotanmi Emmanuel Date: Wed, 31 Jan 2024 17:10:16 +0100 Subject: [PATCH] Update README.md --- README.md | 4 ++++ 1 file changed, 4 insertions(+) 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)) }