In order to debug your web apps from iOS device follow the steps:

Connect your device with your mac and make sure to tap on Trust when prompted.

Trust This Computer Alert

Turn on the web inspector

On your iOS device goto Settings → Scroll down to Safari

On the bottom Goto Advanced → Turn on the Web Inspector

--

--

Let say you have a product which contains bunch of variants and you want to show the starting price of each product in your app. Let say the product and variant model looks like this:

Next, create an extension for the product class and define a function like this:

You can call this function from the instance of your product. That’s it :)

--

--