From afb1cd271f01a18005aabe07e92f140d1f605d61 Mon Sep 17 00:00:00 2001 From: Ivan Grachyov Date: Sun, 13 Jun 2021 10:01:19 +0300 Subject: [PATCH] Nice scrollable text view for transaction meta --- .../Screens/ApproveViewController.swift | 3 +- .../Screens/Base.lproj/Main.storyboard | 42 +++++++++++++++++++ 2 files changed, 44 insertions(+), 1 deletion(-) diff --git a/Encrypted Ink/Screens/ApproveViewController.swift b/Encrypted Ink/Screens/ApproveViewController.swift index ed738a4a..c374682c 100644 --- a/Encrypted Ink/Screens/ApproveViewController.swift +++ b/Encrypted Ink/Screens/ApproveViewController.swift @@ -5,6 +5,7 @@ import Cocoa class ApproveViewController: NSViewController { @IBOutlet weak var titleLabel: NSTextField! + @IBOutlet var metaTextView: NSTextView! var approveTitle: String! var meta: String! @@ -21,7 +22,7 @@ class ApproveViewController: NSViewController { override func viewDidLoad() { super.viewDidLoad() titleLabel.stringValue = approveTitle - // TODO: setup meta + metaTextView.string = meta } @IBAction func actionButtonTapped(_ sender: Any) { diff --git a/Encrypted Ink/Screens/Base.lproj/Main.storyboard b/Encrypted Ink/Screens/Base.lproj/Main.storyboard index d6638a02..7b53e98c 100644 --- a/Encrypted Ink/Screens/Base.lproj/Main.storyboard +++ b/Encrypted Ink/Screens/Base.lproj/Main.storyboard @@ -1028,16 +1028,58 @@ DQ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +