lundi 6 août 2018

How to show random position of views

enter image description here

In my viewController I have 6 views. The top views are source view and bottom views are destination views. I want to add randomizer on source view as well as on destination view. I want to change position of view randomly. So please give me any solution to do this. below is my code...

@IBOutlet weak var circle_source: UIView!
@IBOutlet weak var circle_destination: UIView!
@IBOutlet weak var square_source: UIView!
@IBOutlet weak var square_destination: UIView!
@IBOutlet weak var triangle_source: UIView!
@IBOutlet weak var triangle_destination: UIView!




Aucun commentaire:

Enregistrer un commentaire