Skip to content
This repository has been archived by the owner. It is now read-only.
Permalink
Browse files

Fix Start Browsing title issue.

  • Loading branch information
Tim Palade authored and mahmoud-adam85 committed Sep 7, 2018
1 parent 328848c commit ce64affe4a34e69a31bae5827a2c28f5b9683dff
Showing with 7 additions and 2 deletions.
  1. +7 −2 Cliqz/Intro/CliqzIntroViewController.swift
@@ -111,11 +111,16 @@ class CliqzIntroViewController: UIViewController {
}
make.height.equalTo(height)
}
startBrowsingButton.snp.makeConstraints { make in
startBrowsingButton.snp.makeConstraints { [unowned self] make in
make.centerX.equalToSuperview()
make.width.equalToSuperview().dividedBy(2.2)
make.bottom.equalTo(self.view.safeArea.bottom).offset(-CliqzIntroUX.PagerCenterOffsetFromScrollViewBottom)
make.height.equalTo(45)
if let label = self.startBrowsingButton.titleLabel {
let constraint1 = make.width.equalTo(label.snp.width).offset(30)
let constraint2 = make.width.lessThanOrEqualToSuperview()
constraint1.priority(750)
constraint2.priority(1000)
}
}
scrollView.snp.makeConstraints { make in
make.left.right.top.equalTo(self.view)

0 comments on commit ce64aff

Please sign in to comment.