Confused about spf and makeup

How do you reapply your spf if you’re wearing makeup? Does the makeup act as a barrier? I want to get into makeup so bad but I’m confused about this😩