Latest 0.1.1
Homepage https://github.com/SaiNaveenMagatala/DayView
License MIT
Platforms ios 11.0
Frameworks UIKit
Authors

CI Status
Version
License
Platform

Example

To run the example project, clone the repo, and run pod install from the Example directory first.

Requirements

iOS 11+, XCode 9+

Usage

DayView

Overview

  • Dayview displays days and corresponding date in a collection view below it with infinite scroll, paging is enabled and only fetches data as you scroll through.
  • As the view loads the collection view fetches three weeks, current week, previous week and the next week and fetches later weeks as we scroll through.
  • Initially the collection view scrolls to the current week and highlights current day.
  • Leaving collection view as public to customize colors.
  • Please never set the delegate or data source of collection view indise the dayView, just use the delegate thats available directly on the dayView, the delegate currently only works with two methods
func collectionView(_ collectionView: UICollectionView, didSelectItemAt indexPath: IndexPath)

func collectionView(_ collectionView: UICollectionView, didEndDisplaying cell: UICollectionViewCell, forItemAt indexPath: IndexPath)
  • Some other required methods can be exposed based on future requirement.

Installation

DayView is available through CocoaPods. To install
it, simply add the following line to your Podfile:

pod 'DayView'

Author

NaveenMagatala, [email protected]

License

DayView is available under the MIT license. See the LICENSE file for more info.

Latest podspec

{
    "name": "DayView",
    "version": "0.1.1",
    "summary": "A view which displays days and corresponding date in a collection view below it with infinite scroll.",
    "swift_version": "4.2",
    "description": "* A view which displays days and corresponding date in a collection view below it with infinite scroll, paging is enabled and only fetches data as you scroll through.n* As the view loads the collection view fetches three weeks current week, previous week and the next weeknand fetches later weeks as we scroll through.n* Initially the collection view scrolls to the current week and highlights current day.",
    "homepage": "https://github.com/SaiNaveenMagatala/DayView",
    "license": {
        "type": "MIT",
        "file": "LICENSE"
    },
    "authors": {
        "NaveenMagatala": "[email protected]"
    },
    "source": {
        "git": "https://github.com/SaiNaveenMagatala/DayView.git",
        "tag": "0.1.1"
    },
    "platforms": {
        "ios": "11.0"
    },
    "source_files": "DayView/Classes/**/*",
    "frameworks": "UIKit"
}

Pin It on Pinterest

Share This