CoreData Correct way to initialize default Data

I have an app similar to a Cooking recipes style app. I need to initialize the Coredata entity with some default recipes during the app 1st launch. The user can change this later. I Assume this should be done via background operations.

From where should this initializer function be called? Is there any official doc/ guidance regarding the correct way of implementing this in swiftUI?