I'm experiecing some chaos here. I try to adjust my UIView as necessray when the phone orientation changes. I used this code:
override func viewWillTransition(to size: CGSize, with coordinator: UIViewControllerTransitionCoordinator) {
self.drawingViewTablet.clear()
self.buttonsShowing.clear()
coordinator.animate(alongsideTransition:nil) { (UIViewControllerTransitionCoordinatorContext) in
self.drawingViewTablet.adjust(TransitionTo: size, NewPoints: self.farPoints)
self.buttonsShowing.adjust(TransitionTo: size, NewPoints: self.farPoints)
}
}
When my adjust() functions are being called, the UIView they refer to are *not* always done rotating. How can I only call these adjust functions when my entire ViewController is 100% rotating ???