All Projects → CoderHuiYu → MMAdvertScrollView

CoderHuiYu / MMAdvertScrollView

Licence: MIT license
一个简单、轻量级的swift版公告轮播框架

Programming Languages

swift
15916 projects
ruby
36898 projects - #4 most used programming language

Projects that are alternatives of or similar to MMAdvertScrollView

DailyNews
Daily News is a news app with good looking user interface ! Apps architecture is MVVM and used RxSwift for binding.
Stars: ✭ 31 (-26.19%)
Mutual labels:  collectionview, swift5
Pinterestlayout
Custom collection view layout inspired by Pinterest layout. Written in Swift.
Stars: ✭ 219 (+421.43%)
Mutual labels:  collectionview
Collectionview
An easy to use, highly customizable replacement for NSCollectionView.
Stars: ✭ 107 (+154.76%)
Mutual labels:  collectionview
Infinitescrolling
Add infinite scrolling to collection view.
Stars: ✭ 156 (+271.43%)
Mutual labels:  collectionview
Pull To Refresh
ESPullToRefresh is developed and maintained by Vincent Li. If you have any questions or issues in using ESPullToRefresh, welcome to issue. If you want to contribute to ESPullToRefresh, Please submit Pull Request, I will deal with it as soon as possible.
Stars: ✭ 1,591 (+3688.1%)
Mutual labels:  collectionview
Zkcarousel
A simple carousel implementation written in Swift
Stars: ✭ 163 (+288.1%)
Mutual labels:  collectionview
Cardsstack
An awesome set of cards at your disposal ✌️ ⚡️
Stars: ✭ 97 (+130.95%)
Mutual labels:  collectionview
Rxdatasources
UITableView and UICollectionView Data Sources for RxSwift (sections, animated updates, editing ...)
Stars: ✭ 2,784 (+6528.57%)
Mutual labels:  collectionview
Swipetableview
Both scroll horizontal and vertical for segment scrollview which have a same header. — 类似半糖、美丽说主页与QQ音乐歌曲列表布局效果,实现不同菜单的左右滑动切换,同时支持类似tableview的顶部工具栏悬停(既可以左右滑动,又可以上下滑动)。兼容下拉刷新,自定义 collectionview实现自适应 contentSize 还可实现瀑布流功能
Stars: ✭ 2,252 (+5261.9%)
Mutual labels:  collectionview
Rxrealmdatasources
An easy way to bind an RxRealm observable to a table or collection view
Stars: ✭ 154 (+266.67%)
Mutual labels:  collectionview
Squareflowlayout
🌄 UICollectionViewLayout subclass inspired by Instagram Discover page style layout.
Stars: ✭ 142 (+238.1%)
Mutual labels:  collectionview
Planadscrollview
使用CollectionView实现的轮播图,丝滑的流畅,支持网络图片和本地图片轮播,混合也是支持的!
Stars: ✭ 117 (+178.57%)
Mutual labels:  collectionview
Vbpiledview
Simple and beautiful stacked UIView to use as a replacement for an UITableView, UIImageView or as a menu
Stars: ✭ 164 (+290.48%)
Mutual labels:  collectionview
Rxasdatasources
RxDataSource for AsyncDisplayKit/Texture
Stars: ✭ 114 (+171.43%)
Mutual labels:  collectionview
Async Expandable List
Stars: ✭ 221 (+426.19%)
Mutual labels:  collectionview
Wbcollectionviewlayout
Library used to provide different type of custom Layouts within 30 second of time
Stars: ✭ 105 (+150%)
Mutual labels:  collectionview
Jxsegmentedview
A powerful and easy to use segmented view (segmentedcontrol, pagingview, pagerview, pagecontrol, categoryview) (腾讯新闻、今日头条、QQ音乐、网易云音乐、京东、爱奇艺、腾讯视频、淘宝、天猫、简书、微博等所有主流APP分类切换滚动视图)
Stars: ✭ 1,905 (+4435.71%)
Mutual labels:  collectionview
Collectionviewslantedlayout
A CollectionView Layout displaying a slanted cells
Stars: ✭ 2,029 (+4730.95%)
Mutual labels:  collectionview
Reactivelists
React-like API for UITableView & UICollectionView
Stars: ✭ 250 (+495.24%)
Mutual labels:  collectionview
Compositionaldiffableplayground.ios
Examples showing Compositional Layout, Diffable Data Sources and more!
Stars: ✭ 229 (+445.24%)
Mutual labels:  collectionview

MMAdvertScrollView

一个轻量级、简单易用的公告轮播组件

2981628157219_

The realization principle of cyclic rolling

collectionView has 2 sections

start --> indexPath(0, 0) --> indexPath(1, 0) --> indexPath(2, 0) --> ... --> indexPath(n-1, 0) --> indexPath(0, 1) --> indexPath(1, 0)--> indexPath(2, 0)

MMadverstScrollView

image & gif:

1.How to use MMAdvertScrollView

  • Installation with CocoaPods:pod 'MMAdvertScrollView', '~> 1.2.1'
 var timeInterval: TimeInterval = 3.0 // 滚动间隔默认为3秒
 var scrollDirection: UICollectionView.ScrollDirection = .vertical //默认滚动方向为竖向

You can use like this

 let m1 = MMAdvertScrollView(frame: CGRect(x: 0, y: 135, width: UIScreen.main.bounds.width, height: 40))
 m1.dataArray = ["恭喜xx,完成了数据管理能力测评。" ,"恭喜xxxxxxxxxxxxxx,完成实名认证。"]
 view.addSubview(m1)

2.This framework supports custom views

public protocol MMAdvertScrollCustomerViewDelegate: AnyObject{

    func customerViewDataArrayCount() -> Int
    func customViewConfigure(numberOfItems item: Int, cycleView view: MMAdvertScrollView) -> UIView
    func collectionView(_ cycleView: MMAdvertScrollView, didSelectItemAt indexItem: Int) 
    
}

you can refer to CustomerView

extension CustomerView: MMAdvertScrollCustomerViewDelegate {
    func customViewConfigure(numberOfItems item: Int, cycleView view: MMAdvertScrollView) -> UIView {
        let view = VipView()
        view.title = dataArray[item]
        return view
    }

    func customerViewDataArrayCount() -> Int {
        return dataArray.count
    }
}

Remind

  • ARC
  • iOS>=11.0

If you have any questions

If you have any questions, you can email to me:[email protected]

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].