-
Notifications
You must be signed in to change notification settings - Fork 104
Show the actual month of the selected date #48
base: master
Are you sure you want to change the base?
Conversation
…lled-background Show the actual month of the selected date
dev note: I implemented the missing functionality to show the correct month for the selected date. Please, keep in mind, that this is quick solution, and you can close the PR if you think it's not worth it :) |
public enum MonthType { case previous, current, next } | ||
public enum MonthType: Equatable { case previous, current, next, specific(diff: Int) } | ||
public func ==(lhs: MonthType, rhs: MonthType) -> Bool { | ||
switch (lhs, rhs) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
You should define this function in MonthType
.
@@ -8,7 +8,7 @@ | |||
|
|||
Pod::Spec.new do |s| | |||
s.name = 'Koyomi' | |||
s.version = '1.2.7' | |||
s.version = '1.2.8' | |||
s.summary = 'Simple customizable calendar component in Swift' |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This change shouldn't be included in this pull request.
@whoislyuboanyway |
This is not a bug, I just added a specific enum case, where the month skip can be more than one month prior/after :) I needed it for the project I am working on, so I updated it. p.s. so far I always moved the Equatable method outside of the equatable object :) |
No description provided.