question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

[iOS][isVisible:false rendering issue] [Rendering of hidden components conflicts with animations]

See original GitHub issue

Platform

What platform is your issue or question related to? (Delete other platforms).

  • iOS

Author or host

Host - Teams iOS client

Version of SDK

latest main

Details

Suppose you have a hidden element in the card (set using isVisible:false tag). If the render function is called using an animation, it results in the hidden components being visible on the device/simulator. (This could be a potential Apple issue as well).

Repro steps: In ViewController wrap the code for adaptive card rendering with this animation block:

[UIView animateWithDuration:0 animations:^{​​
        renderResult = [ACRRenderer render:cardParseResult.card
                                    config:hostconfigParseResult.config
                           widthConstraint:kAdaptiveCardsWidth
                                  delegate:self];
    }​​];

CardJson:

{
  "body": [
    {
      "separator": true,
      "text": "Please select an item from the list.",
      "weight": "bolder",
      "type": "TextBlock",
      "spacing": "none"
    },
    {
      "items": [
        {
          "separator": true,
          "text": "PAGE 1 of 3. Showing results 1-4 of 11 ",
          "weight": "bolder",
          "type": "TextBlock",
          "spacing": "none"
        }
      ],
      "id": "page1",
      "type": "Container"
    },
    {
      "id": "page2",
      "isVisible": false,
      "items":[
        {
          "separator": true,
          "text": "PAGE 2 of 3. Showing results 5-8 of 11 ",
          "weight": "bolder",
          "type": "TextBlock",
          "spacing": "none"
        }
      ],
      "type": "Container"
    }
  ],
  "type": "AdaptiveCard",
  "version": "1.2"
}

Screenshot of the issue: Screenshot 2020-12-02 at 6 20 05 PM

Correct Behaviour: Screenshot 2020-12-02 at 6 21 05 PM

Please let me know if you need more details.

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:9 (8 by maintainers)

github_iconTop GitHub Comments

1reaction
jwoo-msftcommented, Mar 10, 2021

Hi @adumrewal,

I haven’t tried all of the enumeration’s values but the ones I tried such as UITableViewRowAnimationTop, UITableViewRowAnimationBottom and etc, all worked as expected. c.c. @lindach167

1reaction
jwoo-msftcommented, Dec 2, 2020

@shalinijoshi19,

I have discussed this issue with @adumrewal. It’s possible that it’s an Apple issue. I’m going to repro the issue first. I will update the thread once I’m done with accessibility issues.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Having a rendering issue with React-Native Animation
I fixed 1 and 3 problems and refactored a bit. 2 is up to you: import React, { Component } from 'react'; import...
Read more >
Inventor studio (2016) rendering problem
Hello, I have a problem while rendering both pictures and animations. Everything seems fine when i do a preview of the animation, ...
Read more >
Animation & Frame rendering clones limit: render in failure
Hi I open a new topic about animation, as problem here are not (totally?) ... When using 19 to 24 CPU to render...
Read more >
Hidden object is showing up in the render : r/Fusion360
A body that is hidden is showing up in the render. While not being visible in the actual workspace (because its hidden), when...
Read more >
Problem rendering additional scenes
Using Blender 2.91 I'm currently working on an animation , which I've split over 5 scenes. I made a new scene each time...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found