kvyatkovskys / KVKCalendar

A most fully customization calendar for Apple platforms 📅
https://kvyatkovskys.github.io/KVKCalendar/
MIT License
545 stars 120 forks source link

When working in SwiftUI, I am having trouble with event creation. I longpress on the screen to create an event, but when I let go, the event disappears. #332

Open mdvorman opened 1 year ago

mdvorman commented 1 year ago

Describe the bug A clear and concise description of what the bug is.

To Reproduce Steps to reproduce the behavior:

  1. Go to '...'
  2. Click on '....'
  3. Scroll down to '....'
  4. See error

Expected behavior A clear and concise description of what you expected to happen.

https://github.com/kvyatkovskys/KVKCalendar/assets/115586957/e81d6f51-46bb-4ccb-93bb-469b9d9d7f11

Screenshots If applicable, add screenshots to help explain your problem.

Additional context Add any other context about the problem here.

kvyatkovskys commented 1 year ago

@mdvorman Thx for the issue!

I'll check and try to fix the problem.

kvyatkovskys commented 1 year ago

@mdvorman I checked the issue and all works fine for me. can you provide more details, pls?

mdvorman commented 1 year ago

Can you share the code you are using for SwiftUI? I'm using the files from the README.md and the 0.6.19 Version

kvyatkovskys commented 1 year ago

The сode is the same as for SwiftUI example in the project 🤔

mdvorman commented 1 year ago

I think the SwiftUI example is just a little confusing because it references files from the UIKit example in the line:

final class CalendarViewModel: ObservableObject, KVKCalendarSettings, KVKCalendarDataModel

Should I be including all UIKit files in my SwiftUI integration?