Skip to content

Commit

Permalink
[#10] DetailVC dismiss 되도록
Browse files Browse the repository at this point in the history
  • Loading branch information
dlwns33 committed Dec 24, 2021
1 parent 79a4704 commit da9b2a6
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
<key>29th_Youtube.xcscheme_^#shared#^_</key>
<dict>
<key>orderHint</key>
<integer>0</integer>
<integer>1</integer>
</dict>
</dict>
</dict>
Expand Down
3 changes: 3 additions & 0 deletions 29th_Youtube/29th_Youtube/Sources/DetailVC/DetailVC.swift
Original file line number Diff line number Diff line change
Expand Up @@ -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()
Expand Down
3 changes: 3 additions & 0 deletions 29th_Youtube/29th_Youtube/Sources/DetailVC/DetailVC.xib
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,9 @@
<color key="tintColor" white="1" alpha="1" colorSpace="custom" customColorSpace="genericGamma22GrayColorSpace"/>
<inset key="imageEdgeInsets" minX="0.0" minY="0.0" maxX="2.2250738585072014e-308" maxY="0.0"/>
<state key="normal" image="arrowtriangle.down.fill" catalog="system"/>
<connections>
<action selector="dismissVC:" destination="-1" eventType="touchUpInside" id="ia8-hv-bQR"/>
</connections>
</button>
</subviews>
<viewLayoutGuide key="safeArea" id="fnl-2z-Ty3"/>
Expand Down

0 comments on commit da9b2a6

Please sign in to comment.