Library Component Overrides Broken (makes it useless)

The absence of a “slot” instance in the collapsed variant is the reason for resetting the override. You need to make sure that the structure of your variants and the layer names are identical.

Solution:

  1. Place a “slot” instance in a auto layout frame (let’s call it “content”, for example).
  2. Apply the component’s instance swap property to the “slot” instance.
  3. Then control the visibility of the “content” frame in your variants.