Questions tagged [calendarkit]
For questions about CalendarKit - a Swift calendar UI library for Apple platforms.
40
questions
1
vote
1
answer
21
views
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,...
1
vote
0
answers
22
views
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, ...
1
vote
0
answers
32
views
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 ). ...
1
vote
1
answer
45
views
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 ...
1
vote
1
answer
23
views
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 ...
1
vote
0
answers
17
views
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
vote
1
answer
150
views
You must use [EKEvent eventWithEventStore:] to create an event
I have used CalenderKit on my app. I have 2 types of users my goal is to collect calender data from targeted type and reflect it to other targeted type.
First type went quite well, I have collected ...
0
votes
0
answers
29
views
How to use a 'private'/sandboxed/in-app data source for CalendarKit instead of accessing users actual calendar?
I'm creating an app which uses a calendar as part of its functionality and have been looking at CalendarKit (https://github.com/richardtop/CalendarKit). From what I understand it interfaces with the ...
2
votes
0
answers
244
views
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 ...
0
votes
1
answer
56
views
Unable to create new event using CalendarKit when following online tutorial
Please note that I am attempting to add an appointment on an iPhone 13 Pro Max simulator, where I am not able to create a new event using XCode 13.
I have been basing my code on this sample,
https://...
1
vote
1
answer
142
views
Unable to create new event using CalendarKit
Please note that I am attempting to add an appointment on an iPhone 13 Pro Max simulator, where I am not able to create a new event using XCode 13.
I have been basing my code on this sample,
https://...
1
vote
0
answers
167
views
How to assign different color to different event in Calendar Kit in iOS Swift
I want to achieve a task in which i want to add different colors for different events using Calendar Kit pod.
0
votes
0
answers
42
views
Is it possible to filter weekends dates from CalendarKit
I want to use the CalendarKit, but I need it to not show weekends in the calendar. Wanted to ask experienced users if this is even possible. I tried to edit the package code itself for myself, but it ...
1
vote
1
answer
291
views
UIKit: How can i resize a Viewcontroller to fit splitview primary column?
In my UIKit App i am using a UISplitViewController() as my rootViewController. I configure it in my SceneDelegate like this:
var splitView: UISplitViewController?
func scene(_ scene: UIScene, ...
2
votes
2
answers
192
views
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 ...
1
vote
1
answer
117
views
UISplitViewController - doubleColumn Style not working
In my app, i am using a UISplitViewController like this:
let splitViewController = UISplitViewController()
splitViewController.preferredDisplayMode = .oneBesideSecondary
splitViewController....
1
vote
0
answers
61
views
How can i execlude subview from parent clip in UIKit?
In my iOS App, i am using CalendarKit, a Framework to create a full-featured Calendar. I want to modify the EventView to add rounded corners. To do that, i configure the EventView Class like this:
...
3
votes
1
answer
1k
views
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 ...
1
vote
0
answers
1k
views
Build iOS Calendar like Day View using scrollview or collectionview
I've been trying to bring my app to iPad, and i wanted to implement a day view like there is in the iOS Calendar.
I found some awesome libraries on GitHub, which do almost everything i want, the ...
1
vote
0
answers
54
views
Not getting selected event when eventsWillOverlap is true
I am using Calenderkit (https://github.com/richardtop/CalendarKit)in my project.
I am unable to get selected event obj data in delegate method when eventsWillOverlap is true.
getting correctly if ...
1
vote
1
answer
109
views
Create event across days in CalendarKit
Is it possible to create an event with a different start date and time and end date and time?
Example
start date is 2021-04-15 23:00
end date is 2021-04-16 02:00
3
votes
0
answers
73
views
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.
1
vote
1
answer
126
views
How to change the value of y in CalendarKit?
I use the CalendarKit cocoapods
I want to have a space between date view and timeline view.
But I only find a way that is changing the y value in the code below
override public func layoutSubviews() {
...
1
vote
1
answer
113
views
How to put date into navigation title?
I am studying on swift, and I have a project using CalendarKit.
I want to put date into navigation title so that can change current date while swiping.
But I have no idea on it...
1
vote
1
answer
268
views
CalendarKit SwiftUI Events
Having trouble adding events, using CalendarKit. Trying to plot a testing event and it does not display. Docs say that CalendarKit requires an CalendarKit requires EventDataSource to return an array ...
1
vote
1
answer
2k
views
Value of type 'Date' has no member 'format' & Value of type 'Date' has no member 'hours'
I have added CalendarKit in my project using swift package Manager, I tried with cocoapods as well but still I am getting the below errors:
I have added import CalendarKit as well.
1) Value of type '...
1
vote
0
answers
162
views
How to call DayViewController's create event from SwiftUI
I have followed this stackoverflow answer to bridge a custom DayViewController with a SwiftUI view. And it is all working great. Except, when I need to create a new event I open up a .sheet() to let ...
2
votes
1
answer
416
views
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'...
1
vote
1
answer
105
views
Is there a way to change date from another struct using CalendarKit?
I'm using CalendarKit and SwiftUI. I need to create "Today" button and Date Picker to select date, but I didn't foudn any solution, so is there a way to change the date or call somethign ...
1
vote
1
answer
605
views
CalendarKit Implementation Basics
I'm working on an app that needs a Calendar section, and CalendarKit looks really great from the preview images. However, I'm new to Swift and not sure exactly how to work with it. I've installed the ...
2
votes
1
answer
66
views
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 ...
1
vote
0
answers
127
views
Detect user interaction with a view using UIGestureDetector
I need to determine if the user is holding his finger on the view or has released it. Ideally, I need an UIGestureRecognizer that will register touch start and end events, but without preventing ...
3
votes
1
answer
1k
views
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 ...
1
vote
1
answer
81
views
CalendarKit - EventView has no member data
I've tried to replicate the "Usage" section of CalendarKit's documentation and I simply can't get the EventView.data when the user selects an EventView.
My controller conforms to ...
1
vote
1
answer
162
views
Can't get a Navigation item with CalendarKit
I've tried to get it to work like so:
class CalendarViewController: DayViewController {
override func viewDidLoad() {
super.viewDidLoad()
title = "CalendarKit Demo"
...
1
vote
0
answers
300
views
CalendarKit usage issue 'pod frameworks' and 'no such module' in Xcode
Does anyone know how to fix this issue?
It is a new project file with just this code and I try to build it.
From: http://cocoadocs.org/docsets/CalendarKit/0.1.7/
Image Pods red :
import UIKit
...
1
vote
0
answers
163
views
fetching data in calendarkit from json file
override func eventsForDate(_ date: Date) -> [EventDescriptor] {
var models = Model.shared.appoinmentProfessional
for model in models{
// Create new EventView
...
1
vote
1
answer
94
views
Issues with height/width properties after uninstalling CalendarKit
I recently removed the line
pod 'CalendarKit', '~>0.5.0' from my podfile in an ios project.
I then ran pod deintegrate and then reinstalled all the pods. However, Now, I'm getting a bunch of ...
1
vote
2
answers
2k
views
CalendarKit Issue with the Date Scroll Bar - Swift
I've been having issues with using JT Apple Calendar to select a date to display in CalendarKit. The label will display the proper date, but the date selector above it, does not reflect the date that ...
0
votes
2
answers
238
views
Unable to install pod 'CalendarKit', '0.1.22' in Swift 3 and Xcode 8.3.3
The GitHub page for CalendarKit specifies that the setting for Swift 3 is:
pod 'CalendarKit', '0.1.22'
but that throws an error:
[!] Unable to satisfy the following requirements:
- CalendarKit (...