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…

I used xcode 10.1   enum PriceType {     case cny     case usd } extension PriceType: ExpressibleByStringLiteral {     init(stringLiteral value: String) {         self.init(string: value)     }     init(unicodeScalarLiteral value: String) {         self.init(string: value)     }     init(extendedGraphemeClusterLiteral value: String) {        …