Code Monkey home page Code Monkey logo

infinitecalendar's People

Contributors

shohe avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

infinitecalendar's Issues

Remove grid outside of timeRange

I'd love to use this to create a schedule for work. Is there any way to set the timeRange parameter (say (8, 22)) and it populates the timeline for only those times?

For example, being able to remove all of the blank hour lines above 8:00 in the image below?

Simulator Screenshot - iPad Pro (11-inch) (4th generation) - 2023-06-02 at 19 53 41

Thank you! Amazing work, either way!

Bug

Demo Bug reproduction steps:

  1. Start, switch to 3 days display
  2. Create an event at will, and then switch to weekly display
  3. Swipe left, the next page cannot be displayed normally, please see the attachment
    Simulator Screenshot - iPhone 15 Pro - 2023-12-18 at 09 34 14

Scrolling through days and changing views, then scrolling more and then tapping current day icon causes crash.

@shohe
If you start with the daily view, then scroll a few days forward, then scroll back and then change to weekly view, then scroll more, up and down, then change view to 3 days, then day, then back to weekly and tap the current day icon, it will cause out of index range crash.
`// MARK: - ICViewFlowLayoutDelegate
public func collectionView(_ collectionView: UICollectionView, layout: ICViewFlowLayout, dayForSection section: Int) -> Date {
return getDateForSection(section)
}

public func collectionView(_ collectionView: UICollectionView, layout: ICViewFlowLayout<Settings>, startTimeForItemAtIndexPath indexPath: IndexPath) -> Date {
    let date = layout.date(forDateHeaderAt: indexPath)
    
    if let events = events[date] {
        return events[indexPath.item].intraStartDate
    } else {
        print("Connot get events at \(date)")
        return Date()
    }
}`

Screenshot 2023-02-22 at 9 32 28 PM

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.