From da9b2a634854520f3b50741d52736cab9c428187 Mon Sep 17 00:00:00 2001 From: dlwns33 Date: Fri, 24 Dec 2021 22:56:25 +0900 Subject: [PATCH] =?UTF-8?q?[#10]=20DetailVC=20dismiss=20=EB=90=98=EB=8F=84?= =?UTF-8?q?=EB=A1=9D?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../yijoonchoi.xcuserdatad/xcschemes/xcschememanagement.plist | 2 +- 29th_Youtube/29th_Youtube/Sources/DetailVC/DetailVC.swift | 3 +++ 29th_Youtube/29th_Youtube/Sources/DetailVC/DetailVC.xib | 3 +++ 3 files changed, 7 insertions(+), 1 deletion(-) diff --git a/29th_Youtube/29th_Youtube.xcodeproj/xcuserdata/yijoonchoi.xcuserdatad/xcschemes/xcschememanagement.plist b/29th_Youtube/29th_Youtube.xcodeproj/xcuserdata/yijoonchoi.xcuserdatad/xcschemes/xcschememanagement.plist index 3af4359..420859e 100644 --- a/29th_Youtube/29th_Youtube.xcodeproj/xcuserdata/yijoonchoi.xcuserdatad/xcschemes/xcschememanagement.plist +++ b/29th_Youtube/29th_Youtube.xcodeproj/xcuserdata/yijoonchoi.xcuserdatad/xcschemes/xcschememanagement.plist @@ -7,7 +7,7 @@ 29th_Youtube.xcscheme_^#shared#^_ orderHint - 0 + 1 diff --git a/29th_Youtube/29th_Youtube/Sources/DetailVC/DetailVC.swift b/29th_Youtube/29th_Youtube/Sources/DetailVC/DetailVC.swift index 7a3313d..483fb94 100644 --- a/29th_Youtube/29th_Youtube/Sources/DetailVC/DetailVC.swift +++ b/29th_Youtube/29th_Youtube/Sources/DetailVC/DetailVC.swift @@ -15,6 +15,9 @@ class DetailVC: UIViewController { var contentList : ContentData? + @IBAction func dismissVC(_ sender: Any) { + self.dismiss(animated: true, completion: nil) + } override func viewDidLoad() { super.viewDidLoad() setUI() diff --git a/29th_Youtube/29th_Youtube/Sources/DetailVC/DetailVC.xib b/29th_Youtube/29th_Youtube/Sources/DetailVC/DetailVC.xib index 06e4100..ca0c365 100644 --- a/29th_Youtube/29th_Youtube/Sources/DetailVC/DetailVC.xib +++ b/29th_Youtube/29th_Youtube/Sources/DetailVC/DetailVC.xib @@ -48,6 +48,9 @@ + + +