欢迎光临
我们一直在努力

Card Slider

建站超值云服务器,限时71元/月

Card Slider

项目介绍:

Card Slider AboutThis project is maintained by Ramotion, Inc.
We specialize in the designing and coding of custom UI for Mobile Apps and Websites.
Inspired by Charles Pattersonshot 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.

Requirements

  • iOS 11.0+
  • Xcode 10.0+

InstallationUse CocoaPods with Podfile: pod ‘CardSlider’Or Carthage users can simply add Mantle to their :   Cartfilegithub "Ramotion/CardSlider"Then import the module in your code:Import CardSlider
Usage

  • Declare a card model, implementing protocol: CardSliderItem

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

  • Implement methods in your class: CardSliderDataSource

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

  • Create an instance of with the data source: CardSliderViewController

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

  • Set the title and present:

cardSlider. title  = " Movies " present (cardSlider, animated : true , completion : nil )
LicenceCardSlider is released under the MIT license. See LICENSE for details. Get the Showroom App for iOS to give it a tryTry more UI components like this in our iOS app. Contact us if interested.

Follow us for the latest updates

赞(0)
版权申明:本站文章部分自网络,如有侵权,请联系:west999com@outlook.com 特别注意:本站所有转载文章言论不代表本站观点! 本站所提供的图片等素材,版权归原作者所有,如需使用,请与原作者联系。未经允许不得转载:IDC资讯中心 » Card Slider
分享到: 更多 (0)