viewDidLoad() 에 다음을 추가해준다. let toolbar = UIToolbar() let doneBtn = UIBarButtonItem(barButtonSystemItem: .done, target: nil, action: #selector(done)) let customBtn = UIBarButtonItem(title: "button", style: .plain, target: nil, action: nil) let flexibleSpaceButton = UIBarButtonItem(barButtonSystemItem: .flexibleSpace, target: nil, action: nil) toolbar.sizeToFit() toolbar.setItems([customBtn, flexi..