Swift App example of loops/arrays and view smooth transitions