Skip to content

Singlerow -- Single Row -- WeekView -- week view calendar setup #581

Description

@patchthecode

The correct setup for (most) Single row calendar is what you see below.

        let parameters = ConfigurationParameters(startDate: startDate,
                                                 endDate: endDate,
                                                 numberOfRows: 1,
                                                 generateInDates: .forFirstMonthOnly,
                                                 generateOutDates: .off,
                                                 hasStrictBoundaries: false)

Setting it up this way causes the inDates, to create an "offSet" which causes the other days/dates to be properly aligned.
Also, if you do not set it up this way, and you do NOT have generateOutDates set to off, you will see the outDates generated and you will begin to think that your calendar is showing dates twice. And then you'll create an issue telling me that there's a bug. And Then i'll have to create explanations like this :)

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions