Pass variables Tab Bar

Hi all. I am a newbie to Swift and I have the following question. I have a Tabbarcontroller which has 2 views (view1, view2). In the TabBar I create a vector and add data to it. Now I want to pass that vector to each of the views, and that is my question, how do I pass that vector to each of the views in the TabBar? I have searched the internet and I cannot find a solution to this problem, and I have stopped my project for 1 month. Thank you all.

Terms of Service

Privacy Policy

Cookie Policy