Skip to content

Commit

Permalink
feat: Photo Album Modal View에 Navigation Bar 추가 (#27)
Browse files Browse the repository at this point in the history
  • Loading branch information
ellyheetov committed Jun 10, 2021
1 parent 4b9cc9a commit 72f6d84
Show file tree
Hide file tree
Showing 2 changed files with 29 additions and 2 deletions.
4 changes: 2 additions & 2 deletions iOS/issue-tracker/NewIssue/IssueEditViewController.swift
Original file line number Diff line number Diff line change
Expand Up @@ -41,8 +41,8 @@ class IssueEditViewController: UIViewController {
func insertPhoto(){
let photoSelectViewController = PhotoViewController
.instantiate(name: "Main", bundle: Bundle.main)

self.present(photoSelectViewController, animated: true)
let navigationViewController = UINavigationController(rootViewController: photoSelectViewController)
self.present(navigationViewController, animated: true)
}
}
extension IssueEditViewController: UITextViewDelegate {
Expand Down
27 changes: 27 additions & 0 deletions iOS/issue-tracker/Photo/PhotoViewController.swift
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
//
// PhotoViewController.swift
// issue-tracker
//
// Created by 박혜원 on 2021/06/10.
//

import UIKit

class PhotoViewController: UIViewController, ReuseIdentity {

@IBOutlet weak var album: UICollectionView!

private var photoDataSource = PhotoDataSource()

override func viewDidLoad() {
super.viewDidLoad()

PhotoManager.shared.requestPhotos()
PhotoManager.shared.authorization()

self.album.dataSource = photoDataSource

self.album.reloadData()
}

}

0 comments on commit 72f6d84

Please sign in to comment.