Skip to content
This repository was archived by the owner on May 1, 2024. It is now read-only.
This repository was archived by the owner on May 1, 2024. It is now read-only.

[Bug] StateView not displayed if StateKey property is matched to "None" value #1138

@Kapusch

Description

@Kapusch

Description

Given a StateView "A" with StateKey property defined to "Loading"
and another StateView "B" with StateKey property defined to "None"
and the binded value for CurrentState is defined to "Loading"
When CurrentState value becomes "None"
Then StateView "A" disappears
But StateView "B" does not show up

Steps to Reproduce

  1. Run XCT.Sample on iOS
  2. Go to the StateLayout example page (Views > StateLayout)
  3. Tap the button to launch the States cycle
  4. When None state is loaded, the associated StateView is not showing up

Expected Behavior

I was assuming StateView associated to "None" StateKey will appear on screen, is it the normal behavior ?

Actual Behavior

The StateView with StateKey property defined to "None" never show up.

Basic Information

  • Version with issue: 1.1.0
  • Last known good version: N/A
  • IDE: VS for Mac v8.9.3
  • Platform Target Frameworks:
    • iOS: iOS 14.4
  • Nuget Packages:
    -- Xamarin.Forms 5.0.0.1874,
    -- Xamarin.Essentials 1.5.3.2
  • Affected Devices: tested on iPhone Simulator only

Workaround

I have substituted all "None" StateKey into "Success" StateKey

Reproduction imagery

XCT_StateView_Not_Appearing

Reproduction Link

XCT_StateView_Not_Appearing.zip

Metadata

Metadata

Assignees

No one assigned

    Labels

    a/StateLayoutbugSomething isn't working. Breaky break.up-for-grabsImplementation from community can be started.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions