By Jason Snell
How I got my recipes on HomeView via Safari

One of my disappointments in Apple’s app strategy for the HomeView is that its choice to not support third-party apps—except via CarPlay—freezes out an entire class of apps that should be right at home on the device: recipe apps.
HomeView features a fun recipe browser inside Safari, but if all your recipes are stored in an app—my preference is Silvio Rizzi’s Mela—then they are locked out of HomeView.
Or are they?
Before I get to my solution to this issue, I want to tip my cap to the inspiration I received from other quarters. Stephen Robles, motivated to solve this same issue, built an entire recipe-keeper app for HomeView. And I heard from Aaron Gold, the developer of Saucepan, another recipe app that has figured out HomeView integration.
Here’s the long and short of it: If you want your recipes to show up on the HomeView, they need to be web pages that open in Safari on the HomeView. That’s the only pathway right now. Robles and Gold both solved this problem by building apps that upload recipe data to a web server that generates and opens a private URL in Safari, which you can then just AirDrop directly to the HomeView.
This is probably what every developer who wants to support HomeView right now will have to do.
That said, while I hope Rizzi is on the case, I wasn’t satisfied with waiting and I didn’t want to move house to a different app. So I decided to see if I could solve this problem another way, namely by building a solution that would encode the HTML exported natively by Mela and open it in Safari in a way that would be transferable to the HomeView.
Here’s the result: a Shortcut you need to add, and a single HTML wrapper page you need to download and put on a web server you have access to. Download them both here.
When you’re in Mela, open a recipe and then tap the … menu, then Share: HTML… and from the resulting share sheet, choose the shortcut Mela to HomeView. It will open the recipe by loading the recipes.html file at the URL you chose (when you put it on the web server you have access to, remember?) and then passing all the data from the recipe into that web page via encoded data appended to the URL in Safari. The HTML file is just a wrapper; all the recipe data is included in the URL.
Then when Safari opens, bring your device close to the HomeView and it’ll transfer it over and load it in Safari, complete with a button to enter HomeView’s Recipe mode.
There’s one catch: Try as I might, I couldn’t get Recipe mode to display the pretty “cover image” of a recipe. Apparently for that you need to load the image from a remote server, and for this simple approach I don’t want to encourage people to build an extensive web back-end that’s capable of accepting uploads. (You can do it, to be sure, and I might—but for this solution I wanted it to be as simple as possible. Frankly, I don’t love that you have to put an HTML file on a web server at all, but here we are.)
Anyway, that’s my solution—for today. I hope that Mela and other recipe apps will solve this with hacks similar to those of Robles and Gold in the short term, and that Apple will provide better access to third-party recipe databases in the long term.
If you appreciate articles like this one, support us by becoming a Six Colors subscriber. Subscribers get access to an exclusive podcast, members-only stories, and a special community.