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

I encountered a problem that the system return gesture is missing #78

Open
sea7reen opened this issue Nov 9, 2020 · 3 comments
Open

Comments

@sea7reen
Copy link

sea7reen commented Nov 9, 2020

In my project.
I am using jelly to present some control pages.
After control diss, after returning to the current page,
The side swipe gesture on the current page is invalid.
Excuse me, how to solve this problem.

@SebastianBoldt
Copy link
Owner

Hard to tell whats going on without seeing any code. Did you try to debug the code?

@sea7reen
Copy link
Author

sea7reen commented Nov 10, 2020

Hard to tell whats going on without seeing any code. Did you try to debug the code?

this is my code.

    let agoraUserVC = QWAgoraUserViewController()
    agoraUserVC.uid = uid
    let animator = JellyAnimator(presentation: qw_jellySlide(TabBarMargin + 200))
    animator.prepare(presentedViewController: agoraUserVC)
    present(agoraUserVC, animated: true, completion: nil)


func qw_jellySlide(_ h: CGFloat) -> JellySlideInPresentation {
    let configuration = PresentationUIConfiguration(cornerRadius: 4, backgroundStyle: .dimmed(alpha: 0.39), isTapBackgroundToDismissEnabled: true, corners: [.layerMinXMinYCorner, .layerMaxXMinYCorner])
    let presentation = JellySlideInPresentation.init(directionShow: .bottom, directionDismiss: .bottom, uiConfiguration: configuration, size: PresentationSize(width: .fullscreen, height: .custom(value: h)), alignment: PresentationAlignment.init(vertical: .bottom, horizontal: .center), marginGuards: UIEdgeInsets.zero, timing: PresentationTiming(), spring: .none, interactionConfiguration: InteractionConfiguration.init(presentingViewController: self, dragMode: .canvas))
    return presentation
}

when I transfer funcation dismiss(animated: true, completion: nil)
The current ViewController,The system sliding back gesture is invalid。
It means the gesture return is invalid
 

@DIANGHONG
Copy link

Hard to tell whats going on without seeing any code. Did you try to debug the code?

this is my code.

    let agoraUserVC = QWAgoraUserViewController()
    agoraUserVC.uid = uid
    let animator = JellyAnimator(presentation: qw_jellySlide(TabBarMargin + 200))
    animator.prepare(presentedViewController: agoraUserVC)
    present(agoraUserVC, animated: true, completion: nil)


func qw_jellySlide(_ h: CGFloat) -> JellySlideInPresentation {
    let configuration = PresentationUIConfiguration(cornerRadius: 4, backgroundStyle: .dimmed(alpha: 0.39), isTapBackgroundToDismissEnabled: true, corners: [.layerMinXMinYCorner, .layerMaxXMinYCorner])
    let presentation = JellySlideInPresentation.init(directionShow: .bottom, directionDismiss: .bottom, uiConfiguration: configuration, size: PresentationSize(width: .fullscreen, height: .custom(value: h)), alignment: PresentationAlignment.init(vertical: .bottom, horizontal: .center), marginGuards: UIEdgeInsets.zero, timing: PresentationTiming(), spring: .none, interactionConfiguration: InteractionConfiguration.init(presentingViewController: self, dragMode: .canvas))
    return presentation
}

when I transfer funcation dismiss(animated: true, completion: nil)
The current ViewController,The system sliding back gesture is invalid。
It means the gesture return is invalid

animator

Hard to tell whats going on without seeing any code. Did you try to debug the code?

this is my code.

    let agoraUserVC = QWAgoraUserViewController()
    agoraUserVC.uid = uid
    let animator = JellyAnimator(presentation: qw_jellySlide(TabBarMargin + 200))
    animator.prepare(presentedViewController: agoraUserVC)
    present(agoraUserVC, animated: true, completion: nil)


func qw_jellySlide(_ h: CGFloat) -> JellySlideInPresentation {
    let configuration = PresentationUIConfiguration(cornerRadius: 4, backgroundStyle: .dimmed(alpha: 0.39), isTapBackgroundToDismissEnabled: true, corners: [.layerMinXMinYCorner, .layerMaxXMinYCorner])
    let presentation = JellySlideInPresentation.init(directionShow: .bottom, directionDismiss: .bottom, uiConfiguration: configuration, size: PresentationSize(width: .fullscreen, height: .custom(value: h)), alignment: PresentationAlignment.init(vertical: .bottom, horizontal: .center), marginGuards: UIEdgeInsets.zero, timing: PresentationTiming(), spring: .none, interactionConfiguration: InteractionConfiguration.init(presentingViewController: self, dragMode: .canvas))
    return presentation
}

when I transfer funcation dismiss(animated: true, completion: nil)
The current ViewController,The system sliding back gesture is invalid。
It means the gesture return is invalid

image

If you read the documentation carefully, you won’t have this problem

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

No branches or pull requests

3 participants