Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
9 changed files
with
172 additions
and
51 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
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
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
30 changes: 30 additions & 0 deletions
30
loopr-ios/Wallet/AssetDetail/AssetTransactionWebViewController.swift
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,30 @@ | ||
// | ||
// AssetTransactionWebViewController.swift | ||
// loopr-ios | ||
// | ||
// Created by kenshin on 2018/4/25. | ||
// Copyright © 2018年 Loopring. All rights reserved. | ||
// | ||
|
||
import UIKit | ||
import WebKit | ||
|
||
class AssetTransactionWebViewController: UIViewController { | ||
|
||
@IBOutlet weak var wkWebView: WKWebView! | ||
var url: URL? | ||
|
||
override func viewDidLoad() { | ||
super.viewDidLoad() | ||
|
||
// Do any additional setup after loading the view. | ||
setBackButton() | ||
let request = URLRequest(url: url!) | ||
wkWebView.load(request) | ||
} | ||
|
||
override func didReceiveMemoryWarning() { | ||
super.didReceiveMemoryWarning() | ||
// Dispose of any resources that can be recreated. | ||
} | ||
} |
43 changes: 43 additions & 0 deletions
43
loopr-ios/Wallet/AssetDetail/AssetTransactionWebViewController.xib
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,43 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<document type="com.apple.InterfaceBuilder3.CocoaTouch.XIB" version="3.0" toolsVersion="13771" targetRuntime="iOS.CocoaTouch" propertyAccessControl="none" useAutolayout="YES" useTraitCollections="YES" useSafeAreas="YES" colorMatched="YES"> | ||
<device id="retina4_7" orientation="portrait"> | ||
<adaptation id="fullscreen"/> | ||
</device> | ||
<dependencies> | ||
<deployment identifier="iOS"/> | ||
<plugIn identifier="com.apple.InterfaceBuilder.IBCocoaTouchPlugin" version="13772"/> | ||
<capability name="Safe area layout guides" minToolsVersion="9.0"/> | ||
<capability name="documents saved in the Xcode 8 format" minToolsVersion="8.0"/> | ||
</dependencies> | ||
<objects> | ||
<placeholder placeholderIdentifier="IBFilesOwner" id="-1" userLabel="File's Owner" customClass="AssetTransactionWebViewController" customModule="loopr_ios" customModuleProvider="target"> | ||
<connections> | ||
<outlet property="view" destination="i5M-Pr-FkT" id="sfx-zR-JGt"/> | ||
<outlet property="wkWebView" destination="tKL-CR-AVX" id="fEs-Oh-Na2"/> | ||
</connections> | ||
</placeholder> | ||
<placeholder placeholderIdentifier="IBFirstResponder" id="-2" customClass="UIResponder"/> | ||
<view clearsContextBeforeDrawing="NO" contentMode="scaleToFill" id="i5M-Pr-FkT"> | ||
<rect key="frame" x="0.0" y="0.0" width="375" height="667"/> | ||
<autoresizingMask key="autoresizingMask" widthSizable="YES" heightSizable="YES"/> | ||
<subviews> | ||
<wkWebView contentMode="scaleToFill" translatesAutoresizingMaskIntoConstraints="NO" id="tKL-CR-AVX"> | ||
<rect key="frame" x="0.0" y="20" width="375" height="647"/> | ||
<color key="backgroundColor" red="0.36078431370000003" green="0.38823529410000002" blue="0.4039215686" alpha="1" colorSpace="custom" customColorSpace="sRGB"/> | ||
<wkWebViewConfiguration key="configuration"> | ||
<audiovisualMediaTypes key="mediaTypesRequiringUserActionForPlayback" none="YES"/> | ||
<wkPreferences key="preferences"/> | ||
</wkWebViewConfiguration> | ||
</wkWebView> | ||
</subviews> | ||
<color key="backgroundColor" red="1" green="1" blue="1" alpha="1" colorSpace="custom" customColorSpace="sRGB"/> | ||
<constraints> | ||
<constraint firstItem="fnl-2z-Ty3" firstAttribute="bottom" secondItem="tKL-CR-AVX" secondAttribute="bottom" id="1CL-Ud-0Us"/> | ||
<constraint firstItem="fnl-2z-Ty3" firstAttribute="trailing" secondItem="tKL-CR-AVX" secondAttribute="trailing" id="1iH-uM-TAB"/> | ||
<constraint firstItem="tKL-CR-AVX" firstAttribute="top" secondItem="fnl-2z-Ty3" secondAttribute="top" id="ArJ-g3-kFJ"/> | ||
<constraint firstItem="tKL-CR-AVX" firstAttribute="leading" secondItem="fnl-2z-Ty3" secondAttribute="leading" id="nOK-MW-wWa"/> | ||
</constraints> | ||
<viewLayoutGuide key="safeArea" id="fnl-2z-Ty3"/> | ||
</view> | ||
</objects> | ||
</document> |
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
Oops, something went wrong.