Skip to content

Commit

Permalink
use correct height and color for custom separator
Browse files Browse the repository at this point in the history
  • Loading branch information
brindy committed Nov 3, 2023
1 parent d571317 commit 04dbecc
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 5 deletions.
5 changes: 2 additions & 3 deletions DuckDuckGo/Base.lproj/Bookmarks.storyboard
Original file line number Diff line number Diff line change
Expand Up @@ -561,10 +561,10 @@
<textInputTraits key="textInputTraits" returnKeyType="done"/>
</textField>
<view contentMode="scaleToFill" translatesAutoresizingMaskIntoConstraints="NO" id="fVp-1a-TkJ">
<rect key="frame" x="88" y="44" width="255" height="0.5"/>
<rect key="frame" x="88" y="44" width="255" height="0.0"/>
<color key="backgroundColor" name="BookmarksCellSeperatorColor"/>
<constraints>
<constraint firstAttribute="height" priority="750" constant="0.5" id="RDj-dx-Yf1"/>
<constraint firstAttribute="height" priority="750" constant="0.33000000000000002" id="RDj-dx-Yf1"/>
</constraints>
</view>
</subviews>
Expand All @@ -587,7 +587,6 @@
<color key="backgroundColor" name="surface"/>
<connections>
<outlet property="faviconImageView" destination="gf7-Lt-ftk" id="kIT-Vf-ZxY"/>
<outlet property="seperatorViewHeight" destination="RDj-dx-Yf1" id="f1A-nY-fdp"/>
<outlet property="titleTextField" destination="rT4-Yr-P8D" id="4f9-bl-KM7"/>
<outlet property="urlTextField" destination="YqY-sP-hhb" id="b8Y-vb-Msu"/>
</connections>
Expand Down
2 changes: 0 additions & 2 deletions DuckDuckGo/BookmarkDetailsCell.swift
Original file line number Diff line number Diff line change
Expand Up @@ -52,12 +52,10 @@ class BookmarkDetailsCell: UITableViewCell {
@IBOutlet weak var titleTextField: UITextField!
@IBOutlet weak var urlTextField: UITextField!
@IBOutlet weak var faviconImageView: UIImageView!
@IBOutlet weak var seperatorViewHeight: NSLayoutConstraint!

func setUp() {
selectionStyle = .none

seperatorViewHeight.constant = 1.0 / UIScreen.main.scale
titleTextField.becomeFirstResponder()

titleTextField.removeTarget(self, action: #selector(textFieldDidChange(_:)), for: .editingChanged)
Expand Down

0 comments on commit 04dbecc

Please sign in to comment.