I am a view that want to present two different look while receiving different data. And I don't want to use if-else statement to handle cause it will make the code too clumsy and hard to modify. So I create two viewController to do it, but it doesn't seem to be a good way. Any suggestion with this situation? Thank you guys.
Two ViewController with one View
You could have a single VC and 2 views inside, atop of each other. Just hide one of them as needed. The other will appear instantly, and will have kept all its content.