Giter VIP home page Giter VIP logo

koyomi's People

Contributors

evilclay avatar kylehowells avatar minikin avatar rinov avatar shoheiyokoyama avatar whoislyuboanyway avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

koyomi's Issues

How to display a whole year?

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?

Disable some days

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.
imagen

I try searching but I didn't found anything.

Thanks!

select a date range with 1 tap ?

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 ?

Add Magnifying Glass

I want add a magnifying glass in calendar.
Please let me know how can i get this ?

koyomi(_: didSelect: forItemAt) is return a wrong date

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)

Next Month days

Currently calendar displays up to two weeks of the next month, and one for the past. How to make max
one for the next month?

I don't want 6-12 week of the next month to be displayed. What should I do?

screen shot 2017-02-19 at 00 52 59

Brazilian SUMMERTIME bug.

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

Changed first day of week...but doesn´t work

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

IB Designables Errors

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

NSLayoutConstraint warning

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."

Keep selected days highlighted after switched to next month and then back

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

setDayBackgroundColor different color for each date

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.

What happen to 'toDate' parameter in didselect date method in Delegate?

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

Enable only some days to be selected + highlight those

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!

multiple colors

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!)

Produces the following display
two_red

go to a specific date

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 ?

localizable Issue

Hello I have issue on localizable when change device language calendar language change I can't control of calendar language or fixing calendar language ?!

Koyomi issue...........????

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

Hide Placeholder

i want to hide placeholder dates in calendar is there any property to hide placeholder dates

Unable to reference in code.

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:
screenshot any help with this would be much appreciated.

Selected round size

What's responsible for size of the circle? I have 300px fixed height of Koyomi, but selecting a cell behaves very strange...

screen shot 2017-02-18 at 21 24 40

Custom holiday days!

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?

Multiple months range

How to selected start date a current month and end date next two months. whenever I tap on next it does deselect all range

Reset day background color method

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) } }

First day of week

Any way of setting another day to be the first of the week?

Thanks.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.