Skip to content

Commit

Permalink
feat: 일기장 생성 버튼 추가
Browse files Browse the repository at this point in the history
  • Loading branch information
maxhyunm committed Aug 29, 2023
1 parent 265d5f4 commit 2a4db3a
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions Diary/DiaryListViewController.swift
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,13 @@ class DiaryListViewController: UIViewController {
private func configureUI() {
view.backgroundColor = .systemBackground
self.title = "일기장"

let addDiary = UIAction(image: UIImage(systemName: "plus")) { [weak self] _ in
//
}

navigationItem.rightBarButtonItem = UIBarButtonItem(primaryAction: addDiary)

view.addSubview(tableView)

NSLayoutConstraint.activate([
Expand Down

0 comments on commit 2a4db3a

Please sign in to comment.