Initial commit
This commit is contained in:
commit
02f81bdfe6
16 changed files with 1046 additions and 0 deletions
29
repo-browser/Cells/RepoCell.swift
Normal file
29
repo-browser/Cells/RepoCell.swift
Normal file
|
@ -0,0 +1,29 @@
|
|||
//
|
||||
// RepoCell.swift
|
||||
// repo-browser
|
||||
//
|
||||
// Created by Rodrigo Pedroso on 2019-06-26.
|
||||
// Copyright © 2019 Rodrigo Pedroso Leite Pinto. All rights reserved.
|
||||
//
|
||||
|
||||
import UIKit
|
||||
|
||||
class RepoCell: UITableViewCell {
|
||||
|
||||
@IBOutlet var imgThumbnail: UIImageView!
|
||||
@IBOutlet var lblTitle: UILabel!
|
||||
@IBOutlet var lblDescription: UILabel!
|
||||
@IBOutlet var lblRepoType: UILabel!
|
||||
|
||||
override func awakeFromNib() {
|
||||
super.awakeFromNib()
|
||||
// Initialization code
|
||||
}
|
||||
|
||||
override func setSelected(_ selected: Bool, animated: Bool) {
|
||||
super.setSelected(selected, animated: animated)
|
||||
|
||||
// Configure the view for the selected state
|
||||
}
|
||||
|
||||
}
|
81
repo-browser/Cells/RepoCell.xib
Normal file
81
repo-browser/Cells/RepoCell.xib
Normal file
|
@ -0,0 +1,81 @@
|
|||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<document type="com.apple.InterfaceBuilder3.CocoaTouch.XIB" version="3.0" toolsVersion="14490.70" targetRuntime="iOS.CocoaTouch" propertyAccessControl="none" useAutolayout="YES" useTraitCollections="YES" useSafeAreas="YES" colorMatched="YES">
|
||||
<device id="retina6_1" orientation="portrait">
|
||||
<adaptation id="fullscreen"/>
|
||||
</device>
|
||||
<dependencies>
|
||||
<deployment identifier="iOS"/>
|
||||
<plugIn identifier="com.apple.InterfaceBuilder.IBCocoaTouchPlugin" version="14490.49"/>
|
||||
<capability name="Safe area layout guides" minToolsVersion="9.0"/>
|
||||
<capability name="documents saved in the Xcode 8 format" minToolsVersion="8.0"/>
|
||||
</dependencies>
|
||||
<objects>
|
||||
<placeholder placeholderIdentifier="IBFilesOwner" id="-1" userLabel="File's Owner"/>
|
||||
<placeholder placeholderIdentifier="IBFirstResponder" id="-2" customClass="UIResponder"/>
|
||||
<tableViewCell contentMode="scaleToFill" selectionStyle="default" indentationWidth="10" rowHeight="70" id="KGk-i7-Jjw" customClass="RepoCell" customModule="Repo_browser" customModuleProvider="target">
|
||||
<rect key="frame" x="0.0" y="0.0" width="320" height="70"/>
|
||||
<autoresizingMask key="autoresizingMask" flexibleMaxX="YES" flexibleMaxY="YES"/>
|
||||
<tableViewCellContentView key="contentView" opaque="NO" clipsSubviews="YES" multipleTouchEnabled="YES" contentMode="center" tableViewCell="KGk-i7-Jjw" id="H2p-sc-9uM">
|
||||
<rect key="frame" x="0.0" y="0.0" width="320" height="69.5"/>
|
||||
<autoresizingMask key="autoresizingMask"/>
|
||||
<subviews>
|
||||
<imageView clipsSubviews="YES" userInteractionEnabled="NO" contentMode="scaleAspectFit" horizontalHuggingPriority="251" verticalHuggingPriority="251" translatesAutoresizingMaskIntoConstraints="NO" id="cQ8-2c-3gy">
|
||||
<rect key="frame" x="0.0" y="-0.5" width="70" height="70.5"/>
|
||||
<constraints>
|
||||
<constraint firstAttribute="width" constant="70" id="0rH-We-UsE"/>
|
||||
<constraint firstAttribute="height" constant="70" id="aqD-2J-eNm"/>
|
||||
</constraints>
|
||||
</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="WX8-nW-2o2">
|
||||
<rect key="frame" x="78" y="4" width="203" 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="Labelsdfhsfghdfghsfghsfghs dfgh sfh sdfh sfh sfhsfghsf gh sdfh s " textAlignment="natural" lineBreakMode="tailTruncation" numberOfLines="0" baselineAdjustment="alignBaselines" adjustsFontSizeToFit="NO" translatesAutoresizingMaskIntoConstraints="NO" id="mh9-2s-zEa">
|
||||
<rect key="frame" x="78" y="33" width="203" height="37"/>
|
||||
<constraints>
|
||||
<constraint firstAttribute="height" constant="37" id="Uc6-wd-Nrg"/>
|
||||
</constraints>
|
||||
<fontDescription key="fontDescription" type="system" weight="light" pointSize="15"/>
|
||||
<nil key="textColor"/>
|
||||
<nil key="highlightedColor"/>
|
||||
</label>
|
||||
<label opaque="NO" userInteractionEnabled="NO" contentMode="left" horizontalHuggingPriority="251" verticalHuggingPriority="251" text="Ico" textAlignment="natural" lineBreakMode="tailTruncation" baselineAdjustment="alignBaselines" adjustsFontSizeToFit="NO" translatesAutoresizingMaskIntoConstraints="NO" id="ly3-fA-QfR">
|
||||
<rect key="frame" x="289" y="8" width="23" height="53.5"/>
|
||||
<constraints>
|
||||
<constraint firstAttribute="width" constant="23" id="TKa-mG-8AY"/>
|
||||
</constraints>
|
||||
<fontDescription key="fontDescription" type="system" pointSize="17"/>
|
||||
<nil key="textColor"/>
|
||||
<nil key="highlightedColor"/>
|
||||
</label>
|
||||
</subviews>
|
||||
<constraints>
|
||||
<constraint firstItem="cQ8-2c-3gy" firstAttribute="leading" secondItem="H2p-sc-9uM" secondAttribute="leading" id="148-ld-eVu"/>
|
||||
<constraint firstItem="mh9-2s-zEa" firstAttribute="top" secondItem="WX8-nW-2o2" secondAttribute="bottom" constant="8" symbolic="YES" id="1to-7B-LLd"/>
|
||||
<constraint firstItem="ly3-fA-QfR" firstAttribute="leading" secondItem="WX8-nW-2o2" secondAttribute="trailing" constant="8" id="2rd-tx-dez"/>
|
||||
<constraint firstItem="ly3-fA-QfR" firstAttribute="top" secondItem="H2p-sc-9uM" secondAttribute="top" constant="8" id="6VM-7l-OH9"/>
|
||||
<constraint firstAttribute="trailing" secondItem="ly3-fA-QfR" secondAttribute="trailing" constant="8" id="B0N-aW-w9S"/>
|
||||
<constraint firstItem="mh9-2s-zEa" firstAttribute="leading" secondItem="WX8-nW-2o2" secondAttribute="leading" id="LX0-SQ-HAa"/>
|
||||
<constraint firstItem="ly3-fA-QfR" firstAttribute="centerY" secondItem="H2p-sc-9uM" secondAttribute="centerY" id="aAd-Au-MFh"/>
|
||||
<constraint firstAttribute="bottom" secondItem="ly3-fA-QfR" secondAttribute="bottom" constant="8" id="imh-MH-B7N"/>
|
||||
<constraint firstItem="ly3-fA-QfR" firstAttribute="leading" secondItem="mh9-2s-zEa" secondAttribute="trailing" constant="8" id="qPj-9W-xT6"/>
|
||||
<constraint firstItem="WX8-nW-2o2" firstAttribute="top" secondItem="H2p-sc-9uM" secondAttribute="topMargin" constant="-51" id="s56-f9-Tvk"/>
|
||||
<constraint firstItem="WX8-nW-2o2" firstAttribute="leading" secondItem="cQ8-2c-3gy" secondAttribute="trailing" constant="8" symbolic="YES" id="uH7-F4-5V8"/>
|
||||
<constraint firstItem="cQ8-2c-3gy" firstAttribute="centerY" secondItem="H2p-sc-9uM" secondAttribute="centerY" id="uzC-xx-wG1"/>
|
||||
<constraint firstItem="mh9-2s-zEa" firstAttribute="bottom" secondItem="cQ8-2c-3gy" secondAttribute="bottom" id="vC3-do-ri7"/>
|
||||
</constraints>
|
||||
</tableViewCellContentView>
|
||||
<viewLayoutGuide key="safeArea" id="njF-e1-oar"/>
|
||||
<connections>
|
||||
<outlet property="imgThumbnail" destination="cQ8-2c-3gy" id="LT7-Js-O1c"/>
|
||||
<outlet property="lblDescription" destination="mh9-2s-zEa" id="4Mk-Cm-S0R"/>
|
||||
<outlet property="lblRepoType" destination="ly3-fA-QfR" id="Dq3-DI-Lxi"/>
|
||||
<outlet property="lblTitle" destination="WX8-nW-2o2" id="ZFN-c0-P5H"/>
|
||||
</connections>
|
||||
<point key="canvasLocation" x="137.68115942028987" y="161.38392857142856"/>
|
||||
</tableViewCell>
|
||||
</objects>
|
||||
</document>
|
||||
|
Loading…
Add table
Add a link
Reference in a new issue