Questions tagged [calendarkit]

For questions about CalendarKit - a Swift calendar UI library for Apple platforms.

CalendarKit is a fully customizable calendar library written in Swift. It was designed to look similar to the iOS Calendar app, but allow customization if needed. To make modifications easier, CalendarKit is composed of multiple small modules. They can be used together, or on their own.

41 questions
4
votes
1 answer

Can I use View Controller (CalendarKit) in SwiftUI application?

I want to use CalendarKit in my project github here It's written using UIKit, but my project uses SwiftUI. Can I use CustomCalendarExampleController in SwiftUI? (maybe via UIViewControllerRepresentable or smth else?) CustomCalendarExampleController…
3
votes
1 answer

Horizontal Calender with SwiftUI

I'm exploring my way through swift & swiftui trying to teach myself. My current challenge is to produce a horizontal calendar that scrolls on a single line with a week dynamically adding days as necessary. Something like the image, any pointers on…
user1465078
3
votes
0 answers

How to scroll to current time without any event in CalendarKit Swift

I'm not created any event and need to scroll current time like scroll working for first event.
Kundan
  • 31
  • 1
2
votes
0 answers

How to customize CalendarKit with WeekView?

I'm using the https://github.com/richardtop/CalendarKit library to show all events in the calendar. this library is amazing & it's working fine. Now, the problem is it's only available with Day View. In my project requirements are DayView &…
Ketan Odedra
  • 1,215
  • 10
  • 35
2
votes
2 answers

Can I resolve my toolchain version error with this package?

I am trying to use the following package in a project: https://github.com/richardtop/CalendarKit.git When I try adding the package via the Swift Package Manager, I get an error about toolchain versions (please see the pic below). I am using XCode…
spheroidic
  • 199
  • 7
2
votes
1 answer

Create new event in CalendarKit

In my app, I'm trying to add ability to create a new event with CalendarKit when I press an empty space, but I can't find how to do that. I know it's possible because you can do it in the demo app: I've tried adding this to my app's code: override…
Daisy the cat
  • 372
  • 3
  • 11
2
votes
1 answer

How to select event automatically while loading events? Like moveTo(date:), moveTo(event:) functionality available?

I am using this https://github.com/richardtop/CalendarKit library in my project. I just want to clarify one doubt which is required for my project implementation. Currently I am using this library in my project to load the calendar events. But now I…
1
vote
0 answers

How to add EventView to TimelinePagerView in CalendarKit?

I'm currently trying to create an app that uses the TimelinePagerView from the CalendarKit library, but I cannot add the EventView to the TimelinePagerView. How can I add an EventView to the TimelinePagerView? I will provide any information you…
Kawboy442
  • 11
  • 3
1
vote
1 answer

How to set the minimum and maximum date for dayview?

I want to show only current date with next 90 days.Not to enable other days.Also in scroll not to show the before start dates and after end dates. How to achieve in calender dayview with start date and end date? Also disable the selection for other…
Deva raj
  • 11
  • 2
1
vote
1 answer

Going from event editor back to calendar creates blacked out area near bottom

I've encountered this problem both in my own CalendarKit app as well as the sample app found here. The issue is that when I click on an event and enter the EKEventViewController and then navigate back, the calendar now looks like this:. Looking at…
1
vote
0 answers

Events are not loading Calendar with first APICall

I am using SwiftUI, UIKit and external library CalendarKit in my project. The problem is that events don't load while initializing on first load of calendar. When I change date in the in the nav, update event or create new event everything works…
XoliKnight
  • 61
  • 6
1
vote
0 answers

Events don't show on first, main view of calendar

I am using SwiftUI, UIKit and external library CalendarKit in my project. The problem is that events don't load (while initializing ) on first view ( first load ) of calendar ( the current day view ). When I change date in the NavBar, update event…
XoliKnight
  • 61
  • 6
1
vote
1 answer

How can i wait for data to be loaded from API and then create events in CalendarKit library

I have a problem with fetching data from API. The DayViewCalendar is creating View before events data is fetched from API. My main view is in SwiftUI struct CalendarScreen: View { @StateObject private var viewModel: ViewModel = ViewModel() …
XoliKnight
  • 61
  • 6
1
vote
1 answer

Consecutive events not stacking properly in calendar

I would like the events to fill the entire horizontal space. These events have no overlap, but strangely they are offset. Any ideas what might be causing this, and how I can make the events take up the entire horizontal space? I tried moving events…
1
vote
0 answers

Add isCompleted switch and track completed events

There is no story board to this library so where would I add a switch to add a isCompleted reference so I can store reoccurring events as completed or not. Any ideas thanks
1
2 3