shoheiyokoyama / koyomi Goto Github PK
View Code? Open in Web Editor NEWSimple customizable calendar component in Swift :calendar:
License: MIT License
Simple customizable calendar component in Swift :calendar:
License: MIT License
Thanks for this great library.
It's really amazing how I can customize it as I need.
But I have a problem how to disoplay a whole year?
I need establish Monday like first week day, It's possible??
Is there any way to disable all the previous dates and for some specific dates.
How can we set color for the days before today.
Heya, I was wondering if there is a way to set some days of the calendar disabled, and that they also look disabled, like grayed out.
I don't mean using shouldSelectDates
I mean showing for example the 12th and 13th and 20th to lok lie the 25th of the previous month.
I try searching but I didn't found anything.
Thanks!
we need to let a user tap on a day/date. eg. they tap on Wednesday. then we need to get (1) the previous saturday (2) the following friday --> and show that date range as highlighted
from what we've seen so far it looks like your calendar requires 2 x taps in order to highlight a date range. is what we want to do achievable using your API's ?
I want add a magnifying glass in calendar.
Please let me know how can i get this ?
i am getting compiler error like above , anyone can help me to fix that problem.
The method didSelect is returning the same date when selecting a range. It is possible to reproduce in Demo project.
Ex. I select day 17 and after I select day 25. (Issue)
Console prints:
You Selected: Optional(2018-05-17 03:00:00 +0000)
You Selected: Optional(2018-05-17 03:00:00 +0000)
But if I select day 25 and after I select day 17. (Works ok)
You Selected: Optional(2018-05-25 03:00:00 +0000)
You Selected: Optional(2018-05-17 03:00:00 +0000)
Hi there, is there a way to fix your method formated() and other places that you save Date to fix the SUMERTIME cases ?
Cause, October 15 change from 00:00:00 to 14 23:00:00.
Could it be fix to not consider hour on your calendar ?
Thanks
Hi!,
I will try to change first day to week, but something is wrong.
For example, today in Europe is Sunday 11 February, but for me... first day of week is Monday,
don´t Sunday.
I did
koyomi.weeks = ("Lun", "Mar", "Mie", "Jue", "Vie", "Sab", "Dom")
koyomi.weeks.0 = "Lun"
koyomi.weeks.1 = "Mar"
koyomi.weeks.2 = "Mie"
koyomi.weeks.3 = "Jue"
koyomi.weeks.4 = "Vie"
koyomi.weeks.5 = "Sab"
koyomi.weeks.6 = "Dom"
But now.. is Monday 11 February in my calendar...this is wrong...today is Sunday 11 February... I can do something for change day of week and re-order days???
Thanks
Need to add 'toDate' for delegate didSelect method to get selected dates when sequence
If i want some date in specific month, how to show calendar koyomi on that month ?
How do I get the month's name that the calendar is currently displaying?
When I add the class to my collection view I get Failed to render and update auto layout status for my viewController. Also get Failed to update auto layout status: The agent crashed
Hi, there
I got warning occurring every time Koyomi is added to superview
"This NSLayoutConstraint is being configured with a constant that exceeds internal limits. A smaller value will be substituted, but this problem should be fixed. Break on BOOL _NSLayoutConstraintNumberExceedsLimit(void) to debug. This will be logged only once. This may break in the future."
Hi,
I encountered an issue regarding days selection. When I select a sequence of days, switch to the next month and then I get back on the initial month, my selected days are not highlighted anymore.
I tried to force selection calling a select(), but unsuccessfully.
Am I doing something wrong? Do you know a workaround?
Thanks
Do you have a plan to let it be able to hide days of other months in the future version?
Is there any way to disable selection of future dates.
as of now when i use
setDayBackgroundColor(UIColor.black, of: myDate1)
then
setDayBackgroundColor(UIColor.red, of: myDate2)
they both become use the last color set (in this case red)
I would like to be able to use different background colors on different dates.
Just letting you know that the last version available on Cocoapods is still 0.1.0 (https://cocoapods.org/?q=koyomi). Would be great to push the last podspec if it's not an issue for you.
Thanks!
Having trouble getting end date when using the selection mode "sequence". I had a previous version of this library on a different project and the "didSelect date" method in delegate had a "toDate" parameter that would provide the last date in sequence. Currently, that delegate method only has "didSelect date" which only returns the first date in the sequence even after the user clicked another date to complete sequence. Am I missing another function in the delegate, if not what would be the best method of retrieving the end date of the sequence of dates?
Also, I had an issue with Sat column disappearing when collection view is the same size of the screen. Once I added a trailing and leading constraint of 5 Sat column came back
Is it possible to only enable some days to be selected and highlight those that can?
I need to let user know on which days there is an event going on and don't want them to select days other than those with events. Is something like this possible with Koyomi?
Thanks!
is it possible to have the indexPath of a given date
for example :
getIndexPath(at: Date) -> IndexPath {}
Does there happen to be a way to color days different colors? Like if I want one day red and another day green? For example the code
let sevenDaysFromNow = Calendar.current.date(byAdding: .day, value: 7, to: Date())
calendarView.setDayBackgrondColor(.green, of: sevenDaysFromNow!)
let eightDaysFromNow = Calendar.current.date(byAdding: .day, value: 8, to: Date())
calendarView.setDayBackgrondColor(.red, of: eightDaysFromNow!)
Is it possible to change style of highlighted dates?
i would like to set a specific start date (month) for the calendar instead of the current/previous/next month.
would you mind implementing through a function or variable ?
Hello I have issue on localizable when change device language calendar language change I can't control of calendar language or fixing calendar language ?!
Hi
I am new to use this library.
I want to display current date as highlighted with red color.
I want to display current date highlighted when i used to next or previous the calendar and get back on current month.
But its not displaying, its displaying first time only.
Thanks
Jittender
i want to hide placeholder dates in calendar is there any property to hide placeholder dates
I added the line pod "Koyomi"
to my podfile and did the pod install
and that seemed to work fine, then I went to my Main.storyboard
and I dragged a collection view. I then chose its class to be Koyomi in the identity inspector, and everything seemed to still be fine. I see the options to modify it in the attributes inspector, but then when I try to control-drag it to my .swift
file, it gives me the following errors:
any help with this would be much appreciated.
Thanks for this great library.
It's really amazing how I can customize it as I need.
But my problem is the holiday in my country is Friday and Saturday
Is there any way to customize the holiday days?
How to selected start date a current month and end date next two months. whenever I tap on next it does deselect all range
Hi,
First of all, thank you for creating this library.
I am using setDayBackgrondColor(color, date)
to highlight days with events, however, after editing an event, I need to update those days.
I tried using setDayBackgroundColor(color, of, to)
to reset all the background to the default color, and then highlight only those ones with events. But for some reason, this method is highlighting all the days.
This is the method I'm using to reset all the backgrounds
func resetDaysBackgroundColor(month:Date) { let monthMargins = DateTimeUtils.getUnixMonthLimits(month) calendarView.setDayBackgrondColor(UIColor.white, of: Date(timeIntervalSince1970: monthMargins[0]), to: Date(timeIntervalSince1970: monthMargins[1])) }
- which is making all the backgrounds YELLOW instead of WHITE
This is the method for highlighting the days with events
func onDaysWithEventsReady(data: [Date]) { let color = UIColor.init(named: "app_yellow")! for date in data { calendarView.setDayBackgrondColor(color, of: date) } }
Any way of setting another day to be the first of the week?
Thanks.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.