Skip to content

Commit c4f031f

Browse files
committed
🚀 Add VerticalCollectionViewController
1 parent db6b6c8 commit c4f031f

File tree

2 files changed

+30
-117
lines changed

2 files changed

+30
-117
lines changed

SelfSizingCollectionViewDemo/UICollectionViewCell/Vertical/VerticalCollectionViewCell.xib

Lines changed: 14 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -10,27 +10,32 @@
1010
<placeholder placeholderIdentifier="IBFilesOwner" id="-1" userLabel="File's Owner"/>
1111
<placeholder placeholderIdentifier="IBFirstResponder" id="-2" customClass="UIResponder"/>
1212
<collectionViewCell opaque="NO" clipsSubviews="YES" multipleTouchEnabled="YES" contentMode="center" id="gTV-IL-0wX" customClass="VerticalCollectionViewCell" customModule="SelfSizingCollectionViewDemo" customModuleProvider="target">
13-
<rect key="frame" x="0.0" y="0.0" width="245" height="50"/>
13+
<rect key="frame" x="0.0" y="0.0" width="150" height="150"/>
1414
<autoresizingMask key="autoresizingMask"/>
1515
<view key="contentView" opaque="NO" clipsSubviews="YES" multipleTouchEnabled="YES" contentMode="center">
16-
<rect key="frame" x="0.0" y="0.0" width="245" height="50"/>
16+
<rect key="frame" x="0.0" y="0.0" width="150" height="150"/>
1717
<autoresizingMask key="autoresizingMask" flexibleMaxX="YES" flexibleMaxY="YES"/>
1818
<subviews>
1919
<view clipsSubviews="YES" contentMode="scaleToFill" translatesAutoresizingMaskIntoConstraints="NO" id="auu-Rj-XYc">
20-
<rect key="frame" x="0.0" y="0.0" width="245" height="50"/>
20+
<rect key="frame" x="0.0" y="0.0" width="150" height="150"/>
2121
<subviews>
22-
<label opaque="NO" userInteractionEnabled="NO" contentMode="left" horizontalHuggingPriority="251" verticalHuggingPriority="251" text="Label" textAlignment="center" lineBreakMode="tailTruncation" baselineAdjustment="alignBaselines" adjustsFontSizeToFit="NO" translatesAutoresizingMaskIntoConstraints="NO" id="dzG-Bo-cbG">
23-
<rect key="frame" x="16" y="8" width="213" height="34"/>
22+
<label opaque="NO" userInteractionEnabled="NO" contentMode="left" horizontalHuggingPriority="251" verticalHuggingPriority="251" text="Label" textAlignment="center" lineBreakMode="tailTruncation" numberOfLines="0" baselineAdjustment="alignBaselines" adjustsFontSizeToFit="NO" translatesAutoresizingMaskIntoConstraints="NO" id="dzG-Bo-cbG">
23+
<rect key="frame" x="69" y="8" width="12" height="134"/>
24+
<constraints>
25+
<constraint firstAttribute="width" constant="12" id="HPc-YM-RuV"/>
26+
</constraints>
2427
<fontDescription key="fontDescription" type="boldSystem" pointSize="14"/>
2528
<color key="textColor" white="1" alpha="1" colorSpace="custom" customColorSpace="genericGamma22GrayColorSpace"/>
2629
<nil key="highlightedColor"/>
2730
</label>
2831
</subviews>
2932
<color key="backgroundColor" systemColor="systemIndigoColor" red="0.34509803919999998" green="0.33725490200000002" blue="0.83921568629999999" alpha="1" colorSpace="custom" customColorSpace="sRGB"/>
3033
<constraints>
31-
<constraint firstItem="dzG-Bo-cbG" firstAttribute="leading" secondItem="auu-Rj-XYc" secondAttribute="leading" constant="16" id="DBG-kU-Kjo"/>
32-
<constraint firstAttribute="trailing" secondItem="dzG-Bo-cbG" secondAttribute="trailing" constant="16" id="YYF-sb-FkJ"/>
34+
<constraint firstAttribute="width" constant="150" id="Nu7-G2-13q"/>
35+
<constraint firstItem="dzG-Bo-cbG" firstAttribute="centerX" secondItem="auu-Rj-XYc" secondAttribute="centerX" id="Ob1-3L-KVb"/>
36+
<constraint firstItem="dzG-Bo-cbG" firstAttribute="top" secondItem="auu-Rj-XYc" secondAttribute="top" constant="8" id="SVz-xO-19b"/>
3337
<constraint firstAttribute="bottom" secondItem="dzG-Bo-cbG" secondAttribute="bottom" constant="8" id="caA-4m-bHj"/>
38+
<constraint firstItem="dzG-Bo-cbG" firstAttribute="centerY" secondItem="auu-Rj-XYc" secondAttribute="centerY" id="e3Q-9g-GL0"/>
3439
<constraint firstItem="dzG-Bo-cbG" firstAttribute="top" secondItem="auu-Rj-XYc" secondAttribute="top" constant="8" id="yCo-Bv-gtX"/>
3540
</constraints>
3641
<userDefinedRuntimeAttributes>
@@ -48,11 +53,11 @@
4853
<constraint firstAttribute="bottom" secondItem="auu-Rj-XYc" secondAttribute="bottom" id="qHH-MB-sAD"/>
4954
</constraints>
5055
<viewLayoutGuide key="safeArea" id="ZTg-uK-7eu"/>
51-
<size key="customSize" width="245" height="50"/>
56+
<size key="customSize" width="150" height="150"/>
5257
<connections>
5358
<outlet property="textLabel" destination="dzG-Bo-cbG" id="4Wb-Qq-Dg6"/>
5459
</connections>
55-
<point key="canvasLocation" x="273.1884057971015" y="126.5625"/>
60+
<point key="canvasLocation" x="204.34782608695653" y="160.04464285714286"/>
5661
</collectionViewCell>
5762
</objects>
5863
</document>

0 commit comments

Comments
 (0)