FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

[iOS] The switch widget does not show up on the page · Issue #986 · NativeScript/NativeScript · GitHub

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

Description

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>

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions


      Back | FazBrowse Home | New Git URL