-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
6 changed files
with
139 additions
and
8 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
// | ||
// DetailVC.swift | ||
// 29th_Youtube | ||
// | ||
// Created by Yi Joon Choi on 2021/12/24. | ||
// | ||
|
||
import UIKit | ||
|
||
class DetailVC: UIViewController { | ||
|
||
@IBOutlet weak var thumbnail: UIImageView! | ||
@IBOutlet weak var videoTitle: UILabel! | ||
@IBOutlet weak var videoDescription: UILabel! | ||
|
||
var contentList : ContentData? | ||
|
||
override func viewDidLoad() { | ||
super.viewDidLoad() | ||
setUI() | ||
} | ||
|
||
private func setUI() { | ||
thumbnail.image = UIImage(named: contentList?.thumnbnail ?? "") | ||
videoTitle.text = contentList?.contentTitle | ||
videoDescription.text = contentList?.description | ||
} | ||
|
||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,81 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<document type="com.apple.InterfaceBuilder3.CocoaTouch.XIB" version="3.0" toolsVersion="19455" targetRuntime="iOS.CocoaTouch" propertyAccessControl="none" useAutolayout="YES" useTraitCollections="YES" useSafeAreas="YES" colorMatched="YES"> | ||
<device id="retina5_9" orientation="portrait" appearance="light"/> | ||
<dependencies> | ||
<deployment identifier="iOS"/> | ||
<plugIn identifier="com.apple.InterfaceBuilder.IBCocoaTouchPlugin" version="19454"/> | ||
<capability name="Safe area layout guides" minToolsVersion="9.0"/> | ||
<capability name="System colors in document resources" minToolsVersion="11.0"/> | ||
<capability name="documents saved in the Xcode 8 format" minToolsVersion="8.0"/> | ||
</dependencies> | ||
<objects> | ||
<placeholder placeholderIdentifier="IBFilesOwner" id="-1" userLabel="File's Owner" customClass="DetailVC" customModule="_9th_Youtube" customModuleProvider="target"> | ||
<connections> | ||
<outlet property="thumbnail" destination="gwK-Wh-heG" id="pLn-Dl-xzP"/> | ||
<outlet property="videoDescription" destination="cZx-Fu-SQH" id="Aef-W8-jzy"/> | ||
<outlet property="videoTitle" destination="thl-Yr-ZUR" id="9lP-Nb-V8b"/> | ||
<outlet property="view" destination="i5M-Pr-FkT" id="sfx-zR-JGt"/> | ||
</connections> | ||
</placeholder> | ||
<placeholder placeholderIdentifier="IBFirstResponder" id="-2" customClass="UIResponder"/> | ||
<view clearsContextBeforeDrawing="NO" contentMode="scaleToFill" id="i5M-Pr-FkT"> | ||
<rect key="frame" x="0.0" y="0.0" width="375" height="812"/> | ||
<autoresizingMask key="autoresizingMask" widthSizable="YES" heightSizable="YES"/> | ||
<subviews> | ||
<imageView clipsSubviews="YES" userInteractionEnabled="NO" contentMode="scaleAspectFit" horizontalHuggingPriority="251" verticalHuggingPriority="251" image="wesoptAndroidpart" translatesAutoresizingMaskIntoConstraints="NO" id="gwK-Wh-heG"> | ||
<rect key="frame" x="0.0" y="43.999999999999986" width="375" height="212.66666666666663"/> | ||
</imageView> | ||
<label opaque="NO" userInteractionEnabled="NO" contentMode="left" horizontalHuggingPriority="251" verticalHuggingPriority="251" text="Label" textAlignment="natural" lineBreakMode="tailTruncation" baselineAdjustment="alignBaselines" adjustsFontSizeToFit="NO" translatesAutoresizingMaskIntoConstraints="NO" id="thl-Yr-ZUR"> | ||
<rect key="frame" x="12" y="268.66666666666669" width="42" height="21"/> | ||
<fontDescription key="fontDescription" type="system" pointSize="17"/> | ||
<nil key="textColor"/> | ||
<nil key="highlightedColor"/> | ||
</label> | ||
<label opaque="NO" userInteractionEnabled="NO" contentMode="left" horizontalHuggingPriority="251" verticalHuggingPriority="251" text="Label" textAlignment="natural" lineBreakMode="tailTruncation" baselineAdjustment="alignBaselines" adjustsFontSizeToFit="NO" translatesAutoresizingMaskIntoConstraints="NO" id="cZx-Fu-SQH"> | ||
<rect key="frame" x="12" y="293.66666666666669" width="42" height="21"/> | ||
<fontDescription key="fontDescription" type="system" pointSize="17"/> | ||
<color key="textColor" systemColor="systemGrayColor"/> | ||
<nil key="highlightedColor"/> | ||
</label> | ||
<button opaque="NO" contentMode="scaleToFill" contentHorizontalAlignment="center" contentVerticalAlignment="center" lineBreakMode="middleTruncation" translatesAutoresizingMaskIntoConstraints="NO" id="w5b-PK-XBM"> | ||
<rect key="frame" x="346.33333333333331" y="268.66666666666669" width="16.666666666666686" height="22"/> | ||
<color key="tintColor" white="0.0" 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"/> | ||
</button> | ||
<button opaque="NO" contentMode="scaleToFill" contentHorizontalAlignment="center" contentVerticalAlignment="center" lineBreakMode="middleTruncation" translatesAutoresizingMaskIntoConstraints="NO" id="FZg-hB-xqR"> | ||
<rect key="frame" x="12.000000000000002" y="56" width="16.666666666666671" height="22"/> | ||
<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"/> | ||
</button> | ||
</subviews> | ||
<viewLayoutGuide key="safeArea" id="fnl-2z-Ty3"/> | ||
<color key="backgroundColor" systemColor="systemBackgroundColor"/> | ||
<constraints> | ||
<constraint firstItem="thl-Yr-ZUR" firstAttribute="leading" secondItem="fnl-2z-Ty3" secondAttribute="leading" constant="12" id="CAe-4K-CJA"/> | ||
<constraint firstItem="gwK-Wh-heG" firstAttribute="leading" secondItem="fnl-2z-Ty3" secondAttribute="leading" id="DHx-ow-9S5"/> | ||
<constraint firstItem="cZx-Fu-SQH" firstAttribute="top" secondItem="thl-Yr-ZUR" secondAttribute="bottom" constant="4" id="FXP-Ky-Q4y"/> | ||
<constraint firstItem="fnl-2z-Ty3" firstAttribute="trailing" secondItem="w5b-PK-XBM" secondAttribute="trailing" constant="12" id="HyS-uI-0IN"/> | ||
<constraint firstItem="gwK-Wh-heG" firstAttribute="trailing" secondItem="fnl-2z-Ty3" secondAttribute="trailing" id="Jt2-Ub-xg5"/> | ||
<constraint firstItem="FZg-hB-xqR" firstAttribute="leading" secondItem="fnl-2z-Ty3" secondAttribute="leading" constant="12" id="RqN-94-paD"/> | ||
<constraint firstItem="FZg-hB-xqR" firstAttribute="top" secondItem="fnl-2z-Ty3" secondAttribute="top" constant="12" id="dx2-IN-cEe"/> | ||
<constraint firstItem="thl-Yr-ZUR" firstAttribute="top" secondItem="gwK-Wh-heG" secondAttribute="bottom" constant="12" id="ghd-OY-3eN"/> | ||
<constraint firstItem="gwK-Wh-heG" firstAttribute="top" secondItem="fnl-2z-Ty3" secondAttribute="top" id="sow-ma-RaN"/> | ||
<constraint firstItem="cZx-Fu-SQH" firstAttribute="leading" secondItem="fnl-2z-Ty3" secondAttribute="leading" constant="12" id="upE-bL-HaA"/> | ||
<constraint firstItem="w5b-PK-XBM" firstAttribute="top" secondItem="gwK-Wh-heG" secondAttribute="bottom" constant="12" id="z5P-3M-8Np"/> | ||
</constraints> | ||
<point key="canvasLocation" x="136.80000000000001" y="93.103448275862078"/> | ||
</view> | ||
</objects> | ||
<resources> | ||
<image name="arrowtriangle.down.fill" catalog="system" width="128" height="124"/> | ||
<image name="wesoptAndroidpart" width="375" height="212.33332824707031"/> | ||
<systemColor name="systemBackgroundColor"> | ||
<color white="1" alpha="1" colorSpace="custom" customColorSpace="genericGamma22GrayColorSpace"/> | ||
</systemColor> | ||
<systemColor name="systemGrayColor"> | ||
<color red="0.55686274509803924" green="0.55686274509803924" blue="0.57647058823529407" alpha="1" colorSpace="custom" customColorSpace="sRGB"/> | ||
</systemColor> | ||
</resources> | ||
</document> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters