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鈥檒l occasionally send you account related emails.

Already on GitHub? Sign in to your account

Added custom responding page event #24

Merged
merged 1 commit into from Jul 22, 2021

Conversation

devyhan
Copy link
Contributor

@devyhan devyhan commented Jul 2, 2021

Added a way to customize willTransitionTo and didFinishAnimationg delegate method.
Please check it out and accept the request if you like it. 馃槅

example

iPages {
    Text("iPages 馃")
    Color.pink
}
.didFinishAnimationg { _, _, _, _ in
    print("Insert didFinishAnimating action code here")
}
.willTransitionTo { (pageViewController, viewControllers) in
    print("Insert willTransitionTo action code here")
}

It is implemented so that it is not expressed in "page view initializes" for readability when writing code.馃榾

image

Copy link
Owner

@blsage blsage left a comment

Choose a reason for hiding this comment

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

Looks awesome!

@devyhan
Copy link
Contributor Author

devyhan commented Jul 2, 2021

To get rid of long closure expression in function argument you can use typealias.

image

@blsage blsage merged commit fd7103d into blsage:main Jul 22, 2021
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.

None yet

2 participants