Skip to content

[iOS] The switch widget does not show up on the page #986

@vchimev

Description

@vchimev

In iOS the switch widget does not show up in the following cases:

<Page>
  <Switch checked="true" />
</Page>
<Page>
  <DockLayout>
    <Switch checked="true" dock="left" />
  </DockLayout>
</Page>
<Page>
  <GridLayout columns="250, *, auto" rows="250, *, auto" >
    <Switch checked="true" col="0" row="0" /> <!-- or col="1" row="1" -->
  </GridLayout>
</Page>
<Page>
  <StackLayout orientation="horizontal">
    <Switch checked="true" />
  </StackLayout>
</Page>

Workaround: You could set verticalAlignment/horizontalAlignment property. For example:

<Page>
  <Switch checked="true" verticalAlignment="center" horizontalAlignment="center"/>
</Page>

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions