mirror of
https://github.com/Ranchero-Software/NetNewsWire
synced 2026-11-30 09:18:18 +00:00
Fix timeline customiser
This commit is contained in:
3 files changed
+204
-157
No files matched your search
@@ -29,6 +29,7 @@ class MainTimelineCell: UITableViewCell {
|
||||
MainActor.assumeIsolated {
|
||||
super.awakeFromNib()
|
||||
indicatorView.alpha = 0.0
|
||||
feedIcon?.translatesAutoresizingMaskIntoConstraints = false
|
||||
configureStackView()
|
||||
}
|
||||
}
|
||||
@@ -50,7 +51,7 @@ class MainTimelineCell: UITableViewCell {
|
||||
}
|
||||
|
||||
if feedIcon != nil {
|
||||
setIconImage(cellData.iconImage)
|
||||
setIconImage(cellData.iconImage, with: cellData.iconSize)
|
||||
}
|
||||
|
||||
articleDate.text = cellData.dateString
|
||||
@@ -110,6 +111,26 @@ class MainTimelineCell: UITableViewCell {
|
||||
}
|
||||
}
|
||||
|
||||
private func setIconImage(_ iconImage: IconImage?, with size: IconSize) {
|
||||
feedIcon!.iconImage = iconImage
|
||||
updateIconViewSizeConstraints(to: size.size)
|
||||
}
|
||||
|
||||
private func updateIconViewSizeConstraints(to size: CGSize) {
|
||||
guard feedIcon != nil else { return }
|
||||
|
||||
for constraint in feedIcon!.constraints.compactMap({ $0 }) {
|
||||
constraint.isActive = false
|
||||
}
|
||||
|
||||
NSLayoutConstraint.activate([
|
||||
feedIcon!.widthAnchor.constraint(equalToConstant: size.width),
|
||||
feedIcon!.heightAnchor.constraint(equalToConstant: size.height)
|
||||
])
|
||||
|
||||
setNeedsLayout()
|
||||
}
|
||||
|
||||
private func addArticleContent(_ state: UICellConfigurationState) {
|
||||
let attributedCellText = NSMutableAttributedString()
|
||||
|
||||
@@ -170,15 +191,20 @@ class MainTimelineCell: UITableViewCell {
|
||||
}
|
||||
|
||||
let linesUsed = countLines(of: attributedCellText, width: articleContent.bounds.width)
|
||||
if attributedCellText.string.contains("Bree-folk") {
|
||||
print("Bree-folk: \(linesUsed), \(self.feedIcon != nil)")
|
||||
}
|
||||
if linesUsed >= cellData.numberOfLines {
|
||||
// The title already fills 3 lines, set it and exit
|
||||
articleContent.attributedText = attributedCellText
|
||||
articleContent.lineBreakMode = .byTruncatingTail
|
||||
return
|
||||
} else {
|
||||
articleContent.attributedText = attributedCellText
|
||||
articleContent.lineBreakMode = .byWordWrapping
|
||||
}
|
||||
|
||||
articleContent.attributedText = attributedCellText
|
||||
|
||||
|
||||
}
|
||||
|
||||
func titleTextColor(for state: UICellConfigurationState) -> UIColor {
|
||||
@@ -216,7 +242,7 @@ class MainTimelineCell: UITableViewCell {
|
||||
super.updateConfiguration(using: state)
|
||||
|
||||
var backgroundConfig = UIBackgroundConfiguration.listCell().updated(for: state)
|
||||
backgroundConfig.cornerRadius = traitCollection.userInterfaceIdiom == .pad ? 20 : 0
|
||||
backgroundConfig.cornerRadius = 20
|
||||
if traitCollection.userInterfaceIdiom == .pad {
|
||||
backgroundConfig.edgesAddingLayoutMarginsToBackgroundInsets = [.leading, .trailing]
|
||||
backgroundConfig.backgroundInsets = NSDirectionalEdgeInsets(top: 0, leading: !isPreview ? -4 : -12, bottom: 0, trailing: !isPreview ? -4 : -12)
|
||||
|
||||
+129
-108
@@ -276,19 +276,19 @@
|
||||
</connections>
|
||||
</tableViewCell>
|
||||
<tableViewCell clipsSubviews="YES" contentMode="scaleToFill" preservesSuperviewLayoutMargins="YES" selectionStyle="none" indentationWidth="10" id="SXs-NQ-y3U" customClass="VibrantTableViewCell" customModule="NetNewsWire" customModuleProvider="target">
|
||||
<rect key="frame" x="20" y="791" width="374" height="51.5"/>
|
||||
<rect key="frame" x="20" y="791" width="374" height="52"/>
|
||||
<autoresizingMask key="autoresizingMask"/>
|
||||
<tableViewCellContentView key="contentView" opaque="NO" clipsSubviews="YES" multipleTouchEnabled="YES" contentMode="center" preservesSuperviewLayoutMargins="YES" insetsLayoutMarginsFromSafeArea="NO" tableViewCell="SXs-NQ-y3U" id="BpI-Hz-KH2">
|
||||
<rect key="frame" x="0.0" y="0.0" width="374" height="51.5"/>
|
||||
<rect key="frame" x="0.0" y="0.0" width="374" height="52"/>
|
||||
<autoresizingMask key="autoresizingMask"/>
|
||||
<subviews>
|
||||
<label opaque="NO" userInteractionEnabled="NO" contentMode="left" horizontalHuggingPriority="251" verticalHuggingPriority="251" horizontalCompressionResistancePriority="749" text="Confirm Mark All as Read" textAlignment="natural" lineBreakMode="tailTruncation" numberOfLines="0" baselineAdjustment="alignBaselines" adjustsFontForContentSizeCategory="YES" adjustsFontSizeToFit="NO" translatesAutoresizingMaskIntoConstraints="NO" id="5tY-5k-v2g">
|
||||
<label opaque="NO" userInteractionEnabled="NO" contentMode="left" horizontalHuggingPriority="251" verticalHuggingPriority="251" horizontalCompressionResistancePriority="749" ambiguous="YES" text="Confirm Mark All as Read" textAlignment="natural" lineBreakMode="tailTruncation" numberOfLines="0" baselineAdjustment="alignBaselines" adjustsFontForContentSizeCategory="YES" adjustsFontSizeToFit="NO" translatesAutoresizingMaskIntoConstraints="NO" id="5tY-5k-v2g">
|
||||
<rect key="frame" x="20" y="15" width="191.5" height="21.5"/>
|
||||
<fontDescription key="fontDescription" style="UICTFontTextStyleBody"/>
|
||||
<nil key="textColor"/>
|
||||
<nil key="highlightedColor"/>
|
||||
</label>
|
||||
<switch opaque="NO" contentMode="scaleToFill" horizontalHuggingPriority="750" verticalHuggingPriority="750" contentHorizontalAlignment="center" contentVerticalAlignment="center" on="YES" translatesAutoresizingMaskIntoConstraints="NO" id="UOo-9z-IuL">
|
||||
<switch opaque="NO" contentMode="scaleToFill" horizontalHuggingPriority="750" verticalHuggingPriority="750" ambiguous="YES" contentHorizontalAlignment="center" contentVerticalAlignment="center" on="YES" translatesAutoresizingMaskIntoConstraints="NO" id="UOo-9z-IuL">
|
||||
<rect key="frame" x="295" y="12" width="63" height="28"/>
|
||||
<color key="onTintColor" name="primaryAccentColor"/>
|
||||
<connections>
|
||||
@@ -309,19 +309,19 @@
|
||||
</tableViewCellContentView>
|
||||
</tableViewCell>
|
||||
<tableViewCell clipsSubviews="YES" contentMode="scaleToFill" preservesSuperviewLayoutMargins="YES" selectionStyle="default" indentationWidth="10" id="EYf-v1-lNi" customClass="VibrantBasicTableViewCell" customModule="NetNewsWire" customModuleProvider="target">
|
||||
<rect key="frame" x="20" y="842.5" width="374" height="52.5"/>
|
||||
<rect key="frame" x="20" y="843" width="374" height="52"/>
|
||||
<autoresizingMask key="autoresizingMask"/>
|
||||
<tableViewCellContentView key="contentView" opaque="NO" clipsSubviews="YES" multipleTouchEnabled="YES" contentMode="center" preservesSuperviewLayoutMargins="YES" insetsLayoutMarginsFromSafeArea="NO" tableViewCell="EYf-v1-lNi" id="7nz-0Y-HaW">
|
||||
<rect key="frame" x="0.0" y="0.0" width="374" height="52.5"/>
|
||||
<rect key="frame" x="0.0" y="0.0" width="374" height="52"/>
|
||||
<autoresizingMask key="autoresizingMask"/>
|
||||
<subviews>
|
||||
<label opaque="NO" userInteractionEnabled="NO" contentMode="left" horizontalHuggingPriority="251" verticalHuggingPriority="251" text="Open Links in NetNewsWire" textAlignment="natural" lineBreakMode="tailTruncation" numberOfLines="0" baselineAdjustment="alignBaselines" adjustsFontForContentSizeCategory="YES" adjustsFontSizeToFit="NO" translatesAutoresizingMaskIntoConstraints="NO" id="Wm4-Y1-7nX">
|
||||
<label opaque="NO" userInteractionEnabled="NO" contentMode="left" horizontalHuggingPriority="251" verticalHuggingPriority="251" ambiguous="YES" text="Open Links in NetNewsWire" textAlignment="natural" lineBreakMode="tailTruncation" numberOfLines="0" baselineAdjustment="alignBaselines" adjustsFontForContentSizeCategory="YES" adjustsFontSizeToFit="NO" translatesAutoresizingMaskIntoConstraints="NO" id="Wm4-Y1-7nX">
|
||||
<rect key="frame" x="20" y="18" width="267" height="21.5"/>
|
||||
<fontDescription key="fontDescription" style="UICTFontTextStyleBody"/>
|
||||
<nil key="textColor"/>
|
||||
<nil key="highlightedColor"/>
|
||||
</label>
|
||||
<switch opaque="NO" contentMode="scaleToFill" horizontalHuggingPriority="750" verticalHuggingPriority="750" contentHorizontalAlignment="center" contentVerticalAlignment="center" on="YES" translatesAutoresizingMaskIntoConstraints="NO" id="dhR-L2-PX3" userLabel="Open Links in NetNewsWire">
|
||||
<switch opaque="NO" contentMode="scaleToFill" horizontalHuggingPriority="750" verticalHuggingPriority="750" ambiguous="YES" contentHorizontalAlignment="center" contentVerticalAlignment="center" on="YES" translatesAutoresizingMaskIntoConstraints="NO" id="dhR-L2-PX3" userLabel="Open Links in NetNewsWire">
|
||||
<rect key="frame" x="295" y="12.5" width="63" height="28"/>
|
||||
<constraints>
|
||||
<constraint firstAttribute="width" constant="61" id="W9X-AR-85J"/>
|
||||
@@ -475,7 +475,7 @@
|
||||
<rect key="frame" x="0.0" y="0.0" width="374" height="51"/>
|
||||
<autoresizingMask key="autoresizingMask"/>
|
||||
<subviews>
|
||||
<label opaque="NO" multipleTouchEnabled="YES" contentMode="left" insetsLayoutMarginsFromSafeArea="NO" text="NetNewsWire Help" textAlignment="natural" lineBreakMode="tailTruncation" baselineAdjustment="alignBaselines" adjustsFontForContentSizeCategory="YES" adjustsFontSizeToFit="NO" id="uGk-2d-oFc">
|
||||
<label opaque="NO" multipleTouchEnabled="YES" contentMode="left" ambiguous="YES" insetsLayoutMarginsFromSafeArea="NO" text="NetNewsWire Help" textAlignment="natural" lineBreakMode="tailTruncation" baselineAdjustment="alignBaselines" adjustsFontForContentSizeCategory="YES" adjustsFontSizeToFit="NO" id="uGk-2d-oFc">
|
||||
<rect key="frame" x="8" y="0.0" width="358" height="51"/>
|
||||
<autoresizingMask key="autoresizingMask"/>
|
||||
<fontDescription key="fontDescription" style="UICTFontTextStyleBody"/>
|
||||
@@ -492,7 +492,7 @@
|
||||
<rect key="frame" x="0.0" y="0.0" width="374" height="51"/>
|
||||
<autoresizingMask key="autoresizingMask"/>
|
||||
<subviews>
|
||||
<label opaque="NO" multipleTouchEnabled="YES" contentMode="left" insetsLayoutMarginsFromSafeArea="NO" text="NetNewsWire Forum" textAlignment="natural" lineBreakMode="tailTruncation" baselineAdjustment="alignBaselines" adjustsFontForContentSizeCategory="YES" adjustsFontSizeToFit="NO" id="MLJ-rt-2zt">
|
||||
<label opaque="NO" multipleTouchEnabled="YES" contentMode="left" ambiguous="YES" insetsLayoutMarginsFromSafeArea="NO" text="NetNewsWire Forum" textAlignment="natural" lineBreakMode="tailTruncation" baselineAdjustment="alignBaselines" adjustsFontForContentSizeCategory="YES" adjustsFontSizeToFit="NO" id="MLJ-rt-2zt">
|
||||
<rect key="frame" x="8" y="0.0" width="358" height="51"/>
|
||||
<autoresizingMask key="autoresizingMask"/>
|
||||
<fontDescription key="fontDescription" style="UICTFontTextStyleBody"/>
|
||||
@@ -509,7 +509,7 @@
|
||||
<rect key="frame" x="0.0" y="0.0" width="374" height="51"/>
|
||||
<autoresizingMask key="autoresizingMask"/>
|
||||
<subviews>
|
||||
<label opaque="NO" multipleTouchEnabled="YES" contentMode="left" insetsLayoutMarginsFromSafeArea="NO" text="Release Notes" textAlignment="natural" lineBreakMode="tailTruncation" baselineAdjustment="alignBaselines" adjustsFontForContentSizeCategory="YES" adjustsFontSizeToFit="NO" id="NeD-y8-KrM">
|
||||
<label opaque="NO" multipleTouchEnabled="YES" contentMode="left" ambiguous="YES" insetsLayoutMarginsFromSafeArea="NO" text="Release Notes" textAlignment="natural" lineBreakMode="tailTruncation" baselineAdjustment="alignBaselines" adjustsFontForContentSizeCategory="YES" adjustsFontSizeToFit="NO" id="NeD-y8-KrM">
|
||||
<rect key="frame" x="8" y="0.0" width="358" height="51"/>
|
||||
<autoresizingMask key="autoresizingMask"/>
|
||||
<fontDescription key="fontDescription" style="UICTFontTextStyleBody"/>
|
||||
@@ -526,7 +526,7 @@
|
||||
<rect key="frame" x="0.0" y="0.0" width="374" height="51"/>
|
||||
<autoresizingMask key="autoresizingMask"/>
|
||||
<subviews>
|
||||
<label opaque="NO" multipleTouchEnabled="YES" contentMode="left" insetsLayoutMarginsFromSafeArea="NO" text="Bug Tracker" textAlignment="natural" lineBreakMode="tailTruncation" baselineAdjustment="alignBaselines" adjustsFontForContentSizeCategory="YES" adjustsFontSizeToFit="NO" id="DsV-Qv-X4K">
|
||||
<label opaque="NO" multipleTouchEnabled="YES" contentMode="left" ambiguous="YES" insetsLayoutMarginsFromSafeArea="NO" text="Bug Tracker" textAlignment="natural" lineBreakMode="tailTruncation" baselineAdjustment="alignBaselines" adjustsFontForContentSizeCategory="YES" adjustsFontSizeToFit="NO" id="DsV-Qv-X4K">
|
||||
<rect key="frame" x="8" y="0.0" width="358" height="51"/>
|
||||
<autoresizingMask key="autoresizingMask"/>
|
||||
<fontDescription key="fontDescription" style="UICTFontTextStyleBody"/>
|
||||
@@ -543,7 +543,7 @@
|
||||
<rect key="frame" x="0.0" y="0.0" width="355.5" height="51"/>
|
||||
<autoresizingMask key="autoresizingMask"/>
|
||||
<subviews>
|
||||
<label opaque="NO" multipleTouchEnabled="YES" contentMode="left" insetsLayoutMarginsFromSafeArea="NO" text="About NetNewsWire" textAlignment="natural" lineBreakMode="tailTruncation" baselineAdjustment="alignBaselines" adjustsFontForContentSizeCategory="YES" adjustsFontSizeToFit="NO" id="76A-Ng-kfs">
|
||||
<label opaque="NO" multipleTouchEnabled="YES" contentMode="left" ambiguous="YES" insetsLayoutMarginsFromSafeArea="NO" text="About NetNewsWire" textAlignment="natural" lineBreakMode="tailTruncation" baselineAdjustment="alignBaselines" adjustsFontForContentSizeCategory="YES" adjustsFontSizeToFit="NO" id="76A-Ng-kfs">
|
||||
<rect key="frame" x="8" y="0.0" width="339.5" height="51"/>
|
||||
<autoresizingMask key="autoresizingMask"/>
|
||||
<fontDescription key="fontDescription" style="UICTFontTextStyleBody"/>
|
||||
@@ -705,144 +705,162 @@
|
||||
<outlet property="slider" destination="VrS-AA-rmv" id="jf5-NH-dB4"/>
|
||||
</connections>
|
||||
</tableViewCell>
|
||||
<tableViewCell clipsSubviews="YES" contentMode="scaleToFill" preservesSuperviewLayoutMargins="YES" selectionStyle="none" indentationWidth="10" reuseIdentifier="MainTimelineFeedCell" rowHeight="62" id="b73-mH-qmJ" customClass="MainTimelineFeedCell" customModule="NetNewsWire" customModuleProvider="target">
|
||||
<tableViewCell clipsSubviews="YES" contentMode="scaleToFill" preservesSuperviewLayoutMargins="YES" selectionStyle="default" indentationWidth="10" reuseIdentifier="MainTimelineCellIcon" rowHeight="62" id="DzP-q8-s6y" userLabel="MainTimelineCellIcon" customClass="MainTimelineCell" customModule="NetNewsWire" customModuleProvider="target">
|
||||
<rect key="frame" x="0.0" y="163.5" width="414" height="62"/>
|
||||
<autoresizingMask key="autoresizingMask"/>
|
||||
<tableViewCellContentView key="contentView" opaque="NO" clipsSubviews="YES" multipleTouchEnabled="YES" contentMode="center" preservesSuperviewLayoutMargins="YES" tableViewCell="b73-mH-qmJ" id="6Jn-X3-AqM">
|
||||
<tableViewCellContentView key="contentView" opaque="NO" clipsSubviews="YES" multipleTouchEnabled="YES" contentMode="center" preservesSuperviewLayoutMargins="YES" tableViewCell="DzP-q8-s6y" id="UVv-Xw-Du7">
|
||||
<rect key="frame" x="0.0" y="0.0" width="414" height="62"/>
|
||||
<autoresizingMask key="autoresizingMask"/>
|
||||
<subviews>
|
||||
<view contentMode="scaleToFill" translatesAutoresizingMaskIntoConstraints="NO" id="E3D-Ly-GRK" customClass="IconView" customModule="NetNewsWire" customModuleProvider="target">
|
||||
<rect key="frame" x="15" y="15" width="16" height="16"/>
|
||||
<color key="backgroundColor" white="0.0" alpha="0.0" colorSpace="custom" customColorSpace="genericGamma22GrayColorSpace"/>
|
||||
<view contentMode="scaleToFill" translatesAutoresizingMaskIntoConstraints="NO" id="xoI-jl-Ecz" userLabel="Top Separator">
|
||||
<rect key="frame" x="83" y="0.0" width="311" height="1"/>
|
||||
<color key="backgroundColor" systemColor="separatorColor"/>
|
||||
<constraints>
|
||||
<constraint firstAttribute="height" constant="16" id="mke-vQ-blX"/>
|
||||
<constraint firstAttribute="width" constant="16" id="r38-JX-8dX"/>
|
||||
<constraint firstAttribute="height" constant="1" id="ksk-Te-1OI"/>
|
||||
</constraints>
|
||||
</view>
|
||||
<label opaque="NO" userInteractionEnabled="NO" contentMode="left" horizontalHuggingPriority="251" verticalHuggingPriority="251" text="Article Title" textAlignment="natural" lineBreakMode="tailTruncation" numberOfLines="2" baselineAdjustment="alignBaselines" adjustsFontSizeToFit="NO" translatesAutoresizingMaskIntoConstraints="NO" id="gwV-mE-Eju">
|
||||
<rect key="frame" x="39" y="13" width="355" height="20.5"/>
|
||||
<fontDescription key="fontDescription" style="UICTFontTextStyleHeadline"/>
|
||||
<nil key="textColor"/>
|
||||
<nil key="highlightedColor"/>
|
||||
</label>
|
||||
<stackView opaque="NO" contentMode="scaleToFill" distribution="fillProportionally" alignment="center" translatesAutoresizingMaskIntoConstraints="NO" id="fGC-ko-PtD">
|
||||
<rect key="frame" x="39" y="34" width="355" height="20.5"/>
|
||||
<subviews>
|
||||
<label opaque="NO" userInteractionEnabled="NO" contentMode="left" horizontalHuggingPriority="251" verticalHuggingPriority="251" text="authorByLine" textAlignment="natural" lineBreakMode="wordWrap" baselineAdjustment="alignBaselines" adjustsFontSizeToFit="NO" translatesAutoresizingMaskIntoConstraints="NO" id="P7G-Eh-7RI">
|
||||
<rect key="frame" x="0.0" y="3" width="194.5" height="14.5"/>
|
||||
<fontDescription key="fontDescription" style="UICTFontTextStyleCaption1"/>
|
||||
<color key="textColor" systemColor="secondaryLabelColor"/>
|
||||
<nil key="highlightedColor"/>
|
||||
</label>
|
||||
<label opaque="NO" userInteractionEnabled="NO" contentMode="left" horizontalHuggingPriority="251" verticalHuggingPriority="251" text="articleDate" textAlignment="right" lineBreakMode="wordWrap" baselineAdjustment="alignBaselines" adjustsFontSizeToFit="NO" translatesAutoresizingMaskIntoConstraints="NO" id="mo8-RC-RLn">
|
||||
<rect key="frame" x="194.5" y="3" width="160.5" height="14.5"/>
|
||||
<fontDescription key="fontDescription" style="UICTFontTextStyleCaption1"/>
|
||||
<color key="textColor" systemColor="secondaryLabelColor"/>
|
||||
<nil key="highlightedColor"/>
|
||||
</label>
|
||||
</subviews>
|
||||
</stackView>
|
||||
</subviews>
|
||||
<viewLayoutGuide key="safeArea" id="6BY-Wz-ai0"/>
|
||||
<color key="tintColor" white="0.0" alpha="0.0" colorSpace="custom" customColorSpace="genericGamma22GrayColorSpace"/>
|
||||
<constraints>
|
||||
<constraint firstItem="E3D-Ly-GRK" firstAttribute="leading" secondItem="6BY-Wz-ai0" secondAttribute="leading" constant="15" id="1nB-Pq-wCR"/>
|
||||
<constraint firstItem="6BY-Wz-ai0" firstAttribute="bottom" secondItem="fGC-ko-PtD" secondAttribute="bottom" constant="7.6666666666666217" id="G0U-ew-Y4w"/>
|
||||
<constraint firstItem="gwV-mE-Eju" firstAttribute="leading" secondItem="E3D-Ly-GRK" secondAttribute="trailing" constant="8" symbolic="YES" id="L71-vL-Mpr"/>
|
||||
<constraint firstItem="fGC-ko-PtD" firstAttribute="top" secondItem="gwV-mE-Eju" secondAttribute="bottom" constant="0.6666666666666714" id="QYq-Qj-7Vt"/>
|
||||
<constraint firstItem="fGC-ko-PtD" firstAttribute="leading" secondItem="gwV-mE-Eju" secondAttribute="leading" id="X7c-5F-nfx"/>
|
||||
<constraint firstItem="gwV-mE-Eju" firstAttribute="top" secondItem="6BY-Wz-ai0" secondAttribute="top" constant="13" id="kJu-Gq-uRY"/>
|
||||
<constraint firstItem="6BY-Wz-ai0" firstAttribute="trailing" secondItem="gwV-mE-Eju" secondAttribute="trailing" constant="20" id="qzB-aP-vwJ"/>
|
||||
<constraint firstItem="6BY-Wz-ai0" firstAttribute="trailing" secondItem="fGC-ko-PtD" secondAttribute="trailing" constant="20" id="tDY-ty-FFk"/>
|
||||
<constraint firstItem="E3D-Ly-GRK" firstAttribute="top" secondItem="6BY-Wz-ai0" secondAttribute="top" constant="15" id="vlH-QL-dFa"/>
|
||||
</constraints>
|
||||
</tableViewCellContentView>
|
||||
<color key="backgroundColor" white="1" alpha="1" colorSpace="custom" customColorSpace="genericGamma22GrayColorSpace"/>
|
||||
<color key="tintColor" white="0.0" alpha="0.0" colorSpace="custom" customColorSpace="genericGamma22GrayColorSpace"/>
|
||||
<connections>
|
||||
<outlet property="articleDate" destination="mo8-RC-RLn" id="2ed-kK-H6F"/>
|
||||
<outlet property="articleTitle" destination="gwV-mE-Eju" id="Es3-Bg-h3p"/>
|
||||
<outlet property="authorByLine" destination="P7G-Eh-7RI" id="X8B-Ht-bTG"/>
|
||||
<outlet property="indicatorView" destination="E3D-Ly-GRK" id="kuB-57-XGD"/>
|
||||
<outlet property="metaDataStackView" destination="fGC-ko-PtD" id="nzZ-mR-uwq"/>
|
||||
</connections>
|
||||
</tableViewCell>
|
||||
<tableViewCell clipsSubviews="YES" contentMode="scaleToFill" preservesSuperviewLayoutMargins="YES" selectionStyle="none" indentationWidth="10" reuseIdentifier="MainTimelineIconFeedCell" rowHeight="62" id="R7O-v4-9Wp" customClass="MainTimelineIconFeedCell" customModule="NetNewsWire" customModuleProvider="target">
|
||||
<rect key="frame" x="0.0" y="225.5" width="414" height="62"/>
|
||||
<autoresizingMask key="autoresizingMask"/>
|
||||
<tableViewCellContentView key="contentView" opaque="NO" clipsSubviews="YES" multipleTouchEnabled="YES" contentMode="center" preservesSuperviewLayoutMargins="YES" tableViewCell="R7O-v4-9Wp" id="Pz0-v0-Ui0">
|
||||
<rect key="frame" x="0.0" y="0.0" width="414" height="62"/>
|
||||
<autoresizingMask key="autoresizingMask"/>
|
||||
<subviews>
|
||||
<label opaque="NO" userInteractionEnabled="NO" contentMode="left" horizontalHuggingPriority="251" verticalHuggingPriority="251" text="Article Title" textAlignment="natural" lineBreakMode="tailTruncation" numberOfLines="2" baselineAdjustment="alignBaselines" adjustsFontSizeToFit="NO" translatesAutoresizingMaskIntoConstraints="NO" id="D08-JZ-OXx">
|
||||
<label opaque="NO" userInteractionEnabled="NO" contentMode="left" horizontalHuggingPriority="251" verticalHuggingPriority="251" text="Article Title" textAlignment="natural" lineBreakMode="wordWrap" numberOfLines="2" baselineAdjustment="alignBaselines" adjustsFontSizeToFit="NO" translatesAutoresizingMaskIntoConstraints="NO" id="vWh-hD-TcP">
|
||||
<rect key="frame" x="83" y="13" width="311" height="20.5"/>
|
||||
<fontDescription key="fontDescription" style="UICTFontTextStyleHeadline"/>
|
||||
<nil key="textColor"/>
|
||||
<nil key="highlightedColor"/>
|
||||
</label>
|
||||
<view contentMode="scaleToFill" translatesAutoresizingMaskIntoConstraints="NO" id="Tms-jW-A6w" customClass="IconView" customModule="NetNewsWire" customModuleProvider="target">
|
||||
<rect key="frame" x="39" y="15" width="36" height="36"/>
|
||||
<view contentMode="scaleToFill" translatesAutoresizingMaskIntoConstraints="NO" id="JbL-fo-epB" customClass="IconView" customModule="NetNewsWire" customModuleProvider="target">
|
||||
<rect key="frame" x="39" y="13" width="36" height="36"/>
|
||||
<color key="backgroundColor" white="0.0" alpha="0.0" colorSpace="custom" customColorSpace="genericGamma22GrayColorSpace"/>
|
||||
<constraints>
|
||||
<constraint firstAttribute="height" constant="36" id="MC4-Rl-S6b"/>
|
||||
<constraint firstAttribute="width" constant="36" id="nTW-o6-cZb"/>
|
||||
<constraint firstAttribute="height" constant="36" id="Dns-9a-Hao"/>
|
||||
<constraint firstAttribute="width" constant="36" id="TYi-oc-uQY"/>
|
||||
</constraints>
|
||||
</view>
|
||||
<view contentMode="scaleToFill" translatesAutoresizingMaskIntoConstraints="NO" id="bWD-9m-Fch" customClass="IconView" customModule="NetNewsWire" customModuleProvider="target">
|
||||
<view contentMode="scaleToFill" translatesAutoresizingMaskIntoConstraints="NO" id="Uy5-d1-hRY" customClass="IconView" customModule="NetNewsWire" customModuleProvider="target">
|
||||
<rect key="frame" x="15" y="15" width="16" height="16"/>
|
||||
<color key="backgroundColor" white="0.0" alpha="0.0" colorSpace="custom" customColorSpace="genericGamma22GrayColorSpace"/>
|
||||
<constraints>
|
||||
<constraint firstAttribute="height" constant="16" id="T1h-cS-jdq"/>
|
||||
<constraint firstAttribute="width" constant="16" id="dmA-Gg-PjR"/>
|
||||
<constraint firstAttribute="width" constant="16" id="iNL-Jx-ZPg"/>
|
||||
<constraint firstAttribute="height" constant="16" id="rWt-N1-B8G"/>
|
||||
</constraints>
|
||||
</view>
|
||||
<stackView opaque="NO" contentMode="scaleToFill" distribution="fillProportionally" alignment="center" spacingType="standard" translatesAutoresizingMaskIntoConstraints="NO" id="Zz9-ug-cmp">
|
||||
<stackView opaque="NO" contentMode="scaleToFill" distribution="fillEqually" alignment="center" spacingType="standard" translatesAutoresizingMaskIntoConstraints="NO" id="1eJ-ue-QFn">
|
||||
<rect key="frame" x="83" y="34.5" width="311" height="19.5"/>
|
||||
<subviews>
|
||||
<label opaque="NO" userInteractionEnabled="NO" contentMode="left" horizontalHuggingPriority="251" verticalHuggingPriority="251" text="authorByLine" textAlignment="natural" lineBreakMode="wordWrap" baselineAdjustment="alignBaselines" adjustsFontSizeToFit="NO" translatesAutoresizingMaskIntoConstraints="NO" id="M4A-5J-4Kd">
|
||||
<rect key="frame" x="0.0" y="2.5" width="170.5" height="14.5"/>
|
||||
<label opaque="NO" userInteractionEnabled="NO" contentMode="left" horizontalHuggingPriority="251" verticalHuggingPriority="251" text="authorByLine" textAlignment="natural" lineBreakMode="tailTruncation" baselineAdjustment="alignBaselines" adjustsFontSizeToFit="NO" translatesAutoresizingMaskIntoConstraints="NO" id="rIf-xJ-oP5">
|
||||
<rect key="frame" x="0.0" y="2.5" width="151.5" height="14.5"/>
|
||||
<fontDescription key="fontDescription" style="UICTFontTextStyleCaption1"/>
|
||||
<color key="textColor" systemColor="secondaryLabelColor"/>
|
||||
<nil key="highlightedColor"/>
|
||||
</label>
|
||||
<label opaque="NO" userInteractionEnabled="NO" contentMode="left" horizontalHuggingPriority="251" verticalHuggingPriority="251" text="articleDate" textAlignment="right" lineBreakMode="wordWrap" baselineAdjustment="alignBaselines" adjustsFontSizeToFit="NO" translatesAutoresizingMaskIntoConstraints="NO" id="Kvo-fg-kta">
|
||||
<rect key="frame" x="178.5" y="2.5" width="132.5" height="14.5"/>
|
||||
<label opaque="NO" userInteractionEnabled="NO" contentMode="left" horizontalHuggingPriority="251" verticalHuggingPriority="251" text="articleDate" textAlignment="right" lineBreakMode="wordWrap" baselineAdjustment="alignBaselines" adjustsFontSizeToFit="NO" translatesAutoresizingMaskIntoConstraints="NO" id="ut3-ND-i4g">
|
||||
<rect key="frame" x="159.5" y="2.5" width="151.5" height="14.5"/>
|
||||
<fontDescription key="fontDescription" style="UICTFontTextStyleCaption1"/>
|
||||
<color key="textColor" systemColor="secondaryLabelColor"/>
|
||||
<nil key="highlightedColor"/>
|
||||
</label>
|
||||
</subviews>
|
||||
<constraints>
|
||||
<constraint firstItem="M4A-5J-4Kd" firstAttribute="leading" secondItem="Zz9-ug-cmp" secondAttribute="leading" id="s2N-d0-7dE"/>
|
||||
<constraint firstItem="rIf-xJ-oP5" firstAttribute="leading" secondItem="1eJ-ue-QFn" secondAttribute="leading" id="I34-OB-dWU"/>
|
||||
</constraints>
|
||||
</stackView>
|
||||
</subviews>
|
||||
<viewLayoutGuide key="safeArea" id="0dz-eB-6XG"/>
|
||||
<viewLayoutGuide key="safeArea" id="kFO-Kh-Zoh"/>
|
||||
<color key="tintColor" white="0.0" alpha="0.0" colorSpace="custom" customColorSpace="genericGamma22GrayColorSpace"/>
|
||||
<constraints>
|
||||
<constraint firstItem="0dz-eB-6XG" firstAttribute="trailing" secondItem="Zz9-ug-cmp" secondAttribute="trailing" constant="20" id="2OC-lr-ZJf"/>
|
||||
<constraint firstItem="bWD-9m-Fch" firstAttribute="leading" secondItem="0dz-eB-6XG" secondAttribute="leading" constant="15" id="3tX-qX-lRQ"/>
|
||||
<constraint firstItem="Zz9-ug-cmp" firstAttribute="top" secondItem="D08-JZ-OXx" secondAttribute="bottom" constant="1.0000000000000142" id="7FK-Vt-MAK"/>
|
||||
<constraint firstItem="bWD-9m-Fch" firstAttribute="top" secondItem="0dz-eB-6XG" secondAttribute="top" constant="15" id="Cpp-4m-3v3"/>
|
||||
<constraint firstItem="Tms-jW-A6w" firstAttribute="leading" secondItem="bWD-9m-Fch" secondAttribute="trailing" constant="8" symbolic="YES" id="Kz3-6y-5X7"/>
|
||||
<constraint firstItem="0dz-eB-6XG" firstAttribute="trailing" secondItem="D08-JZ-OXx" secondAttribute="trailing" constant="20" id="TEf-T9-7WR"/>
|
||||
<constraint firstItem="D08-JZ-OXx" firstAttribute="top" secondItem="0dz-eB-6XG" secondAttribute="top" constant="13" id="YXW-8o-3mC"/>
|
||||
<constraint firstItem="Zz9-ug-cmp" firstAttribute="leading" secondItem="D08-JZ-OXx" secondAttribute="leading" id="eAa-Qw-1vw"/>
|
||||
<constraint firstItem="D08-JZ-OXx" firstAttribute="leading" secondItem="Tms-jW-A6w" secondAttribute="trailing" constant="8" symbolic="YES" id="loS-n1-u0i"/>
|
||||
<constraint firstItem="Tms-jW-A6w" firstAttribute="top" secondItem="0dz-eB-6XG" secondAttribute="top" constant="15" id="lxW-2I-OPg"/>
|
||||
<constraint firstItem="0dz-eB-6XG" firstAttribute="bottom" secondItem="Zz9-ug-cmp" secondAttribute="bottom" constant="8" id="qgN-YF-KQn"/>
|
||||
<constraint firstItem="xoI-jl-Ecz" firstAttribute="trailing" secondItem="vWh-hD-TcP" secondAttribute="trailing" id="31a-b4-aLf"/>
|
||||
<constraint firstItem="Uy5-d1-hRY" firstAttribute="top" secondItem="kFO-Kh-Zoh" secondAttribute="top" constant="15" id="7dt-1t-Rlb"/>
|
||||
<constraint firstItem="JbL-fo-epB" firstAttribute="leading" secondItem="Uy5-d1-hRY" secondAttribute="trailing" constant="8" symbolic="YES" id="D5t-28-f2s"/>
|
||||
<constraint firstItem="JbL-fo-epB" firstAttribute="top" secondItem="vWh-hD-TcP" secondAttribute="top" id="F2R-rx-dhn"/>
|
||||
<constraint firstItem="xoI-jl-Ecz" firstAttribute="top" secondItem="kFO-Kh-Zoh" secondAttribute="top" id="Jhs-VX-bvE"/>
|
||||
<constraint firstItem="xoI-jl-Ecz" firstAttribute="leading" secondItem="vWh-hD-TcP" secondAttribute="leading" id="MgQ-gD-jtv"/>
|
||||
<constraint firstItem="vWh-hD-TcP" firstAttribute="top" secondItem="kFO-Kh-Zoh" secondAttribute="top" constant="13" id="P7K-nH-uVz"/>
|
||||
<constraint firstItem="Uy5-d1-hRY" firstAttribute="leading" secondItem="kFO-Kh-Zoh" secondAttribute="leading" constant="15" id="Wr7-DI-HQg"/>
|
||||
<constraint firstItem="kFO-Kh-Zoh" firstAttribute="trailing" secondItem="1eJ-ue-QFn" secondAttribute="trailing" constant="20" id="dav-QS-iZE"/>
|
||||
<constraint firstItem="1eJ-ue-QFn" firstAttribute="leading" secondItem="vWh-hD-TcP" secondAttribute="leading" id="ejw-6H-ndQ"/>
|
||||
<constraint firstItem="kFO-Kh-Zoh" firstAttribute="trailing" secondItem="vWh-hD-TcP" secondAttribute="trailing" constant="20" id="hMX-nr-pzB"/>
|
||||
<constraint firstItem="kFO-Kh-Zoh" firstAttribute="bottom" secondItem="1eJ-ue-QFn" secondAttribute="bottom" constant="8" id="pVC-pg-TbY"/>
|
||||
<constraint firstItem="vWh-hD-TcP" firstAttribute="leading" secondItem="JbL-fo-epB" secondAttribute="trailing" constant="8" symbolic="YES" id="ss7-bK-2l5"/>
|
||||
<constraint firstItem="1eJ-ue-QFn" firstAttribute="top" secondItem="vWh-hD-TcP" secondAttribute="bottom" constant="1.0000000000000142" id="x9a-3z-Mek"/>
|
||||
</constraints>
|
||||
</tableViewCellContentView>
|
||||
<color key="backgroundColor" white="1" alpha="1" colorSpace="custom" customColorSpace="genericGamma22GrayColorSpace"/>
|
||||
<color key="tintColor" white="0.0" alpha="0.0" colorSpace="custom" customColorSpace="genericGamma22GrayColorSpace"/>
|
||||
<connections>
|
||||
<outlet property="articleDate" destination="Kvo-fg-kta" id="62k-rs-rkx"/>
|
||||
<outlet property="articleTitle" destination="D08-JZ-OXx" id="eCe-Sq-wZT"/>
|
||||
<outlet property="authorByLine" destination="M4A-5J-4Kd" id="kEh-Eb-aws"/>
|
||||
<outlet property="iconView" destination="Tms-jW-A6w" id="zNa-5w-F9i"/>
|
||||
<outlet property="indicatorView" destination="bWD-9m-Fch" id="sCP-1M-XMa"/>
|
||||
<outlet property="metaDataStackView" destination="Zz9-ug-cmp" id="YbQ-74-82M"/>
|
||||
<outlet property="articleByLine" destination="rIf-xJ-oP5" id="xpd-0e-wb3"/>
|
||||
<outlet property="articleContent" destination="vWh-hD-TcP" id="OMJ-4f-h0Z"/>
|
||||
<outlet property="articleDate" destination="ut3-ND-i4g" id="X9R-87-i6y"/>
|
||||
<outlet property="feedIcon" destination="JbL-fo-epB" id="tZF-RH-kSm"/>
|
||||
<outlet property="indicatorView" destination="Uy5-d1-hRY" id="B9I-ah-eUg"/>
|
||||
<outlet property="metaDataStackView" destination="1eJ-ue-QFn" id="Fy5-Og-OPU"/>
|
||||
</connections>
|
||||
</tableViewCell>
|
||||
<tableViewCell clipsSubviews="YES" contentMode="scaleToFill" preservesSuperviewLayoutMargins="YES" selectionStyle="default" indentationWidth="10" reuseIdentifier="MainTimelineCellStandard" rowHeight="62" id="o22-9k-wyr" userLabel="MainTimelineCell" customClass="MainTimelineCell" customModule="NetNewsWire" customModuleProvider="target">
|
||||
<rect key="frame" x="0.0" y="225.5" width="414" height="62"/>
|
||||
<autoresizingMask key="autoresizingMask"/>
|
||||
<tableViewCellContentView key="contentView" opaque="NO" clipsSubviews="YES" multipleTouchEnabled="YES" contentMode="center" preservesSuperviewLayoutMargins="YES" tableViewCell="o22-9k-wyr" id="7h5-ud-Njs">
|
||||
<rect key="frame" x="0.0" y="0.0" width="414" height="62"/>
|
||||
<autoresizingMask key="autoresizingMask"/>
|
||||
<subviews>
|
||||
<view contentMode="scaleToFill" translatesAutoresizingMaskIntoConstraints="NO" id="0ld-Q0-2Gp" userLabel="Top Separator">
|
||||
<rect key="frame" x="39" y="0.0" width="355" height="1"/>
|
||||
<color key="backgroundColor" systemColor="separatorColor"/>
|
||||
<constraints>
|
||||
<constraint firstAttribute="height" constant="1" id="mIZ-Vl-5I0"/>
|
||||
</constraints>
|
||||
</view>
|
||||
<view contentMode="scaleToFill" translatesAutoresizingMaskIntoConstraints="NO" id="2am-Y3-cVk" customClass="IconView" customModule="NetNewsWire" customModuleProvider="target">
|
||||
<rect key="frame" x="15" y="15" width="16" height="16"/>
|
||||
<color key="backgroundColor" white="0.0" alpha="0.0" colorSpace="custom" customColorSpace="genericGamma22GrayColorSpace"/>
|
||||
<constraints>
|
||||
<constraint firstAttribute="width" constant="16" id="6QC-Of-2V0"/>
|
||||
<constraint firstAttribute="height" constant="16" id="NP7-mZ-KlA"/>
|
||||
</constraints>
|
||||
</view>
|
||||
<label opaque="NO" userInteractionEnabled="NO" contentMode="left" horizontalHuggingPriority="251" verticalHuggingPriority="251" text="Article Title" textAlignment="natural" lineBreakMode="wordWrap" numberOfLines="2" baselineAdjustment="alignBaselines" adjustsFontSizeToFit="NO" translatesAutoresizingMaskIntoConstraints="NO" id="q6b-kn-m8C">
|
||||
<rect key="frame" x="39" y="13" width="355" height="20.5"/>
|
||||
<fontDescription key="fontDescription" style="UICTFontTextStyleHeadline"/>
|
||||
<nil key="textColor"/>
|
||||
<nil key="highlightedColor"/>
|
||||
</label>
|
||||
<stackView opaque="NO" contentMode="scaleToFill" distribution="fillEqually" alignment="center" translatesAutoresizingMaskIntoConstraints="NO" id="pS2-X9-Yug">
|
||||
<rect key="frame" x="39" y="34" width="355" height="20.5"/>
|
||||
<subviews>
|
||||
<label opaque="NO" userInteractionEnabled="NO" contentMode="left" horizontalHuggingPriority="251" verticalHuggingPriority="251" text="authorByLine" textAlignment="natural" lineBreakMode="tailTruncation" baselineAdjustment="alignBaselines" adjustsFontSizeToFit="NO" translatesAutoresizingMaskIntoConstraints="NO" id="out-dO-SUn">
|
||||
<rect key="frame" x="0.0" y="3" width="177.5" height="14.5"/>
|
||||
<fontDescription key="fontDescription" style="UICTFontTextStyleCaption1"/>
|
||||
<color key="textColor" systemColor="secondaryLabelColor"/>
|
||||
<nil key="highlightedColor"/>
|
||||
</label>
|
||||
<label opaque="NO" userInteractionEnabled="NO" contentMode="left" horizontalHuggingPriority="251" verticalHuggingPriority="251" text="articleDate" textAlignment="right" lineBreakMode="wordWrap" baselineAdjustment="alignBaselines" adjustsFontSizeToFit="NO" translatesAutoresizingMaskIntoConstraints="NO" id="hOg-gz-FlX">
|
||||
<rect key="frame" x="177.5" y="3" width="177.5" height="14.5"/>
|
||||
<fontDescription key="fontDescription" style="UICTFontTextStyleCaption1"/>
|
||||
<color key="textColor" systemColor="secondaryLabelColor"/>
|
||||
<nil key="highlightedColor"/>
|
||||
</label>
|
||||
</subviews>
|
||||
</stackView>
|
||||
</subviews>
|
||||
<viewLayoutGuide key="safeArea" id="lK3-us-esx"/>
|
||||
<color key="tintColor" white="0.0" alpha="0.0" colorSpace="custom" customColorSpace="genericGamma22GrayColorSpace"/>
|
||||
<constraints>
|
||||
<constraint firstItem="q6b-kn-m8C" firstAttribute="leading" secondItem="2am-Y3-cVk" secondAttribute="trailing" constant="8" symbolic="YES" id="8wI-7N-dku"/>
|
||||
<constraint firstItem="pS2-X9-Yug" firstAttribute="top" secondItem="q6b-kn-m8C" secondAttribute="bottom" constant="0.6666666666666714" id="ALS-88-Rh1"/>
|
||||
<constraint firstItem="lK3-us-esx" firstAttribute="bottom" secondItem="pS2-X9-Yug" secondAttribute="bottom" constant="7.6666666666666217" id="C5U-Ss-Y4W"/>
|
||||
<constraint firstItem="lK3-us-esx" firstAttribute="trailing" secondItem="pS2-X9-Yug" secondAttribute="trailing" constant="20" id="QKo-TC-i0C"/>
|
||||
<constraint firstItem="2am-Y3-cVk" firstAttribute="leading" secondItem="lK3-us-esx" secondAttribute="leading" constant="15" id="Un5-7h-kHx"/>
|
||||
<constraint firstItem="0ld-Q0-2Gp" firstAttribute="leading" secondItem="q6b-kn-m8C" secondAttribute="leading" id="aZH-3O-5cz"/>
|
||||
<constraint firstItem="lK3-us-esx" firstAttribute="trailing" secondItem="q6b-kn-m8C" secondAttribute="trailing" constant="20" id="bai-RB-GRW"/>
|
||||
<constraint firstItem="2am-Y3-cVk" firstAttribute="top" secondItem="lK3-us-esx" secondAttribute="top" constant="15" id="crR-Et-ae5"/>
|
||||
<constraint firstItem="pS2-X9-Yug" firstAttribute="leading" secondItem="q6b-kn-m8C" secondAttribute="leading" id="eAV-Zp-8Vy"/>
|
||||
<constraint firstItem="q6b-kn-m8C" firstAttribute="top" secondItem="lK3-us-esx" secondAttribute="top" constant="13" id="eQl-yG-IEC"/>
|
||||
<constraint firstItem="0ld-Q0-2Gp" firstAttribute="top" secondItem="lK3-us-esx" secondAttribute="top" id="ka0-RT-IZT"/>
|
||||
<constraint firstItem="0ld-Q0-2Gp" firstAttribute="trailing" secondItem="q6b-kn-m8C" secondAttribute="trailing" id="wVM-c2-ALr"/>
|
||||
</constraints>
|
||||
</tableViewCellContentView>
|
||||
<color key="tintColor" white="0.0" alpha="0.0" colorSpace="custom" customColorSpace="genericGamma22GrayColorSpace"/>
|
||||
<connections>
|
||||
<outlet property="articleByLine" destination="out-dO-SUn" id="E7s-JC-VYc"/>
|
||||
<outlet property="articleContent" destination="q6b-kn-m8C" id="S6Q-KI-DAS"/>
|
||||
<outlet property="articleDate" destination="hOg-gz-FlX" id="NwL-I7-RYE"/>
|
||||
<outlet property="indicatorView" destination="2am-Y3-cVk" id="SBd-6d-NbE"/>
|
||||
<outlet property="metaDataStackView" destination="pS2-X9-Yug" id="kok-ML-MHu"/>
|
||||
</connections>
|
||||
</tableViewCell>
|
||||
</prototypes>
|
||||
@@ -967,6 +985,9 @@
|
||||
<systemColor name="secondaryLabelColor">
|
||||
<color red="0.23529411764705882" green="0.23529411764705882" blue="0.2627450980392157" alpha="0.59999999999999998" colorSpace="custom" customColorSpace="sRGB"/>
|
||||
</systemColor>
|
||||
<systemColor name="separatorColor">
|
||||
<color red="0.23529411764705882" green="0.23529411764705882" blue="0.2627450980392157" alpha="0.12" colorSpace="custom" customColorSpace="sRGB"/>
|
||||
</systemColor>
|
||||
<systemColor name="systemGroupedBackgroundColor">
|
||||
<color red="0.94901960784313721" green="0.94901960784313721" blue="0.96862745098039216" alpha="1" colorSpace="custom" customColorSpace="sRGB"/>
|
||||
</systemColor>
|
||||
|
||||
@@ -15,9 +15,9 @@ import Articles
|
||||
final class TimelineCustomizerTableViewController: UITableViewController {
|
||||
private var previewArticle: Article {
|
||||
var components = DateComponents()
|
||||
components.year = 1925
|
||||
components.month = 4
|
||||
components.day = 10
|
||||
components.year = 1954
|
||||
components.month = 7
|
||||
components.day = 29
|
||||
|
||||
let calendar = Calendar.current
|
||||
let date = calendar.date(from: components)!
|
||||
@@ -26,9 +26,9 @@ final class TimelineCustomizerTableViewController: UITableViewController {
|
||||
articleID: "_testArticleID",
|
||||
feedID: "_testFeedID",
|
||||
uniqueID: UUID().uuidString,
|
||||
title: "Chapter 1",
|
||||
title: "At The Sign Of The Prancing Pony",
|
||||
contentHTML: nil,
|
||||
contentText: "In my younger and more vulnerable years my father gave me some advice that I’ve been turning over in my mind ever since. “Whenever you feel like criticizing any one,” he told me, “just remember that all the people in this world haven’t had the advantages that you’ve had.”",
|
||||
contentText: "Bree was the chief village of Bree-land, a small country a few miles broad whose chief claim to fame was its aluminum siding industry. The Men of Bree were cheerful and independant: they belonged to nobody but themselves. In the lands beyond Bree there were mysterious wanderers.",
|
||||
markdown: nil,
|
||||
url: nil,
|
||||
externalURL: nil,
|
||||
@@ -36,7 +36,7 @@ final class TimelineCustomizerTableViewController: UITableViewController {
|
||||
imageURL: nil,
|
||||
datePublished: date,
|
||||
dateModified: nil,
|
||||
authors: Set([Author(authorID: "_testAuthorID", name: "F. Scott Fitzgerald", url: nil, avatarURL: nil, emailAddress: nil)!]),
|
||||
authors: Set([Author(authorID: "_testAuthorID", name: "J. R. R. Tolkien", url: nil, avatarURL: nil, emailAddress: nil)!]),
|
||||
status: ArticleStatus(articleID: "_testArticleID", read: false, starred: false, dateArrived: .now))
|
||||
}
|
||||
|
||||
@@ -75,45 +75,45 @@ final class TimelineCustomizerTableViewController: UITableViewController {
|
||||
|
||||
override func tableView(_ tableView: UITableView, cellForRowAt indexPath: IndexPath) -> UITableViewCell {
|
||||
|
||||
// if indexPath.section == 0 {
|
||||
// let cell = tableView.dequeueReusableCell(withIdentifier: "IconSizeCell") as! ModernTimelineSliderCell
|
||||
// cell.sliderConfiguration = .iconSize
|
||||
// return cell
|
||||
// }
|
||||
//
|
||||
// if indexPath.section == 1 {
|
||||
// let cell = tableView.dequeueReusableCell(withIdentifier: "NumberOfLinesCell") as! ModernTimelineSliderCell
|
||||
// cell.sliderConfiguration = .numberOfLines
|
||||
// return cell
|
||||
// }
|
||||
//
|
||||
// if indexPath.section == 2 {
|
||||
// let cell = tableView.dequeueReusableCell(withIdentifier: "MainTimelineIconFeedCell") as? MainTimelineIconFeedCell ?? MainTimelineIconFeedCell()
|
||||
// cell.cellData = MainTimelineCellData(article: previewArticle,
|
||||
// showFeedName: .byline,
|
||||
// feedName: "The Great Gatsby",
|
||||
// byline: "F. Scott Fitzgerald",
|
||||
// iconImage: IconImage(Assets.Images.nnwFeedIcon),
|
||||
// showIcon: true,
|
||||
// numberOfLines: AppDefaults.shared.timelineNumberOfLines,
|
||||
// iconSize: AppDefaults.shared.timelineIconSize)
|
||||
// cell.isPreview = true
|
||||
// return cell
|
||||
// }
|
||||
//
|
||||
// if indexPath.section == 3 {
|
||||
// let cell = tableView.dequeueReusableCell(withIdentifier: "MainTimelineFeedCell") as? MainTimelineFeedCell ?? MainTimelineFeedCell()
|
||||
// cell.cellData = MainTimelineCellData(article: previewArticle,
|
||||
// showFeedName: .byline,
|
||||
// feedName: "The Great Gatsby",
|
||||
// byline: "F. Scott Fitzgerald",
|
||||
// iconImage: nil,
|
||||
// showIcon: false,
|
||||
// numberOfLines: AppDefaults.shared.timelineNumberOfLines,
|
||||
// iconSize: AppDefaults.shared.timelineIconSize)
|
||||
// cell.isPreview = true
|
||||
// return cell
|
||||
// }
|
||||
if indexPath.section == 0 {
|
||||
let cell = tableView.dequeueReusableCell(withIdentifier: "IconSizeCell") as! ModernTimelineSliderCell
|
||||
cell.sliderConfiguration = .iconSize
|
||||
return cell
|
||||
}
|
||||
|
||||
if indexPath.section == 1 {
|
||||
let cell = tableView.dequeueReusableCell(withIdentifier: "NumberOfLinesCell") as! ModernTimelineSliderCell
|
||||
cell.sliderConfiguration = .numberOfLines
|
||||
return cell
|
||||
}
|
||||
|
||||
if indexPath.section == 2 {
|
||||
let cell = tableView.dequeueReusableCell(withIdentifier: standardCellIdentifierIcon) as! MainTimelineCell
|
||||
cell.cellData = MainTimelineCellData(article: previewArticle,
|
||||
showFeedName: .byline,
|
||||
feedName: "The Fellowship of the Ring",
|
||||
byline: "J. R. R. Tolkien",
|
||||
iconImage: IconImage(Assets.Images.nnwFeedIcon),
|
||||
showIcon: true,
|
||||
numberOfLines: AppDefaults.shared.timelineNumberOfLines,
|
||||
iconSize: AppDefaults.shared.timelineIconSize)
|
||||
cell.isPreview = true
|
||||
return cell
|
||||
}
|
||||
|
||||
if indexPath.section == 3 {
|
||||
let cell = tableView.dequeueReusableCell(withIdentifier: standardCellIdentifier) as! MainTimelineCell
|
||||
cell.cellData = MainTimelineCellData(article: previewArticle,
|
||||
showFeedName: .byline,
|
||||
feedName: "The Fellowship of the Ring",
|
||||
byline: "J. R. R. Tolkien",
|
||||
iconImage: nil,
|
||||
showIcon: false,
|
||||
numberOfLines: AppDefaults.shared.timelineNumberOfLines,
|
||||
iconSize: AppDefaults.shared.timelineIconSize)
|
||||
cell.isPreview = true
|
||||
return cell
|
||||
}
|
||||
|
||||
return UITableViewCell()
|
||||
|
||||
|
||||
Reference in new issue
Block a user