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

delete event #9

Open
PransiK opened this issue Aug 12, 2017 · 1 comment
Open

delete event #9

PransiK opened this issue Aug 12, 2017 · 1 comment

Comments

@PransiK
Copy link

PransiK commented Aug 12, 2017

Is there any way to remove event from the view?

@ccortessanchez
Copy link

You need to do some editing to WRWeekView. I added the next function to the events mark:
public func removeEvent(event: WREvent) {
events = events.filter() { $0 !== event }
forceReload(true)
}

Then in your ViewController WRWeekViewDelegate extension, add
func selectEvent(_ event: WREvent) {
weekView.removeEvent(event: event)
}

You need to hold the event cell instead of just tapping in it in order to make selectEvent function work.

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

2 participants