Creating a Simple iOS App Using URLSession GraphQL to Fetch Sitecore Items from a Sitecore 10.3 Docker Container
Introduction After a lot of research and trying to explore Sitecore Headless feature I was able to create a simple iOS APP in order to get the items from Sitecore using GraphQL. In this blogpost I will demonstrate how you can use the Xcode 14.3.1 and the code needed to get the items from the Quiz app we were developing throughout this research. So I will start with the Xcode experience, and afterwards I will continue to see the modifications I do on Sitecore so you can see changes in real life. I needed to do this with two machines, a PC and a MacBookPro in order to demonstrate Sitecore's Headless capabilities. Developing the iOS APP. In the following APP, I used the following libraries: SwiftUI and URLSession. SwiftUI is used for the frontend part of the application and URLSession is an Apple library that controls REST requests. So in order for this to work I added a NetworkManager.swift class as follows: // // NetworkManager.swift // SitecoreQuizApp // // Created b...