This repository has been archived by the owner on Aug 13, 2021. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 96
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* First draft of create with trust button implementation * Add icons and improve button theming * Finish button theming * Start action for button * Finish TrustButton implementation * Update colors for dark mode
- Loading branch information
1 parent
eca43e1
commit 7d954f3
Showing
20 changed files
with
483 additions
and
88 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
86 changes: 39 additions & 47 deletions
86
Example/TrustSDK/Base.lproj/Main.storyboard → Example/TrustSDK/Main.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,81 +1,73 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<document type="com.apple.InterfaceBuilder3.CocoaTouch.Storyboard.XIB" version="3.0" toolsVersion="16097" targetRuntime="iOS.CocoaTouch" propertyAccessControl="none" useAutolayout="YES" useTraitCollections="YES" colorMatched="YES" initialViewController="vXZ-lx-hvc"> | ||
<device id="retina4_7" orientation="portrait" appearance="light"/> | ||
<document type="com.apple.InterfaceBuilder3.CocoaTouch.Storyboard.XIB" version="3.0" toolsVersion="16097" targetRuntime="iOS.CocoaTouch" propertyAccessControl="none" useAutolayout="YES" useTraitCollections="YES" useSafeAreas="YES" colorMatched="YES" initialViewController="bKd-Yx-GdX"> | ||
<device id="retina6_1" orientation="portrait" appearance="light"/> | ||
<dependencies> | ||
<deployment identifier="iOS"/> | ||
<plugIn identifier="com.apple.InterfaceBuilder.IBCocoaTouchPlugin" version="16087"/> | ||
<capability name="Safe area layout guides" minToolsVersion="9.0"/> | ||
<capability name="documents saved in the Xcode 8 format" minToolsVersion="8.0"/> | ||
</dependencies> | ||
<scenes> | ||
<!--View Controller--> | ||
<scene sceneID="ufC-wZ-h7g"> | ||
<scene sceneID="Hwk-cW-wCM"> | ||
<objects> | ||
<viewController id="vXZ-lx-hvc" customClass="ViewController" customModule="TrustSDK_Example" customModuleProvider="target" sceneMemberID="viewController"> | ||
<layoutGuides> | ||
<viewControllerLayoutGuide type="top" id="jyV-Pf-zRb"/> | ||
<viewControllerLayoutGuide type="bottom" id="2fi-mo-0CV"/> | ||
</layoutGuides> | ||
<view key="view" contentMode="scaleToFill" id="kh9-bI-dsS"> | ||
<rect key="frame" x="0.0" y="0.0" width="375" height="667"/> | ||
<autoresizingMask key="autoresizingMask" flexibleMaxX="YES" flexibleMaxY="YES"/> | ||
<viewController id="bKd-Yx-GdX" customClass="ViewController" customModule="TrustSDK_Example" customModuleProvider="target" sceneMemberID="viewController"> | ||
<view key="view" contentMode="scaleToFill" id="BMG-7a-Weg"> | ||
<rect key="frame" x="0.0" y="0.0" width="414" height="896"/> | ||
<autoresizingMask key="autoresizingMask" widthSizable="YES" heightSizable="YES"/> | ||
<subviews> | ||
<stackView opaque="NO" contentMode="scaleToFill" axis="vertical" spacing="10" translatesAutoresizingMaskIntoConstraints="NO" id="dki-rz-1JK"> | ||
<rect key="frame" x="16" y="238.5" width="343" height="190"/> | ||
<stackView opaque="NO" contentMode="scaleToFill" axis="vertical" spacing="10" translatesAutoresizingMaskIntoConstraints="NO" id="aUU-ev-Dni"> | ||
<rect key="frame" x="10" y="345" width="394" height="206"/> | ||
<subviews> | ||
<button opaque="NO" contentMode="scaleToFill" contentHorizontalAlignment="center" contentVerticalAlignment="center" buttonType="roundedRect" lineBreakMode="middleTruncation" translatesAutoresizingMaskIntoConstraints="NO" id="QBa-rx-udO"> | ||
<rect key="frame" x="0.0" y="0.0" width="343" height="40"/> | ||
<button opaque="NO" contentMode="scaleToFill" contentHorizontalAlignment="center" contentVerticalAlignment="center" buttonType="roundedRect" lineBreakMode="middleTruncation" translatesAutoresizingMaskIntoConstraints="NO" id="HIS-AH-w2S" customClass="TrustButton" customModule="TrustSDK"> | ||
<rect key="frame" x="0.0" y="0.0" width="394" height="44"/> | ||
<constraints> | ||
<constraint firstAttribute="height" constant="40" id="ePi-zJ-VrN"/> | ||
<constraint firstAttribute="height" constant="44" id="sic-Tt-hbJ"/> | ||
</constraints> | ||
<state key="normal" title="Sign Ethereum Tx"/> | ||
<connections> | ||
<action selector="signEthereumTx:" destination="vXZ-lx-hvc" eventType="touchUpInside" id="jY8-nu-Vmt"/> | ||
</connections> | ||
<state key="normal" title="Pay With Trust Wallet"/> | ||
</button> | ||
<button opaque="NO" contentMode="scaleToFill" contentHorizontalAlignment="center" contentVerticalAlignment="center" buttonType="roundedRect" lineBreakMode="middleTruncation" translatesAutoresizingMaskIntoConstraints="NO" id="Zjp-TZ-lI6"> | ||
<rect key="frame" x="0.0" y="50" width="343" height="40"/> | ||
<button opaque="NO" contentMode="scaleToFill" contentHorizontalAlignment="center" contentVerticalAlignment="center" buttonType="roundedRect" lineBreakMode="middleTruncation" translatesAutoresizingMaskIntoConstraints="NO" id="p1S-1Y-idx" customClass="TrustButton" customModule="TrustSDK"> | ||
<rect key="frame" x="0.0" y="54" width="394" height="44"/> | ||
<constraints> | ||
<constraint firstAttribute="height" constant="40" id="Z99-F6-ZKN"/> | ||
<constraint firstAttribute="height" constant="44" id="tbl-cf-e0c"/> | ||
</constraints> | ||
<state key="normal" title="Sign Ethereum Message"/> | ||
<connections> | ||
<action selector="signEthereumMessage:" destination="vXZ-lx-hvc" eventType="touchUpInside" id="jqF-di-XOu"/> | ||
</connections> | ||
<state key="normal" title="Sign Message"/> | ||
</button> | ||
<button opaque="NO" contentMode="scaleToFill" contentHorizontalAlignment="center" contentVerticalAlignment="center" buttonType="roundedRect" lineBreakMode="middleTruncation" translatesAutoresizingMaskIntoConstraints="NO" id="fNZ-Tw-waq"> | ||
<rect key="frame" x="0.0" y="100" width="343" height="40"/> | ||
<button opaque="NO" contentMode="scaleToFill" contentHorizontalAlignment="center" contentVerticalAlignment="center" buttonType="roundedRect" lineBreakMode="middleTruncation" translatesAutoresizingMaskIntoConstraints="NO" id="2hN-tm-JCp" customClass="TrustButton" customModule="TrustSDK"> | ||
<rect key="frame" x="0.0" y="108" width="394" height="44"/> | ||
<constraints> | ||
<constraint firstAttribute="height" constant="40" id="pjM-mw-3MG"/> | ||
<constraint firstAttribute="height" constant="44" id="pnC-S1-Bxv"/> | ||
</constraints> | ||
<state key="normal" title="Sign and Send Ethereum"/> | ||
<connections> | ||
<action selector="signThenSendEthereum:" destination="vXZ-lx-hvc" eventType="touchUpInside" id="lYt-Tw-aEN"/> | ||
</connections> | ||
<state key="normal" title="Sign Transaction"/> | ||
</button> | ||
<button opaque="NO" contentMode="scaleToFill" contentHorizontalAlignment="center" contentVerticalAlignment="center" buttonType="roundedRect" lineBreakMode="middleTruncation" translatesAutoresizingMaskIntoConstraints="NO" id="Y0Q-XG-P2U"> | ||
<rect key="frame" x="0.0" y="150" width="343" height="40"/> | ||
<button opaque="NO" contentMode="scaleToFill" contentHorizontalAlignment="center" contentVerticalAlignment="center" buttonType="roundedRect" lineBreakMode="middleTruncation" translatesAutoresizingMaskIntoConstraints="NO" id="RsQ-QJ-aVh" customClass="TrustButton" customModule="TrustSDK"> | ||
<rect key="frame" x="0.0" y="162" width="394" height="44"/> | ||
<constraints> | ||
<constraint firstAttribute="height" constant="40" id="Prt-SF-Pwk"/> | ||
<constraint firstAttribute="height" constant="44" id="wI1-gL-oJt"/> | ||
</constraints> | ||
<state key="normal" title="Get Address"/> | ||
<connections> | ||
<action selector="getAddress:" destination="vXZ-lx-hvc" eventType="touchUpInside" id="DCl-ir-FRN"/> | ||
</connections> | ||
<state key="normal" title="Get Accounts"/> | ||
</button> | ||
</subviews> | ||
</stackView> | ||
</subviews> | ||
<color key="backgroundColor" red="1" green="1" blue="1" alpha="1" colorSpace="custom" customColorSpace="sRGB"/> | ||
<color key="backgroundColor" systemColor="systemBackgroundColor" cocoaTouchSystemColor="whiteColor"/> | ||
<constraints> | ||
<constraint firstItem="dki-rz-1JK" firstAttribute="centerY" secondItem="kh9-bI-dsS" secondAttribute="centerY" id="0pi-b8-mWM"/> | ||
<constraint firstItem="dki-rz-1JK" firstAttribute="leading" secondItem="kh9-bI-dsS" secondAttribute="leadingMargin" id="9Bc-5m-zSq"/> | ||
<constraint firstAttribute="trailingMargin" secondItem="dki-rz-1JK" secondAttribute="trailing" id="9vL-Bf-RQO"/> | ||
<constraint firstItem="dc4-Ce-UIv" firstAttribute="trailing" secondItem="aUU-ev-Dni" secondAttribute="trailing" constant="10" id="9qM-sM-gob"/> | ||
<constraint firstItem="aUU-ev-Dni" firstAttribute="centerY" secondItem="BMG-7a-Weg" secondAttribute="centerY" id="H4g-MP-103"/> | ||
<constraint firstItem="aUU-ev-Dni" firstAttribute="leading" secondItem="dc4-Ce-UIv" secondAttribute="leading" constant="10" id="PRu-16-XcP"/> | ||
</constraints> | ||
<viewLayoutGuide key="safeArea" id="dc4-Ce-UIv"/> | ||
</view> | ||
<connections> | ||
<outlet property="getAccountsButton" destination="RsQ-QJ-aVh" id="qVi-OD-oSh"/> | ||
<outlet property="payWithTrustButton" destination="HIS-AH-w2S" id="GuI-JK-mtU"/> | ||
<outlet property="signMesageButton" destination="p1S-1Y-idx" id="Zqi-tP-CFO"/> | ||
<outlet property="signTransactionButton" destination="2hN-tm-JCp" id="Lrh-I2-up7"/> | ||
</connections> | ||
</viewController> | ||
<placeholder placeholderIdentifier="IBFirstResponder" id="x5A-6p-PRh" sceneMemberID="firstResponder"/> | ||
<placeholder placeholderIdentifier="IBFirstResponder" id="56e-h5-MGR" userLabel="First Responder" customClass="UIResponder" sceneMemberID="firstResponder"/> | ||
</objects> | ||
<point key="canvasLocation" x="140" y="132.68365817091455"/> | ||
<point key="canvasLocation" x="-341" y="-48"/> | ||
</scene> | ||
</scenes> | ||
</document> |
Oops, something went wrong.