Skip to content

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

@patchthecode

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 :)

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