Skip to content

Commit

Permalink
-Fixed Padding Bug in iOS 12 and later.
Browse files Browse the repository at this point in the history
  • Loading branch information
farshadmb committed Sep 26, 2020
1 parent ad68e3a commit 9317f82
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ class HeadlineSearchTableViewCell: UITableViewCell {
backgroundCard?.isInteractable = false
backgroundCard?.isSelectable = true
backgroundCard?.setShadowElevation(.cardResting, for: .normal)

backgroundCard?.autoPinEdgesToSuperviewMargins()
// Initialization code
}

Expand Down
10 changes: 5 additions & 5 deletions DutchNews/Classes/Views/Cells/HeadlineSearchTableViewCell.xib
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
<rect key="frame" x="0.0" y="0.0" width="320" height="95"/>
<autoresizingMask key="autoresizingMask"/>
<subviews>
<view contentMode="scaleToFill" verticalHuggingPriority="1000" verticalCompressionResistancePriority="1000" insetsLayoutMarginsFromSafeArea="NO" translatesAutoresizingMaskIntoConstraints="NO" id="MDJ-Ty-CxW" customClass="MDCCardCollectionCell">
<view contentMode="scaleToFill" verticalHuggingPriority="750" insetsLayoutMarginsFromSafeArea="NO" translatesAutoresizingMaskIntoConstraints="NO" id="MDJ-Ty-CxW" customClass="MDCCardCollectionCell">
<rect key="frame" x="16" y="11" width="288" height="80"/>
<subviews>
<imageView clipsSubviews="YES" userInteractionEnabled="NO" contentMode="scaleAspectFit" horizontalHuggingPriority="251" verticalHuggingPriority="251" translatesAutoresizingMaskIntoConstraints="NO" id="K1r-qg-pFZ">
Expand Down Expand Up @@ -85,10 +85,10 @@
</view>
</subviews>
<constraints>
<constraint firstItem="MDJ-Ty-CxW" firstAttribute="leading" secondItem="H2p-sc-9uM" secondAttribute="leadingMargin" id="7kx-bz-At5"/>
<constraint firstItem="MDJ-Ty-CxW" firstAttribute="top" secondItem="H2p-sc-9uM" secondAttribute="topMargin" id="QYm-om-416"/>
<constraint firstAttribute="trailingMargin" secondItem="MDJ-Ty-CxW" secondAttribute="trailing" id="bsI-Y4-P1c"/>
<constraint firstAttribute="bottomMargin" secondItem="MDJ-Ty-CxW" secondAttribute="bottom" id="wYj-jh-C5E"/>
<constraint firstItem="MDJ-Ty-CxW" firstAttribute="leading" secondItem="H2p-sc-9uM" secondAttribute="leadingMargin" placeholder="YES" id="7kx-bz-At5"/>
<constraint firstItem="MDJ-Ty-CxW" firstAttribute="top" secondItem="H2p-sc-9uM" secondAttribute="topMargin" placeholder="YES" id="QYm-om-416"/>
<constraint firstAttribute="trailingMargin" secondItem="MDJ-Ty-CxW" secondAttribute="trailing" placeholder="YES" id="bsI-Y4-P1c"/>
<constraint firstAttribute="bottomMargin" secondItem="MDJ-Ty-CxW" secondAttribute="bottom" placeholder="YES" id="wYj-jh-C5E"/>
</constraints>
</tableViewCellContentView>
<viewLayoutGuide key="safeArea" id="njF-e1-oar"/>
Expand Down

0 comments on commit 9317f82

Please sign in to comment.