Skip to content

ListView animation very slow or not smooth on iOS #1579

Open
@outsideMyBox

Description

@outsideMyBox

Environment

  • tns: 4.2.1
  • iOS Runtime: iOS 12.0.1
  • NativeScript-Angular: 6.1.1

Describe the bug
Using two templates to expand/collapse items in a ListView doesn't render well.
With the default animation an expanded item flickers during the animation. When collapsed, the size of the item shrinks and then only the item disappears.
If the default animation is disabled (by using UIView.animateWithDurationAnimations(0, () => {...}) then the response time is very long to expand or collapse an item (around 4s on my ipad for a list of 100 items).

Expected behavior
A smooth and responsive collapse/expand whatever the size of the list.

Sample project
https://play.nativescript.org/?template=play-ng&id=LFHc8M&v=5

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions