How to hide master view in master-details app in swift?

I'm doing a master-detail app using swift. When I select a cell from master table view, it doesn't go to hide. How to hide it programmatically.

I thought "splitViewController.delegate = self" will make it hide. But, it didn't help me.

See "Configuring the Appearance of the Split View Interface" in the UISplitViewController Class Reference.

How to hide master view in master-details app in swift?
 
 
Q