Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

triggerScrollToDateDelegate in calendar.scrollToDate now triggers willScrollToDateSegmentWith delegate function #1264

Open
wants to merge 6 commits into
base: master
Choose a base branch
from

Conversation

kushsolitary
Copy link

This PR is a fix for #1262. I am not an experienced developer, so if there are any mistakes or if you need any changes, let me know. It seems to solve my problem correctly for now.

// Ensure date is within valid boundary

// Ensure date is within valid boundary

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Doesn't need extra tabulation

@@ -384,7 +384,7 @@
CLANG_ENABLE_MODULES = YES;
CODE_SIGN_STYLE = Automatic;
DEFINES_MODULE = YES;
DEVELOPMENT_TEAM = GBBYECNDQ9;

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Doesn't need

@@ -356,7 +356,7 @@
CLANG_ENABLE_MODULES = YES;
CODE_SIGN_STYLE = Automatic;
DEFINES_MODULE = YES;
DEVELOPMENT_TEAM = GBBYECNDQ9;

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Doesn't need

@@ -551,7 +551,12 @@ extension JTACMonthView {
assert(false, "Could not determine CGPoint. This is an error. contact developer on github. In production, there will not be a crash, but scrolling will not occur")
return
}


if self.triggerScrollToDateDelegate == true {

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Doesn't need extra tabulation

@@ -178,4 +181,5 @@ public extension JTACMonthViewDelegate {
func calendarSizeForMonths(_ calendar: JTACMonthView?) -> MonthSize? { return nil }
func sizeOfDecorationView(indexPath: IndexPath) -> CGRect { return .zero }
func scrollDidEndDecelerating(for calendar: JTACMonthView) {}
func scrollDidEndScrollingAnimation(for calendar: JTACMonthView) {}

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Doesn't need extra tabulation

}
}

/// Tells the delegate that a scroll occured

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Doesn't need extra tabulation

@bystritskiy
Copy link

You need to fix merge conflicts :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants