# Perspective views won't load on iOS

**URL:** <https://forum.inductiveautomation.com/t/perspective-views-wont-load-on-ios/76627>\
**Category:** Ignition\
**Tags:** perspective\
**Created:** [July 20, 2023, 7:03am UTC](https://forum.inductiveautomation.com/t/perspective-views-wont-load-on-ios/76627 "2023-07-20T07:03:28Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![Theodorska](https://avatars.discourse-cdn.com/v4/letter/t/34f0e0/32.png) [@Theodorska](https://forum.inductiveautomation.com/u/Theodorska)\
**Post date:** [July 20, 2023, 7:03am UTC](https://forum.inductiveautomation.com/t/perspective-views-wont-load-on-ios/76627/1 "2023-07-20T07:03:28Z")

</div>

Hello,

We are having difficulties getting some views to load on iOS devices. Some older macbooks (with the newest OS) are able to load them without problems, but Ipads, Iphones, and new macbooks are not able to load certain views. The views contain SVG's that are animated. In isolation i can load the elements, but the animated parts of the SVG's does not show.. and most elements are embedded. Does anyone of you know how to optimize views for iOS?

right now my only solution is to recreate all our views with minimal embedding, as this loads faster. but I am not able to make the SVG's work. Does iOS not support animated plain SVG's?

---

<div class="post-metadata">

**Author:** ![victordcq](https://avatars.discourse-cdn.com/v4/letter/v/f6c823/32.png) [@victordcq](https://forum.inductiveautomation.com/u/victordcq)\
**Post date:** [July 20, 2023, 8:57am UTC](https://forum.inductiveautomation.com/t/perspective-views-wont-load-on-ios/76627/2 "2023-07-20T08:57:01Z")

</div>

that really depends on the device and version you are using. try to update their browsers, what version/browser are you trying this on? i believe ios also have different browsers you can try

---

<div class="post-metadata">

**Author:** ![Theodorska](https://avatars.discourse-cdn.com/v4/letter/t/34f0e0/32.png) [@Theodorska](https://forum.inductiveautomation.com/u/Theodorska)\
**Post date:** [July 20, 2023, 9:07am UTC](https://forum.inductiveautomation.com/t/perspective-views-wont-load-on-ios/76627/3 "2023-07-20T09:07:27Z")

</div>

I have tried different browsers and different versions of the OS. To make it load faster I have to refrain from using embedded views however the animation of the SVG, which is animated with a binding, will not work. I am testing out importing the SVG via the markup component now.

---

<div class="post-metadata">

**Author:** ![victordcq](https://avatars.discourse-cdn.com/v4/letter/v/f6c823/32.png) [@victordcq](https://forum.inductiveautomation.com/u/victordcq)\
**Post date:** [July 20, 2023, 9:55am UTC](https://forum.inductiveautomation.com/t/perspective-views-wont-load-on-ios/76627/4 "2023-07-20T09:55:32Z")

</div>

you will have better luck identifying the device and browser versions, to look up what (doesnt) work on there (or has potitional work arounds)

what is the latest version you are running it on of the os and brower?

---

<div class="post-metadata">

**Author:** ![Theodorska](https://avatars.discourse-cdn.com/v4/letter/t/34f0e0/32.png) [@Theodorska](https://forum.inductiveautomation.com/u/Theodorska)\
**Post date:** [July 20, 2023, 9:58am UTC](https://forum.inductiveautomation.com/t/perspective-views-wont-load-on-ios/76627/5 "2023-07-20T09:58:10Z")

</div>

I found a solution to the SVG animation issue!  
I used a calc() function within a height attribute (e.g. height = "calc(44/33)") this will not work on certain iOS. But if I do the calculations in a custom variable and input the results as height it seems to work

---

<div class="post-metadata">

**Author:** ![victordcq](https://avatars.discourse-cdn.com/v4/letter/v/f6c823/32.png) [@victordcq](https://forum.inductiveautomation.com/u/victordcq)\
**Post date:** [July 20, 2023, 10:21am UTC](https://forum.inductiveautomation.com/t/perspective-views-wont-load-on-ios/76627/6 "2023-07-20T10:21:50Z")

</div>

calc has to be used with units, in which case it should work on all modern browsers (expect opera mini)  
but units dont really make sense in svg, so yeah

seems like safari and firefox dont really handle svg's with calc. but you dont really need this for svgs since they are already scaled

the question rly is, why are you using this with an animation.
