Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

CVCalendar rendering all views on Sunday. #398

Closed
3 tasks done
JonathanLu2393 opened this issue Dec 8, 2016 · 1 comment
Closed
3 tasks done

CVCalendar rendering all views on Sunday. #398

JonathanLu2393 opened this issue Dec 8, 2016 · 1 comment

Comments

@JonathanLu2393
Copy link

JonathanLu2393 commented Dec 8, 2016

  • I have verified there are no duplicate active or recent bugs, questions, or requests
  • I have verified that I am using the latest version of CVCalendar.
  • I have given my issue a non-generic title.

Expected Behavior

Im expecting a pink box to render on selected dates.

Current Behavior

They all render on Sunday, the left most day of the week, sometimes over lapping.

Steps to Reproduce (for bugs)

func preliminaryView(viewOnDayView dayView: DayView) -> UIView {
    let circleView = CVAuxiliaryView(dayView: dayView, rect: dayView.bounds, shape: CVShape.rect)
    circleView.fillColor = availabilityColor
    return circleView
}

func preliminaryView(shouldDisplayOnDayView dayView: DayView) -> Bool {
    
    if (Int(arc4random_uniform(3)) == 1) {
        return true
    }
    
    return false
}

screen shot 2016-12-07 at 4 56 33 pm

Context

This was working on the previous version of CVCalendar, however the update has broke it.

Also the code:
func didSelectDayView(_ dayView: CVCalendarDayView, animationDidFinish: Bool) {
}

is working fine. So only the rendering is off.

Your Environment

This was done on the lastest version of Xcode (8.1), lastest version of CVCalendar installed through cocoapods.

@JonathanLu2393
Copy link
Author

Nvm, for our view it should of been dayView.frame instead of dayView.bounds

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant