Commit a8d38897 authored by Andreas Traczyk's avatar Andreas Traczyk Committed by Kateryna Kostiuk

UI: update style of link device dialog

Change-Id: I5068b418ff5344c5e34c304f98d1ca4f2bd04a6b
Reviewed-by: Kateryna Kostiuk's avatarKateryna Kostiuk <kateryna.kostiuk@savoirfairelinux.com>
parent fed27fa7
<?xml version="1.0" encoding="UTF-8"?>
<document type="com.apple.InterfaceBuilder3.CocoaTouch.Storyboard.XIB" version="3.0" toolsVersion="13529" targetRuntime="iOS.CocoaTouch" propertyAccessControl="none" useAutolayout="YES" useTraitCollections="YES" colorMatched="YES" initialViewController="1yn-Mj-8Ek">
<document type="com.apple.InterfaceBuilder3.CocoaTouch.Storyboard.XIB" version="3.0" toolsVersion="13771" targetRuntime="iOS.CocoaTouch" propertyAccessControl="none" useAutolayout="YES" useTraitCollections="YES" colorMatched="YES" initialViewController="1yn-Mj-8Ek">
<device id="retina5_9" orientation="portrait">
<adaptation id="fullscreen"/>
</device>
<dependencies>
<deployment identifier="iOS"/>
<plugIn identifier="com.apple.InterfaceBuilder.IBCocoaTouchPlugin" version="13527"/>
<plugIn identifier="com.apple.InterfaceBuilder.IBCocoaTouchPlugin" version="13772"/>
<capability name="Constraints to layout margins" minToolsVersion="6.0"/>
<capability name="documents saved in the Xcode 8 format" minToolsVersion="8.0"/>
</dependencies>
......@@ -37,105 +37,141 @@
</userDefinedRuntimeAttribute>
</userDefinedRuntimeAttributes>
</view>
<label opaque="NO" userInteractionEnabled="NO" contentMode="left" horizontalHuggingPriority="251" verticalHuggingPriority="251" text="Choose password" lineBreakMode="tailTruncation" baselineAdjustment="alignBaselines" adjustsFontSizeToFit="NO" translatesAutoresizingMaskIntoConstraints="NO" id="9AD-b5-bun">
<rect key="frame" x="36" y="324" width="137" height="25"/>
<scrollView clipsSubviews="YES" multipleTouchEnabled="YES" contentMode="scaleToFill" alwaysBounceVertical="YES" showsHorizontalScrollIndicator="NO" showsVerticalScrollIndicator="NO" translatesAutoresizingMaskIntoConstraints="NO" id="2ZO-zp-5uC">
<rect key="frame" x="16" y="52" width="343" height="726"/>
<subviews>
<view contentMode="scaleToFill" translatesAutoresizingMaskIntoConstraints="NO" id="HlM-9Z-7gA" userLabel="Container View" customClass="DesignableView" customModule="Ring" customModuleProvider="target">
<rect key="frame" x="-16" y="-18" width="375" height="752"/>
<subviews>
<label opaque="NO" userInteractionEnabled="NO" contentMode="left" horizontalHuggingPriority="251" verticalHuggingPriority="251" text="Link this Device" lineBreakMode="tailTruncation" baselineAdjustment="alignBaselines" adjustsFontSizeToFit="NO" translatesAutoresizingMaskIntoConstraints="NO" id="NpV-yY-PPY" userLabel="Link Device Title">
<rect key="frame" x="106" y="100" width="163" height="30"/>
<constraints>
<constraint firstAttribute="height" constant="30" id="IQC-Gd-aep"/>
</constraints>
<fontDescription key="fontDescription" type="system" pointSize="24"/>
<color key="textColor" red="0.94117647059999998" green="0.94117647059999998" blue="0.94117647059999998" alpha="1" colorSpace="custom" customColorSpace="sRGB"/>
<nil key="highlightedColor"/>
</label>
<label opaque="NO" userInteractionEnabled="NO" contentMode="left" horizontalHuggingPriority="251" verticalHuggingPriority="251" text="Enter pin" lineBreakMode="tailTruncation" baselineAdjustment="alignBaselines" adjustsFontSizeToFit="NO" translatesAutoresizingMaskIntoConstraints="NO" id="VN2-rO-YYy">
<rect key="frame" x="40" y="170" width="69" height="30"/>
<constraints>
<constraint firstAttribute="height" constant="30" id="TAS-dT-bOV"/>
</constraints>
<fontDescription key="fontDescription" type="system" pointSize="17"/>
<color key="textColor" red="0.94117647059999998" green="0.94117647059999998" blue="0.94117647059999998" alpha="1" colorSpace="custom" customColorSpace="sRGB"/>
<nil key="highlightedColor"/>
</label>
<button opaque="NO" contentMode="scaleToFill" contentHorizontalAlignment="center" contentVerticalAlignment="center" buttonType="infoLight" showsTouchWhenHighlighted="YES" lineBreakMode="middleTruncation" translatesAutoresizingMaskIntoConstraints="NO" id="rtk-w4-zfQ" customClass="ButtonTransparentBackground" customModule="Ring" customModuleProvider="target">
<rect key="frame" x="117" y="174" width="22" height="22"/>
<constraints>
<constraint firstAttribute="height" constant="22" id="dIk-SQ-ZCf"/>
</constraints>
</button>
<textField opaque="NO" clipsSubviews="YES" contentMode="scaleToFill" contentHorizontalAlignment="left" contentVerticalAlignment="center" placeholder="PIN" textAlignment="center" minimumFontSize="17" translatesAutoresizingMaskIntoConstraints="NO" id="3CA-fY-2S2" customClass="DesignableTextField" customModule="Ring" customModuleProvider="target">
<rect key="frame" x="36" y="208" width="303" height="40"/>
<color key="backgroundColor" white="1" alpha="1" colorSpace="calibratedWhite"/>
<constraints>
<constraint firstAttribute="height" constant="40" id="qQ4-hd-6jc"/>
</constraints>
<nil key="textColor"/>
<fontDescription key="fontDescription" type="system" pointSize="14"/>
<textInputTraits key="textInputTraits" autocorrectionType="no" secureTextEntry="YES"/>
<userDefinedRuntimeAttributes>
<userDefinedRuntimeAttribute type="boolean" keyPath="roundedCorners" value="YES"/>
<userDefinedRuntimeAttribute type="number" keyPath="borderWidth">
<real key="value" value="0.0"/>
</userDefinedRuntimeAttribute>
<userDefinedRuntimeAttribute type="color" keyPath="borderColor">
<color key="value" white="0.0" alpha="1" colorSpace="custom" customColorSpace="genericGamma22GrayColorSpace"/>
</userDefinedRuntimeAttribute>
</userDefinedRuntimeAttributes>
</textField>
<label opaque="NO" userInteractionEnabled="NO" contentMode="left" horizontalHuggingPriority="251" verticalHuggingPriority="251" text="Enter password" lineBreakMode="tailTruncation" baselineAdjustment="alignBaselines" adjustsFontSizeToFit="NO" translatesAutoresizingMaskIntoConstraints="NO" id="9AD-b5-bun">
<rect key="frame" x="39.999999999999993" y="288" width="118.33333333333331" height="25"/>
<constraints>
<constraint firstAttribute="height" constant="25" id="g3B-PW-uya"/>
</constraints>
<fontDescription key="fontDescription" type="system" pointSize="17"/>
<color key="textColor" white="1" alpha="1" colorSpace="calibratedWhite"/>
<nil key="highlightedColor"/>
</label>
<textField opaque="NO" clipsSubviews="YES" contentMode="scaleToFill" contentHorizontalAlignment="left" contentVerticalAlignment="center" placeholder="password" textAlignment="center" minimumFontSize="17" translatesAutoresizingMaskIntoConstraints="NO" id="FyJ-Ke-ba3" customClass="DesignableTextField" customModule="Ring" customModuleProvider="target">
<rect key="frame" x="36" y="321" width="303" height="40"/>
<color key="backgroundColor" white="1" alpha="1" colorSpace="calibratedWhite"/>
<constraints>
<constraint firstAttribute="height" constant="40" id="IYK-P5-8Up"/>
</constraints>
<nil key="textColor"/>
<fontDescription key="fontDescription" type="system" pointSize="14"/>
<textInputTraits key="textInputTraits" autocorrectionType="no" secureTextEntry="YES"/>
<userDefinedRuntimeAttributes>
<userDefinedRuntimeAttribute type="boolean" keyPath="roundedCorners" value="YES"/>
<userDefinedRuntimeAttribute type="number" keyPath="borderWidth">
<real key="value" value="0.0"/>
</userDefinedRuntimeAttribute>
<userDefinedRuntimeAttribute type="color" keyPath="borderColor">
<color key="value" white="0.0" alpha="1" colorSpace="custom" customColorSpace="genericGamma22GrayColorSpace"/>
</userDefinedRuntimeAttribute>
</userDefinedRuntimeAttributes>
</textField>
<button opaque="NO" contentMode="scaleToFill" contentHorizontalAlignment="center" contentVerticalAlignment="center" buttonType="roundedRect" lineBreakMode="middleTruncation" translatesAutoresizingMaskIntoConstraints="NO" id="BLV-X1-oI7" customClass="DesignableButton" customModule="Ring" customModuleProvider="target">
<rect key="frame" x="87" y="401" width="200" height="40"/>
<color key="backgroundColor" red="0.0" green="0.29803921570000003" blue="0.37647058820000001" alpha="1" colorSpace="custom" customColorSpace="sRGB"/>
<constraints>
<constraint firstAttribute="width" constant="200" id="6ar-f0-2DK"/>
<constraint firstAttribute="height" constant="40" id="pn4-1l-5WE"/>
</constraints>
<color key="tintColor" white="1" alpha="1" colorSpace="calibratedWhite"/>
<state key="normal" title="Link Device"/>
<userDefinedRuntimeAttributes>
<userDefinedRuntimeAttribute type="boolean" keyPath="roundedCorners" value="YES"/>
</userDefinedRuntimeAttributes>
</button>
</subviews>
<color key="backgroundColor" white="0.0" alpha="0.0" colorSpace="calibratedWhite"/>
<constraints>
<constraint firstItem="NpV-yY-PPY" firstAttribute="top" secondItem="HlM-9Z-7gA" secondAttribute="top" constant="100" id="5th-a8-gmP"/>
<constraint firstAttribute="trailing" secondItem="3CA-fY-2S2" secondAttribute="trailing" constant="36" id="6bW-fx-dTp"/>
<constraint firstItem="rtk-w4-zfQ" firstAttribute="centerY" secondItem="VN2-rO-YYy" secondAttribute="centerY" id="9Ie-aD-Xu9"/>
<constraint firstItem="rtk-w4-zfQ" firstAttribute="leading" secondItem="VN2-rO-YYy" secondAttribute="trailing" constant="8" id="Bp6-n1-e71"/>
<constraint firstItem="VN2-rO-YYy" firstAttribute="leading" secondItem="HlM-9Z-7gA" secondAttribute="leading" constant="40" id="Iqd-Ed-oSA"/>
<constraint firstItem="BLV-X1-oI7" firstAttribute="top" secondItem="FyJ-Ke-ba3" secondAttribute="bottom" constant="40" id="J0W-p0-scm"/>
<constraint firstItem="9AD-b5-bun" firstAttribute="top" secondItem="3CA-fY-2S2" secondAttribute="bottom" constant="40" id="LMr-eA-P35"/>
<constraint firstItem="NpV-yY-PPY" firstAttribute="centerX" secondItem="HlM-9Z-7gA" secondAttribute="centerX" id="P0j-mM-ca0"/>
<constraint firstItem="VN2-rO-YYy" firstAttribute="top" secondItem="NpV-yY-PPY" secondAttribute="bottom" constant="40" id="VhQ-gm-OM0"/>
<constraint firstItem="3CA-fY-2S2" firstAttribute="top" secondItem="VN2-rO-YYy" secondAttribute="bottom" constant="8" id="WVd-c7-KZh"/>
<constraint firstAttribute="trailing" secondItem="FyJ-Ke-ba3" secondAttribute="trailing" constant="36" id="ZiC-A3-KXj"/>
<constraint firstItem="BLV-X1-oI7" firstAttribute="centerX" secondItem="HlM-9Z-7gA" secondAttribute="centerX" id="f05-Dz-L7e"/>
<constraint firstItem="9AD-b5-bun" firstAttribute="leading" secondItem="HlM-9Z-7gA" secondAttribute="leading" constant="40" id="lAE-FG-kSn"/>
<constraint firstItem="FyJ-Ke-ba3" firstAttribute="top" secondItem="9AD-b5-bun" secondAttribute="bottom" constant="8" id="lD9-0Z-hro"/>
<constraint firstItem="FyJ-Ke-ba3" firstAttribute="leading" secondItem="HlM-9Z-7gA" secondAttribute="leading" constant="36" id="t4u-nO-inp"/>
<constraint firstItem="3CA-fY-2S2" firstAttribute="leading" secondItem="HlM-9Z-7gA" secondAttribute="leading" constant="36" id="w87-bV-caL"/>
</constraints>
</view>
</subviews>
<constraints>
<constraint firstAttribute="height" constant="25" id="g3B-PW-uya"/>
<constraint firstAttribute="bottom" secondItem="HlM-9Z-7gA" secondAttribute="bottom" constant="-18" id="69B-Pe-mL7"/>
<constraint firstItem="HlM-9Z-7gA" firstAttribute="top" secondItem="2ZO-zp-5uC" secondAttribute="top" constant="-18" id="Dig-j9-XSJ"/>
<constraint firstAttribute="trailing" secondItem="HlM-9Z-7gA" secondAttribute="trailing" constant="-16" id="LZa-xU-Eh2"/>
<constraint firstItem="HlM-9Z-7gA" firstAttribute="leading" secondItem="2ZO-zp-5uC" secondAttribute="leading" constant="-16" id="NvH-W1-SN5"/>
</constraints>
<fontDescription key="fontDescription" type="system" pointSize="17"/>
<nil key="textColor"/>
<nil key="highlightedColor"/>
</label>
<textField opaque="NO" clipsSubviews="YES" contentMode="scaleToFill" contentHorizontalAlignment="left" contentVerticalAlignment="center" placeholder="password" textAlignment="center" minimumFontSize="17" translatesAutoresizingMaskIntoConstraints="NO" id="FyJ-Ke-ba3" customClass="DesignableTextField" customModule="Ring" customModuleProvider="target">
<rect key="frame" x="36" y="359" width="303" height="40"/>
<color key="backgroundColor" white="1" alpha="1" colorSpace="calibratedWhite"/>
<constraints>
<constraint firstAttribute="height" constant="40" id="IYK-P5-8Up"/>
</constraints>
<nil key="textColor"/>
<fontDescription key="fontDescription" type="system" pointSize="14"/>
<textInputTraits key="textInputTraits" autocorrectionType="no" secureTextEntry="YES"/>
<userDefinedRuntimeAttributes>
<userDefinedRuntimeAttribute type="boolean" keyPath="roundedCorners" value="YES"/>
<userDefinedRuntimeAttribute type="number" keyPath="borderWidth">
<real key="value" value="0.0"/>
</userDefinedRuntimeAttribute>
<userDefinedRuntimeAttribute type="color" keyPath="borderColor">
<color key="value" white="0.0" alpha="1" colorSpace="custom" customColorSpace="genericGamma22GrayColorSpace"/>
</userDefinedRuntimeAttribute>
</userDefinedRuntimeAttributes>
</textField>
<textField opaque="NO" clipsSubviews="YES" contentMode="scaleToFill" contentHorizontalAlignment="left" contentVerticalAlignment="center" placeholder="PIN" textAlignment="center" minimumFontSize="17" translatesAutoresizingMaskIntoConstraints="NO" id="3CA-fY-2S2" customClass="DesignableTextField" customModule="Ring" customModuleProvider="target">
<rect key="frame" x="36" y="224" width="303" height="40"/>
<color key="backgroundColor" white="1" alpha="1" colorSpace="calibratedWhite"/>
<constraints>
<constraint firstAttribute="height" constant="40" id="qQ4-hd-6jc"/>
</constraints>
<nil key="textColor"/>
<fontDescription key="fontDescription" type="system" pointSize="14"/>
<textInputTraits key="textInputTraits" autocorrectionType="no" secureTextEntry="YES"/>
<userDefinedRuntimeAttributes>
<userDefinedRuntimeAttribute type="boolean" keyPath="roundedCorners" value="YES"/>
<userDefinedRuntimeAttribute type="number" keyPath="borderWidth">
<real key="value" value="0.0"/>
</userDefinedRuntimeAttribute>
<userDefinedRuntimeAttribute type="color" keyPath="borderColor">
<color key="value" white="0.0" alpha="1" colorSpace="custom" customColorSpace="genericGamma22GrayColorSpace"/>
</userDefinedRuntimeAttribute>
</userDefinedRuntimeAttributes>
</textField>
<label opaque="NO" userInteractionEnabled="NO" contentMode="left" horizontalHuggingPriority="251" verticalHuggingPriority="251" text="Enter pin" lineBreakMode="tailTruncation" baselineAdjustment="alignBaselines" adjustsFontSizeToFit="NO" translatesAutoresizingMaskIntoConstraints="NO" id="VN2-rO-YYy">
<rect key="frame" x="36.000000000000007" y="184" width="68.666666666666686" height="30"/>
<constraints>
<constraint firstAttribute="height" constant="30" id="TAS-dT-bOV"/>
</constraints>
<fontDescription key="fontDescription" type="system" pointSize="17"/>
<nil key="textColor"/>
<nil key="highlightedColor"/>
</label>
<button opaque="NO" contentMode="scaleToFill" contentHorizontalAlignment="center" contentVerticalAlignment="center" buttonType="roundedRect" lineBreakMode="middleTruncation" translatesAutoresizingMaskIntoConstraints="NO" id="BLV-X1-oI7" customClass="DesignableButton" customModule="Ring" customModuleProvider="target">
<rect key="frame" x="87" y="454" width="200" height="40"/>
<color key="backgroundColor" red="0.0" green="0.29803921570000003" blue="0.37647058820000001" alpha="1" colorSpace="custom" customColorSpace="sRGB"/>
<constraints>
<constraint firstAttribute="width" constant="200" id="6ar-f0-2DK"/>
<constraint firstAttribute="height" constant="40" id="pn4-1l-5WE"/>
</constraints>
<color key="tintColor" white="1" alpha="1" colorSpace="calibratedWhite"/>
<state key="normal" title="Link Device"/>
<userDefinedRuntimeAttributes>
<userDefinedRuntimeAttribute type="boolean" keyPath="roundedCorners" value="YES"/>
</userDefinedRuntimeAttributes>
</button>
<button opaque="NO" contentMode="scaleToFill" contentHorizontalAlignment="center" contentVerticalAlignment="center" buttonType="infoLight" showsTouchWhenHighlighted="YES" lineBreakMode="middleTruncation" translatesAutoresizingMaskIntoConstraints="NO" id="rtk-w4-zfQ" customClass="ButtonTransparentBackground" customModule="Ring" customModuleProvider="target">
<rect key="frame" x="124.66666666666669" y="184" width="22" height="30"/>
</button>
</scrollView>
</subviews>
<constraints>
<constraint firstItem="9AD-b5-bun" firstAttribute="top" secondItem="3CA-fY-2S2" secondAttribute="bottom" constant="60" id="0El-qi-zEc"/>
<constraint firstAttribute="trailing" secondItem="Gv4-18-FVt" secondAttribute="trailing" id="1Ev-WL-COb"/>
<constraint firstAttribute="trailing" secondItem="kur-G7-4Nq" secondAttribute="trailing" id="1U8-xt-ygk"/>
<constraint firstItem="HlM-9Z-7gA" firstAttribute="height" secondItem="N1T-Xh-FH1" secondAttribute="height" priority="250" constant="-60" id="2d3-He-Sf0"/>
<constraint firstItem="2ZO-zp-5uC" firstAttribute="leading" secondItem="N1T-Xh-FH1" secondAttribute="leadingMargin" id="4Yi-0N-gCd"/>
<constraint firstItem="Gv4-18-FVt" firstAttribute="top" secondItem="N1T-Xh-FH1" secondAttribute="top" id="5PT-u8-86G"/>
<constraint firstItem="FyJ-Ke-ba3" firstAttribute="top" secondItem="9AD-b5-bun" secondAttribute="bottom" constant="10" id="7SQ-7M-zl4"/>
<constraint firstItem="rtk-w4-zfQ" firstAttribute="leading" secondItem="VN2-rO-YYy" secondAttribute="trailing" constant="20" id="9tE-eh-oaC"/>
<constraint firstItem="3CA-fY-2S2" firstAttribute="centerX" secondItem="N1T-Xh-FH1" secondAttribute="centerX" id="H0o-ap-mM4"/>
<constraint firstAttribute="bottom" secondItem="Gv4-18-FVt" secondAttribute="bottom" id="HFl-10-dkf"/>
<constraint firstItem="rtk-w4-zfQ" firstAttribute="top" secondItem="VN2-rO-YYy" secondAttribute="top" id="I9c-e1-bNx"/>
<constraint firstItem="GVt-PH-FqG" firstAttribute="top" relation="greaterThanOrEqual" secondItem="BLV-X1-oI7" secondAttribute="bottom" constant="10" id="Jce-wS-ktQ"/>
<constraint firstItem="VN2-rO-YYy" firstAttribute="top" relation="greaterThanOrEqual" secondItem="jiD-fm-HFk" secondAttribute="bottom" priority="750" constant="10" id="LHc-Kp-1vB"/>
<constraint firstAttribute="trailingMargin" secondItem="2ZO-zp-5uC" secondAttribute="trailing" id="KoU-wY-ukh"/>
<constraint firstItem="2ZO-zp-5uC" firstAttribute="top" secondItem="jiD-fm-HFk" secondAttribute="bottom" constant="8" symbolic="YES" id="L02-XW-zma"/>
<constraint firstItem="Gv4-18-FVt" firstAttribute="leading" secondItem="N1T-Xh-FH1" secondAttribute="leading" id="LiW-7Y-wcc"/>
<constraint firstItem="rtk-w4-zfQ" firstAttribute="bottom" secondItem="VN2-rO-YYy" secondAttribute="bottom" id="OBf-bh-W1W"/>
<constraint firstItem="FyJ-Ke-ba3" firstAttribute="trailing" secondItem="3CA-fY-2S2" secondAttribute="trailing" id="QuZ-NB-GtO"/>
<constraint firstAttribute="bottom" secondItem="kur-G7-4Nq" secondAttribute="bottom" id="ZbY-gL-Rd7"/>
<constraint firstItem="BLV-X1-oI7" firstAttribute="top" secondItem="FyJ-Ke-ba3" secondAttribute="bottom" constant="55" id="bHY-D7-FfW"/>
<constraint firstItem="BLV-X1-oI7" firstAttribute="centerX" secondItem="N1T-Xh-FH1" secondAttribute="centerX" id="cIB-49-zSs"/>
<constraint firstItem="GVt-PH-FqG" firstAttribute="top" secondItem="2ZO-zp-5uC" secondAttribute="bottom" id="cx4-FI-wvY"/>
<constraint firstItem="HlM-9Z-7gA" firstAttribute="width" secondItem="N1T-Xh-FH1" secondAttribute="width" id="f2O-Kv-59m"/>
<constraint firstItem="kur-G7-4Nq" firstAttribute="top" secondItem="N1T-Xh-FH1" secondAttribute="top" id="hSt-o1-S41"/>
<constraint firstItem="FyJ-Ke-ba3" firstAttribute="leading" secondItem="3CA-fY-2S2" secondAttribute="leading" id="ktR-nr-C6X"/>
<constraint firstItem="VN2-rO-YYy" firstAttribute="leading" secondItem="N1T-Xh-FH1" secondAttribute="leadingMargin" constant="20" id="lir-vx-FR8"/>
<constraint firstItem="9AD-b5-bun" firstAttribute="leading" secondItem="VN2-rO-YYy" secondAttribute="leading" id="pEu-Md-SRd"/>
<constraint firstItem="VN2-rO-YYy" firstAttribute="top" secondItem="jiD-fm-HFk" secondAttribute="bottom" priority="250" constant="140" id="qQg-eH-gLE"/>
<constraint firstItem="kur-G7-4Nq" firstAttribute="leading" secondItem="N1T-Xh-FH1" secondAttribute="leading" id="r5d-rQ-Kg3"/>
<constraint firstItem="3CA-fY-2S2" firstAttribute="leading" secondItem="VN2-rO-YYy" secondAttribute="leading" id="x1Z-rI-xc1"/>
<constraint firstItem="3CA-fY-2S2" firstAttribute="top" secondItem="VN2-rO-YYy" secondAttribute="bottom" constant="10" id="y4J-tk-Rhi"/>
</constraints>
</view>
<connections>
......@@ -145,11 +181,12 @@
<outlet property="pinInfoButton" destination="rtk-w4-zfQ" id="eo1-z8-7RN"/>
<outlet property="pinLabel" destination="VN2-rO-YYy" id="qaM-sZ-9hX"/>
<outlet property="pinTextField" destination="3CA-fY-2S2" id="Gsg-2S-MS5"/>
<outlet property="scrollView" destination="2ZO-zp-5uC" id="yOg-RU-ilA"/>
</connections>
</viewController>
<placeholder placeholderIdentifier="IBFirstResponder" id="6ma-i4-SuK" userLabel="First Responder" sceneMemberID="firstResponder"/>
</objects>
<point key="canvasLocation" x="1104.8" y="366.56671664167919"/>
<point key="canvasLocation" x="1104.8" y="366.50246305418722"/>
</scene>
</scenes>
<resources>
......
......@@ -11,6 +11,7 @@ import Reusable
import RxSwift
import PKHUD
import AMPopTip
import SwiftyBeaver
class LinkDeviceViewController: UIViewController, StoryboardBased, ViewModelBased {
......@@ -21,11 +22,14 @@ class LinkDeviceViewController: UIViewController, StoryboardBased, ViewModelBase
@IBOutlet weak var pinInfoButton: UIButton!
@IBOutlet weak var pinLabel: UILabel!
@IBOutlet weak var passwordLabel: UILabel!
@IBOutlet weak var scrollView: UIScrollView!
// MARK: members
private let disposeBag = DisposeBag()
var viewModel: LinkDeviceViewModel!
let popTip = PopTip()
let log = SwiftyBeaver.self
// MARK: functions
override func viewDidLoad() {
super.viewDidLoad()
......@@ -109,6 +113,8 @@ class LinkDeviceViewController: UIViewController, StoryboardBased, ViewModelBase
popTip.entranceAnimation = .scale
popTip.bubbleColor = UIColor.ringSecondary
popTip.textColor = UIColor.white
let offset: CGFloat = (UI_USER_INTERFACE_IDIOM() == UIUserInterfaceIdiom.pad) ? 60.0 : 80.0
popTip.offset = offset - scrollView.contentOffset.y
popTip.show(text: L10n.Linktoaccount.explanationPinMessage, direction: .down,
maxWidth: 250, in: self.view, from: pinInfoButton.frame)
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment