I'm interested in having a VC with objects and others (static, not necessarily dynamic) and apart from that, I want to have a pixel (one or four, depending if it can be seen for the human eye) moving around the borders of the screen (so in the bounds).
I attach a photo of what I need:
So I need that the "pixel" move indefinetely doing a square and I also need to know where it is to do something in my code (in swift)
You can use a solution something to
Swift 2
Swift 3,4,5
The
CGPoint
values would the 4 corners of your screen where you want yourUIView
object to move.