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

Project warning, unused capture dayview #218

Closed
simonmcl opened this issue Jan 25, 2016 · 3 comments
Closed

Project warning, unused capture dayview #218

simonmcl opened this issue Jan 25, 2016 · 3 comments

Comments

@simonmcl
Copy link

Code has introduced a warning to my project. Inside CVCalendarViewAnimator, line 35, there is an unused capture "dayView"

public func animateSelectionOnDayView(dayView: DayView) {
        let selectionAnimation = delegate.selectionAnimation()
        dayView.setSelectedWithType(.Single)
        selectionAnimation(dayView) { [unowned dayView] _ in
            // Something...
        }
    }
@elsesiy
Copy link
Member

elsesiy commented Feb 1, 2016

@simonmcl Yes we noticed that as well. Might clean the warning sometime soon :)

@elsesiy elsesiy closed this as completed Feb 1, 2016
@drieran
Copy link

drieran commented Feb 18, 2016

Please clean up this warning. It's easy:
let _ = dayView

@danielvivek2006
Copy link

let _ = dayView throws an error saying "attempted to retain deallocated object" in swift 3.0 and
'CVCalendar', '1.4.1'
screen shot 2017-03-27 at 15 40 18

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

4 participants