Adjusted welcome screens

pull/2/head
Michael Scoff 7 years ago
parent f3e68ea638
commit e65e319090
  1. BIN
      Trust/Assets.xcassets/onboarding_lock.imageset/onboarding_lock@2x.png
  2. BIN
      Trust/Assets.xcassets/onboarding_lock.imageset/onboarding_lock@3x.png
  3. 22
      Trust/Assets.xcassets/onboarding_open_source.imageset/Contents.json
  4. BIN
      Trust/Assets.xcassets/onboarding_open_source.imageset/onboarding_open_source@2x.png
  5. BIN
      Trust/Assets.xcassets/onboarding_open_source.imageset/onboarding_open_source@3x.png
  6. BIN
      Trust/Assets.xcassets/onboarding_rocket.imageset/onboarding_rocket@2x.png
  7. BIN
      Trust/Assets.xcassets/onboarding_rocket.imageset/onboarding_rocket@3x.png
  8. 13
      Trust/Welcome/WelcomeViewController.swift

Binary file not shown.

Before

Width:  |  Height:  |  Size: 90 KiB

After

Width:  |  Height:  |  Size: 47 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 142 KiB

After

Width:  |  Height:  |  Size: 76 KiB

@ -0,0 +1,22 @@
{
"images" : [
{
"idiom" : "universal",
"scale" : "1x"
},
{
"idiom" : "universal",
"filename" : "onboarding_open_source@2x.png",
"scale" : "2x"
},
{
"idiom" : "universal",
"filename" : "onboarding_open_source@3x.png",
"scale" : "3x"
}
],
"info" : {
"version" : 1,
"author" : "xcode"
}
}

Binary file not shown.

After

Width:  |  Height:  |  Size: 43 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 69 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 81 KiB

After

Width:  |  Height:  |  Size: 44 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 131 KiB

After

Width:  |  Height:  |  Size: 72 KiB

@ -34,7 +34,7 @@ class WelcomeViewController: UIViewController {
constructPage(
title: "Fully transparent",
description: "Code is open sourced (MIT licence) and fully audited.",
image: R.image.onboarding_rocket()
image: R.image.onboarding_open_source()
),
constructPage(
title: "Ultra Reliable",
@ -42,12 +42,13 @@ class WelcomeViewController: UIViewController {
image: R.image.onboarding_rocket()
),
])
let height = view.frame.height
introView?.backgroundColor = .white
introView?.pageControlY = 130
introView?.pageControlY = height / 4.2
introView?.pageControl.pageIndicatorTintColor = viewModel.pageIndicatorTintColor
introView?.pageControl.currentPageIndicatorTintColor = viewModel.currentPageIndicatorTintColor
introView?.skipButton = button
introView?.skipButtonY = 80
introView?.skipButtonY = view.frame.height / 6
introView?.swipeToExit = false
introView?.skipButtonAlignment = .center
introView?.delegate = self
@ -62,11 +63,13 @@ class WelcomeViewController: UIViewController {
description: String,
image: UIImage?
) -> EAIntroPage {
let height = view.frame.height
let page = EAIntroPage()
page.title = title
page.desc = description
page.titleIconPositionY = 70
page.descPositionY = 200
page.titleIconPositionY = height / 6
page.descPositionY = height / 3
page.titleFont = viewModel.pageTitleFont
page.titleColor = viewModel.pageTitleColor
page.descFont = viewModel.pageDescriptionFont

Loading…
Cancel
Save