Skip to content

Dismissal animation glitch #3

@fl034

Description

@fl034

ezgif-3-69a238546023

I slowed down the animation to make this glitch better visible.
It happens at the handover of the view from the interactive and non-interactive part of the transition.

I assume the problem lies around here, but I can't figure it out

// Card fills inside animated container view
cardDetailView.edges(to: animatedContainerView)
animatedContainerView.centerXAnchor.constraint(equalTo: container.centerXAnchor).isActive = true
let animatedContainerTopConstraint = animatedContainerView.topAnchor.constraint(equalTo: container.topAnchor, constant: params.settings.cardContainerInsets.top)
let animatedContainerWidthConstraint = animatedContainerView.widthAnchor.constraint(equalToConstant: cardDetailView.frame.width - (params.settings.cardContainerInsets.left + params.settings.cardContainerInsets.right))
let animatedContainerHeightConstraint = animatedContainerView.heightAnchor.constraint(equalToConstant: cardDetailView.frame.height - (params.settings.cardContainerInsets.top + params.settings.cardContainerInsets.bottom))
NSLayoutConstraint.activate([animatedContainerTopConstraint, animatedContainerWidthConstraint, animatedContainerHeightConstraint])

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions