# Get the best fit for a layout on any iOS device

**URL:** <https://the.fmsoup.org/t/get-the-best-fit-for-a-layout-on-any-ios-device/3380>\
**Category:** Tips and Techniques\
**Tags:** ios, filemaker-go\
**Created:** [February 13, 2023, 11:13pm UTC](https://the.fmsoup.org/t/get-the-best-fit-for-a-layout-on-any-ios-device/3380 "2023-02-13T23:13:19Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Malcolm](https://yyz2.discourse-cdn.com/flex030/user_avatar/the.fmsoup.org/malcolm/32/196_2.png) [@Malcolm](https://the.fmsoup.org/u/Malcolm)\
**Post date:** [February 13, 2023, 11:13pm UTC](https://the.fmsoup.org/t/get-the-best-fit-for-a-layout-on-any-ios-device/3380/1 "2023-02-13T23:13:19Z")

</div>

iOS devices have many different screen ratios and DPI. A layout designed for a larger device may work well enough on a slightly smaller screen but it requires the user to know that they can use a pinch gesture to minimise the layout size.

In FileMaker Go a pinch gesture will reduce the layout size. If you shrink the layout to less than the screen display height/width it will flexibly find the best fit for the display. That's very cool and I'd like to do that in my scripts.

The `Set Zoom Level` command comes to our aid. I started testing with 'Zoom Out.' That worked in some cases, but not in others. I finally found that `Set Zoom Level [25%]` was best. In my testing that always reduced the layout size enough so that FileMaker Go would resize it to find the best fit.

```auto
Go to Layout []
If ( Get ( SystemPlatform ) = 3 ]
     Set Zoom Level [25%]
End If

```

---

<div class="post-metadata">

**Author:** ![Zardoz](https://avatars.discourse-cdn.com/v4/letter/z/a8b319/32.png) [@Zardoz](https://the.fmsoup.org/u/Zardoz)\
**Post date:** [August 15, 2025, 5:41pm UTC](https://the.fmsoup.org/t/get-the-best-fit-for-a-layout-on-any-ios-device/3380/2 "2025-08-15T17:41:35Z")

</div>

Super helpful tip, Malcolm. Thanks for sharing this!

---

<div class="post-metadata">

**Author:** ![planteg](https://yyz2.discourse-cdn.com/flex030/user_avatar/the.fmsoup.org/planteg/32/627_2.png) [@planteg](https://the.fmsoup.org/u/planteg)\
**Post date:** [August 15, 2025, 8:04pm UTC](https://the.fmsoup.org/t/get-the-best-fit-for-a-layout-on-any-ios-device/3380/3 "2025-08-15T20:04:57Z")

</div>

@Zardoz Welcome to our Community !
