화면 전환 시 위쪽에 여백이 남는 방식이 기본 방식이기에 이를 설정해줘야 한다.
let detailVC = DetailViewController()
detailVC.modalPresentationStyle = .fullScreen
present(detailVC, animated: true)
let detailVC = DetailViewController()
let navigationController = UINavigationController(rootViewController: detailVC)
navigationController.modalPresentationStyle = .fullScreen
present(navigationController, animated: true)
이런식으로 .fullScreen 을 해주면 전체화면을 해줄 수 있다.
.automatic 은 위에 여백이 남는 방식
.
.
.
.
.
https://zonneveld.dev/ios-13-viewcontroller-presentation-style-modalpresentationstyle/