Post

Replies

Boosts

Views

Activity

How does one get my iPad deployment app to match the test data contained in my preview?
Hi! I’m a complete noob when it comes to Xcode development so please bear with me. I built the Intro to SwiftUI Sandwiches app and have the Preview working in Xcode 12b4. I just upgraded my iPadPro to iOS14 and did a deployment to the device. No errors and notice that there are no sandwiches in the device app. I’ve reviewed the code and assume it’s because testStore is only passed to the previews (ContentView_Previews) My goal is to get my deployed app to match my preview. How does one go about having the testStore (and all its assets) be installed along with the app on my iPadPro (if it isn’t already) and have the default state of the app show up the same way as my preview on my device?
0
0
378
Sep ’20