Setting variables with first start of app

Hello,

i want to write an app which asks the user with the first start of the app to choose between a few options.
Depending what have been chosen the app will load some data from an api. The question will never appear again. Maybe I will give the user the option to change it in the settings.

As a beginner in swift I thought I could use viewdidload. But that would show the question view on every start. But thats not what I want.
What do I have to google for? Can you name me the thing I search?

Or do I kinda have to set a variable which is for example 0 and if the user selects an option it will get something different then 0 and that will disable the asking view with an if function?
Setting variables with first start of app
 
 
Q