UIKit App의 뷰계층을 관리하는 객체
@MainActor class UIViewController : UIResponder
UIViewController 클래스는 일반적으로 모든 View Controller들에게 공유된 행동들을 정의함.
직접적으로 UIViewController의 인스턴스들을 생성 하는 경우 거의 없음. 대신 뷰 컨트롤러의 뷰 계층을 관리할 필요한 UIViewController와 메서드들, 프로퍼티들을 subclass로 만들고 추가해야함.
일반적으로 data update에 대한 응답으로 view의 내용을 update
view 와 user interaction에 Response
Coordinating with other objects - including other view controller - in your app
뷰 컨트롤러는 관리하는 뷰에 밀접 연결
뷰 계층 구조에서 이벤트 처리에 참여
뷰 컨트롤러는 UIResponder 객체이며 일반적으로 다른 뷰 컨트롤러에 속하는 뷰 컨트롤러의 Root 뷰와 해당 뷰의 부모 뷰 사이의 Responder Chain에 들어감.
뷰 컨트롤러의 뷰 중 어느것도 이벤트를 처리하지 않는 경우 뷰 컨트롤러는 이벤트를 처리하거나 부모뷰에 전달하는 옵션이 있음
뷰 컨트롤러는 단독으로 거의 사용하지 않음