|
25 | 25 | <rect key="frame" x="0.0" y="0.0" width="320" height="568"/> |
26 | 26 | <autoresizingMask key="autoresizingMask" flexibleMaxX="YES" flexibleMaxY="YES"/> |
27 | 27 | <subviews> |
28 | | - <collectionView opaque="NO" clipsSubviews="YES" multipleTouchEnabled="YES" contentMode="scaleToFill" fixedFrame="YES" showsHorizontalScrollIndicator="NO" showsVerticalScrollIndicator="NO" minimumZoomScale="0.0" maximumZoomScale="0.0" dataMode="prototypes" translatesAutoresizingMaskIntoConstraints="NO" id="xvT-99-V3u" customClass="CSFeedItemCollectionView"> |
| 28 | + <collectionView opaque="NO" clipsSubviews="YES" multipleTouchEnabled="YES" contentMode="scaleToFill" fixedFrame="YES" bounces="NO" showsHorizontalScrollIndicator="NO" showsVerticalScrollIndicator="NO" minimumZoomScale="0.0" maximumZoomScale="0.0" dataMode="prototypes" translatesAutoresizingMaskIntoConstraints="NO" id="xvT-99-V3u" customClass="CSFeedItemCollectionView"> |
29 | 29 | <rect key="frame" x="0.0" y="0.0" width="320" height="531"/> |
30 | 30 | <autoresizingMask key="autoresizingMask" widthSizable="YES" heightSizable="YES"/> |
31 | 31 | <collectionViewFlowLayout key="collectionViewLayout" scrollDirection="horizontal" minimumLineSpacing="10" minimumInteritemSpacing="10" id="g2g-cS-GvP"> |
|
53 | 53 | <rect key="frame" x="0.0" y="331" width="320" height="200"/> |
54 | 54 | <autoresizingMask key="autoresizingMask" widthSizable="YES" heightSizable="YES"/> |
55 | 55 | <subviews> |
56 | | - <label opaque="NO" clipsSubviews="YES" userInteractionEnabled="NO" contentMode="left" horizontalHuggingPriority="251" verticalHuggingPriority="251" misplaced="YES" usesAttributedText="YES" lineBreakMode="tailTruncation" baselineAdjustment="alignBaselines" adjustsFontSizeToFit="NO" translatesAutoresizingMaskIntoConstraints="NO" id="Xwa-jG-ubQ"> |
57 | | - <rect key="frame" x="20" y="8" width="280" height="16"/> |
| 56 | + <label opaque="NO" clipsSubviews="YES" userInteractionEnabled="NO" contentMode="left" horizontalHuggingPriority="251" verticalHuggingPriority="251" usesAttributedText="YES" lineBreakMode="tailTruncation" baselineAdjustment="alignBaselines" adjustsFontSizeToFit="NO" translatesAutoresizingMaskIntoConstraints="NO" id="Xwa-jG-ubQ"> |
| 57 | + <rect key="frame" x="20" y="8" width="274" height="16"/> |
58 | 58 | <autoresizingMask key="autoresizingMask" flexibleMaxX="YES" flexibleMaxY="YES"/> |
59 | 59 | <attributedString key="attributedText"> |
60 | 60 | <fragment content="label"> |
|
68 | 68 | </attributedString> |
69 | 69 | <nil key="highlightedColor"/> |
70 | 70 | </label> |
71 | | - <label opaque="NO" clipsSubviews="YES" userInteractionEnabled="NO" contentMode="left" horizontalHuggingPriority="251" verticalHuggingPriority="251" misplaced="YES" usesAttributedText="YES" lineBreakMode="tailTruncation" numberOfLines="2" baselineAdjustment="alignBaselines" adjustsFontSizeToFit="NO" preferredMaxLayoutWidth="280" translatesAutoresizingMaskIntoConstraints="NO" id="5IB-v3-acz"> |
72 | | - <rect key="frame" x="20" y="27" width="280" height="75"/> |
| 71 | + <label opaque="NO" clipsSubviews="YES" userInteractionEnabled="NO" contentMode="left" horizontalHuggingPriority="251" verticalHuggingPriority="251" usesAttributedText="YES" lineBreakMode="tailTruncation" numberOfLines="2" baselineAdjustment="alignBaselines" adjustsFontSizeToFit="NO" preferredMaxLayoutWidth="274" translatesAutoresizingMaskIntoConstraints="NO" id="5IB-v3-acz"> |
| 72 | + <rect key="frame" x="20" y="27" width="274" height="75"/> |
73 | 73 | <autoresizingMask key="autoresizingMask" flexibleMaxX="YES" flexibleMaxY="YES"/> |
74 | 74 | <constraints> |
75 | 75 | <constraint firstAttribute="height" constant="75" id="Ev7-IU-V7M"/> |
|
86 | 86 | </attributedString> |
87 | 87 | <nil key="highlightedColor"/> |
88 | 88 | </label> |
89 | | - <label opaque="NO" clipsSubviews="YES" userInteractionEnabled="NO" contentMode="left" horizontalHuggingPriority="251" verticalHuggingPriority="251" misplaced="YES" usesAttributedText="YES" lineBreakMode="tailTruncation" numberOfLines="4" baselineAdjustment="alignBaselines" adjustsFontSizeToFit="NO" preferredMaxLayoutWidth="280" translatesAutoresizingMaskIntoConstraints="NO" id="Hbm-RM-Vyr"> |
90 | | - <rect key="frame" x="20" y="95" width="280" height="93"/> |
| 89 | + <label opaque="NO" clipsSubviews="YES" userInteractionEnabled="NO" contentMode="left" horizontalHuggingPriority="251" verticalHuggingPriority="251" usesAttributedText="YES" lineBreakMode="tailTruncation" numberOfLines="4" baselineAdjustment="alignBaselines" adjustsFontSizeToFit="NO" preferredMaxLayoutWidth="274" translatesAutoresizingMaskIntoConstraints="NO" id="Hbm-RM-Vyr"> |
| 90 | + <rect key="frame" x="20" y="95" width="274" height="93"/> |
91 | 91 | <autoresizingMask key="autoresizingMask" flexibleMaxX="YES" flexibleMaxY="YES"/> |
92 | 92 | <attributedString key="attributedText"> |
93 | | - <fragment content="short text"> |
| 93 | + <fragment> |
| 94 | + <string key="content">Sometimes article summaries can be short and sometimes they can be very long. We need to prepare for both situations. To do this we should top align the summary in a text view and make it fade as it goes off the end of the box.</string> |
94 | 95 | <attributes> |
95 | 96 | <color key="NSColor" red="0.85490196078431369" green="0.90980392156862744" blue="0.94901960784313721" alpha="1" colorSpace="calibratedRGB"/> |
96 | 97 | <font key="NSFont" size="15" name="HelveticaNeue"/> |
|
0 commit comments