Shopify
Shopify logoShopify · Feature trail

Server-Driven UI for Mobile Store Screens

1 post · Sep 2022 – Nov 2022

What this trail covers

Shopify has implemented a server-driven UI architecture for the Shop App's Store Screen, enabling dynamic and personalized merchant store layouts. This allows for flexible control over displayed sections and components, moving away from a purely client-driven approach. The system includes server-side template processing, data loading, and GraphQL layers, and a client-side component architecture. This post details the development of iOS widgets, focusing on native development with SwiftUI for analytics display, data fetching strategies using Reportify and ShopifyQL, implementing a short-lived cache to prevent excessive network calls and session kick-outs, and building a flexible UI to support multiple widget sizes and metric configurations.

All Shopify trails