diff --git a/litewallet/CardWebViewController.swift b/litewallet/CardWebViewController.swift deleted file mode 100644 index ba9aedebf..000000000 --- a/litewallet/CardWebViewController.swift +++ /dev/null @@ -1,26 +0,0 @@ -import Foundation -import WebKit - -class CardWebViewController: UIViewController { - var webView: WKWebView! - - override func loadView() { - guard let url = URL(string: litecoinCardURL) else { return } - - let request = URLRequest(url: url) - - let webConfiguration = WKWebViewConfiguration() - webView = WKWebView(frame: .zero, configuration: webConfiguration) - webView.navigationDelegate = self - webView.load(request) - view = webView - } -} - -extension CardWebViewController: WKNavigationDelegate { - func webView(_: WKWebView, didCommit _: WKNavigation!) {} - - func webView(_: WKWebView, didFinish _: WKNavigation!) {} - - func webView(_: WKWebView, didFail _: WKNavigation!, withError _: Error) {} -} diff --git a/litewallet/Color+Extension.swift b/litewallet/Color+Extension.swift index 79862fab6..3877395a2 100644 --- a/litewallet/Color+Extension.swift +++ b/litewallet/Color+Extension.swift @@ -10,6 +10,10 @@ extension Color { return Color(UIColor.liteWalletDarkBlue) } + static var litewalletLime: Color { // D9E76C + return Color(UIColor.litewalletLime) + } + static var litewalletLightGray: Color { // F8F8F8 return Color(UIColor.litewalletLightGray) } diff --git a/litewallet/Icon.xcassets/Contents.json b/litewallet/Icon.xcassets/Contents.json index da4a164c9..73c00596a 100644 --- a/litewallet/Icon.xcassets/Contents.json +++ b/litewallet/Icon.xcassets/Contents.json @@ -1,6 +1,6 @@ { "info" : { - "version" : 1, - "author" : "xcode" + "author" : "xcode", + "version" : 1 } -} \ No newline at end of file +} diff --git a/litewallet/Storyboards/Card.storyboard b/litewallet/Storyboards/Card.storyboard deleted file mode 100644 index a47515477..000000000 --- a/litewallet/Storyboards/Card.storyboard +++ /dev/null @@ -1,27 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/litewallet/src/Platform/BRCoding.swift b/litewallet/src/Platform/BRCoding.swift index 5879e1fd7..2d44f0b6f 100644 --- a/litewallet/src/Platform/BRCoding.swift +++ b/litewallet/src/Platform/BRCoding.swift @@ -3,6 +3,7 @@ import Foundation // BRCoder/BRCoding works a lot like NSCoder/NSCoding but simpler // instead of using optionals everywhere we just use zero values, and take advantage // of the swift type system somewhat to make the whole api a little cleaner + protocol BREncodable { // return anything that is JSON-able func encode() -> AnyObject