I have a viewController that has a tableView and a mapView, and only one is visible.
I also have a toolbar with segment control with two buttons (list and map)
How do I switch between the table view and the map view ? and it’s important that the toolbar will stay locked without animating with the views.
After more thinking I found a solution, add another view as a container view for both table view and map view.
This way i can do:
without flipping the toolbar