ACarousel
A carousel view for SwiftUI.
Requirements
- iOS 13.0+ / macOS 10.15+ / tvOS 13.0+
- Xcode 11.0+
- Swift 5.1+
Install
Swift Package Manager
Open Xcode
, go to File -> Swift Packages -> Add Package Dependency
and enter https://github.com/JWAutumn/ACarousel
You can also add ACarousel
as a dependency to your Package.swift
:
Manually
Download and open the project, drag the ACarousel.swift
file into your own project.
Usage
- Basic use: The parameters of
ACarousel
have default values, so you can simply pass in the data source and eat it ~
- Customize configuration: You can configure the corresponding parameters to customize the display style according to your needs.
Example
Download and open ACarouselDemo -> ACarouselDemo.xcodeproj
, run and view.