hide bottom tab bar swift

Swift
self.tabBarController?.tabBar.isHidden = true
Source

Also in Swift: