-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Feature/new design (eu-digital-green-certificates#34)
* New Launch Screen. * New cert viewer design.
- Loading branch information
Showing
87 changed files
with
818 additions
and
255 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,37 @@ | ||
// | ||
/*- | ||
* ---license-start | ||
* eu-digital-green-certificates / dgca-verifier-app-ios | ||
* --- | ||
* Copyright (C) 2021 T-Systems International GmbH and all other contributors | ||
* --- | ||
* Licensed under the Apache License, Version 2.0 (the "License"); | ||
* you may not use this file except in compliance with the License. | ||
* You may obtain a copy of the License at | ||
* | ||
* http://www.apache.org/licenses/LICENSE-2.0 | ||
* | ||
* Unless required by applicable law or agreed to in writing, software | ||
* distributed under the License is distributed on an "AS IS" BASIS, | ||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
* See the License for the specific language governing permissions and | ||
* limitations under the License. | ||
* ---license-end | ||
*/ | ||
// | ||
// UIColor.swift | ||
// DGCAVerifier | ||
// | ||
// Created by Yannick Spreen on 4/29/21. | ||
// | ||
|
||
|
||
import UIKit | ||
|
||
extension UIColor { | ||
static var red: UIColor! { UIColor(named: "red") } | ||
static var green: UIColor! { UIColor(named: "green") } | ||
static var blue: UIColor! { UIColor(named: "blue") } | ||
static var black: UIColor! { UIColor(named: "black") } | ||
static var disabledText: UIColor! { UIColor(named: "disabledText") } | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
/*- | ||
* ---license-start | ||
* eu-digital-green-certificates / dgca-verifier-app-ios | ||
* --- | ||
* Copyright (C) 2021 T-Systems International GmbH and all other contributors | ||
* --- | ||
* Licensed under the Apache License, Version 2.0 (the "License"); | ||
* you may not use this file except in compliance with the License. | ||
* You may obtain a copy of the License at | ||
* | ||
* http://www.apache.org/licenses/LICENSE-2.0 | ||
* | ||
* Unless required by applicable law or agreed to in writing, software | ||
* distributed under the License is distributed on an "AS IS" BASIS, | ||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
* See the License for the specific language governing permissions and | ||
* limitations under the License. | ||
* ---license-end | ||
*/ | ||
// | ||
// ChildDismissedDelegate.swift | ||
// DGCAVerifier | ||
// | ||
// Created by Yannick Spreen on 4/20/21. | ||
// | ||
|
||
import Foundation | ||
|
||
protocol CertViewerDelegate { | ||
func childDismissed() | ||
func openSettings() | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
83 changes: 58 additions & 25 deletions
83
DGCAVerifier/Storyboards/Base.lproj/LaunchScreen.storyboard
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,52 +1,85 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<document type="com.apple.InterfaceBuilder3.CocoaTouch.Storyboard.XIB" version="3.0" toolsVersion="17701" targetRuntime="iOS.CocoaTouch" propertyAccessControl="none" useAutolayout="YES" launchScreen="YES" useTraitCollections="YES" useSafeAreas="YES" colorMatched="YES" initialViewController="01J-lp-oVM"> | ||
<device id="retina4_7" orientation="portrait" appearance="light" /> | ||
<device id="retina6_5" orientation="portrait" appearance="light"/> | ||
<dependencies> | ||
<deployment identifier="iOS" /> | ||
<plugIn identifier="com.apple.InterfaceBuilder.IBCocoaTouchPlugin" version="17703" /> | ||
<capability name="Safe area layout guides" minToolsVersion="9.0" /> | ||
<capability name="System colors in document resources" minToolsVersion="11.0" /> | ||
<capability name="documents saved in the Xcode 8 format" minToolsVersion="8.0" /> | ||
<deployment identifier="iOS"/> | ||
<plugIn identifier="com.apple.InterfaceBuilder.IBCocoaTouchPlugin" version="17703"/> | ||
<capability name="Named colors" minToolsVersion="9.0"/> | ||
<capability name="Safe area layout guides" minToolsVersion="9.0"/> | ||
<capability name="System colors in document resources" minToolsVersion="11.0"/> | ||
<capability name="documents saved in the Xcode 8 format" minToolsVersion="8.0"/> | ||
</dependencies> | ||
<scenes> | ||
<!--View Controller--> | ||
<scene sceneID="EHf-IW-A2E"> | ||
<objects> | ||
<viewController id="01J-lp-oVM" sceneMemberID="viewController"> | ||
<view key="view" contentMode="scaleToFill" id="Ze5-6b-2t3"> | ||
<rect key="frame" x="0.0" y="0.0" width="414" height="896" /> | ||
<autoresizingMask key="autoresizingMask" widthSizable="YES" heightSizable="YES" /> | ||
<rect key="frame" x="0.0" y="0.0" width="414" height="896"/> | ||
<autoresizingMask key="autoresizingMask" widthSizable="YES" heightSizable="YES"/> | ||
<subviews> | ||
<imageView clipsSubviews="YES" userInteractionEnabled="NO" contentMode="scaleAspectFit" horizontalHuggingPriority="251" verticalHuggingPriority="251" image="hea_dgf_icons-2" translatesAutoresizingMaskIntoConstraints="NO" id="W44-ZU-RIp"> | ||
<rect key="frame" x="87.5" y="141.5" width="200" height="200" /> | ||
<imageView clipsSubviews="YES" userInteractionEnabled="NO" contentMode="scaleAspectFit" horizontalHuggingPriority="251" verticalHuggingPriority="251" image="verifier_icon" translatesAutoresizingMaskIntoConstraints="NO" id="W44-ZU-RIp"> | ||
<rect key="frame" x="151" y="142.33333333333334" width="112" height="150.00000000000003"/> | ||
<constraints> | ||
<constraint firstAttribute="width" constant="200" id="nmQ-8g-dAp" /> | ||
<constraint firstAttribute="height" constant="200" id="rTl-re-1de" /> | ||
<constraint firstAttribute="width" constant="112" id="nmQ-8g-dAp"/> | ||
<constraint firstAttribute="height" constant="150" id="rTl-re-1de"/> | ||
</constraints> | ||
</imageView> | ||
<view contentMode="scaleToFill" translatesAutoresizingMaskIntoConstraints="NO" id="BaC-Rv-DYO"> | ||
<rect key="frame" x="0.0" y="0.0" width="375" height="133.5" /> | ||
<color key="backgroundColor" white="0.0" alpha="0.0" colorSpace="custom" customColorSpace="genericGamma22GrayColorSpace" /> | ||
<rect key="frame" x="0.0" y="0.0" width="414" height="134.33333333333334"/> | ||
<color key="backgroundColor" white="0.0" alpha="0.0" colorSpace="custom" customColorSpace="genericGamma22GrayColorSpace"/> | ||
</view> | ||
<label opaque="NO" userInteractionEnabled="NO" contentMode="left" horizontalHuggingPriority="251" verticalHuggingPriority="251" text="Verifier App" textAlignment="natural" lineBreakMode="tailTruncation" baselineAdjustment="alignBaselines" adjustsFontSizeToFit="NO" translatesAutoresizingMaskIntoConstraints="NO" id="JUh-sx-2bS"> | ||
<rect key="frame" x="126.66666666666669" y="300.33333333333331" width="161" height="36"/> | ||
<fontDescription key="fontDescription" type="system" weight="semibold" pointSize="30"/> | ||
<color key="textColor" white="1" alpha="1" colorSpace="custom" customColorSpace="genericGamma22GrayColorSpace"/> | ||
<nil key="highlightedColor"/> | ||
</label> | ||
<view contentMode="scaleToFill" translatesAutoresizingMaskIntoConstraints="NO" id="VMM-1g-cY1"> | ||
<rect key="frame" x="0.0" y="746.66666666666663" width="414" height="149.33333333333337"/> | ||
<color key="backgroundColor" systemColor="systemBackgroundColor"/> | ||
</view> | ||
<imageView clipsSubviews="YES" userInteractionEnabled="NO" contentMode="scaleAspectFit" horizontalHuggingPriority="251" verticalHuggingPriority="251" image="main_eu_logo" translatesAutoresizingMaskIntoConstraints="NO" id="6yJ-bA-6ka"> | ||
<rect key="frame" x="117" y="778.66666666666663" width="180" height="51.333333333333371"/> | ||
<constraints> | ||
<constraint firstAttribute="width" constant="180" id="ECM-6l-gA1"/> | ||
<constraint firstAttribute="width" secondItem="6yJ-bA-6ka" secondAttribute="height" multiplier="7:2" id="Ia6-NJ-8nn"/> | ||
</constraints> | ||
</imageView> | ||
</subviews> | ||
<viewLayoutGuide key="safeArea" id="6Tk-OE-BBY" /> | ||
<color key="backgroundColor" red="0.99607843137254903" green="0.93333333333333335" blue="0.0" alpha="1" colorSpace="custom" customColorSpace="displayP3" /> | ||
<viewLayoutGuide key="safeArea" id="6Tk-OE-BBY"/> | ||
<color key="backgroundColor" name="blue"/> | ||
<constraints> | ||
<constraint firstItem="W44-ZU-RIp" firstAttribute="top" secondItem="BaC-Rv-DYO" secondAttribute="bottom" constant="8" id="A1q-lp-Ynh" /> | ||
<constraint firstAttribute="trailing" secondItem="BaC-Rv-DYO" secondAttribute="trailing" id="F7A-pY-8Mk" /> | ||
<constraint firstItem="BaC-Rv-DYO" firstAttribute="top" secondItem="Ze5-6b-2t3" secondAttribute="top" id="JHZ-Yo-7a3" /> | ||
<constraint firstItem="BaC-Rv-DYO" firstAttribute="leading" secondItem="Ze5-6b-2t3" secondAttribute="leading" id="JhQ-xG-reB" /> | ||
<constraint firstItem="BaC-Rv-DYO" firstAttribute="height" secondItem="Ze5-6b-2t3" secondAttribute="height" multiplier="0.2" id="g1x-Ss-QDG" /> | ||
<constraint firstItem="W44-ZU-RIp" firstAttribute="centerX" secondItem="Ze5-6b-2t3" secondAttribute="centerX" id="qNG-sL-f4L" /> | ||
<constraint firstItem="JUh-sx-2bS" firstAttribute="top" secondItem="W44-ZU-RIp" secondAttribute="bottom" constant="8" id="8v4-cp-jMF"/> | ||
<constraint firstItem="W44-ZU-RIp" firstAttribute="top" secondItem="BaC-Rv-DYO" secondAttribute="bottom" constant="8" id="A1q-lp-Ynh"/> | ||
<constraint firstAttribute="trailing" secondItem="BaC-Rv-DYO" secondAttribute="trailing" id="F7A-pY-8Mk"/> | ||
<constraint firstAttribute="bottom" secondItem="VMM-1g-cY1" secondAttribute="bottom" id="Ib9-QC-CnL"/> | ||
<constraint firstItem="BaC-Rv-DYO" firstAttribute="top" secondItem="Ze5-6b-2t3" secondAttribute="top" id="JHZ-Yo-7a3"/> | ||
<constraint firstItem="BaC-Rv-DYO" firstAttribute="leading" secondItem="Ze5-6b-2t3" secondAttribute="leading" id="JhQ-xG-reB"/> | ||
<constraint firstAttribute="trailing" secondItem="VMM-1g-cY1" secondAttribute="trailing" id="Lb8-RL-qcG"/> | ||
<constraint firstItem="6yJ-bA-6ka" firstAttribute="centerX" secondItem="Ze5-6b-2t3" secondAttribute="centerX" id="Wsr-T6-WyF"/> | ||
<constraint firstItem="6Tk-OE-BBY" firstAttribute="bottom" secondItem="6yJ-bA-6ka" secondAttribute="bottom" constant="32" id="fQA-mo-Dqn"/> | ||
<constraint firstItem="BaC-Rv-DYO" firstAttribute="height" secondItem="Ze5-6b-2t3" secondAttribute="height" multiplier="0.15" id="g1x-Ss-QDG"/> | ||
<constraint firstItem="JUh-sx-2bS" firstAttribute="centerX" secondItem="Ze5-6b-2t3" secondAttribute="centerX" id="lwU-ms-YjN"/> | ||
<constraint firstItem="6yJ-bA-6ka" firstAttribute="top" secondItem="VMM-1g-cY1" secondAttribute="top" constant="32" id="lzZ-XS-1VD"/> | ||
<constraint firstItem="VMM-1g-cY1" firstAttribute="leading" secondItem="Ze5-6b-2t3" secondAttribute="leading" id="mim-t1-gus"/> | ||
<constraint firstItem="W44-ZU-RIp" firstAttribute="centerX" secondItem="Ze5-6b-2t3" secondAttribute="centerX" id="qNG-sL-f4L"/> | ||
</constraints> | ||
</view> | ||
</viewController> | ||
<placeholder placeholderIdentifier="IBFirstResponder" id="iYj-Kq-Ea1" userLabel="First Responder" sceneMemberID="firstResponder" /> | ||
<placeholder placeholderIdentifier="IBFirstResponder" id="iYj-Kq-Ea1" userLabel="First Responder" sceneMemberID="firstResponder"/> | ||
</objects> | ||
<point key="canvasLocation" x="52" y="374.66266866566718" /> | ||
<point key="canvasLocation" x="50.724637681159422" y="374.33035714285711"/> | ||
</scene> | ||
</scenes> | ||
<resources> | ||
<image name="hea_dgf_icons-2" width="201" height="201" /> | ||
<image name="main_eu_logo" width="162" height="42"/> | ||
<image name="verifier_icon" width="112" height="112"/> | ||
<namedColor name="blue"> | ||
<color red="0.0" green="0.26666666666666666" blue="0.58039215686274503" alpha="1" colorSpace="custom" customColorSpace="sRGB"/> | ||
</namedColor> | ||
<systemColor name="systemBackgroundColor"> | ||
<color white="1" alpha="1" colorSpace="custom" customColorSpace="genericGamma22GrayColorSpace"/> | ||
</systemColor> | ||
</resources> | ||
</document> |
Oops, something went wrong.