Check if user is part of an experiment group iOS

Check if user is part of an experiment group iOS

Hello there,I'm trying to figure out if a user is part of the sample of an experiment as I am setting the traffic allocation to be 10%. So how can I do something likeif (user isPartOfTargetForExperimentX){...}