Hi im doing an app for iPad an iPhone so I have a condition to detect the screen size .regular o .compact then I show an iPad navigation view or a tabview on iPhone or .compact view.
so the problem is that when on the iPhone (plus size and max size) change to landscape or portrait the views changes is not smooth I try a lot of thing to animate the transition but I don't find the way.
Any idea or suggestion?
Code Block swift if self.sizeClass == .compact && settings.getShowHomeOnIphone() { withAnimation(.easeInOut(duration: 1) ){ return NavigationViewForiPhone() } } else { withAnimation(.easeInOut(duration: 1) ){ return NavigationViewForiPad() } }
so the problem is that when on the iPhone (plus size and max size) change to landscape or portrait the views changes is not smooth I try a lot of thing to animate the transition but I don't find the way.
Any idea or suggestion?