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

Fixes Onboarding

  • Loading branch information
Tim Palade authored and mahmoud-adam85 committed Sep 5, 2018
1 parent e1946df commit 5c87031deec5d0903ca06fbf66bc6aca46a2cf97
Showing with 12 additions and 4 deletions.
  1. +10 −2 Cliqz/Intro/CliqzIntroViewController.swift
  2. +2 −2 package-lock.json
@@ -99,8 +99,16 @@ class CliqzIntroViewController: UIViewController {
make.edges.equalTo(imageViewContainer)
}
imageViewContainer.snp.makeConstraints { make in
make.top.equalTo(self.view)
let height = (290 / 375) * self.view.frame.width
let device = UIDevice.current.getDeviceAndOrientation().0
var topOffset: CGFloat = 0
if device == .iPhoneX {
topOffset = 40
}
make.top.equalTo(self.view).offset(topOffset)
var height = (290 / 375) * self.view.frame.width
if device == .iPad {
height = 290
}
make.height.equalTo(height)
}
startBrowsingButton.snp.makeConstraints { make in

Some generated files are not rendered by default. Learn more.

0 comments on commit 5c87031

Please sign in to comment.