How to set edgesForExtendedLayout to none in Swift 3
Set it to []
. That is the same as none.
self.edgesForExtendedLayout = .init(rawValue: 0)
SWIFT 5 solution
override func viewWillAppear(_ animated: Bool) {
super.viewWillAppear(animated)
self.edgesForExtendedLayout = []
}