Giter VIP home page Giter VIP logo

xamarin.ios.icarousel's Introduction

Build Status NuGet

Xamarin.iOS.iCarousel

This is a Xamarin iOS Binding for the iCarousel library.

A simple, highly customisable, data-driven 3D carousel for iOS.

Demo



Usage

  1. Install NuGet package.
  2. Add the iCarousel to your layout:
var carousel = new iCarousel
{
    Bounds = View.Bounds,
    ContentMode = UIViewContentMode.Center,
    Type = iCarouselType.CoverFlow2,
    Frame = View.Frame,
    CenterItemWhenSelected = true,
    DataSource = new SimpleDataSource(items),
    Delegate = new SimpleDelegate(this)
};

View.AddSubview(carousel);
ViewDidLayoutSubviews();




  • Open the sample project for a detailed working example.

IMPORTANT NOTE:

When overriding one of the following methods from iCarouselDataSource and iCarouselDelegate, you must remove the base.xxx() call or it will throw Foundation.You_Should_Not_Call_base_In_This_Method. This is due a requirement from optional objective C methods implemented in C#.

Carousel Types

iCarousel supports the following built-in display types:

  • iCarouselTypeLinear
  • iCarouselTypeRotary
  • iCarouselTypeInvertedRotary
  • iCarouselTypeCylinder
  • iCarouselTypeInvertedCylinder
  • iCarouselTypeWheel
  • iCarouselTypeInvertedWheel
  • iCarouselTypeCoverFlow
  • iCarouselTypeCoverFlow2
  • iCarouselTypeTimeMachine
  • iCarouselTypeInvertedTimeMachine
  • iCarouselDataSource
  • NumberOfPlaceholdersInCarousel
  • PlaceholderViewAtIndex
  • iCarouselDelegate
  • CarouselWillBeginScrollingAnimation
  • CarouselDidEndScrollingAnimation
  • CarouselDidScroll
  • CarouselCurrentItemIndexDidChange
  • CarouselWillBeginDragging
  • CarouselDidEndDragging
  • CarouselWillBeginDecelerating
  • CarouselDidEndDecelerating
  • ShouldSelectItemAtIndex
  • DidSelectItemAtIndex
  • CarouselItemWidth
  • ItemTransformForOffset
  • ValueForOption

Please check the original README for more information.

License

MIT Licence

xamarin.ios.icarousel's People

Contributors

jzeferino avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

xamarin.ios.icarousel's Issues

MTOUCH: warning MT5203

MTOUCH: warning MT5203: Native linking warning: warning: object file (/obj/iPhone/Release/mtouch-cache/libiCarouselStaticLibraryiOS.a(iCarousel-3603258B58952424.o)) was built for newer iOS version (10.2) than being linked (8.1)

MTOUCH: warning MT5203: Native linking warning: warning: object file (obj/iPhone/Release/mtouch-cache/libiCarouselStaticLibraryiOS.a(iCarouselStaticLibraryiOS_vers.o)) was built for newer iOS version (10.2) than being linked (8.1)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.