Latest 0.0.1
Homepage https://github.com/ramotion/cardslider
License MIT
Platforms ios 11.0

header

CardSlider

Card Slider

Twitter
Donate

About

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

Inspired by Charles Patterson shot

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


CardSlider

The iPhone mockup available here.

Requirements

  • iOS 11.0+
  • Xcode 10.0+

Installation

Use CocoaPods with Podfile:

pod 'CardSlider'

or Carthage users can simply add Mantle 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)

Licence

CardSlider is released under the MIT license.
See LICENSE for details.

Get the Showroom App for iOS to give it a try

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


CardSlider


CardSlider

Follow us for the latest updates

CardSlider

Latest podspec

{
    "name": "CardSlider",
    "version": "0.0.1",
    "summary": "UI control from Ramotion",
    "description": "Custom UICollectionView with transition",
    "homepage": "https://github.com/ramotion/cardslider",
    "license": "MIT",
    "authors": "J. Vasilenko",
    "social_media_url": "https://twitter.com/Ramotion",
    "source": {
        "git": "https://github.com/Ramotion/cardslider.git",
        "tag": "0.0.1"
    },
    "platforms": {
        "ios": "11.0"
    },
    "source_files": "CardSlider/**/*.{swift}",
    "resource_bundles": {
        "CardSlider": [
            "CardSlider/**/*.{storyboard,.xcassets}"
        ]
    }
}

Pin It on Pinterest

Share This