eonist / Issues

Issues
2 stars 0 forks source link

Accounting for iPhoneX notch #12

Open eonist opened 5 years ago

eonist commented 5 years ago
   override func viewDidAppear(_ animated: Bool) {
        super.viewDidAppear(animated)
        view.frame = UIScreen.main.bounds.inset(by: view.safeAreaInsets)
    }
    override func viewDidLoad() {
        super.viewDidLoad()
        self.view = View(frame: .zero)
    }