Popularity
7.5
Stable
Activity
0.0
Stable
1,264
35
103

Description

Cardslider is a design UI controller that allows you to swipe through cards with pictures and accompanying descriptions.

This project is maintained by Ramotion, Inc. We specialize in the designing and coding of custom UI for Mobile Apps and Websites.

Programming language: Swift
License: MIT License
Tags: Animation     UI     Transition     iOS     Slider     UICollectionView    
Latest version: v0.1.0

Card Slider alternatives and similar libraries

Based on the "UICollectionView" category.
Alternatively, view Card Slider alternatives based on common mentions on social networks and blogs.

Do you think we are missing an alternative of Card Slider or a related project?

Add another 'UICollectionView' Library

README

CARD SLIDER

UI controller that allows you to swipe through cards with pictures.


We specialize in the designing and coding of custom UI for Mobile Apps and Websites. Stay tuned for the latest updates:

Inspired by Charles Patterson shot

Twitter Donate

Requirements

  • iOS 11.0+
  • Xcode 10.0+

Installation

Use CocoaPods with Podfile:

pod 'CardSlider'

or Carthage users can simply add CardSlider to their Cartfile:

github "Ramotion/CardSlider"

Then import the module in your code:

import CardSlider

Usage

1) Declare a card model, implementing CardSliderItem protocol:

public protocol CardSliderItem {
    var image: UIImage { get }
    var rating: Int? { get }
    var title: String { get }
    var subtitle: String? { get }
    var description: String? { get }
}

2) Implement CardSliderDataSource methods in your class:

public protocol CardSliderDataSource: class {
    func item(for index: Int) -> CardSliderItem
    func numberOfItems() -> Int
}

3) Create an instance of CardSliderViewController with the data source:

guard let dataSource = someObject as? CardSliderDataSource else { return }
let cardSlider = CardSliderViewController.with(dataSource: dataSource)

4) Set the title and present:

cardSlider.title = "Movies"
present(cardSlider, animated: true, completion: nil)

📄 License

Card Slider is released under the MIT license. See [LICENSE](./LICENSE) for details.

This library is a part of a selection of our best UI open-source projects.

If you use the open-source library in your project, please make sure to credit and backlink to www.ramotion.com

📱 Get the Showroom App for iOS to give it a try

Try this UI component and more like this in our iOS app. Contact us if interested.


*Note that all licence references and agreements mentioned in the Card Slider README section above are relevant to that project's source code only.